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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

 Copyright 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var OVr,x$i,lnV,Crr,Qms,bV$,lr,LLW,D$7,QN,LV,Grn,FLw,Im,pV,XiL,oWW,yLn,U8,tws,q8m,s8,Inm,an$,WL7,zsn,KLi,d$L,urN,vWn,fnN,wiW,e$,N7L,L2,gWV,kd,$$W,AJ,oz,O2V,xkV,Wd,hJ,lDr,L3r,kp$,dN,Dki,Gpr,uF,F3r,XdW,odi,Yd,AJL,Bd,Z28,qTL,pd8,DQ,RLV,Uk7,Mh,cJi,LQ,IDr,V$N,H27,dkV,nds,te,BNr,YTw,vdr,fD8,JJn,ST7,jzi,$kr,i2r,eO7,CL$,bQ$,Mpm,GXw,Dhr,dL,FYm,ELr,uL,q47,pTr,cer,ROn,IQn,YL,wdn,BT,vT,fQ,UhN,wL,sum,aQL,mh8,gL,WYr,hOV,zO8,reL,KYr,HQ8,dhi,nLL,uws,jp,BLi,fQr,wTr,juL,CU,gLi,OUr,bI,lsV,bUw,iQW,Tk8,kH7,A7r,y7L,GHV,
EyW,qhL,PIm,Is7,VEW,asi,mTm,hzN,r7r,dTr,uaw,Yh$,vys,wwL,iUV,RS,xxN,ltr,Cxs,zH,rk,KU,J7,SE,NT,DxL,lx,XOr,ZxN,t5$,qr8,PxL,AS,cSW,Dt,Gt,FW,XW,V5r,pO$,Riw,UxN,atV,saL,WgW,hi7,zim,Hx7,Er,Zt,Kgr,dx$,nS7,Yr7,uW7,BXV,vSV,fti,Ur,aa,mg,sr,rX,wOi,HO,jan,Ou7,dX,xMw,eQN,lun,ux,CtN,Qnr,buN,YS,kJ$,JS,DM7,GJ$,wX,XXr,FOV,oG8,yjN,ZuV,EGm,Nx,tNN,qdm,gX,PtL,cjr,$S,ix,Od,xG,Ium,pX7,VNi,eN,UM8,auw,mML,Cu,bt,Lu,kG,Aj,MM,snm,WOs,zQL,rjN,KOi,dMV,nGL,u5V,Yd8,Bcn,X5,vGw,fuW,wXs,Sd7,jn7,Ncs,gG7,$Mr,iur,Zu,OfV,tj,qM,xqL,CP8,
Q9r,bfr,LyL,k8$,A0N,Fyr,Xvs,o8r,y0r,Zf8,E8r,tZs,IdW,In,VZL,pv$,RW7,UqL,adn,mqW,WyN,fdr,J0m,wvr,Nom,g8w,WX,$qw,x4N,CoL,Qw$,be7,Tw$,LF$,kcr,A6N,Mji,Gcm,FF$,ecN,XLL,oOr,y6i,Ze8,EOr,tjw,qfL,Por,c6i,RcL,VjV,m4i,U4r,aer,hcr,zcs,r68,sw$,KF7,WFL,nOs,Om,u17,x8,lP,YfL,vOW,fer,SfN,C8r,NwN,jwN,$4$,OOV,gOm,AZi,Tz7,MSs,DDi,Gn8,Fxn,XEr,yZr,oK$,ZOn,EKm,tSW,q0r,cZL,VSr,pEm,RnL,aKw,UDW,Y0w,T8,BzL,fK$,JZ7,wEs,S08,jUw,gKV,$Dn,iOn,FF,XF,Obn,bbi,Zd,Em,Aqn,DbN,Pum,VW,V3N,pK7,mbs,UbL,a08,my,sOs,WK8,z5W,rqi,HbL,KKV,dbL,ncN,
ucm,ByL,vcL,Jqi,f0s,jOL,uP,vv,gcV,$bi,ibw,O$$,xBr,exr,CbV,b$m,QC$,Qd,Tc,oCW,M4,Pbw,cNr,De,VCW,IG8,zxL,rNr,H$r,dBr,BDN,fGL,JNr,wnW,SY8,NDL,$BL,i$L,ow,xu$,t6,lPm,CUW,Qfn,TlL,ewV,Ot$,btL,Ze,pH7,mum,Uur,hw8,zws,Htw,Kvr,dur,nbr,Rw,uDr,Bln,Yns,vbL,JGr,mF,$ur,CD7,Tar,bwm,AaW,zc,GQr,Ke,ne,dw,yaN,D3n,Zwr,t2r,qZV,BL,I9W,J6,ww,RR7,m38,W1L,hRN,zRW,Sj,raw,jj,Hwr,d3N,ngr,u6L,YZn,vg8,$O,f9L,JaL,eS,QE,jyr,Nar,ggn,$3r,xym,e6$,CON,Qpw,DyL,GS8,kSN,Xor,o_r,y_7,oU,ZK,E0,qvm,POV,qD,c_i,Iy8,Vlw,po$,Uyr,ayi,mys,spw,R6r,
WNw,VE,z68,n_N,pO,dy$,upW,h6r,YvV,U0,v_n,fyw,J_W,wo7,jpL,Svi,NMw,iGN,g_r,x9N,Tr8,k0N,Mhm,FH8,G0N,D98,XqW,ysr,E7m,Z1N,qbm,dz,cs7,Ifw,Vhw,pqV,afV,sg8,m9r,WHL,hor,BE,zow,rs8,KHL,n7L,Brr,ffw,v7w,Aq,JsN,d9V,i1L,xgi,eh$,l2N,oO,C_n,bZ8,kD$,Dgm,M6w,oms,y37,ZZ7,Emr,qO$,pUN,P_L,I2i,V67,Rhs,UgW,mgr,a2W,WRr,sRw,aO,hhr,r3i,HZr,uCL,Kb,dy,YOr,BTV,nb,wUs,vK,Jq,wy,gmW,S3,OAN,gy,xcr,e1m,lSL,C9r,OY,Qxs,bAm,Tb$,kLm,M_8,FWi,oEL,AN,yhL,ZAr,EEi,t_r,qQN,P9w,chL,ISW,GC,R1i,UcL,aSs,mc7,sx7,WW7,h1r,z1V,rhs,HAV,KWw,dcV,nE8,
qB,$cr,iA8,Pn,cn,IC,O3s,xwW,ern,lEr,CKw,QF8,b3s,MxL,Dww,Gui,FC$,XRL,UY,mQ,sY,Wn,rD,Hn,K$,yUr,n$,EUL,ub,txN,qAV,YC,PKW,cUr,IEs,hrW,rUr,uoi,fEL,vUn,zrr,JUs,jFs,k1L,xQ8,FSW,lCw,G1L,XZr,SC,yYn,NB,EXr,tUr,PHN,cY$,ICr,pZ8,ib,UQ$,aCN,mQL,sHr,WSm,hpL,zpL,Rpw,KSn,dQi,nXm,xb,JYr,wZm,fC8,jHL,Nqm,$Qr,isi,gXw,b_m,Lew,ABr,DjW,Mu,E0r,yBN,Z_m,IaW,ps7,R9V,Uj8,aar,mjV,slW,qu,uvs,BPL,dj7,Kem,Yx7,h9W,faL,eP$,Sx$,jlV,NPW,D5w,Fus,Mew,tei,AIs,Wen,EzL,wsL,x57,G7w,v0n,rB7,z9r,H_w,n0r,k77,dl,zPw,H7N,KuN,d58,nzr,j2i,xRL,ej8,
jb,Cww,TYL,MRV,AAL,GAL,F8w,opw,Z5m,yAn,Eps,kg,tRr,q9n,cAw,Pwr,Aa,acm,URi,Rjw,hjV,mR7,zjn,W87,rAr,H5r,uQr,dRN,npW,BY$,JA8,w8m,NYW,gp8,$RL,i5r,xSw,lwi,oy,Q$W,Lz$,bM7,k_L,G_7,Fz7,yiV,EVr,q3,PD,ciw,Iwr,cD,Iy,VK7,V5,pw,pbs,Ry,R28,UZ,USr,awL,m1,mS$,s$W,Wzr,h2L,z2s,HMV,rir,dSV,YMr,uGr,Bjw,vVW,Kzm,fwN,SML,wbL,nV7,j$r,NjV,ra,gVr,iMr,$Sm,OIN,xoL,lrW,eJr,CgV,Kw,bIw,TC7,QLL,ko7,Ats,M1r,XNL,ZIi,cti,RJm,da,mom,sLr,nw,W6V,vD,fw,dor,Yg,N3,nQ8,uur,BCn,vQm,JtN,Sen,jLN,NCV,gQ8,O0L,QKr,lOs,iIV,b0r,T4W,x_,Cm$,Lt8,CG,
kBr,AOs,MJ$,Dir,oir,GBr,XML,tJL,qaw,pMr,VJ$,aOn,rOr,H0L,diw,ulm,Yaw,vi7,fOW,JO8,Sas,jKn,N4r,i0r,lgr,Cfn,Ols,bli,Ln$,Tpr,QsL,k37,MW8,Dpr,G3m,Fni,XSr,op,yS,qy,co,ZlL,E4r,q5n,Ign,Ip,VS,VWr,pG,Upi,agW,mpN,Uv,rlW,n4V,Y5i,BpV,v4r,fgi,Jlm,jsi,mN,NpN,ilL,sv,Orr,Cew,Wo,TF7,h_,Ho,KG,Ldr,AfL,kaL,DZm,Gaw,Fdi,XFV,MdN,tdN,qK8,cfm,VdV,aNi,UZm,mZr,WdL,hFN,zFL,rfr,HrN,KdW,dZn,YKN,nun,Bo,vus,vo,fNW,J_,wM,wFi,SKm,jjr,NFw,gum,Sl,$Zs,irw,Oyi,x0m,lV8,CRL,QE8,byi,TVr,k5i,LhV,jl,MvL,G5r,Fh$,XxV,oxr,ExL,qS8,iO,cD8,VvV,px$,
R_s,U0i,aVs,m0s,sEi,Whi,tvL,PRr,h_r,z_V,d0r,nx$,ujr,YSr,l77,bhn,T1i,LBw,QPL,FBw,yn7,XYr,ZhV,q_W,cnW,VDs,a7V,UCV,hU$,k7,zUr,rn8,As,Hh8,M9,KBs,dCm,nsr,Y_7,uNr,B1W,vsN,f7r,JnL,ihm,xXm,lii,eCw,N1r,S_i,Q3n,Tvr,DXW,GyV,ohr,PGr,Iir,Xe,VPw,RCw,UXi,mXr,zC8,KiN,uJ7,YNi,BvV,vhr,j37,fir,ip7,O6r,x_m,lmw,Zf,Czi,b6i,T27,L_$,kk8,A5r,Ma8,D_8,F_w,Xgr,cq,oTN,y5V,ETN,Vo,Z6N,qF$,Var,Ub,pgm,Rbr,U_r,s17,W_m,am7,zb7,d_s,nT8,uIr,z0,YFw,J5r,wgs,dr,N2L,SFn,j1L,i6r,OYN,xsr,Qqs,L5L,Tfm,bY7,kUL,Mmm,DsN,yEW,GUn,ZYm,tms,Eo$,pji,
aMw,sqw,htL,K5w,fMn,t3,wjs,gor,iYi,Z2,mR,Q7W,kjs,Lwi,Mos,DKN,Fww,Gjn,XuN,oj8,sO,YAn,bor,Axw,TxV,UO,Eji,toi,q7r,PQ7,cxs,VoL,puN,RmN,UKr,avi,BU,mKs,s77,Wwn,hmL,zm7,wT,rxW,dKr,utW,Y7$,j7N,gjn,$KW,ios,xnN,eqn,e_,CXr,QdL,bLL,THn,LGn,kKr,MGL,GKV,Xrm,oqn,PX8,tGV,cdr,prw,RqW,kE,Unr,a57,mnr,hqr,rd7,zq8,KGV,nqs,GL,Y2L,BHr,u8r,vqV,f5r,wrL,jdr,S2r,NHm,Jdr,gqi,$nr,iLr,Odn,xLV,eVw,lX7,C48,QVr,LPi,TgL,kTr,MO$,Aci,Fx,DLr,Xtw,EaV,GTL,P4s,cci,IXn,VO7,ULW,rcW,Hdr,dLL,naN,Rx,vaW,SJi,gaW,UQ,xOL,$Lm,idV,OnV,Wrr,Krr,hh,
dON,n5N,uYr,B_m,v5$,f1L,J8N,SBW,jer,CZr,OjL,eZV,bj7,QXL,T8r,LX7,ATi,DAn,FXW,owN,yTW,Ewr,aBL,WXr,zZN,rTN,HjL,KXi,dAr,uZr,YgN,fBw,JTr,wm7,SgW,jXm,N8i,gww,$AV,xz7,Q0L,Jh,wb,S_,bzV,T6n,gb,kxr,Zz$,IL$,Plr,usL,YqN,B6r,MQ8,yML,FA8,fLs,JMW,wIn,Sqs,tQL,j0r,gRr,izL,eXi,lZL,Tu,AU,Mw,MVr,AXr,X$W,o68,VVr,RX7,aZr,mPW,hX8,rXm,zXr,dPr,uMi,SLN,JXL,BGs,w$r,v6L,j4i,igV,mC,sA,LTr,Qb8,AHL,MIr,Gzr,FTV,hU,XfL,ZNw,Evm,tIV,PEV,qjr,HR,UeN,BR,mew,sb7,f3,WTr,h$L,z$L,rHL,HNi,KT$,der,nvW,uV7,Yji,BeL,vvL,f_r,JH7,wfW,JU,Sjw,jbW,
NeW,gv8,$ew,iNr,OBs,xrV,eGr,lxN,Cps,QB7,Sx,TIr,ki8,MHi,FM8,yb8,ZBN,E2w,quN,cbi,IxW,VHr,Cs,mrN,Ur8,sBr,WMi,hG8,HB8,KM8,drs,uAV,oH,BIN,F9,fxr,Jbr,ya,wCL,Sur,jBL,NIN,Ew,OCs,egn,T98,bC$,kbV,ACw,ps,MXL,DV$,FDr,oB7,yCr,EBm,tXw,X4i,qXL,p4L,mVL,sMW,RH,WDm,hgL,dVL,zgW,HCW,KDn,fhi,uqV,JCr,SX8,N9m,gB7,$Vs,iC7,Oir,xmW,lbL,CAr,Qkr,biw,TEW,kMs,MzL,Fcr,Zir,qyN,cQr,p0r,z1,Rki,Umr,abL,mmw,sk8,hkW,zkw,rQw,Hi8,Kcr,dmr,nHr,uy$,Yy$,BEr,vHr,JQn,fb8,jkr,gHV,Ks,$mn,xts,OKV,Cir,QYs,bKi,LU7,MB8,FUN,GeW,Ayi,yyr,oPN,Pin,ZKi,
BZ,tB7,aYr,VBN,ppL,RK8,Uts,mtr,WUi,sYw,vZ,JY,nPw,zKr,dtn,KUm,rym,HKL,BU7,fYr,wpn,Jy$,Sts,$ts,gPr,OWV,evV,lpW,x28,C37,bWi,QWs,L2s,MTr,$X,D2i,GEW,oN$,qUr,Rvi,Ox,apr,hv7,K2w,HWV,zvW,r$r,bV,YUN,d2r,nNW,BWN,fpL,vNV,SUm,jWL,gN7,$2L,iWL,O9N,xvw,lJW,CJL,Ex,b9W,T0w,MAs,DvL,Il,GIm,Xl8,IJw,al,EeL,c4w,tAm,qWw,UvW,RlL,WfL,aJ8,hlL,zl7,sx,H9m,Kfs,dv$,r4W,zO,neL,Ws,ve$,ger,$vn,i9r,O4m,xdr,eNV,b4V,C2n,Q6L,l6m,LIm,Mtn,FIn,XWN,yoV,tt8,Z4r,ErL,qEr,coi,I6i,Vt$,pWs,RNr,Udm,md8,Bs,WIs,ro7,zNr,KIn,H4V,ddL,nrm,YEN,Bhr,i4w,
grm,eDr,ljr,kvs,ARs,Mr$,DFr,Gvw,F7$,yRn,ZEn,EkV,qDL,PSW,cRr,IjL,VrL,pkr,UFr,ajs,mF7,C7,zDi,hDn,W7w,sTr,HEN,nk7,K7$,YDi,BZr,vk8,fjr,JRn,wkV,SDL,jTL,OTr,NZL,gks,$FW,xUN,eTr,lFN,iEm,kz,bT8,LE7,TQs,M5,Agm,Mnr,DUL,kf8,Gfw,FEi,XB8,ofL,yg8,Ef8,tn7,qzr,PTr,Vn$,IF8,mU8,cgr,G7,si7,pBr,aFr,hTL,zTN,rgw,HTi,KEr,nfr,uXr,Yz$,vfV,Jg8,Szs,NQL,xIi,iTr,OvN,$Us,gfi,e88,lTN,Csm,QGi,R2,LZr,AVr,Mqs,DIn,G98,FZn,X_L,tqV,yVV,oAV,Zvr,sGL,aTW,EAm,UIi,dIr,nAr,uBL,YiN,Bt$,JV8,Sir,Nts,$Is,ivn,Okw,Cvr,lzr,QAw,TiW,je,AzL,Mum,DNn,
G2n,gS,$z,on7,yzr,EnW,Pvs,UNr,h7W,Wqr,z7w,Hkm,Kq7,dNr,nnn,uHs,Ycn,Qu,Bi7,NiL,gni,wA$,Jzm,jAL,ScV,euW,lWV,CMr,QQL,bJN,TsV,Arr,khL,L$W,ZJ$,EtN,tMr,crr,IWn,qVi,PMN,W$N,zur,HJi,daV,uOW,BsV,wVi,SVn,jQr,$a7,gtN,Nsr,iJm,ODr,x8N,eSN,l$w,CBL,Q57,bDm,TAn,Lb8,M9r,D8W,G4L,Fbr,X27,oIr,ZDs,EI8,t9r,qP$,PBL,ckN,RSm,U8i,m8V,Wbs,s5w,hSn,ot,zSW,rkN,HDr,Kb8,YPs,udi,BAw,vIr,f$7,Jkm,j5$,gIW,$8r,iDL,OPW,xfL,edL,lU7,C1i,QDL,bPL,LVr,TK8,kNN,AmV,Mks,DfL,GNr,FVw,X5r,oJw,It,ZPN,EJs,qsw,P1r,cmr,IU8,Vk8,p58,Ufi,aUs,sDL,hdn,rms,
nJL,KVN,HPr,dfW,uR7,Yss,BKm,Jmr,w5L,Ssi,jDW,gJn,$fL,iPL,xGN,OmW,eM7,lIr,C7s,TdN,L9r,kP7,Aww,Myr,DGL,XGw,oZr,rY,P78,cwi,Vyw,UGm,RMr,aIi,mGi,H8,dY,W9i,hM$,Yp,B8,K97,zMW,rwm,uU$,Yp8,BdV,vZs,SpN,NdL,gZ7,$Gn,im7,ORw,eem,lAV,Cyi,QNm,bR8,Tn$,Ljw,wY,kZN,AK7,jR,M0n,DY7,GZr,FjN,X7L,oMr,$p,iw,yKm,ZRr,OM,EMs,t0L,q3i,Pym,IAr,V0w,Rer,Wji,sNi,mY8,hem,zer,Y3m,Kj$,dYs,nM8,HR7,u$7,eK,fAV,JKN,w77,S3n,jNN,gMr,iRi,eBV,b8r,Caw,lc,l8V,Mcm,GV$,CM,FmL,XaL,ol8,Z8n,ElL,tcL,qk7,cFi,I8N,Vcn,RBr,UE8,mE8,srW,H87,rFV,dEW,nln,u0V,
BmN,vl7,f8m,NmV,glr,$EV,i8w,eHr,QJ8,MS,G_,Dw,FG,bXV,TRV,LJs,kw8,AWr,DWr,Gww,FJ8,X9w,yWs,ZXr,E$s,XG,tFr,qR7,Ior,VFL,o$,yn,UWr,p9r,aow,WJL,mWN,hHL,rWL,qS,HXW,KJr,uhr,BR$,Pb,foL,JW$,w9N,SRV,jJi,NRn,g$L,$Wn,eaw,lRm,bcL,CdN,Q8r,T3r,MLr,Lar,A1n,Dlw,GWr,Fas,y1r,Zc7,EYn,qI8,Pdi,Ulm,RaL,zaL,KaW,sM,dli,vKr,nYm,uiN,B3r,J1i,wQ7,OFm,x68,eyN,lkW,CWL,Q_n,T5N,L4i,AuL,D6r,kF8,M88,F4r,GFm,o3r,E3V,yuL,t8r,qGw,PWn,cur,IkW,V8L,RyL,pc7,s_W,zyn,W4w,ru$,HFi,K4L,YV,d67,n3W,vb,YGW,uKL,B5L,v3L,Jur,wcm,j_w,N5m,g3w,$6r,x7V,lqV,
bSL,QvL,T$r,LlW,MYs,qoW,XhL,c9s,IqN,phV,R3r,svW,WlV,h3N,z3V,r9L,HSm,d7r,n98,uTL,B$r,Yom,v9W,jvs,N$8,g9L,$7$,iSL,Oqr,xHs,l4N,bqw,TJr,Lsr,kRL,AvN,Mi$,Fsr,GRm,yvL,E1N,tiL,q6r,P0V,cvr,Vir,I4L,REL,WsL,Hqr,rvr,Ksr,dHN,n1i,Y6W,Go,v1L,ys,Jvi,S6w,jhs,efL,CjW,Tun,kqs,ApN,DJ8,Gqs,Fpr,oFi,Za7,EFr,qHn,IHL,cpV,Pjw,cN,pzr,V4$,Rfm,UJ$,aHw,mJr,sIs,Wpr,hfm,rpV,Har,KpL,dJw,nFL,u7V,YH$,BuN,vFs,Jpw,wz7,x1w,eAi,l3W,Qos,bHL,TBr,A27,m6,oDr,y2r,ZHr,EDN,tss,q$W,WN,bo,ht,rC,sor,WkV,r2r,KkL,HHr,KI,d1W,nDN,uP7;
OVr=function(){var O,x;return typeof CSS!=="undefined"&&((x=(O=CSS).supports)==null?void 0:x.call(O,"selector(:has(*))"))};
x$i=function(O){return O.visibility!=="hidden"&&O.display!=="none"};
lnV=function(O){if(OVr()||O.tagName!=="DETAILS"?!O.matches(esN):O.querySelector("summary")!==null)return-1;O=O.getAttribute("tabindex")||"0";return Number(O)};
Crr=function(O){return O.some(function(x){return lnV(x)>0})};
Qms=function(O){if(O.textContent||O.ariaLabel)return!0;if(O instanceof HTMLInputElement){if(!O.labels)return!1;O=_.T(O.labels);for(var x=O.next();!x.done;x=O.next())if(x.value.textContent)return!0}return!1};
bV$=function(O){return O.sort(function(x,e){return lnV(e)-lnV(x)})};
_.T7r=function(O){O=Array.from(O.querySelectorAll(esN)).filter(function(x){return(x$i(x.style)?x$i(window.getComputedStyle(x)):!1)&&Qms(x)});
return Crr(O)?bV$(O):O};
_.ew=function(O,x){if(Error.captureStackTrace)Error.captureStackTrace(this,_.ew);else{var e=Error().stack;e&&(this.stack=e)}O&&(this.message=String(O));x!==void 0&&(this.cause=x)};
lr=function(){throw Error("E");};
LLW=function(O,x){x=String.fromCharCode.apply(null,x);return O==null?x:O+x};
D$7=function(O){var x=!1;x=x===void 0?!1:x;if(kri){if(x&&(ALm?!O.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(O)))throw Error("F");O=(Mwr||(Mwr=new TextEncoder)).encode(O)}else{for(var e=0,l=new Uint8Array(3*O.length),C=0;C<O.length;C++){var Q=O.charCodeAt(C);if(Q<128)l[e++]=Q;else{if(Q<2048)l[e++]=Q>>6|192;else{if(Q>=55296&&Q<=57343){if(Q<=56319&&C<O.length){var L=O.charCodeAt(++C);if(L>=56320&&L<=57343){Q=(Q-55296)*1024+L-56320+65536;l[e++]=Q>>18|
240;l[e++]=Q>>12&63|128;l[e++]=Q>>6&63|128;l[e++]=Q&63|128;continue}else C--}if(x)throw Error("F");Q=65533}l[e++]=Q>>12|224;l[e++]=Q>>6&63|128}l[e++]=Q&63|128}}O=e===l.length?l:l.subarray(0,e)}return O};
QN=function(O){_.CV.setTimeout(function(){throw O;},0)};
_.br=function(O,x){return O.lastIndexOf(x,0)==0};
LV=function(O,x){var e=O.length-x.length;return e>=0&&O.indexOf(x,e)==e};
_.AL=function(O){return/^[\s\xa0]*$/.test(O)};
_.M$=function(O,x){return O.indexOf(x)!=-1};
_.Dn=function(O,x){return _.M$(O.toLowerCase(),x.toLowerCase())};
_.om=function(O,x){var e=0;O=Gr(String(O)).split(".");x=Gr(String(x)).split(".");for(var l=Math.max(O.length,x.length),C=0;e==0&&C<l;C++){var Q=O[C]||"",L=x[C]||"";do{Q=/(\d*)(\D*)(.*)/.exec(Q)||["","","",""];L=/(\d*)(\D*)(.*)/.exec(L)||["","","",""];if(Q[0].length==0&&L[0].length==0)break;e=Grn(Q[1].length==0?0:parseInt(Q[1],10),L[1].length==0?0:parseInt(L[1],10))||Grn(Q[2].length==0,L[2].length==0)||Grn(Q[2],L[2]);Q=Q[3];L=L[3]}while(e==0)}return e};
Grn=function(O,x){return O<x?-1:O>x?1:0};
_.E8=function(){var O=_.CV.navigator;return O&&(O=O.userAgent)?O:""};
FLw=function(O){if(!tL||!Pi)return!1;for(var x=0;x<Pi.brands.length;x++){var e=Pi.brands[x].brand;if(e&&_.M$(e,O))return!0}return!1};
Im=function(O){return _.M$(_.E8(),O)};
pV=function(){return tL?!!Pi&&Pi.brands.length>0:!1};
XiL=function(){return pV()?!1:Im("Opera")};
oWW=function(){return pV()?!1:Im("Trident")||Im("MSIE")};
yLn=function(){return pV()?FLw("Microsoft Edge"):Im("Edg/")};
U8=function(){return Im("Firefox")||Im("FxiOS")};
_.ZVL=function(){return Im("Safari")&&!(_.am()||(pV()?0:Im("Coast"))||XiL()||(pV()?0:Im("Edge"))||yLn()||(pV()?FLw("Opera"):Im("OPR"))||U8()||Im("Silk")||Im("Android"))};
_.am=function(){return pV()?FLw("Chromium"):(Im("Chrome")||Im("CriOS"))&&!(pV()?0:Im("Edge"))||Im("Silk")};
_.EWi=function(){return Im("Android")&&!(_.am()||U8()||XiL()||Im("Silk"))};
tws=function(O){var x={};O.forEach(function(e){x[e[0]]=e[1]});
return function(e){return x[e.find(function(l){return l in x})]||""}};
q8m=function(O){var x=_.E8();if(O==="Internet Explorer"){if(oWW())if((O=/rv: *([\d\.]*)/.exec(x))&&O[1])x=O[1];else{O="";var e=/MSIE +([\d\.]+)/.exec(x);if(e&&e[1])if(x=/Trident\/(\d.\d)/.exec(x),e[1]=="7.0")if(x&&x[1])switch(x[1]){case "4.0":O="8.0";break;case "5.0":O="9.0";break;case "6.0":O="10.0";break;case "7.0":O="11.0"}else O="7.0";else O=e[1];x=O}else x="";return x}var l=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");e=[];for(var C;C=l.exec(x);)e.push([C[1],C[2],C[3]||void 0]);
x=tws(e);switch(O){case "Opera":if(XiL())return x(["Version","Opera"]);if(pV()?FLw("Opera"):Im("OPR"))return x(["OPR"]);break;case "Microsoft Edge":if(pV()?0:Im("Edge"))return x(["Edge"]);if(yLn())return x(["Edg"]);break;case "Chromium":if(_.am())return x(["Chrome","CriOS","HeadlessChrome"])}return O==="Firefox"&&U8()||O==="Safari"&&_.ZVL()||O==="Android Browser"&&_.EWi()||O==="Silk"&&Im("Silk")?(x=e[2])&&x[1]||"":""};
_.PrL=function(O){if(pV()&&O!=="Silk"){var x=Pi.brands.find(function(e){return e.brand===O});
if(!x||!x.version)return NaN;x=x.version.split(".")}else{x=q8m(O);if(x==="")return NaN;x=x.split(".")}return x.length===0?NaN:Number(x[0])};
s8=function(){return tL?!!Pi&&!!Pi.platform:!1};
_.cL$=function(){return s8()?Pi.platform==="Android":Im("Android")};
Inm=function(){return Im("iPhone")&&!Im("iPod")&&!Im("iPad")};
_.Wi=function(){return Inm()||Im("iPad")||Im("iPod")};
_.Vws=function(){return s8()?Pi.platform==="macOS":Im("Macintosh")};
_.pii=function(){return s8()?Pi.platform==="Windows":Im("Windows")};
_.Rsr=function(){return s8()?Pi.platform==="Chrome OS":Im("CrOS")};
_.zr=function(O){return O[O.length-1]};
_.r7=function(O,x,e){x=_.U$w(O,x,e);return x<0?null:typeof O==="string"?O.charAt(x):O[x]};
_.U$w=function(O,x,e){for(var l=O.length,C=typeof O==="string"?O.split(""):O,Q=0;Q<l;Q++)if(Q in C&&x.call(e,C[Q],Q,O))return Q;return-1};
an$=function(O){for(var x=_.Hi,e=typeof O==="string"?O.split(""):O,l=O.length-1;l>=0;l--)if(l in e&&x.call(void 0,e[l],l,O))return l;return-1};
_.ur=function(O,x){return _.d7(O,x)>=0};
_.m$L=function(O,x){_.ur(O,x)||O.push(x)};
_.YW=function(O,x){x=_.d7(O,x);var e;(e=x>=0)&&_.smr(O,x);return e};
_.smr=function(O,x){Array.prototype.splice.call(O,x,1)};
_.Bi=function(O){var x=O.length;if(x>0){for(var e=Array(x),l=0;l<x;l++)e[l]=O[l];return e}return[]};
_.fV=function(O,x){for(var e=1;e<arguments.length;e++){var l=arguments[e];if(_.vi(l)){var C=O.length||0,Q=l.length||0;O.length=C+Q;for(var L=0;L<Q;L++)O[C+L]=l[L]}else O.push(l)}};
_.hs8=function(O,x,e,l){Array.prototype.splice.apply(O,WL7(arguments,1))};
WL7=function(O,x,e){return arguments.length<=2?Array.prototype.slice.call(O,x):Array.prototype.slice.call(O,x,e)};
zsn=function(O,x){x=x||O;for(var e=0,l=0,C={};l<O.length;){var Q=O[l++],L=_.w7(Q)?"o"+_.N$(Q):(typeof Q).charAt(0)+Q;Object.prototype.hasOwnProperty.call(C,L)||(C[L]=!0,x[e++]=Q)}x.length=e};
_.HVr=function(O,x,e){e=e||_.rL8;for(var l=0,C=O.length,Q;l<C;){var L=l+(C-l>>>1);var k=e(x,O[L]);k>0?l=L+1:(C=L,Q=!k)}return Q?l:-l-1};
_.g7=function(O,x,e){if(!_.vi(O)||!_.vi(x)||O.length!=x.length)return!1;var l=O.length;e=e||KLi;for(var C=0;C<l;C++)if(!e(O[C],x[C]))return!1;return!0};
_.rL8=function(O,x){return O>x?1:O<x?-1:0};
KLi=function(O,x){return O===x};
d$L=function(O,x,e){x=Array.prototype.splice.call(O,x,1);Array.prototype.splice.call(O,e,0,x[0])};
urN=function(O){return nWW[O]||""};
vWn=function(O){if(!Y8W)return _.ir(O);O=B7r.test(O)?O.replace(B7r,urN):O;O=atob(O);for(var x=new Uint8Array(O.length),e=0;e<O.length;e++)x[e]=O.charCodeAt(e);return x};
fnN=function(O,x){O.__closure__error__context__984382||(O.__closure__error__context__984382={});O.__closure__error__context__984382.severity=x};
_.xd=function(O){O=Error(O);fnN(O,"warning");return O};
wiW=function(O,x){if(O!=null){var e;var l=(e=JL8)!=null?e:JL8={};e=l[O]||0;e>=x||(l[O]=e+1,O=Error(),fnN(O,"incident"),QN(O))}};
e$=function(O,x,e){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(e===void 0?0:e)&&Symbol.for&&O?Symbol.for(O):O!=null?Symbol(O):Symbol():x};
N7L=function(O,x){lF||_.C2 in O||S8$(O,jmr);O[_.C2]|=x};
L2=function(O,x){lF||_.C2 in O||S8$(O,jmr);O[_.C2]=x};
gWV=function(O){if(4&O)return 512&O?512:1024&O?1024:0};
kd=function(O){N7L(O,34);return O};
$$W=function(O){N7L(O,32);return O};
AJ=function(){return typeof BigInt==="function"};
oz=function(O,x){return x===void 0?O.copyOnWrite!==Mk&&!!(2&(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.C2]|0)):!!(2&x)&&O.copyOnWrite!==Mk};
_.az=function(O,x){if(O!=null)if(typeof O==="string")O=O?new qk(O,Rz):_.UT();else if(O.constructor!==qk)if(iVW&&O!=null&&O instanceof Uint8Array)O=O.length?new qk(new Uint8Array(O),Rz):_.UT();else{if(!x)throw Error();O=void 0}return O};
O2V=function(O,x){if(typeof x!=="number"||x<0||x>=O.length)throw Error();};
xkV=function(O,x,e){var l=x&128?0:-1,C=O.length,Q;if(Q=!!C)Q=O[C-1],Q=Q!=null&&typeof Q==="object"&&Q.constructor===Object;var L=C+(Q?-1:0);for(x=x&128?1:0;x<L;x++)e(x-l,O[x]);if(Q){O=O[C-1];for(var k in O)!isNaN(k)&&e(+k,O[k])}};
Wd=function(O){return O&128?sT:void 0};
hJ=function(O){O.isGuard_doNotManuallySetPrettyPlease=!0;return O};
lDr=function(){var O=eLr;return hJ(function(x){for(var e in O)if(x===O[e]&&!/^[0-9]+$/.test(e))return!0;return!1})};
_.rN=function(O){var x=O;if(CFi(x)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(x))throw Error(String(x));}else if(Qzn(x)&&!Number.isSafeInteger(x))throw Error(String(x));return b2L?BigInt(O):O=TNm(O)?O?"1":"0":CFi(O)?O.trim()||"0":String(O)};
L3r=function(O,x){if(O.length>x.length)return!1;if(O.length<x.length||O===x)return!0;for(var e=0;e<O.length;e++){var l=O[e],C=x[e];if(l>C)return!1;if(l<C)return!0}};
kp$=function(O){var x=O>>>0;Hd=x;K2=(O-x)/4294967296>>>0};
dN=function(O){if(O<0){kp$(-O);var x=_.T(AJL(Hd,K2));O=x.next().value;x=x.next().value;Hd=O>>>0;K2=x>>>0}else kp$(O)};
Dki=function(O){var x=M$i||(M$i=new DataView(new ArrayBuffer(8)));x.setFloat32(0,+O,!0);K2=0;Hd=x.getUint32(0,!0)};
Gpr=function(O,x){var e=x*4294967296+(O>>>0);return Number.isSafeInteger(e)?e:_.n2(O,x)};
uF=function(O,x){var e=x&2147483648;e&&(O=~O+1>>>0,x=~x>>>0,O==0&&(x=x+1>>>0));O=Gpr(O,x);return typeof O==="number"?e?-O:O:e?"-"+O:O};
F3r=function(O){var x=Hd,e=K2,l=e>>31;e=(e<<1|x>>>31)^l;O(x<<1^l,e)};
XdW=function(O,x){var e=-(O&1);O=(O>>>1|x<<31)^e;return uF(O,x>>>1^e)};
_.n2=function(O,x){x>>>=0;O>>>=0;if(x<=2097151)var e=""+(4294967296*x+O);else AJ()?e=""+(BigInt(x)<<BigInt(32)|BigInt(O)):(e=(O>>>24|x<<8)&16777215,x=x>>16&65535,O=(O&16777215)+e*6777216+x*6710656,e+=x*8147497,x*=2,O>=1E7&&(e+=O/1E7>>>0,O%=1E7),e>=1E7&&(x+=e/1E7>>>0,e%=1E7),e=x+odi(e)+odi(O));return e};
odi=function(O){O=String(O);return"0000000".slice(O.length)+O};
_.yJL=function(O,x){x&2147483648?AJ()?O=""+(BigInt(x|0)<<BigInt(32)|BigInt(O>>>0)):(x=_.T(AJL(O,x)),O=x.next().value,x=x.next().value,O="-"+_.n2(O,x)):O=_.n2(O,x);return O};
Yd=function(O){if(O.length<16)dN(Number(O));else if(AJ())O=BigInt(O),Hd=Number(O&BigInt(4294967295))>>>0,K2=Number(O>>BigInt(32)&BigInt(4294967295));else{var x=+(O[0]==="-");K2=Hd=0;for(var e=O.length,l=x,C=(e-x)%6+x;C<=e;l=C,C+=6)l=Number(O.slice(l,C)),K2*=1E6,Hd=Hd*1E6+l,Hd>=4294967296&&(K2+=Math.trunc(Hd/4294967296),K2>>>=0,Hd>>>=0);x&&(x=_.T(AJL(Hd,K2)),O=x.next().value,x=x.next().value,Hd=O,K2=x)}};
AJL=function(O,x){x=~x;O?O=~O+1:x+=1;return[O,x]};
Bd=function(O){return Array.prototype.slice.call(O)};
_.vd=function(O,x){throw Error(x===void 0?"unexpected value "+O+"!":x);};
_.wN=function(O){if(O!=null&&typeof O!=="number")throw Error("L`"+typeof O+"`"+O);return O};
_.j$=function(O){if(O==null||typeof O==="number")return O;if(O==="NaN"||O==="Infinity"||O==="-Infinity")return Number(O)};
Z28=function(O){if(O!=null&&typeof O!=="boolean")throw Error("M`"+_.Nk(O)+"`"+O);return O};
_.EdL=function(O){if(O==null||typeof O==="boolean")return O;if(typeof O==="number")return!!O};
_.iF=function(O){switch(typeof O){case "bigint":return!0;case "number":return gN(O);case "string":return t$r.test(O);default:return!1}};
_.O4=function(O){if(!gN(O))throw _.xd("enum");return O|0};
_.xL=function(O){return O==null?O:gN(O)?O|0:void 0};
qTL=function(O){if(typeof O!=="number")throw _.xd("int32");if(!gN(O))throw _.xd("int32");return O|0};
_.bL=function(O){return O==null?O:qTL(O)};
_.TX=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return gN(O)?O|0:void 0};
_.PFr=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return gN(O)?O>>>0:void 0};
pd8=function(O){var x=0;x=x===void 0?0:x;if(!_.iF(O))throw _.xd("int64");var e=typeof O;switch(x){case 512:switch(e){case "string":return LQ(O);case "bigint":return String(kL(64,O));default:return cJi(O)}case 1024:switch(e){case "string":return IDr(O);case "bigint":return _.rN(kL(64,O));default:return V$N(O)}case 0:switch(e){case "string":return LQ(O);case "bigint":return _.rN(kL(64,O));default:return Mh(O)}default:return _.vd(x,"Unknown format requested type for int64")}};
DQ=function(O){return O==null?O:pd8(O)};
RLV=function(O){var x=O.length;if(O[0]==="-"?x<20||x===20&&O<="-9223372036854775808":x<19||x===19&&O<="9223372036854775807")return O;Yd(O);return _.yJL(Hd,K2)};
Uk7=function(O){if(O[0]==="-")var x=!1;else x=O.length,x=x<20?!0:x===20&&O<="18446744073709551615";if(x)return O;Yd(O);return _.n2(Hd,K2)};
Mh=function(O){O=GX(O);Fw(O)||(dN(O),O=uF(Hd,K2));return O};
_.aDw=function(O){O=GX(O);O>=0&&Fw(O)||(dN(O),O=Gpr(Hd,K2));return O};
cJi=function(O){O=GX(O);Fw(O)?O=String(O):(dN(O),O=_.yJL(Hd,K2));return O};
_.mkr=function(O){O=GX(O);O>=0&&Fw(O)?O=String(O):(dN(O),O=_.n2(Hd,K2));return O};
LQ=function(O){var x=GX(Number(O));if(Fw(x))return String(x);x=O.indexOf(".");x!==-1&&(O=O.substring(0,x));return RLV(O)};
IDr=function(O){var x=GX(Number(O));if(Fw(x))return _.rN(x);x=O.indexOf(".");x!==-1&&(O=O.substring(0,x));return AJ()?_.rN(kL(64,BigInt(O))):_.rN(RLV(O))};
V$N=function(O){return Fw(O)?_.rN(Mh(O)):_.rN(cJi(O))};
_.szL=function(O){return Fw(O)?_.rN(_.aDw(O)):_.rN(_.mkr(O))};
_.W3i=function(O){var x=GX(Number(O));if(Fw(x)&&x>=0)return String(x);x=O.indexOf(".");x!==-1&&(O=O.substring(0,x));return Uk7(O)};
_.hLi=function(O){var x=GX(Number(O));if(Fw(x)&&x>=0)return _.rN(x);x=O.indexOf(".");x!==-1&&(O=O.substring(0,x));return AJ()?_.rN((0,_.y$)(64,BigInt(O))):_.rN(Uk7(O))};
_.rJr=function(O){if(O==null)return O;if(typeof O==="bigint")return zLi(O)?O=Number(O):(O=kL(64,O),O=zLi(O)?Number(O):String(O)),O;if(_.iF(O))return typeof O==="number"?Mh(O):LQ(O)};
H27=function(O,x){x=x===void 0?!1:x;var e=typeof O;if(O==null)return O;if(e==="bigint")return String(kL(64,O));if(_.iF(O))return e==="string"?LQ(O):x?cJi(O):Mh(O)};
_.K3w=function(O){var x=typeof O;if(O==null)return O;if(x==="bigint")return _.rN(kL(64,O));if(_.iF(O))return x==="string"?IDr(O):V$N(O)};
dkV=function(O){if(O==null)return O;var x=typeof O;if(x==="bigint")return String(kL(64,O));if(_.iF(O)){if(x==="string")return LQ(O);if(x==="number")return Mh(O)}};
nds=function(O){if(O==null)return O;var x=typeof O;if(x==="bigint")return String((0,_.y$)(64,O));if(_.iF(O)){if(x==="string")return _.W3i(O);if(x==="number")return _.aDw(O)}};
_.ZQ=function(O){if(typeof O!=="string")throw Error();return O};
te=function(O){if(O!=null&&typeof O!=="string")throw Error();return O};
_.PT=function(O){return O==null||typeof O==="string"?O:void 0};
BNr=function(O,x,e,l){if(O!=null&&O[cT]===pQ)return O;if(!Array.isArray(O))return e?l&2?x[u4r]||(x[u4r]=YTw(x)):new x:void 0;e=O[_.C2]|0;l=e|l&32|l&2;l!==e&&L2(O,l);return new x(O)};
YTw=function(O){O=new O;kd(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return O};
vdr=function(O,x,e){O=x?qTL(O):_.TX(O);return O==null?e?0:void 0:O|0};
fD8=function(O){return O};
JJn=function(O){return O};
ST7=function(O,x,e,l,C,Q){O=BNr(O,l,e,Q);C&&(O=wdn(O));return O};
jzi=function(O){return[O,this.get(O)]};
$kr=function(){return NN8||(NN8=new Ru(kd([]),void 0,void 0,void 0,gdV))};
i2r=function(O){var x=U4(WT);return x?O[x]:void 0};
eO7=function(O,x){var e=e===void 0?!1:e;if(U4(OQm)&&U4(WT)&&void 0===OQm){var l=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=l[WT];if(!C)return;if(C=C.reviveUnknownFields)try{C(l,x,xhr);return}catch(Q){QN(Q)}}e&&(O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(e=U4(WT))&&e in O&&(O=O[e])&&delete O[x])};
CL$=function(O,x){var e=U4(WT),l;lF&&e&&((l=O[e])==null?void 0:l[x])!=null&&wiW(lQr,3)};
bQ$=function(O,x){x<100||wiW(QuN,1)};
Mpm=function(O,x,e,l){var C=l!==void 0;l=!!l;var Q=U4(WT),L;!C&&lF&&Q&&(L=O[Q])&&TL8(L,bQ$);Q=[];var k=O.length;L=4294967295;var M=!1,G=!!(x&64),X=G?x&128?0:-1:void 0;if(!(x&1)){var y=k&&O[k-1];y!=null&&typeof y==="object"&&y.constructor===Object?(k--,L=k):y=void 0;if(G&&!(x&128)&&!C){M=!0;var Z;L=((Z=LYW)!=null?Z:fD8)(L-X,X,O,y,void 0)+X}}x=void 0;for(Z=0;Z<k;Z++){var E=O[Z];if(E!=null&&(E=e(E,l))!=null)if(G&&Z>=L){var P=Z-X,U=void 0;((U=x)!=null?U:x={})[P]=E}else Q[Z]=E}if(y)for(var W in y)k=y[W],
k!=null&&(k=e(k,l))!=null&&(Z=+W,E=void 0,G&&!Number.isNaN(Z)&&(E=Z+X)<L?Q[E]=k:(Z=void 0,((Z=x)!=null?Z:x={})[W]=k));x&&(M?Q.push(x):Q[L]=x);C&&U4(WT)&&(O=i2r(O))&&O instanceof kXi&&(Q[WT]=AeV(O));return Q};
GXw=function(O){O[0]=Dhr(O[0]);O[1]=Dhr(O[1]);return O};
Dhr=function(O){switch(typeof O){case "number":return Number.isFinite(O)?O:""+O;case "bigint":return zLi(O)?Number(O):""+O;case "boolean":return O?1:0;case "object":if(Array.isArray(O)){var x=O[_.C2]|0;return O.length===0&&x&1?void 0:Mpm(O,x,Dhr)}if(O!=null&&O[cT]===pQ)return FYm(O);if(O instanceof qk){x=O.JSC$8815_value_;if(x==null)O="";else if(typeof x==="string")O=x;else{if(Y8W){for(var e="",l=0,C=x.length-10240;l<C;)e+=String.fromCharCode.apply(null,x.subarray(l,l+=10240));e+=String.fromCharCode.apply(null,
l?x.subarray(l):x);x=btoa(e)}else x=_.zX(x);O=O.JSC$8815_value_=x}return O}if(O instanceof Ru)return O=O.size!==0?Array.from(HT.prototype.entries.call(O),GXw):void 0,O;return}return O};
dL=function(O,x){if(x){LYW=x==null||x===fD8||x[XTW]!==oLm?fD8:x;try{return FYm(O)}finally{LYW=void 0}}return FYm(O)};
FYm=function(O){O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Mpm(O,O[_.C2]|0,Dhr)};
ELr=function(O){switch(typeof O){case "boolean":return yeL||(yeL=[0,void 0,!0]);case "number":return O>0?void 0:O===0?ZQV||(ZQV=[0,void 0]):[-O,void 0];case "string":return[0,O];case "object":return O}};
uL=function(O,x,e){return O=_.nQ(O,x[0],x[1],e?1:2)};
_.nQ=function(O,x,e,l){l=l===void 0?0:l;if(O==null){var C=32;e?(O=[e],C|=128):O=[];x&&(C=C&-8380417|(x&1023)<<13)}else{if(!Array.isArray(O))throw Error("O");C=O[_.C2]|0;if(tpr&&1&C)throw Error("P");2048&C&&!(2&C)&&q47();if(C&256)throw Error("Q");if(C&64)return l!==0||C&2048||L2(O,C|2048),O;if(e&&(C|=128,e!==O[0]))throw Error("R");a:{e=O;C|=64;var Q=e.length;if(Q){var L=Q-1,k=e[L];if(k!=null&&typeof k==="object"&&k.constructor===Object){x=C&128?0:-1;L-=x;if(L>=1024)throw Error("T");for(var M in k)Q=
+M,Q<L&&(e[Q+x]=k[M],delete k[M]);C=C&-8380417|(L&1023)<<13;break a}}if(x){M=Math.max(x,Q-(C&128?0:-1));if(M>1024)throw Error("U");C=C&-8380417|(M&1023)<<13}}}C|=64;l===0&&(C|=2048);L2(O,C);return O};
q47=function(){if(tpr)throw Error("S");wiW(PL7,5)};
pTr=function(O,x){if(typeof O!=="object")return O;if(Array.isArray(O)){var e=O[_.C2]|0;return O.length===0&&e&1?void 0:cer(O,e,x)}if(O!=null&&O[cT]===pQ)return IQn(O);if(O instanceof Ru){x=O.arrayState;if(x&2)return O;if(!O.size)return;e=kd(Vpm(O));if(O.valueCtor)for(O=0;O<e.length;O++){var l=e[O],C=l[1];C==null||typeof C!=="object"?C=void 0:C!=null&&C[cT]===pQ?C=IQn(C):Array.isArray(C)?C=cer(C,C[_.C2]|0,!!(x&32)):C=void 0;l[1]=C}return e}if(O instanceof qk)return O};
cer=function(O,x,e){if(x&2)return O;!e||4096&x||16&x?O=YL(O,x,!1,e&&!(x&16)):(N7L(O,34),x&4&&Object.freeze(O));return O};
ROn=function(O,x,e){O=new O.constructor(x);e&&(O.copyOnWrite=Mk);O.noLegacyNull=Mk;return O};
IQn=function(O){var x=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=x[_.C2]|0;return oz(O,e)?O:UhN(O,x,e)?ROn(O,x):YL(x,e)};
YL=function(O,x,e,l){l!=null||(l=!!(34&x));O=Mpm(O,x,pTr,l);l=32;e&&(l|=2);x=x&8380609|l;L2(O,x);return O};
wdn=function(O){var x=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=x[_.C2]|0;return oz(O,e)?UhN(O,x,e)?ROn(O,x,!0):new O.constructor(YL(x,e,!1)):O};
BT=function(O){if(O.copyOnWrite!==Mk)return!1;var x=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=YL(x,x[_.C2]|0);N7L(x,2048);O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=x;O.copyOnWrite=void 0;O.noLegacyNull=void 0;return!0};
vT=function(O){if(!BT(O)&&oz(O,O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.C2]|0))throw Error();};
fQ=function(O,x){x===void 0&&(x=O[_.C2]|0);x&32&&!(x&4096)&&L2(O,x|4096)};
UhN=function(O,x,e){return e&2?!0:e&32&&!(e&4096)?(L2(x,e|2),O.copyOnWrite=Mk,!0):!1};
wL=function(O,x,e,l,C){var Q=e+(C?0:-1),L=O.length-1;if(L>=1+(C?0:-1)&&Q>=L){var k=O[L];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[e]=l,x}if(Q<=L)return O[Q]=l,x;if(l!==void 0){var M;L=((M=x)!=null?M:x=O[_.C2]|0)>>13&1023||536870912;e>=L?l!=null&&(Q={},O[L+(C?0:-1)]=(Q[e]=l,Q)):O[Q]=l}return x};
_.Nh=function(O,x,e,l,C){var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=Q[_.C2]|0;l=oz(O,L)?1:l;C=!!C||l===3;l===2&&BT(O)&&(Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=Q[_.C2]|0);O=aQL(Q,x);var k=O===Sp?7:O[_.C2]|0,M=mh8(k,L);var G=4&M?!1:!0;if(G){4&M&&(O=Bd(O),k=0,M=jp(M,L),L=wL(Q,L,x,O));for(var X=0,y=0;X<O.length;X++){var Z=e(O[X]);Z!=null&&(O[y++]=Z)}y<X&&(O.length=y);e=(M|4)&-513;M=e&=-1025;M&=-4097}M!==k&&(L2(O,M),2&M&&Object.freeze(O));return O=sum(O,M,Q,
L,x,l,G,C)};
sum=function(O,x,e,l,C,Q,L,k){var M=x;Q===1||(Q!==4?0:2&x||!(16&x)&&32&l)?gL(x)||(x|=!O.length||L&&!(4096&x)||32&l&&!(4096&x||16&x)?2:256,x!==M&&L2(O,x),Object.freeze(O)):(Q===2&&gL(x)&&(O=Bd(O),M=0,x=jp(x,l),l=wL(e,l,C,O)),gL(x)||(k||(x|=16),x!==M&&L2(O,x)));2&x||!(4096&x||16&x)||fQ(e,l);return O};
aQL=function(O,x,e){O=$L(O,x,e);return Array.isArray(O)?O:Sp};
mh8=function(O,x){2&x&&(O|=2);return O|1};
gL=function(O){return!!(2&O)&&!!(4&O)||!!(256&O)};
WYr=function(O){return _.az(O,!0)};
hOV=function(O){O=Bd(O);for(var x=0;x<O.length;x++){var e=O[x]=Bd(O[x]);Array.isArray(e[1])&&(e[1]=kd(e[1]))}return O};
zO8=function(O,x){var e=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=e[_.C2]|0;a:{var C=l;l=oz(O,l);!l&&BT(O)&&(e=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=e[_.C2]|0);var Q=$L(e,x);O=!1;if(Q==null){if(l){x=$kr();break a}Q=[]}else if(Q.constructor===Ru)if(Q.arrayState&2&&!l)Q=Vpm(Q);else{x=Q;break a}else Array.isArray(Q)?O=!!((Q[_.C2]|0)&2):Q=[];if(l){if(!Q.length){x=$kr();break a}O||(O=!0,kd(Q))}else O&&(O=!1,Q=hOV(Q));!O&&C&32&&$$W(Q);l=new Ru(Q,void 0,vdr,vdr);C=wL(e,
C,x,l);O||fQ(e,C);x=l}return x};
_.iL=function(O,x,e,l){vT(O);var C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=C[_.C2]|0;if(e==null)return wL(C,Q,x),O;var L=e===Sp?7:e[_.C2]|0,k=L,M=gL(L),G=M||Object.isFrozen(e);M||(L=0);G||(e=Bd(e),k=0,L=jp(L,Q),G=!1);L|=5;var X;M=(X=gWV(L))!=null?X:0;for(X=0;X<e.length;X++){var y=e[X],Z=l(y,M);Object.is(y,Z)||(G&&(e=Bd(e),k=0,L=jp(L,Q),G=!1),e[X]=Z)}L!==k&&(G&&(e=Bd(e),L=jp(L,Q)),L2(e,L));wL(C,Q,x,e);return O};
_.Oh=function(O,x,e,l,C){vT(O);var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;wL(Q,Q[_.C2]|0,x,(l==="0"?Number(e)===0:e===l)?void 0:e,C);return O};
_.xy=function(O,x,e){if(x&2)throw Error();var l=Wd(x),C=aQL(O,e,l),Q=C===Sp?7:C[_.C2]|0,L=mh8(Q,x);if(2&L||gL(L)||16&L)C=Bd(C),Q=0,L=jp(L,x),wL(O,x,e,C,l);L&=-13;L!==Q&&L2(C,L);return C};
reL=function(O){if(lF){var x;return(x=O[eE])!=null?x:O[eE]=new Map}if(eE in O)return O[eE];x=new Map;Object.defineProperty(O,eE,{value:x});return x};
KYr=function(O,x,e,l,C){var Q=reL(O),L=HQ8(Q,O,x,e,C);L!==l&&(L&&(x=wL(O,x,L,void 0,C)),Q.set(e,l));return x};
HQ8=function(O,x,e,l,C){var Q=O.get(l);if(Q!=null)return Q;for(var L=Q=0;L<l.length;L++){var k=l[L];$L(x,k,C)!=null&&(Q!==0&&(e=wL(x,e,Q,void 0,C)),Q=k)}O.set(l,Q);return Q};
dhi=function(O,x,e,l,C){var Q=!1;l=$L(O,l,C,function(L){var k=BNr(L,e,!1,x);Q=k!==L&&k!=null;return k});
if(l!=null)return Q&&!oz(l)&&fQ(O,x),l};
nLL=function(O,x,e,l,C,Q,L,k){var M=oz(O,e);Q=M?1:Q;L=!!L||Q===3;M=k&&!M;(Q===2||M)&&BT(O)&&(x=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=x[_.C2]|0);O=aQL(x,C);var G=O===Sp?7:O[_.C2]|0,X=mh8(G,e);if(k=!(4&X)){var y=O,Z=e,E=!!(2&X);E&&(Z|=2);for(var P=!E,U=!0,W=0,z=0;W<y.length;W++){var r=BNr(y[W],l,!1,Z);if(r instanceof l){if(!E){var f=oz(r);P&&(P=!f);U&&(U=f)}y[z++]=r}}z<W&&(y.length=z);X|=4;X=U?X&-4097:X|4096;X=P?X|8:X&-9}X!==G&&(L2(O,X),2&X&&Object.freeze(O));if(M&&!(8&X||!O.length&&
(Q===1||(Q!==4?0:2&X||!(16&X)&&32&e)))){gL(X)&&(O=Bd(O),X=jp(X,e),e=wL(x,e,C,O));l=O;M=X;for(G=0;G<l.length;G++)y=l[G],X=wdn(y),y!==X&&(l[G]=X);M|=8;X=M=l.length?M|4096:M&-4097;L2(O,X)}return O=sum(O,X,x,e,C,Q,k,L)};
uws=function(O){O==null&&(O=void 0);return O};
jp=function(O,x){return O=(2&x?O|2:O&-3)&-273};
_.Y4m=function(O,x,e,l,C){vT(O);x=_.Nh(O,x,C,2,!0);var Q;C=(Q=gWV(x===Sp?7:x[_.C2]|0))!=null?Q:0;x.push(e(l,C));return O};
BLi=function(O,x,e,l,C,Q,L){vT(O);var k=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O=nLL(O,k,k[_.C2]|0,e,x,2,!0);if(Q&&L)C!=null||(C=O.length-1),O2V(O,C),O.splice(C,Q),O.length||(O[_.C2]&=-4097);else{if(Q){if(typeof C!=="number"||C<0||C>O.length)throw Error();}else l=l!=null?l:new e;C!=void 0?O.splice(C,Q,l):O.push(l);C=e=O===Sp?7:O[_.C2]|0;(l=oz(l))?(e&=-9,O.length===1&&(e&=-4097)):e|=4096;e!==C&&L2(O,e);l||fQ(k)}};
fQr=function(O,x){if(typeof O==="string")return new lI(vWn(O),x);if(Array.isArray(O))return new lI(new Uint8Array(O),x);if(O.constructor===Uint8Array)return new lI(O,!1);if(O.constructor===ArrayBuffer)return O=new Uint8Array(O),new lI(O,!1);if(O.constructor===qk)return x=vLL(O)||new Uint8Array(0),new lI(x,!0,O);if(O instanceof Uint8Array)return O=O.constructor===Uint8Array?O:new Uint8Array(O.buffer,O.byteOffset,O.byteLength),new lI(O,!1);throw Error();};
wTr=function(O){switch(typeof O){case "string":Jen(O)}};
juL=function(O){switch(typeof O){case "string":S4m(O)}};
CU=function(){var O=function(){throw Error();};
Object.setPrototypeOf(O,O.prototype);return O};
gLi=function(O,x){var e=e===void 0?NLV:e;return new Qc(O,x,e)};
OUr=function(O,x,e,l,C){$hr(O,e,iQW(x,l),C)};
bI=function(O,x,e,l){var C=l[O];if(C)return C;C={};C.binaryFields=l;C.messageMetadata=ELr(l[0]);var Q=l[1],L=1;Q&&Q.constructor===Object&&(C.extensions=Q,Q=l[++L],typeof Q==="function"&&(C.isMessageSet=!0,xT7!=null||(xT7=Q),ez8!=null||(ez8=l[L+1]),Q=l[L+=2]));for(var k={};Q&&lsV(Q);){for(var M=0;M<Q.length;M++)k[Q[M]]=Q;Q=l[++L]}for(M=1;Q!==void 0;){typeof Q==="number"&&(M+=Q,Q=l[++L]);var G=void 0;if(Q instanceof Qc)var X=Q;else X=CIi,L--;Q=void 0;if((Q=X)==null?0:Q.$$isMsg){Q=l[++L];G=l;var y=L;
typeof Q==="function"&&(Q=Q(),G[y]=Q);G=Q}Q=l[++L];y=M+1;typeof Q==="number"&&Q<0&&(y-=Q,Q=l[++L]);for(;M<y;M++){var Z=k[M];G?e(C,M,X,G,Z):x(C,M,X,Z)}}return l[O]=C};
lsV=function(O){return Array.isArray(O)&&!!O.length&&typeof O[0]==="number"&&O[0]>0};
bUw=function(O){return Array.isArray(O)?O[0]instanceof Qc?O:[QSr,O]:[O,void 0]};
iQW=function(O,x){if(O instanceof _.TH)return O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(O))return uL(O,x,!1)};
Tk8=function(O,x,e,l){var C=e.$$binaryReaderFn;O[x]=l?function(Q,L,k){return C(Q,L,k,l)}:C};
kH7=function(O,x,e,l,C){var Q=e.$$binaryReaderFn,L,k;O[x]=function(M,G,X){return Q(M,G,X,k||(k=bI(LoL,Tk8,kH7,l).messageMetadata),L||(L=A7r(l)),C)}};
A7r=function(O){var x=O[ME8];if(x!=null)return x;var e=bI(LoL,Tk8,kH7,O);x=e.isMessageSet?function(l,C){return xT7(l,C,e)}:function(l,C){for(;DTW(C)&&C.nextWireType_!=4;){var Q=C.nextField_,L=e[Q];
if(L==null){var k=e.extensions;k&&(k=k[Q])&&(k=GHV(k),k!=null&&(L=e[Q]=k))}if(L==null||!L(C,l,Q)){k=C;L=k.fieldCursor_;For(k);if(k.discardUnknownFields)var M=void 0;else{var G=k.decoder_.cursor_-L;k.decoder_.cursor_=L;M=Xww(k.decoder_,G)}G=k=L=void 0;var X=l;M&&((L=(k=(G=X[WT])!=null?G:X[WT]=new kXi)[Q])!=null?L:k[Q]=[]).push(M)}}if(l=i2r(l))l.reviveUnknownFields=e.binaryFields[oyr];return!0};
O[ME8]=x;O[oyr]=y7L.bind(O);return x};
y7L=function(O,x,e,l){var C=this[LoL],Q=this[ME8],L=uL(void 0,C.messageMetadata,!1),k=i2r(O);if(k){var M=!1,G=C.extensions;if(G){C=function(P,U,W){if(W.length!==0)if(G[U])for(P=_.T(W),U=P.next();!U.done;U=P.next()){U=ZU7(U.value);try{M=!0,Q(L,U)}finally{U.free()}}else l==null||l(O,U,W)};
if(x==null)TL8(k,C);else if(k!=null){var X=k[x];X&&C(k,x,X)}if(M){var y=O[_.C2]|0;if(y&2&&y&2048&&(e==null||!e.reviveIntoImmutable))throw Error();var Z=Wd(y),E=function(P,U){if($L(O,P,Z)!=null)switch(e==null?void 0:e.resolutionBehavior){case 1:return;default:throw Error();}U!=null&&(y=wL(O,y,P,U,Z));delete k[P]};
x==null?xkV(L,L[_.C2]|0,function(P,U){E(P,U)}):E(x,$L(L,x,Z))}}}};
GHV=function(O){O=bUw(O);var x=O[0].$$binaryReaderFn;if(O=O[1]){var e=A7r(O),l=bI(LoL,Tk8,kH7,O).messageMetadata;return function(C,Q,L){return x(C,Q,L,l,e)}}return x};
EyW=function(O,x,e){O[x]=e.$$binaryWriterFn};
qhL=function(O,x,e,l){var C,Q,L=e.$$binaryWriterFn;O[x]=function(k,M,G){return L(k,M,G,Q||(Q=bI(tEr,EyW,qhL,l).messageMetadata),C||(C=PIm(l)))}};
PIm=function(O){var x=O[c77];if(!x){var e=bI(tEr,EyW,qhL,O);x=function(l,C){return Is7(l,C,e)};
O[c77]=x}return x};
Is7=function(O,x,e){xkV(O,O[_.C2]|0,function(l,C){if(C!=null){var Q=VEW(e,l);Q?Q(x,C,l):l<500||wiW(pwm,3)}});
(O=i2r(O))&&TL8(O,function(l,C,Q){LU(x,x.encoder_.end());for(l=0;l<Q.length;l++)LU(x,vLL(Q[l])||new Uint8Array(0))})};
VEW=function(O,x){var e=O[x];if(e)return e;if(e=O.extensions)if(e=e[x]){e=bUw(e);var l=e[0].$$binaryWriterFn;if(e=e[1]){var C=PIm(e),Q=bI(tEr,EyW,qhL,e).messageMetadata;e=O.isMessageSet?ez8(Q,C):function(L,k,M){return l(L,k,M,Q,C)}}else e=l;
return O[x]=e}};
_.Rz8=function(O,x,e){if(Array.isArray(x)){var l=x[_.C2]|0;if(l&4)return x;for(var C=0,Q=0;C<x.length;C++){var L=O(x[C]);L!=null&&(x[Q++]=L)}Q<C&&(x.length=Q);e&&(L2(x,(l|5)&-1537),l&2&&Object.freeze(x));return x}};
_.ky=function(O,x,e){return new Qc(O,x,e)};
_.UT8=function(O,x,e){return new Qc(O,x,e)};
_.MT=function(O,x,e){wL(O,O[_.C2]|0,x,e,Wd(O[_.C2]|0))};
asi=function(O,x,e){x=_.j$(x);x!=null&&(_.Ds(O,e,1),O=O.encoder_,e=M$i||(M$i=new DataView(new ArrayBuffer(8))),e.setFloat64(0,+x,!0),Hd=e.getUint32(0,!0),K2=e.getUint32(4,!0),_.GH(O,Hd),_.GH(O,K2))};
mTm=function(O,x,e){x=_.j$(x);x!=null&&(_.Ds(O,e,5),O=O.encoder_,Dki(x),_.GH(O,Hd))};
_.Xa=function(O,x,e){x=dkV(x);if(x!=null&&(wTr(x),x!=null))switch(_.Ds(O,e,0),typeof x){case "number":O=O.encoder_;dN(x);Fa(O,Hd,K2);break;case "bigint":e=BigInt.asUintN(64,x);e=new sS8(Number(e&BigInt(4294967295)),Number(e>>BigInt(32)));Fa(O.encoder_,e.JSC$8858_lo,e.JSC$8858_hi);break;default:e=Jen(x),Fa(O.encoder_,e.JSC$8858_lo,e.JSC$8858_hi)}};
hzN=function(O,x,e){x=nds(x);if(x!=null&&(juL(x),x!=null))switch(_.Ds(O,e,0),typeof x){case "number":O=O.encoder_;dN(x);Fa(O,Hd,K2);break;case "bigint":e=Wor(x);Fa(O.encoder_,e.JSC$8856_lo,e.JSC$8856_hi);break;default:e=S4m(x),Fa(O.encoder_,e.JSC$8856_lo,e.JSC$8856_hi)}};
r7r=function(O,x,e){x=_.TX(x);x!=null&&x!=null&&(_.Ds(O,e,0),_.zzL(O.encoder_,x))};
_.Kow=function(O,x,e){HUL(O,e,nds(x))};
dTr=function(O,x,e){x=_.EdL(x);x!=null&&(_.Ds(O,e,0),O.encoder_.JSC$8860_buffer_.push(x?1:0))};
uaw=function(O,x,e){x=_.PT(x);x!=null&&ny8(O,e,D$7(x))};
Yh$=function(O,x,e,l,C){$hr(O,e,iQW(x,l),C)};
_.Bk8=function(O,x,e){x=x==null||typeof x=="string"||x instanceof qk?x:void 0;x!=null&&ny8(O,e,fQr(x,!0).buffer)};
vys=function(O,x,e){x=_.PFr(x);x!=null&&x!=null&&(_.Ds(O,e,0),oS(O.encoder_,x))};
_.fs8=function(O,x,e){x=_.TX(x);x!=null&&(x=parseInt(x,10),_.Ds(O,e,0),_.zzL(O.encoder_,x))};
_.yc=function(O,x){return function(e,l){var C={treatNewDataAsImmutable:!0};l&&Object.assign(C,l);e=ZU7(e,void 0,void 0,C);try{var Q=new O,L=Q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A7r(x)(L,e);var k=Q}finally{e.free()}return k}};
_.Eh=function(O){return function(x){return J7$(x,O)}};
wwL=function(O){return function(){return J7$(this,O)}};
_.Shw=function(O){return hJ(function(x){return x instanceof O&&!oz(x)})};
_.Pw=function(O){return function(x){return jSi(O,x)}};
iUV=function(O,x){return NkL({child:O,origin:x||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:gyn,getPayloadCase:function(e){return e.getPayloadCase()},
createInitMessage:function(e){var l=new cw,C=new $Tr;e=_.IS(C,1,e);return _.Vc(l,5,pU,e)}})};
RS=function(O){return{valueOf:O}.valueOf()};
xxN=function(){var O=null;if(!Oxr)return O;try{var x=function(e){return e};
O=Oxr.createPolicy("goog#html",{createHTML:x,createScript:x,createScriptURL:x})}catch(e){}return O};
ltr=function(){eiV===void 0&&(eiV=xxN());return eiV};
_.aS=function(O){var x=ltr();O=x?x.createScriptURL(O):O;return new Uh(O)};
_.sh=function(O){if(O instanceof Uh)return O.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Ww=function(O){return Object.isFrozen(O)&&Object.isFrozen(O.raw)};
Cxs=function(O){return O.toString().indexOf("`")===-1};
zH=function(O){return new _.h7(Qar,O)};
rk=function(O){return O instanceof _.h7};
_.Hw=function(O){if(rk(O))return O.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
KU=function(O){return new bxL(function(x){return x.substr(0,O.length+1).toLowerCase()===O+":"})};
_.nU=function(O,x){x=x===void 0?TXs:x;if(rk(O))return O;for(var e=0;e<x.length;++e){var l=x[e];if(l instanceof bxL&&l.isValid(O))return zH(O)}};
_.Yy=function(O,x){x=x===void 0?TXs:x;return _.nU(O,x)||uI};
_.Bw=function(O){var x=window;if(typeof MediaSource!=="undefined"&&O instanceof MediaSource||typeof x.ManagedMediaSource!=="undefined"&&O instanceof x.ManagedMediaSource)return zH(URL.createObjectURL(O));x=O.type;x.toLowerCase()==="application/octet-stream"?x=!0:(x=x.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),x=(x==null?void 0:x.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(x[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(x[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(x[1])||/^font\/[\w-]+$/i.test(x[1])));if(!x)throw Error("Z");return zH(URL.createObjectURL(O))};
_.Lg8=function(O){for(var x=_.vw.apply(1,arguments),e=[O[0]],l=0;l<x.length;l++)e.push(String(x[l])),e.push(O[l+1]);return zH(e.join(""))};
_.ASr=function(O){if(!ktw){a:{var x=document.createElement("a");try{x.href=O}catch(e){O=void 0;break a}O=x.protocol;O=O===":"||O===""?"https:":O}return O}try{x=new URL(O)}catch(e){return"https:"}return x.protocol};
_.fU=function(O){O instanceof _.h7?O=_.Hw(O):O=M5$.test(O)?O:void 0;return O};
J7=function(O,x){x=_.fU(x);x!==void 0&&(O.href=x)};
SE=function(O){var x=ltr();O=x?x.createHTML(O):O;return new wk(O)};
NT=function(O){if(O instanceof wk)return O.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.gk=function(O,x){O.src=_.sh(x).toString()};
DxL=function(O,x){O.setAttribute("sandbox","");for(var e=0;e<x.length;e++)O.sandbox.supports&&!O.sandbox.supports(x[e])||O.sandbox.add(x[e])};
_.Fgr=function(O,x,e){O.removeAttribute("srcdoc");switch(x){case 0:if(e instanceof Uh)throw new Gt$("TrustedResourceUrl",0);DxL(O,[]);x=_.fU(e);x!==void 0&&(O.src=x);break;case 1:if(!(e instanceof Uh))throw new Gt$(typeof e,1);DxL(O,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.gk(O,e);break;case 2:if(e instanceof Uh)throw new Gt$("TrustedResourceUrl",2);DxL(O,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
x=_.fU(e);x!==void 0&&(O.src=x);break;default:_.vd(x)}};
_.$y=function(O,x,e,l){x=_.fU(x);return x!==void 0?O.open(x,e,l):null};
_.iI=function(O){O=O===void 0?document:O;var x,e;O=(e=(x=O).querySelector)==null?void 0:e.call(x,"script[nonce]");return O==null?"":O.nonce||O.getAttribute("nonce")||""};
_.e5=function(O){var x=ltr();O=x?x.createScript(O):O;return new _.xS(O)};
lx=function(O){if(O instanceof _.xS)return O.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
XOr=function(O){var x=_.iI(O.ownerDocument);x&&O.setAttribute("nonce",x)};
_.Cx=function(O,x){O.textContent=lx(x);XOr(O)};
_.QP=function(O,x){O.src=_.sh(x);XOr(O)};
_.bx=function(O,x){if(O.nodeType===1&&/^(script|style)$/i.test(O.tagName))throw Error("Z");O.innerHTML=NT(x)};
_.Tt=function(O,x,e,l){if(O.length===0)throw Error("Z");O=O.map(function(Q){if(Q instanceof oSr)Q=Q.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return Q});
var C=e.toLowerCase();if(O.every(function(Q){return C.indexOf(Q)!==0}))throw Error("aa`"+e);
x.setAttribute(e,l)};
_.Lx=function(O,x,e){if(x instanceof Uh)O.href=_.sh(x).toString(),O.rel=e;else{if(ySr.indexOf(e)===-1)throw Error("ba`"+e);x=_.fU(x);x!==void 0&&(O.href=x,O.rel=e)}};
ZxN=function(O){if(O instanceof kS)return O.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.ESN=function(O,x){x=_.fU(x);x!==void 0&&(O.href=x)};
t5$=function(O){return new Worker(_.sh(O),void 0)};
qr8=function(O){return _.aS(O)};
PxL=function(O,x){O&&(x=O.indexOf(x),0<=x&&O.splice(x,1))};
AS=function(O){return typeof O==="function"};
cSW=function(O){return O instanceof Mx||O&&"closed"in O&&AS(O.remove)&&AS(O.add)&&AS(O.unsubscribe)};
Dt=function(){};
Gt=function(O){It$(function(){throw O;})};
FW=function(O){return O};
XW=function(){return V5r(_.vw.apply(0,arguments))};
V5r=function(O){return O.length===0?FW:O.length===1?O[0]:function(x){return O.reduce(function(e,l){return l(e)},x)}};
pO$=function(O){var x;return(x=O!=null?O:void 0)!=null?x:Promise};
Riw=function(O,x){return new oa(function(e){var l=0;return x.schedule(function(){l===O.length?e.complete():(e.next(O[l++]),e.closed||this.schedule())})})};
UxN=function(O,x){if(!O)throw Error("ca");return new oa(function(e){var l=new Mx;l.add(x.schedule(function(){var C=O[Symbol.asyncIterator]();l.add(x.schedule(function(){var Q=this;C.next().then(function(L){L.done?e.complete():(e.next(L.value),Q.schedule())})}))}));
return l})};
atV=function(O,x,e){x=x.schedule(function(){try{e.call(this)}catch(l){O.error(l)}},0);
O.add(x)};
saL=function(O,x){return new oa(function(e){var l;e.add(x.schedule(function(){l=O[mxN]();atV(e,x,function(){var C=l.next(),Q=C.value;C.done?e.complete():(e.next(Q),this.schedule())})}));
return function(){var C;return AS((C=l)==null?void 0:C.return)&&l.return()}})};
WgW=function(O,x){return new oa(function(e){var l=new Mx;l.add(x.schedule(function(){var C=O[yP]();l.add(C.subscribe({next:function(Q){l.add(x.schedule(function(){return e.next(Q)}))},
error:function(Q){l.add(x.schedule(function(){return e.error(Q)}))},
complete:function(){l.add(x.schedule(function(){return e.complete()}))}}))}));
return l})};
hi7=function(O,x){return new oa(function(e){return x.schedule(function(){return O.then(function(l){e.add(x.schedule(function(){e.next(l);e.add(x.schedule(function(){return e.complete()}))}))},function(l){e.add(x.schedule(function(){return e.error(l)}))})})})};
zim=function(O){return new TypeError("da`"+(O!==null&&typeof O==="object"?"an invalid object":"'"+O+"'"))};
Hx7=function(O,x){if(O!=null){if(AS(O[yP]))return WgW(O,x);if(rSr(O))return Riw(O,x);if(AS(O==null?void 0:O.then))return hi7(O,x);if(Symbol.asyncIterator&&AS(O==null?void 0:O[Symbol.asyncIterator]))return UxN(O,x);if(AS(O==null?void 0:O[mxN]))return saL(O,x)}throw zim(O);};
Er=function(O,x){return x?Hx7(O,x):Zt(O)};
Zt=function(O){if(O instanceof oa)return O;if(O!=null){if(AS(O[yP]))return Kgr(O);if(rSr(O))return dx$(O);if(AS(O==null?void 0:O.then))return nS7(O);if(Symbol.asyncIterator&&AS(O==null?void 0:O[Symbol.asyncIterator]))return uW7(O);if(AS(O==null?void 0:O[mxN]))return Yr7(O)}throw zim(O);};
Kgr=function(O){return new oa(function(x){var e=O[yP]();if(AS(e.subscribe))return e.subscribe(x);throw new TypeError("ea");})};
dx$=function(O){return new oa(function(x){for(var e=0;e<O.length&&!x.closed;e++)x.next(O[e]);x.complete()})};
nS7=function(O){return new oa(function(x){O.then(function(e){x.closed||(x.next(e),x.complete())},function(e){return x.error(e)}).then(null,Gt)})};
Yr7=function(O){return new oa(function(x){for(var e=O[mxN]();!x.closed;){var l=e.next(),C=l.value;l.done?x.complete():x.next(C)}return function(){return AS(e==null?void 0:e.return)&&e.return()}})};
uW7=function(O){return new oa(function(x){BXV(O,x).catch(function(e){return x.error(e)})})};
BXV=function(O,x){var e,l,C,Q,L,k;return _.A(function(M){switch(M.nextAddress){case 1:_.tS(M,2,3),Q=_.qx(O);case 5:return M.yield(Q.next(),8);case 8:l=M.yieldResult;if(l.done){M.jumpTo(3);break}L=l.value;x.next(L);M.jumpTo(5);break;case 3:_.PO(M);_.cO(M,9);if(!l||l.done||!(C=Q.return)){M.jumpTo(9);break}return M.yield(C.call(Q),9);case 9:_.PO(M,0,0,1);if(e)throw e.error;_.Ia(M,10,1);break;case 10:_.Ia(M,4);break;case 2:k=_.VP(M);e={error:k};M.jumpTo(3);break;case 4:x.complete(),_.Ra(M)}})};
vSV=function(O,x){return x?Riw(O,x):dx$(O)};
fti=function(O){return AS(O[O.length-1])?O.pop():void 0};
Ur=function(O){var x=O[O.length-1];return x&&AS(x.schedule)?O.pop():void 0};
aa=function(){var O=_.vw.apply(0,arguments),x=Ur(O);return x?Riw(O,x):vSV(O)};
mg=function(O){var x=AS(O)?O:function(){return O};
return new oa(function(e){return e.error(x())})};
sr=function(O){return function(x){if(AS(x==null?void 0:x.lift))return x.lift(function(e){try{return O(e,this)}catch(l){this.error(l)}});
throw new TypeError("fa");}};
rX=function(){return sr(function(O,x){var e=null;O._refCount++;var l=new WO(x,void 0,void 0,void 0,function(){if(!O||O._refCount<=0||0<--O._refCount)e=null;else{var C=O._connection,Q=e;e=null;!C||Q&&C!==Q||C.unsubscribe();x.unsubscribe()}});
O.subscribe(l);l.closed||(e=O.connect())})};
wOi=function(){var O=JS7;var x=x===void 0?0:x;return sr(function(e,l){l.add(O.schedule(function(){return e.subscribe(l)},x))})};
HO=function(O){return sr(function(x,e){var l=0;x.subscribe(new WO(e,function(C){e.next(O.call(void 0,C,l++))}))})};
jan=function(O){return HO(function(x){return SrL(x)?O.apply(null,_.Kx(x)):O(x)})};
Ou7=function(O){if(O.length===1){var x=O[0];if(NXr(x))return{args:x,keys:null};if(x&&typeof x==="object"&&gS8(x)===$xr)return O=ix7(x),{args:O.map(function(e){return x[e]}),
keys:O}}return{args:O,keys:null}};
dX=function(){var O=_.vw.apply(0,arguments),x=Ur(O),e=fti(O);O=Ou7(O);var l=O.args,C=O.keys;if(l.length===0)return Er([],x);x=new oa(xMw(l,x,C?function(Q){for(var L={},k=0;k<Q.length;k++)L[C[k]]=Q[k];return L}:FW));
return e?x.pipe(jan(e)):x};
xMw=function(O,x,e){e=e===void 0?FW:e;return function(l){eQN(x,function(){for(var C=O.length,Q=Array(C),L=C,k=O.map(function(){return!1}),M=!0,G={i$jscomp$217:0};G.i$jscomp$217<C;G={i$jscomp$217:G.i$jscomp$217},G.i$jscomp$217++)eQN(x,function(X){return function(){Er(O[X.i$jscomp$217],x).subscribe(new nx(l,function(y){Q[X.i$jscomp$217]=y;
M&&(k[X.i$jscomp$217]=!0,M=!k.every(FW));M||l.next(e(Q.slice()))},function(){return--L===0}))}}(G),l)},l)}};
eQN=function(O,x,e){O?e.add(O.schedule(x)):x()};
lun=function(O,x,e,l){var C=[],Q=0,L=0,k=!1,M=function(G){Q++;Zt(e(G,L++)).subscribe(new WO(x,function(X){x.next(X)},void 0,function(){Q--;
for(var X={};C.length&&Q<l;X={bufferedValue:void 0})X.bufferedValue=C.shift(),M(X.bufferedValue);!k||C.length||Q||x.complete()}))};
O.subscribe(new WO(x,function(G){return Q<l?M(G):C.push(G)},void 0,function(){k=!0;
!k||C.length||Q||x.complete()}));
return function(){C=null}};
ux=function(O,x){var e=e===void 0?Infinity:e;if(AS(x))return ux(function(l,C){return HO(function(Q,L){return x(l,Q,C,L)})(Zt(O(l,C)))},e);
typeof x==="number"&&(e=x);return sr(function(l,C){return lun(l,C,O,e)})};
CtN=function(O){O=O===void 0?Infinity:O;return ux(FW,O)};
Qnr=function(){var O=_.vw.apply(0,arguments);return CtN(1)(vSV(O,Ur(O)))};
buN=function(O){return new oa(function(x){Zt(O()).subscribe(x)})};
YS=function(O,x,e){if(AS(e)){var l=e;e=void 0}if(l)return YS(O,x,e).pipe(jan(l));l=_.T(AS(O.addEventListener)&&AS(O.removeEventListener)?TcL.map(function(L){return function(k){return O[L](x,k,e)}}):AS(O.addListener)&&AS(O.removeListener)?LOw.map(kJ$(O,x)):AS(O.on)&&AS(O.off)?Ajs.map(kJ$(O,x)):[]);
var C=l.next().value,Q=l.next().value;return!C&&rSr(O)?ux(function(L){return YS(L,x,e)})(vSV(O)):new oa(function(L){if(!C)throw new TypeError("ga");
var k=function(){var M=_.vw.apply(0,arguments);return L.next(1<M.length?M:M[0])};
C(k);return function(){return Q(k)}})};
kJ$=function(O,x){return function(e){return function(l){return O[e](x,l)}}};
JS=function(){var O=_.vw.apply(0,arguments),x=Ur(O);var e=typeof O[O.length-1]==="number"?O.pop():Infinity;return O.length?O.length===1?Zt(O[0]):CtN(e)(vSV(O,x)):vO};
DM7=function(O){return O.length===1&&MN$(O[0])?O[0]:O};
GJ$=function(){var O=DM7(_.vw.apply(0,arguments));return sr(function(x,e){var l=[x].concat(_.Kx(O)),C=function(){if(!e.closed)if(l.length>0){try{var Q=Zt(l.shift())}catch(k){C();return}var L=new WO(e,void 0,Dt,Dt);e.add(Q.subscribe(L));L.add(C)}else e.complete()};
C()})};
wX=function(O){return sr(function(x,e){var l=0;x.subscribe(new WO(e,function(C){return O.call(void 0,C,l++)&&e.next(C)}))})};
XXr=function(){var O=_.vw.apply(0,arguments);O=DM7(O);return O.length===1?Zt(O[0]):new oa(FOV(O))};
FOV=function(O){return function(x){for(var e=[],l={i$jscomp$220:0};e&&!x.closed&&l.i$jscomp$220<O.length;l={i$jscomp$220:l.i$jscomp$220},l.i$jscomp$220++)e.push(Zt(O[l.i$jscomp$220]).subscribe(new WO(x,function(C){return function(Q){if(e){for(var L=0;L<e.length;L++)L!==C.i$jscomp$220&&e[L].unsubscribe();e=null}x.next(Q)}}(l))))}};
oG8=function(){var O=_.vw.apply(0,arguments),x=fti(O),e=DM7(O);return e.length?new oa(function(l){var C=e.map(function(){return[]}),Q=e.map(function(){return!1});
l.add(function(){C=Q=null});
for(var L={sourceIndex$jscomp$1:0};!l.closed&&L.sourceIndex$jscomp$1<e.length;L={sourceIndex$jscomp$1:L.sourceIndex$jscomp$1},L.sourceIndex$jscomp$1++)Zt(e[L.sourceIndex$jscomp$1]).subscribe(new WO(l,function(k){return function(M){C[k.sourceIndex$jscomp$1].push(M);C.every(function(G){return G.length})&&(M=C.map(function(G){return G.shift()}),l.next(x?x.apply(null,_.Kx(M)):M),C.some(function(G,X){return!G.length&&Q[X]})&&l.complete())}}(L),void 0,function(k){return function(){Q[k.sourceIndex$jscomp$1]=
!0;
!C[k.sourceIndex$jscomp$1].length&&l.complete()}}(L)));
return function(){C=Q=null}}):vO};
yjN=function(O){var x,e,l;return!!O&&typeof O.active==="boolean"&&typeof((x=O.clock)==null?void 0:x.now)==="function"&&((e=O.clock)==null?void 0:e.timeline)!==void 0&&!((l=O.lastMeasurement)==null||!l.timestamp)&&typeof O.equivalentTo==="function"&&typeof O.extrapolateToNow==="function"&&typeof O.extrapolateToTime==="function"&&typeof O.map==="function"&&typeof O.joinWith==="function"};
ZuV=function(O){function x(e){return typeof e==="boolean"||typeof e==="string"||typeof e==="number"||e===void 0||e===null}
return x(O)?!0:Array.isArray(O)?O.every(x):typeof O==="object"?Object.keys(O).every(function(e){return typeof e==="string"})&&Object.values(O).every(function(e){return Array.isArray(e)?e.every(x):x(e)}):!1};
EGm=function(O){if(ZuV(O))return O;if(yjN(O))return{lastMeasurement:{value:EGm(O.lastMeasurement.value),timestamp:S5(O.lastMeasurement.timestamp,new j5(0,O.lastMeasurement.timestamp.timeline))},active:O.active};try{return JSON.parse(JSON.stringify(O))}catch(x){}return String(O)};
Nx=function(O,x){return function(e){return new oa(function(l){return e.subscribe(function(C){O.timeExecution(x,function(){l.next(C)})()},function(C){O.timeExecution(x,function(){l.error(C)})()},function(){O.timeExecution(x,function(){l.complete()})()})})}};
tNN=function(O,x){var e=!1;return new oa(function(l){var C=O.setTimeout(function(){e=!0;l.next(!0);l.complete()},x);
return function(){e||O.clearTimeout(C)}})};
qdm=function(O){O=O.global;if(O.fetchLater)return O.fetchLater.bind(O)};
gX=function(O){return sr(function(x,e){var l=null,C=!1,Q;l=x.subscribe(new WO(e,void 0,function(L){Q=Zt(O(L,gX(O)(x)));l?(l.unsubscribe(),l=null,Q.subscribe(e)):C=!0}));
C&&(l.unsubscribe(),l=null,Q.subscribe(e))})};
PtL=function(O,x,e){return function(l,C){var Q=e,L=x,k=0;l.subscribe(new WO(C,function(M){var G=k++;L=Q?O(L,M,G):(Q=!0,M);C.next(L)},void 0,void 0))}};
cjr=function(O){O=O===void 0?null:O;return sr(function(x,e){var l=!1;x.subscribe(new WO(e,function(C){l=!0;e.next(C)},void 0,function(){l||e.next(O);
e.complete()}))})};
$S=function(){return sr(function(O,x){O.subscribe(new WO(x,Dt))})};
ix=function(O){return sr(function(x,e){x.subscribe(new WO(e,function(){return e.next(O)}))})};
Od=function(O){return O<=0?function(){return vO}:sr(function(x,e){var l=0;
x.subscribe(new WO(e,function(C){++l<=O&&(e.next(C),O<=l&&e.complete())}))})};
xG=function(O){var x=x===void 0?FW:x;var e;O=(e=O)!=null?e:Ium;return sr(function(l,C){var Q,L=!0;l.subscribe(new WO(C,function(k){var M=x(k);if(L||!O(Q,M))L=!1,Q=M,C.next(k)}))})};
Ium=function(O,x){return O===x};
pX7=function(O){O=O===void 0?VNi:O;return sr(function(x,e){var l=!1;x.subscribe(new WO(e,function(C){l=!0;e.next(C)},void 0,function(){return l?e.complete():e.error(O())}))})};
VNi=function(){return new RQw};
eN=function(){var O=_.vw.apply(0,arguments);return function(x){return Qnr(x,aa.apply(null,_.Kx(O)))}};
UM8=function(O){return sr(function(x,e){var l=0;x.subscribe(new WO(e,function(C){O.call(void 0,C,l++,x)||(e.next(!1),e.complete())},void 0,function(){e.next(!0);
e.complete()}))})};
auw=function(){return sr(function(O,x){var e=[];O.subscribe(new WO(x,function(l){e.push(l);1<e.length&&e.shift()},void 0,function(){for(var l=_.T(e),C=l.next();!C.done;C=l.next())x.next(C.value);
x.complete()},function(){e=null}))})};
mML=function(O,x){var e=arguments.length>=2;return function(l){return l.pipe(O?wX(function(C,Q){return O(C,Q,l)}):FW,auw(),e?cjr(x):pX7(function(){return new RQw}))}};
Cu=function(O){var x=AS(O)?O:function(){return O};
return AS()?sr(function(e,l){var C=x();(void 0)(C).subscribe(l).add(e.subscribe(C))}):function(e){var l=new lt(e,x);
AS(e==null?void 0:e.lift)&&(l.lift=e.lift);l.source=e;l.subjectFactory=x;return l}};
bt=function(O){var x=new Qi(O,void 0,void 0);return function(e){return Cu(function(){return x})(e)}};
Lu=function(O,x){return sr(PtL(O,x,arguments.length>=2))};
kG=function(){var O=_.vw.apply(0,arguments),x=Ur(O);return sr(function(e,l){(x?Qnr(O,e,x):Qnr(O,e)).subscribe(l)})};
Aj=function(O){return sr(function(x,e){var l=null,C=0,Q=!1;x.subscribe(new WO(e,function(L){var k;(k=l)==null||k.unsubscribe();k=C++;Zt(O(L,k)).subscribe(l=new WO(e,function(M){return e.next(M)},void 0,function(){l=null;
Q&&!l&&e.complete()}))},void 0,function(){(Q=!0,!l)&&e.complete()}))})};
MM=function(O,x){x=x===void 0?!1:x;return sr(function(e,l){var C=0;e.subscribe(new WO(l,function(Q){var L=O(Q,C++);(L||x)&&l.next(Q);!L&&l.complete()}))})};
snm=function(O,x,e){var l=AS(O)||x||e?{next:O,error:x,complete:e}:O;return l?sr(function(C,Q){C.subscribe(new WO(Q,function(L){var k;(k=l.next)==null||k.call(l,L);Q.next(L)},function(L){var k;
(k=l.error)==null||k.call(l,L);Q.error(L)},function(){var L;
(L=l.complete)==null||L.call(l);Q.complete()}))}):FW};
WOs=function(){var O=_.vw.apply(0,arguments),x=fti(O);return sr(function(e,l){for(var C=O.length,Q=Array(C),L=O.map(function(){return!1}),k=!1,M={i$jscomp$230:0};M.i$jscomp$230<C;M={i$jscomp$230:M.i$jscomp$230},M.i$jscomp$230++)Zt(O[M.i$jscomp$230]).subscribe(new WO(l,function(G){return function(X){Q[G.i$jscomp$230]=X;
k||L[G.i$jscomp$230]||(L[G.i$jscomp$230]=!0,(k=L.every(FW))&&(L=null))}}(M),void 0,Dt));
e.subscribe(new WO(l,function(G){k&&(G=[G].concat(_.Kx(Q)),l.next(x?x.apply(null,_.Kx(G)):G))}))})};
zQL=function(O){var x=hQr;if(x)for(var e in x)Object.prototype.hasOwnProperty.call(x,e)&&O(x[e],e,x)};
rjN=function(){var O=[];zQL(function(x){O.push(x)});
return O};
KOi=function(O){try{return!!O&&O.location.href!=null&&Hur(O,"foo")}catch(x){return!1}};
_.GJ=function(O){return new oSr(O[0].toLowerCase())};
dMV=function(O){for(var x=_.vw.apply(1,arguments),e=O[0],l=0;l<O.length-1;l++)e+=String(x[l]),e+=O[l+1];x=document.implementation.createHTMLDocument("");l=x.createElement("style");x.head.appendChild(l);x=l.sheet;x.insertRule(e,0);if(x.cssRules.length===1&&(e=x.cssRules[0],e instanceof CSSStyleRule))return new kS(e.cssText.replace(/</g,"\\3C "))};
nGL=function(O){try{return new URL(O,window.document.baseURI)}catch(x){return new URL("about:invalid")}};
u5V=function(O,x){var e=x.createRange();e.selectNode(x.body);O=SE(O);return e.createContextualFragment(NT(O))};
Yd8=function(O){O=O.nodeName;return typeof O==="string"?O:"FORM"};
Bcn=function(O){O=O.nodeType;return O===1||typeof O!=="number"};
X5=function(O,x,e){O.setAttribute(x,e)};
vGw=function(O){return O.parts.map(function(x){var e=x.descriptor;return""+x.url+(e?" "+e:"")}).join(" , ")};
_.on=function(O){var x=_.vw.apply(1,arguments);if(x.length===0)return _.aS(O[0]);for(var e=O[0],l=0;l<x.length;l++)e+=encodeURIComponent(x[l])+O[l+1];return _.aS(e)};
_.yi=function(O,x){O=_.sh(O).toString();var e=O.split(/[?#]/),l=/[?]/.test(O)?"?"+e[1]:"";return fuW(e[0],l,/[#]/.test(O)?"#"+(l?e[2]:e[1]):"",x)};
fuW=function(O,x,e,l){function C(L,k){L!=null&&(Array.isArray(L)?L.forEach(function(M){return C(M,k)}):(x+=Q+encodeURIComponent(k)+"="+encodeURIComponent(L),Q="&"))}
var Q=x.length?"&":"?";l.constructor===Object&&(l=Object.entries(l));Array.isArray(l)?l.forEach(function(L){return C(L[1],L[0])}):l.forEach(C);
return _.aS(O+x+e)};
wXs=function(){var O=lx(JjW).toString();return _.aS(URL.createObjectURL(new Blob([O],{type:"text/javascript"})))};
Sd7=function(O){var x=[],e=0,l;for(l in O)x[e++]=l;return x};
jn7=function(O,x){for(var e in O)if(O[e]==x)return!0;return!1};
Ncs=function(O,x,e){for(var l in O)if(x.call(e,O[l],l,O))return l};
gG7=function(O){if(!O||typeof O!=="object")return O;if(typeof O.clone==="function")return O.clone();if(typeof Map!=="undefined"&&O instanceof Map)return new Map(O);if(typeof Set!=="undefined"&&O instanceof Set)return new Set(O);if(O instanceof Date)return new Date(O.getTime());var x=Array.isArray(O)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(O)||O instanceof DataView?{}:new O.constructor(O.length),e;for(e in O)x[e]=gG7(O[e]);return x};
$Mr=function(O){var x=arguments.length;if(x==1&&Array.isArray(arguments[0]))return $Mr.apply(null,arguments[0]);if(x%2)throw Error("ma");for(var e={},l=0;l<x;l+=2)e[arguments[l]]=arguments[l+1];return e};
iur=function(O){var x=arguments.length;if(x==1&&Array.isArray(arguments[0]))return iur.apply(null,arguments[0]);for(var e={},l=0;l<x;l++)e[arguments[l]]=!0;return e};
Zu=function(O,x,e,l){this.top=O;this.right=x;this.bottom=e;this.left=l};
OfV=function(O){O=O.global;if(O.PendingGetBeacon)return O.PendingGetBeacon};
tj=function(O){return function(x){return x.pipe(xqL(O,Cu(new Ed)))}};
qM=function(O){return function(x){return x.pipe(xqL(O,bt(1)))}};
xqL=function(O,x){function e(l){return new oa(function(C){return l.subscribe(function(Q){PX(O,function(){return void C.next(Q)},3)},function(Q){PX(O,function(){return void C.error(Q)},3)},function(){PX(O,function(){return void C.complete()},3)})})}
return XW(e,wOi(),x,rX(),e)};
CP8=function(O){var x=eW8(O);return x===null?new cX(null):x.pipe(HO(function(e){e=e.serialize();if(ldr)e=_.CV.btoa(e);else{for(var l=[],C=0,Q=0;Q<e.length;Q++){var L=e.charCodeAt(Q);L>255&&(l[C++]=L&255,L>>=8);l[C++]=L}e=_.zX(l)}return e}),Od(1),qM(O.queue))};
Q9r=function(O){var x=x===void 0?{}:x;if(typeof Event==="function")return new Event(O,x);if(typeof document!=="undefined"){var e=document.createEvent("CustomEvent");e.initCustomEvent(O,x.bubbles||!1,x.cancelable||!1,x.detail);return e}throw Error();};
bfr=function(O){return typeof O==="string"?document.getElementById(O):O};
LyL=function(O){var x=!1;x=x===void 0?!1:x;if(O.tagName==="IMG"){if(O.complete&&(!O.naturalWidth||!O.naturalHeight))return!0;var e;if(x&&((e=O.style)==null?void 0:e.display)==="none")return!0}var l,C;return ToL.test((l=O.getAttribute("width"))!=null?l:"")&&ToL.test((C=O.getAttribute("height"))!=null?C:"")};
k8$=function(O,x){if(O.tagName==="IMG")return O.naturalWidth&&O.naturalHeight?!0:!1;try{if(O.readyState)var e=O.readyState;else{var l,C;e=(l=O.contentWindow)==null?void 0:(C=l.document)==null?void 0:C.readyState}return e==="complete"}catch(Q){return x===void 0?!1:x}};
A0N=function(O){O||(O=function(x,e,l){x.addEventListener(e,l)});
return O};
Fyr=function(O,x){var e=MZn();e=e===void 0?new Dqm:e;if(O=bfr(O)){var l=A0N(l);for(var C=!1,Q=function(W){C||(C=!0,x(W))},L,k=2,M=0;M<G8r.length;++M)if(G8r[M]===O.tagName){k=3;
L=[O];break}L||(L=O.querySelectorAll(G8r.join(",")));var G=0,X=0,y=!0,Z=O=!1;M={};for(var E=0;E<L.length;M={isImg:void 0},E++){var P=L[E];if(!LyL(P))if(M.isImg=P.tagName==="IMG",k8$(P,e.crossDomainLoadedDefault))O=!0,M.isImg&&(y=!0);else{G++;var U=function(W){return function(z){G--;!G&&y&&Q(k);W.isImg&&(z=z&&z.type==="error",X--,z||(y=!0),!X&&Z&&y&&Q(k))}}(M);
l(P,"load",U);M.isImg&&(X++,l(P,"error",U))}}X===0&&(y=!0);L=null;L=_.CV.document.readyState==="complete";if(G===0&&!O&&L)k=5;else if(G||!O){l(_.CV,"load",function(){!e.pendingImagesBlockLoad||!X&&y?Q(4):Z=!0});
return}Q(k)}};
Xvs=function(O,x,e){if(O)for(var l=0;O!=null&&l<500&&!e(O);++l)O=x(O)};
o8r=function(O,x){Xvs(O,function(e){try{return e===e.parent?null:e.parent}catch(l){}return null},x)};
y0r=function(O,x){if(O.tagName=="IFRAME")x(O);else{O=O.querySelectorAll("IFRAME");for(var e=0;e<O.length&&!x(O[e]);++e);}};
Zf8=function(O){return(O=O.ownerDocument)&&(O.parentWindow||O.defaultView)||null};
E8r=function(O,x,e){try{var l=JSON.parse(e.data)}catch(L){}if(typeof l==="object"&&l&&l.type==="creativeLoad"){var C=Zf8(O);if(e.source&&C){var Q;o8r(e.source,function(L){try{if(L.parent===C)return Q=L,!0}catch(k){}});
Q&&y0r(O,function(L){if(L.contentWindow===Q)return x(l),!0})}}};
tZs=function(O){return typeof O==="string"?document.getElementById(O):O};
IdW=function(){var O={};return O[0]=_.on(qmN,"current"),O[1]=_.on(PPn),O[2]=_.on(c0r),O};
In=function(O,x){return O.left===x.left&&O.top===x.top&&O.width===x.width&&O.height===x.height};
VZL=function(O,x){return{left:Math.max(O.left,x.left),top:Math.max(O.top,x.top),width:Math.max(0,Math.min(O.left+O.width,x.left+x.width)-Math.max(O.left,x.left)),height:Math.max(0,Math.min(O.top+O.height,x.top+x.height)-Math.max(O.top,x.top))}};
pv$=function(O,x){return{left:Math.round(O.left+x.x),top:Math.round(O.top+x.y),width:O.width,height:O.height}};
RW7=function(O,x,e){if(O&&x!==null&&x!=x.top){if(!x.top)return new _.pu(-12245933,-12245933);x=x.top}try{return(e===void 0?0:e)?(new _.pu(x.innerWidth,x.innerHeight)).round():_.Rn(x).round()}catch(l){return new _.pu(-12245933,-12245933)}};
UqL=function(O,x,e){try{if(O){if(!x.top)return new Zu(-12245933,-12245933,-12245933,-12245933);x=x.top}var l=RW7(O,x,e),C=l.height,Q=l.width;if(Q===-12245933)return new Zu(Q,Q,Q,Q);var L=Ud(an(x.document)),k=L.x,M=L.y;return new Zu(M,k+Q,M+C,k)}catch(G){return new Zu(-12245933,-12245933,-12245933,-12245933)}};
adn=function(O){var x;return(x=O.google_tag_data)!=null?x:O.google_tag_data={}};
mqW=function(O){var x,e;return typeof((x=O.navigator)==null?void 0:(e=x.userAgentData)==null?void 0:e.getHighEntropyValues)==="function"};
WyN=function(O){if(!mqW(O))return null;var x=adn(O);if(x.uach_promise)return x.uach_promise;O=O.navigator.userAgentData.getHighEntropyValues(s9m).then(function(e){x.uach!=null||(x.uach=e);return e});
return x.uach_promise=O};
fdr=function(O){var x;return hWr(zWn(r0W(Hfr(Ky7(dqV(n8W(uFW(Ymm(new BoV,O.architecture||""),O.bitness||""),O.mobile||!1),O.model||""),O.platform||""),O.platformVersion||""),O.uaFullVersion||""),((x=O.fullVersionList)==null?void 0:x.map(function(e){var l=new v8i;l=_.mO(l,1,e.brand);return _.mO(l,2,e.version)}))||[]),O.wow64||!1)};
J0m=function(O){var x,e;return(e=(x=WyN(O))==null?void 0:x.then(function(l){return fdr(l)}))!=null?e:null};
wvr=function(O,x){return new oa(function(e){var l=!1,C=Array(x.length);C.fill(void 0);var Q=new Set,L=new Set,k=function(y,Z){O.running?(C[Z]=y,Q.add(Z),l||(l=!0,PX(O,function(){l=!1;e.next(_.Bi(C))},1))):e.error(new sd(Z))},M=function(y,Z){L.add(Z);
Q.add(Z);PX(O,function(){e.error(y)},1)},G=function(y){L.add(y);
PX(O,function(){L.size===x.length&&e.complete()},1)},X=x.map(function(y,Z){return y.subscribe(function(E){return void k(E,Z)},function(E){return void M(E,Z)},function(){return void G(Z)})});
return function(){X.forEach(function(y){return void y.unsubscribe()})}})};
Nom=function(O,x,e){function l(){if(x.debugChannel){var W=x.debugChannel,z=W.next;var r={creativeId:x.debugNames.getName(e),requiredSignals:C,signals:Object.assign({},Q),hasPrematurelyCompleted:L,errorMessage:k,erroredSignalKey:M};r={specMajor:2,specMinor:0,specPatch:0,timestamp:S5(x.timeProvider.now(),new j5(0,x.timeProvider.timeline)),instanceId:x.debugNames.getName(x.symbol),creativeState:r};z.call(W,r)}}
for(var C=Object.keys(O),Q={},L=!1,k=null,M=null,G={},X=new Set,y=[],Z=[],E=_.T(C),P=E.next(),U={};!P.done;U={key$jscomp$394:void 0},P=E.next())U.key$jscomp$394=P.value,P=O[U.key$jscomp$394],P instanceof cX?(G[U.key$jscomp$394]=P.value,X.add(U.key$jscomp$394),x.debugChannel&&(Q[String(U.key$jscomp$394)]=EGm(P.value))):(P=P.pipe(xG(function(W,z){return yjN(W)||yjN(z)?!1:W===z}),HO(function(W){return function(z){x.debugChannel&&(Q[String(W.key$jscomp$394)]=EGm(z),l());
var r={};return r[W.key$jscomp$394]=z,r}}(U)),gX(function(W){return function(z){if(z instanceof sd)throw new Sms(String(W.key$jscomp$394));
throw z;}}(U)),snm(function(W){return function(){X.add(W.key$jscomp$394)}}(U),function(W){return function(z){M=String(W.key$jscomp$394);
k=String(z);l()}}(U),function(W){return function(){X.has(W.key$jscomp$394)||(L=!0,l())}}(U))),Z.push(U.key$jscomp$394),y.push(P));
(O=Object.keys(Q).length>0)&&l();E=wvr(x.queue,y).pipe(gX(function(W){if(W instanceof sd)throw new j9m(String(Z[W.inputObservableIndex]));throw W;}),HO(function(W){return Object.freeze(Object.assign.apply(Object,[{},
G].concat(_.Kx(W))))}));
return(y=y.length>0)&&O?JS(aa(Object.freeze(G)),E):y?E:aa(Object.freeze(G))};
g8w=function(O,x,e,l,C){return O.performanceMonitor.timeExecution.bind(O.performanceMonitor)(733,function(){var Q={};try{return x.pipe(gX(function(L){l(Object.assign({},Q,{error:L}));return vO}),ux(function(L){try{var k=e(O,L)}catch(G){return l(Object.assign({},Q,{error:G instanceof Error?G:String(G)})),vO}var M={};
return Nom(k,O,L.symbol).pipe(snm(function(G){M=G}),bt(1),rX()).pipe(C,gX(function(G){l(Object.assign({},M,{error:G}));
return vO}),eN(void 0),HO(function(){return!0}))})).pipe(Lu(function(L){return L+1},0),gX(function(L){l(Object.assign({},Q,{error:L}));
return vO}))}catch(L){return l(Object.assign({},Q,{error:L})),vO}})()};
WX=function(O){var x=new Map;if(typeof O!=="object"||O===null)return x;Object.values(O).forEach(function(e){e&&typeof e.extrapolateToNow==="function"&&(x.has(e.clock.timeline)||x.set(e.clock.timeline,e.clock.now()))});
return x};
$qw=function(O,x){return typeof O==="string"?encodeURIComponent(O):typeof O==="number"?String(O):Array.isArray(O)?O.map(function(e){return $qw(e,x)}).join(","):O instanceof j5?O.toString():O&&typeof O.extrapolateToNow==="function"?$qw(O.extrapolateUsingTimestampMap(x).value,x):O===!0?"1":O===!1?"0":O===void 0||O===null?null:O instanceof ifm?Oe$(O):[O.top,
O.left,O.top+O.height,O.left+O.width].join()};
x4N=function(O,x){O=Object.entries(O).map(function(e){var l=_.T(e);e=l.next().value;l=l.next().value;l=$qw(l,x);return l===null?"":e+"="+l}).filter(function(e){return e!==""});
return O.length?O.join("&"):""};
CoL=function(O,x){var e=ecN,l=leL;x=x===void 0?.01:x;return function(C){x>0&&Math.random()<=x&&(O.global.HTMLFencedFrameElement&&O.global.fence&&typeof O.global.fence.reportEvent==="function"&&O.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),C=Object.assign({},C,{errorMessage:C.error instanceof Error&&C.error.message?C.error.message:String(C.error),errorStack:C.error instanceof Error&&C.error.stack?String(C.error.stack):null,errorName:C.error instanceof
Error&&C.error.name?String(C.error.name):null,errorContext:String(O.performanceMonitor.timedFunctionContext),errorEscapedQueryId:C.escapedQueryId}),e(Object.assign({},C,{payloadMapper:function(){return function(Q){try{return l(Object.assign({},Q))}catch(L){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),WX(C)).forEach(function(Q){O.beaconFactory.makeBeacon(Q).sendNow()}))}};
Qw$=function(){var O=_.vw.apply(0,arguments);return function(x){var e=x.pipe(bt(1),rX());x=O.map(function(l){return e.pipe(l,eN(!0))});
return dX(x).pipe(Od(1),$S())}};
be7=function(){var O=_.vw.apply(0,arguments);return function(x){var e=x.pipe(bt(1),rX());x=O.map(function(l){return e.pipe(l,eN(!0))});
return JS.apply(null,_.Kx(x)).pipe(Od(1),$S())}};
Tw$=function(O,x){return function(e){var l=e.pipe(bt(1),rX());e=l.pipe(O,eN(!0));l=l.pipe(XW(x,bt(),rX()),eN(!0));e=dX([e,l]);return XXr(e,l).pipe(Od(1),$S())}};
LF$=function(O,x,e){e(!0)};
kcr=function(O,x){return XW(Aj(function(e){var l=O(e),C=x(e),Q={};return l&&C&&Q?new oa(function(L){C(l,Q,function(k){L.next(Object.assign({},e,{canEmit:k}));L.complete()});
return function(){}}):hj}),wX(function(e){return e.canEmit}))};
A6N=function(O){var x={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(e){return e.pipe(Aj(function(l){return new oa(function(C){function Q(){k.disconnect();M.unsubscribe()}
var L=O.MutationObserver;if(L&&l.ref!==void 0){var k=new L(function(G){C.next(G)});
k.observe(l.ref,x);var M=l.JSC$9355_released.subscribe(Q);return Q}})}))}};
Mji=function(O){if(O.measurementDeferralState===3)return null;if(O.timeOnScreenReason!==void 0){var x=O.creativeFound===!1?"n":null;if(x!==null)return x}return O.geometricMeasurementErrors instanceof zJ?"msf":O.contextValidationErrors instanceof rc?"c":O.contextVisibilityKnown===!1?"pv":O.geometricMeasurementErrors||O.contextValidationErrors?"x":null};
Gcm=function(O,x){return O.replace(D4L,function(e,l){try{var C=_.HX.get(x,l);if(C==null||C.toString()==null)return e;C=C.toString();if(C==""||!_.AL(C==null?"":String(C)))return encodeURIComponent(C).replace(/%2C/g,",")}catch(Q){}return e})};
FF$=function(O,x){var e=Object.assign({},O),l=O.userAgentClientHints;e=(delete e.userAgentClientHints,e);e=O.payloadMapper(e);var C=x4N(e,x);return _.Ku(O.urlPrefixes,function(Q){var L="";typeof l==="string"&&(L="&"+x4N({uach:l},x));var k={};return Gcm(Q,(k.VIEWABILITY=C,k))+L})};
ecN=function(O,x){var e=O.payloadMapper(O),l=x4N(e,x);return l?_.Ku(O.urlPrefixes,function(C){C=C.indexOf("?")>=0?C:C+"?";C="?&".indexOf(C.slice(-1))>=0?C:C+"&";return C+l}):O.urlPrefixes};
XLL=function(){return XW(wX(function(O){return O!==void 0}),HO(function(O){return O}))};
oOr=function(O){return XW(HO(function(){return!0}),kG(!1),qM(O))};
y6i=function(O){return O.length<=0?vO:dX(O.map(function(x){var e=0;return x.pipe(HO(function(l){return{index:e++,value:l}}))})).pipe(wX(function(x){return x.every(function(e){return e.index===x[0].index})}),HO(function(x){return x.map(function(e){return e.value})}))};
Ze8=function(O,x){O.currentState&&(O.previousState=O.currentState);O.currentState=x;O.previousState&&O.previousState.value?(x=Math.max(0,S5(x.timestamp,O.previousState.timestamp)),O.totalTime+=x,O.consecutiveTime+=x):O.consecutiveTime=0;return O};
EOr=function(){return XW(Lu(Ze8,{totalTime:0,consecutiveTime:0}),HO(function(O){return O.totalTime}))};
tjw=function(){return XW(Lu(Ze8,{totalTime:0,consecutiveTime:0}),HO(function(O){return O.consecutiveTime}))};
qfL=function(O,x){return function(e){return y6i(x.map(function(l){return e.pipe(O(l))}))}};
Por=function(){var O;return XW(snm(function(x){return void(O=x.timestamp)}),tjw(),HO(function(x){return{timestamp:O,
value:Math.round(x)}}))};
c6i=function(O,x){return In(O.topWindowViewportExternalGeometry,x.topWindowViewportExternalGeometry)&&In(O.elementGeometry,x.elementGeometry)&&In(O.exposedViewportLocalGeometry,x.exposedViewportLocalGeometry)&&In(O.intersectionGeometry,x.intersectionGeometry)&&O.elementGeometrySourceName===x.elementGeometrySourceName&&O.measurementRequests===x.measurementRequests&&O.viewportGeometrySourceName===x.viewportGeometrySourceName&&O.viewportLocalAppOffset.x===x.viewportLocalAppOffset.x&&O.viewportLocalAppOffset.y===
x.viewportLocalAppOffset.y};
RcL=function(O,x){return function(e){return function(l){var C=l.pipe(Cu(new Ed),rX());l=e.element.pipe(xG());C=C.pipe(HO(function(Q){return Q.value}));
return dX([l,C,x]).pipe(HO(function(Q){var L=_.T(Q);Q=L.next().value;var k=L.next().value;L=L.next().value;if(Q.ref===void 0)var M={top:0,left:0,width:0,height:0};else{M=Q.ref.getBoundingClientRect();var G=Q.ref,X=O.global,y=new _.dc(0,0),Z=nu(_.BX(G));if(Hur(Z,"parent")){do{if(Z==X)var E=_.vX(G);else E=Ie8(G),E=new _.dc(E.left,E.top);y.x+=E.x;y.y+=E.y}while(Z&&Z!=X&&Z!=Z.parent&&(G=Z.frameElement)&&(Z=Z.parent))}M={top:y.y,left:y.x,width:M.width,height:M.height}}M=pv$(M,k.viewportLocalAppOffset);
X=VZL(M,k.exposedViewportLocalGeometry);y=O.timeProvider.now();Z=Object;G=Z.assign;if(L!==2||O.inCrossDomainIframe||X.width<=0||X.height<=0)var P=!1;else try{var U=O.document.elementFromPoint(X.left+X.width/2,X.top+X.height/2);P=U?!VjV(U,Q):!1}catch(W){P=!1}return{timestamp:y,value:G.call(Z,{},k,{elementGeometrySourceName:"geo",intersectionGeometry:P?pLN.intersectionGeometry:X,elementGeometry:M})}}),tj(O.queue))}}};
VjV=function(O,x,e){e=e===void 0?0:e;return O.ref===void 0||x.ref===void 0?!1:O.ref===x.ref||_.fu(x.ref,function(l){return l===O.ref})?!0:x.ref.ownerDocument&&x.ref.ownerDocument.defaultView&&x.ref.ownerDocument.defaultView===x.ref.ownerDocument.defaultView.top?!1:e<10&&x.ref.ownerDocument&&x.ref.ownerDocument.defaultView&&x.ref.ownerDocument.defaultView.frameElement?VjV(O,new Jj(x.ref.ownerDocument.defaultView.frameElement),e+1):!0};
m4i=function(O){return function(x){return x.pipe(O.ResizeObserver?U4r(O):aer(O),bt(1),rX())}};
U4r=function(O){return function(x){return x.pipe(Aj(function(e){var l=O.ResizeObserver;if(!l||e.ref===void 0)return aa(pLN.elementGeometry);var C=(new oa(function(Q){function L(){e.ref!==void 0&&k.unobserve(e.ref);k.disconnect();M.unsubscribe()}
if(e.ref===void 0)return Q.complete(),function(){};
var k=new l(function(G){G.forEach(function(X){Q.next(X)})});
k.observe(e.ref);var M=e.JSC$9355_released.subscribe(L);return L})).pipe(Nx(O.performanceMonitor,736),HO(function(Q){return Q.contentRect}));
return JS(aa(e.ref.getBoundingClientRect()),C)}),xG(In))}};
aer=function(O){return function(x){var e=x.pipe(A6N(O)),l=O.onResize;e=JS(x.pipe(HO(function(){return Q9r("resize")})),e,l);
return dX(x,e).pipe(Nx(O.performanceMonitor,737),HO(function(C){C=_.T(C).next().value;return C.ref===void 0?void 0:C.ref.getBoundingClientRect()}),XLL(),xG(In))}};
hcr=function(O,x){var e=sw$(O,x).pipe(bt(1),rX());return function(l){return function(C){C=C.pipe(Aj(function(Q){return Q.element}),xG());
return dX([e,C]).pipe(Aj(function(Q){var L=_.T(Q);Q=L.next().value;L=L.next().value;return WFL(O,Q.intersectionObserver,m4i(O),Q.observations,l,Q.flushRecords,L)}),tj(O.queue))}}};
zcs=function(O){return HO(function(x){return x.value.viewportGeometrySourceName!=="nio"?x:Object.assign({},x,{value:Object.assign({},x.value,{exposedViewportLocalGeometry:wc(O,!0),topWindowViewportExternalGeometry:wc(O,!0)})})})};
r68=function(O,x){return aa(x).pipe(O,HO(function(){return x}))};
sw$=function(O,x){return O.timeProvider.timeline!==Hew?mg(new zJ(2)):O.MutationObserver?typeof IntersectionObserver==="undefined"?mg(new zJ(0)):(new oa(function(e){var l=new Ed,C=new jN(l.next.bind(l),{threshold:[].concat(_.Kx(x))});e.next({observations:l.pipe(Nx(O.performanceMonitor,735)),intersectionObserver:C,flushRecords:function(Q){Q=C.takeRecords(Q);Q.length>0&&l.next(Q)}})})).pipe(Od(1),bt(1),rX()):mg(new zJ(1))};
KF7=function(O){return Hx7(O.sort(function(x,e){return x.time-e.time}),JS7)};
WFL=function(O,x,e,l,C,Q,L){return new oa(function(k){function M(){P||(P=!0,L.ref!==void 0&&x.unobserve(C,L.ref),X.unsubscribe(),E.unsubscribe(),Z.unsubscribe(),U.unsubscribe())}
if(L.ref!==void 0){d4r(x,C);x.observe(C,L.ref);var G=new NM({timestamp:O.timeProvider.now(),value:Object.assign({},pLN,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),X=l.pipe(ux(function(W){return KF7(W)}),wX(function(W){return W.target===L.ref}),HO(function(W){return{timestamp:new j5(W.time,Hew),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:W.rootBounds||$G,topWindowViewportExternalGeometry:W.rootBounds||wc(O,!0),measurementRequests:y,elementGeometrySourceName:"nio",intersectionGeometry:W.intersectionRect,elementGeometry:W.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:W.isIntersecting,isV2Visible:W.isVisible}}}),Cu(G),rX()).subscribe(k),y=new Ed,Z=y.subscribe(function(){Q(C);
k.next({timestamp:O.timeProvider.now(),value:G.value.value});L.ref!==void 0&&(x.unobserve(C,L.ref),x.observe(C,L.ref))}),E=r68(e,L).subscribe(function(){y.next()}),P=!1,U=L.JSC$9355_released.subscribe(function(){return M()});
return M}})};
nOs=function(O,x){var e=O.getOnBackgrounded().pipe(HO(function(){return"b"}));
return XXr(x,e).pipe(Od(1),qM(O.queue))};
Om=function(O){return function(x){var e;return x.pipe(snm(function(l){return void(e=l.timestamp)}),HO(function(l){return l.value}),O,HO(function(l){return{timestamp:e,
value:l}}))}};
u17=function(O){return O.intersectionGeometry.width*O.intersectionGeometry.height/(O.elementGeometry.width*O.elementGeometry.height)};
x8=function(O,x,e){e=e===void 0?function(l,C){return l===C}:e;
return O.timestamp.equals(x.timestamp)&&e(O.value,x.value)};
lP=function(O,x){return x.pipe(HO(function(e){return new eZ(O.timeProvider,{timestamp:O.timeProvider.now(),value:e})}))};
YfL=function(O){return function(x){return x.pipe(WOs(O),HO(function(e){var l=_.T(e);e=l.next().value;l=l.next().value;var C=e.value;return{timestamp:e.timestamp,value:C>=1?!0:C<=0?!1:C>=l}}))}};
vOW=function(){return XW(wX(function(O,x){return x>0}),Bwm,kG(-1),xG())};
fer=function(O,x,e){return O?dX([x,e]).pipe(wX(function(l){var C=_.T(l);l=C.next().value;C=C.next().value;return l.timestamp.equals(C.timestamp)}),HO(function(l){var C=_.T(l);
l=C.next().value;C=C.next().value;return l.value>C.value?l:C})):x};
SfN=function(O){return function(x){var e=x.pipe(J67),l=x.pipe(wLw);return O instanceof oa?O.pipe(Aj(function(C){return fer(C,e,l)})):fer(O.value,e,l)}};
C8r=function(O,x,e,l){var C=l.geometryIsOccluded,Q=l.exposureThreshold,L=l.wasLargeAdAtRender,k=l.allowLargeAdThreshold,M=l.largeAdExposureThreshold,G=l.mayUseViewportShareExposure,X=l.hasMeasurementStarted;l=l.useIntersectionObserverV2;x=jwN(O,e,x);e=NwN(O,e);l=gOm(x,l);var y=$4$(O,C,G,x),Z=y.pipe(HO(function(Y){return Y.value}),xG(),qM(O),Lu(function(Y,J){return Math.max(Y,J)},0)),E=y.pipe(HO(function(Y){return Y.value}),vOW(),qM(O)),P=x.pipe(ie$,HO(function(Y){return Y.value}),Od(2),xG(),qM(O));
L=OOV(O,x,L,k);var U=L.pipe(kG(!1),xG(),HO(function(Y){return Y?M:Q}));
k=y.pipe(YfL(U),xG(),qM(O));var W=dX([k,x]).pipe(wX(function(Y){var J=_.T(Y);Y=J.next().value;J=J.next().value;return Y.timestamp.equals(J.timestamp)}),HO(function(Y){var J=_.T(Y);
Y=J.next().value;J=J.next().value;return{visible:Y.value,geometry:J.value.elementGeometry}}),Lu(function(Y,J){return!J.visible&&Y.visible?Y:J},{visible:!1,
geometry:$G}),HO(function(Y){return Y.geometry}),kG($G),qM(O),xG(In));
G=G instanceof oa?G.pipe(xG(),ix()):hj;U=dX([G,U]).pipe(ix());var z=x.pipe(wX(function(Y){return Y.value.viewportGeometrySourceName!=="ns"&&Y.value.elementGeometrySourceName!=="ns"}),Lu(function(Y){return Y+1},0),kG(0),qM(O)),r=e.pipe(ix(!0),kG(!1),qM(O));
r=dX([X,r]).pipe(HO(function(Y){var J=_.T(Y);Y=J.next().value;J=J.next().value;return Y&&!J}),qM(O));
var f=x.pipe(xDi,xG()),u=f.pipe(HO(function(Y){return Y.value}),Lu(function(Y,J){return Math.max(Y,J)},0),xG(),qM(O));
O=f.pipe(HO(function(Y){return Y.value}),vOW(),qM(O));
return{shouldResetExposureSignals:G,shouldResetViewabilitySignals:U,geometrySignals:{readyGeometryWithDefault:x,measurementStrategy:x.pipe(enL),creativePosition:W.pipe(xG(In)),visible:k.pipe(xG(x8)),timestampedExposure:y.pipe(xG(x8)),maximumExposure:Z,minimumExposure:E,browserSize:x.pipe(lK7,xG(_.g7)),timestampedScreenShare:f,maxScreenShare:u,minScreenShare:O,geometricMeasurementErrors:e,measurementRequests:x.pipe(HO(function(Y){return Y.value.measurementRequests})),
isLargeAd:L,geometryIsOccluded:C,hasMeasurementStarted:X,geometryMeasurable:r,validMeasurementCount:z,loadTimeExposure:P,v2VisibilityBitVector:l}}};
NwN=function(O,x){return x.pipe(wX(function(){return!1}),HO(function(e){return e}),gX(function(e){return Cf(new cX(e),O)}))};
jwN=function(O,x,e){return x.pipe(GJ$(hj),qM(O)).pipe(xG(function(l,C){return x8(l,C,c6i)}),kG({timestamp:e.now(),
value:pLN}),qM(O))};
$4$=function(O,x,e,l){e=l.pipe(SfN(e),Om(HO(function(C){return Math.round(C*100)/100})),qM(O));
return x instanceof cX?e:dX([e,x]).pipe(HO(function(C){var Q=_.T(C);C=Q.next().value;Q=Q.next().value;return{timestamp:Q.timestamp.maximum(C.timestamp),value:Q.value?0:C.value}}),xG(x8),qM(O))};
OOV=function(O,x,e,l){x=[x.pipe(HO(function(C){return C.value.elementGeometry.width*C.value.elementGeometry.height>=242500}))];
e instanceof oa&&x.push(e.pipe(HO(function(C){return!!C})));
e=dX(x);return l?e.pipe(HO(function(C){return C.some(function(Q){return Q})}),kG(!1),xG(),qM(O)):Cf(new cX(!1),O)};
gOm=function(O,x){O=dX([O,x]).pipe(HO(function(C){var Q=_.T(C);C=Q.next().value;if(Q.next().value&&C.value.isIntersecting)return C.value.isV2Visible}),xG());
var e=O.pipe(HO(function(C){return C===void 0?!0:C}),Lu(function(C,Q){return C||!Q},!1)),l=O.pipe(Lu(function(C,Q){return Q===void 0?C:Q?!1:C!=null?C:!0},void 0),HO(function(C){return!!C}));
return dX([x,oG8(O,e,l)]).pipe(HO(function(C){var Q=_.T(C);C=Q.next().value;var L=_.T(Q.next().value);Q=L.next().value;var k=L.next().value;L=L.next().value;var M=0;if(!C)return 0;if(Q===void 0)return 16;Q&&(M|=1);Q||(M|=2);k&&(M|=4);L&&(M|=8);return M}))};
AZi=function(O,x,e,l,C){var Q=QUi.timeThresholdMs;var L=L===void 0?new bOm(x,l):L;return(new oa(function(k){var M=e.pipe(kG(void 0),Aj(function(){return Tz7(C)})).pipe(HO(function(G){var X=G.value;
G=G.timestamp;var y=X.visible;X=X.consecutiveViewTime;var Z=X>=Q;Z||!y?Lx$(L):(G=Math.max(0,S5(x.now(),G)),kn7(L,Math.max(0,Q-X-G)));return Z}),Lu(function(G,X){return X||G},!1),xG()).subscribe(k);
return function(){L.dispose();M.unsubscribe()}})).pipe(MM(function(k){return!k},!0),qM(O))};
Tz7=function(O){return y6i([O,O.pipe(Por())]).pipe(HO(function(x){var e=_.T(x);x=e.next().value;e=e.next().value;return{timestamp:x.timestamp,value:{visible:x.value,consecutiveViewTime:e.value}}}),xG(function(x,e){return x8(x,e,function(l,C){return l.consecutiveViewTime===C.consecutiveViewTime&&l.visible===C.visible})}))};
MSs=function(){return XW(tjw(),Lu(function(O,x){return Math.max(O,x)},0),HO(function(O){return Math.round(O)}))};
DDi=function(O){return XW(YfL(aa(O)),MSs())};
Gn8=function(O,x){return x instanceof oa?x.pipe(Aj(function(e){return(e=e?15:null)?mg(new zJ(e)):O})):(x=x.value?15:null)?mg(new zJ(x)):O};
Fxn=function(O){var x=new zJ(13);if(O.length<1)return{chain:vO,capturedErrors:vO};var e=new Ed,l=O[0];return{chain:O.slice(1).reduce(function(C,Q){return C.pipe(gX(function(L){e.next(L);return Q}))},l).pipe(gX(function(C){e.next(C);
return mg(x)}),Cu(new Ed),rX()),
capturedErrors:e}};
XEr=function(O,x){var e=O.pipe(Cu(new Ed),rX());return Aj(function(l){return e.pipe(x(l))})};
yZr=function(O,x){if(O.inCrossDomainIframe)return mg(new zJ(6));var e=new Ed;return JS(aa({}),x,e).pipe(HO(function(){return{timestamp:O.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:oK$(O),topWindowViewportExternalGeometry:wc(O,!0),measurementRequests:e,viewportLocalAppOffset:{x:0,y:0}}}}),tj(O.queue))};
oK$=function(O){var x=wc(O,!1);if(!O.inIframe||!KOi(O.global.parent)||O.global.parent===O.global)return x;var e=new QW(O.global.parent,O.debugChannel);e.beaconFactory=O.beaconFactory;e=oK$(e);O=O.global.frameElement.getBoundingClientRect();return VZL(pv$(VZL(e,O),{x:x.left-O.left,y:x.top-O.top}),x)};
ZOn=function(O){if(O.prerendering)return 3;var x;return(x={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[O.visibilityState||O.webkitVisibilityState||O.mozVisibilityState||""])!=null?x:0};
EKm=function(O){return O.document.JSC$9366_onVisibilityChange.pipe(HO(function(x){return x==="visible"}),xG(),qM(O.queue))};
tSW=function(O,x,e){var l;return x.pipe(xG(),Aj(function(C){return e.pipe(HO(function(){if(!l){l=!0;try{C.next()}finally{l=!1}}return!0}))}),kG(!1),qM(O.queue))};
q0r=function(O){return XW(Om(HO(function(x){return x>=1?!0:x<=0?!1:x>=O})),EOr(),HO(function(x){return Math.round(x)}))};
cZL=function(O,x,e,l,C){var Q=P88;if(Q.length>1)for(var L=0;L<Q.length-1;L++)if(Q[L]<Q[L+1])throw Error();L=C.pipe(kG(void 0),Aj(function(){return e.pipe(Por())}),xG(),qM(O));
C=C.pipe(kG(void 0),Aj(function(){return e.pipe(MSs())}),xG(),qM(O));
return{totalMeasurementTime:l.pipe(kG(void 0),Aj(function(){return x.pipe(HO(function(k){return{timestamp:k.timestamp,value:!0}}),EOr())}),xG(),qM(O)),
totalUnviewedTime:l.pipe(kG(void 0),Aj(function(){return x.pipe(HO(function(k){return{timestamp:k.timestamp,value:k.value===0}}),EOr())}),xG(),qM(O)),
maxTimeOnScreen:l.pipe(kG(void 0),Aj(function(){return x.pipe(qfL(DDi,Q))}),xG(_.g7),qM(O)),
timeOnScreen:l.pipe(kG(void 0),Aj(function(){return x.pipe(qfL(q0r,Q),HO(function(k){return k.map(function(M,G){return G>0?M-k[G-1]:M})}))}),xG(_.g7),qM(O)),
maxConsecutiveViewTime:C,consecutiveViewTime:L.pipe(xG(x8),qM(O))}};
VSr=function(O){var x=!0;x=x===void 0?!1:x;return XW(Aj(function(e){return IKW(O.document,e,x)}),qM(O.queue))};
pEm=function(O,x,e){var l=e.pipe(HO(function(C){return{value:C,timestamp:O.timeProvider.now()}}),xG(x8));
return x instanceof oa?x.pipe(xG(),Aj(function(C){return C?Cf(new cX({value:!1,timestamp:O.timeProvider.now()}),O.queue):l})):x.value===!1?l:new cX(!1)};
RnL=function(O,x,e,l,C,Q,L){var k=QUi;x=x instanceof oa?x.pipe(kG(!1),xG()):x;var M=!O.isMobile();e=pEm(O,e,l);O=L.measurableCreative.pipe(oOr(O.queue));return Object.assign({},k,{geometryIsOccluded:e,wasLargeAdAtRender:C,allowLargeAdThreshold:M,mayUseViewportShareExposure:x,hasMeasurementStarted:O,useIntersectionObserverV2:Q})};
aKw=function(O,x,e,l,C,Q){var L=1;Q=Q===void 0?!0:Q;L=L===void 0?.01:L;var k=k===void 0?O.timeProvider.intervalObservable(100).pipe(qM(O.queue)):k;return O.performanceMonitor.timeExecution(916,function(){return UDW(O,x.pipe(tj(O.queue)),e.pipe(tj(O.queue)),l,C,Q,L,k)})()};
UDW=function(O,x,e,l,C,Q,L,k){var M=EKm(O).pipe(HO(function(X){return!X})),G=new mDr(O,[new sUL(O,P88),
new Wxr(O,k)]);k=Qw$(hnw,znV);return g8w(O,x,function(X,y){var Z=Cf(new cX(y.element),X.queue).pipe(VSr(X),qM(X.queue)),E={loadedElement:Z,shouldMeasure:Z.pipe(ix(!0)),measurableCreative:Z.pipe(HO(function(Y){var J=J===void 0?Symbol():J;return Object.freeze({symbol:J,element:Cf(new cX(Y),X.queue)})})),
creativeSearchResult:Cf(new cX("mue"),X.queue)},P=new cX(!1),U=new cX(!1),W=new cX(17),z=new cX(!1),r=new cX(!1),f=Cf(bP,X.queue);P=G.buildGeometrySource(E,{inApp:P,useV2:!1,requestSource:Cf(W,X.queue)}).geometrySource;E=RnL(X,z,U,M,r,f,E);U=C8r(X.queue,X.timeProvider,P,E);E=U.geometrySignals;z=U.shouldResetViewabilitySignals;U=cZL(X.queue,E.timestampedExposure,E.visible,U.shouldResetExposureSignals,z);z=AZi(X.queue,X.timeProvider,z,E.measurementRequests,E.visible);r=e.pipe(wX(function(Y){return Y===
y.element.ref}),HO(function(){return"ur"}));
f=tNN(X.timeProvider,C).pipe(ix("t"));r=nOs(X,JS(r,f));f=tSW(X,E.measurementRequests,r.pipe(wX(function(Y){return Y!==null})));
P=r.pipe(wX(function(Y){return Y!==null}),HO(function(){return ZOn(X.global.document)===1}));
var u=rZr(X.document);return Object.assign({},{beaconFactory:new cX(X.beaconFactory),context:new cX(X),inferredPingId:new cX("lidar2"),timeOnScreenPingId:new cX("lidartos"),binaryContext:new cX(17),binaryVersion:new cX(l),requestSource:W,contextValidationErrors:new cX(X.validate()?null:new rc),contextVisibilityKnown:new cX(u),payloadMapper:new cX(leL),endOfSessionReason:r,timeOnScreenReason:r,requestMeasurementOnEndOfSession:f,hasImpressionFired:HO7,crossDomainIframeState:new cX(X.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:bP,inFetchLaterBeaconExperiment:bP,isTurtlex:bP,turtlexReportEventData:new cX(""),reportFencedFrameEvent:hj,isViewableAttributionEnabled:bP,inViewableAttributionExperiment:new cX(0),fetchBeaconFactory:hj,supportsPendingBeacon:bP,supportsFetchLater:bP,emit:new cX(LF$),beginToRenderEvent:new cX(Symbol()),activeViewUnmeasurableEvent:new cX(Symbol()),activeViewViewableEvent:new cX(Symbol()),creativeFound:HO7,immediateUrlPrefixes:new cX(y.immediateUrls),timeOnScreenUrlPrefixes:new cX(y.timeOnScreenUrls),
cpmavUrls:hj,viewableRelayUrls:hj,measurementDeferralState:new cX(2),urlSerializer:new cX(FF$),viewUrlSerializer:new cX(Kxw),isCreativeLoaded:Z.pipe(oOr(X.queue)),pageVisible:M.pipe(HO(function(Y){return!Y})),
eosPageVisible:P,timestampedExposureHistory:E.timestampedExposure.pipe(Lu(function(Y,J){Y.push(J);return Y},[]))},E,{viewable:lP(X,z),
maxTimeOnScreen:lP(X,U.maxTimeOnScreen),timeOnScreen:lP(X,U.timeOnScreen),maxConsecutiveViewTime:lP(X,U.maxConsecutiveViewTime),consecutiveViewTime:U.consecutiveViewTime.pipe(HO(function(Y){return new eZ(X.timeProvider,Y)})),
totalMeasurementTime:lP(X,U.totalMeasurementTime),totalUnviewedTime:lP(X,U.totalUnviewedTime),userAgentClientHints:CP8(X),clientOrderPingCounter:new cX(new ifm)})},CoL(O,L),be7(Q?Tw$(k,dDr):Tw$(k,nK$),umV))};
Y0w=function(O){var x=_.vw.apply(1,arguments).filter(Boolean).join("&");if(!x)return O;var e=O.match(/[?&]adurl=/);return e?O.slice(0,e.index+1)+x+"&"+O.slice(e.index+1):O+(O.indexOf("?")<0?"?":"&")+x};
T8=function(O,x){return x?"&"+O+"="+encodeURIComponent(x):""};
BzL=function(){try{var O,x;return!!((O=window)==null?0:(x=O.top)==null?0:x.location.href)&&!1}catch(e){return!0}};
_.Lf=function(O){O&&typeof O.dispose=="function"&&O.dispose()};
_.k8=function(O){for(var x=0,e=arguments.length;x<e;++x){var l=arguments[x];_.vi(l)?_.k8.apply(null,l):_.Lf(l)}};
fK$=function(){var O=vKr();O=O===void 0?"bevasrsg":O;return new Promise(function(x){var e=window===window.top?window:BzL()?window:window.top,l=e[O],C;((C=l)==null?0:C.bevasrs)?x(new A0(l.bevasrs)):(l||(l={},l=(l.nqfbel=[],l),e[O]=l),l.nqfbel.push(function(Q){x(new A0(Q))}))})};
JZ7=function(O){var x={c:O.hk,e:O.yHI,mc:O.i1q,me:O.gQl};O.bk&&(x.co={c:O.bk.x7z,a:O.bk.zql,s:O.bk.b1V});return x};
wEs=function(O){var x,e,l={hk:O.c,yHI:O.e,i1q:(x=O.mc)!=null?x:!1,gQl:(e=O.me)!=null?e:!1};O.co&&(l.bk={x7z:O.co.c,zql:O.co.a,b1V:O.co.s});return l};
S08=function(O){return function(){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O(),2);x=e.yieldResult;return e.return({f:function(){return x.jIY()},
c:function(l){return x.dem(l)},
m:function(l){return x.iN(wEs(l))},
mws:function(l){return x.g9l(wEs(l))}})})}};
jUw=function(O,x){var e=vKr();e=e===void 0?"bevasrsg":e;x={s:function(Q){var L;return O.snapshot(Object.assign({},Q.c&&{hk:Q.c},Q.s&&{dmY:Q.s},{s61:(L=Q.p)!=null?L:!0}))},
e:function(Q){var L;return void((L=O.isX)==null?void 0:L.call(O,Q))},
c:function(Q,L){return O.yrY(Q,L)},
p:O.sIv,l:function(){return O.yul()},
wpc:x?S08(x):void 0};var l=window===window.top?window:BzL()?window:window.top,C=l[e];if(C){C.bevasrs=x;if(C.nqfbel!==void 0)for(e=_.T(C.nqfbel),l=e.next();!l.done;l=e.next())l=l.value,l(x);C.nqfbel=void 0}else C={},C=(C.bevasrs=x,C.nqfbel=void 0,C),l[e]=C};
gKV=function(O){var x=x===void 0?51:x;var e=[];_.Mq(O,Nz7,6,_.Dd()).forEach(function(l){_.G8(l,2)<=x&&e.push(_.G8(l,1))});
return e};
$Dn=function(O){var x=x===void 0?51:x;var e=[];_.Mq(O,Nz7,6,_.Dd()).forEach(function(l){_.G8(l,2)>x&&e.push(_.G8(l,1))});
return e};
iOn=function(O){O.then(function(){},function(){})};
FF=function(O){return{fieldType:1,fieldName:O}};
XF=function(O){return{fieldType:2,fieldName:O}};
_.o9=function(O){return{fieldType:3,fieldName:O}};
Obn=function(){function O(){C[0]=1732584193;C[1]=4023233417;C[2]=2562383102;C[3]=271733878;C[4]=3285377520;X=G=0}
function x(y){for(var Z=L,E=0;E<64;E+=4)Z[E/4]=y[E]<<24|y[E+1]<<16|y[E+2]<<8|y[E+3];for(E=16;E<80;E++)y=Z[E-3]^Z[E-8]^Z[E-14]^Z[E-16],Z[E]=(y<<1|y>>>31)&4294967295;y=C[0];var P=C[1],U=C[2],W=C[3],z=C[4];for(E=0;E<80;E++){if(E<40)if(E<20){var r=W^P&(U^W);var f=1518500249}else r=P^U^W,f=1859775393;else E<60?(r=P&U|W&(P|U),f=2400959708):(r=P^U^W,f=3395469782);r=((y<<5|y>>>27)&4294967295)+r+z+f+Z[E]&4294967295;z=W;W=U;U=(P<<30|P>>>2)&4294967295;P=y;y=r}C[0]=C[0]+y&4294967295;C[1]=C[1]+P&4294967295;C[2]=
C[2]+U&4294967295;C[3]=C[3]+W&4294967295;C[4]=C[4]+z&4294967295}
function e(y,Z){if(typeof y==="string"){y=unescape(encodeURIComponent(y));for(var E=[],P=0,U=y.length;P<U;++P)E.push(y.charCodeAt(P));y=E}Z||(Z=y.length);E=0;if(G==0)for(;E+64<Z;)x(y.slice(E,E+64)),E+=64,X+=64;for(;E<Z;)if(Q[G++]=y[E++],X++,G==64)for(G=0,x(Q);E+64<Z;)x(y.slice(E,E+64)),E+=64,X+=64}
function l(){var y=[],Z=X*8;G<56?e(k,56-G):e(k,64-(G-56));for(var E=63;E>=56;E--)Q[E]=Z&255,Z>>>=8;x(Q);for(E=Z=0;E<5;E++)for(var P=24;P>=0;P-=8)y[Z++]=C[E]>>P&255;return y}
for(var C=[],Q=[],L=[],k=[128],M=1;M<64;++M)k[M]=0;var G,X;O();return{reset:O,update:e,digest:l,digestString:function(){for(var y=l(),Z="",E=0;E<y.length;E++)Z+="0123456789ABCDEF".charAt(Math.floor(y[E]/16))+"0123456789ABCDEF".charAt(y[E]%16);return Z}}};
bbi=function(O,x){x=x===void 0?xbN:x;if(!e5m){var e;O=(e=O.navigator)==null?void 0:e.userAgentData;if(!O||typeof O.getHighEntropyValues!=="function"||O.brands&&typeof O.brands.map!=="function")return Promise.reject(Error("ua"));l0r((O.brands||[]).map(function(C){var Q=new Cu8;Q=_.mO(Q,1,C.brand);return _.mO(Q,2,C.version)}));
typeof O.mobile==="boolean"&&_.yW(QOr,2,O.mobile);e5m=O.getHighEntropyValues(x)}var l=new Set(x);return e5m.then(function(C){var Q=QOr.clone();l.has("platform")&&_.mO(Q,3,C.platform);l.has("platformVersion")&&_.mO(Q,4,C.platformVersion);l.has("architecture")&&_.mO(Q,5,C.architecture);l.has("model")&&_.mO(Q,6,C.model);l.has("uaFullVersion")&&_.mO(Q,7,C.uaFullVersion);return Q.serialize()}).catch(function(){return QOr.serialize()})};
Zd=function(O,x,e,l){this.initialValue_=O;this.maxValue_=x;this.currBaseValue_=this.currValue_=O;this.randomFactor_=e||0;this.backoffFactor_=l||2};
Em=function(O){this.src=O;this.listeners={};this.typeCount_=0};
Aqn=function(){for(var O;O=Ty8.remove();){try{O.fn.call(O.scope)}catch(x){QN(x)}LKw.put(O)}kGr=!1};
_.M3r=function(O){switch(O){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}};
DbN=function(O){switch(O){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""}};
_.GGr=function(){};
Pum=function(O,x,e,l){O=FKm(XKW(ocw(new _.t0(1828,"0"),O),new yqn)).disableWithCredentials();x.length&&Zbr(O,Ecs(new t3m,x));l!==void 0&&(O.destinationUrl=l);var C=new qC7(1828,"","",!1,"",O.build());_.qq(C,O);var Q=new I9({flush:function(L){try{C.flush(L)}catch(k){e(k)}}});
Q.addOnDisposeCallback(function(){setTimeout(function(){try{Q.snapshotAndFlush()}finally{C.dispose()}})});
Q.invocationLimit=1E5;Q.flushInterval=3E4;Q.JSC$9782_flushTimer.setInterval(3E4);return Q};
VW=function(){var O,x,e;return(e=(O=globalThis.performance)==null?void 0:(x=O.now)==null?void 0:x.call(O))!=null?e:Date.now()};
V3N=function(O,x){if(O.disable)return new cqr;x=x?gKV(x):[];O={sj:O.sj,omv:O.qnt,ee6:O.uz3,destinationUrl:O.destinationUrl,aLb:O.aLb,wCl:O.wCl};x=x===void 0?[]:x;return new I0w(O,x)};
pK7=function(O){if(!O)return null;O=_.pf(O,2);return O===null||O===void 0?null:SE(O)};
_.R5N=function(O){if(!O)return null;O=_.pf(O,4);return O===null||O===void 0?null:_.aS(O)};
mbs=function(O,x){return x?UbL(x):O?a08(O):Promise.resolve()};
UbL=function(O){return new Promise(function(x,e){var l=_.R9("SCRIPT"),C=_.R5N(O);_.QP(l,C);l.onload=function(){_.Um(l);x()};
l.onerror=function(){_.Um(l);e(Error("Fa"))};
(a9("HEAD")[0]||document.documentElement).appendChild(l)})};
a08=function(O){return new Promise(function(x){var e=_.R9("SCRIPT");if(O){var l=_.pf(O,6);l=l===null||l===void 0?null:_.e5(l)}else l=null;_.Cx(e,l);(a9("HEAD")[0]||document.documentElement).appendChild(e);_.Um(e);x()})};
my=function(O,x,e){var l,C=new Promise(function(Q){l=setTimeout(Q,x)});
return Promise.race([O.finally(function(){return void clearTimeout(l)}),
C.then(e)])};
sOs=function(O,x){try{return globalThis.sessionStorage.setItem(O,x),!0}catch(e){return!1}};
WK8=function(O,x,e,l){x=x===void 0?0:x;e=e===void 0?O.length:e;var C=0;for(l&&(C=WK8(l));x<e;x++)l=typeof O==="string"?O.charCodeAt(x):O[x],C=h5N(31,C)+l|0;return C};
z5W=function(O,x){return[WK8(O,0,O.length>>1,x),WK8(O,O.length>>1)]};
rqi=function(O){var x=_.T(z5W(O,sm));O=x.next().value;x=x.next().value;return O.toString(16)+x.toString(16)};
HbL=function(O,x){var e=z5W(x);O=new Uint32Array(O.buffer);x=O[0];var l=_.T(e);e=l.next().value;l=l.next().value;for(var C=1;C<O.length;C+=2){for(var Q=x,L=C,k=e,M=l,G=0;G<22;G++)L=L>>>8|L<<24,L+=Q|0,L^=k+38293,Q=Q<<3|Q>>>29,Q^=L,M=M>>>8|M<<24,M+=k|0,M^=G+38293,k=k<<3|k>>>29,k^=M;Q=[Q,L];O[C]^=Q[0];C+1<O.length&&(O[C+1]^=Q[1])}};
KKV=function(O,x,e,l,C){var Q=(4-(sm.length+e.length)%4)%4,L=new Uint8Array(4+Q+sm.length+4+e.length),k=new DataView(L.buffer),M=0;k.setUint32(M,Math.random()*4294967295);M=M+4+Q;L.set(sm,M);M+=sm.length;k.setUint32(M,C);L.set(e,M+4);HbL(L,l);return O.insert(x,function(G){return void globalThis.sessionStorage.removeItem(G)})?sOs(x,_.zX(L))?"s":"t":"i"};
dbL=function(O,x){var e=globalThis.sessionStorage.getItem(O);if(!e)return["m"];try{var l=_.ir(e);HbL(l,x)}catch(C){return globalThis.sessionStorage.removeItem(O),["c"]}for(x=4;x<7&&l[x]===0;)x++;for(e=0;e<sm.length;e++)if(l[x++]!==sm[e])return globalThis.sessionStorage.removeItem(O),["d"];e=(new DataView(l.buffer)).getUint32(x);return Math.floor(Date.now()/1E3)>=e?(globalThis.sessionStorage.removeItem(O),["e"]):["a",new Uint8Array(l.buffer,x+4)]};
ncN=function(O){return globalThis.TextEncoder?(new TextEncoder).encode(O):_.Wv(O)};
ucm=function(O){var x=O,e;return function(){if(x){var l=x;x=void 0;e=l.apply(this,arguments)}return e}};
ByL=function(O){return hJ(function(x){if(x instanceof O)return!0;var e,l,C=x==null?void 0:(e=x.ownerDocument)==null?void 0:(l=e.defaultView)==null?void 0:l[O.name];return YC8(C)&&x instanceof C})};
_.ro=function(O,x,e){_.h0.call(this);this.JSC$9996_listener_=O;this.JSC$9996_interval_=x||0;this.handler_=e;this.callback_=(0,_.z8)(this.JSC$9998_doAction_,this)};
_.Hv=function(O){O=vcL(O);return _.aS(O)};
vcL=function(O){return O===null?"null":O===void 0?"undefined":O};
Jqi=function(O){if(O&&O.focus)if(O!==document.activeElement)O.focus();else return f0s(function(){return _.A(function(x){document.activeElement&&document.activeElement.blur();return x.return(f0s(function(){O.focus()}))})})};
_.wKN=function(O){var x=x===void 0?5:x;setTimeout(function(){var e;return _.A(function(l){l.nextAddress==1&&(e=document.activeElement);if(l.nextAddress!=5)return(document.activeElement===e||document.activeElement===document.body)&&x>=0&&O?l.yield(Jqi(O),5):l.jumpTo(0);if(document.activeElement===O)return l.return();O=O.parentElement;--x;return l.jumpTo(2)})},15)};
f0s=function(O){return new Promise(function(x){requestAnimationFrame(function(){x(O())})})};
jOL=function(O){if(_.Kf)O(_.Kf);else{var x;((x=SCw)!=null?x:SCw=[]).push(O)}};
uP=function(){!_.Kf&&_.nf&&_.Nyn(_.nf());return _.Kf};
_.Nyn=function(O){_.Kf=O;var x;(x=SCw)==null||x.forEach(jOL);SCw=void 0};
_.Y8=function(O){_.Kf&&_.Kf.beforeLoadModuleCode(O)};
_.Bv=function(){_.Kf&&_.Kf.JSC$11054_setLoaded()};
vv=function(O){return zLi(O)?Number(O):String(O)};
gcV=function(O){this.action=O;this.wfv=!1};
$bi=function(O,x){gcV.call(this,"set-drive-options");this.appId=O;this.appOrigin=x};
ibw=function(O){gcV.call(this,"visibility");this.visible=O};
O$$=function(O,x,e){ff.call(this,O,x,e)};
xBr=function(O){J0.call(this,O)};
exr=function(O){O=O&&O.getWindow()||window;return O.gadgets&&O.gadgets.rpc};
CbV=function(O,x){var e=x&&x.getWindow()||window;if(exr(x))O();else if(lG8)lG8.push(O);else var l=lG8=[O],C=e.setInterval(function(){if(exr(x)){e.clearInterval(C);for(var Q=0;Q<l.length;Q++)l[Q]();lG8=null}},100)};
b$m=function(O,x){var e=new Nq(O);_.qq(x,e);var l={passive:!1};x.listen(e,"mousewheel",function(C){return void QC$(O,C)},l).listen(O,"scroll",function(C){return void QC$(O,C)},l)};
QC$=function(O,x){var e;a:{for(e=x.target;e;){if(e.nodeType==1){var l=_.go(e,"overflowY");if(l=="auto"||l=="scroll")break a}e=e.parentNode}e=null}if(!e||!_.$8(O,e)||e.scrollHeight==e.clientHeight||x.deltaY>0&&Math.abs(e.scrollTop-(e.scrollHeight-e.clientHeight))<=1||x.deltaY<0&&e.scrollTop==0)x.preventDefault(),x.stopPropagation()};
Qd=function(O,x,e,l,C,Q,L,k,M){k=k===void 0?!1:k;M=M===void 0?!1:M;ff.call(this,void 0,void 0,void 0);ff.call(this,Q?Q+" picker modal-dialog":"picker modal-dialog",!0,e);_.iP(O,"protocol");this.iframeManager_=new TDn;this.targetId_=Of();this.rpcToken_=Of();O=_.xO(O);_.ej(O,"hostId");e=_.ej(O,"parent");this.useGapi_=!M&&!0||(e==null?void 0:e.includes("onepick.corp.google.com"));k&&_.lo(O,"fv2","true");this.setUrl(O.toString());this.preferredDialogWidth_=l;this.preferredDialogHeight_=C;l!==void 0||
C!==void 0?l=!0:(l=_.ej(_.xO(O.toString()),"hostId"),LQW||(LQW=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),l=!LQW.has(l));this.autoSizeDialog_=l;this.JSC$10186_gadgetsDomHelper_=L||this.JSC$10137_dom_;x&&(L=this.JSC$10186_gadgetsDomHelper_,x=_.ej(_.xO(this.JSC$10188_url_),"grugl")=="true"?kCr:ANm,exr(L)||(L=L||an(document),l=L.createElement("SCRIPT"),_.QP(l,x),l.type="text/javascript",L.JSC$9321_document_.body.appendChild(l)));
O=O.toString();x=null;L=O.indexOf("/picker?");L>-1?x=O.substring(0,L+8-1):LV(O,"/picker")&&(x=O);x&&this.setRelayUrl(x+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(O=this.buttons_,O.JSC$10171_element_=this.buttonEl_,O.render()):_.bx(this.buttonEl_,MCr),_.Ce(this.buttonEl_,!!this.buttons_))};
_.Xnm=function(O){var x=x===void 0?DB$:x;var e=_.N$(O),l=function(Q){Q=_.T(Q);Q.next();Q=bo(Q);return x(e,Q)},C=function(Q){var L=_.T(Q);
Q=L.next().value;L=bo(L);return O.apply(Q,L)};
return function(){var Q=_.vw.apply(0,arguments),L=this||_.CV,k=GCW.get(L);k||(k={},GCW.set(L,k));return FQr(k,[this].concat(_.Kx(Q)),C,l)}};
Tc=function(O){var x={};O=O.replace(/\r/g,"").split("\n");for(var e=0;e<O.length;e++){var l=O[e],C=l.indexOf(":");C<0||(x[l.substring(0,C)]=l.substring(C+2,l.length))}return x};
oCW=function(O,x,e){e=e===void 0?function(){}:e;
return O?x():e()};
_.Z$L=function(O){var x;return((x=yNw.documentOverride)!=null?x:O).__wizdispatcher};
_.kO=function(O){var x=Le;Le=O;return x};
_.tCr=function(O){return O===ECr||(O==null?void 0:O.name)==="\u0275NotFound"};
_.A6=function(O,x){var e;if((e=O)==null?0:e.isDisposed)throw Error("jb`"+String(O.debugName));for(;O!==void 0;){e=O;if(e.retrieve)return e.retrieve(x,{optional:!0});O=O.parent}return ECr};
M4=function(O){return{"\u0275prov":{providedIn:"root",token:Symbol(O),factory:void 0,value:void 0}}};
_.qYL=function(O){var x=Le;if(!x){switch(O===void 0?3:O){case 0:O=Error("ib");break;case 1:O=Error("kb");break;case 2:O=Error("lb");break;default:O=Error("mb")}throw O;}return x};
Pbw=function(O){var x=_.kO(O);O={};return O[Symbol.dispose]=function(){_.kO(x)},O};
cNr=function(O,x){O.disposables||(O.disposables=[]);O.disposables.push(x)};
De=function(O){var x=Le;x&&!x.isDisposed&&(cNr(x,O),O.parent=x)};
VCW=function(O){if(O.disposables){for(var x=_.T(O.disposables),e=x.next();!e.done;e=x.next())e=e.value,typeof e==="function"?e():IG8(e);O.disposables.length=0}};
IG8=function(O){if(!O.isDisposed){O.isDisposed=!0;var x;(x=O[Symbol.dispose])==null||x.call(O);delete O.parent;VCW(O)}};
zxL=function(O){var x={retrieve:function(e){switch(e.\u0275prov.token){case pnr.\u0275prov.token:var l=O.asyncDeps;break;case _.RxN.\u0275prov.token:l=O.rootElement;break;case UBr.\u0275prov.token:l=O.modelRootElement;break;case aGn.\u0275prov.token:l=O.appContext;break;case mBr.\u0275prov.token:l=O.rendererData;break;case sCr.\u0275prov.token:l=O.injectingConstructor;break;case WQn.\u0275prov.token:l=O.dispatcher}if(l)e=l;else a:{for(l=x.parent;l;){var C=l;if(C.retrieve){e=C.retrieve(e);break a}l=
l.parent}l=e.\u0275prov.token;C=hx8[l];C!==void 0?e=C:(C=e.\u0275prov.providedIn,e.\u0275prov.factory?(e=e.\u0275prov.factory(),l&&C==="root"&&(hx8[l]=e)):e=ECr)}return e}};
De(x);return x};
rNr=function(){var O=_.qYL(1),x=_.A6(O,aGn);if(!_.tCr(x))return x;O=_.A6(O,WQn);if(!_.tCr(O))return O.getOptionalAppContext()};
H$r=function(O){if(typeof document!=="undefined"&&document&&document.getElementById&&(O=document.getElementById(O))){var x=O.tagName.toUpperCase();if(x=="SCRIPT"||x=="LINK")return O}return null};
dBr=function(O,x){if((O=O===void 0?"":O)&&x)throw Error("sb");var e="";var l=_.CV._F_jsUrl;(O=x||H$r(O))&&(e=O.src?O.src:O.getAttribute("href"));if(l&&e){if(l!=e)throw Error("tb`"+l+"`"+e);e=l}else e=l||e;if(!KQW(e))throw Error("ub");return e};
BDN=function(){if(!nC8){nC8=!0;try{var O=dBr(_.CV._F_jsUrl?"":"base-js")}catch(l){return}var x=u2i(YY7(O)),e=Object.keys(x);e.length!==0&&jOL(function(l){for(var C=_.T(e),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;for(var L=_.T(Object.keys(x[Q])),k=L.next();!k.done;k=L.next())l.addExtraEdge(Q,k.value)}})}};
fGL=function(){var O=Object.assign({},vCL);Object.getOwnPropertyNames(vCL).forEach(function(x){Gc[x]!==void 0&&(O[x]=Gc[x])});
return O};
JNr=function(O,x){if(Gc.enablePerformanceTiming){var e,l;(l=(e=performance).mark)==null||l.call(e,O+"Start__"+x)}};
wnW=function(O,x){if(Gc.enablePerformanceTiming){var e,l;(l=(e=performance).measure)==null||l.call(e,O+"__"+x,O+"Start__"+x)}};
SY8=function(O,x,e){var l;return O&&x?O+"__"+x:(l=O!=null?O:x)!=null?l:e};
NDL=function(O,x){var e=Object.create(jCr);e.debugName=x;!Le||De(e);x=_.kO(e);try{O(e)}finally{_.kO(x)}return function(){return void IG8(e)}};
$BL=function(O){return F1(O)&&gCL in O};
i$L=function(O,x){return Object.is(O,x)};
ow=function(O){var x=X1;X1=O;return x};
xu$=function(O){if(yd)throw Error("Z");if(X1!==null){var x=X1.producersTail;if(x===void 0||x.producer!==O){var e=void 0,l=X1.recomputing;if(l&&(e=x!==void 0?x.nextProducer:X1.producers,e!==void 0&&e.producer===O)){X1.producersTail=e;e.lastReadVersion=O.version;return}var C=O.consumersTail,Q;if(!(Q=C===void 0||C.consumer!==X1)){if(l){a:{Q=X1;l=Q.producersTail;if(l!==void 0){Q=Q.producers;do{if(Q===C){l=!0;break a}if(Q===l)break;Q=Q.nextProducer}while(Q!==void 0)}l=!1}l=!l}Q=l}Q&&(l=Ze(X1),e={producer:O,
consumer:X1,nextProducer:e,prevConsumer:C,lastReadVersion:O.version,nextConsumer:void 0},X1.producersTail=e,x!==void 0?x.nextProducer=e:X1.producers=e,l&&Ot$(O,e))}}};
t6=function(O){if(!Ze(O)||O.dirty)if(O.dirty||O.lastCleanEpoch!==Ef)(O.producerMustRecompute(O)||ewV(O))&&O.producerRecomputeValue(O),O.dirty=!1,O.lastCleanEpoch=Ef};
lPm=function(O){if(O.consumers!==void 0){var x=yd;yd=!0;try{for(var e=O.consumers;e!==void 0;e=e.nextConsumer){var l=e.consumer;l.dirty||(O=void 0,l.dirty=!0,lPm(l),(O=l.consumerMarkedDirty)==null||O.call(l,l))}}finally{yd=x}}};
CUW=function(){var O;return((O=X1)==null?void 0:O.consumerAllowSignalWrites)!==!1};
Qfn=function(O){O&&(O.producersTail=void 0,O.recomputing=!0);return ow(O)};
TlL=function(O){O.recomputing=!1;var x=O.producersTail,e=x!==void 0?x.nextProducer:O.producers;if(e!==void 0){if(Ze(O)){do e=btL(e);while(e!==void 0)}x!==void 0?x.nextProducer=void 0:O.producers=void 0}};
ewV=function(O){for(O=O.producers;O!==void 0;O=O.nextProducer){var x=O.producer,e=O.lastReadVersion;if(e!==x.version)return!0;t6(x);if(e!==x.version)return!0}return!1};
Ot$=function(O,x){var e=O.consumersTail,l=Ze(O);e!==void 0?(x.nextConsumer=e.nextConsumer,e.nextConsumer=x):(x.nextConsumer=void 0,O.consumers=x);x.prevConsumer=e;O.consumersTail=x;if(!l)for(O=O.producers;O!==void 0;O=O.nextProducer)Ot$(O.producer,O)};
btL=function(O){var x=O.producer,e=O.nextProducer,l=O.nextConsumer,C=O.prevConsumer;O.nextConsumer=void 0;O.prevConsumer=void 0;l!==void 0?l.prevConsumer=C:x.consumersTail=C;if(C!==void 0)C.nextConsumer=l;else if(x.consumers=l,!Ze(x))for(O=x.producers;O!==void 0;)O=btL(O);return e};
Ze=function(O){return O.consumerIsAlwaysLive||O.consumers!==void 0};
pH7=function(O){var x=Object.create(Vbr);x.computation=O;O=function(){t6(x);xu$(x);if(x.value===q4)throw x.error;return x.value};
O[PL]=x;return O};
mum=function(O,x){var e=Object.create(Rw$);e.value=O;x!==void 0&&(e.equal=x);O=function(){xu$(e);return e.value};
O[PL]=e;return[O,function(l){return Uur(e,l)},
function(l){CUW()||aPL(e);Uur(e,l(e.value))}]};
Uur=function(O,x){CUW()||aPL(O);if(!O.equal(O.value,x)){O.value=x;O.version++;Ef++;lPm(O);var e;(e=sfW)==null||e(O)}};
hw8=function(O,x,e){var l=Object.create(Wv7);l.source=O;l.computation=x;e!=void 0&&(l.equal=e);O=function(){t6(l);xu$(l);if(l.value===q4)throw l.error;return l.value};
O[PL]=l;return O};
_.cL=function(O){var x=ow(null);try{return O()}finally{ow(x)}};
_.Iw=function(O,x,e){e=e===void 0?"":e;O=mum(O,x==null?void 0:x.equals);var l=O[0],C=l[PL];C.debugName=SY8(x==null?void 0:x.debugName,e,"[signal]");if(!Gc.enablePerformanceTiming)return O;var Q=O[1],L=O[2];return[l,function(k){zws(function(){return void Q(k)},C)},
function(k){zws(function(){return void L(k)},C)}]};
zws=function(O,x){JNr("signalSet",x.debugName);try{O()}finally{wnW("signalSet",x.debugName)}};
Htw=function(O,x){var e=_.T(_.Iw(O,void 0,"cPpJzc"));O=e.next().value;e=e.next().value;O[rGW]=e;O[Vd]=x;return O};
Kvr=function(O){return!!O&&typeof O==="object"&&Object.getPrototypeOf(O)===Object.prototype};
dur=function(O){return typeof O==="function"&&rGW in O&&typeof O[rGW]==="function"};
nbr=function(O,x){Object.defineProperty(O,Vd,{get:function(){return x}})};
Rw=function(O,x){if(pe(O)){var e=O.map(function(Q){return Rw(Q,x)});
nbr(e,x);return e}if(Kvr(O)){e={};O=_.T(Object.entries(O));for(var l=O.next();!l.done;l=O.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;e[l]=Rw(C,x)}nbr(e,x);return e}return Htw(O,x)};
uDr=function(O){if(pe(O))return O.map(function(C){return uDr(C)});
if(Kvr(O)){var x={};O=_.T(Object.entries(O));for(var e=O.next();!e.done;e=O.next()){var l=_.T(e.value);e=l.next().value;l=l.next().value;x[e]=uDr(l)}return x}return dur(O)?O():O};
Bln=function(){var O={height:0,width:0};if(!Kvr(O))throw Error("Jb");var x=Symbol("Kb");return[Rw(O,x),function(e,l){if(e[Vd]===x)if(typeof l==="function"){var C=[].concat(_.Kx(uDr(e)));l=l(C)||C;Yns(e,[].concat(_.Kx(l)))}else Yns(e,l);else throw Error("Lb");}]};
Yns=function(O,x){if(dur(O))O[rGW](x);else if(pe(O)&&pe(x))x=Rw(x,O[Vd]),O.length=0,O.push.apply(O,_.Kx(x));else if((Kvr(O)||pe(O))&&(pe(x)||typeof x==="object"&&x!==null)){x=_.T(Object.entries(x));for(var e=x.next();!e.done;e=x.next()){var l=_.T(e.value);e=l.next().value;l=l.next().value;var C=O,Q=C[e];Object.hasOwn(O,e)?Yns(Q,l):C[e]=Rw(l,O[Vd])}}else throw Error("Mb");};
vbL=function(O){return Object.create(Object.assign({},Uf,O))};
JGr=function(){var O;return(O=fPs)!=null?O:fPs=vbL({consumerAllowSignalWrites:!0})};
_.aw=function(O,x,e){e=e===void 0?"":e;O=pH7(O);var l=O[PL];l.debugName=SY8(x==null?void 0:x.debugName,e,"[computed]");(x==null?void 0:x.equals)!=null&&(l.equal=x.equals);return O};
mF=function(O){var x=ow(wHm);try{O()}finally{ow(x)}};
$ur=function(O){switch(O.onInitType){case SnN:jf8.schedule(O);break;case Nlr:gbw.schedule(O);break;default:_.vd(O.onInitType)}};
CD7=function(O){if(!O.isDisposed)switch(O.effectType){case sf:itr.schedule(O);break;case Ow7:x3r.schedule(O);break;case eRi:l9$.schedule(O);break;default:_.vd(O.effectType)}};
Tar=function(){if(WL>0)Gc.flushRenderEffectsDuringRender&&itr.flush();else{for(var O=_.T(Qyw),x=O.next();!x.done;x=O.next())x.value.flush();bwm()}};
bwm=function(){_.A(function(O){if(O.nextAddress==1)return O.yield(Promise.resolve(),2);for(var x=_.T(L1r),e=x.next();!e.done;e=x.next())e.value.flush();_.Ra(O)})};
AaW=function(O){h6=!0;try{for(var x=_.T(O),e=x.next();!e.done;e=x.next()){for(var l=e.value,C=[l],Q=l;Q.parent!==void 0;)Q=Q.parent,kQ8(Q)&&O.has(Q)&&C.push(Q);for(;C.length>0;){var L=C.pop();O.delete(L);L.run()}}}finally{h6=!1}};
zc=function(O){WL--;if(O){O=_.T(M2L);for(var x=O.next();!x.done;x=O.next())x.value.clear()}else WL>0||h6&&!Gc.flushRenderEffectsDuringRender||Tar()};
GQr=function(O,x,e){var l=D3n(O);rw={name:e?l+" ("+e+")":l,isReactive:O.componentType!==HL,parent:rw};O=x();rw=rw.parent;return O};
Ke=function(){var O=rw;return O?O.isReactive:!1};
ne=function(O,x,e){var l=rw;x&&(rw=x);try{return e==null?O():O.call(e)}catch(Q){O=Q;dw(O,rw);if(O!==F18){XD$=rw;x=[];for(e=Le;e;){var C=void 0;x.push((C=e.debugName)!=null?C:"[context]");C=void 0;e=(C=e.parent)!=null?C:null}ogW=x.reverse()}F18=O;throw O;}finally{rw=l}};
dw=function(O,x){try{var e=yaN(x);if(e&&!O.componentStack&&(O.componentStack=e,Gc.enableComponentStacksInErrorMessages)){var l=O.message+"\n\nComponent stack: "+e;O.stack&&(O.stack=O.stack.replace(O.message,l));O.message=l}}catch(C){}};
yaN=function(O){if(F1(O)&&O.name!==void 0&&O.isReactive!==void 0&&O.parent!==void 0||O===null){for(var x=0,e="";x<20&&O;)e+=O.name+" > ",O=O.parent,x++;O=e.slice(0,-3)}else if(Gc.enableContextBasedComponentStacks){a:{for(O=O===void 0?Le:O;O;){if($BL(O))break a;x=void 0;O=(x=O.parent)!=null?x:null}O=null}O=O.getComponentStack().slice(0,20).join(" > ")}else O="";return O};
D3n=function(O){return O.debugName||O.name||"[component]"};
Zwr=function(O,x,e){x=Object.create(x);O&&(x.effectFn=O);e&&(x.debugName=e);De(x);x.componentStack=rw;return x};
_.uo=function(O,x){O=Zwr(O,Egr,x);CD7(O)};
t2r=function(O){return O};
qZV=function(O,x){function e(){return C()}
var l=l===void 0?"":l;var C=typeof O==="function"?hw8(O,t2r,x==null?void 0:x.equals):hw8(O.source,O.computation,x==null?void 0:x.equals);var Q=C[PL];Q.debugName=SY8(x==null?void 0:x.debugName,l,"[linkedSignal]");e[PL]=Q;return[e,function(L){zws(function(){t6(Q);Uur(Q,L);Q.dirty=!1;Q.lastCleanEpoch=Ef},Q)},
function(L){zws(function(){t6(Q);CUW()||aPL(Q);Uur(Q,L(Q.value));Q.dirty=!1;Q.lastCleanEpoch=Ef},Q)}]};
_.YO=function(O){var x=Le;if(x){var e=rw;cNr(x,function(){var l=ow(JGr());try{ne(function(){return void O()},e)}catch(C){throw Gc.enableContextBasedComponentStacks&&dw(C),C;
}finally{ow(l)}})}};
BL=function(O,x){var e={};(x===void 0||x)&&De(e);x=_.kO(e);try{O(e)}finally{_.kO(x)}return function(){return void IG8(e)}};
_.vL=function(O){return typeof O==="function"?O():(O==null?0:O[PD$])?O.get():O};
_.fe=function(O,x){O=Zwr(O,caV,x);CD7(O)};
I9W=function(O){if(Le)throw Error("nb");BL(O,!1)};
J6=function(O,x){O=_.kO(O);try{return _.cL(x)}finally{_.kO(O)}};
ww=function(O,x){var e=yaN(XD$),l,C;var Q=(C=(l=ogW)==null?void 0:l.slice())!=null?C:[];x={componentStack:e,contextTrace:Q,errorSeverity:3,featureFlags:fGL(),tagName:x};return[O,x]};
RR7=function(O,x,e){if(Object.hasOwnProperty.call(V2r,O)&&(O=V2r[O],Object.hasOwnProperty.call(O,x)&&(O=O[x],O instanceof Array))){for(var l=null,C=!1,Q=0,L=O.length;Q<L;++Q){var k=O[Q],M=k.contingentAttribute;if(!M)return k.contract;l===null&&(l={});M=Object.hasOwnProperty.call(l,M)?l[M]:l[M]=e(M);if(M===k.requiredValue)return k.contract;M==null&&(C=!0)}if(C)return null}x=pDN[x];return typeof x==="number"?x:null};
m38=function(O,x,e){var l=null;(O=U3V[O])&&(l=O[x]);return typeof l!=="number"&&((O=U3V["*"])&&(l=O[x]),typeof l!=="number")?!1:!0===a97[l][String(e).toLowerCase()]};
W1L=function(O,x){x=RR7(O.toLowerCase(),x,function(){var l;(l=Gc.handleError)==null||l.call.apply(l,[Gc].concat(_.Kx(ww(Error("Tb"),O.toLowerCase()))))});
if(x===null)return null;var e;return(e=sy7[x])!=null?e:null};
hRN=function(O,x,e){if(e===null||e===void 0)return e;x=x.toLowerCase();O=W1L(O,x);return O===null?e:O(x,e)};
zRW=function(){};
Sj=function(O,x){for(;O.length>x;)O.pop()};
raw=function(O){O=Array(O);Sj(O,0);return O};
jj=function(O,x,e){if(e==null)O.removeAttribute(x);else{var l;(l=x.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":x.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?O.setAttributeNS(l,x,e):O.setAttribute(x,e)}};
Hwr=function(O,x,e){O[x]=e};
d3N=function(O,x,e){O=O.style;if(typeof e==="string")O.cssText=e;else{O.cssText="";for(var l in e)if(K1w.call(e,l)){x=O;var C=l,Q=e[l];C.indexOf("-")>=0?x.setProperty(C,Q):x[C]=Q}}};
ngr=function(O,x,e){var l=typeof e;l==="object"||l==="function"?O[x]=e:jj(O,x,e)};
u6L=function(){var O=new zRW;O[N4.default]=ngr;O.style=d3N;return O};
YZn=function(O,x,e,l){(l[x]||l[N4.default])(O,x,e)};
vg8=function(O,x,e){x=new Ba$(x,e);return O.__incrementalDOMData=x};
$O=function(O,x){if(O.__incrementalDOMData)return O.__incrementalDOMData;var e=O.nodeType===1?O.localName:O.nodeName,l=O.nodeType===1?O.getAttribute("key"):null;x=vg8(O,e,O.nodeType===1?l||x:null);if(O.nodeType===1&&(O=O.attributes,e=O.length)){l=x._attrsArr||(x._attrsArr=raw(e*2));for(var C=0,Q=0;C<e;C+=1,Q+=2){var L=O[C],k=L.value;l[Q]=L.name;l[Q+1]=k}}return x};
f9L=function(O,x,e,l,C){return x==e&&l==C};
JaL=function(O){for(var x=io,e=eS();e!==O;){var l=e.nextSibling;x.removeChild(e);l8.deleted.push(e);e=l}};
eS=function(){return CO?CO.nextSibling:io.firstChild};
QE=function(){CO=eS()};
jyr=function(O,x,e){QE();var l;a:{if(l=CO){do{var C=l,Q=O,L=x,k=$O(C,L);if(wD$(C,Q,k.nameOrCtor,L,k.key))break a}while(x&&(l=l.nextSibling))}l=null}l||(O==="#text"?(e=b8.createTextNode(""),vg8(e,"#text",null),O=e):(l=b8,C=io,typeof O==="function"?l=new O:l=(C=O==="svg"?"http://www.w3.org/2000/svg":O==="math"?"http://www.w3.org/1998/Math/MathML":C==null||$O(C).nameOrCtor==="foreignObject"?null:C.namespaceURI)?l.createElementNS(C,O):l.createElement(O),vg8(l,O,x),O=l,e&&O.setAttribute("nonce",e)),l8.created.push(O),
l=O);e=l;if(e!==CO){if(SZ8.indexOf(e)>=0)for(O=io,x=e.nextSibling,l=CO;l!==null&&l!==e;)C=l.nextSibling,O.insertBefore(l,x),l=C;else io.insertBefore(e,CO);CO=e}};
Nar=function(O,x,e){jyr(O,x,e);io=CO;CO=null;return io};
ggn=function(){JaL(null);CO=io;io=io.parentNode};
$3r=function(){CO=io.lastChild};
xym=function(O,x){x=x===void 0?{}:x;var e=x.matches===void 0?f9L:x.matches;return function(l,C,Q){var L=l8,k=b8,M=SZ8,G=Tn,X=LO,y=CO,Z=io,E=wD$;b8=l.ownerDocument;l8=new iwL(l);wD$=e;Tn=[];LO=[];CO=null;var P=io=l.parentNode,U,W=OGr.call(l);if((U=W.nodeType===11||W.nodeType===9?W.activeElement:null)&&l.contains(U)){for(W=[];U!==P;)W.push(U),U=U.parentNode||(P?U.host:null);P=W}else P=[];SZ8=P;try{return O(l,C,Q)}finally{l=l8,kK&&l.deleted.length>0&&kK(l.deleted),b8=k,l8=L,wD$=E,Tn=G,LO=X,CO=y,io=Z,
SZ8=M}}};
e6$=function(O,x,e,l){AZ.push(YZn);AZ.push(O);AZ.push(x);AZ.push(e);AZ.push(l)};
CON=function(O,x,e){var l=LO;x=x._attrsArr||(x._attrsArr=raw(l.length));for(var C=!x.length||!1,Q=0;Q<l.length;Q+=2){var L=l[Q];if(C)x[Q]=L;else if(x[Q]!==L)break;var k=l[Q+1];if(C||x[Q+1]!==k)x[Q+1]=k,e6$(O,L,k,e)}if(Q<l.length||Q<x.length){for(Q=C=Q;Q<x.length;Q+=2)MD[x[Q]]=x[Q+1];for(Q=C;Q<l.length;Q+=2)C=l[Q],L=l[Q+1],MD[C]!==L&&e6$(O,C,L,e),x[Q]=C,x[Q+1]=L,delete MD[C];Sj(x,l.length);for(var M in MD)e6$(O,M,void 0,e),delete MD[M]}O=lyW;lyW=e=AZ.length;for(M=O;M<e;M+=5)(0,AZ[M])(AZ[M+1],AZ[M+
2],AZ[M+3],AZ[M+4]);lyW=O;Sj(AZ,O);Sj(l,0)};
Qpw=function(O){jyr("#text",null);var x=CO;var e=$O(x);if(e.text!==O){e=e.text=O;for(var l=1;l<arguments.length;l+=1)e=(0,arguments[l])(e);x.data!==e&&(x.data=e)}};
DyL=function(O,x,e){if(e===!1&&bGm.has(x))jj(O,x,null);else if(x!=="idomKey"&&x!=="skip"&&x!=="skipchildren"&&x!=="children"&&x!=="el")if(x.startsWith("on")){if(x[2]!==":")throw Error("Sb`"+x);if(e===void 0||e===null){var l;(l=Gc.handleError)==null||l.call.apply(l,[Gc].concat(_.Kx(ww(Error("Xb`"+x),O.tagName))));O[x]=void 0}else{var C=x.slice(3);l=Ke();if(C==="jsaction"){e=Array.isArray(e)?e:[e];e=_.T(e);for(var Q=e.next();!Q.done;Q=e.next()){Q=Q.value;if(typeof Q!=="object"||Q===null||typeof Q.selfReg!==
"function")throw Error("$b`"+x);Q.selfReg(0,O,l?_.YO:function(){})}}else{if(typeof e!=="object"||e===null)throw Error("Yb`"+x+"`"+typeof e);
if(typeof e.getFn!=="function")throw Error("Zb`"+x+"`"+Object.keys(e));if(e.selfReg)e.selfReg(0,O,C,l?_.YO:function(){});
else if(l&&O["on"+C]===void 0){var L=e.getFn(0);O.addEventListener(C,L);_.YO(function(){return void O.removeEventListener(C,L)})}else if(l||!TMm.includes(C))O["on"+C]=e.getFn(0)}}}else{if(x.startsWith("data-")&&typeof e==="string")try{e=LNm(e)}catch(k){e="zSoyz"}typeof e!=="function"||O._disposeEffects!=null?((l=x.startsWith("prop:"))&&(x=x.slice(5)),Gc.enableAttributeSanitization&&(l&&kSN(O.tagName)||(e=hRN(O.tagName,x,e))),x==="style"?("function"==typeof _.DK&&e instanceof _.DK&&(e=e.toString()),
A_7(O,x,e)):l?O[x]=e:Mlr(O,x,e)):(O._signalProps||(O._signalProps=[]),O._signalValues||(O._signalValues=[]),O._signalProps.push(x))}};
GS8=function(O,x,e){e=(e===void 0?{}:e).isReactive;if(x==null?0:x.el){var l=x.el,C;(C=l.onRender)==null||C.call(l,O);O._disposeRef||(O._disposeRef=function(){var Q;(Q=l.onUnmount)==null||Q.call(l);delete O._disposeRef},e&&_.YO(function(){var Q;
(Q=O._disposeRef)==null||Q.call(O)}))}};
kSN=function(O){return O.length>0&&O.includes("-")&&!FNr.includes(O.toLowerCase())};
Xor=function(O){return F1(O)&&Gn in O};
o_r=function(O){return Xor(O)?O[Gn].flattened:O};
y_7=function(O,x){var e=_.vw.apply(2,arguments),l;x=(l=x)!=null?l:{};l={};return l.type=O,l.props=x,l.children=e,l[Fm]=!0,l};
_.Xm=function(O){return O.children};
oU=function(O){var x=ZGi!==y_7;ZGi=O?E_w:y_7;return x};
_.yE=function(O){return _.w7(O)?"nodeType"in O:!1};
ZK=function(){return document.createTextNode("")};
E0=function(O){O=document.createTextNode(String(O));O._isSignalTextNode=!0;return O};
qvm=function(O){return O!=null&&O.contentKind===tZ||O instanceof wk||tln(O)};
POV=function(O){var x=document.createElement("div");if(tln(O)&&pK7(O))_.bx(x,pK7(O));else if(O instanceof wk)_.bx(x,O);else if(O!=null&&O.contentKind===tZ){if(O.contentKind!==tZ)throw Error("Wb");O=SE(O.toString());_.bx(x,O)}O=_.T(x.childNodes);for(var e=O.next();!e.done;e=O.next())e.value._isSafeOrSanitizedHtmlNode=!0;return x};
qD=function(O){O=typeof O;return O==="string"||O==="number"||O==="boolean"};
c_i=function(O){return O instanceof Uh||rk(O)||O instanceof kS||"function"==typeof _.DK&&O instanceof _.DK};
Iy8=function(O,x){var e=O.parentElement;if(!e)return x;e.replaceChild(x,O);return x};
Vlw=function(O,x){var e=O[0].parentElement;if(e)if(O[0].previousSibling||O[O.length-1].nextSibling){e.insertBefore(x,O[0]);for(var l=O.length-1;l>=0;l--)e.removeChild(O[l])}else e.textContent="",e.appendChild(x);return x};
po$=function(O,x){if(O[0].parentElement)for(var e=O[0].parentElement,l=x.length,C=O.length,Q=l,L=0,k=0,M=O[C-1].nextSibling,G=null;L<C||k<Q;)if(O[L]===x[k])L++,k++;else{for(;O[C-1]===x[Q-1];)C--,Q--;if(C===L)for(var X=Q<l?k?x[k-1].nextSibling:x[Q-k]:M;k<Q;){var y=x[k++];e.insertBefore(y,X)}else if(Q===k)for(;L<C;)X=O[L],G&&G.has(X)||e.removeChild(X),L++;else if(O[L]===x[Q-1]&&x[k]===O[C-1])X=O[--C].nextSibling,e.insertBefore(x[k++],O[L++].nextSibling),e.insertBefore(x[--Q],X),O[C]=x[Q];else{if(!G)for(G=
new Map,X=k;X<Q;)G.set(x[X],X++);X=G.get(O[L]);if(X==null)e.removeChild(O[L]),L++;else if(k<X&&X<Q){y=L;for(var Z=1,E=void 0;++y<C&&y<Q&&(E=G.get(O[y]))!=null&&E===X+Z;)Z++;if(Z>X-k)for(y=O[L];k<X;)e.insertBefore(x[k++],y);else e.replaceChild(x[k++],O[L++])}else L++}}return x};
Uyr=function(O){if(Array.isArray(O)){if(O.length>1)throw Error("jc`"+O.length+"`"+O.map(R6r).join(", "));O=O[0]}if(O==null)return null;if(!(O instanceof _.xS)){var x,e;if((x=window)==null?0:(e=x.trustedTypes)==null?0:e.isScript(O))throw Error("ic");if(String(O).trim().length===0)return null;throw Error("kc`"+R6r(O));}return O};
ayi=function(O,x){x=Uyr(x);x!==null&&_.Cx(O,x)};
mys=function(O){if(Array.isArray(O)){if(O.length>1)throw Error("lc`"+O.length+"`"+O.map(R6r).join(", "));O=O[0]}if(O==null)return null;if(!(O instanceof kS)){if(String(O).trim().length===0)return null;throw Error("mc`"+R6r(O));}return O};
spw=function(O,x){x=mys(x);x!==null&&(O.textContent=ZxN(x))};
R6r=function(O){return"("+typeof O+") "+(O!=null&&typeof O==="object"?O.constructor.name:typeof O)+" "+O};
WNw=function(){};
VE=function(O,x){x=x===void 0?{}:x;var e=h6r(),l=!0,C,Q=!!Gc.legacyTriggerSoyRendererEvents;Q&&(C=rNr());_.fe(function(){var L=!l&&x.isControlFlowComponent&&Q,k=L?e[Gn].flattened[0].parentElement:void 0;l=!1;_.PE.setUp();x.isControlFlowComponent&&WL++;var M=e[0],G=e[Gn].flattened,X=oU(!0);try{var y=O(),Z=z68(M,y,e);Array.isArray(Z)||(e[Gn].flattened=[Z]);var E=e[Gn].flattened;if(G&&(!Array.isArray(G)||G.length!==0)){var P=Array.isArray(G)?G[0]:G,U=P[IU],W=P._disposeEffects;P._disposeEffects=void 0;
P=Array.isArray(E)?E[0]:E;P[IU]=U;P[IU]&&(P[IU].numNodes=P===E?1:E.length);P._disposeEffects=W}e[0]=Z;x.isControlFlowComponent&&zc(!1)}catch(z){throw x.isControlFlowComponent&&zc(!0),z;}finally{oU(X),_.PE.tearDown()}L&&(L=C,L!=null||(L=_.Z$L(document).getAppContext()),L.get(r_N).JSC$29291_getEventTarget().dispatchEvent(new HGV(KNV,k,tZ)))},x.debugName);
return e};
z68=function(O,x,e){for(;typeof x==="function";)x=x();if(x!=null&&x[Fm]){var l,C,Q;(Q=Gc.handleError)==null||Q.call.apply(Q,[Gc].concat(_.Kx(ww(Error("nc`"+((l=x.type)==null?void 0:l.TAG_NAME)),(C=x.type)==null?void 0:C.TAG_NAME))))}if(O==null)return x==null?ZK():qD(x)?E0(x):c_i(x)?E0(x.toString()):_.yE(x)?x:x.length===0?ZK():dy$(x,e);if(_.yE(O)){if(x==null)return Iy8(O,ZK());if(qD(x))return n_N(O,x);if(c_i(x))return n_N(O,x.toString());if(_.yE(x))return Iy8(O,x);if(x.length===0)return Iy8(O,ZK());
x=dy$(x,e);po$([O],e[Gn].flattened);return x}O=pO(O);if(x==null)return Vlw(O,ZK());if(qD(x))return Vlw(O,E0(x));if(c_i(x))return Vlw(O,E0(x.toString()));if(_.yE(x))return po$(O,[x])[0];if(x.length===0)return Vlw(O,ZK());x=dy$(x,e);po$(O,e[Gn].flattened);return x};
n_N=function(O,x){O.nodeType===Node.TEXT_NODE?O.textContent!==String(x)&&(O.textContent=String(x)):O=Iy8(O,E0(x));return O};
pO=function(O,x,e){return upW(O,x!=null?x:[],e===void 0?!1:e)};
dy$=function(O,x){var e=pO(O,void 0,!0);if(e.length===0)return ZK();x[Gn].flattened=e;return O};
upW=function(O,x,e,l,C){x=x===void 0?[]:x;e=e===void 0?!1:e;C=C===void 0?-1:C;if(O==null)return x;if(O instanceof RU){var Q=O.render();return upW(Q,x,e,l,C)}if(_.yE(x)&&x.nodeType===Node.ELEMENT_NODE)switch(x.tagName){case "SCRIPT":ayi(x,O);return;case "STYLE":spw(x,O);return}qD(O)&&(O=E0(O),l&&e&&(l[C]=O));if(qvm(O)){e=POV(O);e=Array.from(e.childNodes);e=_.T(e);for(Q=e.next();!Q.done;Q=e.next())YvV(x,Q.value);return x}c_i(O)&&(O=E0(O.toString()),l&&e&&(l[C]=O));if(_.yE(O))return YvV(x,O);if(Array.isArray(O)){for(Q=
0;Q<O.length;Q++)upW(O[Q],x,e,O,Q);return x}if(typeof O==="function"){Q=VE(function(){var k=O();return k!=null&&!qD(k)&&qvm(k)?(k=POV(k),Array.from(k.childNodes)):k},{debugName:"qmF2ne",
debugFn:O})[0];if(Array.isArray(Q)){e=_.T(Q);for(Q=e.next();!Q.done;Q=e.next())YvV(x,Q.value);return x}l&&e&&(l[C]=Q);return YvV(x,Q)}if(O!=null&&O[Fm]){l=O;C=oU(!0);var L=ZGi;try{Q=L.apply(null,[l.type,l.props].concat(_.Kx(l.children)))}finally{oU(C)}return upW(Q,x,e)}(L=Gc.handleError)==null||L.call.apply(L,[Gc].concat(_.Kx(ww(Error("oc")))));return x};
h6r=function(O){var x={};x=Object.assign([],(x[Gn]={flattened:[]},x));if(!O)return x;x[0]=dy$(O,x);return x};
YvV=function(O,x){Array.isArray(O)?O.push(x):O.appendChild(x);return O};
U0=function(O){if(!Gc.enableLazyTsx)return O;if(Array.isArray(O)){for(var x=0;x<O.length;x++)O[x]=U0(O[x]);return O}return O instanceof RU?(O=O.render(),U0(O)):O};
v_n=function(O,x){var e,l,C=D3n(O),Q=function(E){l=E;E=oU(!0);var P=ow(aU);JNr("render",C);try{e=U0(O(x))}finally{wnW("render",C),ow(P),oU(E)}};
Q=Gc.enableContextPerComponent?NDL(Q,C):BL(Q,Gc.alwaysTrackContexts||!!Le);$BL(l);if(!x.renderedFromIdom){var L=_.kO(l);try{return BMi(O,x,e),e}finally{_.kO(L)}}!Xor(e)&&Array.isArray(e)&&(e=h6r(e));var k=o_r(e);L=Array.isArray(k)?k[0]:k;var M=!1;if(L){var G,X=(G=x==null?void 0:x.idomKey)!=null?G:O;G=k!==L;L._disposeEffects=Q;var y=L[IU]||{},Z=Xor(e)?e:y.sourceDynamicRange;Object.assign(y,{key:X,numNodes:G?k.length:1,context:l,higherOrder:!!L[IU],sourceDynamicRange:Z});L[IU]=y}else M=!0;(function(){var E=
_.kO(l);try{BMi(O,x,k)}finally{_.kO(E)}})();
M&&Q();return e};
fyw=function(O){var x={},e;for(e in O)x={prev$jscomp$24:void 0,next$jscomp$33:void 0},x.prev$jscomp$24=mx[e],x.next$jscomp$33=O[e],mx[e]=function(l){return function(){var C=_.vw.apply(0,arguments);l.prev$jscomp$24.apply(null,_.Kx(C));l.next$jscomp$33.apply(null,_.Kx(C))}}(x)};
J_W=function(){if(Ke())throw Error("pc");return s0};
wo7=function(O,x){if(!O.__unmounted&&x){O.__unmounted=!0;try{O.didUnmount()}catch(C){var e,l;(l=Gc.handleError)==null||l.call.apply(l,[Gc].concat(_.Kx(ww(C,(e=O.__type)==null?void 0:e.TAG_NAME))))}mx.didUnmount(O);O.el=null;x.__instance&&delete x.__instance}};
jpL=function(O,x,e){O._signalProps!=null&&O._disposeEffects==null&&((e===void 0?0:e)?O._disposeEffects=BL(function(){return void Svi(O,x)},Gc.alwaysTrackContexts||!!Le):Svi(O,x))};
Svi=function(O,x){_.fe(function(){for(var e=O._signalProps,l=O._signalValues,C=0;C<e.length;C++){var Q=e[C],L=x[Q]();l[C]!==L&&(l[C]=L,DyL(O,Q,L))}},"e3YVbb")};
NMw=function(O,x,e){var l,C=[];O._disposeEffects=BL(function(){_.fe(function(){var Q=e();if(Q===null||Q===void 0)Q="";if(qD(Q)||Q===null)l!=null||(l=document.createTextNode("")),l.parentNode!==O&&(l._isSignalTextNode=!0,O.insertBefore(l,x)),l.textContent=String(Q);else if(qvm(Q)){for(var L=C.length>0?C[C.length-1].nextSibling:x,k=_.T(C),M=k.next();!M.done;M=k.next())O.removeChild(M.value);Q=POV(Q);C=Array.from(Q.childNodes);Q=_.T(C);for(k=Q.next();!k.done;k=Q.next())O.insertBefore(k.value,L)}else throw M=
(k=(L=rw)==null?void 0:L.name)!=null?k:"unknown",Error("ec`"+M+"`"+typeof Q);},"VvDgC")},Gc.alwaysTrackContexts||!!Le)};
iGN=function(O,x){var e=_.vw.apply(2,arguments);x!=null||(x={});return!Gc.enableLazyTsx||rw!=null&&!Ke()?g_r(O,x,e):new $yL(O,x,e)};
g_r=function(O,x,e){if(O===_.Xm)return e;if(typeof O==="function")return rw&&!Ke()&&(x.renderedFromIdom=!0),GQr(O,function(){var Q=O1L(O,x,e);if(Q)return Q;e.length>0&&(x.children=e.length===1?e[0]:e);if(O.componentType===HL){var L;NDL(function(){var k=x;if(O.componentType!==HL)L=!1;else{k||(k={});var M=new WE(k,O),G=ow(aU);try{var X=M.render(k)}finally{ow(G)}X instanceof HTMLElement?(X.__instance=M,M.el=X,M.__type=O,O.TAG_NAME=X.tagName.toLowerCase(),mx.didPatch(M),L=X):L=X}},O.name);
if(L)return L}return v_n(O,x)},x.debugInstance);
var l=x9N(O,x),C;for(C in x)DyL(l,C,x[C]);jpL(l,x);pO(e,l);GS8(l,x,{isReactive:!0});eon(l,x);return l};
x9N=function(O,x){O=(lfW.has(O.toLowerCase())?0:Chn.has(O.startsWith("svg:")?O.replace("svg:",""):O))?document.createElementNS("http://www.w3.org/2000/svg",O.startsWith("svg:")?O.replace("svg:",""):O):Qg$(O,x)||document.createElement(O);O[b1r]=!0;return O};
Tr8=function(O){if(O){var x;(x=O._disposeRef)==null||x.call(O);var e;(e=O._disposeEffects)==null||e.call(O);O.__instance&&O.__instance instanceof hZ&&(x=O.__instance,wo7(x,O),x instanceof WE&&x.disposeEffects());for(x=0;x<O.childNodes.length;x++)Tr8(O.childNodes[x])}};
k0N=function(O){LH7.push(O)===1&&requestAnimationFrame(function(){setTimeout(function(){var x=[].concat(_.Kx(LH7));LH7=[];x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;try{for(var l=0;l<e.length;l++)Tr8(e[l])}catch(C){l=e=void 0,(l=(e=Gc).handleError)==null||l.call.apply(l,[e].concat(_.Kx(ww(C))))}}})})};
_.D=function(O,x){return ZGi.apply(null,[O,x].concat(_.Kx(_.vw.apply(2,arguments))))};
_.zn=function(O){return O};
_.rz=function(O){return{isDefault:!0,children:O.children}};
_.F=function(O){var x=O.cond;if(x===void 0)return O.else&&O.else();var e=_.aw(function(){return!!x()},void 0,"JHVi8"),l=function(){var C=x();
if(!C){var Q;(Q=Gc.handleError)==null||Q.call.apply(Q,[Gc].concat(_.Kx(ww(Asw.nonNullableCondIsNull()))))}return C};
return VE(function(){var C=e(),Q;BL(function(){var L=ow(aU);try{Q=U0(C?O.then(l):O.else&&O.else())}finally{ow(L)}},!0);
return Q},{debugName:O.debugInstance,
debugFn:O.then,isControlFlowComponent:!0})};
Mhm=function(O){return _.F(O)};
_.HE=function(O){return O.keyBy==="INDEX"?D98(O):G0N(O)};
FH8=function(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next()){var e=void 0;(e=x.value)==null||e()}};
G0N=function(O){var x=O.keyBy===void 0||O.keyBy==="REFERENCE",e=x?function(X){return X}:O.keyBy,l=[],C=[],Q=[],L=[],k=[],M=[],G=!0;
_.YO(function(){FH8(L)});
return VE(function(){var X=O.each(),y=X.length;if(y===0){if(l.length===0&&!G)return Q;FH8(L);l=X;C=[];for(X=0;X<l.length;X++)C.push(e(l[X]));Q=[];L=[];k=[];M=[];O.fallback&&(L[0]=XqW(function(){Q[0]=U0(O.fallback())}));
G=!1;return Q}for(var Z=new o7r,E=l.length-1;E>=0;E--)Z.push(C[E],E);E=Array(y);for(var P=Array(y),U=Array(y),W=Array(y),z=Array(x?0:y),r={i$jscomp$450:0};r.i$jscomp$450<y;r={i$jscomp$450:r.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$562:void 0},r.i$jscomp$450++){r.item$jscomp$104=X[r.i$jscomp$450];r.key$jscomp$562=e(r.item$jscomp$104);var f=Z.pop(r.key$jscomp$562);f!=null?(U[r.i$jscomp$450]=Q[f],P[r.i$jscomp$450]=C[f],E[r.i$jscomp$450]=L[f],W[r.i$jscomp$450]=k[f],x||(z[r.i$jscomp$450]=M[f]),mF(function(u){return function(){W[u.i$jscomp$450](u.i$jscomp$450);
if(!x)z[u.i$jscomp$450](u.item$jscomp$104)}}(r)),delete L[f]):E[r.i$jscomp$450]=XqW(function(u){return function(){var Y=_.T(_.Iw(u.i$jscomp$450,void 0,"Fqk1zd")),J=Y.next().value;
Y=Y.next().value;W[u.i$jscomp$450]=Y;P[u.i$jscomp$450]=u.key$jscomp$562;if(x)U[u.i$jscomp$450]=U0(O.children(u.item$jscomp$104,J));else{var O8=_.T(_.Iw(u.item$jscomp$104,void 0,"GBj5de"));Y=O8.next().value;O8=O8.next().value;z[u.i$jscomp$450]=O8;U[u.i$jscomp$450]=U0(O.children(Y,J))}}}(r))}FH8(L);
l=X;C=P;Q=U;L=E;k=W;M=z;G=!1;return U},{debugName:O.debugInstance,
debugFn:O.each,isControlFlowComponent:!0})};
D98=function(O){var x=[],e=[],l=[],C=[],Q=!1;_.YO(function(){for(var L=_.T(C),k=L.next();!k.done;k=L.next())k=k.value,k()});
return VE(function(){var L=O.each();Q&&L.length>0&&(C.pop()(),x.pop(),Q=!1);for(var k=Array(L.length),M={i$jscomp$451:0};M.i$jscomp$451<L.length;M={i$jscomp$451:M.i$jscomp$451},M.i$jscomp$451++)if(M.i$jscomp$451<x.length)x[M.i$jscomp$451]!==L[M.i$jscomp$451]&&(mF(function(X){return function(){return void e[X.i$jscomp$451](L[X.i$jscomp$451])}}(M)),x[M.i$jscomp$451]=L[M.i$jscomp$451]),k[M.i$jscomp$451]=l[M.i$jscomp$451];
else{var G=XqW(function(X){return function(){x[X.i$jscomp$451]=L[X.i$jscomp$451];var y=_.T(_.Iw(L[X.i$jscomp$451],void 0,"JMMLmd")),Z=y.next().value;y=y.next().value;e[X.i$jscomp$451]=y;k[X.i$jscomp$451]=U0(O.children(Z,X.i$jscomp$451))}}(M));
C[M.i$jscomp$451]=G}for(;x.length>L.length;)x.pop(),C.pop()(),e.pop();L.length===0&&!Q&&O.fallback&&(M=XqW(function(){k[0]=U0(O.fallback())}),C[0]=M,Q=!0);
return l=k},{debugName:O.debugInstance,
isControlFlowComponent:!0})};
XqW=function(O){var x=Le;return BL(function(e){var l=ow(aU);try{e.parent=x,O(e)}finally{ow(l)}},!1)};
_.KO=function(O){var x=ysr(O),e=_.aw(function(){return Z1N(x)},void 0,"F1PF4");
return VE(function(){var l=e(),C;BL(function(){var Q=ow(aU);try{C=U0(l())}finally{ow(Q)}});
return C},{debugName:O.debugInstance,
isControlFlowComponent:!0})};
ysr=function(O){O=O.children;return Array.isArray(O)?O:[O]};
E7m=function(O){var x=O.props;O=O.getChildren()[0];return x.when?{when:x.when,children:O}:{isDefault:!0,children:O}};
Z1N=function(O){var x=function(){return null};
O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,e!=null&&e[Fm]&&(e=e.type===_.rz?{isDefault:!0,children:e.children[0]}:{when:e.props.when,children:e.children[0]}),e instanceof RU&&(e=E7m(e)),e.isDefault)x=e.children;else if(e.when())return e.children;return x};
qbm=function(O){var x=null,e,l={get value(){var Q,L;(L=(Q=C).validateGetValue)==null||L.call(Q);return C.__value},set value(Q){var L,k;(k=(L=C).validateSetValue)==null||k.call(L,Q);C.__value=Q;C.__hasBeenSet=!0}},C=(l.__value=null,l.__hasBeenSet=!1,l.__hasErrored=!1,l.onRender=function(Q){if(e&&Q!==e){e._disposeRef=void 0;var L;(L=x)==null||L()}e=Q;x=O(Q)||null},l.onUnmount=function(){var Q;
(Q=x)==null||Q();x=C.value=null},l[_.ths]=!0,l);
return C};
dz=function(O){return typeof O==="symbol"};
cs7=function(O){var x=J_W();if(x==null)throw _.PhN.PRIMITIVE_INVALID_HOOK_CALL();var e=x.hookCounter++;x.hooks||(x.hooks=[]);var l=x.hooks;l[e]||(l[e]={key:O,host:x});if(O!==l[e].key){if(x.__type){var C;O=(C=x.__type)==null?void 0:C.name}else O=x instanceof WE?D3n(x.functionComponent):"<"+x.el.tagName.toLowerCase()+">";throw _.PhN.OUT_OF_ORDER_HOOK_CALL(O);}return l[e]};
Ifw=function(O,x){return!O||O.length!==(x==null?void 0:x.length)||O.some(function(e,l){return e!==x[l]})};
Vhw=function(O,x){var e=cs7("onChange"),l=J_W();Ifw(e.deps,x)&&(e.deps=x,e.pendingEffect=O,l.__syncEffects||(l.__syncEffects=[]),l.__syncEffects.push(e))};
_.nO=function(O,x,e){e!=null||(e={});e=e.appContext;var l=!!Gc.legacyTriggerSoyRendererEvents;_.PE.setUp();try{var C=pqV(O,x,e);l&&(x=e,x!=null||(x=_.Z$L(document).getAppContext()),x.get(r_N).JSC$29291_getEventTarget().dispatchEvent(new HGV(RoL,O,tZ)));_.PE.log(O);return C}finally{_.PE.tearDown()}};
pqV=function(O,x,e){var l=ne(function(){var C=ow(aU);try{return BL(function(){var Q=_.Z$L(_.BX(O)),L;var k=zxL({rootElement:{value:O},appContext:e||(Q==null?void 0:(L=Q.getOptionalAppContext)==null?void 0:L.call(Q)),dispatcher:Q});Q=_.kO(k);k=oU(!0);WL++;try{pO(x(),O),zc(!1)}catch(M){throw zc(!0),M;}finally{oU(k),_.kO(Q)}},!1)}catch(Q){throw Gc.enableContextBasedComponentStacks&&dw(Q),Q;
}finally{ow(C)}});
O[U9L]=!0;return function(){O.textContent="";l();O[U9L]=!1}};
_.u8=function(O){if(kQ8(X1)){var x;(x=Gc.handleError)==null||x.call.apply(x,[Gc].concat(_.Kx(ww(Error("dc")))))}var e=Le,l=rw;$ur({onInitType:Nlr,run:function(){if(e&&!e.isDisposed){var C=_.kO(e);try{ne(function(){return void O()},l)}catch(Q){throw Gc.enableContextBasedComponentStacks&&dw(Q),Q;
}finally{_.kO(C)}}}})};
afV=function(O,x){Vhw(function(){return _.cL(O)},x)};
_.YK=function(O){Ke()?_.u8(function(){_.cL(O)}):Vhw(function(){return _.cL(O)},[])};
sg8=function(O){var x=[].concat(_.Kx(O));O.length=0;O=_.T(x);for(x=O.next();!x.done;x=O.next()){x=x.value;m9r(x);var e=x.pendingEffect;x.pendingEffect=null;if(e=e==null?void 0:e())x.pendingCleanup=e}};
m9r=function(O){var x=O.pendingCleanup;O.pendingCleanup=null;x==null||x()};
WHL=function(O,x){if(Ke())return O();var e=cs7("useMemoInternal");Ifw(e.deps,x)&&(e.deps=x,e.value=O());return e.value};
hor=function(O,x){return WHL(O,x)};
BE=function(O){return WHL(O,[])};
zow=function(O){return BE(function(){return{value:O}})};
_.vE=function(O,x){if(!O)return null;O=Object.keys(O);O=_.T(O);for(var e=O.next();!e.done;e=O.next()){e=e.value;var l=e.toLowerCase();if(l.indexOf(x,l.length-x.length)>-1)return e}return null};
_.JZ=function(){var O=arguments,x=_.fO;O.length>1?x[O[0]]=O[1]:O.length===1&&Object.assign(x,O[0])};
_.wz=function(O,x){return O in _.fO?_.fO[O]:x};
_.SS=function(O,x){return!!_.wz(O,x)};
rs8=function(O){var x=_.fO.EXPERIMENT_FLAGS;return x?x[O]:void 0};
KHL=function(O){H1m.forEach(function(x){return x(O)})};
_.$K=function(O){return O&&window.yterr?function(){try{return O.apply(this,arguments)}catch(x){_.jS(x)}}:O};
_.jS=function(O){var x=_.i8("yt.logging.errors.log");x?x(O,"ERROR",void 0,void 0,void 0,void 0,void 0):(x=_.wz("ERRORS",[]),x.push([O,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.JZ("ERRORS",x));KHL(O)};
_.OC=function(O,x,e,l,C){var Q=_.i8("yt.logging.errors.log");Q?Q(O,"WARNING",x,e,l,void 0,C):(Q=_.wz("ERRORS",[]),Q.push([O,"WARNING",x,e,l,void 0,C]),_.JZ("ERRORS",Q))};
n7L=function(O,x){x=O.split(x);for(var e={},l=0,C=x.length;l<C;l++){var Q=x[l].split("=");if(Q.length===1&&Q[0]||Q.length===2)try{var L=d9V(Q[0]||""),k=d9V(Q[1]||"");if(L in e){var M=e[L];Array.isArray(M)?_.fV(M,k):e[L]=[M,k]}else e[L]=k}catch(Z){var G=Z,X=Q[0],y=String(n7L);G.args=[{key:X,value:Q[1],query:O,method:uem===y?"unchanged":y}];YbW.hasOwnProperty(X)||_.OC(G)}}return e};
Brr=function(O){var x=[];_.HX.forEach(O,function(e,l){var C=_.xc(l);e=Array.isArray(e)?e:[e];_.e3(e,function(Q){Q==""?x.push(C):x.push(C+"="+_.xc(Q))})});
return x.join("&")};
_.lu=function(O){O.charAt(0)==="?"&&(O=O.substring(1));return n7L(O,"&")};
_.Cb=function(O){return O.indexOf("?")!==-1?(O=(O||"").split("#")[0],O=O.split("?",2),_.lu(O.length>1?O[1]:O[0])):{}};
_.QF=function(O,x){return v7w(O,x||{},!0)};
ffw=function(O,x){return v7w(O,x||{},!1)};
v7w=function(O,x,e){var l=O.split("#",2);O=l[0];l=l.length>1?"#"+l[1]:"";var C=O.split("?",2);O=C[0];C=_.lu(C[1]||"");for(var Q in x)if(e||!_.HX.containsKey(C,Q))C[Q]=x[Q];return _.bu(O,C)+l};
Aq=function(O){if(!x)var x=window.location.href;var e=_.TG(O)[1]||null,l=_.Lb(O);return e&&l?kc(O,x):l?_.Lb(x)===l&&(Number(_.TG(x)[4]||null)||null)===(Number(_.TG(O)[4]||null)||null):!0};
_.wqr=function(O){O=JsN(O);return O===null?!1:O[0]==="com"&&O[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
JsN=function(O){O=_.Lb(O);return O!==null?O.split(".").reverse():null};
d9V=function(O){return O&&O.match(Sbn)?O:Mb(O)};
_.D0=function(O){return new jgr(O)};
_.GG=function(){Nrr||(Nrr=new g7r);return Nrr};
i1L=function(){var O=$9N;return function(){var x=_.GG();if(!x.resolve(_.D0(O))){var e={};x.addProvider((e.provide=O,e.useClass=O,e[Fc]=void 0,e))}return x.resolve(O)}};
xgi=function(O){var x=_.Xc,e,l;_.A(function(C){e=_.GG();return(l=e.resolve(_.D0(x)))?(O(l),C.return(Promise.resolve(l))):C.return(e.resolve(new OZN(x)).then(function(Q){O(Q);return Q}))})};
_.t=function(O){O=oO(O);return typeof O==="string"&&O==="false"?!1:!!O};
_.yF=function(O,x){O=oO(O);return O===void 0&&x!==void 0?x:Number(O||0)};
eh$=function(O){O=oO(O);return Array.isArray(O)?_.Ku(O,function(x){return Number(x||0)}):[Number(O||0)]};
_.Z0=function(O){O=oO(O);return O!==void 0?String(O):""};
_.EC=function(O){O=oO(O);return Array.isArray(O)?_.Ku(O,function(x){return String(x||"")}):[String(O||"")]};
l2N=function(){return _.wz("EXPERIMENTS_TOKEN","")};
oO=function(O){return _.wz("EXPERIMENT_FLAGS",{})[O]};
C_n=function(){for(var O=[],x=_.wz("EXPERIMENTS_FORCED_FLAGS",{}),e=_.T(Object.keys(x)),l=e.next();!l.done;l=e.next())l=l.value,O.push({key:l,value:String(x[l])});e=_.wz("EXPERIMENT_FLAGS",{});l=_.T(Object.keys(e));for(var C=l.next();!C.done;C=l.next())C=C.value,C.startsWith("force_")&&x[C]===void 0&&O.push({key:C,value:String(e[C])});return O};
bZ8=function(){if(!QRs)return null;var O=QRs();return"open"in O?O:null};
_.TT7=function(O){switch(_.tq(O)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.tq=function(O){return O&&"status"in O?O.status:-1};
_.qb=function(O,x){typeof O==="function"&&(O=_.$K(O));return window.setTimeout(O,x)};
_.cK=function(O,x){typeof O==="function"&&(O=_.$K(O));return window.setInterval(O,x)};
_.IO=function(O){window.clearTimeout(O)};
kD$=function(O){O=_.Cb(O);for(var x=_.T(LRW),e=x.next();!e.done;e=x.next())if(O[e.value]!==void 0)return!0;return!1};
Dgm=function(O,x,e,l,C,Q,L,k,M){e=e===void 0?"GET":e;l=l===void 0?"":l;k=k===void 0?!1:k;var G=bZ8();if(!G)return null;var X=function(){(G&&"readyState"in G?G.readyState:0)===4&&x&&_.$K(x)(G)};
"onloadend"in G?G.addEventListener("loadend",X,!1):G.onreadystatechange=X;_.t("debug_forward_web_query_parameters")&&(O=A3N(O,window.location.search));G.open(e,O,!0);Q&&(G.responseType=Q);L&&(G.withCredentials=!0);e=e==="POST"&&(window.FormData===void 0||!(l instanceof FormData));if(C=M6w(O,C))for(var y in C)G.setRequestHeader(y,C[y]),"content-type"===y.toLowerCase()&&(e=!1);e&&G.setRequestHeader("Content-Type","application/x-www-form-urlencoded");M&&"onprogress"in G&&(G.onprogress=function(){M(G.responseText)});
if(k&&"setAttributionReporting"in XMLHttpRequest.prototype){O={eventSourceEligible:!0,triggerEligible:!1};try{G.setAttributionReporting(O)}catch(Z){_.OC(Z)}}G.send(l);return G};
M6w=function(O,x){x=x===void 0?{}:x;var e=Aq(O),l=_.wz("INNERTUBE_CLIENT_NAME"),C=_.t("web_ajax_ignore_global_headers_if_set"),Q;for(Q in GDr){var L=_.wz(GDr[Q]),k=Q==="X-Goog-AuthUser"||Q==="X-Goog-PageId";Q!=="X-Goog-Visitor-Id"||L||(L=_.wz("VISITOR_DATA"));var M;if(!(M=!L)){if(!(M=e||(_.Lb(O)?!1:!0))){M=O;var G;if(G=_.t("add_auth_headers_to_remarketing_google_dot_com_ping")&&Q==="Authorization"&&(l==="TVHTML5"||l==="TVHTML5_UNPLUGGED"||l==="TVHTML5_SIMPLY"))G=JsN(M),G=G===null?!1:G[1]==="google"?
!0:G[2]==="google"?G[0]==="au"&&G[1]==="com"?!0:G[0]==="uk"&&G[1]==="co"?!0:!1:!1;G&&(M=_.VF(M)||"",M=M.split("/"),M="/"+(M.length>1?M[1]:""),G=M==="/pagead");M=G?!0:!1}M=!M}M||C&&x[Q]!==void 0||l==="TVHTML5_UNPLUGGED"&&k||(x[Q]=L)}"X-Goog-EOM-Visitor-Id"in x&&"X-Goog-Visitor-Id"in x&&delete x["X-Goog-Visitor-Id"];if(e||!_.Lb(O))x["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(e||!_.Lb(O)){try{var X=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(y){}X&&(x["X-YouTube-Time-Zone"]=
X)}document.location.hostname.endsWith("youtubeeducation.com")||!e&&_.Lb(O)||(x["X-YouTube-Ad-Signals"]=Brr(FR$()));return x};
_.XUL=function(O,x){var e=_.Lb(O);_.t("debug_handle_relative_url_for_query_forward_killswitch")||!e&&Aq(O)&&(e=document.location.hostname);var l=_.VF(O);l=(e=e&&(e.endsWith("youtube.com")||e.endsWith("youtube-nocookie.com")))&&l&&l.startsWith("/api/");if(!e||l)return O;var C=_.lu(x),Q={};_.e3(LRW,function(L){C[L]&&(Q[L]=C[L])});
return ffw(O,Q)};
oms=function(O,x){x.method="POST";x.postParams||(x.postParams={});return _.pb(O,x)};
y37=function(O,x){var e=_.wz("XSRF_FIELD_NAME"),l;x.headers&&(l=x.headers["Content-Type"]);return!x.excludeXsrf&&(!_.Lb(O)||x.withCredentials||_.Lb(O)===document.location.hostname)&&x.method==="POST"&&(!l||l==="application/x-www-form-urlencoded")&&!(x.postParams&&x.postParams[e])};
_.pb=function(O,x){var e=x.format||"JSON";O=ZZ7(O,x);var l=Emr(O,x),C=!1,Q=t6m(O,function(M){if(!C){C=!0;k&&_.IO(k);var G=_.TT7(M),X=null,y=400<=M.status&&M.status<500,Z=500<=M.status&&M.status<600;if(G||y||Z)X=qO$(O,e,M,x.convertToSafeHtml);G&&(G=P_L(e,M,X));X=X||{};y=x.context||_.CV;G?x.onSuccess&&x.onSuccess.call(y,M,X):x.onError&&x.onError.call(y,M,X);x.onFinish&&x.onFinish.call(y,M,X)}},x.method,l,x.headers,x.responseType,x.withCredentials,!1,x.onProgress);
l=x.timeout||0;if(x.onTimeout&&l>0){var L=x.onTimeout;var k=_.qb(function(){C||(C=!0,Q.abort(),_.IO(k),L.call(x.context||_.CV,Q))},l)}return Q};
ZZ7=function(O,x){x.includeDomain&&(O=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+O);var e=_.wz("XSRF_FIELD_NAME");if(x=x.urlParams)x[e]&&delete x[e],O=_.QF(O,x);return O};
Emr=function(O,x){var e=_.wz("XSRF_FIELD_NAME"),l=_.wz("XSRF_TOKEN"),C=x.postBody||"",Q=x.postParams;y37(O,x)&&(Q||(Q={}),Q[e]=l);(_.t("ajax_parse_query_data_only_when_filled")&&Q&&Object.keys(Q).length>0||Q)&&typeof C==="string"&&(C=_.lu(C),_.HX.extend(C,Q),C=x.postBodyFormat&&x.postBodyFormat==="JSON"?JSON.stringify(C):_.RO(C));Q=C||Q&&!_.HX.isEmpty(Q);!c3r&&Q&&x.method!=="POST"&&(c3r=!0,_.jS(Error("Jc")));return C};
qO$=function(O,x,e,l){var C=null;switch(x){case "JSON":try{var Q=e.responseText}catch(L){throw l=Error("Kc"),l.params=O,_.OC(l),L;}O=e.getResponseHeader("Content-Type")||"";Q&&O.indexOf("json")>=0&&(Q.substring(0,5)===")]}'\n"&&(Q=Q.substring(5)),C=JSON.parse(Q));break;case "XML":if(O=(O=e.responseXML)?I2i(O):null)C={},_.e3(O.getElementsByTagName("*"),function(L){C[L.tagName]=V67(L)})}l&&pUN(C);
return C};
pUN=function(O){if(_.w7(O))for(var x in O)x==="html_content"||LV(x,"_html")?O[x]=SE(O[x]):pUN(O[x])};
P_L=function(O,x,e){if(x&&x.status===204)return!0;switch(O){case "JSON":return!!e;case "XML":return Number(e&&e.return_code)===0;case "RAW":return!0;default:return!!e}};
I2i=function(O){return O?(O=("responseXML"in O?O.responseXML:O).getElementsByTagName("root"))&&O.length>0?O[0]:null:null};
V67=function(O){var x="";_.e3(O.childNodes,function(e){x+=e.nodeValue});
return x};
Rhs=function(O){if(O.name==="JavaException")return!0;O=O.stack;return O.includes("chrome://")||O.includes("-extension://")||O.includes("webkit-masked-url://")};
UgW=function(O){if(!O.stack)return!0;var x=!O.stack.includes("\n");return x&&O.stack.includes("ErrorType: ")||x&&O.stack.includes("Anonymous function (Unknown script")||O.stack.toLowerCase()==="not available"||O.fileName==="user-script"||O.fileName.startsWith("user-script:")?!0:!1};
_.UC=function(O){_.h0.call(this);this.JSC$10518_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!O};
mgr=function(O,x){var e=O.length,l=0,C=function(){return O.charCodeAt(l++)};
do{var Q=a2W(C);if(Q===Infinity)break;var L=Q>>3;switch(Q&7){case 0:Q=a2W(C);if(L===x)return Q;break;case 1:if(L===x)return;l+=8;break;case 2:Q=a2W(C);if(L===x)return O.substr(l,Q);l+=Q;break;case 5:if(L===x)return;l+=4;break;default:return}}while(l<e)};
a2W=function(O){var x=O(),e=x&127;if(x<128)return e;x=O();e|=(x&127)<<7;if(x<128)return e;x=O();e|=(x&127)<<14;if(x<128)return e;x=O();return x<128?e|(x&127)<<21:Infinity};
WRr=function(O,x,e,l){if(O)if(Array.isArray(O)){var C=l;for(l=0;l<O.length&&!(O[l]&&(C+=sRw(l,O[l],x,e),C>500));l++);l=C}else if(typeof O==="object")for(C in O){if(O[C]){var Q=C;var L=O[C],k=x,M=e;Q=typeof L!=="string"||Q!=="clickTrackingParams"&&Q!=="trackingParams"?0:(L=mgr(atob(L.replace(/-/g,"+").replace(/_/g,"/")),2))?sRw(Q+".ve",L,k,M):0;l+=Q;l+=sRw(C,O[C],x,e);if(l>500)break}}else e[x]=aO(O),l+=e[x].length;else e[x]=aO(O),l+=e[x].length;return l};
sRw=function(O,x,e,l){e+="."+O;O=aO(x);l[e]=O;return e.length+O.length};
aO=function(O){try{return(typeof O==="string"?O:String(JSON.stringify(O))).substr(0,500)}catch(x){return"unable to serialize "+typeof O+" ("+x.message+")"}};
hhr=function(O){switch(O){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}};
_.sC=function(O,x,e,l,C){_.mK.set(O,x,{maxAge:e,path:"/",domain:l===void 0?"youtube.com":l,secure:C===void 0?!1:C})};
_.zhL=function(O,x,e){_.mK.remove(O,x===void 0?"/":x,e===void 0?"youtube.com":e)};
_.WK=function(){if(_.t("embeds_web_enable_cookie_detection_fix")){if(!_.CV.navigator.cookieEnabled)return!1}else if(!_.mK.isEnabled())return!1;if(!_.mK.isEmpty())return!0;_.t("embeds_web_enable_cookie_detection_fix")?_.mK.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.mK.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.mK.get("TESTCOOKIESENABLED")!=="1")return!1;_.mK.remove("TESTCOOKIESENABLED");return!0};
r3i=function(){var O=_.CV.navigator;return O?O.connection:void 0};
HZr=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}};
_.dg8=function(){var O=r3i();if(O){var x=KRm[O.type||"unknown"]||"CONN_UNKNOWN";O=KRm[O.effectiveType||"unknown"]||"CONN_UNKNOWN";x==="CONN_CELLULAR_UNKNOWN"&&O!=="CONN_UNKNOWN"&&(x=O);if(x!=="CONN_UNKNOWN")return x;if(O!=="CONN_UNKNOWN")return O}};
uCL=function(){var O=r3i();if(O!=null&&O.effectiveType)return nmr.hasOwnProperty(O.effectiveType)?nmr[O.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.zG=function(){try{return _.hq(),!0}catch(O){return!1}};
_.hq=function(O){if(_.wz("DATASYNC_ID")!==void 0)return _.wz("DATASYNC_ID");throw new _.ry("Datasync ID not set",O===void 0?"unknown":O);};
_.HK=function(O){this.mechanism=O};
Kb=function(O){this.mechanism=O};
dy=function(O){this.storage_=O;this.cachedIsStorageAvailable_=null};
YOr=function(){var O=null;try{O=_.CV.localStorage||null}catch(x){}dy.call(this,O)};
BTV=function(){var O=null;try{O=_.CV.sessionStorage||null}catch(x){}dy.call(this,O)};
nb=function(O,x){this.mechanism_=O;this.JSC$10620_prefix_=x+"::"};
_.vmL=function(O){var x=new YOr;return x.isAvailable()?O?new nb(x,O):x:null};
_.f2N=function(O){var x=new BTV;return x.isAvailable()?O?new nb(x,O):x:null};
wUs=function(){var O;return(O=J3L())==null?void 0:O.get("LAST_RESULT_ENTRY_KEY",!0)};
_.BK=function(O){SOW||(_.uu?_.uu.logError(O):(_.Yc.push({type:"ERROR",payload:O}),_.Yc.length>10&&_.Yc.shift()))};
vK=function(O,x){SOW||(_.uu?_.uu.logEvent(O,x):(_.Yc.push({type:"EVENT",eventType:O,payload:x}),_.Yc.length>10&&_.Yc.shift()))};
Jq=function(O){if(O.indexOf(":")>=0)throw Error("Rc");};
wy=function(O){return O.substr(0,O.indexOf(":"))||O};
gmW=function(){return(jRi||NTV)&&S3("applewebkit")&&!S3("version")&&(!S3("safari")||S3("gsa/"))};
S3=function(O){var x=_.E8();return x?x.toLowerCase().indexOf(O)>=0:!1};
OAN=function(O,x,e,l){x=wy(x);var C=O instanceof Error?O:Error("Sc`"+O);if(C instanceof j3)return C;O={objectStoreNames:e,dbName:x,dbVersion:l};if(C.name==="QuotaExceededError")return new j3("QUOTA_EXCEEDED",O);if(_.Nb&&C.name==="UnknownError")return new j3("QUOTA_MAYBE_EXCEEDED",O);if(C instanceof $gm)return new j3("MISSING_INDEX",Object.assign({},O,{objectStore:C.objectStore,index:C.index}));if(C.name==="InvalidStateError"&&iZr.some(function(Q){return C.message.includes(Q)}))return new j3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
O);
if(C.name==="AbortError")return new j3("UNKNOWN_ABORT",O,C.message);C.args=[Object.assign({},O,{name:"IdbError",originalName:C.name})];C.level="WARNING";return C};
gy=function(O,x,e){var l=wUs();return new j3("IDB_NOT_SUPPORTED",{context:{caller:O,publicName:x,version:e,hasSucceededOnce:l==null?void 0:l.hasSucceededOnce}})};
xcr=function(O){if(!O)throw Error();throw O;};
e1m=function(O){return O};
lSL=function(O,x,e){var l=function(){try{O.removeEventListener("success",C),O.removeEventListener("error",Q)}catch(L){}},C=function(){x(O.result);
l()},Q=function(){e(O.error);
l()};
O.addEventListener("success",C);O.addEventListener("error",Q)};
C9r=function(O){return new Promise(function(x,e){lSL(O,x,e)})};
OY=function(O){return new $c(new iu(function(x,e){lSL(O,x,e)}))};
Qxs=function(O,x){return new $c(new iu(function(e,l){var C=function(){var Q=O?x(O):null;Q?Q.then(function(L){O=L;C()},l):e()};
C()}))};
bAm=function(O,x,e){return new Promise(function(l,C){var Q=x!==void 0?self.indexedDB.open(O,x):self.indexedDB.open(O);var L=e.blocked,k=e.blocking,M=e.terminated,G=e.upgrade,X=e.closed,y,Z=function(){y||(y=new xC(Q.result,{closed:X}));return y};
Q.addEventListener("upgradeneeded",function(E){try{if(E.newVersion===null)throw Error("Xc");if(Q.transaction===null)throw Error("Yc");E.dataLoss&&E.dataLoss!=="none"&&vK("IDB_DATA_CORRUPTED",{reason:E.dataLossMessage||"unknown reason",dbName:wy(O)});var P=Z(),U=new eC(Q.transaction);G&&G(P,function(W){return E.oldVersion<W&&E.newVersion>=W},U);
U.done.catch(function(W){C(W)})}catch(W){C(W)}});
Q.addEventListener("success",function(){var E=Q.result;k&&E.addEventListener("versionchange",function(){k(Z())});
E.addEventListener("close",function(){vK("IDB_UNEXPECTEDLY_CLOSED",{dbName:wy(O),dbVersion:E.version});M&&M()});
l(Z())});
Q.addEventListener("error",function(){C(Q.error)});
L&&Q.addEventListener("blocked",function(){L()})})};
Tb$=function(O,x,e){e=e===void 0?{}:e;return bAm(O,x,e)};
_.C$=function(O,x){x=x===void 0?{}:x;var e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return _.tS(L,2),e=self.indexedDB.deleteDatabase(O),l=x,(C=l.blocked)&&e.addEventListener("blocked",function(){C()}),L.yield(C9r(e),4);
if(L.nextAddress!=2)return _.lb(L,0);Q=_.VP(L);throw OAN(Q,O,"",-1);})};
kLm=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1)return l.yield(_.Q4(LWW,x),2);e=l.yieldResult;return l.return(_.bb(e,["databases"],{enableRetries:!0,mode:"readwrite"},function(C){var Q=C.objectStore("databases");return Q.get(O.actualName).then(function(L){if(L?O.actualName!==L.actualName||O.publicName!==L.publicName||O.userIdentifier!==L.userIdentifier:1)return Q.put(O).then(function(){})})}))})};
_.TC=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1)return O?l.yield(_.Q4(LWW,x),2):l.return();e=l.yieldResult;return l.return(e.delete("databases",O))})};
_.AhN=function(O,x){var e,l;return _.A(function(C){return C.nextAddress==1?(e=[],C.yield(_.Q4(LWW,x),2)):C.nextAddress!=3?(l=C.yieldResult,C.yield(_.bb(l,["databases"],{enableRetries:!0,mode:"readonly"},function(Q){e.length=0;return L$(Q.objectStore("databases"),{},function(L){O(L.getValue())&&e.push(L.getValue());return L.continue()})}),3)):C.return(e)})};
M_8=function(O,x){return _.AhN(function(e){return e.publicName===O&&e.userIdentifier!==void 0},x)};
FWi=function(){var O,x,e,l;return _.A(function(C){switch(C.nextAddress){case 1:O=wUs();if((x=O)==null?0:x.hasSucceededOnce)return C.return(!0);var Q;if(Q=Dcn)Q=/WebKit\/([0-9]+)/.exec(_.E8()),Q=!!(Q&&parseInt(Q[1],10)>=600);Q&&(Q=/WebKit\/([0-9]+)/.exec(_.E8()),Q=!(Q&&parseInt(Q[1],10)>=602));if(Q||kC)return C.return(!1);try{if(e=self,!(e.indexedDB&&e.IDBIndex&&e.IDBKeyRange&&e.IDBObjectStore))return C.return(!1)}catch(L){return C.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return C.return(!1);
_.tS(C,2);l={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return C.yield(kLm(l,GLV),4);case 4:return C.yield(_.TC("yt-idb-test-do-not-use",GLV),5);case 5:return C.return(!0);case 2:return _.VP(C),C.return(!1)}})};
oEL=function(){if(X1$!==void 0)return X1$;SOW=!0;return X1$=FWi().then(function(O){SOW=!1;var x;if((x=J3L())!=null&&x.hasLocalStorage()){var e;x={hasSucceededOnce:((e=wUs())==null?void 0:e.hasSucceededOnce)||O};var l;(l=J3L())==null||l.set("LAST_RESULT_ENTRY_KEY",x,2592E3,!0)}return O})};
AN=function(){return _.i8("ytglobal.idbToken_")||void 0};
_.DG=function(){var O=AN();return O?Promise.resolve(O):oEL().then(function(x){(x=x?GLV:void 0)&&_.MB("ytglobal.idbToken_",x);return x})};
yhL=function(O){if(!_.zG())throw O=new j3("AUTH_INVALID",{dbName:O}),_.BK(O),O;var x=_.hq();return{actualName:O+":"+x,publicName:O,userIdentifier:x}};
ZAr=function(O,x,e,l){var C,Q,L,k,M,G;return _.A(function(X){switch(X.nextAddress){case 1:return Q=(C=Error().stack)!=null?C:"",X.yield(_.DG(),2);case 2:L=X.yieldResult;if(!L)throw k=gy("openDbImpl",O,x),_.t("ytidb_async_stack_killswitch")||(k.stack=k.stack+"\n"+Q.substring(Q.indexOf("\n")+1)),_.BK(k),k;Jq(O);M=e?{actualName:O,publicName:O,userIdentifier:void 0}:yhL(O);_.tS(X,3);return X.yield(kLm(M,L),5);case 5:return X.yield(Tb$(M.actualName,x,l),6);case 6:return X.return(X.yieldResult);case 3:return G=
_.VP(X),_.tS(X,7),X.yield(_.TC(M.actualName,L),9);case 9:_.lb(X,8);break;case 7:_.VP(X);case 8:throw G;}})};
EEi=function(O,x,e){e=e===void 0?{}:e;return ZAr(O,x,!1,e)};
t_r=function(O,x,e){e=e===void 0?{}:e;return ZAr(O,x,!0,e)};
qQN=function(O,x){x=x===void 0?{}:x;var e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield(_.DG(),2);if(C.nextAddress!=3){e=C.yieldResult;if(!e)return C.return();Jq(O);l=yhL(O);return C.yield(_.C$(l.actualName,x),3)}return C.yield(_.TC(l.actualName,e),0)})};
P9w=function(O,x,e){O=O.map(function(l){return _.A(function(C){return C.nextAddress==1?C.yield(_.C$(l.actualName,x),2):C.yield(_.TC(l.actualName,e),0)})});
return Promise.all(O).then(function(){})};
chL=function(O){var x=x===void 0?{}:x;var e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield(_.DG(),2);if(C.nextAddress!=3){e=C.yieldResult;if(!e)return C.return();Jq(O);return C.yield(M_8(O,e),3)}l=C.yieldResult;return C.yield(P9w(l,x,e),0)})};
ISW=function(O,x){x=x===void 0?{}:x;var e;return _.A(function(l){if(l.nextAddress==1)return l.yield(_.DG(),2);if(l.nextAddress!=3){e=l.yieldResult;if(!e)return l.return();Jq(O);return l.yield(_.C$(O,x),3)}return l.yield(_.TC(O,e),0)})};
GC=function(O,x){return V_W(O,x)};
R1i=function(O){return _.Q4(p1$(),O)};
UcL=function(O,x,e,l){var C,Q,L;return _.A(function(k){switch(k.nextAddress){case 1:return C={config:O,hashData:x,timestamp:l!==void 0?l:(0,_.F2)()},k.yield(R1i(e),2);case 2:return Q=k.yieldResult,k.yield(Q.clear("hotConfigStore"),3);case 3:return k.yield(Q.put("hotConfigStore",C),4);case 4:return L=k.yieldResult,k.return(L)}})};
aSs=function(O,x,e,l,C){var Q,L,k;return _.A(function(M){switch(M.nextAddress){case 1:return Q={config:O,hashData:x,configData:e,timestamp:C!==void 0?C:(0,_.F2)()},M.yield(R1i(l),2);case 2:return L=M.yieldResult,M.yield(L.clear("coldConfigStore"),3);case 3:return M.yield(L.put("coldConfigStore",Q),4);case 4:return k=M.yieldResult,M.return(k)}})};
mc7=function(O){var x,e;return _.A(function(l){return l.nextAddress==1?l.yield(R1i(O),2):l.nextAddress!=3?(x=l.yieldResult,e=void 0,l.yield(_.bb(x,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(C){return _.X2(C.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Q){e=Q.getValue()})}),3)):l.return(e)})};
sx7=function(O){var x,e;return _.A(function(l){return l.nextAddress==1?l.yield(R1i(O),2):l.nextAddress!=3?(x=l.yieldResult,e=void 0,l.yield(_.bb(x,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(C){return _.X2(C.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Q){e=Q.getValue()})}),3)):l.return(e)})};
WW7=function(){return _.A(function(O){return O.yield(chL("ytGcfConfig"),0)})};
h1r=function(){return"INNERTUBE_API_KEY"in _.fO&&"INNERTUBE_API_VERSION"in _.fO};
_.oC=function(){return{innertubeApiKey:_.wz("INNERTUBE_API_KEY"),innertubeApiVersion:_.wz("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.wz("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.wz("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.wz("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.wz("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.wz("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.wz("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.wz("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.SS("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.SS("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.wz("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.uxm=function(O){var x={client:{hl:O.innertubeContextHostLanguage,gl:O.innertubeContextGeoLocation,clientName:O.innertubeContextClientName,clientVersion:O.innertubeContextClientVersion,configInfo:O.innertubeContextClientConfigInfo}};navigator.userAgent&&(x.client.userAgent=String(navigator.userAgent));var e=_.CV.devicePixelRatio;e&&e!=1&&(x.client.screenDensityFloat=String(e));e=l2N();e!==""&&(x.client.experimentsToken=e);e=C_n();e.length>0&&(x.request={internalExperimentFlags:e});z1V(O,void 0,x);
rhs(void 0,x);HAV(void 0,x);KWw(O,void 0,x);dcV(void 0,x);_.t("start_client_gcf")&&nE8(void 0,x);_.wz("DELEGATED_SESSION_ID")&&!_.t("pageid_as_header_web")&&(x.user={onBehalfOfUser:_.wz("DELEGATED_SESSION_ID")});!_.t("fill_delegate_context_in_gel_killswitch")&&(O=_.wz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(x.user=Object.assign({},x.user,{serializedDelegationContext:O}));O=_.wz("INNERTUBE_CONTEXT");var l;if(_.t("enable_persistent_device_token")&&(O==null?0:(l=O.client)==null?0:l.rolloutToken)){var C;
x.client.rolloutToken=O==null?void 0:(C=O.client)==null?void 0:C.rolloutToken}l=Object;C=l.assign;O=x.client;e={};for(var Q=_.T(Object.entries(_.lu(_.wz("DEVICE","")))),L=Q.next();!L.done;L=Q.next()){var k=_.T(L.value);L=k.next().value;k=k.next().value;L==="cbrand"?e.deviceMake=k:L==="cmodel"?e.deviceModel=k:L==="cbr"?e.browserName=k:L==="cbrver"?e.browserVersion=k:L==="cos"?e.osName=k:L==="cosver"?e.osVersion=k:L==="cplatform"&&(e.platform=k)}x.client=C.call(l,O,e);return x};
z1V=function(O,x,e){O=O.innertubeContextClientName;if(O==="WEB"||O==="MWEB"||O===1||O===2)if(x){e=_.y4(x,YQN,96)||new YQN;var l=Bbr();l=Object.keys(vEr).indexOf(l);l=l===-1?null:l;l!==null&&_.ZG(e,3,l);_.IS(x,96,e)}else e&&(e.client.mainAppWebInfo=(l=e.client.mainAppWebInfo)!=null?l:{},e.client.mainAppWebInfo.webDisplayMode=Bbr())};
rhs=function(O,x){var e=_.i8("yt.embedded_player.embed_url");e&&(O?(x=_.y4(O,fSn,7)||new fSn,_.mO(x,4,e),_.IS(O,7,x)):x&&(x.thirdParty={embedUrl:e}))};
HAV=function(O,x){var e;if(_.t("web_log_memory_total_kbytes")&&((e=_.CV.navigator)==null?0:e.deviceMemory)){var l;e=(l=_.CV.navigator)==null?void 0:l.deviceMemory;O?_.EY(O,95,DQ(e*1E6)):x&&(x.client.memoryTotalKbytes=""+e*1E6)}};
KWw=function(O,x,e){if(O.appInstallData)if(x){var l;e=(l=_.y4(x,tN,62))!=null?l:new tN;_.mO(e,6,O.appInstallData);_.IS(x,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},e.client.configInfo.appInstallData=O.appInstallData)};
dcV=function(O,x){var e=_.dg8();e&&(O?_.ZG(O,61,Jh7[e]):x&&(x.client.connectionType=e));_.t("web_log_effective_connection_type")&&(e=uCL())&&(O?_.ZG(O,94,w1L[e]):x&&(x.client.effectiveConnectionType=e))};
_.Nbr=function(O,x,e){e=e===void 0?{}:e;var l={};_.wz("EOM_VISITOR_DATA")?l={"X-Goog-EOM-Visitor-Id":_.wz("EOM_VISITOR_DATA")}:l={"X-Goog-Visitor-Id":e.visitorData||_.wz("VISITOR_DATA","")};if(x&&x.includes("www.youtube-nocookie.com"))return l;x=e.authorization||_.wz("AUTHORIZATION");x||(O?x="Bearer "+_.i8("gapi.auth.getToken")().access_token:(SQs.instance||(SQs.instance=new SQs),O=jxL(),_.t("pageid_as_header_web")||delete O["X-Goog-PageId"],l=Object.assign({},l,O)));x&&(l.Authorization=x);return l};
nE8=function(O,x){var e=gE8();if(e){var l=e.coldConfigData,C=e.coldHashData;e=e.hotHashData;if(O){var Q;x=(Q=_.y4(O,tN,62))!=null?Q:new tN;l=_.mO(x,1,l);_.mO(l,3,C).setHotHashData(e);_.IS(O,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},l&&(x.client.configInfo.coldConfigData=l),C&&(x.client.configInfo.coldHashData=C),e&&(x.client.configInfo.hotHashData=e))}};
qB=function(O){for(var x=O.length;--x>=0;)O[x]=0};
$cr=function(O,x,e,l,C){this.static_tree=O;this.extra_bits=x;this.extra_base=e;this.elems=l;this.max_length=C;this.has_stree=O&&O.length};
iA8=function(O,x){this.dyn_tree=O;this.max_code=0;this.stat_desc=x};
Pn=function(O,x){O.pending_buf[O.pending++]=x&255;O.pending_buf[O.pending++]=x>>>8&255};
cn=function(O,x,e){O.bi_valid>16-e?(O.bi_buf|=x<<O.bi_valid&65535,Pn(O,O.bi_buf),O.bi_buf=x>>16-O.bi_valid,O.bi_valid+=e-16):(O.bi_buf|=x<<O.bi_valid&65535,O.bi_valid+=e)};
IC=function(O,x,e){cn(O,e[x*2],e[x*2+1])};
O3s=function(O,x){var e=0;do e|=O&1,O>>>=1,e<<=1;while(--x>0);return e>>>1};
xwW=function(O,x,e){var l=Array(16),C=0,Q;for(Q=1;Q<=15;Q++)l[Q]=C=C+e[Q-1]<<1;for(e=0;e<=x;e++)C=O[e*2+1],C!==0&&(O[e*2]=O3s(l[C]++,C))};
ern=function(O){var x;for(x=0;x<286;x++)O.dyn_ltree[x*2]=0;for(x=0;x<30;x++)O.dyn_dtree[x*2]=0;for(x=0;x<19;x++)O.bl_tree[x*2]=0;O.dyn_ltree[512]=1;O.opt_len=O.static_len=0;O.last_lit=O.matches=0};
lEr=function(O){O.bi_valid>8?Pn(O,O.bi_buf):O.bi_valid>0&&(O.pending_buf[O.pending++]=O.bi_buf);O.bi_buf=0;O.bi_valid=0};
CKw=function(O,x,e){lEr(O);Pn(O,e);Pn(O,~e);V4.arraySet(O.pending_buf,O.window,x,e,O.pending);O.pending+=e};
QF8=function(O,x,e,l){var C=x*2,Q=e*2;return O[C]<O[Q]||O[C]===O[Q]&&l[x]<=l[e]};
b3s=function(O,x,e){for(var l=O.heap[e],C=e<<1;C<=O.heap_len;){C<O.heap_len&&QF8(x,O.heap[C+1],O.heap[C],O.depth)&&C++;if(QF8(x,l,O.heap[C],O.depth))break;O.heap[e]=O.heap[C];e=C;C<<=1}O.heap[e]=l};
MxL=function(O,x,e){var l=0;if(O.last_lit!==0){do{var C=O.pending_buf[O.d_buf+l*2]<<8|O.pending_buf[O.d_buf+l*2+1];var Q=O.pending_buf[O.l_buf+l];l++;if(C===0)IC(O,Q,x);else{var L=p$[Q];IC(O,L+256+1,x);var k=TO8[L];k!==0&&(Q-=LC8[L],cn(O,Q,k));C--;L=C<256?RC[C]:RC[256+(C>>>7)];IC(O,L,e);k=kur[L];k!==0&&(C-=AUW[L],cn(O,C,k))}}while(l<O.last_lit)}IC(O,256,x)};
Dww=function(O,x){var e=x.dyn_tree,l=x.stat_desc.static_tree,C=x.stat_desc.has_stree,Q=x.stat_desc.elems,L,k=-1;O.heap_len=0;O.heap_max=573;for(L=0;L<Q;L++)e[L*2]!==0?(O.heap[++O.heap_len]=k=L,O.depth[L]=0):e[L*2+1]=0;for(;O.heap_len<2;){var M=O.heap[++O.heap_len]=k<2?++k:0;e[M*2]=1;O.depth[M]=0;O.opt_len--;C&&(O.static_len-=l[M*2+1])}x.max_code=k;for(L=O.heap_len>>1;L>=1;L--)b3s(O,e,L);M=Q;do L=O.heap[1],O.heap[1]=O.heap[O.heap_len--],b3s(O,e,1),l=O.heap[1],O.heap[--O.heap_max]=L,O.heap[--O.heap_max]=
l,e[M*2]=e[L*2]+e[l*2],O.depth[M]=(O.depth[L]>=O.depth[l]?O.depth[L]:O.depth[l])+1,e[L*2+1]=e[l*2+1]=M,O.heap[1]=M++,b3s(O,e,1);while(O.heap_len>=2);O.heap[--O.heap_max]=O.heap[1];L=x.dyn_tree;M=x.max_code;l=x.stat_desc.static_tree;C=x.stat_desc.has_stree;Q=x.stat_desc.extra_bits;var G=x.stat_desc.extra_base,X=x.stat_desc.max_length,y,Z=0;for(y=0;y<=15;y++)O.bl_count[y]=0;L[O.heap[O.heap_max]*2+1]=0;for(x=O.heap_max+1;x<573;x++){var E=O.heap[x];y=L[L[E*2+1]*2+1]+1;y>X&&(y=X,Z++);L[E*2+1]=y;if(!(E>
M)){O.bl_count[y]++;var P=0;E>=G&&(P=Q[E-G]);var U=L[E*2];O.opt_len+=U*(y+P);C&&(O.static_len+=U*(l[E*2+1]+P))}}if(Z!==0){do{for(y=X-1;O.bl_count[y]===0;)y--;O.bl_count[y]--;O.bl_count[y+1]+=2;O.bl_count[X]--;Z-=2}while(Z>0);for(y=X;y!==0;y--)for(E=O.bl_count[y];E!==0;)l=O.heap[--x],l>M||(L[l*2+1]!==y&&(O.opt_len+=(y-L[l*2+1])*L[l*2],L[l*2+1]=y),E--)}xwW(e,k,O.bl_count)};
Gui=function(O,x,e){var l,C=-1,Q=x[1],L=0,k=7,M=4;Q===0&&(k=138,M=3);x[(e+1)*2+1]=65535;for(l=0;l<=e;l++){var G=Q;Q=x[(l+1)*2+1];++L<k&&G===Q||(L<M?O.bl_tree[G*2]+=L:G!==0?(G!==C&&O.bl_tree[G*2]++,O.bl_tree[32]++):L<=10?O.bl_tree[34]++:O.bl_tree[36]++,L=0,C=G,Q===0?(k=138,M=3):G===Q?(k=6,M=3):(k=7,M=4))}};
FC$=function(O,x,e){var l,C=-1,Q=x[1],L=0,k=7,M=4;Q===0&&(k=138,M=3);for(l=0;l<=e;l++){var G=Q;Q=x[(l+1)*2+1];if(!(++L<k&&G===Q)){if(L<M){do IC(O,G,O.bl_tree);while(--L!==0)}else G!==0?(G!==C&&(IC(O,G,O.bl_tree),L--),IC(O,16,O.bl_tree),cn(O,L-3,2)):L<=10?(IC(O,17,O.bl_tree),cn(O,L-3,3)):(IC(O,18,O.bl_tree),cn(O,L-11,7));L=0;C=G;Q===0?(k=138,M=3):G===Q?(k=6,M=3):(k=7,M=4)}}};
XRL=function(O){var x=4093624447,e;for(e=0;e<=31;e++,x>>>=1)if(x&1&&O.dyn_ltree[e*2]!==0)return 0;if(O.dyn_ltree[18]!==0||O.dyn_ltree[20]!==0||O.dyn_ltree[26]!==0)return 1;for(e=32;e<256;e++)if(O.dyn_ltree[e*2]!==0)return 1;return 0};
UY=function(O,x,e){O.pending_buf[O.d_buf+O.last_lit*2]=x>>>8&255;O.pending_buf[O.d_buf+O.last_lit*2+1]=x&255;O.pending_buf[O.l_buf+O.last_lit]=e&255;O.last_lit++;x===0?O.dyn_ltree[e*2]++:(O.matches++,x--,O.dyn_ltree[(p$[e]+256+1)*2]++,O.dyn_dtree[(x<256?RC[x]:RC[256+(x>>>7)])*2]++);return O.last_lit===O.lit_bufsize-1};
mQ=function(O,x){O.msg=aC[x];return x};
sY=function(O){for(var x=O.length;--x>=0;)O[x]=0};
Wn=function(O){var x=O.state,e=x.pending;e>O.avail_out&&(e=O.avail_out);e!==0&&(V4.arraySet(O.output,x.pending_buf,x.pending_out,e,O.next_out),O.next_out+=e,x.pending_out+=e,O.total_out+=e,O.avail_out-=e,x.pending-=e,x.pending===0&&(x.pending_out=0))};
rD=function(O,x){var e=O.block_start>=0?O.block_start:-1,l=O.strstart-O.block_start,C=0;if(O.level>0){O.strm.data_type===2&&(O.strm.data_type=XRL(O));Dww(O,O.l_desc);Dww(O,O.d_desc);Gui(O,O.dyn_ltree,O.l_desc.max_code);Gui(O,O.dyn_dtree,O.d_desc.max_code);Dww(O,O.bl_desc);for(C=18;C>=3&&O.bl_tree[oUN[C]*2+1]===0;C--);O.opt_len+=3*(C+1)+5+5+4;var Q=O.opt_len+3+7>>>3;var L=O.static_len+3+7>>>3;L<=Q&&(Q=L)}else Q=L=l+5;if(l+4<=Q&&e!==-1)cn(O,x?1:0,3),CKw(O,e,l);else if(O.strategy===4||L===Q)cn(O,2+(x?
1:0),3),MxL(O,hN,zC);else{cn(O,4+(x?1:0),3);e=O.l_desc.max_code+1;l=O.d_desc.max_code+1;C+=1;cn(O,e-257,5);cn(O,l-1,5);cn(O,C-4,4);for(Q=0;Q<C;Q++)cn(O,O.bl_tree[oUN[Q]*2+1],3);FC$(O,O.dyn_ltree,e-1);FC$(O,O.dyn_dtree,l-1);MxL(O,O.dyn_ltree,O.dyn_dtree)}ern(O);x&&lEr(O);O.block_start=O.strstart;Wn(O.strm)};
Hn=function(O,x){O.pending_buf[O.pending++]=x};
K$=function(O,x){O.pending_buf[O.pending++]=x>>>8&255;O.pending_buf[O.pending++]=x&255};
yUr=function(O,x){var e=O.max_chain_length,l=O.strstart,C=O.prev_length,Q=O.nice_match,L=O.strstart>O.w_size-262?O.strstart-(O.w_size-262):0,k=O.window,M=O.w_mask,G=O.prev,X=O.strstart+258,y=k[l+C-1],Z=k[l+C];O.prev_length>=O.good_match&&(e>>=2);Q>O.lookahead&&(Q=O.lookahead);do{var E=x;if(k[E+C]===Z&&k[E+C-1]===y&&k[E]===k[l]&&k[++E]===k[l+1]){l+=2;for(E++;k[++l]===k[++E]&&k[++l]===k[++E]&&k[++l]===k[++E]&&k[++l]===k[++E]&&k[++l]===k[++E]&&k[++l]===k[++E]&&k[++l]===k[++E]&&k[++l]===k[++E]&&l<X;);
E=258-(X-l);l=X-258;if(E>C){O.match_start=x;C=E;if(E>=Q)break;y=k[l+C-1];Z=k[l+C]}}}while((x=G[x&M])>L&&--e!==0);return C<=O.lookahead?C:O.lookahead};
n$=function(O){var x=O.w_size,e;do{var l=O.window_size-O.lookahead-O.strstart;if(O.strstart>=x+(x-262)){V4.arraySet(O.window,O.window,x,x,0);O.match_start-=x;O.strstart-=x;O.block_start-=x;var C=e=O.hash_size;do{var Q=O.head[--C];O.head[C]=Q>=x?Q-x:0}while(--e);C=e=x;do Q=O.prev[--C],O.prev[C]=Q>=x?Q-x:0;while(--e);l+=x}if(O.strm.avail_in===0)break;C=O.strm;e=O.window;Q=O.strstart+O.lookahead;var L=C.avail_in;L>l&&(L=l);L===0?e=0:(C.avail_in-=L,V4.arraySet(e,C.input,C.next_in,L,Q),C.state.wrap===
1?C.adler=Z3L(C.adler,e,L,Q):C.state.wrap===2&&(C.adler=dD(C.adler,e,L,Q)),C.next_in+=L,C.total_in+=L,e=L);O.lookahead+=e;if(O.lookahead+O.insert>=3)for(l=O.strstart-O.insert,O.ins_h=O.window[l],O.ins_h=(O.ins_h<<O.hash_shift^O.window[l+1])&O.hash_mask;O.insert&&!(O.ins_h=(O.ins_h<<O.hash_shift^O.window[l+3-1])&O.hash_mask,O.prev[l&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=l,l++,O.insert--,O.lookahead+O.insert<3););}while(O.lookahead<262&&O.strm.avail_in!==0)};
EUL=function(O,x){for(var e;;){if(O.lookahead<262){n$(O);if(O.lookahead<262&&x===0)return 1;if(O.lookahead===0)break}e=0;O.lookahead>=3&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,e=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);e!==0&&O.strstart-e<=O.w_size-262&&(O.match_length=yUr(O,e));if(O.match_length>=3)if(e=UY(O,O.strstart-O.match_start,O.match_length-3),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=3){O.match_length--;
do O.strstart++,O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart;while(--O.match_length!==0);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else e=UY(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(e&&(rD(O,!1),O.strm.avail_out===0))return 1}O.insert=O.strstart<2?O.strstart:2;return x===4?(rD(O,
!0),O.strm.avail_out===0?3:4):O.last_lit&&(rD(O,!1),O.strm.avail_out===0)?1:2};
ub=function(O,x){for(var e,l;;){if(O.lookahead<262){n$(O);if(O.lookahead<262&&x===0)return 1;if(O.lookahead===0)break}e=0;O.lookahead>=3&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,e=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);O.prev_length=O.match_length;O.prev_match=O.match_start;O.match_length=2;e!==0&&O.prev_length<O.max_lazy_match&&O.strstart-e<=O.w_size-262&&(O.match_length=yUr(O,e),O.match_length<=5&&(O.strategy===1||O.match_length===3&&
O.strstart-O.match_start>4096)&&(O.match_length=2));if(O.prev_length>=3&&O.match_length<=O.prev_length){l=O.strstart+O.lookahead-3;e=UY(O,O.strstart-1-O.prev_match,O.prev_length-3);O.lookahead-=O.prev_length-1;O.prev_length-=2;do++O.strstart<=l&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);while(--O.prev_length!==0);O.match_available=0;O.match_length=2;O.strstart++;if(e&&(rD(O,!1),O.strm.avail_out===0))return 1}else if(O.match_available){if((e=
UY(O,0,O.window[O.strstart-1]))&&rD(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return 1}else O.match_available=1,O.strstart++,O.lookahead--}O.match_available&&(UY(O,0,O.window[O.strstart-1]),O.match_available=0);O.insert=O.strstart<2?O.strstart:2;return x===4?(rD(O,!0),O.strm.avail_out===0?3:4):O.last_lit&&(rD(O,!1),O.strm.avail_out===0)?1:2};
txN=function(O,x){for(var e,l,C,Q=O.window;;){if(O.lookahead<=258){n$(O);if(O.lookahead<=258&&x===0)return 1;if(O.lookahead===0)break}O.match_length=0;if(O.lookahead>=3&&O.strstart>0&&(l=O.strstart-1,e=Q[l],e===Q[++l]&&e===Q[++l]&&e===Q[++l])){for(C=O.strstart+258;e===Q[++l]&&e===Q[++l]&&e===Q[++l]&&e===Q[++l]&&e===Q[++l]&&e===Q[++l]&&e===Q[++l]&&e===Q[++l]&&l<C;);O.match_length=258-(C-l);O.match_length>O.lookahead&&(O.match_length=O.lookahead)}O.match_length>=3?(e=UY(O,1,O.match_length-3),O.lookahead-=
O.match_length,O.strstart+=O.match_length,O.match_length=0):(e=UY(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++);if(e&&(rD(O,!1),O.strm.avail_out===0))return 1}O.insert=0;return x===4?(rD(O,!0),O.strm.avail_out===0?3:4):O.last_lit&&(rD(O,!1),O.strm.avail_out===0)?1:2};
qAV=function(O,x){for(var e;;){if(O.lookahead===0&&(n$(O),O.lookahead===0)){if(x===0)return 1;break}O.match_length=0;e=UY(O,0,O.window[O.strstart]);O.lookahead--;O.strstart++;if(e&&(rD(O,!1),O.strm.avail_out===0))return 1}O.insert=0;return x===4?(rD(O,!0),O.strm.avail_out===0?3:4):O.last_lit&&(rD(O,!1),O.strm.avail_out===0)?1:2};
YC=function(O,x,e,l,C){this.good_length=O;this.max_lazy=x;this.nice_length=e;this.max_chain=l;this.func=C};
PKW=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 V4.Buf16(1146);this.dyn_dtree=new V4.Buf16(122);this.bl_tree=new V4.Buf16(78);sY(this.dyn_ltree);sY(this.dyn_dtree);sY(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new V4.Buf16(16);this.heap=new V4.Buf16(573);sY(this.heap);this.heap_max=this.heap_len=0;this.depth=new V4.Buf16(573);sY(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};
cUr=function(O,x){if(!O||!O.state||x>5||x<0)return O?mQ(O,-2):-2;var e=O.state;if(!O.output||!O.input&&O.avail_in!==0||e.status===666&&x!==4)return mQ(O,O.avail_out===0?-5:-2);e.strm=O;var l=e.last_flush;e.last_flush=x;if(e.status===42)if(e.wrap===2)O.adler=0,Hn(e,31),Hn(e,139),Hn(e,8),e.gzhead?(Hn(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),Hn(e,e.gzhead.time&255),Hn(e,e.gzhead.time>>8&255),Hn(e,e.gzhead.time>>16&255),Hn(e,e.gzhead.time>>
24&255),Hn(e,e.level===9?2:e.strategy>=2||e.level<2?4:0),Hn(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(Hn(e,e.gzhead.extra.length&255),Hn(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(O.adler=dD(O.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(Hn(e,0),Hn(e,0),Hn(e,0),Hn(e,0),Hn(e,0),Hn(e,e.level===9?2:e.strategy>=2||e.level<2?4:0),Hn(e,3),e.status=113);else{var C=8+(e.w_bits-8<<4)<<8;C|=(e.strategy>=2||e.level<2?0:e.level<6?1:e.level===6?2:3)<<6;e.strstart!==0&&(C|=
32);e.status=113;K$(e,C+(31-C%31));e.strstart!==0&&(K$(e,O.adler>>>16),K$(e,O.adler&65535));O.adler=1}if(e.status===69)if(e.gzhead.extra){for(C=e.pending;e.gzindex<(e.gzhead.extra.length&65535)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>C&&(O.adler=dD(O.adler,e.pending_buf,e.pending-C,C)),Wn(O),C=e.pending,e.pending!==e.pending_buf_size));)Hn(e,e.gzhead.extra[e.gzindex]&255),e.gzindex++;e.gzhead.hcrc&&e.pending>C&&(O.adler=dD(O.adler,e.pending_buf,e.pending-C,C));e.gzindex===e.gzhead.extra.length&&
(e.gzindex=0,e.status=73)}else e.status=73;if(e.status===73)if(e.gzhead.name){C=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>C&&(O.adler=dD(O.adler,e.pending_buf,e.pending-C,C)),Wn(O),C=e.pending,e.pending===e.pending_buf_size)){var Q=1;break}Q=e.gzindex<e.gzhead.name.length?e.gzhead.name.charCodeAt(e.gzindex++)&255:0;Hn(e,Q)}while(Q!==0);e.gzhead.hcrc&&e.pending>C&&(O.adler=dD(O.adler,e.pending_buf,e.pending-C,C));Q===0&&(e.gzindex=0,e.status=91)}else e.status=91;if(e.status===
91)if(e.gzhead.comment){C=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>C&&(O.adler=dD(O.adler,e.pending_buf,e.pending-C,C)),Wn(O),C=e.pending,e.pending===e.pending_buf_size)){Q=1;break}Q=e.gzindex<e.gzhead.comment.length?e.gzhead.comment.charCodeAt(e.gzindex++)&255:0;Hn(e,Q)}while(Q!==0);e.gzhead.hcrc&&e.pending>C&&(O.adler=dD(O.adler,e.pending_buf,e.pending-C,C));Q===0&&(e.status=103)}else e.status=103;e.status===103&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&Wn(O),
e.pending+2<=e.pending_buf_size&&(Hn(e,O.adler&255),Hn(e,O.adler>>8&255),O.adler=0,e.status=113)):e.status=113);if(e.pending!==0){if(Wn(O),O.avail_out===0)return e.last_flush=-1,0}else if(O.avail_in===0&&(x<<1)-(x>4?9:0)<=(l<<1)-(l>4?9:0)&&x!==4)return mQ(O,-5);if(e.status===666&&O.avail_in!==0)return mQ(O,-5);if(O.avail_in!==0||e.lookahead!==0||x!==0&&e.status!==666){l=e.strategy===2?qAV(e,x):e.strategy===3?txN(e,x):Bn[e.level].func(e,x);if(l===3||l===4)e.status=666;if(l===1||l===3)return O.avail_out===
0&&(e.last_flush=-1),0;if(l===2&&(x===1?(cn(e,2,3),IC(e,256,hN),e.bi_valid===16?(Pn(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)):x!==5&&(cn(e,0,3),CKw(e,0,0),x===3&&(sY(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),Wn(O),O.avail_out===0))return e.last_flush=-1,0}if(x!==4)return 0;if(e.wrap<=0)return 1;e.wrap===2?(Hn(e,O.adler&255),Hn(e,O.adler>>8&255),Hn(e,O.adler>>16&255),Hn(e,O.adler>>24&255),Hn(e,
O.total_in&255),Hn(e,O.total_in>>8&255),Hn(e,O.total_in>>16&255),Hn(e,O.total_in>>24&255)):(K$(e,O.adler>>>16),K$(e,O.adler&65535));Wn(O);e.wrap>0&&(e.wrap=-e.wrap);return e.pending!==0?0:1};
IEs=function(O){if(!(this instanceof IEs))return new IEs(O);O=this.options=V4.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},O||{});O.raw&&O.windowBits>0?O.windowBits=-O.windowBits:O.gzip&&O.windowBits>0&&O.windowBits<16&&(O.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Vxr;this.strm.avail_out=0;var x=this.strm;var e=O.level,l=O.method,C=O.windowBits,Q=O.memLevel,L=O.strategy;if(x){var k=1;e===-1&&(e=6);C<0?(k=0,C=-C):C>15&&
(k=2,C-=16);if(Q<1||Q>9||l!==8||C<8||C>15||e<0||e>9||L<0||L>4)x=mQ(x,-2);else{C===8&&(C=9);var M=new PKW;x.state=M;M.strm=x;M.wrap=k;M.gzhead=null;M.w_bits=C;M.w_size=1<<M.w_bits;M.w_mask=M.w_size-1;M.hash_bits=Q+7;M.hash_size=1<<M.hash_bits;M.hash_mask=M.hash_size-1;M.hash_shift=~~((M.hash_bits+3-1)/3);M.window=new V4.Buf8(M.w_size*2);M.head=new V4.Buf16(M.hash_size);M.prev=new V4.Buf16(M.w_size);M.lit_bufsize=1<<Q+6;M.pending_buf_size=M.lit_bufsize*4;M.pending_buf=new V4.Buf8(M.pending_buf_size);
M.d_buf=M.lit_bufsize;M.l_buf=3*M.lit_bufsize;M.level=e;M.strategy=L;M.method=l;if(x&&x.state){x.total_in=x.total_out=0;x.data_type=2;e=x.state;e.pending=0;e.pending_out=0;e.wrap<0&&(e.wrap=-e.wrap);e.status=e.wrap?42:113;x.adler=e.wrap===2?0:1;e.last_flush=0;if(!pRV){l=Array(16);for(Q=L=0;Q<28;Q++)for(LC8[Q]=L,C=0;C<1<<TO8[Q];C++)p$[L++]=Q;p$[L-1]=Q;for(Q=L=0;Q<16;Q++)for(AUW[Q]=L,C=0;C<1<<kur[Q];C++)RC[L++]=Q;for(L>>=7;Q<30;Q++)for(AUW[Q]=L<<7,C=0;C<1<<kur[Q]-7;C++)RC[256+L++]=Q;for(C=0;C<=15;C++)l[C]=
0;for(C=0;C<=143;)hN[C*2+1]=8,C++,l[8]++;for(;C<=255;)hN[C*2+1]=9,C++,l[9]++;for(;C<=279;)hN[C*2+1]=7,C++,l[7]++;for(;C<=287;)hN[C*2+1]=8,C++,l[8]++;xwW(hN,287,l);for(C=0;C<30;C++)zC[C*2+1]=5,zC[C*2]=O3s(C,5);RrL=new $cr(hN,TO8,257,286,15);Uwr=new $cr(zC,kur,0,30,15);aE8=new $cr([],mw7,0,19,7);pRV=!0}e.l_desc=new iA8(e.dyn_ltree,RrL);e.d_desc=new iA8(e.dyn_dtree,Uwr);e.bl_desc=new iA8(e.bl_tree,aE8);e.bi_buf=0;e.bi_valid=0;ern(e);e=0}else e=mQ(x,-2);e===0&&(x=x.state,x.window_size=2*x.w_size,sY(x.head),
x.max_lazy_match=Bn[x.level].max_lazy,x.good_match=Bn[x.level].good_length,x.nice_match=Bn[x.level].nice_length,x.max_chain_length=Bn[x.level].max_chain,x.strstart=0,x.block_start=0,x.lookahead=0,x.insert=0,x.match_length=x.prev_length=2,x.match_available=0,x.ins_h=0);x=e}}else x=-2;if(x!==0)throw Error(aC[x]);O.header&&(x=this.strm)&&x.state&&x.state.wrap===2&&(x.state.gzhead=O.header);if(O.dictionary){var G;typeof O.dictionary==="string"?G=sFs(O.dictionary):WCn.call(O.dictionary)==="[object ArrayBuffer]"?
G=new Uint8Array(O.dictionary):G=O.dictionary;O=this.strm;Q=G;L=Q.length;if(O&&O.state)if(G=O.state,x=G.wrap,x===2||x===1&&G.status!==42||G.lookahead)x=-2;else{x===1&&(O.adler=Z3L(O.adler,Q,L,0));G.wrap=0;L>=G.w_size&&(x===0&&(sY(G.head),G.strstart=0,G.block_start=0,G.insert=0),e=new V4.Buf8(G.w_size),V4.arraySet(e,Q,L-G.w_size,G.w_size,0),Q=e,L=G.w_size);e=O.avail_in;l=O.next_in;C=O.input;O.avail_in=L;O.next_in=0;O.input=Q;for(n$(G);G.lookahead>=3;){Q=G.strstart;L=G.lookahead-2;do G.ins_h=(G.ins_h<<
G.hash_shift^G.window[Q+3-1])&G.hash_mask,G.prev[Q&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=Q,Q++;while(--L);G.strstart=Q;G.lookahead=2;n$(G)}G.strstart+=G.lookahead;G.block_start=G.strstart;G.insert=G.lookahead;G.lookahead=0;G.match_length=G.prev_length=2;G.match_available=0;O.next_in=l;O.input=C;O.avail_in=e;G.wrap=x;x=0}else x=-2;if(x!==0)throw Error(aC[x]);this._dict_set=!0}};
hrW=function(O,x){x=x||{};x.gzip=!0;x=new IEs(x);x.push(O,!0);if(x.err)throw x.msg||aC[x.err];return x.result};
rUr=function(O,x){var e=zrr();e&&e.publish.call(e,O.toString(),O,x)};
uoi=function(O,x,e){var l=zrr();if(!l)return 0;var C=l.subscribe(O.toString(),function(Q,L){var k=_.i8("ytPubsub2Pubsub2SkipSubKey");k&&k==C||(k=function(){if(H3m[C])try{if(L&&O instanceof KCn&&O!=Q)try{var M=O.dataClass,G=L;if(!G.args||!G.version)throw Error("$c");try{if(!M.version_){var X=new M;M.version_=X.version}var y=M.version_}catch(Z){}if(!y||G.version!=y)throw Error("ad");try{L=Reflect.construct(M,_.Bi(G.args))}catch(Z){throw Z.message="yt.pubsub2.Data.deserialize(): "+Z.message,Z;}}catch(Z){throw Z.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+O.toString()+": "+Z.message,Z;}x.call(e||window,L)}catch(Z){_.jS(Z)}},dwV[O.toString()]?_.i8("yt.scheduler.instance")?_.vn.addLowPriorityJob(k):_.qb(k,0):k())});
H3m[C]=!0;nU8[O.toString()]||(nU8[O.toString()]=[]);nU8[O.toString()].push(C);return C};
fEL=function(){var O=YAn,x=uoi(BO7,function(e){O.apply(void 0,arguments);vUn(x)});
return x};
vUn=function(O){var x=zrr();x&&(typeof O==="number"&&(O=[O]),_.e3(O,function(e){x.unsubscribeByKey(e);delete H3m[e]}))};
zrr=function(){return _.i8("ytPubsub2Pubsub2Instance")};
JUs=function(O,x,e){e=e===void 0?{sampleRate:.1}:e;Math.random()<Math.min(.02,e.sampleRate/100)&&rUr("meta_logging_csi_event",{timerName:O,timelineData:x})};
_.wRs=function(O){return O?(O=O.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.e5(O):null:null};
_.f$=function(O){return O?(O=O.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.aS(O):null:null};
jFs=function(){SAn||(SAn=_.f$(_.wz("WORKER_SERIALIZATION_URL")));return SAn||void 0};
_.gU7=function(){var O=jFs();NOW||O===void 0||(NOW=t5$(O));return NOW};
_.$wN=function(){return typeof Worker==="function"&&jFs()?!0:!1};
_.epi=function(){if(_.$wN()&&!i3i){var O=function(e){e=e.data;if(e.op==="gzippedGelBatch"){var l=OsL.get(e.key);l&&(xQ8(e.gzippedBatch,l.latencyPayload,l.url,l.options,l.sendFn),OsL.delete(e.key))}},x=_.gU7();
x&&(x.addEventListener("message",O),x.onerror=function(){OsL.clear()},i3i=!0)}};
k1L=function(O,x,e,l,C){C=C===void 0?!1:C;var Q={startTime:(0,_.F2)(),ticks:{},infos:{}};if(JN)try{var L=lCw(x);if(L!=null&&(L>CHr||L<QHr))l(O,e);else{if(_.t("gzip_gel_with_worker")&&(_.t("initial_gzip_use_main_thread")&&!bsV||!_.t("initial_gzip_use_main_thread"))){i3i||_.epi();var k=_.gU7();if(k&&!C){OsL.set(Tqi,{latencyPayload:Q,url:O,options:e,sendFn:l});k.postMessage({op:"gelBatchToGzip",serializedBatch:x,key:Tqi});Tqi++;return}}var M=hrW(LSn(x));xQ8(M,Q,O,e,l)}}catch(G){_.OC(G),l(O,e)}else l(O,
e)};
xQ8=function(O,x,e,l,C){bsV=!1;var Q=(0,_.F2)();x.ticks.gelc=Q;wD++;_.t("disable_compression_due_to_performance_degredation")&&Q-x.startTime>=AYr&&(MU$++,_.t("abandon_compression_after_N_slow_zips")?wD===_.yF("compression_disable_point")&&MU$>DQs&&(JN=!1):JN=!1);G1L(x);l.headers||(l.headers={});l.headers["Content-Encoding"]="gzip";l.postBody=O;l.postParams=void 0;C(e,l)};
FSW=function(O){var x=x===void 0?!1:x;var e=e===void 0?!1:e;var l=(0,_.F2)(),C={startTime:l,ticks:{},infos:{}},Q=x?_.i8("yt.logging.gzipForFetch",!1):!0;if(JN&&Q){if(!O.body)return O;try{var L=e?O.body:typeof O.body==="string"?O.body:JSON.stringify(O.body);Q=L;if(!e&&typeof L==="string"){var k=lCw(L);if(k!=null&&(k>CHr||k<QHr))return O;e=x?{level:1}:void 0;Q=hrW(LSn(L),e);var M=(0,_.F2)();C.ticks.gelc=M;if(x){wD++;if((_.t("disable_compression_due_to_performance_degredation")||_.t("disable_compression_due_to_performance_degradation_lr"))&&
M-l>=AYr)if(MU$++,_.t("abandon_compression_after_N_slow_zips")||_.t("abandon_compression_after_N_slow_zips_lr")){x=MU$/wD;var G=DQs/_.yF("compression_disable_point");wD>0&&wD%_.yF("compression_disable_point")===0&&x>=G&&(JN=!1)}else JN=!1;G1L(C)}}O.headers=Object.assign({},{"Content-Encoding":"gzip"},O.headers||{});O.body=Q;return O}catch(X){return _.OC(X),O}}else return O};
lCw=function(O){try{return(new Blob(O.split(""))).size}catch(x){return _.OC(x),null}};
G1L=function(O){_.t("gel_compression_csi_killswitch")||!_.t("log_gel_compression_latency")&&!_.t("log_gel_compression_latency_lr")||JUs("gel_compression",O,{sampleRate:.1})};
XZr=function(){this.blockSize=-1};
SC=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var O=1;O<this.blockSize;++O)this.pad_[O]=0;this.total_=this.inbuf_=0;this.reset()};
yYn=function(O){O=Object.assign({},O);delete O.Authorization;var x=_.oXr();if(x){var e=new SC;e.update(_.wz("INNERTUBE_API_KEY"));e.update(x);O.hash=_.zX(e.digest(),3)}return O};
NB=function(){Zs7||(Zs7=new _.jC("yt.innertube"));return Zs7};
EXr=function(O,x,e,l){if(l)return null;l=NB().get("nextId",!0)||1;var C=NB().get("requests",!0)||{};C[l]={method:O,request:x,authState:yYn(e),requestTime:Math.round((0,_.F2)())};NB().set("nextId",l+1,86400,!0);NB().set("requests",C,86400,!0);return l};
tUr=function(O){var x=NB().get("requests",!0)||{};delete x[O];NB().set("requests",x,86400,!0)};
PHN=function(O){var x=NB().get("requests",!0);if(x){for(var e in x){var l=x[e];if(!(Math.round((0,_.F2)())-l.requestTime<6E4)){var C=l.authState,Q=yYn(_.Nbr(!1));_.HX.equals(C,Q)&&(C=l.request,"requestTimeMs"in C&&(C.requestTimeMs=Math.round((0,_.F2)())),qwV(O,l.method,C,{}));delete x[e]}}NB().set("requests",x,86400,!0)}};
cY$=function(O){var x;return(O=O==null?void 0:(x=O.error)==null?void 0:x.code)&&O>=400&&O<=599?!1:!0};
ICr=function(O){var x;O=O==null?void 0:(x=O.error)==null?void 0:x.code;return!(O!==400&&O!==415)};
pZ8=function(){if(VUL)return VUL();var O={};VUL=GC("LogsDatabaseV2",{objectStores:(O.LogsRequestsStore={addedAtVersion:2},O),shared:!1,upgrade:function(x,e,l){e(2)&&gD(x,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});e(3);e(5)&&(l=l.objectStore("LogsRequestsStore"),l.JSC$10679_wrapped.indexNames.contains("newRequest")&&l.JSC$10679_wrapped.deleteIndex("newRequest"),$C(l,"newRequestV2",["status","interface","timestamp"]));e(7)&&x.JSC$10664_wrapped.objectStoreNames.contains("sapisid")&&x.JSC$10664_wrapped.deleteObjectStore("sapisid");
e(9)&&x.JSC$10664_wrapped.objectStoreNames.contains("SWHealthLog")&&x.JSC$10664_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return VUL()};
ib=function(O){return _.Q4(pZ8(),O)};
UQ$=function(O,x){var e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return e={startTime:(0,_.F2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},L.yield(ib(x),2);if(L.nextAddress!=3)return l=L.yieldResult,C=Object.assign({},O,{options:JSON.parse(JSON.stringify(O.options)),interface:_.wz("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),L.yield(l.put("LogsRequestsStore",C),3);Q=L.yieldResult;e.ticks.tc=(0,_.F2)();Rpw(e);return L.return(Q)})};
aCN=function(O,x){var e,l,C,Q,L,k,M,G,X;return _.A(function(y){if(y.nextAddress==1)return e={startTime:(0,_.F2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},y.yield(ib(x),2);if(y.nextAddress!=3)return l=y.yieldResult,C=_.wz("INNERTUBE_CONTEXT_CLIENT_NAME",0),Q=[O,C,0],L=[O,C,(0,_.F2)()],k=IDBKeyRange.bound(Q,L),M="prev",_.t("use_fifo_for_networkless")&&(M="next"),G=void 0,X=O==="NEW"?"readwrite":"readonly",_.t("use_readonly_for_get_most_recent_by_status_killswitch")&&(X="readwrite"),
y.yield(_.bb(l,["LogsRequestsStore"],{mode:X,enableRetries:!0},function(Z){return _.X2(Z.objectStore("LogsRequestsStore").index("newRequestV2"),{query:k,direction:M},function(E){E.getValue()&&(G=E.getValue(),O==="NEW"&&(G.status="QUEUED",E.update(G)))})}),3);
e.ticks.tc=(0,_.F2)();Rpw(e);return y.return(G)})};
mQL=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1)return l.yield(ib(x),2);e=l.yieldResult;return l.return(_.bb(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(C){var Q=C.objectStore("LogsRequestsStore");return Q.get(O).then(function(L){if(L)return L.status="QUEUED",Q.put(L).then(function(){return L})})}))})};
sHr=function(O,x,e,l){e=e===void 0?!0:e;var C;return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(ib(x),2);C=Q.yieldResult;return Q.return(_.bb(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){var k=L.objectStore("LogsRequestsStore");return k.get(O).then(function(M){return M?(M.status="NEW",e&&(M.sendCount+=1),l!==void 0&&(M.options.compress=l),k.put(M).then(function(){return M})):$c.resolve(void 0)})}))})};
WSm=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1)return l.yield(ib(x),2);e=l.yieldResult;return l.return(e.delete("LogsRequestsStore",O))})};
hpL=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(ib(O),2);x=l.yieldResult;e=(0,_.F2)()-2592E6;return l.yield(_.bb(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(C){return L$(C.objectStore("LogsRequestsStore"),{},function(Q){if(Q.getValue().timestamp<=e)return Q.delete().then(function(){return Q.continue()})})}),0)})};
zpL=function(){_.A(function(O){return O.yield(chL("LogsDatabaseV2"),0)})};
Rpw=function(O){_.t("nwl_csi_killswitch")||JUs("networkless_performance",O,{sampleRate:1})};
_.Hsr=function(O){return _.Q4(rY7(),O)};
KSn=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(_.Hsr(O),2);x=l.yieldResult;e=(0,_.F2)()-2592E6;return l.yield(_.bb(x,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(C){return L$(C.objectStore("SWHealthLog"),{},function(Q){if(Q.getValue().timestamp<=e)return Q.delete().then(function(){return Q.continue()})})}),0)})};
dQi=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(_.Hsr(O),2);x=e.yieldResult;return e.yield(x.clear("SWHealthLog"),0)})};
_.On=function(O,x,e,l,C,Q,L){C=C===void 0?"":C;Q=Q===void 0?!1:Q;L=L===void 0?!1:L;if(O)if(e&&!S3("cobalt"))_.OC(new _.ry("Legacy referrer-scrubbed ping detected")),O&&nXm(O,void 0,{scrubReferrer:!0});else if(C)Dgm(O,x,"POST",C,l);else if(_.wz("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||l||L)Dgm(O,x,"GET","",l,void 0,Q,L);else{b:{try{c:{var k=new u9w({url:O});if(k.urlParamValues_.dsh==="1")var M=null;else{var G=k.urlParamValues_.ae;if(G==="1"){var X=k.urlParamValues_.adurl;if(X)try{M={version:3,directUrl:decodeURIComponent(X),
asyncUrl:Y0w(k.JSC$9471_url_,"act=1","ri=1",Yw$(k))};break c}catch(P){}}M=G==="2"?{version:4,directUrl:Y0w(k.JSC$9471_url_,"dct=1","suid="+k.suid_,""),asyncUrl:Y0w(k.JSC$9471_url_,"act=1","ri=1","suid="+k.suid_)}:null}}if(M){var y=_.VF(O);var Z=!(!y||!y.endsWith("/aclk")||_.iP(O,"ri")!=="1");break b}}catch(P){}Z=!1}if(Z){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(O,"")){var E=!0;break b}}catch(P){}E=!1}E?(x&&x(),e=!0):e=!1}else e=!1;e||nXm(O,x)}};
nXm=function(O,x,e){e=e===void 0?{}:e;var l=new Image,C=""+Bq7++;vXN[C]=l;l.onload=l.onerror=function(){x&&vXN[C]&&x();delete vXN[C]};
e.scrubReferrer&&(l.referrerPolicy="no-referrer");l.src=O};
xb=function(O,x){fC8(O,x==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
JYr=function(O){var x;return((x=document.featurePolicy)==null?0:x.allowedFeatures().includes("attribution-reporting"))?O+"&nis=6":O+"&nis=5"};
wZm=function(O){if(!O)return!1;try{var x;if(((x=_.lu(O))==null?void 0:x.asm)==="4")return!0}catch(e){_.jS(e)}return!1};
fC8=function(O,x){x?(O=JYr(O),_.On(O,void 0,void 0,void 0,"",!0,!0)):_.On(O)};
jHL=function(){Swr||(Swr=new _.jC("yt.offline"));return Swr};
Nqm=function(O){if(_.t("offline_error_handling")){var x=jHL().get("errors",!0)||{};x[O.message]={name:O.name,stack:O.stack};O.level&&(x[O.message].level=O.level);jHL().set("errors",x,2592E3,!0)}};
$Qr=function(O,x,e,l){l=l===void 0?!1:l;x=_.t("web_fp_via_jspb")?Object.assign({},x):x;_.t("use_cfr_monitor")&&gXw(O,x);if(_.t("use_request_time_ms_header"))x.headers&&Aq(O)&&(x.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.F2)())));else{var C;if((C=x.postParams)==null?0:C.requestTimeMs)x.postParams.requestTimeMs=Math.round((0,_.F2)())}e&&Object.keys(x).length===0?_.On(O):x.compress?x.postBody?(typeof x.postBody!=="string"&&(x.postBody=JSON.stringify(x.postBody)),k1L(O,x.postBody,
x,_.pb,l)):k1L(O,JSON.stringify(x.postParams),x,oms,l):_.pb(O,x)};
isi=function(O,x){_.t("use_event_time_ms_header")&&Aq(O)&&(x.headers||(x.headers={}),x.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.F2)())));return x};
_.xjN=function(){O_7||(O_7=new _.eb({logOfflineErrors:!0,enablePolling:!0}));return O_7};
gXw=function(O,x){var e=x.onError?x.onError:function(){};
x.onError=function(C,Q){lU().requestComplete(O,!1);e(C,Q)};
var l=x.onSuccess?x.onSuccess:function(){};
x.onSuccess=function(C,Q){lU().requestComplete(O,!0);l(C,Q)}};
_.e9V=function(){return _.Lb(document.location.toString())!=="www.youtube-nocookie.com"};
_.Ql8=function(){return _.i8("ytNetworklessLoggingInitializationOptions")?_.laL.isNwlInitialized:_.CVi};
b_m=function(O,x){if(_.t("polymer_on_demand_shady_dom")){var e;var l=(e=O.__shady_native_firstElementChild)!=null?e:O.firstElementChild}else l=O.firstElementChild;for(;l;){if(O=x(l)?l:b_m(l,x))return O;l=l.nextElementSibling}return null};
Lew=function(){var O=document;if("visibilityState"in O)return O.visibilityState;var x=TPw+"VisibilityState";if(x in O)return O[x]};
_.kO$=function(O,x){var e;Ct(O,function(l){e=x[l];return!!e});
return e};
_.bU=function(O){var x=ABr(O);x?x.focus(void 0):_.QQ(O)};
ABr=function(O){return(O=b_m(O,function(x){return _.Tl(x)?Mf$(x)&&!!x.offsetParent:!1}))?O:null};
_.QQ=function(O,x){O.hasAttribute("tabindex")||O.setAttribute("tabindex","-1");O.focus(x)};
DjW=function(O,x,e,l){l=l===void 0?{}:l;O.addEventListener&&(x!="mouseenter"||"onmouseenter"in document?x!="mouseleave"||"onmouseenter"in document?x=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(x="MozMousePixelScroll"):x="mouseout":x="mouseover");return _.HX.findKey(Lt,function(C){var Q=typeof C[4]==="boolean"&&C[4]==!!l,L=_.w7(C[4])&&_.w7(l)&&_.HX.equals(C[4],l);return!!C.length&&C[0]==O&&C[1]==x&&C[2]==e&&(Q||L)})};
_.AG=function(O,x,e,l){l=l===void 0?{}:l;if(!O||!O.addEventListener&&!O.attachEvent)return"";var C=DjW(O,x,e,l);if(C)return C;C=++GOr.count+"";var Q=!(x!="mouseenter"&&x!="mouseleave"||!O.addEventListener||"onmouseenter"in document);var L=Q?function(k){k=new kb(k);if(!_.fu(k.relatedTarget,function(M){return M==O},!0))return k.currentTarget=O,k.type=x,e.call(O,k)}:function(k){k=new kb(k);
k.currentTarget=O;return e.call(O,k)};
L=_.$K(L);O.addEventListener?(x=="mouseenter"&&Q?x="mouseover":x=="mouseleave"&&Q?x="mouseout":x=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(x="MozMousePixelScroll"),Fer()||typeof l==="boolean"?O.addEventListener(x,L,l):O.addEventListener(x,L,!!l.capture)):O.attachEvent("on"+x,L);Lt[C]=[O,x,e,L,l];return C};
_.o0L=function(O,x,e){var l=l===void 0?{}:l;var C=_.AG(O,x,function(){_.Xs$(C);e.apply(O,arguments)},l)};
_.Xs$=function(O){O&&(typeof O=="string"&&(O=[O]),_.e3(O,function(x){if(x in Lt){var e=Lt[x],l=e[0],C=e[1],Q=e[3];e=e[4];l.removeEventListener?Fer()||typeof e==="boolean"?l.removeEventListener(C,Q,e):l.removeEventListener(C,Q,!!e.capture):l.detachEvent&&l.detachEvent("on"+C,Q);delete Lt[x]}}))};
Mu=function(O){this.callback_=O;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(O=0;O<4;O++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.AG(window,"mousemove",(0,_.z8)(this.onMouseMove_,this));this.timerId_=_.cK((0,_.z8)(this.checkPosition_,this),25)};
E0r=function(){var O={};var x=O.preferMobileEvents===void 0?!1:O.preferMobileEvents;O=O.enableScrollEventListener===void 0?!0:O.enableScrollEventListener;if(_.i8("_lact",window)==null){var e=parseInt(_.wz("LACT"),10);e=isFinite(e)?Date.now()-Math.max(e,0):-1;_.MB("_lact",e,window);_.MB("_fact",e,window);e==-1&&_.DP();yBN(window,x,O);new Mu(function(){Z_m("mouse",100)})}};
yBN=function(O,x,e){x=x===void 0?!1:x;e=e===void 0?!0:e;_.AG(O.document,"keydown",_.DP);_.AG(O.document,"keyup",_.DP);_.AG(O.document,"mousedown",_.DP);_.AG(O.document,"mouseup",_.DP);x?_.AG(O,"touchmove",function(){Z_m("touchmove",200)},{passive:!0}):(_.AG(O,"resize",function(){Z_m("resize",200)}),e&&_.AG(O,"scroll",function(){Z_m("scroll",200)}));
_.AG(O.document,"touchstart",_.DP,{passive:!0});_.AG(O.document,"touchend",_.DP,{passive:!0})};
Z_m=function(O,x){tf$[O]||(tf$[O]=!0,_.vn.addLowPriorityJob(function(){_.DP();tf$[O]=!1},x))};
_.DP=function(){_.i8("_lact",window)==null&&E0r();var O=Date.now();_.MB("_lact",O,window);_.i8("_fact",window)==-1&&_.MB("_fact",O,window);(O=_.i8("ytglobal.ytUtilActivityCallback_"))&&O()};
_.Gl=function(){var O=_.i8("_lact",window);return O==null?-1:Math.max(Date.now()-O,0)};
_.yQ=function(O,x,e){var l=_.FD();if(l&&x){var C=l.subscribe(O,function(){var Q=arguments,L=function(){XD[C]&&x.apply&&typeof x.apply=="function"&&x.apply(e||window,Q)};
try{_.qxr[O]?L():_.qb(L,0)}catch(k){_.jS(k)}},e);
XD[C]=!0;of[O]||(of[O]=[]);of[O].push(C);return C}return 0};
_.PV8=function(O){var x=_.FD();x&&(typeof O==="number"?O=[O]:typeof O==="string"&&(O=[parseInt(O,10)]),_.e3(O,function(e){x.unsubscribeByKey(e);delete XD[e]}))};
_.cB$=function(O,x){var e=_.FD();e&&e.publish.apply(e,arguments)};
_.VfL=function(O){var x=_.FD();if(x)if(x.clear(O),O)IaW(O);else for(var e in of)IaW(e)};
_.FD=function(){return _.CV.ytPubsubPubsubInstance};
IaW=function(O){of[O]&&(O=of[O],_.e3(O,function(x){XD[x]&&delete XD[x]}),O.length=0)};
ps7=function(){var O,x;return"h5vcc"in En&&((O=En.h5vcc.traceEvent)==null?0:O.traceBegin)&&((x=En.h5vcc.traceEvent)==null?0:x.traceEnd)?1:"performance"in En&&En.performance.mark&&En.performance.measure?2:0};
R9V=function(O){var x=ps7();switch(x){case 1:En.h5vcc.traceEvent.traceBegin("YTLR",O);break;case 2:En.performance.mark(O+"-start");break;case 0:break;default:_.vd(x,"unknown trace type")}};
Uj8=function(O){var x=ps7();switch(x){case 1:En.h5vcc.traceEvent.traceEnd("YTLR",O);break;case 2:x=O+"-start";var e=O+"-end";En.performance.mark(e);En.performance.measure(O,x,e);break;case 0:break;default:_.vd(x,"unknown trace type")}};
aar=function(O){var x,e;(e=(x=window).onerror)==null||e.call(x,O.message,"",0,0,O)};
mjV=function(O){if(_.t("web_lifecycle_error_handling_killswitch"))return O();try{return O()}catch(x){aar(x)}};
slW=function(O){return[O.auth===void 0?"undefined":O.auth,O.isJspb===void 0?"undefined":O.isJspb,O.cttAuthInfo===void 0?"undefined":O.cttAuthInfo,O.tier===void 0?"undefined":O.tier].join("/")};
_.q=function(O,x){if(O)return O[x.name]};
qu=function(){var O=_.i8("yt.logging.ims");O||(O=new tG,_.MB("yt.logging.ims",O));return O};
uvs=function(O,x){if(O.endpoint==="log_event"){Wen(O);var e=h9W(O),l=z9r(O.payload)||"",C=rB7(l),Q=200;if(C){if(C.enabled===!1&&!_.t("web_payload_policy_disabled_killswitch"))return;Q=H_w(C.tier);if(Q===400){Kem(O,x);return}}PH[e]=!0;e={cttAuthInfo:e,isJspb:!1,tier:Q};qu().storePayload(e,O.payload);dj7(x,!1,e,n0r(l))}};
BPL=function(O,x,e){if(x.endpoint==="log_event"){Wen(void 0,x);var l=h9W(x,!0),C=rB7(O),Q=200;if(C){if(C.enabled===!1&&!_.t("web_payload_policy_disabled_killswitch"))return;Q=H_w(C.tier);if(Q===400){Yx7(O,x,e);return}}PH[l]=!0;l={cttAuthInfo:l,isJspb:!0,tier:Q};qu().storePayload(l,dL(x.payload));dj7(e,!0,l,n0r(O))}};
dj7=function(O,x,e,l){x=x===void 0?!1:x;l=l===void 0?!1:l;O&&(cH=new O);O=_.yF("tvhtml5_logging_max_batch_ads_fork")||_.yF("tvhtml5_logging_max_batch")||_.yF("web_logging_max_batch")||100;var C=(0,_.F2)(),Q=v0n(x,e.tier),L=Q.lastDebounceQueueFromLogTimeMs;l&&(Q.useVideoStatsEndPoint=!0);l=0;e&&(l=qu().getSequenceCount(e));var k=function(){faL({writeThenSend:!0},x,e.tier)};
l>=1E3?k():l>=O?JBV||(JBV=wsL(function(){k();JBV=void 0},0)):C-L>=10&&(Sx$(x,e.tier),Q.lastDebounceQueueFromLogTimeMs=C)};
Kem=function(O,x){if(O.endpoint==="log_event"){_.t("more_accurate_gel_parser")&&qu().storePayload({isJspb:!1},O.payload);Wen(O);var e=h9W(O),l=new Map;l.set(e,[O.payload]);var C=z9r(O.payload)||"";x&&(cH=new x);return new _.If(function(Q,L){cH&&cH.isReady()?jlV(l,cH,Q,L,{bypassNetworkless:!0},!0,n0r(C)):Q()})}};
Yx7=function(O,x,e){if(x.endpoint==="log_event"){Wen(void 0,x);var l=h9W(x,!0),C=new Map;C.set(l,[dL(x.payload)]);e&&(cH=new e);return new _.If(function(Q){cH&&cH.isReady()?NPW(C,cH,Q,{bypassNetworkless:!0},!0,n0r(O)):Q()})}};
h9W=function(O,x){var e="";if(O.dangerousLogToVisitorSession)e="visitorOnlyApprovedKey";else if(O.cttAuthInfo){if(x===void 0?0:x){x=O.cttAuthInfo.token;e=O.cttAuthInfo;var l=new g0r;e.videoId?l.setVideoId(e.videoId):e.playlistId&&VQ(l,2,$ji,te(e.playlistId));i_r[x]=l}else x=O.cttAuthInfo,e={},x.videoId?e.videoId=x.videoId:x.playlistId&&(e.playlistId=x.playlistId),O7n[O.cttAuthInfo.token]=e;e=O.cttAuthInfo.token}return e};
faL=function(O,x,e){O=O===void 0?{}:O;x=x===void 0?!1:x;new _.If(function(l,C){var Q=v0n(x,e),L=Q.useVideoStatsEndPoint;Q.useVideoStatsEndPoint=!1;x57(Q.queueTimer);x57(Q.queueMaxTimer);Q.queueMaxTimer=0;cH&&cH.isReady()?e===void 0&&_.t("enable_web_tiered_gel")?eP$(l,C,O,x,300,L):eP$(l,C,O,x,e,L):(Sx$(x,e),l())})};
eP$=function(O,x,e,l,C,Q){var L=cH;e=e===void 0?{}:e;l=l===void 0?!1:l;C=C===void 0?200:C;Q=Q===void 0?!1:Q;var k=new Map,M=new Map,G={isJspb:l,cttAuthInfo:void 0,tier:C},X={isJspb:l,cttAuthInfo:void 0};if(l){x=_.T(Object.keys(PH));for(C=x.next();!C.done;C=x.next())C=C.value,M=_.t("enable_web_tiered_gel")?qu().smartExtractMatchingEntries({keys:[G,X],sizeLimit:1E3}):qu().extractMatchingEntries({isJspb:!0,cttAuthInfo:C}),M.length>0&&k.set(C,M),(_.t("web_fp_via_jspb_and_json")&&e.writeThenSend||!_.t("web_fp_via_jspb_and_json"))&&
delete PH[C];NPW(k,L,O,e,!1,Q)}else{k=_.T(Object.keys(PH));for(G=k.next();!G.done;G=k.next())G=G.value,X=_.t("enable_web_tiered_gel")?qu().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:G,tier:C},{isJspb:!1,cttAuthInfo:G}],sizeLimit:1E3}):qu().extractMatchingEntries({isJspb:!1,cttAuthInfo:G}),X.length>0&&M.set(G,X),(_.t("web_fp_via_jspb_and_json")&&e.writeThenSend||!_.t("web_fp_via_jspb_and_json"))&&delete PH[G];jlV(M,L,O,x,e,!1,Q)}};
Sx$=function(O,x){O=O===void 0?!1:O;x=x===void 0?200:x;var e=function(){faL({writeThenSend:!0},O,x)},l=v0n(O,x),C=l===ll7||l===Ckr?5E3:Q2L;
_.t("web_gel_timeout_cap")&&!l.queueMaxTimer&&(C=wsL(function(){e()},C),l.queueMaxTimer=C);
x57(l.queueTimer);C=_.wz("LOGGING_BATCH_TIMEOUT",_.yF("web_gel_debounce_ms",1E4));_.t("shorten_initial_gel_batch_timeout")&&b7$&&(C=TS8);C=wsL(function(){_.yF("gel_min_batch_size")>0?qu().getSequenceCount({cttAuthInfo:void 0,isJspb:O,tier:x})>=Lun&&e():e()},C);
l.queueTimer=C};
jlV=function(O,x,e,l,C,Q,L){C=C===void 0?{}:C;var k=Math.round((0,_.F2)()),M=O.size,G=k77(L);O=_.T(O);var X=O.next();for(L={};!X.done;L={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},X=O.next()){var y=_.T(X.value);X=y.next().value;y=y.next().value;L.batchRequest=_.HX.unsafeClone({context:_.uxm(x.config_||_.oC())});if(!_.vi(y)&&!_.t("throw_err_when_logevent_malformed_killswitch")){l();break}L.batchRequest.events=y;
(y=O7n[X])&&AIs(L.batchRequest,X,y);delete O7n[X];L.dangerousLogToVisitorSession=X==="visitorOnlyApprovedKey";Mew(L.batchRequest,k,L.dangerousLogToVisitorSession);D5w(C);L.onSuccess$jscomp$3=function(Z){_.t("start_client_gcf")&&_.vn.addLowPriorityJob(function(){return _.A(function(E){return E.yield(G7w(Z),0)})});
M--;M||e()};
L.networkFailures=0;L.onError$jscomp$5=function(Z){return function(){Z.networkFailures++;if(C.bypassNetworkless&&Z.networkFailures===1)try{qwV(x,G,Z.batchRequest,Fus({writeThenSend:!0},Z.dangerousLogToVisitorSession,Z.onSuccess$jscomp$3,Z.onError$jscomp$5,Q)),b7$=!1}catch(E){_.jS(E),l()}M--;M||e()}}(L);
try{qwV(x,G,L.batchRequest,Fus(C,L.dangerousLogToVisitorSession,L.onSuccess$jscomp$3,L.onError$jscomp$5,Q)),b7$=!1}catch(Z){_.jS(Z),l()}}};
NPW=function(O,x,e,l,C,Q){l=l===void 0?{}:l;var L=Math.round((0,_.F2)()),k={value:O.size},M=new Map([].concat(_.Kx(O)));M=_.T(M);for(var G=M.next();!G.done;G=M.next()){var X=_.T(G.value).next().value,y=O.get(X);G=new XeN;var Z=x.config_||_.oC(),E=new pt,P=new ozs;_.mO(P,1,Z.innertubeContextHostLanguage);_.mO(P,2,Z.innertubeContextGeoLocation);_.ZG(P,16,Z.innertubeContextClientNameFieldNumber);_.mO(P,17,Z.innertubeContextClientVersion);if(Z.innertubeContextClientConfigInfo){var U=Z.innertubeContextClientConfigInfo,
W=new tN;U.coldConfigData&&_.mO(W,1,U.coldConfigData);U.appInstallData&&_.mO(W,6,U.appInstallData);U.coldHashData&&_.mO(W,3,U.coldHashData);U.hotHashData&&W.setHotHashData(U.hotHashData);_.IS(P,62,W)}(U=_.CV.devicePixelRatio)&&U!=1&&_.EY(P,65,_.wN(U));U=l2N();U!==""&&_.mO(P,54,U);U=C_n();if(U.length>0){W=new yI7;for(var z=0;z<U.length;z++){var r=new Rf;r.setKey(U[z].key);VQ(r,2,Z7w,te(U[z].value));Un(W,15,Rf,r)}_.IS(E,5,W)}z1V(Z,P);rhs(E);HAV(P);KWw(Z,P);dcV(P);_.t("start_client_gcf")&&nE8(P);_.wz("DELEGATED_SESSION_ID")&&
!_.t("pageid_as_header_web")&&(Z=new af,_.mO(Z,3,_.wz("DELEGATED_SESSION_ID")));!_.t("fill_delegate_context_in_gel_killswitch")&&(U=_.wz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W=_.y4(E,af,3)||new af,Z=E,U=_.mO(W,18,U),_.IS(Z,3,U));Z=P;U=_.T(Object.entries(_.lu(_.wz("DEVICE",""))));for(W=U.next();!W.done;W=U.next())z=_.T(W.value),W=z.next().value,z=z.next().value,W==="cbrand"?_.mO(Z,12,z):W==="cmodel"?_.mO(Z,13,z):W==="cbr"?_.mO(Z,87,z):W==="cbrver"?_.mO(Z,88,z):W==="cos"?_.mO(Z,18,
z):W==="cosver"?_.mO(Z,19,z):W==="cplatform"&&_.ZG(Z,42,hhr(z));E.setClient(P);_.IS(G,1,E);if(P=i_r[X])a:{if(_.pf(P,mv(P,$ji,1)))E=1;else if(P.getPlaylistId())E=2;else break a;_.IS(G,4,P);P=G.getContext()||new pt;Z=_.y4(P,af,3)||new af;U=new sn;U.setToken(X);_.ZG(U,1,E);Un(Z,12,sn,U);_.IS(P,3,Z)}delete i_r[X];X=X==="visitorOnlyApprovedKey";EzL()||_.WH(G,2,L);!X&&(E=_.wz("EVENT_ID"))&&(P=tei(),Z=new q1w,_.mO(Z,1,E),_.WH(Z,2,P),_.IS(G,5,Z));D5w(l);if(_.t("jspb_serialize_with_worker")&&(E=_.gU7())&&
l.writeThenSend){_.Pkm.set(cIN,{client:x,resolve:e,networklessOptions:l,isIsolated:C,useVSSEndpoint:Q,dangerousLogToVisitorSession:X,requestsOutstanding:k});E.postMessage({op:"gelBatchToSerialize",batchRequest:dL(G),clientEvents:y,key:cIN});cIN++;break}if(y){E=[];for(P=0;P<y.length;P++)try{E.push(new hG(y[P]))}catch(f){_.jS(new _.ry("Transport failed to deserialize "+String(y[P])))}y=E}else y=[];y=_.T(y);for(E=y.next();!E.done;E=y.next())Un(G,3,hG,E.value);y={startTime:(0,_.F2)(),ticks:{},infos:{}};
G=G.serialize();y.ticks.geljspc=(0,_.F2)();_.t("log_jspb_serialize_latency")&&JUs("gel_jspb_serialize",y,{sampleRate:.1});_.IlN(G,x,e,l,C,Q,X,k)}};
_.IlN=function(O,x,e,l,C,Q,L,k){l=l===void 0?{}:l;k=k===void 0?{value:0}:k;Q=k77(Q);l=Fus(l,L,function(M){_.t("start_client_gcf")&&_.vn.addLowPriorityJob(function(){return _.A(function(G){return G.yield(G7w(M),0)})});
k.value--;k.value||e()},function(){k.value--;
k.value||e()},C);
l.headers["Content-Type"]="application/json+protobuf";l.postBodyFormat="JSPB";l.postBody=O;qwV(x,Q,"",l);b7$=!1};
D5w=function(O){_.t("always_send_and_write")&&(O.writeThenSend=!1)};
Fus=function(O,x,e,l,C){O={retry:!0,onSuccess:e,onError:l,networklessOptions:O,dangerousLogToVisitorSession:x,bypassMonitoring:!!C,headers:{},postBodyFormat:"",postBody:"",compress:_.t("compress_gel")||_.t("compress_gel_lr")};EzL()&&(O.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.F2)())));return O};
Mew=function(O,x,e){EzL()||(O.requestTimeMs=String(x));_.t("unsplit_gel_payloads_in_logs")&&(O.unsplitGelPayloadsInLogs=!0);!e&&(x=_.wz("EVENT_ID"))&&(e=tei(),O.serializedClientEventId={serializedEventId:x,clientCounter:String(e)})};
tei=function(){var O=_.wz("BATCH_CLIENT_COUNTER")||0;O||(O=Math.floor(Math.random()*65535/2));O++;O>65535&&(O=1);_.JZ("BATCH_CLIENT_COUNTER",O);return O};
AIs=function(O,x,e){if(e.videoId)var l="VIDEO";else if(e.playlistId)l="PLAYLIST";else return;O.credentialTransferTokenTargetId=e;O.context=O.context||{};O.context.user=O.context.user||{};O.context.user.credentialTransferTokens=[{token:x,scope:l}]};
Wen=function(O,x){var e=_.Z0("il_payload_scraping")==="enable_il_payload_scraping";if(!_.i8("yt.logging.transport.enableScrapingForTest"))if(e)Ve8=[],_.MB("yt.logging.transport.enableScrapingForTest",!0),_.MB("yt.logging.transport.scrapedPayloadsForTesting",Ve8),_.MB("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.MB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.MB("yt.logging.transport.scrapeClientEvent",!0);else return;e=_.i8("yt.logging.transport.scrapedPayloadsForTesting");var l=_.i8("yt.logging.transport.payloadToScrape");x&&(x=_.i8("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(x.payload)())&&e.push(x);x=_.i8("yt.logging.transport.scrapeClientEvent");if(l&&l.length>=1)for(var C=0;C<l.length;C++)if(O&&O.payload[l[C]])if(x)e.push(O.payload);else{var Q=void 0;e.push(((Q=O)==null?void 0:Q.payload)[l[C]])}_.MB("yt.logging.transport.scrapedPayloadsForTesting",
e)};
EzL=function(){return _.t("use_request_time_ms_header")||_.t("lr_use_request_time_ms_header")};
wsL=function(O,x){return _.t("transport_use_scheduler")===!1?_.qb(O,x):_.t("logging_avoid_blocking_during_navigation")||_.t("lr_logging_avoid_blocking_during_navigation")?_.zl(_.vn,function(){if(_.pew().currentState==="none")O();else{var e={};_.pew().install((e.none={callback:O},e))}},x):_.zl(_.vn,O,x)};
x57=function(O){_.t("transport_use_scheduler")?_.vn.cancelJob(O):_.IO(O)};
G7w=function(O){var x,e,l,C,Q,L,k,M,G,X;return _.A(function(y){return y.nextAddress==1?(l=(x=O)==null?void 0:(e=x.responseContext)==null?void 0:e.globalConfigGroup,C=_.q(l,RPL),L=(Q=l)==null?void 0:Q.hotHashData,k=_.q(l,U5i),G=(M=l)==null?void 0:M.coldHashData,(X=_.GG().resolve(_.D0(rl)))?L?C?y.yield(alr(X,L,C),2):y.yield(alr(X,L),2):y.jumpTo(2):y.return()):G?k?y.yield(m5N(X,G,k),0):y.yield(m5N(X,G),0):y.jumpTo(0)})};
v0n=function(O,x){x=x===void 0?200:x;return O?x===300?ll7:s28:x===300?Ckr:Wui};
rB7=function(O){if(_.t("enable_web_tiered_gel")){O=hPN[O||""];var x,e,l,C=_.GG().resolve(_.D0(rl))==null?void 0:(x=HH())==null?void 0:(e=x.loggingHotConfig)==null?void 0:(l=e.eventLoggingConfig)==null?void 0:l.payloadPolicies;if(C)for(x=0;x<C.length;x++)if(C[x].payloadNumber===O)return C[x]}};
z9r=function(O){O=Object.keys(O);O=_.T(O);for(var x=O.next();!x.done;x=O.next())if(x=x.value,hPN[x])return x};
H_w=function(O){switch(O){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}};
n0r=function(O){return O==="gelDebuggingEvent"};
k77=function(O){return(O===void 0?0:O)&&_.t("vss_through_gel_video_stats")?"video_stats":"log_event"};
dl=function(O,x,e,l){l=l===void 0?{}:l;var C={},Q=Math.round(l.timestamp||(0,_.F2)());C.eventTimeMs=Q<Number.MAX_SAFE_INTEGER?Q:0;C[O]=x;O=_.Gl();C.context={lastActivityMs:String(l.timestamp||!isFinite(O)?-1:O)};l.sequenceGroup&&!_.t("web_gel_sequence_info_killswitch")&&(O=C.context,x=l.sequenceGroup,x={index:zPw(x),groupKey:x},O.sequence=x,l.endOfSequence&&delete Kt[l.sequenceGroup]);_.t("web_tag_automated_log_events")&&(C.context.automatedLogEventSource=l.automatedLogEventSource);(l.sendIsolatedPayload?
Kem:uvs)({endpoint:"log_event",payload:C,cttAuthInfo:l.cttAuthInfo,dangerousLogToVisitorSession:l.dangerousLogToVisitorSession},e)};
zPw=function(O){Kt[O]=O in Kt?Kt[O]+1:0;return Kt[O]};
_.uU=function(O,x,e){e=e===void 0?{}:e;var l=nt;_.SS("ytLoggingEventsDefaultDisabled",!1)&&nt===nt&&(l=null);dl(O,x,l,e)};
_.Yb=function(){if(_.t("web_fp_via_jspb")){var O=!0;O=O===void 0?!1:O;var x=rIn;rIn=[];if(x){x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,O?dl(e.payloadName,e.payload,nt,e.options):_.uU(e.payloadName,e.payload,e.options)}faL(void 0,!0);if(!_.t("web_fp_via_jspb_and_json"))return}faL(void 0,!1)};
H7N=function(O,x){var e;if((e=x)==null?0:e.componentStack)return x;if(O=O.componentStack)x||(x={}),x.componentStack=O;return x};
KuN=function(){_.e3(_.wz("ERRORS")||[],function(O){_.BH.apply(null,O)});
_.JZ("ERRORS",[])};
_.vH=function(O){_.BH(O)};
_.ft=function(O){_.BH(O,"WARNING")};
d58=function(O){O instanceof Error?_.BH(O):(O=_.w7(O)?JSON.stringify(O):String(O),O=new _.ry(O),O.name="RejectedPromiseError",_.ft(O))};
nzr=function(O,x,e,l,C,Q){x=x===void 0?"Unknown file":x;e=e===void 0?0:e;var L=!1,k=rs8("log_window_onerror_fraction");if(k&&Math.random()<k)L=!0;else{k=document.getElementsByTagName("script");for(var M=0,G=k.length;M<G;M++)if(k[M].src.indexOf("/debug-")>0){L=!0;break}}L&&(L=!1,C?L=!0:(typeof O==="string"?k=O:ErrorEvent&&O instanceof ErrorEvent?(L=!0,k=O.message,x=O.filename,e=O.lineno,l=O.colno):(k="Unknown error",x="Unknown file",e=0),C=new _.ry(k),C.name="UnhandledWindowError",C.message=k,C.fileName=
x,C.lineNumber=e,isNaN(l)?delete C.columnNumber:C.columnNumber=l),_.t("wiz_enable_component_stack_propagation_killswitch")||(Q=H7N(C,Q)),Q&&_.JG(C,Q),L?_.BH(C):_.ft(C))};
_.BH=function(O,x,e,l,C,Q,L,k){Q=Q===void 0?{}:Q;Q.name=e||_.wz("INNERTUBE_CONTEXT_CLIENT_NAME",1);Q.version=l||_.wz("INNERTUBE_CONTEXT_CLIENT_VERSION");e=Q;x=x===void 0?"ERROR":x;L=L===void 0?!1:L;x=x===void 0?"ERROR":x;L=L===void 0?!1:L;if(O&&(O.hasOwnProperty("level")&&O.level&&(x=O.level),_.t("console_log_js_exceptions")&&(l=[],l.push("Name: "+O.name),l.push("Message: "+O.message),O.hasOwnProperty("params")&&l.push("Error Params: "+JSON.stringify(O.params)),O.hasOwnProperty("args")&&l.push("Error args: "+
JSON.stringify(O.args)),l.push("File name: "+O.fileName),l.push("Stacktrace: "+O.stack),l=l.join("\n"),window.console.log(l,O)),!(unw>=5))){l=[];C=_.T(Y1w);for(Q=C.next();!Q.done;Q=C.next()){Q=Q.value;try{Q()&&l.push(Q())}catch(W){}}l=[].concat(_.Kx(BSn),_.Kx(l));var M=vzr(O);C=M.message||"Unknown Error";Q=M.name||"UnknownError";var G=M.stack||O.stacktrace||"Not available";if(G.startsWith(Q+": "+C)){var X=G.split("\n");X.shift();G=X.join("\n")}X=M.lineNumber||"Not available";M=M.fileName||"Not available";
var y=0;if(O.hasOwnProperty("args")&&O.args&&O.args.length)for(var Z=0;Z<O.args.length&&!(y=WRr(O.args[Z],"params."+Z,e,y),y>=500);Z++);else if(O.hasOwnProperty("params")&&O.params){var E=O.params;if(typeof O.params==="object")for(Z in E){if(E[Z]){var P="params."+Z,U=aO(E[Z]);e[P]=U;y+=P.length+U.length;if(y>500)break}}else e.params=aO(E)}if(l.length)for(Z=0;Z<l.length&&!(y=WRr(l[Z],"params.context."+Z,e,y),y>=500);Z++);navigator.vendor&&!e.hasOwnProperty("vendor")&&(e["device.vendor"]=navigator.vendor);
Z={message:C,name:Q,lineNumber:X,fileName:M,stack:G,params:e,sampleWeight:1};e=Number(O.columnNumber);isNaN(e)||(Z.lineNumber=Z.lineNumber+":"+e);if(O.level==="IGNORED")O=0;else a:{O=flN();e=_.T(O.messageWeights);for(l=e.next();!l.done;l=e.next())if(l=l.value,Z.message&&Z.message.match(l.messageRegExp)){O=l.weight;break a}O=_.T(O.callbackWeights);for(e=O.next();!e.done;e=O.next())if(e=e.value,e.callback(Z)){O=e.weight;break a}O=1}Z.sampleWeight=O;O=_.T(JIr);for(e=O.next();!e.done;e=O.next())if(e=
e.value,e.patternsForType[Z.name])for(C=_.T(e.patternsForType[Z.name]),l=C.next();!l.done;l=C.next())if(Q=l.value,l=Z.message.match(Q.regexp)){Z.params["params.error.original"]=l[0];C=Q.groups;Q={};for(X=0;X<C.length;X++)Q[C[X]]=l[X+1],Z.params["params.error."+C[X]]=l[X+1];Z.message=e.messageFn(Q);break}Z.params||(Z.params={});O=flN();Z.params["params.errorServiceSignature"]="msg="+O.messageWeights.length+"&cb="+O.callbackWeights.length;Z.params["params.serviceWorker"]="false";_.CV.document&&_.CV.document.querySelectorAll&&
(Z.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new wl(wew,"sample")).constructor!==wl&&(Z.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Z);if(Z.sampleWeight!==0&&!S1s.has(Z.message)){if(L&&_.t("web_enable_error_204"))j2i(x===void 0?"ERROR":x,Z);else{x=x===void 0?"ERROR":x;x==="ERROR"?(NSs.publish("handleError",Z),_.t("record_app_crashed_web")&&gzs===0&&Z.sampleWeight===1&&(gzs++,L={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.t("report_client_error_with_app_crash_ks")||(L.systemHealth={crashData:{clientError:{logMessage:{message:Z.message}}}}),_.uU("appCrashed",L)),$57++):x==="WARNING"&&NSs.publish("handleWarning",Z);if(_.t("kevlar_gel_error_routing")){L=x;k=k===void 0?{}:k;b:{O=_.T(i7m);for(e=O.next();!e.done;e=O.next())if(S3(e.value.toLowerCase())){O=!0;break b}O=!1}if(O)k=void 0;else{e={stackTrace:Z.stack};Z.fileName&&(e.filename=Z.fileName);O=Z.lineNumber&&Z.lineNumber.split?Z.lineNumber.split(":"):[];O.length!==
0&&(O.length!==1||isNaN(Number(O[0]))?O.length!==2||isNaN(Number(O[0]))||isNaN(Number(O[1]))||(e.lineNumber=Number(O[0]),e.columnNumber=Number(O[1])):e.lineNumber=Number(O[0]));O={level:"ERROR_LEVEL_UNKNOWN",message:Z.message,errorClassName:Z.name,sampleWeight:Z.sampleWeight};L==="ERROR"?O.level="ERROR_LEVEL_ERROR":L==="WARNING"&&(O.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:e};k.pageUrl=window.location.href;k.kvPairs=[];_.wz("FEXP_EXPERIMENTS")&&(k.experimentIds=_.wz("FEXP_EXPERIMENTS"));
l=_.wz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!rs8("web_disable_gel_stp_ecatcher_killswitch")&&l)for(C=_.T(Object.keys(l)),Q=C.next();!Q.done;Q=C.next())Q=Q.value,k.kvPairs.push({key:Q,value:String(l[Q])});if(l=Z.params)for(C=_.T(Object.keys(l)),Q=C.next();!Q.done;Q=C.next())Q=Q.value,k.kvPairs.push({key:"client."+Q,value:String(l[Q])});l=_.wz("SERVER_NAME");C=_.wz("SERVER_VERSION");l&&C&&(k.kvPairs.push({key:"server.name",value:l}),k.kvPairs.push({key:"server.version",value:C}));k={errorMetadata:k,
stackTrace:e,logMessage:O}}k&&(_.uU("clientError",k),(L==="ERROR"||_.t("errors_flush_gel_always_killswitch"))&&_.Yb())}_.t("suppress_error_204_logging")||j2i(x,Z)}try{S1s.add(Z.message)}catch(W){}unw++}}};
j2i=function(O,x){var e=x.params||{};O={urlParams:{a:"logerror",t:"jserror",type:x.name,msg:x.message.substr(0,250),line:x.lineNumber,level:O,"client.name":e.name},postParams:{url:_.wz("PAGE_NAME",window.location.href),file:x.fileName},method:"POST"};e.version&&(O["client.version"]=e.version);if(O.postParams){x.stack&&(O.postParams.stack=x.stack);x=_.T(Object.keys(e));for(var l=x.next();!l.done;l=x.next())l=l.value,O.postParams["client."+l]=e[l];if(e=_.wz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(x=
_.T(Object.keys(e)),l=x.next();!l.done;l=x.next())l=l.value,O.postParams[l]=e[l];(e=_.wz("LAVA_VERSION"))&&(O.postParams["lava.version"]=e);e=_.wz("SERVER_NAME");x=_.wz("SERVER_VERSION");e&&x&&(O.postParams["server.name"]=e,O.postParams["server.version"]=x)}_.pb(_.wz("ECATCHER_REPORT_HOST","")+"/error_204",O)};
_.O5V=function(O,x){x=x===void 0?"ERROR":x;var e=e===void 0?{}:e;var l=_.i8("ytbin.polymer.shared.lib.tampering.info");l&&(l=l())&&(e["params.tamperingInfo"]=l.sort().join(","));_.BH(O,x,void 0,void 0,!0,e)};
_.JG=function(O){var x=_.vw.apply(1,arguments);O.args||(O.args=[]);Array.isArray(O.args)&&O.args.push.apply(O.args,_.Kx(x))};
xRL=function(O){O.level="IGNORED"};
ej8=function(O,x){BSn.push(O);x();BSn.pop()};
jb=function(O,x){for(var e in x)x.hasOwnProperty(e)&&(O=_.Sb(O,e,x[e]));return O};
_.lc7=function(O,x,e){e=e===void 0?!1:e;if(!O)return null;if(O.adInfoDialogEndpoint||O.backstageImageUploadEndpoint||O.confirmDialogEndpoint||O.clientActionEndpoint||O.createBackstagePostDialogEndpoint||O.createCommentReplyDialogEndpoint||O.flowEndpoint||O.guideBuilderEndpoint||O.liveChatDialogEndpoint||O.modalEndpoint||O.openPopupAction||O.shareEndpoint||O.shareEntityEndpoint||O.showLiveChatItemEndpoint||O.subscriptionManagerEndpoint||O.unlimitedCreateFamilyEndpoint||O.unlimitedFamilyFlowEndpoint||
O.updateCommentDialogEndpoint||O.updateCommentReplyDialogEndpoint||O.userFeedbackEndpoint||O.videoEditorEndpoint||O.ypcCancelSurveyEndpoint)return x=_.yF("polymer_report_client_url_requested_rate"),!e&&Math.random()<x&&_.ft(new _.ry("urlForEndpoint used on client endpoint",O)),null;var l=_.yF("polymer_report_missing_web_navigation_endpoint_rate");if(O.liveChatEndpoint||O.liveChatReplayEndpoint)l=0;if(!O.commandMetadata&&!O.clickTrackingParams&&Math.random()<l){var C={},Q;for(Q in O)C[Q]="1";_.ft(new _.ry("Missing navigation data",
C))}C="";if(O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.url)C=O.commandMetadata.webCommandMetadata.url;else if(O.searchEndpoint)Math.random()<l&&_.ft(new _.ry("Should not manually handle search",O)),C="/results?search_query="+encodeURIComponent(O.searchEndpoint.query).replace(/%20/g,"+"),O.searchEndpoint.params&&(C+="&sp="+O.searchEndpoint.params);else if(O.watchEndpoint)Math.random()<l&&_.ft(new _.ry("Should not manually handle watch",O)),C="/watch?v="+
O.watchEndpoint.videoId,O.watchEndpoint.playlistId&&(C+="&list="+O.watchEndpoint.playlistId),O.watchEndpoint.index&&(C+="&index="+O.watchEndpoint.index),O.watchEndpoint.startTimeSeconds&&(C+="&t="+O.watchEndpoint.startTimeSeconds);else if(O.browseEndpoint)l=O.browseEndpoint.browseId,(Q=O.browseEndpoint.canonicalBaseUrl)?C=Q:l&&(C=l.substr(0,2),C=C==="FE"?l==="FEwhat_to_watch"?"/":l==="FEmy_videos"?"/my_videos":"/feed/"+l.substr(2):C==="VL"?"/playlist?list="+l.substr(2):"/channel/"+l),C&&O.browseEndpoint.query&&
(C=jb(C+"/search",{query:O.browseEndpoint.query})),C&&O.browseEndpoint.params&&(C=jb(C,{params:O.browseEndpoint.params}));else{if(O.urlEndpoint)return O.urlEndpoint.url;O.signInEndpoint?(C="https://accounts.google.com/ServiceLogin",l={},_.HX.extend(l,x||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),x=l):O.uploadEndpoint?C="//www.youtube.com/upload":O.liveChatEndpoint?(C=O.liveChatEndpoint,l=_.HX.clone(C),_.w7(C.continuation)&&(Q=Object.keys(C.continuation)[0],
l.continuation=C.continuation[Q].continuation),C=jb("/youtubei/v1/live_chat/get_live_chat",l)):O.liveChatReplayEndpoint?(C=_.HX.clone(O.liveChatReplayEndpoint),C.currentPlayerState&&(_.HX.extend(C,C.currentPlayerState),delete C.currentPlayerState),C=jb("/youtubei/v1/live_chat/get_live_chat_replay",C)):O.liveChatItemContextMenuEndpoint?C=jb("/youtubei/v1/live_chat/get_item_context_menu",O.liveChatItemContextMenuEndpoint):O.liveChatPurchaseMessageEndpoint?C=jb("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
O.liveChatPurchaseMessageEndpoint):O.openSuperStickerBuyFlowCommand?C=jb("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",O.openSuperStickerBuyFlowCommand):O.videoEditEndpoint?C=jb("/edit",{video_id:O.videoEditEndpoint.videoId}):O.liveDashboardEndpoint?C=O.liveDashboardEndpoint.videoId?jb("/live_dashboard",{v:O.liveDashboardEndpoint.videoId}):"/live_dashboard":O.signalNavigationEndpoint&&O.signalNavigationEndpoint.signal&&O.signalNavigationEndpoint.signal==="WEBCAM"?C="/webcam":O.getPdgBuyFlowCommand&&
(C=jb(O.getPdgBuyFlowCommand.buyflowApiPath,{params:O.getPdgBuyFlowCommand.params}))}return C||e?jb(C,x||{}):(_.ft(new _.ry("Error: Can't construct url for endpoint","keys:"+Object.keys(O).sort().join(","),O)),null)};
Cww=function(O){if(O){if(O.browseEndpoint)return!!O.browseEndpoint.nofollow;if(O.watchEndpoint)return!!O.watchEndpoint.nofollow;if(O.urlEndpoint)return!!O.urlEndpoint.nofollow}return!1};
_.b5V=function(O,x){var e=x+O,l=Qtr.get(e);if(l)return l;O=x+"-"+O.replace(/([A-Z])/g,"-$1").toLowerCase();Qtr.set(e,O);return O};
TYL=function(O){var x=_.vE(O,"action")||_.vE(O,"command")||_.vE(O,"endpoint");if(!x)return null;x=_.b5V(x,"yt");_.q(O,_.Nu)&&(x+="-"+_.q(O,_.Nu).signal.toLowerCase().replace(/_/g,"-"));return x};
MRV=function(O){try{var x=Object.keys(O)}catch(C){return[]}for(var e=0;e<x.length;e++){var l=x[e];if(L8W.test(l)||kA7.test(l))return AAL(O[l])}return[]};
AAL=function(O){return O.command?[O.command]:O.onExecutionAction?[O.onExecutionAction]:O.onResponseReceivedCommand?[O.onResponseReceivedCommand]:O.updateFlowCommand?[O.updateFlowCommand]:O.clientActions?O.clientActions:O.action?[O.action]:O.actions||O.commands||O.onResponseReceivedActions||O.onResponseReceivedCommands||O.onResponseReceivedEndpoints||[]};
GAL=function(O,x){x=x===void 0?!1:x;var e=_.GG().resolve(_.D0(gl));e||(e=new DRi,_.GG().addProvider({provide:gl,useValue:e}));return e&&O&&!_.HX.isEmpty(O)?e.getUrl(O,x):""};
F8w=function(O,x,e){e=e===void 0?"":e;if(x){O.data=x;var l=GAL(x);l?(J7(O,l),Cww(x)||!Aq(l)?O.rel="nofollow":O.removeAttribute("rel"),_.q(x,_.$b)&&_.q(x,_.$b).target==="TARGET_NEW_WINDOW"?O.target="_blank":e?O.target=e:O.removeAttribute("target")):(O.removeAttribute("href"),O.removeAttribute("rel"),O.removeAttribute("target"))}};
_.Cw=function(O,x){var e=Le;if(Ke())X8W(O,function(){var Q=_.vw.apply(0,arguments);J6(e,function(){x.apply(null,_.Kx(Q))})});
else{var l=_.iU.getInstance(),C=zow(x);Vhw(function(){C.value=x});
_.YK(function(){var Q={},L=_.e2(l,(Q[O]=function(){var k=_.vw.apply(0,arguments);J6(e,function(){C.value.apply(C,_.Kx(k))})},Q));
return function(){var k={};_.lD(l,(k[O]="",k),L)}})}};
_.Q5=function(O,x){return opw(O,!1,x)};
_.bD=function(O,x){return opw(O,!0,x)};
opw=function(O,x,e){return Ke()?yAn(O,x,e):Z5m(O,x,e)};
Z5m=function(O,x,e){return BE(function(){return yAn(O,x,e)})};
yAn=function(O,x,e){var l=qbm(function(C){l.value=C;var Q=function(){var L=ow(null);try{return e==null?void 0:e(C)}finally{ow(L)}}();
return function(){Q==null||Q()}});
l.__expectedTagName=O;l.__optional=x;l.isIdom=!Ke();return l};
Eps=function(O){var x=Le,e=rw;return{getFn:function(){return function(l){x.isDisposed||ne(function(){return _.cL(function(){return O(l)})},e)!==!0&&l.stopPropagation()}}}};
kg=function(O){if(typeof O.children==="function")return O.children(),null;O=_.T(O.children);for(var x=O.next();!x.done;x=O.next())x=x.value,x();return null};
tRr=function(O){var x;return((x=O.prototype)==null?void 0:x.render)===void 0};
q9n=function(O){return O.items.map(O.children)};
cAw=function(O,x,e){e=e===void 0?!1:e;ne(function(){return Pwr(O,x,e)})};
Pwr=function(O,x,e){var l=null;WL++;e=(e===void 0?0:e)?IcL:VRN;try{l=e(O,function(){Aa(x)}),zc(!1)}catch(C){throw zc(!0),C;
}return l===null?O:l};
Aa=function(O){if(O!==void 0&&O!==null)if(O instanceof RU)for(var x=io;eS()!=null&&b1r in eS()&&x.contains(eS());)QE();else if(Array.isArray(O))for(x=_.T(O),O=x.next();!O.done;O=x.next())Aa(O.value);else if(O instanceof Uh||O instanceof kS||"function"==typeof _.DK&&O instanceof _.DK)Qpw(O.toString());else if(_.yE(O)){if(eS()!==O){var e,l;x=(l=(e=rw)==null?void 0:e.name)!=null?l:"unknown";throw Error("hc`"+O.tagName+"`"+x);}QE()}else if(O!=null&&O.contentKind===tZ||O instanceof wk||tln(O))for(x=POV(O),
x=Array.from(x.childNodes),x=_.T(x),O=x.next();!O.done;O=x.next())io.appendChild(O.value),QE();else if(rk(O)&&(O=O.toString()),e=typeof O,e==="boolean"||e==="number"||e==="string")Qpw(O);else if(typeof O==="function"){x=io;var C=eS();C&&(C._isSignalTextNode||C._isSafeOrSanitizedHtmlNode)||NMw(x,C,O);QE()}else if(O.type===q9n)Aa(O.type(Object.assign({},O.props,{children:O.children[0]})));else{mx.beforeVisit(O);if(typeof O.type==="string"){a:{O.__open||Nar(O.type,O.props.idomKey);C=io;for(x in O.props)if(O.props[x]!==
p88){var Q=O.props[x];e=LO;e.push(x);e.push(Q)}x=Gc.attributes;x=x===void 0?M3:x;Q=io;e=$O(Q);CON(Q,e,x);jpL(C,O.props,!0);if((O.props.skip||O.props.skipchildren)&&io.hasChildNodes())$3r();else{if(O.type==="style"&&mys(O.children)===null){$3r();x=void 0;break a}Aa(O.children)}ggn();O.__open&&(O.__open=!1);GS8(C,O.props);x=C}return x}if(O.type===_.Xm)Aa(O.children);else if(!Rjw(O)){x=O;try{URi(x)}catch(L){O=L,(Q=Gc.handleError)==null||Q.call.apply(Q,[Gc].concat(_.Kx(ww(O,(C=x.type)==null?void 0:C.TAG_NAME))))}x.__open&&
(ggn(),x.__open=!1)}}};
acm=function(O,x){var e;tRr(O)?e=new WE(x,O):e=new O(x);e.__type=O;e.__updateContext={nextState:e.state,isForced:!1};return e};
URi=function(O){var x=O.type,e=x.TAG_NAME;if(x===kg)O.props.children=O.children,x(O.props);else{O.children.length>0&&(O.props.children=O.children);var l;(l=O.props).idomKey||(l.idomKey=x);if(e){var C=Nar(e,O.props.idomKey);O.__open=!0;var Q=C.__instance}Q||(Q=acm(x,O.props),Q.props=null,C&&(C.__instance=Q,Q.el=C));var L;e=((L=Q.__updateContext)!=null?L:{nextState:Q.state,isForced:!1}).nextState;Q.__updateContext=void 0;x.getDerivedStateFromProps&&(e=x.getDerivedStateFromProps(O.props,e));Q.props=
O.props;Q.state=e;L=function(){var k=Q;mx.beforeRender(k);var M=k.render(k.props);mx.afterRender(k,M);M?(k.props.idomKey&&(M.props.idomKey=k.props.idomKey),k=M):k=void 0;if(M=k)if(M.__open=O.__open,k=Aa(M),O.__open=M.__open,!x.TAG_NAME)if(k)x.TAG_NAME=k.tagName.toLowerCase(),k.__instance=Q,Q.el=k;else{var G;if((G=Q.hooks)==null?0:G.length){var X;(X=Gc.handleError)==null||X.call.apply(X,[Gc].concat(_.Kx(ww(Error("nd")))))}}Q.didPatch();mx.didPatch(Q)};
(e=Q.functionComponent)?GQr(e,L,Q.props.debugInstance):L()}};
Rjw=function(O){var x=O.type;if(!tRr(x)||x===kg||x.componentType===HL)return!1;O.props.children=O.children.length>1?O.children:O.children[0];var e,l=(e=O.props.idomKey)!=null?e:O.type,C;if(eS()&&((C=eS()[IU])==null?void 0:C.key)===l){var Q=eS(),L=Q[IU];if(!L)throw Error("gc`"+Q.tagName);var k;(k=L.updateSignalsFromIdomProps)==null||k.call(L,O.props);mR7(L);return!0}if(str.has(x.name))throw k=x.name,x=(L=(Q=rw)==null?void 0:Q.name)!=null?L:"unknown",Error("fc`"+k+"`"+x);O1L(O.type,O.props,O.children);
O.props.renderedFromIdom=!0;(k=GQr(O.type,function(){return v_n(O.type,O.props)},O.props.debugInstance))&&W87(k);
return!0};
hjV=function(O){for(var x=0;x<pO(O).length;x++)QE()};
mR7=function(O){var x=zjn();if(x)hjV(x);else for(var e=0;e<O.numNodes;e++)(x=zjn())?hjV(x):QE()};
zjn=function(){var O;return(O=eS()[IU])==null?void 0:O.sourceDynamicRange};
W87=function(O){O=o_r(O);O=Array.isArray(O)?O:[O];O=_.T(O);for(var x=O.next();!x.done;x=O.next())io.insertBefore(x.value,eS()),QE()};
rAr=function(){var O=J_W(),x=BE(function(){return{value:0}});
return[x.value,function(e){if(s0!==null){var l;(l=Gc.handleError)==null||l.call.apply(l,[Gc].concat(_.Kx(ww(Error("od")))))}x.value=typeof e==="function"?e(x.value):e;O.__updateContext={nextState:O.state,isForced:!0};e=_.kO(O.effectContext);l=oU(!1);try{if(O.el){var C,Q={},L=(Q.props=O.props,Q.type=O.__type,Q.children=(C=O.props.children)!=null?C:[],Q[Fm]=!0,Q);try{cAw(O.el,L,!0)}catch(G){var k,M;(M=Gc.handleError)==null||M.call.apply(M,[Gc].concat(_.Kx(ww(G,(k=O.__type)==null?void 0:k.TAG_NAME))))}}}finally{oU(l),
_.kO(e)}}]};
_.D9=function(O,x){var e=Le,l=function(C){J6(e,function(){x(C)})};
window.addEventListener(O,l,void 0);_.YO(function(){window.removeEventListener(O,l,void 0)})};
_.F6=function(O){var x=Le;return function(e){var l,C=(l=O.observer)!=null?l:_.GG().resolve(GQ);l=H5r(e);var Q=[];O.showOption&&Q.push(C.observe(e,function(){J6(x,function(){O.visibilityCallback(!0,e)})},O.showOption));
O.hideOption&&Q.push(C.observe(e,function(){J6(x,function(){O.visibilityCallback(!1,e)})},O.hideOption));
O.prescanOption&&O.prescanCallback&&Q.push(C.observe(e,function(){J6(x,function(){O.prescanCallback()})},O.prescanOption));
var L;l.visibilityMonitorKeys=((L=l.visibilityMonitorKeys)!=null?L:[]).concat(Q)}};
H5r=function(O){var x;return(x=O.polymerController)!=null?x:O};
uQr=function(O,x){var e=K88;return _.D(_.Xm,null,oCW(Gc.enableLazyTsx,function(){return _.D(dRN,{id:e,value:O,children:x})},function(){var l=npW(e,O);
De(l);l=_.kO(l);try{return x()}finally{_.kO(l)}}))};
dRN=function(O){var x=O.children;O=npW(O.id,O.value);De(O);O=_.kO(O);try{return _.D(_.Xm,null,U0(x()))}finally{_.kO(O)}};
npW=function(O,x){return Object.assign(Object.create(Y9L),{id:O,contextValue:x})};
BY$=function(O){var x,e=Le;_.fe(function(){var l=_.kO(e),C=oU(!x);try{if(x)cAw(x,O.children(),!0);else if(x=U0(O.children()),!(x instanceof Element))throw Error("pd");}finally{oU(C),_.kO(l)}},"f");
return x};
_.vpN=function(O,x){var e;x=BL(function(){var l=oU(!0);WL++;try{e=pO(O()),zc(!1)}catch(C){throw zc(!0),C;}finally{oU(l)}},x===void 0?!1:x);
return[e,x]};
JA8=function(O){var x=new fcV;x.abort(O);return x.signal};
w8m=function(){if(this.aborted){var O;throw(O=this.reason)!=null?O:new DOMException("signal is aborted without reason","AbortError");}};
NYW=function(O){var x=new fcV;O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,e.aborted){x.abort(e.reason);break}else S9r.set(x.signal,x),jt$.add(e,x.signal);return x.signal};
gp8=function(){for(var O=_.T(jt$.get(this)),x=O.next();!x.done;x=O.next())S9r.get(x.value).abort(this.reason)};
$RL=function(O){var x=new fcV;setTimeout(function(){x.abort(new DOMException("signal timed out","TimeoutError"))},O);
return x.signal};
i5r=function(){var O,x;return{promise:new Promise(function(e,l){O=e;x=l}),
resolve:O,reject:x}};
xSw=function(O){var x=i5r(),e=x.promise;OMN.set(O,{promise:e,resolve:x.resolve,reject:x.reject});X6||(X6=[],queueMicrotask(function(){var l=[].concat(_.Kx(X6));X6=null;var C=uP().loadMultiple(l);l=_.T(l);for(var Q=l.next();!Q.done;Q=l.next())Q=Q.value,C[Q].then(OMN.get(Q).resolve,OMN.get(Q).reject)}));
X6.push(O);return e};
lwi=function(O){O=O.buf.charCodeAt(O.pos++);return e2r[O]};
oy=function(O){var x=0,e=0;do{var l=lwi(O);x|=(l&31)<<e;e+=5}while(l&32);return x<0?x+4294967296:x};
Q$W=function(){var O=!0;O=O===void 0?!1:O;var x=x===void 0?!1:x;var e=e===void 0?{}:e;var l=e.cssRowKey||"",C=e.combinedSignature||"";!l&&window&&window._F_cssRowKey&&(l=window._F_cssRowKey,!C&&window._F_combinedSignature&&(C=window._F_combinedSignature));if(l&&typeof window._F_installCss!=="function")throw Error("zd");var Q=e.loaderClass||_.y5,L=H$r("base-js");O=new Q(qr8(dBr("",L)),l,C,O,x);x=e.useCors||L&&L.hasAttribute("crossorigin");L=e.corsMode||L&&L.getAttribute("crossorigin");x&&(O.useCors_=
x);L&&(O.corsMode_=L);e.urlMaxLength&&(O.urlMaxLength=e.urlMaxLength);e.fetchPriority&&(O.fetchPriority=e.fetchPriority);var k=uP();k.JSC$10049_loader_=O;k.setBatchModeEnabled(!0);_.Ccr=e.batchingStrategy==="BATCH"?xSw:function(M){return Promise.resolve(k.load(M))}};
Lz$=function(O,x,e){bM7(O,x);O[x][Tjm].unshift(e)};
bM7=function(O,x){if(!O[x]||!O[x][Tjm]){var e=O[x],l=e?[e]:[];O[x]=function(){for(var C=_.T(l),Q=C.next();!Q.done;Q=C.next())Q.value.apply(this,arguments)};
O[x][Tjm]=l}};
k_L=function(O){if(!O)return[];var x=[];O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,Array.isArray(e)?x.push.apply(x,_.Kx(k_L(e))):x.push(e);return x};
_.EZ=function(O,x){if(O&&Ai7.test(O)||O==="//")return O;if(MKN===void 0){MKN=!1;try{var e=new URL("b","http://a");e.pathname="c%20d";MKN=e.href==="http://a/c%20d"}catch(l){}}x||(x=document.baseURI||window.location.href);if(MKN)try{return(new URL(O,x)).href}catch(l){return O}Z9||(Z9=document.implementation.createHTMLDocument("temp"),Z9.base=Z9.createElement("base"),Z9.head.appendChild(Z9.base),Z9.anchor=Z9.createElement("a"),Z9.body.appendChild(Z9.anchor));Z9.base.href=x;Z9.anchor.href=O;return Z9.anchor.href||
O};
G_7=function(O,x){return O.replace(DS$,function(e,l,C,Q){return l+"'"+_.EZ(C.replace(/["']/g,""),x)+"'"+Q})};
Fz7=function(O){return O.substring(0,O.lastIndexOf("/")+1)};
yiV=function(){Xbr=!1;for(var O=ta.length,x=0;x<O;x++){var e=ta[x];if(e)try{e()}catch(l){setTimeout(function(){throw l;})}}ta.splice(0,O);
oVW+=O};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(O){console.log("["+O.is+"]: registered")};
EVr=function(O){ZMN.push(O)};
q3=function(O){return tKs[O]||(tKs[O]=O.indexOf("-")<0?O:O.replace(qMs,function(x){return x[1].toUpperCase()}))};
PD=function(O){return tKs[O]||(tKs[O]=O.replace(Pc7,"-$1").toLowerCase())};
ciw=function(O,x){var e=x.parentInfo&&ciw(O,x.parentInfo);if(e)for(O=e.firstChild,e=0;O;O=O.nextSibling){if(x.parentIndex===e++)return O}else return O};
Iwr=function(O,x){O=O._methodHost||O;return function(e){if(O[x])O[x](e,e.detail);else console.warn("listener method `"+x+"` not defined")}};
cD=function(O){return O.indexOf(".")>=0};
Iy=function(O){var x=O.indexOf(".");return x===-1?O:O.slice(0,x)};
VK7=function(O,x){return O.indexOf(x+".")===0};
V5=function(O,x){return x.indexOf(O+".")===0};
pw=function(O,x,e){return x+e.slice(O.length)};
pbs=function(O,x){return O===x||VK7(O,x)||V5(O,x)};
Ry=function(O){if(Array.isArray(O)){for(var x=[],e=0;e<O.length;e++)for(var l=O[e].toString().split("."),C=0;C<l.length;C++)x.push(l[C]);return x.join(".")}return O};
R28=function(O){return Array.isArray(O)?Ry(O).split("."):O.toString().split(".")};
UZ=function(O,x,e){x=R28(x);for(var l=0;l<x.length;l++){if(!O)return;O=O[x[l]]}e&&(e.path=x.join("."));return O};
USr=function(O,x,e){var l=R28(x),C=l[l.length-1];if(l.length>1){for(x=0;x<l.length-1;x++)if(O=O[l[x]],!O)return;O[C]=e}else O[x]=e;return l.join(".")};
awL=function(O,x,e){var l=O[x];if(!l)l=O[x]={};else if(!O.hasOwnProperty(x)&&(l=O[x]=Object.create(O[x]),e))for(var C in l)for(O=l[C],x=l[C]=Array(O.length),e=0;e<O.length;e++)x[e]=O[e];return l};
m1=function(O,x,e,l,C,Q){if(x){var L=!1,k=ay++,M;for(M in e){var G=C?Iy(M):M;if(G=x[G])for(var X=0,y=G.length,Z=void 0;X<y&&(Z=G[X]);X++)Z.info&&Z.info.lastRun===k||C&&!mS$(M,Z.trigger)||(Z.info&&(Z.info.lastRun=k),Z.fn(O,M,e,l,Z.info,C,Q),L=!0)}return L}return!1};
mS$=function(O,x){if(x){var e=x.name;return e==O||!(!x.structured||!VK7(e,O))||!(!x.wildcard||!V5(e,O))}return!0};
s$W=function(O,x,e,l,C){x=typeof C.method==="string"?O[C.method]:C.method;e=C.property;x?x.call(O,O.__data[e],l[e]):C.dynamicFn||console.warn("observer method `"+C.method+"` not defined")};
Wzr=function(O,x,e,l){e={value:e,queueProperty:!0};l&&(e.path=l);(0,_.sZ)(O).dispatchEvent(new CustomEvent(x,{detail:e}))};
h2L=function(O,x,e,l,C,Q){Q=(l=(Q?Iy(x):x)!=x?x:null)?UZ(O,l):O.__data[x];l&&Q===void 0&&(Q=e[x]);Wzr(O,C.eventName,Q,l)};
z2s=function(O,x,e,l,C){e=O.__data[x];WD&&(e=WD(e,C.attrName,"attribute",O));O._propertyToAttribute(x,C.attrName,e)};
HMV=function(O){var x=O.constructor.__orderedComputedDeps;if(!x){x=new Map;for(var e=O.__computeEffects,l=rir(O),C=l.counts,Q=l.ready,L=l.total;l=Q.shift();)x.set(l,x.size),(l=e[l])&&l.forEach(function(k){k=k.info.methodInfo;--L;--C[k]===0&&Q.push(k)});
L!==0&&console.warn("Computed graph for "+O.localName+" incomplete; circular?");O.constructor.__orderedComputedDeps=x}return x};
rir=function(O){var x=O.__computeInfo,e={};O=O.__computeEffects;var l=[],C=0,Q;for(Q in x){var L=x[Q];C+=e[Q]=L.args.filter(function(M){return!M.literal}).length+(L.dynamicFn?1:0)}for(var k in O)x[k]||l.push(k);
return{counts:e,ready:l,total:C}};
dSV=function(O,x,e,l,C){x=Kzm(O,x,e,l,C);if(x===ha)return!1;C=C.methodInfo;if(O.__dataHasAccessor&&O.__dataHasAccessor[C])return O._setPendingProperty(C,x,!0);O[C]=x;return!1};
YMr=function(O,x,e,l,C,Q,L){e.bindings=e.bindings||[];l={kind:l,target:C,parts:Q,literal:L,isCompound:Q.length!==1};e.bindings.push(l);l.target&&l.kind!="attribute"&&l.kind!="text"&&!l.isCompound&&l.parts[0].mode==="{"&&(e=l.parts[0],Q=e.negate,l.listenerEvent=e.event||PD(C)+"-changed",l.listenerNegate=Q);C=x.nodeInfoList.length;for(e=0;e<l.parts.length;e++){var k=l.parts[e];k.compoundIndex=e;Q=O;L=x;var M=l,G=k,X=C;if(!G.literal)if(M.kind==="attribute"&&M.target[0]==="-")console.warn("Cannot set attribute "+
M.target+' because "-" is not a valid attribute starting character');else for(k=G.dependencies,M={index:X,binding:M,part:G,evaluator:Q},G=0;G<k.length;G++)X=k[G],typeof X=="string"&&(X=nV7(X),X.wildcard=!0),Q._addTemplatePropertyEffect(L,X.rootProperty,{fn:uGr,info:M,trigger:X})}};
uGr=function(O,x,e,l,C,Q,L){L=L[C.index];var k=C.binding,M=C.part;Q&&M.source&&x.length>M.source.length&&k.kind=="property"&&!k.isCompound&&L.__isPropertyEffectsClient&&L.__dataHasAccessor&&L.__dataHasAccessor[k.target]?(e=e[x],x=pw(M.source,k.target,x),L._setPendingPropertyOrPath(x,e,!1,!0)&&O._enqueueClient(L)):(x=C.evaluator._evaluateBinding(O,M,x,e,l,Q),x!==ha&&(k.isCompound&&(e=L.__dataCompoundStorage[k.target],e[M.compoundIndex]=x,x=e.join("")),k.kind==="attribute"||k.target!=="textContent"&&
(k.target!=="value"||L.localName!=="input"&&L.localName!=="textarea")||(x=x==void 0?"":x),M=x,WD&&(M=WD(M,k.target,k.kind,L)),k.kind=="attribute"?O._valueToNodeAttribute(L,M,k.target):(k=k.target,L.__isPropertyEffectsClient&&L.__dataHasAccessor&&L.__dataHasAccessor[k]?L.__readOnly&&L.__readOnly[k]||L._setPendingProperty(k,M)&&O._enqueueClient(L):O._setUnmanagedPropertyToNode(L,k,M))))};
Bjw=function(O,x,e){if(e.listenerEvent){var l=e.parts[0];O.addEventListener(e.listenerEvent,function(C){var Q=e.target,L=l.source,k=l.negate,M=C.detail,G=M&&M.path;G?(L=pw(Q,L,G),C=M&&M.value):C=C.currentTarget[Q];x.__readOnly&&x.__readOnly[L]||!x._setPendingPropertyOrPath(L,k?!C:C,!0,!!G)||M&&M.queueProperty||x._invalidateProperties()})}};
vVW=function(O,x,e,l,C,Q){Q=x.static||Q&&(typeof Q!=="object"||Q[x.methodName]);C={methodName:x.methodName,args:x.args,methodInfo:C,dynamicFn:Q};for(var L=0,k=void 0;L<x.args.length&&(k=x.args[L]);L++)k.literal||O._addPropertyEffect(k.rootProperty,e,{fn:l,info:C,trigger:k});Q&&O._addPropertyEffect(x.methodName,e,{fn:l,info:C});return C};
Kzm=function(O,x,e,l,C){l=O._methodHost||O;var Q=l[C.methodName];if(Q)return O=O._marshalArgs(C.args,x,e),O===ha?ha:Q.apply(l,O);C.dynamicFn||console.warn("method `"+C.methodName+"` not defined")};
fwN=function(O){for(var x="",e=0;e<O.length;e++)x+=O[e].literal||"";return x};
SML=function(O){if(O=O.match(/([^\s]+?)\(([\s\S]*)\)/)){var x={methodName:O[1],static:!0,args:Jii};return O[2].trim()?wbL(O[2].replace(/\\,/g,"&comma;").split(","),x):x}return null};
wbL=function(O,x){x.args=O.map(function(e){e=nV7(e);e.literal||(x.static=!1);return e},this);
return x};
nV7=function(O){O=O.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var x={name:O,value:"",literal:!1},e=O[0];e==="-"&&(e=O[1]);e>="0"&&e<="9"&&(e="#");switch(e){case "'":case '"':x.value=O.slice(1,-1);x.literal=!0;break;case "#":x.value=Number(O),x.literal=!0}x.literal||(x.rootProperty=Iy(O),x.structured=cD(O),x.structured&&(x.wildcard=O.slice(-2)==".*",x.wildcard&&(x.name=O.slice(0,-2))));return x};
j$r=function(O,x,e){O=UZ(O,e);O===void 0&&(O=x[e]);return O};
NjV=function(O,x,e,l){l={indexSplices:l};zQ&&!O._overrideLegacyUndefined&&(x.splices=l);O.notifyPath(e+".splices",l);O.notifyPath(e+".length",x.length);zQ&&!O._overrideLegacyUndefined&&(l.indexSplices=[])};
ra=function(O,x,e,l,C,Q){NjV(O,x,e,[{index:l,addedCount:C,removed:Q,object:x,type:"splice"}])};
gVr=function(O){O=G_7((O.body?O.body:O).textContent,O.baseURI);var x=document.createElement("style");x.textContent=O;return x};
iMr=function(O){O=O.trim().split(/\s+/);for(var x=[],e=0;e<O.length;e++)x.push.apply(x,_.Kx($Sm(O[e])));return x};
$Sm=function(O){var x=HD.import(O);if(!x)return console.warn("Could not find style data in module named",O),[];if(x._styles===void 0){O=[];O.push.apply(O,_.Kx(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x)));var e=x.querySelector("template");e&&O.push.apply(O,_.Kx(OIN(e,x.assetpath)));x._styles=O}return x._styles};
OIN=function(O,x){if(!O._styles){for(var e=[],l=O.content.querySelectorAll("style"),C=0;C<l.length;C++){var Q=l[C],L=Q.getAttribute("include");L&&e.push.apply(e,_.Kx(iMr(L).filter(function(k,M,G){return G.indexOf(k)===M})));
x&&(Q.textContent=G_7(Q.textContent,x));e.push(Q)}O._styles=e}return O._styles};
xoL=function(O){return(O=HD.import(O))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(O){var x=[];O=O.querySelectorAll("link[rel=import][type~=css]");for(var e=0;e<O.length;e++){var l=O[e];if(l.import){var C=l.import;if((l=l.hasAttribute("shady-unscoped"))&&!C._unscopedStyle){var Q=gVr(C);Q.setAttribute("shady-unscoped","");C._unscopedStyle=Q}else C._style||(C._style=gVr(C));x.push(l?C._unscopedStyle:C._style)}}return x};
lrW=function(O){O=O.trim().split(/\s+/);for(var x="",e=0;e<O.length;e++)x+=eJr(O[e]);return x};
eJr=function(O){var x=HD.import(O);if(x&&x._cssText===void 0){var e=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x),l=x.querySelector("template");l&&(e+=CgV(l,x.assetpath));x._cssText=e||null}x||console.warn("Could not find style data in module named",O);return x&&x._cssText||""};
CgV=function(O,x){var e="";O=OIN(O,x);for(x=0;x<O.length;x++){var l=O[x];l.parentNode&&l.parentNode.removeChild(l);e+=l.textContent}return e};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(O){var x="";O=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O);for(var e=0;e<O.length;e++)x+=O[e].textContent;return x};
Kw=function(O,x){return{index:O,removed:[],addedCount:x}};
bIw=function(O,x,e,l){var C=0,Q=0,L=0,k=0,M=Math.min(x-C,l-Q);if(C==0&&Q==0)a:{for(L=0;L<M;L++)if(O[L]!==e[L])break a;L=M}if(x==O.length&&l==e.length){k=O.length;for(var G=e.length,X=0;X<M-L&&QLL(O[--k],e[--G]);)X++;k=X}C+=L;Q+=L;x-=k;l-=k;if(x-C==0&&l-Q==0)return[];if(C==x){for(x=Kw(C,0);Q<l;)x.removed.push(e[Q++]);return[x]}if(Q==l)return[Kw(C,x-C)];M=C;L=Q;l=l-L+1;k=x-M+1;x=Array(l);for(G=0;G<l;G++)x[G]=Array(k),x[G][0]=G;for(G=0;G<k;G++)x[0][G]=G;for(G=1;G<l;G++)for(X=1;X<k;X++)if(O[M+X-1]===
e[L+G-1])x[G][X]=x[G-1][X-1];else{var y=x[G-1][X]+1,Z=x[G][X-1]+1;x[G][X]=y<Z?y:Z}M=x.length-1;L=x[0].length-1;l=x[M][L];for(O=[];M>0||L>0;)M==0?(O.push(2),L--):L==0?(O.push(3),M--):(k=x[M-1][L-1],G=x[M-1][L],X=x[M][L-1],y=G<X?G<k?G:k:X<k?X:k,y==k?(k==l?O.push(0):(O.push(1),l=k),M--,L--):y==G?(O.push(3),M--,l=G):(O.push(2),L--,l=X));O.reverse();x=void 0;M=[];for(L=0;L<O.length;L++)switch(O[L]){case 0:x&&(M.push(x),x=void 0);C++;Q++;break;case 1:x||(x=Kw(C,0));x.addedCount++;C++;x.removed.push(e[Q]);
Q++;break;case 2:x||(x=Kw(C,0));x.addedCount++;C++;break;case 3:x||(x=Kw(C,0)),x.removed.push(e[Q]),Q++}x&&M.push(x);return M};
TC7=function(O,x){return bIw(O,O.length,x,x.length)};
QLL=function(O,x){return O===x};
ko7=function(O){if(O instanceof L6s)return O.value;throw Error("Hd`"+O);};
Ats=function(O,x){for(var e in x)e===null?O.style.removeProperty(e):O.style.setProperty(e,x[e])};
M1r=function(O,x){return(O=window.getComputedStyle(O).getPropertyValue(x))?O.trim():""};
XNL=function(O){requestAnimationFrame(function(){DoW?DoW(O):(Gos||(Gos=new Promise(function(x){F6r=x}),document.readyState==="complete"?F6r():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&F6r()})),Gos.then(function(){O&&O()}))})};
ZIi=function(O){oQW=O&&O.shimcssproperties?!1:ytr||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
cti=function(O){if(!(EQs.indexOf(O)>-1)&&O!=="touchend"&&t1w&&qe$&&Pgr)return{passive:!0}};
RJm=function(O){for(var x=Irr?["click"]:EQs,e=0,l;e<x.length;e++)l=x[e],O?(V1w.length=0,document.addEventListener(l,pNV,!0)):document.removeEventListener(l,pNV,!0)};
da=function(O){var x=O.type;return EQs.indexOf(x)>-1?x==="mousemove"?(x=O.buttons===void 0?1:O.buttons,O instanceof window.MouseEvent&&!Uo$&&(x=arr[O.which]||0),!!(x&1)):(O.button===void 0?0:O.button)===0:!1};
mom=function(O){if(O.type==="click"){if(O.detail===0)return!0;var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);if(!x.nodeType||x.nodeType!==Node.ELEMENT_NODE)return!0;x=x.getBoundingClientRect();var e=O.pageX;O=O.pageY;return!(e>=x.left&&e<=x.right&&O>=x.top&&O<=x.bottom)}return!1};
sLr=function(O,x,e){O.movefn=x;O.upfn=e;document.addEventListener("mousemove",x);document.addEventListener("mouseup",e)};
nw=function(O){document.removeEventListener("mousemove",O.movefn);document.removeEventListener("mouseup",O.upfn);O.movefn=null;O.upfn=null};
W6V=function(O,x){for(var e=document.elementFromPoint(O,x),l=e;l&&l.shadowRoot&&!window.ShadyDOM;){var C=l;l=l.shadowRoot.elementFromPoint(O,x);if(C===l)break;l&&(e=l)}return e};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){var x=hJV(O);return x.length>0?x[0]:O.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){var x=O.type,e=O.currentTarget.__polymerGestures;if(e&&(e=e[x])){if(!O.__polymerGesturesHandled&&(O.__polymerGesturesHandled={},x.slice(0,5)==="touch")){var l=O.changedTouches[0];x==="touchstart"&&O.touches.length===1&&(zJr=l.identifier);if(zJr!==l.identifier)return;t1w||(x==="touchstart"||x==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O)}l=
O.__polymerGesturesHandled;if(!l.skip){for(var C=0,Q;C<uD.length;C++)Q=uD[C],e[Q.name]&&!l[Q.name]&&Q.flow&&Q.flow.start.indexOf(O.type)>-1&&Q.reset&&Q.reset();for(C=0;C<uD.length;C++)Q=uD[C],e[Q.name]&&!l[Q.name]&&(l[Q.name]=!0,Q[x](O))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){var x=O.changedTouches[0],e=O.type;if(e==="touchstart")rtw=x.clientX,HIL=x.clientY,K6r=!1;else if(e==="touchmove"&&!K6r){K6r=!0;e="auto";for(var l=hJV(O),C=0,Q;C<l.length;C++)if(Q=l[C],Q.__polymerGesturesTouchAction){e=Q.__polymerGesturesTouchAction;break}l=!1;C=Math.abs(rtw-x.clientX);x=Math.abs(HIL-x.clientY);O.cancelable&&(e==="none"?l=!0:e==="pan-x"?l=x>C:e==="pan-y"&&(l=C>x));l?O.preventDefault():
Yg("track")}};
vD=function(O,x,e){return BD[x]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,x,e),!0):!1};
fw=function(O,x,e){return BD[x]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,x,e),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O,x,e){var l=BD[x],C=l.deps,Q=l.name,L=O.__polymerGestures;L||(O.__polymerGestures=L={});for(var k=0,M,G;k<C.length;k++)M=C[k],Irr&&EQs.indexOf(M)>-1&&M!=="click"||((G=L[M])||(L[M]=G={_count:0}),G._count===0&&O.addEventListener(M,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,cti(M)),G[Q]=(G[Q]||0)+1,G._count=(G._count||0)+1);O.addEventListener(x,e);l.touchAction&&_.Ja(O,l.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O,x,e){var l=BD[x],C=l.deps;l=l.name;var Q=O.__polymerGestures;if(Q)for(var L=0,k,M;L<C.length;L++)k=C[L],(M=Q[k])&&M[l]&&(M[l]=(M[l]||1)-1,M._count=(M._count||1)-1,M._count===0&&O.removeEventListener(k,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,cti(k)));O.removeEventListener(x,e)};
dor=function(O){uD.push(O);for(var x=0;x<O.emits.length;x++)BD[O.emits[x]]=O};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){for(var x=0,e;x<uD.length;x++){e=uD[x];for(var l=0,C;l<e.emits.length;l++)if(C=e.emits[l],C===O)return e}return null};
_.Ja=function(O,x){t1w&&O instanceof HTMLElement&&j2.run(function(){O.style.touchAction=x});
O.__polymerGesturesTouchAction=x};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O,x,e){x=new Event(x,{bubbles:!0,cancelable:!0,composed:!0});x.detail=e;(0,_.sZ)(O).dispatchEvent(x);x.defaultPrevented&&(O=e.preventer||e.sourceEvent)&&O.preventDefault&&O.preventDefault()};
Yg=function(O){O=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);O.info&&(O.info.prevent=!0)};
N3=function(O,x,e,l){x&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,O,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:l,prevent:function(C){return Yg(C)}})};
nQ8=function(O,x,e){if(O.prevent)return!1;if(O.started)return!0;e=Math.abs(O.y-e);return Math.abs(O.x-x)>=5||e>=5};
uur=function(O,x,e){if(x){var l=O.moves[O.moves.length-2],C=O.moves[O.moves.length-1],Q=C.x-O.x,L=C.y-O.y,k=0;if(l){var M=C.x-l.x;k=C.y-l.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,"track",{state:O.state,x:e.clientX,y:e.clientY,dx:Q,dy:L,ddx:M,ddy:k,sourceEvent:e,hover:function(){return W6V(e.clientX,e.clientY)}})}};
BCn=function(O,x,e){var l=Math.abs(x.clientX-O.x),C=Math.abs(x.clientY-O.y),Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e||x);!Q||YeL[Q.localName]&&Q.hasAttribute("disabled")||!(isNaN(l)||isNaN(C)||l<=25&&C<=25||mom(x))||O.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Q,"tap",{x:x.clientX,y:x.clientY,sourceEvent:x,preventer:e})};
vQm=function(O,x,e,l,C){var Q;C&&(Q=typeof e==="object"&&e!==null)&&(l=O.__dataTemp[x]);l=l!==e&&(l===l||e===e);Q&&l&&(O.__dataTemp[x]=e);return l};
JtN=function(){if($g&&!iD){if(!frm){frm=!0;var O=document.createElement("style");O.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(O)}return!0}return!1};
Sen=function(){return wNW};
jLN=function(O,x){wNW=O;Object.setPrototypeOf(O,x.prototype);new x;wNW=null};
NCV=function(O,x){for(var e=0;e<x.length;e++){var l=x[e];if(!!O!=!!l.__hideTemplateChildren__)if(l.nodeType===Node.TEXT_NODE)O?(l.__polymerTextContent__=l.textContent,l.textContent=""):l.textContent=l.__polymerTextContent__;else if(l.localName==="slot")if(O)l.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.sZ)((0,_.sZ)(l).parentNode).replaceChild(l.__polymerReplaced__,l);else{var C=l.__polymerReplaced__;C&&(0,_.sZ)((0,_.sZ)(C).parentNode).replaceChild(l,C)}else l.style&&(O?(l.__polymerDisplay__=
l.style.display,l.style.display="none"):l.style.display=l.__polymerDisplay__);l.__hideTemplateChildren__=O;l._showHideChildren&&l._showHideChildren(O)}};
gQ8=function(O){return(O=O.__dataHost)&&O._methodHost||O};
O0L=function(O,x,e){var l=e.mutableData?$oV:Ov;x_.mixin&&(l=x_.mixin(l));var C=function(){return l.apply(this,arguments)||this};
_.c(C,l);C.prototype.__templatizeOptions=e;C.prototype._bindTemplate(O);iIV(C,O,x,e);return C};
QKr=function(O,x,e,l){var C=e.forwardHostProp;if(C&&x.hasHostProps){var Q=O.localName=="template",L=x.templatizeTemplateClass;if(!L){if(Q){var k=e.mutableData?xis:eIV;L=function(){return k.apply(this,arguments)||this};
_.c(L,k);L=x.templatizeTemplateClass=L}else{var M=O.constructor;L=function(){return M.apply(this,arguments)||this};
_.c(L,M);L=x.templatizeTemplateClass=L}var G=x.hostProps,X;for(X in G)L.prototype._addPropertyEffect("_host_"+X,L.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:lOs(C)}),L.prototype._createNotifyingProperty("_host_"+X);el&&l&&Cm$(x,e,l)}O.__dataProto&&Object.assign(O.__data,O.__dataProto);if(Q)jLN(O,L),O.__dataTemp={},O.__dataPending=null,O.__dataOld=null,O._enableProperties();else{Object.setPrototypeOf(O,L.prototype);x=x.hostProps;for(var y in x)y="_host_"+y,y in O&&(x=O[y],delete O[y],O.__data[y]=
x)}}};
lOs=function(O){return function(x,e,l){O.call(x.__templatizeOwner,e.substring(6),l[e])}};
iIV=function(O,x,e,l){var C=e.hostProps||{},Q;for(Q in l.instanceProps){delete C[Q];var L=l.notifyInstanceProp;L&&O.prototype._addPropertyEffect(Q,O.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:b0r(L)})}if(l.forwardHostProp&&x.__dataHost)for(var k in C)e.hasHostProps||(e.hasHostProps=!0),O.prototype._addPropertyEffect(k,O.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:T4W()})};
b0r=function(O){return function(x,e,l){O.call(x.__templatizeOwner,x,e,l[e])}};
T4W=function(){return function(O,x,e){O.__dataHost._setPendingPropertyOrPath("_host_"+x,e[x],!0,!0)}};
x_=function(O,x,e){if(lO&&!gQ8(O))throw Error("Nd");e=e||{};if(O.__templatizeOwner)throw Error("Od");O.__templatizeOwner=x;var l=(x?x.constructor:Ov)._parseTemplate(O),C=l.templatizeInstanceClass;C||(C=O0L(O,l,e),l.templatizeInstanceClass=C);var Q=gQ8(O);QKr(O,l,e,Q);e=function(){return C.apply(this,arguments)||this};
_.c(e,C);e.prototype._methodHost=Q;e.prototype.__dataHost=O;e.prototype.__templatizeOwner=x;e.prototype.__hostProps=l.hostProps;return e};
Cm$=function(O,x,e){e=e.constructor._properties;O=O.propertyEffects;x=x.instanceProps;for(var l in O)if(!(e[l]||x&&x[l]))for(var C=O[l],Q=0;Q<C.length;Q++){var L=C[Q].info.part;if(!L.signature||!L.signature.static){console.warn("Property '"+l+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Lt8=function(O,x){for(var e;x;)if(e=x.__dataHost?x:x.__templatizeInstance)if(e.__dataHost!=O)x=e.__dataHost;else return e;else x=(0,_.sZ)(x).parentNode;return null};
CG=function(O){return O.localName==="slot"};
kBr=function(){for(var O=QS.prototype,x="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),e={},l=0;l<x.length;e={method$jscomp$33:void 0},l++)e.method$jscomp$33=x[l],O[e.method$jscomp$33]=function(C){return function(){return this.node[C.method$jscomp$33].apply(this.node,arguments)}}(e)};
AOs=function(O,x){for(var e={},l=0;l<x.length;e={name$jscomp$448:void 0},l++)e.name$jscomp$448=x[l],Object.defineProperty(O,e.name$jscomp$448,{get:function(C){return function(){return this.node[C.name$jscomp$448]}}(e),
configurable:!0})};
MJ$=function(){for(var O=QS.prototype,x=["textContent","innerHTML","className"],e={},l=0;l<x.length;e={name$jscomp$449:void 0},l++)e.name$jscomp$449=x[l],Object.defineProperty(O,e.name$jscomp$449,{get:function(C){return function(){return this.node[C.name$jscomp$449]}}(e),
set:function(C){return function(Q){this.node[C.name$jscomp$449]=Q}}(e),
configurable:!0})};
Dir=function(){bO=document.documentElement.getAttribute("dir");bO=document.documentElement.getAttribute("dir");for(var O=0;O<TS.length;O++){var x=TS[O];x.__autoDirOptOut||x.setAttribute("dir",bO)}};
oir=function(){LG=!0;requestAnimationFrame(function(){LG=!1;GBr(Ftr);setTimeout(function(){for(var O=0,x=k_.length;O<x;O++)XML(k_.shift())})})};
GBr=function(O){for(;O.length;)XML(O.shift())};
XML=function(O){var x=O[0],e=O[1];O=O[2];try{e.apply(x,O)}catch(l){setTimeout(function(){throw l;})}};
_.yOi=function(O,x,e){LG||oir();Ftr.push([O,x,e])};
_.A_=function(O,x,e){LG||oir();k_.push([O,x,e])};
tJL=function(O,x){x=x===void 0?!1:x;if(!Z08||!Eii||!Z08.handlesDynamicScoping)return null;var e=Eii.ScopingShim;if(!e)return null;var l=e.scopeForNode(O),C=(0,_.sZ)(O).getRootNode(),Q=function(L){if((0,_.sZ)(L).getRootNode()===C){var k=Array.from(Z08.nativeMethods.querySelectorAll.call(L,"*"));k.push(L);for(L=0;L<k.length;L++){var M=k[L];if((0,_.sZ)(M).getRootNode()===C){var G=e.currentScopeForNode(M);G!==l&&(G!==""&&e.unscopeNode(M,G),e.scopeNode(M,l))}}}};
Q(O);return x?(x=new MutationObserver(function(L){for(var k=0;k<L.length;k++)for(var M=L[k],G=0;G<M.addedNodes.length;G++){var X=M.addedNodes[G];X.nodeType===Node.ELEMENT_NODE&&Q(X)}}),x.observe(O,{childList:!0,
subtree:!0}),x):null};
qaw=function(){document.body.removeAttribute("unresolved")};
pMr=function(O){var x=O=O.replace(Pmw,"").replace(cO8,""),e=new IO8;e.start=0;e.end=x.length;for(var l=e,C=0,Q=x.length;C<Q;C++)if(x[C]==="{"){l.rules||(l.rules=[]);var L=l,k=L.rules[L.rules.length-1]||null;l=new IO8;l.start=C+1;l.parent=L;l.previous=k;L.rules.push(l)}else x[C]==="}"&&(l.end=C+1,l=l.parent||e);return VJ$(e,O)};
VJ$=function(O,x){var e=x.substring(O.start,O.end-1);O.parsedCssText=O.cssText=e.trim();O.parent&&(e=x.substring(O.previous?O.previous.end:O.parent.start,O.start-1),e=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e),e=e.replace(RIs," "),e=e.substring(e.lastIndexOf(";")+1),e=O.parsedSelector=O.selector=e.trim(),O.atRule=e.indexOf("@")===0,O.atRule?e.indexOf("@media")===0?O.type=4:e.match(Ui8)&&(O.type=7,O.keyframesName=O.selector.split(RIs).pop()):e.indexOf("--")===
0?O.type=1E3:O.type=1);if(e=O.rules)for(var l=0,C=e.length,Q=void 0;l<C&&(Q=e[l]);l++)VJ$(Q,x);return O};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(O){return O.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var x=arguments[1],e=6-x.length;e--;)x="0"+x;return"\\"+x})};
aOn=function(O,x,e){e=e===void 0?"":e;var l="";if(O.cssText||O.rules){var C=O.rules;if(C&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(C))for(var Q=0,L=C.length,k=void 0;Q<L&&(k=C[Q]);Q++)l=aOn(k,x,l);else x?x=O.cssText:(x=O.cssText,x=x.replace(min,"").replace(sKL,""),x=x.replace(Wt7,"").replace(hIr,"")),(l=x.trim())&&(l="  "+l+"\n")}l&&(O.selector&&(e+=O.selector+" {\n"),e+=l,O.selector&&(e+="}\n\n"));return e};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(O){O=O[0];return!!O&&!!O.selector&&O.selector.indexOf("--")===0};
rOr=function(O){if(O=zI$[O])O._applyShimCurrentVersion=O._applyShimCurrentVersion||0,O._applyShimValidatingVersion=O._applyShimValidatingVersion||0,O._applyShimNextVersion=(O._applyShimNextVersion||0)+1};
H0L=function(O){return O._applyShimCurrentVersion===O._applyShimNextVersion};
diw=function(O){O._applyShimValidatingVersion=O._applyShimNextVersion;O._validating||(O._validating=!0,Ktr.then(function(){O._applyShimCurrentVersion=O._applyShimNextVersion;O._validating=!1}))};
ulm=function(O){if(!O)return"";typeof O==="string"&&(O=pMr(O));return aOn(O,niV)};
Yaw=function(O){!O.__cssRules&&O.textContent&&(O.__cssRules=pMr(O.textContent));return O.__cssRules||null};
vi7=function(O,x,e,l){if(O){var C=!1,Q=O.type;if(l&&Q===4){var L=O.selector.match(B4w);L&&(window.matchMedia(L[1]).matches||(C=!0))}Q===1?x(O):e&&Q===7?e(O):Q===1E3&&(C=!0);if((O=O.rules)&&!C)for(C=0,Q=O.length,L=void 0;C<Q&&(L=O[C]);C++)vi7(L,x,e,l)}};
fOW=function(O,x){var e=O.indexOf("var(");if(e===-1)return x(O,"","","");a:{var l=0;var C=e+3;for(var Q=O.length;C<Q;C++)if(O[C]==="(")l++;else if(O[C]===")"&&--l===0)break a;C=-1}l=O.substring(e+4,C);e=O.substring(0,e);O=fOW(O.substring(C+1),x);Q=l.indexOf(",");if(Q===-1)return x(e,l.trim(),"",O);C=l.substring(0,Q).trim();l=l.substring(Q+1).trim();return x(e,C,l,O)};
JO8=function(O){if(My!==void 0)return My;if(O.__cssBuild===void 0){var x=O.getAttribute("css-build");if(x)O.__cssBuild=x;else{a:{x=O.localName==="template"?O.content.firstChild:O.firstChild;if(x instanceof Comment&&(x=x.textContent.trim().split(":"),x[0]==="css-build")){x=x[1];break a}x=""}if(x!==""){var e=O.localName==="template"?O.content.firstChild:O.firstChild;e.parentNode.removeChild(e)}O.__cssBuild=x}}return O.__cssBuild||""};
Sas=function(O,x,e,l){for(var C=x._noAccessors,Q=Object.getOwnPropertyNames(x),L=0;L<Q.length;L++){var k=Q[L];if(!(k in l))if(C)O[k]=x[k];else{var M=Object.getOwnPropertyDescriptor(x,k);M&&(M.configurable=!0,Object.defineProperty(O,k,M))}}for(var G in wML)x[G]&&(e[G]=e[G]||[],e[G].push(x[G]))};
jKn=function(O,x,e){x=x||[];for(var l=O.length-1;l>=0;l--){var C=O[l];C?Array.isArray(C)?jKn(C,x):x.indexOf(C)<0&&(!e||e.indexOf(C)<0)&&x.unshift(C):console.warn("behavior is null, check for missing or 404 import")}return x};
N4r=function(O,x){for(var e in x){var l=O[e],C=x[e];O[e]=!("value"in C)&&l&&"value"in l?Object.assign({value:l.value},C):C}};
i0r=function(O,x,e){var l={},C=function(){return x.apply(this,arguments)||this};
_.c(C,x);C._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(L)for(var M=0,G;M<L.length;M++)G=L[M],G.properties&&this.createProperties(G.properties),G.observers&&this.createObservers(G.observers,G.properties);O.properties&&this.createProperties(O.properties);O.observers&&this.createObservers(O.observers,O.properties);this._prepareTemplate()}else x._finalizeClass.call(this)};
C.prototype.created=function(){x.prototype.created.call(this);var M=l.created;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
C.prototype._registered=function(){var M=C.prototype;if(!M.hasOwnProperty("__hasRegisterFinished")){M.__hasRegisterFinished=!0;x.prototype._registered.call(this);$g&&k(M);M=Object.getPrototypeOf(this);var G=l.beforeRegister;if(G)for(var X=0;X<G.length;X++)G[X].call(M);if(G=l.registered)for(X=0;X<G.length;X++)G[X].call(M)}};
C.prototype._applyListeners=function(){x.prototype._applyListeners.call(this);var M=l.listeners;if(M)for(var G=0;G<M.length;G++){var X=M[G];if(X)for(var y in X)this._addMethodEventListenerToNode(this,y,X[y])}};
C.prototype._ensureAttributes=function(){var M=l.hostAttributes;if(M)for(var G=M.length-1;G>=0;G--){var X=M[G],y;for(y in X)this._ensureAttribute(y,X[y])}x.prototype._ensureAttributes.call(this)};
C.prototype.ready=function(){x.prototype.ready.call(this);var M=l.ready;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
C.prototype.attached=function(){x.prototype.attached.call(this);var M=l.attached;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
C.prototype.detached=function(){x.prototype.detached.call(this);var M=l.detached;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
C.prototype.attributeChanged=function(M,G,X){x.prototype.attributeChanged.call(this);var y=l.attributeChanged;if(y)for(var Z=0;Z<y.length;Z++)y[Z].call(this,M,G,X)};
_.Dy.Object.defineProperties(C,{properties:{configurable:!0,enumerable:!0,get:function(){var M={};if(L)for(var G=0;G<L.length;G++)N4r(M,L[G].properties);N4r(M,O.properties);return M}},
observers:{configurable:!0,enumerable:!0,get:function(){var M=[];if(L)for(var G=0,X;G<L.length;G++)X=L[G],X.observers&&(M=M.concat(X.observers));O.observers&&(M=M.concat(O.observers));return M}}});
if(e){Array.isArray(e)||(e=[e]);var Q=x.prototype.behaviors;var L=jKn(e,null,Q);C.prototype.behaviors=Q?Q.concat(e):L}var k=function(M){if(L)for(var G=L,X=0;X<G.length;X++)Sas(M,G[X],l,giV);Sas(M,O,l,$ir)};
$g||k(C.prototype);C.generatedFrom=O;return C};
lgr=function(O){var x=typeof O!=="string"?O:{is:O,notifyObserversOnUndefined:!0};x.fastInit===void 0&&(x.fastInit=!0);return function(e){if(!x.disableInheritanceCheck&&Object.getPrototypeOf(e.prototype).constructor!==_.GS)throw Error("Sd");var l=e.prototype;l.is=x.is;Lz$(l,"created",function(){this.hostElement=this;this.polymerController=this});
Ols(l,e,x.fastInit);x.notifyObserversOnUndefined&&(l._overrideLegacyUndefined=!0);if(xp8)for(var C=_.T(Object.getOwnPropertyNames(l)),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var L=Object.getOwnPropertyDescriptor(l,Q);L.enumerable===!1&&(L.enumerable=!0,Object.defineProperty(l,Q,L))}if("template"in e)var k=function(){return e.template};
else x.template!==void 0&&(k=x.template);if(k!==void 0){var M;Object.defineProperty(l,"_template",{get:function(){M===void 0&&(M=k());return M},
set:function(G){M=G},
configurable:!0,enumerable:!0})}Polymer(l);e[e0m]=l}};
Cfn=function(O){O=O===void 0?{}:O;O.fastInit===void 0&&(O.fastInit=!0);return function(x){if(!O.disableInheritanceCheck&&Object.getPrototypeOf(x.prototype).constructor!==Fp)throw Error("Td");Ols(x.prototype,x,O.fastInit)}};
Ols=function(O,x,e){e=e===void 0?!1:e;QsL(x);e?Lz$(O,"created",function(){this.disableEnforceFastDefaultValuesCheck||bli(x,this)}):Lz$(O,"ready",function(){for(var l={},C=_.T(k_L(this.behaviors)),Q=C.next();!Q.done;Q=C.next())Q=Q.value,Q.properties&&Object.assign(l,Tpr(this,Q.properties));
Object.assign(l,Tpr(this,this.properties));bli(x,this);C=_.T(Object.keys(l));for(Q=C.next();!Q.done;Q=C.next())Q=Q.value,this[Q]=l[Q]})};
bli=function(O,x){if(xp8){O=new O;for(var e=_.T(Object.getOwnPropertyNames(O)),l=e.next();!l.done;l=e.next())l=l.value,x[l]=O[l];for(e=x;e&&e!==Object.prototype;e=Object.getPrototypeOf(e)){l=_.T(Object.getOwnPropertyNames(e));for(var C=l.next();!C.done;C=l.next())C=C.value,O.hasOwnProperty(C)||Object.defineProperty(O,C,Ln$(x,C))}}else O.apply(x)};
Ln$=function(O,x){return{get:function(){var e=O[x];return e instanceof Function?e.bind(O):e},
set:function(e){O[x]=e}}};
Tpr=function(O,x){if(!x)return{};for(var e={},l=_.T(Object.keys(x)),C=l.next();!C.done;C=l.next())if(C=C.value,!x[C].readOnly){var Q=O[C];Q!==void 0&&(e[C]=Q)}return e};
QsL=function(O){var x=new O;O=O.prototype.properties||{};for(var e=_.T(Object.keys(O)),l=e.next();!l.done;l=e.next())if(l=l.value,x.hasOwnProperty(l)){var C=O[l];typeof C==="function"&&(O[l]=C={type:C});x[l]!=null&&C.type===Object&&(C.type=k37(x[l].constructor))}};
k37=function(O){for(var x=_.T(Ali),e=x.next();!e.done;e=x.next())if(e=e.value,O===e)return e;return Object};
MW8=function(O){return function(x,e){x.behaviors=x.behaviors||[];x.behaviors.push(O||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",x,e).prototype:void 0));Object.defineProperty(x,e,{get:function(){return this},
enumerable:!0,configurable:!0})}};
Dpr=function(O){O=O===void 0?{}:O;return function(x,e){x.properties=x.properties||{};O.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?O.type=k37(Reflect.getMetadata("design:type",x,e)):O.type=String);var l=O,C=x.properties[e];x.properties[e]=C?Object.assign({},C,l):l}};
G3m=function(O){return function(x,e){x.listeners=x.listeners||{};x.listeners[O]=e}};
Fni=function(){var O=_.vw.apply(0,arguments);if(O.length===0)throw Error("Ud");return function(x,e){x.observers=x.observers||[];x.observers.push(e+"("+O.join(",")+")")}};
XSr=function(){var O=_.vw.apply(0,arguments);return function(x,e,l){var C=Object.getOwnPropertyDescriptor(x,e).get,Q="__compute__"+e;Object.defineProperty(x,Q,{value:C,enumerable:!0});x.properties=x.properties||{};C=x.properties[e];C||(C={},x.properties[e]=C);C.computed=Q+"("+O.join(",")+")";l.get=void 0}};
_.Xp=function(O,x,e){_.h0.call(this);this.JSC$11310_id_=null;this.usingListeners_=!1;this.JSC$11310_listener_=O;this.handler_=e;this.JSC$11310_win_=x||window;this.callback_=(0,_.z8)(this.JSC$11312_doAction_,this)};
op=function(O){this.range_=O};
yS=function(O){this.range_=O};
qy=function(O,x,e){_.h0.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=O;this.scrollTimer_=new _.Zy(50);this.JSC$11389_eventHandler_=new _.Ev(this);this.scrollDelta_=new _.dc;this.containerIsActuallyContent_=O.tagName==="BODY"||O.tagName==="HTML";this.containerBounds_=o4L(O);this.containerIsActuallyContent_&&(O=_.Rn(),this.containerBounds_.height=O.height,this.containerBounds_.width=O.width);this.margin_=x||0;if(x){if(x=this.containerBounds_.clone(),O=this.margin_){var l=
Math.min(O,x.height*.25);x.top+=l;x.height-=2*l;O=Math.min(O,x.width*.25);x.left+=O;x.width-=2*O}}else x=this.containerBounds_;this.scrollBounds_=x;e||this.JSC$11389_eventHandler_.listen(_.BX(this.containerNode_),"mousemove",this.JSC$11391_onMouseMove);this.JSC$11389_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11391_onTick_)};
_.Po=function(O){this.mechanism=O};
co=function(O,x){this.JSC$11487_key_=O;this.JSC$11487_value_=x};
ZlL=function(O){if(O>=55296&&O<=57343||O>1114111)return"\ufffd";O in ylL&&(O=ylL[O]);var x="";O>65535&&(O-=65536,x+=String.fromCharCode(O>>>10&1023|55296),O=56320|O&1023);return x+=String.fromCharCode(O)};
E4r=function(O,x){return O<x?1:-1};
q5n=function(){return function(O){return O.charAt(1)==="#"?O.charAt(2)==="X"||O.charAt(2)==="x"?ZlL(parseInt(O.substr(3),16)):ZlL(parseInt(O.substr(2),10)):tW8[O.slice(1,-1)]}};
Ign=function(O){return O.slice(1,O.length-1).trim().replace(PfW,function(x){return clN[x]||" "})};
Ip=function(O){return O===32||O===9};
VS=function(O,x){return x<O.length?O.charCodeAt(x):-1};
VWr=function(O){for(;O;){if(O._lastLineBlank)return!0;var x=O.type;if(x==="list"||x==="item")O=O._lastChild;else break}return!1};
pG=function(O){if(pSL.test(O)){var x=1,e=0,l=0;for(O[e]=="|"&&e++;e<O.length;){switch(O[e]){case "|":l=1;break;case " ":break;case "\t":break;default:l&&(l=0,x++)}e++}return R0$.test(O)?-x:x}return 0};
Upi=function(O){return O=="table"||O=="row"||O=="cell"};
agW=function(){return new Rp("document",[[1,1],[0,0]])};
mpN=function(){};
Uv=function(){var O={safe:!1};O=O||{};O.softbreak=O.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=O};
rlW=function(O,x){var e="";if(O)if(O=O.toLowerCase(),O===" "||ssm.test(O))e="space";else if(Wn8.test(O))e="esc";else if(O.length==1){if(!x||h0i.test(O))e=O}else e=z0$.test(O)?O.replace("arrow",""):O=="multiply"?"*":O;return e};
n4V=function(O,x){var e=O.hasModifiers;if(x.key)e=rlW(x.key,e);else if(x.detail&&x.detail.key)e=rlW(x.detail.key,e);else{e=x.keyIdentifier;var l="";e&&(e in Hlm?l=Hlm[e]:KnV.test(e)?(e=parseInt(e.replace("U+","0x"),16),l=String.fromCharCode(e).toLowerCase()):l=e.toLowerCase());(e=l)||(e=x.keyCode,l="",Number(e)&&(e>=65&&e<=90?l=String.fromCharCode(32+e):e>=112&&e<=123?l="f"+(e-112+1):e>=48&&e<=57?l=String(e-48):e>=96&&e<=105?l=String(e-96):l=dpN[e]),e=l);e=e||""}return e===O.key&&(!O.hasModifiers||
!!x.shiftKey===!!O.shiftKey&&!!x.ctrlKey===!!O.ctrlKey&&!!x.altKey===!!O.altKey&&!!x.metaKey===!!O.metaKey)};
Y5i=function(O){return O.length===1?{combo:O,key:O,event:"keydown"}:O.split("+").reduce(function(x,e){var l=e.split(":");e=l[0];l=l[1];e in ubL?(x[ubL[e]]=!0,x.hasModifiers=!0):(x.key=e,x.event=l||"keydown");return x},{combo:O.split(":").shift()})};
BpV=function(O){return O.trim().split(" ").map(function(x){return Y5i(x)})};
v4r=function(O,x){if(O&&O.fn){var e=O.fn;O.fn=function(){try{e.apply(this,arguments)}catch(l){if(l instanceof ap)console.warn("Argument '"+l.arg+"'"+(x?" for method '"+x+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw l;}}}return O};
fgi=function(){var O=_.vw.apply(0,arguments);return O.length===0?function(x){return x}:O.length===1?O[0]:O.reduce(function(x,e){return function(){return x(e.apply(null,_.Kx(_.vw.apply(0,arguments))))}})};
Jlm=function(){var O=_.vw.apply(0,arguments);return function(x){return function(e,l){e=x(e,l);var C=function(){throw Error("Ee");},Q={getState:e.getState,
dispatch:function(L){return C.apply(null,[L].concat(_.Kx(_.vw.apply(1,arguments))))}};
l=O.map(function(L){return L(Q)});
C=fgi.apply(null,_.Kx(l))(e.dispatch);return Object.assign({},e,{dispatch:C})}}};
jsi=function(O){Object.keys(O).forEach(function(x){var e=O[x];if(typeof e(void 0,{type:wSw})==="undefined")throw Error("Fe`"+x);if(typeof e(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+S5W()})==="undefined")throw Error("Ge`"+x+"`"+wSw);})};
mN=function(O){for(var x=Object.keys(O),e={},l=0;l<x.length;l++){var C=x[l];typeof O[C]==="function"&&(e[C]=O[C])}var Q=Object.keys(e);try{jsi(e)}catch(k){var L=k}return function(k,M){k=k===void 0?{}:k;if(L)throw L;for(var G=!1,X={},y=0;y<Q.length;y++){var Z=Q[y],E=k[Z],P=(0,e[Z])(E,M);if(typeof P==="undefined")throw k=M&&M.type,Error("He`"+(k?'"'+String(k)+'"':"(unknown type)")+"`"+Z);X[Z]=P;G=G||P!==E}return(G=G||Q.length!==Object.keys(k).length)?X:k}};
NpN=function(O,x,e){function l(){if(X)throw Error("Ie");return k}
function C(E){if(typeof E!=="function")throw Error("Je`"+typeof E);if(X)throw Error("Ke");var P=!0;G===M&&(G=M.slice());G.push(E);return function(){if(P){if(X)throw Error("Le");P=!1;G===M&&(G=M.slice());var U=G.indexOf(E);G.splice(U,1);M=null}}}
function Q(E){if(typeof E!=="object"||E===null)var P=!1;else{for(P=E;Object.getPrototypeOf(P)!==null;)P=Object.getPrototypeOf(P);P=Object.getPrototypeOf(E)===P}if(!P)throw Error("Me`"+typeof E);if(typeof E.type==="undefined")throw Error("Ne");if(X)throw Error("Oe");try{X=!0,k=L(k,E)}finally{X=!1}P=M=G;for(var U=0;U<P.length;U++)(0,P[U])();return E}
if(typeof x==="function"&&typeof e==="function"||typeof e==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof x==="function"&&typeof e==="undefined"&&(e=x,x=void 0);if(typeof e!=="undefined"){if(typeof e!=="function")throw Error("Qe`"+typeof e);return e(NpN)(O,x)}if(typeof O!=="function")throw Error("Re`"+typeof O);var L=O,k=x,M=[],G=M,X=!1;Q({type:wSw});var y={},Z=(y.dispatch=Q,y.subscribe=C,y.getState=l,y.replaceReducer=function(E){if(typeof E!=="function")throw Error("Se`"+
typeof E);L=E;Q({type:g4N});return Z},y[$pr]=function(){var E={};
return E.subscribe=function(P){function U(){P.next&&P.next(l())}
if(typeof P!=="object"||P===null)throw new TypeError("Te`"+typeof P);U();return{unsubscribe:C(U)}},E[$pr]=function(){return this},E},y);
return Z};
ilL=function(O){function x(){C&&(C=!1,O());Q&&l()}
function e(){requestAnimationFrame(x)}
function l(){var k=Date.now();if(C){if(k-L<2)return;Q=!0}else C=!0,Q=!1,setTimeout(e,20);L=k}
var C=!1,Q=!1,L=0;return l};
sv=function(O){return typeof O==="number"?O:parseFloat(O)||0};
Orr=function(O){return _.vw.apply(1,arguments).reduce(function(x,e){return x+sv(O["border-"+e+"-width"])},0)};
Cew=function(O){if(xZN[O])return xZN[O];var x=globalThis[O],e=x.prototype,l=O in eFw?eFw[O]:void 0;l=!(!l||!l.every(function(M){var G,X;return!!((G=Object.getOwnPropertyDescriptor(e,M))==null?0:(X=G.get)==null?0:X.toString().includes("[native code]"))}));
var C=O in lNr?lNr[O]:void 0;C=!(!C||!C.every(function(M){var G;return typeof e[M]==="function"&&((G=e[M])==null?void 0:G.toString().includes("[native code]"))}));
if(l&&C&&!globalThis.Zone)return xZN[O]=x.prototype;try{var Q=document.createElement("iframe");document.body.appendChild(Q);var L=Q.contentWindow;if(!L)return x.prototype;var k=L[O].prototype;document.body.removeChild(Q);return k?xZN[O]=k:e}catch(M){return e}};
Wo=function(O,x,e){var l=O+"."+String(e);if(Qji[l])return Qji[l].call(x);O=Cew(O);var C;O=(C=Object.getOwnPropertyDescriptor(O,e))==null?void 0:C.get;if(!O)return x[e];Qji[l]=O;return O.call(x)};
TF7=function(O,x){var e="Node."+String(x);if(brs[e])return brs[e].bind(O);var l=Cew("Node")[x];if(typeof l!=="function")return O[x];brs[e]=l;return l.bind(O)};
h_=function(O,x,e){try{if(!(x in O))return function(){};
var l=O[x],C=e(l);typeof C==="function"&&(C.prototype=C.prototype||{},Object.defineProperties(C,{__rrweb_original__:{enumerable:!1,value:l}}));O[x]=C;return function(){O[x]=l}}catch(Q){return function(){}}};
Ho=function(O){var x=O&&"host"in O&&"mode"in O&&zS(O)||null;return!!(x&&"shadowRoot"in x&&rM(x)===O)};
KG=function(O){return Object.prototype.toString.call(O)==="[object ShadowRoot]"};
Ldr=function(O){O.includes(" background-clip: text;")&&!O.includes(" -webkit-background-clip: text;")&&(O=O.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return O};
AfL=function(O){try{var x=O.rules||O.cssRules;if(!x)return null;var e=O.href;!e&&O.ownerNode&&O.ownerNode.ownerDocument&&(e=O.ownerNode.ownerDocument.location.href);var l=Array.from(x,function(C){return kaL(C,e)}).join("");
return Ldr(l)}catch(C){return null}};
kaL=function(O,x){if("styleSheet"in O){try{var e;if(!(e=AfL(O.styleSheet))){var l=O.cssText;if(l.split('"').length<3)e=l;else{var C=["@import","url("+JSON.stringify(O.href)+")"];O.layerName===""?C.push("layer"):O.layerName&&C.push("layer("+O.layerName+")");O.supportsText&&C.push("supports("+O.supportsText+")");O.media.length&&C.push(O.media.mediaText);e=C.join(" ")+";"}}var Q=e}catch(L){Q=O.cssText}return O.styleSheet.href?MdN(Q,O.styleSheet.href):Q}Q=O.cssText;"selectorText"in O&&O.selectorText.includes(":")&&
(Q=Q.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return x?MdN(Q,x):Q};
DZm=function(O){var x=O.element;var e=O.maskInputOptions;var l=O.tagName;var C=O.type;var Q=O.value;O=O.maskInputFn;Q=Q||"";C=C&&C.toLowerCase();if(e[l.toLowerCase()]||C&&e[C])Q=O?O(Q,x):"*".repeat(Q.length);return Q};
Gaw=function(O){var x=O.getContext("2d");if(!x)return!0;for(var e=0;e<O.width;e+=50)for(var l=0;l<O.height;l+=50){var C=x.getImageData;if((new Uint32Array(("__rrweb_original__"in C?C.__rrweb_original__:C).call(x,e,l,Math.min(50,O.width-e),Math.min(50,O.height-l)).data.buffer)).some(function(Q){return Q!==0}))return!1}return!0};
Fdi=function(O){var x=O.type;return O.hasAttribute("data-rr-is-password")?"password":x?x.toLowerCase():null};
XFV=function(O){try{var x=new URL(O,window.location.href)}catch(C){return null}var e,l;return(l=(e=x.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:e[1])!=null?l:null};
MdN=function(O,x){return(O||"").replace(ouW,function(e,l,C,Q,L,k){C=C||L||k;l=l||Q||"";if(!C)return e;if(yfV.test(C)||ZrL.test(C)||EuV.test(C))return"url("+l+C+l+")";if(C[0]==="/")return e=x.indexOf("//")>-1?x.split("/").slice(0,3).join("/"):x.split("/")[0],e=e.split("?")[0],"url("+l+(e+C)+l+")";e=x.split("/");Q=C.split("/");e.pop();Q=_.T(Q);for(C=Q.next();!C.done;C=Q.next())C=C.value,C!=="."&&(C===".."?e.pop():e.push(C));return"url("+l+e.join("/")+l+")"})};
tdN=function(O,x){return(x=x===void 0?!1:x)?O.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):O.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
qK8=function(O,x){var e=e===void 0?!1:e;x=Array.from(x.childNodes);var l=[],C=0;if(x.length>1&&O&&typeof O==="string")for(var Q=tdN(O,e),L=Q.length/O.length,k=1;k<x.length;k++)if(x[k].textContent&&typeof x[k].textContent==="string"){for(var M=tdN(x[k].textContent,e),G=3;G<M.length&&(M[G].match(/[a-zA-Z0-9]/)||M.indexOf(M.substring(0,G),1)!==-1);G++);for(;G<M.length;G++){var X=M.substring(0,G),y=Q.split(X),Z=-1;if(y.length===2)Z=y[0].length;else if(y.length>2&&y[0]===""&&x[k-1].textContent!=="")Z=
Q.indexOf(X,1);else if(y.length===1){X=X.substring(0,X.length-1);y=Q.split(X);if(y.length<=1)return l.push(O),l;G=101}else G===M.length-1&&(Z=Q.indexOf(X));if(y.length>=2&&G>100){var E=x[k-1].textContent;E&&typeof E==="string"&&(Z=Q.indexOf(X,tdN(E).length));Z===-1&&(Z=y[0].length)}if(Z!==-1){for(M=Math.floor(Z/L);M>0&&M<O.length;){C+=1;if(C>50*x.length)return l.push(O),l;G=tdN(O.substring(0,M),e);if(G.length===Z){l.push(O.substring(0,M));O=O.substring(M);Q=Q.substring(Z);break}else M=G.length<Z?
M+Math.max(1,Math.floor((Z-G.length)/L)):M-Math.max(1,Math.floor((G.length-Z)*L))}break}}}l.push(O);return l};
cfm=function(){return Pes++};
VdV=function(O){if(O instanceof HTMLFormElement)return"form";O=O.tagName.toLowerCase();return INL.test(O)?"div":O};
aNi=function(O,x){function e(G){return(G=G.exec(x.substring(l)))?(G=G[0],l+=G.length,G):""}
if(x.trim()==="")return x;for(var l=0,C=[];;){e(pFL);if(l>=x.length)break;var Q=e(RFs);if(Q.slice(-1)===",")Q=UZm(O,Q.substring(0,Q.length-1)),C.push(Q);else{var L="";Q=UZm(O,Q);for(var k=!1;;){var M=x.charAt(l);if(M===""){C.push((Q+L).trim());break}else if(k)M===")"&&(k=!1);else if(M===","){l+=1;C.push((Q+L).trim());break}else M==="("&&(k=!0);L+=M;l+=1}}}return C.join(", ")};
UZm=function(O,x){return x&&x.trim()!==""?mZr(O,x):x};
mZr=function(O,x){var e=sjL.get(O);e||(e=O.createElement("a"),sjL.set(O,e));if(!x)x="";else if(x.startsWith("blob:")||x.startsWith("data:"))return x;J7(e,x);return e.href};
WdL=function(O,x,e,l){return l?e==="src"||e==="href"&&(x!=="use"||l[0]!=="#")||e==="xlink:href"&&l[0]!=="#"||e==="background"&&(x==="table"||x==="td"||x==="th")?UZm(O,l):e==="srcset"?aNi(O,l):e==="style"?MdN(l,mZr(O)):x==="object"&&e==="data"?UZm(O,l):l:l};
hFN=function(O,x){return(O==="video"||O==="audio")&&x==="autoplay"};
zFL=function(O,x,e){try{if(typeof x==="string"){if(O.classList.contains(x))return!0}else for(var l=O.classList.length;l--;)if(x.test(O.classList[l]))return!0;if(e)return O.matches(e)}catch(C){}return!1};
rfr=function(O,x,e){if(!O)return!1;if(O.nodeType!==O.ELEMENT_NODE)return e?rfr(dM(O),x,e):!1;for(var l=O.classList.length;l--;)if(x.test(O.classList[l]))return!0;return e?rfr(dM(O),x,e):!1};
HrN=function(O,x,e,l){if(O.nodeType===O.ELEMENT_NODE){if(!nG(O).length)return!1}else{if(uO(O)===null)return!1;O=uO(O)}try{if(typeof x==="string")if(l){if(O.closest("."+x))return!0}else{if(O.classList.contains(x))return!0}else if(rfr(O,x,l))return!0;if(e)if(l){if(O.closest(e))return!0}else if(O.matches(e))return!0}catch(C){}return!1};
KdW=function(O,x,e){var l=O.contentWindow;if(l){var C=!1;try{var Q=l.document.readyState}catch(k){return}if(Q!=="complete"){var L=setTimeout(function(){C||(x(),C=!0)},e);
O.addEventListener("load",function(){clearTimeout(L);C=!0;x()})}else l.location.href==="about:blank"&&O.src!=="about:blank"&&O.src!==""||setTimeout(x,0),O.addEventListener("load",x)}};
dZn=function(O,x,e){var l=!1;try{var C=O.sheet}catch(L){return}if(!C){var Q=setTimeout(function(){l||(x(),l=!0)},e);
O.addEventListener("load",function(){clearTimeout(Q);l=!0;x()})}};
YKN=function(O,x){var e=x.doc,l=x.blockClass,C=x.blockSelector,Q=x.needsMask,L=x.inlineStylesheet,k=x.maskInputOptions===void 0?{}:x.maskInputOptions,M=x.maskTextFn,G=x.maskInputFn,X=x.dataURLOptions===void 0?{}:x.dataURLOptions,y=x.inlineImages,Z=x.recordCanvas,E=x.keepIframeSrcFn,P=x.newlyAddedElement===void 0?!1:x.newlyAddedElement,U=x.cssCaptured===void 0?!1:x.cssCaptured;x=x.mirror;x.nodeMetaMap.has(e)?(x=x.getId(e),x=x===1?void 0:x):x=void 0;switch(O.nodeType){case O.DOCUMENT_NODE:return O.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:O.compatMode}:{type:0,childNodes:[]};case O.DOCUMENT_TYPE_NODE:return{type:1,name:O.name,publicId:O.publicId,systemId:O.systemId,rootId:x};case O.ELEMENT_NODE:return nun(O,{doc:e,blockClass:l,blockSelector:C,inlineStylesheet:L,maskInputOptions:k,maskInputFn:G,dataURLOptions:X,inlineImages:y,recordCanvas:Z,keepIframeSrcFn:E,newlyAddedElement:P,rootId:x});case O.TEXT_NODE:return L=(l=dM(O))&&l.tagName,l="",C=L==="STYLE"?!0:void 0,(L=L==="SCRIPT"?!0:void 0)?
l="SCRIPT_PLACEHOLDER":U||(l=uzr(O),C&&l&&(l=MdN(l,mZr(e)))),!C&&!L&&l&&Q&&(l=M?M(l,uO(O)):l.replace(/[\S]/g,"*")),{type:3,textContent:l||"",rootId:x};case O.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:x};case O.COMMENT_NODE:return{type:5,textContent:uzr(O)||"",rootId:x};default:return!1}};
nun=function(O,x){var e=x.doc,l=x.inlineStylesheet,C=x.maskInputOptions===void 0?{}:x.maskInputOptions,Q=x.maskInputFn,L=x.dataURLOptions===void 0?{}:x.dataURLOptions,k=x.inlineImages,M=x.recordCanvas,G=x.keepIframeSrcFn,X=x.newlyAddedElement===void 0?!1:x.newlyAddedElement,y=x.rootId;x=zFL(O,x.blockClass,x.blockSelector);for(var Z=VdV(O),E={},P=O.attributes.length,U=0;U<P;U++){var W=O.attributes[U];hFN(Z,W.name)||(E[W.name]=WdL(e,Z,W.name.toLowerCase(),W.value))}Z==="link"&&l&&(l=Array.from(e.styleSheets).find(function(Y){return Y.href===
O.href}),P=null,l&&(P=AfL(l)),P&&(delete E.rel,delete E.href,E._cssText=P));
Z==="style"&&O.sheet&&(l=AfL(O.sheet))&&(O.childNodes.length>1&&(l=qK8(l,O).join("/* rr_split */")),E._cssText=l);if(Z==="input"||Z==="textarea"||Z==="select")l=O.value,P=O.checked,E.type!=="radio"&&E.type!=="checkbox"&&E.type!=="submit"&&E.type!=="button"&&l?E.value=DZm({element:O,type:Fdi(O),tagName:Z,value:l,maskInputOptions:C,maskInputFn:Q}):P&&(E.checked=P);Z==="option"&&(O.selected&&!C.select?E.selected=!0:delete E.selected);Z==="dialog"&&O.open&&(E.rr_open_mode=O.matches("dialog:modal")?"modal":
"non-modal");Z==="canvas"&&M&&(O.__context==="2d"?Gaw(O)||(E.rr_dataURL=O.toDataURL(L.type,L.quality)):"__context"in O||(C=O.toDataURL(L.type,L.quality),Q=e.createElement("canvas"),Q.width=O.width,Q.height=O.height,Q=Q.toDataURL(L.type,L.quality),C!==Q&&(E.rr_dataURL=C)));if(Z==="img"&&k){Y_||(Y_=e.createElement("canvas"),BFV=Y_.getContext("2d"));var z=O.currentSrc||O.getAttribute("src")||"<unknown-src>",r=O.crossOrigin,f=function(){O.removeEventListener("load",f);try{Y_.width=O.naturalWidth,Y_.height=
O.naturalHeight,BFV.drawImage(O,0,0),E.rr_dataURL=Y_.toDataURL(L.type,L.quality)}catch(Y){if(O.crossOrigin!=="anonymous"){O.crossOrigin="anonymous";O.complete&&O.naturalWidth!==0?f():O.addEventListener("load",f);return}console.warn("Cannot inline img src="+z+"! Error: "+Y)}O.crossOrigin==="anonymous"&&(r?E.crossOrigin=r:O.removeAttribute("crossorigin"))};
O.complete&&O.naturalWidth!==0?f():O.addEventListener("load",f)}if(Z==="audio"||Z==="video")e=E,e.rr_mediaState=O.paused?"paused":"played",e.rr_mediaCurrentTime=O.currentTime,e.rr_mediaPlaybackRate=O.playbackRate,e.rr_mediaMuted=O.muted,e.rr_mediaLoop=O.loop,e.rr_mediaVolume=O.volume;X||(O.scrollLeft&&(E.rr_scrollLeft=O.scrollLeft),O.scrollTop&&(E.rr_scrollTop=O.scrollTop));x&&(X=O.getBoundingClientRect(),E={class:E.class,rr_width:X.width+"px",rr_height:X.height+"px"});Z!=="iframe"||G(E.src)||(O.contentDocument||
(E.rr_src=E.src),delete E.src);var u;try{customElements.get(Z)&&(u=!0)}catch(Y){}return{type:2,tagName:Z,attributes:E,childNodes:[],isSVG:!(O.tagName!=="svg"&&!O.ownerSVGElement)||void 0,needBlock:x,rootId:y,isCustom:u}};
Bo=function(O){return O===void 0||O===null?"":O.toLowerCase()};
vus=function(O,x){return x.comment&&O.type===5||O.type===2&&(x.script&&(O.tagName==="script"||O.tagName==="link"&&(O.attributes.rel==="preload"&&O.attributes.as==="script"||O.attributes.rel==="modulepreload")||O.tagName==="link"&&O.attributes.rel==="prefetch"&&typeof O.attributes.href==="string"&&XFV(O.attributes.href)==="js")||x.headFavicon&&(O.tagName==="link"&&O.attributes.rel==="shortcut icon"||O.tagName==="meta"&&(Bo(O.attributes.name).match(/^msapplication-tile(image|color)$/)||Bo(O.attributes.name)===
"application-name"||Bo(O.attributes.rel)==="icon"||Bo(O.attributes.rel)==="apple-touch-icon"||Bo(O.attributes.rel)==="shortcut icon"))||O.tagName==="meta"&&(x.headMetaDescKeywords&&Bo(O.attributes.name).match(/^description|keywords$/)||x.headMetaSocial&&(Bo(O.attributes.property).match(/^(og|twitter|fb):/)||Bo(O.attributes.name).match(/^(og|twitter):/)||Bo(O.attributes.name)==="pinterest")||x.headMetaRobots&&(Bo(O.attributes.name)==="robots"||Bo(O.attributes.name)==="googlebot"||Bo(O.attributes.name)===
"bingbot")||x.headMetaHttpEquiv&&O.attributes["http-equiv"]!==void 0||x.headMetaAuthorship&&(Bo(O.attributes.name)==="author"||Bo(O.attributes.name)==="generator"||Bo(O.attributes.name)==="framework"||Bo(O.attributes.name)==="publisher"||Bo(O.attributes.name)==="progid"||Bo(O.attributes.property).match(/^article:/)||Bo(O.attributes.property).match(/^product:/))||x.headMetaVerification&&(Bo(O.attributes.name)==="google-site-verification"||Bo(O.attributes.name)==="yandex-verification"||Bo(O.attributes.name)===
"csrf-token"||Bo(O.attributes.name)==="p:domain_verify"||Bo(O.attributes.name)==="verify-v1"||Bo(O.attributes.name)==="verification"||Bo(O.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
vo=function(O,x){var e=x.doc,l=x.mirror,C=x.blockClass,Q=x.blockSelector,L=x.maskTextClass,k=x.maskTextSelector,M=x.skipChild===void 0?!1:x.skipChild,G=x.inlineStylesheet===void 0?!0:x.inlineStylesheet,X=x.maskInputOptions===void 0?{}:x.maskInputOptions,y=x.maskTextFn,Z=x.maskInputFn,E=x.slimDOMOptions,P=x.dataURLOptions===void 0?{}:x.dataURLOptions,U=x.inlineImages===void 0?!1:x.inlineImages,W=x.recordCanvas===void 0?!1:x.recordCanvas,z=x.onSerialize,r=x.onIframeLoad,f=x.iframeLoadTimeout===void 0?
5E3:x.iframeLoadTimeout,u=x.onStylesheetLoad,Y=x.stylesheetLoadTimeout===void 0?5E3:x.stylesheetLoadTimeout,J=x.keepIframeSrcFn===void 0?function(){return!1}:x.keepIframeSrcFn,O8=x.newlyAddedElement===void 0?!1:x.newlyAddedElement,Xr=x.cssCaptured===void 0?!1:x.cssCaptured,Fr=x.needsMask,mL=x.preserveWhiteSpace===void 0?!0:x.preserveWhiteSpace;
Fr||(Fr=HrN(O,L,k,Fr===void 0));var Zn=YKN(O,{doc:e,mirror:l,blockClass:C,blockSelector:Q,needsMask:Fr,inlineStylesheet:G,maskInputOptions:X,maskTextFn:y,maskInputFn:Z,dataURLOptions:P,inlineImages:U,recordCanvas:W,keepIframeSrcFn:J,newlyAddedElement:O8,cssCaptured:Xr});if(!Zn)return console.warn(O,"not serialized"),null;O8=l.nodeMetaMap.has(O)?l.getId(O):vus(Zn,E)||!mL&&Zn.type===3&&!Zn.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Pes++;x=Object.assign(Zn,{id:O8});l.add(O,x);if(O8===-2)return null;
z&&z(O);O8=!M;x.type===2&&(O8=O8&&!x.needBlock,delete x.needBlock,(Xr=rM(O))&&KG(Xr)&&(x.isShadowHost=!0));if((x.type===0||x.type===2)&&O8){E.headWhitespace&&x.type===2&&x.tagName==="head"&&(mL=!1);M={doc:e,mirror:l,blockClass:C,blockSelector:Q,needsMask:Fr,maskTextClass:L,maskTextSelector:k,skipChild:M,inlineStylesheet:G,maskInputOptions:X,maskTextFn:y,maskInputFn:Z,slimDOMOptions:E,dataURLOptions:P,inlineImages:U,recordCanvas:W,preserveWhiteSpace:mL,onSerialize:z,onIframeLoad:r,iframeLoadTimeout:f,
onStylesheetLoad:u,stylesheetLoadTimeout:Y,keepIframeSrcFn:J,cssCaptured:!1};if(x.type!==2||x.tagName!=="textarea"||x.attributes.value===void 0)for(x.type===2&&x.attributes._cssText!==void 0&&typeof x.attributes._cssText==="string"&&(M.cssCaptured=!0),O8=_.T(Array.from(nG(O))),Xr=O8.next();!Xr.done;Xr=O8.next())(Xr=vo(Xr.value,M))&&x.childNodes.push(Xr);O8=null;if(O.nodeType===O.ELEMENT_NODE&&(O8=rM(O))){Xr=_.T(Array.from(nG(O8)));for(var q$=Xr.next();!q$.done;q$=Xr.next())if(q$=vo(q$.value,M))KG(O8)&&
(q$.isShadow=!0),x.childNodes.push(q$)}}(M=dM(O))&&Ho(M)&&KG(M)&&(x.isShadow=!0);x.type===2&&x.tagName==="iframe"&&KdW(O,function(){var KV=O.contentDocument;KV&&r&&(KV=vo(KV,{doc:KV,mirror:l,blockClass:C,blockSelector:Q,needsMask:Fr,maskTextClass:L,maskTextSelector:k,skipChild:!1,inlineStylesheet:G,maskInputOptions:X,maskTextFn:y,maskInputFn:Z,slimDOMOptions:E,dataURLOptions:P,inlineImages:U,recordCanvas:W,preserveWhiteSpace:mL,onSerialize:z,onIframeLoad:r,iframeLoadTimeout:f,onStylesheetLoad:u,stylesheetLoadTimeout:Y,
keepIframeSrcFn:J}))&&r(O,KV)},f);
x.type===2&&x.tagName==="link"&&typeof x.attributes.rel==="string"&&(x.attributes.rel==="stylesheet"||x.attributes.rel==="preload"&&typeof x.attributes.href==="string"&&XFV(x.attributes.href)==="css")&&dZn(O,function(){if(u){var KV=vo(O,{doc:e,mirror:l,blockClass:C,blockSelector:Q,needsMask:Fr,maskTextClass:L,maskTextSelector:k,skipChild:!1,inlineStylesheet:G,maskInputOptions:X,maskTextFn:y,maskInputFn:Z,slimDOMOptions:E,dataURLOptions:P,inlineImages:U,recordCanvas:W,preserveWhiteSpace:mL,onSerialize:z,
onIframeLoad:r,iframeLoadTimeout:f,onStylesheetLoad:u,stylesheetLoadTimeout:Y,keepIframeSrcFn:J});KV&&u(O,KV)}},Y);
return x};
fNW=function(O){var x=document;O=O||{};var e=O.maskAllInputs===void 0?!1:O.maskAllInputs,l=O.slimDOM===void 0?!1:O.slimDOM;return vo(x,{doc:x,mirror:O.mirror===void 0?new fG:O.mirror,blockClass:O.blockClass===void 0?"rr-block":O.blockClass,blockSelector:O.blockSelector===void 0?null:O.blockSelector,maskTextClass:O.maskTextClass===void 0?"rr-mask":O.maskTextClass,maskTextSelector:O.maskTextSelector===void 0?null:O.maskTextSelector,skipChild:!1,inlineStylesheet:O.inlineStylesheet===void 0?!0:O.inlineStylesheet,
maskInputOptions:e===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:e===!1?{password:!0}:e,maskTextFn:O.maskTextFn,maskInputFn:O.maskInputFn,slimDOMOptions:l===!0||l==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:l==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:l===!1?{}:l,dataURLOptions:O.dataURLOptions,
inlineImages:O.inlineImages===void 0?!1:O.inlineImages,recordCanvas:O.recordCanvas===void 0?!1:O.recordCanvas,preserveWhiteSpace:O.preserveWhiteSpace,onSerialize:O.onSerialize,onIframeLoad:O.onIframeLoad,iframeLoadTimeout:O.iframeLoadTimeout,onStylesheetLoad:O.onStylesheetLoad,stylesheetLoadTimeout:O.stylesheetLoadTimeout,keepIframeSrcFn:O.keepIframeSrcFn===void 0?function(){return!1}:O.keepIframeSrcFn,
newlyAddedElement:!1})};
J_=function(O,x,e){e=e===void 0?document:e;var l={capture:!0,passive:!0};e.addEventListener(O,x,l);return function(){return e.removeEventListener(O,x,l)}};
wM=function(O,x,e){e=e===void 0?{}:e;var l=null,C=0;return function(){var Q=_.vw.apply(0,arguments),L=Date.now();C||e.leading!==!1||(C=L);var k=x-(L-C),M=this;k<=0||k>x?(l&&(clearTimeout(l),l=null),C=L,O.apply(M,Q)):l||e.trailing===!1||(l=setTimeout(function(){C=e.leading===!1?0:Date.now();l=null;O.apply(M,Q)},k))}};
wFi=function(O,x,e,l,C){C=C===void 0?window:C;var Q=C.Object.getOwnPropertyDescriptor(O,x);C.Object.defineProperty(O,x,l?e:{set:function(L){var k=this;setTimeout(function(){e.set.call(k,L)},0);
Q&&Q.set&&Q.set.call(this,L)}});
return function(){return wFi(O,x,Q||{},!0)}};
SKm=function(O){var x=O.document,e,l,C,Q;return{left:x.scrollingElement?x.scrollingElement.scrollLeft:O.pageXOffset!==void 0?O.pageXOffset:x.documentElement.scrollLeft||(x==null?void 0:x.body)&&((e=uO(x.body))==null?void 0:e.scrollLeft)||(x==null?void 0:(l=x.body)==null?void 0:l.scrollLeft)||0,top:x.scrollingElement?x.scrollingElement.scrollTop:O.pageYOffset!==void 0?O.pageYOffset:(x==null?void 0:x.documentElement.scrollTop)||(x==null?void 0:x.body)&&((C=uO(x.body))==null?void 0:C.scrollTop)||(x==
null?void 0:(Q=x.body)==null?void 0:Q.scrollTop)||0}};
jjr=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
NFw=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
gum=function(O){return O?O.nodeType===O.ELEMENT_NODE?O:uO(O):null};
Sl=function(O,x,e,l){if(!O)return!1;O=gum(O);if(!O)return!1;try{if(typeof x==="string"){if(O.classList.contains(x)||l&&O.closest("."+x)!==null)return!0}else if(rfr(O,x,l))return!0}catch(C){}return e&&(O.matches(e)||l&&O.closest(e)!==null)?!0:!1};
$Zs=function(O,x,e){return O.tagName==="TITLE"&&e.headTitleMutations?!0:x.getId(O)===-2};
irw=function(O,x){if(Ho(O))return!1;var e=x.getId(O);return x.has(e)?(e=dM(O))&&e.nodeType===O.DOCUMENT_NODE?!1:e?irw(e,x):!0:!0};
Oyi=function(){var O=O===void 0?window:O;"NodeList"in O&&!O.NodeList.prototype.forEach&&(O.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in O&&!O.DOMTokenList.prototype.forEach&&(O.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
x0m=function(O,x){return!(O.nodeName!=="LINK"||O.nodeType!==O.ELEMENT_NODE||!O.getAttribute||O.getAttribute("rel")!=="stylesheet"||!x.nodeMetaMap.get(O))};
lV8=function(O){var x=null,e;"getRootNode"in O&&((e=e_8(O))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&zS(e_8(O))&&(x=zS(e_8(O)));return x};
CRL=function(O){var x=O.ownerDocument;if(x){if(!(x=TF7(x,"contains")(O)))if(x=O.ownerDocument){for(var e;e=lV8(O);)O=e;x=TF7(x,"contains")(O)}else x=!1}else x=!1;return x};
QE8=function(O,x){O.delete(x);nG(x).forEach(function(e){return QE8(O,e)})};
byi=function(O,x){for(var e=[O];e.length;)O=e.pop(),x.has(O)||(x.add(O),nG(O).forEach(function(l){return e.push(l)}))};
TVr=function(O,x){O.size===0?O=!1:O=(x=dM(x))?O.has(x):!1;return O};
k5i=function(O,x){return O.size===0?!1:LhV(O,x)};
LhV=function(O,x){return(x=dM(x))?O.has(x)?!0:LhV(O,x):!1};
jl=function(O){try{if("composedPath"in O){var x=O.composedPath();if(x.length)return x[0]}else if("path"in O&&O.path.length)return O.path[0]}catch(e){}return O&&O.target};
MvL=function(O,x){var e=new ADm;Ny.push(e);e.init(O);O=new (Cew("MutationObserver").constructor)(gM(e.processMutations.bind(e)));O.observe(x,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return O};
G5r=function(O){var x=O.mousemoveCb;var e=O.sampling;var l=O.doc;var C=O.mirror;if(e.mousemove===!1)return function(){};
var Q=[],L,k=wM(gM(function(G){var X=Date.now()-L;x(Q.map(function(y){y.timeOffset-=X;return y}),G);
Q=[];L=null}),typeof e.mousemoveCallback==="number"?e.mousemoveCallback:500);
O=gM(wM(gM(function(G){var X=jl(G),y=G.changedTouches?G.changedTouches[0]:G,Z=y.clientX;y=y.clientY;L||(L=D07());Q.push({x:Z,y:y,id:C.getId(X),timeOffset:D07()-L});k(typeof DragEvent!=="undefined"&&G instanceof DragEvent?12:G instanceof MouseEvent?1:6)}),typeof e.mousemove==="number"?e.mousemove:50,{trailing:!1}));
var M=[J_("mousemove",O,l),J_("touchmove",O,l),J_("drag",O,l)];return gM(function(){M.forEach(function(G){return G()})})};
Fh$=function(O){var x=O.mouseInteractionCb;var e=O.doc;var l=O.mirror;var C=O.blockClass;var Q=O.blockSelector;O=O.sampling;if(O.mouseInteraction===!1)return function(){};
var L=O.mouseInteraction===!0||O.mouseInteraction===void 0?{}:O.mouseInteraction,k=[],M=null,G=function(X){return function(y){var Z=jl(y);if(!Sl(Z,C,Q,!0)){var E=null,P=X;if("pointerType"in y){switch(y.pointerType){case "mouse":E=0;break;case "touch":E=2;break;case "pen":E=1}E===2&&($_[X]===1?P="TouchStart":$_[X]===0&&(P="TouchEnd"))}else y.changedTouches&&(E=2);if(E!==null){if(M=E,P.startsWith("Touch")&&E===2||P.startsWith("Mouse")&&E===0)E=null}else $_[X]===2&&(E=M,M=null);if(y=y.changedTouches?
y.changedTouches[0]:y)Z=l.getId(Z),gM(x)(Object.assign({},{type:$_[P],id:Z,x:y.clientX,y:y.clientY},E!==null&&{pointerType:E}))}}};
Object.keys($_).filter(function(X){return Number.isNaN(Number(X))&&!X.endsWith("_Departed")&&L[X]!==!1}).forEach(function(X){var y=X.toLowerCase(),Z=G(X);
if(window.PointerEvent)switch($_[X]){case 1:case 0:y=y.replace("mouse","pointer");break;case 7:case 9:return}k.push(J_(y,Z,e))});
return gM(function(){k.forEach(function(X){return X()})})};
XxV=function(O){var x=O.scrollCb;var e=O.doc;var l=O.mirror;var C=O.blockClass;var Q=O.blockSelector;return J_("scroll",gM(wM(gM(function(L){var k=jl(L);k&&!Sl(k,C,Q,!0)&&(L=l.getId(k),k===e&&e.defaultView?(k=SKm(e.defaultView),x({id:L,x:k.left,y:k.top})):x({id:L,x:k.scrollLeft,y:k.scrollTop}))}),O.sampling.scroll||100)),e)};
oxr=function(O,x){var e=O.viewportResizeCb;var l=-1,C=-1;return J_("resize",gM(wM(gM(function(){var Q=jjr(),L=NFw();if(l!==Q||C!==L)e({width:Number(L),height:Number(Q)}),l=Q,C=L}),200)),x.win)};
ExL=function(O){function x(W){var z=jl(W),r=W.isTrusted,f=z&&z.tagName;z&&f==="OPTION"&&(z=uO(z));if(!(!z||!f||yDV.indexOf(f)<0||Sl(z,L,k,!0)||z.classList.contains(M)||G&&z.matches(G))){var u=z.value,Y=!1;W=Fdi(z)||"";if(W==="radio"||W==="checkbox")Y=z.checked;else if(X[f.toLowerCase()]||X[W])u=DZm({element:z,maskInputOptions:X,tagName:f,type:W,value:u,maskInputFn:y});e(z,E?{text:u,isChecked:Y,userTriggered:r}:{text:u,isChecked:Y});r=z.name;W==="radio"&&r&&Y&&C.querySelectorAll('input[type="radio"][name="'+
r+'"]').forEach(function(J){if(J!==z){var O8=J.value;e(J,E?{text:O8,isChecked:!Y,userTriggered:!1}:{text:O8,isChecked:!Y})}})}}
function e(W,z){var r=ZyL.get(W);r&&r.text===z.text&&r.isChecked===z.isChecked||(ZyL.set(W,z),W=Q.getId(W),gM(l)(Object.assign({},z,{id:W})))}
var l=O.inputCb;var C=O.doc;var Q=O.mirror;var L=O.blockClass;var k=O.blockSelector;var M=O.ignoreClass;var G=O.ignoreSelector;var X=O.maskInputOptions;var y=O.maskInputFn;var Z=O.sampling;var E=O.userTriggeredOnInput;var P=(Z.input==="last"?["change"]:["input","change"]).map(function(W){return J_(W,gM(x),C)}),U=C.defaultView;
if(!U)return function(){P.forEach(function(W){return W()})};
O=U.Object.getOwnPropertyDescriptor(U.HTMLInputElement.prototype,"value");Z=[[U.HTMLInputElement.prototype,"value"],[U.HTMLInputElement.prototype,"checked"],[U.HTMLSelectElement.prototype,"value"],[U.HTMLTextAreaElement.prototype,"value"],[U.HTMLSelectElement.prototype,"selectedIndex"],[U.HTMLOptionElement.prototype,"selected"]];O&&O.set&&P.push.apply(P,_.Kx(Z.map(function(W){return wFi(W[0],W[1],{set:function(){gM(x)({target:this,isTrusted:!1})}},!1,U)})));
return gM(function(){P.forEach(function(W){return W()})})};
qS8=function(O){var x=[],e,l,C,Q;tvL("CSSGroupingRule")&&((e=O.parentRule)==null?void 0:(l=e.constructor)==null?void 0:l.name)==="CSSGroupingRule"||tvL("CSSMediaRule")&&O.parentRule instanceof CSSMediaRule||tvL("CSSSupportsRule")&&O.parentRule instanceof CSSSupportsRule||tvL("CSSConditionRule")&&((C=O.parentRule)==null?void 0:(Q=C.constructor)==null?void 0:Q.name)==="CSSConditionRule"?(O=Array.from(O.parentRule.cssRules).indexOf(O),x.unshift(O)):O.parentStyleSheet&&(O=Array.from(O.parentStyleSheet.cssRules).indexOf(O),
x.unshift(O));return x};
iO=function(O,x,e){var l,C;if(!O)return{};O.ownerNode?l=x.getId(O.ownerNode):C=e.getId(O);return{styleId:C,id:l}};
cD8=function(O,x){var e=O.styleSheetRuleCb;var l=O.mirror;var C=O.stylesheetManager;var Q=x.win;if(!Q.CSSStyleSheet||!Q.CSSStyleSheet.prototype)return function(){};
var L=Q.CSSStyleSheet.prototype.insertRule;Q.CSSStyleSheet.prototype.insertRule=new Ob(L,{apply:gM(function(Z,E,P){var U=_.T(P),W=U.next().value;U=U.next().value;var z=iO(E,l,C.styleMirror),r=z.id;z=z.styleId;(r&&r!==-1||z&&z!==-1)&&e({id:r,styleId:z,adds:[{rule:W,index:U}]});return Z.apply(E,P)})});
Q.CSSStyleSheet.prototype.addRule=function(Z,E,P){P=P===void 0?this.cssRules.length:P;return Q.CSSStyleSheet.prototype.insertRule.apply(this,[Z+" { "+E+" }",P])};
var k=Q.CSSStyleSheet.prototype.deleteRule;Q.CSSStyleSheet.prototype.deleteRule=new Ob(k,{apply:gM(function(Z,E,P){var U=_.T(P).next().value,W=iO(E,l,C.styleMirror),z=W.id;W=W.styleId;(z&&z!==-1||W&&W!==-1)&&e({id:z,styleId:W,removes:[{index:U}]});return Z.apply(E,P)})});
Q.CSSStyleSheet.prototype.removeRule=function(Z){return Q.CSSStyleSheet.prototype.deleteRule.apply(this,[Z])};
if(Q.CSSStyleSheet.prototype.replace){var M=Q.CSSStyleSheet.prototype.replace;Q.CSSStyleSheet.prototype.replace=new Ob(M,{apply:gM(function(Z,E,P){var U=_.T(P).next().value,W=iO(E,l,C.styleMirror),z=W.id;W=W.styleId;(z&&z!==-1||W&&W!==-1)&&e({id:z,styleId:W,replace:U});return Z.apply(E,P)})})}if(Q.CSSStyleSheet.prototype.replaceSync){var G=Q.CSSStyleSheet.prototype.replaceSync;
Q.CSSStyleSheet.prototype.replaceSync=new Ob(G,{apply:gM(function(Z,E,P){var U=_.T(P).next().value,W=iO(E,l,C.styleMirror),z=W.id;W=W.styleId;(z&&z!==-1||W&&W!==-1)&&e({id:z,styleId:W,replaceSync:U});return Z.apply(E,P)})})}var X={};
PRr("CSSGroupingRule")?X.CSSGroupingRule=Q.CSSGroupingRule:(PRr("CSSMediaRule")&&(X.CSSMediaRule=Q.CSSMediaRule),PRr("CSSConditionRule")&&(X.CSSConditionRule=Q.CSSConditionRule),PRr("CSSSupportsRule")&&(X.CSSSupportsRule=Q.CSSSupportsRule));var y={};Object.entries(X).forEach(function(Z){var E=_.T(Z);Z=E.next().value;E=E.next().value;y[Z]={insertRule:E.prototype.insertRule,deleteRule:E.prototype.deleteRule};E.prototype.insertRule=new Ob(y[Z].insertRule,{apply:gM(function(P,U,W){var z=_.T(W),r=z.next().value;
z=z.next().value;var f=iO(U.parentStyleSheet,l,C.styleMirror),u=f.id;f=f.styleId;(u&&u!==-1||f&&f!==-1)&&e({id:u,styleId:f,adds:[{rule:r,index:[].concat(_.Kx(qS8(U)),[z||0])}]});return P.apply(U,W)})});
E.prototype.deleteRule=new Ob(y[Z].deleteRule,{apply:gM(function(P,U,W){var z=_.T(W).next().value,r=iO(U.parentStyleSheet,l,C.styleMirror),f=r.id;r=r.styleId;(f&&f!==-1||r&&r!==-1)&&e({id:f,styleId:r,removes:[{index:[].concat(_.Kx(qS8(U)),[z])}]});return P.apply(U,W)})})});
return gM(function(){Q.CSSStyleSheet.prototype.insertRule=L;Q.CSSStyleSheet.prototype.deleteRule=k;M&&(Q.CSSStyleSheet.prototype.replace=M);G&&(Q.CSSStyleSheet.prototype.replaceSync=G);Object.entries(X).forEach(function(Z){var E=_.T(Z);Z=E.next().value;E=E.next().value;E.prototype.insertRule=y[Z].insertRule;E.prototype.deleteRule=y[Z].deleteRule})})};
VvV=function(O,x){var e=O.mirror;var l=O.stylesheetManager;var C=null;C=x.nodeName==="#document"?e.getId(x):e.getId(zS(x));var Q,L,k;O=x.nodeName==="#document"?(Q=x.defaultView)==null?void 0:Q.Document:(L=x.ownerDocument)==null?void 0:(k=L.defaultView)==null?void 0:k.ShadowRoot;var M=(O==null?0:O.prototype)?Object.getOwnPropertyDescriptor(O==null?void 0:O.prototype,"adoptedStyleSheets"):void 0;if(C===null||C===-1||!O||!M)return function(){};
Object.defineProperty(x,"adoptedStyleSheets",{configurable:M.configurable,enumerable:M.enumerable,get:function(){var G;return(G=M.get)==null?void 0:G.call(this)},
set:function(G){var X,y=(X=M.set)==null?void 0:X.call(this,G);if(C!==null&&C!==-1)try{IV8(l,G,C)}catch(Z){}return y}});
return gM(function(){Object.defineProperty(x,"adoptedStyleSheets",{configurable:M.configurable,enumerable:M.enumerable,get:M.get,set:M.set})})};
px$=function(O,x){var e=O.styleDeclarationCb;var l=O.mirror;var C=O.ignoreCSSAttributes;var Q=O.stylesheetManager;var L=x.win;var k=L.CSSStyleDeclaration.prototype.setProperty;L.CSSStyleDeclaration.prototype.setProperty=new Ob(k,{apply:gM(function(G,X,y){var Z=_.T(y),E=Z.next().value,P=Z.next().value;Z=Z.next().value;if(C.has(E))return k.apply(X,[E,P,Z]);var U,W=iO((U=X.parentRule)==null?void 0:U.parentStyleSheet,l,Q.styleMirror);U=W.id;W=W.styleId;(U&&U!==-1||W&&W!==-1)&&e({id:U,styleId:W,set:{property:E,
value:P,priority:Z},index:qS8(X.parentRule)});return G.apply(X,y)})});
var M=L.CSSStyleDeclaration.prototype.removeProperty;L.CSSStyleDeclaration.prototype.removeProperty=new Ob(M,{apply:gM(function(G,X,y){var Z=_.T(y).next().value;if(C.has(Z))return M.apply(X,[Z]);var E,P=iO((E=X.parentRule)==null?void 0:E.parentStyleSheet,l,Q.styleMirror);E=P.id;P=P.styleId;(E&&E!==-1||P&&P!==-1)&&e({id:E,styleId:P,remove:{property:Z},index:qS8(X.parentRule)});return G.apply(X,y)})});
return gM(function(){L.CSSStyleDeclaration.prototype.setProperty=k;L.CSSStyleDeclaration.prototype.removeProperty=M})};
R_s=function(O){var x=O.mediaInteractionCb;var e=O.blockClass;var l=O.blockSelector;var C=O.mirror;var Q=O.sampling;O=O.doc;var L=gM(function(M){return wM(gM(function(G){if((G=jl(G))&&!Sl(G,e,l,!0)){var X=G.currentTime,y=G.volume,Z=G.muted,E=G.playbackRate,P=G.loop;x({type:M,id:C.getId(G),currentTime:X,volume:y,muted:Z,playbackRate:E,loop:P})}}),Q.media||500)}),k=[J_("play",L(0),O),
J_("pause",L(1),O),J_("seeked",L(2),O),J_("volumechange",L(3),O),J_("ratechange",L(4),O)];return gM(function(){k.forEach(function(M){return M()})})};
U0i=function(O){var x=O.fontCb;O=O.doc;var e=O.defaultView;if(!e)return function(){};
var l=[],C=new WeakMap,Q=e.FontFace;e.FontFace=function(L,k,M){var G=new Q(L,k,M);C.set(G,{family:L,buffer:typeof k!=="string",descriptors:M,fontSource:typeof k==="string"?k:JSON.stringify(Array.from(new Uint8Array(k)))});return G};
O=h_(O.fonts,"add",function(L){return function(k){setTimeout(gM(function(){var M=C.get(k);M&&(x(M),C.delete(k))}),0);
return L.apply(this,[k])}});
l.push(function(){e.FontFace=Q});
l.push(O);return gM(function(){l.forEach(function(L){return L()})})};
aVs=function(O){var x=O.doc,e=O.mirror,l=O.blockClass,C=O.blockSelector,Q=O.selectionCb,L=!0;O=gM(function(){var k=x.getSelection();if(k&&!(L&&(k==null?0:k.isCollapsed))){L=k.isCollapsed||!1;for(var M=[],G=k.rangeCount||0,X=0;X<G;X++){var y=k.getRangeAt(X),Z=y.startContainer,E=y.startOffset,P=y.endContainer;y=y.endOffset;Sl(Z,l,C,!0)||Sl(P,l,C,!0)||M.push({start:e.getId(Z),startOffset:E,end:e.getId(P),endOffset:y})}Q({ranges:M})}});
O();return J_("selectionchange",O)};
m0s=function(O){var x=O.doc;var e=O.customElementCb;return(O=x.defaultView)&&O.customElements?h_(O.customElements,"define",function(l){return function(C,Q,L){try{e({define:{name:C}})}catch(k){console.warn("Custom element callback failed for "+C)}return l.apply(this,[C,Q,L])}}):function(){}};
sEi=function(O,x){var e=O.mutationCb,l=O.mousemoveCb,C=O.mouseInteractionCb,Q=O.scrollCb,L=O.viewportResizeCb,k=O.inputCb,M=O.mediaInteractionCb,G=O.styleSheetRuleCb,X=O.styleDeclarationCb,y=O.canvasMutationCb,Z=O.fontCb,E=O.selectionCb,P=O.customElementCb;O.mutationCb=function(){var U=_.vw.apply(0,arguments);x.mutation&&x.mutation.apply(x,_.Kx(U));e.apply(null,_.Kx(U))};
O.mousemoveCb=function(){var U=_.vw.apply(0,arguments);x.mousemove&&x.mousemove.apply(x,_.Kx(U));l.apply(null,_.Kx(U))};
O.mouseInteractionCb=function(){var U=_.vw.apply(0,arguments);x.mouseInteraction&&x.mouseInteraction.apply(x,_.Kx(U));C.apply(null,_.Kx(U))};
O.scrollCb=function(){var U=_.vw.apply(0,arguments);x.scroll&&x.scroll.apply(x,_.Kx(U));Q.apply(null,_.Kx(U))};
O.viewportResizeCb=function(){var U=_.vw.apply(0,arguments);x.viewportResize&&x.viewportResize.apply(x,_.Kx(U));L.apply(null,_.Kx(U))};
O.inputCb=function(){var U=_.vw.apply(0,arguments);x.input&&x.input.apply(x,_.Kx(U));k.apply(null,_.Kx(U))};
O.mediaInteractionCb=function(){var U=_.vw.apply(0,arguments);x.mediaInteaction&&x.mediaInteaction.apply(x,_.Kx(U));M.apply(null,_.Kx(U))};
O.styleSheetRuleCb=function(){var U=_.vw.apply(0,arguments);x.styleSheetRule&&x.styleSheetRule.apply(x,_.Kx(U));G.apply(null,_.Kx(U))};
O.styleDeclarationCb=function(){var U=_.vw.apply(0,arguments);x.styleDeclaration&&x.styleDeclaration.apply(x,_.Kx(U));X.apply(null,_.Kx(U))};
O.canvasMutationCb=function(){var U=_.vw.apply(0,arguments);x.canvasMutation&&x.canvasMutation.apply(x,_.Kx(U));y.apply(null,_.Kx(U))};
O.fontCb=function(){var U=_.vw.apply(0,arguments);x.font&&x.font.apply(x,_.Kx(U));Z.apply(null,_.Kx(U))};
O.selectionCb=function(){var U=_.vw.apply(0,arguments);x.selection&&x.selection.apply(x,_.Kx(U));E.apply(null,_.Kx(U))};
O.customElementCb=function(){var U=_.vw.apply(0,arguments);x.customElement&&x.customElement.apply(x,_.Kx(U));P.apply(null,_.Kx(U))}};
Whi=function(O,x){x=x===void 0?{}:x;var e=O.doc.defaultView;if(!e)return function(){};
sEi(O,x);var l;O.recordDOM&&(l=MvL(O,O.doc));var C=G5r(O),Q=Fh$(O),L=XxV(O),k=oxr(O,{win:e}),M=ExL(O),G=R_s(O),X=function(){},y=function(){},Z=function(){},E=function(){};
O.recordDOM&&(X=cD8(O,{win:e}),y=VvV(O,O.doc),Z=px$(O,{win:e}),O.collectFonts&&(E=U0i(O)));var P=aVs(O),U=m0s(O),W=[];O=_.T(O.plugins);for(x=O.next();!x.done;x=O.next())x=x.value,W.push(x.observer(x.callback,e,x.options));return gM(function(){Ny.forEach(function(r){return r.reset()});
var z;(z=l)==null||z.disconnect();C();Q();L();k();M();G();X();y();Z();E();P();U();W.forEach(function(r){return r()})})};
tvL=function(O){return typeof window[O]!=="undefined"};
PRr=function(O){return!!(typeof window[O]!=="undefined"&&window[O].prototype&&"insertRule"in window[O].prototype&&"deleteRule"in window[O].prototype)};
h_r=function(O){O=new Uint8Array(O);for(var x="",e=0;e<O.byteLength;e++)x+=String.fromCharCode(O[e]);return btoa(x)};
z_V=function(O,x,e){if(O instanceof Array)return O.map(function(C){return z_V(C,x,e)});
if(O!==null){if(O instanceof Float32Array||O instanceof Float64Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Uint8Array||O instanceof Uint16Array||O instanceof Int16Array||O instanceof Int8Array||O instanceof Uint8ClampedArray)return{rr_type:O.constructor.name,args:[Object.values(O)]};if(O instanceof ArrayBuffer){var l=O.constructor.name;O=h_r(O);return{rr_type:l,base64:O}}if(O instanceof DataView)return{rr_type:O.constructor.name,args:[z_V(O.buffer,x,e),O.byteOffset,O.byteLength]};
if(O instanceof HTMLImageElement)return{rr_type:O.constructor.name,src:O.src};if(O instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:O.toDataURL()};if(O instanceof ImageData)return{rr_type:O.constructor.name,args:[z_V(O.data,x,e),O.width,O.height]};if(rDi(O,x)||typeof O==="object")return l=O.constructor.name,O=Hyw(O,x,e),{rr_type:l,index:O}}return O};
d0r=function(O,x,e,l){for(var C=[],Q=_.T(Object.getOwnPropertyNames(x.CanvasRenderingContext2D.prototype)),L=Q.next(),k={};!L.done;k={prop$jscomp$58:void 0},L=Q.next()){k.prop$jscomp$58=L.value;try{if(typeof x.CanvasRenderingContext2D.prototype[k.prop$jscomp$58]==="function"){var M=h_(x.CanvasRenderingContext2D.prototype,k.prop$jscomp$58,function(G){return function(X){return function(){var y=_.vw.apply(0,arguments),Z=this;Sl(this.canvas,e,l,!0)||setTimeout(function(){var E=KhW(y,x,Z);O(Z.canvas,{type:x7["2D"],
property:G.prop$jscomp$58,args:E})},0);
return X.apply(this,y)}}}(k));
C.push(M)}}catch(G){L=wFi(x.CanvasRenderingContext2D.prototype,k.prop$jscomp$58,{set:function(X){return function(y){O(this.canvas,{type:x7["2D"],property:X.prop$jscomp$58,args:[y],setter:!0})}}(k)}),C.push(L)}}return function(){C.forEach(function(G){return G()})}};
nx$=function(O,x,e,l){var C=[];try{var Q=h_(O.HTMLCanvasElement.prototype,"getContext",function(L){return function(k){var M=_.vw.apply(1,arguments);if(!Sl(this,x,e,!0)){var G=k==="experimental-webgl"?"webgl":k;"__context"in this||(this.__context=G);l&&["webgl","webgl2"].includes(G)&&(M[0]&&typeof M[0]==="object"?(G=M[0],G.preserveDrawingBuffer||(G.preserveDrawingBuffer=!0)):M.splice(0,1,{preserveDrawingBuffer:!0}))}return L.apply(this,[k].concat(_.Kx(M)))}});
C.push(Q)}catch(L){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){C.forEach(function(L){return L()})}};
ujr=function(O,x,e,l,C,Q){for(var L=[],k=_.T(Object.getOwnPropertyNames(O)),M=k.next(),G={};!M.done;G={prop$jscomp$59:void 0},M=k.next())if(G.prop$jscomp$59=M.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(G.prop$jscomp$59))try{if(typeof O[G.prop$jscomp$59]==="function"){var X=h_(O,G.prop$jscomp$59,function(y){return function(Z){return function(){var E=_.vw.apply(0,arguments),P=Z.apply(this,E);Hyw(P,Q,this);"tagName"in this.canvas&&!Sl(this.canvas,l,C,!0)&&(E=
KhW(E,Q,this),e(this.canvas,{type:x,property:y.prop$jscomp$59,args:E}));return P}}}(G));
L.push(X)}}catch(y){M=wFi(O,G.prop$jscomp$59,{set:function(Z){return function(E){e(this.canvas,{type:x,property:Z.prop$jscomp$59,args:[E],setter:!0})}}(G)}),L.push(M)}return L};
YSr=function(O,x,e,l){var C=[];C.push.apply(C,_.Kx(ujr(x.WebGLRenderingContext.prototype,1,O,e,l,x)));typeof x.WebGL2RenderingContext!=="undefined"&&C.push.apply(C,_.Kx(ujr(x.WebGL2RenderingContext.prototype,2,O,e,l,x)));return function(){C.forEach(function(Q){return Q()})}};
l77=function(O){var x=O=O===void 0?{}:O,e=x.emit,l=x.checkoutEveryNms,C=x.checkoutEveryNth,Q=x.blockClass===void 0?"rr-block":x.blockClass,L=x.blockSelector===void 0?null:x.blockSelector,k=x.ignoreClass===void 0?"rr-ignore":x.ignoreClass,M=x.ignoreSelector===void 0?null:x.ignoreSelector,G=x.maskTextClass===void 0?"rr-mask":x.maskTextClass,X=x.maskTextSelector===void 0?null:x.maskTextSelector,y=x.inlineStylesheet===void 0?!0:x.inlineStylesheet,Z=x.maskAllInputs,E=x.maskInputOptions,P=x.slimDOMOptions,
U=x.maskInputFn,W=x.maskTextFn,z=x.hooks,r=x.packFn,f=x.sampling===void 0?{}:x.sampling,u=x.dataURLOptions===void 0?{}:x.dataURLOptions,Y=x.mousemoveWait,J=x.recordDOM===void 0?!0:x.recordDOM,O8=x.recordCanvas===void 0?!1:x.recordCanvas,Xr=x.recordCrossOriginIframes===void 0?!1:x.recordCrossOriginIframes,Fr=x.recordAfter===void 0?O.recordAfter==="DOMContentLoaded"?O.recordAfter:"load":x.recordAfter,mL=x.userTriggeredOnInput===void 0?!1:x.userTriggeredOnInput,Zn=x.collectFonts===void 0?!1:x.collectFonts,
q$=x.inlineImages===void 0?!1:x.inlineImages,KV=x.plugins,VN=x.keepIframeSrcFn===void 0?function(){return!1}:x.keepIframeSrcFn,Pd=x.ignoreCSSAttributes===void 0?new Set([]):x.ignoreCSSAttributes;
eh=x.errorHandler;var f2=Xr?window.parent===window:!0,p2=!1;if(!f2)try{window.parent.document&&(p2=!1)}catch(DD){p2=!0}if(f2&&!e)throw Error("Ze");if(!f2&&!p2)return function(){};
Y!==void 0&&f.mousemove===void 0&&(f.mousemove=Y);lh.reset();var OT=Z===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:E!==void 0?E:{password:!0},Gp=P===!0||P==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:P==="all",headMetaDescKeywords:P==="all",headTitleMutations:P==="all"}:
P?P:{};Oyi();var zp,m3=0,E4=function(DD){for(var lL=_.T(KV||[]),Sw=lL.next();!Sw.done;Sw=lL.next())Sw=Sw.value,Sw.eventProcessor&&(DD=Sw.eventProcessor(DD));r&&!p2&&(DD=r(DD));return DD};
C1=function(DD,lL){DD.timestamp=D07();var Sw;((Sw=Ny[0])==null?0:Sw.isFrozen())&&DD.type!==2&&(DD.type!==3||DD.data.source!==0)&&Ny.forEach(function(ZD){return ZD.unfreeze()});
f2?e==null||e(E4(DD),lL):p2&&(lL={type:"rrweb",event:E4(DD),origin:window.location.origin,isCheckout:lL},window.parent.postMessage(lL,"*"));DD.type===2?(zp=DD,m3=0):DD.type!==3||DD.data.source===0&&DD.data.isAttachIframe||(m3++,DD=l&&DD.timestamp-zp.timestamp>l,(C&&m3>=C||DD)&&BVw(!0))};
var Xw=function(DD){C1({type:3,data:Object.assign({},{source:0},DD)})},Tr=function(DD){return C1({type:3,
data:Object.assign({},{source:3},DD)})},QR=function(DD){return C1({type:3,
data:Object.assign({},{source:9},DD)})},ET=new vxr({mutationCb:Xw,
adoptedStyleSheetCb:function(DD){return C1({type:3,data:Object.assign({},{source:15},DD)})}}),Q$=new fVs({mirror:lh,
mutationCb:Xw,stylesheetManager:ET,recordCrossOriginIframes:Xr,wrappedEmit:C1});O=_.T(KV||[]);for(x=O.next();!x.done;x=O.next())x=x.value,x.getMirror&&x.getMirror({nodeMirror:lh,crossOriginIframeMirror:Q$.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q$.crossOriginIframeStyleMirror});var tJ=new JDw;wxi=new SSr({recordCanvas:O8,mutationCb:QR,win:window,blockClass:Q,blockSelector:L,mirror:lh,sampling:f.canvas,dataURLOptions:u});var CQ=new jEV({mutationCb:Xw,scrollCb:Tr,bypassOptions:{blockClass:Q,
blockSelector:L,maskTextClass:G,maskTextSelector:X,inlineStylesheet:y,maskInputOptions:OT,dataURLOptions:u,maskTextFn:W,maskInputFn:U,recordCanvas:O8,inlineImages:q$,sampling:f,slimDOMOptions:Gp,iframeManager:Q$,stylesheetManager:ET,canvasManager:wxi,keepIframeSrcFn:VN,processedNodeManager:tJ},mirror:lh});BVw=function(DD){DD=DD===void 0?!1:DD;if(J){C1({type:4,data:{href:window.location.href,width:NFw(),height:jjr()}},DD);ET.reset();CQ.init();Ny.forEach(function(Sw){return Sw.lock()});
var lL=fNW({mirror:lh,blockClass:Q,blockSelector:L,maskTextClass:G,maskTextSelector:X,inlineStylesheet:y,maskAllInputs:OT,maskTextFn:W,maskInputFn:U,slimDOM:Gp,dataURLOptions:u,recordCanvas:O8,inlineImages:q$,onSerialize:function(Sw){Sw.nodeName==="IFRAME"&&lh.nodeMetaMap.get(Sw)&&NVn(Q$,Sw);x0m(Sw,lh)&&gxV(ET,Sw);Sw&&rM(Sw)&&$0r(CQ,rM(Sw),document)},
onIframeLoad:function(Sw,ZD){iy$(Q$,Sw,ZD);Sw.contentWindow&&Sw.contentDocument&&Oh7(CQ,Sw.contentWindow.Element,Sw.contentDocument)},
onStylesheetLoad:function(Sw,ZD){xCr(ET,Sw,ZD)},
keepIframeSrcFn:VN});lL?(C1({type:2,data:{node:lL,initialOffset:SKm(window)}},DD),Ny.forEach(function(Sw){return Sw.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&IV8(ET,document.adoptedStyleSheets,lh.getId(document))):console.warn("Failed to snapshot the document")}};
try{var hS=[],JJ=function(DD){var lL;return gM(Whi)({mutationCb:Xw,mousemoveCb:function(Sw,ZD){return C1({type:3,data:{source:ZD,positions:Sw}})},
mouseInteractionCb:function(Sw){return C1({type:3,data:Object.assign({},{source:2},Sw)})},
scrollCb:Tr,viewportResizeCb:function(Sw){return C1({type:3,data:Object.assign({},{source:4},Sw)})},
inputCb:function(Sw){return C1({type:3,data:Object.assign({},{source:5},Sw)})},
mediaInteractionCb:function(Sw){return C1({type:3,data:Object.assign({},{source:7},Sw)})},
styleSheetRuleCb:function(Sw){return C1({type:3,data:Object.assign({},{source:8},Sw)})},
styleDeclarationCb:function(Sw){return C1({type:3,data:Object.assign({},{source:13},Sw)})},
canvasMutationCb:QR,fontCb:function(Sw){return C1({type:3,data:Object.assign({},{source:10},Sw)})},
selectionCb:function(Sw){C1({type:3,data:Object.assign({},{source:14},Sw)})},
customElementCb:function(Sw){C1({type:3,data:Object.assign({},{source:16},Sw)})},
blockClass:Q,ignoreClass:k,ignoreSelector:M,maskTextClass:G,maskTextSelector:X,maskInputOptions:OT,inlineStylesheet:y,sampling:f,recordDOM:J,recordCanvas:O8,inlineImages:q$,userTriggeredOnInput:mL,collectFonts:Zn,doc:DD,maskInputFn:U,maskTextFn:W,keepIframeSrcFn:VN,blockSelector:L,slimDOMOptions:Gp,dataURLOptions:u,mirror:lh,iframeManager:Q$,stylesheetManager:ET,shadowDomManager:CQ,processedNodeManager:tJ,canvasManager:wxi,ignoreCSSAttributes:Pd,plugins:(KV==null?void 0:(lL=KV.filter(function(Sw){return Sw.observer}))==
null?void 0:lL.map(function(Sw){return{observer:Sw.observer,
options:Sw.options,callback:function(ZD){return C1({type:6,data:{plugin:Sw.name,payload:ZD}})}}}))||[]},z)};
eUw(Q$,function(DD){try{hS.push(JJ(DD.contentDocument))}catch(lL){console.warn(lL)}});
var F4=function(){BVw();hS.push(JJ(document))};
document.readyState==="interactive"||document.readyState==="complete"?F4():(hS.push(J_("DOMContentLoaded",function(){C1({type:0,data:{}});Fr==="DOMContentLoaded"&&F4()})),hS.push(J_("load",function(){C1({type:1,
data:{}});Fr==="load"&&F4()},window)));
return function(){hS.forEach(function(DD){return DD()});
tJ.destroy();eh=void 0}}catch(DD){console.warn(DD)}};
_.I=function(O,x){x=NT(SE(x));O.innerHTML=x};
bhn=function(O){var x=CYL;x||(x=QPL(),x=CYL=_.HX.transpose(x));x=x[O];return typeof x==="string"?x:_.Qo(O)};
T1i=function(O){O=String(O).toLowerCase();var x=QPL()[O];return typeof x==="string"?x:_.bh(O)};
LBw=function(O){O=O.toLowerCase();O=QPL()[O];return typeof O==="string"?O:null};
QPL=function(){if(!k68){for(var O=Object.assign({},AnN),x=_.T(MDN),e=x.next();!e.done;e=x.next())e=e.value,O[e.toLowerCase()]=e;k68=O}return k68};
FBw=function(O,x){var e=window.customElements;return e&&e.get(O)||DCr[O]===!0?2:x.name==="HTMLUnknownElement"?1:x.name==="HTMLElement"&&G6W.test(O)?3:0};
yn7=function(O,x){switch(x){case "innerHTML":return XYr(O)===1?2:null;case "textContent":return O=XYr(O),O===1||O===6?1:null;default:var e,l;return(l=(e=osL[O.localName])==null?void 0:e[x])!=null?l:null}};
XYr=function(O){var x=O.localName,e=FBw(x,O.constructor);switch(e){case 0:case 1:return ZhV(x,O);case 3:case 2:return 1;default:_.vd(e,"got an unknown element classification")}};
ZhV=function(O,x){var e=Object.hasOwnProperty.call(Esi,O)?Esi[O]:null;return e!==null?e:Object.hasOwnProperty.call(tDs,O)&&x instanceof SVGElement?tDs[O]:null};
q_W=function(O,x){return x};
cnW=function(O){return(O=O.split(PYw,2))?{url:O[0],metadata:O[1]}:null};
VDs=function(O){var x=String(O.url).replace(I7W,encodeURIComponent);if(O=O.metadata){I7W.lastIndex=0;if(I7W.test(O))return null;x+=" "+O}return x};
a7V=function(O){function x(G){var X=G.localName;if(!G.getAttribute("is")&&FBw(X,G.constructor)===2){var y;return(y=M)!=null?y:M=document.createElement("polyresinuncustomized")}(G=k[X])||(G=k[X]=document.createElement(X));return G}
var e=O.reportHandler||void 0,l=O.safeTypesBridge||pYi,C=/^$/;if(O=O.allowedIdentifierPrefixes){O=_.T(O);for(var Q=O.next();!Q.done;Q=O.next())C=new RegExp(C.source+"|^"+_.RUL(Q.value))}e&&e(!1,"initResin",null);var L=UCV(C,l,e),k={},M=null;return function(G,X,y){var Z=G.nodeType;if(Z!==Node.ELEMENT_NODE){if(Z===Node.TEXT_NODE){X=G.parentElement;y=!X;if(X&&X.nodeType===Node.ELEMENT_NODE){Z=X.localName;var E=FBw(Z,X.constructor);switch(E){case 0:case 1:X=ZhV(Z,X);y=X===1||X===6;break;case 3:case 2:y=
!0;break;default:_.vd(E,"got an unknown element classification")}}if(y)return function(z){return""+l(z,"STRING",z)}}return function(z){if(!z&&z!==document.all)return z;
e&&e(!0,"Failed to sanitize "+(G.parentElement&&G.parentElement.nodeName)+" #text node to value "+z,G.parentElement);return T0}}var P=G.localName;
Z=x(G);var U=null;switch(y){case "attribute":if(T1i(X)in Z)break;return function(z){return z};
case "property":if(X in Z){U=yn7(Z,X);break}if((E=LBw(X))&&E in Z)break;return function(z){return z};
default:_.vd(y,"got an unknown resin type, expected either 'property' or 'attribute'")}var W=y==="attribute"?X.toLowerCase():bhn(X);U||(U=RR7(P,W,function(z){var r=G.getAttribute(z);return!r||/[\[\{]/.test(z)?null:r}));
return function(z){var r=L1,f=null;if(!z&&z!==document.all)return z;if(U!=null){var u=L[U],Y=u.safeType;f=u.safeReplacement;Y&&(r=l(z,Y,L1));r===L1&&(u.filterString?(r=String(l(z,"STRING",z)),r=u.filterString(P,W,r)):u.filterRaw&&(r=u.filterRaw(P,W,z,G)),r===f&&(r=L1))}r===L1&&(r=f||T0,e&&e(!0,"Failed to sanitize attribute of <"+P+">: <"+P+" "+W+'="'+z+'">',G));return r}}};
UCV=function(O,x,e){return[,{filterRaw:function(l,C,Q){return Q},
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:mC$,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:mC$,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:T0,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:sPW,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(l,C,Q){Q=
String(Q).toLowerCase();return m38(l,C,Q)?Q:T0},
safeReplacement:T0,safeType:void 0},,{filterRaw:void 0,filterString:function(l,C,Q){return O.test(Q)?Q:T0},
safeReplacement:T0,safeType:"CONSTANT"},{filterRaw:function(l,C,Q,L){if(typeof Q==="string")var k=(k=Q.match(WBN))?k.map(cnW).filter(Boolean):[];else if(Array.isArray(Q))k=Q;else return mC$;var M=k;k=[];var G=[],X={};if(Array.isArray(M))for(var y=0,Z=M.length;y<Z;++y){var E=M[y],P=E&&E.url;if(P){var U=x(P,"URL",X);if(U){var W=U!==X;(W?k:G).push({url:W?U:P,metadata:E.metadata})}}}else G.push(M);M=G.length?JSON.stringify(G):null;G=L1;if(k.length){if(!Array.isArray(k))throw Error();G=k.map(VDs).filter(Boolean).join(" , ")||
L1}M&&e&&e(!0,"Failed to sanitize attribute value of <"+l+">: <"+l+" "+C+'="'+Q+'">: '+M,L);return G===L1?mC$:G},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
hU$=function(O){var x=a7V(O);return function(e,l,C,Q){return Q||Q===document.all?x(e,l,C)(Q):Q}};
k7=function(O,x){function e(){function C(k,M,G){for(M=Reflect.getMetadata("parameters",k)||[];M.length<=G;)M.push(null);M[G]=M[G]||[];M[G].push(L);Reflect.defineMetadata(M,k);return k}
var Q=_.vw.apply(0,arguments);if(this instanceof e)return l.apply(this,Q),this;var L=new (Function.prototype.bind.apply(e,[null].concat(_.Kx(Q))));C.annotation=L;return C}
var l=zUr(x);e.prototype.toString=function(){return"@"+O};
return e.annotationCls=e};
zUr=function(O){return function(){var x=_.vw.apply(0,arguments),e=this;O.forEach(function(l,C){C=x[C];if(Array.isArray(l))e[l[0]]=C&&C!==void 0?C:l[1];else for(var Q in l)e[Q]=C&&C[Q]!==void 0?C[Q]:l[Q]})}};
rn8=function(O){return O!==void 0&&O!==null};
As=function(O){if(typeof O==="string")return O;if(O===void 0||O===null)return""+O;if(O.overriddenName)return O.overriddenName;if(O.name)return O.name;O=O.toString();var x=O.indexOf("\n");return x===-1?O:O.substring(0,x)};
Hh8=function(O){O.__forward_ref__=Hh8;O.toString=function(){return As(this())};
return O};
M9=function(O){return typeof O==="function"&&O.hasOwnProperty("__forward_ref__")&&O.__forward_ref__===Hh8?O():O};
KBs=function(O){return O?O.map(function(x){return new (Function.prototype.bind.apply(x.type.annotationCls,[null].concat(_.Kx(x.args?x.args:[]))))}):[]};
dCm=function(O){for(var x=[],e=0;e<O.length;++e){if(x.indexOf(O[e])>-1){x.push(O[e]);break}x.push(O[e])}return x};
nsr=function(O){return O.length>1?" ("+dCm(O.slice().reverse()).map(function(x){return As(x.token)}).join(" -> ")+")":""};
Y_7=function(O,x,e,l){if(l){var C=Error("bf``"+(l instanceof Error?l.message:l));C.ngOriginalError=l}else C=Error();C.addKey=uNr;C.keys=[x];C.injectors=[O];C.constructResolvingMessage=e;C.message=C.constructResolvingMessage();C.ngOriginalError=l;return C};
uNr=function(O,x){this.injectors.push(O);this.keys.push(x);this.message=this.constructResolvingMessage()};
B1W=function(O,x){return Y_7(O,x,function(){return"No provider for "+As(this.keys[0].token)+"!"+nsr(this.keys)})};
vsN=function(O,x){return Y_7(O,x,function(){return"Cannot instantiate cyclic dependency!"+nsr(this.keys)})};
f7r=function(O,x,e){return Y_7(O,e,function(){var l=As(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+l+"!"+nsr(this.keys)+"."},x)};
JnL=function(O,x){for(var e=[],l=0,C=x.length;l<C;l++){var Q=x[l];Q&&Q.length!=0?e.push(Q.map(As).join(" ")):e.push("?")}return Error("ff`"+As(O)+"`"+e.join(", ")+"`"+As(O))};
ihm=function(O){var x=void 0,e=void 0;if(O&&O.useClass!==void 0){x=O.useClass;var l=M9(O.useClass);var C=wYi.factory(l);l=S_i(l)}else O&&O.useExisting!==void 0?(C=function(Q){return Q},l=[jPm(Df.get(M9(O.useExisting)))]):O&&O.useFactory!==void 0?(C=O.useFactory,l=N1r(O.useFactory,O.deps)):(e=O.useValue,C=function(){return O.useValue},l=gsL);
return new $CL(C,l,x,e)};
xXm=function(O){return new Op$(Df.get(M9(O.provide)),[ihm(O)],O.multi)};
lii=function(O){O=eCw(O,[]).map(xXm);for(var x=new Map,e=0;e<O.length;e++){var l=O[e],C=x.get(l.key.id);if(C){if(l.multiProvider!==C.multiProvider)throw Error("hf`"+C+"`"+l);if(l.multiProvider)for(var Q=0;Q<l.resolvedFactories.length;Q++)C.resolvedFactories.push(l.resolvedFactories[Q]);else x.set(l.key.id,l)}else C=void 0,l.multiProvider?C=new Op$(l.key,l.resolvedFactories.slice(),l.multiProvider):C=l,x.set(l.key.id,C)}return Array.from(x.values())};
eCw=function(O,x){O.forEach(function(e){if(e instanceof CGr)x.push({provide:e,useClass:e});else if(e&&typeof e=="object"&&e.provide!==void 0)x.push(e);else if(e instanceof Array)eCw(e,x);else throw Error("ef`"+e);});
return x};
N1r=function(O,x){if(x){var e=x.map(function(l){return[l]});
return x.map(function(l){return Q3n(O,l,e)})}return S_i(O)};
S_i=function(O){var x=wYi.parameters(O);if(!x)return[];if(x.some(function(e){return e==null}))throw JnL(O,x);
return x.map(function(e){return Q3n(O,e,x)})};
Q3n=function(O,x,e){var l=null,C=!1;if(!Array.isArray(x))return x instanceof bps?Tvr(x.token,C,null):Tvr(x,C,null);for(var Q=null,L=0;L<x.length;++L){var k=x[L];if(k instanceof CGr)l=k;else if(k instanceof bps)l=k.token;else if(k instanceof Liw)C=!0;else if(k instanceof kyw||k instanceof APW)Q=k}l=M9(l);if(l!=null)return Tvr(l,C,Q);throw JnL(O,e);};
Tvr=function(O,x,e){return new MP8(Df.get(M9(O)),x,e)};
DXW=function(O,x){for(var e=Array(O.providers.length),l=0;l<O.providers.length;++l){var C=l;if(l<0||l>=O.providers.length)throw Error("gf`"+l);e[C]=x(O.providers[l])}return e};
GyV=function(O){return typeof O==="function"&&wYi.parameters(O).every(function(x){return!!x})};
ohr=function(O){var x=FiN;XPL.get(O)||XPL.set(O,new x);return XPL.get(O)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(O)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(O)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O,x){var e,l;if(O.contains(x))return!0;O=_.G0(O).querySelectorAll("content,slot");for(e=0;e<O.length;++e){var C=_.G0(O[e]).getDistributedNodes();for(l=0;l<C.length;++l)if(C[l].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(C[l],x))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){O.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(O)&&O.preventDefault();O.targetTouches&&(O=O.targetTouches[0],yPN=O.pageX,ZpV=O.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 O=0,x=Fe.length;O<x;O++)document.addEventListener(Fe[O],_._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 O=0,x=Fe.length;O<x;O++)document.removeEventListener(Fe[O],_._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(O){var x=_.G0(O).rootTarget;O.type!=="touchmove"&&Ehs!==x&&(Ehs=x,tPw=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.G0(O).path));if(!tPw.length)return!0;if(O.type==="touchstart")return!1;O=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(O);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(tPw,O.deltaX,O.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){for(var x=[],e=O.indexOf(qNi),l=0;l<=e;l++)if(O[l].nodeType===Node.ELEMENT_NODE){var C=O[l],Q=C.style;Q.overflow!=="scroll"&&Q.overflow!=="auto"&&(Q=window.getComputedStyle(C));Q.overflow!=="scroll"&&Q.overflow!=="auto"||x.push(C)}return x};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O,x,e){if(x||e)for(var l=Math.abs(e)>=Math.abs(x),C=0;C<O.length;C++){var Q=O[C];if(l?e<0?Q.scrollTop>0:Q.scrollTop<Q.scrollHeight-Q.clientHeight:x<0?Q.scrollLeft>0:Q.scrollLeft<Q.scrollWidth-Q.clientWidth)return Q}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){var x={deltaX:O.deltaX,deltaY:O.deltaY};"deltaX"in O||("wheelDeltaX"in O&&"wheelDeltaY"in O?(x.deltaX=-O.wheelDeltaX,x.deltaY=-O.wheelDeltaY):"wheelDelta"in O?(x.deltaX=0,x.deltaY=-O.wheelDelta):"axis"in O?(x.deltaX=O.axis===1?O.detail:0,x.deltaY=O.axis===2?O.detail:0):O.targetTouches&&(O=O.targetTouches[0],x.deltaX=yPN-O.pageX,x.deltaY=ZpV-O.pageY));return x};
PGr=function(O){this.element=O;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Iir=function(O){this.element=O;this.color=window.getComputedStyle(O).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");_.G0(this.waveContainer).appendChild(this.wave);cPr(this)};
Xe=function(O,x){for(var e in O)if(e.toLowerCase()===x.toLowerCase())return O[e]};
VPw=function(O,x){for(var e in O)if(e.toLowerCase()===x.toLowerCase()){delete O[e];break}};
RCw=function(O){O=_.HX.clone(O);for(var x=0;x<pPN.length;++x){var e=pPN[x],l=Xe(O,e);l&&(O["X-Goog-Upload-Header-"+e]=l,VPw(O,e))}return O};
UXi=function(O){O=_.HX.clone(O);VPw(O,"X-Goog-Upload-Status")};
mXr=function(O){return ais.some(function(x){return x.test(O)})};
zC8=function(O,x){var e;var l=(e=O.formContent)==null?void 0:e.locale;e=l==null?void 0:l.split("-")[0];l=l&&s3V.includes(l)?l:e&&s3V.includes(e)?e:void 0;l=(l!=null?l:"en").replaceAll("-","_").toLowerCase();var C;O=((C=O.initializationData)==null?0:C.useNightlyRelease)?"nightly":"live";var Q;return(x==null?0:(Q=x.getEnableAlohaBinarySplit)==null?0:Q.call(x))?_.on(Wii,O):_.on(hCr,O,l)};
KiN=function(O,x,e,l){if(rPr&&HpL===x)return rPr;HpL=x;var C=zC8(O,l);return rPr=x.feedbackV2GlobalObject?Promise.resolve(x.feedbackV2GlobalObject):new Promise(function(Q,L){var k=_.R9("SCRIPT");_.QP(k,C);k.onload=function(){x.feedbackV2GlobalObject?Q(x.feedbackV2GlobalObject):L(Error("lf"))};
k.onerror=function(){L(Error("mf`"+C.toString()))};
e.body.appendChild(k)})};
uJ7=function(O,x,e,l){if(dXs&&nhw===x)return dXs;nhw=x;var C=zC8(O,l);return dXs=x.feedbackV2GlobalObject?Promise.resolve(x.feedbackV2GlobalObject):new Promise(function(Q,L){var k=_.R9("SCRIPT");_.QP(k,C);k.onload=function(){x.feedbackV2GlobalObject?Q(x.feedbackV2GlobalObject):L(Error("lf"))};
k.onerror=function(){L(Error("mf`"+C.toString()))};
e.body.appendChild(k)})};
YNi=function(O,x,e,l,C){C=C===void 0?!0:C;var Q,L,k,M,G;return _.A(function(X){switch(X.nextAddress){case 1:return Q=Date.now(),X.yield(KiN(O,e,l,x),2);case 2:L=X.yieldResult;if(!(C||((M=O.initializationData)==null?0:M.useNightlyRelease)||((G=O.initializationData)==null?0:G.isLocalServer))){k=L.initializeFeedbackClient(O,Q,x);X.jumpTo(3);break}return X.yield(L.initializeFeedbackClientAsync(O,Q,x),4);case 4:k=X.yieldResult;case 3:return k.initiateAloha(),X.return(k)}})};
BvV=function(O,x,e,l){var C,Q,L;return _.A(function(k){if(k.nextAddress==1)return C=Date.now(),k.yield(uJ7(O,e,l.document,x),2);if(k.nextAddress!=3)return Q=k.yieldResult,k.yield(Q.initializeFeedbackClientAsync(O,C,x,l),3);L=k.yieldResult;L.initiateAloha();return k.return(L)})};
vhr=function(O,x,e){var l=!0;l=l===void 0?!0:l;var C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){C=e||_.CV;if((Q=x)==null?0:(k=(L=Q).getEnableAlohaBinarySplit)==null?0:k.call(L)){M=C;if(M.isFormOpened)throw G=Error("nf"),G.name="DuplicateFormError",G;M.isFormOpened=!0;O.callbacks=O.callbacks||{};X=O.callbacks.onClose||function(){};
O.callbacks.onClose=function(U){M.isFormOpened=!1;X(U)};
try{return P.return(BvV(O,x,M,C))}catch(U){throw M.isFormOpened=!1,U;}}else{y=C;if(y.isFormOpened)throw Z=Error("nf"),Z.name="DuplicateFormError",Z;y.isFormOpened=!0;O.callbacks=O.callbacks||{};E=O.callbacks.onClose||function(){};
O.callbacks.onClose=function(U){y.isFormOpened=!1;E(U)};
try{return P.return(YNi(O,x,y,C.document,l))}catch(U){throw y.isFormOpened=!1,U;}}_.Ra(P)})};
j37=function(O,x){return _.A(function(e){return e.return(new Promise(function(l,C){Number.isInteger(Number(O))&&Number(O)>0?(C=fir(x!=null?x:"")+"/aloha_form_properties?productId="+O,JPs(C,function(Q){Q=Q.target;var L=null;try{var k=JSON,M=k.stringify;if(Q.JSC$9791_xhr_){var G=Q.JSC$9791_xhr_.responseText;G.indexOf(")]}'\n")==0&&(G=G.substring(5));var X=(0,_.og)(G)}else X=void 0;L=jSi(wPn,M.call(k,X))}catch(y){M=new wPn,X=SNr(),X=_.yo(X,13,!1),X=_.yo(X,14,!0),X=_.yo(X,15,!0),X=_.yo(X,20,!1),L=_.IS(M,
1,X)}l(L)},"GET","",{},2E3,!0)):C(Error("of`"+O))}))})};
fir=function(O){return mXr(O)?O:"https://www.google.com/tools/feedback"};
ip7=function(O){O=O.match(new RegExp(Nvn,"gi"))||[];O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;a:{var e=_.T(ghi);for(var l=e.next();!l.done;l=e.next())if(l.value.test(x)){e=!1;break a}e=!0}if(!e)a:{e=_.T($Xn);for(l=e.next();!l.done;l=e.next())if(l.value.test(x)){e=!0;break a}e=!1}if(e)return!0}return!1};
O6r=function(O,x){var e={},l=Object.keys(O);l=_.T(l);for(var C=l.next();!C.done;C=l.next())C=C.value,e[C]=x(C,O[C]);return e};
x_m=function(O){switch(O){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"}};
lmw=function(O){if(window.crypto&&window.crypto.getRandomValues)try{var x=Array(O),e=new Uint8Array(O);window.crypto.getRandomValues(e);for(var l=0;l<x.length;l++)x[l]=e[l];return x}catch(Q){}x=Array(O);for(e=0;e<O;e++){l=Date.now();for(var C=0;C<l%23;C++)x[e]=Math.random();x[e]=Math.floor(Math.random()*256)}if(eb7)for(e=1,l=0;l<eb7.length;l++)x[e%O]^=x[(e-1)%O]/4^eb7.charCodeAt(l),e++;return x};
Zf=function(O){O=lmw(O);for(var x=[],e=0;e<O.length;e++)x.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(O[e]&63));return x.join("")};
Czi=function(){var O=_.CV.ytLoggingDocDocumentNonce_;O||(O=Zf(16),_.MB("ytLoggingDocDocumentNonce_",O));return O};
b6i=function(O){O&&_.uU("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Q18,clientScreenNonce:O})};
T27=function(O){return _.wz("client-screen-nonce-store",{})[O===void 0?0:O]};
L_$=function(O,x){x=x===void 0?0:x;var e=_.wz("client-screen-nonce-store");e||(e={},_.JZ("client-screen-nonce-store",e));e[x]=O};
kk8=function(O){O=O===void 0?0:O;return O===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+O};
A5r=function(O){return _.wz(kk8(O===void 0?0:O))};
_.q9=function(O){return(O=A5r(O===void 0?0:O))?new ts({veType:O,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Ma8=function(){var O=_.wz("csn-to-ctt-auth-info");O||(O={},_.JZ("csn-to-ctt-auth-info",O));return O};
D_8=function(){return Object.values(_.wz("client-screen-nonce-store",{})).filter(function(O){return O!==void 0})};
_.Pq=function(O){O=T27(O===void 0?0:O);if(!O&&!_.SS("USE_CSN_FALLBACK",!0))return null;O||(O="UNDEFINED_CSN");return O?O:null};
F_w=function(O){for(var x=_.T(Object.values(Gk$)),e=x.next();!e.done;e=x.next())if(_.Pq(e.value)===O)return!0;return!1};
Xgr=function(O,x,e){var l=Ma8();(e=_.Pq(e))&&delete l[e];x&&(l[O]=x)};
cq=function(O){return Ma8()[O]};
_.Ig=function(O,x,e,l){e=e===void 0?0:e;if(O!==T27(e)||x!==_.wz(kk8(e)))if(Xgr(O,l,e),L_$(O,e),_.JZ(kk8(e),x),x=function(){setTimeout(function(){b6i(O)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(x)}catch(C){x()}else x()};
oTN=function(O,x){x=x===void 0?"":x;var e=[],l;for(l in O)if(O.hasOwnProperty(l)){var C=x!==""?x+"."+l:l;typeof O[l]==="object"?e.push.apply(e,_.Kx(oTN(O[l],C))):e.push([C,O[l]])}e.sort();return e};
_.p1=function(O){var x=_.vw.apply(1,arguments);if(!Vo(O)||x.some(function(l){return!Vo(l)}))throw Error("pf");
x=_.T(x);for(var e=x.next();!e.done;e=x.next())y5V(O,e.value)};
y5V=function(O,x){for(var e in x)if(Vo(x[e])){if(e in O&&!Vo(O[e]))throw Error("qf");e in O||(O[e]={});y5V(O[e],x[e])}else if(Z6N(x[e])){if(e in O&&!Z6N(O[e]))throw Error("rf");e in O||(O[e]=[]);ETN(O[e],x[e])}else O[e]=x[e];return O};
ETN=function(O,x){x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,Vo(e)?O.push(y5V({},e)):Z6N(e)?O.push(ETN([],e)):O.push(e);return O};
Vo=function(O){return typeof O==="object"&&!Array.isArray(O)};
Z6N=function(O){return typeof O==="object"&&Array.isArray(O)};
qF$=function(O){for(var x=_.T(Object.entries(tam)),e=x.next();!e.done;e=x.next())if(e=_.T(e.value),e.next(),e=e.next().value,e==="SLI_STATUS_"+O)return e;return"SLI_STATUS_UNKNOWN"};
_.Rg=function(O,x,e,l){return PzL(O,x,function(){return new _.c5i(O,x,e,l)})};
_.Im$=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Var=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Ub=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
pgm=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Rbr=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
U_r=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
s17=function(O){O&&(O.dataset?O.dataset[am7()]="true":_.Tt([_.GJ(m_L)],O,"data-loaded","true".toString()))};
W_m=function(O){return O?O.dataset?O.dataset[am7()]:O.getAttribute("data-loaded"):null};
am7=function(){return hbN.loaded||(hbN.loaded="loaded".replace(/\-([a-z])/g,function(O,x){return x.toUpperCase()}))};
_.ag=function(O,x,e){zb7(O,x,e===void 0?null:e)};
_.H6V=function(O,x){O&&x&&(O=""+_.N$(x),(O=r5r[O])&&_.PV8(O))};
zb7=function(O,x,e){e=e===void 0?null:e;var l=_.K_W(typeof O==="string"?O:O.toString()),C=document.getElementById(l),Q=C&&W_m(C),L=C&&!Q;Q?x&&x():(x&&(Q=_.yQ(l,x),x=""+_.N$(x),r5r[x]=Q),L||(C=d_s(O,l,function(){W_m(C)||(s17(C),_.cB$(l),_.qb(function(){_.VfL(l)},0))},e)))};
d_s=function(O,x,e,l){l=l===void 0?null:l;var C=_.R9("SCRIPT");C.id=x;C.onload=function(){e&&setTimeout(e,0)};
C.onreadystatechange=function(){switch(C.readyState){case "loaded":case "complete":C.onload()}};
l&&C.setAttribute("nonce",l);_.QP(C,typeof O==="string"?_.Hv(O):O);O=document.getElementsByTagName("head")[0]||document.body;O.insertBefore(C,O.firstChild);return C};
_.K_W=function(O){var x=document.createElement("a");J7(x,O);return"js-"+mH(x.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
nT8=function(O){var x=_.wz("INNERTUBE_HOST_OVERRIDE");x&&(O=String(x)+String(_.sb(O)));return O};
uIr=function(O){var x={};_.t("json_condensed_response")&&(x.prettyPrint="false");return O=ffw(O,x)};
_.Wq=function(O){return Aq(O)?"same-origin":"include"};
_.hs=function(O){return Aq(O)?"same-origin":"cors"};
z0=function(O,x,e){e=e===void 0?{}:e;O={method:x===void 0?"POST":x,mode:_.hs(O),credentials:_.Wq(O)};x={};for(var l=_.T(Object.keys(e)),C=l.next();!C.done;C=l.next())C=C.value,e[C]&&(x[C]=e[C]);Object.keys(x).length>0&&(O.headers=x);return O};
_.rr=function(O,x){x=x===void 0?{}:x;return"service:"+O+"/"+Object.keys(x).sort().map(function(e){return e+":"+x[e]}).join("/")};
YFw=function(O){var x,e,l,C;O=(x=_.q(O,_.Hq))==null?void 0:(e=x.watchEndpointSupportedOnesieConfig)==null?void 0:(l=e.html5PlaybackOnesieConfig)==null?void 0:(C=l.commonConfig)==null?void 0:C.url;if(!O)return[];x=new _.K1(O);return x.JSC$10027_domain_?["https://"+x.JSC$10027_domain_+"/generate_204"]:[]};
_.fmr=function(){return B2N()||gmW()||vTi&&S3("version/")?!0:_.wz("EOM_VISITOR_DATA")?!1:!0};
J5r=function(O){var x=O.docid||O.video_id||O.videoId||O.id;if(x)return x;x=O.raw_player_response;x||(O=O.player_response)&&(x=JSON.parse(O));return x&&x.videoDetails&&x.videoDetails.videoId||null};
wgs=function(O){return O.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
dr=function(O){return!isNaN(Number(O))&&!_.AL(O)};
_.uh=function(O,x,e,l){l=l===void 0?!0:l;var C=_.wz("VALID_SESSION_TEMPDATA_DOMAINS",[]),Q=_.Lb(window.location.href);Q&&C.push(Q);Q=_.Lb(O);if(_.ur(C,Q)||!Q&&_.br(O,"/"))if(C=document.createElement("a"),J7(C,O),O=C.href)if(O=_.sb(O),O=_.n1(O))l&&!x.csn&&(x.itct||x.ved)&&(x=Object.assign({csn:_.Pq()},x)),e?(e=parseInt(e,10),isFinite(e)&&e>0&&SFn(O,x,e)):SFn(O,x)};
N2L=function(O){var x=_.wz("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=_.Lb(window.location.href);e&&x.push(e);e=_.Lb(O);if(!(_.ur(x,e)||!e&&_.br(O,"/")))return null;O=_.sb(O);(O=_.n1(O))?(O=j1L(O),O=(O=_.mK.get(O,void 0)||null)?_.lu(O):{}):O=null;return O};
SFn=function(O,x,e){O=j1L(O);x=x?_.RO(x):"";e=e||5;_.fmr()&&_.sC(O,x,e)};
j1L=function(O){for(var x=_.T(gTm),e=x.next();!e.done;e=x.next())O=_.Y7(O,e.value);return"ST-"+mH(O).toString(36)};
_.$_s=function(O){if(O.requestFullscreen)O=O.requestFullscreen(void 0);else if(O.webkitRequestFullscreen)O=O.webkitRequestFullscreen();else if(O.mozRequestFullScreen)O=O.mozRequestFullScreen();else if(O.msRequestFullscreen)O=O.msRequestFullscreen();else if(O.webkitEnterFullscreen)O=O.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return O instanceof Promise?O:Promise.resolve()};
_.vq=function(O){var x;_.kO$(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Bq()==O&&(x=document):x=O;if(x&&(O=_.kO$(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],x))){O.call(x)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Bq=function(){var O=O===void 0?!1:O;var x=_.kO$(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(O)for(;x&&x.shadowRoot;)x=x.shadowRoot.fullscreenElement;return x?x:null};
_.f1=function(O,x){x=x===void 0?!0:x;O.addEventListener("wheel",i6r);O.overscrollConfig={cooldown:x}};
_.Js=function(O){O.overscrollConfig=void 0;O.removeEventListener("wheel",i6r)};
i6r=function(O){var x=O.deltaY,e=O.target,l=null;if(window.Polymer&&window.Polymer.Element){if(e=O.path||O.composedPath&&O.composedPath()){e=_.T(e);for(var C=e.next();!C.done&&(C=C.value,!OYN(C,x));C=e.next())if(C.overscrollConfig){l=C;break}}}else for(;e&&!OYN(e,x);){if(e.overscrollConfig){l=e;break}e=e.parentElement}l&&(x=l.overscrollConfig,x.cooldown?(l=O.deltaY,e=x.lastDeltaY||0,x.lastDeltaY=l,C=x.lastStopped||0,e&&C&&e>0==l>0?Math.abs(e)>=Math.abs(l)?(l=C+1200,e=!1):(l=C+600,e=!0):(l=Date.now()+
600,e=!0),l>Date.now()&&(O.preventDefault(),e&&(x.lastStopped=Date.now()))):O.preventDefault())};
OYN=function(O,x){return x<0&&O.scrollTop>0||x>0&&O.scrollTop<O.scrollHeight-O.clientHeight-1?(O=getComputedStyle(O).overflowY,O=="auto"||O=="scroll"):!1};
_.wr=function(O,x,e,l){l||(l={bubbles:!0,cancelable:!1,composed:!0});e!==null&&e!==void 0&&(l.detail=e);var C=new CustomEvent(x,l);_.t("untrack_fire_custom_event_killswitch")?O.dispatchEvent(C):_.cL(function(){return void O.dispatchEvent(C)});
return C};
xsr=function(O){var x=window,e=function(l){x.removeEventListener("yt-navigate-start",e);return O.call(x,l)};
x.addEventListener("yt-navigate-start",e,void 0)};
_.Sh=function(O,x,e,l){x=new etW(x,!(l===void 0||!l),e);_.wr(O,"yt-action",x);return x.returnValue};
_.jh=function(O,x,e){return _.Sh(O,x,e,!0)};
_.gr=function(O,x,e,l){x&&x.length&&x.forEach(function(C){var Q=TYL(C);Q&&(_.t("handle_service_request_actions")&&C.commandMetadata&&C.commandMetadata.webCommandMetadata&&C.commandMetadata.webCommandMetadata.sendPost?_.N9(e?e:O,[C]):_.jh(O,Q,[C,e,l]))})};
_.N9=function(O,x){var e=[O];x&&e.push.apply(e,x);x=_.Sh(O,"yt-service-request",e);return x.length>0&&(x=x[0],_.wr(O,"yt-service-request-sent",x),x&&x.ajaxPromise)?(x.ajaxPromise.then(function(l){_.wr(O,"yt-service-request-completed",l)},function(l){_.wr(O,"yt-service-request-error",{error:l,
params:e})},O),x.ajaxPromise):_.$7()};
_.OO=function(O,x){if(_.t("handle_service_request_actions"))_.gr(x,O,x);else{O=_.T(O);for(var e=O.next();!e.done;e=O.next()){e=e.value;var l=void 0;((l=_.q(e,_.ih))==null?0:l.commands)?_.OO(_.q(e,_.ih).commands,x):(l=void 0,((l=_.q(e,_.xm))==null?0:l.actions)?_.OO(_.q(e,_.xm).actions,x):(l=void 0,((l=_.q(e.commandMetadata,_.e6))==null?0:l.sendPost)?_.N9(x,[e]):_.gr(x,[e],x)))}}};
_.CNr=function(O,x,e){x=x===void 0?{}:x;typeof x==="function"&&(x={callback:x});e||x._c&&x._c.jsl&&x._c.jsl.h||_.HX.extend(x,{_c:{jsl:{h:_.wz("GAPI_HINT_PARAMS")}}});(x.gapiHintOverride||_.wz("GAPI_HINT_OVERRIDE"))&&(e=_.Cb(document.location.href).gapi_jsh)&&_.HX.extend(x,{_c:{jsl:{h:e}}});lMw(O,x)};
_.CZ=function(O,x,e){x=x===void 0?{}:x;O=(O=O in l_?l_[O]:e)||"";e={};for(var l in x){e={key$jscomp$843:e.key$jscomp$843};e.key$jscomp$843=l;var C=function(Q){return function(){return String(x[Q.key$jscomp$843])}}(e);
O=O.replace(new RegExp("\\$\\{"+e.key$jscomp$843+"\\}","gi"),C);O=O.replace(new RegExp("\\$"+e.key$jscomp$843,"gi"),C)}return O};
_.QO=function(O,x){return Qqs(O in l_?l_[O]:{},x)};
Qqs=function(O,x){var e=_.wz("I18N_PLURAL_RULES");e||(e=function(l){return l==1?"one":"other"});
return(O=O["case"+x]||O[e(x)])?O.replace("#",x.toString()):x+""};
L5L=function(O){var x=bY7(O),e=document.getElementById(x),l=e&&W_m(e);l||e&&!l||(e=Tfm(O,x,function(){if(!W_m(e)){s17(e);_.cB$(x);var C=_.b_(_.VfL,x);_.qb(C,0)}}))};
Tfm=function(O,x,e){var l=document.createElement("link");l.id=x;l.onload=function(){e&&setTimeout(e,0)};
O=_.Hv(O);_.Lx(l,O,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(l);return l};
bY7=function(O){var x=_.R9("A");J7(x,zH(O));return"css-"+mH(x.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.AE$=function(O){var x=kUL();O!==x&&(x=_.TD(),!_.t("web_autonav_allow_off_by_default")&&O||_.LZ(0,141,!0),_.LZ(0,140,!O),x.save())};
kUL=function(){var O=_.TD();return _.t("web_autonav_allow_off_by_default")&&!O.getFlag(141)&&_.wz("AUTONAV_OFF_BY_DEFAULT")?!1:!O.getFlag(140)};
Mmm=function(O,x){var e,l;O=((e=O.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(l=e.videoAuthorizationToken)==null?void 0:l.credentialTransferTokens)||[];for(e=0;e<O.length;++e)if(O[e].scope===x)return O[e].token||void 0};
DsN=function(O){for(var x=0,e=0;e<O.length;e++)x=x*31+O.charCodeAt(e),e<O.length-1&&(x%=0x800000000000);return x%1E5};
_.km=function(O){return _.i8("ytcsi."+(O||"")+"data_")||GUn(O)};
_.F5L=function(O){O=_.km(O);O.metadata||(O.metadata={});return O.metadata};
_.Xjr=function(O){O=_.km(O);O.tick||(O.tick={});return O.tick};
_.A3=function(O){O=_.km(O);if(O.gel){var x=O.gel;x.gelInfos||(x.gelInfos={});x.gelTicks||(x.gelTicks={})}else O.gel={gelTicks:{},gelInfos:{}};return O.gel};
_.oor=function(O){O=_.A3(O);O.gelInfos||(O.gelInfos={});return O.gelInfos};
yEW=function(O){var x=_.km(O).nonce;x||(x=Zf(16),_.km(O).nonce=x);return x};
GUn=function(O){var x={tick:{},info:{}};_.MB("ytcsi."+(O||"")+"data_",x);return x};
ZYm=function(){var O=_.i8("ytcsi.debug");O||(O=[],_.MB("ytcsi.debug",O),_.MB("ytcsi.reference",{}));return O};
_.Mg=function(O){O=O||"";var x=Eo$();if(x[O])return x[O];var e=ZYm(),l={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};e.push(l);return x[O]=l};
tms=function(O){O=O||"";var x=Eo$();x[O]&&delete x[O];var e=ZYm(),l={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};e.push(l);x[O]=l};
Eo$=function(){var O=_.i8("ytcsi.reference");if(O)return O;ZYm();return _.i8("ytcsi.reference")};
_.PNw=function(O){return qlr[O]||"LATENCY_ACTION_UNKNOWN"};
pji=function(O,x,e){e=e===void 0?{}:e;var l=!1;_.SS("ytLoggingEventsDefaultDisabled",!1)&&(l=!0);l=l?null:nt;e=e===void 0?{}:e;var C=Math.round(e.timestamp||(0,_.F2)());_.WH(x,1,C<Number.MAX_SAFE_INTEGER?C:0);C=new cE7;if(e.lact)_.WH(C,1,isFinite(e.lact)?e.lact:-1);else if(e.timestamp)_.WH(C,1,-1);else{var Q=_.Gl();_.WH(C,1,isFinite(Q)?Q:-1)}if(e.sequenceGroup&&!_.t("web_gel_sequence_info_killswitch")){Q=e.sequenceGroup;var L=zPw(Q),k=new IMW;_.WH(k,2,L);_.mO(k,1,Q);_.IS(C,3,k);e.endOfSequence&&delete VmV[e.sequenceGroup]}_.IS(x,
33,C);(e.sendIsolatedPayload?Yx7:BPL)(O,{endpoint:"log_event",payload:x,cttAuthInfo:e.cttAuthInfo,dangerousLogToVisitorSession:e.dangerousLogToVisitorSession},l)};
_.FC=function(){return(_.t("csi_use_time_origin")||_.t("csi_use_time_origin_tvhtml5"))&&_.GD.timeOrigin?Math.floor(_.GD.timeOrigin):_.GD.timing.navigationStart};
_.Rtr=function(O,x){_.XC("_start",O,x)};
_.oR=function(O,x){if(!_.t("web_csi_action_sampling_enabled")||!_.km(x).actionDisabled){var e=_.Mg(x||"");_.p1(e.info,O);O.loadType&&(e=O.loadType,_.F5L(x).loadType=e);_.p1(_.oor(x),O);e=yEW(x);x=_.km(x).cttAuthInfo;UsL().info(O,e,x)}};
aMw=function(){var O,x,e,l;return((l=_.GG().resolve(_.D0(rl))==null?void 0:(O=HH())==null?void 0:(x=O.loggingHotConfig)==null?void 0:(e=x.csiConfig)==null?void 0:e.debugTicks)!=null?l:[]).map(function(C){return Object.values(C)[0]})};
_.XC=function(O,x,e){if(!_.t("web_csi_action_sampling_enabled")||!_.km(e).actionDisabled){var l=yEW(e),C;if(C=_.t("web_csi_debug_sample_enabled")&&l){(_.GG().resolve(_.D0(rl))==null?0:HH())&&!msi&&(msi=!0,_.XC("gcfl",(0,_.F2)(),e));var Q,L,k;C=(_.GG().resolve(_.D0(rl))==null?void 0:(Q=HH())==null?void 0:(L=Q.loggingHotConfig)==null?void 0:(k=L.csiConfig)==null?void 0:k.debugSampleWeight)||0;if(Q=C!==0)b:{Q=aMw();if(Q.length>0)for(L=0;L<Q.length;L++)if(O===Q[L]){Q=!0;break b}Q=!1}Q?(C=DsN(l)%C!==0,
_.km(e).debugTicksExcludedLogged||(Q={},Q.debugTicksExcluded=C,_.oR(Q,e)),_.km(e).debugTicksExcludedLogged=!0):C=!1}if(!C){O[0]!=="_"&&sqw(O,e,x);C=_.Mg(e||"");C.tick[O]=x||(0,_.F2)();if(C.callback&&C.callback[O])for(C=_.T(C.callback[O]),Q=C.next();!Q.done;Q=C.next())Q=Q.value,Q();C=_.A3(e);C.gelTicks&&(C.gelTicks[O]=!0);Q=_.Xjr(e);C=x||(0,_.F2)();_.t("log_repeated_ytcsi_ticks")?O in Q||(Q[O]=C):Q[O]=C;Q=_.km(e).cttAuthInfo;O==="_start"?UsL().baseline(l,x,Q):UsL().tick(O,l,x,Q);_.W5n(e);return C}}};
sqw=function(O,x,e){if(_.GD.mark)if(O.startsWith("mark_")||(O="mark_"+O),x&&(O+=" ("+x+")"),e===void 0||_.t("web_csi_disable_alt_time_performance_mark"))_.GD.mark(O);else{e=_.t("csi_use_performance_navigation_timing")?e-_.GD.timeOrigin:e-(_.GD.timeOrigin||_.GD.timing.navigationStart);try{_.GD.mark(O,{startTime:e})}catch(l){}}};
htL=function(){var O,x=(O=_.GD.getEntriesByType)==null?void 0:O.call(_.GD,"mark");x&&x.forEach(function(e){if(e.name.startsWith("mark_")){var l;(l=_.GD.clearMarks)==null||l.call(_.GD,e.name)}})};
_.ztr=function(){switch(Lew()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.rEL=function(O){var x={},e=function(Q,L,k){L=L.match("_rid")?L.split("_rid")[0]:L;typeof k==="number"&&(k=JSON.stringify(k));Q.requestIds?Q.requestIds.push({endpoint:L,id:k}):Q.requestIds=[{endpoint:L,id:k}]};
O=_.T(Object.entries(O));for(var l=O.next();!l.done;l=O.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;switch(l){case "GetBrowse_rid":e(x,l,C);break;case "GetGuide_rid":e(x,l,C);break;case "GetHome_rid":e(x,l,C);break;case "GetPlayer_rid":e(x,l,C);break;case "GetSearch_rid":e(x,l,C);break;case "GetSettings_rid":e(x,l,C);break;case "GetTrending_rid":e(x,l,C);break;case "GetWatchNext_rid":e(x,l,C);break;case "yt_red":x.isRedSubscriber=!!C;break;case "yt_ad":x.isMonetized=!!C}}return x};
K5w=function(O,x,e,l,C,Q){if(!_.t("web_csi_action_sampling_enabled")||!_.km(Q).actionDisabled){var L=_.A3(Q);if(L.gelSpans)L.gelSpans[O]=!0;else{var k={};L.gelSpans=(k[O]=!0,k)}HYr++;O={spanName:O,spanLengthUsec:String(Math.round(x*1E3)),spanNonce:HYr};l&&(O.spanInfo=l);C&&(O.parentSpanNonce=C);e&&(O.spanStartTimeUsec=String(Math.round(e*1E3)));_.Mg(Q||"").span[String(O.spanName)]=O;e=_.A3(Q);e.gelSpans||(e.gelSpans={});_.p1(e.gelSpans,O);e=yEW(Q);Q=_.km(Q).cttAuthInfo;UsL().span(O,e,Q);return O.spanNonce}};
_.dsN=function(O){var x=_.yO("aft",O);if(x)return x;x=_.wz((O||"")+"TIMING_AFT_KEYS",["ol"]);for(var e=x.length,l=0;l<e;l++){var C=_.yO(x[l],O);if(C)return C}return NaN};
_.no7=function(O,x){_.MB("ytglobal.timing"+(x||"")+"ready_",O)};
_.yO=function(O,x){if(O=_.Xjr(x)[O])return typeof O==="number"?O:O[O.length-1]};
_.W5n=function(O){var x=_.yO("_start",O),e=_.dsN(O),l=!ufs;x&&e&&l&&(rUr(Yl8,new BfW(Math.round(e-x),O)),ufs=!0)};
fMn=function(O){GUn(O);voN();htL();O||(_.wz("TIMING_ACTION")&&_.JZ("PREVIOUS_ACTION",_.wz("TIMING_ACTION")),_.JZ("TIMING_ACTION",""))};
_.JEr=function(O){O=O===void 0?{}:O;_.$K(function(){Z2();tms();fMn();_.no7(!1);O.cttAuthInfo&&(_.km().cttAuthInfo=O.cttAuthInfo);_.JZ("TIMING_AFT_KEYS",[]);O.isHot?_.EO({loadType:"hot"}):_.EO({loadType:"warm"});_.JZ("TIMING_ACTION","");delete _.wz("TIMING_INFO",{}).yt_lt;_.$K(_.Rtr)(O.startTime,void 0)})()};
_.cU=function(O,x,e,l){x=x===void 0?{}:x;_.$K(function(){var C=e?e:O;t3(C);var Q=x.sampleRate;if(!_.t("web_csi_action_sampling_enabled")||Q===void 0||Q<=1)Q=!1;else{var L=yEW(C);Q=DsN(L)%Q!==0}Q&&(_.km(C).actionDisabled=!0);_.Mg(C||"").info.actionType=O;x.cttAuthInfo&&(_.km(C).cttAuthInfo=x.cttAuthInfo);_.JZ(C+"TIMING_ACTION",O);_.$K(_.Rtr)(x.startTime,C);Q={actionType:l||_.PNw(O)};x.logPreviousAction&&(Q.previousAction=_.PNw(_.wz("TIMING_ACTION")));(L=_.Pq())&&L!=="UNDEFINED_CSN"&&(Q.clientScreenNonce=
L);_.EO(Q,C);_.no7(!0,C)})()};
t3=function(O){_.$K(function(){Z2(O);tms(O);fMn(O)})()};
wjs=function(){_.$K(function(){var O=[],x;for(x in _.i8("ytcsi.".slice(0,-1)))x.endsWith("data_")&&O.push(x.slice(0,-5));O=_.T(O);for(x=O.next();!x.done;x=O.next())t3(x.value);Z2()})()};
_.jqi=function(O){return _.$K(function(){return _.Sls("_start",O)})()};
_.EO=function(O,x,e){_.$K(_.oR)(O,x,e===void 0?!1:e)};
_.IR=function(O,x,e){return _.$K(_.XC)(O,x,e)};
_.Sls=function(O,x){return _.$K(function(){var e=_.Xjr(x);return O in e})()};
gor=function(O){if(!_.t("universal_csi_network_ticks"))return"";O=_.VF(O)||"";for(var x=Object.keys(NfL),e=0;e<x.length;e++){var l=x[e];if(O.includes(l))return l}return""};
iYi=function(O){if(!_.t("universal_csi_network_ticks"))return function(){};
var x=NfL[O];return x?(_.VO(x),function(){var e=_.t("universal_csi_network_ticks")?(e=$sm[O])?_.VO(e):!1:!1;return e}):function(){}};
_.VO=function(O,x,e){return _.$K(function(){if(_.Sls(O,e))return!1;_.IR(O,x,e);return!0})()};
_.pZ=function(O,x,e){_.$K(function(){if(!_.jqi(e)||_.Sls(O,e))return!1;_.IR(O,x,e);return!0})()};
_.RR=function(O){return _.$K(_.yO)(O,void 0)};
Z2=function(O){_.jqi(O)&&_.IR("aa",void 0,O)};
_.CQm=function(O,x,e,l,C,Q,L,k,M){var G=Oom();k=new ts({veType:x,youtubeData:Q,jspbYoutubeData:k});Q=UO({},G);C&&(Q.cttAuthInfo=C);C={csn:G,pageVe:k.getAsJson()};_.t("expectation_logging")&&M&&M.screenCreatedLoggingExpectations&&(C.screenCreatedLoggingExpectations=M.screenCreatedLoggingExpectations);e&&e.visualElement?(C.implicitGesture={parentCsn:e.clientScreenNonce,gesturedVe:e.visualElement.getAsJson()},L&&(C.implicitGesture.gestureType=L)):e&&_.ft(new _.ry("newScreen() parent element does not have a VE - rootVe",
x));l&&(C.cloneCsn=l);O?dl("screenCreated",C,O,Q):_.uU("screenCreated",C,Q);rUr(BO7,new xKn(G));aR.clear();emL.clear();lv8.clear();return G};
mR=function(O,x,e,l,C,Q){Q=Q===void 0?{}:Q;Q7W(O,x,e,[l],C===void 0?!1:C,Q)};
Q7W=function(O,x,e,l,C,Q){C=C===void 0?!1:C;Q=Q===void 0?{}:Q;Object.assign(Q,UO({cttAuthInfo:cq(x)||void 0},x));for(var L=_.T(l),k=L.next();!k.done;k=L.next()){k=k.value;var M=k.getAsJson();(_.HX.isEmpty(M)||!M.trackingParams&&!M.veType)&&_.ft(Error("Bf"));if(_.t("no_client_ve_attach_unless_shown")){var G=bor(k,x);if(M.veType&&!emL.has(G)&&!lv8.has(G)&&!C){if(!_.t("il_attach_cache_limit")||aR.size<1E3){aR.set(G,[O,x,e,k]);return}_.t("il_attach_cache_limit")&&aR.size>1E3&&_.ft(new _.ry("IL Attach cache exceeded limit"))}k=
bor(e,x);aR.has(k)?TxV(e,x):lv8.set(k,!0)}}l=l.filter(function(X){X.csn!==x?(X.csn=x,X=!0):X=!1;return X});
e={csn:x,parentVe:e.getAsJson(),childVes:_.Ku(l,function(X){return X.getAsJson()})};
x==="UNDEFINED_CSN"?sO("visualElementAttached",Q,e):O?dl("visualElementAttached",e,O,Q):_.uU("visualElementAttached",e,Q)};
kjs=function(O,x,e,l,C){Lwi(O,x,e,C)};
Lwi=function(O,x,e,l){Axw(e,x);var C=UO({cttAuthInfo:cq(x)||void 0},x);e={csn:x,ve:e.getAsJson(),eventType:1};l&&(e.clientData=l);x==="UNDEFINED_CSN"?sO("visualElementShown",C,e):O?dl("visualElementShown",e,O,C):_.uU("visualElementShown",e,C)};
Mos=function(O,x,e,l){Axw(e,x);var C=UO({cttAuthInfo:cq(x)||void 0},x);e={csn:x,ve:e.getAsJson(),eventType:4};l&&(e.clientData=l);x==="UNDEFINED_CSN"?sO("visualElementShown",C,e):O?dl("visualElementShown",e,O,C):_.uU("visualElementShown",e,C)};
DKN=function(O,x,e,l,C){var Q=(l=l===void 0?!1:l)?16:8;l=UO({cttAuthInfo:cq(x)||void 0,endOfSequence:l},x);e={csn:x,ve:e.getAsJson(),eventType:Q};C&&(e.clientData=C);x==="UNDEFINED_CSN"?sO("visualElementHidden",l,e):O?dl("visualElementHidden",e,O,l):_.uU("visualElementHidden",e,l)};
Fww=function(O,x,e,l,C){Gjn(O,x,e,void 0,l,C)};
Gjn=function(O,x,e,l,C){Axw(e,x);l=l||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Q=UO({cttAuthInfo:cq(x)||void 0},x);e={csn:x,ve:e.getAsJson(),gestureType:l};C&&(e.clientData=C);x==="UNDEFINED_CSN"?sO("visualElementGestured",Q,e):O?dl("visualElementGestured",e,O,Q):_.uU("visualElementGestured",e,Q)};
XuN=function(O,x,e,l){var C=UO({cttAuthInfo:cq(x)||void 0},x);e={csn:x,ve:e.getAsJson(),clientData:l};x==="UNDEFINED_CSN"?sO("visualElementStateChanged",C,e):O?dl("visualElementStateChanged",e,O,C):_.uU("visualElementStateChanged",e,C)};
oj8=function(){var O=lmw(16);for(var x=[],e=0;e<O.length;e++)x.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(O[e]&63));return x.join("")};
sO=function(O,x,e){yxr.push({payloadName:O,payload:e,jspbPayload:void 0,options:x});Zor||(Zor=fEL())};
YAn=function(O){if(yxr){for(var x=_.T(yxr),e=x.next();!e.done;e=x.next())e=e.value,e.payload&&(e.payload.csn=O.csn,_.uU(e.payloadName,e.payload,e.options));yxr.length=0}Zor=0};
bor=function(O,x){return""+O.getAsJson().veType+O.getAsJson().veCounter+x};
Axw=function(O,x){if(_.t("no_client_ve_attach_unless_shown")){var e=bor(O,x);emL.set(e,!0);TxV(O,x)}};
TxV=function(O,x){O=bor(O,x);aR.has(O)&&(x=aR.get(O)||[],mR(x[0],x[1],x[2],x[3],!0),aR.delete(O))};
UO=function(O,x){_.t("log_sequence_info_on_gel_web")&&(O.sequenceGroup=x);return O};
_.WU=function(O,x,e){_.$K(mR)(void 0,O,x,e)};
_.h3=function(O,x,e){_.$K(Q7W)(void 0,O,x,e)};
_.zD=function(O,x){_.$K(kjs)(void 0,O,x,void 0,void 0,void 0)};
_.rT=function(O,x,e){_.$K(function(){_.e3(x,function(l){Mos(void 0,O,l,e)})})()};
_.HU=function(O,x,e,l){_.$K(function(){_.e3(x,function(C){DKN(void 0,O,C,e,l)})})()};
_.KZ=function(O,x,e){_.$K(Fww)(void 0,O,x,e,void 0)};
_.dT=function(O,x,e,l){_.$K(Gjn)(void 0,O,x,e,l,void 0)};
_.nZ=function(O,x,e){_.$K(XuN)(void 0,O,x,e,void 0)};
Eji=function(O,x){u_.set(O,x)};
toi=function(O){Ym.initialized=!0;Ym.sessionId=O.sessionId||"";Ym.enabledSpans=O.enabledSpans;O.shouldSampleFn!=null&&(Ym.shouldSampleFn=O.shouldSampleFn)};
q7r=function(O){Ym.processors.push(O)};
PQ7=function(O){return Ym.initialized?Ym.enabledSpans?Ym.enabledSpans[O]:!0:!1};
cxs=function(O,x){if(O){x=x===void 0?1:x;if(O){O.endTime=(0,_.F2)();x&&(O.status=x);x=_.T(Ym.processors);for(var e=x.next();!e.done;e=x.next()){var l=void 0,C=void 0;(C=(l=e.value).onSpanEnd)==null||C.call(l,O)}}O!==Ym.stack[Ym.stack.length-1]&&_.ft(Error("Ef`"+O.name));Ym.stack.pop()}};
VoL=function(O,x,e){if(PQ7(O)&&Ym.shouldSampleFn(O,x,Ivr)){var l=Ym.nextSpanId++,C=Ym.stack[Ym.stack.length-1];O={id:l,parentId:C==null?void 0:C.id,name:O,attributes:x,traceId:C?C.traceId:l,sessionId:Ym.sessionId,startTime:(0,_.F2)(),status:0};C&&(C.children||(C.children=[]),C.children.push(O));C=_.T(Ym.processors);for(x=C.next();!x.done;x=C.next()){var Q=l=void 0;(Q=(l=x.value).onSpanStart)==null||Q.call(l,O)}}else O=void 0;O?Ym.stack.push(O):O=void 0;if(!O)return e();try{var L=e(O);cxs(O);return L}catch(k){throw cxs(O,
2),k;}};
puN=function(){};
RmN=function(O,x){var e=Object.keys(O);O=new _.ry("[Command Handler] "+x,{filteredCommandNames:e,originalCommand:O});_.BH(O)};
UKr=function(O,x){RmN(O,x+" was called but not set")};
avi=function(O){return function(){return new O}};
BU=function(O){return function(){return _.GG().resolve(O)}};
mKs=function(O,x){var e=_.q(O,_.Nu);if(e&&(e=x[e.signal]))return e();O=_.T(Object.keys(O));for(e=O.next();!e.done;e=O.next())if(e=e.value,x[e]&&(e=x[e]))return e()};
_.vU=function(O,x,e,l){return{browseEndpoint:{browseId:O},commandMetadata:{webCommandMetadata:{url:x,rootVe:e,webPageType:l===void 0?"WEB_PAGE_TYPE_BROWSE":l}}}};
s77=function(O,x,e){var l=x=x===void 0?0:x;e=e===void 0?0:e;var C=e-l;return _.fZ(O,"PPSV",void 0,void 0,(C>600?0:C<60||e<=0||l/e>.9)?0:x)};
_.fZ=function(O,x,e,l,C){var Q="/watch?v="+O;O={videoId:O};x&&(O.playlistId=x,Q+="&list="+x);l&&(Q+="&pp="+l);C&&(O.startTimeSeconds=C,Q+="&t="+C+"s");x={watchEndpoint:O,commandMetadata:{webCommandMetadata:{url:Q,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};e&&(x.clickTrackingParams=e);l&&(_.q(x,_.Hq).playerParams=l);return x};
Wwn=function(O){return{browseEndpoint:{browseId:"VL"+O},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+O,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
hmL=function(O){if(O){var x;if(O){var e=(x=_.q(O.commandMetadata,_.e6))==null?void 0:x.url;x=!(!e||e==="/service_ajax")}else x=!1;if(x)return O;var l;if(O=(l=_.q(O,_.ih))==null?void 0:l.commands)for(l=_.T(O),O=l.next();!O.done;O=l.next())if(O=hmL(O.value))return O}};
_.J3=function(O){return{runs:[{text:O}]}};
zm7=function(O,x){return O&&x?{runs:[{text:O,navigationEndpoint:x}]}:void 0};
wT=function(O){return O?_.J3(O):void 0};
_.S6=function(O){return O?{simpleText:O}:void 0};
_.j6=function(O){var x=O.type;O=O.payload;x={type:x};O!==void 0&&(x.payload=O);return x};
rxW=function(O,x,e){for(var l=Object.assign({},O),C=_.T(Object.keys(x)),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var L=O[Q],k=x[Q];if(k===void 0)delete l[Q];else if(L===void 0)l[Q]=k;else if(Array.isArray(k)&&Array.isArray(L))l[Q]=e?[].concat(_.Kx(L),_.Kx(k)):k;else if(!Array.isArray(k)&&_.w7(k)&&!Array.isArray(L)&&_.w7(L))l[Q]=rxW(L,k,e);else if(typeof k===typeof L)l[Q]=k;else return x=new _.ry("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Q,originalValue:L,updateValue:k}),
_.BH(x),O}return l};
dKr=function(O){if(!O.length)return"";try{if(HoL)return HoL.decode(O);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(O)}catch(L){}for(var x=0,e=[],l=O.length;x<l;){for(var C=0;C<1024&&x<l;){var Q=O[x++];if(Q<128)Kw8[C++]=Q;else{if(Q<224)Q=(Q&31)<<6|O[x++]&63;else if(Q<240)Q=(Q&15)<<12|(O[x++]&63)<<6|O[x++]&63;else{if(C+1===1024){--x;break}Q=(Q&7)<<18|(O[x++]&63)<<12|(O[x++]&63)<<6|O[x++]&63;Q-=65536;Kw8[C++]=55296|Q>>10;Q=56320|Q&1023}Kw8[C++]=Q}}Q=String.fromCharCode.apply(String,
Kw8);C<1024&&(Q=Q.substring(0,C));e.push(Q)}return e.join("")};
utW=function(O,x){var e;if((e=njn)==null?0:e.encodeInto)return x=njn.encodeInto(O,x),x.read<O.length?O.length*4:x.written;for(var l=e=0;l<O.length;l++){var C=O.charCodeAt(l);C<128?x[e++]=C:(C<2048?x[e++]=C>>6|192:((C&64512)===55296&&l+1<O.length&&(O.charCodeAt(l+1)&64512)===56320?(C=65536+((C&1023)<<10)+(O.charCodeAt(++l)&1023),x[e++]=C>>18|240,x[e++]=C>>12&63|128):x[e++]=C>>12|224,x[e++]=C>>6&63|128),x[e++]=C&63|128)}return e};
Y7$=function(O,x,e){if(x&&e&&e.buffer===x.exports.memory.buffer){var l=x.realloc(e.byteOffset,O);if(l)return new Uint8Array(x.exports.memory.buffer,l,O)}O=x?new Uint8Array(x.exports.memory.buffer,x.malloc(O),O):new Uint8Array(O);e&&O.set(e);return O};
_.gT=function(O){O=new Bxw(new vj8([_.ir(decodeURIComponent(O))]));if(fvL(O,2)){var x=Ng(O);var e=O.pos;var l=O.arrayView;e=e===void 0?0:e;var C=x===void 0?-1:x;e=e===void 0?0:e;C=C===void 0?-1:C;if(l.totalLength&&C){C<0&&(C=l.totalLength-e);l.focus(e);if(!(e-l.arrayPos+C<=l.arrays[l.arrayIdx].length)){var Q=l.arrayIdx,L=l.arrayPos;l.focus(e+C-1);L=new Uint8Array(l.arrayPos+l.arrays[l.arrayIdx].length-L);for(var k=0,M=Q;M<=l.arrayIdx;M++)L.set(l.arrays[M],k),k+=l.arrays[M].length;l.arrays.splice(Q,
l.arrayIdx-Q+1,L);l.arrayIdx=0;l.arrayPos=0;l.focus(e)}Q=l.arrays[l.arrayIdx];l=new DataView(Q.buffer,Q.byteOffset+e-l.arrayPos,C)}else l=new DataView(new ArrayBuffer(0));l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);O.pos+=x;x=l}else x=void 0;x=x?dKr(x):void 0;O=fvL(O,4)?Ng(O):void 0;l=Jxr[O];if(typeof l==="undefined")throw O=new _.ry("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:O}),_.BH(O),O;return{entityTypeFieldNumber:O,entityType:l,entityId:x}};
_.OQ=function(O,x,e){e=e===void 0?0:e;var l=new wur;if(njn)O=njn.encode(O);else{var C=new Uint8Array(Math.ceil(O.length*1.2)),Q=utW(O,C);C.length<Q&&(C=new Uint8Array(Q),Q=utW(O,C));C.length>Q&&(C=C.subarray(0,Q));O=C}O!==void 0&&($m(l,18),C=O.length,$m(l,C),i_(l,C),l.buf.set(O,l.pos),l.pos+=C);O=S7N[x];if(typeof O==="undefined")throw e=new _.ry("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:x}),_.BH(e),e;O!==void 0&&($m(l,32),$m(l,O));$m(l,40);$m(l,1);x=new Uint8Array(l.buf.buffer,
l.buf.byteOffset,l.pos);return encodeURIComponent(_.zX(x,e))};
j7N=function(O){O=O.key||O.id;if(!O)throw Error("Gf");return O};
gjn=function(O,x){O=O===void 0?{}:O;return Nxr(O,x)};
$KW=function(O,x,e,l){if(l===void 0)return l=Object.assign({},O[x]||{}),e=(delete l[e],l),l={},Object.assign({},O,(l[x]=e,l));var C={},Q={};return Object.assign({},O,(Q[x]=Object.assign({},O[x],(C[e]=l,C)),Q))};
ios=function(O,x,e,l,C){var Q=O[x];if(Q==null||!Q[e])return O;l=rxW(Q[e],l,C==="REPEATED_FIELDS_MERGE_OPTION_APPEND");C={};Q={};return Object.assign({},O,(Q[x]=Object.assign({},O[x],(C[e]=l,C)),Q))};
_.xE=function(O,x,e){return O[x]?O[x][e]||null:null};
xnN=function(){if(OLV)return OLV();var O={};OLV=GC("PersistentEntityStoreDb",{objectStores:(O.EntityStore={addedAtVersion:1},O.EntityAssociationStore={addedAtVersion:2},O),shared:!1,upgrade:function(x,e){e(1)&&$C(gD(x,"EntityStore",{keyPath:"key"}),"entityType","entityType");e(2)&&(x=gD(x,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),$C(x,"byParentEntityKey","parentEntityKey"),$C(x,"byChildEntityKey","childEntityKey"))},
version:3});return OLV()};
eqn=function(O){return _.Q4(xnN(),O)};
e_=function(O){return window.Int32Array?new Int32Array(O):Array(O)};
CXr=function(O){return _.Q4(l5w(),O)};
QdL=function(O){return new l9("WRONG_DATA_TYPE",{encoderVersion:O})};
bLL=function(O){return O instanceof Error?new l9("UNKNOWN_ENCODE_ERROR",{originalMessage:O.message}):new l9("UNKNOWN_ENCODE_ERROR")};
THn=function(O){return O instanceof Error?new l9("UNKNOWN_DECODE_ERROR",{originalMessage:O.message}):new l9("UNKNOWN_DECODE_ERROR")};
LGn=function(O,x){O=O instanceof l9?O:x(O);_.BH(O);throw O;};
kKr=function(O){O=(new TextEncoder).encode(O).subarray(0,16);var x=new Uint8Array(16);x.set(O);return x};
MGL=function(O){var x=Adw[O];if(x)return x;_.ft(new _.ry("Entity model not found.",{entityType:O}))};
_.CA=function(){Dns||(Dns=GKV());return Dns};
GKV=function(){var O,x,e;return _.A(function(l){if(l.nextAddress==1)return _.tS(l,2),l.yield(_.DG(),4);if(l.nextAddress!=2){O=l.yieldResult;if(!O||!_.zG()||typeof _.CV.BroadcastChannel==="undefined")return l.return();x=new FGr;return l.return(new Qy(O,x))}e=_.VP(l);e instanceof Error&&_.BH(e);return l.return()})};
_.b9=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1){e=O.mutations;if(!e||e.length<=0)return l.return();x&&x.dispatch(_.j6({type:"ENTITY_LOADED",payload:e}));return l.yield(Xrm(e),2)}e.length=0;_.Ra(l)})};
Xrm=function(O){var x;return _.A(function(e){return e.nextAddress==1?e.yield(_.CA(),2):(x=e.yieldResult)?e.yield(_.TL(x,"readwrite",function(l){for(var C={},Q=_.T(O),L=Q.next(),k={};!L.done;k={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},L=Q.next())k.mutation$jscomp$8=L.value,k.mutation$jscomp$8.entityKey&&oqn(k.mutation$jscomp$8)&&(k.mutationEntityType$jscomp$3=(0,_.HX.getAnyKey)(k.mutation$jscomp$8.payload),L=void 0,k.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(L=function(M){return function(){return _.ydr(l,
M.mutation$jscomp$8.payload[M.mutationEntityType$jscomp$3],M.mutationEntityType$jscomp$3)}}(k)),k.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(L=function(M){return function(){return ZL7(l,M.mutation$jscomp$8.entityKey)}}(k)),k.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(L=function(M){return function(){return Eqr(l,M.mutation$jscomp$8.entityKey,M.mutation$jscomp$8.payload[M.mutationEntityType$jscomp$3],M.mutationEntityType$jscomp$3)}}(k)),L&&(C[k.mutation$jscomp$8.entityKey]=
C[k.mutation$jscomp$8.entityKey]?C[k.mutation$jscomp$8.entityKey].then(L):L()));
return $c.all(Object.values(C))}),0):e.return()})};
oqn=function(O){var x;O=(x=O.options)==null?void 0:x.persistenceOption;return O==="ENTITY_PERSISTENCE_OPTION_PERSIST"||O==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
PX8=function(O,x){var e,l;_.A(function(C){if(C.nextAddress==1)return C.yield(_.CA(),2);if(C.nextAddress!=3)return(e=C.yieldResult)?C.yield(_.TL(e,"readonly",function(Q){var L={},k=Object.keys(x).map(function(M){var G=x[M]?[].concat(_.Kx(x[M])):[];return tGV(Q,M,G,L)});
return $c.all(k).then(function(){return L})}),3):C.return();
l=C.yieldResult;Object.keys(l).length>0&&O.dispatch(q2m(l));_.Ra(C)})};
tGV=function(O,x,e,l){return LA(O,x,e).then(function(C){l[x]=cdr(e,C)})};
cdr=function(O,x){if(x.length!==O.length)throw Error("Jf");return x.reduce(function(e,l,C){e[O[C]]=l;return e},{})};
prw=function(O){var x=O.filter(function(C){var Q;return(C==null?void 0:(Q=C.transferEntity)==null?void 0:Q.transferState)==="TRANSFER_STATE_COMPLETE"}).length,e=O.filter(function(C){var Q;
return(C==null?void 0:(Q=C.transferEntity)==null?void 0:Q.transferState)==="TRANSFER_STATE_FAILED"}).length,l=O.filter(function(C){var Q;
return(C==null?void 0:(Q=C.transferEntity)==null?void 0:Q.transferState)&&I5W.includes(C.transferEntity.transferState)});
if(!(x||l!=null&&l.length))return 0;x=_.VGr(l)+x;O=O.length-e;return O===0?0:Math.round(x*100/O)/100};
_.VGr=function(O){var x=[];x=x.concat.apply(x,_.Kx(O.filter(function(Q){return Q.streamEntity}).map(function(Q){var L=Object.assign({},Q.streamEntity),k,M=(k=Q.transferEntity)==null?void 0:k.transferState;
L.streamsProgress=L.streamsProgress||[];L.streamsProgress=L.streamsProgress.map(function(G){var X=Object.assign({},G);X.numBytesDownloaded=M==="TRANSFER_STATE_COMPLETE"?G.numTotalBytes:G.numBytesDownloaded;return X});
return L}).map(function(Q){return Q.streamsProgress})));
var e=O=0;x=_.T(x);for(var l=x.next();!l.done;l=x.next()){var C=l.value;l=Number(C.numBytesDownloaded);C=Number(C.numTotalBytes);e+=isNaN(l)?0:l;O+=isNaN(C)?0:C}return O===0?0:Math.round(e*100/O)/100};
RqW=function(O){if(!O||!O.expirationTimestamp||!O.action)return!1;var x=(0,_.F2)()/1E3;return Number(O.expirationTimestamp)>=x};
kE=function(O){return O&&O.expirationTimestamp&&O.action?RqW(O)&&O.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Ah=function(O){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(O||"TRANSFER_STATE_UNKNOWN")};
Unr=function(O){var x=new wur;if(O!==void 0){var e=Math.ceil(Math.log2(O.length*4+2)/7);e=e===void 0?2:e;$m(x,10);x.submessagePosStack.push(x.pos);x.submessagePosStack.push(e);x.pos+=e;i_(x,O.length*1.2);e=utW(O,x.buf.subarray(x.pos));x.pos+e>x.buf.length&&(i_(x,e),e=utW(O,x.buf.subarray(x.pos)));x.pos+=e;O=x.submessagePosStack.pop();e=x.submessagePosStack.pop();for(var l=x.pos-e-O;O--;){var C=O?128:0;x.view.setUint8(e++,l&127|C);l>>=7}}x=new Uint8Array(x.buf.buffer,x.buf.byteOffset,x.pos);return(new TextDecoder("utf-8")).decode(x)};
_.Mc=function(O){var x=0;O=_.T(O);for(var e=O.next(),l={};!e.done;l={transferState$jscomp$3:void 0},e=O.next()){var C=e.value,Q=void 0;e=(Q=C.streamEntity)!=null?Q:{};Q=void 0;l.transferState$jscomp$3=(Q=C.transferEntity)==null?void 0:Q.transferState;Q=C=void 0;((C=e)==null?0:(Q=C.streamsProgress)==null?0:Q.length)&&e.streamsProgress.forEach(function(L){return function(k){k=Number(L.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?k.numTotalBytes:k.numBytesDownloaded);isFinite(k)&&(x+=k)}}(l))}return x};
a57=function(O){return O.some(function(x){var e;if(!(x==null?0:(e=x.transferEntity)==null?0:e.transferState)){var l;return!(x==null?0:(l=x.policyEntity)==null?0:l.action)||x.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return I5W.includes(x.transferEntity.transferState)})};
mnr=function(O,x){if(!x)return!1;if(_.t("of_pb_en_po_ks"))return!0;var e;O=(e=_.xE(O,"offlineVideoPolicy",_.OQ(x,"offlineVideoPolicy")))!=null?e:void 0;return!!O&&kE(O)};
_.WGL=function(O){var x=["TRANSFER_STATE_COMPLETE"];x=x===void 0?sdL:x;return O.filter(function(e){var l,C;return x.includes((C=(l=e.transferEntity)==null?void 0:l.transferState)!=null?C:"TRANSFER_STATE_UNKNOWN")})};
hqr=function(O,x){if(x){var e,l=(e=_.xE(O,"playbackData",_.OQ(x,"playbackData")))!=null?e:null,C;e=(C=_.xE(O,"transfer",_.OQ(x,"transfer")))!=null?C:null;var Q;C=(Q=_.xE(O,"offlineVideoStreams",_.OQ(x,"offlineVideoStreams")))!=null?Q:null;var L;O=(L=_.xE(O,"offlineVideoPolicy",_.OQ(x,"offlineVideoPolicy")))!=null?L:null;if(l||e||C||O)return{playbackDataEntity:l,transferEntity:e,streamEntity:C,policyEntity:O}}};
_.DS=function(O){var x=O.playbackData;if(!x)return[];var e=[];x=_.T(Object.keys(x));for(var l=x.next();!l.done;l=x.next()){var C=l.value;if(!zq8(O,_.gT(C).entityId)&&(l=hqr(O,_.gT(C).entityId))){var Q=void 0,L=void 0;C=(L=Number((Q=_.xE(O,"playbackData",C))==null?void 0:Q.streamDownloadTimestampSeconds))!=null?L:(0,_.F2)();e.push({entity:l,streamDownloadTimestamp:C})}}return e.sort(function(k,M){var G=k.streamDownloadTimestamp,X=M.streamDownloadTimestamp;return X===G?k.entity.streamEntity&&!M.entity.streamEntity?
1:-1:X-G}).map(function(k){return k.entity})};
rd7=function(O){return _.WGL(_.DS(O))};
_.HL8=function(O){return _.DS(O).filter(function(x){var e;if(((e=x.policyEntity)==null?0:e.action)&&x.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var l;if((l=x.transferEntity)==null?0:l.transferState){var C;return I5W.includes((C=x.transferEntity)==null?void 0:C.transferState)}return!0})};
zq8=function(O,x){var e;return((e=_.xE(O,"downloadStatusEntity",_.OQ(x,"downloadStatusEntity")))==null?void 0:e.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
KGV=function(O){var x;if(O==null?0:(x=O.playbackDataEntity)==null?0:x.key)return _.gT(O.playbackDataEntity.key).entityId;var e;if(O==null?0:(e=O.transferEntity)==null?0:e.key)return _.gT(O.transferEntity.key).entityId;var l;if(O==null?0:(l=O.streamEntity)==null?0:l.key)return _.gT(O.streamEntity.key).entityId;var C;if(O==null?0:(C=O.policyEntity)==null?0:C.key)return _.gT(O.policyEntity.key).entityId};
nqs=function(O){var x=new Set,e;O=(e=O.mainDownloadsListEntity)==null?void 0:e[dnL];var l;if(!(O==null?0:(l=O.downloads)==null?0:l.length))return x;var C;O==null||(C=O.downloads)==null||C.forEach(function(Q){(Q==null?0:Q.videoItem)&&x.add(Q.videoItem)});
return x};
GL=function(O,x){if(x){var e=_.xE(O,"mainVideoEntity",_.OQ(x,"mainVideoEntity")),l=_.xE(O,"downloadStatusEntity",_.OQ(x,"downloadStatusEntity")),C=_.xE(O,"ytMainChannelEntity",_.OQ(x,"ytMainChannelEntity")),Q={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};O=hqr(O,x);l=(l==null?void 0:l.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.t("woffle_render_failed_download_state_ks")&&(l==null?void 0:l.downloadState)==="DOWNLOAD_STATE_FAILED";!O&&l&&(O=Q);if(O&&e&&
C)return Object.assign({},{videoEntity:e,channelEntity:C},O)}};
Y2L=function(O,x){return u8r(O,x)==="TRANSFER_STATE_COMPLETE"&&mnr(O,x)};
BHr=function(O,x){if(!x)return!1;var e;O=(e=_.xE(O,"playbackData",_.OQ(x,"playbackData")))!=null?e:void 0;return!!O&&!!O.playerResponseJson};
u8r=function(O,x){if(!x)return"TRANSFER_STATE_UNKNOWN";var e=_.xE(O,"transfer",_.OQ(x,"transfer"));if(e){var l;return(l=e.transferState)!=null?l:"TRANSFER_STATE_UNKNOWN"}e=_.xE(O,"offlineOrchestrationActionWrapperEntity",_.OQ(x,"offlineOrchestrationActionWrapperEntity"));O=_.xE(O,"mainVideoEntity",_.OQ(x,"mainVideoEntity"));return e||O?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
vqV=function(O,x){if(!x)return"TRANSFER_STATE_UNKNOWN";if(O=_.xE(O,"transfer",_.OQ(x,"transfer"))){var e;return(e=O.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
f5r=function(O,x){return x&&(O=_.xE(O,"videoPlaybackPositionEntity",_.OQ(x,"videoPlaybackPositionEntity")),O==null?0:O.lastPlaybackPositionSeconds)?Number(O.lastPlaybackPositionSeconds):0};
wrL=function(O,x){return Jdr(O).some(function(e){var l;return(e==null?void 0:(l=e.mainPlaylistEntity)==null?void 0:l.playlistId)===x})};
jdr=function(O,x,e){var l=S2r(O,x);if(!l.length)return[];x=[];l=_.T(l);for(var C=l.next();!C.done;C=l.next()){C=C.value;var Q=GL(O,C);e&&u8r(O,C)!=="TRANSFER_STATE_COMPLETE"||Q&&x.push(Q)}return x};
S2r=function(O,x){if(!x)return[];var e=_.OQ(x,"mainPlaylistEntity"),l;x=(l=O.mainPlaylistEntity)==null?void 0:l[e];l=[];if(x==null||!x.videos)return l;x=_.T(x.videos);for(e=x.next();!e.done;e=x.next()){e=e.value;var C=void 0,Q=void 0,L=void 0,k=(C=O)==null?void 0:(Q=C.mainPlaylistVideoEntity)==null?void 0:(L=Q[e])==null?void 0:L.video;k&&(e=_.gT(k).entityId)&&l.push(e)}return l};
NHm=function(O,x){if(x){var e=_.xE(O,"mainPlaylistEntity",_.OQ(x,"mainPlaylistEntity")),l=_.xE(O,"mainPlaylistDownloadStateEntity",_.OQ(x,"mainPlaylistDownloadStateEntity"));O=_.xE(O,"ytMainChannelEntity",_.OQ(x,"ytMainChannelEntity"));if(l&&e)return Object.assign({},{mainPlaylistEntity:e,mainPlaylistDownloadStateEntity:l},!!O&&{channelEntity:O})}};
Jdr=function(O){return gqi(O).sort(function(x,e){return e.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return x.downloadedPlaylistEntities})};
gqi=function(O){var x=O.mainPlaylistDownloadStateEntity,e=[];if(!x)return e;for(var l=_.T(Object.keys(x)),C=l.next();!C.done;C=l.next()){var Q=C.value;C=NHm(O,_.gT(Q).entityId);var L=void 0;Q=Number((L=x[Q])==null?void 0:L.addedTimestampMillis);L=isNaN(Q)?(0,_.F2)():Q;C!==void 0&&e.push({downloadedPlaylistEntities:C,addedTimestampMillis:L})}return e};
$nr=function(O){var x,e=(x=O.mainPlaylistVideoEntity)!=null?x:{};return new Set(Jdr(O).reduce(function(l,C){l=l===void 0?[]:l;var Q,L;C==null||(Q=C.mainPlaylistEntity)==null||(L=Q.videos)==null||L.forEach(function(k){var M;(k=(M=e[k])==null?void 0:M.video)&&l.push(k)});
return l},[]))};
iLr=function(O){return"downloadedMusicPlaylistEntities"in O};
Odn=function(O){return"mainPlaylistEntity"in O&&"mainPlaylistDownloadStateEntity"in O};
xLV=function(O){return"videoEntity"in O&&"channelEntity"in O};
eVw=function(O){var x=O.musicPlaylistDownloadMetadataEntity,e=[];if(!x)return e;for(var l=_.T(Object.keys(x)),C=l.next();!C.done;C=l.next()){C=C.value;a:{var Q=O,L=_.gT(C).entityId;if(L){var k=_.xE(Q,"musicPlaylist",_.OQ(L,"musicPlaylist"));Q=_.xE(Q,"musicPlaylistDownloadMetadataEntity",_.OQ(L,"musicPlaylistDownloadMetadataEntity"));if(k&&Q){k={musicPlaylistEntity:k,musicPlaylistDownloadStateEntity:Q};break a}}k=void 0}Q=void 0;C=Number((Q=x[C])==null?void 0:Q.addedTimestampMillis);C=isNaN(C)?(0,_.F2)():
C;k!==void 0&&e.push({downloadedMusicPlaylistEntities:k,addedTimestampMillis:C})}return e};
lX7=function(O){var x=new Set;O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,"musicPlaylistEntity"in e&&"musicPlaylistDownloadStateEntity"in e){e=_.T(e.musicPlaylistEntity.tracks);for(var l=e.next();!l.done;l=e.next())x.add(l.value)}return x};
C48=function(O,x){if(x){var e=_.xE(O,"musicTrack",_.OQ(x,"musicTrack")),l=_.xE(O,"musicArtist",_.OQ(x,"musicArtist"))||{};if((O=hqr(O,x))&&e&&l)return Object.assign({},{musicTrackEntity:e,musicArtistEntity:l},O)}};
QVr=function(O){var x=O.musicTrackDownloadMetadataEntity,e=[];if(!x)return[];x=_.T(Object.keys(x));for(var l=x.next();!l.done;l=x.next()){var C=l.value;l=C48(O,_.gT(C).entityId);var Q=void 0;C=Number((Q=_.xE(O,"musicTrackDownloadMetadataEntity",C))==null?void 0:Q.addedTimestampMillis);Q=isNaN(C)?(0,_.F2)():C;l!==void 0&&e.push({downloadedMusicEntities:l,addedTimestampMillis:Q})}return e};
LPi=function(O,x){if(!x)return[];if(Object.values(bdN).includes(x))return TgL(O,x);x=_.OQ(x,"musicPlaylist");var e;O=(e=O.musicPlaylist)==null?void 0:e[x];e=[];if(O==null||!O.tracks)return e;O=_.T(O.tracks);for(x=O.next();!x.done;x=O.next())(x=_.gT(x.value).entityId)&&e.push(x);return e};
TgL=function(O,x){var e=new Set,l=eVw(O).map(function(Q){return Q.downloadedMusicPlaylistEntities});
l=lX7(l);l=_.T(l);for(var C=l.next();!C.done;C=l.next())(C=_.gT(C.value).entityId)&&e.add(C);return kTr(O).downloadedMusicEntities.filter(function(Q){var L;if((L=Q.musicTrackEntity)!=null&&L.videoId){Q=Q.musicTrackEntity;if(L=x==="PPOM"?!0:!e.has(Q.videoId))b:switch(Q=Q.musicVideoType,x){case "PPSE":L=Q==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:L=Q!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}Q=L}else Q=!1;return Q}).map(function(Q){var L;
return(L=Q.musicTrackEntity)==null?void 0:L.videoId})};
kTr=function(O){var x=QVr(O).sort(function(e,l){return l.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return"downloadedMusicEntities"in e?e.downloadedMusicEntities:iLr(e)?e.downloadedMusicPlaylistEntities:{}});
O=eVw(O).sort(function(e,l){return l.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return"downloadedMusicEntities"in e?e.downloadedMusicEntities:iLr(e)?e.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:x,downloadedMusicPlaylistEntities:O}};
MO$=function(O,x){x=_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?LPi(O,x):S2r(O,x);if(!x.length)return"TRANSFER_STATE_UNKNOWN";x=x.map(function(e){return vqV(O,e)});
return Aci(x)};
Aci=function(O){var x=new Set(O);if(x.has("TRANSFER_STATE_FAILED")&&x.size===1)return"TRANSFER_STATE_FAILED";x.delete("TRANSFER_STATE_FAILED");if(x.has("TRANSFER_STATE_UNKNOWN")&&x.size===1)return"TRANSFER_STATE_PRE_TRANSFER";x.delete("TRANSFER_STATE_UNKNOWN");if(x.has("TRANSFER_STATE_PRE_TRANSFER")&&x.size===1||x.size===0)return"TRANSFER_STATE_PRE_TRANSFER";O=x.has("TRANSFER_STATE_TRANSFERRING");x=x.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return O||x?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Fx=function(O){var x=O.mainVideoDownloadStateEntity,e=[];if(!x)return[];x=_.T(Object.keys(x));for(var l=x.next();!l.done;l=x.next()){var C=l.value;if(!zq8(O,_.gT(C).entityId)){l=GL(O,_.gT(C).entityId);var Q=void 0,L=void 0;C=(L=Number((Q=_.xE(O,"mainVideoDownloadStateEntity",C))==null?void 0:Q.addedTimestampMillis))!=null?L:(0,_.F2)();l!==void 0&&e.push({downloadedVideoEntities:l,addedTimestampMillis:C})}}return e};
DLr=function(O){return Fx(O).sort(function(x,e){return e.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return x.downloadedVideoEntities})};
_.FPi=function(O){var x=$nr(O),e=_.Xx(O),l=nqs(O),C=Fx(O).filter(function(L){var k,M;if((L==null?void 0:(k=L.downloadedVideoEntities)==null?void 0:(M=k.transferEntity)==null?void 0:M.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var G,X;L=L==null?void 0:(G=L.downloadedVideoEntities)==null?void 0:(X=G.videoEntity)==null?void 0:X.key;return _.t("kevlar_use_library_entity")?L&&(l.has(L)||e[L]):L&&!x.has(L)}),Q=gqi(O).filter(function(L){return MO$(O,L.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Kx(C),_.Kx(Q)).sort(function(L,k){return k.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return GTL(L)})};
Xtw=function(O,x){if(x&&mnr(O,x)){var e,l,C=(l=(e=_.xE(O,"playbackData",_.OQ(x,"playbackData")))!=null?e:void 0)==null?void 0:l.playerResponseJson;if(C){try{var Q=JSON.parse(C);var L=_.xE(O,"transfer",_.OQ(x,"transfer")),k=f5r(O,x);k&&(Q=Object.assign({},Q,{playerConfig:Object.assign({},Q.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+k*1E3}}})}));Q.cotn=L==null?void 0:L.cotn}catch(M){}return Q}}};
_.ycW=function(O){var x,e,l;O=(l=(e=((x=O.downloadsPageViewConfigurationEntity)!=null?x:{})[_.ox])==null?void 0:e.smartDownloadsOptInBannerVisibility)!=null?l:{};var C;return(C=_.q(O,oaV))!=null?C:{}};
_.Xx=function(O){var x,e,l;O=(l=(e=((x=O.mainDownloadsListEntity)!=null?x:{})[_.Zd7])==null?void 0:e.downloads)!=null?l:[];x={};e=_.T(O);for(l=e.next();!l.done;l=e.next())O=void 0,x[(O=l.value.videoItem)!=null?O:""]=!0;return x};
EaV=function(O){var x=_.Xx(O);if(Object.keys(x).length===0)return!1;var e=O.mainVideoEntity;if(!e)return!0;e=_.T(Object.keys(e));for(var l=e.next();!l.done;l=e.next()){l=l.value;var C=_.gT(l).entityId;if(x[l]&&!zq8(O,C))return!1}return!0};
_.yy=function(O){var x=_.Xx(O);return Fx(O).sort(function(e,l){return e.addedTimestampMillis-l.addedTimestampMillis}).map(function(e){return e.downloadedVideoEntities}).filter(function(e){var l;
return(e=e==null?void 0:(l=e.videoEntity)==null?void 0:l.key)&&!!x[e]})};
_.qJW=function(O){var x,e,l;O=(l=(e=((x=O.downloadsPageViewConfigurationEntity)!=null?x:{})[_.ox])==null?void 0:e.downloadsUpsellBannerVisibility)!=null?l:{};var C;return(C=_.q(O,tOi))!=null?C:{}};
GTL=function(O){return"downloadedVideoEntities"in O?O.downloadedVideoEntities:"downloadedPlaylistEntities"in O?O.downloadedPlaylistEntities:{}};
P4s=function(O){var x=_.Xx(O),e=$nr(O),l=Fx(O).filter(function(C){var Q,L;return(C=C==null?void 0:(Q=C.downloadedVideoEntities)==null?void 0:(L=Q.videoEntity)==null?void 0:L.key)&&!x[C]&&!e.has(C)});
O=gqi(O);return[].concat(_.Kx(l),_.Kx(O)).sort(function(C,Q){return Q.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return GTL(C)})};
_.ZS=function(O){if(!_.t("kevlar_use_library_entity"))return P4s(O);var x=Fx(O).filter(function(l){var C,Q;if(C=l=l==null?void 0:(C=l.downloadedVideoEntities)==null?void 0:(Q=C.videoEntity)==null?void 0:Q.key){var L,k,M;C=((k=(L=O.mainDownloadsListEntity)==null?void 0:L[dnL])==null?0:(M=k.downloads)==null?0:M.length)?nqs(O).has(l):!1}return C}),e=gqi(O);
return[].concat(_.Kx(x),_.Kx(e)).sort(function(l,C){return C.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return GTL(l)})};
cci=function(O){var x=_.Xx(O),e=$nr(O);return DLr(O).filter(function(l){var C;return(l=l==null?void 0:(C=l.videoEntity)==null?void 0:C.key)&&!x[l]&&!e.has(l)})};
IXn=function(O){if(!_.t("kevlar_use_library_entity"))return cci(O);var x=_.Xx(O),e=nqs(O);return DLr(O).filter(function(l){var C;return(l=l==null?void 0:(C=l.videoEntity)==null?void 0:C.key)&&!x[l]&&e.has(l)})};
VO7=function(O,x){x=_.OQ(x,"settingEntity");var e,l,C;return!!((C=(l=((e=O.settingEntity)!=null?e:{})[x])==null?void 0:l.settingOptionValue)!=null?C:{}).boolValue};
_.EQ=function(O){var x=_.yy(O);if(a57(x))return 0;var e=[];x=_.T(x);for(var l=x.next();!l.done;l=x.next()){l=l.value;var C=void 0,Q=void 0;if((C=l)==null?0:(Q=C.videoEntity)==null?0:Q.key)C=_.gT(l.videoEntity.key).entityId,l=O,C=_.OQ(C,"mainVideoDownloadStateEntity"),l=_.xE(l,"mainVideoDownloadStateEntity",C),(l=Number(l==null?void 0:l.addedTimestampMillis))&&e.push(l)}return Math.max.apply(Math,_.Kx(e))};
_.th=function(O){return O.ui.richGridMiniMode};
_.qc=function(O){return O.ui.richGridItemsPerRow};
_.ptW=function(O){return O.ui.richGridSlimItemsPerRow};
_.RVL=function(O){return O.ui.guideIsExpanded};
_.P1=function(O){return O.ui.miniplayerIsActive};
ULW=function(O){return O.ui.singleOptionSurveyIsActive};
_.c1=function(O){var x;return((x=O.ui)==null?void 0:x.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.aXm=function(O){return _.c1(O)==="WEB_PAGE_TYPE_WATCH"};
_.mLW=function(O){return _.c1(O)==="WEB_PAGE_TYPE_SHORTS"};
_.sVi=function(O){return O.ui.inlinePreviewIsActive};
_.WPm=function(O){return O.ui.inlinePreviewIsEnabled};
_.hVm=function(O){return O.ui.miniplayerPlaybackState};
_.Ix=function(O){return O.ui.isOnline};
_.zV$=function(O){return O.ui.frostedGlassMode};
_.Vy=function(O,x){return u8r(O.entities,x)};
_.pA=function(O,x){return MO$(O.entities,x)};
rcW=function(O,x){var e;if(x){var l;O=(l=_.xE(O.entities,"offlineVideoPolicy",_.OQ(x,"offlineVideoPolicy")))==null?void 0:l.action}else O=void 0;return(e=O)!=null?e:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Hdr=function(O,x){var e;x?(O=_.xE(O.entities,"offlineVideoPolicy",_.OQ(x,"offlineVideoPolicy")),O=Number(O==null?void 0:O.expirationTimestamp)):O=void 0;return(e=O)!=null?e:0};
_.KP8=function(O){return _.DS(O.entities).length};
dLL=function(O,x){return GL(O.entities,x)};
naN=function(O,x){return NHm(O.entities,x)};
Rx=function(O,x){return(O=GL(O.entities,x))?_.VGr([O]):0};
_.u_V=function(O,x){var e=_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(e){var l=O.entities;var C=LPi(l,x);if(C.length){var Q=[];C=_.T(C);for(var L=C.next();!L.done;L=C.next())(L=C48(l,L.value))&&Q.push(L);l=Q}else l=[]}else l=jdr(O.entities,x);var k;if(e){var M=O.entities;x?(x=_.OQ(x,"musicPlaylist"),M=(k=M.musicPlaylist)==null?void 0:k[x],k=M!=null&&M.tracks?M.tracks.length:0):k=0}else k=O.entities,x?(x=_.OQ(x,"mainPlaylistEntity"),k=(M=k.mainPlaylistEntity)==null?void 0:M[x],k=k!=null&&k.videos?
k.videos.length:0):k=0;return l.length!==k?0:l?prw(l):0};
_.YJr=function(O){return O.download.isLeaderTab};
_.Bg7=function(O,x,e){if(!x&&e){var l=O.entities;if(e){var C=Unr(e),Q,L;x=(L=(Q=_.xE(l,"offlineabilityEntity",_.OQ(C,"offlineabilityEntity")))==null?void 0:Q.addToOfflineButtonState)!=null?L:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else x="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else Q=O.entities,x?(L=Unr(x),x=(C=(l=_.xE(Q,"offlineabilityEntity",_.OQ(L,"offlineabilityEntity")))==null?void 0:l.addToOfflineButtonState)!=null?C:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):x="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return x};
vaW=function(O,x){O=O.entities;if(x){x=Unr(x);var e,l;x=(l=(e=_.xE(O,"offlineabilityEntity",_.OQ(x,"offlineabilityEntity")))==null?void 0:e.addToOfflineButtonState)!=null?l:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else x="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return x};
_.fXW=function(O){var x=O.entities;O=_.Ix(O);var e=VO7(x,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.t("kevlar_modern_downloads_page")&&e)var l=!1;else{var C,Q;x=(Q=(C=((l=x.downloadsPageViewConfigurationEntity)!=null?l:{})[_.ox])==null?void 0:C.smartDownloadsOptInBannerVisibility)!=null?Q:{};l=O?!!x.visibleWithConnection:!!x.visibleWithoutConnection}return l};
_.Jcr=function(O){return VO7(O.entities,"SMART_DOWNLOADS_ENABLED")};
_.wtr=function(O){return EaV(O.entities)};
SJi=function(O){return _.yy(O.entities).every(function(x){var e;return(x==null?void 0:(e=x.transferEntity)==null?void 0:e.transferState)&&!I5W.includes(x.transferEntity.transferState)})};
_.jVn=function(O){var x,e,l,C=(l=(e=((x=O.entities.downloadsPageViewConfigurationEntity)!=null?x:{})[_.ox])==null?void 0:e.downloadsUpsellBannerVisibility)!=null?l:{};return _.Ix(O)?!!C.visibleWithConnection:!!C.visibleWithoutConnection};
_.Ng8=function(O,x){return zq8(O.entities,x)};
gaW=function(O,x){if(x){var e,l;O=(l=(e=_.xE(O.entities,"downloadStatusEntity",_.OQ(x,"downloadStatusEntity")))==null?void 0:e.downloadState)!=null?l:"DOWNLOAD_STATE_UNKNOWN"}else O="DOWNLOAD_STATE_UNKNOWN";return O};
UQ=function(O,x){return f5r(O.entities,x)};
xOL=function(O){O=$Lm(O);var x=O.hours===void 0?0:O.hours,e=O.minutes===void 0?0:O.minutes,l=O.seconds===void 0?0:O.seconds,C=x>0;O=[];C&&(x=idV(x),O.push(x));x=C;x=x===void 0?!1:x;e=(["af","be","lt"].includes(ax)||x)&&e<10?OnV().format(e):(new Intl.NumberFormat("en-u-nu-latn")).format(e);O.push(e);e=OnV().format(l);O.push(e);e=":";"da fi id si sr sr-Latn".split(" ").includes(ax)&&(e=".");return O.join(e)};
_.hYi=function(O){O=$Lm(O);var x=O.hours===void 0?0:O.hours,e=O.minutes===void 0?0:O.minutes,l=O.seconds===void 0?0:O.seconds;O=[];if(x>0){var C=Wrr().format({hours:x});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(ax)||x>9999)C=C.replace(x.toString(),idV(x)),ax==="km"&&(C=C.replace(".",","));O.push(C)}e>0&&O.push(Wrr().format({minutes:e}));l>0&&O.push(Wrr().format({seconds:l}));x="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");e=ax=="am"?"{0}\u1363 ":ax=="fa"?"{0}\u060c\u200f ":
ax=="my"?"{0} - ":ax=="ne"?"{0},":ax=="th"?"{0} ":ax=="ur"?"{0}\u060c ":ax=="ar"||ax=="ar-XB"?"{0} \u0648":ax=="ja"||ax=="zh-CN"||ax=="zh-HK"||ax=="zh-TW"?"{0}\u3001":"{0}, ";l=ax=="am"?"\u1363 ":ax=="fa"?"\u060c\u200f ":ax=="my"?" - ":ax=="th"?" ":ax=="ur"?"\u060c ":ax=="ar"||ax=="ar-XB"?" \u0648":ax=="ja"||ax=="zh-CN"||ax=="zh-HK"||ax=="zh-TW"?"\u3001":", ";C=ax=="am"?" \u12a5\u1293 {0}":ax=="as"?" \u0986\u09f0\u09c1 {0}":ax=="az"?" v\u0259 {0}":ax=="bn"?" \u098f\u09ac\u0982 {0}":ax=="cs"?" a\u00a0{0}":
ax=="de"?" und {0}":ax=="el"?" \u03ba\u03b1\u03b9 {0}":ax=="eu"?" eta {0}":ax=="fa"?"\u060c \u0648 {0}":ax=="fil"?", at {0}":ax=="gu"?" \u0a85\u0aa8\u0ac7 {0}":ax=="hi"?", \u0914\u0930 {0}":ax=="hu"?" \u00e9s {0}":ax=="hy"?" \u0587 {0}":ax=="id"?", dan {0}":ax=="iw"?" \u05d5-{0}":ax=="ja"?"\u3001{0}":ax=="ka"?" \u10d3\u10d0 {0}":ax=="km"?" \u1793\u17b7\u1784 {0}":ax=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":ax=="ko"?" \ubc0f {0}":ax=="ky"?" \u0436\u0430\u043d\u0430 {0}":ax=="lt"?" ir {0}":ax==
"lv"?" un {0}":ax=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":ax=="mr"?" \u0906\u0923\u093f {0}":ax=="ms"?" dan {0}":ax=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":ax=="ne"?" \u0930 {0}":ax=="or"?", \u0b13 {0}":ax=="pa"?" \u0a05\u0a24\u0a47 {0}":ax=="ro"?" \u0219i {0}":ax=="si"?", \u0dc3\u0dc4 {0}":ax=="sk"?" a {0}":ax=="sl"?" in {0}":ax=="sq"?" dhe {0}":ax=="sv"?" och {0}":ax=="sw"?" na {0}":ax=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":ax=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
ax=="th"?" \u0e41\u0e25\u0e30{0}":ax=="tr"?" ve {0}":ax=="ur"?"\u060c \u0627\u0648\u0631 {0}":ax=="uz"?" va {0}":ax=="vi"?" v\u00e0 {0}":ax=="zh-HK"?"\u53ca{0}":ax=="zu"?", ne-{0}":ax=="af"||ax=="nl"?" en {0}":ax=="ar"||ax=="ar-XB"?" \u0648{0}":ax=="be"||ax=="uk"?" \u0456 {0}":ax=="en-GB"||ax=="en-IN"?" and {0}":ax=="en"||ax=="en-XA"?", and {0}":ax=="et"||ax=="fi"?" ja {0}":ax=="fr"||ax=="fr-CA"?" et {0}":ax=="zh-CN"||ax=="zh-TW"?"\u548c{0}":ax=="da"||ax=="is"||ax=="no"?" og {0}":ax=="es"||ax=="es-419"||
ax=="es-US"?" y {0}":ax=="kk"||ax=="lo"||ax=="mn"?", {0}":ax=="bg"||ax=="mk"||ax=="ru"||ax=="sr"?" \u0438 {0}":ax=="gl"||ax=="it"||ax=="pt-BR"||ax=="pt-PT"?" e {0}":" i {0}";var Q=ax=="am"?"{0} \u12a5\u1293 {1}":ax=="as"?"{0} \u0986\u09f0\u09c1 {1}":ax=="az"?"{0} v\u0259 {1}":ax=="bn"?"{0} \u098f\u09ac\u0982 {1}":ax=="de"?"{0} und {1}":ax=="el"?"{0} \u03ba\u03b1\u03b9 {1}":ax=="eu"?"{0} eta {1}":ax=="fa"?"{0} \u0648 {1}":ax=="fil"?"{0} at {1}":ax=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":ax=="hi"?"{0} \u0914\u0930 {1}":
ax=="hu"?"{0} \u00e9s {1}":ax=="hy"?"{0} \u0587 {1}":ax=="iw"?"{0} \u05d5-{1}":ax=="ja"?"{0}\u3001{1}":ax=="ka"?"{0} \u10d3\u10d0 {1}":ax=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":ax=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":ax=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":ax=="ko"?"{0} \ubc0f {1}":ax=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":ax=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":ax=="lt"?"{0} ir {1}":ax=="lv"?"{0} un {1}":ax=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":ax=="mn"?"{0}, {1}":ax==
"mr"?"{0} \u0906\u0923\u093f {1}":ax=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":ax=="ne"?"{0} \u0930 {1}":ax=="or"?"{0} \u0b13 {1}":ax=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":ax=="ro"?"{0} \u0219i {1}":ax=="si"?"{0} \u0dc3\u0dc4 {1}":ax=="sl"?"{0} in {1}":ax=="sq"?"{0} dhe {1}":ax=="sv"?"{0} och {1}":ax=="sw"?"{0} na {1}":ax=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":ax=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":ax=="th"?"{0}\u0e41\u0e25\u0e30{1}":ax=="tr"?"{0} ve {1}":ax=="ur"?
"{0} \u0627\u0648\u0631 {1}":ax=="uz"?"{0} va {1}":ax=="vi"?"{0} v\u00e0 {1}":ax=="zh-HK"?"{0}\u53ca{1}":ax=="zu"?"{0} ne-{1}":ax=="af"||ax=="nl"?"{0} en {1}":ax=="ar"||ax=="ar-XB"?"{0} \u0648{1}":ax=="be"||ax=="uk"?"{0} \u0456 {1}":ax=="cs"||ax=="sk"?"{0} a\u00a0{1}":ax=="et"||ax=="fi"?"{0} ja {1}":ax=="fr"||ax=="fr-CA"?"{0} et {1}":ax=="id"||ax=="ms"?"{0} dan {1}":ax=="zh-CN"||ax=="zh-TW"?"{0}\u548c{1}":ax=="da"||ax=="is"||ax=="no"?"{0} og {1}":ax=="es"||ax=="es-419"||ax=="es-US"?"{0} y {1}":ax==
"bg"||ax=="mk"||ax=="ru"||ax=="sr"?"{0} \u0438 {1}":ax=="en"||ax=="en-GB"||ax=="en-IN"||ax=="en-XA"?"{0} and {1}":ax=="gl"||ax=="it"||ax=="pt-BR"||ax=="pt-PT"?"{0} e {1}":"{0} i {1}";ax==="sq"?(C=C.replace("dhe","e"),Q=Q.replace("dhe","e")):ax==="th"?(l=l.replace("{0}"," {0}"),Q=Q.replace("{0}","{0} "),Q=Q.replace("{1}"," {1}")):ax==="ne"?l=",":ax==="zh-CN"?l="":x.includes(ax)&&(l=" ");return O.length<2?O.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(ax)?
O.length===2?Q.replace("{0}",O[0]).replace("{1}",O[1]):e.replace("{0}",O[0])+O.slice(1,-1).join(l)+C.replace("{0}",O[O.length-1]):O.join(l)};
$Lm=function(O){var x=O.hours||0,e=O.minutes||0,l=O.seconds||0;x=l+e*60+x*3600+(O.days||0)*86400+(O.weeks||0)*604800+(O.months||0)*2629800+(O.years||0)*31557600;if(x<=0)return{hours:0,minutes:0,seconds:0};O=x;x=Math.floor(O/3600);O%=3600;e=Math.floor(O/60);l=Math.floor(O%60);return{hours:x,minutes:e,seconds:l}};
idV=function(O){O=(new Intl.NumberFormat("en-u-nu-latn")).format(O);var x=["fr"],e="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(ax)?O.replace(",","\u00a0"):x.includes(ax)?O.replace(",","\u202f"):e.includes(ax)?O.replace(",","."):O};
OnV=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Wrr=function(){zYL||(mW=r8V,zYL=new Hn7);return zYL};
Krr=function(O){try{return(new _.W1(5)).format(O)}catch(x){}};
hh=function(O){return{thumbnailOverlayDownloadingRenderer:{state:O}}};
dON=function(O){if(O=Krr(O))return{thumbnailOverlaySidePanelRenderer:{text:_.J3(O),icon:{iconType:"PLAYLISTS"}}}};
n5N=function(){var O=_.CZ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.J3(O),icon:{iconType:"PLAY_ALL"}}}};
uYr=function(O){O=_.zL(O,2);return ax!=="ru"&&ax!=="es_419"&&ax!=="es-419"&&ax!=="es"&&ax!=="es_US"&&ax!=="es-US"&&ax!=="fr"&&ax!=="pl"&&ax!=="it"&&ax!=="nl"&&ax!=="uk"&&ax!=="fr_CA"&&ax!=="fr-CA"||O===""?O:O[0].toLocaleUpperCase()+O.substring(1)};
B_m=function(O){return function(x){var e=O(),l=_.zL(x,e.dateFormat);x=_.zL(x,e.timeFormat);var C=YB$.DATETIMEFORMATS[e.joinerStyle];C=C.replace(/'(?!')/g,"");C=C.replace("{0}",x);C=C.replace("{1}",l);return e.capitalize(C)}};
v5$=function(O){return O?typeof O.seconds==="string"&&(O.nanos===void 0||typeof O.nanos==="number"):!1};
f1L=function(O){return new Date(Number(O.seconds)*1E3+(O.nanos||0)*1E-6)};
_.zL=function(O,x){if(typeof O.getTime==="function")O={date:O};else if(v5$(O))O={date:f1L(O)};else if(typeof v5$(O.timestamp)&&typeof O.i18nInternalSecondsEastOfUtc==="number")O={date:f1L(O.timestamp),timeZone:rb(-O.i18nInternalSecondsEastOfUtc/60)};else throw Error("Kf`"+JSON.stringify(O));var e=O;O=e.date;e=e.timeZone;x=J8N(x).format(O,e);ax==="zh-TW"&&(O=e?Number(J8N("H").format(O,e)):O.getHours(),x=O<5?x.replace("\u4e0a\u5348","\u51cc\u6668"):O<8?x.replace("\u4e0a\u5348","\u65e9\u4e0a"):O<12?
x.replace("\u4e0a\u5348","\u4e0a\u5348"):O<13?x.replace("\u4e0b\u5348","\u4e2d\u5348"):O<19?x.replace("\u4e0b\u5348","\u4e0b\u5348"):x.replace("\u4e0b\u5348","\u665a\u4e0a"));return x};
J8N=function(O){if(wyr.has(O))return wyr.get(O);var x=SBW(O);x=jer(x);N_r!==!0&&(N_r=!0);g5r=!0;g5r=!1;x=new H1(x,YB$);wyr.set(O,x);return x};
SBW=function(O){return(new H1(O,YB$)).patternParts_.map(function(x){return x.type===0?"'"+x.text+"'":x.text}).join("")};
jer=function(O){return ax==="en"||ax==="es_US"||ax==="es-US"?O:O.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(x,e,l){return"H".repeat(e.length)+l})};
CZr=function(O,x){$Oi||(mW=r8V,$Oi=new in8);var e=$Oi;a:if(O=OjL(O),x=OjL(x||new Date),O>x)e=O.getTime()-x.getTime()>6048E5?_.zL(O,1):xAL(O);else{for(var l=0;eZV(O,12*(l+1))<x;)++l;if(l>0)e=e.format(-l,0);else{for(l=0;eZV(O,l+1)<x;)++l;if(l>0)e=e.format(-l,2);else{O=x.getTime()-O.getTime();x=_.T(lB7);for(l=x.next();!l.done;l=x.next()){l=l.value;var C=l.unit,Q=Math.floor(O/l.unitDuration);if(Q>=(l.threshold===void 0?1:l.threshold)){e=e.format(-Q,C);break a}}e=e.format(-0,7)}}}return e};
OjL=function(O){if(typeof O.getTime==="function")return O;if(v5$(O))return f1L(O);throw Error("Lf`"+JSON.stringify(O));};
eZV=function(O,x){for(var e=0,l;;++e)if(l=new Date(O.getFullYear(),O.getMonth()+x,O.getDate()-e,O.getHours(),O.getMinutes(),O.getSeconds()),l.getMonth()===(O.getMonth()+x)%12)return l};
_.KA=function(O){return{runs:[{text:O}]}};
_.db=function(O){if(O&&O.simpleText)return O.simpleText;var x="";if(O&&O.runs)for(var e=0;e<O.runs.length;e++)O.runs[e].text&&(x+=O.runs[e].text);return x};
bj7=function(O,x,e,l){return O.videoEntity&&!O.policyEntity&&e!=="DOWNLOAD_STATE_FAILED"?[hh("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:kE(O.policyEntity)&&x!=="TRANSFER_STATE_FAILED"&&x!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?x==="TRANSFER_STATE_PAUSED_BY_USER"?[hh("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Ah(x)?[hh("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:O.videoEntity.lengthSeconds?QXL(O.videoEntity.lengthSeconds,l):[]:
[hh("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
QXL=function(O,x){var e=[{thumbnailOverlayTimeStatusRenderer:{text:_.J3(xOL({seconds:O})),style:"DEFAULT"}}];x&&(O=x<=0||O<=0?0:x>=O?100:Math.ceil(x*100/O),O>0&&e.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:O}}));return e};
T8r=function(O,x,e,l,C){if(x==="TRANSFER_STATE_UNKNOWN"||!O)return{};if(_.Ah(x)||x==="TRANSFER_STATE_PRE_TRANSFER")var Q=[hh("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var L,k;if(x==="TRANSFER_STATE_COMPLETE"&&((L=O.mainPlaylistEntity)==null?0:(k=L.videos)==null?0:k.length)){if(_.t("web_modern_collections_v2")){var M;var G=(Q=O.mainPlaylistEntity)==null?void 0:(M=Q.videos)==null?void 0:M.length;Q=(Q=Krr(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.J3(Q),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var X;Q=dON((G=O.mainPlaylistEntity)==null?void 0:(X=G.videos)==null?void 0:X.length)}var y;Q=[n5N(),Object.assign({},(y=Q)!=null?y:{})]}else Q=[]}y=Q;a:if(x==="TRANSFER_STATE_PRE_TRANSFER")e=wT(_.CZ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(x==="TRANSFER_STATE_TRANSFER_IN_QUEUE")e=wT(_.CZ("WAITING_TO_DOWNLOAD"));else if(_.Ah(x))e=Math.floor(e*100).toString(),e=wT(_.CZ("DOWNLOADING_PERCENT",{percent:e},"Downloading... "+e+"%"));else{if(l&&(_.t("playlist_is_offline_selector_killswitch")&&
(C=_.GG().resolve(_.eb).isNetworkAvailable()),C)){e=zm7(_.CZ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Wwn(l));break a}e=void 0}x=x==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.CZ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},y.length?{thumbnailOverlays:y}:{},e?{viewPlaylistText:e}:{viewPlaylistText:_.KA("")},x.length?{badges:x}:{})};
LX7=function(O,x,e,l,C,Q){if(x==="TRANSFER_STATE_UNKNOWN"||!O)return{};if(l==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var L=bj7(O,x,l);if(O.videoEntity&&!O.policyEntity&&l!=="DOWNLOAD_STATE_FAILED"){var k=_.CZ("WAITING_TO_DOWNLOAD");if(k)return{shortViewCountText:_.KA(k),publishedTimeText:void 0,thumbnailOverlays:L}}if(!kE(O.policyEntity)){Q=O.policyEntity&&!RqW(O.policyEntity)?_.CZ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.CZ("TRANSFER_FAILED",{},"Download failed");var M;if((M=O.policyEntity)==null?0:M.shortMessageForDisabledAction)Q=O.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:wT(Q),publishedTimeText:void 0,thumbnailOverlays:L}}if(x==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.KA(_.CZ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:L};if(x==="TRANSFER_STATE_FAILED"||x==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.KA(_.CZ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:L};if(x==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(M=_.CZ("WAITING_TO_DOWNLOAD"),l==="DOWNLOAD_STATE_PAUSED"&&(M=_.CZ("DOWNLOAD_PAUSED",{},"Download paused")),M))return{shortViewCountText:_.KA(M),publishedTimeText:void 0,thumbnailOverlays:L};if(_.Ah(x))return O=Math.floor(e*100).toString(),{shortViewCountText:_.KA(_.CZ("DOWNLOADING_PERCENT",{percent:O},"Downloading... "+O+"%")),publishedTimeText:void 0,thumbnailOverlays:L};x=void 0;O.videoEntity.publishedTimestampMillis&&
(x=new Date,C&&(x=new Date(C)),x=wT(CZr(new Date(Number(O.videoEntity.publishedTimestampMillis)),x)));C=[];_.t("kevlar_woffle_badge_killswitch")||(C=[{metadataBadgeRenderer:{label:_.CZ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var G;O=wT((G=O.videoEntity.localizedStrings)==null?void 0:G.viewCount);return Object.assign({},Q?{shortViewCountText:void 0}:{shortViewCountText:O},Q?{}:{publishedTimeText:x},{badges:C,thumbnailOverlays:L})};
ATi=function(O,x){O=O===void 0?_.kYN:O;switch(x.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:x.payload.playlistId,inviteLinkURL:x.payload.inviteLinkUrl};default:return O}};
DAn=function(O,x){O=O===void 0?_.M7V:O;switch(x.type){case "SET_CURRENT_FORM_ID":return x=x.payload.formId,O.currentFormId===x?O:{currentFormId:x,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var e=x.payload;x=e.groupId;e=e.command;if(O.currentFormId){var l=Object.assign({},O.commandsMap);l[x]=e;O=Object.assign({},O,{commandsMap:l})}return O;case "RESET_COMMAND_MAP":return Object.assign({},O,{commandsMap:{}});default:return O}};
FXW=function(O,x){O=O===void 0?_.GYn:O;switch(x.type){case "UPDATE_CANVAS_MODE":return Object.assign({},O,{currentMode:x.payload.currentMode});default:return O}};
owN=function(O,x){O=O===void 0?_.XmV:O;switch(x.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},O,{guideIsExpanded:x.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},O,{scrollAtTop:x.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},O,{guideIsVisibleButNotPersistent:x.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},O,{miniplayerIsActive:x.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},O,{singleOptionSurveyIsActive:x.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},O,{slimlineSurveyRatingSelectedIndex:x.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},O,{richGridMiniMode:x.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},O,{richGridItemsPerRow:x.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},O,{richGridSlimItemsPerRow:x.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},O,{richGridContainerWidth:x.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},O,{richGridStyle:x.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},O,{currentPageType:x.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},O,{inlinePreviewIsActive:x.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},O,{inlinePreviewIsEnabled:x.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},O,{darkModeIsEnabled:x.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
O,{miniplayerPlaybackState:x.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},O,{tabGesturesIsActive:x.payload});case "SET_ONLINE_STATUS":return Object.assign({},O,{isOnline:x.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},O,{chipBarIsSticky:x.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},O,{frostedGlassMode:x.payload});default:return O}};
yTW=function(){return _.t("kevlar_disable_theater_mode_persistence")?!1:_.SS("START_IN_THEATER_MODE")};
Ewr=function(O,x){O=O===void 0?_.Zjr:O;switch(x.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},O,{transcription:x.payload});case "SET_OVERLAY_STATE":return Object.assign({},O,{overlay:x.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return O}};
aBL=function(){return mN(Object.assign({},{continuation:t7L,download:qg8,canvas:FXW,reportChannelAbuse:PZr,share:cTW,talkToRecs:IB$,ui:owN,voiceSearch:Ewr,watch:V7L,ypc:pmr,shorts:RZr,radioButtonGroup:DAn,collabInviteLink:ATi},UAr))};
WXr=function(){return _.t("web_player_entities_middleware")?new nA(aBL(),[mAL,sX8]):new nA(aBL(),[mAL])};
_.u9=function(){hZ7||(hZ7=WXr());return hZ7};
zZN=function(O,x,e){if(O.length)return{titleText:_.J3(x!=null?x:_.CZ("DOWNLOADS",void 0,"Downloads")),contents:O.map(function(l){var C=l.videoEntity;l={videoId:C.videoId,title:wT(C.title),shortBylineText:wT(l.channelEntity.title),thumbnail:C.thumbnail};var Q=C.videoId?UQ(_.u9().getState(),C.videoId):0;C.videoId&&e?l.navigationEndpoint=_.fZ(C.videoId,e,void 0,void 0,Q):C.videoId&&(l.navigationEndpoint=s77(C.videoId,Q,C.lengthSeconds));C.lengthSeconds&&(l.thumbnailOverlays=QXL(C.lengthSeconds,Q));return{playlistPanelVideoRenderer:l}}),
totalVideos:O.length}};
rTN=function(O){return(O=(0,_.HX.getValueByKeys)(O,"playlistId"))?{playlistId:O}:null};
HjL=function(){return{}};
KXi=function(O,x){return new _.If(function(e,l){O.then(function(C){if(C){if(C=x(C))return e(C);l()}},l)})};
dAr=function(O){var x,e,l,C=(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.autoplay)==null?void 0:l.autoplay,Q,L,k;x=(Q=O.contents)==null?void 0:(L=Q.twoColumnWatchNextResults)==null?void 0:(k=L.playlist)==null?void 0:k.playlist;return C&&x&&x.playlistId?{rawResponse:O,autoplayRenderer:C,playlistPanelRenderer:x,playlistId:x.playlistId}:null};
uZr=function(O){var x=x===void 0?"UNKNOWN_INTERFACE":x;if(O.length===1)return O[0];var e=nw7[x];if(e){e=new RegExp(e);for(var l=_.T(O),C=l.next();!C.done;C=l.next())if(C=C.value,e.exec(C))return C}var Q=[];Object.entries(nw7).forEach(function(L){var k=_.T(L);L=k.next().value;k=k.next().value;x!==L&&Q.push(k)});
e=new RegExp(Q.join("|"));O.sort(function(L,k){return L.length-k.length});
l=_.T(O);for(C=l.next();!C.done;C=l.next())if(C=C.value,!e.exec(C))return C;return O[0]};
_.YE=function(O){return"/youtubei/v1/"+uZr(O)};
_.B1=function(O,x){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:O}}},x!==void 0?{durationHintMs:x}:{})}};
_.v1=function(O,x){return _.B1(_.KA(O),x)};
YgN=function(O,x){var e={mode:"NORMAL"};O&&(e.autoplayVideo=O.navigationEndpoint,e.nextButtonVideo=O.navigationEndpoint);x&&(e.previousButtonVideo=x.navigationEndpoint);return e};
fBw=function(O,x,e){if(!e||!e.sets)return{sets:[YgN(O,x)]};var l=e.sets.find(function(L){return L.mode==="NORMAL"}),C=(0,_.HX.unsafeClone)(e);
if(!l)return C.sets.push(YgN(O,x)),C;if(!O)return e;l=_.HX.getValueByKeys.apply(null,[l].concat(_.Kx(B8$)));var Q=_.HX.getValueByKeys.apply(null,[O].concat(_.Kx(vws)));if(l===Q)return e;C.sets=C.sets.filter(function(L){return L.mode!=="NORMAL"});
C.sets.push(YgN(O,x));return C};
JTr=function(O){return!!O.playlistPanelVideoRenderer&&!O.playlistPanelVideoRenderer.unplayableText};
wm7=function(O){return!!O.playlistPanelVideoRenderer&&!!O.playlistPanelVideoRenderer.title};
SgW=function(O,x){if(x.contents&&!(O>=x.contents.length)&&(O=x.contents.slice(O).find(JTr)))return O.playlistPanelVideoRenderer};
jXm=function(O,x){if(x.contents)return(x=x.contents.find(function(e){return!!e.playlistPanelVideoRenderer&&e.playlistPanelVideoRenderer.videoId===O}))?x.playlistPanelVideoRenderer:void 0};
N8i=function(O,x){return x.contents?x.contents.findIndex(function(e){return!!e.playlistPanelVideoRenderer&&e.playlistPanelVideoRenderer.videoId===O}):-1};
gww=function(O,x){return x.contents?x.contents.findIndex(function(e){return!!e.playlistPanelVideoRenderer&&e.playlistPanelVideoRenderer.playlistSetVideoId===O}):-1};
$AV=function(O,x){O.contents&&x!==-1&&O.contents.splice(x,1).length===1&&O.totalVideos!==void 0&&(--O.totalVideos,delete O.videoCountText)};
_.ijm=function(O){var x=[];if(!O||!O.contents)return x;O=_.T(O.contents);for(var e=O.next();!e.done;e=O.next())e=e.value,e.playlistPanelVideoRenderer&&e.playlistPanelVideoRenderer.videoId&&x.push(e.playlistPanelVideoRenderer.videoId);return x};
_.OzL=function(O){if(O&&O.contents)return(O=O.contents.find(function(x){return!!x.playlistPanelVideoRenderer&&!!x.playlistPanelVideoRenderer.selected})||O.contents[O.currentIndex])?O.playlistPanelVideoRenderer:void 0};
xz7=function(O,x,e,l,C,Q,L){C=C===void 0?!1:C;Q=Q===void 0?!1:Q;L=L===void 0?!1:L;if(O.contents&&O.contents.length!==0){l&&(O.contents=O.contents.filter(l));l=O.contents.length;for(var k=0;k<l;k++){var M=O.contents[k].playlistPanelVideoRenderer;M&&(k===x?(Q&&delete M.menu,M.indexText=_.KA("\u25b6")):C||O.isInfinite||M.indexText===void 0?delete M.indexText:M.indexText=_.KA((k+1+e).toString()))}O.currentIndex=x+e;L&&(delete O.videoCountText,O.totalVideos=l)}};
_.fA=function(O){O=e48(O);if(O){var x=O.length;var e=-93%x;e<0&&(e=x+e);O=O.slice(x-e)+O.slice(0,x-e)}else O="";e="";for(x=0;x<O.length&&O[x]!==lLr;x++)e+=O[x];return e};
_.Cln=function(O,x){var e=document.body;x=x===void 0?function(k){return k}:x;
var l,C=null;O=_.T(O);for(l=O.next();!l.done;l=O.next()){var Q=l.value;l="div";Q[2]&&(l=x(Q[2]));l=document.createElement(l);C||(C=l);var L=Q[0];Q=Q[1];L&&(l.id=x(L));if(Q)for(Q=_.T(Q),L=Q.next();!L.done;L=Q.next())l.classList.add(x(L.value));e.appendChild(l);e=l}return[C,e]};
Q0L=function(O,x){for(var e="",l=0;l<x;l++)e+=O.charAt(Math.floor(Math.random()*O.length));return e};
Jh=function(O){return Q0L("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",O)};
wb=function(O){return Q0L("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",O)};
S_=function(O){return Q0L("0123456789",O)};
bzV=function(){var O=performance.now(),x=new Date;var e="2."+x.getFullYear()+String(x.getMonth()+1).padStart(2,"0")+String(x.getDate()).padStart(2,"0");for(var l,C=Math.floor(Math.random()*11)+15,Q=[],L=0;L<C;L++)Q.push(Math.floor(Math.random()*26476865)+24547720);l=Q.join(",");var k=Jh(10),M=Jh(100),G=Jh(102),X=Jh(106),y=Jh(108),Z=Jh(11),E=Jh(1140),P=Jh(123),U=Jh(14),W=Jh(16),z=Jh(1900),r=Jh(23),f=Jh(26),u=Jh(34),Y=Jh(397),J=Jh(44),O8=Jh(5),Xr=Jh(72),Fr=Jh(74),mL=Jh(75),Zn=Jh(88),q$=Jh(91),KV="rr2---sn-q4flrne7 rr4---sn-q4flrnlz rr1---sn-q4flrnsd rr5---sn-q4fl6nd7 rr5---sn-q4flrnl7 rr1---sn-q4fl6nz6 rr2---sn-q4fl6nz6 rr1---sn-q4flrnlz rr5---sn-q4fl6nsl rr1---sn-ab5sznzd rr2---sn-q4fl6nsy rr4---sn-5hne6nzd rr5---sn-5hne6ns6 rr1---sn-aigl6nsd rr4---sn-q4fl6nz6 rr4---sn-5hne6nzy rr1---sn-q4fl6nsr rr2---sn-ntq7yned rr5---sn-q4fzen7y rr1---sn-aigzrnld".split(" ");
var VN=KV[Math.floor(Math.random()*KV.length)];var Pd=(new Date("2010-01-01")).getTime();var f2=(new Date(Pd+Math.random()*((new Date).getTime()-Pd))).toISOString().split("T")[0];for(var p2,OT=[],Gp=0;Gp<4;Gp++)OT.push(Math.floor(Math.random()*100));p2=OT.join(".");var zp=Number(S_(5)),m3=Number(S_(6)),E4=Number(S_(7)),Xw=Number(S_(9)),Tr=S_(1),QR=S_(10),ET=S_(16),Q$=S_(19),tJ=S_(2),CQ=S_(20),hS=S_(21),JJ=S_(3),F4=S_(4),DD=S_(5),lL=S_(6),Sw=S_(7),ZD=S_(8),qh=S_(9);var Or=Q0L("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var au=[wb(5),wb(5),wb(5)].join("%2C"),BO=[S_(3),S_(5),S_(5)].join("%2C"),OZ=wb(0),TJ=wb(1),ep=wb(10),Iu=wb(108),$d=wb(11),wo=wb(12),ut=wb(13),Pv=wb(14),SZ=wb(15),zt=wb(16),t_=wb(17),Rm=wb(18),nV=wb(19),JL=wb(2),Iz=wb(20),ou=wb(22),mo=wb(23),mY=wb(24),VR=wb(266),cd=wb(3),KQ=wb(30),Zs=wb(34),yR=wb(35),Vi=wb(36),fb=wb(4),dk=wb(40),gw=wb(43),xg=wb(47),D2=wb(5),YG=wb(6),Wb=wb(7),lJ=wb(75),jw=wb(8),V$=wb(80),he=wb(9),Ae="https://www."+wb(12)+".com",Du={},SN={},jZ={},QG={},rS={},IN={},V2={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:l}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:e},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+wb(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:e},{key:"client.name",value:"WEB"},{key:"client.fexp",value:l}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:hS+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+wb(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:dk,ypcGetOfflineUpsellEndpoint:{params:V$}},trackingParams:yR+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&cnr="+tJ+"&ratebypass=yes&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&c=WEB&txp="+Sw+"&n="+W+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:m3,width:640,height:360,lastModified:ET,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Sw,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+BO+"&mn="+
au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&cnr="+tJ+"&ratebypass=yes&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&c=WEB&txp="+Sw+"&n="+W+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Iu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:m3,width:1280,
height:720,lastModified:ET,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Sw,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+BO+"&mn="+au+"&ms="+
au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+qh+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:E4,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:qh,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:E4,approxDurationMs:Sw},{itag:248,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+BO+"&mn="+au+"&ms="+au+"&mv="+
TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+qh+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:E4,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:qh,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:E4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:399,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+qh+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:E4,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:qh,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:E4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:136,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+qh+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:E4,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:qh,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:m3,approxDurationMs:Sw},{itag:247,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+BO+"&mn="+
au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+qh+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:E4,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:qh,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:398,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+qh+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:E4,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:qh,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:135,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:m3,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:m3,approxDurationMs:Sw},{itag:244,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+BO+"&mn="+
au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Iu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:m3,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:397,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:m3,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:134,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:m3,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:m3,highReplication:!0,approxDurationMs:Sw},{itag:243,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:m3,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:396,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:m3,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:133,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:m3,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:m3,approxDurationMs:Sw},{itag:242,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+BO+"&mn="+
au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:m3,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:395,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:m3,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:160,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:m3,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zp,approxDurationMs:Sw},{itag:278,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+BO+"&mn="+
au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:m3,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zp,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:394,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&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="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=video%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:zp,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zp,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Sw},{itag:140,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=audio%2Fmp4&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:m3,
initRange:{start:"0",end:"631"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:m3,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Sw,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+
tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=audio%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+Sw+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/webm; codecs="opus"',bitrate:zp,initRange:{start:"0",end:"265"},indexRange:{start:JJ,
end:F4},lastModified:ET,contentLength:Sw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:zp,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Sw,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=audio%2Fwebm&ns="+
mY+"&gir="+cd+"&clen="+Sw+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/webm; codecs="opus"',bitrate:zp,initRange:{start:"0",end:"265"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:Sw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:zp,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Sw,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+VN+".googlevideo.com/videoplayback?expire="+QR+"&ei="+r+"&ip="+p2+"&id=o-AF"+gw+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+BO+"&mn="+au+"&ms="+au+"&mv="+TJ+"&mvi="+Tr+"&pl="+tJ+"&initcwndbps="+Sw+"&siu="+Tr+"&spc="+J+"&vprv="+Tr+"&svpuc="+Tr+"&mime=audio%2Fwebm&ns="+mY+"&gir="+cd+"&clen="+ZD+"&dur="+ZD+"&lmt="+ET+"&mt="+QR+"&fvip=3&keepalive="+cd+"&c=WEB&txp="+
Sw+"&n="+zt+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/webm; codecs="opus"',bitrate:m3,initRange:{start:"0",end:"265"},indexRange:{start:JJ,end:F4},lastModified:ET,contentLength:ZD,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:m3,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Sw,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="+qh+"&docid="+Z+"&ei="+r+"&feature="+k+"&fexp="+OZ+"&ns="+JL+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TJ+"&el="+ep+"&len="+F4+"&of="+ou+
"&uga="+tJ+"&vm="+VR},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+qh+"&docid="+Z+"&ei="+r+"&feature="+k+"&fexp="+OZ+"&ns="+JL+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TJ+"&el="+ep+"&len="+F4+"&of="+ou+"&uga="+tJ+"&vm="+VR},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+qh+"&docid="+Z+"&ei="+r+"&feature="+k+"&fexp="+OZ+"&ns="+JL+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
TJ+"&el="+ep+"&len="+F4+"&of="+ou+"&uga="+tJ+"&vm="+VR},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+r+"&m="+Zn+"&oid="+ou+"&plid="+W+"&pltype="+Wb+"&ptchn="+ou+"&ptk="+U+"&video_id="+Z},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+qh+"&docid="+Z+"&ei="+r+"&event="+Pv+"&feature="+k+"&fexp="+OZ+"&ns="+JL+"&plid="+W+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TJ},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
zt+"&ver=2&cmt=1."+JJ+"&fmt="+JJ+"&fs=0&rt="+DD+"&euri&lact="+JJ+"&cl="+qh+"&mos="+Tr+"&volume=100&cbrand="+D2+"&cbr="+YG+"&cbrver="+p2+"&c=WEB&cver="+e+"&cplayer=UNIPLAYER&cos="+he+"&cosver="+Sw+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+tJ+"&len="+ZD+"&fexp="+au+"&feature=g-high-rec&afmt="+JJ+"&muted=0&conn=1&docid="+Z+"&ei="+r+"&plid="+W+"&vm="+wb(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
Z+"&caps="+cd+"&opi="+qh+"&xoaf="+Tr+"&hl="+JL+"&ip="+p2+"&ipbits="+Tr+"&expire="+QR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+p2+"&key="+cd+"&lang="+O8,name:{simpleText:Rm},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Z+"&caps="+cd+"&opi="+qh+"&xoaf="+Tr+"&hl="+JL+"&ip="+p2+"&ipbits="+Tr+"&expire="+QR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+p2+"&key="+cd+"&kind="+cd+"&lang="+JL,name:{simpleText:D2},
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:$d,title:he,lengthSeconds:"1155",keywords:[jw,fb,ep,$d],channelId:mY,isOwnerViewing:!1,shortDescription:wo,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+Zs,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+
"G&rs="+Zs,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+u,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+u,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Z+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Sw,author:ut,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Sw,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
ou+"/featured_channel.jpg?v="+jw,width:40,height:40}]},trackingParams:yR+"=",navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"/channel/"+mY,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:mY}},channelName:ut,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Rm}]},subscribed:!1,enabled:!0,type:"FREE",channelId:mY,showPreferences:!1,subscribedButtonText:{runs:[{text:Rm}]},unsubscribedButtonText:{runs:[{text:wo}]},
trackingParams:yR+"=",unsubscribeButtonText:{runs:[{text:nV}]},serviceEndpoints:[{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[mY],params:jw}},{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:dk,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:yR+"=",dialogMessages:[{runs:[{text:$d},
{text:fb},{text:t_}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:jw}]},serviceEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[mY],params:jw}},accessibility:{label:Rm},trackingParams:yR+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ut}]},accessibility:{label:D2},
trackingParams:yR+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:zt}},unsubscribeAccessibility:{accessibilityData:{label:SZ}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ZD},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[mY],
params:jw}},unsubscribeCommand:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[mY],params:jw}},addToWatchLaterCommand:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:$d,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:$d}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Z+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Vi+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Z+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+$d,width:1280,
height:720},title:{simpleText:Pv},description:{simpleText:ut},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ut,externalChannelId:mY,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:Sw,category:"Travel & Events",publishDate:f2,ownerChannelName:ut,uploadDate:f2}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:jw},trackingParams:yR+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:dk,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:yR+"="}}],headerText:{simpleText:wo},icon:{infoCardIconRenderer:{trackingParams:yR+"="}},closeButton:{infoCardIconRenderer:{trackingParams:yR+"="}},trackingParams:yR+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:yR+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+$d+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Or,interpreterSafeUrl:(Du.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+KQ+".js",Du),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Rm},{text:fb,bold:!0}]},endpoint:{clickTrackingParams:dk,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:yR+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:SZ}]},actionButton:{buttonRenderer:{text:{runs:[{text:ut}]},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Z,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Z,target:"TARGET_NEW_WINDOW"}},trackingParams:yR+"="}},trackingParams:yR+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Xr+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Xr+"=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:Sw,endMs:Sw,title:{accessibility:{accessibilityData:{label:Pv}},simpleText:Rm},metadata:{simpleText:t_},callToAction:{simpleText:t_},dismiss:{simpleText:jw},endpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"/channel/"+mY,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:mY}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:t_}]},subscribed:!1,enabled:!0,type:"FREE",channelId:mY,showPreferences:!1,
subscribedButtonText:{runs:[{text:$d}]},unsubscribedButtonText:{runs:[{text:Wb}]},trackingParams:yR+"=",unsubscribeButtonText:{runs:[{text:wo}]},serviceEndpoints:[{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[mY],params:jw}},{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:dk,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:yR+
"=",dialogMessages:[{runs:[{text:$d},{text:t_},{text:$d}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:D2}]},serviceEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[mY],params:jw}},accessibility:{label:SZ},trackingParams:yR+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:he}]},
accessibility:{label:wo},trackingParams:yR+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:SZ}},unsubscribeAccessibility:{accessibilityData:{label:$d}}}},trackingParams:yR+"=",isSubscribe:!0,id:CQ}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+u,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+Zs,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+u,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+Vi+"G&rs="+u,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Z+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Sw,endMs:Sw,title:{accessibility:{accessibilityData:{label:D2}},simpleText:Pv},metadata:{simpleText:SZ},endpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
$d,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:$d,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+VN+".googlevideo.com/videoplayback?source=youtube&oeis="+Tr+"&c=WEB&oad="+F4+"&ovd="+F4+"&oaad="+DD+"&oavd="+DD+"&ocs="+JJ+"&oewis="+Tr+"&oputc="+Tr+"&ofpcc="+Tr+"&siu="+Tr+"&msp="+Tr+"&odepv="+Tr+
"&id=o-AF"+gw+"&ip="+p2+"&initcwndbps="+Sw+"&mt="+QR+"&oweuc="+OZ}}}}},trackingParams:yR+"=",id:CQ,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:wo}},simpleText:Rm},style:"DEFAULT"}}]}}],startMs:Sw,trackingParams:yR+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Tr,offsetEndMilliseconds:DD},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";ord="+QR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+JJ+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_ref=http://www.youtube.com/video/"+$d+";dc_pubid="+Tr+";dc_btype=23?gclid="+q$+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Tr+"&ns="+Tr+"&event="+Tr+"&device="+Tr+"&content_v="+Z+"&el="+ep+"&ei="+r+"&devicever="+e+"&bti="+Sw+"&format="+lL+"&break_type="+Tr+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Tr+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+p2+"&slot_pos="+Tr+"&slot_len="+Tr+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+BO+"&ad_len="+DD+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
$d+"&aqi="+r+"&ad_rmp="+Tr+"&sli="+Tr}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+
";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+Sw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&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"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&ctype="+JJ+"&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"+
E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_engaged_view&ctype="+JJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+Q$+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+mo+"&ad_cpn=[AD_CPN]&id="+YG+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+YG+"&dc_pubid="+Tr+"&dc_exteid="+CQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+mo+"&ad_cpn=[AD_CPN]&id="+YG+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Tr},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+YG+"&avm="+Tr+"&dc_pubid="+Tr+"&dc_exteid="+
CQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&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="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
G+"&sig="+mo+"&ad_cpn=[AD_CPN]&id="+YG+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Tr},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+YG+"&dc_pubid="+Tr+"&dc_exteid="+CQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:dk,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+
JJ+"&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/"+Z+"/mqdefault.jpg",width:320,height:180}]},trackingParams:yR+"="},trackingParams:yR+
"=",templatedCountdown:{templatedAdText:{text:he,isTemplated:!0,trackingParams:yR+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nV,isTemplated:!1,trackingParams:yR+"="},trackingParams:yR+"="}},trackingParams:yR+"=",skipOffsetMilliseconds:5E3}},trackingParams:yR+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ut},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yR+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Rm,isTemplated:!1,trackingParams:yR+"="},trackingParams:yR+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:SZ,isTemplated:!0,trackingParams:yR+"="}},trackingParams:yR+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:dk,openPopupAction:{popup:{aboutThisAdRenderer:{url:(SN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+z+"&hl="+JL+"&origin=www.youtube.com&ata_theme="+fb,SN),trackingParams:yR+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:yR+"="}},hoverText:{runs:[{text:zt}]},trackingParams:yR+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xg+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yR+"="},headline:{text:zt,isTemplated:!1,trackingParams:yR+"="},description:{text:YG,
trackingParams:yR+"="},actionButton:{buttonRenderer:{text:{simpleText:zt},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yR+"="}},startMs:Tr,trackingParams:yR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Pv},elementId:SZ}},elementId:Rm,trackingParams:yR+"=",legacyInfoCardVastExtension:D2,sodarExtensionData:{siub:zt,bgub:D2,scs:jw,bgp:he},externalVideoId:$d,adLayoutLoggingData:{serializedAdServingDataEntry:zt},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xg+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yR+"="},
headline:{text:jw,isTemplated:!1,trackingParams:yR+"="},description:{text:Iz,isTemplated:!1,trackingParams:yR+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:wo},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+
CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+
Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:yR+"="}},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+
qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+
P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yR+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:yR+"="},abandonCommands:{commands:[{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&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="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+
Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:dk,commandExecutorCommand:{commands:[{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:wo,isTemplated:!1,trackingParams:yR+
"="},trackingParams:yR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ut},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+Sw+";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="+qh+";dc_trk_cid="+qh+";ord="+QR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+JJ+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_ref=http://www.youtube.com/video/"+$d+";dc_pubid="+Tr+";dc_btype=23?gclid="+q$+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Tr+"&ns="+Tr+"&event="+Tr+"&device="+Tr+"&content_v="+Z+"&el="+ep+"&ei="+r+"&devicever="+e+"&bti="+Sw+"&format="+lL+"&break_type="+Tr+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Tr+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+p2+"&slot_pos="+Tr+"&slot_len="+Tr+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
BO+"&ad_len="+DD+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+$d+"&aqi="+r+"&ad_rmp="+Tr+"&sli="+Tr}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+
f+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+Sw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&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"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&ctype="+JJ+"&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"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_engaged_view&ctype="+JJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+mo+"&ad_cpn=[AD_CPN]&id="+
YG+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+YG+"&dc_pubid="+Tr+"&dc_exteid="+CQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+
"&sig="+mo+"&ad_cpn=[AD_CPN]&id="+YG+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Tr},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+YG+"&avm="+Tr+"&dc_pubid="+Tr+"&dc_exteid="+CQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&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="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+mo+"&ad_cpn=[AD_CPN]&id="+YG+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Tr},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+YG+"&dc_pubid="+Tr+"&dc_exteid="+CQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+lL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+
JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&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/"+Z+"/mqdefault.jpg",width:320,height:180}]},trackingParams:yR+"="},trackingParams:yR+"=",templatedCountdown:{templatedAdText:{text:zt,isTemplated:!0,trackingParams:yR+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:YG,isTemplated:!1,trackingParams:yR+"="},trackingParams:yR+"="}},
trackingParams:yR+"=",skipOffsetMilliseconds:5E3}},trackingParams:yR+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:SZ},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Rm,isTemplated:!1,trackingParams:yR+"="},trackingParams:yR+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:jw,
isTemplated:!0,trackingParams:yR+"="}},trackingParams:yR+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:dk,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+z+"&hl="+JL+"&origin=www.youtube.com&ata_theme="+fb,jZ),trackingParams:yR+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:yR+"="}},hoverText:{runs:[{text:$d}]},trackingParams:yR+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Fr+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yR+"="},headline:{text:D2,isTemplated:!1,trackingParams:yR+"="},description:{text:he,trackingParams:yR+"="},actionButton:{buttonRenderer:{text:{simpleText:nV},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yR+"="}},startMs:Tr,trackingParams:yR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nV},elementId:fb}},elementId:he,trackingParams:yR+"=",legacyInfoCardVastExtension:Rm,sodarExtensionData:{siub:nV,bgub:zt,scs:Rm,bgp:$d},externalVideoId:$d,adLayoutLoggingData:{serializedAdServingDataEntry:Wb},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Fr+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yR+"="},headline:{text:t_,
isTemplated:!1,trackingParams:yR+"="},description:{text:wo,isTemplated:!1,trackingParams:yR+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:D2},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:yR+"="}},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+
Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:yR+"="},abandonCommands:{commands:[{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&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="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+tJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:dk,commandExecutorCommand:{commands:[{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:SZ,isTemplated:!1,trackingParams:yR+"="},trackingParams:yR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Pv},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tr+";dc_exteid="+CQ+";met="+Tr+";ecn"+Tr+"="+Tr+";etm1="+Tr+";eid1="+
Sw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:ut}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:D2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:DD,offsetEndMilliseconds:lL},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+tJ+"&token=ALHj"+Y+"&index="+Tr+"&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="+e+"&m_pos_ms="+DD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ep}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:lL,offsetEndMilliseconds:lL},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+JJ+"&token=ALHj"+Y+"&index="+Tr+"&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="+
e+"&m_pos_ms="+lL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$d}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lL,offsetEndMilliseconds:lL},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+JJ+"&token=ALHj"+Y+"&index="+Tr+"&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="+
e+"&m_pos_ms="+lL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:SZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lL,offsetEndMilliseconds:lL},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+JJ+"&token=ALHj"+Y+"&index="+Tr+"&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="+
e+"&m_pos_ms="+lL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:YG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lL,offsetEndMilliseconds:tJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+JJ+"&token=ALHj"+Y+"&index="+Tr+"&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="+
e+"&m_pos_ms="+lL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Wb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:tJ,offsetEndMilliseconds:tJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+tJ+"&token=ALHj"+Y+"&index="+Tr+"&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="+
e+"&m_pos_ms="+tJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Wb,isTemplated:!1,trackingParams:yR+"="},description:{text:Iz,isTemplated:!1,trackingParams:yR+"="},actionButton:{buttonRenderer:{text:{simpleText:zt},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xg+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:yR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:yR+"="},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+
";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:dk,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+z+"&hl="+JL+"&origin=www.youtube.com&ata_theme="+fb,QG),trackingParams:yR+"="}},popupType:"DIALOG"}},trackingParams:yR+"="}},hoverText:{runs:[{text:Wb}]},trackingParams:yR+"="}},adVideoId:$d,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:$d},associatedCompositePlayerBytesLayoutId:zt}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:ut}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:D2,isTemplated:!1,trackingParams:yR+"="},description:{text:ut,isTemplated:!1,trackingParams:yR+"="},actionButton:{buttonRenderer:{text:{simpleText:nV},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+
P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Fr+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:yR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lJ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:yR+"="},navigationEndpoint:{clickTrackingParams:dk,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+
Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:dk,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+z+"&hl="+JL+"&origin=www.youtube.com&ata_theme="+fb,rS),trackingParams:yR+"="}},popupType:"DIALOG"}},trackingParams:yR+"="}},
hoverText:{runs:[{text:D2}]},trackingParams:yR+"="}},adVideoId:$d,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+$d+"&cid="+f+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:he},associatedCompositePlayerBytesLayoutId:zt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:t_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:nV,
isTemplated:!1,trackingParams:yR+"="},description:{text:he,isTemplated:!1,trackingParams:yR+"="},actionButton:{buttonRenderer:{text:{simpleText:Pv},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+
tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+
u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xg+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:yR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:yR+
"="},navigationEndpoint:{clickTrackingParams:dk,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qh+";dc_trk_cid="+qh+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tr+";ord="+qh+";dc_rui="+Tr+";dc_exteid="+CQ+";dc_av="+Tr+";dc_sk="+Tr+";dc_ctype="+tJ+";dc_pubid="+Tr+";dc_btype=3?gclid="+q$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+E+"____________"+P+"AxAA&ase=2&num="+Tr+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+Ae+"&label=video_click_to_advertiser_site&ctype="+JJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yR+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:dk,openPopupAction:{popup:{aboutThisAdRenderer:{url:(IN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+z+"&hl="+JL+"&origin=www.youtube.com&ata_theme="+fb,IN),trackingParams:yR+"="}},popupType:"DIALOG"}},trackingParams:yR+
"="}},hoverText:{runs:[{text:t_}]},trackingParams:yR+"="}},adVideoId:$d,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+E+"____________"+P+"AxAA&sigh="+Z+"&cid="+f+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Wb},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:zt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zt}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:KQ,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:KQ,command:{innertubeCommand:{clickTrackingParams:dk,ypcGetOfflineUpsellEndpoint:{params:V$}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:yR+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:QR,nanos:Xw}}}},Jfr=JSON.stringify(V2),pR=performance.now()-O;return{objectRepresentation:V2,jsonRepresentation:Jfr,generationTime:pR}};
T6n=function(O,x){if(O===x)return!0;if(!O||!x||typeof O!==typeof x)return!1;if(O instanceof Array&&x instanceof Array){if(O.length!==x.length)return!1;for(var e=0;e<O.length;e++)if(!T6n(O[e],x[e]))return!1;return!0}if(typeof O==="object"&&typeof x==="object"&&O&&x){for(e in O)if(!(e in x&&T6n(O[e],x[e])))return!1;for(var l in x)if(!(l in O))return!1;return!0}return!1};
_.Nc=function(){if(!j_){j_=new I9(new LAi);var O=_.yF("client_streamz_web_flush_count",-1);O!==-1&&(j_.invocationLimit=O)}return j_};
gb=function(O,x,e,l){if(O===x)return!0;if(Array.isArray(O)&&Array.isArray(x)){if(O.length!==x.length)return!1;for(var C=0;C<O.length;C++)if(!gb(O[C],x[C],e,l))return!1;return!0}if(O instanceof Set||x instanceof Set){if(O instanceof Set&&x instanceof Set){if(O.size!==x.size)return!1;l=_.T(O.values());for(C=l.next();!C.done;C=l.next())if(!x.has(C.value))return!1;return!0}return!1}if(O instanceof Function){if(l)return!0;O.name===""&&_.BH(Error("Pf"),"ERROR");return!1}if(O instanceof Date&&x instanceof
Date)return O.getTime()===x.getTime();if(O instanceof Object&&x instanceof Object){if(kxr(O)&&kxr(x))try{return O.equals(x)}catch(L){_.BH(Error("Qf`"+L),"ERROR")}C=Object.getOwnPropertyNames(O).filter(function(L){return e?O[L]!==void 0:!0});
var Q=Object.getOwnPropertyNames(x).filter(function(L){return e?x[L]!==void 0:!0});
if(C.length!==Q.length)return!1;C=_.T(C);for(Q=C.next();!Q.done;Q=C.next())if(Q=Q.value,!gb(O[Q],x[Q],e,l))return!1;return!0}return!1};
kxr=function(O){O=Object.getPrototypeOf(O).equals;return O instanceof Function&&O.length===1};
_.Dzn=function(){return _.A(function(O){if(O.nextAddress==1)return AMr!==2?O.jumpTo(2):O.yield(MQ8(),3);O.nextAddress!=2&&(AMr=O.yieldResult);return O.return(AMr)})};
_.XIi=function(){return _.A(function(O){if(O.nextAddress==1)return _.t("ab_pl_man")?GxV!==2?O.jumpTo(2):O.yield(FA8(),3):O.return(1);O.nextAddress!=2&&(GxV=O.yieldResult);return O.return(GxV)})};
Zz$=function(){return _.A(function(O){if(O.nextAddress==1)return _.t("ab_fk_sk_cl")?oRV!==2?O.jumpTo(2):O.yield(yML(),3):O.return(1);O.nextAddress!=2&&(oRV=O.yieldResult);return O.return(oRV)})};
_.qqi=function(){return _.A(function(O){if(O.nextAddress==1)return _.t("ab_det_apb_b")?ERL!==2?O.jumpTo(2):O.yield(tQL(),3):O.return(1);O.nextAddress!=2&&(ERL=O.yieldResult);return O.return(ERL)})};
IL$=function(){var O;return _.A(function(x){if(x.nextAddress==1)return x.yield(Promise.all([_.Dzn(),_.qqi(),_.XIi(),Zz$()]),2);if(x.nextAddress!=3)return Plr()?x.return(!0):x.yield(_.cMn(),3);O=x.yieldResult;return x.return(O===0)})};
Plr=function(){var O=!1,x=function(e,l){VQi.increment(l,e);e===0&&(O=!0)};
x(_.pIW(),"j.s_");x(AMr,"f.i_");x(ERL,"a.b_");x(GxV,"p.m_");x(oRV,"i.f_");R4$===2&&(R4$=_.Uzr(aLL));x(R4$,"e.h_");_.t("ks_det_gpbl")||x(_.mzr(),"p.i_");_.t("ks_get_o_pp")||x(_.s07(),"g.o_");_.t("ab_deg_unex_thr")||x(_.WAr(),"a.o_");x(h4N,"s.t_");_.t("ab_det_sc_inj_enf")&&x(_.z48(),"s.i_");x(rMn,"d.p_");x(_.HzL(_.$E),"o.p_");x(_.KA$()===0?0:_.dzL(),"o.a_");return _.t("debug_sk_em_precheck")?!0:O};
usL=function(){var O=[].concat(_.Kx(nRV));try{var x=bzV();O.push({jsonRepresentation:x.jsonRepresentation,objectRepresentation:x.objectRepresentation})}catch(e){O=[].concat(_.Kx(nRV))}return O};
YqN=function(){var O=["adPlacements","adSlots"];try{return O.filter(function(){return!0}).length!==O.length?0:1}catch(x){return 0}};
_.s07=function(){if(YqN()===0)return 0;var O=bzV(),x=O.objectRepresentation,e=(0,_.HX.unsafeClone)(x),l=[];if(x&&typeof x==="object")for(var C in x)l.push(C);else return 4;O=O.objectRepresentation.adPlacements;if(!(O&&O.length>0))return 4;try{if(!T6n(l,Object.getOwnPropertyNames(x)))return 0}catch(Q){return 0}return T6n(e,x)?1:0};
_.HzL=function(O){if(!O||!O.length||typeof O==="string")return 0;for(var x=Object.getOwnPropertyNames(Object.prototype),e=0;e<O.length;e++)for(var l=_.fA(O[e]),C=_.T(x),Q=C.next();!Q.done;Q=C.next())if(l===Q.value)return 0;return 1};
B6r=function(O){var x=_.fA(O[1]);if(O[0]===null)return x;O=O[0];for(var e={},l=0;l<O.length;l++){var C=_.fA(O[l]);if(l===0)e[C]=x;else{var Q={};Q[C]=e;e=Q}}return e};
_.KA$=function(){for(var O=_.i9,x=0;x<O.length;x++){var e=B6r(O[x]),l=[];l.push(e);if(l.length===0)return 0}return 1};
_.dzL=function(){for(var O=_.i9,x={},e=0;e<O.length;x={gdz:void 0},e++){var l=[B6r(O[e])];x.gdz=[];l.forEach(function(C){return function(Q){C.gdz[C.gdz.length]=Q}}(x));
if(x.gdz.length===0)return 0}return 1};
_.pIW=function(){for(var O=_.T(usL()),x=O.next();!x.done;x=O.next()){var e=x.value;x=e.jsonRepresentation;e=e.objectRepresentation;try{var l=JSON.parse(x);if(!gb(l,e,!1,!1))return 0}catch(C){return 0}}return 1};
_.z48=function(){try{var O=_.EC("ab_det_sc_inj_val");O.length===1&&O[0]===""&&(O=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var x=document.querySelectorAll("script"),e=_.T(x),l=e.next();!l.done;l=e.next())for(var C=l.value,Q=_.T(O),L=Q.next();!L.done;L=Q.next()){var k=L.value;x=void 0;if((x=C.textContent)==null?0:x.includes(k))return 0}}catch(M){return 4}return 1};
_.cMn=function(){var O,x,e,l,C,Q,L;return _.A(function(k){switch(k.nextAddress){case 1:_.tS(k,2),O=_.T(nRV),x=O.next();case 4:if(x.done)return k.return(1);l=e=x.value;C=l.jsonRepresentation;Q=l.objectRepresentation;return k.yield((new Response(C,{status:200})).json(),7);case 7:L=k.yieldResult;if(!gb(L,Q,!1,!1))return k.return(0);x=O.next();k.jumpTo(4);break;case 2:return _.VP(k),k.return(4)}})};
_.WAr=function(){try{btoa("abc")}catch(O){return 0}return 1};
MQ8=function(){var O,x,e,l,C,Q,L,k,M,G,X;return _.A(function(y){switch(y.nextAddress){case 1:_.tS(y,2),O=_.T(usL()),x=O.next();case 4:if(x.done)return y.return(1);l=e=x.value;C=l.jsonRepresentation;Q=l.objectRepresentation;L=btoa(C);k="data:application/json;base64,"+L;M=new Request(k);Object.defineProperty(M,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(M,"method",{get:function(){return"POST"}});
Object.defineProperty(M,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(M,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(M,"body",{get:function(){return new ReadableStream}});
return y.yield(fetch(M),7);case 7:return G=y.yieldResult,y.yield(G.json(),8);case 8:X=y.yieldResult;if(!gb(X,Q,!1,!1))return y.return(0);x=O.next();y.jumpTo(4);break;case 2:return _.VP(y),y.return(4)}})};
_.Uzr=function(O){if(!O||!O.length||typeof O==="string")return 0;for(var x=function(C){return _.fA(C)},e=2,l=0;l<O.length&&(e=_.vR8(_.Cln(O[l],x)),e!==0);l++);
return e};
_.vR8=function(O){var x=_.T(O);O=x.next().value;x=x.next().value;try{var e=document.createElement("div");document.body.appendChild(e);var l=getComputedStyle(e).display;document.body.removeChild(e);if(l==="none")return 4;var C=getComputedStyle(x).display==="none"?0:1;document.body.removeChild(O);return C}catch(Q){return 4}};
yML=function(){var O,x,e;return _.A(function(l){O=new _.OA;x=document.createElement("button");x.classList.add("ytp-ad-skip-button");x.style.opacity="0";x.style.height="0px";x.style.width="0px";x.style.padding="0px";x.style.border="none";e=function(){x.parentElement&&x.parentElement.removeChild(x)};
x.onclick=function(){O.resolve(0);e()};
document.body.appendChild(x);setTimeout(function(){e();O.resolve(1)},50);
return l.return(O.promise)})};
FA8=function(){var O,x,e,l,C,Q,L;return _.A(function(k){O=new _.OA;x=document.createElement("ytd-player");try{document.body.prepend(x)}catch(M){return k.return(4)}e=function(){x.parentElement&&x.parentElement.removeChild(x)};
x.getElementsByTagName("div").length>0?l=x.getElementsByTagName("div")[0]:(l=document.createElement("div"),x.appendChild(l));C=document.createElement("div");l.appendChild(C);Q=document.createElement("video");L=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});Q.src=_.Hw(_.Bw(L));Q.ontimeupdate=function(){e();O.resolve(0)};
C.appendChild(Q);Q.classList.add("html5-main-video");setTimeout(function(){C.classList.add("ad-interrupting")},200);
setTimeout(function(){e();O.resolve(1)},5E3);
return k.return(O.promise)})};
fLs=function(O){var x=bzV().objectRepresentation.playbackTracking;if(x){var e=[],l;e.push(x==null?void 0:(l=x.videostatsPlaybackUrl)==null?void 0:l.baseUrl);var C;e.push(x==null?void 0:(C=x.videostatsDelayplayUrl)==null?void 0:C.baseUrl);var Q;e.push(x==null?void 0:(Q=x.videostatsWatchtimeUrl)==null?void 0:Q.baseUrl);var L;e.push(x==null?void 0:(L=x.ptrackingUrl)==null?void 0:L.baseUrl);var k;e.push(x==null?void 0:(k=x.qoeUrl)==null?void 0:k.baseUrl);var M;e.push(x==null?void 0:(M=x.atrUrl)==null?
void 0:M.baseUrl);x=_.T(e);for(e=x.next();!e.done;e=x.next())if((e=e.value)&&O.test(e))return e.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
JMW=function(O,x){var e,l;return _.A(function(C){switch(C.nextAddress){case 1:e=[],l=0;case 2:if(!(l<3)){C.jumpTo(4);break}return C.yield(fetch(O,{cache:"no-store",method:x}).then(function(Q){e.push(Q.status)}).catch(function(){e.push(-1)}),3);
case 3:l++;C.jumpTo(2);break;case 4:return C.return(e)}})};
wIn=function(O){return O.domainLookupStart===0&&O.domainLookupEnd===0&&O.connectStart===0&&O.connectEnd===0};
Sqs=function(O,x,e){e=e===void 0?"GET":e;var l,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){if(E.nextAddress==1)return E.yield(Promise.all([JMW(O,e),JMW(x,e)]),2);l=E.yieldResult;C=_.T(l);Q=C.next().value;L=C.next().value;k=Q;M=L;if(Math.min.apply(Math,_.Kx(M))!==Math.max.apply(Math,_.Kx(M))||Math.min.apply(Math,_.Kx(k))!==Math.max.apply(Math,_.Kx(k)))return E.return(2);if(Math.min.apply(Math,_.Kx(M))===Math.min.apply(Math,_.Kx(k)))return E.return(1);X=(G=performance.getEntriesByName(O))==null?void 0:
G[0];Z=(y=performance.getEntriesByName(x))==null?void 0:y[0];return X&&Z?wIn(Z)?E.return(1):wIn(X)?E.return(0):E.return(1):E.return(2)})};
tQL=function(){var O;return _.A(function(x){var e=[];var l;var C,Q,L;(C=l=(C=bzV().objectRepresentation.streamingData)==null?void 0:(Q=C.formats)==null?void 0:(L=Q[0])==null?void 0:L.url)&&C&&!l.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(C=C.replace("initcwndbps","ctier=L&initcwndbps"),C=C.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),l={testUrl:C,baseUrl:l,method:"GET"}):l=void 0;l&&e.push(l);_.t("ab_net_tp_e")&&e.push({testUrl:_.CV.location.origin+"/ad_companion",baseUrl:_.CV.location.origin+
"/generate_204",method:"OPTIONS"});_.t("ab_fix_creator_view_cnt")&&(e.length=0,(l=fLs(/api\/stats\/atr/))&&e.push({testUrl:_.CV.location.origin+l,baseUrl:_.CV.location.origin+"/generate_204",method:"OPTIONS"}));_.t("ad_net_pb_pbp")&&(l=fLs(/api\/stats\/qoe/))&&e.push({testUrl:_.CV.location.origin+l,baseUrl:_.CV.location.origin+"/feed/download",method:"GET"});e=e.length!==0?e[Math.floor(Math.random()*e.length)]:void 0;return(O=e)?x.return(Sqs(O.testUrl,O.baseUrl,O.method)):x.return(4)})};
_.mzr=function(){if(_.CV.wfO===void 0||_.CV.wfO===null||typeof _.CV.wfO!=="function")return 2;try{return _.CV.wfO()===!0?0:1}catch(O){return 0}};
j0r=function(O){switch(O){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.vd(O,"unknown result type")}};
_.N68=function(O,x){var e=Number(_.wz("CATSTAT",0));if(x.c9v===void 0)return e;x=x.c9v;O=j0r(O);return e&~(3<<x)|O<<x};
gRr=function(O){var x,e;if((O=(x=O.auxiliaryUi)==null?void 0:(e=x.messageRenderers)==null?void 0:e.bkaEnforcementMessageViewModel)&&O.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return O};
izL=function(){for(var O=_.T(Object.values(_.$zW)),x=O.next();!x.done;x=O.next())x=x.value,x.isAsync&&x.c9v&&_.JZ("CATSTAT",_.N68(2,x))};
_.lK=function(O,x){O=_.xU("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",O);(x===void 0?0:x)?_.OgW(O,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.ex().logFlowEvent(O,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
eXi=function(){if(!xPW){if(Polymer.Base){var O=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{O.apply(this,arguments)}catch(y){_.jS(y)}};
var x=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{x.apply(this,arguments)}catch(y){_.jS(y)}};
var e=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{e.apply(this,arguments)}catch(y){_.jS(y)}};
var l=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{l.apply(this,arguments)}catch(y){_.jS(y)}};
var C=Polymer.Base._listen,Q=new WeakMap;Polymer.Base._listen=function(y,Z,E){var P=function(){try{E.apply(this,arguments)}catch(U){_.jS(U)}};
Q.set(E,P);C.call(this,y,Z,P)};
var L=Polymer.Base._unlisten;Polymer.Base._unlisten=function(y,Z,E){L.call(this,y,Z,Q.get(E))}}if(Polymer.Async){var k=Polymer.Async,M=k._atEndOfMicrotask;
k._atEndOfMicrotask=function(){try{M.apply(k,arguments)}catch(y){_.jS(y)}}}if(Polymer.RenderStatus){var G=Polymer.RenderStatus,X=G.afterNextRender;
G.afterNextRender=function(y,Z,E){X.call(G,y,function(){try{Z.apply(this,arguments)}catch(P){_.jS(P)}},E)}}xPW=!0}};
_.C6w=function(O){var x=O?_.VF(O):"";if(x){if(x.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(x.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(x.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(x.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(x.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.t("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(x.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";x=x.toLowerCase();if(x==="/")return"home";if(x==="/channel_memberships")return"channel-memberships-shopfront";if(x.indexOf("/feed/trending")===0)return"trending";if(x.indexOf("/feed/explore")===0)return"explore";if(x.indexOf("/live")===0)return"live";if(x.indexOf("/results")===0)return"search";if(x.indexOf("/sports")===0)return"sports";if(x.indexOf("/fashion")===0||x.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(x))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(x))return _.t("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(x.indexOf("/channel/")===0||x.indexOf("/user/")===0||x.indexOf("/gaming")===0||x.indexOf("/post/")===0)return"channel";if(lZL(O))return"show";if(x==="/playlist"||x.indexOf("/playlist/")===0||x==="/view_play_list"||x.indexOf("/view_play_list/")===0||x.indexOf("/show/")===0)return"playlist";if(x==="/companion_canvas")return"companion-canvas";if(x==="/feed/history"||
x.indexOf("/feed/history/")===0)return"history";if(x==="/new")return"labs";if(x==="/feed/subscriptions")return"subscriptions";if(x.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(x==="/history_controls")return"standalone";if(x.indexOf("/account")===0||x==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(x.indexOf("/paid_memberships")===0||x.indexOf("/refund")===0||x.indexOf("/purchases")===0||x.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(x.indexOf("/product")===
0)return"yts-products";if(x.indexOf("/premium")===0||x.indexOf("/musicpremium")===0)return x.indexOf("/premium/offers")===0||x.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(x==="/cart/checkout"||x==="/cart")return"ypc-checkout";if(x.indexOf("/feed/downloads")===0||x.indexOf("/redeem")===0||x.indexOf("/reporthistory")===0)return"browse";if(x.indexOf("/hashtag")===0)return"hashtag-landing-page";if(x.indexOf("/handle")===0)return"handle";if(x.indexOf("/source")===0)return"audio-pivot";if(x.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(x.indexOf("/playables")===0)return"playables";if(x.indexOf("/create/live/join")===0)return"open-in-app";if(x.indexOf("/shorts")===0)return"shorts";if(x.indexOf("/feed/channels")===0)return"subscriptions-channels";(x=O?_.VF(O):"")&&x.indexOf("/watch")===0&&_.t("web_watch_enable_learning_journey")?(O=_.Cb(O),O=!!O.list&&O.list.indexOf("LJPP")===0):O=!1;if(O)return"learning_journey_watch"}};
_.C3=function(O){var x,e;(O=(e=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:e.url)&&(x=_.C6w(O));return x};
lZL=function(O){var x=O?_.VF(O):"";if(!x)return!1;x=x.toLowerCase();return x.indexOf("/show/")===0||x.indexOf("/playlist")===0&&(O=_.Cb(O),O.list&&O.list.indexOf("EL")===0)?!0:!1};
Tu=function(O){var x="unknown",e;var l=((e=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:e.webPageType)||"";l?(e=l.toLowerCase(),e.startsWith("web_page_type_")&&(e=e.slice(14))):e=l;e&&Q47[e.toUpperCase()]?x=Q47[e.toUpperCase()]:_.q(O,_.Q9)||_.q(O,bg$)?x="browse":_.q(O,_.bK)?x="search":_.q(O,_.Hq)&&(x="watch");x==="watch"&&_.C3(O||null)==="learning_journey_watch"&&(x="learning_journey_watch");x==="unknown"&&_.ft(Error("Sf`"+JSON.stringify({clickTrackingParams:O==null?void 0:O.clickTrackingParams,
commandMetadata:O==null?void 0:O.commandMetadata,allEndpointKeys:Object.keys(O||[])})));return x};
_.L3=function(O){if(!_.TGr||O)_.TGr=_.Rn();return _.TGr};
_.L0L=function(O){return!!_.q(O,_.Hq)||!!_.q(O,_.kU)&&_.t("kevlar_enable_shorts_prefetch")};
_.kdw=function(O,x){O=_.q(O,_.Hq)||_.q(O,_.kU);return"v"+O.videoId+(O.playlistId?"-pl"+O.playlistId:"")+(x?"-an1":"")+(O.params?"-pr"+O.params:"")};
AU=function(O){return function(){return new O}};
Mw=function(O){var x=_.GG();return function(){return x.resolve(O)}};
MVr=function(O){var x=_.yF("web_pbj_log_warning_rate",0);x=x>0&&Math.random()<x;if(!_.q(O,_.kU))return x&&_.ft(Error("Vf")),!1;var e;return _.t("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.q(O,_.kU))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:AXr(O)?!0:(x&&_.ft(Error("Wf")),!1)};
AXr=function(O){var x=(_.q(O,_.Hq)||_.q(O,_.kU)).videoId;if(!x||!DPn.test(x))return!1;var e;return(O=(e=_.q(O.commandMetadata,_.e6))==null?void 0:e.url)&&(O.includes(x)||O.startsWith("/clip"))?!0:!1};
_.F0s=function(){var O=_.TD();return O.getFlag(192)?O.getFlag(190):!(_.t("web_watch_cinematics_disabled_by_default")||_.t("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Gdi())};
_.DE=function(O,x,e){var l={};l.currentUrl=x;l.vis=O.vis!==void 0?O.vis:0;l.splay=!1;x=_.TD();l.autoCaptionsDefaultOn=x.getFlag(66);x.getFlag(141)?x.getFlag(140)?l.autonavState="STATE_OFF":l.autonavState="STATE_ON":l.autonavState="STATE_NONE";l.html5Preference="HTML5_PREF_WANTS";isNaN(_.wz("STS"))||(l.signatureTimestamp=_.wz("STS"));O.autonav&&(l.autoplay=!0,l.autonav=!0);O.mutedAutoplay&&(l.autoplay=!0,l.mutedAutoplay=!0);O.inlinePlayback&&(l.autoplay=!0,l.autonav=!1,l.isInlineUnmutedPlayback=!!O.inlineUnmuted);
l.referer=e;l.lactMilliseconds=O.lact!==void 0?O.lact.toString():"-1";_.t("enable_unknown_lact_fix_on_html5")&&l.lactMilliseconds==="-1"&&_.ft(new _.ry("Unknown LACT is set in playbackContext.",{"lact in tempData":O.lact||"undefined",autonav:O.autonav||"undefined"}));O={};x.getFlag(194)&&(O.hasShownAmbientMode=!0);x.getFlag(192)&&(O.hasToggledOffAmbientMode=!0);_.F0s()&&(O.watchAmbientModeEnabled=!0);l.watchAmbientModeContext=O;return l};
X$W=function(O){var x={},e=O.pbis||0;e&&(x.playbackBeginsInSeconds=e);O.prefetch_reason&&O.prefetch_reason==="hc_pbis"&&(x.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return x};
_.Fo=function(O){O=O===void 0?!1:O;var x=_.TD(),e="USER_INTERFACE_THEME_LIGHT";x.getFlag(165)?e="USER_INTERFACE_THEME_DARK":x.getFlag(174)?e="USER_INTERFACE_THEME_LIGHT":_.Gu()&&(e="USER_INTERFACE_THEME_DARK");return O?e:o68()||e};
_.yXs=function(){return!_.t("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Gu=function(){return _.yXs()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Xo=function(){var O=_.TD();return _.yXs()&&!O.getFlag(165)&&!O.getFlag(174)};
o68=function(){var O=O===void 0?window.location.href:O;if(_.t("kevlar_disable_theme_param"))return null;var x=_.VF(O);if(_.Zgs(x))return"USER_INTERFACE_THEME_DARK";try{var e=_.Cb(O).theme;return E6L.get(e)||null}catch(l){}return null};
_.Zgs=function(O){return _.t("enable_dark_theme_only_on_shorts")?!(O==null||!O.startsWith("/shorts/")):!1};
_.P6L=function(O,x,e,l,C){x=x===void 0?!1:x;e=e===void 0?!1:e;var Q=_.wz("INNERTUBE_CONTEXT");if(!Q)return _.BH(Error("Zf")),{};Q=(0,_.HX.unsafeClone)(Q);_.t("web_no_tracking_params_in_shell_killswitch")||delete Q.clickTracking;Q.client||(Q.client={});var L=Q.client;L.clientName==="MWEB"&&L.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(L.clientFormFactor=_.wz("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");L.screenWidthPoints=window.innerWidth;L.screenHeightPoints=window.innerHeight;L.screenPixelDensity=
Math.round(window.devicePixelRatio||1);L.screenDensityFloat=window.devicePixelRatio||1;L.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());L.userInterfaceTheme=_.Fo();if(!x){var k=_.dg8();k&&(L.connectionType=k);_.t("web_log_effective_connection_type")&&(k=uCL())&&(Q.client.effectiveConnectionType=k)}var M;if(_.t("web_log_memory_total_kbytes")&&((M=_.CV.navigator)==null?0:M.deviceMemory)){var G;M=(G=_.CV.navigator)==null?void 0:G.deviceMemory;Q.client.memoryTotalKbytes=""+M*1E6}x&&l&&!_.t("web_it_context_set_original_url_ks")&&
(L.originalUrl=tVs(_.CV.location.href,l).toString());_.t("web_gcf_hashes_innertube")&&(k=gE8())&&(G=k.coldConfigData,M=k.coldHashData,k=k.hotHashData,Q.client.configInfo=Q.client.configInfo||{},G&&(Q.client.configInfo.coldConfigData=G),M&&(Q.client.configInfo.coldHashData=M),k&&(Q.client.configInfo.hotHashData=k));G=_.Cb(_.CV.location.href);!_.t("web_populate_internal_geo_killswitch")&&G.internalcountrycode&&(L.internalGeo=G.internalcountrycode);!_.t("web_populate_client_screen_killswitch")&&C&&(L.clientScreen=
C);L.clientName==="MWEB"||L.clientName==="WEB"?(L.mainAppWebInfo||(L.mainAppWebInfo={}),L.mainAppWebInfo.graftUrl=l||_.CV.location.href,_.t("kevlar_woffle")&&_.oF.instance&&(l=_.oF.instance,L.mainAppWebInfo.pwaInstallabilityStatus=!l.appInstalledEventFired&&l.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),L.mainAppWebInfo.webDisplayMode=Bbr(),L.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):L.clientName==="TVHTML5"&&
(!_.t("web_lr_app_quality_killswitch")&&(l=_.wz("LIVING_ROOM_APP_QUALITY"))&&(L.tvAppInfo=Object.assign(L.tvAppInfo||{},{appQuality:l})),l=_.wz("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(L.tvAppInfo=Object.assign(L.tvAppInfo||{},{certificationScope:l}));!_.t("web_populate_time_zone_itc_killswitch")&&(l=HZr())&&(L.timeZone=l);(l=l2N())?L.experimentsToken=l:delete L.experimentsToken;L=C_n();l=_.qL8();l=(0,_.HX.getValues)(l.tokenJars);Q.request=Object.assign({},Q.request,{internalExperimentFlags:L,consistencyTokenJars:l});
!_.t("web_prequest_context_killswitch")&&(L=_.wz("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Q.request.externalPrequestContext=L);l=_.TD();L=l.getFlag(58);l=l.get("gsml","");Q.user=Object.assign({},Q.user);L&&(Q.user.enableSafetyMode=L);l&&(Q.user.lockedSafetyMode=!0);_.t("warm_op_csn_cleanup")?e&&(x=_.Pq())&&(Q.clientScreenNonce=x):!x&&(x=_.Pq())&&(Q.clientScreenNonce=x);O&&(Q.clickTracking={clickTrackingParams:O});if(O=_.i8("yt.mdx.remote.remoteClient_"))Q.remoteClient=O;_.y9.getInstance().setLocationOnInnerTubeContext(Q);
try{var X=FR$(),y=X.bid;delete X.bid;Q.adSignalsInfo={params:[],bid:y};for(var Z=_.T(Object.entries(X)),E=Z.next();!E.done;E=Z.next()){var P=_.T(E.value),U=P.next().value,W=P.next().value;X=U;y=W;O=void 0;(O=Q.adSignalsInfo.params)==null||O.push({key:X,value:""+y})}var z,r;if(((z=Q.client)==null?void 0:z.clientName)==="TVHTML5"||((r=Q.client)==null?void 0:r.clientName)==="TVHTML5_UNPLUGGED"){var f=_.wz("INNERTUBE_CONTEXT");f.adSignalsInfo&&(Q.adSignalsInfo.advertisingId=f.adSignalsInfo.advertisingId,
Q.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Q.adSignalsInfo.limitAdTracking=f.adSignalsInfo.limitAdTracking)}}catch(u){_.BH(u)}return Q};
_.EA=function(O,x,e){var l=e&&e>0?e:0;e=l?Date.now()+l*1E3:0;if((l=l?_.ZE.getLocalStorage():_.ZE.getSessionStorage())&&window.JSON){typeof x!=="string"&&(x=JSON.stringify(x,void 0));try{l.set(O,x,e)}catch(C){l.remove(O)}}};
_.tU=function(O){var x=_.ZE.getSessionStorage(),e=_.ZE.getLocalStorage();if(!x&&!e||!window.JSON)return null;try{var l=x.get(O)}catch(C){}if(typeof l!=="string")try{l=e.get(O)}catch(C){}if(typeof l!=="string")return null;try{l=JSON.parse(l,void 0)}catch(C){}return l};
_.qw=function(O){try{var x=_.ZE.getSessionStorage(),e=_.ZE.getLocalStorage();x&&x.remove(O);e&&e.remove(O)}catch(l){}};
_.cXm=function(O){var x=new PR(_.wz("ONE_PICK_URL",""));x.urlParamMap_.set("hostId",O);(O=_.wz("GAPI_LOCALE"))&&x.urlParamMap_.set("hl",O);(O=_.wz("SESSION_INDEX"))&&x.urlParamMap_.set("authuser",O);(O=_.wz("DELEGATED_SESSION_ID"))&&x.urlParamMap_.set("groupId",O);return x};
VVr=function(){var O=_.GG(),x=O.resolve(_.cR);O=O.resolve(_.IF);return new IZr(x,O)};
RX7=function(O){if(window.IntersectionObserver)return new p$w(O,400);throw new TypeError("fg");};
aZr=function(){var O=Hammer.TouchAction,x=O.prototype.preventDefaults;O.prototype.preventDefaults=function(e){var l=this.actions.indexOf("pan-down")>-1;if(!l)return x.call(this,e);if(!UPi){var C=e.srcEvent;e=e.direction;var Q;if((Q=this.manager)==null?0:Q.session.prevented)C.preventDefault();else if(l&&e&Hammer.DIRECTION_DOWN)return this.preventSrc(C)}}};
mPW=function(O){if(!O||O.size===0)return Hammer.DIRECTION_ALL;if(O.size===2){if(O.has("up")&&O.has("down"))return Hammer.DIRECTION_VERTICAL;if(O.has("right")&&O.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(O.size===1){if(O.has("up"))return Hammer.DIRECTION_UP;if(O.has("down"))return Hammer.DIRECTION_DOWN;if(O.has("right"))return Hammer.DIRECTION_RIGHT;if(O.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.W0n=function(){return s4V?Promise.resolve(s4V):new Promise(function(O,x){var e=self.indexedDB.open("swpushnotificationsdb");e.onerror=x;e.onsuccess=function(){var l=e.result;if(l.objectStoreNames.contains("swpushnotificationsstore"))s4V=l,O(s4V);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.W0n()};
e.onupgradeneeded=hX8})};
hX8=function(O){O=O.target.result;O.objectStoreNames.contains("swpushnotificationsstore")&&O.deleteObjectStore("swpushnotificationsstore");O.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
rXm=function(O){var x=zXr(),e;return _.A(function(l){switch(l.nextAddress){case 1:return _.tS(l,2),l.yield(O.match(x,{cacheName:"yt-appshell-assets"}),4);case 4:e=l.yieldResult;_.lb(l,3);break;case 2:_.VP(l);case 3:return l.return(e)}})};
zXr=function(){var O=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Hgi.registration.scope:K07;O.endsWith("/")&&(O=O.slice(0,-1));return O+"/app_shell_home"};
dPr=function(O){O.map(function(x){return x.source}).join("|")};
_.n6r=function(O){return _.A(function(x){return x.return(rXm(O))})};
uMi=function(){var O=window.caches,x;return _.A(function(e){if(e.nextAddress==1)return e.yield(_.n6r(O),2);x=e.yieldResult;return e.return(!!x)})};
SLN=function(){_.A(function(O){if(O.nextAddress==1){if(YLN)return O.jumpTo(0);YLN=!0;if(_.t("enable_system_health_primes_monitoring"))return _.cK(BGs,3E4),v6L(),O.return();if(!(Math.random()<_.yF("web_system_health_fraction")))return O.jumpTo(0);fZr={heightPixels:screen.height,widthPixels:screen.width};V9&&!isNaN(V9.jsHeapSizeLimit)&&(fZr.memoryTotalKbytes=String(Math.round(V9.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(fZr.devicePixelRatio=window.devicePixelRatio);return O.yield(JXL(),4)}_.cK(BGs,
3E4);return O.yield(w$r(),0)})};
JXL=function(){return _.A(function(O){if(O.nextAddress==1)return p3.intersectionObserverPresent="IntersectionObserver"in window,p3.serviceWorkerPresent="serviceWorker"in navigator,p3.webSharePresent="share"in navigator,p3.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,p3.cacheStoragePresent="caches"in window,p3.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,p3.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
p3.webkitTemporaryStoragePresent="webkitTemporaryStorage"in RF&&RF.webkitTemporaryStorage&&"queryUsageAndQuota"in RF.webkitTemporaryStorage,p3.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",O.yield(oEL(),2);p3.indexedDbPresent=O.yieldResult;p3.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;p3.broadcastChannelPresent="BroadcastChannel"in window;p3.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(p3.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,p3.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Ra(O)})};
BGs=function(){var O=9E4+Math.random()*2E3;_.Gl()>O||(_.t("enable_system_health_primes_monitoring")?v6L():w$r())};
w$r=function(){var O;return _.A(function(x){if(x.nextAddress==1)return x.yield(j4i(),2);O=x.yieldResult;_.uU("systemHealthCaptured",O);_.Ra(x)})};
v6L=function(){var O={metric:{}},x=NG8();x.networkEvents.length&&(O.metric.networkEvents=g6w(x));_.uU("systemHealthCaptured",O)};
j4i=function(){var O,x,e,l,C,Q,L,k,M,G;return _.A(function(X){switch(X.nextAddress){case 1:O={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)};x=window.screen;_.t("enable_is_extended_monitoring")&&x&&"isExtended"in x&&(O.isExtended=!!x.isExtended);e={metric:{staticContext:fZr,dynamicContext:O,webMetric:$P7,webApiSupport:p3}};
if(l=_.Pq())e.csn=l;V9&&(e.metric.webMetric.currentHeapKbytes=Math.round(V9.usedJSHeapSize/1E3));window.matchMedia&&(e.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,e.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,e.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in RF&&typeof RF.getBattery==="function")){X.jumpTo(2);break}return X.yield(RF.getBattery(),3);case 3:if(C=
X.yieldResult)e.metric.dynamicContext.chargingStatus=C.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(e.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(p3.storageEstimatePresent)return X.yield(navigator.storage.estimate(),8);if(!p3.webkitTemporaryStoragePresent){X.jumpTo(5);break}return X.yield(igV(),7);case 7:Q=X.yieldResult;X.jumpTo(5);break;case 8:Q=X.yieldResult;case 5:return e.metric.dynamicContext.deviceStorageQuotaMbytes=((L=Q)==null?0:L.quota)?String(Math.round(Q.quota/
1048576/10)*10):"-1",e.metric.dynamicContext.deviceStorageUsageMbytes=((k=Q)==null?0:k.usage)?String(Math.round(Q.usage/1048576/10)*10):"-1",M=e.metric.dynamicContext,X.yield(uMi(),9);case 9:return M.hasAppShell=X.yieldResult,G=NG8(),G.networkEvents.length&&(e.metric.networkEvents=g6w(G)),X.return(e)}})};
igV=function(){return new Promise(function(O){var x;p3.webkitTemporaryStoragePresent&&(x=RF.webkitTemporaryStorage)!=null&&x.queryUsageAndQuota?RF.webkitTemporaryStorage.queryUsageAndQuota(function(e,l){O({usage:e,quota:l})}):O(void 0)})};
_.UA=function(O){O&=16777215;O=[(O&16711680)>>16,(O&65280)>>8,O&255];return ONw(O[0],O[1],O[2])};
_.aF=function(O){O=[(O&16711680)>>>16,(O&65280)>>>8,O&255,(O&4278190080)>>>24];if(!_.xe7(O,function(x){return x===(x&255)}))throw Error("gg`"+O.join(","));
return"rgba("+O[0]+","+O[1]+","+O[2]+","+(O[3]/255).toFixed(3)+")"};
_.e$r=function(O){return[(O&16711680)>>>16,(O&65280)>>>8,O&255]};
_.l_i=function(O){O=O.map(function(x){x/=255;return x<=.03928?x/12.92:Math.pow((x+.05)/1.05,2.4)});
return O[0]*.2126+O[1]*.7152+O[2]*.0722};
mC=function(O,x){O=_.e$r(O);return"rgba("+O[0]+", "+O[1]+", "+O[2]+", "+x+")"};
sA=function(O){return(O&4278190080)>>>24===0?mC(O,"1"):_.aF(O)};
_.CEs=function(){try{return!!self.localStorage}catch(O){return!1}};
LTr=function(){if(Qb8())_.ft(Error("hg"));else{var O=document.createElement("iframe");O.style.display="none";var x=x===void 0?window.location.href:x;var e=_.f$(_.wz("PERSIST_IDENTITY_IFRAME_URL"));x=e?e:(new URL(x)).host.indexOf("studio")===0?_.on(bNw,"persist_identity"):_.on(Ter,"persist_identity");_.Fgr(O,1,x);O.id="persist_identity";var l;(l=document.body)==null||l.appendChild(O)}};
Qb8=function(){var O=kzL;O||(O=document.querySelector("#persist_identity"));return O};
AHL=function(){var O=!1;try{O=!!window.sessionStorage.getItem("session_logininfo")}catch(x){O=!0}return(_.wz("INNERTUBE_CLIENT_NAME")==="WEB"||_.wz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&O};
MIr=function(O,x){if(!AHL())return!1;x||(x=_.wz("LOGIN_INFO"));return x?(O.session_logininfo=x,!0):!1};
Gzr=function(O,x){O=O===void 0?!1:O;if((x===void 0||!x)&&Der!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.SS("LOG_STICKINESS",!1)){x=_.Pq();var e=_.q9(),l={identityStickinessData:{initialState:Der}};x&&e&&_.nZ(x,e,l)}if(x=Qb8())if(e=x.src?(new URL(x.src)).origin:"*",O){var C;(C=x.contentWindow)==null||C.postMessage({action:"clear"},e)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(O=window.sessionStorage.getItem("session_logininfo"))){var Q;(Q=x.contentWindow)==null||Q.postMessage({loginInfo:O},e)}};
_.WR=function(O){O=O===void 0?!0:O;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.JZ("LOGIN_INFO",""),O&&window.sessionStorage.setItem("from_switch_account","1"),Gzr(!0,O)}catch(x){}};
FTV=function(O){O&&(O.startsWith("https://accounts.google.com/AddSession")?_.WR():O.startsWith("https://accounts.google.com/ServiceLogin")?_.WR():O.startsWith("https://myaccount.google.com")&&_.xO(O).getPath().endsWith("/youtubeoptions")&&_.WR())};
hU=function(O,x){FTV(O);if(_.SS("LOGGED_IN",!0)&&AHL()){var e=N2L(O);e==null&&(e={});MIr(e,x)&&_.uh(O,e)}};
XfL=function(){function O(x){for(x=x.target;x&&x.nodeName!=="A";)if(x=x.parentNode,!(x&&x instanceof HTMLElement))return;if(x&&!x.hasAttribute("download")&&x.getAttribute("rel")!=="external"&&x.href)return x.href}
document.addEventListener("mousedown",function(x){x.button!==0&&(x=O(x))&&hU(x)});
document.addEventListener("click",function(x){(x=O(x))&&hU(x)})};
ZNw=function(){var O=new ovV;try{if(_.SS("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(k){O.increment(5,!1);return}if(_.wz("LOGIN_INFO")){var x=yH7?yH7:window.location;_.wz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&LTr();var e=N2L(x.href);e==null&&(e={});var l=e.session_logininfo,C=Number(window.sessionStorage.getItem("stickiness_reload")),Q=l===_.wz("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
C>=2||Q)C>=2?O.increment(2,Q):Q?O.increment(7,Q):window.sessionStorage.getItem("session_logininfo")||(O.increment(3,Q),Der="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.wz("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.wz("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))O.increment(4,Q),window.sessionStorage.removeItem("stickiness_reload");
else if(C<2){window.sessionStorage.setItem("stickiness_reload",String(C+1));var L=x.href;L=_.Y7(L,"sttick");hU(L,window.sessionStorage.getItem("session_logininfo"));L=_.QF(L,{sttick:C});O.increment(C,Q);_.ESN(x,L)}}else O.increment(6,!1)}else _.WR(!1)}catch(k){}};
_.zu=function(O,x,e,l,C){x=x===void 0?{}:x;e=e===void 0?"":e;l=l===void 0?window:l;O=_.bu(O,x);hU(O);e=_.Yy(O+e,C);_.ESN(l.location,e)};
Evm=function(O){if(O.urlEndpoint){if(O=_.Cb(O.urlEndpoint.url),O.adurl)return Mb(O.adurl)}else if(O.watchEndpoint)return"//www.youtube.com/watch?v="+O.watchEndpoint.videoId;return null};
tIV=function(O){if(!O||!O.reportingPings)return null;var x={};O.reportingPings.forEach(function(e){e.pingType in x?x[e.pingType].push(e.url):x[e.pingType]=[e.url]});
return{adpings:Brr(x)}};
_.rO=function(){return{isShellLoad:_.SS("IS_SHELL_LOAD",!1)}};
PEV=function(){navigator.serviceWorker.getRegistrations().then(function(O){O.forEach(qjr)})};
qjr=function(O){O&&_.cHN(I_8,O.scope)};
_.cHN=function(O,x){x={scope:x||_.Z0("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.sh(O),x)};
HR=function(O,x,e,l){if(x&&x.serializedYpcCujLoggingParams){if(e){var C={};C.transactionErrorType=e;l&&(C.errorMessage=l);x.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:C}}}e={};e.ypcCujContext=x;O=_.xU("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",O,e);_.ex().logFlowEvent(O,"FLOW_TYPE_YPC_ACQUISITION")}};
_.VIN=function(O,x,e,l){var C={};C.serializedTransactionFlowLoggingParams=x;e&&(C.errorType=e);l&&(C.errorMessage=l);_.uU(O,C);_.Yb()};
_.pfm=function(O){O&&_.VIN("transactionFlowStarted",O)};
_.R$m=function(O){O&&_.VIN("transactionFlowCancelled",O)};
_.K3=function(O,x,e){x&&_.VIN("transactionFlowFailed",x,O,e)};
UeN=function(O){var x=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");x&&(x.inert=O)};
_.dO=function(){this.megabloxUrl_=null};
_.n3=function(O){try{var x=a_N==null?void 0:a_N.composedPath(O)}catch(e){x=O.composedPath?O.composedPath():[]}return x&&x.length>0?x:O.composedPath?O.composedPath():[]};
_.uK=function(O){return _.n3(O)[0]};
_.YU=function(O){if(!(O instanceof Element))return null;O=O.classList?Array.from(O.classList):void 0;if(!O)return null;var x=O.indexOf("style-scope");return x>-1&&x+1<O.length?O[x+1]:null};
BR=function(O){if(!(O instanceof HTMLElement))return null;var x=O&&(O.$$||O.polymerController)?O.tagName.toLowerCase():null;return x?x:_.YU(O)};
mew=function(O,x){return O.replace(/[^a-z]*[^\s]+/g,function(e){return e+".style-scope."+x})};
sb7=function(O,x){return x?O.split(",").map(function(e){return mew(e.trim(),x)}).join(", "):O};
_.vR=function(O){var x,e,l,C;return(C=(l=(e=(x=O.root)!=null?x:O.shadowRoot)!=null?e:O.__shady_native_shadowRoot)!=null?l:O.__shady_shadowRoot)!=null?C:O};
f3=function(O){return O instanceof ShadowRoot?ShadowRoot:O instanceof DocumentFragment?DocumentFragment:O instanceof Document?Document:HTMLElement};
WTr=function(O){var x,e,l;return(l=(e=(x=O.parentElement)!=null?x:O.__shady_native_parentElement)!=null?e:O.__shady_parentElement)!=null?l:null};
h$L=function(O){var x,e,l;return(l=(e=(x=O.parentNode)!=null?x:O.__shady_native_parentNode)!=null?e:O.__shady_parentNode)!=null?l:null};
z$L=function(O){var x,e,l;return(l=(e=(x=O.__shady_parentNode)!=null?x:O.__shady_native_parentNode)!=null?e:O.parentNode)!=null?l:null};
rHL=function(O){var x,e;return(e=(x=h$L(O))!=null?x:O.host)!=null?e:null};
HNi=function(O){var x,e,l;return(l=(e=(x=O.nextSibling)!=null?x:O.__shady_native_nextSibling)!=null?e:O.__shady_nextSibling)!=null?l:null};
KT$=function(O){var x,e,l;return(l=(e=(x=O.previousSibling)!=null?x:O.__shady_native_previousSibling)!=null?e:O.__shady_previousSibling)!=null?l:null};
der=function(O){var x,e,l;return(l=(e=(x=O.nextElementSibling)!=null?x:O.__shady_native_nextElementSibling)!=null?e:O.__shady_nextElementSibling)!=null?l:null};
nvW=function(O){var x,e,l;return(l=(e=(x=O.previousElementSibling)!=null?x:O.__shady_native_previousElementSibling)!=null?e:O.__shady_previousElementSibling)!=null?l:null};
uV7=function(O){var x,e,l;return new Set([].concat(_.Kx((x=O.children)!=null?x:[]),_.Kx((e=O.__shady_native_children)!=null?e:[]),_.Kx((l=O.__shady_children)!=null?l:[])))};
Yji=function(O){var x,e,l;return new Set([].concat(_.Kx((x=O.childNodes)!=null?x:[]),_.Kx((e=O.__shady_native_childNodes)!=null?e:[]),_.Kx((l=O.__shady_childNodes)!=null?l:[])))};
BeL=function(O){if(!O)return null;var x=_.YU(O);if(!x){var e;return(e=Node.prototype.getRootNode)==null?void 0:e.call(O)}x=x.toUpperCase();for(O=WTr(O);O&&O.tagName!==x;)O=WTr(O);return O?_.vR(O):null};
vvL=function(O){for(;O&&!(O instanceof HTMLElement);)O=rHL(O);return O};
f_r=function(O){var x=vvL(O);return O===x?_.YU(O):x?BR(x):null};
JH7=function(O){return(O=vvL(O))?BR(O):null};
wfW=function(O){if(O instanceof Comment)return!1;if(O instanceof Text){var x,e;if(((e=(x=O.textContent)==null?void 0:x.trim())!=null?e:"")==="")return!1}return!0};
JU=function(O,x,e){var l=x(O);for(e=e===void 0?JH7(O):e;l&&(f_r(l)!==e||!wfW(l));)O=l,l=x(O);return l};
Sjw=function(O,x,e){if(!x)return null;O=JH7(O);return f_r(x)===O&&wfW(x)?x:JU(x,e,O)};
jbW=function(O){return JU(O,z$L,_.YU(O))};
NeW=function(O){return JU(O,der)};
gv8=function(O){return JU(O,HNi)};
$ew=function(O){return JU(O,nvW)};
iNr=function(O){return JU(O,KT$)};
OBs=function(O){return Sjw(O,O.firstChild||O.__shady_native_firstChild||O.__shady_firstChild||null,HNi)};
xrV=function(O){var x,e,l;var C=(l=(e=(x=O.firstElementChild)!=null?x:O.__shady_native_firstElementChild)!=null?e:O.__shady_firstElementChild)!=null?l:null;return Sjw(O,C,der)};
eGr=function(O){var x,e,l;var C=(l=(e=(x=O.lastChild)!=null?x:O.__shady_native_lastChild)!=null?e:O.__shady_lastChild)!=null?l:null;return Sjw(O,C,KT$)};
lxN=function(O){var x,e,l;var C=(l=(e=(x=O.lastElementChild)!=null?x:O.__shady_native_lastElementChild)!=null?e:O.__shady_lastElementChild)!=null?l:null;return Sjw(O,C,nvW)};
Cps=function(O){var x=JH7(O);return Array.from(Yji(O)).filter(function(e){return f_r(e)===x})};
QB7=function(O){var x=BR(O);return Array.from(uV7(O)).filter(function(e){return _.YU(e)===x})};
_.wO=function(O,x,e){if(O instanceof HTMLElement&&_.YU(O)===e){var l=Array.from(O.classList).indexOf("style-scope");if(l===-1)O.classList.add("style-scope"),O.classList.add(x);else if(!(l+1>=O.classList.length)){l=O.classList[l+1];var C,Q;O==null||(C=O.classList)==null||(Q=C.replace)==null||Q.call(C,l,x)}}if(O instanceof HTMLElement||O instanceof DocumentFragment)for(C=_.T(uV7(O)),Q=C.next();!Q.done;Q=C.next())_.wO(Q.value,x,e);return O};
Sx=function(O,x){if(O instanceof HTMLElement&&_.YU(O)===x){var e=Array.from(O.classList).indexOf("style-scope");e===-1||e+1>=O.classList.length||O.classList.remove("style-scope",O.classList[e+1])}if(O instanceof HTMLElement||O instanceof DocumentFragment){e=_.T(O.children);for(var l=e.next();!l.done;l=e.next())Sx(l.value,x)}return O};
_.bBr=function(O,x){return f3(O).prototype.appendChild.call(O,x)};
TIr=function(O,x){if(O===x)return!0;O=Yji(O);return Array.from(O).some(function(e){return TIr(e,x)})};
_.$U=function(O,x){if(O instanceof gO)return O;(x==null?0:x.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(O,"ownerDocument")&&Object.defineProperty(O,"ownerDocument",{get:function(){return window.document}});
return new gO(O)};
ki8=function(){var O=gO.prototype,x=[].concat(_.Kx(LM8?[]:["getRootNode"]),["setAttribute","removeAttribute"]);x=_.T(x);for(var e=x.next(),l={};!e.done;l={method$jscomp$53:void 0},e=x.next())l.method$jscomp$53=e.value,O[l.method$jscomp$53]=function(C){return function(){return this.host[C.method$jscomp$53].apply(this.host,arguments)}}(l)};
MHi=function(){var O=gO.prototype,x=[].concat(_.Kx(LM8?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Kx(AbL?[]:["querySelector","querySelectorAll"]));x=_.T(x);for(var e=x.next(),l={};!e.done;l={method$jscomp$54:void 0},e=x.next())l.method$jscomp$54=e.value,O[l.method$jscomp$54]=function(C){return function(){return this.root[C.method$jscomp$54].apply(this.root,arguments)}}(l)};
FM8=function(){var O=gO.prototype,x=[].concat(_.Kx(Dri?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Kx(Gis?[]:["parentNode"]));x=_.T(x);for(var e=x.next(),l={};!e.done;l={prop$jscomp$67:void 0},e=x.next())l.prop$jscomp$67=e.value,Object.defineProperty(O,l.prop$jscomp$67,{get:function(C){return function(){return this.host[C.prop$jscomp$67]}}(l),
configurable:!0})};
yb8=function(){var O=gO.prototype,x=["activeElement"].concat(_.Kx(Dri?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Kx(XCL?[]:["children"]),_.Kx(o2N?[]:["lastChild"]));x=_.T(x);for(var e=x.next(),l={};!e.done;l={prop$jscomp$68:void 0},e=x.next())l.prop$jscomp$68=e.value,Object.defineProperty(O,l.prop$jscomp$68,{get:function(C){return function(){return this.root[C.prop$jscomp$68]}}(l),
configurable:!0})};
ZBN=function(){for(var O=gO.prototype,x=_.T(["innerHTML","textContent"]),e=x.next(),l={};!e.done;l={prop$jscomp$69:void 0},e=x.next())l.prop$jscomp$69=e.value,Object.defineProperty(O,l.prop$jscomp$69,{get:function(C){return function(){return this.root[C.prop$jscomp$69]}}(l),
set:function(C){return function(Q){this.root[C.prop$jscomp$69]=Q}}(l),
configurable:!0})};
E2w=function(O){var x=gO.prototype;O=_.T(Object.entries(O));for(var e=O.next(),l={};!e.done;l={fn$jscomp$403:void 0},e=O.next()){var C=_.T(e.value);e=C.next().value;C=C.next().value;l.fn$jscomp$403=C;x[e]=function(Q){return function(){return Q.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.Kx(arguments)))}}(l)}};
quN=function(){for(var O=gO.prototype,x=_.T(Object.entries(tHr)),e=x.next(),l={};!e.done;l={fn$jscomp$404:void 0},e=x.next()){var C=_.T(e.value);e=C.next().value;C=C.next().value;l.fn$jscomp$404=C;Object.defineProperty(O,e,{get:function(Q){return function(){return Q.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.Kx(arguments)))}}(l),
configurable:!0})}};
_.iK=function(O){return O instanceof Ppn||O instanceof Document?O:new Ppn(O)};
cbi=function(){for(var O=Ppn.prototype,x=_.T("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),e=x.next(),l={};!e.done;l={method$jscomp$55:void 0},e=x.next())l.method$jscomp$55=e.value,O[l.method$jscomp$55]=function(C){return function(){return HTMLElement.prototype[C.method$jscomp$55].call.apply(HTMLElement.prototype[C.method$jscomp$55],[this.node].concat(_.Kx(arguments)))}}(l)};
IxW=function(){for(var O=Ppn.prototype,x=_.T("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),e=x.next(),l={};!e.done;l={prop$jscomp$70:void 0},e=x.next())l.prop$jscomp$70=e.value,Object.defineProperty(O,l.prop$jscomp$70,{get:function(C){return function(){var Q;return(Q=this.node["__shady_native_"+C.prop$jscomp$70])!=null?Q:this.node[C.prop$jscomp$70]}}(l),
configurable:!0})};
_.Ow=function(O,x,e){e===void 0&&(e=!O.classList.contains(x));e?O.classList.add(x):O.classList.remove(x)};
_.xX=function(O,x,e){e===void 0&&(e=!O.hasAttribute(x));if(x==="class")throw Error("mg");e?_.iK(O).setAttribute(x,""):_.iK(O).removeAttribute(x)};
VHr=function(O){return(O.localName!=="slot"?[]:(0,_.eU)(O).assignedNodes({flatten:!0})).filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
_.pCr=function(O){return(O=_.$U(O).querySelector("slot"))&&O.localName==="slot"?VHr(O):[]};
_.lH=function(O,x){window.ShadyCSS&&window.ShadyCSS.styleSubtree(O,x)};
Cs=function(O,x){var e=x.bind(O);return function(l){e(l,l.detail)}};
_.Qa=function(O,x){var e=RGw.get(O);e||(e=new WeakMap,RGw.set(O,e));if(e.has(x))return e.get(x);if(_.t("web_fi_listen_disable_bound_fn_helper")){var l=x.bind(O);O=function(C){l(C,C==null?void 0:C.detail)}}else O=Cs(O,x);
e.set(x,O);return O};
mrN=function(O,x){Ur8(O);O.created[axN].push(x)};
Ur8=function(O){if(!O.created||!O.created[axN]){var x=O.created,e=x?[x]:[];O.created=function(){for(var l=_.T(e),C=l.next();!C.done;C=l.next())C.value.apply(this)};
O.created[axN]=e}};
sBr=function(O){return function(){var x=_.vw.apply(0,arguments);return function(e,l,C){O.apply(null,_.Kx(x))(e,l,C)}}};
WMi=function(){return function(){var O=_.vw.apply(0,arguments);return function(x,e,l){MW8.apply(null,_.Kx(O))(x,e,l)}}};
_.V=function(O){return WMi()(O)};
_.p=function(){return sBr(XSr).apply(null,_.Kx(_.vw.apply(0,arguments)))};
_.bH=function(O){return _.t("pbcm_fi_listen_decorators")?hG8(O):sBr(G3m)(O)};
hG8=function(O){return function(x,e){mrN(x,function(){var l=this[e],C=_.t("web_fi_listen_disable_bound_fn_helper")?function(Q){l(Q,Q.detail)}.bind(this):Cs(this,l);
zGi.has(O)?vD(this.hostElement,O,C):this.hostElement.addEventListener(O,C)})}};
_.T1=function(){return sBr(Fni).apply(null,_.Kx(_.vw.apply(0,arguments)))};
_.R=function(O){O=O===void 0?{}:O;return sBr(Dpr)(O)};
_.Ls=function(O){if(O.hostElement&&O!==O.hostElement){var x=_.G0(O.hostElement);x=O.renderIdom?x:x.shadowRoot}x||(O=O.root,x=O instanceof Node?_.G0(O):null);return x};
_.kX=function(O){return rb$?HB8(O):function(x,e){Object.defineProperty(x,e,{get:function(){var l;return(l=_.Ls(this))==null?void 0:l.querySelector(O)},
enumerable:!0,configurable:!0})}};
HB8=function(O){return function(x,e){Object.defineProperty(x,e,{get:function(){var l,C=(l=_.$U(this.hostElement))==null?void 0:l.querySelector(O);if(C)return C;var Q;return(Q=_.Ls(this))==null?void 0:Q.querySelector(O)},
enumerable:!0,configurable:!0})}};
_.AY=function(O){return rb$?KM8(O):function(x,e){Object.defineProperty(x,e,{get:function(){var l;return(l=_.Ls(this))==null?void 0:l.querySelectorAll(O)},
enumerable:!0,configurable:!0})}};
KM8=function(O){return function(x,e){Object.defineProperty(x,e,{get:function(){var l,C=(l=_.$U(this.hostElement))==null?void 0:l.querySelectorAll(O);if(C==null?0:C.length)return C;var Q;return(Q=_.Ls(this))==null?void 0:Q.querySelectorAll(O)},
enumerable:!0,configurable:!0})}};
drs=function(O){return function(x){if(![_.GS,_.a].includes(Object.getPrototypeOf(x.prototype).constructor))throw Error("ng");lgr(Object.assign({},typeof O!=="string"?O:{is:O,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(x)}};
_.DC=function(){var O=O===void 0?{}:O;return function(x){if(![Fp,_.MQ].includes(Object.getPrototypeOf(x.prototype).constructor))throw Error("og");Cfn(Object.assign({},O,{disableInheritanceCheck:!0}))(x)}};
uAV=function(O,x){n28[O]!=null||(n28[O]=new Set);n28[O].add(x)};
_.G1=function(){var O=_.T1.apply(null,_.Kx(_.vw.apply(0,arguments)));return function(x,e){uAV(x.is,e);O(x,e)}};
oH=function(O,x,e){if(F9(O)&&!Yur.has(x)){x=x.replace(/^JSC\$[\d]+_/,"");x=x.replace(/\.\d+(\.|$)/g,function(Q,L){return".#"+L});
X9[O]!=null||(X9[O]={});var l,C;(l=X9[O])[C=x]!=null||(l[C]=new Set);X9[O][x].has(e)||(X9[O][x].add(e),_.uU("polymerPropertyAccessEvent",{componentName:O,propertyName:x,accessType:e}))}};
BIN=function(){return _.t("polymer_property_access_logging_debug")||_.t("polymer_enable_property_access_logging")};
F9=function(O){if(_.t("polymer_property_access_logging_debug"))return!0;if(!_.t("polymer_enable_property_access_logging"))return!1;v2m||(v2m=Date.now());return(mH(O)+v2m)%100<_.yF("polymer_property_access_logging_percent")};
fxr=function(O,x){return F9(x)&&O.hostElement.loggingStatus?new Proxy(O,{get:function(e,l,C){if(e.hostElement.loggingStatus.bypassProxyController)return e[l];e.hostElement.loggingStatus.isExternalGet=!0;var Q=e[l];e.hostElement.loggingStatus.isExternalGet=!1;if(Q instanceof Function)return function(){var L=_.vw.apply(0,arguments);try{return e.hostElement.loggingStatus.currentExternalCall=l,oH(x,l,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),Q.apply(this===C?e:this,L)}finally{e.hostElement.loggingStatus.currentExternalCall=
void 0}};
oH(x,l,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return Q},
set:function(e,l,C){if(e.hostElement.loggingStatus.bypassProxyController)return e[l]=C,!0;e.hostElement.loggingStatus.isRendererStamper?oH(x,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):e.hostElement.loggingStatus.isDeclarativeExternal||oH(x,l,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{e.hostElement.loggingStatus.currentExternalSet=l,e[l]=C}finally{e.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):O};
Jbr=function(O,x){O&&O.loggingStatus&&!O.loggingStatus.isDeclarativeExternal&&!O.loggingStatus.isExternalGet&&O.loggingStatus.currentExternalSet!==x&&oH(O.tagName.toLowerCase(),x,"PROPERTY_ACCESS_GET_INTERNAL")};
ya=function(O,x,e){O&&(e||O.loggingStatus&&!O.loggingStatus.isInitializing&&!O.loggingStatus.isDefiningPropertyAccessor&&O.loggingStatus.currentExternalSet!==x)&&oH(O.tagName.toLowerCase(),x,"PROPERTY_ACCESS_SET_INTERNAL")};
wCL=function(){return{_definePropertyAccessor:function(O,x){var e=this,l=e.hostElement.loggingStatus;l&&(l.isDefiningPropertyAccessor=!0);var C=e[O];C!==void 0&&(e.__data?e._setPendingProperty(O,C):(e.__dataProto!=null||(e.__dataProto={}),e.__dataProto[O]=C));l&&(l.isDefiningPropertyAccessor=!1);Object.defineProperty(this,O,{get:function(){Jbr(e.hostElement,O);return this.__data[O]},
set:function(Q){x||this._setPendingProperty(O,Q,!0)&&this._invalidateProperties()}})},
created:function(){var O=this._setPendingProperty.bind(this);this._setPendingProperty=function(x,e,l){ya(this.hostElement,x);return O.apply(this,[x,e,l])}}}};
Sur=function(O){BIN()&&_.V(ZC.prototype)(O.prototype,"__templateBindingLoggingBehavior")};
jBL=function(O,x){if(x.resolvedFactories.length!==O.resolvedFactories.length)return!0;x=_.T(x.resolvedFactories.entries());for(var e=x.next();!e.done;e=x.next()){var l=_.T(e.value);e=l.next().value;l=l.next().value;if(l.providerClass){if(l.providerClass!==O.resolvedFactories[e].providerClass)return!0}else if(l.providerValue){if(l.providerValue!==O.resolvedFactories[e].providerValue)return!0}else if(l.factory!==O.resolvedFactories[e].factory)return!0}return!1};
NIN=function(O,x){O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,e.constructor===Array)NIN(e,x);else{var l=x;l.has(e)||(e.inject&&l.add(e),e.behaviors&&NIN(e.behaviors,l))}};
Ew=function(O,x){var e=O[x];O[x]=function(){var l=_.vw.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(e)return e.apply(this,l)}};
OCs=function(){_.tY.Class=function(e,l){e=g2N(e,l);Ew(e.prototype,"created");return e};
Ew(qQ.prototype,"_initializeProperties");Ew(_.PZ.prototype,"_initializeProperties");if($rs)Ew(iBL,"created");else{var O=function(){Ew(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))O();else{var x=customElements.define;customElements.define=function(e,l,C){x.call(customElements,e,l,C);e==="tp-yt-iron-list"&&(O(),customElements.define=x)}}}};
egn=function(O,x){O.prototype.behaviors=O.prototype.behaviors||[];O.prototype.behaviors.unshift(xVL.InjectBehavior);O.prototype.provide=x};
_.Va=function(O){return function(x){if(!O.disableElementRegistration){O.noInjection||egn(x,O.providers);var e=x.prototype;e.__templateHelpers||MW8(cZ.prototype)(e,"__templateHelpers");e=O.is;lh7||(lh7=Date.now());(mH(e)+lh7)%100<_.yF("polymer_log_prop_change_observer_percent")&&MW8(IH.prototype)(x.prototype,"__propertyObserverObserver");x.prototype.behaviors=x.prototype.behaviors||[];x.prototype.behaviors.unshift(_.Cqr.YtHostElementBehavior);Sur(x);drs({is:O.is,notifyObserversOnUndefined:O.notifyObserversOnUndefined!==
!1,fastInit:O.fastInit,template:O.template,disableEnforceFastDefaultValuesCheck:!0})(x)}}};
_.H=function(O){return _.Va({is:O.is,template:O.template,disableElementRegistration:O.disableElementRegistration,cssBuildOptOut:O.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
T98=function(O,x){if(QMw){O=new O;for(var e=_.T(Object.getOwnPropertyNames(O)),l=e.next();!l.done;l=e.next())l=l.value,x[l]=O[l];for(e=x;e&&e!==Object.prototype;e=Object.getPrototypeOf(e)){l=_.T(Object.getOwnPropertyNames(e));for(var C=l.next();!C.done;C=l.next())C=C.value,O.hasOwnProperty(C)||Object.defineProperty(O,C,bC$(x,C))}}else O.apply(x)};
bC$=function(O,x){return{get:function(){var e=O[x];return e instanceof Function?e.bind(O):e},
set:function(e){O[x]=e}}};
kbV=function(O,x){for(var e=O._noAccessors,l=_.T(Object.getOwnPropertyNames(O)),C=l.next();!C.done;C=l.next())if(C=C.value,!LDi.has(C))if(e)x[C]=O[C];else{var Q=Object.getOwnPropertyDescriptor(O,C);Q&&(Q.configurable=!0,Object.defineProperty(x,C,Q))}};
ACw=function(O,x,e){return function(l){if(e){var C=e();l.model=C}if(O[x])O[x](l,l.detail)}};
ps=function(O){var x=[];if(typeof O==="string")O.length>0&&x.push.apply(x,_.Kx(O.split(".")));else{O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,typeof e==="string"?x.push.apply(x,_.Kx(e.split("."))):x.push(e)}return x};
MXL=function(O,x){if(x[x.length-1]!=="*"&&x[x.length-1]!=="splices"){for(var e=0;e<x.length;e++){if(!O)return;O=O[x[e]]}return O}};
DV$=function(O,x){if(O.length>x.length)return!1;for(var e=0;e<O.length;e++)if(O[e]!==x[e])return!1;return!0};
FDr=function(O,x,e){if(x.type==="compute"){var l=x.getter.bind(e);var C=x.args}else l=function(){return e[x.method.methodName].apply(e,_.Kx(_.vw.apply(0,arguments)))},C=x.method.args;
GbL(O,x.propertyKey,l,C,x.value)};
oB7=function(O,x){if(x.readOnly){var e=Object.getOwnPropertyDescriptor(O.model,x.propertyKey);Object.defineProperty(O.model,x.propertyKey,{get:e.get,set:function(){}});
O.model[X4i(x.propertyKey)]=e.set}};
yCr=function(O,x,e){if(e){var l=x.propertyKey,C=x.selector;x=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Kx(x.selectorArgs.map(function(Q){return{type:"path",path:Q}})));
GbL(O,l,function(Q){var L=_.vw.apply(1,arguments);return C.apply(null,[e.getState()].concat(_.Kx(L)))},x)}};
EBm=function(O,x,e){var l=_.Qo(x.propertyKey)+"-changed";ZC8(O,function(C){var Q={value:C.value,queueProperty:!0};C.path.split(".").length>1&&(Q.path=C.path);e.dispatchEvent(new CustomEvent(l,{detail:Q}))},[{type:"wildcard",
path:x.propertyKey}])};
tXw=function(O,x,e){ZC8(O,function(){e[x.method.methodName].apply(e,_.Kx(_.vw.apply(0,arguments)))},x.method.args)};
X4i=function(O){return"_set"+(O.charAt(0).toUpperCase()+O.slice(1))};
qXL=function(){var O,x=BL(function(e){O=e},!1);
return[O,x]};
p4L=function(O){O=O.trim().replace(Pqr,",").replace(cCL,"$1");var x=O[0];x==="-"&&(x=O[1]);if(x>="0"&&x<="9")return{type:"literal",value:Number(O)};if(x==="'"||x==='"')return{type:"literal",value:O.slice(1,-1)};if(x=O.match(IhL)){x=x[1];var e=VXW[x];if(e)return{type:e,path:O.slice(0,-(x.length+1))}}return{type:"path",path:O}};
mVL=function(O){var x=O.match(Rgw);if(x)return O={methodName:x[1],args:UVm},x[2].trim()&&(x=x[2].replace(ahW,"&comma;").split(","),O.args=x.map(p4L)),O};
sMW=function(O,x,e,l){l=l===void 0?!1:l;x=_.Qo(x);var C=WD;C&&(e=C(e,x,"attribute",O));RH(O,e,x,l)};
RH=function(O,x,e,l){x=WDm(x,l===void 0?!1:l);x===void 0?O.removeAttribute(e):O.setAttribute(e,x)};
WDm=function(O,x){switch(typeof O){case "object":case "function":if(O instanceof Date)return O.toString();if(O){if((x===void 0?0:x)&&!_.t("polymer_reflect_objects_as_boolean_killswitch"))return O?"":void 0;x=window.trustedTypes?window.trustedTypes.isHTML(O)||window.trustedTypes.isScript(O)||window.trustedTypes.isScriptURL(O):void 0;if(x)return O;try{return JSON.stringify(O)}catch(e){_.ft(Error("Kg`"+O))}}break;case "boolean":return O?"":void 0;default:return O!==null&&O!==void 0?O.toString():void 0}};
hgL=function(O){if(O===void 0)throw Error("Lg");return O};
dVL=function(O,x,e,l){var C=zgW(l);if(C.length){l=e;var Q="property";rCL.test(e)?Q="attribute":e[e.length-1]==="$"&&(e=e.slice(0,-1),Q="attribute");var L=HCW(C);L&&Q==="attribute"&&(e==="class"&&O.hasAttribute("class")&&(L+=" "+O.getAttribute(e)),RH(O,L,e));Q==="attribute"&&l==="disable-upgrade$"&&O.setAttribute("disable-upgrade","");O.localName==="input"&&l==="value"&&O.setAttribute("value","");O.removeAttribute(l);Q==="property"&&(e=_.bh(e));x=hgL(x);KDn(x,Q,e,C);return!0}return e.slice(0,3)===
"on-"?(O.removeAttribute(e),(Q=x).events!=null||(Q.events=[]),x.events.push({name:e.slice(3),value:l}),!0):e==="id"?(x.id=l,!0):!1};
zgW=function(O){for(var x=[],e=0,l;(l=nBm.exec(O))!==null;){l.index>e&&x.push({type:"literal",value:O.slice(e,l.index)});var C=l[1][0];e=!!l[2];l=l[3].trim();if(C==="{")throw Error("Mg");(C=mVL(l))?x.push({type:"method",negate:e,signature:C}):x.push({type:"path",negate:e,path:l});e=nBm.lastIndex}e&&e<O.length&&(O=O.substring(e))&&x.push({type:"literal",value:O});return x};
HCW=function(O){for(var x="",e=0;e<O.length;e++){var l=O[e];l.type==="literal"&&(x+=l.value)}return x};
KDn=function(O,x,e,l){O.bindings!=null||(O.bindings=[]);O.bindings.push({kind:x,target:e,parts:l})};
fhi=function(O,x,e){var l=!1;if(O.localName==="template"){l=e;var C=x.stripWhitespace;C=uqV(O,C===void 0?!1:C);var Q=O.content.ownerDocument.createDocumentFragment();C.content=Q;Q.appendChild(O.content);l&&(l.templateInfo=C);l=!0}else O.localName==="slot"&&(x.hasInsertionPoint=!0);if(O.firstChild&&(C=e,O.localName!=="script"&&O.localName!=="style")){Q=0;for(var L=O.firstChild;L;){var k=L;if(k.localName==="template"){var M=k.getAttribute("is");if((L=M==="dom-if")||M==="dom-repeat"){k.removeAttribute("is");
M=k.ownerDocument.createElement("ps-"+M);k.parentNode.replaceChild(M,k);M.appendChild(k);var G=Array.from(k.attributes);G=_.T(G);for(var X=G.next();!X.done;X=G.next())X=X.value,L?YXs.has(X.name)&&RH(M,X.value,X.name):B9r.has(X.name)?RH(M,X.value,X.name):vBW.has(X.name),k.removeAttribute(X.name);L=M}else L=k}if(L.nodeType===Node.TEXT_NODE){k=void 0;M=O;for(G=L;((k=G.nextSibling)==null?void 0:k.nodeType)===Node.TEXT_NODE;)X=void 0,(X=G).textContent!=null||(X.textContent=""),G.nextSibling.textContent&&
(G.textContent+=G.nextSibling.textContent),M.removeChild(G.nextSibling);if(x.stripWhitespace&&L.textContent&&!L.textContent.trim()){O.removeChild(L);L=L.nextSibling;continue}}fhi(L,x,{parentIndex:Q,parentInfo:C});L.parentNode&&Q++;L=L.nextSibling}}var y;if((y=O.hasAttributes)==null?0:y.call(O)){y=e=hgL(e);C=!1;Q=Array.from(O.attributes);Q=_.T(Q);for(k=Q.next();!k.done;k=Q.next())k=k.value,C=dVL(O,y,k.name,k.value)||C;l=C||l}O.nodeType===Node.TEXT_NODE&&(y=zgW(O.textContent),y.length&&(O.textContent=
HCW(y)||" ",e=hgL(e),KDn(e,"text","textContent",y),l=!0));e&&l&&(e.infoIndex=x.nodeInfoList.push(e)-1)};
uqV=function(O,x){x={nodeInfoList:[],stripWhitespace:(x===void 0?!1:x)||O.hasAttribute("strip-whitespace")};fhi(O.content,x);return x};
JCr=function(O){Object.assign(O,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
SX8=function(O,x,e){x.signalCache!=null||(x.signalCache={});var l=x.signalCache[e];if(!l){var C=e.split(".");l=!w47(O,C[0]);if(C.length>1&&l){var Q=O.getPathMutationSignal(C);l=function(){var L=J6(O.owner,function(){return O.getWithPath([C[0]])}),k,M=(k=Q())==null?void 0:k.value;
return{rootWasDefined:L!==void 0,value:M}}}else l=function(){var L=O.getWithPath(C);
return{rootWasDefined:L!==void 0,value:L}};
x.signalCache[e]=l}return l()};
N9m=function(O,x,e,l,C){x=x.parts.map(function(L,k){if(L.type==="literal"){e.partWasDefined!=null||(e.partWasDefined=[]);var M;(M=e.partWasDefined)[k]||(M[k]=L.value!==void 0);return L.value}var G;if(L.type==="method"){var X,y=(X=(G=e.partWasDefined)==null?void 0:G[k])!=null?X:!1;y||(y=L.signature.args.every(function(P){return P.type==="literal"}));
var Z=!1,E=!0;G=L.signature.args.map(function(P){if(P.type==="literal")return P.value;if(P.type!=="path")throw Error("Ng`"+P.type);var U=SX8(O,e,P.path);P=U.value;U=U.rootWasDefined;Z||(Z=U);E&&(E=U);return P});
y||(y=C===1?E:Z);e.partWasDefined!=null||(e.partWasDefined={});e.partWasDefined[k]=y;if(!y)return;G=(k=SX8(O,e,L.signature.methodName).value)&&typeof k==="function"?k.apply(l,G):void 0}else X=SX8(O,e,L.path),G=X.value,e.partWasDefined!=null||(e.partWasDefined={}),(y=e.partWasDefined)[k]||(y[k]=G!==void 0||X.rootWasDefined);L.negate&&(G=!G);return G});
if(x.length===1){var Q;return((Q=e.partWasDefined)==null?0:Q[0])?x[0]:jMr}return x.join("")};
gB7=function(O){return typeof O==="object"&&!!O&&"notifyPath"in O&&"canNotifyPath"in O};
$Vs=function(O){return typeof O==="object"&&!!O&&"notifyPath"in O};
iC7=function(O){return"polymerController"in O};
Oir=function(O,x){x=""+ps(x)[0];if(gB7(O))return O.canNotifyPath(x);if(iC7(O)&&gB7(O.polymerController))return O.polymerController.canNotifyPath(x);if($Vs(O)){var e;return!((e=O.properties)==null||!e[x])}if(iC7(O)&&$Vs(O.polymerController)){var l;return!((l=O.polymerController.properties)==null||!l[x])}return!1};
xmW=function(O,x,e){gB7(O)||$Vs(O)?O.notifyPath(x,e):iC7(O)&&(gB7(O.polymerController)||$Vs(O.polymerController))&&O.polymerController.notifyPath(x,e)};
lbL=function(O,x,e){if(e!==jMr){O.kind==="attribute"||O.target!=="textContent"&&(O.target!=="value"||x.localName!=="input"&&x.localName!=="textarea")||(e=e===void 0?"":e);var l,C=(l=ekV.Polymer)==null?void 0:l.sanitizeDOMValue;C&&(e=C(e,O.target,O.kind,x));if(O.kind==="attribute"){O=O.target;if(O==="class"||O==="name"||O==="slot")x=(0,_.eU)(x);RH(x,e,O)}else if(O=O.target,e!==x[O]||typeof e==="object")x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!0,oH(x.localName,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
x[O]=e,x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!1)}};
CAr=function(O,x,e,l){var C=x.parts[0];if(x.parts.length!==1||C.type!=="path"||!Oir(e,x.target))return!1;var Q=_.T(C.path.split(".")),L=Q.next().value,k=bo(Q);if(w47(O,L))return!1;l.signalCache!=null||(l.signalCache={});Q=l.signalCache[C.path];var M;Q=(M=Q)==null?void 0:M().value;if((Q==null?void 0:Q.path)!==void 0){l=ps(Q.path);var G=ps(C.path);l=[x.target].concat(_.Kx(l.slice(G.length-1)));xmW(e,l,C.negate?!Q.value:Q.value);return!0}var X=Uw(O,L);var y=X.getChangeRecordSignal(k),Z=!1;Q=function(){if(!Z){var P=
J6(O.owner,function(){return X.getWithPath([])});
Z||(Z=P!==void 0)}return{value:y(),rootWasDefined:Z}};
l.signalCache[C.path]=Q;l.partWasDefined!=null||(l.partWasDefined={});Q=Q();(G=l.partWasDefined)[0]||(G[0]=Q.rootWasDefined);var E=J6(O.owner,function(){return X.getWithPath(k)});
l.partWasDefined[0]&&J6(O.owner,function(){return void lbL(x,e,C.negate?!E:E)});
return!0};
Qkr=function(O,x,e,l,C,Q){if(!CAr(O,x,e,l)){var L=N9m(O,x,l,C,Q);J6(O.owner,function(){return void lbL(x,e,L)})}};
biw=function(O,x,e,l,C,Q){e=_.T(e);for(var L=e.next(),k={};!L.done;k={infoIndex:void 0},L=e.next()){L=L.value;var M=L.bindings;k.infoIndex=L.infoIndex;L=L.parentInfo;if(M){M=_.T(M);for(var G=M.next(),X={};!G.done;X={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},G=M.next()){X.b$jscomp$256=G.value;if(k.infoIndex===void 0)throw Error("Og");X.bindingCtx$jscomp$4={};O.effect(function(y,Z){return function(){C&&!C()||Qkr(O,y.b$jscomp$256,x[Z.infoIndex],y.bindingCtx$jscomp$4,l,Q)}}(X,k))}}L&&biw(O,x,[L],
l,C,Q)}};
TEW=function(O,x){O=(x.parentInfo?TEW(O,x.parentInfo):O).firstChild;for(var e=0;O;O=O.nextSibling)if(x.parentIndex===e++)return O;throw Error("Pg");};
kMs=function(O,x,e,l){O=document.importNode(O.content,!0);O.__noInsertionPoint=!(l==null?0:l.hasInsertionPoint);for(var C=Array(x.length),Q={},L=0;L<x.length;L++){var k=x[L],M=TEW(O,k);C[L]=M;k.id&&(Q[k.id]=M);if(k.templateInfo){var G=M.parentElement;G&&(G.templateInfo=k.templateInfo,G.parentSignalProxy=e,G.eventListenerHost=l.eventListenerHost,G.stampingEnabled=l.enabledSignal)}G=void 0;if((G=k.events)==null?0:G.length)for(G=0;G<k.events.length;G++){var X=k.events[G];LcV(l.eventListenerHost,M,X.name,
X.value,l.getModel)}}biw(e,C,x,l.thisCtx,l.enabledSignal,l.methodInvocationRequirement);return{root:O,nodes:C,nodesById:Q}};
MzL=function(O,x){O=O();var e;(e=AQL.ShadyCSS)==null||e.prepareTemplate(O,x);x=uqV(O);return{template:O,nodeInfoList:x.nodeInfoList,hasInsertionPoint:x.hasInsertionPoint}};
Fcr=function(){Dmm=!1;for(var O=aH.length,x=0;x<O;x++){var e=aH[x];if(e)try{e()}catch(l){Promise.resolve().then(function(){throw l;})}}aH.splice(0,O);
GMV+=O};
Zir=function(O){Dmm||(Dmm=!0,X0V.textContent=(oHi++).toString());aH.push(O);return yQn++};
_.WZ=function(O,x,e){mS++;O=x?new EHr(mS,O,x,e):new tzV(mS,O);sw.set(mS,O);return mS};
qyN=function(O){(O=sw.get(O))&&O.cancel()};
cQr=function(O,x){O=PAs.get(O);return O?(x=O.get(x))?x:null:null};
_.hY=function(O,x,e,l){var C=cQr(O,x);if(!C){C=new IbV;var Q=PAs.get(O);Q||(Q=new Map,PAs.set(O,Q));Q.set(x,C)}O=e.bind(O);C.run(O,l,void 0)};
_.VzL=function(O,x){var e;(e=cQr(O,x))==null||e.cancel()};
p0r=function(O){var x;(x=cQr(O,"doRender"))==null||x.flush()};
z1=function(O){var x;return(x=O.hostElement)!=null?x:O};
Rki=function(O){var x=O.indexOf(".");return x===-1?O:O.slice(0,x)};
Umr=function(O,x,e,l,C,Q){Q=(C=(l=Q?Rki(x):x)?x:null)?O.get(C):O.__data[x];C&&Q===void 0&&(Q=e[x]);_.wr(O.hostElement,wgs(l)+"-changed",{value:Q,queueProperty:!0,path:C!=null?C:void 0},{bubbles:!1,composed:!1})};
abL=function(O,x){O.__isReflecting=!0;sMW(O.hostElement,x,O.__data[x]);O.__isReflecting=!1};
mmw=function(O){if(O._onIronRequestResizeNotifications){var x=O._onIronRequestResizeNotifications.bind(O);O._onIronRequestResizeNotifications=function(e){_.uK(e)!==O.hostElement&&x(e)}}O._ariaActiveAttributeChanged&&(O._ariaActiveAttributeChanged=O._ariaActiveAttributeChanged.bind(O.hostElement));
O._activeChanged&&(O._activeChanged=function(e){O.toggles?RH(O.hostElement,e?"true":"false",O.ariaActiveAttribute):O.hostElement.removeAttribute(O.ariaActiveAttribute);O._changedButtonState()});
O._asyncClick&&(O._asyncClick=function(){_.WZ(function(){O.hostElement.click()},1)});
!O.keyEventTarget||O.keyEventTarget instanceof EventTarget||(O.keyEventTarget=z1(O.keyEventTarget));O._disabledChanged&&(O._disabledChanged=O._disabledChanged.bind(O.hostElement));O._observeItems&&(O._observeItems=function(e){var l=z1(e);return _.G0(l).observeNodes(function(C){O._updateItems();O._updateSelected();_.wr(l,"iron-items-changed",C,{bubbles:!1,cancelable:!1})})});
O._updateItems&&O._updateItems===_.rq._updateItems&&(O._updateItems=function(){var e=_.G0(O.hostElement).queryDistributedElements(O.selectable||"*");e=Array.prototype.filter.call(e,O._bindFilterItem);O._setItems(e)});
O._computeKeyboardClass&&(O._computeKeyboardClass=function(e){_.Ow(O.hostElement,"keyboard-focus",e)});
O.ensureRipple&&(O.ensureRipple=function(e){if(O.hasRipple&&!O.hasRipple()){if(!O._createRipple)return;O._ripple=O._createRipple();O._ripple.noink=O.noink;var l=O._rippleContainer||O.hostElement;l&&_.$U(l).appendChild(O._ripple)}var C;if(e&&((C=O._ripple)==null?0:C.uiDownAction)){l=_.$U(O._rippleContainer||O.hostElement);var Q;C=(Q=e.composedPath())==null?void 0:Q[0];l.contains(C)&&O._ripple.uiDownAction(e)}});
O._updateMultiselectable&&(O._updateMultiselectable=function(e){e?O.hostElement.setAttribute("aria-multiselectable","true"):O.hostElement.removeAttribute("aria-multiselectable")})};
sk8=function(O,x,e){e=_.T(e);for(var l=e.next();!l.done;l=e.next())T98(l.value.constructor,O);T98(x.constructor,O)};
hkW=function(O,x){O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,e.type==="signal"){var l=e.propertyKey;if(x.hasOwnProperty(l)&&x[l]!=null&&e.attributeType===Object){a:{l=x[l].constructor;for(var C=_.T(Wc7),Q=C.next();!Q.done;Q=C.next())if(Q=Q.value,l===Q){l=Q;break a}l=Object}e.attributeType=l}}};
zkw=function(){};
rQw=function(O){var x;return(x=O.hostElement)!=null?x:O};
Hi8=function(){throw Error("Tg");};
Kcr=function(O,x){O.constructor.prototype.useSignals=!0;var e=new O.constructor;sk8(e,O,x.behaviors);hkW(x.reactiveSchemas,e);e={};for(var l=_.T(x.reactiveSchemas),C=l.next();!C.done;C=l.next())C=C.value,C.type==="signal"&&(e[C.propertyKey]=C.attributeType);var Q={copyPropertiesToProto:Hi8,didRegister:!1,typesForSignals:e},L=["disable-upgrade"].concat(_.Kx(x.observedAttributes)),k=function(M){HZ.call(this,O,x,Q,M)};
_.c(k,HZ);_.Dy.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return L}}});
Q.copyPropertiesToProto=function(){for(var M=0;M<x.behaviors.length;M++)kbV(x.behaviors[M],k.prototype);kbV(O,k.prototype)};
x.legacyOptimizations||Q.copyPropertiesToProto();k.prototype.is=O.is;return k};
dmr=function(O,x){if(Object.getPrototypeOf(x.prototype).constructor!==_.a)throw Error("Ug");x.prototype.is=O.is;return Kcr(x.prototype,O)};
nHr=function(O){return O.type==="compute"||O.type==="computeWithMethod"};
uy$=function(O){for(var x=O.reactiveSchemas.filter(nHr),e=new Map,l=new Map,C=new Map,Q=_.T(x),L=Q.next();!L.done;L=Q.next())L=L.value,e.set(L.propertyKey,L),l.set(L.propertyKey,[]),C.set(L.propertyKey,0);Q=0;x=_.T(x);for(L=x.next();!L.done;L=x.next()){L=L.value;for(var k=_.T(L.type==="computeWithMethod"?L.method.args:L.args),M=k.next();!M.done;M=k.next())M=M.value,M.type!=="literal"&&(M=M.path.split(".")[0],l.has(M)&&(l.get(M).push(L.propertyKey),C.set(L.propertyKey,C.get(L.propertyKey)+1),Q++))}L=
[].concat(_.Kx(l.keys())).filter(function(G){return C.get(G)===0});
for(x=[];L.length;)for(k=L.shift(),x.push(e.get(k)),k=_.T(l.get(k)),M=k.next();!M.done;M=k.next())M=M.value,C.set(M,C.get(M)-1),Q--,C.get(M)===0&&L.push(M);e=O.reactiveSchemas.filter(function(G){return!nHr(G)});
O.reactiveSchemas=[].concat(_.Kx(e),_.Kx(x))};
Yy$=function(O,x){if(x.properties)for(var e=_.T(Object.entries(x.properties)),l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;O.properties[l]=typeof C==="function"?{type:C}:C}x.observers&&O.observers.push.apply(O.observers,_.Kx(x.observers));x.disabledPolySiReactions&&O.disabledPolySiReactions.push.apply(O.disabledPolySiReactions,_.Kx(x.disabledPolySiReactions))};
BEr=function(O,x){for(var e=x.length-1;e>=0;e--){var l=x[e];Array.isArray(l)?BEr(O,l):O.indexOf(l)<0&&O.unshift(l)}};
vHr=function(O,x){O.reactiveSchemas=O.reactiveSchemas.filter(function(e){return e.type==="observe"&&x.includes(e.method.methodName)||nHr(e)&&x.includes(e.propertyKey)?!1:!0})};
JQn=function(O,x){var e=x.prototype,l,C,Q={is:O.is,reactiveSchemas:[],observedAttributes:[],behaviors:[xVL.InjectBehavior,cZ.prototype],disableElementRegistration:O.disableElementRegistration,provide:(l=O.providers)!=null?l:[],reactivityMode:O.reactivityMode,signalProperties:(C=e.signalProperties)!=null?C:[]};"template"in x?Q.templateGetter=function(){return x.template}:O.getTemplate&&(Q.templateGetter=O.getTemplate);
e.behaviors&&BEr(Q.behaviors,e.behaviors);fb8(Q,x);return Q};
fb8=function(O,x){for(var e=x.prototype,l={properties:{},observers:[],disabledPolySiReactions:[]},C=_.T(O.behaviors),Q=C.next();!Q.done;Q=C.next())Yy$(l,Q.value);Yy$(l,e);if(O.signalProperties)for(e=_.T(O.signalProperties),C=e.next();!C.done;C=e.next())delete l.properties[C.value];e=_.T(Object.entries(l.properties));for(C=e.next();!C.done;C=e.next()){Q=_.T(C.value);C=Q.next().value;Q=Q.next().value;var L=void 0;if((L=O.signalProperties)==null||!L.includes(C)){L=void 0;var k=O,M=Q.type;if(!M)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{M=Reflect.getMetadata("design:type",x,C);for(var G=_.T(w0r),X=G.next();!X.done;X=G.next())if(X=X.value,M===X){M=X;break a}M=Object}else M=String;Q.computed||Q.selector||(k.reactiveSchemas.push({type:"signal",propertyKey:C,value:Q.value,attributeType:M,readOnly:Q.readOnly}),k.observedAttributes.push(_.Qo(C)));Q.reflectToAttribute&&k.reactiveSchemas.push({type:"reflect",propertyKey:C});if(Q.computed){M=mVL(Q.computed);if(!M)throw Error("Vg");k.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:C,method:M,value:Q.value})}Q.observer&&k.reactiveSchemas.push({type:"observe",method:{methodName:Q.observer,args:[{type:"path",path:C}]}});Q.notify&&k.reactiveSchemas.push({type:"notify",propertyKey:C});Q.selector&&k.reactiveSchemas.push({type:"redux",propertyKey:C,selector:Q.selector,selectorArgs:(L=Q.selectorArgs)!=null?L:[]})}}Sy7&&uy$(O);x=_.T(l.observers);for(C=x.next();!C.done;C=x.next())e=O,C=C.value,(Q=mVL(C))?e.reactiveSchemas.push({type:"observe",method:Q}):console.log('Warning: unable to parse observe declaration: "'+
C+'"');vHr(O,l.disabledPolySiReactions)};
jkr=function(O,x){for(var e=0;e<x.length;e++){var l=x[e],C=void 0;(C=l).showHideApi!=null||(C.showHideApi={});C=void 0;!!O!==!((C=l.showHideApi)==null||!C.hideTemplateChildren)&&(l.nodeType===Node.TEXT_NODE?O?(l.showHideApi.polymerTextContent=l.textContent,l.textContent=""):(C=void 0,l.textContent=(C=l.showHideApi.polymerTextContent)!=null?C:null):l instanceof Element&&l.localName==="slot"?O?(l.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.eU)((0,_.eU)(l).parentNode).replaceChild(l.showHideApi.polymerReplaced,
l)):(C=l.showHideApi.polymerReplaced)&&(0,_.eU)((0,_.eU)(C).parentNode).replaceChild(l,C):l instanceof HTMLElement&&l.style&&(O?(l.showHideApi.polymerDisplay=l.style.display,l.style.display="none"):l.style.display=l.showHideApi.polymerDisplay));l.showHideApi.hideTemplateChildren=O;l.showHideChildren&&l.showHideChildren(O)}};
gHV=function(){if(!NE7){var O=document.createElement("style");O.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(O);NE7=!0}};
Ks=function(){return _.t("disable_hidden_dom_if_using_stamper")};
$mn=function(O,x){var e=_.dq().getState();return x?O.apply(null,[e].concat(_.Kx(x))):O(e)};
xts=function(){if(iir)return iir;var O=_.T(_.Iw(0,void 0,"MB1Hb")),x=O.next().value;O.next();var e=O.next().value;_.dq().subscribe(function(){OKV(e)});
return iir=x};
OKV=function(O){eKs||(eKs=!0,Promise.resolve().then(function(){O(function(x){return x+1});
eKs=!1}))};
_.dq=function(){return lYr.getAppStore()};
Cir=function(O,x){return lYr.getSelectFn()(O,x)};
_.ns=function(O){lYr.getDispatchFn()(O)};
QYs=function(O,x){var e={},l;for(l in O)e[l]=x(O[l],l);return e};
_.uH=function(O,x){return function(){var e;return(e=_.vL(O))!=null?e:x}};
_.YX=function(O,x){var e=Object.assign({},O),l;for(l in x)x.hasOwnProperty(l)&&(e[l]=_.uH(O[l],x[l]));return e};
bKi=function(O,x,e){O instanceof Element&&(e.debugName||(e.debugName="<"+O.tagName.toLowerCase()+(O.tagName.includes("-")?">":"."+O.className+">")),_.t("ytwiz_enable_debug_component_props")&&(O.debugProps||(O.debugProps=QYs(x,function(l){return function(){return l()}}))))};
LU7=function(O){var x;return TUw.value.traceAllComponents||((x=Ym.stack[Ym.stack.length-1])==null?void 0:x.name)!=="ytComponent"?VoL("ytComponent",{},O):O()};
_.K=function(O,x){var e=function(l){return LU7(function(C){var Q=ker={};var L;if(((L=e)==null?0:L.idomCompat)&&l.renderedFromIdom){var k;L=typeof e.idomCompat==="object"?(k=e)==null?void 0:k.idomCompat.callbacks:{};L=_.T(Ayi(l,L,e.debugName));k=L.next().value;L.next();L=L.next().value;var M=MB8(O,k);Q.privateValue=M;ker=void 0;bKi(M,k,e);Q={debugName:e.debugName};C&&Q&&Object.assign(C.attributes,Q);C=o_r(M);C=Array.isArray(C)?C[0]:C;C[IU]||(C[IU]={});C[IU].updateSignalsFromIdomProps=L;Dtm(k,M);return M}L=
QYs(l,GeW);k=MB8(O,L);Q.privateValue=k;ker=void 0;bKi(k,L,e);Q={debugName:e.debugName};C&&Q&&Object.assign(C.attributes,Q);Dtm(L,k);return k})};
e.debugName=x===void 0?"":x;return e};
MB8=function(O,x){O=O(x);return U0(O)};
FUN=function(O,x){O[x]||(O=new _.ry("IDOM interop setter undefined. Key:",x),_.BH(O))};
GeW=function(O,x){return x==="children"||x==="ref"||typeof O==="function"||O===void 0?O:function(){return _.vL(O)}};
Ayi=function(O,x,e){var l={},C={},Q={},L={},k;for(k in O){L={key$jscomp$952:L.key$jscomp$952};L.key$jscomp$952=k;var M=O[L.key$jscomp$952];if(L.key$jscomp$952==="children"||L.key$jscomp$952==="ref")l[L.key$jscomp$952]=M;else if(typeof M==="function")L.key$jscomp$952 in x||M.length>0?(Q[L.key$jscomp$952]=M,l[L.key$jscomp$952]=function(X){return function(){return Q[X.key$jscomp$952].apply(Q,_.Kx(_.vw.apply(0,arguments)))}}(L)):l[L.key$jscomp$952]=M;
else if(!(O[L.key$jscomp$952]===void 0&&L.key$jscomp$952 in x)){var G=_.T(_.Iw(O[L.key$jscomp$952],{debugName:L.key$jscomp$952+":cwis:"+e},"rvrjQe"));M=G.next().value;G=G.next().value;l[L.key$jscomp$952]=M;C[L.key$jscomp$952]=G}}return[l,C,function(X){var y={},Z;for(Z in X)y={key$jscomp$953:y.key$jscomp$953,val$jscomp$122:void 0},y.key$jscomp$953=Z,y.val$jscomp$122=X[y.key$jscomp$953],y.key$jscomp$953!=="children"&&y.key$jscomp$953!=="ref"&&(typeof y.val$jscomp$122==="function"?y.key$jscomp$953 in
x?Q[y.key$jscomp$953]=y.val$jscomp$122:y.val$jscomp$122.length>0&&(Q[y.key$jscomp$953]=y.val$jscomp$122,_.ft(new _.ry("Callback detected that was not set in the idomCompat callbacks map. Key:",y.key$jscomp$953))):y.key$jscomp$953 in x&&y.val$jscomp$122===void 0||(FUN(C,y.key$jscomp$953),mF(function(E){return function(){C[E.key$jscomp$953](E.val$jscomp$122)}}(y))))}]};
yyr=function(O,x,e){var l=i0r(O.prototype,Xpr,O.prototype.behaviors);l.prototype.is=x;l.prototype.localName=x;e&&oPN(l,e);return function(C){C&&(l.prototype.hostElement=C);var Q=new l;Q.root=Q;Q.hostElement=C;return Q}};
oPN=function(O,x){var e;Object.defineProperty(O.prototype,"_template",{get:function(){e===void 0&&(e=x());return e},
set:function(l){e=l},
configurable:!0,enumerable:!0})};
Pin=function(O,x,e,l){function C(){if(!E){for(var P=new Set,U=_.T(X),W=U.next();!W.done;W=U.next()){W=W.value;for(var z=_.T(Object.getOwnPropertyNames(W)),r=z.next();!r.done;r=z.next()){r=r.value;var f=void 0,u=(f=Object.getOwnPropertyDescriptor(W,r))==null?void 0:f.value;u&&u instanceof Function&&!BZ(r)&&(!k[r]||_.t("polymer_forward_method_killswitch"))&&P.add(r)}}U=_.T(Object.entries(Object.getOwnPropertyDescriptors(O.prototype)));for(W=U.next();!W.done;W=U.next())z=_.T(W.value),W=z.next().value,
z=z.next().value,z.value instanceof Function&&!BZ(W)&&P.add(W);E=P}return E}
ZKi(O,x,l==null?void 0:l.providers);Ols(O.prototype,O,!0);var Q=yyr(O,x,e),L,k=(L=O.prototype.properties)!=null?L:{},M,G,X=(G=(M=O.prototype.behaviors)==null?void 0:M.flat(Infinity))!=null?G:[];e=_.T(X);for(L=e.next();!L.done;L=e.next())k=Object.assign({},L.value.properties,k);var y=[].concat(_.Kx(EPm),_.Kx(Object.keys(k).map(function(P){return _.Qo(P)}))),Z=!1,E;
return{ctor:function(P,U){var W=Q(P),z,r;P=[].concat(_.Kx((z=l==null?void 0:l.allowedProps)!=null?z:[]),_.Kx((r=l==null?void 0:l.allowedPropsFromBehaviors)!=null?r:[]));W.allowedProps=P.length>0?P:void 0;z={};r=_.T(y);for(P=r.next();!P.done;P=r.next())P=P.value,z[P]=_.bh(P);W.__dataAttributes=z;var f=W.ready.bind(W);W.ready=function(){U.beforeReady();f();if(F9(x)&&!Z){var u=W.__templateInfo;if(u==null?0:u.hostProps){u=_.T(Object.keys(u.hostProps));for(var Y=u.next();!Y.done;Y=u.next())oH(x,Y.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Z=!0}};
W._overrideLegacyUndefined=!0;return W},
props:k,observedAttributes:y,getInitialMethods:C,getPropsToForwardBeforeRegister:function(){for(var P=[],U=new Set,W=_.T(Object.keys(k)),z=W.next();!z.done;z=W.next())z=z.value,P.push([z,k[z].readOnly]),U.add(z);W=C();z=_.T(Object.keys(Object.getOwnPropertyDescriptors(O.prototype)));for(var r=z.next();!r.done;r=z.next())r=r.value,!tB7(r)||W.has(r)||U.has(r)||(P.push([r,!1]),U.add(r));U=_.T(qtr);for(W=U.next();!W.done;W=U.next())P.push([W.value,!0]);return P},
getPropsToForwardBeforeReady:function(P){for(var U=[],W=_.T(Object.entries(P)),z=W.next();!z.done;z=W.next()){var r=_.T(z.value);z=r.next().value;r=r.next().value;if(tB7(z)&&!(r instanceof Function)&&(U.push([z,!1]),F9(x))){var f=r=void 0;(f=(r=P)._createPropertyAccessor)==null||f.call(r,z)}}return U},
shouldForwardProp:tB7,shouldLog:F9}};
ZKi=function(O,x,e){egn(O,e);O.prototype.behaviors.unshift(cyi);if(BIN()){if(F9(x)){var l;(l=O.prototype).behaviors!=null||(l.behaviors=[]);O.prototype.behaviors.unshift(wCL())}Sur(O)}_.V(cZ.prototype)(O.prototype,"__templateHelpers")};
BZ=function(O){return IYL.has(O)||O.startsWith("__compute__")};
tB7=function(O){return!BZ(O)&&!O.startsWith("_")&&!O.endsWith("_")};
aYr=function(O,x){function e(){var Z=M();Z=_.T(Z);for(var E=Z.next();!E.done;E=Z.next()){var P=_.T(E.value);E=P.next().value;P=P.next().value;VBN(y.prototype,E,P)}l=!0}
var l=!1,C=O.ctor,Q=O.getInitialMethods,L=O.observedAttributes,k=O.getPropsToForwardBeforeReady,M=O.getPropsToForwardBeforeRegister,G=O.shouldForwardProp,X=O.shouldLog,y=function(){var Z=HTMLElement.call(this)||this;Z.didForwardDynamicProps=!1;Z.loggingStatus={};l||e();Z.inst=C(Z,{beforeReady:function(){Z.didForwardDynamicProps||(Z.forwardDynamicProps(),Z.didForwardDynamicProps=!0)}});
Z.controllerProxy=fxr(Z.inst,x);Z.forwardMethods();return Z};
_.c(y,HTMLElement);y.prototype.forwardMethods=function(){for(var Z=this,E=_.T(this.inst.getExtraMethodsToForward()),P=E.next(),U={};!P.done;U={method$jscomp$65:void 0},P=E.next()){var W=_.T(P.value);P=W.next().value;W=W.next().value;U.method$jscomp$65=W;this[P]=function(z){return function(){return z.method$jscomp$65.call.apply(z.method$jscomp$65,[Z.inst].concat(_.Kx(_.vw.apply(0,arguments))))}}(U)}E=_.T(Q());
for(U=E.next();!U.done;U=E.next())U=U.value,G(U)&&ppL(this,U),X(x)&&!BZ(U)&&RK8(this.inst,U)};
y.prototype.forwardDynamicProps=function(){var Z=k(this.inst);Z=_.T(Z);for(var E=Z.next();!E.done;E=Z.next()){var P=_.T(E.value);E=P.next().value;P=P.next().value;VBN(this,E,P);X(x)&&!BZ(E)&&Uts(this.inst,E)}};
y.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
y.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
y.prototype.attributeChangedCallback=function(Z,E,P){this.inst.attributeChangedCallbackWrapper(Z,E,P)};
_.Dy.Object.defineProperties(y.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return x}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Dy.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return L}}});
customElements.define(x,y)};
VBN=function(O,x,e){O.hasOwnProperty(x)||Object.defineProperty(O,x,{get:function(){var l,C=((l=O.is)!=null?l:O.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||oH(C,x,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,l=this.polymerController[x],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,l},
set:function(l){if(!e){var C,Q=((C=O.is)!=null?C:O.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||oH(Q,x,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=x,this.loggingStatus.bypassProxyController=!0,this.polymerController[x]!==l&&(C={},this.polymerController.setProperties((C[x]=l,C)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
ppL=function(O,x,e){var l=O.polymerController;O[x]=function(){var C=_.vw.apply(0,arguments);O.loggingStatus.currentExternalCall=x;O.loggingStatus.bypassProxyController=!0;var Q,L=((Q=O.is)!=null?Q:O.tagName).toLowerCase();oH(L,x,"PROPERTY_ACCESS_CALL_EXTERNAL");var k;Q=(k=e!=null?e:l[x])==null?void 0:k.call.apply(k,[l].concat(_.Kx(C)));O.loggingStatus.currentExternalCall=void 0;O.loggingStatus.bypassProxyController=!1;return Q}};
RK8=function(O,x){var e=O.hostElement,l=O[x];O[x]=function(){var C=_.vw.apply(0,arguments);if(e.loggingStatus.currentExternalCall!==x){var Q,L=((Q=e.is)!=null?Q:e.tagName).toLowerCase();oH(L,x,"PROPERTY_ACCESS_CALL_INTERNAL")}return l==null?void 0:l.apply(O,C)}};
Uts=function(O,x){var e=Object.getOwnPropertyDescriptor(O,x);e&&!e.get&&Object.defineProperty(O,x,{get:function(){Jbr(O.hostElement,x);return e.value},
set:function(l){ya(O.hostElement,x);e.value=l}})};
mtr=function(O){return _.t("poly_si_dom_repeat_detached_fix_killswitch")||O.tagName!=="PS-DOM-REPEAT"?O.tagName==="DOM-REPEAT":!0};
WUi=function(O,x){var e=sYw(O);O instanceof Element&&e.unshift(O);O=_.T(e.filter(mtr));for(var l=O.next();!l.done;l=O.next()){var C=void 0;l=_.T((C=l.value.__instances)!=null?C:[]);for(C=l.next();!C.done;C=l.next())if(C=C.value,C.root){C=Array.from(C.root.children);C=_.T(C);for(var Q=C.next();!Q.done;Q=C.next())e.push.apply(e,_.Kx(WUi(Q.value,x)))}}return e.filter(function(L){return L.usePatchedLifecycles&&L.lifecycleIsConnected===x})};
sYw=function(O){var x=null;O instanceof Element?x=Element.prototype.querySelectorAll:O instanceof DocumentFragment&&(x=DocumentFragment.prototype.querySelectorAll);return x?Array.from(x.call(O,"*")):[]};
vZ=function(O){_.cL(function(){for(var x=_.T(WUi(O,!1)),e=x.next();!e.done;e=x.next()){e=e.value;e.lifecycleIsConnected=!0;try{var l=void 0,C=void 0,Q=void 0,L=void 0;(l=(L=e.polymerController)!=null?L:e)==null||(Q=(C=l).connectedCallback)==null||Q.call(C)}catch(k){_.BH(k)}}})};
JY=function(O){_.cL(function(){for(var x=_.T(WUi(O,!0)),e=x.next();!e.done;e=x.next()){e=e.value;e.lifecycleIsConnected=!1;try{var l=void 0,C=void 0,Q=void 0,L=void 0;(l=(L=e.polymerController)!=null?L:e)==null||(Q=(C=l).disconnectedCallback)==null||Q.call(C)}catch(k){_.BH(k)}}})};
nPw=function(){if(!hK7){hK7=!0;var O=[Node];wq&&O.push(wq.Wrapper);var x=Node.prototype.insertBefore,e=Node.prototype.removeChild;O=_.T(O);for(var l=O.next(),C={};!l.done;C={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},l=O.next())l=l.value,C.nativeInsertBefore=l.prototype.insertBefore,l.prototype.insertBefore=function(L){return function(k,M){if(k instanceof DocumentFragment){var G=Array.from(k.children);k=L.nativeInsertBefore.call(this,k,M);
if(this.isConnected&&L.nativeInsertBefore===x)for(M=_.T(G),G=M.next();!G.done;G=M.next())vZ(G.value);return k}G=k instanceof Element&&k.isConnected;M=L.nativeInsertBefore.call(this,k,M);G&&JY(k);this.isConnected&&vZ(k);return M}}(C),C.nativeAppendChild=l.prototype.appendChild,l.prototype.appendChild=function(L){return function(k){if(k instanceof DocumentFragment){var M=Array.from(k.children);
k=L.nativeAppendChild.call(this,k);if(this.isConnected){M=_.T(M);for(var G=M.next();!G.done;G=M.next())vZ(G.value)}return k}M=k instanceof Element&&k.isConnected;G=L.nativeAppendChild.call(this,k);M&&JY(k);this.isConnected&&vZ(k);return G}}(C),C.nativeRemoveChild=l.prototype.removeChild,l.prototype.removeChild=function(L){return function(k){var M=k instanceof Element&&k.isConnected,G=L.nativeRemoveChild.call(this,k);
M&&e===L.nativeRemoveChild&&JY(k);return G}}(C),C.nativeReplaceChild=l.prototype.replaceChild,l.prototype.replaceChild=function(L){return function(k,M){if(k instanceof DocumentFragment){var G=Array.from(k.children);
k=L.nativeReplaceChild.call(this,k,M);if(this.isConnected)for(JY(M),M=_.T(G),G=M.next();!G.done;G=M.next())vZ(G.value);return k}G=k instanceof Element&&k.isConnected;var X=this.isConnected,y=L.nativeReplaceChild.call(this,k,M);X&&JY(M);G&&JY(k);X&&vZ(k);return y}}(C);
O=[Element];wq&&O.push(wq.Wrapper);O=_.T(O);l=O.next();for(C={};!l.done;C={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},l=O.next())l=l.value,l.prototype.before=zKr(l.prototype.before),l.prototype.after=zKr(l.prototype.after),C.nativeReplaceWith=l.prototype.replaceWith,l.prototype.replaceWith=function(L){return function(){var k=_.vw.apply(0,arguments),M=_.T(rym(k)),G=M.next().value,
X=M.next().value;M=this.isConnected;L.nativeReplaceWith.apply(this,k);k=_.T(X);for(X=k.next();!X.done;X=k.next())JY(X.value);if(M)for(JY(this),G=_.T(G),M=G.next();!M.done;M=G.next())M=M.value,M instanceof Element&&vZ(M)}}(C),C.nativeRemove=l.prototype.remove,l.prototype.remove=function(L){return function(){var k=this.isConnected;
L.nativeRemove.call(this);k&&JY(this)}}(C),C.nativeInsertAdjacentElement=l.prototype.insertAdjacentElement,l.prototype.insertAdjacentElement=function(L){return function(k,M){var G=M.isConnected;
k=L.nativeInsertAdjacentElement.call(this,k,M);G&&JY(M);k.isConnected&&vZ(k);return k}}(C),C.nativeSetAttribute=l.prototype.setAttribute,l.prototype.setAttribute=function(L){return function(k,M){var G=HKL(this);
if(!G.usePatchedLifecycles)return L.nativeSetAttribute.call(this,k,M);var X=this.getAttribute(k);L.nativeSetAttribute.call(this,k,M);M=this.getAttribute(k);KUm(G,k,X,M)}}(C),C.nativeRemoveAttribute=l.prototype.removeAttribute,l.prototype.removeAttribute=function(L){return function(k){var M=HKL(this);
if(!M.usePatchedLifecycles)return L.nativeRemoveAttribute.call(this,k);var G=this.getAttribute(k);L.nativeRemoveAttribute.call(this,k);G!==null&&KUm(M,k,G,null)}}(C),C.nativeToggleAttribute=l.prototype.toggleAttribute,l.prototype.toggleAttribute=function(L){return function(k,M){var G=HKL(this);
if(!this.usePatchedLifecycles)return L.nativeToggleAttribute.call(this,k,M);var X=this.getAttribute(k),y=X!==null;M=L.nativeToggleAttribute.call(this,k,M);M!==y&&KUm(G,k,X,M?"":null);return M}}(C);
O=[Document,DocumentFragment,Element,ShadowRoot];wq&&O.push(wq.Wrapper);O=_.T(O);for(C=O.next();!C.done;C=O.next())C=C.value,C.prototype.prepend=zKr(C.prototype.prepend),C.prototype.append=zKr(C.prototype.append);(wq==null?void 0:wq.noPatch)===!0&&dtn();document.readyState==="complete"?vZ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&vZ(document.body)});
var Q=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");Q&&Q.get&&Q.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:Q.enumerable,configurable:!0,get:Q.get,set:function(L){L||JY(this);Q.set.call(this,L);return L}})}};
zKr=function(O){return function(){var x=_.vw.apply(0,arguments),e=_.T(rym(x)),l=e.next().value;e=e.next().value;O.apply(this,x);x=_.T(e);for(e=x.next();!e.done;e=x.next())JY(e.value);if(this.isConnected)for(l=_.T(l),x=l.next();!x.done;x=l.next())x=x.value,x instanceof Element&&vZ(x)}};
dtn=function(){for(var O=_.T(u3r),x=O.next();!x.done;x=O.next()){x=x.value.prototype;for(var e=_.T(Yt7),l=e.next();!l.done;l=e.next()){l=l.value;var C=Object.getOwnPropertyDescriptor(x,l);C&&Object.defineProperty(x,"__shady_native_"+l,C)}}};
KUm=function(O,x,e,l){var C,Q;if((C=O.polymerController)==null?0:(Q=C.observedAttributes)==null?0:Q.includes(x))if(O=O.polymerController,O.attributeChangedCallbackWrapper)O.attributeChangedCallbackWrapper.call(O,x,e,l);else{var L;(L=O.attributeChangedCallback)==null||L.call(O,x,e,l)}};
rym=function(O){var x=[],e=[];O=_.T(O);for(var l=O.next();!l.done;l=O.next())l=l.value,l instanceof Element&&l.isConnected&&e.push(l),l instanceof DocumentFragment?x.push.apply(x,_.Kx(Array.from(l.children))):x.push(l);return[x,e]};
HKL=function(O){return!(O instanceof Element)&&O.node instanceof Element?O.node:O};
BU7=function(O,x){var e=x?["children"].concat(_.Kx(x)):["children"];x=[];e=_.T(e);for(var l=e.next();!l.done;l=e.next()){var C=l.value;if(O.hasOwnProperty(C)){l=O[C];l=typeof l==="function"?l():l;l=Array.isArray(l)?l:[l];l=U0(l).flat();if(C!=="children"){C=wgs(C);for(var Q=_.T(l),L=Q.next();!L.done;L=Q.next())L=L.value,L instanceof Element&&L.setAttribute("slot",C)}x.push(l)}}x.length===0?O=[]:(O=U0(_.D("div",null,x)),O=Array.from(O.childNodes));return O};
fYr=function(O,x,e){var l={};_.fe(function(){var C={},Q;for(Q in x)if(x.hasOwnProperty(Q)){var L=void 0,k=void 0;if(!(((L=e.slotProps)==null?0:L.includes(Q))||Q==="children"||((k=e.callbackProps)==null?0:k.includes(Q))||Q==="ref")&&(L=_.vL(x[Q]),l[Q]!==L)){l[Q]=L;k=void 0;var M=(k=O.hostElement)!=null?k:O;!e.skipHostForwardedProps&&vPN.has(Q)&&(M[Q]=L);C[Q]=L}}mF(function(){if(O.setProperties)O.setProperties(C);else for(var G=_.T(Object.entries(C)),X=G.next();!X.done;X=G.next()){var y=_.T(X.value);
X=y.next().value;y=y.next().value;O[X]=y}})},"i")};
wpn=function(O,x,e,l){var C=BU7(e,l.slotProps),Q=(0,_.eU)(O);C=_.T(C);for(var L=C.next();!L.done;L=C.next())Q.appendChild(L.value);fYr(x,e,l);l=_.T(l.callbackProps||[]);C=l.next();for(Q={};!C.done;Q={kebabEventName:void 0,eventListener:void 0},C=l.next())L=C=C.value,String(C).substring(0,2)==="on"&&e[L]?(Q.kebabEventName=wgs(String(C).substring(2)),Q.eventListener=e[L],O.addEventListener(Q.kebabEventName,Q.eventListener),_.YO(function(X){return function(){O.removeEventListener(X.kebabEventName,X.eventListener)}}(Q))):
x[L]=e[L];
if(e.ref){e=_.T(Jy$(e.ref));var k=e.next().value,M=e.next().value,G=x.attached.bind(x);x.attached=function(){k(O);G()};
_.YO(function(){M()})}};
Jy$=function(O){if(typeof O==="function"){var x;return[function(e){x=O(e)},
function(){var e;(e=x)==null||e()}]}if(!O.onRender||!O.onUnmount)throw Error("Zg");
return[O.onRender,O.onUnmount]};
Sts=function(O,x){x=x===void 0?{}:x;var e=function(l){var C=document.createElement(O),Q;var L=(Q=C.polymerController)!=null?Q:C;wpn(C,L,l,x);return C};
e.debugName=O+" (CoW wrapped)";return e};
$ts=function(O,x,e,l,C){l=l===void 0?{}:l;var Q=jYn,L=!1;Q?(L=!0,jYn=void 0):(NUw=x,Q=document.createElement(x),NUw=void 0);var k=Q;k.usePatchedLifecycles=!0;k.lifecycleIsConnected=!1;Q.loggingStatus={};var M=gPr(O,x,Q,l,C);_.YO(function(){k.lifecycleIsConnected&&(k.lifecycleIsConnected=!1,M.disconnectedCallback())});
L||(Q.__noInsertionPoint=!0,wpn(Q,M,e,l));return Q};
gPr=function(O,x,e,l,C){C=C===void 0?Pin:C;iKw[x]!=null||(iKw[x]=C(O,x,l==null?void 0:l.getTemplate,l));var Q=iKw[x],L=Q.ctor;C=Q.getInitialMethods;var k=Q.getPropsToForwardBeforeReady;O=Q.getPropsToForwardBeforeRegister;l=Q.shouldForwardProp;var M=Q.observedAttributes,G=Q.shouldLog,X=L(e,{beforeReady:function(){var y=X;y._takeAttributes?y._takeAttributes():y.setPropertiesFromInitialAttributeValues&&y.setPropertiesFromInitialAttributeValues();y=_.T(k(e.polymerController));for(var Z=y.next();!Z.done;Z=
y.next()){var E=_.T(Z.value);Z=E.next().value;E=E.next().value;VBN(e,Z,E);G(x)&&!BZ(Z)&&Uts(e.polymerController,Z)}e.polymerController=fxr(X,x)}});
e.polymerController=X;e.polymerController.observedAttributes=M;Q=_.T(X.getExtraMethodsToForward());for(L=Q.next();!L.done;L=Q.next())M=_.T(L.value),L=M.next().value,M=M.next().value,ppL(e,L,M);C=_.T(C());for(Q=C.next();!Q.done;Q=C.next())Q=Q.value,l(Q)&&ppL(e,Q),G(x)&&!BZ(Q)&&RK8(X,Q);O=_.T(O());for(l=O.next();!l.done;l=O.next())C=_.T(l.value),l=C.next().value,C=C.next().value,VBN(e,l,C);return X};
OWV=function(O){var x=SU;SU=O;return x};
evV=function(O){if(jU.has(O)&&SU&&x28(SU)===O){var x;(x=SU)._numRenders!=null||(x._numRenders=0);SU._numRenders++;if(SU._numRenders>1)throw Error("$g");return SU}};
lpW=function(O){jU.has(x28(O))&&SU!==O&&(O._isInert=!0)};
x28=function(O){var x;return(x=O==null?void 0:O.tagName.toLowerCase())!=null?x:""};
C37=function(O,x){if(O.componentType===HL)throw Error("ah");jU.add(x);var e=function(){var l=HTMLElement.call(this)||this;l.is=x;if(NUw===x)return l.isInert=!0,l;l.createElement();return l};
_.c(e,HTMLElement);e.prototype.createElement=function(){if(!this.isInert){jYn=this;var l=_.T(_.vpN(function(){return _.D(O,null)})).next().value;
jYn=void 0;JCr(this);return l}};
customElements.define(x,e)};
bWi=function(O,x,e,l,C){O.prototype.is=x;(l==null?0:l.useSink)?QWs(O,x,e,l,C):(e=Pin(O,x,e,l),aYr(e,x));return O};
QWs=function(O,x,e,l,C){nPw();var Q=_.K(function(L){return $ts(O,x,L,Object.assign({},l,{getTemplate:e}),C)},"j");
Q.debugName=x+" (CoW wrapped)";C37(Q,x);return Q};
L2s=function(O){return!TWW.has(O)};
MTr=function(O,x,e,l){function C(){if(!y){for(var Z=new Set(kEL),E=_.T(Q.behaviors),P=E.next();!P.done;P=E.next()){P=P.value;for(var U=_.T(Object.getOwnPropertyNames(P)),W=U.next();!W.done;W=U.next()){W=W.value;var z=void 0,r=(z=Object.getOwnPropertyDescriptor(P,W))==null?void 0:z.value;r&&r instanceof Function&&(!G[W]||_.t("polymer_forward_method_killswitch"))&&Z.add(W)}}E=_.T(Object.entries(Object.getOwnPropertyDescriptors(O.prototype)));for(P=E.next();!P.done;P=E.next())U=_.T(P.value),P=U.next().value,
U=U.next().value,U.value instanceof Function&&Z.add(P);y=Z}return y}
var Q=JQn({is:x,disableElementRegistration:!1,getTemplate:e,providers:l==null?void 0:l.providers,reactivityMode:l==null?void 0:l.reactivityMode},O);if((l==null?0:l.allowedProps)||(l==null?0:l.allowedPropsFromBehaviors)){var L,k;Q.allowedProps=[].concat(_.Kx((L=l.allowedProps)!=null?L:[]),_.Kx((k=l.allowedPropsFromBehaviors)!=null?k:[]))}var M=dmr(Q,O);x=M.observedAttributes;var G={};e=_.T(Q.reactiveSchemas);for(l=e.next();!l.done;l=e.next())if(l=l.value,l.type==="signal")G[l.propertyKey]={readOnly:l.readOnly},
l.readOnly&&(G[X4i(l.propertyKey)]={readOnly:!0});else if(l.type==="compute"||l.type==="computeWithMethod"||l.type==="redux")G[l.propertyKey]={readOnly:!0};var X=Q.reactiveSchemas.length,y;return{ctor:function(Z,E){Z=new M(Z);Z.beforeReady=E.beforeReady;return Z},
props:G,observedAttributes:x,getInitialMethods:C,getPropsToForwardBeforeRegister:function(){for(var Z=[],E=new Set,P=_.T(A$$),U=P.next();!U.done;U=P.next())U=U.value,Z.push([U,U!=="observers"&&U!=="properties"]),E.add(U);P=_.T(Object.keys(G));for(U=P.next();!U.done;U=P.next())U=U.value,Z.push([U,G[U].readOnly]),E.add(U);P=C();U=_.T(Object.keys(Object.getOwnPropertyDescriptors(O.prototype)));for(var W=U.next();!W.done;W=U.next())W=W.value,!L2s(W)||P.has(W)||E.has(W)||(Z.push([W,!1]),E.add(W));Z.push(["allowedProps",
!0]);return Z},
getPropsToForwardBeforeReady:function(Z){var E=[];Z=_.T(Object.keys(Z));for(var P=Z.next();!P.done;P=Z.next()){P=P.value;var U=C();L2s(P)&&!U.has(P)&&E.push([P,!1])}Z=_.T(Q.reactiveSchemas.slice(X));for(P=Z.next();!P.done;P=Z.next())P=P.value,P.type!=="compute"&&P.type!=="computeWithMethod"&&P.type!=="redux"&&P.type!=="signal"||E.push([P.propertyKey,P.type==="signal"?P.readOnly:!0]);return E},
shouldForwardProp:L2s,shouldLog:F9}};
_.n=function(O,x,e,l){var C,Q,L=(Q=(C=l)==null?void 0:C.mode)!=null?Q:0;l!=null||(l={});var k;(k=l).reactivityMode!=null||(k.reactivityMode=0);L===1&&_.EC("creator_poly_si_disable_list").includes(x)&&(L=2);return L===1?bWi(O,x,e,Object.assign({},l,{useSink:!0}),MTr):bWi(O,x,e,Object.assign({},l,{useSink:L===2}))};
_.NQ=function(){return function(O,x,e,l){var C,Q,L=(Q=(C=l)==null?void 0:C.mode)!=null?Q:2;l!=null||(l={});var k;(k=l).reactivityMode!=null||(k.reactivityMode=0);if(L===0)throw Error("bh`"+L);return QWs(O,x,e,l,L===1?MTr:void 0)}};
_.gq=function(O){return _.t("creator_poly_si_killswitch")?!1:_.t("force_all_poly_si_batches")&&(O==="poly_si_all_on_test_check"||O==="creator_poly_si_batch_050"?0:O)||document.documentElement.hasAttribute("use-signals")?!0:!O||_.t(O+"_holdback_enabled")&&_.t("kevlar_polysi_holdback")?!1:_.t(O)};
$X=function(O){return O?O.icon?O.icon.iconType.toLowerCase():O.customThumbnail?"member":"":""};
D2i=function(O){if(!O)return"";O=_.T(O);for(var x=O.next();!x.done;x=O.next())if((x=x.value)&&x.liveChatAuthorBadgeRenderer&&(x=$X(x.liveChatAuthorBadgeRenderer))&&x!=="verified")return x;return""};
GEW=function(O,x){if(!O)return null;var e;return((e=O.find(function(l){return l&&l.liveChatAuthorBadgeRenderer?$X(l.liveChatAuthorBadgeRenderer)===x:!1}))==null?void 0:e.liveChatAuthorBadgeRenderer)||null};
_.ENr=function(O){var x=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;O=F2i(O);x=F2i(x);var e=X3L(O.hex);x=X3L(x.hex);var l=x[0]/255;var C=x[1]/255,Q=x[2]/255,L=Math.max(l,C,Q),k=Math.min(l,C,Q),M=0,G=0,X=.5*(L+k);L!=k&&(L==l?M=60*(C-Q)/(L-k):L==C?M=60*(Q-l)/(L-k)+120:L==Q&&(M=60*(l-C)/(L-k)+240),G=0<X&&X<=.5?(L-k)/(2*X):(L-k)/(2-2*X));l=[Math.round(M+360)%360,G,X];e=oN$(e,x);for(O=y$N(O.hex);e<4.5;){O=l[2]>=.5?O.darker((4.5-e)/2):O.brighter((4.5-e)/2);e=O.toString();
C=ZWL(e);if(!C.length)throw Error("Wd`"+e);e=C;e=oN$(e,x)}return O.hex()};
oN$=function(O,x){O=_.l_i(O);x=_.l_i(x);return(Math.max(O,x)+.05)/(Math.min(O,x)+.05)};
_.iH=function(O){return"#"+("000000"+(O&16777215).toString(16)).slice(-6)};
_.tT8=function(O){for(var x=0,e=0;e<O.length;e++)x=O.charCodeAt(e)+((x<<5)-x);O="#";for(e=0;e<3;e++)O+=("00"+(x>>e*8&255).toString(16)).slice(-2);return O};
qUr=function(O){O=(O||"").split(":");O.length===1&&O.unshift("yt-icons");O[1]=O[1].toLowerCase();return O};
Rvi=function(O,x){var e=(x=x===void 0?!1:x)?P3n:c$V,l=x?Ipm:VTm;O.getIconNames().forEach(function(C){C=x?C:C.substring(C.indexOf(":")+1);O.name==="yt-icons"?p3s.add(C):C.includes("-filled")?e.add(C):l.add(C)})};
Ox=function(O,x,e,l){e=e===void 0?!1:e;l=l===void 0?!1:l;var C,Q,L;return _.A(function(k){if(k.nextAddress==1)return k.yield(U2$,2);if(l)return k.return(p3s.has(O));C=e?P3n:c$V;Q=e?Ipm:VTm;return x?(L=O.includes("-filled")?O:O.concat("-filled"),k.return(C.has(L))):k.return(Q.has(O))})};
_.sWr=function(O){if(apr(O))return O;var x=O=O.toLowerCase();(O=m2$.get(O))&&(x=O);return x};
_.x0=function(O){if(apr(O))return O.toString();var x=W28.get(O);if(x)return x;x=O.toLowerCase();var e="yt-icons",l=x.replace(/_/g,"-");switch(O){case "MY_CHANNEL":x="account_circle";break;case "ADD_TO_LIBRARY":x="add";break;case "ALERT_WARN_RED":x="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":x="person_music";break;case "BLOCK_USER":x="block";break;case "CAPTIONS":x="closed_caption";break;case "CLOSED_CAPTION":e="av";x="closed-caption";break;case "COLLECTION":e="maps";x="layers";break;case "CONTACT":e=
"icons";x="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":e="yt-studio-system-icons";x=l.split("creator-studio-")[1];break;case "DISMISSAL":x="close";break;case "DO_NOT_DISTURB":x="block";break;case "DOGFOOD":e="icons";x="pets";break;case "DRAFT":x="paper_corner_folded";
break;case "EMPTY_LIKE":x="like_outline";break;case "EXIT_APP":x="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":x=l;break;case "GAMES":e="ytg";x="my-games";break;case "GO_TO_PAGE":x="arrow-forward";break;case "GROUP":e="social";break;case "HIDE":x="not_interested";break;case "INPUT_COMPONENT":e="icons";x="settings-input-component";break;case "KIDS_BLOCK":x="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":e="ytg";x="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":e=
"ytg";x="membership-post-purchase";break;case "MULTIVIEW":x="screen_multi_view";break;case "MY_LOCATION":e="maps";x=l;break;case "NOTIFICATIONS_INBOX":x="NOTIFICATIONS";break;case "NEXT":x="chevron_right";break;case "OFFLINE":x="power-settings-new";break;case "PAUSE":e="miniplayer";break;case "PAYMENT":e="icons";break;case "PHONE_DOWNLOAD":x="phone_download";break;case "PREMIUM_STANDALONE":e="yt-logos";x="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":e="yt-logos";x="premium_standalone_cairo";
break;case "QUESTION_ANSWER":x="question_answer";break;case "REDEEM":e="icons";x="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":x="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":x="library_add";break;case "SCHOOL":e="yt-sys-icons";x="creator_academy";break;case "SETTINGS_LIGHT":x="settings_applications";break;case "SETTINGS_MATERIAL":x="settings";break;case "SEARCH_HISTORY":x="watch_history";break;case "SHOPPING_BAG":x="bag";break;case "SOCIAL":case "PEOPLE":e=
"yt-icons";x="people";break;case "STAFF_PICK":e="ytg";x="spotlight";break;case "START_DVR":x="add";break;case "STOP_DVR":e="av";x="stop";break;case "TAB_LIKED":x="like";break;case "TAB_INBOX":x="mail";break;case "TERMS_OF_SERVICE":e="icons";x="description";break;case "TRENDING":x="fire";break;case "UNBLOCK_USER":x="remove";break;case "UNPLUGGED_DARK_THEME":e="image";x="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":x="live";break;case "UNPLUGGED_SPORTS":e="ytu";x="visibility-off";break;
case "VIDEOS":e="av";x="play-circle-filled";break;case "YOUTUBE":e="yt-logos";x="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":e="yt-logos-ext";x="yt-logo-red-updated";break;case "YOUTUBE_LOGO":e="yt-logos-ext";x="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":e="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":e="shorts";x=l;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":e="yt-sys-icons";x="youtube_improve_tv";break;case "OUTLINE_BAG":e=
"yt-sys-icons";x="bag";break;case "QUEUE_PLAY_LAST":e="yt-sys-icons";x="list_queue_last";break;case "SLASH_CIRCLE_LEFT":x="slash_circle_left";break;case "SPEED_1_POINT_2X":x="1_point_2x";break;case "SPEED_1_POINT_5X":x="1_point_5x";break;case "SPEED_1_POINT_8X":x="1_point_8x";break;case "SPEED_POINT_2X":x="point_2x";break;case "SPEED_POINT_5X":x="point_5x";break;case "SPEED_POINT_8X":x="point_8x";break;case "SPEED_1X":x="1x";break;case "SPEED_2X":x="2x";break;case "TAB_BOOKMARK":x="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":e="yt-sys-icons";x="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":e="yt-sys-icons";x="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":e="yt-sys-icons",x="tic_tac_toe"}x=e+":"+x;W28.set(O,x);return x};
apr=function(O){var x;_.t("kevlar_use_wil_icons")?x=!!_.GG().resolve(_.ef).resolveIcon({iconName:O.toString()}):x=!1;return x};
_.C_=function(O,x,e,l){e=e===void 0?{}:e;l=l===void 0?!1:l;e===null&&(e={});var C=_.EC("kevlar_command_handler_command_banlist");C=_.T(C);for(var Q=C.next();!Q.done;Q=C.next())if(Q=O?O.hasOwnProperty(Q.value):void 0,Q)return!1;C=_.q(O.commandMetadata,_.e6);return l&&C!=null&&C.url?!1:!x.disableCommandHandlerOverride&&_.lV.instance?(l=_.lV.instance,e.form||(e.form={element:x}),e.form.element||(e.form.element=x),!e.clickedVisualElement&&x.visualElement&&(e.clickedVisualElement=x.visualElement),l.resolveCommand(O,
e),!0):!1};
hv7=function(O,x){O=bV(O);for(var e=_.T(O.visibilityMonitorKeys||[]),l=e.next();!l.done;l=e.next())x.unobserveByKey(l.value);O.visibilityMonitorKeys=void 0};
K2w=function(O,x){if(_.Pq()){if(_.t("kevlar_vimio_use_shared_monitor"))zvW(O,x.data);else if(!zvW(O,x.data))return;var e=x.data,l=r$r(e);if(_.t("enable_client_ve_spec_logging"))hv7(O,x.observer);else{var C=bV(O);C.trackedParams&&C.trackedParams!==l&&hv7(O,x.observer)}C=bV(O);!e||C.data&&C.data===e||(C.data=e);HWV(O,x);C.trackedParams=l}};
HWV=function(O,x){var e=x.observer;if(!e&&_.t("web_skip_missing_vimio_observer")){var l,C;_.ft(new _.ry("VisibilityObserver is not defined.",O.tagName,O.trackedParams,(l=x.data)==null?void 0:l.trackingParams,(C=x.data)==null?void 0:C.loggingDirectives))}else{var Q=x.layer,L=x.visibilityCallback||function(){},k=x.prescanCallback,M=bV(O);
l=[];x.showOption&&l.push(e.observe(O,function(){x.skipLogging&&x.skipLogging()||_.TO().reportShown(M,void 0,Q);L(!0)},x.showOption));
x.hideOption&&l.push(e.observe(O,function(){_.TO().reportHidden(M,void 0,Q);L(!1)},x.hideOption));
x.prescanOption&&k&&l.push(e.observe(O,function(){k()},x.prescanOption));
M.visibilityMonitorKeys=l}};
zvW=function(O,x){O=bV(O);if(O.visualElement&&!x)return!0;if(!x)return!1;var e=!1;if(_.t("enable_client_ve_spec_logging")){var l,C;e=!!((l=x.loggingDirectives)==null?0:(C=l.clientVeSpec)==null?0:C.uiType)}l=r$r(x);if(!l&&!e)return!1;_.t("mweb_component_visibility_logging")&&(O.veContainer||(O.veContainer={}),O.veContainer.trackingParams=l);if(O.trackedParams&&O.trackedParams===l)return!1;var Q;if(_.t("enable_client_ve_spec_logging")&&((Q=O.visualElement)==null?0:Q.isClientVe())){var L;Q=(L=O.visualElement)==
null?void 0:L.getAsJspb();var k,M,G,X;if(_.G8(Q,2)===((k=x.loggingDirectives)==null?void 0:(M=k.clientVeSpec)==null?void 0:M.uiType)&&_.G8(Q,3,-1)===((G=x.loggingDirectives)==null?void 0:(X=G.clientVeSpec)==null?void 0:X.elementIndex))return!1}if(_.t("enable_client_ve_spec_logging")){var y,Z;!O.visualElement&&((y=x.loggingDirectives)==null?0:(Z=y.clientVeSpec)==null?0:Z.uiType)&&(k=x.loggingDirectives.clientVeSpec,x=k.uiType,L=k.elementIndex,k=k.clientYoutubeData,O.visualElement=_.L_(_.k0(),{veType:x,
elementIndex:L,clientYouTubeData:k}))}return!0};
r$r=function(O){if(O==null?0:O.rendererContext){var x=_.q(O.rendererContext,_.AB);if(x==null?0:x.loggingDirectives)return x.loggingDirectives.trackingParams}return(O==null?0:O.loggingDirectives)?O.loggingDirectives.trackingParams:O==null?void 0:O.trackingParams};
bV=function(O){var x;return(x=O.polymerController)!=null?x:O};
YUN=function(O){_.TO();if(_.$K(Mj().JSC$12719_elementShouldLogGesture).bind(Mj())(O,4)){d2r(O);var x=nNW(O);uSV.set(O,x)}};
d2r=function(O){uSV.has(O)&&(uSV.get(O).cancel("untrack hover element"),uSV.delete(O))};
nNW=function(O){var x,e=[],l=!1,C=new _.If(function(Q,L){Da(O,"mouseenter",_.$K(function(){var k,M,G;return _.A(function(X){if(X.nextAddress==1)return x=(0,_.F2)(),k=BWN(O),e.push(k),M=vNV(O,function(){l=!0;L(Error("ch"))}),X.yield(k,2);
if(X.nextAddress!=3)return M&&GO(M),G=fpL(O),e.push(G),X.yield(G,3);Q();_.Ra(X)})}))});
C.then(function(){var Q=(0,_.F2)()-x;Q=Math.round(Q);if(!(500>Q||6E5<=Q)){var L=O.getScreenLayer?O.getScreenLayer():void 0;L=_.Pq(L)||"";var k=J$w(_.TO(),O);_.dT(L,O.visualElement?O.visualElement:_.Fv(k),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:Q}})}YUN(O)},function(){Xv&&(Xv(),Xv=null);
l&&(d2r(O),YUN(O))});
return C};
BWN=function(O){var x;return(new _.If(function(e,l){Xv=function(){l(Error("dh"))};
x=_.vn.debounce(_.$K(function(){GO(C);e()}),1,100);
var C=_.ol(O,"mousemove",x)})).thenCatch(function(){var e=_.vn.cancelDebouncedJobMap.get(x);
e&&_.vn.cancelJob(e)})};
fpL=function(O){var x;return(new _.If(function(e,l){Xv=function(){l(Error("eh"))};
x=Da(O,"mouseleave",_.$K(function(){e()}))})).thenCatch(function(){GO(x)})};
vNV=function(O,x){return Da(O,"mouseleave",_.$K(x))};
SUm=function(O){w3$&&_.yG.cancel(w3$);w3$=_.yG.run(function(){_.wr(O,"yt-visibility-refresh");w3$=0})};
jWL=function(O){O=Number(O);return"rgba("+[O>>16&255,O>>8&255,O&255,(O>>24&255)/255].join()+")"};
gN7=function(O){if(!O)return!1;if(_.q(O,_.NWr))return!0;var x;if(O=(x=_.q(O,_.ih))==null?void 0:x.commands)for(x=_.T(O),O=x.next();!O.done;O=x.next())if(_.q(O.value,_.NWr))return!0;return!1};
$2L=function(O){var x=!0;x=x===void 0?!0:x;if(!O.useSignals&&!O.experimentalPropertiesChanged||_.t("experimental_templating_behavior_nopatch_killswitch")){var e=O._propertiesChanged;O._propertiesChanged=function(l,C,Q){x?O.debounceRender():O.doRender();e&&e.call(O,l,C,Q)}}};
iWL=function(O,x){if(O.useSignals||O.experimentalPropertiesChanged)if(_.t("experimental_templating_behavior_nopatch_killswitch"))O.experimentalPropertiesChanged=function(){};
else return;var e=new Set,l=[O].concat(_.Kx(O.behaviors));l=_.T(l);for(var C=l.next();!C.done;C=l.next()){C=C.value;for(var Q in C.properties)e.has(Q)||(O._addPropertyEffect(Q,"function",x),e.add(Q))}};
O9N=function(){var O=Polymer.Element,x=O._prepareTemplate;O._prepareTemplate=function(){x.call(this);var e=this.prototype;if(e.experimentalTemplatingInUse&&e.experimentalTemplatingInUse()&&e.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.BH(Error("fh"));else{e=this.template.content.childNodes;for(var l=e.length-1;l>=0;l--){var C=e[l];C.nodeName!=="STYLE"&&C.nodeName!=="LINK"&&C.nodeName!=="SCRIPT"&&C.nodeName!=="#comment"&&C.remove()}}}};
xvw=function(O){var x=!0;x=x===void 0?!0:x;O9N();var e=O.ready;O.ready=function(){this._template=null;e.call(this)};
iWL(O,x?O.debounceRender:O.doRender)};
lJW=function(O,x,e){if(e===null||e===void 0)return e;var l=RR7(O.tagName.toLowerCase(),x,function(){throw Error("Tb");});
if(l===null)return e;l=elN[l];var C;if((C=l.isUnwrappable)==null?0:C.call(l,e)){if(l.unwrap)return l.unwrap(e);throw Error("ih");}return l.filterString?l.filterString(O.tagName,x,String(e)):e};
CJL=function(O,x,e){var l=x[x.length-1]!=="$",C=lJW(O,x,e);if(l)if(typeof C==="function"&&x.startsWith("reactiveon")&&x===x.toLowerCase()){var Q=Le;Hwr(O,x.slice(8),function(L){J6(Q,function(){C(L)})})}else O[x]=C;
else e=C==null?null:String(C),jj(O,x.slice(0,-1),e)};
Ex=function(O){Qcr.length===0&&requestAnimationFrame(function(){setTimeout(function(){var x=Qcr.slice();Qcr.length=0;x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;try{e()}catch(l){_.Za(l)}}})});
Qcr.push(O)};
b9W=function(O){if(O){var x=O.component;if(x){var e;x==null||(e=x.events)==null||e.publish("DISCONNECTED");var l;x==null||(l=x.onDisconnected)==null||l.call(x)}var C,Q;(C=O.__spec)==null||(Q=C.didUnmount)==null||Q.call(C);for(x=0;x<O.childNodes.length;x++)b9W(O.childNodes[x])}};
T0w=function(O,x,e){var l=x&&x.key,C=Tn;C[0]=O;C[1]=l;C[2]=void 0;for(var Q in x)x.hasOwnProperty(Q)&&(O=x[Q],l=LO,l.push(Q),l.push(O));x=Tn;a:{if(Q=Tn[2])for(O=0;O<Q.length;O+=2)if(Q[O]==="nonce"){Q=Q[O+1];break a}Q=""}Q=Nar(x[0],x[1],Q);O=$O(Q);l=x[2];if(!O.staticsApplied&&(O.staticsApplied=!0,l&&l.length))if((C=O._attrsArr)&&C.length){for(C=0;C<l.length;C+=2)tB[l[C]]=C+1;C=O._attrsArr||(O._attrsArr=raw(0));for(var L=0,k=0;k<C.length;k+=2){var M=C[k],G=C[k+1],X=tB[M];X?l[X]===G&&delete tB[M]:(C[L]=
M,C[L+1]=G,L+=2)}Sj(C,L);for(var y in tB)YZn(Q,y,l[tB[y]],M3),delete tB[y]}else for(y=0;y<l.length;y+=2)YZn(Q,l[y],l[y+1],M3);CON(Q,O,M3);Sj(x,0);e&&e(io);ggn()};
_.qj=function(O,x,e){e===void 0?delete O[x.name]:O[x.name]=e};
_.Ps=function(O){var x={androidIncludeFontPadding:!1},e=0,l=[],C=[],Q=[];if(O.simpleText)return x.content=O.simpleText,x;if(O.runs===void 0)return x.content="",x;O=_.T(O.runs);for(var L=O.next();!L.done;L=O.next()){L=L.value;var k=L.text,M=void 0,G=(M=k)==null?void 0:M.length;if(k&&G){l.push(k);if(L.bold||L.italics||L.strikethrough||L.underline||L.textColor!=null&&L.textColor!==0||L.deemphasize){k=C;M=k.push;var X={startIndex:e,length:G};L.bold&&(X.weightLabel="FONT_WEIGHT_MEDIUM");L.italics&&(X.italic=
!0);L.strikethrough&&(X.strikethrough="LINE_STYLE_SINGLE");L.underline&&(X.underline="LINE_STYLE_SINGLE");L.textColor!=null&&L.textColor!==0?document.documentElement.hasAttribute("dark")?X.fontColor=L.darkModeTextColor||L.textColor:X.fontColor=L.textColor:L.deemphasize&&(document.documentElement.hasAttribute("dark")?X.fontColor=parseInt("ff"+Lfr("#aaa").substring(1),16):X.fontColor=parseInt("ff"+Lfr("#606060").substring(1),16));M.call(k,X)}L.navigationEndpoint&&(k=Q,M=k.push,X={startIndex:e,length:G,
onTap:{innertubeCommand:L.navigationEndpoint}},L.loggingDirectives&&_.qj(X,kIV,L.loggingDirectives),M.call(k,X));e+=G}}x.content=l.join("");x.styleRuns=C.length?C:void 0;x.commandRuns=Q.length?Q:void 0;return x};
MAs=function(O){if(O==null||!O.runs)return!0;O=_.T(O.runs);for(var x=O.next();!x.done;x=O.next())if(x=x.value,x.bracket||x.errorUnderline||x.deemphasize||_.q(x,cs)||_.q(x,A4r))return!1;return!0};
DvL=function(O,x){return function(e){var l=x.unit;if(l!==e)throw Error("lh`"+O+"`"+l+"`"+e);return x}};
Il=function(O){if(!((O==null?0:O.value)&&(O==null?0:O.unit)))return"";switch(O.unit){case "DIMENSION_UNIT_FRACTION":var x="%";break;default:x="px"}O=O.value;x==="%"&&(O*=100);return""+O+x};
GIm=function(O){try{return O()}catch(x){_.ft(x)}};
_.p_=function(O){var x=_.q(O,_.VG);if(x)return x;if((x=_.q(O,Ffm))&&x.commands)return Xl8(x.commands);if((x=_.q(O,oeV))&&x.commands)return Xl8(x.commands);if((O=_.q(O,y4W))&&O.identifier&&O.command&&(Z9L||(Z9L=[]),!Z9L.includes(O.identifier)))return Z9L.push(O.identifier),_.q(O.command,_.VG)};
Xl8=function(O){if(O.length!==0){var x=[];O=_.T(O);for(var e=O.next();!e.done;e=O.next())(e=_.p_(e.value))&&x.push(e);return{commandExecutorCommand:{commands:x}}}};
_.Ux=function(O){var x=O.defaultTarget,e=O.elementConfig,l=O.elementsCommand,C=O.skipOnClick,Q=O.forceNewState,L=O.additionalCommandArgs,k=O.innertubeCommand||_.p_(l);if(k){O={};var M=EeL(k);l=M.navigatingCommand;M=M.href;l&&M?(O.href$=M,tAm(O,l,M,x),_.t("web_atagconfig_pointerdown")&&qWw(O,l),Q&&(O["force-new-state$"]=!0)):(O.role$="button",O.href$="javascript:void(0);");_.q(k,PJs)&&(O["aria-haspopup$"]=!0);C||(O.onclick=function(G){var X={};if(c4w(G)){var y=(L==null?void 0:L.clickedVisualElement)||
(L==null?void 0:L.getClickedVisualElement)&&L.getClickedVisualElement();y&&(X={clickedVisualElement:y});X=Object.assign({},{form:{element:G.target,event:G,createScreenConfig:X}},L);G.preventDefault();_.Rl(k,X)}});
return Object.assign({},e,O)}};
IJw=function(O){if(O.length){if(O.length===1)return O[0];var x={};_.qj(x,_.ih,{commands:O});return x}};
al=function(O){return O&&O.href$!=="javascript:void(0);"};
EeL=function(O){var x,e=((x=_.q(O,_.ih))==null?void 0:x.commands)||[O];O=_.T(e);for(x=O.next();!x.done;x=O.next()){x=x.value;var l=void 0,C=void 0;e=(C=_.q((l=x)==null?void 0:l.commandMetadata,_.e6))==null?void 0:C.url;_.t("web_remove_web_navigation_endpoint_data")||(l=void 0,e=e||((l=_.q(x,VAL))==null?void 0:l.url));if(e&&e!=="/service_ajax"){if(l=_.nU(e,pl$))return O=_.Hw(l),{navigatingCommand:x,href:O};_.ft(new _.ry("AttributedString URL could not be sanitized",e))}}return{}};
c4w=function(O){return O.button!==void 0?O.button===0&&!(O.shiftKey||O.altKey||O.metaKey||O.ctrlKey):!(O.shiftKey||O.altKey||O.metaKey||O.ctrlKey)};
tAm=function(O,x,e,l){e=!Aq(e);var C,Q,L;if((C=_.q(x,_.Q9))!=null&&C.nofollow||(Q=_.q(x,_.Hq))!=null&&Q.nofollow||(L=_.q(x,_.$b))!=null&&L.nofollow||e)O.rel$="nofollow";var k;x=((k=_.q(x,_.$b))==null?void 0:k.target)==="TARGET_NEW_WINDOW"?"_blank":l===void 0?"":l;O.target$=x};
qWw=function(O,x){x.clickTrackingParams&&(O.params={itct:x.clickTrackingParams});O.onpointerdown=function(e){RlL(e)};
O._data=x};
UvW=function(O){(O.loggingUrls||[]).forEach(function(x){xb(x.baseUrl,x.attributionSrcMode)})};
RlL=function(O){var x=O.currentTarget;O=GIm(function(){return x.href});
var e=x.params;O&&_.uh(O,e||{},8,!0)};
_.me=function(O,x){(O=_.p_(O))&&_.Rl(O,x)};
_.Rl=function(O,x){xgi(function(e){x?e.resolveCommand(O,x):e.resolveCommand(O)})};
WfL=function(O,x){var e=["yt-core-attributed-string__link"];x!=null&&x.noLinkColor||((x==null?0:x.isOverlay)?e.push("yt-core-attributed-string__link--overlay-call-to-action-color"):e.push("yt-core-attributed-string__link--call-to-action-color"),(x==null?0:x.linkInheritColor)&&e.push("yt-core-attributed-string--link-inherit-color"));e={className:e.join(" "),tabindex$:"0"};var l=O.onTap||O.onLongPress;if(!l)return e;var C=aJ8(O);C&&(e["aria-label$"]=C);x=_.Ux({elementsCommand:l,elementConfig:e,skipOnClick:!(x==
null||!x.skipOnClick),forceNewState:!0});O.onLongPress&&(l=new mvN(function(){var Q=_.p_(O.onLongPress);Q&&_.GG().resolve(_.Xc).resolveCommand(Q)}),x&&scN(l,x));
return x||e};
aJ8=function(O){var x,e;return(x=O.onTapOptions)==null?void 0:(e=x.accessibilityInfo)==null?void 0:e.accessibilityLabel};
hlL=function(O){var x=O;O<=16777215&&(x+=parseInt("ff000000",16));return _.aF(x)};
zl7=function(O){var x=O.isDarkTheme;var e=O.extension;O=O.runColor;var l=void 0;if(e=e==null?void 0:e.colorMap){x=x?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";e=_.T(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,x===C.key){l=C.value;break}}l==null&&O&&(l=O);if(l)return hlL(l)};
sx=function(O){var x=O.config;var e=O.image;var l=O.imageConfig;var C=O.imageWrapperConfig;var Q=O.run;var L=O.tag;var k=O.textLength;var M=O.startIndex===void 0?0:O.startIndex;O=O.length;M===void 0&&(M=0);Q={run:Q,startIndex:M,endIndex:O!==void 0?M+O:k,tag:L};e&&(Q.image=e);l&&(Q.imageConfig=l);C&&(Q.imageWrapperConfig=C);x&&(Q.config=x);return Q};
H9m=function(O,x){var e=[];e.push("yt-core-attributed-string");(x==null?0:x.className)&&e.push(x==null?void 0:x.className);(x==null?0:x.ellipsisTruncate)?e.push("yt-core-attributed-string--ellipsis-truncate"):(x==null?0:x.noWrap)?e.push("yt-core-attributed-string--white-space-no-wrap"):(x==null?0:x.noPreWrap)||e.push("yt-core-attributed-string--white-space-pre-wrap");(x==null?0:x.linkInheritColor)&&e.push("yt-core-attributed-string--link-inherit-color");O.alignment&&e.push(r4W(O.alignment));O.lineBreakMode&&
e.push("yt-core-attributed-string--word-wrapping");return e.join(" ")};
Kfs=function(O,x){if(O.weight)return O.weight;switch(O.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 x?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
dv$=function(O){switch(O){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"}};
r4W=function(O){switch(O){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"}};
zO=function(O,x,e){var l=x;O.content&&e&&(e=O.content.indexOf("\n"),e!==-1&&(l=Math.min(x,e)));if(!O.content||O.content.length<=l)x=O;else if(O.attachmentRuns||O.commandRuns||O.decorationRuns||O.styleRuns||O.paragraphStyleRuns){x=Ws(O.content,l);e=l;var C=O.attachmentRuns;if(C){var Q=[];C=_.T(C);for(var L=C.next();!L.done;L=C.next())L=Object.assign({},L.value),L.startIndex===void 0||L.startIndex>=e||(L.length||(L.length=0),L.length+L.startIndex>e&&(L.length=e-L.startIndex),Q.push(L));e=Q}else e=void 0;
Q=neL(l,O.commandRuns);C=l;var k=O.decorationRuns;if(k){L=[];k=_.T(k);for(var M=k.next();!M.done;M=k.next()){M=M.value;var G=_.q(M.textDecorator,hB);if(G&&G.startIndex!==void 0&&!(G.startIndex>=C)){M=Object.assign({},M,{textDecorator:{highlightTextDecorator:Object.assign({},G)}});G=_.q(M.textDecorator,hB);if(!G.length||G.length+G.startIndex>C)G.length=C-G.startIndex;L.push(M)}}C=L}else C=void 0;L=neL(l,O.styleRuns);if(k=O.paragraphStyleRuns)for(O=[],k=_.T(k),M=k.next();!M.done;M=k.next()){var X=M.value;
M=Object.assign({},X);if(!(M.startIndex===void 0||M.startIndex>=l)){if(!M.length||M.length+M.startIndex>l)M.length=l-M.startIndex;G=[];var y=void 0,Z=void 0;if((y=X)==null?0:(Z=y.listGroup)==null?0:Z.listItems)for(X=_.T(X.listGroup.listItems),y=X.next();!y.done;y=X.next())if(y=Object.assign({},y.value),!(y.startIndex===void 0||y.startIndex>=l)){if(!y.length||y.length+y.startIndex>l)y.length=l-y.startIndex;G.push(y)}G.length>0&&(M.listGroup||(M.listGroup={}),M.listGroup=Object.assign({},M.listGroup,
{listItems:G}));O.push(M)}}else O=void 0;x={content:x,attachmentRuns:e,commandRuns:Q,decorationRuns:C,styleRuns:L,paragraphStyleRuns:O}}else x=Object.assign({},O,{content:Ws(O.content,l)});return x};
neL=function(O,x){if(x){var e=[];x=_.T(x);for(var l=x.next();!l.done;l=x.next())if(l=Object.assign({},l.value),!(l.startIndex===void 0||l.startIndex>=O)){if(!l.length||l.length+l.startIndex>O)l.length=O-l.startIndex;e.push(l)}return e}};
Ws=function(O,x){var e=x,l;if(l=e>0)l=O.charCodeAt(e-1),l=l>=55296&&l<=56319;l&&(e=O.charCodeAt(e),l=e>=56320&&e<=57343);l&&--x;return O.substring(0,x)};
ve$=function(O,x,e){e=e===void 0?uE8:e;if(O){var l=_.GG().resolve(GQ);l||_.t("mweb_no_observer_killswitch")?K2w(O,{data:x,observer:l,visibilityCallback:e,hideOption:YWm,showOption:B0N,layer:O.layer}):_.ft(new _.ry("Warning: monitorVisibility called with null observer",O.tagName,x==null?void 0:x.loggingDirectives,x==null?void 0:x.trackingParams))}else _.ft(new _.ry("Warning: monitorVisibility called with null element",x==null?void 0:x.loggingDirectives,x==null?void 0:x.trackingParams,x==null?void 0:
x.rendererContext))};
ger=function(O,x){var e=[],l=O.content.length,C,Q=(C=_.GG().resolve(_.D0(_.rP)))==null?void 0:C();if(O.paragraphStyleRuns){C=_.T(O.paragraphStyleRuns);for(var L=C.next();!L.done;L=C.next()){var k=e.push,M=k.apply;var G=void 0;L=L.value;if((G=L.listGroup)!=null&&G.listItems){G=[];b:switch(L.listGroup.listType){case "LIST_TYPE_BULLET":var X="ul";break b;default:X="span"}G.push(sx({run:L,textLength:l,tag:X,config:{className:"yt-core-attributed-string__list-group"},startIndex:L.startIndex,length:L.length}));
X=_.T(L.listGroup.listItems);for(var y=X.next();!y.done;y=X.next()){y=y.value;b:switch(L.listGroup.listType){case "LIST_TYPE_BULLET":var Z="li";break b;default:Z="span"}G.push(sx({run:L,textLength:l,tag:Z,startIndex:y.startIndex,length:y.length}))}L=G}else L=[];M.call(k,e,_.Kx(L))}}if(O.styleRuns&&(x==null||!x.noStyleRuns))for(C=_.T(O.styleRuns),k=C.next();!k.done;k=C.next()){L=k=k.value;G=Q;M=x;G=zl7({extension:_.q(L.styleRunExtensions,fJw),isDarkTheme:G===void 0?!1:G,runColor:L.fontColor});y=L;
X=[];G&&X.push("yt-core-attributed-string--link-inherit-color");y.italic&&X.push("yt-core-attributed-string--italicized");y.underline&&y.strikethrough?X.push("yt-core-attributed-string--underline-strikethrough",dv$(y.underline)):y.underline?X.push("yt-core-attributed-string--underlined",dv$(y.underline)):y.strikethrough&&X.push("yt-core-attributed-string--strikethrough",dv$(y.strikethrough));if(y.baselineOffset){a:switch(y.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":y="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":y="yt-core-attributed-string--baseline-offset-superscript";break a;default:y="yt-core-attributed-string--baseline-offset-unknown"}X.push(y)}X=X.join(" ");y={};if(L.weight||L.weightLabel)y.fontWeight=Kfs(L,M==null?void 0:M.isHeadline).toString();G&&(y.color=G);e.push(sx({run:k,textLength:l,tag:"span",config:{className:X,style:y},startIndex:k.startIndex,length:k.length}))}if(O.decorationRuns)for(C=_.T(O.decorationRuns),k=C.next();!k.done;k=C.next())k=k.value,
M={},k.textDecorator&&(X=k.textDecorator,L=Q===void 0?!1:Q,y=[],G=_.q(X,hB),X=_.q(X,J47),G?(X=y,y=X.concat,Z=[],(L=zl7({extension:_.q(G.highlightTextDecoratorExtensions,wls),isDarkTheme:L,runColor:G.backgroundColor}))&&Z.push("background-color: "+L+";"),G.backgroundCornerRadius!==void 0&&Z.push("border-radius: "+G.backgroundCornerRadius+"px;"),G.leftPadding!==void 0&&Z.push("padding-left: "+G.leftPadding+"px;"),G.rightPadding!==void 0&&Z.push("padding-right: "+G.rightPadding+"px;"),G.topPadding!==
void 0&&Z.push("padding-top: "+G.topPadding+"px;"),G.bottomPadding!==void 0&&Z.push("padding-bottom: "+G.bottomPadding+"px;"),y=y.call(X,Z)):X&&(G=y,y=G.concat,L=L?"#2ba640":"#107516",L=X.color?hlL(X.color):L,L=["padding: 2px;","border-top: solid "+L+" 2px;","border-bottom: solid "+L+" 2px;","background: linear-gradient(135deg, "+L+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+L+" 3px, rgba(0, 0, 0, 0) 3px);"],y=y.call(G,L)),L=y.join(" "),M.style$=L,L=k.textDecorator,G=[],X=_.q(L,
J47),_.q(L,hB)?G.push("yt-core-attributed-string--highlight-text-decorator"):X&&G.push("yt-core-attributed-string--bracket-text-decorator"),L=G.join(" "),M.className=L,M.dir="auto"),L=_.q(k.textDecorator,hB),G=_.q(k.textDecorator,J47),X=_.q(k.textDecorator,hB),y=_.q(k.textDecorator,J47),e.push(sx({run:k,textLength:l,tag:"span",config:M,startIndex:(L==null?void 0:L.startIndex)||(G==null?void 0:G.startIndex)||0,length:(X==null?void 0:X.length)||(y==null?void 0:y.length)||0}));if(O.commandRuns&&(x==
null||!x.noEndpoints))for(Q=_.T(O.commandRuns),C=Q.next();!C.done;C=Q.next())C=C.value,k=WfL(C,x),e.push(sx({run:C,textLength:l,tag:"a",config:k,startIndex:C.startIndex,length:C.length}));if(O.attachmentRuns)for(O=_.T(O.attachmentRuns),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;M=k=void 0;C={className:"yt-core-attributed-string--inline-block-mod"};if((M=Q.element)==null?0:M.properties){M=(k=Q.element)==null?void 0:k.properties;k=[];M=_.q(M,SWr);if(M==null?0:M.margin)M=M.margin,M.left&&k.push("margin-left: "+
Il(M.left)+";"),M.right&&k.push("margin-right: "+Il(M.right)+";"),M.top&&k.push("margin-top: "+Il(M.top)+";"),M.bottom&&k.push("margin-bottom: "+Il(M.bottom)+";");k=k.length!==0?k.join(" "):void 0;C.style$=k}L=void 0;k={alt:"",preserveHeight:!0,preserveWidth:!0};M=["yt-core-attributed-string__image-element"];if(Q.alignment){a:switch(Q.alignment){case "ALIGNMENT_BASELINE":G="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":G="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:G="yt-core-attributed-string__image-element--image-alignment-bottom"}M.push(G)}if((L=Q.element)==null?0:L.properties)L=[],G=_.q(Q.element.properties,SWr),(G==null?0:G.height)&&L.push("height: "+Il(G.height)+";"),(G==null?0:G.width)&&L.push("width: "+Il(G.width)+";"),L=L.length!==0?L.join(" "):void 0,k.style$=L,G=void 0,L=((G=_.q(Q.element.properties,jcL))==null?void 0:G.label)||"",k.alt=L;k.className=M.join(" ");M=void 0;X=G=void 0;L=((X=Q.element)==null?0:X.type)?(G=_.q(Q.element.type,
N0L))==null?void 0:G.image:void 0;e.push(sx({run:Q,textLength:l,tag:"img",image:L,imageConfig:k,imageWrapperConfig:C,startIndex:Q.startIndex,length:(M=Q.length)!=null?M:0}))}if(x==null?0:x.headerRuns)for(x=_.T(x.headerRuns),O=x.next();!O.done;O=x.next())if(O=O.value,O.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(O.headerMapping)){a:{switch(O.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":Q=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":Q="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":Q="yt-core-attributed-string--heading-3";break a}Q=void 0}e.push(sx({run:O,textLength:l,tag:"span",config:Q?{className:Q}:void 0,startIndex:O.startIndex,length:O.length}))}return e};
_.Hs=function(O){return(O==null?void 0:O.content)!==void 0};
$vn=function(O){return _.Hs(O)?O:_.Ps(O)};
i9r=function(O){return O.image!==void 0&&O.imageConfig!==void 0};
O4m=function(O,x){if(x==null?0:x.userInput)for(O=_.T(O),x=O.next();!x.done;x=O.next())if(x=x.value,x.tag!=="a"&&x.tag!=="li"){var e=void 0;(e=x).config||(e.config={});x.config.dir=x.tag==="ul"?_.GG().resolve(_.K_):"auto"}};
xdr=function(O){return function(x){var e=O.run;(e.onTap!==void 0||e.onLongPress!==void 0)&&_.q(e,kIV)&&ve$(x,{loggingDirectives:_.q(e,kIV)})}};
eNV=function(O){return function(x){for(var e in O)(M3[e]||M3[N4["default"]])(x,e,O[e])}};
b4V=function(O,x){l6m(x);var e={data:null,start:0,end:O.length,parts:[]};x=_.T(x);for(var l=x.next();!l.done;l=x.next())l=l.value,C2n(e,l.startIndex,l.endIndex,l);Q6L(O,e);return e};
C2n=function(O,x,e,l){for(var C=_.T(O.parts),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;if(typeof Q==="string")throw Error("nh");if(Q.start<=x&&e<=Q.end){C2n(Q,x,e,l);return}}O.parts.push({data:l,parts:[],start:x,end:e})};
Q6L=function(O,x){for(var e=x.parts.length;e>=0;e--){var l=x.parts[e],C=x.parts[e-1],Q=e===x.parts.length?x.end:l.start;C=e===0?x.start:C.end;Q!==C&&x.parts.splice(e,0,O.slice(C,Q));l&&Q6L(O,l)}};
l6m=function(O){O.sort(function(x,e){if(x.startIndex<e.startIndex)return-1;if(e.startIndex<x.startIndex)return 1;x=x.endIndex-x.startIndex;e=e.endIndex-e.startIndex;return x>e?-1:e>x?1:0})};
_.ThL=function(O){var x=O.thumbnails;if(x){O={sources:[]};x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l={};l.url=e.url;l.width=e.width;l.height=e.height;O.sources.push(l)}return O}};
LIm=function(O,x,e,l){if(!x)return O.length>=1?O[O.length-1]:null;if(l)for(var C=_.T(O),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var L=void 0,k=(L=Q.url)==null?void 0:L.indexOf(l);if(k!==void 0&&k>=0)return Q}l=_.T(O);for(C=l.next();!C.done;C=l.next())if(C=C.value,C.width&&C.height&&(e&&C.width>=x||!e&&C.height>=x))return C;for(x=O.length-1;x>=0;x--)if(e&&O[x].width||!e&&O[x].height)return O[x];return O[0]};
_.ks$=function(O){var x;return(O=(x=O.sources)==null?void 0:x[0])?O.width/O.height:0};
_.AoV=function(O){if(O.sources){O=_.T(O.sources);for(var x=O.next();!x.done;x=O.next()){x=x.value;var e=void 0;if((e=x.clientResource)==null?0:e.imageName)return x}}};
Mtn=function(O){var x;if((x=O.clientResource)!=null&&x.imageColor)return _.aF(O.clientResource.imageColor)};
_.Gsw=function(O,x,e,l,C,Q,L){if(!x||x.length===0||x[0].clientResource)return null;if(e&&x[0].url)return x[0].url;l===void 0&&(l=!0);if(l){var k;O=DdL*(C||(O==null?void 0:(k=O.getBoundingClientRect())==null?void 0:k.width)||0)}else{var M;O=DdL*(Q||(O==null?void 0:(M=O.getBoundingClientRect())==null?void 0:M.height)||0)}x=LIm(x,O,l,L);return(x==null?0:x.url)?x.url:(x==null?0:x.imageData)?x.imageData:null};
FIn=function(O,x,e){e=e?[e]:[];O.opacity&&e.push("opacity: "+O.opacity+";");x&&O.placeholderColor?(O=_.aF(O.placeholderColor),e.push("background-color: "+O+";")):e.push("background-color: transparent;");return e.join(" ")};
XWN=function(O,x,e,l,C){var Q=["ytCoreImageHost"];x&&Q.push(x);e||Q.push("ytCoreImageFillParentHeight");l||Q.push("ytCoreImageFillParentWidth");switch(O.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":Q.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":Q.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":Q.push("ytCoreImageContentModeCenter");break;default:Q.push("ytCoreImageContentModeScaleToFill")}O.flipForRtlLayout&&Q.push("ytCoreImageFlipRtl");
switch(C){case "TOP_START":var L;Q.push(((L=document.body)==null?void 0:L.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return Q.join(" ")};
yoV=function(O){var x;if(O==null?0:(x=O.clientResource)==null?0:x.imageName){var e;O=(e=O.clientResource)==null?void 0:e.imageName;a:{switch(O){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":e="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":e="yt-logos-ext:yt-logo-updated";break a}e=void 0}return e||or7.get(O)||O}};
tt8=function(O){return _.t("mweb_wiz_skip_render")?Z4r(O):ErL(O)};
Z4r=function(O){return function(x){var e=Nar("wink-root");$3r();ggn();cAw(e,_.D(O,x))}};
ErL=function(O){var x=x===void 0?!1:x;return function(e){if(!x||!_.t("mweb_skip_keto_to_c3_if_no_data")||e.data!==void 0){var l=oU(!1);try{var C=e.children;_.t("mweb_render_outside_patch_killswitch")||io?C?Aa(_.D(O,e,C)):Aa(_.D(O,e)):_.ft(new _.ry("ketoToC3 called outside of a patch",{tagName:O.TAG_NAME}))}finally{oU(l)}}}};
qEr=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
coi=function(O,x){O.onViewportEntered=x;P2V.observe(O)};
I6i=function(){var O={rootMargin:"10%",threshold:.01};_.t("mweb_enable_set_io_root_to_null_safari")?O.root=null:_.t("mweb_enable_set_io_root_to_body_safari")&&(O.root=document.body);return new IntersectionObserver(function(x,e){x.filter(function(l){return l.intersectionRect.height>0}).forEach(function(l){l=l.target;
if(!_.t("mweb_enable_only_update_image_when_connected")||l.isConnected!==!1){var C;(C=l.onViewportEntered)==null||C.call(l);e.unobserve(l)}})},O)};
Vt$=function(O,x,e,l,C){function Q(){if(l){var k=l.loadedClass,M=l.notifyOnUnloaded;k&&_.dP(O,k);M&&O.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function L(){var k=e(x,O);k&&O.getAttribute("src")!==k&&(_.t("mweb_enable_only_update_image_when_connected")&&O.isConnected===!1||k===O.src||(O.src=k),Q())}
C=C===void 0?!0:C;O.removeAttribute("src");Q();x&&(C?coi(O,L):L())};
pWs=function(O,x,e){if(!x)return!1;x=e(x,O);e=O.getAttribute("src");return x&&x===e&&O.complete};
RNr=function(O,x){for(var e in x)e==="className"?O.className=x[e]:(M3[e]||M3[N4.default])(O,e,x[e])};
Udm=function(O,x,e,l){tt8(_.n_)({contentMode:x.contentMode,loadedClass:x.loadedClass,isPreloaded:x.isPreloaded,notifyOnLoaded:x.notifyOnLoaded,notifyOnUnloaded:x.notifyOnUnloaded,preferredThumbnail:x.preferredThumbnail,preserveHeight:x.preserveHeight,preserveWidth:x.preserveWidth,objectPosition:x.objectPosition,targetWidth:x.targetWidth,targetHeight:x.targetHeight,shouldShowPlaceholder:x.shouldShowPlaceholder,useWidth:x.useWidth,isToggled:x.isToggled,alt:x.alt,className:x.className,onerror:x.onerror,
onload:x.onload,style$:x.style$,color:x.color,width:x.width,height:x.height,"aria-hidden$":x["aria-hidden$"],draggable:x.draggable,"data-disabled$":x["data-disabled$"],data:O,callback:e,renderLazy:l===void 0?!0:l,hideOn404:!1})};
md8=function(O,x,e){e=e===void 0?!1:e;var l=O.sources!==void 0?O:_.ThL(O);if(l){var C=x.onload;x.onload=function(M){var G=M.target;e&&G.naturalWidth===120||_.uV(G,"ytCoreImageLoaded");x.notifyOnLoaded&&G.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));C==null||C(M)};
x.targetWidth&&x.preserveWidth&&(x.width=x.targetWidth);x.targetHeight&&x.preserveHeight&&(x.height=x.targetHeight);var Q=_.AoV(l),L=Q&&yoV(Q);if(L)return(O=Mtn(Q))&&(x.color=O),{type:"icon",iconName:L,config:Object.assign({},x,x.alt?{}:{"aria-hidden$":"true"},{"aria-label$":x.alt,role:"img"})};if(O.sources===void 0){x.alt=O.accessibility&&O.accessibility.accessibilityData&&O.accessibility.accessibilityData.label||x.alt;x.style$=FIn(O,x.shouldShowPlaceholder,x.style$);var k;x.isPreloaded=!((k=_.q(O,
a68))==null||!k.isPreloaded)}x.contentMode&&!l.contentMode&&(l.contentMode=x.contentMode);x.className=XWN(l,x.className,x.preserveHeight,x.preserveWidth,x.objectPosition);x.loadedClass="ytCoreImageLoaded";return{type:"image",image:l,config:x}}};
_.Y0=function(){var O=_.vw.apply(0,arguments);return _.bD(s6W,function(x){var e=O.map(function(l){return l==null?void 0:l(x)});
return function(){return void e.forEach(function(l){return void(l==null?void 0:l())})}})};
Bs=function(O,x){var e=x==null?void 0:x.initial;return _.aw(function(){_.vL(!0);return e=O(e)},{equals:x==null?void 0:x.isEqual},"rSlKsc")};
WIs=function(O,x){if(O===x)return!0;if(O===void 0||x===void 0)return!1;var e,l,C,Q,L,k,M,G;return O.content===x.content&&((e=O.styleRuns)==null?void 0:e.length)===((l=x.styleRuns)==null?void 0:l.length)&&((C=O.commandRuns)==null?void 0:C.length)===((Q=x.commandRuns)==null?void 0:Q.length)&&((L=O.attachmentRuns)==null?void 0:L.length)===((k=x.attachmentRuns)==null?void 0:k.length)&&((M=O.decorationRuns)==null?void 0:M.length)===((G=x.decorationRuns)==null?void 0:G.length)};
ro7=function(O,x){if(O){var e=$vn(O);if(e!=null&&e.content)if(_.t("attr_string_reactive"))tt8(hNV)({text:O,config:x});else{var l=!(x==null||!x.ariaLabel)||!(e.commandRuns&&e.commandRuns.length!==0||e.paragraphStyleRuns&&e.paragraphStyleRuns.length!==0);O=l?x==null?void 0:x.ariaLabel:null;l=l?"text":null;T0w("span",{className:H9m(e,x),dir$:(x==null?0:x.userInput)?"auto":void 0,"aria-label$":O,role$:l},function(){if(e.styleRuns||e.commandRuns||e.attachmentRuns||e.decorationRuns||e.paragraphStyleRuns){var C=
ger(e,x);O4m(C,x);C=b4V(e.content,C);C=_.T(C.parts);for(var Q=C.next();!Q.done;Q=C.next())zNr(Q.value)}else Qpw(e.content)})}}};
zNr=function(O){typeof O==="string"?Qpw(O):i9r(O.data)?T0w("span",O.data.imageWrapperConfig,function(){Udm(O.data.image,O.data.imageConfig)}):T0w(O.data.tag,O.data.config,function(x){xdr(O.data)(x);
x=_.T(O.parts);for(var e=x.next();!e.done;e=x.next())zNr(e.value)})};
KIn=function(O){return O.parts.map(H4V)};
H4V=function(O){if(typeof O==="string")return O;O=i9r(O.data)?_.D("span",{el:_.Y0(eNV(O.data.imageWrapperConfig))},_.D(_.n_,Object.assign({},{data:O.data.image},O.data.imageConfig))):_.D(O.data.tag,{el:_.Y0(xdr(O.data),eNV(O.data.config))},O.parts.map(H4V));return U0(O)};
ddL=function(O,x){return O===x?!0:O===void 0||x===void 0?!1:O.noStyleRuns===x.noStyleRuns&&O.noLinkColor===x.noLinkColor&&O.noEndpoints===x.noEndpoints&&O.headerRuns===x.headerRuns&&O.isOverlay===x.isOverlay&&O.linkInheritColor===x.linkInheritColor&&O.userInput===x.userInput&&O.isHeadline===x.isHeadline};
nrm=function(O){return function(){var x,e,l,C,Q,L,k,M,G,X,y,Z,E,P;return{ariaLabel:(x=O.ariaLabel)==null?void 0:x.call(O),className:(e=O.className)==null?void 0:e.call(O),ellipsisTruncate:(l=O.ellipsisTruncate)==null?void 0:l.call(O),isOverlay:(C=O.isOverlay)==null?void 0:C.call(O),linkInheritColor:(Q=O.linkInheritColor)==null?void 0:Q.call(O),noEndpoints:(L=O.noEndpoints)==null?void 0:L.call(O),noStyleRuns:(k=O.noStyleRuns)==null?void 0:k.call(O),noLinkColor:(M=O.noLinkColor)==null?void 0:M.call(O),
noPreWrap:(G=O.noPreWrap)==null?void 0:G.call(O),noWrap:(X=O.noWrap)==null?void 0:X.call(O),skipOnClick:(y=O.skipOnClick)==null?void 0:y.call(O),userInput:(Z=O.userInput)==null?void 0:Z.call(O),headerRuns:(E=O.headerRuns)==null?void 0:E.call(O),isHeadline:(P=O.isHeadline)==null?void 0:P.call(O)}}};
YEN=function(O,x){O=new ukr(O,x);_.BH(O);throw O;};
Bhr=function(O,x,e){var l=OWV(O);O._numRenders=0;try{var C=_.vpN(function(){return _.D(x,Object.assign({},e))})}catch(L){var Q=function(k){k.args||(k.args=[]);
k.args.push("Error in web component wrapper");k.args.push(O.tagName.toLowerCase());return k};
_.vH(L instanceof Error?Q(L):new ukr("Wiz rendering error",O.tagName.toLowerCase()));throw L;}finally{OWV(l)}return C};
_.wP=function(O,x,e){function l(X){var y={};X=_.T(X);for(var Z=X.next();!Z.done;Z=X.next()){Z=Z.value;var E=void 0,P=void 0,U=void 0,W=_.bh((U=(P=(E=Z).getAttribute)==null?void 0:P.call(E,"slot"))!=null?U:"children");if(E=y[W])E.push(Z);else if(W in Q||W==="children")y[W]=[Z]}X=_.T(Object.keys(y));W=X.next();for(Z={};!W.done;Z={content$jscomp$59:void 0},W=X.next())W=W.value,W!=="children"&&(Z.content$jscomp$59=y[W],y[W]=function(z){return function(){return z.content$jscomp$59}}(Z));
return y}
e=e===void 0?{}:e;O.componentType!==HL||YEN("Components must be marked reactive to be used from web component wrapper.",x);var C,Q=(C=e.props)!=null?C:{};jU.add(x);var L=vrL();C=function(){var X=L.apply(this,arguments)||this;X.rawProps={};X.queuingRender=!1;X.dispose=function(){};
X.isWebComponentWrapper=!0;X.isReparenting=!1;X.hasRendered=!1;return X};
_.c(C,L);C.prototype.render=function(){this.hasRendered=!0;for(var X=_.T([].concat(_.Kx(this.attributes))),y=X.next();!y.done;y=X.next())y=y.value,y.name!=="slot"&&y.name!=="hidden"&&this.removeAttribute(y.name);X=Object.assign({},this.componentProps,this.slotProps);y=_.T(Bhr(this,O,X));X=y.next().value;y=y.next().value;!(X[0]instanceof Element)||X.length>1?YEN("Wrapped Wiz components must return a single root element.",x):(X=X[0].tagName.toLowerCase(),X!==x&&YEN("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(X+" !== '"+x),x),this.dispose=y)};
C.prototype.setUpProps=function(){for(var X=this.rawProps,y=this.attributes,Z=_.T(Object.keys(Q)),E=Z.next();!E.done;E=Z.next()){E=E.value;var P=void 0;((P=this)==null?0:P[E])&&this[E]!==f6r&&X[E]===void 0&&(X[E]=this[E],(P=Object.getOwnPropertyDescriptor(this.constructor.prototype,E))&&Object.defineProperty(this,E,P))}Z=_.T(y);for(E=Z.next();!E.done;E=Z.next()){P=E.value;E=_.bh(P.name);var U=E==="class"&&!y.getNamedItem("class-name");if(E in Q||U)P=P.value===""||P.value==="true"?!0:P.value==="false"?
!1:isNaN(Number(P.value))?P.value:Number(P.value),E!=="class"||X.className?X[E]=P:X.className=P}y={};for(var W in Q)Q[W]!==_.vs&&Q[W]!==Jon&&(X[W]instanceof Function&&YEN("Function props must be configured as STATIC, not SIGNAL.",x),E=_.T(_.Iw(X[W],void 0,"q4ZVff")),Z=E.next().value,E=E.next().value,y[W]=E,X[W]=Z);X=_.T([X,y]);this.componentProps=X.next().value;this.setters=X.next().value;this.slotProps=l(this.childNodes)};
C.prototype.connectedCallback=function(){wWN===x&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in Q&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
C.prototype.disconnectedCallback=function(){if(!this._isInert){var X;a:{if(_.f_)for(X=this;X;){if(_.JB.has(X)){X=!0;break a}X=X.parentElement}X=!1}if(X)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){X=_.T([].concat(_.Kx(this.attributes)));for(var y=X.next();!y.done;y=X.next()){y=y.value;var Z=void 0;y.name==="slot"||y.name==="hidden"&&((Z=e.unsafeExternallySettableAttributes)==null?0:Z.has("hidden"))||this.removeAttribute(y.name)}}this.innerText="";JCr(this)}}};
C.prototype._setPendingPropertyOrPath=function(){};
C.prototype.notifyPath=function(){};
_.Dy.Object.defineProperties(C.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var k=_.T(Object.keys(Q)),M=k.next(),G={};!M.done;G={prop$jscomp$109:void 0},M=k.next())G.prop$jscomp$109=M.value,M=void 0,((M=e.legacyPolymer)==null?0:M.forwardHostProps)&&vPN.has(G.prop$jscomp$109)||Object.defineProperty(C.prototype,G.prop$jscomp$109,{set:function(X){return function(y){var Z=this;this._isInert||(this.setters?mF(function(){var E,P;return void((P=(E=Z.setters)[X.prop$jscomp$109])==null?void 0:P.call(E,y))}):(this.rawProps[X.prop$jscomp$109]=y,this.queuingRender&&X.prop$jscomp$109===
"data"&&y!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(G),
get:SE8.has(G.prop$jscomp$109)?void 0:function(){return f6r}});
customElements.define(x,C)};
_.j6r=function(O,x){return(O=_.Sf(O,x))?_.Hw(_.Yy(O)):null};
_.jf=function(O){if(O=_.Sf(O,Number.MAX_VALUE,void 0,"width"))return _.Yy(O)};
_.Sf=function(O,x,e,l){l=l===void 0?"width":l;if(!O||!O.length)return null;if(_.t("kevlar_tuner_should_always_use_device_pixel_ratio")){var C=window.devicePixelRatio;_.t("kevlar_tuner_should_clamp_device_pixel_ratio")?C=Math.min(C,_.yF("kevlar_tuner_clamp_device_pixel_ratio")):_.t("kevlar_tuner_should_use_thumbnail_factor")&&(C=_.yF("kevlar_tuner_thumbnail_factor"));Nhn=C}else Nhn||(Nhn=window.devicePixelRatio);C=Nhn;_.t("kevlar_tuner_should_always_use_device_pixel_ratio")?x*=C:C>1&&(x*=C);if(_.t("kevlar_tuner_min_thumbnail_quality"))return O[0].url||
null;C=O.length;if(_.t("kevlar_tuner_max_thumbnail_quality"))return O[C-1].url||null;if(e)for(var Q=0;Q<C;Q++)if(O[Q].url.indexOf(e)>=0)return O[Q].url||null;for(e=0;e<C;e++)if(O[e][l]>=x)return O[e].url||null;for(x=C-1;x>0;x--)if(O[x][l])return O[x].url||null;return O[0].url||null};
i4w=function(){Nj.size?setTimeout(function(){gP(grm)},0):$dW=0};
grm=function(){var O=(0,_.F2)(),x=null,e=!1;Nj.forEach(function(C){C.loaded=!0;C.loadTime=O;C.pendingPaint=!1;var Q=OE7.get(C);Q&&Q.resolve(O);x=C;e||!C.ftlEligible&&C.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(e=!0)});
var l;((l=x)==null?0:l.markDirty)&&x.markDirty();Nj.clear();$dW=0;e&&xFr(O)};
eDr=function(O){Nj.add(O);O.pendingPaint=!0;$dW||($dW=_.$0(_.vn,i4w))};
ljr=function(O){O.loaded=!1;O.loadTime=Infinity;var x=OE7.get(O);x&&(x.reject(Error("th")),OE7.delete(O));O.pendingPaint&&(Nj.delete(O),O.pendingPaint=!1)};
_.CSN=function(O){var x=O.indexOf(":");return x===-1?{originalName:O}:{originalName:O.substring(0,x),datasyncId:O.substring(x+1)}};
_.bEn=function(){return _.A(function(O){if(QTr!==void 0)return O.return(QTr);QTr=new Promise(function(x){var e;return _.A(function(l){switch(l.nextAddress){case 1:return _.tS(l,2),l.yield(_.iV.open("test-only"),4);case 4:return l.yield(_.iV.delete("test-only"),5);case 5:_.lb(l,3);break;case 2:if(e=_.VP(l),e instanceof Error&&e.name==="SecurityError")return x(!1),l.return();case 3:x("caches"in window),_.Ra(l)}})});
return O.return(QTr)})};
kvs=function(){return _.A(function(O){if(O.nextAddress==1)return O.yield(_.bEn(),2);if(!O.yieldResult)return O.return(void 0);TZN||(TZN=new L7L);return O.return(TZN)})};
ARs=function(O){var x,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return Q.yield(kvs(),2);case 2:x=Q.yieldResult;if(!x)throw Error("vh");return Q.yield(x.open("yt-player-local-img"),3);case 3:return e=Q.yieldResult,Q.yield(e.match(O),4);case 4:l=Q.yieldResult;if(!l)throw Error("wh");return Q.yield(l.blob(),5);case 5:return C=Q.yieldResult,Q.return(C)}})};
Mr$=function(O,x){for(var e in O)if(O.hasOwnProperty(e)&&x[e])return e;return null};
DFr=function(O){return"stamp"+O.replace("-","_")+"_"};
Gvw=function(O){var x=O.match(/\[\[([\w\.]+)\]\]/);if(x&&x.length>1)return x[1];_.BH(Error("yh`"+O));return null};
F7$=function(O){return O===void 0?_.SS("REUSE_COMPONENTS",!1):O||!1};
yRn=function(O,x,e){e&&(x.is?(Xkr.has(x)&&(O=Xkr.get(x),e=O.listener,delete x[O.property],e.type==="element"&&x.removeEventListener(e.eventName,e.handler),Xkr.delete(x)),okW(x)):x.__proto__==HTMLElement.prototype&&(x=new _.ry("Rendererstamper removed a non custom element","Stamper: "+O+" element: "+(x&&x.nodeName)),_.ft(x)))};
ZEn=function(O,x,e,l){var C=x.node?x.node:x;_.$U(e).parentNode===C&&(x.removeChild(e),yRn(O,e,l));if(O=O1.get(e))O1.delete(e),_.vn.cancelJob(O);e.hidden=!1};
EkV=function(O,x,e,l){if(x&&x.children&&(e=x.children[e]))if(_.SS("DEFERRED_DETACH"))for(;e&&!O1.has(e);){var C=O,Q=x,L=e,k=l;L.hidden=!0;C=_.zl(_.vn,ZEn.bind(null,C,Q,L,k),0);O1.set(L,C);e=e.nextElementSibling}else for(;(L=x.lastElementChild)&&(x.removeChild(L),yRn(O,L,l),L!=e););};
_.xz=function(){for(var O=_.vw.apply(0,arguments),x=!0,e=_.T(O),l=e.next();!l.done;l=e.next())if(typeof l.value!=="string"){x=!1;break}return x?O.join(" ").trim()||void 0:function(){for(var C="",Q=_.T(O),L=Q.next();!L.done;L=Q.next())if(L=L.value,typeof L==="function"&&(L=L()),L)if(typeof L==="string")C+=" "+L;else for(var k in L)if(L.hasOwnProperty(k)){var M=L[k];typeof M==="function"&&(M=M());M&&(C+=" "+k)}C=C.trim()||void 0;return _.vL(C)}};
_.trm=function(O,x){return _.xE(O.entities,"markersEngagementPanelSyncEntity",x)};
_.ee=function(O,x){return _.xE(O.entities,"playerStateEntity",x)};
qDL=function(O,x){return _.xE(O.entities,"fantasyWinProbabilityEntity",x)};
PSW=function(O,x){return _.xE(O.entities,"fantasyTeamEntity",x)};
cRr=function(O,x){return _.xE(O.entities,"fantasyPlayerEntity",x)};
IjL=function(O,x){return _.xE(O.entities,"booleanEntity",x)};
VrL=function(O,x){return _.xE(O.entities,"qrCodeEntity",x)};
pkr=function(O){return _.xE(O.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
UFr=function(O){var x;return(x=RDN[O])!=null?x:"EVENT_SPAN_TYPE_UNKNOWN"};
ajs=function(O){var x=O.nodeName;if(O.id)return x+="#"+O.id;if(O.classList)for(var e=_.T(O.classList),l=e.next();!l.done;l=e.next())x+="."+l.value;O.parentElement&&(x=ajs(O.parentElement)+" > "+x);return x};
mF7=function(O){return function(x){var e=UFr(x.type);return e==="EVENT_SPAN_TYPE_UNKNOWN"?O(x):VoL("event",{type:e,nodepath:x.target instanceof Element?ajs(x.target):void 0},function(){return O(x)})}};
_.lk=function(O){O&&PQ7("event")&&(O=mF7(O));return Eps(function(x){var e,l=(e=O)==null?void 0:e(x);return typeof l==="boolean"?l:!0})};
C7=function(O){return function(){return O()?O():void 0}};
zDi=function(O){var x=_.Q5("animated-rolling-character"),e=zow(),l=dr(O.character)||dr(O.previousCharacter),C=_.T(rAr()),Q=C.next().value,L=C.next().value;_.YK(function(){if(window.ResizeObserver&&_.t("web_fix_rolling_numbers_zoom_safari")){var k=new _.QI(function(){var G,X,y=Math.round(((X=(G=x.value.querySelector("div"))==null?void 0:G.getBoundingClientRect().height)!=null?X:0)*100)/100;y&&L(y)},500),M=new ResizeObserver(function(){k.fire()});
M.observe(x.value);return function(){M.disconnect();k.dispose()}}});
Vhw(function(){var k=_.t("web_fix_rolling_numbers_zoom_safari")?Q:O.marginMultiplier;if(k){var M;(M=e.value)==null||M.cancel();l?(M=O.previousCharacter?Number(O.previousCharacter)+10:O.rollUp?0:30,O.shouldAnimate||(M-=sTr(O,M))):(M=O.rollUp?0:2,O.shouldAnimate||(M-=O.rollUp?-1:1));x.value.style.marginTop="-"+M*k+"px";O.shouldAnimate?e.value=W7w(x.value,O,M,l,k):x.value.style.display=O.character?"":"none"}});
return _.D("animated-rolling-character",{el:x,class:"animatedRollingCharacterHost"},oCW(l,function(){for(var k=[],M=1;M<30;M++)k.push(_.D("div",null,M%10));return _.D(_.Xm,null,_.D("div",null,"\u00a0"),k,_.D("div",null,"\u00a0"))},function(){return hDn(O.character)}))};
hDn=function(O){return _.D(_.Xm,null,_.D("div",null,"\u00a0"),_.D(_.Xm,null,oCW(!O||_.AL(O),function(){return _.D("div",null,"\u00a0")},function(){return _.D("div",null,O)})),_.D("div",null,"\u00a0"))};
W7w=function(O,x,e,l,C){e=new Animation(new KeyframeEffect(O,[{transform:"translateY(0px)"},{transform:"translateY("+(l?sTr(x,e):x.rollUp?-1:1)*C+"px)"}],rRL),document.timeline);x.character?(O.style.display="",e.onfinish=null):e.onfinish=function(){O.style.display="none"};
e.play();return e};
sTr=function(O,x){var e=Number(O.character)+10;if(O.previousCharacter)if(O.character){var l=Number(O.character),C=Number(O.previousCharacter);O=O.rollUp?C<l?e:e+10:C<l?e-10:e}else O=O.rollUp?30:0;else O=O.character==="0"?e:O.rollUp?e-10:e+10;return x-O};
HEN=function(O){return function(x){var e={},l;for(l in x){var C=void 0,Q=void 0;((C=void 0)==null?0:(Q=C.callbacks)==null?0:Q[l])||(e[l]=x[l])}return _.D(BY$,null,function(){for(var L in e)x[L]=_.vL(e[L]);x.disableReactiveLogging=!0;return _.D(O,Object.assign({},x))})}};
nk7=function(O,x,e,l,C,Q,L){e=new Animation(new KeyframeEffect(O,[{transform:"translateY(0px)"},{transform:"translateY("+(Q?K7$(x,e,l,C):l?-1:1)*L+"px)"}],dFN),document.timeline);x?(O.style.display="",e.onfinish=null):e.onfinish=function(){O.style.display="none"};
e.play();return e};
K7$=function(O,x,e,l){var C=Number(O)+10;x?O?(O=Number(O),x=Number(x),e=e?x<O?C:C+10:x<O?C-10:C):e=e?30:0:e=O==="0"?C:e?C-10:C+10;return l-e};
YDi=function(O){var x=zow(),e=zow();afV(function(){x.value=O.numberText;e.value=O.numberValue},[O.numberText]);
var l=O.fontSizeMultiplier?O.heightPx*O.fontSizeMultiplier:O.heightPx,C=hor(function(){if(O.numberText){var L=O.numberText;var k=O.forceRollUp||!e.value||!O.numberValue||e.value<O.numberValue;var M=!!O.shouldAnimate,G=x.value,X=[],y=0,Z=0,E=(G?G.replace(/\D/g,"").length:0)-(L?L.replace(/\D/g,"").length:0);G=G?G.split(/(\d)/).filter(Boolean):[];for(L=L.split(/(\d)/).filter(Boolean);E<0;){var P=L[Z];X.push({character:P,rollUp:k,marginMultiplier:l,shouldAnimate:M});Z++;dr(P)&&E++}for(;y<E;)P=G[y],X.push({previousCharacter:P,
rollUp:k,marginMultiplier:l,shouldAnimate:M}),y++,dr(P)||E++;for(;Z<L.length;)E=L[Z],P=G[y],dr(E)===dr(P)?(Z++,y++):dr(E)?(y++,E=void 0):dr(P)&&(Z++,P=void 0),X.push({character:E,previousCharacter:P,rollUp:k,marginMultiplier:l,shouldAnimate:M});k=X}else k=[];return k},[O.numberText]),Q=O.numberText?["height: "+l+"px;",
"line-height: "+O.heightPx+"px;"].join(" "):"";return _.D("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:Q,dir:"ltr","aria-hidden":"true"},C.map(function(L){return _.D(uLW,Object.assign({},L))}))};
BZr=function(O){switch(O){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}};
vk8=function(O,x){if(!O&&!x)return"medium";O=Math.max(O||0,x||0);return O>=256?"large":O>=96?"medium":"small"};
fjr=function(O){switch(O){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
JRn=function(O){return new KeyframeEffect(O,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
wkV=function(O){return new KeyframeEffect(O,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.bk=function(O){if(O.length===0)return qZV(O,"D");var x=_.T(qZV({source:function(){return O()},
computation:function(C,Q){return(Q==null?0:Q.value)?O(Q.value):C}},"E")),e=x.next().value,l=x.next().value;
x=x.next().value;return[e,l,x]};
_.T7=function(O){return function(){var x="",e;for(e in O){for(var l=O[e];typeof l==="function";)l=l();l!==void 0&&l!==null&&(x+="; "+e+": "+l)}return x.length>0?_.vL(x.slice(2)):_.vL()}};
SDL=function(O){switch(O){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"}};
jTL=function(O,x){if(x)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(O)switch(O){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"}};
OTr=function(O,x,e,l,C,Q,L){var k=NZL(O),M=k.disabled,G=k.iconPosition,X=k.style,y=k.focused,Z=function(){return!!U()&&G()==="icon-only"},E=function(){return!!U()&&G()==="icon-only-40"},P=function(){return!!U()&&G()==="icon-with-label"},U=function(){return!!x||!(l==null||!l())};
return{type:function(){return X()==="call-to-action-inverse"?"text":X()==="overlay-dark"&&O().type!=="filled"&&O().type!=="tonal"?"tonal":O().type},
shouldFocus:function(){return(y()||(Q==null?void 0:Q()))&&!M()},
hasIconLeading:function(){return!!U()&&G()==="leading"},
hasIconTrailing:function(){return!!U()&&G()==="trailing"},
hasIconLeadingTrailing:function(){return!!U()&&!!(e||C!=null&&C())&&G()==="leading-trailing"},
hasIconOnly:Z,hasIconOnly40:E,hasIconWithLabel:P,iconButton:function(){return Z()||E()||P()},
visiblyDisabled:function(){return(M()?"disabled":O().state)==="disabled"||M()},
overrideSmallSizeIcon:function(){return!O().ignoreIconSizeOverride&&gks(O(),U())},
iconToRender:x?x:function(){return _.D(_.L7,{icon:l,gradientColor:function(){var W;return(W=O().customColors)==null?void 0:W.iconGradientColor},
size:function(){return $FW(O(),!0,O().ignoreIconSizeOverride)},
active:function(){return O().toggled},
iconFilter:function(){return iEm(O())},
animateIcon:L})},
secondaryIconToRender:e?e:function(){return _.D(_.L7,{icon:C,size:function(){return $FW(O(),!0,O().ignoreIconSizeOverride)},
active:function(){return O().toggled},
iconFilter:function(){return iEm(O())}})}}};
NZL=function(O){return{size:function(){return O().size},
style:function(){return O().style},
focused:function(){return O().focused},
disabled:function(){return O().disabled},
onTap:function(x){var e,l;return(l=(e=O()).onTap)==null?void 0:l.call(e,x)},
alignByText:function(){return O().alignByText},
aTagConfig:function(){return O().aTagConfig},
customColors:function(){return O().customColors},
segmentedPosition:function(){return O().segmentedPosition},
toggled:function(){return O().toggled},
toggleable:function(){return O().toggleable},
accessibilityLabel:function(){return O().accessibilityLabel},
onToggle:function(x){var e,l;return(l=(e=O()).onToggle)==null?void 0:l.call(e,x)},
iconPosition:function(){return O().iconPosition},
oneOffCustomTextWrap:function(){return O().oneOffCustomTextWrap},
disableTextEllipsis:function(){return O().disableTextEllipsis},
disableBackdropFilter:function(){return O().disableBackdropFilter},
tooltipText:function(){return O().tooltipText},
ariaHidden:function(){return O().ariaHidden},
tabIndex:function(){return O().tabIndex},
buttonText:function(){return O().buttonText},
formattedButtonText:function(){return O().formattedButtonText},
animatedTextProps:function(){return O().animatedTextProps},
onClickRateLimitMs:function(){return O().onClickRateLimitMs}}};
gks=function(O,x){x=(O.iconPosition==="icon-only"||O.iconPosition==="icon-only-40"||O.iconPosition==="icon-with-label")&&x;return!O.segmentedPosition&&x&&O.size==="S"};
$FW=function(O,x,e){switch(O.size){case "XS":return 16;case "S":return!e&&gks(O,x)?24:16;default:return 24}};
xUN=function(O){switch(O){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"}};
eTr=function(O){switch(O){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"}};
lFN=function(O){switch(O){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"}};
iEm=function(O){if(O.style==="overlay-dark"&&O.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
kz=function(O){return O&&O.endsWith("px")?Number(O.slice(0,-2)):0};
bT8=function(O){var x=x===void 0?{}:x;O=_.T(_.bk(O));var e=O.next().value;return[function(l){var C=_.aw(function(){var k,M,G,X;return{text:(k=e())!=null?k:"",location:(M=x.location)!=null?M:"bottom",offset:(G=x.offset)!=null?G:16,delay:(X=x.delay)!=null?X:1}},void 0,"MgTrkc");
_.uo(function(){var k=C();_.cL(function(){_.vn.addJob(function(){AI.notify(l,k)},4)})},"WlsgZc");
var Q=function(){CT8(l,C())},L=function(){QiW()};
l.addEventListener("mouseenter",Q);l.addEventListener("focus",Q);l.addEventListener("mouseleave",L);l.addEventListener("blur",L);l.addEventListener("tap",L);_.YO(function(){l.removeEventListener("mouseenter",Q);l.removeEventListener("mouseleave",L);l.removeEventListener("focus",Q);l.removeEventListener("blur",L);l.removeEventListener("tap",L);QiW()})},
O.next().value]};
LE7=function(O,x){if(!Le){var e;I9W(function(){return e=uQr(O,x)});
return e}O.parent=TQs();return uQr(O,x)};
TQs=function(){var O=_.A6(Le||void 0,K88);return _.tCr(O)?void 0:O};
M5=function(O,x){_.Rl(O,Object.assign({},x,{forceClickLogging:!0}))};
Agm=function(O,x){var e=_.p_(O==null?void 0:O.onTap),l={};e&&(l.getClickedVisualElement=function(){var C;return kf8(O,e,x==null?void 0:(C=x.value)==null?void 0:C.visualElement)});
l=_.Ux({elementsCommand:O.onTap,forceNewState:!0,additionalCommandArgs:l});return al(l)?l:void 0};
Mnr=function(O,x,e,l){M5(O,Object.assign({},{form:{element:x,event:e}},l))};
DUL=function(O,x,e,l,C){var Q=void 0;return function(L){var k=_.p_(e?O==null?void 0:O.onDisabledTap:O==null?void 0:O.onTap);if(k){var M;Q=(M=Q)!=null?M:x==null?void 0:x.value;if(k)if(_.t("web_button_vm_click_client_ve_killswitch"))Mnr(k,Q,L);else{var G;M=kf8(O,k,(G=Q)==null?void 0:G.visualElement);if(C){Mnr(k,C,L,{clickedVisualElement:M,form:{element:C}});return}Mnr(k,Q,L,{clickedVisualElement:M})}}l&&l(L)}};
kf8=function(O,x,e){x=x==null?void 0:x.clickTrackingParams;var l,C;O=O==null?void 0:(l=O.loggingDirectives)==null?void 0:(C=l.clientVeSpec)==null?void 0:C.uiType;if(e&&O&&!x)return e};
Gfw=function(O){switch(O){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"}};
FEi=function(O){switch(O){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"}};
XB8=function(O){switch(O){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"}};
ofL=function(O){switch(O){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"}};
_.Dl=function(O){return _.aw(function(){xts()();return Cir(O)},{debugName:"d8B62c"},"DEXkhd")};
yg8=function(O,x){return _.xE(O.entities,"engagementToolbarStateEntityPayload",x)};
Ef8=function(O){(O=_.Fv(O))&&_.ZTw(O)};
_.ZTw=function(O){var x=_.Pq();x&&_.zD(x,O)};
tn7=function(O,x,e){_.Sh(O,"yt-open-popup-action",[x,e||O])};
qzr=function(O,x){var e=_.vE(O,"endpoint"),l=_.vE(O,"action");return(e=l?l:e)&&x&&(e=x.navigationEndpointPopupMap[e])&&(O=_.i8(e,O),(e=_.vE(O,"renderer"))&&x.supportedPopups.hasOwnProperty(e))?{openPopupAction:{popupType:x.popupTypeMap[e],popup:O}}:null};
PTr=function(O,x,e,l){if(l){var C;e=e==null?void 0:(C=e.data)==null?void 0:C.contents;(C=e instanceof Array&&e.length?e[0]:e)&&(e=_.vE(C,"renderer"))&&l.supportedPopups.hasOwnProperty(e)&&(x.stopPropagation(),tn7(O,{openPopupAction:{popupType:l.popupTypeMap[e],popup:C}}))}};
Vn$=function(O,x,e,l){l=l===void 0?!1:l;var C=cgr(x);if(C){C.href&&hU(C.href);var Q=x.button;Q=Q!==void 0?Q===0&&!G7(x):!G7(x);C.data&&Q&&IF8(O,C,x,e,l)}};
IF8=function(O,x,e,l,C){C=C===void 0?!1:C;var Q=_.yF("pbj_navigate_limit",-1)===0;pBr(x);_.GG().resolve(_.D0(gl));var L=x.data;if(Object.keys(L).length!==0)if(!_.t("unplugged_web_disable_actions_for_cec_endpoint")&&_.q(L,_.ih))_.t("endpoint_behavior_command_executor_fix_killswitch")||(e.preventDefault(),e.stopPropagation()),_.gr(O,[L],O);else if(l=qzr(L,l))L.loggingUrls&&L.loggingUrls.forEach(function(M){M.baseUrl&&_.On(M.baseUrl)}),e.preventDefault(),e.stopPropagation(),tn7(O,l,x);
else{var k=RTr(0,x.data,e);if(O=x.getForm)O=O(),k.tempData=k.tempData||{},k.tempData=Object.assign({},k.tempData,O);O=_.n3(e);if(l=O.find(function(M){return!!M.visualElement}))k.createScreenConfig=k.createScreenConfig||{},k.createScreenConfig.clickedVisualElement=l.visualElement;
if(!Q)if(e.preventDefault(),e.stopPropagation(),_.q(L,_.UUr)&&!C&&_.lV.instance)_.lV.instance.resolveCommand(L,k);else if(_.t("kevlar_command_handler_formatted_string")&&!C&&_.lV.instance&&aFr(L))C=O.find(function(M){return!!M.is})||e.target,e={form:Object.assign({},k,{event:e,
element:C,originatingNode:x})},_.lV.instance.resolveCommand(L,e);else{L=_.n3(e);e=[];for(C=0;C<L.length;C++)(Q=L[C].is)&&e.push(Q);ej8({parents:e.join(","),text:x.innerText},function(){_.wr(x,"yt-navigate",k)})}}};
mU8=function(O){if(O=cgr(O))pBr(O),FTV(O.href)};
cgr=function(O){O=_.n3(O);for(var x,e=0;e<O.length;e++)if(x=O[e],x.tagName==="A"&&x.classList.contains("yt-simple-endpoint")){if(!x.data)break;return x}return null};
G7=function(O){return O.shiftKey||O.altKey||O.metaKey||O.ctrlKey};
si7=function(O,x){var e={itct:x.clickTrackingParams};_.t("kevlar_client_side_screens")&&(!_.q(x,_.kU)||_.t("kevlar_exclude_endpoint_killswitch"))&&(e.endpoint=JSON.stringify(x));_.t("enable_unknown_lact_fix_on_html5")&&_.GG().resolve(_.D0(_.Fn))&&(e.lact=_.Gl());MIr(e);_.uh(O,e)};
pBr=function(O){O.href&&Object.keys(O.data).length!==0&&si7(O.href,O.data)};
aFr=function(O){for(var x=_.T(WE$),e=x.next();!e.done;e=x.next())if(O[e.value])return!1;return!0};
hTL=function(){if(Xn)return Xn;if(window.lottie)return Xn=Promise.resolve(window.lottie);var O=_.f$(_.wz("LOTTIE_URL"));return O?Xn=new Promise(function(x,e){var l=document.createElement("script");l.addEventListener("load",function(){x(lottie)});
l.addEventListener("error",function(C){var Q="Lottie library failed to load.";C?C.message&&(Q+=" Original description: "+C.message,_.JG(C,Q)):C=Error(Q);_.ft(C);e(C)});
l.setAttribute("async","");_.QP(l,O);document.head.appendChild(l)}):Promise.reject(Error("zh"))};
zTN=function(){return Xn?Xn:hTL()};
rgw=function(O){if(O)switch(O){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.t("kevlar_use_wil_icons"))return O=(O=pkr(_.u9().getState()))&&O.animationLightUrl&&O.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:O.animationLightUrl,pathDarkTheme:O.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,O?O:o2.get("LIKE");break;case "LIKE_DELHI_PLAYER":return o2.get("LIKE_DELHI_PLAYER")}};
HTi=function(O){var x=rgw(O);if(x)return x;switch(O){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return o2.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return o2.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return o2.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return o2.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return o2.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return o2.get("NOTIFICATION_BELL")}};
KEr=function(O,x){if(!O.closest)return!1;x=!!rgw(x);return _.wz("ID_TOKEN")&&x?!!O.closest("segmented-like-dislike-button-view-model")||!!O.closest("yt-player-quick-action-buttons"):!1};
nfr=function(O,x){if(!O||dU7)x=!1;else{var e;if(!(e=KEr(O,x)))if(O.closest)if(e=!_.wz("ID_TOKEN"),O=O.closest("ytd-subscription-notification-toggle-button-renderer-next"),e||!O)e=!1;else{var l;e=((l=O.data)==null?void 0:l.targetId)==="notification-bell"&&x!=="EXPAND_MORE"}else e=!1;x=e}return x};
uXr=function(O){var x,e;return _.A(function(l){switch(l.nextAddress){case 1:return _.tS(l,2),l.yield(fetch(O),4);case 4:return x=l.yieldResult,l.yield(x.json(),5);case 5:return l.return(l.yieldResult);case 2:e=_.VP(l),_.ft(e),_.Ra(l)}})};
Yz$=function(O,x){var e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return(e=x?O.pathDarkTheme:O.path)?Q.yield(Promise.all([uXr(e),hTL()]),2):Q.return();l=Q.yieldResult;C=l[0];yI.set(e,C);_.Ra(Q)})};
vfV=function(O,x,e,l){function C(L,k){if(x.value===k&&!x.cancelled&&O!=null&&O.value){for(;O.value.firstChild;)O.value.removeChild(O.value.firstChild);O.value.classList.add("ytSpecIconShapeHost");L(O.value,l)}}
var Q=_.BQ8(_.GG().resolve(_.ef),e);typeof Q==="function"?(x.value=null,C(Q,null)):(x.value=Q,Q.then(function(L){C(L,Q)}))};
Jg8=function(O,x){var e=document.createElement("div"),l=_.nO(e,function(){return _.D(_.F,{cond:O,then:function(C){return _.D(fF$,{data:C,options:x})}})},"ba");
return[e,l]};
_.Zl=function(O,x){if(x){var e={};wBr.forEach(function(l){l=Szs(x,l,"--yt-lightsource-");Object.assign(e,l)});
jiw.forEach(function(l){l=Szs(x,l,"--yt-basic-");Object.assign(e,l)});
_.lH(O,e)}};
Szs=function(O,x,e){var l={};l[e+_.Qo(x)]=O&&O[x]?_.aF(O[x]):"";return l};
_.tI=function(O,x,e){E1[O]||(E1[O]={});E1[O][x]=e};
_.q5=function(O){E1[O]||(E1[O]={});return E1[O]};
NQL=function(O){if(!O)return{};var x=O.foregroundTitleColor,e=O.backgroundColor;O=O.borderColor;var l="text";O?l="outline":e&&(l="filled");return{type:l,customColors:{color:x?_.aF(x):void 0,backgroundColor:e?_.aF(e):void 0,borderColor:O?_.aF(O):void 0}}};
xIi=function(O){var x=O.renderer;var e=O.element;var l=O.commandController;var C=O.onTapCallback;var Q=O.skipCommandHandling;var L=O.overrides;var k=O.forceIcon;var M=O.forceModernIconButton;var G=O.forceDisabled;var X=O.isSubscribe===void 0?!1:O.isSubscribe;var y=O.isPressed===void 0?!1:O.isPressed;var Z=O.useButtonSize===void 0?!1:O.useButtonSize;O=gfi(x);X&&(O.style="mono",O.type="filled");k=!x.icon||!k&&x.text?x.icon?x.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:M?"icon-only":"icon-only-40";k==="icon-only-40"&&(O.type="text");var E;M=Object;X=M.assign;Z=$Us(x,Z);y=!!x.isSelected||!_.t("web_propagate_is_pressed_killswitch")&&!!y;var P=x.isSelected!==void 0;G=G===void 0?x.isDisabled:G;var U=x.text?_.Ps(x.text):void 0;var W,z,r,f=((W=x.accessibilityData)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)||((r=x.accessibility)==null?void 0:r.label);W=f?f:_.db(x.text);e=iTr(x,e,l,C,Q);l=OvN(x);l!=null&&l.length?(l=_.Ux({innertubeCommand:IJw(l),
forceNewState:!0}),l=al(l)?l:void 0):l=void 0;return X.call(M,{},O,Z,{iconPosition:k},L,{focused:!1,toggled:y,toggleable:P,disabled:G,formattedButtonText:U,accessibilityLabel:W,onTap:e,aTagConfig:l},NQL((E=x.colorData)==null?void 0:E.basicColorPaletteData),{oneOffCustomTextWrap:x.oneOffCustomTextWrap})};
iTr=function(O,x,e,l,C){return function(Q){var L=OvN(O);l(L,Q);if(!C){L=_.T(L);for(var k=L.next();!k.done;k=L.next())M5(k.value,{form:{element:x,event:Q},commandController:e})}}};
OvN=function(O){var x=[];O.command&&x.push(O.command);O.serviceEndpoint&&x.push(O.serviceEndpoint);O.navigationEndpoint&&x.push(O.navigationEndpoint);return x};
$Us=function(O,x){if(x)switch(O.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(O.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
gfi=function(O){switch(O.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"}}};
e88=function(O,x){return typeof O!=="object"||O===null?!1:Object.keys(x).every(function(e){return e in O})};
_.Pe=function(O){return Object.fromEntries(Object.keys(O).map(function(x){return[x,x]}))};
lTN=function(O,x,e){return O6r(e,function(l,C){return function(Q){var L=_.vw.apply(1,arguments);return e88(Q,O)?C.apply(null,[Q[x]].concat(_.Kx(L))):C.apply(null,[Q].concat(_.Kx(L)))}})};
_.ce=function(O){return function(x,e){return lTN(O,x,e)}};
Csm=function(O,x){var e;return(e=_.xE(O,"playlistLoopStateEntity",x))!=null?e:void 0};
QGi=function(O,x){var e;return(e=_.xE(O,"toggleMenuServiceItemEntity",x))!=null?e:void 0};
_.I2=function(O){return O!=null&&O.watch?O.watch.isTheaterMode:!1};
_.VI=function(O){return O!=null&&O.watch?O.watch.isWatchFullscreen:!1};
_.p7=function(O){if(O.watch.isSwatcherooActive)return!0;O=_.bvN(O);return _.t("web_watch_enable_single_column_grid_view")?O:!1};
_.bvN=function(O){return O.watch.isWatchNarrowWidth};
_.TtL=function(O){return O.watch.openEngagementPanels};
R2=function(O,x){return _.xE(O.entities,"likeStatusEntity",x)};
LZr=function(O,x){return _.xE(O.entities,"likeCountEntity",x)};
_.k9L=function(O,x){return _.xE(O.entities,"stringEntity",x)};
AVr=function(O,x){return _.xE(O.entities,"dataFreshnessEntity",x)};
Mqs=function(O,x){if(!O)return!1;var e,l=(e=_.q(O,_.xm))==null?void 0:e.signal;if(l&&x.signalEndpointMap)return!!x.signalEndpointMap[l];var C;if((e=(C=_.q(O,_.U1))==null?void 0:C.request)&&x.continuationEndpointMap)return!!x.continuationEndpointMap[e];for(var Q in O)if(x.commandEndpointMap[Q])return!0;return!1};
DIn=function(O,x){if(x.streamingEndpointMap)for(var e in O)if(x.streamingEndpointMap[e]&&(O=x.streamingEndpointMap[e]))return O()};
G98=function(O,x){var e,l=(e=_.q(O,_.xm))==null?void 0:e.signal;if(l&&x.signalEndpointMap&&(e=x.signalEndpointMap[l]))return e();var C;if((e=(C=_.q(O,_.U1))==null?void 0:C.request)&&x.continuationEndpointMap&&(C=x.continuationEndpointMap[e]))return C();for(var Q in O)if(x.commandEndpointMap[Q]&&(O=x.commandEndpointMap[Q]))return O()};
FZn=function(O){var x={"Content-Type":"application/json"};_.wz("EOM_VISITOR_DATA")?x["X-Goog-EOM-Visitor-Id"]=_.wz("EOM_VISITOR_DATA"):_.wz("VISITOR_DATA")&&(x["X-Goog-Visitor-Id"]=_.wz("VISITOR_DATA"));x["X-Youtube-Bootstrap-Logged-In"]=_.wz("LOGGED_IN",!1);_.wz("DEBUG_SETTINGS_METADATA")&&(x["X-Debug-Settings-Metadata"]=_.wz("DEBUG_SETTINGS_METADATA"));if(O!=="cors"){var e=_.wz("INNERTUBE_CONTEXT_CLIENT_NAME");e&&(x["X-Youtube-Client-Name"]=e);(e=_.wz("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(x["X-Youtube-Client-Version"]=
e);(e=_.wz("CHROME_CONNECTED_HEADER"))&&(x["X-Youtube-Chrome-Connected"]=e);(e=_.wz("DOMAIN_ADMIN_STATE"))&&(x["X-Youtube-Domain-Admin-State"]=e)}_.SS("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(O=_.wz("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(x["X-YouTube-Lava-Device-Context"]=O):O!=="cors"&&_.SS("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(O=_.wz("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(x["X-YouTube-Lava-Device-Context"]=O);return x};
X_L=function(O,x){x.watchNextResponse||x.reelItemWatchResponse?x.watchNextResponse?O.content=x.watchNextResponse:O.content=x.reelItemWatchResponse:x.playerResponse?O.player=x.playerResponse:x.reelWatchSequenceResponse&&(O.reelSequence=x.reelWatchSequenceResponse)};
_.a2=function(O){if(!O)return null;for(var x=[],e=0;e<O.textSegments.length;e++){var l=O.textSegments[e];l.text?x.push(l):l.emojiId&&x.push({emoji_id:l.emojiId})}return{text_segments:x}};
tqV=function(O,x,e,l,C,Q,L){Q=Q===void 0?[]:Q;var k=new _.mu;k.endpoint=e;if(!e)return _.vH(new _.ry("handle undefined endpoint",x.tagName)),k;var M=MRV(e);M.length&&(_.gr(O,M,x,l),k.actions=M);e.loggingUrls&&e.loggingUrls.forEach(function(X){X.baseUrl&&xb(X.baseUrl,X.attributionSrcMode)});
M=!_.t("web_skip_impression_click_killswitch")&&l&&l.impression;if(e.clickTrackingParams&&!oAV(e)&&!yVV(x)&&!M&&(M=_.k0(),!_.s1(M,x))){var G=x.getScreenLayer&&x.getScreenLayer();G?M.clickCommand(e,null,G):M.clickCommand(e,null)}M=!1;for(G=0;G<Q.length;G++)if((0,Q[G])(x,e,l)){M=!0;break}!M&&Zvr(e)&&(k.ajaxPromise=EAm(O,x,e,l,C,L));return k};
yVV=function(O){var x;return(O=(x=O.data)==null?void 0:x.navigationEndpoint)&&!!O.clickTrackingParams};
oAV=function(O){var x=_.q(O,_.xm);if(x&&(x=x.signal)&&qir.indexOf(x)>=0)return!0;for(var e in O)if(Pss.indexOf(e)>=0)return!0;return!1};
Zvr=function(O){var x;if(((x=_.q(O,_.xm))==null?void 0:x.signal)==="CLIENT_SIGNAL")return!1;for(var e in O)if(cV7.indexOf(e)>=0)return!1;O=Object.keys(O);return O.length===1&&O[0]==="loggingUrls"?!1:!0};
sGL=function(O,x,e,l,C,Q,L){var k=_.We.instance;if(k&&_.hI(k,l))var M=_.z7(k,l,C).then(function(X){return(X==null?0:X.data)?X:{data:X}});
else M=O.requestDataForServiceEndpoint(l,C),_.q(l,ITV)||_.q(l,Vqs)||_.q(l,_.p_7)||_.q(l,R8m)||_.ft(new _.ry("No RequestBuilder for endpoint",l));var G=_.He();G.promise.thenCatch(function(){var X=_.vE(l,"action")||_.vE(l,"command")||_.vE(l,"endpoint");X&&(X=l[X],X.hasOwnProperty("onFailureAction")?_.gr(x,[X.onFailureAction],e):X.hasOwnProperty("onFailureCommand")&&_.gr(x,X.onFailureCommand,e));M.cancel("Resolver promise rejected")});
M.then(function(X){if(X){var y=X.error;if(y){if(Q&&Q.onServerError)Q.onServerError(l,X);G.reject(new _.ry("Response error",l,y))}else if(X=X.data)if(y=X.error){if(Q&&Q.onServerError)Q.onServerError(l,X);G.reject(new _.ry("Returned error",l,y))}else{UIi(x,e,X,l);aTW(X);if(y=AAL(X))for(var Z=_.T(y),E=Z.next();!E.done;E=Z.next()){E=E.value;var P=_.GG().resolve(_.D0(mIr))||K7;if(!_.We.instance||!P.some(function(W){return!!_.q(l,W)})||_.t("kevlar_response_processor_allowlist_killswitch")){var U=P=void 0;
((U=_.q((P=E)==null?void 0:P.commandMetadata,_.e6))==null?0:U.sendPost)?_.N9(x,[E]):_.gr(x,[E],e)}}(Z=_.q(X==null?void 0:X.frameworkUpdates,dS))&&L&&L(Z);if(Q&&Q.onSuccess)Q.onSuccess(l,X);G.resolve(new _.n7(X,y))}}else G.reject(new _.ry("Invalid service endpoint provided",l))},function(X){G.reject(X)});
return G.promise};
aTW=function(O){var x;(O=(x=_.q(O==null?void 0:O.onResponseReceivedCommand,_.WZs))==null?void 0:x.continuationItems)&&(O==null?void 0:O.length)===1&&_.q(O[0],h8s)&&_.IR("so_r",void 0,"search_overview_answer")};
EAm=function(O,x,e,l,C,Q){var L;return(L=x.getNetworkManager&&x.getNetworkManager()?x.getNetworkManager():_.GG().resolve(_.D0(_.cR)))?sGL(L,O,x,e,l,C,Q):_.Za("No network manager.")};
UIi=function(O,x,e,l){if(e=e.trackingParams||e.loggingDirectives&&e.loggingDirectives.trackingParams){var C;(_.q(l,z8W)||_.q(l,rV8)||_.q(l,Hvn))&&l.clickTrackingParams?C=_.Fv(l.clickTrackingParams):_.t("web_graft_to_parent_command")&&l.clickTrackingParams&&(C=_.Fv(l.clickTrackingParams));var Q;l=(Q=x.getScreenLayer)==null?void 0:Q.call(x);x=_.k0().graftServerVe(e,C,l);_.jh(O,"yt-store-grafted-ve-action",[x])}};
_.KZ8=function(O){var x=new Image;return new _.If(function(e,l){x.addEventListener("load",function(){e()});
x.addEventListener("error",function(){l()});
x.src=O})};
dIr=function(O){return!!O};
nAr=function(O){return!!O};
uBL=function(O,x,e){var l=O.rowIndex;l!==void 0&&_.jh(O.hostElement,"yt-section-reactive-dismissal",[l,x,e])};
_.uk=function(O,x,e){O=_.T(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;if(l===x)break;for(var C=_.T(e),Q=C.next();!Q.done;Q=C.next())if(Q=Q.value,l.tagName===Q||!_.t("web_event_button_role_check_killswitch")&&l.role==="button"&&Q==="BUTTON")return!0}return!1};
_.Yz=function(O,x,e){O=_.T(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;if(l===x)break;for(var C=_.T(e),Q=C.next();!Q.done;Q=C.next())if(l.id===Q.value)return!0}return!1};
_.f7=function(){var O=_.GG().resolve(_.D0(_.Be));return O?(O=O.getCurrentPage())?_.ve(O):null:null};
_.JI=function(){var O=_.f7();if(!O){var x=_.GG().resolve(_.D0(_.Be)),e=x?typeof x:"no page manager";x=x?x.getCurrentPage():null;e=new _.ry("Player is missing when requested.",e,x?x.tagName:"no page");_.BH(e)}return O};
_.ve=function(O){return O&&O.getPlayer?O.getPlayer():null};
YiN=function(O,x){O={args:{raw_player_response:O}};x&&(O.args=Object.assign({},O.args,x));return O};
Bt$=function(O){if(O.args){if(O.args.raw_player_response)return O.args.raw_player_response;if(O.args.player_response)return JSON.parse(O.args.player_response)}};
_.vAN=function(O,x){var e={url:"/watch?v="+O.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};O.playlistId&&(e.url+="&list="+O.playlistId);O.playerParams&&(e.url+="&pp="+O.playerParams);O={watchEndpoint:O,commandMetadata:{webCommandMetadata:e}};x&&(O.clickTrackingParams=x);return O};
JV8=function(){return fTV||!!_.i8("yt.player.Application")};
Sir=function(){return w_s||!!document.querySelector("link#player-css")};
Nts=function(){function O(){fTV=!0;jGi.resolve()}
var x,e;return _.A(function(l){jGi||(jGi=new _.OA,JV8()?O():(x=document.createElement("script"),x.addEventListener("load",O),e=_.Hv(_.wz("PLAYER_JS_URL")),_.QP(x,e),document.head.appendChild(x)));return l.return(jGi.promise)})};
$Is=function(){function O(){w_s=!0;gA$.resolve()}
if(!gA$)if(gA$=new _.OA,Sir())O();else{var x=document.createElement("link");x.id="player-css";x.addEventListener("load",O);var e=_.Hv(_.wz("PLAYER_CSS_URL"));_.Lx(x,e,"stylesheet");document.head.appendChild(x)}return gA$.promise};
ivn=function(){return JV8()&&Sir()?Promise.resolve([]):Promise.all([Nts(),$Is()])};
Okw=function(O,x,e){var l={args:{}};O&&(l.args.raw_player_response=O);x&&(l.args.raw_watch_next_response=x);e&&(l.args=Object.assign({},l.args,e));return l};
Cvr=function(O,x,e){var l=!1;l=l===void 0?!0:l;O=typeof O==="string"?_.wS(document,O):O;var C=xNV+"_"+_.N$(O),Q=e7r[C];if(Q&&l)return lzr(x,e)?Q.api.loadVideoByPlayerVars(x.args||null):Q.loadNewVideoConfig(x),Q.api;Q=new Se(O,C,x,e,void 0);e7r[C]=Q;Q.addOnDisposeCallback(function(){delete e7r[Q.getId()]});
return Q.api};
lzr=function(O,x){return x&&x.serializedExperimentFlags?x.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):O&&O.args&&O.args.fflags?O.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
QAw=function(){var O=new _.OA;O.resolved=!1;var x=O.resolve;O.resolve=function(e){O.resolved=!0;x(e)};
return O};
TiW=function(O){var x={};bkL().install((x.document_disposed={callback:O},x))};
je=function(O,x){if(!O&&Math.random()<=_.yF("kevlar_unified_player_logging_threshold")){O=Error("Bh`"+(x?x:"Unspecified error"));if(_.t("kevlar_unified_player_throw_errors"))throw O;_.ft(O)}};
_.Lqm=function(){var O=_.i8("ytDebugData.callbacks");O||(O={},_.MB("ytDebugData.callbacks",O));return O};
AzL=function(O,x){var e=_.Lqm();if(_.t("web_dd_iu")||k28.includes(O))e[O]=x};
Mum=function(){return _.A(function(O){return O.return({isLeader:_.YJr(_.u9().getState()),c:_.wz("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.wz("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
DNn=function(){var O;_.A(function(x){if(x.nextAddress==1)return AzL("APP_STATE",Mum),x.yield(_.GG().resolve(_.N5),2);O=x.yieldResult;AzL("PI",function(){return _.A(function(e){return e.return(O.getVideoStats())})});
_.Ra(x)})};
G2n=function(O){var x=_.n1(_.sb(_.CV.location.href));O=_.n1(_.sb(O));return _.t("kevlar_clear_non_displayable_url_params")?x==gS(O):gS(x)==gS(O)};
gS=function(O){var x=_.Fqs(O);O=O.slice(0);var e=["frags"];_.t("kevlar_hide_pp_url_param")&&e.push("pp");_.t("kevlar_hide_time_continue_url_param")&&e.push("time_continue");e=_.T(e);for(var l=e.next();!l.done;l=e.next())l=l.value,O=_.Y7(_.n1(O),l);return _.n1(O)+(x?"#"+x:"")};
$z=function(O,x){x=Number(x)*1E3;var e=Math.round((0,_.F2)()),l=e.toString();O={innertubeResponse:O,serverDateTimestampMs:l,lastModifiedTimestampMs:l,expireTimestampMs:(e+x).toString()};if(x=_.wz("INNERTUBE_CONTEXT_CLIENT_NAME"))O.clientName=x;return O};
on7=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++XAs};
yzr=function(O){return!isNaN(O)&&O>0};
EnW=function(){_.t("web_adaptive_repeat_ase")&&Zkr&&_.uU("applicationStarted",Zkr)};
_.tun=function(){var O=_.q9(),x=_.Pq();x&&O&&_.HU(x,[O],!0)};
Pvs=function(O){return O&&qcw.some(function(x){return O.includes(x)})};
UNr=function(O){var x=_.q(O,_.$b);if(!x)return!1;var e=x.url,l=x.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!e)return _.BH(Error("Gh")),!1;if(x.target==="TARGET_NEW_WINDOW"){x={};_.t("resolve_url_parent_tracking_params")&&(!_.Lb(e)||kc(window.location.href,e))&&(x={endpoint:O,itct:O.clickTrackingParams});MIr(x);O=null;try{if(l){a:{var C=e,Q=x;l=l===void 0?!1:l;Q&&_.uh(C,Q);var L=_.Yy(C),k=_.Hw(L);C!=k&&_.OC(Error("ig`"+C));C=k;try{if(l){k=C;k=JYr(k);hU(k);O=_.$y(window,k,"_blank",
"attributionsrc");break a}}catch(Z){_.jS(Z)}hU(C);O=_.$y(window,L,"_blank")}czr(_.GG().resolve(Izr),O,e);return!0}}catch(Z){_.BH(Z)}_.uh(e,x);x={target:"_blank",noopener:!1};L=window;k=rk(e)?e:_.Yy(typeof e.href!="undefined"?e.href:String(e));l=self.crossOriginIsolated!==void 0;O="strict-origin-when-cross-origin";window.Request&&(O=(new Request("/")).referrerPolicy);C=x.noreferrer;if(l&&C&&O==="unsafe-url")throw Error("ue");O=C&&!l;C=x.target||e.target;Q=[];var M=[],G=!1;for(y in x){var X=x[y];switch(y){case "width":case "height":case "top":case "left":Q.push(y+
"="+X);break;case "target":break;case "noopener":case "noreferrer":X?M.push(y):(G=!0,M.push(y+"=false"));break;case "attributionsrc":Q.push(y+(X?"="+X:""));break;default:Q.push(y+"="+(X?1:0))}}var y=C!==void 0&&!["_blank","_self","_top","_parent",""].includes(C);y=U8()&&y;Vur&&l&&Q.length===0&&M.length>0&&!y&&!G?(M.length===2&&(M=["noreferrer"]),_.$y(L,k,C,M[0]),O=pAV()):(y=Q.join(","),_.Wi()&&L.navigator&&L.navigator.standalone&&C&&C!="_self"?(y=_.R9("A"),J7(y,k),y.target=C,O&&(y.rel="noreferrer"),
((x=x.attributionsrc)||x==="")&&y.setAttribute("attributionsrc",x),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,L,1),y.dispatchEvent(x),y=pAV()):O?(y=_.$y(L,"",C,y),L=_.Hw(k),y&&(y.opener=null,L===""&&(L="javascript:''"),L='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ik(L)+'">',L=SE(L),(x=y.document)&&x.write&&(x.write(NT(L)),x.close()))):((y=_.$y(L,k,C,y))&&x.noopener&&(y.opener=null),y&&x.noreferrer&&(y.opener=null)),O=y);czr(_.GG().resolve(Izr),
O,e);return!0}y=_.VF(e);y=Pvs(y)||e==="https://studio.youtube.com/";if(_.Lb(e)&&!kc(window.location.href,e)||y)hU(e),Z2(),_.zu(e,void 0,void 0,window.top,R7w);else return _.ft(new _.ry("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",O)),!1;return!0};
_.sAn=function(O,x){x=x===void 0?0:x;if(!(_.q(O,azm)||_.q(O,mN7)||_.q(O,_.$b)&&_.q(O,_.$b).url))return!1;var e,l=(e=_.q(O,_.$b))==null?void 0:e.url;e=l?{externalLinkData:{url:l}}:null;return _.k0().clickCommand(O,e,x)};
h7W=function(O,x,e,l,C){C=C===void 0?{}:C;return function(Q){var L,k;var M=((L=O.loggingDirectives)==null?0:(k=L.clientVeSpec)==null?0:k.uiType)?_.O9(O.loggingDirectives.clientVeSpec.uiType):void 0;C.clickedVisualElement||(C.clickedVisualElement=M);M=Wqr(O,x);e(M,Q);M=_.T(M);for(L=M.next();!L.done;L=M.next()){L=L.value;k=l;var G=Q,X=C;X.form?X.form.event=G:X.form={element:k,event:G};M5(L,X)}}};
Wqr=function(O,x){var e=[];x?(O.toggledCommand&&e.push(O.toggledCommand),O.toggledServiceEndpoint&&e.push(O.toggledServiceEndpoint)):(O.defaultCommand&&e.push(O.defaultCommand),O.defaultServiceEndpoint&&e.push(O.defaultServiceEndpoint),O.defaultNavigationEndpoint&&e.push(O.defaultNavigationEndpoint));return e};
z7w=function(O,x){var e=O.toggledStyle||O.style,l;switch((l=x?e:O.style)==null?void 0:l.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"}}};
_.xp=function(){return _.A(function(O){return O.nextAddress==1?O.yield(_.GG().resolve(_.N5),2):O.return(_.GG().resolve(rz8)())})};
_.eR=function(){return _.GG().resolve(rz8)()};
_.C5=function(){return BE(function(){return{lottieEl:void 0}})};
Hkm=function(O,x){return O.startsWith(x.uniqueId)};
Kq7=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(_.xp(),2);x=l.yieldResult;if((e=x)==null||!e.addEventListener)return Qu(),l.return();x.addEventListener("onCueRangeEnter",O);_.Ra(l)})};
dNr=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(_.xp(),2);x=l.yieldResult;if((e=x)==null||!e.removeEventListener)return Qu(),l.return();x.removeEventListener("onCueRangeEnter",O);_.Ra(l)})};
nnn=function(O){var x,e,l,C,Q;_.A(function(L){if(L.nextAddress==1)return L.yield(_.xp(),2);x=L.yieldResult;if((e=x)==null||!e.addCueRange)return Qu(),L.return();l=_.T(O.timings);for(C=l.next();!C.done;C=l.next())Q=C.value,x.addCueRange(O.uniqueId+"-"+Q,Q/1E3,(Q+100)/1E3);_.Ra(L)})};
uHs=function(O){var x,e,l,C,Q;_.A(function(L){if(L.nextAddress==1)return L.yield(_.xp(),2);x=L.yieldResult;if((e=x)==null||!e.removeCueRange)return Qu(),L.return();l=_.T(O.timings);for(C=l.next();!C.done;C=l.next())Q=C.value,x.removeCueRange(O.uniqueId+"-"+Q);_.Ra(L)})};
Ycn=function(){var O,x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(_.xp(),2);O=l.yieldResult;if((x=O)==null||!x.getPlayerState)return Qu(),l.return();e=O.getPlayerState();return l.return(e===2)})};
Qu=function(){_.ft(new _.ry("Smartimation player does not exist or is corrupted"))};
Bi7=function(){try{var O;return(O=window.CSS)!=null&&O.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(x){return _.ft(new _.ry("Smartimation CSS.supports threw an error")),!1}};
NiL=function(O,x,e,l,C){var Q=O.playlistId?vns:fzm;x=x();e=e();C=!!O.videoId&&C()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Ah(x))return Jzm({data:O,actionType:Q,disabled:C},e);if(O.videoId&&l())return wA$({data:O,actionType:Q,disabled:C});switch(x){case "TRANSFER_STATE_UNKNOWN":return wA$({data:O,actionType:Q,disabled:C});case "TRANSFER_STATE_FAILED":return O.videoId?ScV({data:O,actionType:Q,disabled:C}):jAL({data:O,actionType:Q,disabled:C});case "TRANSFER_STATE_COMPLETE":return jAL({data:O,
actionType:Q,disabled:C});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Jzm({data:O,actionType:Q,disabled:C},e);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return O.videoId?ScV({data:O,actionType:Q,disabled:C}):wA$({data:O,actionType:Q,disabled:C});default:return wA$({data:O,actionType:Q,disabled:C})}};
gni=function(O,x){var e=O.onTapCommand,l=_.p_(e);if(O.videoId&&_.q(l,_.bw))return _.q(l,_.bw).action=x,e;O.playlistId&&_.q(l,_.TA)&&(_.q(l,_.TA).action=x);return e};
wA$=function(O){var x=O.data;var e=O.actionType;O=O.disabled;return{text:$NN,iconType:"OFFLINE_DOWNLOAD",onTap:gni(x,e.ACTION_ADD),disabled:O}};
Jzm=function(O,x){var e=O.data;var l=O.actionType;O=O.disabled;var C="OFFLINE_DOWNLOAD";x>=0&&x<=.1?C="OFFLINE_DOWNLOADING_ZERO":x>.1&&x<=.3?C="OFFLINE_DOWNLOADING_TWENTY":x>.3&&x<=.5?C="OFFLINE_DOWNLOADING_FORTY":x>.5&&x<=.7?C="OFFLINE_DOWNLOADING_SIXTY":x>.7&&x<1?C="OFFLINE_DOWNLOADING_EIGHTY":x===1&&(C="OFFLINE_PIN");return{text:iki,iconType:C,onTap:gni(e,l.ACTION_REMOVE_WITH_PROMPT),disabled:O}};
jAL=function(O){var x=O.data;var e=O.actionType;O=O.disabled;return{text:OJW,iconType:"OFFLINE_PIN",onTap:gni(x,e.ACTION_REMOVE_WITH_PROMPT),disabled:O}};
ScV=function(O){var x=O.data;var e=O.actionType;O=O.disabled;return{text:xaL,iconType:"OFFLINE_DOWNLOAD",onTap:gni(x,e.ACTION_RETRY),disabled:O}};
_.L5=function(O,x){var e=xts();return _.aw(function(){e();return Cir(O,[_.vL(x)||""])},{debugName:"LUZslf"},"Z105t")};
euW=function(O){var x=_.L5(_.Vy,function(){return O().videoId}),e=_.L5(_.pA,function(){return O().playlistId});
return function(){return O().videoId?x:O().playlistId?e:_.T(_.Iw("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
lWV=function(O){var x=_.L5(Rx,function(){return O().videoId}),e=_.L5(_.u_V,function(){return O().playlistId});
return function(){return O().videoId?x:O().playlistId?e:_.T(_.Iw(0,void 0,"K4tgOc")).next().value}};
CMr=function(O){var x=_.L5(_.Ng8,function(){return O().videoId});
return function(){return O().videoId?x:_.T(_.Iw(!1,void 0,"Oaxwcf")).next().value}};
QQL=function(O){var x=_.L5(vaW,function(){return O().videoId});
return function(){return O().videoId?x:_.T(_.Iw("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
bJN=function(){return{}};
_.MM7=function(O,x,e){return{submitForm:function(){var l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){l=TsV(O());if(!l)return k.return();if(l.onSubmit)return L$W(x),l.onSubmit(),L$W(e),k.return();if(!l.submitConfig||!l.formData)return k.jumpTo(0);l.disableDuringSubmission&&khL(O(),!0);L$W(x);return k.yield(Arr(l.submitConfig,l.formData()),3)}C=k.yieldResult;L$W(e);if(((Q=C)==null?0:Q.submitResult)&&((L=l)==null?0:L.onSubmitResult))l.onSubmitResult(C.submitResult);l.disableDuringSubmission&&khL(O(),
!1);return k.return()})},
isValid:function(){var l=TsV(O());if(l){var C;return!((C=l.isValid)==null||!C.call(l))}return!0},
isSubmitting:function(){var l,C;return!!((l=TsV(O()))==null?0:(C=l.isSubmitting)==null?0:C.call(l))}}};
_.kp=function(){if(!Da7){var O=_.T(_.Iw(new Map,void 0,"Y1XnBc"));Da7=O.next().value;Gh$=O.next().value}return Da7};
_.F$r=function(O){Gh$(new Map(O))};
TsV=function(O){if(O)return _.kp()().get(O)};
Arr=function(O,x){var e;return _.A(function(l){return l.nextAddress==1?x?(e=_.GG().resolve(_.D0(XVn)))&&O.submitId?l.yield(e.submitForm(O.submitId,x,otV,O.params,O.clickTrackingParams),2):l.return(Promise.reject(Error("Ih"))):l.return(Promise.reject(Error("Hh"))):l.return(l.yieldResult)})};
khL=function(O,x){if(O){var e=_.kp();e().set(O,Object.assign({},e().get(O),{isSubmitting:function(){return x}}));
_.F$r(e())}};
L$W=function(O){if(O){var x=_.GG().resolve(_.Xc);x&&(O=_.p_(O()))&&x.resolveCommand(O)}};
ZJ$=function(O,x){x=x===void 0?{shouldPersist:!0}:x;return{useUpdatableData:function(e,l){var C=[],Q=_.T(_.bk(function(){var G=e();if(l!=null&&l.length&&C){var X=C.length>0;for(var y=!1,Z=0;Z<l.length;Z++){var E=l[Z]();X&&E!==C[Z]&&(y=!0);C[Z]=E}X=y}else X=!1;if(X)_.AA.remove(M());else if(X=_.AA.get(M()))return X;return G})),L=Q.next().value,k=Q.next().value,M=_.aw(function(){return O(e())},void 0,"mX326");
_.uo(function(){if(M()!=null){yrr.set(M(),[L,k]);var G=M();_.YO(function(){yrr.delete(G)})}},"MgKPjb");
return[L,function(G){k(G);x.shouldPersist&&_.AA.set(M(),G)}]},
getData:function(e){var l;return(l=yrr.get(O(e)))==null?void 0:l[0]()},
updateData:function(e,l){e=O(e);var C=yrr.get(e);if(!C)return!1;var Q=_.T(C);C=Q.next().value;Q=Q.next().value;l=l(C());Q(l);x.shouldPersist&&_.AA.set(e,l);return!0}}};
EtN=function(O){var x=_.T(_.Iw(!0,void 0,"bKtO6d")),e=x.next().value;x.next();return function(){var l=U0(O.children());return _.D(_.F,{cond:e,then:function(){return l},
else:O.fallback})}()};
_.MR=function(O){var x=tMr(O),e=x.data,l=x.mapping,C=x.wrapper;x=x.pendingFallback;var Q=function(){return qVi(_.vL(e))},L=function(){var k=Q(),M=[];
k=_.T(k);for(var G=k.next();!G.done;G=k.next()){var X=void 0;G=G.value;var y=void 0;for(X in G)if(!(!G).hasOwnProperty(X)){y=X;break}(X=y)&&M.push(X)}return M};
return O.data?_.D(EtN,{fallback:x},function(){return _.D(_.HE,{each:L},function(k,M){var G=C?function(y){return C(function(){return l[k](y,M)},X,M)}:function(y){return l[k](y,M)};
G.debugName||(G.debugName=String(k));if(!l[String(k)])return document.createComment("");G.componentType!==HL&&PMN(String(k));var X=crr(Q,k,M);return _.D(G,{data:X})})}):_.D(_.Xm,null)};
tMr=function(O){var x=O.targetId||IWn(O.children);if(!O.data||!x||_.t("mweb_new_replaceables_killswitch"))return Object.assign({},O,{mapping:O.children,wrapper:void 0});var e="stamper-"+VMr++,l=function(){var k;return(k=typeof O.targetId==="function"?O.targetId(e):O.targetId)!=null?k:e};
x=_.T(pVs(function(){var k=qVi(O.data());k.targetId=l;return k})).next().value;
var C=Object.assign({},(_.GG().resolve(_.D0(RuV))||{}).replaceableMapping,O.children);if(O.replacementWrapper){var Q=C.notificationTextRenderer,L=C.notificationMultiActionRenderer;Q&&(C.notificationTextRenderer=function(k,M){return O.replacementWrapper(Q({data:k.data},M))});
L&&(C.notificationMultiActionRenderer=function(k,M){return O.replacementWrapper(L({data:k.data},M))})}return Object.assign({},O,{data:x,
mapping:C,wrapper:function(k,M,G){return LE7({targetId:l,stamperIndex:G},k)}})};
crr=function(O,x,e){var l;return _.aw(function(){var C=O()[e()];if(C)l=C[x];else return _.ft(new _.ry("Stamper failed to find "+String(x)+" at index "+e()+" of data array of length "+(O().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),l;return C[x]},void 0,"wgRPHd")};
IWn=function(O){O=_.T(Object.keys(O));for(var x=O.next();!x.done;x=O.next())if(x=x.value,Uar.includes(x)||aW7.includes(x)||maw.includes(x))return!0;return!1};
qVi=function(O){return O?Array.isArray(O)?O:[O]:[]};
PMN=function(O){if(_.t("web_enable_renderer_logger")){var x;(x=_.GG().resolve(_.D0(sQs)))!=null&&x.loggingEnabled&&!x.ids.has(O)&&x.ids.add(O)}};
W$N=function(){var O,x;return(x=(O=_.GG().resolve(_.D0(_.rP)))==null?void 0:O())!=null?x:!1};
zur=function(O,x){O=O===void 0?hu8:O;switch(x.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},O,{isOpen:x.payload});default:return O}};
HJi=function(O,x){O=O===void 0?rri:O;switch(x.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},O,{isAllowed:x.payload});default:return O}};
daV=function(O,x){O=O===void 0?K$N:O;switch(x.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},O,{errorMessage:x.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},O,{title:x.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},O,{privacy:x.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},O,{isDisabled:x.payload});default:return O}};
uOW=function(O,x){O=O===void 0?ntW:O;switch(x.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},O,{isOpen:x.payload});default:return O}};
BsV=function(O,x){O=O===void 0?YVL:O;switch(x.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},O,{isFullscreen:x.payload});case "SET_NAVIGATION_BUTTON":var e=x.payload.targetId,l=Object.assign({},O.navigationButtons);l[e]=x.payload.button;return Object.assign({},O,{navigationButtons:l});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},O,{topPanelId:x.payload});case "SET_SECONDARY_HEADER":return e=x.payload.panelId,l=Object.assign({},O.secondaryHeader),l[e]=x.payload.secondaryHeader,
Object.assign({},O,{secondaryHeader:l});default:return O}};
wVi=function(){return mN(Object.assign({},{voiceSearch:Ewr,engagementPanel:BsV,bottomSheet:zur,cinematicSetting:HJi,shorts:RZr,drawerLayout:uOW,createPlaylist:daV,locationCollection:vtm,reportChannel:fWs,reportForm:Jr8},UAr))};
SVn=function(O,x){_.vn.addLowPriorityJob(function(){var e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return _.tS(Q,2),Q.yield(hTL(),4);case 4:return Q.yield(fetch(O),5);case 5:return e=Q.yieldResult,Q.yield(e.json(),6);case 6:l=Q.yieldResult;yI.set(O,l);requestAnimationFrame(function(){x(l)});
_.lb(Q,0);break;case 2:C=_.VP(Q),_.ft(C),_.Ra(Q)}})})};
jQr=function(O){var x={animationConfig:{},listeners:{}},e=function(){O(!0)};
x.listeners.data_failed=e;x.listeners.error=e;x.listeners.data_ready=function(){O(!1)};
return x};
$a7=function(O){var x=O.model;var e=O.subscribed;var l=O.isOverlay;var C=O.element;var Q=O.commandController;var L=O.notificationState;if(e){var k,M;var G=(x==null?void 0:(k=x.buttonStyle)==null?void 0:k.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:x==null?void 0:(M=x.unsubscribeButtonContent)==null?void 0:M.buttonText}else{var X;G=x==null?void 0:(X=x.subscribeButtonContent)==null?void 0:X.buttonText}a:{var y;switch(x==null?void 0:(y=x.buttonStyle)==
null?void 0:y.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":k="S";break a;default:k="M"}}a:if(l)l="overlay";else switch(x.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":l="overlay";break a;default:l="mono"}a:if(e)var Z="tonal";else switch((Z=x.buttonStyle)==
null?void 0:Z.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Z="tonal";break a;default:Z="filled"}return{style:l,type:Z,state:x.disableSubscribeButton?"disabled":"active",size:k,focused:O.focused,toggled:e,accessibilityLabel:Nsr(x,e,L),buttonText:G,iconPosition:x.disableNotificationBell?"none":"leading-trailing",onTap:gtN(x,e,C,Q),disableTextEllipsis:!!O.disableTextEllipsis}};
gtN=function(O,x,e,l){return function(C){if(x){var Q;var L=O.disableNotificationBell?_.p_(O==null?void 0:(Q=O.unsubscribeButtonContent)==null?void 0:Q.onTapCommand):_.p_(O==null?void 0:O.onShowSubscriptionOptions)}else{var k;L=_.p_(O==null?void 0:(k=O.subscribeButtonContent)==null?void 0:k.onTapCommand)}L&&M5(L,{form:{element:e==null?void 0:e.value},commandController:l});C.stopPropagation()}};
Nsr=function(O,x,e){if(x){if(O==null?0:O.disableNotificationBell){var l;return O==null?void 0:(l=O.unsubscribeButtonContent)==null?void 0:l.accessibilityText}switch(e){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var C;return O==null?void 0:(C=O.bellAccessibilityData)==null?void 0:C.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var Q;return O==null?void 0:(Q=O.bellAccessibilityData)==null?void 0:Q.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var L;return O==null?void 0:(L=
O.bellAccessibilityData)==null?void 0:L.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var k;return O==null?void 0:(k=O.bellAccessibilityData)==null?void 0:k.disabledLabel;default:var M;return O==null?void 0:(M=O.unsubscribeButtonContent)==null?void 0:M.accessibilityText}}else{var G;return O==null?void 0:(G=O.subscribeButtonContent)==null?void 0:G.accessibilityText}};
iJm=function(O,x){return _.xE(O.entities,"subscriptionStateEntity",x)};
ODr=function(O,x){return _.xE(O.entities,"subscriptionNotificationStateEntity",x)};
x8N=function(O,x){return _.xE(O.entities,"upcomingEventReminderStateEntity",x)};
eSN=function(O,x){return _.xE(O.entities,"commentEntityPayload",x)};
l$w=function(O,x){return _.xE(O.entities,"engagementToolbarSurfaceEntityPayload",x)};
CBL=function(O,x){return _.xE(O.entities,"triStateButtonStateEntityPayload",x)};
Q57=function(O,x){return _.xE(O.entities,"commerceCartCheckoutButtonEntity",x)};
bDm=function(O,x){return _.xE(O.entities,"commandEntity",x)};
TAn=function(O){if(O){switch(O){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":O="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":O="NOTIFICATIONS_OFF";break;default:O="NOTIFICATIONS_NONE"}return O}};
Lb8=function(O,x,e){e.subscribed!==x&&((e=e.key)&&_.ns(_.Dc("subscriptionStateEntity",e,{key:e,subscribed:x})),O.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:x})),x||_.Sh(O,"yt-unsubscribe-action"))};
M9r=function(O){O=_.q(_.p_(O),_.k4W);var x,e,l,C;return(C=_.q(O==null?void 0:(x=O.panelLoadingStrategy)==null?void 0:(e=x.inlineContent)==null?void 0:(l=e.sheetViewModel)==null?void 0:l.content,Aks))==null?void 0:C.listItems};
D8W=function(O,x){if(O.onShowSubscriptionOptions&&x&&(O=M9r(O.onShowSubscriptionOptions),O!=null&&O.length)){var e=TAn(x);O.forEach(function(l){l=_.q(l,_.GA);var C,Q,L,k,M=l==null?void 0:(C=l.leadingImage)==null?void 0:(Q=C.sources)==null?void 0:(L=Q[0])==null?void 0:(k=L.clientResource)==null?void 0:k.imageName;l&&M&&(l.isSelected=M===e)})}};
G4L=function(O,x,e,l){x&&e?O.style.width=e+"px":!x&&l&&(O.style.width=l+"px")};
Fbr=function(O,x,e){var l;(l=O.lottieEl)==null||l.goToAndPlay(0);var C;(C=x.lottieEl)==null||C.goToAndPlay(0);_.FQ(_.vn,function(){var Q;(Q=e.lottieEl)==null||Q.goToAndPlay(0)},300)};
X27=function(O){return!(O==null||!O.iconName||(O==null?0:O.title))};
oIr=function(O,x,e,l){e&&_.vn.cancelJob(e);e=_.vn.addLowPriorityJob(function(){l(void 0)},5E3);
l(e);x&&O!==(x.likeStatus==="LIKE")&&x.key&&_.ns(_.Dc("likeStatusEntity",x.key,{key:x.key,likeStatus:O?"LIKE":"INDIFFERENT",hadUserInteraction:O}))};
_.yk7=function(O,x){return _.xE(O.entities,"accountLinkStatusEntity",x)};
ZDs=function(O,x){return _.xE(O.entities,"hatsSurveyEntity",x)};
EI8=function(O,x){return _.xE(O.entities,"hatsSurveyStateEntity",x)};
t9r=function(O,x){return _.xE(O.entities,"quantityIncrementerEntity",x)};
qP$=function(O){switch(O){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}};
PBL=function(O){switch(O){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}};
ckN=function(O){switch(O){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"}};
_.V9L=function(O){var x=_.yF("web_generic_client_event_wait_period ",0);x||(x=3E5);var e=I$8.get(O);!_.t("enable_web_client_experiment_event_timeout_killswitch")&&e&&(0,_.F2)()-e<x||(I$8.set(O,(0,_.F2)()),_.uU("genericClientExperimentEvent",{eventType:O}))};
_.p2N=function(O,x){var e,l,C,Q;a:{var L=O.style;if(L===void 0)L=17;else switch(L){case "LIVE":L=18;break a;default:L=17}}return{type:L,text:x?xOL({seconds:x}):_.db(O.text),accessibilityText:(e=O.text)==null?void 0:(l=e.accessibility)==null?void 0:(C=l.accessibilityData)==null?void 0:C.label,icon:(Q=O.icon)==null?void 0:Q.iconType}};
RSm=function(O){switch(O){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
U8i=function(O){if(!O)return"";var x,e=(x=_.GG().resolve(_.D0(_.rP)))==null?void 0:x(),l;if(!e&&((l=O.vibrantColorPalette)==null?0:l.iconInactiveColor))return mC(O.vibrantColorPalette.iconInactiveColor,"1");var C;return e&&((C=O.darkColorPalette)==null?0:C.iconInactiveColor)?mC(O.darkColorPalette.iconInactiveColor,"1"):O.color?mC(O.color,"1"):O.sampledThumbnailColor?(O=O.sampledThumbnailColor,"rgba("+O.red+","+O.green+","+O.blue+");"):""};
_.XQ=function(O,x){if(!O.includes("DATE_PLACEHOLDER"))return O;var e=new Date(0);e.setUTCSeconds(x);return O.replace("DATE_PLACEHOLDER",a$$(e))};
m8V=function(O,x,e){return function(l){var C=O.command;C&&(M5(C,{form:{element:e}}),x([C],l))}};
Wbs=function(O,x,e,l,C){return function(Q){var L=s5w(O,x);L&&M5(L,{form:{element:e},commandController:l});C&&Q.stopPropagation()}};
s5w=function(O,x){if(O.signInEndpoint&&!_.t("web_subscribe_sign_in_endpoint_killswitch"))return O.signInEndpoint;if(x){if(O.serviceEndpoints)return O.serviceEndpoints[1];if(O.onUnsubscribeEndpoints)return O.onUnsubscribeEndpoints[0]}else{if(O.serviceEndpoints)return O.serviceEndpoints[0];if(O.onSubscribeEndpoints)return O.onSubscribeEndpoints[0]}};
hSn=function(O,x){var e,l,C,Q;x=x&&((e=O.unsubscribeAccessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label)||((C=O.subscribeAccessibility)==null?void 0:(Q=C.accessibilityData)==null?void 0:Q.label);return O.longSubscriberCountText?[x,_.db(O.longSubscriberCountText)].filter(function(L){return L}).join(" "):x};
ot=function(O,x){return x||(O==null?0:O.isChannelDelegate)?"disabled":"active"};
zSW=function(O,x){var e;switch((e=O.style)==null?void 0:e.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:ot(O)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:ot(O)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:ot(O,!0)};case "OVERLAY":return x?{style:"overlay",type:"tonal",state:ot(O)}:{style:"overlay",type:"filled",state:ot(O)};default:return x?{style:"mono",type:"tonal",state:ot(O)}:{style:"mono",type:"filled",state:ot(O)}}};
_.yu=function(){for(var O=[],x=_.T(_.vw.apply(0,arguments)),e=x.next();!e.done;e=x.next())if(e=e.value)if(typeof e==="string")O.push(e);else{e=_.T(Object.entries(e));for(var l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;(C=C.next().value)&&O.push(l)}}return O.join(" ")};
rkN=function(O){switch(O){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
HDr=function(O){switch(O){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Kb8=function(O,x){var e=O.map(function(l){return l.toString()});
return _.lk(function(l){if(e.includes(l.key)){x&&l.preventDefault();var C;(C=l.currentTarget)==null||C.click()}})};
_.d8L=function(){return Kb8(["Enter"])};
_.nIw=function(){return Kb8(["Enter"," "],!0)};
_.Zc=function(O){if(O.composedPath)return O.composedPath();if(!O.__composedPath){for(var x=[],e=O.target;e;)x.push(e),e=e.parentNode;x.push(window);O.__composedPath=x}return O.__composedPath};
_.E9=function(O,x,e){O=_.T(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;if(l===x)break;for(var C=_.T(e),Q=C.next();!Q.done;Q=C.next())if(Q=Q.value,l.tagName===Q||l.role==="button"&&Q==="BUTTON")return!0}return!1};
YPs=function(O,x){var e,l=(e=x.observer)!=null?e:_.GG().resolve(GQ);if(O){e=udi(O);var C=[];x.showOption&&C.push(l.observe(O,function(){x.visibilityCallback(!0,O)},x.showOption));
x.hideOption&&C.push(l.observe(O,function(){x.visibilityCallback(!1,O)},x.hideOption));
x.prescanOption&&x.prescanCallback&&C.push(l.observe(O,function(){x.prescanCallback()},x.prescanOption));
var Q;e.visibilityMonitorKeys=((Q=e.visibilityMonitorKeys)!=null?Q:[]).concat(C)}};
udi=function(O){var x;return(x=O.polymerController)!=null?x:O};
_.qR=function(O){return!!_.tA(O)};
_.P8=function(O,x,e,l,C){return function(Q){var L=TQs();_.uo(function(){if(Q){BAw(Q,O(),C);var k=vIr(Q,O(),x,e,l,L);_.YO(k)}},"nr377e")}};
BAw=function(O,x,e){var l=f$7(x),C=Jkm(x);x=l&&w2W;var Q=C&&SPs;(l||C)&&YPs(O,{visibilityCallback:function(L){var k=_.GG().resolve(_.Xc);L&&l?k.resolveCommand(l,{form:{element:e?O:void 0},disableClickTracking:!0}):!L&&C&&k.resolveCommand(C,{form:{element:e?O:void 0},disableClickTracking:!0})},
showOption:x,hideOption:Q})};
vIr=function(O,x,e,l,C,Q){var L=new Map;if(x=_.tA(x)){var k;O=(l==null?void 0:(k=l.onTap)==null?void 0:k.value)||O;e=j5$(x,O,e==null?void 0:e.onTap,C,Q);O.addEventListener("click",e);L.set("click",e)}return function(){for(var M=_.T(L),G=M.next();!G.done;G=M.next()){var X=_.T(G.value);G=X.next().value;X=X.next().value;O.removeEventListener(G,X)}}};
_.tA=function(O){var x;return(O=(x=_.q(O,NAW))==null?void 0:x.onTap)&&_.p_(O)};
f$7=function(O){var x;return(O=(x=_.q(O,NAW))==null?void 0:x.onVisible)&&_.p_(O)};
Jkm=function(O){var x;return(O=(x=_.q(O,NAW))==null?void 0:x.onHidden)&&_.p_(O)};
j5$=function(O,x,e,l,C){var Q=function(k){_.GG().resolve(_.Xc).resolveCommand(O,k)},L=function(k){l&&_.E9(_.Zc(k),x,l)||Q(k.target?{form:{element:k.target,
sourceData:O,mutationContext:C}}:void 0)};
e&&(L=function(k){e(k,Q)});
return L};
gIW=function(O){switch(O){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}};
$8r=function(O){var x=O.numAvatarsInCluster;switch(O.clusterSize){case "small":return x===2?22:18;case "40":return x===2?24:22;default:return x===2?24:20}};
iDL=function(O,x){return function(e){var l=Object.keys(x);_.uo(function(){if(O!=null&&O()){for(var C=_.T(l),Q=C.next();!Q.done;Q=C.next())Q=Q.value,e.addEventListener(Q,x[Q]);_.YO(function(){for(var L=_.T(l),k=L.next();!k.done;k=L.next())k=k.value,e.removeEventListener(k,x[k])})}},"bXZGfe")}};
OPW=function(O){switch($8r(O)){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""}};
xfL=function(O){switch(O){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""}};
edL=function(O){switch($8r(O)){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""}};
lU7=function(O){switch(O){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""}};
C1i=function(O){switch(O){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}};
QDL=function(O){return O==="medium"||O==="48"||O==="large"||O==="extra-large"||O==="extra-extra-large"||O==="giant"};
bPL=function(O){return!!((O==null?0:O.includes(3))||(O==null?0:O.includes(5)))};
LVr=function(O){var x=O.data;return{size:TK8(x.avatarImageSize),type:x.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:O.onTap,decorations:O.decorations||[],badgeText:O.badgeText,accessibilityText:O.accessibilityText,avatarButtonCustomClassName:O.avatarButtonCustomClassName,clusterLayoutConfig:O.clusterLayoutConfig}};
TK8=function(O){switch(O){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"}};
kNN=function(O){switch(O){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}};
AmV=function(O){switch(O){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""}};
Mks=function(O){var x=O.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",e,l=O.avatars&&O.avatars.length>0?(e=_.q(O.avatars[0],_.c8))==null?void 0:e.avatarImageSize:"AVATAR_SIZE_UNKNOWN";e=kNN(l)||0;if(x){var C,Q=(C=O.avatarClusterSize)!=null?C:"AVATAR_SIZE_M";x=kNN(Q);var L,k,M=Math.min((k=(L=O.avatars)==null?void 0:L.length)!=null?k:0,4),G;return{avatars:((G=O.avatars)==null?void 0:G.slice(0,4))||[],avatarSizeInPx:e,avatarStackStyle:{width:x+"px",height:x+"px",position:"relative"},avatarStyle:function(y){var Z=
$8r({clusterSize:TK8(Q),numAvatarsInCluster:M,avatarIndex:y});var E=kNN(Q);M===3&&y===2?(E=(E-Z)/2,E=(_.wz("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*E):E=void 0;return{position:"absolute",top:M===2&&y===1||M===3&&y===2||M===4&&y>=2?"0":void 0,bottom:M===2&&y===0||M>2&&y<2?"0":void 0,left:M===2&&y===1||M>2&&(y===1||y===3)?"0":void 0,right:M<=3&&y===0||M===4&&(y===0||y===2)?"0":void 0,transform:E?"translateX("+E+"px)":void 0,width:Z+"px",height:Z+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(y){return{clusterSize:TK8(O.avatarClusterSize),numAvatarsInCluster:M,avatarIndex:y}},
avatarButtonCustomClassName:void 0}}var X;return{avatars:((X=O.avatars)==null?void 0:X.slice())||[],avatarSizeInPx:e,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:AmV(l),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
DfL=function(O,x,e){return function(){M5(O,{form:{element:x},commandController:e})}};
GNr=function(O){switch(O){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
FVw=function(O){switch(O){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"}};
X5r=function(O){if("accessibilityText"in O)return O.accessibilityText||"";if("title"in O){var x,e,l;return((x=O.title)==null?void 0:(e=x.accessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label)||""}if("accessibility"in O){var C,Q;return((C=O.accessibility)==null?void 0:(Q=C.accessibilityData)==null?void 0:Q.label)||""}return""};
oJw=function(O){return"inlinePlayerData"in O};
It=function(O){return new ym$(O)};
ZPN=function(O){return function(x){O&&(O.thumbnailElRef=x.thumbnailElRef,O.thumbnail=x.thumbnail,O.thumbnailOverlays=x.thumbnailOverlays,O.thumbnailSize=x.thumbnailSize)}};
EJs=function(O){switch(O){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
qsw=function(O){var x=_.T(_.Iw(!1,void 0,"E6wDDe")),e=x.next().value,l=x.next().value;_.YK(function(){var C=O==null?void 0:O();if(C){var Q=_.GG().resolve(_.D0(tkn));if(Q){var L={triggeringElement:C,onDwellTriggeredFn:function(){l(!0)},
onDwellEndFn:function(){l(!1)}};
Q.registerElement(L);_.YO(function(){_.Vu(Q,L)})}}});
return e};
P1r=function(O,x,e){e?e(x):_.me(x,O.target?{form:{element:O.target}}:void 0)};
_.p5=function(O,x,e,l){return function(C){_.uo(function(){function Q(X){X=X.composedPath();X=_.T(X);for(var y=X.next();!y.done;y=X.next()){y=y.value;if(y===C)break;if(y.className.indexOf("HostIsClickableAdComponent")>=0||y.tagName==="A".toString()||y.tagName==="BUTTON".toString())return!0}return!1}
var L=new Map,k,M=(k=O())==null?void 0:k.onTap;if(M){k=function(X){Q(X)||P1r(X,M,x)};
var G=function(X){Q(X)||X.key!=="Enter"||P1r(X,M,x)};
(e==null?0:e())||_.t("enable_web_home_top_landscape_image_layout_level_click")?(C.addEventListener("tap",k),L.set("tap",k)):(C.addEventListener("click",k),L.set("click",k));if(l==null?0:l())C.addEventListener("keydown",G),L.set("keydown",G)}_.YO(function(){for(var X=_.T(L),y=X.next();!y.done;y=X.next()){var Z=_.T(y.value);y=Z.next().value;Z=Z.next().value;C.removeEventListener(y,Z)}})},"D7XqOc")}};
cmr=function(O,x){var e,l=(e=O.interaction)==null?void 0:e.onTap;if(O=_.Ux({elementsCommand:l,forceNewState:!0,skipOnClick:!0}))return O.onclick=function(C){c4w(C)&&(C.preventDefault(),l&&P1r(C,l,x))},al(O)?O:void 0};
IU8=function(O){switch(O){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Vk8=function(O){switch(O){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"}};
p58=function(O){switch(O){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"}};
_.Rdr=function(O){return _.t("rich_grid_enable_dynamic_offset")&&O?Math.max(Math.round((O-_.yF("rich_grid_dynamic_offset_anchor_width",1300))/100*_.yF("rich_grid_dynamic_offset_offset_per_100",10)),_.yF("rich_grid_dynamic_offset_lower_bound",-60)):0};
Ufi=function(O,x){switch(x){case 4:return 16;case 1:return O<528?16:O<1024?32:48;case 2:return(O>=528?16:8)/2;case 3:return(O<528?16:O<1024?32:48)+(O>=528?16:8)/2;default:return 0}};
aUs=function(O){var x=O.originalContainerWidth;var e=O.sizing;var l=O.standardUnit;if(O.isCompactList&&x<528)return 1;switch(e){case "STANDARD":return l;case "COMPACT":return l+1;case "EXTRA_COMPACT":return _.t("web_responsive_extra_compact_2x")?l*2:_.t("web_responsive_current")?l===1?2:l%2===0?l/2*3:l+2:l<4?l*2:Math.ceil(l*3/2);case "MINI":return l>1?l*2:3;default:return l}};
sDL=function(O){var x=O.containerWidth;var e=O.peek;var l=O.gutter;var C=O.numItems;O=O.ignoreMaxWidthLimit;x=e?Math.max((x-e-l*C)/C,0):Math.max((x-l*(C-1))/C,0);return O?x:Math.min(x,mfL)};
_.Rt=function(O){var x=O.containerWidth;var e=O.hasPeek;var l=O.sizing;var C=O.marginSettings;var Q=O.isCompactList;var L=O.enableFullBleedForSingleCol;var k=O.standardUnitMinWidth;l=l||"STANDARD";e=!!e;O=x>=528?16:8;var M=e?x>=528?48:24:0;C=Ufi(x,C);var G=Math.max(x-C*2,0);k=_.t("kevlar_disable_min_width_override")?void 0:k;k=Math.min(Math.max(Math.floor((G-M+O)/((k!=null?k:WV7)+_.Rdr(x)+O)),1),6);var X=(L=!!L&&k===1)||k===1&&l!=="STANDARD";e=e||X?G:Math.min(G,(mfL+O)*k-O);l=aUs({originalContainerWidth:x,
sizing:l,standardUnit:k,isCompactList:Q});return{itemWidth:sDL({containerWidth:e,peek:M,gutter:O,numItems:l,ignoreMaxWidthLimit:X}),gutter:O,maxContainerWidth:e,numItems:l,margin:L?0:C,contentMargin:Ufi(x,1),typographyBump:sDL({containerWidth:e,peek:M,gutter:O,numItems:k,ignoreMaxWidthLimit:X})>400&&!(Q&&x<528),standardUnit:k}};
hdn=function(O){switch(O){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.zdw=function(O){if(O){var x;if((x=O.responsiveContainerConfiguration)==null?0:x.responsiveSize)return hdn(O.responsiveContainerConfiguration.responsiveSize);if(O.layoutSizing)switch(O.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"}}};
rms=function(O){if(O.fullbleed)return 1;switch(O.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
nJL=function(O,x,e,l,C,Q,L,k){a:if(O===4&&l==="LOCKUP_CONTENT_TYPE_SOURCE")var M=1;else switch(O){case 3:M=1;break a;default:M=0}a:switch(O){case 4:Q=!!(Q&&Q<100);break a;default:Q=!1}a:switch(O){case 3:case 4:var G=l==="LOCKUP_CONTENT_TYPE_CHANNEL"||l==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:G=!1}a:switch(O){case 5:var X=!0;break a;case 4:X=!1;break a;default:X=!1}return{isOverlay:X,isCard:HPr(l,L),sizing:x!=null?x:"STANDARD",typographyBump:e!=null?e:!1,isTiny:Q,isCentered:G,isCollection:KVN(l),
arrangement:M,addMarginForFullbleed:O===1&&l!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:O===1&&l==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:dfW(l,C,k),disableRounding:O===5||HPr(l,L)||O===1&&l==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:KVN(l)?2:0,useLegacyTypography:!(k==null||!k.useLegacyTypography),useRichGridLegacyTypography:!(k==null||!k.useRichGridLegacyTypography)&&!_.t("web_enable_typography_bump"),compactMetadata:M===0&&l==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:k==null?void 0:k.onFocusEffect}};
KVN=function(O){switch(O){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}};
HPr=function(O,x){if(x&&O==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(O){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
dfW=function(O,x,e){if(x&&(e==null||!e.alwaysRespectPodcastShowAspectRatio||O!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(O){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}};
uR7=function(O){switch(O){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"}};
Yss=function(O){switch(O){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}};
BKm=function(O){switch(O){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}};
_.U9=function(O){if(O){var x;return((x=_.GG().resolve(_.D0(_.rP)))==null?0:x())?O.darkThemeImage:O.image}};
Jmr=function(O,x,e,l,C,Q){if(C&&Q&&x==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:C,height:Q};if(!e)return{};C=e.size;e=e.allowFullWidth;if(x==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&e)return{fullWidth:!0};if(C===void 0)return{};switch(O){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:C,height:C};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:C,height:1/vJm*C};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:C*
fUr,height:C};default:return(l==null?0:l.height)&&(l==null?0:l.width)?l.width/l.height>1?{maxWidth:C*fUr}:{maxWidth:C}:{maxWidth:C}}};
w5L=function(O){var x;return O&&((x=_.U9(O.themedImage))!=null?x:O.image)};
Ssi=function(O){var x;return O==null?void 0:(x=O.sources)==null?void 0:x[0]};
jDW=function(O){switch(O){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"}};
_.NKr=function(O){if(O)return"content-id-"+O};
gJn=function(O){switch(O.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"}}};
$fL=function(O){var x=_.at.currentPageSubTypeSelector(_.dq().getState())||"";return O?O+x:""};
iPL=function(O){switch(O){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
xGN=function(O){var x=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],e=_.T(_.Iw(void 0,void 0,"JrqNsb")),l=e.next().value,C=e.next().value,Q=_.T(_.Iw(void 0,void 0,"rWytse"));e=Q.next().value;var L=Q.next().value;Q=_.T(_.Iw(void 0,void 0,"DHRqxe"));var k=Q.next().value,M=Q.next().value;return{touchFeedbackEvents:{pointerUpEvent:l,pointerDownEvent:e,pointerLeaveEvent:k},touchFeedbackOnPointerUp:_.lk(function(G){OmW(_.Zc(G),x)||(C(G),L(void 0),M(void 0))}),
touchFeedbackOnPointerDown:_.lk(function(G){O==null||O(G);OmW(_.Zc(G),x)||(L(G),C(void 0),M(void 0))}),
touchFeedbackOnPointerLeave:_.lk(function(G){OmW(_.Zc(G),x)||(M(G),L(void 0),C(void 0))})}};
OmW=function(O,x){x=x===void 0?[]:x;x=[].concat(_.Kx(x),["BUTTON".toString()]);O=_.T(O);for(var e=O.next();!e.done;e=O.next()){e=e.value;for(var l=_.T(x),C=l.next();!C.done;C=l.next())if(e.tagName===C.value)return!0}return!1};
eM7=function(O){switch(O){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"}};
lIr=function(O){return O.scrollHeight-O.offsetHeight>1};
C7s=function(O,x){var e;return zO(O,((e=O.content)==null?void 0:e.length)||0,!x)};
TdN=function(O,x,e,l,C,Q){if(!x||QZr){var L;return zO(O,((L=O.content)==null?void 0:L.length)||0,!0)}x=l.value;if(!e.value||!x||!O.content)return O;e=0;l=O.content.length;L=0;bmr||(bmr=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var k=bmr;for(C=C*Q*k;e<=l;)Q=Math.floor(e+(l-e)/2),k=zO(O,Q)||O,x.firstChild&&(x.firstChild.textContent=k.content),x.scrollHeight>C?l=Q-1:(L=Q,e=Q+1);return zO(O,L)};
L9r=function(O,x){var e,l;return(((e=O.content)==null?void 0:e.length)||0)>(((l=x.content)==null?void 0:l.length)||0)};
kP7=function(O,x,e,l,C,Q){var L=_.Q5("truncated-text-content"),k=_.Q5("truncated-text-content"),M=_.Q5("button"),G=_.Q5("button"),X=_.Q5("button"),y=_.GG().resolve(_.K_),Z=_.T(_.bk(function(){return C7s(O(),C())})),E=Z.next().value,P=Z.next().value;
Z=_.T(_.bk(function(){return L9r(O(),E())}));
var U=Z.next().value,W=Z.next().value,z=null;_.uo(function(){function r(){if(L.value&&M.value&&X.value){var Y=Q()?O():TdN(O(),C(),L,k,x(),e());P(Y);requestAnimationFrame(function(){if(L.value&&M.value&&X.value){var J=lIr(L.value)||L9r(O(),Y);W(J);if(!l()){var O8=lIr(L.value),Xr=e(),Fr=L.value,mL=M.value,Zn=X.value,q$=y==="rtl";if(Fr&&mL){var KV=mL.offsetLeft;q$&&(KV=Fr.offsetWidth-mL.offsetWidth-mL.offsetLeft);if(J){J=mL.offsetWidth;mL=Fr.offsetWidth;var VN=O8?mL-J-70:KV-70;Xr="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Xr+"rem,\n      #000 "+Xr+"rem,\n      #000 100%), linear-gradient(\n      to "+((q$?"left":"right")+",\n      #000 0px,\n      #000 "+VN+"px,\n      transparent "+(O8?mL-J:VN+70)+"px)");Fr.style.setProperty("-webkit-mask-image",Xr);Fr.style.setProperty("mask-image",Xr)}else Fr.style.setProperty("-webkit-mask-image",""),Fr.style.setProperty("mask-image","");O8?q$?(Zn.style.setProperty("left","0"),Zn.style.setProperty("right","unset")):(Zn.style.setProperty("left",""),Zn.style.setProperty("right",
"0")):q$?(Zn.style.setProperty("left","unset"),Zn.style.setProperty("right",KV+"px")):(Zn.style.setProperty("left",KV+"px"),Zn.style.setProperty("right","unset"))}}}})}}
var f,u;(f=z)==null||(u=f.stop)==null||u.call(f);f=new _.QI(r,17);r();z=f},"KjwIxd");
_.YK(function(){P(C7s(O(),C()));W(L9r(O(),E()));var r=function(){bmr=void 0;var u,Y;(u=z)==null||(Y=u.fire)==null||Y.call(u)};
if(window.ResizeObserver){var f=new ResizeObserver(r);f.observe(L.value);_.YO(function(){var u,Y;(u=z)==null||(Y=u.stop)==null||Y.call(u);f.disconnect()})}else window.addEventListener("resize",r),_.YO(function(){var u,Y;
(u=z)==null||(Y=u.stop)==null||Y.call(u);window.removeEventListener("resize",r)})});
return{isTruncated:U,displayText:E,contentRef:L,hiddenRef:k,placeholderTruncationTextRef:M,hiddenTruncationTextRef:G,truncationTextRef:X}};
Aww=function(O){return{content:O!=null?O:""}};
Myr=function(O){return _.p_(O.onTap)||_.tA(O.rendererContext)};
DGL=function(O){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:O.overflowMenuA11yLabel,onTap:function(x){x.preventDefault();x.stopPropagation();if(O.overflowMenuOnTap){var e=_.Ux({elementsCommand:O.overflowMenuOnTap,forceNewState:!0});if(e==null?0:e.onclick)e.onclick(x)}}}};
_.m8=function(O,x,e,l,C){l=l===void 0?{}:l;if(!C||Math.random()<5E-4){x=x||null;e=e||null;O=O instanceof Error?O:new _.ry(O);if(O.args)for(var Q=_.T(O.args),L=Q.next();!L.done;L=Q.next())L=L.value,L instanceof Object&&(l=Object.assign({},L,l));l.category="H5 Ads Control Flow";x&&(l.slot=x?"slot:  "+x.slotType:"");e&&(l.layout=e?"layout:  "+e.layoutType:"",l.layoutId=e.layoutId);C&&(l.known_error_aggressively_sampled=!0);O.args=[l];_.ft(O)}};
_.GPs=function(O,x){x=_.B1(x);_.Sh(O,"yt-open-popup-action",[x,O])};
_.s9=function(O,x){_.GPs(O,_.KA(x))};
XGw=function(O){if(!O)return"";if(F9w[O])return F9w[O];W8||(W8=_.R9("A"));W8.href!==O&&J7(W8,O);var x=W8.pathname;F9w[O]=x.startsWith("/")?x:"/"+x;return F9w[O]};
oZr=function(){var O=XGw(window.location.href);if(O==="/")return"home";if(O.startsWith("/results"))return"search";if(O.startsWith("/watch"))return"watch";if(O.startsWith("/shorts"))return"shorts";if(O.startsWith("/hashtag"))return"hashtag";if(O.startsWith("/create_channel"))return"create_channel";if(O.startsWith("/@")||O.startsWith("/user/")||O.startsWith("/channel/"))return"channel";if(O.startsWith("/experiments"))return"experiments";if(O.startsWith("/sponsor_channel"))return"sponsorship";if(O.startsWith("/select_site"))return"settings";
if(O.startsWith("/locate"))return"locate";if(O.startsWith("/redeem"))return"redeem";if(O.startsWith("/musicpremium")||O.startsWith("/premium")||O.startsWith("/red"))return"premium";if(O.startsWith("/paid_memberships"))return"paid_memberships";if(O.startsWith("/oops"))return"oops";if(O.startsWith("/clip"))return"clip";var x;return(hA==null?void 0:(x=hA.response)==null?void 0:x.page)==="404"?"404":O.startsWith("/feed/history")?"history":O.startsWith("/feed/library")?"library":O.startsWith("/feed/subscriptions")?
"subscriptions":O.startsWith("/feed/trending")?"trending":O.startsWith("/feed/news_destination")?"news":O.startsWith("/playlist")?"playlist":O.startsWith("/minor_moment")?"minor_moment":O.startsWith("/playable/")||O.match("^/playables/(?!saved).")?"mini_app":O.startsWith("/playables")?"playables":O.startsWith("/create/live/join")?"open_in_app":O.startsWith("/feed/explore")?"explore":"browse"};
_.tyW=function(){var O=hA==null?void 0:hA.response,x=O==null?void 0:O.endpoint;if(!x)return(O==null?void 0:O.page)==="watch"?"watch":oZr();var e;O=(e=_.q(x==null?void 0:x.commandMetadata,_.e6))==null?void 0:e.webPageType;e=!1;if(O&&!ywL.includes(O))switch(O){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 l;return((l=_.q(x==null?void 0:x.commandMetadata,_.e6))==null?0:l.url)&&XGw(_.q(x.commandMetadata,_.e6).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var C;return(x=(C=_.q(x,_.Q9))==null?void 0:C.browseId)?Zmr[x]||"browse":"browse";default:e=!0}if(_.q(x,_.zA)||_.q(x,EZN))return"sponsorship";C=XGw(window.location.href);if(C.startsWith("/experiments"))return"experiments";if(C.startsWith("/create_channel"))return"create_channel";
if(_.q(x,_.$b)&&C.startsWith("/shorts"))return"shorts";if(_.q(x,_.$b)&&C.startsWith("/watch"))return"watch";e&&(x=new _.ry("Unsupported mWeb page type",{pathname:C,webPageType:O}),_.BH(x));return"browse"};
rY=function(O,x,e,l){return O&&x?O!==e||x!==l?(_.m8(Error("Rh"),void 0,void 0,{"stored-slot":O,"stored-layout":x,"latest-slot":e,"latest-layout":l}),!1):!0:!1};
P78=function(O,x,e){return O({targetId:x},function(l){return e.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},l,{contents:[e.continuationItems?_.q(e.continuationItems[0],qpm):{}]}):e.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},l,{header:e.continuationItems?e.continuationItems[0]:void 0}):Object.assign({},l,{contents:e.continuationItems?e.continuationItems:[]})})};
cwi=function(O,x,e,l){if(x=x.trackingParams){var C,Q=(C=e.getScreenLayer)==null?void 0:C.call(e);e=_.Pq(Q);C=_.q9(Q);if(e&&C){var L=_.Fv(x);_.t("combine_ve_grafts")?O.graftServerVe(x,C,Q):_.WU(e,C,L);l==null||l(L)}}};
Vyw=function(O){var x;return((x=IIr.get(O))==null?void 0:x.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
UGm=function(O,x){var e={type:x.slotType,controlFlowManagerLayer:pGn.get(x.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};x.slotEntryTrigger&&(e.entryTriggerType=x.slotEntryTrigger.triggerType);x.slotPhysicalPosition!==1&&(e.slotPhysicalPosition=x.slotPhysicalPosition);if(O){e.debugData={slotId:x.slotId};if(O=x.slotEntryTrigger)e.debugData.slotEntryTriggerData=RMr(O);O=x.slotFulfillmentTriggers;e.debugData.fulfillmentTriggerData=[];O=_.T(O);for(var l=O.next();!l.done;l=O.next())e.debugData.fulfillmentTriggerData.push(RMr(l.value));
x=x.slotExpirationTriggers;e.debugData.expirationTriggerData=[];x=_.T(x);for(O=x.next();!O.done;O=x.next())e.debugData.expirationTriggerData.push(RMr(O.value))}return e};
RMr=function(O,x){var e={type:O.triggerType};x!=null&&(e.category=x);O.triggeringSlotId!=null&&(e.triggerSourceData||(e.triggerSourceData={}),e.triggerSourceData.associatedSlotId=O.triggeringSlotId);O.triggeringLayoutId!=null&&(e.triggerSourceData||(e.triggerSourceData={}),e.triggerSourceData.associatedLayoutId=O.triggeringLayoutId);return e};
aIi=function(O,x,e,l){x={opportunityType:x};O&&(l||e)&&(l=_.Ku(l||[],function(C){return UGm(O,C)}),x.debugData=Object.assign({},e&&e.length>0?{associatedSlotId:e}:{},l.length>0?{slots:l}:{}));
return x};
mGi=function(O){return H8(O.opportunityAdapterMap).concat(H8(O.triggerAdapterMap)).concat(H8(O.fulfillmentAdapterFactoryMap)).concat(H8(O.slotAdapterFactoryMap)).concat(H8(O.layoutRenderingAdapterFactoryMap))};
H8=function(O){var x=[];O=_.T(O.values());for(var e=O.next();!e.done;e=O.next())e=e.value,e.isAdsControlFlowEventListener&&x.push(e);return x};
dY=function(O){var x=O.slotId,e=O.slotType,l=O.slotPhysicalPosition;return x===void 0?new K5("Cannot construct a slot due to the missing id.",{adSlotMetadata:O}):e===void 0?new K5("Cannot construct a slot due to the missing type.",{adSlotMetadata:O}):l===void 0?new K5("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:O}):{slotId:x,slotType:e,slotPhysicalPosition:l,managerLayer:"external",adSlotLoggingData:O.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new sZr}};
W9i=function(O){var x=O.layoutId,e=O.layoutType;return x===void 0?new n5("Cannot construct a layout due to the missing id.",{adLayoutMetadata:O}):e===void 0?new n5("Cannot construct a layout due to the missing type.",{adLayoutMetadata:O}):{layoutId:x,layoutType:e,managerLayer:"external",adLayoutLoggingData:O.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new sZr,interactionLoggingAdsClientData:{}}};
hM$=function(O){if(O.querySelector("img")){var x=O.querySelector("img");x.addEventListener("error",function(){ARs(x.src).then(function(e){(e=_.Bw(e).toString())?x.src=e:x.removeAttribute("src")}).catch(function(){x.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Yp=function(O,x){if(x&&(zMW(x.viewableCommand)||zMW(x.endOfSessionCommand))){var e=rwm(x==null?void 0:x.viewableCommand);x=rwm(x==null?void 0:x.endOfSessionCommand);if(!uw){var l=_.yF("custom_active_view_tos_timeout_ms");uw=l>0&&l!==36E5?new HmL(K97(),l):new HmL(K97())}dGV(uw,O);nZr(uw,O,e,x)}};
B8=function(O){uw&&dGV(uw,O)};
K97=function(){var O=_.wz("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(O==null?void 0:O.length)===2?O[1]:null};
zMW=function(O){O=_.p_(O);return!(O==null||!O.loggingUrls)&&O.loggingUrls.length>0};
rwm=function(O){if(!O)return[];var x=[],e,l;((l=(e=_.p_(O))==null?void 0:e.loggingUrls)!=null?l:[]).forEach(function(C){C.baseUrl&&x.push(C.baseUrl)});
return x};
uU$=function(O){if(_.t("stop_av_measurement_on_detach"))return function(){B8(O)}};
Yp8=function(O){return function(){_.t("stop_av_measurement_on_detach")&&B8(O)}};
BdV=function(O){if(_.t("stop_av_measurement_on_detach"))return function(){B8(O)}};
vZs=function(O){return O.shorts.isDesktopSmallWidth};
_.fIV=function(O){return O.shorts.isShortsActive};
_.Jw$=function(O){return O.shorts.isWatchWhileMode};
_.f5=function(O){return O.shorts.isFullscreen};
_.JA=function(O){return O.shorts.isShortsPipActive};
SpN=function(O){var x,e;if(O=(x=_.q(O.reelsAdCardButtoned,wGn))==null?void 0:(e=x.animatedRenderingConfig)==null?void 0:e.easeOutSeconds)return O+"s"};
NdL=function(O,x,e){return _.A(function(l){return l.return(new Promise(function(C){var Q=new Image;Q.onload=function(){C(new jZN(O,x,e,Q.naturalWidth,Q.naturalHeight))};
Q.src=e.toString()}))})};
gZ7=function(O,x){return Math.round(O/1E-5)===Math.round(x/1E-5)};
$Gn=function(O,x){return Math.round(O/1E-5)===Math.round(x/1E-5)};
im7=function(O,x){return O.year===x.year&&O.month===x.month&&O.day===x.day};
ORw=function(O,x){return O.year!==x.year?O.year<x.year:O.month!==x.month?O.month<x.month:O.day<x.day};
eem=function(O){return O.day===xYr(O.year,O.month)?O.month===11?{year:O.year+1,month:0,day:1}:{year:O.year,month:O.month+1,day:1}:{year:O.year,month:O.month,day:O.day+1}};
lAV=function(){var O=new Date,x={year:O.getFullYear(),month:O.getMonth(),day:O.getDate()};return{start:x,end:{year:O.getFullYear()+2,month:O.getMonth(),day:O.getDate()},selectedDate:eem(x)}};
Cyi=function(O){return(new H1(2)).format(new Date(O.year,O.month,O.day))};
QNm=function(O){return{year:O.getFullYear(),month:O.getMonth(),day:O.getDate()}};
bR8=function(O,x){O=(O+(Number(x.utcOffsetSec)+(new Date(O*1E3)).getTimezoneOffset()*60))*1E3;x=QNm(new Date(O));return{date:x,secondsSinceMidnight:Math.floor((O-(new Date(x.year,x.month,x.day)).getTime())/1E3)}};
Tn$=function(O,x){x=x.months.findIndex(function(e){return e.year===O.year&&e.month===O.month});
return x>=0?x:void 0};
Ljw=function(O){if(!O)return!1;try{if(O.host&&O.host.tagName==="YT-FORMATTED-STRING"&&O.host.id==="contenteditable-textarea"||O.nodeType===Node.ELEMENT_NODE&&O.tagName==="YTD-COMMENTBOX")return!0}catch(x){return!1}return Ljw(O.parentNode)};
wY=function(O){return O?!(O.tagName!=="A"||!O.href||!O.classList.contains("yt-simple-endpoint")):!1};
kZN=function(O){return O?O.tagName==="IMG"&&O.classList.contains("emoji"):!1};
AK7=function(O,x,e){if(!O)return null;var l=wY(O);if(l&&e)return x=O.pathname.substring(O.pathname.indexOf("/channel/")+9),document.createTextNode("@"+x);if(l&&!e)return document.createTextNode("");if(kZN(O))return e=O.alt,O=O.dataset.emojiId,!O&&x&&(x=_.SR(x,e))&&x.isCustomEmoji&&(O=x.emojiId),O?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+O+">"):document.createTextNode(e);l=O.cloneNode(!1);for(var C=0;C<O.childNodes.length;++C){var Q=AK7(O.childNodes[C],x,e);Q&&l.appendChild(Q)}return l};
jR=function(O){return O?wY(O)?O:jR(O.lastChild):null};
M0n=function(O){return O?wY(O)?O:M0n(O.firstChild):null};
DY7=function(O){if(!O)return null;for(var x=O.previousSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.previousSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.previousSibling;else break;(x=jR(x))?O=x:O=(O=O.parentNode)?jR(O.previousElementSibling):null;return O};
GZr=function(O){if(!O)return null;for(var x=O.nextSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.nextSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.nextSibling;else break;return(x=M0n(x))?x:GZr(O.parentNode)};
FjN=function(O){var x=_.NR(),e=x.JSC$11343_getStartNode();if(!Ljw(e.parentNode))return null;x=x.JSC$11343_getStartOffset();if(e.nodeType===Node.TEXT_NODE){var l=_.fu(e,wY);if(l){if(O&&x===0||!O&&x===e.length)return l}else{if(O&&x===e.length)return!e||e.nodeName==="BR"||e.nextElementSibling&&_.gY(e.nextElementSibling,"display")==="block"?null:M0n(e.nextElementSibling);if(!O&&x===0)return e?jR(e.previousElementSibling):null}}if(e.nodeType===Node.ELEMENT_NODE)if(O){if(0<=x&&x<e.childNodes.length)return M0n(e.childNodes[x])}else if(0<
x&&x<=e.childNodes.length)return jR(e.childNodes[x-1]);return null};
X7L=function(O,x,e){if(!O)return null;if(O.nodeType===Node.TEXT_NODE)if(e){var l=DY7(O);if(l&&!/^\s+\S/.test(O.wholeText.substr(0,x)))return l}else if((l=GZr(O))&&!/\S\s+/.test(O.wholeText.substr(x,O.wholeText.length)))return l;return O.nodeType===Node.ELEMENT_NODE?e?DY7(O.childNodes[x]):GZr(O.childNodes[x]):X7L(O.parentNode,x,e)};
oMr=function(O){if(O.hasChildNodes())switch(O.tagName){case "DIV":case "A":case "SPAN":var x="";for(O=O.firstChild;O;O=O.nextSibling)x+=oMr(O);return x;default:return""}else switch(O.nodeType){case 3:return O.textContent;default:return""}};
$p=function(O,x){return O.year===x.year&&O.month===x.month&&O.day===x.day};
iw=function(O,x){return O.year!==x.year?O.year<x.year:O.month!==x.month?O.month<x.month:O.day<x.day};
yKm=function(O){return{year:O.getFullYear(),month:O.getMonth(),day:O.getDate()}};
ZRr=function(O){var x=uYr;x=x===void 0?uYr:x;x(new Date(O.year,O.month,O.day))};
OM=function(O){return yKm(new Date(Number(O.seconds)*1E3))};
EMs=function(O){return O.year!==void 0&&O.month!==void 0&&O.day!==void 0};
t0L=function(O){return O.start!==void 0&&O.end!==void 0};
q3i=function(O){return t0L(O)?O.start:O};
Pym=function(O){return t0L(O)?O.end:void 0};
IAr=function(O,x){for(var e=[],l=new Date(O.start.year,O.start.month);l.getFullYear()<O.end.year||l.getFullYear()===O.end.year&&l.getMonth()<=O.end.month;){var C=e,Q=C.push,L=l.getFullYear(),k=l.getMonth(),M=O,G=x,X=void 0,y=[],Z=Object.freeze({extraCssClass:"invisible"}),E=new Date(L,k),P=yKm(E);E=E.getDay();for(var U=yKm(new Date);P.month===k;){E!==cKs&&X||(X=Array.from({length:7}).fill(Z),y.push(X));var W={date:{year:L,month:k,day:P.day},extraCssClass:"",debugClass:""};W.extraCssClass=G(W.date,
P,U,M).trim();X[(E-cKs+7)%7]=W;P=P.day===xYr(P.year,P.month)?P.month===11?{year:P.year+1,month:0,day:1}:{year:P.year,month:P.month+1,day:1}:{year:P.year,month:P.month,day:P.day+1};E=(E+1)%7}Q.call(C,{weeks:y,monthLabel:xV.SHORTMONTHS[k]+" "+L,year:L,month:k,monthLabelExtraCssClass:y[0][2]===Z?"shift-down-label":""});l.setMonth(l.getMonth()+1)}return e};
V0w=function(O,x){x=x.months.findIndex(function(e){return e.year===O.year&&e.month===O.month});
return x>=0?x:void 0};
Rer=function(O,x){a:{var e=e===void 0?[2,3]:e;e=_.T(e);for(var l=e.next();!l.done;l=e.next()){var C=new Date;if((new p7W(l.value)).parse(x,C,{validate:!0})){C.setHours(0,0,0,0);x=C;break a}}x=null}if(!x)return{isValid:!1,value:void 0};x=yKm(x);e=O.end;return iw(x,O.start)||iw(e,x)?{isValid:!1,value:void 0}:{isValid:!0,value:x}};
Wji=function(O){var x=UYr;x=x===void 0?aA8:x;var e=O.columnsToShow||[],l=mY8(O.columnDimensions,O.columnsToShow,O.leftFloatingColumns,x);return e.map(function(C,Q){var L=O.columns[C];if(L===void 0)throw Error("Xh");var k=l?l[Q]:"";var M=O.getCustomTooltip?O.getCustomTooltip(C,L.headerTooltipParagraphs):L.headerTooltipParagraphs;var G=sNi(O,C);return{type:C,index:Q,style:k,classes:G,headerName:L.headerName||"",headerIcon:L.headerIcon,headerTooltipParagraphs:M||[],headerTooltipHelpContext:L.headerTooltipHelpContext,
sortOrders:L.sortOrders||[],selectionState:L.isSelectionCheckbox?O.selectionState:void 0}})};
sNi=function(O,x){var e=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],l=O.columns[x];if(l===void 0)return"";var C=e.includes("DEFAULTS")&&l.cssClass?[l.cssClass]:[];if(e.includes("SORTING")){l.sortOrders&&l.sortOrders.length&&C.push("sortable");if(O.sorting&&O.sorting.columnType===x)a:switch(O.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var Q="column-sorted";break a;default:Q=""}else Q="";Q&&C.push(Q)}e.includes("FLOATING")&&(x=O.columnsToShow.indexOf(x),O.leftFloatingColumns&&x<O.leftFloatingColumns&&
C.push("floating-column"),O.leftFloatingColumns&&x===O.leftFloatingColumns-1&&C.push("last-floating-column"));e.includes("RIGHT_ALIGN")&&l.rightAlignHeader&&C.push("right-align");return C.filter(function(L){return L}).join(" ")};
mY8=function(O,x,e,l){e=e===void 0?0:e;l=l===void 0?aA8:l;if(O){var C=[],Q=0;hem(O,x,l).forEach(function(L,k){var M="min-width:"+L.minWidth+"px;padding-left:"+L.paddingLeft+"px;padding-right:"+L.paddingRight+"px;flex:"+L.flexGrow+" 0 "+L.minWidth+"px;";L.maxWidth!==Infinity&&(M=[M,"max-width:"+L.maxWidth+"px;"].join(""));Q>0&&k<e&&(M=[M,"left:"+Q+"px;"].join(""));C.push(M);Q+=L.minWidth+L.paddingLeft+L.paddingRight});
return C}};
hem=function(O,x,e){e=e===void 0?aA8:e;return x.map(function(l,C){l=O&&O[l]||{};var Q=C===0?e.paddingLeftFirstColumn:e.padding;l.paddingLeft!==void 0&&(Q=l.paddingLeft);C=C===x.length-1?e.paddingRightLastColumn:e.padding;l.paddingRight!==void 0&&(C=l.paddingRight);return{paddingLeft:Q,paddingRight:C,minWidth:l.minWidth!==void 0?l.minWidth:e.minWidth,maxWidth:l.maxWidth!==void 0?l.maxWidth:e.maxWidth,flexGrow:l.flexGrow!==void 0?l.flexGrow:e.flexGrow}})};
zer=function(O){var x=O.reduce(function(l,C){var Q=C.columnId,L={};C.headerText&&(L.headerName=_.db(C.headerText));C.rightAlignHeader&&(L.rightAlignHeader=C.rightAlignHeader);var k;if((k=C.headerIcon)==null?0:k.iconType)L.headerIcon=_.x0(C.headerIcon.iconType);l[Q]=L;return l},{}),e=O.filter(function(l){return!l.hideColumn}).map(function(l){return l.columnId});
O=O.filter(function(l){return!!l.dimensions}).reduce(function(l,C){l[C.columnId]=C.dimensions;
return l},{});
return{columns:x,columnsToShow:e,columnDimensions:O}};
_.rK7=function(O){return O?O.simpleText?O.simpleText:O.runs?O.runs.map(function(x){return x.text}).join(""):"":""};
Y3m=function(O){var x=O.data;var e=O.onTap;var l=O.isSelected;var C=O.onFocusIn;if(!x)return{};O=HR7(x);l===void 0&&(l=x==null?void 0:x.isSelected);var Q;return{text:Kj$(x,O),startIcon:(Q=x.icon)==null?void 0:Q.iconType,state:l?0:2,type:0,style:dYs(x),onTap:nM8(x,e),accessibilityLabel:u$7(x,O),onFocusIn:function(){return C==null?void 0:C()}}};
Kj$=function(O,x){if(!x)return O.text?_.rK7(O.text):void 0};
dYs=function(O){var x;switch((x=O.style)==null?void 0:x.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
nM8=function(O,x){return function(e){x==null||x(e,O)}};
HR7=function(O){O=O.style&&O.style.styleType;return!QZr&&O==="STYLE_EXPLORE_LAUNCHER_CHIP"};
u$7=function(O,x){if(x){var e,l,C;return(C=(e=O.accessibilityData)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label)!=null?C:Kj$(O,!1)}};
eK=function(O){return{signalAction:{signal:O}}};
fAV=function(){return _.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?BnW:_.vML};
JKN=function(O,x){O=O===void 0?"SOFT_RELOAD_PAGE":O;x=x===void 0?49504:x;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.J3(_.CZ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:x}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:O}}]}}}};
w77=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.J3(_.CZ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:fAV()}};
S3n=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.J3(_.CZ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:fAV()}};
jNN=function(O,x){var e=_.J3(_.CZ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),l=_.J3(_.CZ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),C={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.J3(_.CZ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};C.serviceEndpoint=O?O:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[eK("SOFT_RELOAD_PAGE")]}};return{title:e,bodyText:l,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:C},
style:{value:x!=null?x:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
gMr=function(O){O=O===void 0?{}:O;return{title:_.J3(O.localizedZeroStateTitleText===void 0?"":O.localizedZeroStateTitleText),bodyText:_.J3(O.localizedZeroStateMessage===void 0?"":O.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.J3(O.localizedZeroStateButtonText===void 0?"":O.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[NnL]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
iRi=function(O){O=O===void 0?{}:O;return{title:_.J3(O.localizedOptInBannerTitleText===void 0?"":O.localizedOptInBannerTitleText),titleLength:19,subtitle:_.J3(O.localizedOptInMessage===void 0?"":O.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.J3(_.CZ("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:_.J3(_.CZ("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:[$YN]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
eBV=function(O,x){var e=x=x===void 0?{}:x;x=e.offlineTitleText===void 0?"":e.offlineTitleText;var l=e.offlineDescriptionText===void 0?"":e.offlineDescriptionText,C=e.formattedSupplementalText,Q=e.actionButtonText===void 0?"":e.actionButtonText,L=e.titleText===void 0?"":e.titleText;e=e.descriptionText===void 0?"":e.descriptionText;var k={title:Q,accessibilityText:Q,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"}}}}};O||(L=x,e=l,k={title:Q,accessibilityText:Q,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:_.J3(L),titleLength:L.length,overrideTitleMaxFontSize:30,subtitle:_.J3(e),supplementalText:C,primaryButton:{buttonViewModel:k},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[O8s]},darkTileImage:{thumbnails:[xE8]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.Qrr=function(O,x,e,l,C,Q,L,k,M,G,X){C=C===void 0?!1:C;Q=Q===void 0?!1:Q;L=L===void 0?0:L;k=k===void 0?-Infinity:k;M=M===void 0?!1:M;G=G===void 0?!1:G;X=X===void 0?!1:X;var y=[],Z=_.J3(_.CZ("SMART_DOWNLOADS",void 0,"Smart downloads")),E=_.J3(l8V(L,k,O.length));k=L=void 0;G?L={statementBannerRenderer:eBV(X,l)}:C?O.length>0?k=Caw(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.t("kevlar_manual_downloads_above"),Z,E):M?k={alertBannerViewModel:{heading:{content:e.localizedOptInBannerTitleText===
void 0?"":e.localizedOptInBannerTitleText},body:{content:e.localizedPromptMessage===void 0?"":e.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CZ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.CZ("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:_.Zd7}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:Q&&(k={backgroundPromoRenderer:{bodyText:_.J3(_.CZ("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"}}}):
Q&&(k={alertBannerViewModel:{heading:{content:e.localizedOptInBannerTitleText===void 0?"":e.localizedOptInBannerTitleText},body:{content:e.localizedOptInMessage===void 0?"":e.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CZ("TURN_ON",void 0,"Turn on"),accessibilityText:_.CZ("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}}}}}});e=_.J3(_.CZ("YOUR_DOWNLOADS",void 0,"Your downloads"));l=void 0;x.length>0?(l=void 0,_.t("kevlar_display_downloads_numbers")&&(l=_.J3(_.QO("VIDEO_COUNT",x.length))),l=Caw(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,e,l)):C||O.length||
G||(l={backgroundPromoRenderer:{bodyText:_.J3(_.CZ("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}}}});L?y.push({richSectionRenderer:{content:L}}):k&&!_.t("kevlar_manual_downloads_above")&&y.push({richSectionRenderer:{content:k,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
l&&y.push({richSectionRenderer:{content:l,loggingDirectives:{clientVeSpec:{uiType:51721}}}});k&&_.t("kevlar_manual_downloads_above")&&y.push({richSectionRenderer:{content:k,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(x.length>0||C&&O.length>0&&!G)&&y.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.J3(_.CZ("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:y}};
_.Tm7=function(O){return b8r(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Lms=function(O){return b8r(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
b8r=function(O,x){var e=[];O=Caw(O,x,!0);e.push({richSectionRenderer:{content:O}});return{contents:e}};
Caw=function(O,x,e,l,C){e=e===void 0?!1:e;var Q="RESPONSIVE_SIZE_STANDARD";_.t("kevlar_standard_rich_grid_on_offline_home")&&x==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?Q="RESPONSIVE_SIZE_STANDARD":_.t("kevlar_modern_downloads_compact")?Q="RESPONSIVE_SIZE_COMPACT":_.t("kevlar_modern_downloads_extra_compact")?Q="RESPONSIVE_SIZE_EXTRA_COMPACT":_.t("kevlar_modern_downloads_tiny")&&(Q="RESPONSIVE_SIZE_TINY");O={isExpanded:e,contents:lc(O),entitySelectorType:x,responsiveContainerConfiguration:{responsiveSize:Q}};
l&&(O.title=l);C&&(O.subtitle=C);e||(_.t("kevlar_smart_downloads_show_more_button")?(O.showMoreButton={buttonRenderer:{accessibility:{label:_.CZ("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.J3(_.CZ("SHOW_MORE",void 0,"Show more"))}},O.showLessButton={buttonRenderer:{accessibility:{label:_.CZ("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.J3(_.CZ("SHOW_LESS",void 0,"Show less"))}}):(O.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.CZ("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}}}},O.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.CZ("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}}}},O.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.CZ("VIEW_ALL",void 0,"View all"),accessibilityText:_.CZ("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:_.vU("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:O}};
lc=function(O){var x=[];O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,xLV(e)){var l=x,C=l.push;var Q=void 0;if(e==null?0:(Q=e.videoEntity)==null?0:Q.videoId){Q=UQ(_.u9().getState(),e.videoEntity.videoId);var L=_.u9().getState();var k=_.OQ(e.videoEntity.videoId,"mainVideoEntity");L=!!_.Xx(L.entities)[k];L={videoId:e.videoEntity.videoId,title:wT(e.videoEntity.title),shortBylineText:wT(e.channelEntity.title),thumbnail:e.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:L&&_.t("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:s77(e.videoEntity.videoId,Q,e.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.CZ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};e.videoEntity.lengthSeconds&&(L.thumbnailOverlays=QXL(e.videoEntity.lengthSeconds,Q));L.isWatched=Q>0;_.t("kevlar_modern_downloads_page")&&(L.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:e.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.CZ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},L.badges=void 0);e=L}else e={};C.call(l,{richItemRenderer:{content:{videoRenderer:e},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Odn(e)){l=x;C=l.push;var M=k=Q=void 0,G=void 0,X=void 0,y=void 0,Z=void 0,E=void 0,P=void 0,U=void 0,W=void 0,z=void 0;L=e.mainPlaylistEntity.playlistId;var r=e==null?void 0:(z=e.mainPlaylistEntity)==null?void 0:(W=z.thumbnailStyleData)==null?void 0:(U=W[0])==null?void 0:(P=U.value)==null?void 0:(E=P.collageThumbnail)==
null?void 0:E.coverThumbnail;if(L&&r){E=Wwn(L);!_.t("enable_offline_playlist_page")&&(e==null?0:(Z=e.mainPlaylistEntity)==null?0:Z.videos)&&(Z=e==null?void 0:(y=e.mainPlaylistEntity)==null?void 0:(X=y.videos)==null?void 0:X[0],X=_.gT(Z).entityId,X=JSON.parse(X).videoId,X!==void 0&&(y=UQ(_.u9().getState(),X),E=_.fZ(X,L,void 0,void 0,y)));X=[];if(e==null?0:(G=e.mainPlaylistEntity)==null?0:(M=G.videos)==null?0:M.length)X=[n5N(),Object.assign({},(k=dON(e==null?void 0:e.mainPlaylistEntity.videos.length))!=
null?k:{})];e={playlistId:L,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:r}},navigationEndpoint:E,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:X,title:wT(e.mainPlaylistEntity.title),shortBylineText:wT(e==null?void 0:(Q=e.channelEntity)==null?void 0:Q.title),badges:[{metadataBadgeRenderer:{label:_.CZ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.t("kevlar_modern_downloads_page")&&(e.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:kVr,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:L,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CZ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},e.badges=void 0)}else e=void 0;C.call(l,{richItemRenderer:{content:{playlistRenderer:e},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return x};
l8V=function(O,x,e){O=O?AFi(O):"";x!==void 0&&isFinite(x)?x===0?x=_.CZ("UPDATING",void 0,"Updating..."):(x=CZr(new Date(x),new Date),x=_.CZ("UPDATED_TIME",{relative_time:x},"Updated "+x)):x="";var l="";O&&x&&(l=" \u2022 ");if(e&&_.t("kevlar_display_downloads_numbers")){e=_.QO("VIDEO_COUNT",e);if(O||x)l=" \u2022 ";return e+l+O+l+x}return O+l+x};
Mcm=function(O){return Jdr(O.entities).length};
_.DEr=function(O,x){var e=hdn(O.responsiveSize),l;O=!((l=O.responsiveMap)==null||!l.some(function(C){return C.containerSize==="CONTAINER_SIZE_NARROW"&&C.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:x,sizing:e,enableFullBleedForSingleCol:!1,isCompactList:e==="COMPACT"&&O}};
GV$=function(O,x){return _.xE(O.entities,"votingEntity",x)};
CM=function(O){if(O){var x;return((x=_.GG().resolve(_.D0(_.rP)))==null?0:x())?O.darkTheme:O.lightTheme}};
FmL=function(O,x){if(O.simpleText)return Object.assign({},O,{simpleText:Ws(O.simpleText,x)});if(!O.runs)return O;for(var e=Object.assign({},O,{runs:[]}),l=0,C=_.T(O.runs),Q=C.next();!Q.done;Q=C.next())if(Q=Q.value,Q.text)if(l+Q.text.length<=x)e.runs.push(Q),l+=Q.text.length;else return e.runs.push(Object.assign({},Q,{text:Ws(Q.text,x-l)})),e;return O};
XaL=function(O,x){return _.xE(O.entities,"chipBarStateEntity",x)};
ol8=function(O,x){return _.xE(O.entities,"chipEntity",x)};
Z8n=function(O,x,e,l){return function(){var C=yFi.has(O.displayType)&&O.selected,Q=C&&O.deselectCommand?O.deselectCommand:O.tapCommand;!Q||C&&l||_.me(Q,{form:{element:x==null?void 0:x.value}});e==null||e()}};
ElL=function(O){switch(O){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""}};
tcL=function(O,x){return{triggeringElement:O,onDwellTriggeredFn:function(){var e={triggeringElement:O,loadVideoPreviewEventData:x},l=document.querySelector(".video-preview");l&&l.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:e}))},
onDwellEndFn:function(){var e=document.querySelector(".video-preview");e&&e.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
qk7=function(O,x){var e=_.GG().resolve(_.D0(tkn)),l=function(){var C=x();return e&&C?tcL(O.value,C):null};
_.uo(function(){var C=l();e&&C&&Promise.resolve().then(function(){e.registerElement(C)});
_.YO(function(){e&&C&&Promise.resolve().then(function(){_.Vu(e,C)})})},"csPUge")};
cFi=function(O){var x=O.dataset.resizeObserverId;if(x)return x;x=""+Par++;return O.dataset.resizeObserverId=x};
I8N=function(O,x){var e=cFi(O);Qn.has(e)||Qn.set(e,new Set);Qn.get(e).add(x);bc.has(e)&&x(Object.assign({},{target:O},bc.get(e)))};
Vcn=function(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;var e=cFi(x.target),l=Object.assign({},{target:x.target},bc.get(e));if(l!=null&&l.contentRect?l.contentRect.width!==x.contentRect.width||l.contentRect.height!==x.contentRect.height:1)for(bc.set(e,{borderBoxSize:x.borderBoxSize,contentBoxSize:x.contentBoxSize,contentRect:x.contentRect,devicePixelContentBoxSize:x.devicePixelContentBoxSize}),e=_.T(Qn.get(e)||[]),l=e.next();!l.done;l=e.next())l=l.value,l(x)}};
RBr=function(){return T_?T_:T_=new pas(Vcn)};
UE8=function(O,x){var e=cFi(O);Qn.has(e)&&(Qn.get(e).delete(x),Qn.get(e).size===0&&(Qn.delete(e),bc.delete(e),T_.unobserve(O),delete O.dataset.resizeObserverId));Qn.size===0&&T_&&(T_.disconnect(),T_=void 0)};
mE8=function(O,x){var e=_.GG().resolve(GQ);return a8W.map(function(l){return e.observe(O,x,l)})};
srW=function(O){var x=_.GG().resolve(GQ);O.forEach(function(e){x.unobserveByKey(e)})};
_.zBV=function(O,x){var e=Object.assign({},WmL,x);x=_.T(Bln());var l=x.next().value,C=x.next().value,Q=function(L){var k=L.contentRect.height;if((L=L.contentRect.width)||k||e.canHaveZeroSize)l.width()===L&&l.height()===k||C(l,{height:k,width:L})};
_.YK(function(){var L=O instanceof HTMLElement?O:O.value,k=hBL(Q,e.throttleMs),M=[];e.useVisibilityObserver&&(M=mE8(L,function(G,X){requestAnimationFrame(function(){X==="visible"?(I8N(L,k),RBr().observe(L)):UE8(L,k)})}));
M.length||(I8N(L,k),RBr().observe(L));_.YO(function(){M.length&&(srW(M),M.length=0);UE8(L,k)})});
return l};
H87=function(O,x,e,l,C){O=x?O.switchOffCommand:O.switchOnCommand;if(l&&C)rFV(O,e,C);else{var Q,L;(Q=_.Ux({elementsCommand:O}))==null||(L=Q.onclick)==null||L.call(Q,e)}};
rFV=function(O,x,e){O=_.Ux({elementsCommand:O,additionalCommandArgs:{commandController:{onSuccess:function(){e(!1)},
onServerError:function(){e(!1)}}}});
if(O==null?0:O.onclick)O.onclick(x),e(!0)};
dEW=function(O){if(O)return _.q(O,Kmn)};
nln=function(O,x){if(!((O==null?0:O.entitySelectorType)&&(O==null?0:O.entityKey)))return{};switch(O.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.t("enable_web_shorts_captions_language_command")){var e;var l=(e=_.eR())==null?void 0:e.getOption("captions","track");var C,Q=typeof(l==null?void 0:l.translationLanguage)==="object"&&((C=l.translationLanguage)==null?void 0:C.languageName)||(l==null?void 0:l.displayName)||"";l={data:Object.assign({},
!!Q&&{selectionText:{content:Q}},!!Q&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof l==="undefined"})}}else l={};return l;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.t("web_shorts_audio_track_picker")){var L;C=((L=_.eR())==null?void 0:L.getAudioTrack())||void 0;e=C==null?void 0:(Q=C.getLanguageInfo())==null?void 0:Q.getName();C={data:Object.assign({},{selectionText:{content:e}},e&&!(C==null?0:(l=C.getLanguageInfo())==
null?0:l.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else C={};return C;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return l=O!=null&&O.entityKey?(l=_.ee(x,O.entityKey))?{isHidden:(l==null?void 0:l.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},l;default:return{}}};
u0V=function(O){var x=["A".toString(),"BUTTON".toString()];return function(e){var l=function(C){_.E9(_.Zc(C),e,x)||O(C)};
e.addEventListener("click",l);return function(){e.removeEventListener("click",l)}}};
_.YkL=function(O){return function(){return _.q(O(),_.LM)}};
BmN=function(O){switch(O){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
vl7=function(O){switch(O){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
f8m=function(O){switch(O){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
NmV=function(O,x,e){if(x)return[JFi];switch(O){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[kV];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return e?[kV]:[waL,kV];case "TRANSFER_STATE_PAUSED_BY_USER":return[SkV,kV];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[jrW,kV];default:return[JFi]}};
glr=function(O,x,e,l){return NmV(O,x,l).map(function(C){var Q=C.text,L=C.iconType,k=C.videoAction;C=C.playlistAction;Q=Q?{content:Q}:void 0;L=L&&{sources:[{clientResource:{imageName:L}}]};var M=(0,_.HX.unsafeClone)(e);if(M){var G=_.q(M,_.bw),X=_.q(M,_.TA);G&&k?G.action=k:X&&C&&(X.action=C)}return{title:Q,leadingImage:L,rendererContext:M&&{commandContext:{onTap:{innertubeCommand:M}}}}})};
$EV=function(O){O=_.tA(O.rendererContext);var x;return(x=_.q(O,_.TA))==null?void 0:x.playlistId};
i8w=function(O){var x;return(x=O.listItems)==null?void 0:x.some(function(e){var l;return _.qR((l=_.q(e,_.GA))==null?void 0:l.rendererContext)})};
eHr=function(O){var x;return(x=O.listItems)==null?void 0:x.some(function(e){var l,C,Q=(C=(l=_.q(e,OXW))==null?void 0:l.defaultListItem)!=null?C:e;e=_.q(Q,_.GA);return!!_.q(e==null?void 0:e.leadingAccessory,xW$)})};
QJ8=function(O){var x=O.element;var e=O.veType;var l=O.storedVisualElement===void 0?null:O.storedVisualElement;var C=O.elementIndex===void 0?0:O.elementIndex;O=O.clientYouTubeData;var Q=_.Pq();Q!==loN&&(CCs.clear(),loN=Q);if(x.visualElement&&CCs.has(x.visualElement))return null;if(l&&CCs.has(l))return x.visualElement=l,null;e=_.L_(_.k0(),{veType:e,elementIndex:C,clientYouTubeData:O});if(!e)return null;x.visualElement=e;CCs.add(e);return e};
_.Ai=function(O,x,e,l){e=e===void 0?null:e;l=l===void 0?uE8:l;var C=C===void 0?null:C;Ex(function(){if(x){e instanceof Function&&(e=e());var Q=QJ8({element:x,veType:O,storedVisualElement:e,clientYouTubeData:void 0});Q&&(ve$(x,C),l(Q))}})};
MS=function(O){var x=_.GG().resolve(_.D0(_.rP));return x!=null&&x()?O.darkThemeColorPalette:O.lightThemeColorPalette};
G_=function(O){return{primaryTextColor:Dw(O,0),secondaryTextColor:Dw(O,1),optionColor:Dw(O,2),backgroundColor:Dw(O,3),videoBackgroundColor:Dw(O,4)}};
Dw=function(O,x){if(O){switch(x){case 0:O=O.primaryTitleColor;break;case 1:O=O.secondaryTitleColor;break;case 2:O=O.surgeColor;break;case 3:O=O.section2Color;break;case 4:O=O.section3Color;break;default:return}if(O)return _.UA(O)}};
FG=function(O,x){if(O){switch(x){case 0:O=O.primaryTitleColor;break;case 1:O=O.secondaryTitleColor;break;case 2:O=O.surgeColor;break;case 3:O=O.section2Color;break;case 4:O=O.section3Color;break;default:return}if(O)return _.UA(O)}};
bXV=function(O){return O?_.aF(O):""};
TRV=function(O){return(O==null?void 0:O.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
LJs=function(O,x){return _.xE(O.entities,"videoOverviewAsyncDataEntity",x)};
kw8=function(O,x){var e;return"linear-gradient(to bottom, "+((e=x==null?void 0:x.map(function(l){var C=O?l.darkThemeColor:l.lightThemeColor;return C?_.aF(C)+" "+((l==null?void 0:l.startLocation)||0)*100+"%":"transparent"}))==null?void 0:e.join(", "))+")"};
AWr=function(O,x,e,l,C){if(!((l==null?0:l.height)&&(l==null?0:l.width)))return{size:0};var Q=l.width;l=l.height;if(C)return x==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||x==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&Q>l?{size:312/fUr}:x==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(e!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||O!==1&&O!==2||x!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&x!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&x!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(x==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||x==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||l===Q)switch(O){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(x==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||l>Q)switch(O){case 1:case 3:return{size:240*vJm};default:return{size:360*vJm}}switch(O){case 1:case 2:return{size:1/fUr*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.MFr=function(O){if(!("matchMedia"in window))return _.OC(Error("Yh")),function(){return!1};
var x=window.matchMedia(O);O=_.T(_.Iw(x.matches,void 0,"jLJc8e"));var e=O.next().value,l=O.next().value,C=function(Q){l(Q.matches)};
x.addEventListener?(x.addEventListener("change",C),_.YO(function(){x.removeEventListener("change",C)})):x.addListener&&(x.addListener(C),_.YO(function(){x.removeListener(C)}));
return e};
DWr=function(O){return O==="IMAGE_BANNER_STYLE_INSET"||O==="IMAGE_BANNER_STYLE_UNKNOWN"};
Gww=function(){if(!("matchMedia"in window))return _.OC(Error("Yh")),function(){return 0};
var O=BE(function(){return window.matchMedia("(max-width: 527.9px)")}),x=BE(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),e=BE(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),l=BE(function(){return window.matchMedia("(min-width: 1024px)")}),C=_.T(_.Iw(O.matches,void 0,"og9kEc")),Q=C.next().value,L=C.next().value;
C=_.T(_.Iw(x.matches,void 0,"ybDWCb"));var k=C.next().value,M=C.next().value;C=_.T(_.Iw(e.matches,void 0,"o0Gfh"));var G=C.next().value,X=C.next().value;C=_.T(_.Iw(l.matches,void 0,"yqUUgd"));var y=C.next().value,Z=C.next().value,E=BE(function(){return function(z){L(z.matches)}}),P=BE(function(){return function(z){M(z.matches)}}),U=BE(function(){return function(z){X(z.matches)}}),W=BE(function(){return function(z){Z(z.matches)}});
_.YK(function(){O.addEventListener?(O.addEventListener("change",E),x.addEventListener("change",P),e.addEventListener("change",U),l.addEventListener("change",W)):O.addListener&&(O.addListener(E),x.addListener(P),e.addListener(U),l.addListener(W));_.YO(function(){O.removeEventListener?(O.removeEventListener("change",E),x.removeEventListener("change",P),e.removeEventListener("change",U),l.removeEventListener("change",W)):O.removeListener&&(O.removeListener(E),x.removeListener(P),e.removeListener(U),
l.removeListener(W))})});
return function(){return Q()?1:k()?2:G()?3:y()?4:0}};
FJ8=function(O){var x=0;O=_.T([O.title,O.metadata,O.actions,O.description,O.attribution]);for(var e=O.next();!e.done;e=O.next())e.value&&x++;return x};
X9w=function(O){return O===1||O===2?1:0};
yWs=function(O){O=(new o$w).parse(O);return(new Uv).render(O).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(x){var e=x.split(":").map(Number),l=0,C=0;if(e.length===3)e=_.T(e),l=e.next().value,C=e.next().value,e=e.next().value;else if(e.length===2)e=_.T(e),C=e.next().value,e=e.next().value;else if(e.length===1)e=_.T(e).next().value;else throw Error("Zh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(l*3600+C*60+e)+'" role="button">'+x+"</span>"})};
ZXr=function(O){O=_.T(O.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var x=O.next(),e={};!x.done;e={clickHandler$jscomp$5:void 0},x=O.next()){x=x.value;e.clickHandler$jscomp$5=function(C){C=Number(C.target.getAttribute("data-time"));if(isNaN(C))throw Error("$h");var Q;(Q=_.eR())==null||Q.seekTo(C,!0)};
var l=function(C){return function(Q){Q.key!=="Enter"&&Q.key!=="Space"||(0,C.clickHandler$jscomp$5)(Q)}}(e);
x.setAttribute("tabindex","0");x.removeEventListener("click",e.clickHandler$jscomp$5);x.removeEventListener("keydown",l);x.addEventListener("click",e.clickHandler$jscomp$5);x.addEventListener("keydown",l)}};
E$s=function(){return _.D("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.D(XG,{percentWidth:100}),_.D(XG,{animationDelay:200}),_.D(XG,{animationDelay:400}),_.D(XG,{animationDelay:600}),_.D(XG,{animationDelay:800,percentWidth:60}),_.D("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.D(XG,{percentWidth:100}),_.D(XG,{animationDelay:200}),_.D(XG,{animationDelay:400}),_.D(XG,{animationDelay:600,percentWidth:50}))};
XG=function(O){return _.D("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(O.percentWidth===void 0?100:O.percentWidth)+"%"},_.D("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(O.animationDelay===void 0?0:O.animationDelay)+"ms"}))};
tFr=function(){var O=_.T(_.Iw(function(){return""},void 0,"dXJHWc")),x=O.next().value;
return[function(){return x()()},
O.next().value]};
qR7=function(O,x){O=O?AFi(O):"";x!==void 0&&isFinite(x)?x===0?x=_.CZ("UPDATING",void 0,"Updating..."):(x=CZr(new Date(x),new Date),x=_.CZ("UPDATED_TIME",{relative_time:x},"Updated "+x)):x="";var e="";O&&x&&(e=" \u2022 ");return _.J3(O+e+x)};
Ior=function(O,x,e,l,C,Q){x=x===void 0?0:x;var L=PCW[x],k=L.title,M=L.iconType,G=L.topButtonRenderer,X=L.sectionClientVE;L=L.videoClientVE;var y;if(x!==1||O.length){e=[];O=_.T(O);for(l=O.next();!l.done;l=O.next()){var Z=l.value;if(xLV(Z))e.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Z.videoEntity.videoId,title:wT(Z.videoEntity.title),shortBylineText:wT(Z.channelEntity.title),thumbnail:Z.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Z.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.CZ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:L}}}}}});else if(Odn(Z)){l=e;var E=l.push;var P=void 0,U=void 0,W=void 0,z=void 0,r=void 0,f=void 0,u=void 0,Y=void 0,J=Z.mainPlaylistEntity.playlistId,O8=Z==null?void 0:(Y=Z.mainPlaylistEntity)==null?void 0:(u=Y.thumbnailStyleData)==null?void 0:(f=u[0])==null?void 0:(r=f.value)==null?void 0:(z=r.collageThumbnail)==null?void 0:z.coverThumbnail;z=Wwn(J);if(!_.t("enable_offline_playlist_page")&&
(Z==null?0:(W=Z.mainPlaylistEntity)==null?0:W.videos)){b:{W=Z==null?void 0:(U=Z.mainPlaylistEntity)==null?void 0:U.videos;U=_.u9().getState().entities;if(W!=null&&W.length&&U)for(W=_.T(W),r=W.next();!r.done;r=W.next())if(r=_.gT(r.value).entityId,(r=JSON.parse(r).videoId)&&vqV(U,r)==="TRANSFER_STATE_COMPLETE"){U=r;break b}U=""}U!==void 0&&(z=UQ(_.u9().getState(),U),z=_.fZ(U,J,void 0,void 0,z))}U=zm7(_.CZ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Wwn(J));Z=J&&O8&&U?{playlistId:J,navigationEndpoint:z,
viewPlaylistText:U,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O8}},title:wT(Z.mainPlaylistEntity.title),shortBylineText:wT(Z==null?void 0:(P=Z.channelEntity)==null?void 0:P.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:cWN,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:J,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CZ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:L}}}:
void 0;E.call(l,{gridPlaylistRenderer:Z})}}L={gridRenderer:{items:e}};x===1&&(y=qR7(C,Q))}else if(l){var Xr=_.J3((E=e==null?void 0:e.localizedPromptMessage)!=null?E:"");L={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.J3(_.CZ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Zd7}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.J3(_.CZ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};y=qR7(C,Q)}else Xr=_.J3(_.CZ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
L={};return{contents:[{shelfRenderer:{title:k,titleAnnotation:y,icon:{iconType:M},subtitle:Xr,content:L,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:G}]}}}}],loggingDirectives:{clientVeSpec:{uiType:X}}}};
VFL=function(O,x,e,l,C,Q,L,k,M,G,X){e=e===void 0?{}:e;l=l===void 0?{}:l;C=C===void 0?!1:C;Q=Q===void 0?!1:Q;L=L===void 0?!1:L;k=k===void 0?!1:k;M=M===void 0?!1:M;G=G===void 0?0:G;X=X===void 0?-Infinity:X;if(!(x.length||O.length||C||k))return Q?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:gMr(e)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.J3(_.CZ("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 y=[];O.length&&y.push(Ior(O,0));k?y.push({contents:[{statementBannerRenderer:eBV(M,l)}]}):C?y.push(Ior(x,1,e,L,G,X)):Q&&y.push({contents:[{statementBannerRenderer:iRi(e)}]});(C&&x.length||O.length)&&y.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.J3(_.CZ("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 y.map(function(Z){return{itemSectionRenderer:Z}})};
o$=function(O,x){if(typeof O!=="object")return null;O=_.T(Object.entries(O));for(var e=O.next();!e.done;e=O.next()){var l=_.T(e.value);e=l.next().value;l=l.next().value;if(e===x)return e;if(l=o$(l,x))return e+"."+l}return null};
yn=function(O){var x=O.content;return(O=O.styleRuns)&&x?{runs:O.map(function(e){var l={text:x.slice(e.startIndex,e.startIndex+e.length)};e.fontColor&&(l.textColor=e.fontColor);return l})}:{simpleText:x}};
UWr=function(O,x,e,l){var C=p9r;l&&(O.quantity=l);if(!O.quantity||!O.maxQuantity)return{};l=O.minusButton;var Q=O.plusButton,L,k,M,G;return{value:O.quantity,maxValue:O.maxQuantity,onChangeCallback:function(X){C(O,X)},
minusLabel:(L=_.q(l,RHL))==null?void 0:L.label,minimumReachedLabel:(k=_.q(l,RHL))==null?void 0:k.limitReachedLabel,plusLabel:(M=_.q(Q,RHL))==null?void 0:M.label,maximumReachedLabel:(G=_.q(Q,RHL))==null?void 0:G.limitReachedLabel,disabled:x,onRemoveCommand:e}};
p9r=function(O,x){var e=O.quantityIncrementerEntityKey;if(e){var l={};l.quantity=x;_.ns(_.Zw("quantityIncrementerEntity",e,l));O.onChangeCommand&&_.me(O.onChangeCommand)}};
aow=function(O){if(O)return O===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(O).overflowY)?O:aow(O.parentElement)};
WJL=function(O,x){(O=mWN(O))&&((_.t("enable_mini_app_command_handler_mweb_fix")?0:x)?sJr.push({command:O,sourceData:{},commandContext:void 0}):_.GG().resolve(_.Xc).resolveCommand(O))};
mWN=function(O){return _.q(O,_.VG)};
hHL=function(){var O=window.performance.timeOrigin+window.performance.now(),x=(new _.EM).setSeconds(O/1E9);return _.Oh(x,2,_.bL(O%1E9),0)};
rWL=function(O,x){var e;O=(e=_.q(_.q(O,_.VG),zHL))==null?void 0:e.methodName;var l,C;(e=window.youtubewebview||((l=window.webkit)==null?void 0:(C=l.messageHandlers)==null?void 0:C.youtubewebview))&&O&&(l=new ti,O=_.mO(l,1,O),O=_.zX(O.JSC$12545_serializeBinary()),x=_.zX(x),e.postMessage(O+","+x))};
qS=function(O,x){var e=_.q(_.q(O,_.VG),zHL);e&&(x&&(e.serializedAdditionalMetadata=_.zX(x)),WJL(O,!0))};
HXW=function(O){switch(O){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"}};
KJr=function(){return!!_.wz("ID_TOKEN")};
uhr=function(O){return O instanceof Error&&O.cause instanceof dWs&&O.cause.rpcErrorCode!==void 0?!n$s.includes(O.cause.rpcErrorCode):!0};
BR$=function(){return _.bu(YR8,{authuser:""+(_.wz("SESSION_INDEX")||0)})};
Pb=function(O,x,e,l){e=e===void 0?"MINI_APP_SDK_API_UNSPECIFIED":e;l=l===void 0?"":l;var C=new _.ry;e={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:l,sdkApi:e};O instanceof Error&&(C.message=O.message,C.name=O.name,O.cause instanceof dWs&&O.cause.rpcErrorCode!==void 0&&(e.rpcErrorCode=O.cause.rpcErrorCode));var Q;(Q=x.onError)==null||Q.call(x,{loggingError:C,metadata:e})};
foL=function(O,x,e,l){switch(O){case "MINI_APP_SOURCE_GAMESNACKS":return new cb(x,e,l);default:return new v$r(x,e,l)}};
JW$=function(O){switch(O){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"}};
w9N=function(O){switch(O){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"}};
SRV=function(O){switch(O){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"}};
jJi=function(){return Math.floor(Math.random()*4)+1};
NRn=function(O,x,e,l){O=_.T(Object.entries(O));for(var C=O.next(),Q={};!C.done;Q={message$jscomp$996:void 0},C=O.next()){var L=_.T(C.value);C=L.next().value;L=L.next().value;Q.message$jscomp$996=L;x.push(setTimeout(function(k){return function(){l(!1);e(k.message$jscomp$996.text)}}(Q),Q.message$jscomp$996.delayMs));
Number(C)>0&&x.push(setTimeout(function(){l(!0)},Q.message$jscomp$996.delayMs-400))}};
g$L=function(O,x){var e=e===void 0?uE8:e;_.t("mweb_fix_monitor_visibility_after_render")?O&&Ex(function(){ve$(O,x,e)}):Ex(function(){ve$(O,x,e)})};
$Wn=function(O,x){var e=document.createElement("ytd-engagement-panel-section-list-renderer");e.data=O;if(x==null?0:x.isPersistentPanel)e.isPersistentPanel=!0;return e};
eaw=function(O){iXL||(iXL=Ocr(new _.W1(1,void 0,void 0,xls),0));var x=iXL.format(Math.floor(O));x=ax==="be"||ax==="bg"||ax==="es"||ax==="et"||ax==="hu"||ax==="ka"||ax==="lv"||ax==="pl"||ax==="pt-PT"||ax==="sq"?x.replace(new RegExp("^(\\d)"+xls.GROUP_SEP.replace(".","\\.")+"(\\d+("+xls.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):x;return O>=1E3&&O<=9999&&x[1]==="."&&(ax==="sl"||ax==="it")?x.replace(".",""):x};
lRm=function(O,x){T0w("ytd-button-renderer",{data:O,className:x?x.className:"",overrides:x==null?void 0:x.buttonOverrides},$3r)};
bcL=function(O,x,e,l){if(O)return l=l||O.likeStatus,x?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:l==="LIKE",isDisabled:!O.likesAllowed,defaultIcon:{iconType:e},defaultText:l==="LIKE"?O.likeCountWithUnlikeText:O.likeCountText,toggledText:l==="LIKE"?O.likeCountText:O.likeCountWithLikeText,defaultNavigationEndpoint:CdN(O,"LIKE"),defaultServiceEndpoint:Q8r(O,"LIKE"),toggledServiceEndpoint:Q8r(O,"INDIFFERENT"),defaultTooltip:_.db(O.likeCountTooltipText),toggledTooltip:_.db(O.likeCountTooltipText),
targetId:O.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:l==="DISLIKE",isDisabled:!O.likesAllowed,defaultIcon:{iconType:e},defaultText:l==="DISLIKE"?O.dislikeCountWithUndislikeText:O.dislikeCountText,toggledText:l==="DISLIKE"?O.dislikeCountText:O.dislikeCountWithDislikeText,defaultNavigationEndpoint:CdN(O,"DISLIKE"),defaultServiceEndpoint:Q8r(O,"DISLIKE"),toggledServiceEndpoint:Q8r(O,"INDIFFERENT"),defaultTooltip:_.db(O.dislikeCountTooltipText),
toggledTooltip:_.db(O.dislikeCountTooltipText)}};
CdN=function(O,x){if(x==="LIKE")return O.likeCommand;if(x==="DISLIKE")return O.dislikeNavigationEndpoint};
Q8r=function(O,x){var e;return(e=O.serviceEndpoints)==null?void 0:e.find(function(l){var C;return((C=_.q(l,_.I$))==null?void 0:C.status)===x})};
_.kWn=function(O,x,e){return window.spf&&!_.t("web_disable_spfjs_client")?T3r(O,x,e):Lar(O,x)};
T3r=function(O,x,e){var l=null,C=(new _.If(function(Q,L){var k={};if(x){k.method=x.method;var M=x.postParams||{};y37(O,x)&&(M[_.wz("XSRF_FIELD_NAME")]=_.wz("XSRF_TOKEN"));k.postData=_.RO(M);x.type&&(k.type=x.type);M=x.headers}k.headers=M6w(O,M);_.t("debug_forward_web_query_parameters")&&(O=_.XUL(O,window.location.search));k.experimental_headers=k.headers;k.onError=function(G){G.err&&G.xhr&&(G.err.params={url:G.xhr.responseURL,response:G.xhr.responseText.substr(0,64)});L(G.err)};
k.onPartDone=function(G){e&&e.call(null,G.part)};
k.onDone=function(G){var X=A1n(G.response,"xsrf_token");kc(window.location.href,O)&&X&&_.JZ("XSRF_TOKEN",X);if(X=A1n(G.response,"service_worker_killswitch"))_.JZ("SERVICE_WORKER_KILLSWITCH",X),PEV();Q(G.response)};
l=spf.request(O,k)})).then(MLr);
C.thenCatch(function(Q){var L=Q instanceof _.Vn,k=Q&&Q.hasOwnProperty("params")&&Q.params.response?Q.params.response:"";Q instanceof Error&&(k?L?xRL(Q):k===')]}\'\n{"reload":"now"}'?xRL(Q):(Dlw(Q,O,k),GWr(Q,k)?_.ft(Q):_.BH(Q)):xRL(Q));l&&l.abort()});
return C};
MLr=function(O){if(O.type==="multipart"){var x=O.timing;O=O.parts.reduce(function(e,l){Object.assign(e,l);return e},{});
O.timing=O.timing||{};Object.assign(O.timing,x);O.type="reduced"}return O};
Lar=function(O,x){x=x===void 0?{}:x;var e=null,l=new _.If(function(C,Q){x.onFinish=function(L){if(L.readyState===XMLHttpRequest.DONE)if(L.status===200){if(L.responseType!=="json"){var k=L.response;k.substring(0,5)===")]}'\n"&&(k=k.substring(5));try{var M=JSON.parse(k)}catch(G){M=G}}else M=L.response;M instanceof Error?Q(M):(k=A1n(M,"xsrf_token"),kc(window.location.href,O)&&k&&_.JZ("XSRF_TOKEN",k),L=L.responseURL,window.performance&&window.performance.getEntriesByName?(k=window.performance.getEntriesByName(L).pop())?
L={responseStart:(0,_.F2)()-(k.responseEnd-k.responseStart)}:(Math.random()<.01&&(k=Error("li"),k.params=L,_.ft(k)),L={responseStart:-1}):L={responseStart:0},M.timing=M.timing||{},Object.assign(M.timing,L),C(M))}else Q(Error("ki`"+L.status))};
(e=_.pb(O,x))||Q(Error("ki`"+e.status))});
l.thenCatch(function(C){C instanceof Error&&(Dlw(C,O),GWr(C)&&(C.level="WARNING"))});
_.t("cancel_pending_navs")&&l.thenCatch(function(){e.abort()});
return l};
A1n=function(O,x){var e=O[x],l=O.parts;O.type==="multipart"&&l&&(e=(O=l.find(function(C){return x in C}))&&O[x]);
return e};
Dlw=function(O,x,e){var l=O.message||"";x={original:l,url:x};if(e)if(l=l.match(/position:?\s*(\d+)/)){l=l&&Number(l[1])?Number(l[1]):0;var C=Math.max(l-25,0);x.position=l;x.response=e.substring(C,l+25)}else x.response=e.substring(0,50);_.JG(O,x);try{O.message="JSON parse error"}catch(Q){}};
GWr=function(O,x){O=O.message||"";O=!!(O.indexOf("<")>=0||O.indexOf("end of ")>=0||O.indexOf("Unterminated string")>=0||O.indexOf("Unexpected EOF"));if(!O&&x)for(var e=x.length,l=!1,C=0;C<e;C++)if(l&&x[C]==="\\")C++;else if(x[C]==='"')l=!l;else if(x[C]==="<"&&!l){O=!0;break}return O};
Fas=function(){return document.documentElement.hasAttribute("dark")};
_.XQr=function(O,x){if(O!=="GFEEDBACK"&&O!=="GUIDED_HELP")_.jS(Error("mi`"+O));else{var e=_.GG().resolve(_.D0(_.Be));if(e&&(e=e.getCurrentPage())&&e.getServiceTrackingParams&&(e=e.getServiceTrackingParams()))for(var l=0,C;C=e[l++];)if(C.service===O){if(O=C.params)for(e=0;l=O[e++];)x[l.key]=l.value;break}}};
_.oYs=function(O){var x=_.f7();x&&(x=x.getPlayer())&&(x.pauseVideo(),O.playback_id=x.getVideoData().cpn,O.eid=x.getVideoData().eventId,Object.assign(O,x.getFeedbackProductData()))};
y1r=function(){var O={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.wz("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(O.enableAnonymousFeedback=!0);_.wz("SESSION_INDEX")&&(O.authuser=String(_.wz("SESSION_INDEX")));_.t("enable_pageid_for_feedback")&&_.wz("DELEGATED_SESSION_ID")&&(O.pageId=String(_.wz("DELEGATED_SESSION_ID")));return O};
_.pM=function(O){_.t("enable_ypc_spinners")&&_.Sh(O,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},O])};
_.R$=function(O){_.t("enable_ypc_spinners")&&_.Sh(O,"yt-close-popup-action",["yt-loading-renderer"])};
Zc7=function(O){return new Promise(function(x,e){_.Rl({verifyCommand:{recaptchaToken:O.recaptchaResponse}},{commandController:{onSuccess:function(l,C){C||e("ChallengeService did not return a response.");var Q;x({challengeCompleted:(Q=C.verified)!=null?Q:!1})},
onServerError:function(l,C){e(C)}}})})};
EYn=function(O,x,e,l){x({recaptchaResponse:l}).then(function(C){C.challengeCompleted?_.WK()?(e(3),_.GG().resolve(_.Xc).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:O}})):e(2):e(4)},function(){e(4)})};
qI8=function(O,x,e){_.ag(_.on(tLr,_.wz("HL")),function(){var l;(l=window.grecaptcha)==null||l.ready(function(){var C=window.grecaptcha;C?(e(C.render(O,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:EYn.bind(null,O,Zc7,x)})),x(1)):x(4)})})};
Pdi=function(O,x){return function(){switch(x()){case 0:return O().captchaLoadingMessage;case 1:return O().challengeReason;case 3:return O().captchaSuccessfulMessage;case 2:return O().captchaCookieSetFailureMessage;case 4:return O().captchaFailedMessage;default:return O().challengeReason}}()};
_.UM=function(){if(!c1m){var O=document.querySelector("#player.skeleton");O&&(_.Um(O),c1m=!0)}};
_.VLs=function(){return IRn=Plr()};
Ulm=function(){return _.A(function(O){return pQN!==void 0?O.return():O.yield(RaL(),0)})};
RaL=function(){return _.A(function(O){if(O.nextAddress==1)return O.yield(IL$(),2);IRn=O.yieldResult;pQN=_.vn.addLowPriorityJob(RaL,5E3);_.Ra(O)})};
zaL=function(O){var x=x===void 0?aRL:x;var e,l,C=(e=O.responseContext)==null?void 0:(l=e.mainAppWebResponseContext)==null?void 0:l.trackingParam;if(!C){x.increment("MISSING");var Q,L,k,M,G,X;_.ft(new _.ry("282054944_a",{v1z:!!((Q=O.responseContext)==null?0:(L=Q.mainAppWebResponseContext)==null?0:L.loggedOut),lBT:((k=O.responseContext)==null?void 0:k.mainAppWebResponseContext)===void 0,sXD:O.responseContext===void 0,cp:(M=O.playabilityStatus)==null?void 0:M.contextParams,kn8:(((G=O.streamingData)==
null?void 0:G.formats)||[]).length>0,jw2:(((X=O.streamingData)==null?void 0:X.adaptiveFormats)||[]).length>0,os:!!O.offlineState,cotn:O.cotn}));return 2}e="";try{e=ml$(C)}catch(E){return x.increment("C_ERROR"),_.BH(E),2}try{var y=_.s87(e);var Z=Wa8(y)}catch(E){return x.increment("P_ERROR"),_.BH(E),2}Z=_.Mq(Z,ha8,1,_.Dd());C=[];Z=_.T(Z);for(y=Z.next();!y.done;y=Z.next())l=y.value,y=l.getPath(),e=(0,_.HX.getValueByKeys)(O,y.split(".")),e=String(e===void 0||e===null?"":e),l=l.getValue()||"",Q=/[+\-\/_]/g,
e.replace(Q,"")!==l.replace(Q,"")&&(x.increment("MISMATCH"),_.t("ab_mis_log_err")&&(e=new _.ry("282054944_p",{ebT:y,g:String(e),e:String(l)}),_.BH(e)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(y)||(y.match(/enforcementMessageViewModel/i)?C.push(3):C.push(2)));if(C.length>0)return Math.max.apply(Math,_.Kx(C));x.increment("SUCCESS");return 1};
KaW=function(O){var x=new a$;if(O.interpreterJavascript){var e=_.wRs(O.interpreterJavascript);e=lx(e).toString();var l=new r17;_.mO(l,6,e);_.IS(x,1,l,sT)}else O.interpreterUrl&&(e=_.f$(O.interpreterUrl),e=_.sh(e).toString(),l=new _.HcV,_.mO(l,4,e),_.IS(x,2,l,sT));O.interpreterHash&&_.mz(x,3,O.interpreterHash,sT);O.program&&_.mz(x,4,O.program,sT);O.globalName&&_.mz(x,5,O.globalName,sT);O.clientExperimentsStateBlob&&_.mz(x,7,O.clientExperimentsStateBlob,sT);return x};
sM=function(O){var x={};O=_.T(O.split("&"));for(var e=O.next();!e.done;e=O.next())e=e.value.split("="),e.length===2&&(x[e[0]]=e[1]);return x};
dli=function(O){return Number(O.t)||7200};
vKr=function(){if(_.t("bg_st_hr"))return"havuokmhhs-0";var O,x=((O=globalThis.performance)==null?void 0:O.timeOrigin)||0;return"havuokmhhs-"+Math.floor(x)};
nYm=function(){return new Promise(function(O){var x=window;x.ntpevasrs!==void 0?O(new hi(x.ntpevasrs)):(x.ntpqfbel===void 0&&(x.ntpqfbel=[]),x.ntpqfbel.push(function(e){O(new hi(e))}))})};
uiN=function(O){var x=O.xUy.bind(O);_.MB("yt.aba.att",x);O=O.voU.bind(O);_.MB("yt.aba.att2",O)};
B3r=function(O){switch(_.VF(O.input)){case _.YE(YIn):var x={};return x.encryptedVideoId=O.innerTubeRequest.externalVideoId,x}return{}};
J1i=function(O){switch(_.VF(O.input)){case _.YE(YIn):if(_.t("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.YE(vYN):if(_.t("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.YE(z_):if(_.t("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&O.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.YE(fRW):var x,e;if(_.t("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((e=_.q((x=O.config)==null?void 0:x.command,z8W))==null?0:e.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.SIi=function(O){var x;if(O.playlistVideoRenderer&&((x=O.playlistVideoRenderer)==null?0:x.engagementBar))return wQ7(O.playlistVideoRenderer.engagementBar);if(_.q(O,rj)){var e;if(O=(e=_.q(O,rj))==null?void 0:e.engagementBar)return wQ7(O)}return""};
wQ7=function(O){if(!O)return"";O=_.q(O,_.j8W);if(O==null||!O.actions)return"";O=_.T(O.actions);for(O=O.next();!O.done;O=O.next()){O=_.q(O.value,_.N3m);var x=void 0;if((x=O)==null||!x.itemId)break;return O.itemId}return""};
_.gYi=function(O){var x;if(O.playlistVideoRenderer&&((x=O.playlistVideoRenderer)==null?0:x.videoId))return O.playlistVideoRenderer.videoId;if(_.q(O,rj)){var e,l;if(O=(e=_.q(O,rj))==null?void 0:(l=e.playlistItemData)==null?void 0:l.videoId)return O}return""};
_.$lN=function(O){var x;if(O.playlistVideoRenderer&&((x=O.playlistVideoRenderer)==null?0:x.voteCount))return O.playlistVideoRenderer.voteCount;if(_.q(O,rj)){var e,l;if(O=(e=_.q(O,rj))==null?void 0:(l=e.playlistItemData)==null?void 0:l.voteCount)return O}return 0};
_.Hb=function(O,x){return _.xE(O.entities,"flowStateEntity",x)};
OFm=function(O,x,e,l){var C=void 0;O=_.T(O[x.iconName]||[]);for(var Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var L=x.iconSize;var k=x.iconStyle;L=!L||L===Q[2];var M=ic7[Q[0]];l&&l!==Q[1]||!L||k&&k!==M?k=!1:C?(k=ic7[Q[0]],k=!!x.iconStyle||k==="youtube_outline",L=C.version<=Q[1],k=(!!x.iconSize||Q[2]===24)&&k&&L):k=!0;k&&(C={name:x.iconName,style:ic7[Q[0]],size:Q[2],version:Q[1],allowMirroring:!!Q[3],url:e(x.iconName,Q)})}return C};
x68=function(O,x,e,l){return O+(""+ic7[e[0]]+((l===void 0?0:l)?"_experimental":"")+"/"+x+"/v"+e[1]+"/")+(e[2]+"px.svg")};
eyN=function(O){return _.wz("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.wz("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":O};
lkW=function(O,x){return x68("https://fonts.gstatic.com/s/i/",O,x)};
CWL=function(O,x){return x68("https://fonts.gstatic.com/s/i/",O,x,!0)};
Q_n=function(O,x){return x68("https://www.gstatic.com/youtube/img/icons/web/",O,x)};
T5N=function(O){var x=O.enabled;var e=O.itemPlaybackModel;var l=O.thumbnailElRef;var C=O.containerElRef;var Q=O.options;var L;_.uo(function(){var k=C==null?void 0:C.value;var M,G=(M=l())==null?void 0:M.value;M=e();var X=Q();if(x&&M&&k&&G&&(X==null?0:X.thumbnail)){var y={data:M,hostElement:k},Z,E,P=[].concat(_.Kx((Z=X.thumbnailOverlays)!=null?Z:[]),_.Kx((E=M.overlays)!=null?E:[]));E=M.itemPlaybackOptions;Z=(E==null?void 0:E.enableRoundedPlayer)||X.enableRounding;E=E==null?void 0:E.disableTimeStatusOverlay;
var U,W;k={mediaRenderer:y,lockupElement:k,thumbnailElement:G,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.p_((U=M.inlinePlayerData)==null?void 0:U.onVisible),navigationEndpoint:_.p_((W=M.inlinePlayerData)==null?void 0:W.onSelect),thumbnail:X.thumbnail,thumbnailOverlays:P,accessibilityText:X.accessibilityText||""},thumbnailSize:X.thumbnailSize,enableRounding:Z,mouseleaveCallback:X.mouseleaveCallback,hideTimeDisplay:E}}}else k=void 0;if(U=k){var z;(z=L)==null||KM(z);L=It(U);var r,f;
((r=e())==null?0:(f=r.inlinePlayerData)==null?0:f.forceImpAutoplay)&&bFN(L)}},"BLiQOd");
_.YO(function(){var k;(k=L)==null||KM(k)})};
L4i=function(O){O=atob(O);for(var x=[],e=0;e<O.length;e++)x.push(O.charCodeAt(e));return new Blob([new Uint8Array(x)],{type:"image/png"})};
AuL=function(O,x,e,l){l=l===void 0?"INSERTION_POSITION_UNSPECIFIED":l;return O({targetId:x},function(C){var Q,L=(Q=C.contents)!=null?Q:[];Q=e!=null?e:[];var k=kF8(L);switch(l){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},C,{contents:[].concat(_.Kx(L.slice(0,k)),_.Kx(Q),_.Kx(L.slice(k+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},C,{contents:[].concat(_.Kx(Q),_.Kx(L))});case "INSERTION_POSITION_LAST":return Object.assign({},C,{contents:[].concat(_.Kx(L),_.Kx(Q))});
default:return C}})};
D6r=function(O,x,e,l,C){C=C===void 0?"RELATIVE_INSERTION_POSITION_AFTER":C;return O({targetId:x},function(Q){var L,k=(L=Q.contents)!=null?L:[];L=M88(k,e);if(L<0)return Q;L=C==="RELATIVE_INSERTION_POSITION_BEFORE"?L:L+1;return Object.assign({},Q,{contents:[].concat(_.Kx(k.slice(0,L)),_.Kx(l),_.Kx(k.slice(L)))})})};
kF8=function(O){var x=O.findIndex(function(e){return _.q(e,_.dj)});
return x>=0?x:O.length};
M88=function(O,x){return O.findIndex(function(e){a:{e=_.T(Object.values(e));for(var l=e.next();!l.done;l=e.next())if((l=l.value)&&l.targetId){e=l.targetId;break a}e=""}return e===x})};
F4r=function(O,x,e){return O({targetId:x},function(l){var C,Q=(C=l.contents)!=null?C:[];return Object.assign({},l,{contents:GFm(Q,e)})})};
GFm=function(O,x){return O.filter(function(e){var l=x.includes;a:{e=_.T(Object.values(e));for(var C=e.next();!C.done;C=e.next())if((C=C.value)&&C.targetId){e=C.targetId;break a}e=""}return!l.call(x,e||"")})};
_.Xcs=function(O,x){return{engagementPanelSectionListRenderer:{panelIdentifier:O,identifier:x,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
o3r=function(O,x){O=O.getAvailableAudioTracks();if(O.length)return O==null?void 0:O.find(function(e){var l;return(e==null?void 0:(l=e.getLanguageInfo())==null?void 0:l.getId())===x})};
_.ZFV=function(O){var x,e=(x=O.getOption("captions","tracklist",{includeAsr:!0}))!=null?x:[];return e=yuL(e,O)};
E3V=function(O){return O.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
yuL=function(O,x){x=E3V(x);if(x==null||!x.length)return O;var e=x.filter(function(L){return L});
x=O.filter(function(L){return L.languageCode.startsWith("en")});
e=_.T(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,x.length){var C=x[0],Q=Object.assign({},C);C.languageCode!==l.languageCode&&(Q.displayName=C.languageName+" >> "+l.languageName,Q.translationLanguage=l,O.push(Q))}return O};
t8r=function(O,x,e){O=_.ZFV(O);if(O.length)return e?O.find(function(l){if(typeof(l==null?void 0:l.translationLanguage)==="object"){var C;return((C=l.translationLanguage)==null?void 0:C.languageCode)===x}return!1}):O==null?void 0:O.find(function(l){return l.languageCode===x})};
qGw=function(O){return O.getOption("captions","tracklist",{includeAsr:!0})};
PWn=function(O){var x=O.getAvailableAudioTracks();if(x!=null&&x.length){var e=O.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Kx(x.map(function(l){return{listItemViewModel:{title:{content:l.getLanguageInfo().getName()},isSelected:l.getLanguageInfo().getId()===(e==null?void 0:e.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:l.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
cur=function(O){return O.getOption("captions","tracklist",{includeAsr:!0})};
IkW=function(O){var x=cur(O);if(x==null?0:x.length)return x;O.loadModule("captions");return cur(O)};
V8L=function(O){var x=O.getOption("captions","track");if(x)return x;O.loadModule("captions");return O.getOption("captions","track")};
RyL=function(O){var x=IkW(O);if(x!=null&&x.length){var e=V8L(O),l;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.CZ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(e==null?0:e.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Kx(x.map(function(C){return{listItemViewModel:{title:{content:C.displayName},
isSelected:C.displayName===(e==null?void 0:e.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:C.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.CZ("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!e.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!e.translationLanguage&&{selectionText:{content:(e==null?void 0:(l=e.translationLanguage)==null?void 0:l.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[pc7(O)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
pc7=function(O){var x=E3V(O);if(x==null||!x.length)throw Error("Li");var e=V8L(O);O=x.filter(function(l){return!l.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Kx(O.map(function(l){var C;return{listItemViewModel:{title:{content:l.languageName},isSelected:l.languageName===(e==null?void 0:(C=e.translationLanguage)==null?void 0:C.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:l.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
s_W=function(O){return new Promise(function(x,e){if(O===void 0)_.BH(Error("Pi"),"ERROR"),e(Error("Pi"));else{e=new _.U6m;var l=_.ak7();e=e.init();var C=_.m68(_.wz("YPC_MB_URL"),!0);Promise.all([e,C]).then(function(){var Q=_.nM.payments.business.integration.ClientTokenFactory.createClientToken(O,l);x(Q)})}})};
zyn=function(O,x,e,l,C,Q,L){var k=_.He();e=e.replace(/-/g,"+").replace(/_/g,"/");var M=_.TD().get("hl"),G=_.uc(_.dO),X=x==null?void 0:x.element;X&&_.pM(X);W4w(x,!0);_.hyL(G,e,k.resolve,function(){X&&_.R$(X)},function(y){X&&_.R$(X);
k.reject(y)},M,l?function(y){l&&_.z7(O,l,{backend_analytics:y})}:void 0,k.resolve,C,Q,L);
return k.promise};
W4w=function(O,x){!(O=O==null?void 0:O.element)||O.tagName!=="YT-BUTTON-RENDERER"&&O.tagName!=="YTD-BUTTON-RENDERER"||(O.disabled=x)};
ru$=function(){var O=_.CZ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.J3(O),actionButton:{buttonRenderer:S3n()}}},popupType:"TOAST"}};
HFi=function(){var O=_.CZ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.J3(O),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
K4L=function(O){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:O}]}}};
YV=function(O,x,e,l){var C;return _.A(function(Q){if(Q.nextAddress==1)return _.tS(Q,2),Q.yield(O,4);if(Q.nextAddress!=2)return(C=_.DS(x.getState().entities).length>0)?Q.return({title:_.J3(_.CZ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.J3(_.CZ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:w77()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
Q.return(jNN(e,l));_.VP(Q);return Q.return(jNN(e,l))})};
d67=function(O,x){return x?x==="PPSV"||wrL(O,x):!1};
n3W=function(O){O.responseContext||(O.responseContext={});O.responseContext.maxAgeSeconds=0;return O};
vb=function(O){var x;return _.A(function(e){return e.nextAddress==1?e.yield(uKL(O,"service:topbar:fallback"),2):(x=e.yieldResult)&&_.Bb(x)?e.return(n3W(_.Bb(x))):e.return()})};
YGW=function(O){var x;return _.A(function(e){return e.nextAddress==1?e.yield(uKL(O,"service:downloads_settings:fallback"),2):(x=e.yieldResult)&&_.Bb(x)?e.return(x):e.return()})};
uKL=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1)return O?l.yield(O.get(x),2):l.return();e=l.yieldResult;return!e||!_.Bb(e)||!isNaN(Number(e.data.expireTimestampMs))&&e.isExpired()?l.return():l.return(e)})};
B5L=function(O){var x=_.GG().resolve(fM).getState().entities;return O.playlistId?d67(x,O.playlistId):!1};
v3L=function(O,x){var e;if(x==null?0:(e=x.requestTemplate)==null?0:e.panelId)O.panelId=x.requestTemplate.panelId;var l;if(x==null?0:(l=x.requestTemplate)==null?0:l.params)O.params=x.requestTemplate.params};
Jur=function(){if(fk8)return fk8();var O=!_.t("idb_response_store_auth_killswitch"),x={};fk8=GC("yt-it-response-store",{objectStores:(x.ResponseStore={addedAtVersion:1},x),shared:!O,upgrade:function(e,l){l(1)&&(e=gD(e,"ResponseStore",{keyPath:["key","clientName"]}),$C(e,"byExpiration","expireTimestampMs"),$C(e,"byInterface","clientName"))},
version:1});return fk8()};
wcm=function(O){return _.Q4(Jur(),O)};
j_w=function(O,x){var e;return _.A(function(l){return l.nextAddress==1?l.yield(_.DG(),2):(e=l.yieldResult)?l.return(new SGn(O,x,e)):l.return()})};
N5m=function(O){var x=Object.keys(O)[0];if(x)return O.screenExit&&(x=x+";"+O.screenExit.screen),x};
g3w=function(O){var x=new Map;O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,e!=null&&(x.has(e.taskType)||x.set(e.taskType,[]),x.get(e.taskType).push(e));return x};
$6r=function(O){O=[].concat(_.Kx(O)).sort(function(e,l){return e-l});
var x=Math.floor(O.length/2);return O.length%2?O[x]:(O[x-1]+O[x])/2};
x7V=function(O,x){O=O===void 0?nzr:O;x=x===void 0?{}:x;_.MB("yt.logging.errors.log",_.BH);KuN();iFw(flN(),x);window.onerror=O;OS8=d58;window.addEventListener("unhandledrejection",function(e){if(e.reason instanceof Error){var l=e.reason;_.JG(l,{source:"unhandledrejection"});l.name==="AbortError"&&(l.level="WARNING")}d58(e.reason);e.preventDefault()})};
_.e37=function(O){var x,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr,mL,Zn,q$,KV,VN,Pd,f2,p2,OT,Gp,zp,m3,E4,Xw,Tr;return _.A(function(QR){if(QR.nextAddress==1)return QR.yield(_.TL(O,{mode:"readonly",enableRetries:!0},function(ET){return LA(ET,"playbackData").then(function(Q$){var tJ=Q$.map(function(F4){return F4.transfer}).filter(function(F4){return!!F4}),CQ=Q$.map(function(F4){return F4.offlineVideoPolicy}).filter(function(F4){return!!F4}),hS=Q$.filter(function(F4){return!!F4.key}).map(function(F4){return _.OQ(_.gT(F4.key).entityId,
"downloadStatusEntity")});
tJ=LA(ET,"transfer",tJ);CQ=LA(ET,"offlineVideoPolicy",CQ);hS=LA(ET,"downloadStatusEntity",hS);var JJ=tJ.then(function(F4){F4=F4.reduce(function(DD,lL){(lL==null?0:lL.offlineVideoStreams)&&DD.push.apply(DD,_.Kx(lL.offlineVideoStreams));return DD},[]).filter(function(DD){return!!DD});
return LA(ET,"offlineVideoStreams",F4)});
return $c.all([tJ,CQ,JJ,hS]).then(function(F4){var DD=_.T(F4);F4=DD.next().value;var lL=DD.next().value;var Sw=DD.next().value;DD=DD.next().value;return[Q$,F4,lL,Sw,DD]})})}),2);
if(QR.nextAddress!=3)return x=QR.yieldResult,QR.yield(_.TL(O,{mode:"readonly",enableRetries:!0},function(ET){return LA(ET,"mainDownloadsListEntity").then(function(Q$){var tJ,CQ;return(CQ=(tJ=Q$[0])==null?void 0:tJ.downloads)!=null?CQ:[]})}),3);
e=QR.yieldResult;l=_.T(x);C=l.next().value;Q=l.next().value;L=l.next().value;k=l.next().value;M=l.next().value;G=C;X=Q;y=L;Z=k;E=M;P={};U={};W={};z={};r={};f=[];u=_.T(X);for(Y=u.next();!Y.done;Y=u.next())(J=Y.value)&&(P[J.key]=J);O8=_.T(y);for(Xr=O8.next();!Xr.done;Xr=O8.next())(Fr=Xr.value)&&(U[Fr.key]=Fr);mL=_.T(E);for(Zn=mL.next();!Zn.done;Zn=mL.next())(q$=Zn.value)&&(W[q$.key]=q$);KV=_.T(Z);for(VN=KV.next();!VN.done;VN=KV.next())(Pd=VN.value)&&(z[Pd.key]=Pd);f2=_.T(e);for(p2=f2.next();!p2.done;p2=
f2.next())OT=p2.value,Gp=void 0,r[(Gp=OT.videoItem)!=null?Gp:""]=!0,OT.videoItem&&(m3=zp=void 0,E4=(m3=(zp=_.gT(OT.videoItem))==null?void 0:zp.entityId)!=null?m3:"",f.push({externalVideoId:E4}));Xw=G.filter(function(ET){if(!ET||!ET.key||!ET.offlineVideoPolicy)return!1;ET=_.gT(ET.key).entityId;ET=_.OQ(ET,"downloadStatusEntity");var Q$;return!(ET&&((Q$=W[ET])==null?void 0:Q$.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Tr=Xw.map(function(ET){var Q$=P[ET.transfer],tJ=[];if(Q$==null?0:Q$.offlineVideoStreams)for(var CQ=_.T(Q$.offlineVideoStreams),hS=CQ.next();!hS.done;hS=CQ.next())(hS=z[hS.value])&&tJ.push(hS);CQ=U[ET.offlineVideoPolicy];hS=r;var JJ=ET==null?void 0:ET.playerResponseTimestamp,F4=_.gT(CQ.key).entityId;ET=_.OQ(F4,"mainVideoEntity");if(CQ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var DD="OFFLINE_VIDEO_STATE_DISABLED";CQ.expirationTimestamp&&Number(CQ.expirationTimestamp)<Date.now()/1E3&&(DD="OFFLINE_VIDEO_STATE_EXPIRED")}else if(CQ.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")DD="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Q$==null?void 0:Q$.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":DD="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":DD="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":DD="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":DD="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":DD="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":DD="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:DD="OFFLINE_VIDEO_STATE_UNKNOWN"}if(DD==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Q$==null?void 0:Q$.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":DD="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":DD="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":DD=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}F4={id:F4,videoState:DD};if(Q$==null?0:Q$.cotn)F4.cotn=Q$.cotn;if(Q$==null?0:Q$.maximumDownloadQuality)F4.selectedVideoQuality=Q$==null?void 0:Q$.maximumDownloadQuality;if(Q$==null?0:Q$.lastProgressTimeMs)F4.lastProgressTimeMs=Q$.lastProgressTimeMs;JJ&&(F4.playerResponseSavedTimeMs=String(Number(JJ)*1E3));Q$=String;JJ=0;tJ=_.T(tJ);for(DD=tJ.next();!DD.done;DD=tJ.next())if(DD=DD.value,DD.streamsProgress){DD=_.T(DD.streamsProgress);for(var lL=DD.next();!lL.done;lL=
DD.next()){var Sw=void 0;JJ+=Number((Sw=lL.value.numBytesDownloaded)!=null?Sw:0)}}F4.downloadedBytes=Q$(JJ);F4.selectedOfflineMode=hS[ET]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";CQ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(F4.offlinePlaybackDisabledReason=CQ.offlinePlaybackDisabledReason);return F4});
return QR.return({offlineVideos:Tr,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:f}}})})};
lqV=function(){var O;return _.A(function(x){return x.nextAddress==1?x.yield(_.CA(),2):(O=x.yieldResult)?x.return(_.e37(O)):x.return({state:"PES Unavailable"})})};
bSL=function(){var O,x,e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield(_.CA(),2);if(C.nextAddress!=3)return(O=C.yieldResult)?C.yield(C57(O),3):C.return({state:"PES Unavailable"});x=C.yieldResult;e={};l=x.reduce(function(Q,L){Q[L.key]=L;return Q},e);
return C.return(QvL(l))})};
QvL=function(O){for(var x={},e=[],l=_.T(Object.keys(O)),C=l.next();!C.done;C=l.next()){var Q=C.value;C=O[Q];var L=void 0;if(((L=C)==null?void 0:L.entityType)==="mainVideoEntity"){delete O[Q];var k=C.data;C={};if(k){var M=void 0;L=(M=k.videoId)!=null?M:"vid-"+Q;Q=O;C.video=k;delete C.video.formattedDescription;delete C.video.thumbnail;k.owner&&(M=Q[k.owner],M==null?0:M.data)&&(delete Q[M.key],C.video.owner=M.data,delete C.video.owner.avatar);if(k=k.downloadState)if(M=Q[k],M==null?0:M.data)if(delete Q[k],
k=M.data.playbackData)if(M=Q[k],M!=null&&M.data){delete Q[k];k=M.data;delete k.playerResponseJson;C.playbackData=k;if(k.transfer&&(M=Q[k.transfer],M==null?0:M.data)){delete Q[M.key];var G=M.data;C.transfer=G;M=[];G=_.T(G.offlineVideoStreams||[]);for(var X=G.next();!X.done;X=G.next())if(X=Q[X.value])delete Q[X.key],M.push(X.data);M&&(C.streams=M)}(k=k.offlineVideoPolicy)&&(k=Q[k])&&k.data&&(delete Q[k.key],C.offlineVideoPolicy=k.data)}x[L]=C}}else C&&C.entityType==="offlineOrchestrationActionWrapperEntity"&&
C.data&&(delete O[C.key],L=C.data,Q=void 0,e.push({id:L.rootActionId,type:((Q=L.actionProto)==null?void 0:Q.actionType)||"",entity:C}))}x.wrapperEntities=e;Object.keys(O).length>0&&(x.unknownKeys=O);return x};
T$r=function(){var O,x,e,l,C,Q,L,k,M;return _.A(function(G){if(G.nextAddress==1)return O=(new _.jC("")).hasLocalStorage(),l=!!((x=_.CV.crypto)==null?0:(e=x.subtle)==null?0:e.importKey),C=!!_.CV.BroadcastChannel,Q=!!_.CV.navigator.locks,G.yield(oEL(),2);L=G.yieldResult;k=O&&l&&C&&Q&&L;M={isSupported:k};if(k)return G.return(M);M.missingBrowserFeatures=[];L||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");O||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
l||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");C||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");Q||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return G.return(M)})};
LlW=function(){var O;return!((O=Ji?Ji:null)==null||!O.window)};
_.A9L=function(O){if(_.am()&&_.PrL("Chromium")>=120){var x=_.kmN().mediaSession;try{x.setActionHandler("enterpictureinpicture",function(){O()})}catch(e){}}};
MYs=function(O){for(var x=[],e=_.T(document.styleSheets),l=e.next(),C={};!l.done;C={node$jscomp$769:void 0},l=e.next())C.node$jscomp$769=l.value.ownerNode,C.node$jscomp$769&&(C.node$jscomp$769 instanceof HTMLStyleElement||C.node$jscomp$769 instanceof HTMLLinkElement)&&x.push(new Promise(function(Q){return function(L){var k=Q.node$jscomp$769.cloneNode(!0);k.onload=function(){L()};
k.onerror=function(){_.ft(Error("rj"));L()};
O.document.head.appendChild(k)}}(C)));
return Promise.all(x)};
qoW=function(O){var x=[_.GJ(D7$),_.GJ(GmN),_.GJ(Flr)];XhL(window.document.documentElement,O.document.documentElement,[_.GJ(o9N),_.GJ(y9V),_.GJ(ZSr),_.GJ(E9r),_.GJ(tYL)]);XhL(window.document.body,O.document.body,x)};
XhL=function(O,x,e){O=_.T(O.attributes);for(var l=O.next();!l.done;l=O.next())if(l=l.value)try{_.Tt(e,x,l.name,l.value)}catch(C){}};
c9s=function(O,x){O=new _.wj(O.document.documentElement);O.start(P5r,x);return O};
IqN=function(O){var x=O.document.documentElement;x.addEventListener("click",function(e){Vn$(x,e)});
x.addEventListener("touchstart",function(e){mU8(e)});
x.addEventListener("mousedown",function(e){mU8(e)})};
phV=function(O,x,e,l){l=l===void 0?!1:l;x=new VYr(x||O,e||O);return{x:O.x+((l===void 0?0:l)?x.lengthX*-1:x.lengthX)*.2,y:O.y+((l===void 0?0:l)?x.lengthY*-1:x.lengthY)*.2}};
R3r=function(O){if(!O)return!1;var x=O.status==="OK"||O.status==="LIVE_STREAM_OFFLINE",e,l,C,Q=(C=(e=O.errorScreen)==null?void 0:e.playerLegacyDesktopYpcTrailerRenderer)!=null?C:(l=O.errorScreen)==null?void 0:l.ypcTrailerRenderer;return!!x||!!Q};
_.U7L=function(O,x){if(!O)return!1;var e,l=(e=O.errorScreen)==null?void 0:e.playerLegacyDesktopYpcOfferRenderer,C;x=!!(x==null?0:(C=x.playerOverlayRenderer)==null?0:C.gatedActionsOverlayRenderer);return!!R3r(O)||!!l||!!x};
svW=function(O){return aqW(O,0,"gclid",O.search(m7m))>=0||aqW(O,0,"gad_source",O.search(m7m))>=0};
WlV=function(O){var x=[],e=0;return{clear:function(){e=x.length=0},
push:function(l){x[e]=l;e=(e+1)%O},
iterate:function(){return function C(){var Q,L,k,M;return _.SK(C,function(G){switch(G.nextAddress){case 1:_.cO(G,2),Q=x.length,L=0;case 4:if(!(L<Q)){G.jumpTo(2);break}k=e+L;M=_.jK;return G.yield(x[k%Q],7);case 7:M(G.yieldResult);L++;G.jumpTo(4);break;case 2:_.PO(G),_.Ia(G,0)}})}()}}};
h3N=function(O){O.eventsToIgnore||(O.eventsToIgnore=[]);var x=O.eventsToIgnore.map(UFr),e=new Set(x),l=WlV(O.bufferSize);return{flush:function(){var C=Array.from(l.iterate());l.clear();C=C.map(function(Q){return{name:Q.name,timestamp:Q.startTime,attributes:Q.attributes}});
return JSON.stringify(C)},
onSpanStart:function(C){C.name==="event"&&e.has(C.attributes.type)||l.push(C)}}};
z3V=function(O){O=h3N(O);var x=O.flush;q7r({onSpanStart:O.onSpanStart});NSs.subscribe("handleError",function(e){try{e.params.breadcrumbs=x()}catch(l){_.BH(l,"WARNING")}})};
r9L=function(){t3("web_tracing_action");_.cU("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
HSm=function(){t3("web_tracing_action");_.cU("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
d7r=function(O,x,e){if(x===void 0){KlL||(HSm(),setInterval(HSm,6E5),KlL=!0);var l="web_tracing_action"}else l=x;var C,Q=((C=O.endTime)!=null?C:O.startTime)-O.startTime,L={};C=O.name;var k=O.startTime;L={webTracing:(L[O.name]=O.attributes,L)};e=_.$K(K5w)(C,Q,k,L,e,l);if(O.children)for(O=_.T(O.children),l=O.next();!l.done;l=O.next())d7r(l.value,x,e)};
n98=function(O){var x=puN.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(e){e.data&&typeof e.data==="object"&&(e=e.data,e.from==="extension"&&e.app==="yt.telemetry"&&(x("Received message from extension",e),O.onMessage(e)))});
return function(e,l){e={app:"yt.telemetry",from:"app",key:e,payload:l};x("Sending message to extension",e);window.postMessage(e,"*")}};
uTL=function(){var O=O===void 0?3E3:O;var x=n98({onMessage:function(){}}),e=[];
return{onSpanEnd:function(l){l.parentId==null&&e.push(l)===1&&setTimeout(function(){var C=[].concat(_.Kx(e));e.length=0;x("spansReported",{spans:C})},O)}}};
B$r=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var O=window.performance.getEntriesByType("navigation");if(O.length>0){var x=O[0];VoL("pageLoad",{navigationType:Yom(x.type),unloadEventStart:Math.round(x.unloadEventStart),unloadEventEnd:Math.round(x.unloadEventEnd),domInteractive:Math.round(x.domInteractive),domContentLoadedEventStart:Math.round(x.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(x.domContentLoadedEventEnd),
domComplete:Math.round(x.domComplete),loadEventStart:Math.round(x.loadEventStart),loadEventEnd:Math.round(x.loadEventEnd),redirectCount:x.redirectCount},function(){})}}catch(e){}})};
Yom=function(O){switch(O){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"}};
v9W=function(O){O=O===void 0?400:O;var x=[],e=[];return{start:function(){return l77({checkoutEveryNth:O,emit:function(l,C){C&&(x=e,e=[]);e.push(l)}})},
getRecording:function(){return[].concat(_.Kx(x),_.Kx(e))}}};
jvs=function(){for(var O=TUw.value,x={},e=_.T(O.enabledSpansArray),l=e.next();!l.done;l=e.next())x[l.value]=!0;if(O.exportToCsi||O.exportBreadcrumbs)toi({sessionId:Czi(),enabledSpans:x}),PQ7("pageLoad")&&B$r();O.exportBreadcrumbs&&z3V({eventsToIgnore:fq8,bufferSize:O.bufferSize});O.exportToCsi&&q7r(J9r);O.exportToDevTools&&q7r(uTL());if(O.sessionReplayEvents>0){var C=v9W(O.sessionReplayEvents);C.start();_.t("web_tracing_session_replay_demo")&&(window.exportSessionReplay=function(){var Q=JSON.stringify(C.getRecording(),
null,2);Q=whw(new Blob([Q],{type:"text/plain"}));var L=document.createElement("a");L.download="session_replay.json";L.dataset.downloadurl=["application/json",L.download,L.href].join(":");L.style.display="none";L.href=Q;L.click();URL.revokeObjectURL(Q);SoL("View replay at go/yt-session-replay-viewer")})}};
N$8=function(O){return new Promise(function(x){window.setTimeout(x,O)})};
g9L=function(O){var x={bicf:function(Q){O.f4O=Q},
blc:function(){return O.getLatestChallengeResponse()},
bcr:function(Q){O.oKY.push(Q)}},e=window;
e.ntpevasrs=x;if(e.ntpqfbel!==void 0)for(var l=_.T(e.ntpqfbel),C=l.next();!C.done;C=l.next())C=C.value,C(x);e.ntpqfbel=void 0};
$7$=function(O){return _.A(function(x){if(x.nextAddress==1)return _.tS(x,2),x.yield(O.jIY(),4);if(x.nextAddress!=2)return _.lb(x,0);_.VP(x);_.Ra(x)})};
iSL=function(O){var x,e;(x=O.ytcsi)==null||(e=x.tick)==null||e.call(x,"pot_ist")};
Oqr=function(O){if(O instanceof Error){var x=_.i8("yt.logging.errors.log");x&&x(O,"WARNING")}};
xHs=function(O){try{var x=JSON.parse(O);if(x.bgChallenge)return x}catch(e){}};
l4N=function(){var O=window,x={networkStatusManagerPromise:_.GG().resolve(new OZN(_.eb)),initialChallengeSli:_.t("wpo_att_sli")?new _.c5i("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};O=O===void 0?window:O;var e=O.ytAtR,l;x==null||(l=x.initialChallengeSli)==null||_.ic(l);if(e){if(e=xHs(e)){var C;x==null||(C=x.initialChallengeSli)==null||_.Oe(C,"SUCCESS");eE$(e,x)}O.ytAtR=void 0}else O.ytAtRC=function(Q){if(Q=xHs(Q)){var L;x==null||(L=x.initialChallengeSli)==null||
_.Oe(L,"SUCCESS");eE$(Q,x);O.ytAtRC=void 0}}};
bqw=function(){if(C0r)return C0r;try{var O=_.R9("IFRAME");_.gk(O,_.on(Qh8));O.sandbox.add("allow-same-origin");O.style.display="none";document.body.appendChild(O);return C0r=O}catch(x){O=new _.ry("Failed to create sandbox iframe"),_.BH(O)}};
TJr=function(O){var x,e;return(e=O==null?void 0:(x=O.contentWindow)==null?void 0:x.fetch)!=null?e:window.fetch};
Lsr=function(O){var x,e;return(e=O==null?void 0:(x=O.contentWindow)==null?void 0:x.Request)!=null?e:window.Request};
kRL=function(O){var x,e;return(e=O==null?void 0:(x=O.contentWindow)==null?void 0:x.TextDecoder)!=null?e:window.TextDecoder};
AvN=function(){return function(O,x){_.wz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[O]=x}};
Mi$=function(){return function(O,x){var e={};e[O]=x;O=_.$K(_.rEL)(e);Object.keys(O).length>0&&_.EO(O)}};
Fsr=function(){if(Lew()==="hidden")var O="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Lew()==="visible"&&(O="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",DHV=null);O&&GRm(O)};
GRm=function(O){if(O==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||O==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(XJL===O)return;XJL=O}var x=9E4+Math.random()*2E3;if(O!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Gl()>x)&&Lew()==="visible"){x=-1;DHV&&(x=Math.round((0,_.F2)()-DHV));var e=String;var l=_.i8("_fact",window);l=l==null||l==-1?-1:Math.max(Date.now()-l,0);_.uU("foregroundHeartbeat",{firstActivityMs:e(l),clientDocumentNonce:Q18,index:String(o1N),lastEventDeltaMs:String(x),trigger:O});
_.MB("_fact",-1,window);o1N++;DHV=(0,_.F2)()}};
yvL=function(O,x,e,l,C,Q){x=new Uint8Array(x);if(O.length===0)return x;var L=0;C=C!=null?C:O.length-1;for(var k=e;k<=C;k++){var M=O[k],G=k===e?l:0,X=void 0,y=k===C?(X=Q)!=null?X:M.length:M.length;M=M.subarray(G,y);x.set(M,L);L+=M.length}return x};
_.ZqL=function(){try{return!!self.sessionStorage}catch(O){return!1}};
E1N=function(){var O=navigator;return new Promise(function(x,e){var l;(l=O.webkitTemporaryStorage)!=null&&l.queryUsageAndQuota?O.webkitTemporaryStorage.queryUsageAndQuota(function(C,Q){x({usage:C,quota:Q})},function(C){e(C)}):e(Error("Bj"))})};
tiL=function(O,x){var e={errorSeverity:x.errorSeverity.toString(),wizFeatureFlags:Object.entries(x.featureFlags).join("\n")};H7N(x,e);x=x.errorSeverity;x===3?_.BH(O,"ERROR",void 0,void 0,void 0,e):x===2&&_.BH(O,"WARNING",void 0,void 0,void 0,e);_.t("cow_if_errors_in_popup")&&x===3&&O.message.indexOf("<If>")!==-1&&window.alert(O.message)};
q6r=function(O,x){var e=u_.get(O)||{layerNode:x};e.layerNode=x;Eji(O,e);O.getScreenLayer=function(){return xQ(e.layerNode)}};
P0V=function(O){var x;O=O.parentNode;for(var e;O&&((x=u_.get(O))==null||!x.isRenderer)&&!((e=O.polymerController)!=null?e:O).isRenderer_;)O=O.parentNode||O.host;if(x=O)return u_.get(x)};
cvr=function(O){if(O){u_.delete(O);var x=_.GG().resolve(GQ);hv7(O,x)}};
Vir=function(O,x,e){if(e===void 0?0:e){if(e=O.getAttribute("client-ve-type"),x.data&&!x.disableReactiveLogging||e)_.fe(function(){I4L(O,_.vL(x.data))},"og"),_.YO(function(){return void cvr(O)})}else typeof x.data!=="function"&&I4L(O,x.data)};
I4L=function(O,x){pJr++;REL(O,x)&&_.vn.addJob(function(){_.e1(_.vn,function(){if(REL(O,x)&&O.ownerDocument.documentElement===document.documentElement&&O){var e;if(O.getAttribute("layer")){var l=e=Number(O.getAttribute("layer")),C=u_.get(O);C?C.layerNode.layer=l:q6r(O,new UHs(l));(l=P0V(O))&&(C=u_.get(O))!=null&&(C.layerNode.parent=l.layerNode)}else if(e=u_.get(O))e=xQ(e.layerNode);else{e=xQ;l=new UHs;if(C=P0V(O))l.parent=C.layerNode;q6r(O,l);e=e(l)}e!=null||(e=0);l=O.getAttribute("client-ve-type");
C=Number(l);var Q=!1;l=!1;var L=u_.get(O),k;if((k=L)&&!(k=L[a4N]!==x)&&(k=C)){var M;k=((M=u_.get(O))==null?void 0:M.clientVeType)===void 0}k&&(L[a4N]=x,Q=l=L.isRenderer=!0);u_.has(O)&&(u_.get(O).clientVeType=C);O.visualElement&&(l=!0);if(_.t("wiz_next_ld_fix_client_ve_spec")){var G;M=((G=_.q(x==null?void 0:x.rendererContext,_.AB))==null?void 0:G.loggingDirectives)||(x==null?void 0:x.loggingDirectives)}else M=x==null?void 0:x.loggingDirectives;M&&M.clientVeSpec&&(G=mHn(_.TO(),O),G=_.shi(_.k0(),M,G||
void 0,e))&&(O.visualElement=G);!O.visualElement&&C&&Q&&(O.veType=C,G=void 0,_.t("wiz_next_client_ve_parent_fix")&&(G=mHn(_.TO(),O)),G=_.L_(_.k0(),O,G,e),O.visualElement=G);l&&(G=_.GG().resolve(GQ),K2w(O,{data:x,observer:G,layer:e,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
REL=function(O,x){return(x==null?0:x.trackingParams)||(x==null?0:x.loggingDirectives)||_.q(x==null?void 0:x.rendererContext,_.AB)||O.getAttribute("client-ve-type")?!0:!1};
WsL=function(O,x,e){O.componentType!==HL&&e instanceof HTMLElement&&x&&!_.t("cow_logging_in_component_wrapper")&&Vir(e,x,!0)};
Hqr=function(){if(!hEL){hEL=!0;var O=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.t("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:tiL,enableComponentStacksInErrorMessages:!1});Object.assign(Gc,O);O1L=zEr;rvr();Qg$=evV;eon=lpW}};
rvr=function(){_.t("cow_logging_in_component_wrapper")?(Dtm=function(O,x){x instanceof HTMLElement&&Vir(x,O,!0)},BMi=function(){}):(Dtm=function(){},BMi=WsL)};
Ksr=function(O,x,e){x=x===void 0?{}:x;var l,C=(l=_.q(O.commandMetadata,_.e6))==null?void 0:l.url;l=x.form||{};!e||l.element||l.skipDefaultElement||(x.form=x.form||{},x.form.element=e);if(C&&C!=="/service_ajax")return{type:0,command:O,form:x.form};if(_.t("kevlar_service_command_check")){if(_.hI(_.GG().resolve(_.IF),O))return Object.assign({},{type:1,command:O},x)}else{var Q;if((Q=_.q(O.commandMetadata,_.e6))==null?0:Q.apiUrl)return Object.assign({},{type:1,command:O},x)}return{type:2,command:O,form:x.form}};
dHN=function(O){if(O.form){var x=O.form,e=Object.assign({},x);x=x.element;e=(delete e.element,e);if(x)return[_.N9(x,[O.command,e,O.commandController])]}return[]};
n1i=function(O){if(O.form){var x=O.form,e=Object.assign({},x);x=x.element;e=(delete e.element,e);x&&_.gr(x,[O.command],x,e)}};
Y6W=function(O,x,e){var l=new ugs(O,x),C=new lg(O,x,e);O={"/youtubei/v1/browse":new CI(O,x,e),"/youtubei/v1/player":l,"/youtubei/v1/navigation/resolve_url":new Qs,"/youtubei/v1/next":C,"/youtubei/v1/guide":new bg(e),"/youtubei/v1/search":new To(O,x,e),"/youtubei/v1/reel/reel_item_watch":new LI(O,x,e),"/youtubei/v1/get_watch":new kQ(l,C)};O["/youtubei/v1/account/account_menu"]=new At;O["/youtubei/v1/notification/get_notification_menu"]=new Mo;return O};
Go=function(){var O=_.GG().resolve(Dr);return Promise.resolve(BJV(O,_.CV.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
v1L=function(O){return O&&(O=_.Fu(_.Fqs(O)))?(new URLSearchParams(O)).get("service"):null};
ys=function(O,x){_.$0(_.Xu(),function(){_.IR("adl")});
_.GG().resolve(f4W)(x);O=O.root;O.loadData&&O.loadData(x);(x==null?0:x.response)?_.Oe(pgm(),"SUCCESS"):_.ft(new _.ry("Lifecycle: No response in data",_.SS("IS_SHELL_LOAD"),x?x.page:"NO_PAGE",x?x.endpoint:"NO_ENDPOINT"));O.polymerController.$["page-manager"].lazyPrepareCriticalPages((x==null?void 0:x.page)||"",x.endpoint);var e,l;((l=_.q(x==null?void 0:(e=x.endpoint)==null?void 0:e.commandMetadata,_.e6))==null?0:l.webPageType)&&_.u9().dispatch(_.oL(_.q(x.endpoint.commandMetadata,_.e6).webPageType))};
Jvi=function(){var O,x;return _.A(function(e){switch(e.nextAddress){case 1:O=window;if(!O.getDataPromise){e.jumpTo(2);break}_.tS(e,3);return e.yield(O.getDataPromise(),5);case 5:return e.return(e.yieldResult);case 3:return _.VP(e),e.yield(Go(),6);case 6:return e.return(e.yieldResult);case 2:if(O.getInitialData)return x=O.getInitialData(),O.getInitialData=void 0,e.return(x);throw Error("Dj`"+_.CV.location.href);}})};
S6w=function(){_.JZ("CSI_SERVICE_NAME","youtube");_.EO({loadType:"cold"});_.t("kevlar_log_lcp")&&wJr(function(O){_.IR("lcp",O.value)})};
jhs=function(){var O=_.iP(document.location.href,"enable");O&&O.indexOf("scraper")>-1&&_.JZ("ADD_SCRAPER_ATTRIBUTES",!0)};
efL=function(O){var x=O.root;O=[NJL,g1n,_.Zr];_.t("web_feedback_endpoint_autolog_allowlist_killswitch")&&O.push(_.Ee,$HV);var e=[];_.t("web_talk_to_recs_double_click_fix")&&e.push(_.iqV,OaV);xJr(function(l,C){return Ksr(l,C,x)},function(l){if(!l.command)return[];
var C;((C=l.form)==null?0:C.element)?l.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},l.form,{endpoint:l.command})})):x.handleNavigate(l);return[]},O,e);
_.GG().addProvider({provide:_.Xc,useValue:_.lV.instance})};
CjW=function(){var O={},x={},e;for(e in lHr){var l=_.T(_.Iw(lHr[e],void 0,"IAtZ7"));O[e]=l.next().value;x[e]=l.next().value}return[O,function(C){for(var Q in C){var L=void 0;(L=x[Q])==null||L(C[Q])}}]};
_.tt=function(O,x,e){x=x===void 0?!1:x;var l=_.HX.getValueByKeys(O,"contents","twoColumnWatchNextResults","results","results","contents"),C=_.HX.getValueByKeys(O,"contents","twoColumnWatchNextResults","playlist","playlist")||null;x&&(C=null);var Q=x=null;if(C)x=_.HX.getValueByKeys(C,"titleText"),Q=_.HX.unsafeClone(_.HX.getValueByKeys(C,"longBylineText")),l="",Q&&(l=_.db(Q)),Q=_.KA(l);else if(l){l=_.T(l);for(var L=l.next();!L.done;L=l.next())L=L.value,L.videoPrimaryInfoRenderer&&(x=_.HX.getValueByKeys.apply(_.HX,
[L].concat(_.Kx(QIL)))),L.videoSecondaryInfoRenderer&&(Q=_.HX.getValueByKeys.apply(_.HX,[L].concat(_.Kx(baL))))}else _.OC(Error("Ij"));var k;O.currentVideoEndpoint?k=O.currentVideoEndpoint:_.OC(Error("Jj"));var M;e&&(M=_.HX.getValueByKeys(e,"playabilityStatus","miniplayer","miniplayerRenderer"));O={miniplayerTitle:x,miniplayerSubtitle:Q,watchEndpoint:k,playlistData:C};M&&(O.miniplayerRenderer=M);return O};
Tun=function(O){if(O)return _.Ps(O)};
_.LpN=function(){return{isFullscreen:function(){throw Error("Kj");},
toggleFullscreen:function(){throw Error("Lj");},
exitFullscreen:function(){throw Error("Mj");},
isAutonavEnabled:function(){throw Error("Nj");},
setAutonavEnabled:function(){throw Error("Oj");},
isAutoplaySetExplicitly:function(){throw Error("Pj");}}};
kqs=function(O){return O.videoDuration?O.numTaps>1&&O.tapDirection!==0?_.qo(O.draggedTime/O.videoDuration,0,1):_.qo((O.playedTime||0)/O.videoDuration,0,1):0};
ApN=function(O){return O.videoDuration?O.isDragging||O.numTaps>1&&O.tapDirection!==0?_.qo(O.draggedTime/O.videoDuration,0,1):_.qo((O.playedTime||0)/O.videoDuration,0,1):0};
DJ8=function(O){var x,e,l;return _.q(O==null?void 0:(x=O.markersMap)==null?void 0:(e=x.find(function(C){return C.key==="HEATSEEKER"}))==null?void 0:(l=e.value)==null?void 0:l.heatmap,M4L)};
Gqs=function(O){var x,e;return(e=(x=DJ8(O))==null?void 0:x.heatMarkersDecorations)!=null?e:[]};
Fpr=function(O){if(_.t("mweb_supported_chapters_killswitch"))return!0;var x;return!!(O==null?0:(x=O.markersMap)==null?0:x.find(function(e){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(e.key)}))};
_.Xzr=function(O){var x=Object,e=x.assign,l;O={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(l=O==null?void 0:O.getPlayerState())!=null?l:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return e.call(x,{},{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},O,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
oFi=function(O){return function(x){var e=O(),l,C=(l=e.playerApi)==null?void 0:l.getPlayerState();x&&x!==e.playerState&&(x===1||x===2)&&e.setState({playerState:C})}};
Za7=function(O){return function(x){var e=O(),l=e.playerApi;l&&(x==null?void 0:x.type)==="newdata"&&(ypr&&(clearTimeout(ypr),ypr=void 0),_.t("web_shorts_use_progress_state_for_gapless")?(x=l==null?void 0:l.getProgressState(x==null?void 0:x.playertype),x=x.seekableEnd-x.seekableStart):x=l==null?void 0:l.getDuration(x==null?void 0:x.playertype),e.setState({playedTime:0,videoDuration:x}))}};
EFr=function(O){return function(x){var e=O(),l=e.playerApi;if(l){var C=l.getPresentingPlayerType();_.t("web_shorts_use_progress_state_for_gapless")?(l=l.getProgressState(C),l=l.seekableEnd-l.seekableStart):l=l.getDuration(C);e.setState({playedTime:x,videoDuration:l})}}};
qHn=function(O){_.Ai(112394,O,function(){return t4s},function(x){t4s=x})};
IHL=function(O,x){if(!O)return[];var e,l,C;O=((e=O.markersMap)==null?void 0:(l=e.find(function(Q){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(Q.key)}))==null?void 0:(C=l.value)==null?void 0:C.chapters)||[];
!Pjw(O)||(x==null?0:x.ignoreStub)||(O=[cpV()].concat(_.Kx(O)));return O};
cpV=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Pjw=function(O){if(O.length===0)return!1;var x;return((x=_.q(O[0],PN))==null?void 0:x.timeRangeStartMillis)!==0};
cN=function(O){return O?O.timeRangeStartMillis||0:0};
pzr=function(O,x){if(O.isDragging&&x)return O=V4$(O,x),O===-1?cpV():IHL(x)[O]};
V4$=function(O,x){return O.isDragging&&x?IHL(x,{ignoreStub:!0}).findIndex(function(e,l,C){e=Rfm(O);return UJ$(e,C,l).scrubberHovering}):-1};
Rfm=function(O){return Object.assign({},O,{videoDuration:O.videoDuration*1E3,playedTime:O.playedTime*1E3,draggedTime:O.draggedTime*1E3})};
UJ$=function(O,x,e){var l=cN(_.q(x[e],PN));x=cN(_.q(x[e+1],PN))||O.videoDuration;e=O.isDragging;var C;if(C=O.isDragging)C=O.draggedTime,C=C!==null&&C>=l&&C<x;var Q=O.playedTime;return Q!==null&&Q>=l&&Q<x?{videoPosition:"active",isScrubbing:e,scrubberHovering:C}:O.playedTime<l?{videoPosition:"pending",isScrubbing:e,scrubberHovering:C}:{videoPosition:"seen",isScrubbing:e,scrubberHovering:C}};
aHw=function(O,x){return O.videoPosition==="seen"||(x===void 0?0:x)>0};
mJr=function(O,x,e){x=O/x.storyboardInterval;var l=IHL(e);if(!l.length)return-x*72;e=0;l=_.T(l);for(var C=l.next();!C.done;C=l.next())if(cN(_.q(C.value,PN))/1E3<O)e++;else break;return-(x*72)-e*56};
sIs=function(O){return O?O.width/O.columns:0};
Wpr=function(O){return O.isHovering?O.hoveredTime:O.draggedTime};
hfm=function(O,x){O=O.draggedTime*1E3;return O>=x.visibleTimeRangeStartMillis&&O<=x.visibleTimeRangeEndMillis};
_.zfL=function(O){if(O===void 0||Number.isNaN(O))return"--:--";var x=Math.abs(Math.floor(O)),e=Math.floor(x/86400),l=Math.floor(x%86400/3600),C=Math.floor(x%3600/60);x=Math.floor(x%60);var Q="";e>0&&(Q+=e+":",l<10&&(Q+="0"));if(e>0||l>0)Q+=l+":",C<10&&(Q+="0");Q+=C+":";x<10&&(Q+="0");Q+=x;return O>=0?Q:"-"+Q};
rpV=function(O,x){return function(){var e=Wpr(O());var l=x();var C=O().playerApi;if(C&&C.getNumberOfStoryboardLevels()!==0){var Q=C.getStoryboardFrameIndex(e,1);Q!==-1?l=C.getStoryboardFrame(Q,1):(e=C.getStoryboardFrameIndex(e,0),C=C.getStoryboardFrame(e,0),l&&C&&(C.height*=3,C.width*=3),l=C)}else l=null;if(!l)return null;x()&&(l.width=90*l.columns,l.height=160*l.rows);return l}};
_.IL=function(O){if(!O||O.getVideoData)return O};
Har=function(){var O;return{playerApi:(O=_.eR())!=null?O:void 0}};
KpL=function(O){var x;_.A(function(e){if(e.nextAddress==1)return e.yield(_.xp(),2);if(x=e.yieldResult)x.unMute(!0),x.setVolume(O,!0);_.Ra(e)})};
dJw=function(O,x){O&&(O.value=""+x,O.style.setProperty("--gradient-percent",x+"%"))};
nFL=function(O){var x;return(x=O==null?void 0:O.value)!=null?x:0};
u7V=function(){var O;_.A(function(x){if(x.nextAddress==1)return x.yield(_.xp(),2);O=x.yieldResult;if(!O)return x.return();O.isMuted()?O.unMute(!0):O.mute(!0);_.Ra(x)})};
YH$=function(O){var x=_.GG().resolve(_.Vs).getPlayerElement();x&&O&&(O===1?x.pause():x.play())};
BuN=function(O){_.jh(O,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
vFs=function(O){_.jh(O,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Jpw=function(O){return _.nO(O.document.body,function(){return _.D(fHr,null)},"ch")};
wz7=function(){var O=window.performance.getEntriesByType("navigation");return O?O.map(function(x){return x.type}).includes("reload"):!1};
x1w=function(){pI(pI(pI(pI(pI(pI(pI(_.GG().resolve(_.RL),_.SH$),_.jIN),_.Num),_.gFn),_.$JL),_.ia7),_.OH8)};
eAi=function(O,x){x=x===void 0?!1:x;var e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return x||!_.t("kevlar_shorts_seedless_retry_initial_load")||(e=window,l=!(!e.getDataPromise&&!e.getInitialData),l)?L.yield(Jvi(),2):(setTimeout(eAi.bind(window,O,!0),1E3),L.return());if(L.nextAddress!=3)return C=L.yieldResult,L.yield(l3W(C),3);Q=L.yieldResult;ys(O,Q);_.Ra(L)})};
l3W=function(O){var x;if((x=O.response)==null||!x.replacementEndpoint)return _.$7(O);x=_.GG().resolve(Dr);O=O.response;_.q(O.replacementEndpoint,_.kU)&&O.sequenceContinuation&&(_.q(O.replacementEndpoint,_.kU).sequenceParams=O.sequenceContinuation);return Ue(x,O.replacementEndpoint,{},_.CV.location.href,"shorts",function(){},function(){return!1})};
Qos=function(O){var x=_.GG().resolve(C$8);O.playerResponse&&x.handleResponse(O.playerResponse);O.response&&x.handleResponse(O.response)};
bHL=function(O){var x=_.u9(),e,l=_.q((e=O.response)==null?void 0:e.frameworkUpdates,dS),C;e=_.q((C=O.playerResponse)==null?void 0:C.frameworkUpdates,dS);var Q;O=_.q((Q=O.reelWatchSequenceResponse)==null?void 0:Q.frameworkUpdates,dS);l&&_.b9(l,x);e&&_.b9(e,x);O&&_.b9(O,x)};
TBr=function(O){var x;_.t("enable_redirect_linking_for_desktop_web_client")&&((x=window.location.hash)==null?0:x.includes("redirect_state"))&&O.url&&(O.url=O.url.toString()+window.location.hash)};
A27=function(O){var x=_.GG(),e=x.resolve(Dr);x=x.resolve(_.Lkm);O.endpoint&&(e=kgr(e,O.endpoint),e.content&&O.response&&_.aL(x,O.response,e.content),e.player&&O.playerResponse&&_.aL(x,O.playerResponse,e.player),e.reelSequence&&O.reelWatchSequenceResponse&&_.aL(x,O.reelWatchSequenceResponse,e.reelSequence))};
m6=function(O,x){Qos(x);bHL(x);var e;(x==null?0:x.url)&&((e=window.location.hash)==null?0:e.includes("redirect_state"))&&(TBr(x),(e=v1L(x.url))&&_.Sh(O.root,"yt-initialize-third-party",[e,x]));A27(x);e=_.GG();var l=e.resolve(Msm);x.playerResponse&&e.resolve(D1V).handleResponse(x.playerResponse);if(x.playerResponse){e=void 0;if(_.t("ab_v_vid_sig")&&x.endpoint){var C,Q=(C=_.q(x.endpoint,_.Hq))!=null?C:_.q(x.endpoint,_.kU);Q&&(e=Q.videoId)}Ggs(l,x.playerResponse,e)}x.playerResponse&&gRr(x.playerResponse)&&
_.t("web_enable_ab_rsp_cl")?Ulm().then(function(){FkN(l,x.playerResponse);ys(O,x)}):ys(O,x)};
oDr=function(O){if(O=O.root.data){var x=_.GG().resolve(X6s);O.endpoint&&(O.response&&x.handleResponse(O.response,void 0,document.querySelector("ytd-app")),O.playerResponse&&x.handleResponse(O.playerResponse),O.reelWatchSequenceResponse&&x.handleResponse(O.reelWatchSequenceResponse))}};
y2r=function(O){var x,e,l,C,Q,L;return _.A(function(k){switch(k.nextAddress){case 1:x=window;if(!x.getDataPromise){k.jumpTo(2);break}_.tS(k,3);return k.yield(x.getDataPromise(),5);case 5:e=k.yieldResult;m6(O,e);_.lb(k,4);break;case 3:return _.VP(k),k.yield(Go(),6);case 6:l=k.yieldResult,ys(O,l);case 4:return k.return();case 2:if(!_.t("sw_nav_preload_pbj")){k.jumpTo(7);break}x.fetchInitialData=function(){var M;return _.A(function(G){if(G.nextAddress==1)return G.yield(Go(),2);M=G.yieldResult;ys(O,M);
_.Ra(G)})};
if(x.getInitialData){x.loadInitialData=function(M){m6(O,M)};
C=x.getInitialData();x.getInitialData=void 0;m6(O,C);k.jumpTo(8);break}x.fetchInitialData=void 0;return k.yield(Go(),9);case 9:Q=k.yieldResult,ys(O,Q);case 8:return k.return();case 7:x.getInitialData?(L=x.getInitialData(),x.getInitialData=void 0,m6(O,L)):x.loadInitialData=function(M){m6(O,M)},_.Ra(k)}})};
ZHr=function(O){var x=0;return function(){return x<O.length?{done:!1,value:O[x++]}:{done:!0}}};
EDN=typeof Object.defineProperties=="function"?Object.defineProperty:function(O,x,e){if(O==Array.prototype||O==Object.prototype)return O;O[x]=e.value;return O};
tss=function(O){O=["object"==typeof globalThis&&globalThis,O,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var x=0;x<O.length;++x){var e=O[x];if(e&&e.Math==Math)return e}throw Error("a");};
_.Dy=tss(this);q$W="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.Dy.BigInt64Array&&(q$W.push("BigInt64"),q$W.push("BigUint64"));var c2w=function(O,x){if(x)for(var e=0;e<q$W.length;e++)P$m(q$W[e]+"Array.prototype."+O,x)},se=function(O,x){x&&P$m(O,x)},P$m=function(O,x){var e=_.Dy;
O=O.split(".");for(var l=0;l<O.length-1;l++){var C=O[l];if(!(C in e))return;e=e[C]}O=O[O.length-1];l=e[O];x=x(l);x!=l&&x!=null&&EDN(e,O,{configurable:!0,writable:!0,value:x})};
se("Symbol",function(O){if(O)return O;var x=function(Q,L){this.$jscomp$symbol$id_=Q;EDN(this,"description",{configurable:!0,writable:!0,value:L})};
x.prototype.toString=function(){return this.$jscomp$symbol$id_};
var e="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",l=0,C=function(Q){if(this instanceof C)throw new TypeError("b");return new x(e+(Q||"")+"_"+l++,Q)};
return C});
se("Symbol.iterator",function(O){if(O)return O;O=Symbol("c");EDN(Array.prototype,O,{configurable:!0,writable:!0,value:function(){return I37(ZHr(this))}});
return O});
se("Symbol.asyncIterator",function(O){return O?O:Symbol("d")});
var I37=function(O){O={next:O};O[Symbol.iterator]=function(){return this};
return O},Vsm=typeof Object.create=="function"?Object.create:function(O){var x=function(){};
x.prototype=O;return new x},p6s=function(){function O(){function e(){}
new e;Reflect.construct(e,[],function(){});
return new e instanceof e}
if(typeof Reflect!="undefined"&&Reflect.construct){if(O())return Reflect.construct;var x=Reflect.construct;return function(e,l,C){e=x(e,l);C&&Reflect.setPrototypeOf(e,C.prototype);return e}}return function(e,l,C){C===void 0&&(C=e);
C=Vsm(C.prototype||Object.prototype);return Function.prototype.apply.call(e,C,l)||C}}(),RAL;
if(typeof Object.setPrototypeOf=="function")RAL=Object.setPrototypeOf;else{var U1$;a:{var a38={a:!0},m1w={};try{m1w.__proto__=a38;U1$=m1w.a;break a}catch(O){}U1$=!1}RAL=U1$?function(O,x){O.__proto__=x;if(O.__proto__!==x)throw new TypeError("e`"+O);return O}:null}WN=RAL;
_.c=function(O,x){O.prototype=Vsm(x.prototype);O.prototype.constructor=O;if(WN)WN(O,x);else for(var e in x)if(e!="prototype")if(Object.defineProperties){var l=Object.getOwnPropertyDescriptor(x,e);l&&Object.defineProperty(O,e,l)}else O[e]=x[e];O.superClass_=x.prototype};
_.T=function(O){var x=typeof Symbol!="undefined"&&Symbol.iterator&&O[Symbol.iterator];if(x)return x.call(O);if(typeof O.length=="number")return{next:ZHr(O)};throw Error("f`"+String(O));};
bo=function(O){for(var x,e=[];!(x=O.next()).done;)e.push(x.value);return e};
_.Kx=function(O){return O instanceof Array?O:bo(_.T(O))};
_.zo=function(O){return ht(O,O)};
ht=function(O,x){O.raw=x;Object.freeze&&(Object.freeze(O),Object.freeze(x));return O};
rC=function(O,x){return Object.prototype.hasOwnProperty.call(O,x)};
sor=function(O){if(O==null)throw new TypeError("g");return Object(O)};
WkV=typeof Object.assign=="function"?Object.assign:function(O,x){O=sor(O);for(var e=1;e<arguments.length;e++){var l=arguments[e];if(l)for(var C in l)rC(l,C)&&(O[C]=l[C])}return O};
se("Object.assign",function(O){return O||WkV});
var HN=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},hA$=function(O){if(O.isRunning_)throw new TypeError("i");
O.isRunning_=!0};
HN.prototype.JSC$8715_next_=function(O){this.yieldResult=O};
var zAW=function(O,x){O.abruptCompletion_={exception:x,isException:!0};O.nextAddress=O.catchAddress_||O.finallyAddress_};
HN.prototype.return=function(O){this.abruptCompletion_={return:O};this.nextAddress=this.finallyAddress_};
HN.prototype.yield=function(O,x){this.nextAddress=x;return{value:O}};
HN.prototype.jumpTo=function(O){this.nextAddress=O};
_.Ra=function(O){O.nextAddress=0};
_.tS=function(O,x,e){O.catchAddress_=x;e!=void 0&&(O.finallyAddress_=e)};
_.cO=function(O,x){O.catchAddress_=0;O.finallyAddress_=x||0};
_.lb=function(O,x,e){O.nextAddress=x;O.catchAddress_=e||0};
_.VP=function(O,x){O.catchAddress_=x||0;x=O.abruptCompletion_.exception;O.abruptCompletion_=null;return x};
_.PO=function(O,x,e,l){l?O.finallyContexts_[l]=O.abruptCompletion_:O.finallyContexts_=[O.abruptCompletion_];O.catchAddress_=x||0;O.finallyAddress_=e||0};
_.Ia=function(O,x,e){e=O.finallyContexts_.splice(e||0)[0];(e=O.abruptCompletion_=O.abruptCompletion_||e)?e.isException?O.nextAddress=O.catchAddress_||O.finallyAddress_:e.jumpTo!=void 0&&O.finallyAddress_<e.jumpTo?(O.nextAddress=e.jumpTo,O.abruptCompletion_=null):O.nextAddress=O.finallyAddress_:O.nextAddress=x};
r2r=function(O){this.JSC$8720_context_=new HN;this.program_=O};
KkL=function(O,x){hA$(O.JSC$8720_context_);var e=O.JSC$8720_context_.yieldAllIterator_;if(e)return HHr(O,"return"in e?e["return"]:function(l){return{value:l,done:!0}},x,O.JSC$8720_context_.return);
O.JSC$8720_context_.return(x);return KI(O)};
HHr=function(O,x,e,l){try{var C=x.call(O.JSC$8720_context_.yieldAllIterator_,e);if(!(C instanceof Object))throw new TypeError("h`"+C);if(!C.done)return O.JSC$8720_context_.isRunning_=!1,C;var Q=C.value}catch(L){return O.JSC$8720_context_.yieldAllIterator_=null,zAW(O.JSC$8720_context_,L),KI(O)}O.JSC$8720_context_.yieldAllIterator_=null;l.call(O.JSC$8720_context_,Q);return KI(O)};
KI=function(O){for(;O.JSC$8720_context_.nextAddress;)try{var x=O.program_(O.JSC$8720_context_);if(x)return O.JSC$8720_context_.isRunning_=!1,{value:x.value,done:!1}}catch(e){O.JSC$8720_context_.yieldResult=void 0,zAW(O.JSC$8720_context_,e)}O.JSC$8720_context_.isRunning_=!1;if(O.JSC$8720_context_.abruptCompletion_){x=O.JSC$8720_context_.abruptCompletion_;O.JSC$8720_context_.abruptCompletion_=null;if(x.isException)throw x.exception;return{value:x.return,done:!0}}return{value:void 0,done:!0}};
d1W=function(O){this.next=function(x){hA$(O.JSC$8720_context_);O.JSC$8720_context_.yieldAllIterator_?x=HHr(O,O.JSC$8720_context_.yieldAllIterator_.next,x,O.JSC$8720_context_.JSC$8715_next_):(O.JSC$8720_context_.JSC$8715_next_(x),x=KI(O));return x};
this.throw=function(x){hA$(O.JSC$8720_context_);O.JSC$8720_context_.yieldAllIterator_?x=HHr(O,O.JSC$8720_context_.yieldAllIterator_["throw"],x,O.JSC$8720_context_.JSC$8715_next_):(zAW(O.JSC$8720_context_,x),x=KI(O));return x};
this.return=function(x){return KkL(O,x)};
this[Symbol.iterator]=function(){return this}};
_.SK=function(O,x){x=new d1W(new r2r(x));WN&&O.prototype&&WN(x,O.prototype);return x};
nDN=function(O){function x(l){return O.next(l)}
function e(l){return O.throw(l)}
return new Promise(function(l,C){function Q(L){L.done?l(L.value):Promise.resolve(L.value).then(x,e).then(Q,C)}
Q(O.next())})};
_.A=function(O){return nDN(new d1W(new r2r(O)))};
_.qx=function(O){var x=O[Symbol.asyncIterator];return x!==void 0?x.call(O):new uP7(_.T(O))};
uP7=function(O){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return O};
this.next=function(x){return Promise.resolve(O.next(x))};
this["throw"]=function(x){return new Promise(function(e,l){var C=O["throw"];C!==void 0?e(C.call(O,x)):(e=O["return"],e!==void 0&&e.call(O),l(new TypeError("j")))})};
O["return"]!==void 0&&(this["return"]=function(x){return Promise.resolve(O["return"](x))})};
_.vw=function(){for(var O=Number(this),x=[],e=O;e<arguments.length;e++)x[e-O]=arguments[e];return x};
_.jK=function(O){return O};
se("globalThis",function(O){return O||_.Dy});
se("Reflect",function(O){return O?O:{}});
se("Reflect.construct",function(){return p6s});
se("Reflect.setPrototypeOf",function(O){return O?O:WN?function(x,e){try{return WN(x,e),!0}catch(l){return!1}}:null});
se("Promise",function(O){function x(){this.batch_=null}
function e(L){return L instanceof C?L:new C(function(k){k(L)})}
if(O&&(typeof _.Dy.PromiseRejectionEvent!=="undefined"||!_.Dy.Promise||_.Dy.Promise.toString().indexOf("[native code]")===-1))return O;x.prototype.asyncExecute=function(L){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(L)};
var l=_.Dy.setTimeout;x.prototype.asyncExecuteFunction=function(L){l(L,0)};
x.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var L=this.batch_;this.batch_=[];for(var k=0;k<L.length;++k){var M=L[k];L[k]=null;try{M()}catch(G){this.asyncThrow_(G)}}}this.batch_=null};
x.prototype.asyncThrow_=function(L){this.asyncExecuteFunction(function(){throw L;})};
var C=function(L){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{L(k.resolve,k.reject)}catch(M){k.reject(M)}};
C.prototype.createResolveAndReject_=function(){function L(G){return function(X){M||(M=!0,G.call(k,X))}}
var k=this,M=!1;return{resolve:L(this.resolveTo_),reject:L(this.JSC$8748_reject_)}};
C.prototype.resolveTo_=function(L){if(L===this)this.JSC$8748_reject_(new TypeError("n"));else if(L instanceof C)this.settleSameAsPromise_(L);else{a:switch(typeof L){case "object":var k=L!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(L):this.fulfill_(L)}};
C.prototype.resolveToNonPromiseObj_=function(L){var k=void 0;try{k=L.then}catch(M){this.JSC$8748_reject_(M);return}typeof k=="function"?this.settleSameAsThenable_(k,L):this.fulfill_(L)};
C.prototype.JSC$8748_reject_=function(L){this.settle_(2,L)};
C.prototype.fulfill_=function(L){this.settle_(1,L)};
C.prototype.settle_=function(L,k){if(this.state_!=0)throw Error("o`"+L+"`"+k+"`"+this.state_);this.state_=L;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
C.prototype.scheduleUnhandledRejectionCheck_=function(){var L=this;l(function(){if(L.notifyUnhandledRejection_()){var k=_.Dy.console;typeof k!=="undefined"&&k.error(L.result_)}},1)};
C.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var L=_.Dy.CustomEvent,k=_.Dy.Event,M=_.Dy.dispatchEvent;if(typeof M==="undefined")return!0;typeof L==="function"?L=new L("unhandledrejection",{cancelable:!0}):typeof k==="function"?L=new k("unhandledrejection",{cancelable:!0}):(L=_.Dy.document.createEvent("CustomEvent"),L.initCustomEvent("unhandledrejection",!1,!0,L));L.promise=this;L.reason=this.result_;return M(L)};
C.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var L=0;L<this.onSettledCallbacks_.length;++L)Q.asyncExecute(this.onSettledCallbacks_[L]);this.onSettledCallbacks_=null}};
var Q=new x;C.prototype.settleSameAsPromise_=function(L){var k=this.createResolveAndReject_();L.callWhenSettled_(k.resolve,k.reject)};
C.prototype.settleSameAsThenable_=function(L,k){var M=this.createResolveAndReject_();try{L.call(k,M.resolve,M.reject)}catch(G){M.reject(G)}};
C.prototype.then=function(L,k){function M(Z,E){return typeof Z=="function"?function(P){try{G(Z(P))}catch(U){X(U)}}:E}
var G,X,y=new C(function(Z,E){G=Z;X=E});
this.callWhenSettled_(M(L,G),M(k,X));return y};
C.prototype.catch=function(L){return this.then(void 0,L)};
C.prototype.callWhenSettled_=function(L,k){function M(){switch(G.state_){case 1:L(G.result_);break;case 2:k(G.result_);break;default:throw Error("p`"+G.state_);}}
var G=this;this.onSettledCallbacks_==null?Q.asyncExecute(M):this.onSettledCallbacks_.push(M);this.isRejectionHandled_=!0};
C.resolve=e;C.reject=function(L){return new C(function(k,M){M(L)})};
C.race=function(L){return new C(function(k,M){for(var G=_.T(L),X=G.next();!X.done;X=G.next())e(X.value).callWhenSettled_(k,M)})};
C.all=function(L){var k=_.T(L),M=k.next();return M.done?e([]):new C(function(G,X){function y(P){return function(U){Z[P]=U;E--;E==0&&G(Z)}}
var Z=[],E=0;do Z.push(void 0),E++,e(M.value).callWhenSettled_(y(Z.length-1),X),M=k.next();while(!M.done)})};
return C});
var dC=function(O,x,e){if(O==null)throw new TypeError("q`"+e);if(x instanceof RegExp)throw new TypeError("r`"+e);return O+""};
se("String.prototype.startsWith",function(O){return O?O:function(x,e){var l=dC(this,x,"startsWith"),C=l.length,Q=x.length;e=Math.max(0,Math.min(e|0,l.length));for(var L=0;L<Q&&e<C;)if(l[e++]!=x[L++])return!1;return L>=Q}});
se("Object.setPrototypeOf",function(O){return O||WN});
se("Symbol.dispose",function(O){return O?O:Symbol("s")});
se("SuppressedError",function(O){function x(e,l,C){if(!(this instanceof x))return new x(e,l,C);C=Error(C);"stack"in C&&(this.stack=C.stack);this.message=C.message;this.error=e;this.suppressed=l}
if(O)return O;_.c(x,Error);x.prototype.name="SuppressedError";return x});
se("Array.from",function(O){return O?O:function(x,e,l){e=e!=null?e:function(k){return k};
var C=[],Q=typeof Symbol!="undefined"&&Symbol.iterator&&x[Symbol.iterator];if(typeof Q=="function"){x=Q.call(x);for(var L=0;!(Q=x.next()).done;)C.push(e.call(l,Q.value,L++))}else for(Q=x.length,L=0;L<Q;L++)C.push(e.call(l,x[L],L));return C}});
var Y$m=function(O,x,e){O instanceof String&&(O=String(O));for(var l=O.length,C=0;C<l;C++){var Q=O[C];if(x.call(e,Q,C,O))return{i:C,v:Q}}return{i:-1,v:void 0}};
se("Array.prototype.find",function(O){return O?O:function(x,e){return Y$m(this,x,e).v}});
se("WeakMap",function(O){function x(){}
function e(M){var G=typeof M;return G==="object"&&M!==null||G==="function"}
function l(M){if(!rC(M,Q)){var G=new x;EDN(M,Q,{value:G})}}
function C(M){var G=Object[M];G&&(Object[M]=function(X){if(X instanceof x)return X;Object.isExtensible(X)&&l(X);return G(X)})}
if(function(){if(!O||!Object.seal)return!1;try{var M=Object.seal({}),G=Object.seal({}),X=new O([[M,2],[G,3]]);if(X.get(M)!=2||X.get(G)!=3)return!1;X.delete(M);X.set(G,4);return!X.has(M)&&X.get(G)==4}catch(y){return!1}}())return O;
var Q="$jscomp_hidden_"+Math.random();C("freeze");C("preventExtensions");C("seal");var L=0,k=function(M){this.JSC$8756_id_=(L+=Math.random()+1).toString();if(M){M=_.T(M);for(var G;!(G=M.next()).done;)G=G.value,this.set(G[0],G[1])}};
k.prototype.set=function(M,G){if(!e(M))throw Error("t");l(M);if(!rC(M,Q))throw Error("u`"+M);M[Q][this.JSC$8756_id_]=G;return this};
k.prototype.get=function(M){return e(M)&&rC(M,Q)?M[Q][this.JSC$8756_id_]:void 0};
k.prototype.has=function(M){return e(M)&&rC(M,Q)&&rC(M[Q],this.JSC$8756_id_)};
k.prototype.delete=function(M){return e(M)&&rC(M,Q)&&rC(M[Q],this.JSC$8756_id_)?delete M[Q][this.JSC$8756_id_]:!1};
return k});
se("Map",function(O){if(function(){if(!O||typeof O!="function"||!O.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),M=new O(_.T([[k,"s"]]));if(M.get(k)!="s"||M.size!=1||M.get({x:4})||M.set({x:4},"t")!=M||M.size!=2)return!1;var G=M.entries(),X=G.next();if(X.done||X.value[0]!=k||X.value[1]!="s")return!1;X=G.next();return X.done||X.value[0].x!=4||X.value[1]!="t"||!G.next().done?!1:!0}catch(y){return!1}}())return O;
var x=new WeakMap,e=function(k){this[0]={};this[1]=Q();this.size=0;if(k){k=_.T(k);for(var M;!(M=k.next()).done;)M=M.value,this.set(M[0],M[1])}};
e.prototype.set=function(k,M){k=k===0?0:k;var G=l(this,k);G.list||(G.list=this[0][G.id]=[]);G.entry?G.entry.value=M:(G.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:M},G.list.push(G.entry),this[1].previous.next=G.entry,this[1].previous=G.entry,this.size++);return this};
e.prototype.delete=function(k){k=l(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=Q();this.size=0};
e.prototype.has=function(k){return!!l(this,k).entry};
e.prototype.get=function(k){return(k=l(this,k).entry)&&k.value};
e.prototype.entries=function(){return C(this,function(k){return[k.key,k.value]})};
e.prototype.keys=function(){return C(this,function(k){return k.key})};
e.prototype.values=function(){return C(this,function(k){return k.value})};
e.prototype.forEach=function(k,M){for(var G=this.entries(),X;!(X=G.next()).done;)X=X.value,k.call(M,X[1],X[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var l=function(k,M){var G=M&&typeof M;G=="object"||G=="function"?x.has(M)?G=x.get(M):(G=""+ ++L,x.set(M,G)):G="p_"+M;var X=k[0][G];if(X&&rC(k[0],G))for(k=0;k<X.length;k++){var y=X[k];if(M!==M&&y.key!==y.key||M===y.key)return{id:G,list:X,index:k,entry:y}}return{id:G,list:X,index:-1,entry:void 0}},C=function(k,M){var G=k[1];
return I37(function(){if(G){for(;G.head!=k[1];)G=G.previous;for(;G.next!=G.head;)return G=G.next,{done:!1,value:M(G)};G=null}return{done:!0,value:void 0}})},Q=function(){var k={};
return k.previous=k.next=k.head=k},L=0;
return e});
se("Set",function(O){if(function(){if(!O||typeof O!="function"||!O.prototype.entries||typeof Object.seal!="function")return!1;try{var e=Object.seal({x:4}),l=new O(_.T([e]));if(!l.has(e)||l.size!=1||l.add(e)!=l||l.size!=1||l.add({x:4})!=l||l.size!=2)return!1;var C=l.entries(),Q=C.next();if(Q.done||Q.value[0]!=e||Q.value[1]!=e)return!1;Q=C.next();return Q.done||Q.value[0]==e||Q.value[0].x!=4||Q.value[1]!=Q.value[0]?!1:C.next().done}catch(L){return!1}}())return O;
var x=function(e){this.JSC$8770_map_=new Map;if(e){e=_.T(e);for(var l;!(l=e.next()).done;)this.add(l.value)}this.size=this.JSC$8770_map_.size};
x.prototype.add=function(e){e=e===0?0:e;this.JSC$8770_map_.set(e,e);this.size=this.JSC$8770_map_.size;return this};
x.prototype.delete=function(e){e=this.JSC$8770_map_.delete(e);this.size=this.JSC$8770_map_.size;return e};
x.prototype.clear=function(){this.JSC$8770_map_.clear();this.size=0};
x.prototype.has=function(e){return this.JSC$8770_map_.has(e)};
x.prototype.entries=function(){return this.JSC$8770_map_.entries()};
x.prototype.values=function(){return this.JSC$8770_map_.values()};
x.prototype.keys=x.prototype.values;x.prototype[Symbol.iterator]=x.prototype.values;x.prototype.forEach=function(e,l){var C=this;this.JSC$8770_map_.forEach(function(Q){return e.call(l,Q,Q,C)})};
return x});
se("Math.log2",function(O){return O?O:function(x){return Math.log(x)/Math.LN2}});
se("Object.values",function(O){return O?O:function(x){var e=[],l;for(l in x)rC(x,l)&&e.push(x[l]);return e}});
se("Object.is",function(O){return O?O:function(x,e){return x===e?x!==0||1/x===1/e:x!==x&&e!==e}});
se("Array.prototype.includes",function(O){return O?O:function(x,e){var l=this;l instanceof String&&(l=String(l));var C=l.length;e=e||0;for(e<0&&(e=Math.max(e+C,0));e<C;e++){var Q=l[e];if(Q===x||Object.is(Q,x))return!0}return!1}});
se("String.prototype.includes",function(O){return O?O:function(x,e){return dC(this,x,"includes").indexOf(x,e||0)!==-1}});
se("Object.entries",function(O){return O?O:function(x){var e=[],l;for(l in x)rC(x,l)&&e.push([l,x[l]]);return e}});
se("Number.isFinite",function(O){return O?O:function(x){return typeof x!=="number"?!1:!isNaN(x)&&x!==Infinity&&x!==-Infinity}});
se("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
se("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
se("Number.isInteger",function(O){return O?O:function(x){return Number.isFinite(x)?x===Math.floor(x):!1}});
se("Number.isSafeInteger",function(O){return O?O:function(x){return Number.isInteger(x)&&Math.abs(x)<=Number.MAX_SAFE_INTEGER}});
se("String.prototype.endsWith",function(O){return O?O:function(x,e){var l=dC(this,x,"endsWith");e===void 0&&(e=l.length);e=Math.max(0,Math.min(e|0,l.length));for(var C=x.length;C>0&&e>0;)if(l[--e]!=x[--C])return!1;return C<=0}});
var BBV=function(O,x){O instanceof String&&(O+="");var e=0,l=!1,C={next:function(){if(!l&&e<O.length){var Q=e++;return{value:x(Q,O[Q]),done:!1}}l=!0;return{done:!0,value:void 0}}};
C[Symbol.iterator]=function(){return C};
return C};
se("Array.prototype.entries",function(O){return O?O:function(){return BBV(this,function(x,e){return[x,e]})}});
se("Math.trunc",function(O){return O?O:function(x){x=Number(x);if(isNaN(x)||x===Infinity||x===-Infinity||x===0)return x;var e=Math.floor(Math.abs(x));return x<0?-e:e}});
se("Number.isNaN",function(O){return O?O:function(x){return typeof x==="number"&&isNaN(x)}});
se("Array.prototype.keys",function(O){return O?O:function(){return BBV(this,function(x){return x})}});
se("Array.prototype.values",function(O){return O?O:function(){return BBV(this,function(x,e){return e})}});
se("Array.prototype.fill",function(O){return O?O:function(x,e,l){var C=this.length||0;e<0&&(e=Math.max(0,C+e));if(l==null||l>C)l=C;l=Number(l);l<0&&(l=Math.max(0,C+l));for(e=Number(e||0);e<l;e++)this[e]=x;return this}});
c2w("fill",function(O){return O?O:Array.prototype.fill});
se("Object.fromEntries",function(O){return O?O:function(x){var e={};if(!(Symbol.iterator in x))throw new TypeError("v`"+x);x=x[Symbol.iterator].call(x);for(var l=x.next();!l.done;l=x.next()){l=l.value;if(Object(l)!==l)throw new TypeError("w");e[l[0]]=l[1]}return e}});
se("String.prototype.replaceAll",function(O){return O?O:function(x,e){if(x instanceof RegExp&&!x.global)throw new TypeError("x");return x instanceof RegExp?this.replace(x,e):this.replace(new RegExp(String(x).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),e)}});
se("Object.getOwnPropertySymbols",function(O){return O?O:function(){return[]}});
se("String.prototype.repeat",function(O){return O?O:function(x){var e=dC(this,null,"repeat");if(x<0||x>1342177279)throw new RangeError("y");x|=0;for(var l="";x;)if(x&1&&(l+=e),x>>>=1)e+=e;return l}});
se("Array.prototype.findIndex",function(O){return O?O:function(x,e){return Y$m(this,x,e).i}});
se("Array.prototype.flatMap",function(O){return O?O:function(x,e){var l=[];Array.prototype.forEach.call(this,function(C,Q){C=x.call(e,C,Q,this);Array.isArray(C)?l.push.apply(l,C):l.push(C)});
return l}});
se("String.prototype.codePointAt",function(O){return O?O:function(x){var e=dC(this,null,"codePointAt"),l=e.length;x=Number(x)||0;if(x>=0&&x<l){x|=0;var C=e.charCodeAt(x);if(C<55296||C>56319||x+1===l)return C;x=e.charCodeAt(x+1);return x<56320||x>57343?C:(C-55296)*1024+x+9216}}});
se("String.fromCodePoint",function(O){return O?O:function(x){for(var e="",l=0;l<arguments.length;l++){var C=Number(arguments[l]);if(C<0||C>1114111||C!==Math.floor(C))throw new RangeError("z`"+C);C<=65535?e+=String.fromCharCode(C):(C-=65536,e+=String.fromCharCode(C>>>10&1023|55296),e+=String.fromCharCode(C&1023|56320))}return e}});
se("String.prototype.trimLeft",function(O){function x(){return this.replace(/^[\s\xa0]+/,"")}
return O||x});
se("String.prototype.trimStart",function(O){return O||String.prototype.trimLeft});
se("String.prototype.padStart",function(O){return O?O:function(x,e){var l=dC(this,null,"padStart");x-=l.length;e=e!==void 0?String(e):" ";return(x>0&&e?e.repeat(Math.ceil(x/e.length)).substring(0,x):"")+l}});
se("Promise.prototype.finally",function(O){return O?O:function(x){return this.then(function(e){return Promise.resolve(x()).then(function(){return e})},function(e){return Promise.resolve(x()).then(function(){throw e;
})})}});
se("Math.imul",function(O){return O?O:function(x,e){x=Number(x);e=Number(e);var l=x&65535,C=e&65535;return l*C+((x>>>16&65535)*C+l*(e>>>16&65535)<<16>>>0)|0}});
se("Object.hasOwn",function(O){return O?O:function(x,e){return Object.prototype.hasOwnProperty.call(x,e)}});
se("Math.sign",function(O){return O?O:function(x){x=Number(x);return x===0||isNaN(x)?x:x>0?1:-1}});
se("Array.prototype.flat",function(O){return O?O:function(x){x=x===void 0?1:x;var e=[];Array.prototype.forEach.call(this,function(l){Array.isArray(l)&&x>0?(l=Array.prototype.flat.call(l,x-1),e.push.apply(e,l)):e.push(l)});
return e}});
se("String.raw",function(O){return O?O:function(x,e){x=sor(x);for(var l=x.raw,C=l.length,Q="",L=0;L<C;++L)Q+=l[L],L+1<C&&L+1<arguments.length&&(Q+=String(arguments[L+1]));return Q}});
se("WeakSet",function(O){if(function(){if(!O||!Object.seal)return!1;try{var e=Object.seal({}),l=Object.seal({}),C=new O([e]);if(!C.has(e)||C.has(l))return!1;C.delete(e);C.add(l);return!C.has(e)&&C.has(l)}catch(Q){return!1}}())return O;
var x=function(e){this.JSC$8781_map_=new WeakMap;if(e){e=_.T(e);for(var l;!(l=e.next()).done;)this.add(l.value)}};
x.prototype.add=function(e){this.JSC$8781_map_.set(e,!0);return this};
x.prototype.has=function(e){return this.JSC$8781_map_.has(e)};
x.prototype.delete=function(e){return this.JSC$8781_map_.delete(e)};
return x});
se("Reflect.ownKeys",function(O){return O?O:function(x){var e=[],l=Object.getOwnPropertyNames(x);x=Object.getOwnPropertySymbols(x);for(var C=0;C<l.length;C++)(l[C].substring(0,14)=="jscomp_symbol_"?x:e).push(l[C]);return e.concat(x)}});
se("Object.getOwnPropertyDescriptors",function(O){return O?O:function(x){for(var e={},l=Reflect.ownKeys(x),C=0;C<l.length;C++)e[l[C]]=Object.getOwnPropertyDescriptor(x,l[C]);return e}});
se("Promise.allSettled",function(O){function x(l){return{status:"fulfilled",value:l}}
function e(l){return{status:"rejected",reason:l}}
return O?O:function(l){var C=this;l=Array.from(l,function(Q){return C.resolve(Q).then(x,e)});
return C.all(l)}});
se("Number.parseInt",function(O){return O||parseInt});
_._DumpException=window._DumpException||function(O){throw O;};
window._DumpException=_._DumpException;var vDn=window.ytcsi;vDn&&typeof vDn.tick==="function"&&vDn.tick("rses_dpj");var f38,nI,ug,YQ,J28,w6V,S$r,joL,U4,NBr;f38=f38||{};_.CV=this||self;_.MB=function(O,x,e){O=O.split(".");e=e||_.CV;for(var l;O.length&&(l=O.shift());)O.length||x===void 0?e[l]&&e[l]!==Object.prototype[l]?e=e[l]:e=e[l]={}:e[l]=x};
nI=function(O,x){var e=_.i8("WIZ_global_data.oxN3nb");O=e&&e[O];return O!=null?O:x};
ug=_.CV._F_toggles_default_kevlar_base||[];YQ=function(){};
YQ.get=function(){return null};
_.Ccr=null;_.i8=function(O,x){O=O.split(".");x=x||_.CV;for(var e=0;e<O.length;e++)if(x=x[O[e]],x==null)return null;return x};
_.BN=function(O){O.instance_=void 0;O.getInstance=function(){return O.instance_?O.instance_:O.instance_=new O}};
_.Nk=function(O){var x=typeof O;return x!="object"?x:O?Array.isArray(O)?"array":x:"null"};
_.vi=function(O){var x=_.Nk(O);return x=="array"||x=="object"&&typeof O.length=="number"};
_.w7=function(O){var x=typeof O;return x=="object"&&O!=null||x=="function"};
_.N$=function(O){return Object.prototype.hasOwnProperty.call(O,J28)&&O[J28]||(O[J28]=++w6V)};
J28="closure_uid_"+(Math.random()*1E9>>>0);w6V=0;S$r=function(O,x,e){return O.call.apply(O.bind,arguments)};
joL=function(O,x,e){if(!O)throw Error();if(arguments.length>2){var l=Array.prototype.slice.call(arguments,2);return function(){var C=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(C,l);return O.apply(x,C)}}return function(){return O.apply(x,arguments)}};
_.z8=function(O,x,e){_.z8=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?S$r:joL;return _.z8.apply(null,arguments)};
_.b_=function(O,x){var e=Array.prototype.slice.call(arguments,1);return function(){var l=e.slice();l.push.apply(l,arguments);return O.apply(this,l)}};
_.vN=function(){return Date.now()};
U4=function(O){return O};
_.fI=function(O,x){function e(){}
e.prototype=x.prototype;O.superClass_=x.prototype;O.prototype=new e;O.prototype.constructor=O;O.base=function(l,C,Q){for(var L=Array(arguments.length-2),k=2;k<arguments.length;k++)L[k-2]=arguments[k];return x.prototype[C].apply(l,L)}};
NBr=function(O){return O};var gDr,$1m;_.B=function(O,x,e,l){var C=arguments.length,Q=C<3?x:l===null?l=Object.getOwnPropertyDescriptor(x,e):l,L;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")Q=Reflect.decorate(O,x,e,l);else for(var k=O.length-1;k>=0;k--)if(L=O[k])Q=(C<3?L(Q):C>3?L(x,e,Q):L(x,e))||Q;C>3&&Q&&Object.defineProperty(x,e,Q)};
_.v=function(O,x){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(O,x)};
gDr=function(O,x){if(x!==null&&x!==void 0){if(typeof x!=="object"&&typeof x!=="function")throw new TypeError("A");if(e===void 0){if(!Symbol.dispose)throw new TypeError("C");var e=x[Symbol.dispose]}if(typeof e!=="function")throw new TypeError("D");O.stack.push({value:x,dispose:e,async:!1})}return x};
$1m=function(O){function x(Q){O.error=O.hasError?new SuppressedError(Q,O.error,"An error was suppressed during disposal."):Q;O.hasError=!0}
function e(){for(;l=O.stack.pop();)try{if(!l.async&&C===1)return C=0,O.stack.push(l),Promise.resolve().then(e);if(l.dispose){var Q=l.dispose.call(l.value);if(l.async)return C|=2,Promise.resolve(Q).then(e,function(L){x(L);return e()})}else C|=1}catch(L){x(L)}if(C===1)return O.hasError?Promise.reject(O.error):Promise.resolve();
if(O.hasError)throw O.error;}
var l,C=0;e()};var iHL="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(" ");OVr()&&iHL.push("details:not(:has(summary))");var esN=iHL.join(",");_.fI(_.ew,Error);_.ew.prototype.name="CustomError";var OVF;var x$d=void 0,esR,ln2=typeof TextDecoder!=="undefined",Mwr,ALm=typeof String.prototype.isWellFormed==="function",kri=typeof TextEncoder!=="undefined";var Crp;_.Wv=function(O){for(var x=[],e=0,l=0;l<O.length;l++){var C=O.charCodeAt(l);C<128?x[e++]=C:(C<2048?x[e++]=C>>6|192:((C&64512)==55296&&l+1<O.length&&(O.charCodeAt(l+1)&64512)==56320?(C=65536+((C&1023)<<10)+(O.charCodeAt(++l)&1023),x[e++]=C>>18|240,x[e++]=C>>12&63|128):x[e++]=C>>12|224,x[e++]=C>>6&63|128),x[e++]=C&63|128)}return x};
Crp=function(O){for(var x=[],e=0,l=0;e<O.length;){var C=O[e++];if(C<128)x[l++]=String.fromCharCode(C);else if(C>191&&C<224){var Q=O[e++];x[l++]=String.fromCharCode((C&31)<<6|Q&63)}else if(C>239&&C<365){Q=O[e++];var L=O[e++],k=O[e++];C=((C&7)<<18|(Q&63)<<12|(L&63)<<6|k&63)-65536;x[l++]=String.fromCharCode(55296+(C>>10));x[l++]=String.fromCharCode(56320+(C&1023))}else Q=O[e++],L=O[e++],x[l++]=String.fromCharCode((C&15)<<12|(Q&63)<<6|L&63)}return x.join("")};var Gr=String.prototype.trim?function(O){return O.trim()}:function(O){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(O)[1]},QmL=/&/g,bVk=/</g,T7p=/>/g,LLd=/"/g,krd=/'/g,ALz=/\x00/g,Mw4=/[\x00&<>"']/;var Jt=!!(ug[0]>>15&1),D$N=!!(ug[0]&1024),GrD=!!(ug[0]>>16&1),FL$=!!(ug[0]&8),XiJ=!!(ug[0]&2),oWd=!!(ug[0]&4),yLD=!!(ug[0]&16),ZVJ=!!(ug[0]&128);var EWd=nI(1,!0),tL=Jt?GrD:nI(610401301,!1),twL=Jt?FL$:nI(772657768,!1),q8z=Jt?XiJ:nI(513659523,!1),PrJ=Jt?D$N||!oWd:nI(568333945,!0),Vur=Jt?yLD:nI(1331761403,!1),tpr=Jt?D$N||!ZVJ:nI(748402147,EWd);var Pi,cLk=_.CV.navigator;Pi=cLk?cLk.userAgentData||null:null;var Ct;_.d7=function(O,x){return Array.prototype.indexOf.call(O,x,void 0)};
_.e3=function(O,x,e){Array.prototype.forEach.call(O,x,e)};
_.wC=function(O,x,e){return Array.prototype.filter.call(O,x,e)};
_.Ku=function(O,x,e){return Array.prototype.map.call(O,x,e)};
Ct=function(O,x,e){return Array.prototype.some.call(O,x,e)};
_.xe7=function(O,x,e){return Array.prototype.every.call(O,x,e)};var S1=function(O){S1[" "](O);return O};
S1[" "]=function(){};
var Hur=function(O,x){try{return S1(O[x]),!0}catch(e){}return!1},FQr=function(O,x,e,l){l=l?l(x):x;
return Object.prototype.hasOwnProperty.call(O,l)?O[l]:O[l]=e(x)};var Inz,kC,VwL,pid,U$$,ank,vTi,m$3,smF,WLN,QZr,zsD,rLT,nWd,urR,Y8d;_.kmN=function(){return _.CV.navigator||null};
Inz=XiL();_.j1=oWW();kC=Im("Edge");VwL=kC||_.j1;_.No=Im("Gecko")&&!(_.Dn(_.E8(),"WebKit")&&!Im("Edge"))&&!(Im("Trident")||Im("MSIE"))&&!Im("Edge");_.gC=_.Dn(_.E8(),"WebKit")&&!Im("Edge");pid=_.gC&&Im("Mobile");_.RsF=_.Vws();U$$=_.pii();ank=(s8()?Pi.platform==="Linux":Im("Linux"))||_.Rsr();vTi=_.cL$();m$3=Inm();smF=Im("iPad");WLN=Im("iPod");_.hsT=_.Wi();QZr=_.Dn(_.E8(),"KaiOS");zsD=function(){var O=_.CV.document;return O?O.documentMode:void 0};
a:{var HVF="",KLd=function(){var O=_.E8();if(_.No)return/rv:([^\);]+)(\)|;)/.exec(O);if(kC)return/Edge\/([\d\.]+)/.exec(O);if(_.j1)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(O);if(_.gC)return/WebKit\/(\S+)/.exec(O);if(Inz)return/(?:Version)[ \/]?(\S+)/.exec(O)}();
KLd&&(HVF=KLd?KLd[1]:"");if(_.j1){var d$3=zsD();if(d$3!=null&&d$3>parseFloat(HVF)){rLT=String(d$3);break a}}rLT=HVF}nWd=rLT;urR={};_.$Q=function(O){return FQr(urR,O,function(){return _.om(nWd,O)>=0})};
if(_.CV.document&&_.j1){var B7p=zsD();Y8d=B7p?B7p:parseInt(nWd,10)||void 0}else Y8d=void 0;_.vWD=Y8d;var jRi,NTV,fnR;_.ig=U8();jRi=Inm()||Im("iPod");NTV=Im("iPad");fnR=_.EWi();_.Oa=_.am();_.Nb=_.ZVL()&&!_.Wi();var JLT,xi,ldr,e48,S8k,wid;JLT={};xi=null;ldr=_.No||_.gC||typeof _.CV.btoa=="function";_.zX=function(O,x){x===void 0&&(x=0);wid();x=JLT[x];for(var e=Array(Math.floor(O.length/3)),l=x[64]||"",C=0,Q=0;C<O.length-2;C+=3){var L=O[C],k=O[C+1],M=O[C+2],G=x[L>>2];L=x[(L&3)<<4|k>>4];k=x[(k&15)<<2|M>>6];M=x[M&63];e[Q++]=G+L+k+M}G=0;M=l;switch(O.length-C){case 2:G=O[C+1],M=x[(G&15)<<2]||l;case 1:O=O[C],e[Q]=x[O>>2]+x[(O&3)<<4|G>>4]+M+l}return e.join("")};
e48=function(O){var x="";S8k(O,function(e){x+=String.fromCharCode(e)});
return x};
_.s87=function(O){var x=[];S8k(O,function(e){x.push(e)});
return x};
_.ir=function(O){var x=O.length,e=x*3/4;e%3?e=Math.floor(e):_.M$("=.",O[x-1])&&(e=_.M$("=.",O[x-2])?e-2:e-1);var l=new Uint8Array(e),C=0;S8k(O,function(Q){l[C++]=Q});
return C!==e?l.subarray(0,C):l};
S8k=function(O,x){function e(M){for(;l<O.length;){var G=O.charAt(l++),X=xi[G];if(X!=null)return X;if(!_.AL(G))throw Error("H`"+G);}return M}
wid();for(var l=0;;){var C=e(-1),Q=e(0),L=e(64),k=e(64);if(k===64&&C===-1)break;x(C<<2|Q>>4);L!=64&&(x(Q<<4&240|L>>2),k!=64&&x(L<<6&192|k))}};
wid=function(){if(!xi){xi={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),x=["+/=","+/","-_=","-_.","-_"],e=0;e<5;e++){var l=O.concat(x[e].split(""));JLT[e]=l;for(var C=0;C<l.length;C++){var Q=l[C];xi[Q]===void 0&&(xi[Q]=C)}}}};var iVW=typeof Uint8Array!=="undefined",Y8W=!_.j1&&typeof btoa==="function",B7r=/[-_.]/g,nWW={"-":"+",_:"/",".":"="},Rz={};var qk,N73;qk=function(O,x){if(x!==Rz)throw Error("J");this.JSC$8815_value_=O;if(O!=null&&O.length===0)throw Error("I");};
_.UT=function(){return jm4||(jm4=new qk(null,Rz))};
N73=function(O){return new Uint8Array(vLL(O)||0)};
qk.prototype.isEmpty=function(){return this.JSC$8815_value_==null};
qk.prototype.sizeBytes=function(){var O=vLL(this);return O?O.length:0};
var vLL=function(O){if(Rz!==Rz)throw Error("J");var x=O.JSC$8815_value_;x==null||iVW&&x!=null&&x instanceof Uint8Array||(typeof x==="string"?x=vWn(x):(_.Nk(x),x=null));return x==null?x:O.JSC$8815_value_=x},jm4;var JL8=void 0;var lF=typeof Symbol==="function"&&typeof Symbol()==="symbol",gW2=e$("jas",void 0,!0),u4r=e$(void 0,"0di"),eE=e$(void 0,"1oa"),WT=e$(void 0,Symbol()),lQr=e$(void 0,"0ub"),QuN=e$(void 0,"0ubs"),pwm=e$(void 0,"0ubsb"),PL7=e$(void 0,"0actk"),cT=e$("m_m","messagePrototypeMarker",!0),XTW=e$(void 0,"vps"),OQm=e$();var jmr,S8$,Sp,$$d;jmr={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};S8$=Object.defineProperties;_.C2=lF?gW2:"internalArrayState";$$d=[];L2($$d,7);Sp=Object.freeze($$d);var pQ={},Mk={},iVd=function(O,x,e){this.iterable=O;this.mapper=x;this.thisArg=e};
iVd.prototype.next=function(){var O=this.iterable.next();O.done||(O.value=this.mapper.call(this.thisArg,O.value));return O};
iVd.prototype[Symbol.iterator]=function(){return this};
var O22=Object.freeze({}),sT={};_.xk2=hJ(function(O){return O!==null&&O!==void 0});var Qzn=hJ(function(O){return typeof O==="number"}),CFi=hJ(function(O){return typeof O==="string"}),TNm=hJ(function(O){return typeof O==="boolean"}),eL4=hJ(function(O){return O!=null&&typeof O==="object"&&typeof O.then==="function"}),YC8=hJ(function(O){return typeof O==="function"}),F1=hJ(function(O){return!!O&&(typeof O==="object"||typeof O==="function")});var b2L=typeof _.CV.BigInt==="function"&&typeof _.CV.BigInt(0)==="bigint";var zLi=hJ(function(O){return b2L?O>=lDF&&O<=CFd:O[0]==="-"?L3r(O,QzD):L3r(O,b2J)}),QzD=Number.MIN_SAFE_INTEGER.toString(),lDF=b2L?BigInt(Number.MIN_SAFE_INTEGER):void 0,b2J=Number.MAX_SAFE_INTEGER.toString(),CFd=b2L?BigInt(Number.MAX_SAFE_INTEGER):void 0;var TNz=typeof Uint8Array.prototype.slice==="function",Hd=0,K2=0,M$i;var kL,Fw,gN,GX,t$r;kL=typeof BigInt==="function"?BigInt.asIntN:void 0;_.y$=typeof BigInt==="function"?BigInt.asUintN:void 0;Fw=Number.isSafeInteger;gN=Number.isFinite;GX=Math.trunc;t$r=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var oLm={};var gdV={},L3F=function(){try{var O=function(){return p6s(Map,[],this.constructor)};
_.c(O,Map);S1(new O);return!1}catch(x){return!0}}(),eJ=function(){this.JSC$8834_map_=new Map};
_.b=eJ.prototype;_.b.get=function(O){return this.JSC$8834_map_.get(O)};
_.b.set=function(O,x){this.JSC$8834_map_.set(O,x);this.size=this.JSC$8834_map_.size;return this};
_.b.delete=function(O){O=this.JSC$8834_map_.delete(O);this.size=this.JSC$8834_map_.size;return O};
_.b.clear=function(){this.JSC$8834_map_.clear();this.size=this.JSC$8834_map_.size};
_.b.has=function(O){return this.JSC$8834_map_.has(O)};
_.b.entries=function(){return this.JSC$8834_map_.entries()};
_.b.keys=function(){return this.JSC$8834_map_.keys()};
_.b.values=function(){return this.JSC$8834_map_.values()};
_.b.forEach=function(O,x){return this.JSC$8834_map_.forEach(O,x)};
eJ.prototype[Symbol.iterator]=function(){return this.entries()};
var HT=function(){if(L3F)return Object.setPrototypeOf(eJ.prototype,Map.prototype),Object.defineProperties(eJ.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),eJ;var O=function(){return p6s(Map,[],this.constructor)};
_.c(O,Map);return O}(),Ru=function(O,x,e,l){e=e===void 0?JJn:e;
l=l===void 0?JJn:l;var C=HT.call(this)||this;C.arrayState=O[_.C2]|0;C.valueCtor=x;C.keyToApi=e;C.valueToApi=C.valueCtor?ST7:l;for(var Q=0;Q<O.length;Q++){var L=O[Q],k=e(L[0],!1,!0),M=L[1];x?M===void 0&&(M=null):M=l(L[1],!1,!0,void 0,void 0,C.arrayState);HT.prototype.set.call(C,k,M)}return C};
_.c(Ru,HT);var kpk=function(O){if(O.arrayState&2)throw Error("N");},Vpm=function(O){return Array.from(HT.prototype.entries.call(O))};
_.b=Ru.prototype;_.b.clear=function(){kpk(this);HT.prototype.clear.call(this)};
_.b.delete=function(O){kpk(this);return HT.prototype.delete.call(this,this.keyToApi(O,!0,!1))};
_.b.entries=function(){if(this.valueCtor){var O=HT.prototype.keys.call(this);O=new iVd(O,jzi,this)}else O=HT.prototype.entries.call(this);return O};
_.b.values=function(){if(this.valueCtor){var O=HT.prototype.keys.call(this);O=new iVd(O,Ru.prototype.get,this)}else O=HT.prototype.values.call(this);return O};
_.b.forEach=function(O,x){this.valueCtor?HT.prototype.forEach.call(this,function(e,l,C){O.call(x,C.get(l),l,C)}):HT.prototype.forEach.call(this,O,x)};
_.b.set=function(O,x){kpk(this);O=this.keyToApi(O,!0,!1);return O==null?this:x==null?(HT.prototype.delete.call(this,O),this):HT.prototype.set.call(this,O,this.valueToApi(x,!0,!0,this.valueCtor,!1,this.arrayState))};
_.b.has=function(O){return HT.prototype.has.call(this,this.keyToApi(O,!1,!1))};
_.b.get=function(O){O=this.keyToApi(O,!1,!1);var x=HT.prototype.get.call(this,O);if(x!==void 0){var e=this.valueCtor;return e?(e=this.valueToApi(x,!1,!0,e,this.callToMutableOnAccess,this.arrayState),e!==x&&HT.prototype.set.call(this,O,e),e):x}};
Ru.prototype[Symbol.iterator]=function(){return this.entries()};
Ru.prototype.toJSON=void 0;var NN8;var kXi=function(){},TL8=function(O,x){for(var e in O)!isNaN(e)&&x(O,+e,O[e])},AeV=function(O){var x=new kXi;
TL8(O,function(e,l,C){x[l]=Bd(C)});
x.reviveUnknownFields=O.reviveUnknownFields;return x},xhr={reviveIntoImmutable:!0};var LYW;var yeL,ZQV;var AJJ,$L,VQ,mv,M$d,AO,Un,Dkd,Gpp,Fl,F3p,Xl,ZO,Ea;AJJ=_.rN(0);_.lm={};_.C0=function(O,x,e,l,C){x=$L(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x,e,C);if(x!==null||l&&O.noLegacyNull!==Mk)return x};
$L=function(O,x,e,l){if(x===-1)return null;var C=x+(e?0:-1),Q=O.length-1;if(!(Q<1+(e?0:-1))){if(C>=Q){var L=O[Q];if(L!=null&&typeof L==="object"&&L.constructor===Object){e=L[x];var k=!0}else if(C===Q)e=L;else return}else e=O[C];if(l&&e!=null){l=l(e);if(l==null)return l;if(!Object.is(l,e))return k?L[x]=l:O[C]=l,l}return e}};
_.EY=function(O,x,e,l){vT(O);var C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;wL(C,C[_.C2]|0,x,e,l);return O};
_.Q7=function(O,x,e){O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return dhi(O,O[_.C2]|0,x,e)!==void 0};
_.bm=function(O,x,e,l){var C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return dhi(C,C[_.C2]|0,x,mv(O,l,e))!==void 0};
_.Dd=function(O){return O===O22?2:4};
_.TB=function(O,x){O=_.C0(O,x,void 0,void 0,WYr);return O==null?_.UT():O};
VQ=function(O,x,e,l){vT(O);var C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=C[_.C2]|0;if(l==null){var L=reL(C);if(HQ8(L,C,Q,e)===x)L.set(e,0);else return O}else Q=KYr(C,Q,e,x);wL(C,Q,x,l);return O};
_.L0=function(O,x,e,l){var C=O[_.C2]|0,Q=Wd(C);C=KYr(O,C,e,x,Q);wL(O,C,x,l,Q)};
mv=function(O,x,e){return _.ki(O,x)===e?e:-1};
_.ki=function(O,x){O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return HQ8(reL(O),O,void 0,x,void 0)};
M$d=function(O,x,e){var l=O[_.C2]|0,C=Wd(l),Q=$L(O,e,C);if(Q!=null&&Q[cT]===pQ){if(!oz(Q))return BT(Q),Q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var L=Q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(Q)&&(L=Q);if(L){var k=L[_.C2]|0;k&2&&(L=YL(L,k))}L=uL(L,x,!0);L!==Q&&wL(O,l,e,L,C);return L};
_.y4=function(O,x,e,l){var C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=C[_.C2]|0;x=dhi(C,Q,x,e,l);if(x==null)return x;Q=C[_.C2]|0;if(!oz(O,Q)){var L=wdn(x);L!==x&&(BT(O)&&(C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=C[_.C2]|0),x=L,Q=wL(C,Q,e,x,l),fQ(C,Q))}return x};
_.Mq=function(O,x,e,l){var C=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nLL(O,C,C[_.C2]|0,x,e,l,!1,!0)};
_.IS=function(O,x,e,l){e=uws(e);_.EY(O,x,e,l);e&&!oz(e)&&fQ(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return O};
_.Vc=function(O,x,e,l){l=uws(l);VQ(O,x,e,l);l&&!oz(l)&&fQ(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return O};
AO=function(O,x,e){vT(O);var l=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=l[_.C2]|0;if(e==null)return wL(l,C,x),O;for(var Q=e===Sp?7:e[_.C2]|0,L=Q,k=gL(Q),M=k||Object.isFrozen(e),G=!0,X=!0,y=0;y<e.length;y++){var Z=e[y];k||(Z=oz(Z),G&&(G=!Z),X&&(X=Z))}k||(Q=G?13:5,Q=X?Q&-4097:Q|4096);M&&Q===L||(e=Bd(e),L=0,Q=jp(Q,C));Q!==L&&L2(e,Q);C=wL(l,C,x,e);2&Q||!(4096&Q||16&Q)||fQ(l,C);return O};
Un=function(O,x,e,l){BLi(O,x,e,l);return O};
Dkd=function(O,x,e){BLi(O,x,Mi,void 0,e,1,!0);return O};
_.DO=function(O,x,e){O=_.C0(O,x,void 0,e);x=typeof O;O=O==null?O:x==="bigint"?_.rN((0,_.y$)(64,O)):_.iF(O)?x==="string"?_.hLi(O):_.szL(O):void 0;return O};
_.GB=function(O,x){var e=e===void 0?!1:e;var l;return(l=_.EdL(_.C0(O,x)))!=null?l:e};
_.G8=function(O,x,e){e=e===void 0?0:e;var l;return(l=_.TX(_.C0(O,x)))!=null?l:e};
Gpp=function(O,x){var e=e===void 0?0:e;O=_.PFr(_.C0(O,x));return O!=null?O:e};
Fl=function(O,x,e){e=e===void 0?AJJ:e;var l;return(l=_.K3w(_.C0(O,x)))!=null?l:e};
F3p=function(O){var x=x===void 0?AJJ:x;var e;return(e=_.DO(O,23))!=null?e:x};
Xl=function(O,x){var e=e===void 0?0:e;var l;return(l=_.C0(O,x,void 0,void 0,_.j$))!=null?l:e};
_.oK=function(O,x,e,l){e=e===void 0?"":e;var C;return(C=_.PT(_.C0(O,x,l)))!=null?C:e};
_.y7=function(O,x){var e=e===void 0?0:e;var l;return(l=_.xL(_.C0(O,x)))!=null?l:e};
ZO=function(O,x){var e=e===void 0?"0":e;O=H27(_.C0(O,x),!0);return O!=null?O:e};
Ea=function(O,x,e){return _.oK(O,mv(O,e,x))};
_.tO=function(O,x,e,l){return _.y4(O,x,mv(O,l,e),void 0)};
_.pf=function(O,x){return _.PT(_.C0(O,x,void 0,_.lm))};
_.yW=function(O,x,e){return _.EY(O,x,Z28(e))};
_.yo=function(O,x,e){return _.Oh(O,x,Z28(e),!1)};
_.qi=function(O,x,e){return _.EY(O,x,_.bL(e))};
_.WH=function(O,x,e){return _.EY(O,x,DQ(e))};
_.mO=function(O,x,e){return _.EY(O,x,te(e))};
_.mz=function(O,x,e,l){return _.Oh(O,x,te(e),"",l)};
_.ZG=function(O,x,e){return _.EY(O,x,e==null?e:_.O4(e))};
_.PM=function(O,x,e){return _.Oh(O,x,e==null?e:_.O4(e),0)};var lI=function(O,x,e){this.buffer=O;if(e&&!x)throw Error();this.JSC$8846_isImmutable=x};var Xdd=function(O,x,e,l){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8849_start_=0;this.init(O,x,e,l)},cM,yJ3,Z2T,EdJ,t$p,qT3,Xww,odd;
_.b=Xdd.prototype;_.b.init=function(O,x,e,l){var C=l===void 0?{}:l;l=C.aliasBytesFields===void 0?!1:C.aliasBytesFields;C=C.treatNewDataAsImmutable===void 0?!1:C.treatNewDataAsImmutable;this.aliasBytesFields=l;this.treatNewDataAsImmutable=C;O&&(O=fQr(O,this.treatNewDataAsImmutable),this.bytes_=O.buffer,this.bytesAreImmutable_=O.JSC$8846_isImmutable,this.JSC$8849_start_=x||0,this.end_=e!==void 0?this.JSC$8849_start_+e:this.bytes_.length,this.cursor_=this.JSC$8849_start_)};
_.b.free=function(){this.clear();odd.length<100&&odd.push(this)};
_.b.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8849_start_=0;this.aliasBytesFields=!1};
_.b.reset=function(){this.cursor_=this.JSC$8849_start_};
_.b.atEnd=function(){return this.cursor_==this.end_};
_.IK=function(O,x){var e=0,l=0,C=0,Q=O.bytes_,L=O.cursor_;do{var k=Q[L++];e|=(k&127)<<C;C+=7}while(C<32&&k&128);if(C>32)for(l|=(k&127)>>4,C=3;C<32&&k&128;C+=7)k=Q[L++],l|=(k&127)<<C;cM(O,L);if(!(k&128))return x(e>>>0,l>>>0);throw Error();};
cM=function(O,x){O.cursor_=x;if(x>O.end_)throw Error();};
_.V7=function(O){var x=O.bytes_,e=O.cursor_,l=x[e++],C=l&127;if(l&128&&(l=x[e++],C|=(l&127)<<7,l&128&&(l=x[e++],C|=(l&127)<<14,l&128&&(l=x[e++],C|=(l&127)<<21,l&128&&(l=x[e++],C|=l<<28,l&128&&x[e++]&128&&x[e++]&128&&x[e++]&128&&x[e++]&128&&x[e++]&128)))))throw Error();cM(O,e);return C};
_.p0=function(O){var x=O.bytes_,e=O.cursor_,l=x[e],C=x[e+1],Q=x[e+2];x=x[e+3];cM(O,O.cursor_+4);return(l<<0|C<<8|Q<<16|x<<24)>>>0};
yJ3=function(O){var x=_.p0(O);O=_.p0(O);return Gpr(x,O)};
Z2T=function(O){var x=_.p0(O);O=(x>>31)*2+1;var e=x>>>23&255;x&=8388607;return e==255?x?NaN:O*Infinity:e==0?O*1.401298464324817E-45*x:O*Math.pow(2,e-150)*(x+8388608)};
EdJ=function(O){var x=_.p0(O),e=_.p0(O);O=(e>>31)*2+1;var l=e>>>20&2047;x=4294967296*(e&1048575)+x;return l==2047?x?NaN:O*Infinity:l==0?O*4.9E-324*x:O*Math.pow(2,l-1075)*(x+4503599627370496)};
t$p=function(O){for(var x=0,e=O.cursor_,l=e+10,C=O.bytes_;e<l;){var Q=C[e++];x|=Q;if((Q&128)===0)return cM(O,e),!!(x&127)}throw Error();};
qT3=function(O,x){if(x<0)throw Error();var e=O.cursor_;x=e+x;if(x>O.end_)throw Error();O.cursor_=x;return e};
Xww=function(O,x){if(x==0)return _.UT();var e=qT3(O,x);O.aliasBytesFields&&O.bytesAreImmutable_?e=O.bytes_.subarray(e,e+x):(O=O.bytes_,x=e+x,e=e===x?new Uint8Array(0):TNz?O.slice(e,x):new Uint8Array(O.subarray(e,x)));return e.length==0?_.UT():new qk(e,Rz)};
odd=[];var cJd=function(O,x,e,l){if(odd.length){var C=odd.pop();C.init(O,x,e,l);O=C}else O=new Xdd(O,x,e,l);this.decoder_=O;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;PF4(this,l)},PF4=function(O,x){x=x===void 0?{}:x;
O.discardUnknownFields=x.discardUnknownFields===void 0?!1:x.discardUnknownFields},ZU7=function(O,x,e,l){if(ID4.length){var C=ID4.pop();
PF4(C,l);C.decoder_.init(O,x,e,l);return C}return new cJd(O,x,e,l)},DTW,For,RK,V$R,ID4;
cJd.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ID4.length<100&&ID4.push(this)};
cJd.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
DTW=function(O){if(O.decoder_.atEnd())return!1;O.fieldCursor_=O.decoder_.cursor_;var x=_.V7(O.decoder_)>>>0,e=x>>>3;x&=7;if(!(x>=0&&x<=5))throw Error();if(e<1)throw Error();O.nextField_=e;O.nextWireType_=x;return!0};
For=function(O){switch(O.nextWireType_){case 0:O.nextWireType_!=0?For(O):t$p(O.decoder_);break;case 1:O=O.decoder_;cM(O,O.cursor_+8);break;case 2:if(O.nextWireType_!=2)For(O);else{var x=_.V7(O.decoder_)>>>0;O=O.decoder_;cM(O,O.cursor_+x)}break;case 5:O=O.decoder_;cM(O,O.cursor_+4);break;case 3:x=O.nextField_;do{if(!DTW(O))throw Error();if(O.nextWireType_==4){if(O.nextField_!=x)throw Error();break}For(O)}while(1);break;default:throw Error();}};
RK=function(O,x,e){var l=O.decoder_.end_,C=_.V7(O.decoder_)>>>0;C=O.decoder_.cursor_+C;var Q=C-l;Q<=0&&(O.decoder_.end_=C,e(x,O,void 0,void 0,void 0),Q=C-O.decoder_.cursor_);if(Q)throw Error();O.decoder_.cursor_=C;O.decoder_.end_=l;return x};
V$R=function(O){var x=_.V7(O.decoder_)>>>0;O=O.decoder_;var e=qT3(O,x);O=O.bytes_;if(ln2){var l=O,C;(C=esR)||(C=esR=new TextDecoder("utf-8",{fatal:!0}));x=e+x;l=e===0&&x===l.length?l:l.subarray(e,x);try{var Q=C.decode(l)}catch(G){if(x$d===void 0){try{C.decode(new Uint8Array([128]))}catch(X){}try{C.decode(new Uint8Array([97])),x$d=!0}catch(X){x$d=!1}}!x$d&&(esR=void 0);throw G;}}else{Q=e;x=Q+x;e=[];for(var L=null,k,M;Q<x;)k=O[Q++],k<128?e.push(k):k<224?Q>=x?lr():(M=O[Q++],k<194||(M&192)!==128?(Q--,
lr()):e.push((k&31)<<6|M&63)):k<240?Q>=x-1?lr():(M=O[Q++],(M&192)!==128||k===224&&M<160||k===237&&M>=160||((C=O[Q++])&192)!==128?(Q--,lr()):e.push((k&15)<<12|(M&63)<<6|C&63)):k<=244?Q>=x-2?lr():(M=O[Q++],(M&192)!==128||(k<<28)+(M-144)>>30!==0||((C=O[Q++])&192)!==128||((l=O[Q++])&192)!==128?(Q--,lr()):(k=(k&7)<<18|(M&63)<<12|(C&63)<<6|l&63,k-=65536,e.push((k>>10&1023)+55296,(k&1023)+56320))):lr(),e.length>=8192&&(L=LLW(L,e),e.length=0);Q=LLW(L,e)}return Q};
_.pdT=function(O){var x=_.V7(O.decoder_)>>>0;return Xww(O.decoder_,x)};
_.RL2=function(O,x,e){var l=_.V7(O.decoder_)>>>0;for(l=O.decoder_.cursor_+l;O.decoder_.cursor_<l;)e.push(x(O.decoder_))};
ID4=[];var UkN=function(O,x){this.JSC$8856_lo=O>>>0;this.JSC$8856_hi=x>>>0},Wor=function(O){O=BigInt.asUintN(64,O);
return new UkN(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)))},S4m=function(O){if(!O)return aD$||(aD$=new UkN(0,0));
if(!/^\d+$/.test(O))return null;Yd(O);return new UkN(Hd,K2)},aD$,sS8=function(O,x){this.JSC$8858_lo=O>>>0;
this.JSC$8858_hi=x>>>0},Jen=function(O){if(!O)return mk4||(mk4=new sS8(0,0));
if(!/^-?\d+$/.test(O))return null;Yd(O);return new sS8(Hd,K2)},mk4;var Ua=function(){this.JSC$8860_buffer_=[]},Fa,oS,sz3;
Ua.prototype.length=function(){return this.JSC$8860_buffer_.length};
Ua.prototype.end=function(){var O=this.JSC$8860_buffer_;this.JSC$8860_buffer_=[];return O};
Fa=function(O,x,e){for(;e>0||x>127;)O.JSC$8860_buffer_.push(x&127|128),x=(x>>>7|e<<25)>>>0,e>>>=7;O.JSC$8860_buffer_.push(x)};
oS=function(O,x){for(;x>127;)O.JSC$8860_buffer_.push(x&127|128),x>>>=7;O.JSC$8860_buffer_.push(x)};
_.zzL=function(O,x){if(x>=0)oS(O,x);else{for(var e=0;e<9;e++)O.JSC$8860_buffer_.push(x&127|128),x>>=7;O.JSC$8860_buffer_.push(1)}};
sz3=function(O,x){Yd(x);F3r(function(e,l){Fa(O,e>>>0,l>>>0)})};
Ua.prototype.writeUint8=function(O){this.JSC$8860_buffer_.push(O>>>0&255)};
_.GH=function(O,x){O.JSC$8860_buffer_.push(x>>>0&255);O.JSC$8860_buffer_.push(x>>>8&255);O.JSC$8860_buffer_.push(x>>>16&255);O.JSC$8860_buffer_.push(x>>>24&255)};
Ua.prototype.writeInt8=function(O){this.JSC$8860_buffer_.push(O>>>0&255)};var W3d,LU,HUL,ny8,$hr;W3d=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Ua};
LU=function(O,x){x.length!==0&&(O.blocks_.push(x),O.totalLength_+=x.length)};
_.hLd=function(O,x){_.Ds(O,x,2);x=O.encoder_.end();LU(O,x);x.push(O.totalLength_);return x};
_.zLd=function(O,x){var e=x.pop();for(e=O.totalLength_+O.encoder_.length()-e;e>127;)x.push(e&127|128),e>>>=7,O.totalLength_++;x.push(e);O.totalLength_++};
_.Ds=function(O,x,e){oS(O.encoder_,x*8+e)};
HUL=function(O,x,e){if(e!=null)switch(juL(e),_.Ds(O,x,1),typeof e){case "number":O=O.encoder_;kp$(e);_.GH(O,Hd);_.GH(O,K2);break;case "bigint":e=Wor(e);O=O.encoder_;x=e.JSC$8856_hi;_.GH(O,e.JSC$8856_lo);_.GH(O,x);break;default:e=S4m(e),O=O.encoder_,x=e.JSC$8856_hi,_.GH(O,e.JSC$8856_lo),_.GH(O,x)}};
ny8=function(O,x,e){_.Ds(O,x,2);oS(O.encoder_,e.length);LU(O,O.encoder_.end());LU(O,e)};
$hr=function(O,x,e,l){e!=null&&(x=_.hLd(O,x),l(e,O),_.zLd(O,x))};var NLV,rJp,H2N,K3$,dk2,u4p,YT$,vdp,fDT;NLV=CU();rJp=CU();H2N=CU();K3$=CU();dk2=CU();_.ndL=CU();_.aK=CU();u4p=CU();YT$=CU();_.BNp=CU();vdp=CU();fDT=CU();_.JJD=CU();_.wdD=CU();_.TH=function(O,x,e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,x,e)};
_.TH.prototype.toJSON=function(){return dL(this)};
_.TH.prototype.serialize=function(O){return JSON.stringify(dL(this,O))};
var jSi=function(O,x){if(x==null||x=="")return new O;x=JSON.parse(x);if(!Array.isArray(x))throw Error("V");return new O($$W(x))};
_.TH.prototype.getExtension=function(O){CL$(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O.fieldIndex);eO7(this,O.fieldIndex);return O.ctor?O.isRepeated?O.getExtensionFn(this,O.ctor,O.fieldIndex,_.Dd(),O.JSC$8871_hasMessageId):O.getExtensionFn(this,O.ctor,O.fieldIndex,O.JSC$8871_hasMessageId):O.isRepeated?O.getExtensionFn(this,O.fieldIndex,_.Dd(),O.JSC$8871_hasMessageId):O.getExtensionFn(this,O.fieldIndex,O.defaultValue,O.JSC$8871_hasMessageId)};
_.TH.prototype.clone=function(){var O=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=O[_.C2]|0;return UhN(this,O,x)?ROn(this,O,!0):new this.constructor(YL(O,x,!1))};
_.TH.prototype[cT]=pQ;_.TH.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Qc=function(O,x,e){this.$$binaryReaderFn=O;this.$$binaryWriterFn=x;O=U4(NLV);this.$$isMsg=!!O&&e===O||!1},CIi=gLi(function(O,x,e,l,C){if(O.nextWireType_!==2)return!1;
RK(O,M$d(x,l,e),C);return!0},OUr),QSr=gLi(function(O,x,e,l,C){if(O.nextWireType_!==2)return!1;
RK(O,M$d(x,l,e),C);return!0},OUr),tEr=Symbol(),LoL=Symbol(),ME8=Symbol(),c77=Symbol(),oyr=Symbol(),xT7,ez8;var J7$,STN,mt,jzd,NNT,gd2,$kp,WM,OQz,xhp,hO,eON,lQ4,CLk,QuR,bQk,TLT,LYd,kXd,f0,Ae2,Mpz;J7$=function(O,x){var e=new W3d;Is7(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e,bI(tEr,EyW,qhL,x));LU(e,e.encoder_.end());O=new Uint8Array(e.totalLength_);x=e.blocks_;for(var l=x.length,C=0,Q=0;Q<l;Q++){var L=x[Q];O.set(L,C);C+=L.length}e.blocks_=[O];return O};
STN=gLi(function(O,x,e,l,C){if(O.nextWireType_!==2)return!1;O=RK(O,uL([void 0,void 0],l,!0),C);O=Bd(O);l=x[_.C2]|0;C=Wd(l);if(l&2)throw Error();var Q=$L(x,e,C);Q instanceof Ru?(Q.arrayState&2)!=0?(Q=Vpm(Q),Q.push(O),wL(x,l,e,Q,C)):(x=Q,e=x.keyToApi(O[0],!1,!0),O=O[1],O=x.valueCtor?O===void 0?null:O:x.valueToApi(O,!1,!0,void 0,!1,x.arrayState),HT.prototype.set.call(x,e,O)):Array.isArray(Q)?((Q[_.C2]|0)&2&&(Q=hOV(Q),wL(x,l,e,Q,C)),Q.push(O)):wL(x,l,e,[O],C);return!0},function(O,x,e,l,C){if(x instanceof
Ru)x.forEach(function(k,M){$hr(O,e,uL([M,
k],l,!1),C)});
else if(Array.isArray(x))for(var Q=0;Q<x.length;Q++){var L=x[Q];Array.isArray(L)&&$hr(O,e,uL(L,l,!1),C)}});
mt=_.ky(function(O,x,e){if(O.nextWireType_!==1)return!1;_.MT(x,e,EdJ(O.decoder_));return!0},asi,fDT);
jzd=_.ky(function(O,x,e,l){if(O.nextWireType_!==1)return!1;_.L0(x,e,l,EdJ(O.decoder_));return!0},asi,fDT);
NNT=_.ky(function(O,x,e){if(O.nextWireType_!==5)return!1;_.MT(x,e,Z2T(O.decoder_));return!0},mTm,vdp);
gd2=_.UT8(function(O,x,e){if(O.nextWireType_!==5&&O.nextWireType_!==2)return!1;x=_.xy(x,x[_.C2]|0,e);O.nextWireType_==2?_.RL2(O,Z2T,x):x.push(Z2T(O.decoder_));return!0},function(O,x,e){x=_.Rz8(_.j$,x,!0);
if(x!=null&&x.length)for(_.Ds(O,e,2),oS(O.encoder_,x.length*4),e=0;e<x.length;e++){var l=O.encoder_;Dki(x[e]);_.GH(l,Hd)}},vdp);
$kp=_.ky(function(O,x,e,l){if(O.nextWireType_!==5)return!1;_.L0(x,e,l,Z2T(O.decoder_));return!0},mTm,vdp);
_.i24=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.IK(O.decoder_,_.yJL));return!0},_.Xa,_.aK);
_.sa=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.IK(O.decoder_,uF));return!0},_.Xa,_.aK);
WM=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;O=_.IK(O.decoder_,uF);_.MT(x,e,O===0?void 0:O);return!0},_.Xa,_.aK);
OQz=_.ky(function(O,x,e,l){if(O.nextWireType_!==0)return!1;_.L0(x,e,l,_.IK(O.decoder_,uF));return!0},_.Xa,_.aK);
xhp=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.IK(O.decoder_,_.n2));return!0},hzN,u4p);
hO=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.IK(O.decoder_,Gpr));return!0},hzN,u4p);
_.zB=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.V7(O.decoder_));return!0},r7r,K3$);
eON=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;O=_.V7(O.decoder_);_.MT(x,e,O===0?void 0:O);return!0},r7r,K3$);
lQ4=_.ky(function(O,x,e,l){if(O.nextWireType_!==0)return!1;_.L0(x,e,l,_.V7(O.decoder_));return!0},r7r,K3$);
CLk=_.ky(function(O,x,e){if(O.nextWireType_!==1)return!1;_.MT(x,e,yJ3(O.decoder_));return!0},_.Kow,_.BNp);
QuR=_.UT8(function(O,x,e){if(O.nextWireType_!==1&&O.nextWireType_!==2)return!1;x=_.xy(x,x[_.C2]|0,e);O.nextWireType_==2?_.RL2(O,yJ3,x):x.push(yJ3(O.decoder_));return!0},function(O,x,e){x=_.Rz8(nds,x,!1);
if(x!=null)for(var l=0;l<x.length;l++)HUL(O,e,x[l])},_.BNp);
_.r4=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,t$p(O.decoder_));return!0},dTr,rJp);
_.HM=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;O=t$p(O.decoder_);_.MT(x,e,O===!1?void 0:O);return!0},dTr,rJp);
bQk=_.ky(function(O,x,e,l){if(O.nextWireType_!==0)return!1;_.L0(x,e,l,t$p(O.decoder_));return!0},dTr,rJp);
_.d4=_.ky(function(O,x,e){if(O.nextWireType_!==2)return!1;_.MT(x,e,V$R(O));return!0},uaw,H2N);
_.n0=_.ky(function(O,x,e){if(O.nextWireType_!==2)return!1;O=V$R(O);_.MT(x,e,O===""?void 0:O);return!0},uaw,H2N);
_.um=_.ky(function(O,x,e,l){if(O.nextWireType_!==2)return!1;_.L0(x,e,l,V$R(O));return!0},uaw,H2N);
TLT=_.UT8(function(O,x,e){if(O.nextWireType_!==2)return!1;O=V$R(O);_.xy(x,x[_.C2]|0,e).push(O);return!0},function(O,x,e){x=_.Rz8(_.PT,x,!0);
if(x!=null)for(var l=0;l<x.length;l++){var C=O,Q=e,L=x[l];L!=null&&ny8(C,Q,D$7(L))}},H2N);
LYd=void 0;LYd=LYd===void 0?NLV:LYd;_.Yi=new Qc(function(O,x,e,l,C){if(O.nextWireType_!==2)return!1;l=uL(void 0,l,!0);_.xy(x,x[_.C2]|0,e).push(l);RK(O,l,C);return!0},function(O,x,e,l,C){if(Array.isArray(x))for(var Q=0;Q<x.length;Q++)Yh$(O,x[Q],e,l,C)},LYd);
_.BM=gLi(function(O,x,e,l,C,Q){if(O.nextWireType_!==2)return!1;var L=x[_.C2]|0;KYr(x,L,Q,e,Wd(L));x=M$d(x,l,e);RK(O,x,C);return!0},Yh$);
_.vM=_.ky(function(O,x,e){if(O.nextWireType_!==2)return!1;_.MT(x,e,_.pdT(O));return!0},_.Bk8,_.JJD);
kXd=_.ky(function(O,x,e,l){if(O.nextWireType_!==2)return!1;_.L0(x,e,l,_.pdT(O));return!0},_.Bk8,_.JJD);
f0=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.V7(O.decoder_)>>>0);return!0},vys,dk2);
Ae2=_.ky(function(O,x,e,l){if(O.nextWireType_!==0)return!1;_.L0(x,e,l,_.V7(O.decoder_)>>>0);return!0},vys,dk2);
_.JO=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.V7(O.decoder_));return!0},_.fs8,_.wdD);
_.w4=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;O=_.V7(O.decoder_);_.MT(x,e,O===0?void 0:O);return!0},_.fs8,_.wdD);
Mpz=_.ky(function(O,x,e){if(O.nextWireType_!==0)return!1;_.MT(x,e,_.IK(O.decoder_,XdW));return!0},function(O,x,e){x=dkV(x);
if(x!=null&&(wTr(x),x!=null))switch(_.Ds(O,e,0),typeof x){case "number":O=O.encoder_;e=x;x=e<0;e=Math.abs(e)*2;kp$(e);e=Hd;var l=K2;x&&(e==0?l==0?l=e=4294967295:(l--,e=4294967295):e--);Hd=e;K2=l;Fa(O,Hd,K2);break;case "bigint":O=O.encoder_;x=x<<BigInt(1)^x>>BigInt(63);Hd=Number(BigInt.asUintN(32,x));K2=Number(BigInt.asUintN(32,x>>BigInt(32)));Fa(O,Hd,K2);break;default:sz3(O.encoder_,x)}},YT$);var FYz=function(){var O=DhF,x=GX$;this.fieldIndex=175237375;this.ctor=x;this.isRepeated=0;this.getExtensionFn=_.y4;this.defaultValue=void 0;this.JSC$8871_hasMessageId=O.messageId!=null?sT:void 0};
FYz.prototype.register=function(){S1(this)};var XTd=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(XTd,_.TH);var oLz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(oLz,_.TH);var $Tr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c($Tr,_.TH);var yeJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(yeJ,_.TH);var ZQ2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ZQ2,_.TH);var EL4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(EL4,_.TH);var tpp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(tpp,_.TH);tpp.prototype.getData=function(){return _.TB(this,2)};var q4N=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(q4N,_.TH);var PLN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(PLN,_.TH);PLN.prototype.getStyle=function(){return _.y4(this,XTd,1)};var cw=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(cw,_.TH);cw.prototype.getPayloadCase=function(){return _.ki(this,pU)};
cw.prototype.getStyle=function(){return _.tO(this,PLN,6,pU)};
var cep=function(){var O=new cw,x=new ZQ2;return _.Vc(O,7,pU,x)},IQD=function(){var O=new cw,x=new EL4;
return _.Vc(O,8,pU,x)},pU=[1,
2,3,4,5,6,7,8];var Vpz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Vpz,_.TH);var pT4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(pT4,_.TH);var ROD=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ROD,_.TH);var UhR=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(UhR,_.TH);var aQ3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(aQ3,_.TH);var mhT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(mhT,_.TH);var suz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(suz,_.TH);var WY4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(WY4,_.TH);WY4.prototype.getData=function(){return _.TB(this,2)};var hO2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(hO2,_.TH);var gyn=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(gyn,_.TH);gyn.prototype.getPayloadCase=function(){return _.ki(this,SJ)};
var SJ=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var jJ=function(O,x){O=Error.call(this,O);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.code=x===void 0?2:x};
_.c(jJ,Error);var zOT=Promise;var re3=function(O){this.channelPromise=O};
re3.prototype.send=function(O,x,e){this.channelPromise.then(function(l){l.send(O,x,e)})};var HQT=function(O,x){this.data=O;this.channel=x};
HQT.prototype.reply=function(O,x,e){this.channel.send(O,x,e)};var KYF=function(O){this.JSC$8937_port_=O};
KYF.prototype.send=function(O,x,e){e=e===void 0?[]:e;var l=new MessageChannel;dhd(l.port1,x);this.JSC$8937_port_.postMessage(O,[l.port2].concat(e))};
var nLJ=function(O,x){dhd(O,x);return new KYF(O)},dhd=function(O,x){x&&(O.onmessage=function(e){x(new HQT(e.data,nLJ(e.ports[0])))})};var uwL=function(O){this.verifier_=O};
uwL.prototype.verify=function(O){return this.verifier_(O)};
var Y4z=function(O){var x=Object.create(null);(typeof O==="string"?[O]:O).forEach(function(e){if(e==="null")throw Error("X");x[e]=!0});
return function(e){return x[e]===!0}};_.BLd=function(){if(!_.CV.addEventListener||!Object.defineProperty)return!1;var O=!1,x=Object.defineProperty({},"passive",{get:function(){O=!0}});
try{var e=function(){};
_.CV.addEventListener("test",e,x);_.CV.removeEventListener("test",e,x)}catch(l){}return O}();var vL3;_.Ni=function(O){var x=O.destination;var e=O.iframe;var l=O.origin;var C=O.channelName===void 0?"ZNWN1d":O.channelName;var Q=O.onMessage===void 0?void 0:O.onMessage;O=O.onEstablished===void 0?void 0:O.onEstablished;return vL3({destination:x,getSource:function(){return e.contentWindow},
originVerifier:l instanceof uwL?l:typeof l==="function"?new uwL(l):new uwL(Y4z(l)),channelName:C,onMessage:Q,onEstablished:O})};
vL3=function(O){var x=O.destination;var e=O.getSource;var l=O.originVerifier;var C=O.token===void 0?void 0:O.token;var Q=O.channelName;var L=O.onMessage===void 0?void 0:O.onMessage;var k=O.onEstablished===void 0?void 0:O.onEstablished;return new re3(new zOT(function(M,G){var X=function(y){y.source&&y.source===e()&&l.verify(y.origin)&&(y.data.n||y.data)===Q&&(x.removeEventListener("message",X,!1),C&&y.data.t!==C?G(Error("Y`"+Q+"`"+C+"`"+y.data.t)):(M(nLJ(y.ports[0],L)),k&&k(y)))};
x.addEventListener("message",X,!1)}))};var fQ4=function(O){try{O()}catch(x){QN(x)}};var wTF=function(O){var x=this;var e=O.getMessageType;var l=O.onUnregisteredMessage===void 0?function(){}:O.onUnregisteredMessage;
var C=O.onBeforeRegisteredMessage===void 0?function(){}:O.onBeforeRegisteredMessage;
O=O.onAfterRegisteredMessage===void 0?function(){}:O.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=e;this.onUnregisteredMessage_=l;this.onBeforeRegisteredMessage_=C;this.onAfterRegisteredMessage_=O;this.onMessage=function(Q){return JeD(x,Q)}};
wTF.prototype.register=function(O,x){this.registry_.set(O,x);return this};
var JeD=function(O,x){var e=O.getMessageType_(x.data),l=O.registry_.get(e);l?(fQ4(function(){return O.onBeforeRegisteredMessage_(x,e)}),fQ4(function(){return l(x)}),fQ4(function(){return O.onAfterRegisteredMessage_(x,e)})):fQ4(function(){return O.onUnregisteredMessage_(x,e)})};var S4z=function(O){this.JSC$8954_channel_=O},NL2,gLd;
S4z.prototype.send=function(O,x,e){this.JSC$8954_channel_.send(dL(O),x,e)};
_.ju3=function(O,x){return function(e){var l=new O(e.data);return x(new HQT(l,e.channel))}};
NL2=function(O){return function(x){return O(new HQT(x.data,new S4z(x.channel)))}};
gLd=function(O,x){return NL2(_.ju3(O,x))};var $h4=function(O,x,e,l){this.registry=O;this.delegate=x;this.receiveMessageConstructor=e;this.createInitMessage=l;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},NkL=function(O){var x=new wTF({getMessageType:O.getPayloadCase});
return new $h4(x,new S4z(_.Ni({iframe:O.child,destination:window,origin:O.origin,channelName:O.channelName,onMessage:gLd(O.receiveMessageConstructor,x.onMessage)})),O.receiveMessageConstructor,O.createInitMessage)},iQd=function(O,x){O.createInitMessage=x};
$h4.prototype.send=function(O){if(!this.initialised)throw new jJ("Attempted to send a message before initialisation.");this.delegate.send(O)};
var OU4=function(O,x){return _.A(function(e){if(!O.initialised)throw new jJ("Attempted to send a message before initialisation.");return e.return(new Promise(function(l){O.delegate.send(x,gLd(O.receiveMessageConstructor,l))}))})};
$h4.prototype.init=function(){var O=this;return _.A(function(x){if(O.initialised)throw new jJ("Attempted to initialise twice. The SDK can only be initialised once.");if(O.createInitMessage!==void 0){var e=O.delegate,l=e.send,C=O.createInitMessage;var Q=new oLz;var L=[].concat(_.Kx(O.features));Q=_.iL(Q,1,L,_.O4);l.call(e,C.call(O,Q))}O.initialised=!0;_.Ra(x)})};
var g4=function(O,x){if(O.initialised)throw new jJ('Attempted to set up API "'+x+'" after initialisation. All APIs must be set up before initialising the SDK.');O.features.add(x);return O.registry};
_.Dy.Object.defineProperties($h4.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var xTN=function(O){this.channel=O;this.registered=!1};
xTN.prototype.update=function(O){if(this.channel.isInitialised){if(!this.registered)throw new jJ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var x=new cw;var e=new yeJ;e=_.yW(e,1,O);x=_.Vc(x,2,pU,e);this.channel.send(x)}else this.register();this.JSC$8968_audioEnabled=O};
xTN.prototype.register=function(){g4(this.channel,1);this.registered=!0};
xTN.prototype.isAudioEnabled=function(){return this.JSC$8968_audioEnabled};var ezT=function(O){this.channel=O};
_.b=ezT.prototype;_.b.onFirstFrameReady=function(O){g4(this.channel,2).register(11,function(x){x=_.tO(x.data,Vpz,11,SJ);if(!x)throw new jJ("Unexpectedly nonexistent GameFirstFrameReadyEvent");O(_.oK(x,1))})};
_.b.onReady=function(O){g4(this.channel,2).register(4,function(x){x=_.tO(x.data,ROD,4,SJ);if(!x)throw new jJ("Unexpectedly nonexistent GameReadyEvent");O(_.oK(x,1))})};
_.b.onLevelComplete=function(O){g4(this.channel,2).register(5,function(x){x=_.tO(x.data,UhR,5,SJ);if(!x)throw new jJ("Unexpectedly nonexistent LevelCompleteEvent");O(_.oK(x,1),_.G8(x,2))})};
_.b.onGameOver=function(O){g4(this.channel,2).register(6,function(x){x=_.tO(x.data,pT4,6,SJ);if(!x)throw new jJ("Unexpectedly nonexistent GameOverEvent");O(_.oK(x,1))})};
_.b.pause=function(){var O=this;if(!this.channel.isInitialised)return g4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new jJ("Using unregistered Game Feature: pause.");var x=cep();return new Promise(function(e){return _.A(function(l){if(l.nextAddress==1)return l.yield(OU4(O.channel,x),2);e();_.Ra(l)})})};
_.b.resume=function(){var O=this;if(!this.channel.isInitialised)return g4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new jJ("Using unregistered Game Feature: resume.");var x=IQD();return new Promise(function(e){return _.A(function(l){if(l.nextAddress==1)return l.yield(OU4(O.channel,x),2);e();_.Ra(l)})})};var ls2=function(O){this.channel=O};
ls2.prototype.onReady=function(O){g4(this.channel,5).register(8,function(x){if(!_.tO(x.data,aQ3,8,SJ))throw new jJ("Unexpectedly nonexistent PageReadyEvent");O()})};var CId=function(O){this.channel=O};
CId.prototype.onChange=function(O){g4(this.channel,3).register(7,function(x){x=_.tO(x.data,mhT,7,SJ);if(!x)throw new jJ("Unexpectedly nonexistent ScoreEvent");O(_.oK(x,1),_.G8(x,2))})};var QSF={load:function(){throw new jJ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new jJ("Storage used, but storage.onSave() listener not set!");}},bU$=function(O){this.channel=O;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},TkT=function(O){g4(O.channel,4).register(2,QSF.load).register(3,QSF.save);
O.initialSetupDone=!0};
bU$.prototype.onLoad=function(O){this.initialSetupDone||TkT(this);this.loadRegistered||(this.loadRegistered=!0,g4(this.channel,4).register(2,function(x){var e,l,C;return _.A(function(Q){if(Q.nextAddress==1){e=_.tO(x.data,suz,2,SJ);if(!e)throw new jJ("Unexpectedly nonexistent StorageLoad");l=_.oK(e,1);return Q.yield(O(l),2)}C=Q.yieldResult;var L=x.reply,k=new cw;var M=new tpp;M=_.mO(M,1,l);M=_.EY(M,2,_.az(C,!1));k=_.Vc(k,3,pU,M);L.call(x,k);_.Ra(Q)})}))};
bU$.prototype.onSave=function(O){this.initialSetupDone||TkT(this);this.saveRegistered||(this.saveRegistered=!0,g4(this.channel,4).register(3,function(x){var e,l,C;return _.A(function(Q){if(Q.nextAddress==1){e=_.tO(x.data,WY4,3,SJ);if(!e)throw new jJ("Unexpectedly nonexistent StorageSave");l=_.oK(e,1);C=N73(e.getData());return Q.yield(O(l,C),2)}var L=x.reply,k=new cw;var M=new q4N;M=_.mO(M,1,l);k=_.Vc(k,4,pU,M);L.call(x,k);_.Ra(Q)})}))};var Lo3=function(O){this.channel=O};
Lo3.prototype.update=function(O){if(!this.channel.features.has(6))throw new jJ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var x=new cw,e=new PLN;O=_.IS(e,1,O);x=_.Vc(x,6,pU,O);this.channel.send(x)};
Lo3.prototype.register=function(){g4(this.channel,6)};var kHN=function(O){this.channel=O;this.userActivityLoggingIntervalMs=0};
kHN.prototype.onUserActivity=function(O,x){this.userActivityLoggingIntervalMs=x;g4(this.channel,7).register(9,function(e){if(!_.tO(e.data,hO2,9,SJ))throw new jJ("Unexpectedly nonexistent ClickEvent");O()})};var A7F=function(O){var x=this;this.channel=O;this.init=this.channel.init.bind(this.channel);this.page=new ls2(this.channel);this.game=new ezT(this.channel);this.audio=new xTN(this.channel);this.score=new CId(this.channel);this.storage=new bU$(this.channel);this.style=new Lo3(this.channel);this.userActivity=new kHN(this.channel);iQd(this.channel,function(e){var l=new $Tr;e=_.IS(l,1,e);e=_.qi(e,3,x.userActivity.userActivityLoggingIntervalMs);l=x.audio.isAudioEnabled();l!==void 0&&_.yW(e,2,l);l=new cw;
return _.Vc(l,5,pU,e)})};var MET=function(){this.timedFunctionContext=0};
MET.prototype.timeExecution=function(O,x){var e=this;return function(){var l=_.vw.apply(0,arguments);e.timedFunctionContext=O;return x.apply(null,_.Kx(l))}};var DTd=function(){var O={};this.priorityTasks=(O[3]=[],O[2]=[],O[1]=[],O);this.isFlushing=!1},PX=function(O,x,e){var l=GH2(O,e);
O.priorityTasks[e].push(x);l&&O.priorityTasks[e].length===1&&O.flush()},GH2=function(O,x){return Object.keys(O.priorityTasks).map(function(e){return Number(e)}).filter(function(e){return!isNaN(e)&&e>x}).every(function(e){return O.priorityTasks[e].length===0})};
DTd.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(O){return O.length>0});)FoF(this,3),FoF(this,2),FoF(this,1)}catch(O){throw Object.values(this.priorityTasks).forEach(function(x){return void x.splice(0,x.length)}),O;
}finally{this.isFlushing=!1}}};
var FoF=function(O,x){for(;GH2(O,x)&&O.priorityTasks[x].length>0;)O.priorityTasks[x][0](),O.priorityTasks[x].shift()};
_.Dy.Object.defineProperties(DTd.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(O){return O.length>0})}}});var Qar={};var Xw$=globalThis.trustedTypes,Oxr=Xw$,eiV;var Uh=function(O){this.privateDoNotAccessOrElseWrappedResourceUrl=O};
Uh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var oy4,y7J,ZUN,Eyd,tEF,qh3,PIz,c7N;oy4=_.zo([""]);y7J=ht(["\x00"],["\\0"]);ZUN=ht(["\n"],["\\n"]);Eyd=ht(["\x00"],["\\u0000"]);tEF=_.zo([""]);qh3=ht(["\x00"],["\\0"]);PIz=ht(["\n"],["\\n"]);c7N=ht(["\x00"],["\\u0000"]);_.IsN=Cxs(function(O){return O(oy4)})||Cxs(function(O){return O(y7J)})||Cxs(function(O){return O(ZUN)})||Cxs(function(O){return O(Eyd)});
_.VEd=_.Ww(tEF)&&_.Ww(qh3)&&_.Ww(PIz)&&_.Ww(c7N);var uI;_.h7=function(O,x){this.privateDoNotAccessOrElseWrappedUrl=x};
_.h7.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.pwz=zH("about:blank");uI=zH("about:invalid#zClosurez");var bxL=function(O){this.isValid=O},RzT=new bxL(function(O){return/^[^:]*([/?#]|$)/.test(O)}),UTT=KU("data"),asd=KU("http"),mTz=KU("https"),sST=KU("ftp"),Wo4=KU("mailto"),hzR=KU("intent"),zzJ=KU("vnd.youtube"),TXs=[UTT,
asd,mTz,Wo4,sST,RzT],ktw=RS(function(){return typeof URL==="function"}),r74=["data:",
"http:","https:","mailto:","ftp:"],M5$=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var wk=function(O){this.privateDoNotAccessOrElseWrappedHtml=O};
wk.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var MCr=RS(function(){return new wk(Xw$?Xw$.emptyHTML:"")});var HUJ={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"},Gt$=function(O,x){var e=Error.call(this,O+" cannot be used with intent "+HUJ[x]);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.type=O;this.intent=x;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.c(Gt$,Error);_.xS=function(O){this.privateDoNotAccessOrElseWrappedScript=O};
_.xS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var oSr=function(O){this.privateDoNotAccessOrElseWrappedAttributePrefix=O};
oSr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var ySr="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var kS=function(O){this.privateDoNotAccessOrElseWrappedStyleSheet=O};
kS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var vzr=function(O){var x=_.i8("window.location.href");O==null&&(O='Unknown Error of type "null/undefined"');if(typeof O==="string")return{message:O,name:"Unknown error",lineNumber:"Not available",fileName:x,stack:"Not available"};var e=!1;try{var l=O.lineNumber||O.line||"Not available"}catch(L){l="Not available",e=!0}try{var C=O.fileName||O.filename||O.sourceURL||_.CV.$googDebugFname||x}catch(L){C="Not available",e=!0}x=Ko$(O);if(!(!e&&O.lineNumber&&O.fileName&&O.stack&&O.message&&O.name)){e=O.message;
if(e==null){if(O.constructor&&O.constructor instanceof Function){if(O.constructor.name)e=O.constructor.name;else if(e=O.constructor,$i[e])e=$i[e];else{e=String(e);if(!$i[e]){var Q=/function\s+([^\(]+)/m.exec(e);$i[e]=Q?Q[1]:"[Anonymous]"}e=$i[e]}e='Unknown Error of type "'+e+'"'}else e="Unknown Error of unknown type";typeof O.toString==="function"&&Object.prototype.toString!==O.toString&&(e+=": "+O.toString())}return{message:e,name:O.name||"UnknownError",lineNumber:l,fileName:C,stack:x||"Not available"}}return{message:O.message,
name:O.name,lineNumber:O.lineNumber,fileName:O.fileName,stack:x}},Ko$=function(O,x){x||(x={});
x[dTF(O)]=!0;var e=O.stack||"",l=O.cause;l&&!x[dTF(l)]&&(e+="\nCaused by: ",l.stack&&l.stack.indexOf(l.toString())==0||(e+=typeof l==="string"?l:l.message+"\n"),e+=Ko$(l,x));O=O.errors;if(Array.isArray(O)){l=1;var C;for(C=0;C<O.length&&!(l>4);C++)x[dTF(O[C])]||(e+="\nInner error "+l++ +": ",O[C].stack&&O[C].stack.indexOf(O[C].toString())==0||(e+=typeof O[C]==="string"?O[C]:O[C].message+"\n"),e+=Ko$(O[C],x));C<O.length&&(e+="\n... "+(O.length-C)+" more inner errors")}return e},dTF=function(O){var x=
"";
typeof O.toString==="function"&&(x=""+O);return x+O.stack},$i={};var nyT,Mb,ik,Yhk,BkT,ua$,Of,mH,fsT;nyT=function(O,x){for(var e=O.split("%s"),l="",C=Array.prototype.slice.call(arguments,1);C.length&&e.length>1;)l+=e.shift()+C.shift();return l+e.join("%s")};
_.xc=function(O){return encodeURIComponent(String(O))};
Mb=function(O){return decodeURIComponent(O.replace(/\+/g," "))};
ik=function(O){Mw4.test(O)&&(O.indexOf("&")!=-1&&(O=O.replace(QmL,"&amp;")),O.indexOf("<")!=-1&&(O=O.replace(bVk,"&lt;")),O.indexOf(">")!=-1&&(O=O.replace(T7p,"&gt;")),O.indexOf('"')!=-1&&(O=O.replace(LLd,"&quot;")),O.indexOf("'")!=-1&&(O=O.replace(krd,"&#39;")),O.indexOf("\x00")!=-1&&(O=O.replace(ALz,"&#0;")));return O};
Yhk=function(O){var x={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var e=_.CV.document.createElement("div");return O.replace(ua$,function(l,C){var Q=x[l];if(Q)return Q;C.charAt(0)=="#"&&(C=Number("0"+C.slice(1)),isNaN(C)||(Q=String.fromCharCode(C)));Q||(_.bx(e,SE(l+" ")),Q=e.firstChild.nodeValue.slice(0,-1));return x[l]=Q})};
BkT=function(O){return O.replace(/&([^;]+);/g,function(x,e){switch(e){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return e.charAt(0)!="#"||(e=Number("0"+e.slice(1)),isNaN(e))?x:String.fromCharCode(e)}})};
ua$=/&([^;\s<&]+);?/g;_.RUL=function(O){return String(O).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.vyL=String.prototype.repeat?function(O,x){return O.repeat(x)}:function(O,x){return Array(x+1).join(O)};
_.im=function(O,x){if(!Number.isFinite(O))return String(O);O=String(O);var e=O.indexOf(".");e===-1&&(e=O.length);var l=O[0]==="-"?"-":"";l&&(O=O.substring(1));return l+(0,_.vyL)("0",Math.max(0,x-e))+O};
Of=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.vN()).toString(36)};
mH=function(O){for(var x=0,e=0;e<O.length;++e)x=31*x+O.charCodeAt(e)>>>0;return x};
_.bh=function(O){return String(O).replace(/\-([a-z])/g,function(x,e){return e.toUpperCase()})};
_.Qo=function(O){return String(O).replace(/([A-Z])/g,"-$1").toLowerCase()};
fsT=function(O){return O.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(x,e,l){return e+l.toUpperCase()})};var J7k=function(){this.names=new Map};
J7k.prototype.getName=function(O){var x=this.names.get(O);if(x)return x;var e;x=(e=O.description)!=null?e:Of();this.names.set(O,x);return x};var ww3=function(O){var x=Error.call(this,O?O.length+" errors occurred during unsubscription:\n"+O.map(function(e,l){return l+1+") "+e.toString()}).join("\n  "):"");
this.message=x.message;"stack"in x&&(this.stack=x.stack);this.errors=O;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.c(ww3,Error);var Mx=function(O){this.initialTeardown=O;this.closed=!1;this._teardowns=this._parentage=null};
_.b=Mx.prototype;
_.b.unsubscribe=function(){if(!this.closed){this.closed=!0;var O=this._parentage;if(Array.isArray(O))for(var x=_.T(O),e=x.next();!e.done;e=x.next())e.value.remove(this);else O==null||O.remove(this);x=this.initialTeardown;if(AS(x))try{x()}catch(Q){var l=Q instanceof ww3?Q.errors:[Q]}var C=this._teardowns;if(C)for(this._teardowns=null,x=_.T(C),e=x.next();!e.done;e=x.next()){e=e.value;try{AS(e)?e():e.unsubscribe()}catch(Q){e=void 0,l=(e=l)!=null?e:[],Q instanceof ww3?l=[].concat(_.Kx(l),_.Kx(Q.errors)):
l.push(Q)}}if(l)throw new ww3(l);}};
_.b.add=function(O){if(O&&O!==this)if(this.closed)AS(O)?O():O.unsubscribe();else{if(O instanceof Mx){if(O.closed||O._hasParent(this))return;O._addParent(this)}var x;(this._teardowns=(x=this._teardowns)!=null?x:[]).push(O)}};
_.b._hasParent=function(O){var x=this._parentage;return x===O||Array.isArray(x)&&x.includes(O)};
_.b._addParent=function(O){var x=this._parentage;this._parentage=Array.isArray(x)?(x.push(O),x):x?[x,O]:O};
_.b._removeParent=function(O){var x=this._parentage;x===O?this._parentage=null:Array.isArray(x)&&PxL(x,O)};
_.b.remove=function(O){var x=this._teardowns;x&&PxL(x,O);O instanceof Mx&&O._removeParent(this)};
var Sh$=new Mx;Sh$.closed=!0;Mx.JSC$9064_EMPTY=Sh$;var It$=function(){setTimeout.apply(null,_.Kx(_.vw.apply(0,arguments)))};var O5=function(O){Mx.call(this);this.JSC$9069_isStopped=!1;this.destination=O instanceof O5?O:new x4(!O||AS(O)?{next:O!=null?O:void 0}:O);cSW(O)&&O.add(this)};
_.c(O5,Mx);O5.JSC$9064_EMPTY=Mx.JSC$9064_EMPTY;O5.create=function(O,x,e){return new eW(O,x,e)};
_.b=O5.prototype;_.b.next=function(O){this.JSC$9069_isStopped||this._next(O)};
_.b.error=function(O){this.JSC$9069_isStopped||(this.JSC$9069_isStopped=!0,this._error(O))};
_.b.complete=function(){this.JSC$9069_isStopped||(this.JSC$9069_isStopped=!0,this._complete())};
_.b.unsubscribe=function(){this.closed||(this.JSC$9069_isStopped=!0,Mx.prototype.unsubscribe.call(this))};
_.b._next=function(O){this.destination.next(O)};
_.b._error=function(O){this.destination.error(O);this.unsubscribe()};
_.b._complete=function(){this.destination.complete();this.unsubscribe()};
var x4=function(O){this.partialObserver=O};
x4.prototype.next=function(O){var x=this.partialObserver;if(x.next)try{x.next(O)}catch(e){Gt(e)}};
x4.prototype.error=function(O){var x=this.partialObserver;if(x.error)try{x.error(O)}catch(e){Gt(e)}else Gt(O)};
x4.prototype.complete=function(){var O=this.partialObserver;if(O.complete)try{O.complete()}catch(x){Gt(x)}};
var eW=function(O,x,e){O5.call(this);var l;AS(O)||!O?l={next:O!=null?O:void 0,error:x!=null?x:void 0,complete:e!=null?e:void 0}:l=O;this.destination=new x4(l)};
_.c(eW,O5);eW.JSC$9064_EMPTY=O5.JSC$9064_EMPTY;eW.create=O5.create;var yP=typeof Symbol==="function"&&Symbol.observable||"@@observable";var oa=function(O){O&&(this._subscribe=O)};
_.b=oa.prototype;_.b.lift=function(O){var x=new oa;x.source=this;x.operator=O;return x};
_.b.subscribe=function(O,x,e){O=O&&O instanceof O5||O&&AS(O.next)&&AS(O.error)&&AS(O.complete)&&cSW(O)?O:new eW(O,x,e);x=this.operator;e=this.source;O.add(x?x.call(O,e):e?this._subscribe(O):this._trySubscribe(O));return O};
_.b._trySubscribe=function(O){try{return this._subscribe(O)}catch(x){O.error(x)}};
_.b.forEach=function(O,x){var e=this;x=pO$(x);return new x(function(l,C){var Q=e.subscribe(function(L){try{O(L)}catch(k){C(k),Q==null||Q.unsubscribe()}},C,l)})};
_.b._subscribe=function(O){var x;return(x=this.source)==null?void 0:x.subscribe(O)};
oa.prototype[yP]=function(){return this};
oa.prototype.pipe=function(){var O=_.vw.apply(0,arguments);return O.length?V5r(O)(this):this};
oa.create=function(O){return new oa(O)};var jSd=function(){var O=Error.call(this,"object unsubscribed");this.message=O.message;"stack"in O&&(this.stack=O.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.c(jSd,Error);var Ed=function(){this.observers=[];this.hasError=this.JSC$9085_isStopped=this.closed=!1;this.thrownError=null};
_.c(Ed,oa);_.b=Ed.prototype;_.b.lift=function(O){var x=new lf(this,this);x.operator=O;return x};
_.b._throwIfClosed=function(){if(this.closed)throw new jSd;};
_.b.next=function(O){this._throwIfClosed();if(!this.JSC$9085_isStopped){var x=this.observers.slice();x=_.T(x);for(var e=x.next();!e.done;e=x.next())e.value.next(O)}};
_.b.error=function(O){this._throwIfClosed();if(!this.JSC$9085_isStopped){this.hasError=this.JSC$9085_isStopped=!0;this.thrownError=O;for(var x=this.observers;x.length;)x.shift().error(O)}};
_.b.complete=function(){this._throwIfClosed();if(!this.JSC$9085_isStopped){this.JSC$9085_isStopped=!0;for(var O=this.observers;O.length;)O.shift().complete()}};
_.b.unsubscribe=function(){this.JSC$9085_isStopped=this.closed=!0;this.observers=null};
_.b._trySubscribe=function(O){this._throwIfClosed();return oa.prototype._trySubscribe.call(this,O)};
_.b._subscribe=function(O){this._throwIfClosed();this._checkFinalizedStatuses(O);return this._innerSubscribe(O)};
_.b._innerSubscribe=function(O){var x=this,e=this.JSC$9085_isStopped,l=this.observers;return this.hasError||e?Mx.JSC$9064_EMPTY:(l.push(O),new Mx(function(){return PxL(x.observers,O)}))};
_.b._checkFinalizedStatuses=function(O){var x=this.thrownError,e=this.JSC$9085_isStopped;this.hasError?O.error(x):e&&O.complete()};
Ed.create=function(O,x){return new lf(O,x)};
var lf=function(O,x){Ed.call(this);this.destination=O;this.source=x};
_.c(lf,Ed);lf.create=Ed.create;lf.prototype.next=function(O){var x,e;(x=this.destination)==null||(e=x.next)==null||e.call(x,O)};
lf.prototype.error=function(O){var x,e;(x=this.destination)==null||(e=x.error)==null||e.call(x,O)};
lf.prototype.complete=function(){var O,x;(O=this.destination)==null||(x=O.complete)==null||x.call(O)};
lf.prototype._subscribe=function(O){var x,e;return(e=(x=this.source)==null?void 0:x.subscribe(O))!=null?e:Mx.JSC$9064_EMPTY};var NM=function(O){Ed.call(this);this._value=O};
_.c(NM,Ed);NM.create=Ed.create;NM.prototype._subscribe=function(O){var x=Ed.prototype._subscribe.call(this,O);!x.closed&&O.next(this._value);return x};
NM.prototype.getValue=function(){var O=this.thrownError,x=this._value;if(this.hasError)throw O;this._throwIfClosed();return x};
NM.prototype.next=function(O){Ed.prototype.next.call(this,this._value=O)};
_.Dy.Object.defineProperties(NM.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var vO=new oa(function(O){return O.complete()});var mxN=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var rSr=function(O){return O&&typeof O.length==="number"&&typeof O!=="function"};var Nk3={now:function(){return(Nk3.delegate||Date).now()},
delegate:void 0};var Qi=function(O,x,e){O=O===void 0?Infinity:O;x=x===void 0?Infinity:x;e=e===void 0?Nk3:e;Ed.call(this);this.bufferSize=O;this.windowTime=x;this.timestampProvider=e;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=x===Infinity;this.bufferSize=Math.max(1,O);this.windowTime=Math.max(1,x)};
_.c(Qi,Ed);Qi.create=Ed.create;Qi.prototype.next=function(O){var x=this.buffer,e=this.infiniteTimeWindow,l=this.timestampProvider,C=this.windowTime;this.JSC$9085_isStopped||(x.push(O),!e&&x.push(l.now()+C));gyD(this);Ed.prototype.next.call(this,O)};
Qi.prototype._subscribe=function(O){this._throwIfClosed();gyD(this);for(var x=this._innerSubscribe(O),e=this.infiniteTimeWindow,l=this.buffer.slice(),C=0;C<l.length&&!O.closed;C+=e?1:2)O.next(l[C]);this._checkFinalizedStatuses(O);return x};
var gyD=function(O){var x=O.bufferSize,e=O.timestampProvider,l=O.buffer;O=O.infiniteTimeWindow;var C=(O?1:2)*x;x<Infinity&&C<l.length&&l.splice(0,l.length-C);if(!O){x=e.now();e=0;for(O=1;O<l.length&&l[O]<=x;O+=2)e=O;e&&l.splice(0,e+1)}};var iU2=function(O,x){x=x===void 0?$Tp:x;this.schedulerActionCtor=O;this.now=x};
iU2.prototype.schedule=function(O,x,e){x=x===void 0?0:x;return(new this.schedulerActionCtor(this,O)).schedule(e,x)};
var $Tp=Nk3.now;var RQw=function(){var O=Error.call(this,"no elements in sequence");this.message=O.message;"stack"in O&&(this.stack=O.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.c(RQw,Error);var WO=function(O,x,e,l,C){O5.call(this,O);this.onUnsubscribe=C;x&&(this._next=function(Q){try{x(Q)}catch(L){this.destination.error(L)}});
e&&(this._error=function(Q){try{e(Q)}catch(L){this.destination.error(L)}this.unsubscribe()});
l&&(this._complete=function(){try{l()}catch(Q){this.destination.error(Q)}this.unsubscribe()})};
_.c(WO,O5);WO.JSC$9064_EMPTY=O5.JSC$9064_EMPTY;WO.create=O5.create;WO.prototype.unsubscribe=function(){var O;this.closed||(O=this.onUnsubscribe)!=null&&O.call(this);O5.prototype.unsubscribe.call(this)};var lt=function(O,x){this.source=O;this.subjectFactory=x;this._subject=null;this._refCount=0;this._connection=null};
_.c(lt,oa);lt.create=oa.create;lt.prototype._subscribe=function(O){return Oxp(this).subscribe(O)};
var Oxp=function(O){var x=O._subject;if(!x||x.JSC$9085_isStopped)O._subject=O.subjectFactory();return O._subject};
lt.prototype._teardown=function(){this._refCount=0;var O=this._connection;this._subject=this._connection=null;O==null||O.unsubscribe()};
lt.prototype.connect=function(){var O=this,x=this._connection;if(!x){x=this._connection=new Mx;var e=Oxp(this);x.add(this.source.subscribe(new WO(e,void 0,function(l){O._teardown();e.error(l)},function(){O._teardown();
e.complete()},function(){return O._teardown()})));
x.closed&&(this._connection=null,x=Mx.JSC$9064_EMPTY)}return x};var SrL=Array.isArray;var NXr=Array.isArray,xxR=Object,gS8=xxR.getPrototypeOf,$xr=xxR.prototype,ix7=xxR.keys;var nx=function(O,x,e){O5.call(this,O);this._next=x;this.shouldComplete=e};
_.c(nx,O5);nx.JSC$9064_EMPTY=O5.JSC$9064_EMPTY;nx.create=O5.create;nx.prototype._complete=function(){this.shouldComplete()?O5.prototype._complete.call(this):this.unsubscribe()};var LOw=["addListener","removeListener"],TcL=["addEventListener","removeEventListener"],Ajs=["on","off"];var Cl=function(){Mx.call(this)};
_.c(Cl,Mx);Cl.JSC$9064_EMPTY=Mx.JSC$9064_EMPTY;Cl.prototype.schedule=function(){return this};var ei2=function(O,x){return setInterval.apply(null,[O,x].concat(_.Kx(_.vw.apply(2,arguments))))};var Qf=function(O,x){Mx.call(this);this.scheduler=O;this.work=x;this.pending=!1};
_.c(Qf,Cl);Qf.JSC$9064_EMPTY=Cl.JSC$9064_EMPTY;Qf.prototype.schedule=function(O,x){x=x===void 0?0:x;if(this.closed)return this;this.state=O;O=this.id;var e=this.scheduler;O!=null&&(this.id=ltp(this,O,x));this.pending=!0;this.delay=x;this.id=this.id||this.requestAsyncId(e,this.id,x);return this};
Qf.prototype.requestAsyncId=function(O,x,e){e=e===void 0?0:e;return ei2(O.flush.bind(O,this),e)};
var ltp=function(O,x,e){e=e===void 0?0:e;if(e!=null&&O.delay===e&&O.pending===!1)return x;clearInterval(x)};
Qf.prototype.execute=function(O,x){if(this.closed)return Error("ha");this.pending=!1;if(O=this._execute(O,x))return O;this.pending===!1&&this.id!=null&&(this.id=ltp(this,this.id,null))};
Qf.prototype._execute=function(O){var x=!1;try{this.work(O)}catch(l){x=!0;var e=!!l&&l||Error(l)}if(x)return this.unsubscribe(),e};
Qf.prototype.unsubscribe=function(){if(!this.closed){var O=this.id,x=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;PxL(x,this);O!=null&&(this.id=ltp(this,O,null));this.delay=null;Cl.prototype.unsubscribe.call(this)}};var CxL=function(O,x){x=x===void 0?$Tp:x;iU2.call(this,O,x);this.actions=[];this.active=!1;this.scheduled=void 0};
_.c(CxL,iU2);CxL.prototype.flush=function(O){var x=this.actions;if(this.active)x.push(O);else{var e;this.active=!0;do if(e=O.execute(O.state,O.delay))break;while(O=x.shift());this.active=!1;if(e){for(;O=x.shift();)O.unsubscribe();throw e;}}};var hj=new oa(Dt);var MN$=Array.isArray;var bf=function(O,x){Qf.call(this,O,x);this.scheduler=O;this.work=x};
_.c(bf,Qf);bf.JSC$9064_EMPTY=Qf.JSC$9064_EMPTY;bf.prototype.schedule=function(O,x){x=x===void 0?0:x;if(x>0)return Qf.prototype.schedule.call(this,O,x);this.delay=x;this.state=O;this.scheduler.flush(this);return this};
bf.prototype.execute=function(O,x){return x>0||this.closed?Qf.prototype.execute.call(this,O,x):this._execute(O,x)};
bf.prototype.requestAsyncId=function(O,x,e){e=e===void 0?0:e;return e!=null&&e>0||e==null&&this.delay>0?Qf.prototype.requestAsyncId.call(this,O,x,e):O.flush(this)};var QaF=function(){CxL.apply(this,arguments)};
_.c(QaF,CxL);var JS7=new QaF(bf);var bx3=function(){this.performanceMonitor=new MET;this.queue=new DTd;this.internalSymbol=Symbol();this.debugNames=new J7k};
bx3.prototype.getOnBackgrounded=function(){return hj};
_.Dy.Object.defineProperties(bx3.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var T3=function(O,x){x=Error.call(this,x?O+": "+x:String(O));this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=O;this.__proto__=T3.prototype;this.name=String(O)};
_.c(T3,Error);var zJ=function(O){T3.call(this,1E3,'sfr:"'+O+'"');this.measurementStrategyFailureReason=O;this.__proto__=zJ.prototype};
_.c(zJ,T3);var rc=function(){T3.call(this,1003);this.__proto__=rc.prototype};
_.c(rc,T3);var Ll=function(){T3.call(this,1009);this.__proto__=Ll.prototype};
_.c(Ll,T3);var TXL=function(){T3.call(this,1011);this.__proto__=TXL.prototype};
_.c(TXL,T3);var LgT=function(){T3.call(this,1007);this.__proto__=rc.prototype};
_.c(LgT,T3);var sd=function(O){T3.call(this,1004,String(O));this.inputObservableIndex=O;this.__proto__=sd.prototype};
_.c(sd,T3);var Sms=function(O){T3.call(this,1010,O);this.__proto__=j9m.prototype};
_.c(Sms,T3);var j9m=function(O){T3.call(this,1005,O);this.__proto__=j9m.prototype};
_.c(j9m,T3);var kt$=function(O){var x=_.vw.apply(1,arguments),e=this;this.orderedFactories=[];this.orderedFactories.push(O);x.forEach(function(l){e.orderedFactories.push(l)})};
kt$.prototype.isSupported=function(O){return this.orderedFactories.some(function(x){return x.isSupported(O)})};
kt$.prototype.makeBeacon=function(O,x){for(var e=0;e<this.orderedFactories.length;e++)if(this.orderedFactories[e].isSupported(x))return this.orderedFactories[e].makeBeacon(O,x);throw new Ll;};var Hew=Symbol("ia"),ASF=Symbol("ja"),j5=function(O,x){this.value=O;this.timeline=x},S5=function(O,x){if(x.timeline!==O.timeline)throw new LgT;
return O.value-x.value};
_.b=j5.prototype;_.b.equals=function(O){return S5(this,O)===0};
_.b.maximum=function(O){if(O.timeline!==this.timeline)throw new LgT;return this.value>=O.value?this:O};
_.b.round=function(){return new j5(Math.round(this.value),this.timeline)};
_.b.add=function(O){return new j5(this.value+O,this.timeline)};
_.b.toString=function(){return String(this.value)};var k4=function(O,x){this.context=O;this.JSC$9191_pinger=x};
k4.prototype.isSupported=function(O){return this.JSC$9191_pinger.isSupported(O)};
k4.prototype.makeBeacon=function(O,x){if(!this.isSupported(x))throw new Ll;return new Al(this.context,this.JSC$9191_pinger,x!=null?x:void 0,O)};
var Al=function(O,x,e,l){var C=this;this.JSC$9197_pinger=x;this.properties=e;this.url=l;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var Q;this.method=(Q=e==null?void 0:e.beaconMethod)!=null?Q:"GET";this.backgroundedSubscription=O.getOnBackgrounded().subscribe(function(){C.sendNow()})};
Al.prototype.deactivate=function(){this.internalIsPending=!1};
Al.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9197_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var O,x;this.JSC$9197_pinger.pingWithHeadersAndBody((O=this.properties)!=null?O:{},this.customHeaders,(x=this.body)!=null?x:"",this.url)}else this.JSC$9197_pinger.ping(this.url);this.internalIsPending=!1}catch(e){}else this.internalIsPending=!1};
Al.prototype.setHeader=function(O,x){this.customHeaders.set(O,x)};
_.Dy.Object.defineProperties(Al.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Dx3=function(){for(var O=_.T(_.vw.apply(0,arguments)),x=O.next();!x.done;x=O.next())if(x=x.value,x.available()){this.timeProvider=x;return}this.timeProvider=new M5k};
_.b=Dx3.prototype;_.b.available=function(){return this.timeProvider.available()};
_.b.now=function(){return this.timeProvider.now()};
_.b.setTimeout=function(O,x){return this.timeProvider.setTimeout(O,x)};
_.b.clearTimeout=function(O){this.timeProvider.clearTimeout(O)};
_.b.interval=function(O,x){var e=this.intervalObservable(O).subscribe(x);return function(){return void e.unsubscribe()}};
_.b.intervalObservable=function(O){return this.timeProvider.intervalObservable(O)};
_.Dy.Object.defineProperties(Dx3.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var M5k=function(){this.timeline=Symbol()};
_.b=M5k.prototype;_.b.available=function(){return!1};
_.b.now=function(){return new j5(0,this.timeline)};
_.b.setTimeout=function(){return 0};
_.b.clearTimeout=function(){};
_.b.interval=function(){return function(){}};
_.b.intervalObservable=function(){return hj};var Mp=function(O,x){this.intrinsicFunctionNamespace=O;this.performanceMonitor=x};
_.b=Mp.prototype;_.b.setTimeout=function(O,x){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,O),x)};
_.b.clearTimeout=function(O){this.intrinsicFunctionNamespace.clearTimeout(O)};
_.b.interval=function(O,x){var e=this.intervalObservable(O).subscribe(x);return function(){return void e.unsubscribe()}};
_.b.intervalObservable=function(O){var x=this;return new oa(function(e){var l=0,C=x.intrinsicFunctionNamespace.setInterval(function(){e.next(l++)},O);
return function(){x.intrinsicFunctionNamespace.clearInterval(C)}})};
_.b.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Gtk=function(O,x){Mp.call(this,O,x);this.timeline=ASF};
_.c(Gtk,Mp);Gtk.prototype.now=function(){return new j5(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Gtk.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Mp.prototype.available.call(this)};var Fgp=function(O,x){Mp.call(this,O,x);this.timeline=Hew};
_.c(Fgp,Mp);Fgp.prototype.now=function(){return new j5(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Fgp.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Mp.prototype.available.call(this)};var oS4=function(O){this.context=O;if(XOp===void 0)a:{var x,e,l=(x=O.global)==null?void 0:(e=x.document)==null?void 0:e.createElement("meta");if(l)try{l.httpEquiv="origin-trial";l.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";O.global.document.head.append(l);XOp=l;break a}catch(C){}XOp=void 0}},
XOp;
oS4.prototype.isSupported=function(O){return qdm(this.context)!==void 0&&!(O==null||!O.endOfSession)&&!Dg(this.context)&&!(O==null?0:O.attributionEnabled)&&!(O==null?0:O.customHeaders)&&!(O==null?0:O.customBody)};
oS4.prototype.makeBeacon=function(O,x){if(!this.isSupported(x))throw new Ll;return new G3(this.context,O,x)};
var G3=function(O,x,e){this.context=O;this.properties=e;this.JSC$9224_urlWithoutToken=x;var l;this.beaconMethod=(l=e==null?void 0:e.beaconMethod)!=null?l:"GET";O=qdm(this.context);if(O===void 0)throw Error();this.fetchLater=O;yS4(this,ZxR(this))},yS4=function(O,x){O.beaconResult&&O.beaconResult.activated||(O.beaconAbort=new AbortController,O.beaconResult=O.fetchLater(x,{method:O.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:O.beaconAbort.signal,activateAfter:96E4}))},ZxR=function(O){O=O.JSC$9224_urlWithoutToken;
return(O.slice(-1)[0]==="&"?O:O+"&")+"flapi=1"};
G3.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
G3.prototype.sendNow=function(){};
G3.prototype.setHeader=function(){};
_.Dy.Object.defineProperties(G3.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9224_urlWithoutToken},
set:function(O){this.JSC$9224_urlWithoutToken=O;O=ZxR(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);yS4(this,O)}},
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 ESR=function(O){this.context=O};
ESR.prototype.isSupported=function(){return!Dg(this.context)&&!!this.context.global.fetch};
ESR.prototype.ping=function(){var O=this;return JS.apply(null,_.Kx(_.vw.apply(0,arguments).map(function(x){return Er(O.context.global.fetch(x,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(HO(function(e){return e.status===200}))}))).pipe(UM8(function(x){return x}),mML())};
ESR.prototype.pingWithHeadersAndBody=function(O,x,e){for(var l=_.vw.apply(3,arguments),C=this,Q=new Headers,L=_.T(x.entries()),k=L.next();!k.done;k=L.next()){var M=_.T(k.value);k=M.next().value;M=M.next().value;Q.set(k,M)}var G,X=(G=O.keepAlive)!=null?G:!1;JS.apply(null,_.Kx(l.map(function(y){return Er(C.context.global.fetch(y,Object.assign({},{method:String(O.beaconMethod),cache:"no-cache"},X?{keepalive:!0}:{},{mode:"no-cors",headers:Q,body:e}))).pipe(HO(function(Z){return Z.status===200}))}))).pipe(UM8(function(y){return y}),
mML())};var t5k,hBL,qrT;_.Fb=function(){};
_.Hi=function(O){return O};
t5k=function(O){var x=x||0;return function(){return O.apply(this,Array.prototype.slice.call(arguments,0,x))}};
_.Xb=function(O){var x=!1,e;return function(){x||(e=O(),x=!0);return e}};
_.yf=function(O,x){var e=0;return function(l){_.CV.clearTimeout(e);var C=arguments;e=_.CV.setTimeout(function(){O.apply(void 0,C)},x)}};
hBL=function(O,x){var e=0,l=!1,C=[],Q=function(){e=0;l&&(l=!1,L())},L=function(){e=_.CV.setTimeout(Q,x);
var k=C;C=[];O.apply(void 0,k)};
return function(k){C=arguments;e?l=!0:L()}};
qrT=function(O,x){var e=0,l=function(){e=0};
return function(C){e||(e=_.CV.setTimeout(l,x),O.apply(void 0,arguments))}};var cSd=function(){return tL&&Pi?Pi.mobile:!Px3()&&(Im("iPod")||Im("iPhone")||Im("Android")||Im("IEMobile"))},Px3=function(){return tL&&Pi?!Pi.mobile&&(Im("iPad")||Im("Android")||Im("Silk")):Im("iPad")||Im("Android")&&!Im("Mobile")||Im("Silk")};var Zg=function(O,x,e,l,C){this.allowedElements=O;this.elementPolicies=x;this.allowedGlobalAttributes=e;this.globalAttributePolicies=l;this.globallyAllowedAttributePrefixes=C},Itk=function(O,x,e){e=O.elementPolicies.get(e);
return(e==null?0:e.has(x))?e.get(x):O.allowedGlobalAttributes.has(x)?{policyAction:1}:(e=O.globalAttributePolicies.get(x))?e:O.globallyAllowedAttributePrefixes&&[].concat(_.Kx(O.globallyAllowedAttributePrefixes)).some(function(l){return x.indexOf(l)===0})?{policyAction:1}:{policyAction:0}};var V54="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(" "),
pOk=[["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}]])]],Ri$="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(" "),
UxR=[["dir",{policyAction:3,conditions:RS(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:RS(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:RS(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:RS(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],at2=new Zg(new Set(V54),new Map(pOk),new Set(Ri$),new Map(UxR)),mxR=new Zg(new Set(V54.concat(["BUTTON",
"INPUT"])),new Map(pOk),new Set(RS(function(){return Ri$.concat(["class","id","name"])})),new Map(RS(function(){return UxR.concat([["style",
{policyAction:1}]])})));var saJ,Wgd,ziz;saJ=function(O,x,e,l,C){this.JSC$9281_sanitizerTable=O;this.styleElementSanitizer=x;this.styleAttributeSanitizer=e;this.JSC$9281_resourceUrlPolicy=l;this.JSC$9281_navigationUrlPolicy=C;this.changes=[]};
_.hiN=function(O,x){var e=document.implementation.createHTMLDocument("");O=Wgd(O,x,e);e=e.body;e.appendChild(O);e=(new XMLSerializer).serializeToString(e);e=e.slice(e.indexOf(">")+1,e.lastIndexOf("</"));return SE(e)};
Wgd=function(O,x,e){x=u5V(x,e);x=document.createTreeWalker(x,5,function(k){if(k.nodeType===3)k=1;else if(Bcn(k))if(k=Yd8(k),k===null)k=2;else{var M=O.JSC$9281_sanitizerTable;k=k!=="FORM"&&(M.allowedElements.has(k)||M.elementPolicies.has(k))?1:2}else k=2;return k});
for(var l=x.nextNode(),C=e.createDocumentFragment(),Q=C;l!==null;){var L=void 0;if(l.nodeType===3)O.styleElementSanitizer&&Q.nodeName==="STYLE"?(l=O.styleElementSanitizer(l.data),L=O.createTextNode(l)):L=O.createTextNode(l.data);else if(Bcn(l))L=ziz(O,l,e);else throw Error("Z");Q.appendChild(L);if(l=x.firstChild())Q=L;else for(;!(l=x.nextSibling())&&(l=x.parentNode());)Q=Q.parentNode}return C};
saJ.prototype.createTextNode=function(O){return document.createTextNode(O)};
ziz=function(O,x,e){var l,C=Yd8(x);e=e.createElement(C);x=x.attributes;for(var Q=_.T(x),L=Q.next();!L.done;L=Q.next()){var k=L.value;L=k.name;k=k.value;var M=Itk(O.JSC$9281_sanitizerTable,L,C);a:{if(l=M.conditions){l=_.T(l);for(var G=l.next();!G.done;G=l.next()){var X=_.T(G.value);G=X.next().value;X=X.next().value;var y=void 0;if((G=(y=x.getNamedItem(G))==null?void 0:y.value)&&!X.has(G)){l=!1;break a}}}l=!0}if(l)switch(M.policyAction){case 1:X5(e,L,k);break;case 2:throw Error();case 3:X5(e,L,k.toLowerCase());
break;case 4:O.styleAttributeSanitizer?(k=O.styleAttributeSanitizer(k),X5(e,L,k)):X5(e,L,k);break;case 5:O.JSC$9281_resourceUrlPolicy?(M={type:2,attributeName:L,elementName:C},k=nGL(k),(k=O.JSC$9281_resourceUrlPolicy(k,M))&&X5(e,L,k.toString())):X5(e,L,k);break;case 6:if(O.JSC$9281_resourceUrlPolicy){M={type:2,attributeName:L,elementName:C};l=[];k=_.T(k.split(","));for(G=k.next();!G.done;G=k.next())X=_.T(G.value.trim().split(/\s+/,2)),G=X.next().value,X=X.next().value,l.push({url:G,descriptor:X});
k={parts:[]};l=_.T(l);for(G=l.next();!G.done;G=l.next())G=G.value,X=nGL(G.url),(X=O.JSC$9281_resourceUrlPolicy(X,M))&&k.parts.push({url:X.toString(),descriptor:G.descriptor});X5(e,L,vGw(k))}else X5(e,L,k);break;case 7:M=k;if(O.JSC$9281_navigationUrlPolicy){M={type:2,attributeName:L,elementName:C};k=nGL(k);k=O.JSC$9281_navigationUrlPolicy(k,M);if(k===null)break;M=k.toString()}k=M;M=_.ASr(k);M=M!==void 0&&r74.indexOf(M.toLowerCase())!==-1?k:"about:invalid#zClosurez";X5(e,L,M)}}return e};
_.rS4=RS(function(){return new saJ(at2)});
_.HxN=RS(function(){return new saJ(mxR)});var KgF=function(){this.calledBuild=!1;this.JSC$9293_sanitizerTable=at2},dxk=function(){KgF.apply(this,arguments)};
_.c(dxk,KgF);dxk.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new saJ(this.JSC$9293_sanitizerTable,void 0,void 0,this.JSC$9293_resourceUrlPolicy,this.JSC$9293_navigationUrlPolicy)};var nSN=/[^#]*/;var hQr={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"},uWN=_.Xb(function(){return rjN()}),
BX2=function(){var O=YrN("IFRAME"),x={};
_.e3(uWN(),function(e){O.sandbox&&O.sandbox.supports&&O.sandbox.supports(e)&&(x[e]=!0)});
return x},YrN=function(O,x){x=x===void 0?document:x;
return x.createElement(String(O).toLowerCase())};var E5;_.qo=function(O,x,e){return Math.min(Math.max(O,x),e)};
E5=function(O,x,e){return O+e*(x-O)};_.dc=function(O,x){this.x=O!==void 0?O:0;this.y=x!==void 0?x:0};
_.b=_.dc.prototype;_.b.clone=function(){return new _.dc(this.x,this.y)};
_.b.equals=function(O){return O instanceof _.dc&&(this==O?!0:this&&O?this.x==O.x&&this.y==O.y:!1)};
_.b.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.b.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.b.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.b.translate=function(O,x){O instanceof _.dc?(this.x+=O.x,this.y+=O.y):(this.x+=Number(O),typeof x==="number"&&(this.y+=x));return this};
_.b.scale=function(O,x){this.x*=O;this.y*=typeof x==="number"?x:O;return this};_.pu=function(O,x){this.width=O;this.height=x};
_.b=_.pu.prototype;_.b.clone=function(){return new _.pu(this.width,this.height)};
_.b.area=function(){return this.width*this.height};
_.b.aspectRatio=function(){return this.width/this.height};
_.b.isEmpty=function(){return!this.area()};
_.b.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.b.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.b.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.b.scale=function(O,x){this.width*=O;this.height*=typeof x==="number"?x:O;return this};var vS2;_.HX={};vS2="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.HX.add=function(O,x,e){if(O!==null&&x in O)throw Error("na`"+x);O[x]=e};
_.HX.clear=function(O){for(var x in O)delete O[x]};
_.HX.clone=function(O){var x={},e;for(e in O)x[e]=O[e];return x};
_.HX.contains=function(O,x){return jn7(O,x)};
_.HX.containsKey=function(O,x){return O!==null&&x in O};
_.HX.containsValue=jn7;_.HX.create=$Mr;_.HX.createImmutableView=function(O){var x=O;Object.isFrozen&&!Object.isFrozen(O)&&(x=Object.create(O),Object.freeze(x));return x};
_.HX.createSet=iur;_.HX.equals=function(O,x){for(var e in O)if(!(e in x)||O[e]!==x[e])return!1;for(var l in x)if(!(l in O))return!1;return!0};
_.HX.every=function(O,x,e){for(var l in O)if(!x.call(e,O[l],l,O))return!1;return!0};
_.HX.extend=function(O,x){for(var e,l,C=1;C<arguments.length;C++){l=arguments[C];for(e in l)O[e]=l[e];for(var Q=0;Q<vS2.length;Q++)e=vS2[Q],Object.prototype.hasOwnProperty.call(l,e)&&(O[e]=l[e])}};
_.HX.filter=function(O,x,e){var l={},C;for(C in O)x.call(e,O[C],C,O)&&(l[C]=O[C]);return l};
_.HX.findKey=Ncs;_.HX.findValue=function(O,x,e){return(x=Ncs(O,x,e))&&O[x]};
_.HX.forEach=function(O,x,e){for(var l in O)x.call(e,O[l],l,O)};
_.HX.get=function(O,x,e){return O!==null&&x in O?O[x]:e};
_.HX.getAllPropertyNames=function(O,x,e){if(!O)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Sd7(O);for(var l={};O&&(O!==Object.prototype||x)&&(O!==Function.prototype||e);){for(var C=Object.getOwnPropertyNames(O),Q=0;Q<C.length;Q++)l[C[Q]]=!0;O=Object.getPrototypeOf(O)}return Sd7(l)};
_.HX.getAnyKey=function(O){for(var x in O)return x};
_.HX.getAnyValue=function(O){for(var x in O)return O[x]};
_.HX.getCount=function(O){var x=0,e;for(e in O)x++;return x};
_.HX.getKeys=Sd7;_.HX.getSuperClass=function(O){return(O=Object.getPrototypeOf(O.prototype))&&O.constructor};
_.HX.getValueByKeys=function(O,x){var e=_.vi(x),l=e?x:arguments;for(e=e?0:1;e<l.length;e++){if(O==null)return;O=O[l[e]]}return O};
_.HX.getValues=function(O){var x=[],e=0,l;for(l in O)x[e++]=O[l];return x};
_.HX.isEmpty=function(O){for(var x in O)return!1;return!0};
_.HX.isImmutableView=function(O){return!!Object.isFrozen&&Object.isFrozen(O)};
_.HX.map=function(O,x,e){var l={},C;for(C in O)l[C]=x.call(e,O[C],C,O);return l};
_.HX.remove=function(O,x){var e;(e=x in O)&&delete O[x];return e};
_.HX.set=function(O,x,e){O[x]=e};
_.HX.setIfUndefined=function(O,x,e){return x in O?O[x]:O[x]=e};
_.HX.setWithReturnValueIfNotSet=function(O,x,e){if(x in O)return O[x];e=e();return O[x]=e};
_.HX.some=function(O,x,e){for(var l in O)if(x.call(e,O[l],l,O))return!0;return!1};
_.HX.transpose=function(O){var x={},e;for(e in O)x[O[e]]=e;return x};
_.HX.unsafeClone=gG7;var wl=function(O,x){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=O===wew&&x||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=ftd};
wl.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var JSN=function(O){return O instanceof wl&&O.constructor===wl&&O.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===ftd?O.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ftd={},wew={};
new wl(wew,"");var an,a9,qp,wOd,NX4,jaD,nu,$x4,OuN,ixN,Vf,xM$,LO$,TcJ,buR,kJk,AjL,MNk,DMN,Mf$,GJk,XX4,oGT,FO2,tl;an=function(O){return O?new tl(_.BX(O)):OVF||(OVF=new tl)};
_.wS=function(O,x){return typeof x==="string"?O.getElementById(x):x};
a9=function(O,x){return(x||document).getElementsByTagName(String(O))};
_.Sr3=function(O){return wOd("yt-formatted-string","paper-input-input",O)};
qp=function(O,x,e,l){O=l||O;return(x=x&&x!="*"?String(x).toUpperCase():"")||e?O.querySelectorAll(x+(e?"."+e:"")):O.getElementsByTagName("*")};
wOd=function(O,x,e){var l=document,C=O&&O!="*"?String(O).toUpperCase():"";return C||x?(e||l).querySelector(C+(x?"."+x:"")):qp(l,O,x,e)[0]||null};
NX4=function(O,x){_.HX.forEach(x,function(e,l){l=="style"?O.style.cssText=e:l=="class"?O.className=e:l=="for"?O.htmlFor=e:jaD.hasOwnProperty(l)?O.setAttribute(jaD[l],e):_.br(l,"aria-")||_.br(l,"data-")?O.setAttribute(l,e):O[l]=e})};
jaD={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"};_.Rn=function(O){O=(O||window).document;O=O.compatMode=="CSS1Compat"?O.documentElement:O.body;return new _.pu(O.clientWidth,O.clientHeight)};
_.gST=function(O){var x=_.PS(O);O=O.defaultView;return new _.dc((O==null?void 0:O.pageXOffset)||x.scrollLeft,(O==null?void 0:O.pageYOffset)||x.scrollTop)};
_.PS=function(O){return O.scrollingElement?O.scrollingElement:_.gC||O.compatMode!="CSS1Compat"?O.body||O.documentElement:O.documentElement};
nu=function(O){return O?O.defaultView:window};
_.cS=function(O,x,e){return $x4(document,arguments)};
$x4=function(O,x){var e=x[1],l=ixN(O,String(x[0]));e&&(typeof e==="string"?l.className=e:Array.isArray(e)?l.className=e.join(" "):NX4(l,e));x.length>2&&OuN(O,l,x,2);return l};
OuN=function(O,x,e,l){function C(k){k&&x.appendChild(typeof k==="string"?O.createTextNode(k):k)}
for(;l<e.length;l++){var Q=e[l];if(!_.vi(Q)||_.w7(Q)&&Q.nodeType>0)C(Q);else{a:{if(Q&&typeof Q.length=="number"){if(_.w7(Q)){var L=typeof Q.item=="function"||typeof Q.item=="string";break a}if(typeof Q==="function"){L=typeof Q.item=="function";break a}}L=!1}_.e3(L?_.Bi(Q):Q,C)}}};
_.R9=function(O){return ixN(document,O)};
ixN=function(O,x){x=String(x);O.contentType==="application/xhtml+xml"&&(x=x.toLowerCase());return O.createElement(x)};
_.Is=function(){return document.createTextNode("\n")};
Vf=function(O){if(O.nodeType!=1)return!1;switch(O.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};
xM$=function(O,x){OuN(_.BX(O),O,arguments,1)};
_.pl=function(O){for(var x;x=O.firstChild;)O.removeChild(x)};
_.Rs=function(O,x){x.parentNode&&x.parentNode.insertBefore(O,x)};
_.U5=function(O,x){x.parentNode&&x.parentNode.insertBefore(O,x.nextSibling)};
_.Um=function(O){return O&&O.parentNode?O.parentNode.removeChild(O):null};
_.eQR=function(O,x){var e=x.parentNode;e&&e.replaceChild(O,x)};
_.luD=function(O){var x,e=O.parentNode;if(e&&e.nodeType!=11)if(O.removeNode)O.removeNode(!1);else{for(;x=O.firstChild;)e.insertBefore(x,O);_.Um(O)}};
_.as=function(O){return O.children!=void 0?O.children:Array.prototype.filter.call(O.childNodes,function(x){return x.nodeType==1})};
_.Qn4=function(O){return O.nextElementSibling!==void 0?O.nextElementSibling:_.CtR(O.nextSibling,!0)};
_.CtR=function(O,x){for(;O&&O.nodeType!=1;)O=x?O.nextSibling:O.previousSibling;return O};
_.Tl=function(O){return _.w7(O)&&O.nodeType==1};
_.$8=function(O,x){if(!O||!x)return!1;if(O.contains&&x.nodeType==1)return O==x||O.contains(x);if(typeof O.compareDocumentPosition!="undefined")return O==x||!!(O.compareDocumentPosition(x)&16);for(;x&&O!=x;)x=x.parentNode;return x==O};
LO$=function(O,x){if(O==x)return 0;if(O.compareDocumentPosition)return O.compareDocumentPosition(x)&2?1:-1;if("sourceIndex"in O||O.parentNode&&"sourceIndex"in O.parentNode){var e=O.nodeType==1,l=x.nodeType==1;if(e&&l)return O.sourceIndex-x.sourceIndex;var C=O.parentNode,Q=x.parentNode;return C==Q?buR(O,x):!e&&_.$8(C,x)?-1*TcJ(O,x):!l&&_.$8(Q,O)?TcJ(x,O):(e?O.sourceIndex:C.sourceIndex)-(l?x.sourceIndex:Q.sourceIndex)}l=_.BX(O);e=l.createRange();e.selectNode(O);e.collapse(!0);O=l.createRange();O.selectNode(x);
O.collapse(!0);return e.compareBoundaryPoints(_.CV.Range.START_TO_END,O)};
TcJ=function(O,x){var e=O.parentNode;if(e==x)return-1;for(;x.parentNode!=e;)x=x.parentNode;return buR(x,O)};
buR=function(O,x){for(;x=x.previousSibling;)if(x==O)return-1;return 1};
kJk=function(O){var x,e=arguments.length;if(!e)return null;if(e==1)return arguments[0];var l=[],C=Infinity;for(x=0;x<e;x++){for(var Q=[],L=arguments[x];L;)Q.unshift(L),L=L.parentNode;l.push(Q);C=Math.min(C,Q.length)}Q=null;for(x=0;x<C;x++){L=l[0][x];for(var k=1;k<e;k++)if(L!=l[k][x])return Q;Q=L}return Q};
_.BX=function(O){return O.nodeType==9?O:O.ownerDocument||O.document};
AjL=function(O){return O.contentDocument||O.contentWindow.document};
_.mn=function(O,x){if("textContent"in O)O.textContent=x;else if(O.nodeType==3)O.data=String(x);else if(O.firstChild&&O.firstChild.nodeType==3){for(;O.lastChild!=O.firstChild;)O.removeChild(O.lastChild);O.firstChild.data=String(x)}else _.pl(O),O.appendChild(_.BX(O).createTextNode(String(x)))};
MNk={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};DMN={IMG:" ",BR:"\n"};Mf$=function(O){var x;O.tagName=="A"&&O.hasAttribute("href")||O.tagName=="INPUT"||O.tagName=="TEXTAREA"||O.tagName=="SELECT"||O.tagName=="BUTTON"?x=!O.disabled&&(!O.hasAttribute("tabindex")||GJk(O)):x=O.hasAttribute("tabindex")&&GJk(O);return x};
GJk=function(O){O=O.tabIndex;return typeof O==="number"&&O>=0&&O<32768};
XX4=function(O){var x=[];FO2(O,x,!0);O=x.join("");O=O.replace(/ \xAD /g," ").replace(/\xAD/g,"");O=O.replace(/\u200B/g,"");O=O.replace(/ +/g," ");O!=" "&&(O=O.replace(/^\s*/,""));return O};
oGT=function(O){var x=[];FO2(O,x,!1);return x.join("")};
FO2=function(O,x,e){if(!(O.nodeName in MNk))if(O.nodeType==3)e?x.push(String(O.nodeValue).replace(/(\r\n|\r|\n)/g,"")):x.push(O.nodeValue);else if(O.nodeName in DMN)x.push(DMN[O.nodeName]);else for(O=O.firstChild;O;)FO2(O,x,e),O=O.nextSibling};
_.yjR=function(O,x,e){if(!x&&!e)return null;var l=x?String(x).toUpperCase():null;return _.fu(O,function(C){return(!l||C.nodeName==l)&&(!e||typeof C.className==="string"&&_.ur(C.className.split(/\s+/),e))},!0)};
_.fu=function(O,x,e){O&&!e&&(O=O.parentNode);for(e=0;O;){if(x(O))return O;O=O.parentNode;e++}return null};
tl=function(O){this.JSC$9321_document_=O||_.CV.document||document};
_.b=tl.prototype;_.b.getElement=function(O){return _.wS(this.JSC$9321_document_,O)};
_.b.$=tl.prototype.getElement;_.b.getElementsByTagName=function(O,x){return(x||this.JSC$9321_document_).getElementsByTagName(String(O))};
_.b.getElementsByTagNameAndClass=function(O,x,e){return qp(this.JSC$9321_document_,O,x,e)};
_.b.$$=tl.prototype.getElementsByTagNameAndClass;_.b.setProperties=NX4;_.b.JSC$9323_createDom=function(O,x,e){return $x4(this.JSC$9321_document_,arguments)};
_.b.createElement=function(O){return ixN(this.JSC$9321_document_,O)};
_.b.createTextNode=function(O){return this.JSC$9321_document_.createTextNode(String(O))};
_.b.getWindow=function(){return this.JSC$9321_document_.defaultView};
var Ud=function(O){return _.gST(O.JSC$9321_document_)};
_.b=tl.prototype;_.b.appendChild=function(O,x){O.appendChild(x)};
_.b.append=xM$;_.b.canHaveChildren=Vf;_.b.removeNode=_.Um;_.b.getChildren=_.as;_.b.contains=_.$8;_.b.isFocusable=Mf$;_.b=Zu.prototype;_.b.getWidth=function(){return this.right-this.left};
_.b.getHeight=function(){return this.bottom-this.top};
_.b.clone=function(){return new Zu(this.top,this.right,this.bottom,this.left)};
_.b.contains=function(O){return this&&O?O instanceof Zu?O.left>=this.left&&O.right<=this.right&&O.top>=this.top&&O.bottom<=this.bottom:O.x>=this.left&&O.x<=this.right&&O.y>=this.top&&O.y<=this.bottom:!1};
_.b.expand=function(O,x,e,l){_.w7(O)?(this.top-=O.top,this.right+=O.right,this.bottom+=O.bottom,this.left-=O.left):(this.top-=O,this.right+=Number(x),this.bottom+=Number(e),this.left-=Number(l));return this};
_.b.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};
_.b.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};
_.b.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};
_.b.translate=function(O,x){O instanceof _.dc?(this.left+=O.x,this.right+=O.x,this.top+=O.y,this.bottom+=O.y):(this.left+=O,this.right+=O,typeof x==="number"&&(this.top+=x,this.bottom+=x));return this};
_.b.scale=function(O,x){x=typeof x==="number"?x:O;this.left*=O;this.right*=O;this.top*=x;this.bottom*=x;return this};var s5=function(O,x,e,l){this.left=O;this.top=x;this.width=e;this.height=l};
_.b=s5.prototype;_.b.clone=function(){return new s5(this.left,this.top,this.width,this.height)};
_.b.boundingRect=function(O){var x=Math.max(this.left+this.width,O.left+O.width),e=Math.max(this.top+this.height,O.top+O.height);this.left=Math.min(this.left,O.left);this.top=Math.min(this.top,O.top);this.width=x-this.left;this.height=e-this.top};
_.b.contains=function(O){return O instanceof _.dc?O.x>=this.left&&O.x<=this.left+this.width&&O.y>=this.top&&O.y<=this.top+this.height:this.left<=O.left&&this.left+this.width>=O.left+O.width&&this.top<=O.top&&this.top+this.height>=O.top+O.height};
_.b.distance=function(O){var x=O.x<this.left?this.left-O.x:Math.max(O.x-(this.left+this.width),0);O=O.y<this.top?this.top-O.y:Math.max(O.y-(this.top+this.height),0);return Math.sqrt(x*x+O*O)};
_.b.getSize=function(){return new _.pu(this.width,this.height)};
_.b.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};
_.b.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};
_.b.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};
_.b.translate=function(O,x){O instanceof _.dc?(this.left+=O.x,this.top+=O.y):(this.left+=O,typeof x==="number"&&(this.top+=x));return this};
_.b.scale=function(O,x){x=typeof x==="number"?x:O;this.left*=O;this.width*=O;this.top*=x;this.height*=x;return this};var EGz,z3,Ie8,hl,cjF,Pt3,Iuz,o4L,VNd,RQ$;_.WS=function(O,x,e){if(typeof x==="string")(x=_.Zu2(O,x))&&(O.style[x]=e);else for(var l in x){e=O;var C=x[l],Q=_.Zu2(e,l);Q&&(e.style[Q]=C)}};
EGz={};_.Zu2=function(O,x){var e=EGz[x];if(!e){var l=_.bh(x);e=l;O.style[l]===void 0&&(l=(_.gC?"Webkit":_.No?"Moz":null)+fsT(l),O.style[l]!==void 0&&(e=l));EGz[x]=e}return e};
_.gY=function(O,x){var e=_.BX(O);return e.defaultView&&e.defaultView.getComputedStyle&&(O=e.defaultView.getComputedStyle(O,null))?O[x]||O.getPropertyValue(x)||"":""};
_.go=function(O,x){return _.gY(O,x)||(O.currentStyle?O.currentStyle[x]:null)||O.style&&O.style[x]};
_.tNR=function(O){return _.go(O,"position")};
z3=function(O,x,e){if(x instanceof _.dc){var l=x.x;x=x.y}else l=x,x=e;O.style.left=hl(l,!1);O.style.top=hl(x,!1)};
Ie8=function(O){try{return O.getBoundingClientRect()}catch(x){return{left:0,top:0,right:0,bottom:0}}};
_.vX=function(O){var x=_.BX(O),e=new _.dc(0,0);if(O==(x?_.BX(x):document).documentElement)return e;O=Ie8(O);x=Ud(an(x));e.x=O.left+x.x;e.y=O.top+x.y;return e};
_.qdz=function(O,x,e){if(x instanceof _.pu)e=x.height,x=x.width;else if(e==void 0)throw Error("oa");O.style.width=hl(x,!0);O.style.height=hl(e,!0)};
hl=function(O,x){typeof O=="number"&&(O=(x?Math.round(O):O)+"px");return O};
cjF=function(O){return Pt3(O)};
Pt3=function(O){var x=Iuz;if(_.go(O,"display")!="none")return x(O);var e=O.style,l=e.display,C=e.visibility,Q=e.position;e.visibility="hidden";e.position="absolute";e.display="inline";O=x(O);e.display=l;e.position=Q;e.visibility=C;return O};
Iuz=function(O){var x=O.offsetWidth,e=O.offsetHeight,l=_.gC&&!x&&!e;return(x===void 0||l)&&O.getBoundingClientRect?(O=Ie8(O),new _.pu(O.right-O.left,O.bottom-O.top)):new _.pu(x,e)};
o4L=function(O){var x=_.vX(O);O=Pt3(O);return new s5(x.x,x.y,O.width,O.height)};
VNd=function(O,x){O=O.style;"opacity"in O?O.opacity=x:"MozOpacity"in O?O.MozOpacity=x:"filter"in O&&(O.filter=x===""?"":"alpha(opacity="+Number(x)*100+")")};
_.Ce=function(O,x){O.style.display=x?"":"none"};
_.pXN=function(O){return"rtl"==_.go(O,"direction")};
RQ$=function(O){var x=_.gY(O,"marginLeft"),e=_.gY(O,"marginRight"),l=_.gY(O,"marginTop");O=_.gY(O,"marginBottom");return new Zu(parseFloat(l),parseFloat(e),parseFloat(O),parseFloat(x))};
_.UMT=function(O){var x=_.gY(O,"borderLeftWidth"),e=_.gY(O,"borderRightWidth"),l=_.gY(O,"borderTopWidth");O=_.gY(O,"borderBottomWidth");return new Zu(parseFloat(l),parseFloat(e),parseFloat(O),parseFloat(x))};var rp=function(O){this.context=O};
rp.prototype.isSupported=function(O){return(O==null?0:O.attributionEnabled)||(O==null?void 0:O.beaconMethod)==="POST"||(O==null?0:O.customHeaders)||(O==null?0:O.customBody)||(O==null?0:O.keepAlive)?!1:!Dg(this.context)};
rp.prototype.ping=function(){var O=this;return aa(_.vw.apply(0,arguments).map(function(x){try{var e=O.context.global,l=!1;l=l===void 0?!1:l;e.google_image_requests||(e.google_image_requests=[]);var C=YrN("IMG",e.document);l&&(C.attributionSrc="");C.src=x;e.google_image_requests.push(C);return!0}catch(Q){return!1}}).every(function(x){return x}))};
rp.prototype.pingWithHeadersAndBody=function(O,x,e){this.ping.apply(this,_.Kx(_.vw.apply(3,arguments)))};var au$=function(O){this.context=O};
au$.prototype.isSupported=function(O){return mMJ&&!Dg(this.context)&&OfV(this.context)!==void 0&&!(O==null?0:O.attributionEnabled)&&(O==null?void 0:O.beaconMethod)!=="POST"&&!(O==null?0:O.customHeaders)&&!(O==null?0:O.customBody)};
au$.prototype.makeBeacon=function(O,x){if(!this.isSupported(x))throw new Ll;return new HS(this.context,O)};
var mMJ=!1,HS=function(O,x){this.context=O;this.JSC$9342_urlWithoutToken=x;O=OfV(this.context);if(O===void 0)throw Error();this.wrappedBeacon=new O(snz(this),{})},snz=function(O){O=O.JSC$9342_urlWithoutToken;
return(O.slice(-1)[0]==="&"?O:O+"&")+"pbapi=1"};
HS.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
HS.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
HS.prototype.setHeader=function(){};
_.Dy.Object.defineProperties(HS.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9342_urlWithoutToken},
set:function(O){this.JSC$9342_urlWithoutToken=O;this.wrappedBeacon.setURL(snz(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(O){if(O!=="GET")throw new Ll;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var WOL=function(O){this.context=O};
WOL.prototype.isSupported=function(O){if((O==null?0:O.attributionEnabled)||(O==null?void 0:O.beaconMethod)==="GET"||(O==null?0:O.customHeaders)||(O==null?0:O.customBody)||(O==null?0:O.keepAlive))return!1;var x;return!Dg(this.context)&&((x=this.context.global.navigator)==null?void 0:x.sendBeacon)!==void 0};
WOL.prototype.ping=function(){var O=this;return aa(_.vw.apply(0,arguments).map(function(x){var e;return(e=O.context.global.navigator)==null?void 0:e.sendBeacon(x)}).every(function(x){return x}))};
WOL.prototype.pingWithHeadersAndBody=function(O,x,e){this.ping.apply(this,_.Kx(_.vw.apply(3,arguments)))};var cX=function(O){this.value=O},Cf=function(O,x){return aa(O.value).pipe(qM(x))},bP=new cX(!1),HO7=new cX(!0);var Jj=function(O){this.value=O;this.releasedSubject=new Ed};
Jj.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Dy.Object.defineProperties(Jj.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9355_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var G8r=["FRAME","IMG","IFRAME"],ToL=/^[01](px)?$/,Dqm=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},MZn=function(){var O=new Dqm;
O.crossDomainLoadedDefault=!0;O.pendingImagesBlockLoad=!0;return O};var hQF=function(O,x){var e=tZs(O);if(e)if(e.onCreativeLoad)e.onCreativeLoad(x);else{var l=x?[x]:[],C=function(Q){for(var L=0;L<l.length;++L)try{l[L](1,Q)}catch(k){}l={push:function(k){k(1,Q)}}};
e.onCreativeLoad=function(Q){l.push(Q)};
e.setAttribute("data-creative-load-listener","");e.addEventListener("creativeLoad",function(Q){C(Q.detail)});
_.CV.addEventListener("message",function(Q){E8r(e,C,Q)})}};var Kl=function(O,x){var e=this;this.global=O;this.parentContext=x;this.JSC$9366_onVisibilityChange=this.document?JS(aa(!0),YS(this.document,"visibilitychange")).pipe(Nx(this.parentContext.performanceMonitor,748),HO(function(){return e.getVisibilityState()}),xG()):aa("visible");
this.document?YS(this.document,"DOMContentLoaded").pipe(Nx(this.parentContext.performanceMonitor,739),Od(1)):aa(Q9r("DOMContentLoaded"))},rZr=function(O){return O.document!==null&&O.document.visibilityState!==void 0};
Kl.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Kl.prototype.querySelector=function(O){return this.document?this.document.querySelector(O):null};
Kl.prototype.querySelectorAll=function(O){return this.document?_.Bi(this.document.querySelectorAll(O)):[]};
Kl.prototype.elementFromPoint=function(O,x){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;O=this.document.elementFromPoint(O,x);return O===null?null:new Jj(O)};
var IKW=function(O,x,e){e=e===void 0?!1:e;if(x.ref===void 0||!O.document)return aa(x).pipe(Nx(O.parentContext.performanceMonitor,749));var l=new Qi(1),C=function(){l.next(x)};
e||hQF(x.ref,C);Fyr(x.ref,C);return l.pipe(Nx(O.parentContext.performanceMonitor,749),Od(1))};
_.Dy.Object.defineProperties(Kl.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Hur(this.global,"document")?this.global.document||null:null}}});var qmN=_.zo(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),PPn=_.zo(["./reach_worklet.js"]),c0r=_.zo(["./reach_worklet.js"]),zQ3=_.zo(["./reach_worklet.html"]),rjR=_.zo(["./reach_worklet.js"]),Hup=_.zo(["./reach_worklet.js"]);_.on(zQ3);_.on(rjR);_.on(Hup);var $G={left:0,top:0,width:0,height:0};var KOd,dM2,nG3,u52,kc,BcD,vG$,fud,aqW,m7m,SdN,jnN;KOd=function(O,x,e,l,C,Q,L){var k="";O&&(k+=O+":");e&&(k+="//",x&&(k+=x+"@"),k+=e,l&&(k+=":"+l));C&&(k+=C);Q&&(k+="?"+Q);L&&(k+="#"+L);return k};
dM2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.TG=function(O){return O.match(dM2)};
_.Fu=function(O,x){return O?x?decodeURI(O):decodeURIComponent(O):O};
nG3=function(O){O=_.TG(O)[1]||null;!O&&_.CV.self&&_.CV.self.location&&(O=_.CV.self.location.protocol.slice(0,-1));return O?O.toLowerCase():""};
_.Lb=function(O){return _.Fu(_.TG(O)[3]||null,!0)};
_.VF=function(O){return _.Fu(_.TG(O)[5]||null,!0)};
_.Fqs=function(O){var x=O.indexOf("#");return x<0?null:O.slice(x+1)};
u52=function(O){O=_.TG(O);return KOd(O[1],O[2],O[3],O[4])};
_.YdT=function(O){O=_.TG(O);return KOd(O[1],null,O[3],O[4])};
_.sb=function(O){O=_.TG(O);return KOd(null,null,null,null,O[5],O[6],O[7])};
_.n1=function(O){var x=O.indexOf("#");return x<0?O:O.slice(0,x)};
kc=function(O,x){O=_.TG(O);x=_.TG(x);return O[3]==x[3]&&O[1]==x[1]&&O[4]==x[4]};
BcD=function(O,x){if(O){O=O.split("&");for(var e=0;e<O.length;e++){var l=O[e].indexOf("="),C=null;if(l>=0){var Q=O[e].substring(0,l);C=O[e].substring(l+1)}else Q=O[e];x(Q,C?Mb(C):"")}}};
vG$=function(O){var x=O.indexOf("#");x<0&&(x=O.length);var e=O.indexOf("?");if(e<0||e>x){e=x;var l=""}else l=O.substring(e+1,x);return[O.slice(0,e),l,O.slice(x)]};
fud=function(O,x){return x?O?O+"&"+x:x:O};
_.Jjd=function(O,x){if(!x)return O;O=vG$(O);O[1]=fud(O[1],x);return O[0]+(O[1]?"?"+O[1]:"")+O[2]};
_.wXL=function(O,x,e){if(Array.isArray(x))for(var l=0;l<x.length;l++)_.wXL(O,String(x[l]),e);else x!=null&&e.push(O+(x===""?"":"="+_.xc(x)))};
_.RO=function(O){var x=[],e;for(e in O)_.wXL(e,O[e],x);return x.join("&")};
_.bu=function(O,x){x=_.RO(x);return _.Jjd(O,x)};
_.dp=function(O,x,e){e=e!=null?"="+_.xc(e):"";return _.Jjd(O,x+e)};
aqW=function(O,x,e,l){for(var C=e.length;(x=O.indexOf(e,x))>=0&&x<l;){var Q=O.charCodeAt(x-1);if(Q==38||Q==63)if(Q=O.charCodeAt(x+C),!Q||Q==61||Q==38||Q==35)return x;x+=C+1}return-1};
m7m=/#|$/;_.iP=function(O,x){var e=O.search(m7m),l=aqW(O,0,x,e);if(l<0)return null;var C=O.indexOf("&",l);if(C<0||C>e)C=e;l+=x.length+1;return Mb(O.slice(l,C!==-1?C:0))};
SdN=/[?&]($|#)/;_.Y7=function(O,x){for(var e=O.search(m7m),l=0,C,Q=[];(C=aqW(O,l,x,e))>=0;)Q.push(O.substring(l,C)),l=Math.min(O.indexOf("&",C)+1||e,e);Q.push(O.slice(l));return Q.join("").replace(SdN,"$1")};
_.Sb=function(O,x,e){return _.dp(_.Y7(O,x),x,e)};
jnN=function(O){var x=vG$(window.location.href),e=x[1],l=[];e&&e.split("&").forEach(function(C){var Q=C.indexOf("=");Q=Q>=0?C.slice(0,Q):C;O.hasOwnProperty(Q)||l.push(C)});
x[1]=fud(l.join("&"),_.RO(O));return x[0]+(x[1]?"?"+x[1]:"")+x[2]};var v8i=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(v8i,_.TH);v8i.prototype.getVersion=function(){return _.oK(this,2)};var BoV=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(BoV,_.TH);var Hfr=function(O,x){return _.mO(O,2,x)},Ymm=function(O,x){return _.mO(O,3,x)};
BoV.prototype.getModel=function(){return _.oK(this,4)};
var dqV=function(O,x){return _.mO(O,4,x)},r0W=function(O,x){return _.mO(O,5,x)},uFW=function(O,x){return _.mO(O,9,x)},zWn=function(O,x){return AO(O,10,x)},hWr=function(O,x){return _.yW(O,11,x)},Ky7=function(O,x){return _.mO(O,1,x)},n8W=function(O,x){return _.yW(O,7,x)};var s9m="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var QW=function(O,x,e,l){O=O===void 0?window:O;x=x===void 0?null:x;e=e===void 0?new MET:e;l=l===void 0?IdW():l;bx3.call(this);var C=this;this.global=O;this.debugChannel=x;this.performanceMonitor=e;this.onPageHide=buN(function(){return YS(C.global,"pagehide")}).pipe(Nx(this.performanceMonitor,941));
this.onLoad=buN(function(){return YS(C.global,"load")}).pipe(Nx(this.performanceMonitor,738),Od(1));
this.onResize=buN(function(){return YS(C.global,"resize")}).pipe(Nx(this.performanceMonitor,741));
this.onMessage=buN(function(){return YS(C.global,"message")}).pipe(Nx(this.performanceMonitor,740));
this.document=new Kl(this.global,this);this.timeProvider=new Dx3(new Fgp(this.intrinsicFunctionNamespace,this.performanceMonitor),new Gtk(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new kt$(new oS4(this),new au$(this),new k4(this,new ESR(this)),new k4(this,new WOL(this)),new k4(this,new rp(this)))};
_.c(QW,bx3);QW.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(O){return O}};
var Dg=function(O){var x=O.global;return!!O.global.HTMLFencedFrameElement&&!!x.fence&&typeof x.fence.reportEvent==="function"};
_.b=QW.prototype;_.b.reportFencedFrameEvent=function(O){Dg(this)&&this.global.fence.reportEvent(O)};
_.b.getOnBackgrounded=function(){return this.onPageHide.pipe(Nx(this.performanceMonitor,942),qM(this.queue),HO(function(){}))};
_.b.postMessage=function(O,x,e){e=e===void 0?[]:e;this.global.postMessage(O,x,e)};
_.b.getWidth=function(){return KOi(this.global)?this.global.width:0};
_.b.getHeight=function(){return KOi(this.global)?this.global.height:0};
_.b.isMobile=function(){return Px3()||cSd()};
var wc=function(O,x){try{var e=UqL(x,O.global,O.isMobile());return{left:e.left,top:e.top,width:e.getWidth(),height:e.getHeight()}}catch(l){return $G}};
QW.prototype.validate=function(){var O=this.beaconFactory.isSupported()||Dg(this);return this.global&&this.timeProvider.available()&&O};
var eW8=function(O){return(O=J0m(O.global))?Er(O):null};
_.Dy.Object.defineProperties(QW.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(O){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(O){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!KOi(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}}});_.NcL=!_.j1&&!_.ZVL();var Kxw=function(O){return O};var nK$=function(O){return O.pipe(wX(function(x){var e=x.endOfSessionReason;var l;return((l=x.viewable)==null?void 0:l.extrapolateToNow().value)||e!=void 0}),Od(1),$S())};var ifm=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Oe$=function(O){var x=O.sequenceNumber.toString(10).padStart(2,"0");
x=""+O.startTime+x;O.sequenceNumber<99&&O.sequenceNumber++;return x};var znV=XW(MM(function(O){return O.endOfSessionReason===void 0}),HO(function(O){return Object.assign({},O,{timestamps:WX(O)})}),wX(function(O){var x=O.viewable;
O=O.timestamps;var e;return(e=x==null?void 0:x.extrapolateUsingTimestampMap(O).value)!=null?e:!1}),HO(function(O){var x=O.beaconFactory;
var e=O.timestampedExposureHistory;var l=O.timeOnScreen;var C=O.binaryContext;O=O.timestamps;if(x===void 0||e===void 0||l===void 0||C===void 0)return!1;if(l.extrapolateUsingTimestampMap(O).value.every(function(Q){return Q>=0}))return!0;
e=e.map(function(Q){return Q.timestamp+":"+Q.value}).join(",");
l=x4N({bin:C,tos:l},O);x.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+l+("&eh="+e)).sendNow();return!0}),MM(function(O){return!O}),$S());var leL=function(O){return{id:O.pingId,mcvt:O.maxConsecutiveViewTime,p:O.creativePosition,asp:O.adSpeedPosition,tm:O.totalMeasurementTime,tu:O.totalUnviewedTime,mtos:O.maxTimeOnScreen,tos:O.timeOnScreen,v:O.binaryVersion,bin:O.binaryContext,avms:O.measurementStrategy,bs:O.browserSize,mc:O.maximumExposure,"if":O.crossDomainIframeState,vu:O.delayedImpressionJsState,app:O.inApp,mse:O.mraidError,mtop:O.mraidSituation,itpl:O.injectedTemplateId,adk:O.adKey,exk:O.awbidKey,rs:O.requestSource,la:O.isLargeAd,
cr:O.isContentRecommendationAd,uach:O.userAgentClientHints,vs:O.viewState,r:O.reasonCode,pay:O.hasCpmavUrl,co:O.clientPingOrderCounter,rst:O.adRenderStartTime,rpt:O.adRenderPeriodTime,isd:O.initialScrollDepth,lsd:O.loadedScrollDepth,context:O.errorContext,msg:O.errorMessage,stack:O.errorStack,name:O.errorName,ec:O.hasElementChanged,sfr:O.strategyFailureReasons,met:O.creativeSearchResult,wmsd:O.webMeasurementStartDiagnostic,pv:O.pageVisible,epv:O.eosPageVisible,pbe:O.inStatefulBeaconExperiment,fle:O.inFetchLaterBeaconExperiment,
vae:O.inViewableAttributionExperiment,spb:O.supportsPendingBeacon,sfl:O.supportsFetchLater,ffslot:O.isFencedFrameSlotTurtlex,reach:O.sharedStorageReachMode,io2:O.v2VisibilityBitVector,rxdbg:O.rxDebugger,omida:O.omidAppId,omidp:O.omidPartner,omidpv:O.omidPartnerVersion,omidor:O.omidOcclusionReasons,omidv:O.omidVersion,omids:O.omidSessionType,omidam:O.omidAccessMode,omidct:O.omidCreativeType,omidia:O.omidInApp,omiddc:O.omidDeviceCategory,omidlat:O.omidLastActivity,omiddit:O.omidDeviceIdleTime,qid:O.errorEscapedQueryId}};var dDr=function(O){var x=[];return O.pipe(HO(function(e){var l=e.beaconFactory,C=e.fetchBeaconFactory,Q=e.timeOnScreen,L=e.timeOnScreenUrlPrefixes,k=e.payloadMapper,M=e.timeOnScreenPingId,G=e.timeOnScreenReason,X=e.urlSerializer,y=e.viewable,Z=e.hasImpressionFired,E=e.inStatefulBeaconExperiment,P=e.supportsPendingBeacon,U=e.supportsFetchLater,W=e.turtlexReportEventData;if(!e.geometryMeasurable||!Z||e.maxTimeOnScreen===void 0||Q===void 0||L===void 0||k===void 0||M===void 0||X===void 0||l===void 0)return!1;
if(e.isTurtlex){if(G===void 0)return!1;L=e.reportFencedFrameEvent;if(!L)return!1;L({eventType:"active-view-time-on-screen",eventData:W!=null?W:"",destination:["buyer"]});return!0}if(!(E||U||G))return!1;W=WX(e);var z;y=(z=y==null?void 0:y.extrapolateUsingTimestampMap(W).value)!=null?z:!1;z=X(Object.assign({},e,{pingId:M,viewState:y?4:3,reasonCode:G!=null?G:"u",payloadMapper:k,urlPrefixes:L}),W);if(E){for(;x.length>L.length;)e=void 0,(e=x.shift())==null||e.deactivate();z.forEach(function(f,u){u>=x.length?
x.push(l.makeBeacon(f)):x[u].url=f});
return P&&C&&G!==void 0?(z.forEach(function(f){C.makeBeacon(f).sendNow()}),!0):G!==void 0}if(P&&C&&G!==void 0)return z.forEach(function(f){C.makeBeacon(f).sendNow()}),!0;
if(U&&C){for(;x.length>L.length;)P=void 0,(P=x.shift())==null||P.deactivate();var r=X(Object.assign({},e,{pingId:M,viewState:y?4:3,reasonCode:G!=null?G:"u",payloadMapper:k,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),W)[0];z.forEach(function(f,u){u>=x.length?x.push(l.makeBeacon(r,{endOfSession:!0})):x[u].url=r});
return G!==void 0?(z.forEach(function(f){C.makeBeacon(f).sendNow()}),!0):G!==void 0}return G!==void 0?(z.forEach(function(f){l.makeBeacon(f).sendNow()}),!0):!1}),MM(function(e){return!e}),$S())};var umV=XW(wX(function(O){return O.immediateUrlPrefixes!==void 0&&O.payloadMapper!==void 0&&O.urlSerializer!==void 0&&O.inferredPingId!==void 0&&O.beaconFactory!==void 0}),wX(function(O){return Mji(O)!==null}),kcr(function(O){return O.activeViewUnmeasurableEvent},function(O){return O.emit}),HO(function(O){if(O.isTurtlex){var x=O.reportFencedFrameEvent;
if(x){var e;x({eventType:"active-view-unmeasurable",eventData:(e=O.turtlexReportEventData)!=null?e:"",destination:["buyer"]})}}else{e=void 0;var l=Mji(O);if(l==="x"){var C,Q=(C=O.geometricMeasurementErrors)!=null?C:O.contextValidationErrors;Q&&(x=Q.stack,e=Q.message)}O.urlSerializer(Object.assign({},O,{urlPrefixes:O.immediateUrlPrefixes,payloadMapper:O.payloadMapper,pingId:O.inferredPingId,viewState:2,reasonCode:l,errorMessage:e,errorStack:x}),WX(O)).forEach(function(L){O.beaconFactory.makeBeacon(L).sendNow()})}}),
Od(1),$S());var D4L=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var hnw=XW(wX(function(O){return O.payloadMapper!==void 0&&O.immediateUrlPrefixes!==void 0&&O.urlSerializer!==void 0&&O.inferredPingId!==void 0&&O.beaconFactory!==void 0}),HO(function(O){return Object.assign({},O,{timestamps:WX(O)})}),wX(function(O){var x=O.viewable;
var e=O.hasImpressionFired;O=O.timestamps;var l;return!!e&&((l=x==null?void 0:x.extrapolateUsingTimestampMap(O).value)!=null?l:!1)}),kcr(function(O){return O.activeViewViewableEvent},function(O){return O.emit}),HO(function(O){var x=O.beaconFactory,e=O.turtlexReportEventData;
if(O.isTurtlex){var l=O.reportFencedFrameEvent;if(!l)return!1;l({eventType:"active-view-viewable",eventData:e!=null?e:"",destination:["buyer"]});return!0}e=O.urlSerializer(Object.assign({},O,{urlPrefixes:O.immediateUrlPrefixes,payloadMapper:O.payloadMapper,pingId:O.inferredPingId,viewState:4,reasonCode:"v"}),O.timestamps);(l=O.cpmavUrls)&&l.length>0&&O.viewUrlSerializer&&O.viewUrlSerializer(l,O).forEach(function(C){x.makeBeacon(C).sendNow()});
(l=O.viewableRelayUrls)&&l.length>0&&O.viewUrlSerializer&&O.viewUrlSerializer(l,O).forEach(function(C){x.makeBeacon(C).sendNow()});
e.forEach(function(C){x.makeBeacon(C,{attributionEnabled:O.isViewableAttributionEnabled}).sendNow()});
return!0}),MM(function(O){return!O}),$S());var lK7=HO(function(O){return[O.value.topWindowViewportExternalGeometry.width,O.value.topWindowViewportExternalGeometry.height]});var jN=function(O,x){this.callback=O;this.options=x;this.intersectionObserverV2=this.intersectionObserverV1=null},d4r=function(O,x){x?O.intersectionObserverV2||(x=Object.assign({},O.options,{delay:100,
trackVisibility:!0}),O.intersectionObserverV2=new IntersectionObserver(O.callback,x)):O.intersectionObserverV1||(O.intersectionObserverV1=new IntersectionObserver(O.callback,O.options))},gGN=function(O,x){O=x?O.intersectionObserverV2:O.intersectionObserverV1;
if(!O)throw new TXL;return O};
jN.prototype.observe=function(O,x){gGN(this,O).observe(x)};
jN.prototype.unobserve=function(O,x){gGN(this,O).unobserve(x)};
jN.prototype.disconnect=function(O){gGN(this,O).disconnect()};
jN.prototype.takeRecords=function(O){return gGN(this,O).takeRecords()};var pLN={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:$G,topWindowViewportExternalGeometry:$G,measurementRequests:new Ed,elementGeometrySourceName:"ns",elementGeometry:$G,intersectionGeometry:$G,viewportLocalAppOffset:{x:0,y:0}};var J67=Om(XW(HO(function(O){var x;return(x=O.exposureOverride)!=null?x:u17(O)}),HO(function(O){return isFinite(O)?O:0}))),ie$=Om(XW(HO(function(O){var x;
return(x=O.exposureOverride)!=null?x:u17(O)}),HO(function(O){return isFinite(O)?O:-1})));var nl=function(O,x){this.a=O;this.b=x;if(O.clock.timeline!==x.clock.timeline)throw Error();};
nl.prototype.equivalentTo=function(O){return O instanceof nl?this.a.equivalentTo(O.a)&&this.b.equivalentTo(O.b):!1};
nl.prototype.extrapolateToTime=function(O){var x=this.a.extrapolateToTime(O).value,e=this.b.extrapolateToTime(O).value;return{timestamp:O,value:[x,e]}};
_.Dy.Object.defineProperties(nl.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 O=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),x=this.a.lastMeasurement.timestamp.equals(O)?this.a.lastMeasurement.value:this.a.extrapolateToTime(O).value,e=this.b.lastMeasurement.timestamp.equals(O)?this.b.lastMeasurement.value:this.b.extrapolateToTime(O).value;return{timestamp:O,value:[x,e]}}}});var uf=function(O,x){this.input=O;this.mapFunction=x;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
uf.prototype.equivalentTo=function(O){return O instanceof uf?this.input.equivalentTo(O.input)&&this.mapFunction===O.mapFunction:!1};
uf.prototype.extrapolateToTime=function(O){O=this.input.extrapolateToTime(O);return{timestamp:O.timestamp,value:this.mapFunction(O.value)}};
_.Dy.Object.defineProperties(uf.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Y4=function(){};
Y4.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Y4.prototype.extrapolateUsingTimestampMap=function(O){var x=this.clock.timeline,e,l=(e=O.get(x))!=null?e:this.clock.now();O.set(x,l);return this.extrapolateToTime(l)};
Y4.prototype.map=function(O){return new $Mp(this,O)};
Y4.prototype.joinWith=function(O){return new iup(this,O)};
var iup=function(){nl.apply(this,arguments);this.map=Y4.prototype.map;this.joinWith=Y4.prototype.joinWith;this.extrapolateToNow=Y4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Y4.prototype.extrapolateUsingTimestampMap};
_.c(iup,nl);var $Mp=function(){uf.apply(this,arguments);this.map=Y4.prototype.map;this.joinWith=Y4.prototype.joinWith;this.extrapolateToNow=Y4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Y4.prototype.extrapolateUsingTimestampMap};
_.c($Mp,uf);var eZ=function(O,x){this.lastMeasurement=x;this.extrapolateToNow=Y4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Y4.prototype.extrapolateUsingTimestampMap;this.map=Y4.prototype.map;this.joinWith=Y4.prototype.joinWith;this.clock=O};
eZ.prototype.equivalentTo=function(O){return O.active};
eZ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Dy.Object.defineProperties(eZ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var enL=HO(function(O){if(O.value.viewportGeometrySourceName==="omid"){if(O.value.elementGeometrySourceName==="nio")return"omio";if(O.value.elementGeometrySourceName==="geo")return"omgeo"}return O.value.elementGeometrySourceName==="geo"||O.value.elementGeometrySourceName==="nio"?O.value.viewportGeometrySourceName:O.value.elementGeometrySourceName});var Bwm=XW(wX(function(O){return!isNaN(O)}),Lu(function(O,x){return isNaN(O)?x:Math.min(O,x)},NaN),xG());var wLw=Om(XW(HO(function(O){return O.intersectionGeometry.width*O.intersectionGeometry.height/(O.exposedViewportLocalGeometry.width*O.exposedViewportLocalGeometry.height)}),HO(function(O){return isFinite(O)?Math.min(1,O):0})));var xDi=XW(Om(HO(function(O){O=O.exposureOverride?O.elementGeometry.width*O.elementGeometry.height*O.exposureOverride/(O.topWindowViewportExternalGeometry.width*O.topWindowViewportExternalGeometry.height):O.intersectionGeometry.width*O.intersectionGeometry.height/(O.topWindowViewportExternalGeometry.width*O.topWindowViewportExternalGeometry.height);return isFinite(O)?O:0})));var bOm=function(O,x){var e=this;this.timeProvider=O;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=x.pipe(xG()).subscribe(function(l){Lx$(e);e.measurementRequestObserver=l})},kn7=function(O,x){Lx$(O);
O.lastMeasurementRequest=O.timeProvider.setTimeout(function(){var e;return void((e=O.measurementRequestObserver)==null?void 0:e.next())},x)},Lx$=function(O){O.lastMeasurementRequest!==null&&O.timeProvider.clearTimeout(O.lastMeasurementRequest);
O.lastMeasurementRequest=null};
bOm.prototype.dispose=function(){Lx$(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Of2=function(){};var mDr=function(O,x){this.context=O;this.strategies=x};
_.c(mDr,Of2);mDr.prototype.buildGeometrySource=function(O,x){var e=this.strategies.map(function(Q){return Q.buildGeometrySource(O,x)}),l=Fxn(e.map(function(Q){return Q.geometrySource})),C=l.capturedErrors.pipe(xqJ());
return{geometrySource:l.chain.pipe(qM(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:C,strategyErrors:l.capturedErrors}].concat(_.Kx(e.map(function(Q){return Q.additionalOutputs}))))}};
var xqJ=function(){return Lu(function(O,x){x instanceof zJ?O.push(x.measurementStrategyFailureReason):O.push(-1);return O},[])};var Wxr=function(O,x){this.context=O;this.poller=x};
_.c(Wxr,Of2);Wxr.prototype.buildGeometrySource=function(O,x){var e=XEr(yZr(this.context,this.poller),RcL(this.context,x.requestSource));return{geometrySource:Gn8(O.measurableCreative.pipe(e),x.inApp),additionalOutputs:{}}};var sUL=function(O,x,e){e=e===void 0?hcr(O,x):e;this.context=O;this.intersectionObserverStrategy=e};
_.c(sUL,Of2);sUL.prototype.buildGeometrySource=function(O,x){var e=this.intersectionObserverStrategy(x.useV2);return{geometrySource:Gn8(O.measurableCreative.pipe(e,zcs(this.context)),x.inApp),additionalOutputs:{}}};var eWT=function(O,x,e){var l=l===void 0?Symbol():l;this.element=O;this.immediateUrls=x;this.timeOnScreenUrls=e;this.symbol=l};var QUi=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),P88=Object.freeze([1,.75,QUi.exposureThreshold,QUi.largeAdExposureThreshold,0]);var HmL=function(O,x){x=x===void 0?36E5:x;var e=e===void 0?!0:e;this.creatives=new Ed;this.elementsToUnregister=new Ed;this.elementMap=new Map;var l=new QW(window,null);l.beaconFactory=new k4(l,new rp(l));aKw(l,this.creatives,this.elementsToUnregister,O,x,e).subscribe()},nZr=function(O,x,e,l){if(!O.elementMap.has(x)){var C=new Jj(x);
O.elementMap.set(x,C);O.creatives.next(new eWT(C,e,l))}},dGV=function(O,x){O.elementsToUnregister.next(x);
var e=O.elementMap.get(x);e!==void 0&&(e.release(),O.elementMap.delete(x))};var u9w=function(O){var x=O.url;O=O.uaDataValues;this.JSC$9471_url_=x;this.uaDataValues_=O;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var e=/[?&]([^&=]+)=([^&]*)/g;O=e.exec(x);)this.urlParamValues_[O[1]]=O[2]},Yw$=function(O){O=O.uaDataValues_;
if(!O)return"";var x=T8("uap",O.platform)+T8("uapv",O.platformVersion)+T8("uafv",O.uaFullVersion)+T8("uaa",O.architecture)+T8("uam",O.model)+T8("uab",O.bitness);O.fullVersionList&&(x+="&uafvl="+encodeURIComponent(O.fullVersionList.map(function(e){return encodeURIComponent(e.brand)+";"+encodeURIComponent(e.version)}).join("|")));
O.wow64!=null&&(x+="&uaw="+Number(O.wow64));return x.slice(1)};var ldp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ldp,_.TH);ldp.prototype.getId=function(){return _.oK(this,1)};var BS=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(BS,_.TH);BS.prototype.getSeconds=function(){return Fl(this,1)};
BS.prototype.setSeconds=function(O){return _.Oh(this,1,DQ(O),"0")};_.EM=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(_.EM,_.TH);_.EM.prototype.getSeconds=function(){return Fl(this,1)};
_.EM.prototype.setSeconds=function(O){return _.Oh(this,1,DQ(O),"0")};
_.CPT=function(O){var x=Number(ZO(O,1));O=_.G8(O,2);return new Date(x*1E3+O/1E6)};var vS=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(vS,_.TH);vS.prototype.getUrl=function(){return _.oK(this,1)};
vS.prototype.setUrl=function(O){return _.mz(this,1,O)};
vS.prototype.getHeight=function(){return _.G8(this,2)};
vS.prototype.getWidth=function(){return _.G8(this,3)};var fl=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(fl,_.TH);fl.prototype.getAspectRatio=function(){return Xl(this,1)};
fl.prototype.getDuration=function(){return _.y4(this,BS,2)};var Q9p=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Q9p,_.TH);var bfF=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(bfF,_.TH);var ToJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ToJ,_.TH);var LyJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(LyJ,_.TH);var k8k=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(k8k,_.TH);var A0R=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(A0R,_.TH);var MZD=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(MZD,_.TH);var Dqz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Dqz,_.TH);var G84=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(G84,_.TH);var Jl=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Jl,_.TH);var wp=[2,4,5,6,7];var Fy4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Fy4,_.TH);var Mi=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Mi,_.TH);_.b=Mi.prototype;_.b.getId=function(){return _.y4(this,ldp,1)};
_.b.getName=function(){return _.oK(this,2)};
_.b.setDescription=function(O){return _.mz(this,3,O)};
_.b.getUrl=function(){return _.oK(this,8)};
_.b.setUrl=function(O){return _.mz(this,8,O)};
var SW=function(O){return _.Mq(O,vS,10,_.Dd())};
Mi.prototype.getOwner=function(O){var x=_.Nh(this,40,_.PT,3,!0);O2V(x,O);return x[O]};
Mi.prototype.getVersion=function(){return Fl(this,45)};
var jW=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(jW,_.TH);_.Np=[0,WM,eON];_.gp=[0,WM,eON];var XvL=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(XvL,_.TH);var $4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c($4,_.TH);$4.prototype.getStatus=function(){return _.y7(this,1)};
$4.prototype.removeItem=function(O){return Dkd(this,2,O)};var o8F=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(o8F,_.TH);o8F.prototype.getName=function(){return _.oK(this,8)};var OK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(OK,_.TH);OK.prototype.getCommand=function(){return _.y7(this,1)};
OK.prototype.getSource=function(){return _.y4(this,o8F,2)};
OK.prototype.setVisible=function(O){return _.yo(this,5,O)};
OK.prototype.removeItem=function(O){return Dkd(this,7,O)};var y04=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(y04,_.TH);y04.prototype.getCommand=function(){return _.y7(this,1)};
y04.prototype.removeItem=function(O){return Dkd(this,4,O)};
var ZfT=_.Pw(y04);var xu=function(O,x,e){e=e===void 0?Error():e;var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=O;x+=":";e instanceof Error?(this.message=x+e.message,this.stack=e.stack||""):(this.message=x+String(e),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(xu,Error);_.h0=function(){this.JSC$9529_disposed_=this.JSC$9529_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.h0.prototype.JSC$9529_disposed_=!1;_.h0.prototype.isDisposed=function(){return this.JSC$9529_disposed_};
_.h0.prototype.dispose=function(){this.JSC$9529_disposed_||(this.JSC$9529_disposed_=!0,this.disposeInternal())};
_.h0.prototype[Symbol.dispose]=function(){this.dispose()};
_.qq=function(O,x){O.addOnDisposeCallback(_.b_(_.Lf,x))};
_.h0.prototype.addOnDisposeCallback=function(O,x){this.JSC$9529_disposed_?x!==void 0?O.call(x):O():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),x&&(O=O.bind(x)),this.onDisposeCallbacks_.push(O))};
_.h0.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ed=function(O){_.h0.call(this);this.wpc=O};
_.c(ed,_.h0);ed.prototype.jIY=function(){return this.wpc.f()};
ed.prototype.dem=function(O){return this.wpc.c(O)};
ed.prototype.iN=function(O){return this.wpc.m(JZ7(O))};
ed.prototype.g9l=function(O){return this.wpc.mws(JZ7(O))};
var A0=function(O){_.h0.call(this);var x=this;this.vm=O;this.oTU="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.pcF=void 0;this.sIv=this.vm.p;this.h1o=this.isX.bind(this);this.addOnDisposeCallback(function(){return void E8p(x)})};
_.c(A0,_.h0);var tZL=function(O){var x;return _.A(function(e){if(e.nextAddress==1){if(!O.vm.wpc)throw new xu(30,"NWA");return O.h7k?e.return(O.h7k):e.yield(O.vm.wpc(),2)}x=e.yieldResult;O.h7k=new ed(x);return e.return(O.h7k)})};
A0.prototype.snapshot=function(O){return this.vm.s(Object.assign({},O.hk&&{c:O.hk},O.dmY&&{s:O.dmY},O.do8!==void 0&&{p:O.do8}))};
A0.prototype.isX=function(O){this.vm.e(O)};
A0.prototype.yrY=function(O,x){return this.vm.c(O,x,!1)};
var E8p=function(O){O.pcF!==void 0&&(O.oTU.forEach(function(x){var e;(e=O.pcF)==null||e.removeEventListener(x,O.h1o)}),O.pcF=void 0)};
A0.prototype.yul=function(){return this.vm.l()};var le=function(){_.h0.apply(this,arguments);this.gpg=1};
_.c(le,_.h0);le.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.gpg++;return this};
le.prototype.dispose=function(){--this.gpg||_.h0.prototype.dispose.call(this)};var qmR=function(O){this.o7z=O;O.addNewEventMetric("/client_streamz/bg/frs",_.o9("mk"))};
qmR.prototype.record=function(O,x){this.o7z.record("/client_streamz/bg/frs",O,x)};
var PPD=function(O){this.i9o=O;O.addNewEventMetric("/client_streamz/bg/wrl",_.o9("mn"),XF("ac"),XF("sc"),_.o9("rk"),_.o9("mk"))};
PPD.prototype.record=function(O,x,e,l,C,Q){this.i9o.record("/client_streamz/bg/wrl",O,x,e,l,C,Q)};
var c0p=function(O){this.g7o=O;O.addNewCounter("/client_streamz/bg/ec",_.o9("en"),_.o9("mk"))};
c0p.prototype.increment=function(O,x){this.g7o.JSC$9782_incrementCounter("/client_streamz/bg/ec",O,x)};
var Idd=function(O){this.wvz=O;O.addNewEventMetric("/client_streamz/bg/el",_.o9("en"),_.o9("mk"))};
Idd.prototype.record=function(O,x,e){this.wvz.record("/client_streamz/bg/el",O,x,e)};
var VZJ=function(O){this.b99=O;O.addNewCounter("/client_streamz/bg/cec",XF("ec"),_.o9("mk"))};
VZJ.prototype.increment=function(O,x){this.b99.JSC$9782_incrementCounter("/client_streamz/bg/cec",O,x)};
var pvk=function(O){this.adO=O;O.addNewCounter("/client_streamz/bg/po/csc",XF("cs"),_.o9("mk"))};
pvk.prototype.increment=function(O,x){this.adO.JSC$9782_incrementCounter("/client_streamz/bg/po/csc",O,x)};
var RWN=function(O){this.cWU=O;O.addNewCounter("/client_streamz/bg/po/ctav",_.o9("av"),_.o9("mk"))};
RWN.prototype.increment=function(O,x){this.cWU.JSC$9782_incrementCounter("/client_streamz/bg/po/ctav",O,x)};
var UqJ=function(O){this.maq=O;O.addNewCounter("/client_streamz/bg/po/cwsc",_.o9("su"),_.o9("mk"))};
UqJ.prototype.increment=function(O,x){this.maq.JSC$9782_incrementCounter("/client_streamz/bg/po/cwsc",O,x)};var t3m=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(t3m,_.TH);var Ecs=function(O,x){return _.iL(O,3,x,qTL)};var adD=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(adD,_.TH);var mqd=[1,2,3];var s9z=[0,mqd,_.um,lQ4,bQk];var WyR=[0,_.Yi,[0,mt,_.sa]];var hWp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(hWp,_.TH);var zWD=[1,2,3];var r0d=[0,zWD,OQz,jzd,_.BM,WyR];var HfF=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(HfF,_.TH);var KyN=[0,_.Yi,s9z,r0d];var dq2=[0,_.d4];var n8d=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(n8d,_.TH);var uFd=[0,_.d4,-1,_.r4];var Ymz=[0,_.d4,-1,_.zB,_.r4];var Bo2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Bo2,_.TH);var v8d=[1,2,3];var fdp=[0,v8d,_.BM,uFd,_.BM,Ymz,_.BM,dq2];var J0z=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(J0z,_.TH);J0z.prototype.JSC$9602_serializeBinary=wwL([0,_.d4,fdp,TLT,_.Yi,KyN,CLk,QuR]);var wv4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(wv4,_.TH);var Noz=function(O){var x=new J0z;x=_.mO(x,1,O.JSC$9718_metricName);var e=SmL(O);x=_.iL(x,3,e,_.ZQ);e=[];for(var l=[],C=_.T(O.cellMap.keys()),Q=C.next();!Q.done;Q=C.next())l.push(Q.value.split(","));for(C=0;C<l.length;C++){Q=l[C];for(var L=O.cellType,k=O.getCells(Q)||[],M=[],G=0;G<k.length;G++){var X=k[G],y=X&&X.cellValue;X=new hWp;switch(L){case 3:y=Number(y);Number.isFinite(y)&&VQ(X,1,zWD,DQ(y));break;case 2:VQ(X,2,zWD,_.wN(Number(y)))}M.push(X)}L=M;for(k=0;k<L.length;k++){M=L[k];G=new HfF;M=_.IS(G,
2,M);G=[];X=j9z(O);for(y=0;y<X.length;y++){var Z=X[y],E=Q[y],P=new adD;switch(Z){case 3:VQ(P,1,mqd,te(String(E)));break;case 2:Z=Number(E);Number.isFinite(Z)&&VQ(P,2,mqd,_.bL(Z));break;case 1:VQ(P,3,mqd,Z28(E==="true"))}G.push(P)}AO(M,1,G);e.push(M)}}AO(x,4,e);return x};var g8$=function(O){if(!O)return"";if(/^about:(?:blank|srcdoc)$/.test(O))return window.origin||"";O.indexOf("blob:")===0&&(O=O.substring(5));O=O.split("#")[0].split("?")[0];O=O.toLowerCase();O.indexOf("//")==0&&(O=window.location.protocol+O);/^[\w\-]*:\/\//.test(O)||(O=window.location.href);var x=O.substring(O.indexOf("://")+3),e=x.indexOf("/");e!=-1&&(x=x.substring(0,e));e=O.substring(0,O.indexOf("://"));if(!e)throw Error("qa`"+O);if(e!=="http"&&e!=="https"&&e!=="chrome-extension"&&e!=="moz-extension"&&
e!=="file"&&e!=="android-app"&&e!=="chrome-search"&&e!=="chrome-untrusted"&&e!=="chrome"&&e!=="app"&&e!=="devtools")throw Error("ra`"+e);O="";var l=x.indexOf(":");if(l!=-1){var C=x.substring(l+1);x=x.substring(0,l);if(e==="http"&&C!=="80"||e==="https"&&C!=="443")O=":"+C}return e+"://"+x+O};var ifz=function(O,x,e){var l=String(_.CV.location.href);return l&&O&&x?[x,$q$(g8$(l),O,e||null)].join(" "):null},$q$=function(O,x,e){var l=[],C=[];
if((Array.isArray(e)?2:1)==1)return C=[x,O],_.e3(l,function(k){C.push(k)}),Oek(C.join(" "));
var Q=[],L=[];_.e3(e,function(k){L.push(k.key);Q.push(k.value)});
e=Math.floor((new Date).getTime()/1E3);C=Q.length==0?[e,x,O]:[Q.join(":"),e,x,O];_.e3(l,function(k){C.push(k)});
O=Oek(C.join(" "));O=[e,O];L.length==0||O.push(L.join(""));return O.join("_")},Oek=function(O){var x=Obn();
x.update(O);return x.digestString().toLowerCase()};var Cr=function(O){this.JSC$9613_document_=O||{cookie:""}},x4R;
_.b=Cr.prototype;_.b.isEnabled=function(){if(!_.CV.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};
_.b.set=function(O,x,e){var l=!1;if(typeof e==="object"){var C=e.sameSite;l=e.secure||!1;var Q=e.domain||void 0;var L=e.path||void 0;var k=e.maxAge}if(/[;=\s]/.test(O))throw Error("sa`"+O);if(/[;\r\n]/.test(x))throw Error("ta`"+x);k===void 0&&(k=-1);e=Q?";domain="+Q:"";L=L?";path="+L:"";l=l?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.JSC$9613_document_.cookie=O+"="+x+e+L+k+l+(C!=null?";samesite="+C:"")};
_.b.get=function(O,x){for(var e=O+"=",l=(this.JSC$9613_document_.cookie||"").split(";"),C=0,Q;C<l.length;C++){Q=Gr(l[C]);if(Q.lastIndexOf(e,0)==0)return Q.slice(e.length);if(Q==O)return""}return x};
_.b.remove=function(O,x,e){var l=this.containsKey(O);this.set(O,"",{maxAge:0,path:x,domain:e});return l};
_.b.getKeys=function(){return x4R(this).keys};
_.b.getValues=function(){return x4R(this).values};
_.b.isEmpty=function(){return!this.JSC$9613_document_.cookie};
_.b.getCount=function(){return this.JSC$9613_document_.cookie?(this.JSC$9613_document_.cookie||"").split(";").length:0};
_.b.containsKey=function(O){return this.get(O)!==void 0};
_.b.containsValue=function(O){for(var x=x4R(this).values,e=0;e<x.length;e++)if(x[e]==O)return!0;return!1};
_.b.clear=function(){for(var O=x4R(this).keys,x=O.length-1;x>=0;x--)this.remove(O[x])};
x4R=function(O){O=(O.JSC$9613_document_.cookie||"").split(";");for(var x=[],e=[],l,C,Q=0;Q<O.length;Q++)C=Gr(O[Q]),l=C.indexOf("="),l==-1?(x.push(""),e.push(C)):(x.push(C.substring(0,l)),e.push(C.substring(l+1)));return{keys:x,values:e}};
_.mK=new Cr(typeof document=="undefined"?null:document);var B2N,ecR;B2N=function(){var O=_.CV.__SAPISID||_.CV.__APISID||_.CV.__3PSAPISID||_.CV.__1PSAPISID||_.CV.__OVERRIDE_SID;if(O)return!0;typeof document!=="undefined"&&(O=new Cr(document),O=O.get("SAPISID")||O.get("APISID")||O.get("__Secure-3PAPISID")||O.get("__Secure-1PAPISID"));return!!O};
ecR=function(O,x,e,l){(O=_.CV[O])||typeof document==="undefined"||(O=(new Cr(document)).get(x));return O?ifz(O,e,l):null};
_.oXr=function(O){var x=g8$(_.CV==null?void 0:_.CV.location.href),e=[];if(B2N()){x=x.indexOf("https:")==0||x.indexOf("chrome-extension:")==0||x.indexOf("chrome-untrusted://new-tab-page")==0||x.indexOf("moz-extension:")==0;var l=x?_.CV.__SAPISID:_.CV.__APISID;l||typeof document==="undefined"||(l=new Cr(document),l=l.get(x?"SAPISID":"APISID")||l.get("__Secure-3PAPISID"));(l=l?ifz(l,x?"SAPISIDHASH":"APISIDHASH",O):null)&&e.push(l);x&&((x=ecR("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",O))&&e.push(x),
(O=ecR("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",O))&&e.push(O))}return e.length==0?null:e.join(" ")};var le3=function(){this.minSize=1024};
le3.prototype.compress=function(O){var x,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return x=new CompressionStream("gzip"),e=(new Response(x.readable)).arrayBuffer(),l=x.writable.getWriter(),Q.yield(l.write((new TextEncoder).encode(O)),2);case 2:return Q.yield(l.close(),3);case 3:return C=Uint8Array,Q.yield(e,4);case 4:return Q.return(new C(Q.yieldResult))}})};
le3.prototype.isSupported=function(O){return O<this.minSize?!1:typeof CompressionStream!=="undefined"};var CoJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(CoJ,_.TH);var QK=function(O,x){this.intervalMs=O;this.callback=x;this.enabled=!1;this.nowFn=function(){return _.vN()};
this.lastTimeMs=this.nowFn()};
QK.prototype.setInterval=function(O){this.intervalMs=O;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
QK.prototype.start=function(){var O=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){O.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
QK.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
QK.prototype.tick=function(){var O=this;if(this.enabled){var x=Math.max(this.nowFn()-this.lastTimeMs,0);x<this.intervalMs*.8?this.timer=setTimeout(function(){O.tick()},this.intervalMs-x):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Qwk=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Qwk,_.TH);var beN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(beN,_.TH);var Twk=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Twk,_.TH);Twk.prototype.getTransmissionType=function(){return _.y7(this,1)};var Cu8=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Cu8,_.TH);Cu8.prototype.getVersion=function(){return _.oK(this,2)};var be=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(be,_.TH);var l0r=function(O){AO(QOr,1,O)};
be.prototype.getModel=function(){return _.oK(this,6)};
var LFk=_.Pw(be);var kc4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(kc4,_.TH);var xbN=["platform","platformVersion","architecture","model","uaFullVersion"],QOr=new be,e5m=null;var Ta=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Ta,_.TH);var A6R=function(O){return _.ZG(O,1,1)};var Mjd=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,4)};
_.c(Mjd,_.TH);_.Lr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,36)};
_.c(_.Lr,_.TH);_.Lr.prototype.getExperimentIds=function(){return _.y4(this,CoJ,16)};var D4J=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,19)};
_.c(D4J,_.TH);D4J.prototype.setLogSource=function(O){return _.ZG(this,2,O)};
D4J.prototype.setScheduler=function(O){return _.ZG(this,10,O)};var FFk=function(O,x){this.isServiceWorkerScope=x=x===void 0?!1:x;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new D4J;Number.isInteger(O)&&this.logRequest.setLogSource(O);x||(this.locale=document.documentElement.getAttribute("lang"));Gcz(this,new Ta)};
FFk.prototype.setLogSource=function(O){this.logRequest.setLogSource(O);return this};
var Gcz=function(O,x){_.IS(O.logRequest,1,x);_.y7(x,1)||A6R(x);O.isServiceWorkerScope||(x=ku(O),_.oK(x,5)||_.mO(x,5,O.locale));O.uach&&(x=ku(O),_.y4(x,be,9)||_.IS(x,9,O.uach))},XL3=function(O,x){O.transmissionType=x},oOF=function(O){var x=x===void 0?xbN:x;
var e=O.isServiceWorkerScope?void 0:nu();e?bbi(e,x).then(function(l){O.uach=LFk(l!=null?l:"[]");l=ku(O);_.IS(l,9,O.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},ku=function(O){var x=_.y4(O.logRequest,Ta,1);
x||(x=new Ta,Gcz(O,x));O=x;x=_.y4(O,kc4,11);x||(x=new kc4,_.IS(O,11,x));return x};
FFk.prototype.build=function(O,x,e,l,C,Q){x=x===void 0?0:x;e=e===void 0?0:e;l=l===void 0?null:l;C=C===void 0?0:C;Q=Q===void 0?0:Q;if(!this.isServiceWorkerScope){var L=ku(this);var k=new Twk;k=_.ZG(k,1,this.transmissionType);k=_.yW(k,2,this.isFinal);e=_.qi(k,3,e>0?e:void 0);e=_.qi(e,4,C>0?C:void 0);e=_.qi(e,5,Q>0?Q:void 0);C=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Q=C[_.C2]|0;e=oz(e,Q)?e:UhN(e,C,Q)?ROn(e,C):new e.constructor(YL(C,Q,!0));_.IS(L,10,e)}L=this.logRequest.clone();e=Date.now().toString();
L=_.EY(L,4,DQ(e));O=O.slice();O=AO(L,3,O);l&&(L=new Qwk,l=_.qi(L,13,l),L=new beN,l=_.IS(L,2,l),L=new Mjd,l=_.IS(L,1,l),l=_.ZG(l,2,9),_.IS(O,18,l));x&&_.WH(O,14,x);return O};Zd.prototype.currBackoffCount_=0;Zd.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Zd.prototype.getValue=function(){return this.currValue_};
var y6d=function(O){O.currBaseValue_=Math.min(O.maxValue_,O.currBaseValue_*O.backoffFactor_);O.currValue_=Math.min(O.maxValue_,O.currBaseValue_+(O.randomFactor_?Math.round(O.randomFactor_*(Math.random()-.5)*2*O.currBaseValue_):0));O.currBackoffCount_++};var DhF=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,8)};
_.c(DhF,_.TH);var ZeT=_.Pw(DhF);var GX$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(GX$,_.TH);var Af;Af=new FYz;var MZ=function(O){_.h0.call(this);var x=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9691_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$9691_sendBeaconApiEnabled=!1;this.logSource=O.logSource;this.getAuthHeaderValue=
O.getAuthHeaderValue||function(){};
this.logRequestBuilder=new FFk(O.logSource,O.isServiceWorkerScope);this.network=O.network||null;this.productID=O.productID||null;this.bufferSize=1E3;this.clearcutUrl=O.urlOverride||null;this.sessionIndex=O.sessionIndex||null;this.disableAutomaticFlush=O.disableAutomaticFlush||!1;this.withCredentials=!O.disableWithCredentials;this.isServiceWorkerScope=O.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!nu()&&!!nu().navigator&&nu().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(EO4())).searchParams&&!!(new URL(EO4())).searchParams.set;var e=A6R(new Ta);Gcz(this.logRequestBuilder,e);this.flushBackoff=new Zd(1E4,3E5,.1);O=tj$(this,O.backgroundJobDeferrer);this.JSC$9691_flushTimer=new QK(this.flushBackoff.getValue(),O);this.backupTimer=new QK(6E5,O);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){qf3(x);
var l;(l=x.metalogService)==null||l.flush()}}),document.addEventListener("pagehide",function(){qf3(x);
var l;(l=x.metalogService)==null||l.flush()}))};
_.c(MZ,_.h0);var tj$=function(O,x){return O.isBrowserSupported?x?function(){x().then(function(){O.flush()})}:function(){O.flush()}:function(){}};
MZ.prototype.disposeInternal=function(){qf3(this);this.JSC$9691_flushTimer.stop();this.backupTimer.stop();_.h0.prototype.disposeInternal.call(this)};
var Po4=function(O){O.clearcutUrl||(O.clearcutUrl=EO4());try{return(new URL(O.clearcutUrl)).toString()}catch(x){return(new URL(O.clearcutUrl,nu().location.origin)).toString()}};
MZ.prototype.dispatch=function(O){if(O instanceof _.Lr)this.log(O);else try{var x=new _.Lr,e=O.serialize();var l=_.mO(x,8,e);this.log(l)}catch(C){DN(this,4,1)}};
var DN=function(O,x,e){O.metalogService&&O.metalogService.increment(x,e)};
MZ.prototype.log=function(O){DN(this,2,1);if(this.isBrowserSupported){O=O.clone();var x=this.sequencePosition++;O=_.WH(O,21,x);this.componentId&&_.mO(O,26,this.componentId);x=O;if(H27(_.C0(x,1))==null){var e=Date.now();e=Number.isFinite(e)?e.toString():"0";_.EY(x,1,DQ(e))}_.rJr(_.C0(x,15))!=null||_.WH(x,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(e=this.experimentIds.clone(),_.IS(x,16,e));DN(this,1,1);x=this.pendingEvents.length-this.bufferSize+1;x>0&&(this.pendingEvents.splice(0,x),
this.numLogsDroppedSinceLastFlush+=x,DN(this,3,x));this.pendingEvents.push(O);this.disableAutomaticFlush||this.JSC$9691_flushTimer.enabled||this.JSC$9691_flushTimer.start()}};
MZ.prototype.flush=function(O,x){var e=this;if(this.pendingEvents.length===0)O&&O();else if(this.JSC$9691_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,c6d(this);else{var l=Date.now();if(this.noFlushUntilMs>l&&this.startWaitingMs<l)x&&x("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?XL3(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var C=this.pendingEvents.length,
Q=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),L=this.getAuthHeaderValue();if(L&&this.lastFailedAuth===L)x&&x("stale-auth-token");else{this.pendingEvents=[];this.JSC$9691_flushTimer.enabled&&this.JSC$9691_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;l=Q.serialize();var k;this.JSC$9691_compressor&&this.JSC$9691_compressor.isSupported(l.length)&&
(k=this.JSC$9691_compressor.compress(l));var M=IeT(this,l,L),G=function(Z){e.flushBackoff.reset();e.JSC$9691_flushTimer.setInterval(e.flushBackoff.getValue());if(Z){var E=null;try{var P=JSON.stringify(JSON.parse(Z.replace(")]}'\n","")));E=ZeT(P)}catch(U){}E&&(Z=Number(Fl(E,1,_.rN("-1"))),Z>0&&(e.startWaitingMs=Date.now(),e.noFlushUntilMs=e.startWaitingMs+Z),CL$(E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Af.fieldIndex),eO7(E,Af.fieldIndex),E=Af.ctor?Af.getExtensionFn(E,Af.ctor,Af.fieldIndex,
Af.JSC$8871_hasMessageId):Af.getExtensionFn(E,Af.fieldIndex,null,Af.JSC$8871_hasMessageId),E=E===null?void 0:E)&&(E=_.G8(E,1,-1),E!==-1&&(e.flushBackoff=new Zd(E<1?1:E,3E5,.1),e.JSC$9691_flushTimer.setInterval(e.flushBackoff.getValue())))}O&&O();e.numRetriesSinceLastSuccessfulFlush=0},X=function(Z,E){var P=_.Mq(Q,_.Lr,3,_.Dd());
var U=Number(Fl(Q,14));y6d(e.flushBackoff);e.JSC$9691_flushTimer.setInterval(e.flushBackoff.getValue());Z===401&&L&&(e.lastFailedAuth=L);U&&(e.numLogsDroppedSinceLastFlush+=U);E===void 0&&(E=e.isRetryable(Z));E&&(e.pendingEvents=P.concat(e.pendingEvents),e.disableAutomaticFlush||e.JSC$9691_flushTimer.enabled||e.JSC$9691_flushTimer.start());DN(e,7,1);x&&x("net-send-failed",Z);++e.numRetriesSinceLastSuccessfulFlush},y=function(){e.network&&e.network.send(M,G,X)};
k?k.then(function(Z){DN(e,5,C);M.requestHeaders["Content-Encoding"]="gzip";M.requestHeaders["Content-Type"]="application/binary";M.body=Z;M.bodyType=2;y()},function(){DN(e,6,C);
y()}):y()}}}};
var IeT=function(O,x,e){e=e===void 0?null:e;var l=l===void 0?O.withCredentials:l;var C={},Q=new URL(Po4(O));e&&(C.Authorization=e);O.sessionIndex&&(C["X-Goog-AuthUser"]=O.sessionIndex,Q.searchParams.set("authuser",O.sessionIndex));O.pageId&&(Object.defineProperty(C,"X-Goog-PageId",{value:O.pageId}),Q.searchParams.set("pageId",O.pageId));return{url:Q.toString(),body:x,bodyType:1,requestHeaders:C,requestType:"POST",withCredentials:l,timeoutMillis:O.timeoutMillis}},qf3=function(O){O.logRequestBuilder.isFinal=
!0;
O.flush();O.logRequestBuilder.isFinal=!1},c6d=function(O){Vj2(O,function(x,e){x=new URL(x);
x.searchParams.set("format","json");var l=!1;try{l=nu().navigator.sendBeacon(x.toString(),e.serialize())}catch(C){}l||(O.isSendBeaconSupported=!1);return l})},Vj2=function(O,x){if(O.pendingEvents.length!==0){var e=new URL(Po4(O));
e.searchParams.delete("format");var l=O.getAuthHeaderValue();l&&e.searchParams.set("auth",l);e.searchParams.set("authuser",O.sessionIndex||"0");for(l=0;l<10&&O.pendingEvents.length;++l){var C=O.pendingEvents.slice(0,32),Q=O.logRequestBuilder.build(C,O.numLogsDroppedSinceLastFlush,O.numRetriesSinceLastSuccessfulFlush,O.productID,O.persistedLogRecoveredCount,O.persistedLogExpiredCount);if(!x(e.toString(),Q)){++O.numRetriesSinceLastSuccessfulFlush;break}O.numLogsDroppedSinceLastFlush=0;O.numRetriesSinceLastSuccessfulFlush=
0;O.persistedLogRecoveredCount=0;O.persistedLogExpiredCount=0;O.pendingEvents=O.pendingEvents.slice(C.length)}O.JSC$9691_flushTimer.enabled&&O.JSC$9691_flushTimer.stop()}};
MZ.prototype.isRetryable=function(O){return 500<=O&&O<600||O===401||O===0};
var EO4=function(){return"https://play.google.com/log?format=json&hasfast=true"};var pLR=function(){this.abortSupported=typeof AbortController!=="undefined"};
pLR.prototype.send=function(O,x,e){var l=this,C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){switch(P.nextAddress){case 1:return Q=(C=l.abortSupported?new AbortController:void 0)?setTimeout(function(){C.abort()},O.timeoutMillis):void 0,_.tS(P,2,3),L=Object.assign({},{method:O.requestType,
headers:Object.assign({},O.requestHeaders)},O.body&&{body:O.body},O.withCredentials&&{credentials:"include"},{signal:O.timeoutMillis&&C?C.signal:null}),P.yield(fetch(O.url,L),5);case 5:k=P.yieldResult;if(k.status!==200){(M=e)==null||M(k.status);P.jumpTo(3);break}if((G=x)==null){P.jumpTo(7);break}return P.yield(k.text(),8);case 8:G(P.yieldResult);case 7:case 3:_.PO(P);clearTimeout(Q);_.Ia(P,0);break;case 2:X=_.VP(P);switch((y=X)==null?void 0:y.name){case "AbortError":(Z=e)==null||Z(408);break;default:(E=
e)==null||E(400)}P.jumpTo(3)}})};
pLR.prototype.getTransmissionType=function(){return 4};_.t0=function(O,x){x=x===void 0?"0":x;_.h0.call(this);this.logSource=O;this.sessionIndex=x;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9709_clearExperimentIds=this.productID=null;this.JSC$9709_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.c(_.t0,_.h0);var ocw=function(O,x){O.buildLabel=x;return O},XKW=function(O,x){O.network=x;
return O},Zbr=function(O,x){O.JSC$9709_clearExperimentIds=x},FKm=function(O){O.JSC$9709_sendBeaconApiEnabled=!0;
return O};
_.t0.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.t0.prototype.build=function(){this.network||(this.network=new pLR);var O=new MZ({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.oXr,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.qq(this,O);if(this.buildLabel){var x=this.buildLabel,e=
ku(O.logRequestBuilder);_.mO(e,7,x)}O.JSC$9691_compressor=new le3;this.componentId&&(O.componentId=this.componentId);this.productID&&(O.productID=this.productID);this.pageId&&(O.pageId=this.pageId);this.JSC$9709_clearExperimentIds&&((e=this.JSC$9709_clearExperimentIds)?(O.experimentIds||(O.experimentIds=new CoJ),x=O.experimentIds,e=e.serialize(),_.mO(x,4,e)):O.experimentIds&&_.EY(O.experimentIds,4));this.JSC$9709_sendBeaconApiEnabled&&(O.JSC$9691_sendBeaconApiEnabled=O.isSendBeaconSupported);oOF(O.logRequestBuilder);
this.bufferSize&&(O.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(O);return O};var qC7=function(O,x,e,l,C,Q,L){O=O===void 0?-1:O;x=x===void 0?"":x;e=e===void 0?"":e;l=l===void 0?!1:l;C=C===void 0?"":C;_.h0.call(this);this.logSource=O;this.componentId=x;Q?x=Q:(O=new _.t0(O,"0"),O.componentId=x,_.qq(this,O),e!==""&&(O.destinationUrl=e),l&&(O.serviceWorkerScopeEnabled=!0),C&&ocw(O,C),L&&XKW(O,L),x=O.build());this.JSC$9713_transport=x};
_.c(qC7,_.h0);qC7.prototype.flush=function(O){O=O||[];if(O.length){for(var x=new wv4,e=[],l=0;l<O.length;l++){var C=O[l],Q=Noz(C);e.push(Q);C.clear()}AO(x,1,e);this.JSC$9713_transport.dispatch(x);this.JSC$9713_transport.flush()}};var RcJ=function(O){this.cellValue=O};var Ga=function(O,x,e){this.JSC$9718_metricName=O;this.cellType=x;this.fields=e||[];this.cellMap=new Map},j9z=function(O){return O.fields.map(function(x){return x.fieldType})},SmL=function(O){return O.fields.map(function(x){return x.fieldName})};
_.b=Ga.prototype;_.b.addCell=function(O){var x=_.vw.apply(1,arguments),e=this.getCells(x);e?e.push(new RcJ(O)):this.JSC$9718_setCell(O,x)};
_.b.JSC$9718_setCell=function(O){var x=this.JSC$9718_getKey(_.vw.apply(1,arguments));this.cellMap.set(x,[new RcJ(O)])};
_.b.getCells=function(){var O=this.JSC$9718_getKey(_.vw.apply(0,arguments));return this.cellMap.has(O)?this.cellMap.get(O):void 0};
_.b.getCell=function(){var O=this.getCells(_.vw.apply(0,arguments));return O&&O.length?O[0]:void 0};
_.b.clear=function(){this.cellMap.clear()};
_.b.JSC$9718_getKey=function(){var O=_.vw.apply(0,arguments);return O?O.join(","):"key"};var U4F=function(O,x){Ga.call(this,O,3,x)};
_.c(U4F,Ga);U4F.prototype.JSC$9721_incrementCounterBy=function(O){var x=_.vw.apply(1,arguments),e=0,l=this.getCell(x);l&&(e=l.cellValue);this.JSC$9718_setCell(e+O,x)};var ae4=function(O,x){Ga.call(this,O,2,x)};
_.c(ae4,Ga);ae4.prototype.record=function(O){this.addCell(O,_.vw.apply(1,arguments))};_.Fz=function(O){this.id=O};
_.Fz.prototype.toString=function(){return this.id};_.Xz=function(O,x){this.type=O instanceof _.Fz?String(O):O;this.currentTarget=this.target=x;this.defaultPrevented=this.propagationStopped_=!1};
_.Xz.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Xz.prototype.preventDefault=function(){this.defaultPrevented=!0};_.oj=function(O,x){_.Xz.call(this,O?O.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;O&&this.init(O,x)};
_.fI(_.oj,_.Xz);
_.oj.prototype.init=function(O,x){var e=this.type=O.type,l=O.changedTouches&&O.changedTouches.length?O.changedTouches[0]:null;this.target=O.target||O.srcElement;this.currentTarget=x;x=O.relatedTarget;x||(e=="mouseover"?x=O.fromElement:e=="mouseout"&&(x=O.toElement));this.relatedTarget=x;l?(this.clientX=l.clientX!==void 0?l.clientX:l.pageX,this.clientY=l.clientY!==void 0?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0):(this.offsetX=_.gC||O.offsetX!==void 0?O.offsetX:O.layerX,
this.offsetY=_.gC||O.offsetY!==void 0?O.offsetY:O.layerY,this.clientX=O.clientX!==void 0?O.clientX:O.pageX,this.clientY=O.clientY!==void 0?O.clientY:O.pageY,this.screenX=O.screenX||0,this.screenY=O.screenY||0);this.button=O.button;this.keyCode=O.keyCode||0;this.key=O.key||"";this.charCode=O.charCode||(e=="keypress"?O.keyCode:0);this.ctrlKey=O.ctrlKey;this.altKey=O.altKey;this.shiftKey=O.shiftKey;this.metaKey=O.metaKey;this.pointerId=O.pointerId||0;this.pointerType=O.pointerType;this.state=O.state;
this.timeStamp=O.timeStamp;this.event_=O;O.defaultPrevented&&_.oj.superClass_.preventDefault.call(this)};
_.oj.prototype.isButton=function(O){return this.event_.button==O};
_.oj.prototype.stopPropagation=function(){_.oj.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.oj.prototype.preventDefault=function(){_.oj.superClass_.preventDefault.call(this);var O=this.event_;O.preventDefault?O.preventDefault():O.returnValue=!1};var m4d="closure_listenable_"+(Math.random()*1E6|0),yK=function(O){return!(!O||!O[m4d])};var swk=0;var WF3=function(O,x,e,l,C){this.listener=O;this.proxy=null;this.src=x;this.type=e;this.capture=!!l;this.handler=C;this.key=++swk;this.removed=this.callOnce=!1},hcp=function(O){O.removed=!0;
O.listener=null;O.proxy=null;O.src=null;O.handler=null};Em.prototype.add=function(O,x,e,l,C){var Q=O.toString();O=this.listeners[Q];O||(O=this.listeners[Q]=[],this.typeCount_++);var L=zcL(O,x,l,C);L>-1?(x=O[L],e||(x.callOnce=!1)):(x=new WF3(x,this.src,Q,!!l,C),x.callOnce=e,O.push(x));return x};
Em.prototype.remove=function(O,x,e,l){O=O.toString();if(!(O in this.listeners))return!1;var C=this.listeners[O];x=zcL(C,x,e,l);return x>-1?(hcp(C[x]),_.smr(C,x),C.length==0&&(delete this.listeners[O],this.typeCount_--),!0):!1};
var r6T=function(O,x){var e=x.type;if(!(e in O.listeners))return!1;var l=_.YW(O.listeners[e],x);l&&(hcp(x),O.listeners[e].length==0&&(delete O.listeners[e],O.typeCount_--));return l};
Em.prototype.removeAll=function(O){O=O&&O.toString();var x=0,e;for(e in this.listeners)if(!O||e==O){for(var l=this.listeners[e],C=0;C<l.length;C++)++x,hcp(l[C]);delete this.listeners[e];this.typeCount_--}return x};
Em.prototype.getListener=function(O,x,e,l){O=this.listeners[O.toString()];var C=-1;O&&(C=zcL(O,x,e,l));return C>-1?O[C]:null};
Em.prototype.hasListener=function(O,x){var e=O!==void 0,l=e?O.toString():"",C=x!==void 0;return _.HX.some(this.listeners,function(Q){for(var L=0;L<Q.length;++L)if(!(e&&Q[L].type!=l||C&&Q[L].capture!=x))return!0;return!1})};
var zcL=function(O,x,e,l){for(var C=0;C<O.length;++C){var Q=O[C];if(!Q.removed&&Q.listener==x&&Q.capture==!!e&&Q.handler==l)return C}return-1};var He$,KFN,d44,u1N,YfJ,Da,GO,fep,Bwz,vOd,ZN,J6N,nOL;He$="closure_lm_"+(Math.random()*1E6|0);KFN={};d44=0;_.ol=function(O,x,e,l,C){if(l&&l.once)return Da(O,x,e,l,C);if(Array.isArray(x)){for(var Q=0;Q<x.length;Q++)_.ol(O,x[Q],e,l,C);return null}e=nOL(e);return yK(O)?O.listen(x,e,_.w7(l)?!!l.capture:!!l,C):u1N(O,x,e,!1,l,C)};
u1N=function(O,x,e,l,C,Q){if(!x)throw Error("va");var L=_.w7(C)?!!C.capture:!!C,k=ZN(O);k||(O[He$]=k=new Em(O));e=k.add(x,e,l,L,Q);if(e.proxy)return e;l=YfJ();e.proxy=l;l.src=O;l.listener=e;if(O.addEventListener)_.BLd||(C=L),C===void 0&&(C=!1),O.addEventListener(x.toString(),l,C);else if(O.attachEvent)O.attachEvent(Bwz(x.toString()),l);else if(O.addListener&&O.removeListener)O.addListener(l);else throw Error("wa");d44++;return e};
YfJ=function(){var O=vOd,x=function(e){return O.call(x.src,x.listener,e)};
return x};
Da=function(O,x,e,l,C){if(Array.isArray(x)){for(var Q=0;Q<x.length;Q++)Da(O,x[Q],e,l,C);return null}e=nOL(e);return yK(O)?O.listenOnce(x,e,_.w7(l)?!!l.capture:!!l,C):u1N(O,x,e,!0,l,C)};
_.EK=function(O,x,e,l,C){if(Array.isArray(x))for(var Q=0;Q<x.length;Q++)_.EK(O,x[Q],e,l,C);else l=_.w7(l)?!!l.capture:!!l,e=nOL(e),yK(O)?O.unlisten(x,e,l,C):O&&(O=ZN(O))&&(x=O.getListener(x,e,l,C))&&GO(x)};
GO=function(O){if(typeof O==="number"||!O||O.removed)return!1;var x=O.src;if(yK(x))return r6T(x.eventTargetListeners_,O);var e=O.type,l=O.proxy;x.removeEventListener?x.removeEventListener(e,l,O.capture):x.detachEvent?x.detachEvent(Bwz(e),l):x.addListener&&x.removeListener&&x.removeListener(l);d44--;(e=ZN(x))?(r6T(e,O),e.typeCount_==0&&(e.src=null,x[He$]=null)):hcp(O);return!0};
fep=function(O,x,e,l,C){e=nOL(e);l=!!l;return yK(O)?O.getListener(x,e,l,C):O?(O=ZN(O))?O.getListener(x,e,l,C):null:null};
Bwz=function(O){return O in KFN?KFN[O]:KFN[O]="on"+O};
vOd=function(O,x){if(O.removed)O=!0;else{x=new _.oj(x,this);var e=O.listener,l=O.handler||O.src;O.callOnce&&GO(O);O=e.call(l,x)}return O};
ZN=function(O){O=O[He$];return O instanceof Em?O:null};
J6N="__closure_events_fn_"+(Math.random()*1E9>>>0);nOL=function(O){if(typeof O==="function")return O;O[J6N]||(O[J6N]=function(x){return O.handleEvent(x)});
return O[J6N]};_.tf=function(){_.h0.call(this);this.eventTargetListeners_=new Em(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.fI(_.tf,_.h0);_.tf.prototype[m4d]=!0;_.b=_.tf.prototype;_.b.setParentEventTarget=function(O){this.parentEventTarget_=O};
_.b.addEventListener=function(O,x,e,l){_.ol(this,O,x,e,l)};
_.b.removeEventListener=function(O,x,e,l){_.EK(this,O,x,e,l)};
_.b.dispatchEvent=function(O){var x,e=this.parentEventTarget_;if(e)for(x=[];e;e=e.parentEventTarget_)x.push(e);e=this.actualEventTarget_;var l=O.type||O;if(typeof O==="string")O=new _.Xz(O,e);else if(O instanceof _.Xz)O.target=O.target||e;else{var C=O;O=new _.Xz(l,e);_.HX.extend(O,C)}C=!0;var Q;if(x)for(Q=x.length-1;!O.propagationStopped_&&Q>=0;Q--){var L=O.currentTarget=x[Q];C=wL$(L,l,!0,O)&&C}O.propagationStopped_||(L=O.currentTarget=e,C=wL$(L,l,!0,O)&&C,O.propagationStopped_||(C=wL$(L,l,!1,O)&&
C));if(x)for(Q=0;!O.propagationStopped_&&Q<x.length;Q++)L=O.currentTarget=x[Q],C=wL$(L,l,!1,O)&&C;return C};
_.b.disposeInternal=function(){_.tf.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.b.listen=function(O,x,e,l){return this.eventTargetListeners_.add(String(O),x,!1,e,l)};
_.b.listenOnce=function(O,x,e,l){return this.eventTargetListeners_.add(String(O),x,!0,e,l)};
_.b.unlisten=function(O,x,e,l){return this.eventTargetListeners_.remove(String(O),x,e,l)};
_.b.removeAllListeners=function(O){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(O):0};
var wL$=function(O,x,e,l){x=O.eventTargetListeners_.listeners[String(x)];if(!x)return!0;x=x.concat();for(var C=!0,Q=0;Q<x.length;++Q){var L=x[Q];if(L&&!L.removed&&L.capture==e){var k=L.listener,M=L.handler||L.src;L.callOnce&&r6T(O.eventTargetListeners_,L);C=k.call(M,l)!==!1&&C}}return C&&!l.defaultPrevented};
_.tf.prototype.getListener=function(O,x,e,l){return this.eventTargetListeners_.getListener(String(O),x,e,l)};
_.tf.prototype.hasListener=function(O,x){return this.eventTargetListeners_.hasListener(O!==void 0?String(O):void 0,x)};var qZ=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(O){return O&&AsyncContext.Snapshot.wrap(O)}:function(O){return O};var SfR=function(O,x){this.create_=O;this.reset_=x;this.occupants_=0;this.JSC$9753_head_=null};
SfR.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var O=this.JSC$9753_head_;this.JSC$9753_head_=O.next;O.next=null}else O=this.create_();return O};
SfR.prototype.put=function(O){this.reset_(O);this.occupants_<100&&(this.occupants_++,O.next=this.JSC$9753_head_,this.JSC$9753_head_=O)};var jwR=function(){this.workTail_=this.workHead_=null};
jwR.prototype.add=function(O,x){var e=LKw.get();e.set(O,x);this.workTail_?this.workTail_.next=e:this.workHead_=e;this.workTail_=e};
jwR.prototype.remove=function(){var O=null;this.workHead_&&(O=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),O.next=null);return O};
var LKw=new SfR(function(){return new NwR},function(O){return O.reset()}),NwR=function(){this.next=this.scope=this.fn=null};
NwR.prototype.set=function(O,x){this.fn=O;this.scope=x;this.next=null};
NwR.prototype.reset=function(){this.next=this.scope=this.fn=null};var gOz,kGr,Ty8,$4k;kGr=!1;Ty8=new jwR;_.PF=function(O,x){gOz||$4k();kGr||(gOz(),kGr=!0);Ty8.add(O,x)};
$4k=function(){var O=Promise.resolve(void 0);gOz=function(){O.then(Aqn)}};var iek=function(O){O.prototype.$goog_Thenable=!0},OO2=function(O){if(!O)return!1;
try{return!!O.$goog_Thenable}catch(x){return!1}};var xDd,enJ,lKN,QUd,bOz,TzN,MSL,FxD,ZOD,oKk,OS8;_.If=function(O,x){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(O!=_.Fb)try{var e=this;O.call(x,function(l){e.resolve_(2,l)},function(l){e.resolve_(3,l)})}catch(l){this.resolve_(3,l)}};
xDd=function(){this.next=this.context=this.JSC$9764_onRejected=this.JSC$9764_onFulfilled=this.child=null;this.always=!1};
xDd.prototype.reset=function(){this.context=this.JSC$9764_onRejected=this.JSC$9764_onFulfilled=this.child=null;this.always=!1};
enJ=new SfR(function(){return new xDd},function(O){O.reset()});
lKN=function(O,x,e){var l=enJ.get();l.JSC$9764_onFulfilled=O;l.JSC$9764_onRejected=x;l.context=e;return l};
_.$7=function(O){if(O instanceof _.If)return O;var x=new _.If(_.Fb);x.resolve_(2,O);return x};
_.Za=function(O){return new _.If(function(x,e){e(O)})};
QUd=function(O,x,e){C8p(O,x,e,null)||_.PF(_.b_(x,O))};
_.cF=function(O){return new _.If(function(x,e){var l=O.length,C=[];if(l)for(var Q=function(G,X){l--;C[G]=X;l==0&&x(C)},L=function(G){e(G)},k,M=0;M<O.length;M++)k=O[M],QUd(k,_.b_(Q,M),L);
else x(C)})};
bOz=function(O){return new _.If(function(x){var e=O.length,l=[];if(e)for(var C=function(k,M,G){e--;l[k]=M?{fulfilled:!0,value:G}:{fulfilled:!1,reason:G};e==0&&x(l)},Q,L=0;L<O.length;L++)Q=O[L],QUd(Q,_.b_(C,L,!0),_.b_(C,L,!1));
else x(l)})};
TzN=function(O){return new _.If(function(x,e){var l=O.length,C=[];if(l)for(var Q=function(G){x(G)},L=function(G,X){l--;
C[G]=X;l==0&&e(C)},k,M=0;M<O.length;M++)k=O[M],QUd(k,Q,_.b_(L,M));
else x(void 0)})};
_.He=function(){var O,x,e=new _.If(function(l,C){O=l;x=C});
return new Lxk(e,O,x)};
_.If.prototype.then=function(O,x,e){return knN(this,qZ(typeof O==="function"?O:null),qZ(typeof x==="function"?x:null),e)};
iek(_.If);MSL=function(O,x,e,l){AZd(O,lKN(x||_.Fb,e||null,l))};
_.Ij=function(O,x){x=qZ(x);x=lKN(x,x);x.always=!0;AZd(O,x);return O};
_.If.prototype.finally=function(O){var x=this;O=qZ(O);return new _.If(function(e,l){MSL(x,function(C){O();e(C)},function(C){O();
l(C)})})};
_.If.prototype.thenCatch=function(O,x){return knN(this,null,qZ(O),x)};
_.If.prototype.catch=_.If.prototype.thenCatch;_.If.prototype.cancel=function(O){if(this.state_==0){var x=new _.Vn(O);_.PF(function(){DDd(this,x)},this)}};
var DDd=function(O,x){if(O.state_==0)if(O.parent_){var e=O.parent_;if(e.callbackEntries_){for(var l=0,C=null,Q=null,L=e.callbackEntries_;L&&(L.always||(l++,L.child==O&&(C=L),!(C&&l>1)));L=L.next)C||(Q=L);C&&(e.state_==0&&l==1?DDd(e,x):(Q?(l=Q,l.next==e.callbackEntriesTail_&&(e.callbackEntriesTail_=l),l.next=l.next.next):GnT(e),FxD(e,C,3,x)))}O.parent_=null}else O.resolve_(3,x)},AZd=function(O,x){O.callbackEntries_||O.state_!=2&&O.state_!=3||XEp(O);
O.callbackEntriesTail_?O.callbackEntriesTail_.next=x:O.callbackEntries_=x;O.callbackEntriesTail_=x},knN=function(O,x,e,l){var C=lKN(null,null,null);
C.child=new _.If(function(Q,L){C.JSC$9764_onFulfilled=x?function(k){try{var M=x.call(l,k);Q(M)}catch(G){L(G)}}:Q;
C.JSC$9764_onRejected=e?function(k){try{var M=e.call(l,k);M===void 0&&k instanceof _.Vn?L(k):Q(M)}catch(G){L(G)}}:L});
C.child.parent_=O;AZd(O,C);return C.child};
_.If.prototype.unblockAndFulfill_=function(O){this.state_=0;this.resolve_(2,O)};
_.If.prototype.unblockAndReject_=function(O){this.state_=0;this.resolve_(3,O)};
_.If.prototype.resolve_=function(O,x){this.state_==0&&(this===x&&(O=3,x=new TypeError("xa")),this.state_=1,C8p(x,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=x,this.state_=O,this.parent_=null,XEp(this),O!=3||x instanceof _.Vn||oKk(this,x)))};
var C8p=function(O,x,e,l){if(O instanceof _.If)return MSL(O,x,e,l),!0;if(OO2(O))return O.then(x,e,l),!0;if(_.w7(O))try{var C=O.then;if(typeof C==="function")return yZ4(O,C,x,e,l),!0}catch(Q){return e.call(l,Q),!0}return!1},yZ4=function(O,x,e,l,C){var Q=!1,L=function(M){Q||(Q=!0,e.call(C,M))},k=function(M){Q||(Q=!0,l.call(C,M))};
try{x.call(O,L,k)}catch(M){k(M)}},XEp=function(O){O.executing_||(O.executing_=!0,_.PF(O.executeCallbacks_,O))},GnT=function(O){var x=null;
O.callbackEntries_&&(x=O.callbackEntries_,O.callbackEntries_=x.next,x.next=null);O.callbackEntries_||(O.callbackEntriesTail_=null);return x};
_.If.prototype.executeCallbacks_=function(){for(var O;O=GnT(this);)FxD(this,O,this.state_,this.result_);this.executing_=!1};
FxD=function(O,x,e,l){if(e==3&&x.JSC$9764_onRejected&&!x.always)for(;O&&O.hadUnhandledRejection_;O=O.parent_)O.hadUnhandledRejection_=!1;if(x.child)x.child.parent_=null,ZOD(x,e,l);else try{x.always?x.JSC$9764_onFulfilled.call(x.context):ZOD(x,e,l)}catch(C){OS8.call(null,C)}enJ.put(x)};
ZOD=function(O,x,e){x==2?O.JSC$9764_onFulfilled.call(O.context,e):O.JSC$9764_onRejected&&O.JSC$9764_onRejected.call(O.context,e)};
oKk=function(O,x){O.hadUnhandledRejection_=!0;_.PF(function(){O.hadUnhandledRejection_&&OS8.call(null,x)})};
OS8=QN;_.Vn=function(O){_.ew.call(this,O)};
_.fI(_.Vn,_.ew);_.Vn.prototype.name="cancel";var Lxk=function(O,x,e){this.promise=O;this.resolve=x;this.reject=e};var VK;_.Zy=function(O,x){_.tf.call(this);this.JSC$9776_interval_=O||1;this.timerObject_=x||_.CV;this.boundTick_=(0,_.z8)(this.tick_,this);this.last_=_.vN()};
_.fI(_.Zy,_.tf);_.b=_.Zy.prototype;_.b.enabled=!1;_.b.JSC$9778_timer_=null;_.b.setInterval=function(O){this.JSC$9776_interval_=O;this.JSC$9778_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9778_timer_&&this.stop()};
_.b.tick_=function(){if(this.enabled){var O=_.vN()-this.last_;O>0&&O<this.JSC$9776_interval_*.8?this.JSC$9778_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9776_interval_-O):(this.JSC$9778_timer_&&(this.timerObject_.clearTimeout(this.JSC$9778_timer_),this.JSC$9778_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.b.start=function(){this.enabled=!0;this.JSC$9778_timer_||(this.JSC$9778_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9776_interval_),this.last_=_.vN())};
_.b.stop=function(){this.enabled=!1;this.JSC$9778_timer_&&(this.timerObject_.clearTimeout(this.JSC$9778_timer_),this.JSC$9778_timer_=null)};
_.b.disposeInternal=function(){_.Zy.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
VK=function(O,x,e){if(typeof O==="function")e&&(O=(0,_.z8)(O,e));else if(O&&typeof O.handleEvent=="function")O=(0,_.z8)(O.handleEvent,O);else throw Error("ya");return Number(x)>2147483647?-1:_.CV.setTimeout(O,x||0)};
_.EKz=function(O){var x=null;return(new _.If(function(e,l){x=VK(function(){e(void 0)},O);
x==-1&&l(Error("za"))})).thenCatch(function(e){_.CV.clearTimeout(x);
throw e;})};var I9=function(O){_.h0.call(this);this.streamzLogger=O;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9782_flushTimer=new _.Zy(this.flushInterval);this.JSC$9782_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.qq(this,this.JSC$9782_flushTimer)};
_.c(I9,_.h0);I9.prototype.sendIsolatedPayload=function(O){this.shouldSendIsolatedPayload=O;this.invocationLimit=1};
var tSd=function(O){O.JSC$9782_flushTimer.enabled||O.JSC$9782_flushTimer.start();O.invocationCount++;O.invocationCount>=O.invocationLimit&&O.snapshotAndFlush()};
I9.prototype.snapshotAndFlush=function(){var O=this.metricMap.values();O=[].concat(_.Kx(O)).filter(function(x){return x.cellMap.size});
O.length&&this.streamzLogger.flush(O,this.shouldSendIsolatedPayload);q0p(O);this.invocationCount=0;this.JSC$9782_flushTimer.enabled&&this.JSC$9782_flushTimer.stop()};
I9.prototype.addNewCounter=function(O){var x=_.vw.apply(1,arguments);this.metricMap.has(O)||this.metricMap.set(O,new U4F(O,x))};
I9.prototype.addNewEventMetric=function(O){var x=_.vw.apply(1,arguments);this.metricMap.has(O)||this.metricMap.set(O,new ae4(O,x))};
var P8T=function(O,x){return O.disabledMetrics.has(x)?void 0:O.metricMap.get(x)};
I9.prototype.JSC$9782_incrementCounter=function(O){this.JSC$9782_incrementCounterBy(O,1,_.vw.apply(1,arguments))};
I9.prototype.JSC$9782_incrementCounterBy=function(O,x){var e=_.vw.apply(2,arguments),l=P8T(this,O);l&&l instanceof U4F&&(l.JSC$9721_incrementCounterBy(x,e),tSd(this))};
I9.prototype.record=function(O,x){var e=_.vw.apply(2,arguments),l=P8T(this,O);l&&l instanceof ae4&&(l.record(x,e),tSd(this))};
var q0p=function(O){for(var x=0;x<O.length;x++)O[x].clear()};_.pr=function(O,x,e){e=e===void 0?{}:e;x=Error.call(this,x);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=O;this.metadata=e;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(_.pr,Error);_.pr.prototype.toString=function(){var O="RpcError("+(DbN(this.code)||String(this.code))+")";this.message&&(O+=": "+this.message);return O};_.cZ3=_.CV.JSON.parse;_.Rj=_.CV.JSON.stringify;_.og=_.CV.JSON.parse;_.IKd=function(O){switch(O){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 VS4=function(O){switch(O){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var pEz,RnJ=function(){};
_.fI(RnJ,_.GGr);RnJ.prototype.createInstance=function(){return new XMLHttpRequest};
pEz=new RnJ;_.UK=function(O){_.tf.call(this);this.headers=new Map;this.JSC$9791_xmlHttpFactory_=O||null;this.JSC$9791_active_=!1;this.JSC$9791_xhr_=null;this.JSC$9791_lastUri_="";this.JSC$9791_lastErrorCode_=0;this.JSC$9791_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9791_timeoutId_=null;this.responseType_="";this.JSC$9791_withCredentials_=!1};
_.fI(_.UK,_.tf);var UDd=/^https?$/i,aK$=["POST","PUT"],mD4=[],JPs=function(O,x,e,l,C,Q,L){var k=new _.UK;mD4.push(k);x&&k.listen("complete",x);k.listenOnce("ready",k.cleanupSend_);Q&&(k.timeoutInterval_=Math.max(0,Q));L&&(k.JSC$9791_withCredentials_=L);k.send(O,e,l,C)};
_.UK.prototype.cleanupSend_=function(){this.dispose();_.YW(mD4,this)};
_.UK.prototype.send=function(O,x,e,l){if(this.JSC$9791_xhr_)throw Error("Aa`"+this.JSC$9791_lastUri_+"`"+O);x=x?x.toUpperCase():"GET";this.JSC$9791_lastUri_=O;this.JSC$9791_lastError_="";this.JSC$9791_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9791_active_=!0;this.JSC$9791_xhr_=this.createXhr();this.JSC$9791_xhr_.onreadystatechange=qZ((0,_.z8)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9791_xhr_.open(x,String(O),!0),this.inOpen_=!1}catch(L){sU3(this,L);return}O=e||"";e=new Map(this.headers);
if(l)if(Object.getPrototypeOf(l)===Object.prototype)for(var C in l)e.set(C,l[C]);else if(typeof l.keys==="function"&&typeof l.get==="function"){C=_.T(l.keys());for(var Q=C.next();!Q.done;Q=C.next())Q=Q.value,e.set(Q,l.get(Q))}else throw Error("Ba`"+String(l));l=Array.from(e.keys()).find(function(L){return"content-type"==L.toLowerCase()});
C=_.CV.FormData&&O instanceof _.CV.FormData;!_.ur(aK$,x)||l||C||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");x=_.T(e);for(l=x.next();!l.done;l=x.next())e=_.T(l.value),l=e.next().value,e=e.next().value,this.JSC$9791_xhr_.setRequestHeader(l,e);this.responseType_&&(this.JSC$9791_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9791_xhr_&&this.JSC$9791_xhr_.withCredentials!==this.JSC$9791_withCredentials_&&(this.JSC$9791_xhr_.withCredentials=this.JSC$9791_withCredentials_);
try{this.JSC$9791_timeoutId_&&(clearTimeout(this.JSC$9791_timeoutId_),this.JSC$9791_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9791_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9791_xhr_.send(O),this.inSend_=!1}catch(L){sU3(this,L)}};
_.UK.prototype.createXhr=function(){return this.JSC$9791_xmlHttpFactory_?this.JSC$9791_xmlHttpFactory_.createInstance():pEz.createInstance()};
_.UK.prototype.timeout_=function(){typeof f38!="undefined"&&this.JSC$9791_xhr_&&(this.JSC$9791_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9791_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var sU3=function(O,x){O.JSC$9791_active_=!1;O.JSC$9791_xhr_&&(O.inAbort_=!0,O.JSC$9791_xhr_.abort(),O.inAbort_=!1);O.JSC$9791_lastError_=x;O.JSC$9791_lastErrorCode_=5;Wx4(O);hn$(O)},Wx4=function(O){O.errorDispatched_||(O.errorDispatched_=!0,O.dispatchEvent("complete"),O.dispatchEvent("error"))};
_.UK.prototype.abort=function(O){this.JSC$9791_xhr_&&this.JSC$9791_active_&&(this.JSC$9791_active_=!1,this.inAbort_=!0,this.JSC$9791_xhr_.abort(),this.inAbort_=!1,this.JSC$9791_lastErrorCode_=O||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),hn$(this))};
_.UK.prototype.disposeInternal=function(){this.JSC$9791_xhr_&&(this.JSC$9791_active_&&(this.JSC$9791_active_=!1,this.inAbort_=!0,this.JSC$9791_xhr_.abort(),this.inAbort_=!1),hn$(this,!0));_.UK.superClass_.disposeInternal.call(this)};
_.UK.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)zn2(this);else this.onReadyStateChangeEntryPoint_()};
_.UK.prototype.onReadyStateChangeEntryPoint_=function(){zn2(this)};
var zn2=function(O){if(O.JSC$9791_active_&&typeof f38!="undefined")if(O.inSend_&&_.aj(O)==4)setTimeout(O.onReadyStateChange_.bind(O),0);else if(O.dispatchEvent("readystatechange"),O.isComplete()){O.JSC$9791_active_=!1;try{if(O.isSuccess())O.dispatchEvent("complete"),O.dispatchEvent("success");else{O.JSC$9791_lastErrorCode_=6;try{var x=_.aj(O)>2?O.JSC$9791_xhr_.statusText:""}catch(e){x=""}O.JSC$9791_lastError_=x+" ["+O.getStatus()+"]";Wx4(O)}}finally{hn$(O)}}},hn$=function(O,x){if(O.JSC$9791_xhr_){O.JSC$9791_timeoutId_&&
(clearTimeout(O.JSC$9791_timeoutId_),O.JSC$9791_timeoutId_=null);
var e=O.JSC$9791_xhr_;O.JSC$9791_xhr_=null;x||O.dispatchEvent("ready");try{e.onreadystatechange=null}catch(l){}}};
_.UK.prototype.isActive=function(){return!!this.JSC$9791_xhr_};
_.UK.prototype.isComplete=function(){return _.aj(this)==4};
_.UK.prototype.isSuccess=function(){var O=this.getStatus(),x;if(!(x=VS4(O))){if(O=O===0)O=nG3(String(this.JSC$9791_lastUri_)),O=!UDd.test(O);x=O}return x};
_.aj=function(O){return O.JSC$9791_xhr_?O.JSC$9791_xhr_.readyState:0};
_.b=_.UK.prototype;_.b.getStatus=function(){try{return _.aj(this)>2?this.JSC$9791_xhr_.status:-1}catch(O){return-1}};
_.b.getResponseText=function(){try{return this.JSC$9791_xhr_?this.JSC$9791_xhr_.responseText:""}catch(O){return""}};
_.b.getResponse=function(){try{if(!this.JSC$9791_xhr_)return null;if("response"in this.JSC$9791_xhr_)return this.JSC$9791_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9791_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9791_xhr_)return this.JSC$9791_xhr_.mozResponseArrayBuffer}return null}catch(O){return null}};
_.b.getAllResponseHeaders=function(){return this.JSC$9791_xhr_&&_.aj(this)>=2?this.JSC$9791_xhr_.getAllResponseHeaders()||"":""};
_.b.getLastError=function(){return typeof this.JSC$9791_lastError_==="string"?this.JSC$9791_lastError_:String(this.JSC$9791_lastError_)};var yqn=function(){};
yqn.prototype.send=function(O,x,e){x=x===void 0?function(){}:x;
e=e===void 0?function(){}:e;
JPs(O.url,function(l){l=l.target;l.isSuccess()?x(l.getResponseText()):e(l.getStatus())},O.requestType,O.body,O.requestHeaders,O.timeoutMillis,O.withCredentials)};
yqn.prototype.getTransmissionType=function(){return 1};var rZ4=function(O,x){this.pvY=O;this.event=x;this.startTime=VW()},cqr;
rZ4.prototype.done=function(){this.pvY.mB(this.event,VW()-this.startTime)};
var md=function(){le.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.c(md,le);_.sK=function(O,x,e){var l=VW();x=x();O.mB(e,VW()-l);return x};
cqr=function(){md.apply(this,arguments)};
_.c(cqr,md);_.b=cqr.prototype;_.b.b5z=function(){};
_.b.h9=function(){};
_.b.mB=function(){};
_.b.logError=function(){};
_.b.xL=function(){};
_.b.gsb=function(){};
_.b.osl=function(){};
_.b.imI=function(){};
var HON=function(O){md.call(this);var x=this;this.dD=O;this.TEST_ONLY={bII:function(){return x.dD},
getExperimentIds:function(){return x.dD.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void x.dD.dispose()})};
_.c(HON,md);_.b=HON.prototype;_.b.update=function(O){this.dD.dispose();this.dD=O};
_.b.h9=function(O){this.dD.h9(O)};
_.b.mB=function(O,x){this.dD.mB(O,x)};
_.b.logError=function(O){this.dD.logError(O)};
_.b.xL=function(){this.dD.xL()};
_.b.gsb=function(O){this.dD.gsb(O)};
_.b.osl=function(O){this.dD.osl(O)};
_.b.imI=function(O){this.dD.imI(O)};
_.b.b5z=function(O){this.dD.b5z(O)};
var Kx$=function(O,x){_.h0.call(this);var e=this;this.callback=O;this.zsv=x;this.bQt=-x;this.addOnDisposeCallback(function(){return void clearTimeout(e.timer)})};
_.c(Kx$,_.h0);var dDp=function(O){if(O.timer===void 0){var x=Math.max(0,O.bQt+O.zsv-VW());O.timer=setTimeout(function(){try{O.callback()}finally{O.bQt=VW(),O.timer=void 0}},x)}},nKk=function(O,x){md.call(this);
this.metrics=O;this.sj=x};
_.c(nKk,md);_.b=nKk.prototype;_.b.b5z=function(O){this.metrics.oFU.record(O,this.sj)};
_.b.h9=function(O){this.metrics.eventCount.increment(O,this.sj)};
_.b.mB=function(O,x){this.metrics.mmq.record(x,O,this.sj)};
_.b.logError=function(O){this.metrics.errorCount.increment(O,this.sj)};
_.b.gsb=function(O){this.metrics.gzl.increment(O,this.sj)};
_.b.osl=function(O){this.metrics.p5g.increment(O,this.sj)};
_.b.imI=function(O){this.metrics.ibI.increment(O,this.sj)};
var I0w=function(O,x){x=x===void 0?[]:x;var e={sj:O.sj||"_",omv:O.omv||[],ee6:O.ee6|0,destinationUrl:O.destinationUrl,aLb:O.aLb||function(){},
wCl:O.wCl||function(Q,L){return Pum(Q,L,e.aLb,e.destinationUrl)}},l=e.wCl("51",e.omv.concat(x));
nKk.call(this,{oFU:new qmR(l),errorCount:new VZJ(l),eventCount:new c0p(l),mmq:new Idd(l),r64:new PPD(l),gzl:new pvk(l),p5g:new RWN(l),ibI:new UqJ(l)},e.sj);var C=this;this.TEST_ONLY={getExperimentIds:function(){return C.options.omv.concat(C.dCe).sort(function(Q,L){return Q-L})}};
this.options=e;this.service=l;this.iGU=!O.wCl;this.flushDebouncer=new Kx$(function(){return void C.service.snapshotAndFlush()},e.ee6);
this.addOnDisposeCallback(function(){C.flushDebouncer.dispose();C.iGU&&C.service.dispose()});
(this.dCe=x.slice()).sort(_.rL8)};
_.c(I0w,nKk);I0w.prototype.xL=function(){dDp(this.flushDebouncer)};var r17=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(r17,_.TH);_.HcV=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(_.HcV,_.TH);var a$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,0,a$.messageId)};
_.c(a$,_.TH);var um2=_.Shw(a$);a$.messageId="bfkj";var Nz7=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Nz7,_.TH);var Y0$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Y0$,_.TH);var BzJ=_.Pw(Y0$);_.OA=function(){var O=this;this.promise=new Promise(function(x,e){O.resolve=x;O.reject=e})};_.WF=function(O){_.h0.call(this);var x=this;this.zPF=Math.floor(Math.random()*200);this.r2D=new Y0$;if("challenge"in O&&um2(O.challenge)){var e=_.oK(O.challenge,4,void 0,sT);var l=_.oK(O.challenge,5,void 0,sT);_.oK(O.challenge,7,void 0,sT)&&(this.r2D=BzJ(_.oK(O.challenge,7,void 0,sT)))}else e=O.program,l=O.globalName;this.addOnDisposeCallback(function(){var P,U,W;return _.A(function(z){if(z.nextAddress==1)return z.yield(x.bfD,2);P=z.yieldResult;U=P.u49;(W=U)==null||W();_.Ra(z)})});
this.z6=V3N(O.ikX||{},this.r2D);_.qq(this,this.z6);var C=new _.OA;this.bfD=C.promise;this.z6.h9("t");var Q=this.z6.share(),L=new rZ4(Q,"t"),k=function(P,U,W,z){if(!x.z6.isDisposed()){var r="k";U?r="h":W&&(r="u");r!=="k"?z!==0&&(x.z6.h9(r),x.z6.mB(r,P)):x.zPF<=0?(x.z6.h9(r),x.z6.mB(r,P),x.zPF=Math.floor(Math.random()*200)):x.zPF--}},M=function(P,U,W,z){Promise.resolve().then(function(){L.done();
Q.xL();Q.dispose();C.resolve({rRt:P,u49:U,ogK:W,cJQ:z})})};
if(!_.CV[l])throw this.z6.logError(25),Error("Ca");if(!_.CV[l].a)throw this.z6.logError(26),Error("Da");try{var G=_.CV[l].a;l=[];for(var X=[],y=gKV(this.r2D),Z=0;Z<y.length;Z++)l.push(y[Z]),X.push(1);var E=$Dn(this.r2D);for(y=0;y<E.length;y++)l.push(E[y]),X.push(2);this.jpv=_.T(G(e,M,!0,O.zjO,k,[l,X],_.oK(this.r2D,5),!1)).next().value;this.sIv=C.promise.then(function(){})}catch(P){throw this.z6.logError(28),P;
}};
_.c(_.WF,_.h0);_.WF.prototype.snapshot=function(O){if(this.isDisposed())throw Error("Ea");this.z6.h9("n");var x=this.z6.share();return this.bfD.then(function(e){var l=e.rRt;return new Promise(function(C){var Q=new rZ4(x,"n");l(function(L){Q.done();x.b5z(L.length);x.xL();x.dispose();C(L)},[O.hk,
O.dmY,O.pBo,O.do8])})})};
_.WF.prototype.isX=function(O){this.bfD.then(function(x){var e;(e=x.ogK)==null||e(O)})};
_.WF.prototype.yrY=function(O,x){return this.bfD.then(function(e){var l;return(l=e.cJQ)==null?void 0:l(O,x,!1)})};
_.WF.prototype.yul=function(){return this.z6.share()};var vKp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(vKp,_.TH);var tln=_.Shw(vKp);var fKk=function(){this.promises={};this.zem=null},JZN=function(){fKk.instance||(fKk.instance=new fKk);
return fKk.instance},S0T=function(O,x){return wEL(O,_.y4(x,r17,1,sT),_.y4(x,_.HcV,2,sT),_.oK(x,3,void 0,sT))},wEL=function(O,x,e,l){if(!x&&!e)return Promise.resolve();
if(!l)return mbs(x,e);var C;(C=O.promises)[l]||(C[l]=new Promise(function(Q,L){mbs(x,e).then(function(){O.zem=l;Q()},function(k){delete O.promises[l];
L(k)})}));
return O.promises[l]};var jU$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(jU$,_.TH);var NzN=function(O,x){return _.mz(O,1,x)},gK2=function(O,x){return _.mz(O,2,x)};var hf=function(O){_.h0.call(this);var x=this;this.options=O;this.vlI=new _.OA;this.sIv=this.vlI.promise;this.mGX=new _.OA;this.s5F=1;this.oTy=new _.OA;this.fMy=[];this.kPI=O.kPI||function(){};
this.gVY=new HON(V3N(O.ikX||{}));$DD(this,O.ox,O.j1t,O.pX8,O.bn1,Object.assign({},iOD,O.x3n||{}));this.addOnDisposeCallback(function(){return void ObD(x)})};
_.c(hf,_.h0);hf.prototype.snapshot=function(O){var x=this;return _.A(function(e){switch(e.nextAddress){case 1:if(x.isDisposed())throw Error("Ea");if(x.o8||x.yMm){e.jumpTo(2);break}return e.yield(x.mGX.promise,2);case 2:if(!x.o8){e.jumpTo(4);break}return e.yield(x.o8.snapshot(O),5);case 5:return e.return(e.yieldResult);case 4:throw x.yMm;}})};
var xbR=function(O){var x;return _.A(function(e){if(O.isDisposed())throw Error("Ea");(x=O.cz)!=null&&(x.endTimeMs=0,x.resolver(1));return e.yield(O.oTy.promise,0)})},ObD=function(O){O.yMm=Error("Ga");
O.mGX.resolve();iOn(O.vlI.promise);O.vlI.reject(Error("Ga"));O.gVY.dispose();Promise.all(O.fMy).then(function(){var e;return _.A(function(l){(e=O.o8)==null||e.dispose();O.o8=void 0;_.Ra(l)})});
O.fMy=[];var x;(x=O.cz)!=null&&(x.endTimeMs=0,x.resolver(1));iOn(O.oTy.promise);O.oTy.reject(Error("Ga"))};
hf.prototype.isX=function(O){var x,e;(x=this.o8)==null||(e=x.isX)==null||e.call(x,O)};
hf.prototype.yrY=function(O,x){var e,l,C;return(C=(e=this.o8)==null?void 0:(l=e.yrY)==null?void 0:l.call(e,O,x))!=null?C:Promise.resolve()};
var e5z=function(O,x){var e=O.kPI;O.kPI=function(){e();x()}},l04=function(O,x){O.isDisposed()||(O.o8=x,O.gVY.update(x.yul()),O.mGX.resolve(),O.vlI.resolve(void 0),O.kPI())};
hf.prototype.handleError=function(O){if(!this.isDisposed()){this.yMm=O;this.mGX.resolve();var x,e;(e=(x=this.options).o83)==null||e.call(x,O)}};
var CuT=function(O,x){x&&(Promise.all(O.fMy).then(function(){return void x.dispose()}),O.fMy=[])},za=function(O,x){O.s5F=x;
var e,l;(l=(e=O.options).zGU)==null||l.call(e,x)},QOF=function(O){O.isDisposed()||(O.oTy.resolve(),O.oTy=new _.OA)},$DD=function(O,x,e,l,C,Q){l=l===void 0?JZN():l;
C=C===void 0?Promise.resolve(void 0):C;var L,k,M,G,X,y,Z,E,P,U,W,z;_.A(function(r){switch(r.nextAddress){case 1:return r.yield(0,3);case 3:k=null;if(!L){r.jumpTo(6);break}za(O,7);_.tS(r,7);return r.yield(my(L.snapshot({}),Q.iLo,function(){return Promise.resolve("E:CTO")}),9);
case 9:k=r.yieldResult;_.lb(r,6);break;case 7:_.VP(r),k="E:UCE";case 6:M=void 0,G=L?Q.olg:Q.i0V,X=new Zd(G,Q.glz,Q.wYQ,Q.hB7),y=1;case 10:if(!(y<=Q.maxAttempts)){r.jumpTo(12);break}if(y===1){r.jumpTo(13);break}za(O,0);O.cz=new bbd(X.getValue(),Q.p2U,Q.fio);return r.yield(O.cz.promise,14);case 14:Z=r.yieldResult,O.cz=void 0,Z===1?(y=1,X.reset()):y6d(X);case 13:_.tS(r,15);E=void 0;if(e){E=e;r.jumpTo(17);break}za(O,5);P=l.zem;return r.yield(my(TyT(x,P,k),Q.g5z,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:E=r.yieldResult;case 17:return za(O,3),r.yield(my(S0T(l,E),Q.kUt,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return za(O,8),r.yield(C,20);case 20:return U=new _.WF({challenge:E,ikX:O.options.ikX,zjO:O.options.zjO}),r.yield(my(U.sIv,Q.pjU,function(){return Promise.reject(Error("Ja"))}),21);
case 21:M=U;r.jumpTo(12);break;case 15:W=_.VP(r),O.handleError(W),QOF(O);case 11:y++;r.jumpTo(10);break;case 12:if(O.isDisposed()){r.jumpTo(5);break}M&&(e=void 0,CuT(O,L),L=M,l04(O,M),QOF(O));za(O,2);O.cz=new bbd(Q.wRs,Q.p2U,Q.fio);return r.yield(O.cz.promise,22);case 22:O.cz=void 0;if(O.isDisposed()){r.jumpTo(5);break}r.jumpTo(3);break;case 5:(z=L)==null||z.dispose(),_.Ra(r)}})};
hf.prototype.yul=function(){return this.gVY.share()};
var iOD={wRs:432E5,p2U:3E5,fio:10,iLo:1E4,g5z:3E4,kUt:3E4,pjU:6E4,i0V:1E3,olg:6E4,glz:6E5,wYQ:.25,hB7:2,maxAttempts:10},bbd=function(O,x,e){var l=this;this.endTimeMs=Date.now()+O;this.promise=new Promise(function(Q){l.resolver=Q});
var C=function(){var Q=l.endTimeMs-Date.now();Q<=e?l.resolver(0):setTimeout(C,Math.min(Q,x))};
C()};var LK$,h5N=(LK$=Math.imul)!=null?LK$:function(O,x){return O*x|0},sm=[196,
200,224,18],rF=function(O,x,e){e=e===void 0?[]:e;this.maxItems=O;this.e7=x===void 0?0:x;this.vL=e},kG4=function(O){var x=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!x)return new rF(O);var e=x.split(",");if(e.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rF(O);x=e.slice(1);x.length===1&&x[0]===""&&(x=[]);e=Number(e[0]);return isNaN(e)||e<0||e>x.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rF(O)):new rF(O,e,x)};
rF.prototype.serialize=function(){return String(this.e7)+","+this.vL.join()};
rF.prototype.insert=function(O,x){var e=void 0;if(this.vL[this.e7]!==O){var l=this.vL.indexOf(O);l!==-1?(this.vL.splice(l,1),l<this.e7&&this.e7--,this.vL.splice(this.e7,0,O)):(e=this.vL[this.e7],this.vL[this.e7]=O)}this.e7=(this.e7+1)%this.maxItems;O=sOs("iU5q-!O9@$",this.serialize());e&&O&&x(e);return O};
var AqD=function(O,x){this.eNz=x;try{var e=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(l){e=!1}e&&(this.index=kG4(O))},M3F=function(O,x,e,l,C){var Q=O.index?_.sK(O.eNz,function(){return KKV(O.index,rqi(x),e,l,C)},"W"):"u";
O.eNz.imI(Q)},DbR=function(O,x,e){var l=_.T(O.index?_.sK(O.eNz,function(){return dbL(rqi(x),e)},"R"):["u"]),C=l.next().value;
l=l.next().value;O.eNz.osl(C);return l};var GGF={toString:function(O){var x=[],e=0;O-=-2147483648;x[e++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(O%52);for(O=Math.floor(O/52);O>0;)x[e++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(O%62),O=Math.floor(O/62);return x.join("")}};var oc$=function(O){O=FKz(O);for(var x=2654435769,e=2654435769,l=314159265,C=O.length,Q=C,L=0,k=function(){x-=e;x-=l;x^=l>>>13;e-=l;e-=x;e^=x<<8;l-=x;l-=e;l^=e>>>13;x-=e;x-=l;x^=l>>>12;e-=l;e-=x;e^=x<<16;l-=x;l-=e;l^=e>>>5;x-=e;x-=l;x^=l>>>3;e-=l;e-=x;e^=x<<10;l-=x;l-=e;l^=e>>>15};Q>=12;Q-=12,L+=12)x+=XKd(O,L),e+=XKd(O,L+4),l+=XKd(O,L+8),k();
l+=C;switch(Q){case 11:l+=O[L+10]<<24;case 10:l+=O[L+9]<<16;case 9:l+=O[L+8]<<8;case 8:e+=O[L+7]<<24;case 7:e+=O[L+6]<<16;case 6:e+=O[L+5]<<8;case 5:e+=O[L+4];case 4:x+=O[L+3]<<24;case 3:x+=O[L+2]<<16;case 2:x+=O[L+1]<<8;case 1:x+=O[L]}k();return GGF.toString(l)},FKz=function(O){for(var x=[],e=0;e<O.length;e++)x.push(O.charCodeAt(e));
return x},XKd=function(O,x){return O[x]+(O[x+1]<<8)+(O[x+2]<<16)+(O[x+3]<<24)};var HF=function(O){_.h0.call(this);this.aT=O;this.ykF=new _.OA};
_.c(HF,_.h0);var yqD=function(O,x){var e=setTimeout(function(){O.ykF.resolve()},x);
O.addOnDisposeCallback(function(){return void clearTimeout(e)})};
HF.prototype.g9l=function(O,x){var e=this.iN(O);x==null||x(e);return _.sK(this.aT,function(){return _.zX(e,2)},this.iZD)};
var Zb4=function(O,x,e,l){return _.sK(O.aT,function(){return e?O.g9l(x,l):O.iN(x,l)},O.wQI)},EcL=function(O,x,e,l){HF.call(this,O);
this.tqo=x;this.v9K=e;this.wQI="m";this.iZD="x";this.xY9=0;yqD(this,l)};
_.c(EcL,HF);EcL.prototype.iN=function(O,x){var e=this;this.aT.h9(this.wQI);++this.xY9>=this.v9K&&this.ykF.resolve();var l=O();O=_.sK(this.aT,function(){return e.tqo(l)},"C");
if(O===void 0)throw new xu(17,"YNJ:Undefined");if(!(O instanceof Uint8Array))throw new xu(18,"ODM:Invalid");x==null||x(O);return O};
var t3z=function(O,x,e){HF.call(this,O);this.h0Q=x;this.wQI="f";this.iZD="z";yqD(this,e)};
_.c(t3z,HF);t3z.prototype.iN=function(){return this.h0Q};
var qCN=function(O,x,e){HF.call(this,O);this.jVO=x;this.wQI="w";this.iZD="z";yqD(this,e)};
_.c(qCN,HF);qCN.prototype.iN=function(){var O=this;return _.sK(this.aT,function(){return _.ir(O.jVO)},"d")};
qCN.prototype.g9l=function(){return this.jVO};
var Puz=function(O,x){HF.call(this,O);this.error=x;this.wQI="e";this.iZD="y"};
_.c(Puz,HF);var cqF=function(O,x){var e=(x(O.error.message)+":"+x(O.error.stack)).substring(0,2048);x=e.length+1;e=ncN(e);var l=new Uint8Array(4+e.length);l.set([42,x&127|128,x>>7,O.error.code]);l.set(e,4);return l};
Puz.prototype.iN=function(){if(this.xh8)return this.xh8;this.xh8=cqF(this,function(O){return"_"+oc$(O)});
return cqF(this,function(O){return O})};
var I0$=function(O,x,e){HF.call(this,O);this.uqk=x;this.clientState=e;this.wQI="S";this.iZD="q"};
_.c(I0$,HF);I0$.prototype.iN=function(){var O=Math.floor(Date.now()/1E3),x=[Math.random()*255,Math.random()*255],e=x.concat([this.uqk&255,this.clientState],[O>>24&255,O>>16&255,O>>8&255,O&255]);O=new Uint8Array(2+e.length);O[0]=34;O[1]=e.length;O.set(e,2);e=O.subarray(2);for(var l=x=x.length;l<e.length;++l)e[l]^=e[l%x];this.aT.gsb(this.clientState);return O};var V3R={bEO:3E4,i5l:2E4},Kr=function(O){_.h0.call(this);var x=this;this.fwy=new _.OA;this.j6m=0;this.gY=void 0;this.state=2;this.vm=O.vm;this.ox=O.ox;this.x3n=Object.assign({},V3R,O.x3n||{});this.jz=O.vm.yul();var e;this.onError=(e=O.onError)!=null?e:function(){};
this.oxb=O.oxb||!1;if(pKN(O)){var l=this.vm;this.sdq=function(){return xbR(l).catch(function(L){L=x.reportError(new xu(x.gG?20:32,"TRG:Disposed",L));x.gY=L;var k;(k=x.gG)==null||k.dispose();x.gG=void 0;x.fwy.reject(L)})};
e5z(l,function(){return void R5R(x)});
l.s5F===2&&R5R(this)}else this.sdq=O.s4o,R5R(this);var C=this.jz.share();C.h9("o");var Q=new rZ4(C,"o");this.fwy.promise.then(function(){Q.done();C.xL();C.dispose()},function(){return void C.dispose()});
this.addOnDisposeCallback(function(){x.gG?(x.gG.dispose(),x.gG=void 0):x.gY?x.jz.xL():(x.gY=x.reportError(new xu(32,"TNP:Disposed")),x.jz.xL(),x.fwy.reject(x.gY))});
_.qq(this,this.jz)};
_.c(Kr,_.h0);Kr.prototype.jIY=function(){return this.fwy.promise};
var Ub3=function(O,x){if(!(x instanceof xu))if(x instanceof _.pr){var e=Error(x.toString());e.stack=x.stack;x=new xu(11,"EBH:Error",e)}else x=new xu(12,"BSO:Unknown",x);return O.reportError(x)},R5R=function(O){var x,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U;
return _.A(function(W){switch(W.nextAddress){case 1:x=void 0;O.j6m++;e=new _.OA;O.vm instanceof hf&&O.vm.fMy.push(e.promise);if(!O.oxb){W.jumpTo(2);break}l=new _.OA;setTimeout(function(){return void l.resolve()});
return W.yield(l.promise,2);case 2:return C=O.jz.share(),_.tS(W,4,5),O.state=5,Q={},L=[],W.yield(my(O.vm.snapshot({hk:Q,pBo:L}),O.x3n.i5l,function(){return Promise.reject(new xu(15,"MDA:Timeout"))}),7);
case 7:k=W.yieldResult;if(O.isDisposed())throw new xu(O.gG?20:32,"MDA:Disposed");M=L[0];O.state=6;return W.yield(my(a0T(O.ox,k),O.x3n.bEO,function(){return Promise.reject(new xu(10,"BWB:Timeout"))}),8);
case 8:G=W.yieldResult;if(O.isDisposed())throw new xu(O.gG?20:32,"BWB:Disposed");O.state=7;x=_.sK(C,function(){var r=mbL(O,G,e,M);r.ykF.promise.then(function(){return void O.sdq()});
return r},"i");
case 5:_.PO(W);C.dispose();_.Ia(W,6);break;case 4:X=_.VP(W);(y=x)==null||y.dispose();if(!O.gY){Z=Ub3(O,X);e.resolve();var z;if(z=O.vm instanceof hf&&O.j6m<2)a:if(X instanceof xu)z=X.code!==32&&X.code!==20&&X.code!==10;else{if(X instanceof _.pr)switch(X.code){case 2:case 13:case 14:case 4:break;default:z=!1;break a}z=!0}if(z)return E=(1+Math.random()*.25)*(O.gG?6E4:1E3),P=setTimeout(function(){return void O.sdq()},E),O.addOnDisposeCallback(function(){return void clearTimeout(P)}),W.return();
O.gY=Z}C.logError(O.gG?13:14);O.fwy.reject(O.gY);return W.return();case 6:O.state=8,O.j6m=0,(U=O.gG)==null||U.dispose(),O.gG=x,O.fwy.resolve(),_.Ra(W)}})},mbL=function(O,x,e,l){var C=Gpp(x,2)*1E3;
if(C<=0)throw new xu(31,"TTM:Invalid");if(_.oK(x,4))return new qCN(O.jz,_.oK(x,4),C);if(!Gpp(x,3))return new t3z(O.jz,N73(_.TB(x,1)),C);if(!l)throw new xu(4,"PMD:Undefined");l=l(N73(_.TB(x,1)));if(!(l instanceof Function))throw new xu(16,"APF:Failed");O.anY=Math.floor((Date.now()+C)/1E3);O=new EcL(O.jz,l,Gpp(x,3),C);O.addOnDisposeCallback(function(){return void e.resolve()});
return O};
Kr.prototype.iN=function(O){return sOL(this,Object.assign({},O),!1)};
Kr.prototype.g9l=function(O){return sOL(this,Object.assign({},O),!0)};
Kr.prototype.dem=function(O){if(O>150)return!1;try{return this.cache=new AqD(O,this.jz),!0}catch(x){return this.reportError(new xu(22,"GBJ:init",x)),!1}};
Kr.prototype.reportError=function(O){this.jz.logError(O.code);this.onError(O);return O};
var WKT=function(O,x){x=x instanceof xu?x:new xu(5,"TVD:error",x);return O.reportError(x)},sOL=function(O,x,e){try{if(O.isDisposed())throw new xu(21,"BNT:disposed");
if(!O.gG&&O.gY)throw O.gY;var l,C;return(C=(l=h5R(O,x,e))!=null?l:z5d(O,x,e))!=null?C:rqd(O,x,e)}catch(Q){if(!x.gQl)throw WKT(O,Q);return Hb3(O,e,Q)}},h5R=function(O,x,e){var l;
return(l=O.gG)==null?void 0:Zb4(l,function(){return KK2(O,x)},e,function(C){var Q;
if(O.gG instanceof EcL&&((Q=x.bk)==null?0:Q.b1V))try{var L;(L=O.cache)==null||M3F(L,KK2(O,x),C,x.bk.x7z,O.anY-120)}catch(k){O.reportError(new xu(24,"ELX:write",k))}})},z5d=function(O,x,e){var l;
if((l=x.bk)!=null&&l.zql)try{var C,Q=(C=O.cache)==null?void 0:DbR(C,KK2(O,x),x.bk.x7z);return Q?e?_.sK(O.jz,function(){return _.zX(Q,2)},"a"):Q:void 0}catch(L){O.reportError(new xu(23,"RXO:read",L))}},rqd=function(O,x,e){var l={stack:[],
error:void 0,hasError:!1};try{if(!x.i1q)throw new xu(29,"SDF:notready");return Zb4(gDr(l,new I0$(O.jz,0,O.state)),function(){return KK2(O,x)},e)}catch(C){l.error=C,l.hasError=!0}finally{$1m(l)}},Hb3=function(O,x,e){var l={stack:[],
error:void 0,hasError:!1};try{var C=WKT(O,e);return Zb4(gDr(l,new Puz(O.jz,C)),function(){return[]},x)}catch(Q){l.error=Q,l.hasError=!0}finally{$1m(l)}},KK2=function(O,x){return x.yHI?x.yHI:x.hk?_.sK(O.jz,function(){return x.yHI=ncN(x.hk)},"c"):[]},pKN=function(O){return hJ(function(x){if(!F1(x))return!1;
for(var e=_.T(Object.entries(O)),l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;if(!(l in x)){if(C.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!C(x[l]))return!1}return!0})}({vm:function(O){return hJ(function(x){return x instanceof O})}(hf)},"");var db3=function(){var O=_.Nc();this.JSC$9909_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",FF("cookie_enabled"),FF("cookie_3p_enabled"),_.o9("browser"))};
db3.prototype.increment=function(O,x,e){this.JSC$9909_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",O,x,e)};
var ovV=function(){var O=_.Nc();this.JSC$9933_streamzService=O;O.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",XF("tick"),FF("from_st_cookie"))};
ovV.prototype.increment=function(O,x){this.JSC$9933_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",O,x)};
var ncR=function(){var O=_.Nc();this.JSC$9939_streamzService=O;O.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.o9("status"))};
ncR.prototype.increment=function(O){this.JSC$9939_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",O)};
var ucz=function(){var O=_.Nc();this.JSC$9942_streamzService=O;O.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.o9("stage"),FF("is_using_ytd_player"),FF("has_expandable_tiles"))};
ucz.prototype.increment=function(O,x,e){this.JSC$9942_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",O,x,e)};
var YCT=function(){var O=_.Nc();this.JSC$9945_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/response_signature",_.o9("check_status"))};
YCT.prototype.increment=function(O){this.JSC$9945_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/response_signature",O)};
var ByJ=function(){var O=_.Nc();this.JSC$9948_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.o9("sig"),XF("de"))};
ByJ.prototype.increment=function(O,x){this.JSC$9948_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/e_sig_log",O,x)};
var vc3=function(){var O=_.Nc();this.JSC$9951_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.o9("sig"),XF("de"))};
vc3.prototype.increment=function(O,x){this.JSC$9951_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/e_sig_en",O,x)};
_.f0L=function(){var O=_.Nc();this.JSC$9954_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.o9("action"))};
_.f0L.prototype.increment=function(O){this.JSC$9954_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/enforcement_intent",O)};var dF=window;var Jqd=(new Date).getTime();_.HX.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.HX.createSet("action","cite","data","formaction","href","manifest","poster","src");var wKR=function(O){this.servicePromise_=O;O.then((0,_.z8)(function(){},this),function(){},this)},SC$=function(O,x,e){O.servicePromise_.then(function(l){var C=l[x];
if(!C)throw Error("Ka`"+x);return C.apply(l,e)})},gc2=function(O,x,e){for(var l=Array(arguments.length-2),C=2;C<arguments.length;C++)l[C-2]=arguments[C];
C=jOJ(O,x).then(function(Q){return Q.apply(null,l)},function(Q){Q=Error("La`"+x+"`"+O+"`"+Q,{cause:Q});
delete NyD[x];return _.Za(Q)});
return new wKR(C)},NyD={},jOJ=function(O,x){var e=NyD[x];
if(e)return e;e=(e=_.i8(x))?_.$7(e):(new _.If(function(l,C){var Q=(new tl(document)).createElement("SCRIPT");Q.async=!0;_.QP(Q,_.aS(JSN(O)));Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||l()};
Q.onerror=function(L){C(Error("Ma`"+x+"`"+O,{cause:L}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(Q)})).then(function(){var l=_.i8(x);
if(!l)throw Error("Na`"+x+"`"+O);return l});
return NyD[x]=e};var $bd={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},O$k=function(){var O=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ucm(function(){return _.A(function(x){if(x.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?x.return(Promise.resolve()):x.yield(ib$(O),2);O.rsaForList.length>
0&&document.addEventListener("click",O.requestAccessForHelpPanel);_.Ra(x)})});
this.requestAccessForHelpPanel=function(){if(!(O.rsaForPromises.length>0)){for(var x=_.T(O.rsaForList),e=x.next();!e.done;e=x.next()){e=e.value;try{O.rsaForPromises.push(document.requestStorageAccessFor(e))}catch(l){}}Promise.all(O.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){O.reset()})}}};
O$k.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var ib$=function(O){var x,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:x=_.T(Object.values($bd)),e=x.next();case 2:if(e.done){Q.jumpTo(0);break}l=e.value;_.tS(Q,5);return Q.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:l}),7);case 7:C=Q.yieldResult;C.state!=="granted"&&O.rsaForList.push(l);_.lb(Q,3);break;case 5:_.VP(Q);Q.jumpTo(0);break;case 3:e=x.next(),Q.jumpTo(2)}})};(new O$k).initialize();var xB4=function(O){this.JSC$9968_loader_=O};
xB4.prototype.startHelp=function(O){SC$(this.JSC$9968_loader_,"startHelp",arguments)};
xB4.prototype.JSC$9970_loadChatSupport=function(O){SC$(this.JSC$9968_loader_,"loadChatSupport",arguments)};
var lGT=function(O,x){x=x||{};O=gc2(exF,"help.service.Lazy.create",O,{apiKey:x.apiKey||x.apiKey,asxUiUri:x.asxUiUri||x.asxUiUri,environment:x.environment||x.environment,flow:x.flow||x.flow,frdProductData:x.frdProductData||x.frdProductData,frdProductDataSerializedJspb:x.frdProductDataSerializedJspb||x.frdProductDataSerializedJspb,helpCenterPath:x.helpCenterPath||x.helpCenterPath,locale:x.locale||x.locale||"en-US".replace(/-/g,"_"),nonce:x.nonce||x.nonce,productData:x.productData||x.productData,receiverUri:x.receiverUri||
x.receiverUri,renderApiUri:x.renderApiUri||x.renderApiUri,theme:x.theme||x.theme,window:x.window||x.window});return new xB4(O)},exF=new wl(wew,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Cb2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Cb2,_.TH);var QCk=_.Pw(Cb2);var b$z=[0,_.n0,WM,eON];_.TDD=new function(O,x,e,l){this.configType=O;this.flagName=e;this.defaultValue=l;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 kCF=function(){this.retriever=_.GG().resolve(LQd)};_.nM={get payments(){return window.payments}};ByL(Node);ByL(Element);var ANz=ByL(HTMLElement);ByL(SVGElement);var MCp,DBk,Yu,GCd;MCp=function(O){return typeof O.className=="string"?O.className:O.getAttribute&&O.getAttribute("class")||""};
DBk=function(O){return O.classList?O.classList:MCp(O).match(/\S+/g)||[]};
_.nr=function(O,x){typeof O.className=="string"?O.className=x:O.setAttribute&&O.setAttribute("class",x)};
_.ue=function(O,x){return O.classList?O.classList.contains(x):_.ur(DBk(O),x)};
_.uV=function(O,x){if(O.classList)O.classList.add(x);else if(!_.ue(O,x)){var e=MCp(O);_.nr(O,e+(e.length>0?" "+x:x))}};
Yu=function(O,x){if(O.classList)Array.prototype.forEach.call(x,function(C){_.uV(O,C)});
else{var e={};Array.prototype.forEach.call(DBk(O),function(C){e[C]=!0});
Array.prototype.forEach.call(x,function(C){e[C]=!0});
x="";for(var l in e)x+=x.length>0?" "+l:l;_.nr(O,x)}};
_.dP=function(O,x){O.classList?O.classList.remove(x):_.ue(O,x)&&_.nr(O,Array.prototype.filter.call(DBk(O),function(e){return e!=x}).join(" "))};
GCd=function(O,x){O.classList?Array.prototype.forEach.call(x,function(e){_.dP(O,e)}):_.nr(O,Array.prototype.filter.call(DBk(O),function(e){return!_.ur(x,e)}).join(" "))};var FQp=function(O){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=O.document},yN$=function(O,x){Xnz(O);
var e=document.createElement("div"),l;(l=x.parentNode)==null||l.insertBefore(e,x);e.tabIndex=0;e.id="fc-focus-trap-pre-div";e=document.createElement("div");var C;(C=x.parentNode)==null||C.insertBefore(e,x.nextSibling);e.tabIndex=0;e.id="fc-focus-trap-post-div";var Q=oCd(O,x),L=oCd(O,x,!0);Q&&L&&(O.focusChangeHandler=function(){var k=O.document.activeElement;if(k)if(_.$8(x,k))O.previouslyFocusedElement=k;else if(k===O.document.activeElement)switch(O.previouslyFocusedElement){case Q:L.focus();O.previouslyFocusedElement=
L;break;default:Q.focus(),O.previouslyFocusedElement=Q}},O.document.addEventListener("focus",O.focusChangeHandler,!0),O.document.addEventListener("focusin",O.focusChangeHandler))},Xnz=function(O){O.focusChangeHandler&&(document.removeEventListener("focus",O.focusChangeHandler,!0),document.removeEventListener("focusin",O.focusChangeHandler),O.focusChangeHandler=null);
var x;(x=document.getElementById("fc-focus-trap-pre-div"))==null||x.remove();var e;(e=document.getElementById("fc-focus-trap-post-div"))==null||e.remove()},Z$J=function(O,x,e,l,C){e=e===void 0?!0:e;
var Q;C=(Q=C===void 0?null:C)!=null?Q:oCd(O,x,l===void 0?!1:l);C!==null&&(C.focus(),e&&yN$(O,x))};
FQp.prototype.disableButton=function(O,x){x=x===void 0?null:x;O.disabled=!0;x&&_.uV(O,x)};
var oCd=function(O,x,e){e=e===void 0?!1:e;if(Mf$(x)&&!e)return x;var l=e?[].slice.call(x.children,0).reverse():x.children;l=_.T(l);for(var C=l.next();!C.done;C=l.next())if(C=C.value,ANz(C)&&(C=oCd(O,C,e)))return C;return Mf$(x)&&e?x:null};var ECF=function(O){this.originalBodyOverflow="";this.JSC$9995_domHelper=an(O)};
ECF.prototype.enableScrolling=function(){this.JSC$9995_domHelper.JSC$9321_document_.body.style.overflow=this.originalBodyOverflow};_.fI(_.ro,_.h0);_.b=_.ro.prototype;_.b.JSC$9998_id_=0;_.b.disposeInternal=function(){_.ro.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9996_listener_;delete this.handler_};
_.b.start=function(O){this.stop();this.JSC$9998_id_=VK(this.callback_,O!==void 0?O:this.JSC$9996_interval_)};
_.b.stop=function(){this.isActive()&&_.CV.clearTimeout(this.JSC$9998_id_);this.JSC$9998_id_=0};
_.b.fire=function(){this.stop();this.JSC$9998_doAction_()};
_.b.isActive=function(){return this.JSC$9998_id_!=0};
_.b.JSC$9998_doAction_=function(){this.JSC$9998_id_=0;this.JSC$9996_listener_&&this.JSC$9996_listener_.call(this.handler_)};_.Ev=function(O){_.h0.call(this);this.handler_=O;this.JSC$9999_keys_={}};
_.fI(_.Ev,_.h0);var tC4=[];_.Ev.prototype.listen=function(O,x,e,l){Array.isArray(x)||(x&&(tC4[0]=x.toString()),x=tC4);for(var C=0;C<x.length;C++){var Q=_.ol(O,x[C],e||this.handleEvent,l||!1,this.handler_||this);if(!Q)break;this.JSC$9999_keys_[Q.key]=Q}return this};
_.Ev.prototype.listenOnce=function(O,x,e,l){return qY3(this,O,x,e,l)};
var qY3=function(O,x,e,l,C,Q){if(Array.isArray(e))for(var L=0;L<e.length;L++)qY3(O,x,e[L],l,C,Q);else{x=Da(x,e,l||O.handleEvent,C,Q||O.handler_||O);if(!x)return O;O.JSC$9999_keys_[x.key]=x}return O};
_.Ev.prototype.unlisten=function(O,x,e,l,C){if(Array.isArray(x))for(var Q=0;Q<x.length;Q++)this.unlisten(O,x[Q],e,l,C);else if(O=fep(O,x,e||this.handleEvent,_.w7(l)?!!l.capture:!!l,C||this.handler_||this))GO(O),delete this.JSC$9999_keys_[O.key];return this};
_.Ev.prototype.removeAll=function(){_.HX.forEach(this.JSC$9999_keys_,function(O,x){this.JSC$9999_keys_.hasOwnProperty(x)&&GO(O)},this);
this.JSC$9999_keys_={}};
_.Ev.prototype.disposeInternal=function(){_.Ev.superClass_.disposeInternal.call(this);this.removeAll()};
_.Ev.prototype.handleEvent=function(){throw Error("Oa");};var BF=function(){_.h0.call(this);this.services_={}};
_.fI(BF,_.h0);BF.prototype.connect=function(O){O&&O()};
BF.prototype.isConnected=function(){return!0};
BF.prototype.registerService=function(O,x,e){this.services_[O]={callback:x,objectPayload:!!e}};
BF.prototype.getService=function(O,x){var e=this.services_[O];return e?e:this.defaultService_?{callback:_.b_(this.defaultService_,O),objectPayload:_.w7(x)}:null};
var Pb$=function(O,x){if(x&&typeof O==="string")try{return JSON.parse(O)}catch(e){return null}else if(!x&&typeof O!=="string")return(0,_.Rj)(O);return O};
BF.prototype.disposeInternal=function(){BF.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 fr=function(O,x){this.sequence_=[];this.onCancelFunction_=O;this.defaultScope_=x||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};
fr.prototype.cancel=function(O){if(this.fired_)this.result_ instanceof fr&&this.result_.cancel();else{if(this.parent_){var x=this.parent_;delete this.parent_;O?x.cancel(O):(x.branches_--,x.branches_<=0&&x.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Jf(this))}};
fr.prototype.continue_=function(O,x){this.blocked_=!1;cNp(this,O,x)};
var cNp=function(O,x,e){O.fired_=!0;O.result_=e;O.hadError_=!x;IGT(O)},pnF=function(O){if(O.fired_){if(!O.silentlyCanceled_)throw new VCd(O);
O.silentlyCanceled_=!1}};
fr.prototype.callback=function(O){pnF(this);cNp(this,!0,O)};
fr.prototype.errback=function(O){pnF(this);cNp(this,!1,O)};
var RxR=function(O,x,e){wF(O,x,null,e)};
fr.prototype.finally=function(O){var x=this;return UBp(new Promise(function(e,l){wF(x,function(C){O();e(C)},function(C){O();
l(C)})}))};
var wF=function(O,x,e,l){var C=O.fired_;C||(x===e?x=e=qZ(x):(x=qZ(x),e=qZ(e)));O.sequence_.push([x,e,l]);C&&IGT(O)};
fr.prototype.then=function(O,x,e){var l,C,Q=new _.If(function(L,k){C=L;l=k});
wF(this,C,function(L){L instanceof Jf?Q.cancel():l(L);return aGD},this);
return Q.then(O,x,e)};
iek(fr);var mBp=function(O,x){x instanceof fr?RxR(O,(0,_.z8)(x.branch,x)):RxR(O,function(){return x})};
fr.prototype.branch=function(O){var x=new fr;wF(this,x.callback,x.errback,x);O&&(x.parent_=this,this.branches_++);return x};
fr.prototype.isError=function(O){return O instanceof Error};
var sC4=function(O){return Ct(O.sequence_,function(x){return typeof x[1]==="function"})},aGD={},IGT=function(O){if(O.unhandledErrorId_&&O.fired_&&sC4(O)){var x=O.unhandledErrorId_,e=WQD[x];
e&&(_.CV.clearTimeout(e.JSC$10016_id_),delete WQD[x]);O.unhandledErrorId_=0}O.parent_&&(O.parent_.branches_--,delete O.parent_);x=O.result_;for(var l=e=!1;O.sequence_.length&&!O.blocked_;){var C=O.sequence_.shift(),Q=C[0],L=C[1];C=C[2];if(Q=O.hadError_?L:Q)try{var k=Q.call(C||O.defaultScope_,x);k===aGD&&(k=void 0);k!==void 0&&(O.hadError_=O.hadError_&&(k==x||O.isError(k)),O.result_=x=k);if(OO2(x)||typeof _.CV.Promise==="function"&&x instanceof _.CV.Promise)l=!0,O.blocked_=!0}catch(M){x=M,O.hadError_=
!0,sC4(O)||(e=!0)}}O.result_=x;l&&(k=(0,_.z8)(O.continue_,O,!0),l=(0,_.z8)(O.continue_,O,!1),x instanceof fr?(wF(x,k,l),x.blocking_=!0):x.then(k,l));e&&(x=new hxT(x),WQD[x.JSC$10016_id_]=x,O.unhandledErrorId_=x.JSC$10016_id_)},UBp=function(O){var x=new fr;
O.then(function(e){x.callback(e)},function(e){x.errback(e)});
return x},VCd=function(){_.ew.call(this)};
_.fI(VCd,_.ew);VCd.prototype.message="Deferred has already fired";VCd.prototype.name="AlreadyCalledError";var Jf=function(){_.ew.call(this)};
_.fI(Jf,_.ew);Jf.prototype.message="Deferred was canceled";Jf.prototype.name="CanceledError";var hxT=function(O){this.JSC$10016_id_=_.CV.setTimeout((0,_.z8)(this.throwError,this),0);this.JSC$10016_error_=O};
hxT.prototype.throwError=function(){delete WQD[this.JSC$10016_id_];throw this.JSC$10016_error_;};
var WQD={};var zx3={1:"NativeMessagingTransport"},rNF=["pu","lru","pru","lpu","ppu"],KQd=function(){for(var O=10,x=H$4,e=x.length,l="";O-- >0;)l+=x.charAt(Math.floor(Math.random()*e));return l},H$4="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Sd=function(O){_.h0.call(this);this.JSC$10019_domHelper_=O||an()};
_.fI(Sd,_.h0);Sd.prototype.transportType=0;Sd.prototype.getWindow=function(){return this.JSC$10019_domHelper_.getWindow()};
Sd.prototype.getName=function(){return zx3[String(this.transportType)]||""};var jd=function(O,x,e,l,C){Sd.call(this,e);this.JSC$10022_channel_=O;this.protocolVersion_=C||2;this.peerHostname_=x||"*";this.JSC$10022_eventHandler_=new _.Ev(this);this.maybeAttemptToConnectTimer_=new _.Zy(100,this.getWindow());this.oneSidedHandshake_=!!l;this.setupAckReceived_=new fr;this.setupAckSent_=new fr;this.JSC$10022_connected_=new fr;this.endpointId_=KQd();this.peerEndpointId_=null;this.oneSidedHandshake_?dB4(this.JSC$10022_channel_)==1?mBp(this.JSC$10022_connected_,this.setupAckReceived_):
mBp(this.JSC$10022_connected_,this.setupAckSent_):(mBp(this.JSC$10022_connected_,this.setupAckReceived_),this.protocolVersion_==2&&mBp(this.JSC$10022_connected_,this.setupAckSent_));RxR(this.JSC$10022_connected_,this.notifyConnected_,this);this.JSC$10022_connected_.callback(!0);this.JSC$10022_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.fI(jd,Sd);jd.prototype.peerProtocolVersion_=null;jd.prototype.initialized_=!1;jd.prototype.transportType=1;var nCT={};jd.prototype.sendTimerId_=0;
var BDR=function(O){var x=O.event_.data;if(typeof x!=="string")return!1;var e=x.indexOf("|"),l=x.indexOf(":");if(e==-1||l==-1)return!1;var C=x.substring(0,e);e=x.substring(e+1,l);x=x.substring(l+1);if(l=NZ[C])return l.xpcDeliver(e,x,O.event_.origin),!0;l=u2d(x)[0];for(var Q in NZ){var L=NZ[Q];if(dB4(L)==1&&!L.isConnected()&&e=="tp"&&(l=="SETUP"||l=="SETUP_NTPV2")&&YYN(L,O.event_.origin))return delete NZ[L.name],L.name=C,NZ[C]=L,L.xpcDeliver(e,x),!0}return!1},vC3=function(O){O.protocolVersion_!=2||
O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=2||O.send("tp","SETUP_NTPV2,"+O.endpointId_);
O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=1||O.send("tp","SETUP")},fG3=function(O,x){if(O.protocolVersion_!=2||O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=2||x!=2){if(O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=1||x!=1)return;
O.send("tp","SETUP_ACK")}else O.send("tp","SETUP_ACK_NTPV2");O.setupAckSent_.fired_||O.setupAckSent_.callback(!0)},JNF=function(O,x){x>O.peerProtocolVersion_&&(O.peerProtocolVersion_=x);
O.peerProtocolVersion_==1&&(O.setupAckSent_.fired_||O.oneSidedHandshake_||O.setupAckSent_.callback(!0),O.peerEndpointId_=null)};
_.b=jd.prototype;_.b.connect=function(){var O=this.getWindow(),x=_.N$(O),e=nCT[x];typeof e!=="number"&&(e=0);e==0&&_.ol(O.postMessage?O:O.document,"message",BDR,!1,jd);nCT[x]=e+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.b.maybeAttemptToConnect_=function(){var O=dB4(this.JSC$10022_channel_)==0;this.oneSidedHandshake_&&O||this.JSC$10022_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),vC3(this))};
_.b.send=function(O,x){var e=this.JSC$10022_channel_.peerWindowObject_;e&&(this.send=function(l,C){var Q=this,L=this.JSC$10022_channel_.name;this.sendTimerId_=VK(function(){Q.sendTimerId_=0;try{var k=e.postMessage?e:e.document;k.postMessage&&k.postMessage(L+"|"+l+":"+C,Q.peerHostname_)}catch(M){}},0)},this.send(O,x))};
_.b.notifyConnected_=function(){var O=this.JSC$10022_channel_,x=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;O.isConnected()||O.connectionDelay_&&O.connectionDelay_.isActive()||(O.state_=2,_.Lf(O.connectionDelay_),x!==void 0?(O.connectionDelay_=new _.ro(O.connectCb_,x),O.connectionDelay_.start()):(O.connectionDelay_=null,O.connectCb_()))};
_.b.disposeInternal=function(){if(this.initialized_){var O=this.getWindow(),x=_.N$(O),e=nCT[x];nCT[x]=e-1;e==1&&_.EK(O.postMessage?O:O.document,"message",BDR,!1,jd)}this.sendTimerId_&&(_.CV.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Lf(this.JSC$10022_eventHandler_);delete this.JSC$10022_eventHandler_;_.Lf(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10022_connected_.cancel();delete this.JSC$10022_connected_;delete this.send;jd.superClass_.disposeInternal.call(this)};
var u2d=function(O){O=O.split(",");O[1]=O[1]||null;return O};var SYT;_.gF=function(O){if(O.getValues&&typeof O.getValues=="function")return O.getValues();if(typeof Map!=="undefined"&&O instanceof Map||typeof Set!=="undefined"&&O instanceof Set)return Array.from(O.values());if(typeof O==="string")return O.split("");if(_.vi(O)){for(var x=[],e=O.length,l=0;l<e;l++)x.push(O[l]);return x}return _.HX.getValues(O)};
_.wnd=function(O){if(O.getKeys&&typeof O.getKeys=="function")return O.getKeys();if(!O.getValues||typeof O.getValues!="function"){if(typeof Map!=="undefined"&&O instanceof Map)return Array.from(O.keys());if(!(typeof Set!=="undefined"&&O instanceof Set)){if(_.vi(O)||typeof O==="string"){var x=[];O=O.length;for(var e=0;e<O;e++)x.push(e);return x}return _.HX.getKeys(O)}}};
SYT=function(O,x,e){if(O.forEach&&typeof O.forEach=="function")O.forEach(x,e);else if(_.vi(O)||typeof O==="string")Array.prototype.forEach.call(O,x,e);else for(var l=_.wnd(O),C=_.gF(O),Q=C.length,L=0;L<Q;L++)x.call(e,C[L],l&&l[L],O)};var tVs,Cy,bR,xuk,jC4,gCJ,ND3,Otk,$BJ;
_.K1=function(O,x){this.JSC$10027_domain_=this.userInfo_=this.scheme_="";this.JSC$10027_port_=null;this.fragment_=this.JSC$10027_path_="";this.JSC$10027_ignoreCase_=!1;var e;O instanceof _.K1?(this.JSC$10027_ignoreCase_=x!==void 0?x:O.JSC$10027_ignoreCase_,_.$u(this,O.scheme_),this.userInfo_=O.userInfo_,_.ie(this,O.JSC$10027_domain_),_.OS(this,O.JSC$10027_port_),_.xx(this,O.getPath()),_.ev(this,O.JSC$10027_queryData_.clone()),_.lR(this,O.fragment_)):O&&(e=_.TG(String(O)))?(this.JSC$10027_ignoreCase_=
!!x,_.$u(this,e[1]||"",!0),this.userInfo_=Cy(e[2]||""),_.ie(this,e[3]||"",!0),_.OS(this,e[4]),_.xx(this,e[5]||"",!0),_.ev(this,e[6]||"",!0),_.lR(this,e[7]||"",!0)):(this.JSC$10027_ignoreCase_=!!x,this.JSC$10027_queryData_=new _.QL(null,this.JSC$10027_ignoreCase_))};
_.K1.prototype.toString=function(){var O=[],x=this.scheme_;x&&O.push(bR(x,jC4,!0),":");var e=this.JSC$10027_domain_;if(e||x=="file")O.push("//"),(x=this.userInfo_)&&O.push(bR(x,jC4,!0),"@"),O.push(_.xc(e).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e=this.JSC$10027_port_,e!=null&&O.push(":",String(e));if(e=this.getPath())this.JSC$10027_domain_&&e.charAt(0)!="/"&&O.push("/"),O.push(bR(e,e.charAt(0)=="/"?ND3:gCJ,!0));(e=this.JSC$10027_queryData_.toString())&&O.push("?",e);(e=this.fragment_)&&O.push("#",
bR(e,$BJ));return O.join("")};
_.K1.prototype.resolve=function(O){var x=this.clone(),e=!!O.scheme_;e?_.$u(x,O.scheme_):e=!!O.userInfo_;e?x.userInfo_=O.userInfo_:e=!!O.JSC$10027_domain_;e?_.ie(x,O.JSC$10027_domain_):e=O.JSC$10027_port_!=null;var l=O.getPath();if(e)_.OS(x,O.JSC$10027_port_);else if(e=!!O.JSC$10027_path_){if(l.charAt(0)!="/")if(this.JSC$10027_domain_&&!this.JSC$10027_path_)l="/"+l;else{var C=x.getPath().lastIndexOf("/");C!=-1&&(l=x.getPath().slice(0,C+1)+l)}C=l;if(C==".."||C==".")l="";else if(_.M$(C,"./")||_.M$(C,
"/.")){l=_.br(C,"/");C=C.split("/");for(var Q=[],L=0;L<C.length;){var k=C[L++];k=="."?l&&L==C.length&&Q.push(""):k==".."?((Q.length>1||Q.length==1&&Q[0]!="")&&Q.pop(),l&&L==C.length&&Q.push("")):(Q.push(k),l=!0)}l=Q.join("/")}else l=C}e?_.xx(x,l):e=O.JSC$10027_queryData_.toString()!=="";e?_.ev(x,O.JSC$10027_queryData_.clone()):e=!!O.fragment_;e&&_.lR(x,O.fragment_);return x};
_.K1.prototype.clone=function(){return new _.K1(this)};
_.$u=function(O,x,e){O.scheme_=e?Cy(x,!0):x;O.scheme_&&(O.scheme_=O.scheme_.replace(/:$/,""));return O};
_.ie=function(O,x,e){O.JSC$10027_domain_=e?Cy(x,!0):x;return O};
_.OS=function(O,x){if(x){x=Number(x);if(isNaN(x)||x<0)throw Error("Pa`"+x);O.JSC$10027_port_=x}else O.JSC$10027_port_=null;return O};
_.K1.prototype.getPath=function(){return this.JSC$10027_path_};
_.xx=function(O,x,e){O.JSC$10027_path_=e?Cy(x,!0):x;return O};
_.ev=function(O,x,e){x instanceof _.QL?(O.JSC$10027_queryData_=x,i$3(O.JSC$10027_queryData_,O.JSC$10027_ignoreCase_)):(e||(x=bR(x,Otk)),O.JSC$10027_queryData_=new _.QL(x,O.JSC$10027_ignoreCase_));return O};
_.lo=function(O,x,e){O.JSC$10027_queryData_.set(x,e);return O};
_.ej=function(O,x){return O.JSC$10027_queryData_.get(x)};
_.lR=function(O,x,e){O.fragment_=e?Cy(x):x;return O};
_.T5=function(O){_.lo(O,"zx",Of());return O};
_.xO=function(O,x){return O instanceof _.K1?O.clone():new _.K1(O,x)};
tVs=function(O,x){O instanceof _.K1||(O=_.xO(O));x instanceof _.K1||(x=_.xO(x));return O.resolve(x)};
Cy=function(O,x){return O?x?decodeURI(O.replace(/%25/g,"%2525")):decodeURIComponent(O):""};
bR=function(O,x,e){return typeof O==="string"?(O=encodeURI(O).replace(x,xuk),e&&(O=O.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O):null};
xuk=function(O){O=O.charCodeAt(0);return"%"+(O>>4&15).toString(16)+(O&15).toString(16)};
jC4=/[#\/\?@]/g;gCJ=/[#\?:]/g;ND3=/[#\?]/g;Otk=/[#\?@]/g;$BJ=/#/g;_.QL=function(O,x){this.count_=this.keyMap_=null;this.encodedQuery_=O||null;this.JSC$10028_ignoreCase_=!!x};
_.Ly=function(O){O.keyMap_||(O.keyMap_=new Map,O.count_=0,O.encodedQuery_&&BcD(O.encodedQuery_,function(x,e){O.add(Mb(x),e)}))};
_.b=_.QL.prototype;_.b.getCount=function(){_.Ly(this);return this.count_};
_.b.add=function(O,x){_.Ly(this);this.encodedQuery_=null;O=kx(this,O);var e=this.keyMap_.get(O);e||this.keyMap_.set(O,e=[]);e.push(x);this.count_+=1;return this};
_.b.remove=function(O){_.Ly(this);O=kx(this,O);return this.keyMap_.has(O)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(O).length,this.keyMap_.delete(O)):!1};
_.b.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.b.isEmpty=function(){_.Ly(this);return this.count_==0};
_.b.containsKey=function(O){_.Ly(this);O=kx(this,O);return this.keyMap_.has(O)};
_.b.containsValue=function(O){var x=this.getValues();return _.ur(x,O)};
_.b.forEach=function(O,x){_.Ly(this);this.keyMap_.forEach(function(e,l){e.forEach(function(C){O.call(x,C,l,this)},this)},this)};
_.b.getKeys=function(){_.Ly(this);for(var O=Array.from(this.keyMap_.values()),x=Array.from(this.keyMap_.keys()),e=[],l=0;l<x.length;l++)for(var C=O[l],Q=0;Q<C.length;Q++)e.push(x[l]);return e};
_.b.getValues=function(O){_.Ly(this);var x=[];if(typeof O==="string")this.containsKey(O)&&(x=x.concat(this.keyMap_.get(kx(this,O))));else{O=Array.from(this.keyMap_.values());for(var e=0;e<O.length;e++)x=x.concat(O[e])}return x};
_.b.set=function(O,x){_.Ly(this);this.encodedQuery_=null;O=kx(this,O);this.containsKey(O)&&(this.count_-=this.keyMap_.get(O).length);this.keyMap_.set(O,[x]);this.count_+=1;return this};
_.b.get=function(O,x){if(!O)return x;O=this.getValues(O);return O.length>0?String(O[0]):x};
_.ew2=function(O,x,e){O.remove(x);e.length>0&&(O.encodedQuery_=null,O.keyMap_.set(kx(O,x),_.Bi(e)),O.count_+=e.length)};
_.QL.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var O=[],x=Array.from(this.keyMap_.keys()),e=0;e<x.length;e++){var l=x[e],C=_.xc(l);l=this.getValues(l);for(var Q=0;Q<l.length;Q++){var L=C;l[Q]!==""&&(L+="="+_.xc(l[Q]));O.push(L)}}return this.encodedQuery_=O.join("&")};
_.QL.prototype.clone=function(){var O=new _.QL;O.encodedQuery_=this.encodedQuery_;this.keyMap_&&(O.keyMap_=new Map(this.keyMap_),O.count_=this.count_);return O};
var kx=function(O,x){x=String(x);O.JSC$10028_ignoreCase_&&(x=x.toLowerCase());return x},i$3=function(O,x){x&&!O.JSC$10028_ignoreCase_&&(_.Ly(O),O.encodedQuery_=null,O.keyMap_.forEach(function(e,l){var C=l.toLowerCase();
l!=C&&(this.remove(l),_.ew2(this,C,e))},O));
O.JSC$10028_ignoreCase_=x};
_.QL.prototype.extend=function(O){for(var x=0;x<arguments.length;x++)SYT(arguments[x],function(e,l){this.add(l,e)},this)};var AD=function(O,x){BF.call(this);for(var e=0,l;l=rNF[e];e++)if(l in O&&!/^https?:\/\//.test(O[l]))throw Error("Ra`"+O[l]+"`"+l);this.cfg_=O;this.name=this.cfg_.cn||KQd();this.JSC$10023_domHelper_=x||an();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Ev(this);O.lpu=O.lpu||u52(this.JSC$10023_domHelper_.getWindow().location.href)+"/robots.txt";O.ppu=O.ppu||u52(O.pu||"")+"/robots.txt";NZ[this.name]=this;fep(window,"unload",lPz)||Da(window,"unload",lPz)};
_.fI(AD,BF);var CUd=RegExp("^%*tp$"),QfD=RegExp("^%+tp$");_.b=AD.prototype;_.b.connectionDelay_=null;_.b.peerWindowDeferred_=null;_.b.transport_=null;_.b.state_=1;_.b.isConnected=function(){return this.state_==2};
_.b.peerWindowObject_=null;_.b.iframeElement_=null;_.b.getConfig=function(){return this.cfg_};
_.b.connect=function(O){this.connectCb_=O||_.Fb;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?RxR(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.b.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10023_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var O=this.iframeElement_.contentWindow;O||(O=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=O}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$10023_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new jd(this,this.cfg_.ph,this.JSC$10023_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()()};
_.b.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Lf(this.transport_);this.connectCb_=this.transport_=null;_.Lf(this.connectionDelay_);this.connectionDelay_=null};
_.b.send=function(O,x){if(this.isConnected()){try{var e=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(C){e=!1}if(e){_.w7(x)&&(x=(0,_.Rj)(x));e=this.transport_;var l=e.send;CUd.test(O)&&(O="%"+O);O=O.replace(/[%:|]/g,encodeURIComponent);l.call(e,O,x)}else this.close()}};
_.b.xpcDeliver=function(O,x,e){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.z8)(this.xpcDeliver,this,O,x,e));else if(YYN(this,e)&&!this.isDisposed()&&this.state_!=3)if(O&&O!="tp")this.isConnected()&&(O=O.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),O=QfD.test(O)?O.substring(1):O,O=this.getService(O,x))&&(x=Pb$(x,O.objectPayload),x!=null&&O.callback(x));else switch(O=this.transport_,e=u2d(x),x=e[1],e[0]){case "SETUP_ACK":JNF(O,1);O.setupAckReceived_.fired_||O.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":O.protocolVersion_==2&&(JNF(O,2),O.setupAckReceived_.fired_||O.setupAckReceived_.callback(!0));break;case "SETUP":JNF(O,1);fG3(O,1);break;case "SETUP_NTPV2":O.protocolVersion_==2&&(e=O.peerProtocolVersion_,JNF(O,2),fG3(O,2),e!=1&&O.peerEndpointId_==null||O.peerEndpointId_==x||vC3(O),O.peerEndpointId_=x)}};
var dB4=function(O){var x=O.cfg_.role;return typeof x==="number"?x:window.parent==O.peerWindowObject_?1:0},YYN=function(O,x){var e=O.cfg_.ph;
return _.AL(x==null?"":String(x))||_.AL(e==null?"":String(e))||x==O.cfg_.ph};
AD.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete NZ[this.name];_.Lf(this.peerLoadHandler_);delete this.peerLoadHandler_;AD.superClass_.disposeInternal.call(this)};
var lPz=function(){for(var O in NZ)_.Lf(NZ[O])},NZ={};var TlJ=function(O,x){this.win=O;this.allowAdsHttpEndpoint=x;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10037_domHelper=an(O);this.scrollManager=new ECF(O);this.accessibilityManager=new FQp(O);bt3(this)},bt3=function(O){var x=function(){O.allowAdsPopup&&O.allowAdsPopup.style.setProperty("display","none","important");
O.wallElement.style.setProperty("display","","important");Xnz(O.accessibilityManager);Z$J(O.accessibilityManager,O.wallElement.querySelector(".fc-dialog-container"),!1,!1,O.wallElement.querySelector(".fc-button-whitelist"));O.scrollManager.enableScrolling()};
O.allowAdsPopup=O.JSC$10037_domHelper.JSC$9323_createDom("DIV",{"class":"fc-whitelist-root"});O.allowAdsPopup.style.setProperty("display","none","important");O.JSC$10037_domHelper.appendChild(O.JSC$10037_domHelper.JSC$9321_document_.body,O.allowAdsPopup);var e=O.JSC$10037_domHelper.JSC$9323_createDom("DIV",{"class":"fc-dialog-overlay"});O.JSC$10037_domHelper.appendChild(O.allowAdsPopup,e);var l=O.JSC$10037_domHelper.JSC$9323_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:x});O.JSC$10037_domHelper.appendChild(O.allowAdsPopup,
l);e=O.JSC$10037_domHelper.JSC$9323_createDom("IFRAME");e.className="fc-whitelist-dialog";e.frameBorder="0";e.id="fc-whitelist-iframe";e.tabIndex="0";_.gk(e,O.allowAdsHttpEndpoint);O.JSC$10037_domHelper.appendChild(l,e);l={};l.pu=_.sh(O.allowAdsHttpEndpoint).toString();l.tp=1;l.cn="fc-whitelist-channel";l.ifrid=e.id;l.osh=!0;O.allowAdsCrossPageChannel=new AD(l);O.allowAdsCrossPageChannel.registerService("close",x);O.allowAdsCrossPageChannel.registerService("refresh",function(){O.win.location.reload()});
O.allowAdsCrossPageChannel.registerService("resize",function(C){if(C){var Q=O.allowAdsPopup.querySelector(".fc-whitelist-dialog");C.width&&Q.style.setProperty("width",C.width,"important");C.height&&Q.style.setProperty("height",C.height,"important")}},!0);
O.allowAdsCrossPageChannel.connect()};
TlJ.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10037_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var M0=window,DV=document,LvL=M0.location,klp=function(){},AG4=/\[native code\]/,G5=function(O,x,e){return O[x]=O[x]||e},Mb$=function(O){O=O.sort();
for(var x=[],e=void 0,l=0;l<O.length;l++){var C=O[l];C!=e&&x.push(C);e=C}return x},Fj=function(){var O;
if((O=Object.create)&&AG4.test(O))O=O(null);else{O={};for(var x in O)O[x]=void 0}return O},Xj=G5(M0,"gapi",{});var oE={};oE=G5(M0,"___jsl",Fj());G5(oE,"I",0);G5(oE,"hel",10);var Du4=function(){var O=LvL.href;if(oE.dpo)var x=oE.h;else{x=oE.h;var e=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),l=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(O=O&&(e.exec(O)||l.exec(O)))try{x=decodeURIComponent(O[2])}catch(C){}}return x},Gl2=function(O){var x=G5(oE,"PQ",[]);
oE.PQ=[];var e=x.length;if(e===0)O();else for(var l=0,C=function(){++l===e&&O()},Q=0;Q<e;Q++)x[Q](C)},FvF=function(O){return G5(G5(oE,"H",Fj()),O,Fj())};var yL=function(O){this.JSC$10039_obj_=O};
yL.prototype.value=function(){return this.JSC$10039_obj_};
yL.prototype.getWidth=function(){return this.JSC$10039_obj_.width};
yL.prototype.getHeight=function(){return this.JSC$10039_obj_.height};
yL.prototype.getStyle=function(){return this.JSC$10039_obj_.style};var XHT=function(O){this.JSC$10042_obj_=O||{}};
_.b=XHT.prototype;_.b.value=function(){return this.JSC$10042_obj_};
_.b.setUrl=function(O){this.JSC$10042_obj_.url=O;return this};
_.b.getUrl=function(){return this.JSC$10042_obj_.url};
_.b.getStyle=function(){return this.JSC$10042_obj_.style};
_.b.getId=function(){return this.JSC$10042_obj_.id};
_.b.getContext=function(){return this.JSC$10042_obj_.context};
var obF=function(O){O.JSC$10042_obj_.attributes=O.JSC$10042_obj_.attributes||{};return new yL(O.JSC$10042_obj_.attributes)};var yGz=function(){XHT.apply(this,arguments)};
_.c(yGz,XHT);var Ztd=G5(oE,"perf",Fj());G5(Ztd,"g",Fj());var Ebd=G5(Ztd,"i",Fj());G5(Ztd,"r",[]);Fj();Fj();var qnJ=function(O,x,e){x&&x.length>0&&(x=tbd(x),e&&e.length>0&&(x+="___"+tbd(e)),x.length>28&&(x=x.substr(0,28)+(x.length-28)),e=x,x=G5(Ebd,"_p",Fj()),G5(x,e,Fj())[O]=(new Date).getTime(),x=Ztd.r,typeof x==="function"?x(O,"_p",e):x.push([O,"_p",e]))},tbd=function(O){return O.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var PUJ=Fj(),cGL=[],ZV=function(O){throw Error("Ua`"+O);};
cGL.push(["jsl",function(O){for(var x in O)if(Object.prototype.hasOwnProperty.call(O,x)){var e=O[x];typeof e=="object"?oE[x]=G5(oE,x,[]).concat(e):G5(oE,x,e)}if(x=O.u)O=G5(oE,"us",[]),O.push(x),(x=/^https:(.*)$/.exec(x))&&O.push("http:"+x[1])}]);
var IPd=/^(\/[a-zA-Z0-9_\-]+)+$/,Vb4=[/\/amp\//,/\/amp$/,/^\/amp$/],pHN=/^[a-zA-Z0-9\-_\.,!]+$/,Rwk=/^gapi\.loaded_[0-9]+$/,Uu4=/^[a-zA-Z0-9,._-]+$/,WvN=function(O,x,e,l,C){var Q=O.split(";"),L=Q.shift(),k=PUJ[L],M=null;k?M=k(Q,x,e,l):ZV("no hint processor for: "+L);M||ZV("failed to generate load url");x=M;e=x.match(aPJ);(l=x.match(muz))&&l.length===1&&sfd.test(x)&&e&&e.length===1||ZV("failed sanity: "+O);try{O="?";if(C&&C.length>0){zsn(C);var G=C.join(",");M=M+"?le="+G;O="&"}if(oE.rol){var X=oE.ol;
X&&X.length&&(M=""+M+O+"ol="+X.length)}}catch(y){}return M},rGd=function(O,x,e,l){O=hwT(O);
Rwk.test(e)||ZV("invalid_callback");x=zwL(x);l=l&&l.length?zwL(l):null;var C=function(Q){return encodeURIComponent(Q).replace(/%2C/g,",")};
return[encodeURIComponent(O.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",C(O.version),"/m=",C(x),l?"/exm="+C(l):"","/rt=j/sv=1/d=1/ed=1",O.activeMods?"/am="+C(O.activeMods):"",O.resourceSig?"/rs="+C(O.resourceSig):"",O.zcms?"/t="+C(O.zcms):"","/cb=",C(e)].join("")},hwT=function(O){O.charAt(0)!=="/"&&ZV("relative path");
for(var x=O.substring(1).split("/"),e=[];x.length;){O=x.shift();if(!O.length||O.indexOf(".")==0)ZV("empty/relative directory");else if(O.indexOf("=")>0){x.unshift(O);break}e.push(O)}O={};for(var l=0,C=x.length;l<C;++l){var Q=x[l].split("="),L=decodeURIComponent(Q[0]),k=decodeURIComponent(Q[1]);Q.length==2&&L&&k&&(O[L]=O[L]||k)}x="/"+e.join("/");IPd.test(x)||ZV("invalid_prefix");e=0;for(l=Vb4.length;e<l;++e)Vb4[e].test(x)&&ZV("invalid_prefix");e=Ht$(O,"k",!0);l=Ht$(O,"am");C=Ht$(O,"rs");O=Ht$(O,"t");
return{pathPrefix:x,version:e,activeMods:l,resourceSig:C,zcms:O}},zwL=function(O){for(var x=[],e=0,l=O.length;e<l;++e){var C=O[e].replace(/\./g,"_").replace(/-/g,"_");
Uu4.test(C)&&x.push(C)}return x.join(",")},Ht$=function(O,x,e){O=O[x];
!O&&e&&ZV("missing: "+x);if(O){if(pHN.test(O))return O;ZV("invalid: "+x)}return null},sfd=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,muz=/\/cb=/g,aPJ=/\/\//g;
PUJ.m=function(O,x,e,l){(O=O[0])||ZV("missing_hint");return"https://apis.google.com"+rGd(O,x,e,l)};
var KvF=decodeURI("%73cript"),duF=/^[-+_0-9\/A-Za-z]+={0,2}$/,nbF=function(O,x){for(var e=[],l=0;l<O.length;++l){var C=O[l],Q;if(Q=C){a:{for(Q=0;Q<x.length;Q++)if(x[Q]===C)break a;Q=-1}Q=Q<0}Q&&e.push(C)}return e},uDF=function(){var O=oE.nonce;
return O!==void 0?O&&O===String(O)&&O.match(duF)?O:oE.nonce=null:DV.querySelector?(O=DV.querySelector("script[nonce]"))?(O=O.nonce||O.getAttribute("nonce")||"",O&&O===String(O)&&O.match(duF)?oE.nonce=O:oE.nonce=null):null:null},vbJ=function(O){if(DV.readyState!="loading")YnL(O);
else{var x=uDF(),e="";x!==null&&(e=' nonce="'+x+'"');O="<"+KvF+' src="'+encodeURI(O)+'"'+e+"></"+KvF+">";DV.write(BlD?BlD.createHTML(O):O)}},YnL=function(O){var x=DV.createElement(KvF);
x.setAttribute("src",BlD?BlD.createScriptURL(O):O);O=uDF();O!==null&&x.setAttribute("nonce",O);x.async="true";(O=DV.getElementsByTagName(KvF)[0])?O.parentNode.insertBefore(x,O):(DV.head||DV.body||DV.documentElement).appendChild(x)},JGF=function(O,x,e){fPL(function(){var l=x===Du4()?G5(Xj,"_",Fj()):Fj();
l=G5(FvF(x),"_",l);O(l)},e)},lMw=function(O,x){var e=x||{};
typeof x=="function"&&(e={},e.callback=x);var l=(x=e)&&x._c;if(l)for(var C=0;C<cGL.length;C++){var Q=cGL[C][0],L=cGL[C][1];L&&Object.prototype.hasOwnProperty.call(l,Q)&&L(l[Q],O,x)}x=[];O?x=O.split(":"):e.features&&(x=e.features);if(!(O=e.h)&&(O=Du4(),!O))throw Error("Va");wHz(x||[],e,O)},wHz=function(O,x,e){O=Mb$(O)||[];
var l=x.callback,C=x.config,Q=x.timeout,L=x.ontimeout,k=x.onerror,M=void 0;typeof k=="function"&&(M=k);var G=null,X=!1;if(Q&&!L||!Q&&L)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=G5(FvF(e),"r",[]).sort();var y=G5(FvF(e),"L",[]).sort(),Z=oE.le||[],E=[].concat(k),P=function(f,u){if(X)return 0;M0.clearTimeout(G);y.push.apply(y,U);var Y=((Xj||{}).config||{}).update;Y?Y(C):C&&G5(oE,"cu",[]).push(C);if(u){qnJ("me0",f,E);try{JGF(u,e,M)}finally{qnJ("me1",f,E)}}return 1};
Q>0&&(G=M0.setTimeout(function(){X=!0;L()},Q));
var U=nbF(O,y);if(U.length){U=nbF(O,k);var W=G5(oE,"CP",[]),z=W.length;W[z]=function(f){if(!f)return 0;qnJ("ml1",U,E);var u=function(J){W[z]=null;P(U,f)&&Gl2(function(){l&&l();J()})},Y=function(){var J=W[z+1];
J&&J()};
z>0&&W[z-1]?W[z]=function(){u(Y)}:u(Y)};
if(U.length){var r="loaded_"+oE.I++;Xj[r]=function(f){W[z](f);Xj[r]=null};
O=WvN(e,U,"gapi."+r,k,Z);k.push.apply(k,U);qnJ("ml0",U,E);x.sync||M0.___gapisync?vbJ(O):YnL(O)}else W[z](klp)}else P(U)&&l&&l()},SnR;
var jfT=null,Nl4=_.CV.trustedTypes;if(Nl4&&Nl4.createPolicy){try{jfT=Nl4.createPolicy("goog#gapi",{createHTML:NBr,createScript:NBr,createScriptURL:NBr})}catch(O){_.CV.console&&_.CV.console.error(O.message)}SnR=jfT}else SnR=jfT;var BlD=SnR,fPL=function(O,x){if(oE.hee&&oE.hel>0)try{return O()}catch(e){x&&x(e),oE.hel--,lMw("debug_error",function(){try{window.___jsl.hefn(e)}catch(l){throw e;}})}else try{return O()}catch(e){throw x&&x(e),e;
}},gb$=Xj.load;
gb$&&G5(oE,"ol",[]).push(gb$);Xj.load=function(O,x){return fPL(function(){return lMw(O,x)})};var SCw;var itF=function(O,x){var e=e||[];this.serviceId_=O;this.moduleId_=x||null;this.dependencies_=[];$u4(this,e)};
itF.prototype.toString=function(){return this.serviceId_};
itF.prototype.getModuleId=function(){return this.moduleId_};
var $u4=function(O,x){var e=!1;e=e===void 0?!1:e;O.dependencies_=O.dependencies_.concat(x);if(e){if(!O.moduleId_)throw Error("Wa`"+O.serviceId_);x.map(function(l){return l.getModuleId()}).forEach(function(l){jOL(function(C){C.addExtraEdge(O.moduleId_,l)})})}};var r_N=new itF("MpJwZc","MpJwZc");var RoL=new _.Fz("a"),KNV=new _.Fz("c"),HGV=function(O,x,e){_.Xz.call(this,O,x);this.node=x;this.kind=e};
_.c(HGV,_.Xz);var OwN=function(){this.JSC$10055_keys_={};this.urlPrefix_="";this.JSC$10055_queryData_={}};
OwN.prototype.toString=function(){var O=this.urlPrefix_+x3p(this),x=_.RO(this.JSC$10055_queryData_),e="";x!=""&&(e="?"+x);return O+e};
var eRd=function(O){O=ES(O,"md");return!!O&&O!=="0"},x3p=function(O){var x=[],e=function(l){O.JSC$10055_keys_[l]!==void 0&&x.push(l+"="+O.JSC$10055_keys_[l])};
eRd(O)?(e("md"),e("k"),e("ck"),e("am"),e("rs"),e("gssmodulesetproto"),e("slk"),e("dti")):(e("sdch"),e("k"),e("ck"),e("am"),e("rt"),"d"in O.JSC$10055_keys_||tD(O,"d","0"),e("d"),e("exm"),e("excm"),(O.JSC$10055_keys_.excm||O.JSC$10055_keys_.exm)&&x.push("ed=1"),e("im"),e("dg"),e("sm"),ES(O,"br")!="1"&&ES(O,"br")!="0"||e("br"),e("br-d"),ES(O,"rb")=="1"&&e("rb"),ES(O,"zs")!=="0"&&e("zs"),l9k(O)!==""&&e("wt"),e("gssmodulesetproto"),e("ujg"),e("sp"),e("rs"),e("cb"),e("ee"),e("slk"),e("dti"),e("m"));return x.join("/")},
ES=function(O,x){return O.JSC$10055_keys_[x]?O.JSC$10055_keys_[x]:null},tD=function(O,x,e){e?O.JSC$10055_keys_[x]=e:delete O.JSC$10055_keys_[x]},CDN=function(O,x){O.urlPrefix_=x},Qy$=function(O,x){x&&x.length>0?(x.sort(),tD(O,"exm",x.join(","))):tD(O,"exm",null)},bwz=function(O,x){x&&x.length>0?(x.sort(),tD(O,"excm",x.join(","))):tD(O,"excm",null)},TaF=function(O){return(O=ES(O,"m"))?O.split(","):[]},l9k=function(O){switch(ES(O,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},L1p=function(O,x){var e=Object.keys(x).filter(function(l){return!!Object.keys(x[l]).length}).map(function(l){var C=Object.keys(x[l]);
C.length>1&&C.sort();return l+":"+C.join(",")});
e.sort();tD(O,"ee",e.join(";"))},u2i=function(O){var x=ES(O,"ee");
if(!x)return{};O={};x=_.T(x.split(";"));for(var e=x.next();!e.done;e=x.next()){var l=_.T(e.value.split(":"));e=l.next().value;l=l.next().value;O[e]={};l=_.T(l.split(","));for(var C=l.next();!C.done;C=l.next())O[e][C.value]=!0}return O},kQT=function(O){delete O.JSC$10055_keys_.m;
delete O.JSC$10055_keys_.exm;delete O.JSC$10055_keys_.ed};
OwN.prototype.clone=function(){var O=new OwN;O.JSC$10055_keys_=Object.assign({},this.JSC$10055_keys_);O.urlPrefix_=this.urlPrefix_;O.JSC$10055_queryData_=Object.assign({},this.JSC$10055_queryData_);return O};
var YY7=function(O,x){x=x===void 0?!0:x;var e=Aad(O),l=new OwN,C=_.TG(e)[5];_.HX.forEach(M23,function(L){var k=C.match("/"+L+"=([^/]+)");k&&tD(l,L,k[1])});
var Q="";Q=O.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";CDN(l,O.substr(0,O.indexOf(Q)+Q.length));if(!x)return l;(O=_.TG(e)[6]||null)&&BcD(O,function(L,k){l.JSC$10055_queryData_[L]=k});
return l},KQW=function(O){O=_.VF(Aad(O));
return O===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(O)?/\/k=/.test(O):!1},Aad=function(O){return O.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?O.substr(65):O},M23={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"},D3D=RegExp("^loaded_(g|h)?[_\\d]+$");_.q0=function(O){this.JSC$10067_id_=O;this.opts={}};
_.q0.prototype.JSC$10069_setLabel=function(O){this.label_=O||void 0;return this};
_.q0.prototype.addUploadMetadata=function(O,x){var e=this.opts.data||{};e[O]=x;this.opts.data=e;return this};
var GQp=function(O){var x=_.HX.filter(O.opts,function(e){return e!==null});
x=_.HX.isEmpty(x)?null:x;O=[O.JSC$10067_id_,O.label_,x];x=an$(O);return O=O.slice(0,x+1)};
_.q0.prototype.toString=function(){var O=GQp(this);return"("+_.Ku(O,function(x){return JSON.stringify(x)}).join(",")+")"};
_.q0.prototype.getId=function(){return this.JSC$10067_id_};
_.q0.prototype.getOptions=function(){return _.HX.clone(this.opts)};var Px=function(){_.q0.call(this,"image-search")};
_.c(Px,_.q0);Px.prototype.setSize=function(O){this.opts.imgsz=O;return this};
Px.prototype.JSC$10069_setLabel=function(O){_.q0.prototype.JSC$10069_setLabel.call(this,O);return this};
Px.prototype.addUploadMetadata=function(O,x){_.q0.prototype.addUploadMetadata.call(this,O,x);return this};var cx=function(){_.q0.call(this,"maps")};
_.c(cx,_.q0);cx.prototype.setZoom=function(O){this.opts.zoom=O;return this};
cx.prototype.JSC$10069_setLabel=function(O){_.q0.prototype.JSC$10069_setLabel.call(this,O);return this};
cx.prototype.addUploadMetadata=function(O,x){_.q0.prototype.addUploadMetadata.call(this,O,x);return this};_.IE=function(){_.q0.call(this,"photos")};
_.c(_.IE,_.q0);_.IE.prototype.JSC$10069_setLabel=function(O){_.q0.prototype.JSC$10069_setLabel.call(this,O);return this};
_.IE.prototype.addUploadMetadata=function(O,x){_.q0.prototype.addUploadMetadata.call(this,O,x);return this};var VL=function(){_.q0.call(this,"url")};
_.c(VL,_.q0);var F1T=function(){var O=new VL;O.opts.type="video";O.opts.site="youtube.com";return O};
VL.prototype.JSC$10069_setLabel=function(O){_.q0.prototype.JSC$10069_setLabel.call(this,O);return this};
VL.prototype.addUploadMetadata=function(O,x){_.q0.prototype.addUploadMetadata.call(this,O,x);return this};var py=function(){_.q0.call(this,"video-search")};
_.c(py,_.q0);var XDk=function(){var O=new py;O.opts.site="youtube.com";return O};
py.prototype.JSC$10069_setLabel=function(O){_.q0.prototype.JSC$10069_setLabel.call(this,O);return this};
py.prototype.addUploadMetadata=function(O,x){_.q0.prototype.addUploadMetadata.call(this,O,x);return this};var ogd=function(){_.q0.call(this,"web")};
_.c(ogd,_.q0);ogd.prototype.JSC$10069_setLabel=function(O){_.q0.prototype.JSC$10069_setLabel.call(this,O);return this};
ogd.prototype.addUploadMetadata=function(O,x){_.q0.prototype.addUploadMetadata.call(this,O,x);return this};var RE=function(){this.items_=[];this.opts={}},yaR=function(O){switch(O){case "image-search":return new Px;
case "maps":return new cx;case "photos":return new _.IE;case "url":return new VL;case "video-search":return new py;case "web":return new ogd}return new _.q0(O)};
RE.prototype.addView=function(O){this.items_.push(typeof O==="string"?yaR(O):O);return this};
var Zwp=function(O){return"("+_.Ku(O.items_,function(x){return x.toString()}).join(",")+")"};
RE.prototype.toString=function(){return Zwp(this)};
RE.prototype.getViews=function(O,x){x=x===void 0?[]:x;for(var e=this.items_,l=0;l<e.length;l++){var C=e[l];C instanceof RE?C.getViews(O,x):C.getId()==O&&x.push(C)}return x};
RE.prototype.getOptions=function(){return _.HX.clone(this.opts)};var J0=function(O){this.basePickerUrl_=O||"https://docs.google.com/picker";this.nav_=new RE};
J0.prototype.nav_=null;J0.prototype.addView=function(O){this.nav_.addView(O);return this};
J0.prototype.getBaseUrl=function(){return this.basePickerUrl_};
J0.prototype.getViews=function(O){return this.nav_.getViews(O)};
_.Egp=function(O,x){O.callback_=x;return O};var t24=new Map;t24.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");t24.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");t24.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var qZ2=new Set;qZ2.add("application/vnd.google-apps.kix");qZ2.add("application/vnd.google-apps.ritz");qZ2.add("application/vnd.google-apps.punch");var hRR=function(O,x,e){var l=e&&_.oK(e,1);e=PDk(e);var C=O[0].getId();switch(_.y7(C,2)){case 13:return ca2(O,x,l,e);case 3:return I9d(O,x,l,e);case 10:return V2F(O,x,l,e);case 27:return V2F(O,x,l,e);case 12:return pDR(O,x);case 2:return RRN(O,x,l,e);case 5:return U32(O,x,l,e);case 9:return a9N(O,x,l,e);case 6:return m3T(O,x,l,e);case 25:return syN(O,x,l,e);case 1:return _.Q7(O[0],Q9p,26)?W1J(O,x,l,e):V2F(O,x,l,e);default:return{}}},m3T=function(O,x,e,l){O=O.map(function(C){return{id:C.getId().getId(),
serviceId:"youtube",name:C.getName(),description:_.oK(C,3),type:US(C),lastEditedUtc:_.CPT(_.y4(C,_.EM,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:C.getUrl(),embedUrl:_.oK(C,13),thumbnails:aE(SW(C))}});
return{action:x,docs:O,viewToken:l,view:e||"youtube",v2Translated:!0}},RRN=function(O,x,e,l){var C=O.map(function(Q){var L=Q.getId().getId(),k=_.oK(Q,7),M=Q.getName(),G=US(Q),X=_.CPT(_.y4(Q,_.EM,12)).getTime(),y=Q.getUrl(),Z=Number(F3p(Q)),E=_.oK(Q,3),P=_.oK(Q,11),U=aE(SW(Q));
var W=_.y4(Q,jW,21);W=_.GB(W,1);var z=_.y4(Q,jW,21);z=_.oK(z,10);var r=_.oK(Q,13);var f=_.y4(Q,jW,21);f=_.GB(f,9);var u=_.y4(Q,jW,21);u=_.oK(u,11);L={id:L,serviceId:"docs",mimeType:k,name:M,type:G,lastEditedUtc:X,url:y,sizeBytes:Z,description:E,iconUrl:P,thumbnails:U,isShared:W,downloadUrl:z,embedUrl:r,copyable:f,resourceKey:u};k=_.y4(Q,jW,21);_.GB(k,12)&&(L.uploadState="success",L.isNew=!0);k=_.y4(Q,jW,21);_.Q7(k,fl,3)&&(Q=_.y4(Q,jW,21),Q=_.y4(Q,fl,3),_.Q7(Q,BS,2)&&(k=vv(Q.getDuration().getSeconds()),
M=Q.getDuration(),M=_.G8(M,2),L.duration=k+M/1E9),L.aspectRatio=Q.getAspectRatio());return L});
return{action:x,docs:C,viewToken:l,view:e||"all",extraUserInputs:zRd(O),v2Translated:!0}},U32=function(O,x,e,l){O=O.map(function(C){var Q=_.y4(C,Fy4,15);
Q=_.y4(Q,vS,1);Un(C,10,vS,Q);return{id:C.getId().getId(),serviceId:"web",mimeType:_.oK(C,7),name:C.getName(),type:US(C),url:C.getUrl(),description:_.oK(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aE(SW(C))}});
return{action:x,docs:O,viewToken:l,view:e||"image-search",v2Translated:!0}},a9N=function(O,x,e,l){O=O.map(function(C){return{serviceId:"url",
name:SW(C)[0].getUrl().split("/").pop(),type:US(C),mimeType:_.oK(C,7),url:C.getUrl(),description:_.oK(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aE(SW(C))}});
return{action:x,docs:O,viewToken:l,view:e||"url",v2Translated:!0}},W1J=function(O,x,e,l){O=O.map(function(C){return{id:C.getId().getId(),
serviceId:"picasa",name:C.getName(),type:US(C),description:_.oK(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aE(SW(C))}});
return{action:x,docs:O,viewToken:l,view:e||"webcam",v2Translated:!0}},V2F=function(O,x,e,l){return{action:x,
docs:O.map(ra$),viewToken:l,view:Hwp(e||"upload",O),extraUserInputs:zRd(O),v2Translated:!0}},Hwp=function(O,x){return x.some(function(e){var l;
return((l=_.y4(e,Jl,30))==null?void 0:_.y7(l,3))===9})?O+"/gmailphotos":O},I9d=function(O,x,e,l){var C=O.map(function(Q){var L={id:Q.getId().getId(),
serviceId:"picasa",mimeType:_.oK(Q,7),name:Q.getName(),type:US(Q),lastEditedUtc:_.CPT(_.y4(Q,_.EM,12)).getTime(),url:Q.getUrl(),sizeBytes:Number(F3p(Q)),description:_.oK(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aE(SW(Q)),mediaKey:Q.getId().getId(),parentId:_.oK(Q,4)},k,M=(k=_.y4(Q,LyJ,18))==null?void 0:_.y4(k,ToJ,3);M&&(L.latitude=Xl(M,1),L.longitude=Xl(M,2));var G;Q=(G=_.y4(Q,LyJ,18))==null?void 0:Fl(G,6);G=Q!=null?vv(Q):void 0;G&&(L.version=
G);return L});
return{action:x,docs:C,viewToken:l,view:e||"photos",extraUserInputs:zRd(O),v2Translated:!0}},ca2=function(O,x,e,l){O=O.map(function(C){return{id:C.getId().getId(),
serviceId:"et",name:SW(C)[0].getUrl().split("/").pop(),description:_.oK(C,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aE(SW(C),"etjpg")}});
return{action:x,docs:O,viewToken:l,view:e||"et",v2Translated:!0}},syN=function(O,x,e,l){O=O.map(function(C){var Q=C.getId().getId(),L=l["2"];
return{id:Q,serviceId:L.type!=="gmail_themes"&&L.parent==="6226252643674576769"?"picasa":"static_themes",name:C.getName(),mimeType:_.oK(C,7),type:US(C),description:_.oK(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:C.getUrl(),embedUrl:C.getUrl(),thumbnails:aE(SW(C))}});
return{action:x,docs:O,viewToken:l,view:e||"photos",v2Translated:!0}},pDR=function(O,x){O=O.map(function(e){var l=_.y4(e,bfF,27);
l=_.Nh(l,1,_.PT,_.Dd())[0];return{id:e.getId().getId(),serviceId:"contacts",mimeType:_.oK(e,7),name:e.getName(),description:_.oK(e,3),url:"mailto:"+l,thumbnail:[{url:_.oK(e,11)}],email:l}});
return{action:x,docs:O,view:"contacts",v2Translated:!0}},PDk=function(O){if(!O)return{};
var x=_.oK(O,3);x=x&&JSON.parse(x)||{};return{0:_.oK(O,1),1:_.oK(O,2),2:x}},aE=function(O,x){x=x===void 0?"":x;
if(!O.length)return null;x=="etjpg"&&(O=O.filter(function(e){return e.getUrl().includes("w1200-h300")}));
return O.map(function(e){return{url:e.getUrl(),height:e.getHeight(),width:e.getWidth(),type:x}})},zRd=function(O){return{isAttachment:O.some(function(x){return _.GB(x,31)})}},ra$=function(O){var x,e={id:(x=O.getId())==null?void 0:x.getId(),
serviceId:K1$(O),mimeType:_.oK(O,7),name:O.getName(),type:US(O),sizeBytes:Number(F3p(O)),description:_.oK(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aE(SW(O)),isNew:!0};if(x=_.y4(O,Jl,30)){e.dataUrl=_.oK(x,1)||null;a:{var l=_.y4(O,Jl,30);switch(_.y7(l,3)){case 9:l=_.tO(l,Dqz,2,wp);l={remoteRefs:l&&_.oK(l,1)};break a;case 10:case 15:l=_.tO(l,MZD,4,wp);var C=SW(O);l={photo_id:l&&_.oK(l,1),media_key:O.getId().getId(),media_type:_.y7(O,6)===1?1:2,image_url:C&&
C[0].getUrl(),width:C&&String(C[0].getWidth()),height:C&&String(C[0].getHeight())};break a}l=null}e.uploadMetadata=l;e.uploadId=_.oK(x,9)||null;e.uploadState=d3R(x)||null}(l=x&&_.tO(x,MZD,4,wp))&&(e.id=_.oK(l,1));(l=x&&_.tO(x,G84,5,wp))&&(e.contentId=_.oK(l,1));(l=x&&_.tO(x,k8k,7,wp))&&(e.contentId=_.oK(l,1));(l=x&&_.tO(x,A0R,6,wp))&&(e.contentId=_.oK(l,1));(x==null?void 0:_.y7(x,3))===1&&(e.mediaKey=O.getId().getId());return e},K1$=function(O){var x;
switch(((x=_.y4(O,Jl,30))==null?void 0:_.y7(x,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},US=function(O){switch(_.y7(O,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 _.oK(O,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},d3R=function(O){switch(O==null?void 0:_.y7(O,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 Bak,ng4,u63,YZD;_.vgT=function(O,x){var e=x||{};x=e.document||document;var l=_.sh(O).toString(),C=(new tl(x)).createElement("SCRIPT"),Q={script_:C,timeout_:void 0},L=new fr(ng4,Q),k=null,M=e.timeout!=null?e.timeout:5E3;M>0&&(k=window.setTimeout(function(){u63(C,!0);L.errback(new YZD(1,"Timeout reached for loading script "+l))},M),Q.timeout_=k);
C.onload=C.onreadystatechange=function(){C.readyState&&C.readyState!="loaded"&&C.readyState!="complete"||(u63(C,e.cleanupWhenDone||!1,k),L.callback(null))};
C.onerror=function(){u63(C,!0,k);L.errback(new YZD(0,"Error while loading script "+l))};
Q=e.attributes||{};_.HX.extend(Q,{type:"text/javascript",charset:"UTF-8"});NX4(C,Q);_.QP(C,O);Bak(x).appendChild(C);return L};
Bak=function(O){var x=a9("HEAD",O);return x&&x.length!==0?x[0]:O.documentElement};
ng4=function(){if(this&&this.script_){var O=this.script_;O&&O.tagName=="SCRIPT"&&u63(O,!0,this.timeout_)}};
u63=function(O,x,e){e!=null&&_.CV.clearTimeout(e);O.onload=function(){};
O.onerror=function(){};
O.onreadystatechange=function(){};
x&&window.setTimeout(function(){_.Um(O)},0)};
YZD=function(O,x){var e="Jsloader error (code #"+O+")";x&&(e+=": "+x);_.ew.call(this,e);this.code=O};
_.fI(YZD,_.ew);var f9J=_.zo(["https://apis.google.com/js/api.js"]),JaJ=_.on(f9J),Nap=function(O,x,e){e=e===void 0?{}:e;var l=!1,C=wDk(O,x,e).then(function(L){l=!0;return L}),Q=_.EKz(5E3).then(function(){return l?wDk(O,x,e):SZT(x,e).then(function(L){return jyp(L,O)})});
return TzN([C,Q])},wDk=function(O,x,e){e=e===void 0?{}:e;
return ggD(x,e).then(function(l){return jyp(l,O)})},jyp=function(O,x){var e=_.br(x,"gapi.")?x.slice(5):x;
return O[e]?_.$7(O[e]):new _.If(function(l,C){var Q=VK(function(){C(Error("Ya"))},3E4);
O.load(x,{callback:function(){_.CV.clearTimeout(Q);l(O[e])},
onerror:function(L){_.CV.clearTimeout(Q);C(L)}})})},ggD=function(O,x){x=x===void 0?{}:x;
return O.gapi&&O.gapi.load?_.$7(O.gapi):SZT(O,x)},SZT=function(O,x){x=x===void 0?{}:x;
return _.vgT(JaJ,{document:O.document,attributes:x}).then(function(){return O.gapi})},$3F=function(){};
$3F.prototype.load=function(O,x,e){x=x===void 0?window:x;e=e===void 0?{}:e;var l=Date.now();return Nap(O,x,e).then(function(C){var Q=Date.now();return{library:C,loadStartMs:l,loadEndMs:Q}},function(C){throw C instanceof Error?C:Error(String(C));
})};var TDn=function(){_.h0.call(this);this.gapiLoader_=new $3F;this.origin_=null;this.gapiPickerIframeResolver_=_.He();this.gapiIframesResolver_=_.He();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.c(TDn,_.h0);var iw3=function(O,x){var e=e===void 0?{}:e;var l=_.i8("gapi.iframes",x);return l?(O=Date.now(),_.$7({library:l,loadStartMs:O,loadEndMs:O})):O.gapiLoader_.load("gapi.iframes",x,e)},OGF=function(O,x,e,l,C,Q){var L=!1;
L=L===void 0?!1:L;iw3(O,nu(x.ownerDocument)).then(function(k){var M=k.library;O.gapiIframesResolver_.resolve(M);k=O.gapiPickerIframeResolver_;var G=k.resolve,X=L;X=X===void 0?!1:X;var y={};y["host-message-handler"]=e;O.hostMessageHandlerInternal_=y;var Z=_.xO(l);Z=_.xO(Z);Z=_.OS(_.ie(_.$u(new _.K1,Z.scheme_),Z.JSC$10027_domain_),Z.JSC$10027_port_).toString();O.origin_=Z;Z=(new yGz).setUrl(l);Z.JSC$10042_obj_.where=x;Z.JSC$10042_obj_.allowPost=X;Z.JSC$10042_obj_.messageHandlers=y;X=_.i8("makeWhiteListIframesFilter",
M)([O.origin_]);Z.JSC$10042_obj_.messageHandlersFilter=X;C!=null&&(Z.JSC$10042_obj_.id=C);Q!=null&&(Z.JSC$10042_obj_.rpctoken=Q);X=obF(Z);X.JSC$10039_obj_.style={display:"block","min-width":"100%",width:"1px"};X.JSC$10039_obj_.height="100%";obF(Z).value().allow="camera 'src' "+O.origin_;M=M.getContext().openChild(Z.value());G.call(k,M)},function(k){O.gapiIframesResolver_.reject(k);
O.gapiPickerIframeResolver_.reject(k)});
return O.gapiPickerIframeResolver_.promise},xyz=function(O,x){return _.cF([O.gapiIframesResolver_.promise,
O.gapiPickerIframeResolver_.promise]).then(function(e){var l=_.T(e);e=l.next().value;return(l=l.next().value)?l.send("picker-message-handler",x,void 0,_.i8("makeWhiteListIframesFilter",e)([O.origin_])):_.Za(Error("Za"))})};
TDn.prototype.disposeInternal=function(){e6k(this);_.h0.prototype.disposeInternal.call(this)};
var e6k=function(O){O.gapiPickerIframeResolver_.promise.then(function(x){x&&(x.unregister("host-message-handler"),delete O.hostMessageHandlerInternal_["host-message-handler"])})};var lyd=function(){this.nextId=0};var Qp$=function(O,x){switch(O.action){case "select-contacts":O=COR(O.contacts);break;case "visibility":O=O.visible;var e=new OK;O=_.PM(e,1,7).setVisible(O);e={};e["iframe-command"]=O.serialize();O=e;break;default:O=null}return O?xyz(x,O):_.$7()},COR=function(O){if(!O||O.length==0)return null;
var x=new OK;_.PM(x,1,11);var e=new lyd;O.forEach(function(l){if(l.email){var C=new Mi;C=_.mz(C,2,l.name?l.name:l.email);var Q=new bfF;l=_.Y4m(Q,1,_.ZQ,l.email,_.PT);l=_.IS(C,27,l);C=new ldp;Q=":"+(e.nextId++).toString(36);C=_.mz(C,1,Q);C=_.PM(C,2,12);l=_.IS(l,1,C)}else l=null;l&&Un(x,7,Mi,l)});
O={};O["iframe-command"]=x.serialize();return O};_.bGz=function(){if(U$$){var O=/Windows NT ([0-9.]+)/;return(O=O.exec(_.E8()))?O[1]:"0"}return _.RsF?(O=/1[0|1][_.][0-9_.]+/,(O=O.exec(_.E8()))?O[0].replace(/_/g,"."):"10"):vTi?(O=/Android\s+([^\);]+)(\)|;)/,(O=O.exec(_.E8()))?O[1]:""):m$3||smF||WLN?(O=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(O=O.exec(_.E8()))?O[1].replace(/_/g,"."):""):""}();var mh;mh=function(O){return(O=O.exec(_.E8()))?O[1]:""};
_.TMz=function(){if(_.ig)return mh(/Firefox\/([0-9.]+)/);if(_.j1||kC||Inz)return nWd;if(_.Oa){if(_.Wi()||_.Vws()){var O=mh(/CriOS\/([0-9.]+)/);if(O)return O}return mh(/Chrome\/([0-9.]+)/)}if(_.Nb&&!_.Wi())return mh(/Version\/([0-9.]+)/);if(jRi||NTV){if(O=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.E8()))return O[1]+"."+O[2]}else if(fnR)return(O=mh(/Android\s+([0-9.]+)/))?O:mh(/Version\/([0-9.]+)/);return""}();var LNz=function(){};
_.BN(LNz);LNz.prototype.nextId_=0;_.sS=function(O){return":"+(O.nextId_++).toString(36)};var Wx=function(O){_.tf.call(this);this.JSC$10137_dom_=O||an();this.JSC$10137_id_=null;this.inDocument_=!1;this.JSC$10137_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.fI(Wx,_.tf);Wx.prototype.idGenerator_=LNz.getInstance();Wx.prototype.getId=function(){return this.JSC$10137_id_||(this.JSC$10137_id_=_.sS(this.idGenerator_))};
Wx.prototype.getElement=function(){return this.JSC$10137_element_};
var hD=function(O){O.googUiComponentHandler_||(O.googUiComponentHandler_=new _.Ev(O));return O.googUiComponentHandler_},kSR=function(O,x){if(O==x)throw Error("$a");
var e;if(e=x&&O.parent_&&O.JSC$10137_id_){e=O.parent_;var l=O.JSC$10137_id_;e=e.childIndex_&&l?_.HX.get(e.childIndex_,l)||null:null}if(e&&O.parent_!=x)throw Error("$a");O.parent_=x;Wx.superClass_.setParentEventTarget.call(O,x)};
Wx.prototype.setParentEventTarget=function(O){if(this.parent_&&this.parent_!=O)throw Error("ab");Wx.superClass_.setParentEventTarget.call(this,O)};
Wx.prototype.JSC$10139_createDom=function(){this.JSC$10137_element_=this.JSC$10137_dom_.createElement("DIV")};
Wx.prototype.render=function(O){A_N(this,O)};
var A_N=function(O,x,e){if(O.inDocument_)throw Error("bb");O.JSC$10137_element_||O.JSC$10139_createDom();x?x.insertBefore(O.JSC$10137_element_,e||null):O.JSC$10137_dom_.JSC$9321_document_.body.appendChild(O.JSC$10137_element_);O.parent_&&!O.parent_.inDocument_||O.enterDocument()};
_.b=Wx.prototype;_.b.decorate=function(O){if(this.inDocument_)throw Error("bb");if(O&&this.canDecorate(O)){this.wasDecorated_=!0;var x=_.BX(O);this.JSC$10137_dom_&&this.JSC$10137_dom_.JSC$9321_document_==x||(this.JSC$10137_dom_=an(O));this.decorateInternal(O);this.enterDocument()}else throw Error("cb");};
_.b.canDecorate=function(){return!0};
_.b.decorateInternal=function(O){this.JSC$10137_element_=O};
_.b.enterDocument=function(){this.inDocument_=!0;Ml4(this,function(O){!O.inDocument_&&O.getElement()&&O.enterDocument()})};
_.b.exitDocument=function(){Ml4(this,function(O){O.inDocument_&&O.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.b.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Ml4(this,function(O){O.dispose()});
!this.wasDecorated_&&this.JSC$10137_element_&&_.Um(this.JSC$10137_element_);this.parent_=this.model_=this.JSC$10137_element_=this.childIndex_=this.children_=null;Wx.superClass_.disposeInternal.call(this)};
_.b.getModel=function(){return this.model_};
_.b.addChild=function(O,x){var e=this.children_?this.children_.length:0;if(O.inDocument_&&(x||!this.inDocument_))throw Error("bb");if(e<0||e>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);O.parent_==this?(_.HX.set(this.childIndex_,O.getId(),O),_.YW(this.children_,O)):_.HX.add(this.childIndex_,O.getId(),O);kSR(O,this);_.hs8(this.children_,e,0,O);O.inDocument_&&this.inDocument_&&O.parent_==this?(x=this.getContentElement(),
(x.childNodes[e]||null)!=O.getElement()&&(O.getElement().parentElement==x&&x.removeChild(O.getElement()),e=x.childNodes[e]||null,x.insertBefore(O.getElement(),e))):x?(this.JSC$10137_element_||this.JSC$10139_createDom(),e=this.children_?this.children_[e+1]||null:null,A_N(O,this.getContentElement(),e?e.JSC$10137_element_:null)):this.inDocument_&&!O.inDocument_&&O.JSC$10137_element_&&O.JSC$10137_element_.parentNode&&O.JSC$10137_element_.parentNode.nodeType==1&&O.enterDocument()};
_.b.getContentElement=function(){return this.JSC$10137_element_};
var Ml4=function(O,x){O.children_&&O.children_.forEach(x,void 0)};
Wx.prototype.removeChild=function(O,x){if(O){var e=typeof O==="string"?O:O.getId();O=this.childIndex_&&e?_.HX.get(this.childIndex_,e)||null:null;e&&O&&(_.HX.remove(this.childIndex_,e),_.YW(this.children_,O),x&&(O.exitDocument(),O.JSC$10137_element_&&_.Um(O.JSC$10137_element_)),kSR(O,null))}if(!O)throw Error("eb");return O};_.fI($bi,gcV);_.fI(ibw,gcV);var DyJ;_.HX.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var GST=function(O,x){x?O.setAttribute("role",x):O.removeAttribute("role")},z5=function(O,x,e){Array.isArray(e)&&(e=e.join(" "));
var l="aria-"+x;e===""||e==void 0?(DyJ||(e={},DyJ=(e.atomic=!1,e.autocomplete="none",e.dropeffect="none",e.haspopup=!1,e.live="off",e.multiline=!1,e.multiselectable=!1,e.orientation="vertical",e.readonly=!1,e.relevant="additions text",e.required=!1,e.sort="none",e.busy=!1,e.disabled=!1,e.hidden=!1,e.invalid="false",e)),e=DyJ,x in e?O.setAttribute(l,e[x]):O.removeAttribute(l)):O.setAttribute(l,e)};var FNF;_.rV=function(O,x,e){_.tf.call(this);this.target=O;this.handle=x||O;this.limits=e||new s5(NaN,NaN,NaN,NaN);this.JSC$10142_document_=_.BX(O);this.JSC$10142_eventHandler_=new _.Ev(this);_.qq(this,this.JSC$10142_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;_.ol(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=FNF};
_.fI(_.rV,_.tf);FNF=_.CV.document&&_.CV.document.documentElement&&!!_.CV.document.documentElement.setCapture&&!!_.CV.document.releaseCapture;_.Xop=function(O,x){O.hysteresisDistanceSquared_=Math.pow(x,2)};
_.b=_.rV.prototype;_.b.setEnabled=function(O){this.enabled_=O};
_.b.disposeInternal=function(){_.rV.superClass_.disposeInternal.call(this);_.EK(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10142_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10142_document_.releaseCapture();this.handle=this.target=null};
_.b.startDrag=function(O){var x=O.type=="mousedown";if(!this.enabled_||this.dragging_||x&&(!O.isButton(0)||_.RsF&&O.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Hx("start",this,O.clientX,O.clientY,O)))this.dragging_=!0,x&&O.preventDefault();else return;else x&&O.preventDefault();x=this.JSC$10142_document_;var e=x.documentElement,l=!this.useSetCapture_;this.JSC$10142_eventHandler_.listen(x,["touchmove","mousemove"],this.handleMove_,
{capture:l,passive:!1});this.JSC$10142_eventHandler_.listen(x,["touchend","mouseup"],this.endDrag,l);this.useSetCapture_?(e.setCapture(!1),this.JSC$10142_eventHandler_.listen(e,"losecapture",this.endDrag)):this.JSC$10142_eventHandler_.listen(nu(x),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10142_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,l);this.clientX=this.startX=O.clientX;this.clientY=this.startY=O.clientY;this.screenX=O.screenX;this.screenY=O.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Ud(an(this.JSC$10142_document_))}};
_.b.endDrag=function(O,x){this.JSC$10142_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10142_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Hx("end",this,O.clientX,O.clientY,O,o_4(this,this.deltaX),y_N(this,this.deltaY),x||O.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.b.handleMove_=function(O){if(this.enabled_){var x=O.clientX-this.clientX,e=O.clientY-this.clientY;this.clientX=O.clientX;this.clientY=O.clientY;this.screenX=O.screenX;this.screenY=O.screenY;if(!this.dragging_){var l=this.startX-this.clientX,C=this.startY-this.clientY;if(l*l+C*C>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Hx("start",this,O.clientX,O.clientY,O)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(O);return}}e=ZGd(this,x,e);x=e.x;e=e.y;this.dragging_&&this.dispatchEvent(new Hx("beforedrag",
this,O.clientX,O.clientY,O,x,e))&&(E_$(this,O,x,e),O.preventDefault())}};
var ZGd=function(O,x,e){var l=Ud(an(O.JSC$10142_document_));x+=l.x-O.pageScroll.x;e+=l.y-O.pageScroll.y;O.pageScroll=l;O.deltaX+=x;O.deltaY+=e;return new _.dc(o_4(O,O.deltaX),y_N(O,O.deltaY))};
_.rV.prototype.onScroll_=function(O){var x=ZGd(this,0,0);O.clientX=this.clientX;O.clientY=this.clientY;E_$(this,O,x.x,x.y)};
var E_$=function(O,x,e,l){O.target.style.left=e+"px";O.target.style.top=l+"px";O.dispatchEvent(new Hx("drag",O,x.clientX,x.clientY,x,e,l))},o_4=function(O,x){var e=O.limits;
O=isNaN(e.left)?null:e.left;e=isNaN(e.width)?0:e.width;return Math.min(O!=null?O+e:Infinity,Math.max(O!=null?O:-Infinity,x))},y_N=function(O,x){var e=O.limits;
O=isNaN(e.top)?null:e.top;e=isNaN(e.height)?0:e.height;return Math.min(O!=null?O+e:Infinity,Math.max(O!=null?O:-Infinity,x))};
_.rV.prototype.isDragging=function(){return this.dragging_};
var Hx=function(O,x,e,l,C,Q,L){_.Xz.call(this,O);this.clientX=e;this.clientY=l;this.browserEvent=C;this.left=Q!==void 0?Q:x.deltaX;this.top=L!==void 0?L:x.deltaY};
_.fI(Hx,_.Xz);var Ky=function(O){this.JSC$10149_map_=new Map;var x=arguments.length;if(x>1){if(x%2)throw Error("ma");for(var e=0;e<x;e+=2)this.set(arguments[e],arguments[e+1])}else O&&this.addAll(O)};
_.b=Ky.prototype;_.b.getCount=function(){return this.JSC$10149_map_.size};
_.b.getValues=function(){return Array.from(this.JSC$10149_map_.values())};
_.b.getKeys=function(){return Array.from(this.JSC$10149_map_.keys())};
_.b.containsKey=function(O){return this.JSC$10149_map_.has(O)};
_.b.containsValue=function(O){return this.getValues().some(function(x){return x==O})};
_.b.equals=function(O,x){var e=this;x=x===void 0?function(l,C){return l===C}:x;
return this===O?!0:this.JSC$10149_map_.size!=O.getCount()?!1:this.getKeys().every(function(l){return x(e.JSC$10149_map_.get(l),O.get(l))})};
_.b.isEmpty=function(){return this.JSC$10149_map_.size==0};
_.b.clear=function(){this.JSC$10149_map_.clear()};
_.b.remove=function(O){return this.JSC$10149_map_.delete(O)};
_.b.get=function(O,x){return this.JSC$10149_map_.has(O)?this.JSC$10149_map_.get(O):x};
_.b.set=function(O,x){this.JSC$10149_map_.set(O,x);return this};
_.b.addAll=function(O){if(O instanceof Ky){O=_.T(O.JSC$10149_map_);for(var x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;e=e.next().value;this.JSC$10149_map_.set(x,e)}}else if(O)for(O=_.T(Object.entries(O)),x=O.next();!x.done;x=O.next())e=_.T(x.value),x=e.next().value,e=e.next().value,this.JSC$10149_map_.set(x,e)};
_.b.forEach=function(O,x){var e=this;x=x===void 0?this:x;this.JSC$10149_map_.forEach(function(l,C){return O.call(x,l,C,e)})};
_.b.clone=function(){return new Ky(this)};(function(){for(var O=["ms","moz","webkit","o"],x,e=0;x=O[e]&&!_.CV.requestAnimationFrame;++e)_.CV.requestAnimationFrame=_.CV[x+"RequestAnimationFrame"],_.CV.cancelAnimationFrame=_.CV[x+"CancelAnimationFrame"]||_.CV[x+"CancelRequestAnimationFrame"];if(!_.CV.requestAnimationFrame){var l=0;_.CV.requestAnimationFrame=function(C){var Q=(new Date).getTime(),L=Math.max(0,16-(Q-l));l=Q+L;return _.CV.setTimeout(function(){C(Q+L)},L)};
_.CV.cancelAnimationFrame||(_.CV.cancelAnimationFrame=function(C){clearTimeout(C)})}})();
var tlD=[[],[]],qvz=0,PO2=!1,c_d=0,Vl$=function(O,x){var e=c_d++,l={measureTask:{id:e,fn:O.measure,context:x},mutateTask:{id:e,fn:O.mutate,context:x},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(l.args||(l.args=[]),l.args.length=0,l.args.push.apply(l.args,arguments),l.args.push(l.state)):l.args&&l.args.length!=0?(l.args[0]=l.state,l.args.length=1):l.args=[l.state];l.isScheduled||(l.isScheduled=!0,tlD[qvz].push(l));PO2||(PO2=!0,window.requestAnimationFrame(IyT))}},IyT=
function(){PO2=!1;
var O=tlD[qvz],x=O.length;qvz=(qvz+1)%2;for(var e,l=0;l<x;++l){e=O[l];var C=e.measureTask;e.isScheduled=!1;C.fn&&C.fn.apply(C.context,e.args)}for(l=0;l<x;++l)e=O[l],C=e.mutateTask,e.isScheduled=!1,C.fn&&C.fn.apply(C.context,e.args),e.state={};O.length=0};var pok=_.zo(["about:blank"]),R6F=_.zo(["javascript:undefined"]),Uyp=_.on(pok);_.sh(Uyp);var ayd=_.on(R6F);_.sh(ayd);var dV=function(O){_.tf.call(this);this.JSC$10155_element_=O;this.listenKeyIn_=_.ol(this.JSC$10155_element_,"focus",this,!0);this.listenKeyOut_=_.ol(this.JSC$10155_element_,"blur",this,!0)};
_.fI(dV,_.tf);dV.prototype.handleEvent=function(O){var x=new _.oj(O.event_);x.type=O.type=="focusin"||O.type=="focus"?"focusin":"focusout";this.dispatchEvent(x)};
dV.prototype.disposeInternal=function(){dV.superClass_.disposeInternal.call(this);GO(this.listenKeyIn_);GO(this.listenKeyOut_);delete this.JSC$10155_element_};var myL=function(O,x){this.JSC$10158_element_=O;this.JSC$10158_dom_=x};var ny=function(O,x){Wx.call(this,x);this.useIframeMask_=!!O;this.lastFocus_=null;this.resizeBackgroundTask_=Vl$({mutate:this.resizeBackground_},this);Vl$({mutate:this.updateModalAndBackground_},this)};
_.fI(ny,Wx);_.b=ny.prototype;_.b.focusHandler_=null;_.b.visible_=!1;_.b.bgEl_=null;_.b.bgIframeEl_=null;_.b.tabCatcherElement_=null;_.b.backwardTabWrapInProgress_=!1;_.b.getCssClass=function(){return"goog-modalpopup"};
_.b.getBackgroundElement=function(){return this.bgEl_};
_.b.JSC$10139_createDom=function(){ny.superClass_.JSC$10139_createDom.call(this);var O=this.getElement(),x=Gr(this.getCssClass()).split(" ");Yu(O,x);O.tabIndex=0;_.Ce(O,!1);sp$(this);WN$(this)};
var sp$=function(O){if(O.useIframeMask_&&!O.bgIframeEl_){var x=O.JSC$10137_dom_.JSC$9323_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.gk(x,Uyp);O.bgIframeEl_=x;O.bgIframeEl_.className=O.getCssClass()+"-bg";_.Ce(O.bgIframeEl_,!1);VNd(O.bgIframeEl_,0)}O.bgEl_||(O.bgEl_=O.JSC$10137_dom_.JSC$9323_createDom("DIV",O.getCssClass()+"-bg"),_.Ce(O.bgEl_,!1))},WN$=function(O){O.tabCatcherElement_||(O.tabCatcherElement_=O.JSC$10137_dom_.createElement("SPAN"),_.Ce(O.tabCatcherElement_,
!1),O.tabCatcherElement_.tabIndex=0,O.tabCatcherElement_.style.position="absolute")};
_.b=ny.prototype;_.b.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.b.canDecorate=function(O){return!!O&&O.tagName=="DIV"};
_.b.decorateInternal=function(O){ny.superClass_.decorateInternal.call(this,O);O=Gr(this.getCssClass()).split(" ");Yu(this.getElement(),O);sp$(this);WN$(this);this.getElement().tabIndex=0;_.Ce(this.getElement(),!1)};
_.b.enterDocument=function(){this.bgIframeEl_&&_.Rs(this.bgIframeEl_,this.getElement());_.Rs(this.bgEl_,this.getElement());ny.superClass_.enterDocument.call(this);_.U5(this.tabCatcherElement_,this.getElement());this.focusHandler_=new dV(this.JSC$10137_dom_.JSC$9321_document_);hD(this).listen(this.focusHandler_,"focusin",this.onFocus);h6F(this,!1)};
_.b.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Lf(this.focusHandler_);ny.superClass_.exitDocument.call(this);_.Um(this.bgIframeEl_);_.Um(this.bgEl_);_.Um(this.tabCatcherElement_)};
_.b.setVisible=function(O){if(O!=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_&&h6F(this,O),O){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10137_dom_.JSC$9321_document_.activeElement}catch(C){}this.updateModalAndBackground_();hD(this).listen(this.JSC$10137_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10137_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);z6T(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Da(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){hD(this).unlisten(this.JSC$10137_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10137_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Da(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var x=this.JSC$10137_dom_,e=x.JSC$9321_document_.body,l=x.JSC$9321_document_.activeElement||e;if(!this.lastFocus_||this.lastFocus_==e){this.lastFocus_=null;break a}(l==e||x.contains(this.getElement(),l))&&this.lastFocus_.focus()}catch(C){}this.lastFocus_=
null}}};
var h6F=function(O,x){O.modalAriaVisibilityHelper_||(O.modalAriaVisibilityHelper_=new myL(O.JSC$10137_element_,O.JSC$10137_dom_));O=O.modalAriaVisibilityHelper_;if(x){O.hiddenElements_||(O.hiddenElements_=[]);x=O.JSC$10158_dom_.getChildren(O.JSC$10158_dom_.JSC$9321_document_.body);for(var e=0;e<x.length;e++){var l=x[e],C;if(C=l!=O.JSC$10158_element_)C=l.getAttribute("aria-hidden"),C=!(C==null||C==void 0?0:String(C));C&&(z5(l,"hidden",!0),O.hiddenElements_.push(l))}}else if(O.hiddenElements_){for(x=
0;x<O.hiddenElements_.length;x++)O.hiddenElements_[x].removeAttribute("aria-hidden");O.hiddenElements_=null}};
ny.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var z6T=function(O,x){O.bgIframeEl_&&_.Ce(O.bgIframeEl_,x);O.bgEl_&&_.Ce(O.bgEl_,x);_.Ce(O.getElement(),x);_.Ce(O.tabCatcherElement_,x)};
_.b=ny.prototype;_.b.onShow=function(){this.dispatchEvent("show")};
_.b.onHide=function(){z6T(this,!1);this.dispatchEvent("hide")};
_.b.isVisible=function(){return this.visible_};
_.b.focus=function(){this.focusElement_()};
_.b.resizeBackground_=function(){this.bgIframeEl_&&_.Ce(this.bgIframeEl_,!1);this.bgEl_&&_.Ce(this.bgEl_,!1);var O=this.JSC$10137_dom_.JSC$9321_document_;var x=_.Rn(nu(this.JSC$10137_dom_.JSC$9321_document_)||window);var e=Math.max(x.width,Math.max(O.body.scrollWidth,O.documentElement.scrollWidth));O=Math.max(x.height,Math.max(O.body.scrollHeight,O.documentElement.scrollHeight));this.bgIframeEl_&&(_.Ce(this.bgIframeEl_,!0),_.qdz(this.bgIframeEl_,e,O));this.bgEl_&&(_.Ce(this.bgEl_,!0),_.qdz(this.bgEl_,
e,O))};
_.b.reposition=function(){var O;if(_.tNR(this.getElement())=="fixed")var x=O=0;else x=Ud(this.JSC$10137_dom_),O=x.x,x=x.y;var e=cjF(this.getElement());var l=_.Rn(nu(this.JSC$10137_dom_.JSC$9321_document_)||window);O=Math.max(O+l.width/2-e.width/2,0);x=Math.max(x+l.height/2-e.height/2,0);z3(this.getElement(),O,x);z3(this.tabCatcherElement_,O,x)};
_.b.onFocus=function(O){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():O.target==this.tabCatcherElement_&&VK(this.focusElement_,0,this)};
_.b.focusElement_=function(){try{this.getElement().focus()}catch(O){}};
_.b.disposeInternal=function(){_.Lf(this.popupShowTransition_);this.popupShowTransition_=null;_.Lf(this.popupHideTransition_);this.popupHideTransition_=null;_.Lf(this.bgShowTransition_);this.bgShowTransition_=null;_.Lf(this.bgHideTransition_);this.bgHideTransition_=null;ny.superClass_.disposeInternal.call(this)};var ff=function(O,x,e){ny.call(this,x,e);this.JSC$10168_class_=O||"modal-dialog";this.buttons_=(new uR).addButton(r_R,!0).addButton(HG2,!1,!0)};
_.fI(ff,ny);_.b=ff.prototype;_.b.escapeToCancel_=!0;_.b.hasTitleCloseButton_=!0;_.b.modal_=!0;_.b.draggable_=!0;_.b.backgroundElementOpacity_=.5;_.b.title_="";_.b.JSC$10170_dragger_=null;_.b.JSC$10170_disposeOnHide_=!1;_.b.titleEl_=null;_.b.titleTextEl_=null;_.b.titleTextId_=null;_.b.titleCloseEl_=null;_.b.contentEl_=null;_.b.buttonEl_=null;_.b.getCssClass=function(){return this.JSC$10168_class_};
_.b.setTitle=function(O){this.title_=O;this.titleTextEl_&&_.mn(this.titleTextEl_,O)};
_.b.getTitle=function(){return this.title_};
_.b.getContent=function(){return""};
_.b.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var KN2=function(O){O.getElement()||O.render();return O.getElement()};
ff.prototype.getBackgroundElement=function(){this.getElement()||this.render();return ff.superClass_.getBackgroundElement.call(this)};
var dyk=function(O,x){O.backgroundElementOpacity_=x;O.getElement()&&(x=O.getBackgroundElement())&&VNd(x,O.backgroundElementOpacity_)};
ff.prototype.setDraggable=function(O){this.draggable_=O;n_R(this,O&&this.inDocument_)};
ff.prototype.handleDrag=function(){};
var n_R=function(O,x){var e=Gr(O.JSC$10168_class_+"-title-draggable").split(" ");O.getElement()&&(x?Yu(O.titleEl_,e):GCd(O.titleEl_,e));x&&!O.JSC$10170_dragger_?(x=new _.rV(O.getElement(),O.titleEl_),O.JSC$10170_dragger_=x,Yu(O.titleEl_,e),_.ol(O.JSC$10170_dragger_,"start",O.setDraggerLimits_,!1,O),_.ol(O.JSC$10170_dragger_,"drag",O.handleDrag,!1,O)):!x&&O.JSC$10170_dragger_&&(O.JSC$10170_dragger_.dispose(),O.JSC$10170_dragger_=null)};
_.b=ff.prototype;
_.b.JSC$10139_createDom=function(){ff.superClass_.JSC$10139_createDom.call(this);var O=this.getElement(),x=this.JSC$10137_dom_;this.titleTextId_=this.getId();var e=this.getId()+".contentEl";this.titleEl_=x.JSC$9323_createDom("DIV",this.JSC$10168_class_+"-title",this.titleTextEl_=x.JSC$9323_createDom("SPAN",{className:this.JSC$10168_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=x.JSC$9323_createDom("SPAN",this.JSC$10168_class_+"-title-close"));xM$(O,this.titleEl_,this.contentEl_=
x.JSC$9323_createDom("DIV",{className:this.JSC$10168_class_+"-content",id:e}),this.buttonEl_=x.JSC$9323_createDom("DIV",this.JSC$10168_class_+"-buttons"));GST(this.titleTextEl_,"heading");GST(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;z5(this.titleCloseEl_,"label","Close");GST(O,"dialog");z5(O,"labelledby",this.titleTextId_||"");_.Ce(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(O=this.buttons_,O.JSC$10171_element_=this.buttonEl_,O.render());_.Ce(this.buttonEl_,!!this.buttons_);
dyk(this,this.backgroundElementOpacity_)};
_.b.decorateInternal=function(O){ff.superClass_.decorateInternal.call(this,O);O=this.getElement();var x=this.JSC$10168_class_+"-content";this.contentEl_=qp(document,null,x,O)[0];this.contentEl_||(this.contentEl_=this.JSC$10137_dom_.JSC$9323_createDom("DIV",x),O.appendChild(this.contentEl_));x=this.JSC$10168_class_+"-title";var e=this.JSC$10168_class_+"-title-text",l=this.JSC$10168_class_+"-title-close";(this.titleEl_=qp(document,null,x,O)[0])?(this.titleTextEl_=qp(document,null,e,this.titleEl_)[0],
this.titleCloseEl_=qp(document,null,l,this.titleEl_)[0]):(this.titleEl_=this.JSC$10137_dom_.JSC$9323_createDom("DIV",x),O.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=XX4(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.cS("SPAN",{className:e,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;z5(O,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10137_dom_.JSC$9323_createDom("SPAN",l),this.titleEl_.appendChild(this.titleCloseEl_));_.Ce(this.titleCloseEl_,this.hasTitleCloseButton_);x=this.JSC$10168_class_+"-buttons";(this.buttonEl_=qp(document,null,x,O)[0])?(this.buttons_=new uR(this.JSC$10137_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10137_dom_.JSC$9323_createDom("DIV",x),O.appendChild(this.buttonEl_),this.buttons_&&(O=this.buttons_,O.JSC$10171_element_=this.buttonEl_,O.render()),_.Ce(this.buttonEl_,
!!this.buttons_));dyk(this,this.backgroundElementOpacity_)};
_.b.enterDocument=function(){ff.superClass_.enterDocument.call(this);hD(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);hD(this).listen(this.buttonEl_,"click",this.onButtonClick_);n_R(this,this.draggable_);hD(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var O=this.getElement();GST(O,"dialog");this.titleTextEl_.id!==""&&z5(O,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){O=this.JSC$10137_dom_;
var x=this.getBackgroundElement();O.removeNode(this.bgIframeEl_);O.removeNode(x)}this.isVisible()&&h6F(this,!1)}};
_.b.exitDocument=function(){this.isVisible()&&this.setVisible(!1);n_R(this,!1);ff.superClass_.exitDocument.call(this)};
_.b.setVisible=function(O){O!=this.isVisible()&&(this.inDocument_||this.render(),ff.superClass_.setVisible.call(this,O))};
_.b.onShow=function(){ff.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.b.onHide=function(){ff.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10170_disposeOnHide_&&this.dispose()};
_.b.setDraggerLimits_=function(){var O=this.JSC$10137_dom_.JSC$9321_document_,x=_.Rn(nu(O)||window),e=Math.max(O.body.scrollWidth,x.width);O=Math.max(O.body.scrollHeight,x.height);var l=cjF(this.getElement());_.tNR(this.getElement())=="fixed"?this.JSC$10170_dragger_.limits=new s5(0,0,Math.max(0,x.width-l.width),Math.max(0,x.height-l.height)):this.JSC$10170_dragger_.limits=new s5(0,0,e-l.width,O-l.height)};
_.b.onTitleCloseClick_=function(){upd(this)};
var upd=function(O){if(O.hasTitleCloseButton_){var x=O.buttons_,e=x&&x.cancelButton_;e?(x=x.get(e),O.dispatchEvent(new Yx(e,x))&&O.setVisible(!1)):O.setVisible(!1)}},Yv2=function(O){O.hasTitleCloseButton_=!1;
O.titleCloseEl_&&_.Ce(O.titleCloseEl_,O.hasTitleCloseButton_)};
ff.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;ff.superClass_.disposeInternal.call(this)};
ff.prototype.onButtonClick_=function(O){a:{for(O=O.target;O!=null&&O!=this.buttonEl_;){if(O.tagName=="BUTTON")break a;O=O.parentNode}O=null}if(O&&!O.disabled){O=O.name;var x=this.buttons_.get(O);this.dispatchEvent(new Yx(O,x))&&this.setVisible(!1)}};
ff.prototype.onKey_=function(O){var x=!1,e=!1,l=this.buttons_,C=O.target;if(O.type=="keydown")if(this.escapeToCancel_&&O.keyCode==27){var Q=l&&l.cancelButton_;C=C.tagName=="SELECT"&&!C.disabled;Q&&!C?(e=!0,x=l.get(Q),x=this.dispatchEvent(new Yx(Q,x))):C||(x=!0)}else{if(O.keyCode==9&&O.shiftKey&&C==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(X){}VK(this.resetBackwardTabWrap_,0,this)}}else if(O.keyCode==13){if(C.tagName=="BUTTON"&&!C.disabled)Q=C.name;
else if(C==this.titleCloseEl_)upd(this);else if(l){var L=l.defaultButton_,k;if(k=L)a:{k=a9("BUTTON",l.JSC$10171_element_);for(var M,G=0;M=k[G];G++)if(M.name==L||M.id==L){k=M;break a}k=null}C=(C.tagName=="TEXTAREA"||C.tagName=="SELECT"||C.tagName=="A")&&!C.disabled;!k||k.disabled||C||(Q=L)}Q&&l&&(e=!0,x=this.dispatchEvent(new Yx(Q,String(l.get(Q)))))}else C!=this.titleCloseEl_||O.keyCode!=32&&O.key!=" "||upd(this);if(x||e)O.stopPropagation(),O.preventDefault();x&&this.setVisible(!1)};
var Yx=function(O,x){this.type="dialogselect";this.key=O;this.caption=x};
_.fI(Yx,_.Xz);var uR=function(O){Ky.call(this);O||an();this.cancelButton_=this.JSC$10171_element_=this.defaultButton_=null};
_.fI(uR,Ky);_.b=uR.prototype;_.b.clear=function(){Ky.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.b.set=function(O,x,e,l){Ky.prototype.set.call(this,O,x);e&&(this.defaultButton_=O);l&&(this.cancelButton_=O);return this};
_.b.addButton=function(O,x,e){return this.set(O.key,O.caption,x,e)};
_.b.render=function(){if(this.JSC$10171_element_){_.bx(this.JSC$10171_element_,MCr);var O=an(this.JSC$10171_element_);this.forEach(function(x,e){x=O.JSC$9323_createDom("BUTTON",{name:e},x);e==this.defaultButton_&&(x.className="goog-buttonset-default");this.JSC$10171_element_.appendChild(x)},this)}};
_.b.decorate=function(O){if(O&&O.nodeType==1){this.JSC$10171_element_=O;O=a9("BUTTON",this.JSC$10171_element_);for(var x,e,l,C=0;x=O[C];C++)if(e=x.name||x.id,l=XX4(x)||x.value,e){var Q=C==0;this.set(e,l,Q,x.name=="cancel");Q&&_.uV(x,"goog-buttonset-default")}}};
_.b.getElement=function(){return this.JSC$10171_element_};
var r_R={key:"ok",caption:"OK"},HG2={key:"cancel",caption:"Cancel"},BMd={key:"yes",caption:"Yes"},v_D={key:"no",caption:"No"},fy$={key:"save",caption:"Save"},J_d={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new uR).addButton(r_R,!0,!0),(new uR).addButton(r_R,!0).addButton(HG2,!1,!0),(new uR).addButton(BMd,!0).addButton(v_D,!1,!0),(new uR).addButton(BMd).addButton(v_D,!0).addButton(HG2,!1,!0),(new uR).addButton(J_d).addButton(fy$).addButton(HG2,!0,!0));_.fI(O$$,ff);_.fI(xBr,J0);var woN=_.zo(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Svd=_.zo(["//apis.google.com/js/rpc.js"]),ANm=_.on(woN),kCr=_.on(Svd),lG8=null;var Nq=function(O,x){_.tf.call(this);this.JSC$10180_element_=O;O=_.Tl(this.JSC$10180_element_)?this.JSC$10180_element_:this.JSC$10180_element_?this.JSC$10180_element_.body:null;this.isRtl_=!!O&&_.pXN(O);this.listenKey_=_.ol(this.JSC$10180_element_,_.No?"DOMMouseScroll":"mousewheel",this,x)};
_.fI(Nq,_.tf);Nq.prototype.handleEvent=function(O){var x=0,e=0,l=O.event_;l.type=="mousewheel"?(O=jpJ(-l.wheelDelta),l.wheelDeltaX!==void 0?(x=jpJ(-l.wheelDeltaX),e=jpJ(-l.wheelDeltaY)):e=O):(O=l.detail,O>100?O=3:O<-100&&(O=-3),l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS?x=O:e=O);typeof this.maxDeltaX_==="number"&&(x=_.qo(x,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(e=_.qo(e,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(x=-x);x=new NM$(O,l,x,e);this.dispatchEvent(x)};
var jpJ=function(O){return _.gC&&(_.RsF||ank)&&O%40!=0?O:O/40};
Nq.prototype.disposeInternal=function(){Nq.superClass_.disposeInternal.call(this);GO(this.listenKey_);this.listenKey_=null};
var NM$=function(O,x,e,l){_.oj.call(this,x);this.type="mousewheel";this.detail=O;this.deltaX=e;this.deltaY=l};
_.fI(NM$,_.oj);_.uc=function(O){var x="instance_";if(O.instance_&&O.hasOwnProperty(x))return O.instance_;x=new O;return O.instance_=x};var LQW;var g_4=_.zo(["https://about:blank"]),$y3=_.zo(['javascript:""']),iGR=_.zo(["about:blank"]);_.fI(Qd,O$$);_.b=Qd.prototype;_.b.JSC$10188_url_="";_.b.JSC$10188_iframe_=null;_.b.iframeLoaded_=!1;_.b.loadedFired_=!1;_.b.callback_=function(){};
_.b.enterDocument=function(){Qd.superClass_.enterDocument.call(this);b$m(this.getBackgroundElement(),hD(this))};
_.b.render=function(O){var x=this;Qd.superClass_.render.call(this,O);this.useGapi_?iw3(this.iframeManager_,window).then(function(){return O1J(x)}).then(null,function(){x.callback_({action:"error"})}):x9R(this)};
var O1J=function(O){var x=O.JSC$10137_dom_.JSC$9323_createDom("div",["picker-dialog-content","picker-frame"]);_.Ce(x,!1);O.getContentElement().appendChild(x);return OGF(O.iframeManager_,x,function(e){var l=ZfT(e["iframe-command"]);switch(l.getCommand()){case 1:e=O.callback_;l=_.y4(l,$4,2);var C="";switch(l.getStatus()){case 2:C="cancel";break;case 1:C="picked";break;case 3:C="error"}var Q=_.Mq(l,Mi,2,_.Dd(O22));l=Q.length===0?{action:C}:hRR(Q,C,_.y4(l,XvL,7));e.call(O,l);O.setVisible(!1);break;case 4:Yv2(O);
O.callback_({action:"loaded"});break;case 7:case 8:e=O.callback_;a:{C=l.getCommand();Q=_.y4(l,$4,2);switch(C){case 7:C="uploadScheduled";break;case 8:C="uploadStateChange";break;default:l={};break a}l=_.Mq(Q,Mi,2,_.Dd(O22));if(l.length===0)l={action:C};else{var L=_.y4(Q,XvL,7);Q=L&&_.oK(L,1);L=PDk(L);l=V2F(l,C,Q,L)}}e.call(O,l)}},O.JSC$10188_url_,O.targetId_,O.rpcToken_).then(function(e){O.JSC$10188_iframe_=e.getIframeEl();
eoD(O);_.Ce(O.JSC$10188_iframe_.parentElement,!0);_.uV(O.getElement(),"picker-dialog");lfd(O);return e})},x9R=function(O){O.JSC$10188_iframe_=O.JSC$10137_dom_.JSC$9323_createDom("IFRAME",{id:O.targetId_,
name:O.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.gk(O.JSC$10188_iframe_,ChD(O));_.uV(O.getElement(),"picker-dialog");O.getContentElement().appendChild(O.JSC$10188_iframe_);hD(O).listen(O.JSC$10188_iframe_,"load",function(){return void eoD(O)});
O.JSC$10188_iframe_.src=O.JSC$10188_url_;lfd(O)},b1p=function(O){Qgk(O,(0,_.z8)(function(x){x.setAuthToken(this.targetId_,this.rpcToken_)},O))},lfd=function(O){var x=_.ej(_.xO(O.JSC$10188_url_),"title");
x&&O.setTitle(x)},ChD=function(O){return _.PrL("Internet Explorer")>=7&&_.br(O.JSC$10188_url_,"https")?_.on(g_4):_.j1?_.on($y3):_.on(iGR)},eoD=function(O){b1p(O);
O.iframeLoaded_=!0;O.JSC$10188_iframe_.tabIndex=0;O.isVisible()&&O.focus()};
Qd.prototype.handleKeydown_=function(O){O.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),O.stopPropagation(),O.preventDefault())};
var Qgk=function(O,x){var e=O.JSC$10186_gadgetsDomHelper_;CbV(function(){x(e.getWindow().gadgets.rpc)},e)};
Qd.prototype.setUrl=function(O){O=_.lo(new _.K1(O),"rpcService",this.targetId_);_.lo(O,"rpctoken",this.rpcToken_);_.lR(O,"rpctoken="+this.rpcToken_);_.$u(O,"https");this.JSC$10188_url_=O.toString();this.JSC$10188_iframe_&&(this.JSC$10188_iframe_.src=this.JSC$10188_url_)};
var TrT=function(O,x){O.callback_=x;Qgk(O,(0,_.z8)(function(e){e.register(this.targetId_,(0,_.z8)(this.handlePickerAction_,this))},O))};
Qd.prototype.handlePickerAction_=function(O){var x=O.action;x=="loaded"&&(this.loadedFired_=!0,LHN(this,new ibw(this.isVisible())),k0R(this),Yv2(this),hD(this).unlisten(this.JSC$10137_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10188_iframe_.tabIndex=0);x!="picked"&&x!="cancel"||this.setVisible(!1);this.callback_(O)};
var k0R=function(O){O.JSC$10188_appId_&&LHN(O,new $bi(O.JSC$10188_appId_,window.location.protocol+"//"+window.location.host))};
Qd.prototype.setRelayUrl=function(O){Qgk(this,(0,_.z8)(function(x){x.setRelayUrl(this.targetId_,O)},this))};
var LHN=function(O,x){O.useGapi_&&Qp$(x,O.iframeManager_).then(null,function(){O.callback_({action:"error"})});
Qgk(O,(0,_.z8)(function(e){e.call(this.targetId_,"picker",null,x)},O))};
Qd.prototype.resizePicker_=function(){var O=nu(this.JSC$10137_dom_.JSC$9321_document_)||window;if(_.ej(_.xO(this.JSC$10188_url_),"ignoreLimits")=="true")O=new _.pu(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.ej(_.xO(this.JSC$10188_url_),"shadeDialog")=="true"){var x=KN2(this);x=RQ$(x);var e=_.Rn(O);O=e.width-80;e=e.height-40;x&&(O-=x.left?x.left:0,O-=x.right?x.right:0,e-=x.top?x.top:0,e-=x.bottom?x.bottom:0);O=new _.pu(O>0?O:0,e>0?e:0)}else(x=this.preferredDialogWidth_)?(x=Math.max(320,
Math.min(1051,x)),(e=this.preferredDialogHeight_)||(e=_.Rn(O).height*.85),e=Math.max(480,Math.min(650,e))):(x=_.Rn(O),e=x.width*.618,e=e<x.height?Math.round(Math.max(480,Math.min(650,e*.85))):Math.round(Math.max(480,Math.min(650,x.height*.85))),x=Math.round(e/.618)),O=_.Rn(O),x=Math.min(x,Math.max(O.width,320)),e=Math.min(e,Math.max(O.height,480)),O=new _.pu(x,e);_.qdz(this.getContentElement(),O);this.reposition()};
Qd.prototype.reposition=function(){if(_.ej(_.xO(this.JSC$10188_url_),"shadeDialog")=="true"){var O=cjF(this.getElement()),x=_.Rn(this.JSC$10137_dom_.getWindow());O=Math.floor(x.width/2-O.width/2);x=KN2(this);if(x=RQ$(x)){var e=x.left?x.left:0;e+=x.right?x.right:0;O=Math.floor(O-e/2)}O=O>0?O:0;x=Ud(this.JSC$10137_dom_).y;z3(this.getElement(),O,x)}else Qd.superClass_.reposition.call(this)};
Qd.prototype.setVisible=function(O){if(O!=this.isVisible()&&this.autoSizeDialog_){var x=this.JSC$10137_dom_.getWindow();O?(this.resizePicker_(),hD(this).listen(x,"resize",this.resizePicker_),this.iframeLoaded_||hD(this).listen(x,"keydown",this.handleKeydown_)):(hD(this).unlisten(x,"resize",this.resizePicker_),this.iframeLoaded_||hD(this).unlisten(x,"keydown",this.handleKeydown_))}Qd.superClass_.setVisible.call(this,O);LHN(this,new ibw(O))};
Qd.prototype.focus=function(){Qd.superClass_.focus.call(this);if(this.JSC$10188_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10188_iframe_.focus()}catch(O){}};var PR=function(O,x){x=x===void 0?Qd:x;J0.call(this,O);this.pickerConstructor=x;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(O=window.location.origin)||(O=window.location.protocol+"//"+window.location.host);O&&this.urlParamMap_.set("origin",O);this.postProcessors_=[]};
_.c(PR,xBr);PR.prototype.JSC$10193_disposeOnHide_=!1;
PR.prototype.build=function(){this.JSC$10094_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10094_appId_);this.getRelayUrl()||this.setRelayUrl(_.xx(_.lR(_.ev(_.xO(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var O=new this.pickerConstructor(As$(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);O.JSC$10170_disposeOnHide_=this.JSC$10193_disposeOnHide_;
O.JSC$10188_appId_=this.JSC$10094_appId_;O.loadedFired_&&k0R(O);TrT(O,this.callback_);return O};
var Mhz=function(O){O.urlParamMap_.set("multiselectEnabled","true");return O};
_.b=PR.prototype;_.b.getHeight=function(){return this.dialogHeight_};
_.b.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.b.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.b.getTitle=function(){return this.urlParamMap_.get("title")};
_.b.getWidth=function(){return this.dialogWidth_};
var D9T=function(O){O.JSC$10193_disposeOnHide_=void 0;return O};
PR.prototype.setRelayUrl=function(O){this.urlParamMap_.set("parent",O);return this};
var G0R=function(O,x){O.urlParamMap_.set("selectButtonLabel",x);return O};
PR.prototype.setSize=function(O,x){this.dialogWidth_=O;this.dialogHeight_=x;return this};
PR.prototype.setTitle=function(O){this.urlParamMap_.set("title",O);return this};
var As$=function(O){O.postProcessors_.length&&O.urlParamMap_.set("pp",JSON.stringify(O.postProcessors_));O.urlParamMap_.set("nav",Zwp(O.nav_));var x=new _.K1(O.getBaseUrl());O.urlParamMap_.forEach(function(e,l){_.lo(x,l,e)});
return x};var o74=function(O,x){O.name!==void 0?(this.name=O.name,this.code=FHT[O.name]):(this.code=O=O.code,this.name=Xqd(O));_.ew.call(this,nyT("%s %s",this.name,x))};
_.fI(o74,_.ew);var Xqd=function(O){var x=_.HX.findKey(FHT,function(e){return O==e});
if(x===void 0)throw Error("hb`"+O);return x},Bx={},FHT=(Bx.AbortError=3,Bx.EncodingError=5,Bx.InvalidModificationError=9,Bx.InvalidStateError=7,Bx.NotFoundError=1,Bx.NotReadableError=4,Bx.NoModificationAllowedError=6,Bx.PathExistsError=12,Bx.QuotaExceededError=10,Bx.SecurityError=2,Bx.SyntaxError=8,Bx.TypeMismatchError=11,Bx);var ysF=function(O,x){_.Xz.call(this,O.type,x);this.event_=O};
_.fI(ysF,_.Xz);var Z1R=function(O,x,e){e===void 0&&(e=O.size);return O.slice?O.slice(x,e):null};var GCW=new WeakMap,DB$=function(O,x){O=[O];for(var e=x.length-1;e>=0;--e)O.push(typeof x[e],x[e]);return O.join("\v")};_.Xnm(function(){if(!_.CV.Blob)return!1;var O=new Uint8Array(100);try{var x=new Blob([O])}catch(e){return!1}return x.size!=100?!1:!0});
var E7z=_.Xnm(function(){if(!_.CV.Blob)return!1;var O=new Uint8Array(100);try{var x=new Blob([O])}catch(e){return!1}return Z1R(x,0,1)===null?!1:!0});_.CV.U3bHHf!=null||(_.CV.U3bHHf=0);_.CV.U3bHHf++;_.thL=new WeakMap;_.qbz=new WeakMap;var yNw={};var Le=void 0;var ECr=Symbol("pb");var WQn=M4("WizInjectionContext_Dispatcher");var Fm=Symbol("qb");var RU,hZ;RU=function(){this.afterRenderCallbacks=null};
_.ths=Symbol("rb");hZ=function(O){this.props=O;this.__unmounted=!1};
hZ.prototype.didPatch=function(){};
hZ.prototype.didMount=function(){};
hZ.prototype.didUnmount=function(){};
hZ.prototype.didUpdate=function(){};_.RxN=M4("WizInjectionContext_RootElement");var aGn=M4("WizInjectionContext_AppContext"),UBr=M4("WizInjectionContext_ModelRootElement"),mBr=M4("WizInjectionContext_RendererData"),sCr=M4("WizInjectionContext_InjectingConstructor"),pnr=M4("WizInjectionContext_AsyncDeps"),hx8={};var nC8=!1;var vCL={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:q8z,enableLazyTsx:PrJ,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:twL,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Gc=Object.assign({},{attributes:{},handleError:function(O){throw O;}},vCL);var PhR=Symbol("vb"),sf=Symbol("wb"),eRi=Symbol("xb"),Ow7=Symbol("yb"),kQ8=hJ(function(O){return F1(O)&&PhR in O});var gCL=Symbol("zb"),vx={},jCr=(vx[gCL]=!0,vx.debugName="[component]",vx.getComponentStack=function(){for(var O=[],x=this;x;)$BL(x)&&O.push(x.debugName),x=x.parent;return O},vx.registerSignal=function(){},vx.registerEffect=function(){},vx);var X1=null,yd=!1,Ef=1,PL=Symbol("Db"),Uf={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 fy=Symbol("Eb"),JD=Symbol("Fb"),q4=Symbol("Gb"),Vbr=Object.assign({},Uf,{value:fy,dirty:!0,error:null,equal:i$L,kind:"computed",producerMustRecompute:function(O){return O.value===fy||O.value===JD},
producerRecomputeValue:function(O){if(O.value===JD)throw Error("Z");var x=O.value;O.value=JD;var e=Qfn(O),l=!1;try{var C=O.computation();ow(null);l=x!==fy&&x!==q4&&C!==q4&&O.equal(x,C)}catch(Q){C=q4,O.error=Q}finally{ow(e),O&&TlL(O)}l?O.value=x:(O.value=C,O.version++)}});Object.assign({},Uf,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var aPL=function(){throw Error();};var sfW=null,Rw$=Object.assign({},Uf,{equal:i$L,value:void 0,kind:"signal"});var Wv7=Object.assign({},Uf,{value:fy,dirty:!0,error:null,equal:i$L,kind:"linkedSignal",producerMustRecompute:function(O){return O.value===fy||O.value===JD},
producerRecomputeValue:function(O){if(O.value===JD)throw Error("Z");var x=O.value;O.value=JD;var e=Qfn(O);try{var l=O.source();var C=O.computation(l,x===fy||x===q4?void 0:{source:O.sourceValue,value:x});O.sourceValue=l}catch(Q){C=q4,O.error=Q}finally{ow(e),O&&TlL(O)}x!==fy&&C!==q4&&O.equal(x,C)?O.value=x:(O.value=C,O.version++)}});Object.assign({},Uf,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(O){O.schedule!==null&&O.schedule(O.ref)},
cleanupFn:function(){}});var rGW=Symbol("Hb"),Vd=Symbol("Ib");var pe=Array.isArray;var fPs;var csN={},wHm=vbL(Object.assign({},{consumerAllowSignalWrites:!0},csN)),aU=vbL(Object.assign({},{consumerAllowSignalWrites:!0},csN));var WL=0,h6=!1,wV=function(){this.queue=new Set};
wV.prototype.schedule=function(O){this.queue.add(O)};
wV.prototype.remove=function(O){this.queue.delete(O)};
wV.prototype.clear=function(){this.queue.clear()};
var Nlr=Symbol("Nb"),SnN=Symbol("Ob"),Sv=function(){wV.apply(this,arguments)};
_.c(Sv,wV);Sv.prototype.flush=function(){if(this.queue.size){h6=!0;for(var O=_.T(this.queue),x=O.next();!x.done;x=O.next()){x=x.value;this.queue.delete(x);try{x.run()}catch(e){If$(e)}}h6=!1}};
var Vh$=function(){Sv.apply(this,arguments)};
_.c(Vh$,Sv);var jf8=new Vh$,pq2=function(){Sv.apply(this,arguments)};
_.c(pq2,Sv);pq2.prototype.schedule=function(O){var x=this;return _.A(function(e){if(e.nextAddress==1)return Gc.enableQueueEffectAndOnInitInitialRuns?e.jumpTo(2):e.yield(Promise.resolve(),3);if(e.nextAddress!=2)return O.run(),e.return();x.queue.add(O);_.Ra(e)})};
var gbw=new pq2,jv=function(){wV.apply(this,arguments)};
_.c(jv,wV);jv.prototype.flush=function(){this.queue.size&&AaW(this.queue)};
var Ro3=function(){jv.apply(this,arguments)};
_.c(Ro3,jv);Ro3.prototype.schedule=function(O){O.hasRun?this.queue.add(O):O.run()};
Ro3.prototype.flush=function(){if(this.queue.size)if(Gc.flushRenderEffectsDuringRender){var O=this.queue;this.queue=new Set;AaW(O)}else AaW(this.queue)};
var itr=new Ro3,U93=function(){jv.apply(this,arguments)};
_.c(U93,jv);U93.prototype.schedule=function(O){var x=this;return _.A(function(e){if(e.nextAddress==1)return Gc.enableQueueEffectAndOnInitInitialRuns||O.hasRun?e.jumpTo(2):e.yield(Promise.resolve(),3);if(e.nextAddress!=2)return O.run(),e.return();x.queue.add(O);_.Ra(e)})};
var l9$=new U93,af2=function(){jv.apply(this,arguments)};
_.c(af2,jv);var x3r=new af2,Qyw=[itr,jf8,x3r],L1r=[gbw,l9$],m9F=[itr,x3r,l9$],M2L=[].concat(_.Kx(Qyw),_.Kx(L1r)),sgT=[];sfW=function(){Tar();for(var O=_.T(sgT),x=O.next();!x.done;x=O.next())x=x.value,x()};
var If$=QN;var HL=Symbol("Pb");var rw=null,F18,XD$=null,ogW;var N0={},WH3=Object.assign({},Uf,(N0[PhR]=!0,N0.effectType=sf,N0.isResettableContext=!0,N0.hasRun=!1,N0.effectFn=null,N0.consumerIsAlwaysLive=!0,N0.consumerAllowSignalWrites=!0,N0.consumerMarkedDirty=CD7,N0.kind="effect",N0.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(yd)throw Error("Qb");this.dirty=!1;if(!this.hasRun||ewV(this)){this.hasRun=!0;VCW(this);var O=_.kO(this),x=Qfn(this);JNr("effectRun",this.debugName);try{ne(this.effectFn,this.componentStack,this)}catch(e){throw Gc.enableContextBasedComponentStacks&&
dw(e),e;}finally{wnW("effectRun",this.debugName),ow(x),this&&TlL(this),_.kO(O)}}}},N0.componentStack=void 0,N0.debugName="[effect]",N0[Symbol.dispose]=function(){if(Ze(this))for(var O=this.producers;O!==void 0;)O=btL(O);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;O=_.T(m9F);for(var x=O.next();!x.done;x=O.next())x.value.remove(this);IG8(this)},N0));var Egr=Object.assign({},WH3,{effectType:eRi});var PD$=Symbol("Rb");var caV=Object.assign({},WH3,{effectType:sf});var bGm=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 pDN={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},V2r=
{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}]}},Esi={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},a97=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],U3V={"*":{async:1,dir:0,loading:2,target:3}};var hop=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,gV={},sy7=(gV[1]=null,gV[2]=function(O,x){return x instanceof wk?NT(x):uI.toString()},gV[3]=function(O,x){return rk(x)?_.Hw(x):hop.test(String(x))?String(x):uI.toString()},gV[4]=function(O,x){return x instanceof Uh?_.sh(x):uI.toString()},gV[5]=function(O,x){return String(x)},gV[7]=null,gV[8]=null,gV[10]=null,gV);var p88=Symbol("Ub");var AFi=function(O){var x=zo$,e=O,l="",C="",Q=1;O<0&&(O=-O);if(O===Infinity)O=(Infinity*Math.sign(e)).toString();else{for(var L=0;L<rsT.length;L++){var k=rsT[L];Q=x[k];if(O>=Q||Q<=1&&O>.1*Q){l=k;break}}l?(l+="B",C=" "):Q=1;O=Math.round(e/Q*10)/10+C+l}return O},rsT="Y Z E P T G M K  m u n".split(" "),zo$={"":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};_.H1z=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 tZ={};RegExp.prototype.hasOwnProperty("sticky");var LNm=function(O){O=String(O);for(var x=function(l,C,Q){for(var L=Math.min(C.length-Q,l.length),k=0;k<L;k++){var M=C[Q+k];if(l[k]!==("A"<=M&&M<="Z"?M.toLowerCase():M))return!1}return!0},e=0;(e=O.indexOf("<",e))!=-1;){if(x("\x3c/script",O,e)||x("\x3c!--",O,e))return"zSoyz";
e+=1}return O};var N4={default:"__default"};var K1w=Object.prototype.hasOwnProperty;zRW.prototype=Object.create(null);var M3=u6L();var kK=null;var iwL=function(O){this.created=[];this.deleted=[];this.node=O};var OGr=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var O=this,x=O;O;)x=O,O=O.parentNode;return x};var Ba$=function(O,x){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=O;this.key=x;this.text=void 0};var l8=null,CO=null,io=null,b8=null,SZ8=[],wD$=f9L,Tn=[],LO=[],VRN=function(O){return xym(function(x,e,l){io=CO=x;CO=null;e(l);JaL(null);CO=io;io=io.parentNode;return x},O)}(),IcL=function(O){return xym(function(x,e,l){var C={nextSibling:x};
CO=C;e(l);io&&JaL(x.nextSibling);return C===CO?null:CO},O)}();var AZ=[],lyW=0;var MD=new zRW;var tB=new zRW;var KH3=u6L(),Mlr=KH3[N4.default],A_7=KH3.style,TMm=["focusin","focusout"],FNr="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var O1L=function(){},BMi=function(){},Qg$=function(){},eon=function(){};var Gn=Symbol("bc");var E_w,ZGi=y_7;var IU=Symbol("cc");var Chn=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(" ")),
lfW=new Set(["a","font","script","style","title"]);_.PE={setUp:WNw,tearDown:WNw,log:WNw,logNodeRange:WNw,graft:function(O,x){x()}};var mx={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var s0=null,WE=function(O,x){hZ.call(this,O);var e=this;this.functionComponent=x;this.hooks=[];this.hookCounter=0;this.disposeEffects=BL(function(l){e.effectContext=l;_.YO(function(){wo7(e,e.el)})},Gc.alwaysTrackContexts||!!Le)};
_.c(WE,hZ);WE.prototype.render=function(O){var x=s0;s0=this;this.hookCounter=0;var e=ow(aU),l=_.kO(this.effectContext);try{return JNr("render",this.componentName),this.functionComponent(O)}finally{wnW("render",this.componentName),_.kO(l),ow(e),s0=x}};
_.Dy.Object.defineProperties(WE.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return D3n(this.functionComponent)}}});var b1r=Symbol("qc"),$yL=function(O,x,e){this.afterRenderCallbacks=null;this.kind=O;this.props=x;this.children=e};
_.c($yL,RU);$yL.prototype.render=function(){var O=g_r(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var x=_.T(this.afterRenderCallbacks),e=x.next();!e.done;e=x.next())e=e.value,O=e(O);return O};
$yL.prototype.getChildren=function(){return this.children};var LH7=[];aPL=function(O){throw Error("ob`"+O.debugName);};
(function(){var O=kK;kK=function(x){O==null||O(x);k0N(x)}})();Object.assign({},WH3,{effectType:sf,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var O=this.elementRef;var x;O.element!=null||(O.element=(x=O.document.getElementById(O.value))!=null?x:void 0);O=O.element;for(x=this.attributes;x;){var e=x.signal();e!==x.prevValue&&(x.prevValue=e,x.namespace===1?O[x.name]=e:bGm.has(x.name)?jj(O,x.name,e?"":null):jj(O,x.name,e));x=x.next}}});_.zn.debugName="tbhMcf";_.rz.debugName="zyMFzb";Object.assign({},WH3,{effectType:sf,hasRun:!0});_.F.debugName="RlDudd";var Asw={nonNullableCondIsNull:function(){return Error("uc")}};var o7r=function(){this.map=new Map};
o7r.prototype.push=function(O,x){var e=this.map;e.has(O)&&(this.multi||(this.multi=new Map),this.multi.set(x,e.get(O)));e.set(O,x)};
o7r.prototype.pop=function(O){var x=this.map,e=x.get(O),l;e!==void 0&&((l=this.multi)==null?0:l.has(e))?(x.set(O,this.multi.get(e)),this.multi.delete(e)):x.delete(O);return e};_.HE.debugName="nsTGHd";_.KO.debugName="vI1rtf";_.PhN={OUT_OF_ORDER_HOOK_CALL:function(O){return Error("vc`"+O)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(O,x){return Error("zc`"+((x===void 0?0:x)?"IDOM":"Reactive")+"`"+(dz(O)?O.description:O))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(O,x){return Error("Ac`"+(dz(O)?O.description:O)+"`"+x)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(O){return Error("Bc`"+(dz(O)?O.description:O))},
USE_ELEMENT_NOT_ASSIGNED:function(O){return Error("Cc`"+(dz(O)?O.description:O))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(O){return Error("Dc`"+(dz(O)?O.description:O))}};E_w=iGN;var U9L=Symbol("Ec");fyw({beforeRender:function(O){var x=_.kO(O.effectContext);try{var e;((e=O.__syncEffects)==null?0:e.length)&&sg8(O.__syncEffects)}finally{_.kO(x)}},
didPatch:function(O){var x=_.kO(O.effectContext);try{var e;((e=O.__syncEffects)==null?0:e.length)&&sg8(O.__syncEffects)}finally{_.kO(x)}},
didUnmount:function(O){var x;((x=O.hooks)==null?0:x.length)&&O.hooks.forEach(m9r)}});var d92,n73,uez;d92=_.CV.window;_.fO=(d92==null?void 0:(n73=d92.yt)==null?void 0:n73.config_)||(d92==null?void 0:(uez=d92.ytcfg)==null?void 0:uez.data_)||{};_.MB("yt.config_",_.fO);var Ybd={},H1m=[];_.ry=function(O){var x=_.vw.apply(1,arguments);var e=Error.call(this,O);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.args=[].concat(_.Kx(x));Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(_.ry,Error);var etW=function(O,x,e){this.actionName=O;this.optionalAction=x===void 0?!1:x;this.args=e===void 0?null:e;this.returnValue=[]};_.$x=function(O){this.name=O};_.Nu=new _.$x("signalAction");var Sbn=/^[\w.]*$/,YbW={q:!0,search_query:!0},uem=String(n7L);var Fc;Fc=Symbol("Fc");_.iR=function(O){this.name=O};
_.iR.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var jgr=function(O){this.key=O},OZN=function(O){this.deferredKey=O},g7r=function(){var O=this;
this.providers=new Map;this.JSC$10488_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(O.providers)}}};
g7r.prototype.addProvider=function(O){this.providers.set(O.provide,O);var x=this.JSC$10488_deferred.get(O.provide);if(x)try{x.resolver(this.resolve(O.provide))}catch(e){x.rejector(e)}};
g7r.prototype.resolve=function(O){return O instanceof OZN?Br4(this,O):O instanceof jgr?v7$(this,O.key,[],!0):v7$(this,O,[])};
var Br4=function(O,x){x=x.deferredKey;if(O.JSC$10488_deferred.has(x))return O.JSC$10488_deferred.get(x).promise;var e={};e.promise=new Promise(function(l,C){e.resolver=l;e.rejector=C});
O.JSC$10488_deferred.set(x,e);return e.promise},v7$=function(O,x,e,l){l=l===void 0?!1:l;
if(e.indexOf(x)>-1)throw Error("Gc`"+x);if(O.cachedValues.has(x))return O.cachedValues.get(x);if(!O.providers.has(x)){if(l)return;throw Error("Hc`"+x);}l=O.providers.get(x);e.push(x);if(l.useValue!==void 0)var C=l.useValue;else if(l.useFactory)C=l[Fc]?ff$(O,l[Fc],e):[],C=l.useFactory.apply(l,_.Kx(C));else if(l.useClass){C=l.useClass;var Q=C[Fc]?ff$(O,C[Fc],e):[];C=new (Function.prototype.bind.apply(C,[null].concat(_.Kx(Q))))}else throw Error("Ic`"+x);e.pop();l.skipCache||O.cachedValues.set(x,C);return C},
ff$=function(O,x,e){return x?x.map(function(l){return l instanceof jgr?v7$(O,l.key,e,!0):v7$(O,l,e)}):[]};var Nrr;var gl=new _.iR("ENDPOINT_HANDLER_TOKEN");_.$b=new _.$x("urlEndpoint");var JsR=function(){this.data=[];this.cachedPackedInt52=-1};
JsR.prototype.set=function(O,x){x=x===void 0?!0:x;0<=O&&O<52&&Number.isInteger(O)&&this.data[O]!==x&&(this.data[O]=x,this.cachedPackedInt52=-1)};
JsR.prototype.get=function(O){return!!this.data[O]};
var wqF=function(O){O.cachedPackedInt52===-1&&(O.cachedPackedInt52=O.data.reduce(function(x,e,l){return x+(e?Math.pow(2,l):0)},0));
return O.cachedPackedInt52};var FR$=function(O){var x=SbD;O=O===void 0?_.i8("yt.ads.biscotti.lastId_")||"":O;var e=Object,l=e.assign,C={};C.dt=Jqd;C.flash="0";a:{try{var Q=x.JSC$10494_win_.top.location.href}catch(O8){Q=2;break a}Q=Q?Q===x.doc_.location.href?0:1:2}C=(C.frm=Q,C);try{C.u_tz=-(new Date).getTimezoneOffset();try{var L=dF.history.length}catch(O8){L=0}C.u_his=L;var k;C.u_h=(k=dF.screen)==null?void 0:k.height;var M;C.u_w=(M=dF.screen)==null?void 0:M.width;var G;C.u_ah=(G=dF.screen)==null?void 0:G.availHeight;var X;C.u_aw=
(X=dF.screen)==null?void 0:X.availWidth;var y;C.u_cd=(y=dF.screen)==null?void 0:y.colorDepth}catch(O8){}L=x.JSC$10494_win_;try{var Z=L.screenX;var E=L.screenY}catch(O8){}try{var P=L.outerWidth;var U=L.outerHeight}catch(O8){}try{var W=L.innerWidth;var z=L.innerHeight}catch(O8){}try{var r=L.screenLeft;var f=L.screenTop}catch(O8){}try{W=L.innerWidth,z=L.innerHeight}catch(O8){}try{var u=L.screen.availWidth;var Y=L.screen.availTop}catch(O8){}Z=[r,f,Z,E,u,Y,P,U,W,z];E=RW7(!1,x.JSC$10494_win_.top);P={};
var J=J===void 0?_.CV:J;U=new JsR;"SVGElement"in J&&"createElementNS"in J.document&&U.set(0);W=BX2();W["allow-top-navigation-by-user-activation"]&&U.set(1);W["allow-popups-to-escape-sandbox"]&&U.set(2);J.crypto&&J.crypto.subtle&&U.set(3);"TextDecoder"in J&&"TextEncoder"in J&&U.set(4);J=wqF(U);x=(P.bc=J,P.bih=E.height,P.biw=E.width,P.brdim=Z.join(),P.vis=ZOn(x.doc_),P.wgl=!!dF.WebGLRenderingContext,P);e=l.call(e,C,x);e.ca_type="image";O&&(e.bid=O);return e},SbD=new function(){var O=window.document;
this.JSC$10494_win_=window;this.doc_=O};
_.MB("yt.ads_.signals_.getAdSignalsString",function(O){return Brr(FR$(O))});_.vN();navigator.userAgent.indexOf(" (CrKey ");var QRs="XMLHttpRequest"in _.CV?function(){return new XMLHttpRequest}:null;var jg4="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Nr4=[].concat(_.Kx(jg4),["client_dev_set_cookie"]);var GDr={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"},LRW="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(_.Kx(jg4)),c3r=!1,A3N=_.XUL,t6m=Dgm;var JIr=[{messageFn:function(O){return"Cannot read property '"+O.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(O){return"Cannot call '"+O.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(O){return O.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var g7F={messageWeights:[],callbackWeights:[{callback:Rhs,weight:500},{callback:UgW,weight:500}]};var $9R=function(){this.callbackWeights=[];this.messageWeights=[]},i1J,flN=function(){if(!i1J){var O=i1J=new $9R;
O.messageWeights.length=0;O.callbackWeights.length=0;iFw(O,g7F)}return i1J},iFw=function(O,x){x.messageWeights&&O.messageWeights.push.apply(O.messageWeights,x.messageWeights);
x.callbackWeights&&O.callbackWeights.push.apply(O.callbackWeights,x.callbackWeights)};_.fI(_.UC,_.h0);_.UC.prototype.subscribe=function(O,x,e){var l=this.topics_[O];l||(l=this.topics_[O]=[]);var C=this.JSC$10518_key_;this.subscriptions_[C]=O;this.subscriptions_[C+1]=x;this.subscriptions_[C+2]=e;this.JSC$10518_key_=C+3;l.push(C);return C};
var OZR=function(O){var x=NSs,e=!1,l=x.subscribe("handleError",function(C){e||(e=!0,this.unsubscribeByKey(l),O.apply(void 0,arguments))},x)};
_.UC.prototype.unsubscribe=function(O,x,e){if(O=this.topics_[O]){var l=this.subscriptions_;if(O=O.find(function(C){return l[C+1]==x&&l[C+2]==e}))return this.unsubscribeByKey(O)}return!1};
_.UC.prototype.unsubscribeByKey=function(O){var x=this.subscriptions_[O];if(x){var e=this.topics_[x];this.publishDepth_!=0?(this.pendingKeys_.push(O),this.subscriptions_[O+1]=function(){}):(e&&_.YW(e,O),delete this.subscriptions_[O],delete this.subscriptions_[O+1],delete this.subscriptions_[O+2])}return!!x};
_.UC.prototype.publish=function(O,x){var e=this.topics_[O];if(e){var l=Array(arguments.length-1),C=arguments.length,Q;for(Q=1;Q<C;Q++)l[Q-1]=arguments[Q];if(this.async_)for(Q=0;Q<e.length;Q++)C=e[Q],xgd(this.subscriptions_[C+1],this.subscriptions_[C+2],l);else{this.publishDepth_++;try{for(Q=0,C=e.length;Q<C&&!this.isDisposed();Q++){var L=e[Q];this.subscriptions_[L+1].apply(this.subscriptions_[L+2],l)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;e=this.pendingKeys_.pop();)this.unsubscribeByKey(e)}}return Q!=
0}return!1};
var xgd=function(O,x,e){_.PF(function(){O.apply(x,e)})};
_.UC.prototype.clear=function(O){if(O){var x=this.topics_[O];x&&(x.forEach(this.unsubscribeByKey,this),delete this.topics_[O])}else this.subscriptions_.length=0,this.topics_={}};
_.UC.prototype.getCount=function(O){if(O){var x=this.topics_[O];return x?x.length:0}O=0;for(x in this.topics_)O+=this.getCount(x);return O};
_.UC.prototype.disposeInternal=function(){_.UC.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var NSs=new _.UC;var tN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(tN,_.TH);tN.prototype.getColdHashData=function(){return _.oK(this,3)};
tN.prototype.getHotHashData=function(){return _.oK(this,5)};
tN.prototype.setHotHashData=function(O){return _.mO(this,5,O)};var YQN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(YQN,_.TH);var ozs=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ozs,_.TH);_.b=ozs.prototype;_.b.getDeviceId=function(){return _.oK(this,6)};
_.b.getExperimentIds=function(O){var x=_.Nh(this,9,_.TX,3,!0);O2V(x,O);return x[O]};
_.b.getPlayerType=function(){return _.y7(this,36)};
_.b.setHomeGroupInfo=function(O){return _.IS(this,81,O)};
_.b.clearLocationPlayabilityToken=function(){return _.EY(this,89)};var Rf=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Rf,_.TH);Rf.prototype.setKey=function(O){return _.mO(this,1,O)};
Rf.prototype.getValue=function(){return Ea(this,2,Z7w)};
var Z7w=[2,3,4,5,6];var ehk=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ehk,_.TH);ehk.prototype.setTrackingParams=function(O){return _.EY(this,1,_.az(O,!1))};var yI7=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(yI7,_.TH);var fSn=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(fSn,_.TH);fSn.prototype.getExperimentIds=function(O){var x=_.Nh(this,5,_.PFr,3,!0);O2V(x,O);return x[O]};var sn=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(sn,_.TH);sn.prototype.getToken=function(){return _.pf(this,2)};
sn.prototype.setToken=function(O){return _.mO(this,2,O)};var af=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(af,_.TH);af.prototype.setSafetyMode=function(O){return _.ZG(this,5,O)};var pt=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(pt,_.TH);pt.prototype.setClient=function(O){return _.IS(this,1,O)};var vEr={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 Bbr;_.oF=function(){var O=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.CV.addEventListener("beforeinstallprompt",function(x){x.preventDefault();O.deferredInstallPrompt=x});
_.CV.addEventListener("appinstalled",function(){O.appInstalledEventFired=!0},{once:!0})};
Bbr=function(){if(!_.CV.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.CV.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.CV.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.CV.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.CV.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(O){return"WEB_DISPLAY_MODE_UNKNOWN"}};var SQs=function(){this.syncHeaders=!0},jxL=function(O){var x={},e=[];
"USER_SESSION_ID"in _.fO&&e.push({key:"u",value:_.wz("USER_SESSION_ID")});if(e=_.oXr(e))x.Authorization=e,e=O=O==null?void 0:O.sessionIndex,e===void 0&&(e=Number(_.wz("SESSION_INDEX",0)),e=isNaN(e)?0:e),_.t("voice_search_auth_header_removal")||(x["X-Goog-AuthUser"]=e.toString()),"INNERTUBE_HOST_OVERRIDE"in _.fO||(x["X-Origin"]=window.location.origin),O===void 0&&"DELEGATED_SESSION_ID"in _.fO&&(x["X-Goog-PageId"]=_.wz("DELEGATED_SESSION_ID"));return x};var l2R={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var O_=_.i8("ytglobal.prefsUserPrefsPrefs_")||{},C_D;_.MB("ytglobal.prefsUserPrefsPrefs_",O_);_.xs=function(){this.cookieName=_.wz("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.wz("ALT_PREF_COOKIE_DOMAIN","youtube.com");var O=_.mK.get(this.cookieName,void 0);O&&this.parse(O)};
_.TD=function(){C_D||(C_D=new _.xs);return C_D};
_.xs.prototype.get=function(O,x){QRL(O);bZT(O);O=O_[O]!==void 0?O_[O].toString():null;return O!=null?O:x?x:""};
_.xs.prototype.set=function(O,x){QRL(O);bZT(O);if(x==null)throw Error("Lc");O_[O]=x.toString()};
_.xs.prototype.getFlag=function(O){return!!((TTN("f"+(Math.floor(O/31)+1))||0)&1<<O%31)};
_.LZ=function(O,x,e){O="f"+(Math.floor(x/31)+1);x=1<<x%31;var l=TTN(O)||0;l=e?l|x:l&~x;l===0?delete O_[O]:(e=l.toString(16),O_[O]=e.toString())};
_.xs.prototype.remove=function(O){QRL(O);bZT(O);delete O_[O]};
_.xs.prototype.save=function(){var O=!0;_.t("web_secure_pref_cookie_killswitch")&&(O=!1);_.sC(this.cookieName,this.dump(),63072E3,this.cookieDomain,O)};
_.xs.prototype.clear=function(){_.HX.clear(O_)};
_.xs.prototype.dump=function(){var O=[],x;for(x in O_)O_.hasOwnProperty(x)&&O.push(x+"="+encodeURIComponent(String(O_[x])));return O.join("&")};
var bZT=function(O){if(/^f([1-9][0-9]*)$/.test(O))throw Error("Mc`"+O);},QRL=function(O){if(!/^\w+$/.test(O))throw Error("Nc`"+O);
},TTN=function(O){O=O_[O]!==void 0?O_[O].toString():null;
return O!=null&&/^[A-Fa-f0-9]+$/.test(O)?parseInt(O,16):null};
_.xs.prototype.parse=function(O){O=decodeURIComponent(O).split("&");for(var x=0;x<O.length;x++){var e=O[x].split("="),l=e[0];(e=e[1])&&(O_[l]=e.toString())}};var KRm={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"},Jh7={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},w1L={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},nmr={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var gP;_.eD=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.zl=function(O,x,e){return O.addJob(x,0,e)};
_.eD.prototype.addLowPriorityJob=function(O,x){return this.addJob(O,1,x)};
_.FQ=function(O,x,e){return O.addJob(x,2,e)};
_.e1=function(O,x,e){return O.addJob(x,3,e)};
_.$0=function(O,x,e){return O.addJob(x,4,e)};
gP=function(O){var x=_.i8("yt.scheduler.instance.addImmediateJob");x?x(O):O()};
_.eD.prototype.debounce=function(O,x,e){var l=this,C=0,Q=function(){C&&l.cancelJob(C);C=l.addJob(O,x,e);l.cancelDebouncedJobMap.set(Q,C)};
return Q};
_.eD.prototype.cancelThrottle=function(O){(O=this.cancelThrottledJobMap.get(O))&&O()};var lY=function(){_.eD.apply(this,arguments)};
_.c(lY,_.eD);_.Xu=function(){lY.instance||(lY.instance=new lY);return lY.instance};
lY.prototype.addJob=function(O,x,e){e!==void 0&&Number.isNaN(Number(e))&&(e=void 0);var l=_.i8("yt.scheduler.instance.addJob");return l?l(O,x,e):e===void 0?(O(),NaN):_.qb(O,e||0)};
lY.prototype.cancelJob=function(O){if(O===void 0||!Number.isNaN(Number(O))){var x=_.i8("yt.scheduler.instance.cancelJob");x?x(O):_.IO(O)}};
lY.prototype.start=function(){var O=_.i8("yt.scheduler.instance.start");O&&O()};
lY.prototype.pause=function(){var O=_.i8("yt.scheduler.instance.pause");O&&O()};
_.vn=_.Xu();_.HK.prototype.set=function(O,x){x===void 0?this.mechanism.remove(O):this.mechanism.set(O,(0,_.Rj)(x))};
_.HK.prototype.get=function(O){try{var x=this.mechanism.get(O)}catch(e){return}if(x!==null)try{return JSON.parse(x)}catch(e){throw"Storage: Invalid value was encountered";}};
_.HK.prototype.remove=function(O){this.mechanism.remove(O)};var Ch=function(O){this.mechanism=O};
_.fI(Ch,_.HK);var LRd=function(O){this.data=O},kDk=function(O){return O===void 0||O instanceof LRd?O:new LRd(O)};
Ch.prototype.set=function(O,x){Ch.superClass_.set.call(this,O,kDk(x))};
Ch.prototype.getWrapper=function(O){O=Ch.superClass_.get.call(this,O);if(O===void 0||O instanceof Object)return O;throw"Storage: Invalid value was encountered";};
Ch.prototype.get=function(O){if(O=this.getWrapper(O)){if(O=O.data,O===void 0)throw"Storage: Invalid value was encountered";}else O=void 0;return O};_.fI(Kb,Ch);_.A3R=function(O){var x=O.creation;O=O.expiration;return!!O&&O<_.vN()||!!x&&x>_.vN()};
Kb.prototype.set=function(O,x,e){if(x=kDk(x)){if(e){if(e<_.vN()){Kb.prototype.remove.call(this,O);return}x.expiration=e}x.creation=_.vN()}Kb.superClass_.set.call(this,O,x)};
Kb.prototype.getWrapper=function(O,x){var e=Kb.superClass_.getWrapper.call(this,O);if(e)if(!x&&_.A3R(e))Kb.prototype.remove.call(this,O);else return e};var QC=function(){};
QC.prototype.next=function(){return bY};
var bY={done:!0,value:void 0},T6=function(O){return{value:O,done:!1}};
QC.prototype.__iterator__=function(){return this};
_.M6$=function(O){if(O instanceof QC)return O;if(typeof O.__iterator__=="function")return O.__iterator__(!1);if(_.vi(O)){var x=0,e=new QC;e.next=function(){for(;;){if(x>=O.length)return bY;if(x in O)return T6(O[x++]);x++}};
return e}throw Error("Oc");};var Dgz=function(O){if(O instanceof Lh||O instanceof ks||O instanceof An)return O;if(typeof O.next=="function")return new Lh(function(){return O});
if(typeof O[Symbol.iterator]=="function")return new Lh(function(){return O[Symbol.iterator]()});
if(typeof O.__iterator__=="function")return new Lh(function(){return O.__iterator__()});
throw Error("Pc");},Lh=function(O){this.func_=O};
Lh.prototype.__iterator__=function(){return new ks(this.func_())};
Lh.prototype[Symbol.iterator]=function(){return new An(this.func_())};
Lh.prototype.toEs6=function(){return new An(this.func_())};
var ks=function(O){this.JSC$10602_iter_=O};
_.c(ks,QC);ks.prototype.next=function(){return this.JSC$10602_iter_.next()};
ks.prototype[Symbol.iterator]=function(){return new An(this.JSC$10602_iter_)};
ks.prototype.toEs6=function(){return new An(this.JSC$10602_iter_)};
var An=function(O){Lh.call(this,function(){return O});
this.JSC$10605_iter_=O};
_.c(An,Lh);An.prototype.next=function(){return this.JSC$10605_iter_.next()};var GDp=function(){};var MC=function(){};
_.fI(MC,GDp);MC.prototype.getCount=function(){for(var O=0,x=_.T(this),e=x.next();!e.done;e=x.next())O++;return O};
MC.prototype[Symbol.iterator]=function(){return Dgz(this.__iterator__(!0)).toEs6()};
MC.prototype.clear=function(){var O=Array.from(this);O=_.T(O);for(var x=O.next();!x.done;x=O.next())this.remove(x.value)};_.fI(dy,MC);_.b=dy.prototype;_.b.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var O=this.storage_;if(O)try{O.setItem("__sak","1");O.removeItem("__sak");var x=!0}catch(e){x=e instanceof DOMException&&(e.name==="QuotaExceededError"||e.code===22||e.code===1014||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&O&&O.length!==0}else x=!1;this.cachedIsStorageAvailable_=x}return this.cachedIsStorageAvailable_};
_.b.set=function(O,x){D7(this);try{this.storage_.setItem(O,x)}catch(e){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.b.get=function(O){D7(this);O=this.storage_.getItem(O);if(typeof O!=="string"&&O!==null)throw"Storage mechanism: Invalid value was encountered";return O};
_.b.remove=function(O){D7(this);this.storage_.removeItem(O)};
_.b.getCount=function(){D7(this);return this.storage_.length};
_.b.__iterator__=function(O){D7(this);var x=0,e=this.storage_,l=new QC;l.next=function(){if(x>=e.length)return bY;var C=e.key(x++);if(O)return T6(C);C=e.getItem(C);if(typeof C!=="string")throw"Storage mechanism: Invalid value was encountered";return T6(C)};
return l};
_.b.clear=function(){D7(this);this.storage_.clear()};
_.b.key=function(O){D7(this);return this.storage_.key(O)};
var D7=function(O){if(O.storage_==null)throw Error("Qc");O.isAvailable()||QN(Error("Qc"))};_.fI(YOr,dy);_.fI(BTV,dy);_.fI(nb,MC);nb.prototype.set=function(O,x){this.mechanism_.set(this.JSC$10620_prefix_+O,x)};
nb.prototype.get=function(O){return this.mechanism_.get(this.JSC$10620_prefix_+O)};
nb.prototype.remove=function(O){this.mechanism_.remove(this.JSC$10620_prefix_+O)};
nb.prototype.__iterator__=function(O){var x=this.mechanism_[Symbol.iterator](),e=this,l=new QC;l.next=function(){var C=x.next();if(C.done)return C;for(C=C.value;C.slice(0,e.JSC$10620_prefix_.length)!=e.JSC$10620_prefix_;){C=x.next();if(C.done)return C;C=C.value}return T6(O?C.slice(e.JSC$10620_prefix_.length):e.mechanism_.get(C))};
return l};_.jC=function(O){this.expiringStorage_=(O=_.vmL(O))?new Kb(O):null;this.JSC$10624_domain_=document.domain||window.location.hostname};
_.b=_.jC.prototype;_.b.hasLocalStorage=function(){return!!this.expiringStorage_};
_.b.set=function(O,x,e,l){e=e||31104E3;this.remove(O);if(this.hasLocalStorage())try{this.expiringStorage_.set(O,x,Date.now()+e*1E3);return}catch(Q){}var C="";if(l)try{C=escape((0,_.Rj)(x))}catch(Q){return}else C=escape(x);_.sC(O,C,e,this.JSC$10624_domain_)};
_.b.get=function(O,x){var e=void 0,l=!this.hasLocalStorage();if(!l)try{e=this.expiringStorage_.get(O)}catch(C){l=!0}if(l&&(e=_.mK.get(O,void 0))&&(e=unescape(e),x))try{e=JSON.parse(e)}catch(C){this.remove(O),e=void 0}return e};
_.b.remove=function(O){this.hasLocalStorage()&&this.expiringStorage_.remove(O);_.zhL(O,"/",this.JSC$10624_domain_)};
_.b.getCreationTime=function(O){return this.hasLocalStorage()&&(O=(this.expiringStorage_.getWrapper(O)||{}).creation,typeof O==="number")?O:null};var J3L=function(){var O;return function(){O||(O=new _.jC("ytidb"));return O}}();var SOW;_.Yc=[];SOW=!1;var Dcn=jRi||NTV;var G6={},FRk=(G6.AUTH_INVALID="No user identifier specified.",G6.EXPLICIT_ABORT="Transaction was explicitly aborted.",G6.IDB_NOT_SUPPORTED="IndexedDB is not supported.",G6.MISSING_INDEX="Index not created.",G6.MISSING_OBJECT_STORES="Object stores not created.",G6.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",G6.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",G6.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",G6.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",G6.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",G6.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",G6.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",G6),FN={},XU3=(FN.AUTH_INVALID="ERROR",FN.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",FN.EXPLICIT_ABORT="IGNORED",
FN.IDB_NOT_SUPPORTED="ERROR",FN.MISSING_INDEX="WARNING",FN.MISSING_OBJECT_STORES="ERROR",FN.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",FN.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",FN.QUOTA_EXCEEDED="WARNING",FN.QUOTA_MAYBE_EXCEEDED="WARNING",FN.UNKNOWN_ABORT="WARNING",FN.INCOMPATIBLE_DB_VERSION="WARNING",FN),XN={},omL=(XN.AUTH_INVALID=!1,XN.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,XN.EXPLICIT_ABORT=!1,XN.IDB_NOT_SUPPORTED=!1,XN.MISSING_INDEX=!1,XN.MISSING_OBJECT_STORES=!1,XN.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,XN.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,XN.QUOTA_EXCEEDED=!1,XN.QUOTA_MAYBE_EXCEEDED=!0,XN.UNKNOWN_ABORT=!0,XN.INCOMPATIBLE_DB_VERSION=!1,XN),j3=function(O,x,e,l,C){x=x===void 0?{}:x;e=e===void 0?FRk[O]:e;l=l===void 0?XU3[O]:l;C=C===void 0?omL[O]:C;_.ry.call(this,e,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:O},x));this.type=O;this.message=e;this.level=l;this.retryable=C;Object.setPrototypeOf(this,j3.prototype)};
_.c(j3,_.ry);var y3N=function(O,x){j3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:x,foundObjectStores:O},FRk.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,y3N.prototype)};
_.c(y3N,j3);var $gm=function(O,x){var e=Error.call(this);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.index=O;this.objectStore=x;Object.setPrototypeOf(this,$gm.prototype)};
_.c($gm,Error);var iZr=["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 iu=function(O){this.executor=O},$c=function(O){var x=this;
this.state={status:"PENDING"};this.JSC$10652_onFulfilled=[];this.JSC$10652_onRejected=[];O=O.executor;var e=function(C){if(x.state.status==="PENDING"){x.state={status:"FULFILLED",value:C};C=_.T(x.JSC$10652_onFulfilled);for(var Q=C.next();!Q.done;Q=C.next())Q=Q.value,Q()}},l=function(C){if(x.state.status==="PENDING"){x.state={status:"REJECTED",
reason:C};C=_.T(x.JSC$10652_onRejected);for(var Q=C.next();!Q.done;Q=C.next())Q=Q.value,Q()}};
try{O(e,l)}catch(C){l(C)}};
$c.all=function(O){return new $c(new iu(function(x,e){var l=[],C=O.length;C===0&&x(l);for(var Q={i$jscomp$468:0};Q.i$jscomp$468<O.length;Q={i$jscomp$468:Q.i$jscomp$468},++Q.i$jscomp$468)$c.resolve(O[Q.i$jscomp$468]).then(function(L){return function(k){l[L.i$jscomp$468]=k;C--;C===0&&x(l)}}(Q)).catch(function(L){e(L)})}))};
$c.resolve=function(O){return new $c(new iu(function(x,e){O instanceof $c?O.then(x,e):x(O)}))};
$c.reject=function(O){return new $c(new iu(function(x,e){e(O)}))};
$c.prototype.then=function(O,x){var e=this,l=O!=null?O:e1m,C=x!=null?x:xcr;return new $c(new iu(function(Q,L){e.state.status==="PENDING"?(e.JSC$10652_onFulfilled.push(function(){ZZN(e,e,l,Q,L)}),e.JSC$10652_onRejected.push(function(){EmF(e,e,C,Q,L)})):e.state.status==="FULFILLED"?ZZN(e,e,l,Q,L):e.state.status==="REJECTED"&&EmF(e,e,C,Q,L)}))};
$c.prototype.catch=function(O){return this.then(void 0,O)};
var ZZN=function(O,x,e,l,C){try{if(O.state.status!=="FULFILLED")throw Error("Tc");var Q=e(O.state.value);Q instanceof $c?t6z(O,x,Q,l,C):l(Q)}catch(L){C(L)}},EmF=function(O,x,e,l,C){try{if(O.state.status!=="REJECTED")throw Error("Uc");
var Q=e(O.state.reason);Q instanceof $c?t6z(O,x,Q,l,C):l(Q)}catch(L){C(L)}},t6z=function(O,x,e,l,C){x===e?C(new TypeError("Vc")):e.then(function(Q){Q instanceof $c?t6z(O,x,Q,l,C):l(Q)},function(Q){C(Q)})};var oP;oP=window;_.F2=oP.ytcsi&&oP.ytcsi.now?oP.ytcsi.now:oP.performance&&oP.performance.timing&&oP.performance.now&&oP.performance.timing.navigationStart?function(){return oP.performance.timing.navigationStart+oP.performance.now()}:function(){return(new Date).getTime()};var xC=function(O,x){this.JSC$10664_wrapped=O;this.options=x;this.transactionCount=0;this.startedMs=Math.round((0,_.F2)());this.hasUnknownAbortedTransaction=!1},yC=function(){return _.t("idb_immediate_commit")},c34,I2d,tn,RhL;
xC.prototype.add=function(O,x,e){return _.bb(this,[O],{mode:"readwrite",enableRetries:!0,commit:yC()},function(l){return l.objectStore(O).add(x,e)})};
xC.prototype.clear=function(O){return _.bb(this,[O],{mode:"readwrite",enableRetries:!0},function(x){return x.objectStore(O).clear()})};
xC.prototype.close=function(){this.JSC$10664_wrapped.close();var O;((O=this.options)==null?0:O.closed)&&this.options.closed()};
xC.prototype.count=function(O,x){return _.bb(this,[O],{mode:"readonly",enableRetries:!0,commit:yC()},function(e){return e.objectStore(O).count(x)})};
var gD=function(O,x,e){O=O.JSC$10664_wrapped.createObjectStore(x,e);return new Z7(O)};
xC.prototype.delete=function(O,x){return _.bb(this,[O],{mode:"readwrite",enableRetries:!0,commit:yC()&&!(x instanceof IDBKeyRange)},function(e){return e.objectStore(O).delete(x)})};
var qOk=function(O,x){return _.bb(O,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore("ResponseStore").index("byInterface").delete(x)})};
xC.prototype.get=function(O,x){return _.bb(this,[O],{mode:"readonly",enableRetries:!0,commit:yC()},function(e){return e.objectStore(O).get(x)})};
xC.prototype.getAll=function(O,x,e){return _.bb(this,[O],{mode:"readonly",enableRetries:!0},function(l){return l.objectStore(O).getAll(x,e)})};
xC.prototype.put=function(O,x,e){return _.bb(this,[O],{mode:"readwrite",enableRetries:!0,commit:yC()},function(l){return l.objectStore(O).put(x,e)})};
xC.prototype.objectStoreNames=function(){return Array.from(this.JSC$10664_wrapped.objectStoreNames)};
_.bb=function(O,x,e,l){var C,Q,L,k,M,G,X,y,Z,E,P,U;return _.A(function(W){switch(W.nextAddress){case 1:var z={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof e==="string"?z.mode=e:Object.assign(z,e);C=z;O.transactionCount++;Q=C.enableRetries?3:1;L=0;case 2:if(k){W.jumpTo(4);break}L++;M=Math.round((0,_.F2)());_.tS(W,5);G=O.JSC$10664_wrapped.transaction(x,C.mode);z=W.yield;var r=!!C.commit;var f=new eC(G);r=P_J(f,l,r);return z.call(W,r,7);case 7:return X=W.yieldResult,y=Math.round((0,_.F2)()),
c34(O,M,y,L,void 0,x.join(),C),W.return(X);case 5:Z=_.VP(W);E=Math.round((0,_.F2)());P=OAN(Z,O.JSC$10664_wrapped.name,x.join(),O.JSC$10664_wrapped.version);if((U=P instanceof j3&&!P.retryable)||L>=Q)c34(O,M,E,L,P,x.join(),C),k=P;W.jumpTo(2);break;case 4:return W.return(Promise.reject(k))}})};
c34=function(O,x,e,l,C,Q,L){x=e-x;C?(C instanceof j3&&(C.type==="QUOTA_EXCEEDED"||C.type==="QUOTA_MAYBE_EXCEEDED")&&vK("QUOTA_EXCEEDED",{dbName:wy(O.JSC$10664_wrapped.name),objectStoreNames:Q,transactionCount:O.transactionCount,transactionMode:L.mode}),C instanceof j3&&C.type==="UNKNOWN_ABORT"&&(e-=O.startedMs,e<0&&e>=2147483648&&(e=0),vK("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Q,transactionDuration:x,transactionCount:O.transactionCount,dbDuration:e}),O.hasUnknownAbortedTransaction=!0),
I2d(O,!1,l,Q,x,L.tag),_.BK(C)):I2d(O,!0,l,Q,x,L.tag)};
I2d=function(O,x,e,l,C,Q){vK("TRANSACTION_ENDED",{objectStoreNames:l,connectionHasUnknownAbortedTransaction:O.hasUnknownAbortedTransaction,duration:C,isSuccessful:x,tryCount:e,tag:Q===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Q})};
xC.prototype.getVersion=function(){return this.JSC$10664_wrapped.version};
xC.prototype.getName=function(){return this.JSC$10664_wrapped.name};
var Z7=function(O){this.JSC$10679_wrapped=O};
Z7.prototype.add=function(O,x){return OY(this.JSC$10679_wrapped.add(O,x))};
Z7.prototype.autoIncrement=function(){return this.JSC$10679_wrapped.autoIncrement};
Z7.prototype.clear=function(){return OY(this.JSC$10679_wrapped.clear()).then(function(){})};
var $C=function(O,x,e){O.JSC$10679_wrapped.createIndex(x,e,{unique:!1})};
Z7.prototype.count=function(O){return OY(this.JSC$10679_wrapped.count(O))};
var V6N=function(O,x){return L$(O,{query:x},function(e){return e.delete().then(function(){return e.continue()})}).then(function(){})};
Z7.prototype.delete=function(O){return O instanceof IDBKeyRange?V6N(this,O):OY(this.JSC$10679_wrapped.delete(O))};
Z7.prototype.get=function(O){return OY(this.JSC$10679_wrapped.get(O))};
Z7.prototype.getAll=function(O,x){return"getAll"in IDBObjectStore.prototype?OY(this.JSC$10679_wrapped.getAll(O,x)):pUR(this,O,x)};
var pUR=function(O,x,e){var l=[];return L$(O,{query:x},function(C){if(!(e!==void 0&&l.length>=e))return l.push(C.getValue()),C.continue()}).then(function(){return l})};
Z7.prototype.index=function(O){try{return new E_(this.JSC$10679_wrapped.index(O))}catch(x){if(x instanceof Error&&x.name==="NotFoundError")throw new $gm(O,this.JSC$10679_wrapped.name);throw x;}};
Z7.prototype.getName=function(){return this.JSC$10679_wrapped.name};
Z7.prototype.keyPath=function(){return this.JSC$10679_wrapped.keyPath};
Z7.prototype.put=function(O,x){return OY(this.JSC$10679_wrapped.put(O,x))};
var L$=function(O,x,e){O=O.JSC$10679_wrapped.openCursor(x.query,x.direction);return RhL(O).then(function(l){return Qxs(l,e)})},eC=function(O){var x=this;
this.JSC$10687_wrapped=O;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(e,l){x.JSC$10687_wrapped.addEventListener("complete",function(){e()});
x.JSC$10687_wrapped.addEventListener("error",function(C){C.currentTarget===C.target&&l(x.JSC$10687_wrapped.error)});
x.JSC$10687_wrapped.addEventListener("abort",function(){var C=x.JSC$10687_wrapped.error;if(C)l(C);else if(!x.aborted){C=j3;for(var Q=x.JSC$10687_wrapped.objectStoreNames,L=[],k=0;k<Q.length;k++){var M=Q.item(k);if(M===null)throw Error("Wc");L.push(M)}C=new C("UNKNOWN_ABORT",{objectStoreNames:L.join(),dbName:x.JSC$10687_wrapped.db.name,mode:x.JSC$10687_wrapped.mode});l(C)}})})},P_J=function(O,x,e){var l=new Promise(function(C,Q){try{var L=x(O);
e&&O.commit();L.then(function(k){C(k)}).catch(Q)}catch(k){Q(k),O.abort()}});
return Promise.all([l,O.done]).then(function(C){return _.T(C).next().value})};
eC.prototype.abort=function(){this.JSC$10687_wrapped.abort();this.aborted=!0;throw new j3("EXPLICIT_ABORT");};
eC.prototype.commit=function(){if(!this.aborted){var O,x;(x=(O=this.JSC$10687_wrapped).commit)==null||x.call(O)}};
eC.prototype.objectStore=function(O){O=this.JSC$10687_wrapped.objectStore(O);var x=this.objectStoreCache.get(O);x||(x=new Z7(O),this.objectStoreCache.set(O,x));return x};
var E_=function(O){this.JSC$10689_wrapped=O};
E_.prototype.count=function(O){return OY(this.JSC$10689_wrapped.count(O))};
E_.prototype.delete=function(O){return _.X2(this,{query:O},function(x){return x.delete().then(function(){return x.continue()})})};
E_.prototype.get=function(O){return OY(this.JSC$10689_wrapped.get(O))};
E_.prototype.getAll=function(O,x){return"getAll"in IDBIndex.prototype?OY(this.JSC$10689_wrapped.getAll(O,x)):Ugd(this,O,x)};
var Ugd=function(O,x,e){var l=[];return _.X2(O,{query:x},function(C){if(!(e!==void 0&&l.length>=e))return l.push(C.getValue()),C.continue()}).then(function(){return l})};
E_.prototype.keyPath=function(){return this.JSC$10689_wrapped.keyPath};
E_.prototype.unique=function(){return this.JSC$10689_wrapped.unique};
_.X2=function(O,x,e){O=O.JSC$10689_wrapped.openCursor(x.query===void 0?null:x.query,x.direction===void 0?"next":x.direction);return RhL(O).then(function(l){return Qxs(l,e)})};
tn=function(O,x){this.request=O;this.cursor=x};
RhL=function(O){return OY(O).then(function(x){return x?new tn(O,x):null})};
tn.prototype.continue=function(O){this.cursor.continue(O);return RhL(this.request)};
tn.prototype.delete=function(){return OY(this.cursor.delete()).then(function(){})};
tn.prototype.getValue=function(){return this.cursor.value};
tn.prototype.update=function(O){return OY(this.cursor.update(O))};var qC=function(O,x){this.name=O;this.options=x;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},a2d;
qC.prototype.openDb=function(O,x,e){e=e===void 0?{}:e;return Tb$(O,x,e)};
qC.prototype.delete=function(O){O=O===void 0?{}:O;return _.C$(this.name,O)};
a2d=function(O,x){return new j3("INCOMPATIBLE_DB_VERSION",{dbName:O.name,oldVersion:O.options.version,newVersion:x})};
_.Q4=function(O,x){if(!x)throw gy("openWithToken",wy(O.name));return O.open()};
qC.prototype.open=function(){var O=this;if(!this.isCompatible)throw a2d(this);if(this.connectionPromise)return this.connectionPromise;var x,e=function(){O.connectionPromise===x&&(O.connectionPromise=void 0)},l={blocking:function(Q){Q.close()},
closed:e,terminated:e,upgrade:this.options.upgrade},C=function(){var Q,L,k,M,G,X,y,Z,E,P;return _.A(function(U){switch(U.nextAddress){case 1:return L=(Q=Error().stack)!=null?Q:"",_.tS(U,2),U.yield(O.openDb(O.name,O.options.version,l),4);case 4:for(var W=k=U.yieldResult,z=O.options,r=[],f=_.T(Object.keys(z.objectStores)),u=f.next();!u.done;u=f.next()){u=u.value;var Y=z.objectStores[u],J=Y.removedAtVersion===void 0?Number.MAX_VALUE:Y.removedAtVersion;!(W.JSC$10664_wrapped.version>=Y.addedAtVersion)||
W.JSC$10664_wrapped.version>=J||W.JSC$10664_wrapped.objectStoreNames.contains(u)||r.push(u)}M=r;if(M.length===0){U.jumpTo(5);break}G=Object.keys(O.options.objectStores);X=k.objectStoreNames();if(O.timesReopenedToFixMissingObjectStore<_.yF("ytidb_reopen_db_retries",0))return O.timesReopenedToFixMissingObjectStore++,k.close(),_.BK(new j3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:G,foundObjectStores:X})),U.return(C());if(!(O.timesDeletedToFixMissingObjectStore<_.yF("ytidb_remake_db_retries",
1))){U.jumpTo(6);break}O.timesDeletedToFixMissingObjectStore++;return U.yield(O.delete(),7);case 7:return _.BK(new j3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:G,foundObjectStores:X})),U.return(C());case 6:throw new y3N(X,G);case 5:return U.return(k);case 2:y=_.VP(U);if(y instanceof DOMException?y.name!=="VersionError":"DOMError"in self&&y instanceof DOMError?y.name!=="VersionError":!(y instanceof Object&&"message"in y)||y.message!=="An attempt was made to open a database using a lower version than the existing version."){U.jumpTo(8);
break}return U.yield(O.openDb(O.name,void 0,Object.assign({},l,{upgrade:void 0})),9);case 9:Z=U.yieldResult;E=Z.getVersion();if(O.options.version!==void 0&&E>O.options.version+1)throw Z.close(),O.isCompatible=!1,a2d(O,E);return U.return(Z);case 8:throw e(),y instanceof Error&&!_.t("ytidb_async_stack_killswitch")&&(y.stack=y.stack+"\n"+L.substring(L.indexOf("\n")+1)),OAN(y,O.name,"",(P=O.options.version)!=null?P:-1);}})};
return this.connectionPromise=x=C()};var LWW=new qC("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(O,x){x(1)&&gD(O,"databases",{keyPath:"actualName"})}});var X1$,GLV=new function(){}(new function(){});new _.OA;var mg4=function(O,x){qC.call(this,O,x);this.options=x;Jq(O)};
_.c(mg4,qC);var V_W=function(O,x){var e;return function(){e||(e=new mg4(O,x));return e}};
mg4.prototype.openDb=function(O,x,e){e=e===void 0?{}:e;return(this.options.shared?t_r:EEi)(O,x,Object.assign({},e))};
mg4.prototype.delete=function(O){O=O===void 0?{}:O;return(this.options.shared?ISW:qQN)(this.name,O)};var sR$={},p1$=GC("ytGcfConfig",{objectStores:(sR$.coldConfigStore={addedAtVersion:1},sR$.hotConfigStore={addedAtVersion:1},sR$),shared:!1,upgrade:function(O,x){x(1)&&($C(gD(O,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),$C(gD(O,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var WRF=function(){_.h0.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var O=_.i8("yt.gcf.config.hotUpdateCallbacks");O?(this.localHotConfigJobQueue=[].concat(_.Kx(O)),this.sharedHotConfigJobQueue=O):(this.sharedHotConfigJobQueue=[],_.MB("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.c(WRF,_.h0);WRF.prototype.disposeInternal=function(){for(var O=_.T(this.localHotConfigJobQueue),x=O.next();!x.done;x=O.next()){var e=this.sharedHotConfigJobQueue;x=e.indexOf(x.value);x>=0&&e.splice(x,1)}this.localHotConfigJobQueue.length=0;_.h0.prototype.disposeInternal.call(this)};var rl=function(){var O=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new WRF;this.TEST_ONLY={initializeConfigDb:function(){O.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return O.coldGlobalConfigGroup},
setHotConfigGroup:function(x){hhp(O,x)},
setHotHashData:function(x){O.setHotHashData(x)},
setColdConfigGroup:function(x){zhJ(O,x)},
getColdHashData:function(){return O.coldHashData},
getHotHashData:function(){return O.hotHashData},
getHotConfigGroup:function(){return O.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return r3d()},
getExportedHotConfigGroup:function(){return PY()},
getExportedColdHashData:function(){return _.i8("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.i8("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){HZ4(O)},
resetInstance:function(){O.setHotHashData(void 0);KRz(O);delete rl.instance},
setDebounceTimer:function(x){O.debounceTimer=x},
getDebounceTimer:function(){return O.debounceTimer}}},dgT=function(){if(!rl.instance){var O=new rl;
rl.instance=O}return rl.instance},YOF=function(O){var x;
_.A(function(e){if(e.nextAddress==1)return _.t("start_client_gcf")||_.t("delete_gcf_config_db")?_.t("start_client_gcf")?e.yield(_.DG(),3):e.jumpTo(2):e.return();e.nextAddress!=2&&((x=e.yieldResult)&&_.zG()&&!_.t("delete_gcf_config_db")?(O.isConfigDbInitialized=!0,HZ4(O)):(nm4(O),uC3(O)));return _.t("delete_gcf_config_db")?e.yield(WW7(),0):e.jumpTo(0)})},HH=function(){var O;
return(O=PY())!=null?O:_.wz("RAW_HOT_CONFIG_GROUP")},BT2=function(O){var x,e,l,C,Q,L;
return _.A(function(k){switch(k.nextAddress){case 1:if(O.hotGlobalConfigGroup)return k.return(PY());if(!O.isConfigDbInitialized)return x=gy("getHotConfig IDB not initialized"),_.OC(x),k.return(Promise.reject(x));e=AN();l=_.wz("TIME_CREATED_MS");if(!e){C=gy("getHotConfig token error");_.OC(C);k.jumpTo(2);break}return k.yield(sx7(e),3);case 3:if((Q=k.yieldResult)&&Q.timestamp>l)return hhp(O,Q.config),O.setHotHashData(Q.hashData),k.return(PY());case 2:uC3(O);if(!(e&&O.hotGlobalConfigGroup&&O.hotHashData)){k.jumpTo(4);
break}return k.yield(UcL(O.hotGlobalConfigGroup,O.hotHashData,e,l),4);case 4:return O.hotGlobalConfigGroup?k.return(PY()):(L=new _.ry("Config not available in ytConfig"),_.OC(L),k.return(Promise.reject(L)))}})},f2R=function(O){var x,e,l,C,Q,L;
return _.A(function(k){switch(k.nextAddress){case 1:if(O.coldGlobalConfigGroup)return k.return(r3d());if(!O.isConfigDbInitialized)return x=gy("getColdConfig IDB not initialized"),_.OC(x),k.return(Promise.reject(x));e=AN();l=_.wz("TIME_CREATED_MS");if(!e){C=gy("getColdConfig");_.OC(C);k.jumpTo(2);break}return k.yield(mc7(e),3);case 3:if((Q=k.yieldResult)&&Q.timestamp>l)return zhJ(O,Q.config),vmJ(O,Q.configData),KRz(O,Q.hashData),k.return(r3d());case 2:nm4(O);if(!(e&&O.coldGlobalConfigGroup&&O.coldHashData&&
O.configData)){k.jumpTo(4);break}return k.yield(aSs(O.coldGlobalConfigGroup,O.coldHashData,O.configData,e,l),4);case 4:return O.coldGlobalConfigGroup?k.return(r3d()):(L=new _.ry("Config not available in ytConfig"),_.OC(L),k.return(Promise.reject(L)))}})},HZ4=function(O){if(!O.hotGlobalConfigGroup||!O.coldGlobalConfigGroup){if(!AN()){var x=gy("scheduleGetConfigs");
_.OC(x)}O.initJob||(O.initJob=_.vn.addLowPriorityJob(function(){return _.A(function(e){switch(e.nextAddress){case 1:return _.tS(e,2),e.yield(BT2(O),4);case 4:_.lb(e,3);break;case 2:_.VP(e);case 3:return _.tS(e,5),e.yield(f2R(O),7);case 7:_.lb(e,6);break;case 5:_.VP(e);case 6:O.initJob&&(O.initJob=0),_.Ra(e)}})},100))}},alr=function(O,x,e){var l,C,Q;
return _.A(function(L){switch(L.nextAddress){case 1:if(!_.t("start_client_gcf")){L.jumpTo(0);break}e&&hhp(O,e);O.setHotHashData(x);l=AN();if(!l){L.jumpTo(3);break}if(e){L.jumpTo(4);break}return L.yield(sx7(l),5);case 5:C=L.yieldResult,e=(Q=C)==null?void 0:Q.config;case 4:return L.yield(UcL(e,x,l),3);case 3:if(e)for(var k=e,M=_.T(O.configUpdateService.sharedHotConfigJobQueue),G=M.next();!G.done;G=M.next())G=G.value,G(k);_.Ra(L)}})},m5N=function(O,x,e){var l,C,Q,L;
return _.A(function(k){if(k.nextAddress==1){if(!_.t("start_client_gcf"))return k.jumpTo(0);KRz(O,x);return(l=AN())?e?k.jumpTo(4):k.yield(mc7(l),5):k.jumpTo(0)}k.nextAddress!=4&&(C=k.yieldResult,e=(Q=C)==null?void 0:Q.config);if(!e)return k.jumpTo(0);L=e.configData;return k.yield(aSs(e,x,L,l),0)})},gE8=function(){var O=dgT(),x=(0,_.F2)()-O.debounceTimer;
if(!(O.debounceTimer!==0&&x<_.yF("send_config_hash_timer"))){x=_.i8("yt.gcf.config.coldConfigData");var e=_.i8("yt.gcf.config.hotHashData"),l=_.i8("yt.gcf.config.coldHashData");x&&e&&l&&(O.debounceTimer=(0,_.F2)());return{coldConfigData:x,hotHashData:e,coldHashData:l}}},nm4=function(O){zhJ(O,_.wz("RAW_COLD_CONFIG_GROUP"));
KRz(O,_.wz("SERIALIZED_COLD_HASH_DATA"));var x;vmJ(O,(x=O.coldGlobalConfigGroup)==null?void 0:x.configData)},uC3=function(O){hhp(O,_.wz("RAW_HOT_CONFIG_GROUP"));
O.setHotHashData(_.wz("SERIALIZED_HOT_HASH_DATA"))},hhp=function(O,x){O.hotGlobalConfigGroup=x;
_.MB("yt.gcf.config.hotConfigGroup",O.hotGlobalConfigGroup||null)},zhJ=function(O,x){O.coldGlobalConfigGroup=x;
_.MB("yt.gcf.config.coldConfigGroup",O.coldGlobalConfigGroup||null)};
rl.prototype.setHotHashData=function(O){this.hotHashData=O;_.MB("yt.gcf.config.hotHashData",this.hotHashData||null)};
var KRz=function(O,x){O.coldHashData=x;_.MB("yt.gcf.config.coldHashData",O.coldHashData||null)},vmJ=function(O,x){O.configData=x;
_.MB("yt.gcf.config.coldConfigData",O.configData||null)},PY=function(){return _.i8("yt.gcf.config.hotConfigGroup")},r3d=function(){return _.i8("yt.gcf.config.coldConfigGroup")};var V4={},J3J=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";V4.assign=function(O){for(var x=Array.prototype.slice.call(arguments,1);x.length;){var e=x.shift();if(e){if(typeof e!=="object")throw new TypeError("Zc`"+e);for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(O[l]=e[l])}}return O};
V4.shrinkBuf=function(O,x){if(O.length===x)return O;if(O.subarray)return O.subarray(0,x);O.length=x;return O};
var wUL={arraySet:function(O,x,e,l,C){if(x.subarray&&O.subarray)O.set(x.subarray(e,e+l),C);else for(var Q=0;Q<l;Q++)O[C+Q]=x[e+Q]},
flattenChunks:function(O){var x,e;var l=e=0;for(x=O.length;l<x;l++)e+=O[l].length;var C=new Uint8Array(e);l=e=0;for(x=O.length;l<x;l++){var Q=O[l];C.set(Q,e);e+=Q.length}return C}},SOd={arraySet:function(O,x,e,l,C){for(var Q=0;Q<l;Q++)O[C+Q]=x[e+Q]},
flattenChunks:function(O){return[].concat.apply([],O)}};
V4.setTyped=function(){J3J?(V4.Buf8=Uint8Array,V4.Buf16=Uint16Array,V4.Buf32=Int32Array,V4.assign(V4,wUL)):(V4.Buf8=Array,V4.Buf16=Array,V4.Buf32=Array,V4.assign(V4,SOd))};
V4.setTyped();var jRd=!0;try{new Uint8Array(1)}catch(O){jRd=!1}
var sFs=function(O){var x,e,l=O.length,C=0;for(x=0;x<l;x++){var Q=O.charCodeAt(x);if((Q&64512)===55296&&x+1<l){var L=O.charCodeAt(x+1);(L&64512)===56320&&(Q=65536+(Q-55296<<10)+(L-56320),x++)}C+=Q<128?1:Q<2048?2:Q<65536?3:4}var k=new V4.Buf8(C);for(x=e=0;e<C;x++)Q=O.charCodeAt(x),(Q&64512)===55296&&x+1<l&&(L=O.charCodeAt(x+1),(L&64512)===56320&&(Q=65536+(Q-55296<<10)+(L-56320),x++)),Q<128?k[e++]=Q:(Q<2048?k[e++]=192|Q>>>6:(Q<65536?k[e++]=224|Q>>>12:(k[e++]=240|Q>>>18,k[e++]=128|Q>>>12&63),k[e++]=
128|Q>>>6&63),k[e++]=128|Q&63);return k};var Z3L={};Z3L=function(O,x,e,l){var C=O&65535|0;O=O>>>16&65535|0;for(var Q;e!==0;){Q=e>2E3?2E3:e;e-=Q;do C=C+x[l++]|0,O=O+C|0;while(--Q);C%=65521;O%=65521}return C|O<<16|0};for(var dD={},cY,NT2=[],gmd=0;gmd<256;gmd++){cY=gmd;for(var $gz=0;$gz<8;$gz++)cY=cY&1?3988292384^cY>>>1:cY>>>1;NT2[gmd]=cY}dD=function(O,x,e,l){e=l+e;for(O^=-1;l<e;l++)O=O>>>8^NT2[(O^x[l])&255];return O^-1};var aC={};aC={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 TO8=[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],kur=[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],mw7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oUN=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hN=Array(576);qB(hN);var zC=Array(60);qB(zC);var RC=Array(512);qB(RC);var p$=Array(256);qB(p$);var LC8=Array(29);qB(LC8);var AUW=Array(30);qB(AUW);var RrL,Uwr,aE8,pRV=!1;var Bn;
Bn=[new YC(0,0,0,0,function(O,x){var e=65535;for(e>O.pending_buf_size-5&&(e=O.pending_buf_size-5);;){if(O.lookahead<=1){n$(O);if(O.lookahead===0&&x===0)return 1;if(O.lookahead===0)break}O.strstart+=O.lookahead;O.lookahead=0;var l=O.block_start+e;if(O.strstart===0||O.strstart>=l)if(O.lookahead=O.strstart-l,O.strstart=l,rD(O,!1),O.strm.avail_out===0)return 1;if(O.strstart-O.block_start>=O.w_size-262&&(rD(O,!1),O.strm.avail_out===0))return 1}O.insert=0;if(x===4)return rD(O,!0),O.strm.avail_out===0?3:
4;O.strstart>O.block_start&&rD(O,!1);return 1}),
new YC(4,4,8,4,EUL),new YC(4,5,16,8,EUL),new YC(4,6,32,32,EUL),new YC(4,4,16,16,ub),new YC(8,16,32,32,ub),new YC(8,16,128,128,ub),new YC(8,32,128,256,ub),new YC(32,128,258,1024,ub),new YC(32,258,258,4096,ub)];var Vxr={};Vxr=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 WCn=Object.prototype.toString;
IEs.prototype.push=function(O,x){var e=this.strm,l=this.options.chunkSize;if(this.ended)return!1;var C=x===~~x?x:x===!0?4:0;typeof O==="string"?e.input=sFs(O):WCn.call(O)==="[object ArrayBuffer]"?e.input=new Uint8Array(O):e.input=O;e.next_in=0;e.avail_in=e.input.length;do{e.avail_out===0&&(e.output=new V4.Buf8(l),e.next_out=0,e.avail_out=l);O=cUr(e,C);if(O!==1&&O!==0)return iZF(this,O),this.ended=!0,!1;if(e.avail_out===0||e.avail_in===0&&(C===4||C===2))if(this.options.to==="string"){var Q=V4.shrinkBuf(e.output,
e.next_out);x=Q;Q=Q.length;if(Q<65537&&(x.subarray&&jRd||!x.subarray))x=String.fromCharCode.apply(null,V4.shrinkBuf(x,Q));else{for(var L="",k=0;k<Q;k++)L+=String.fromCharCode(x[k]);x=L}this.chunks.push(x)}else x=V4.shrinkBuf(e.output,e.next_out),this.chunks.push(x)}while((e.avail_in>0||e.avail_out===0)&&O!==1);if(C===4)return(e=this.strm)&&e.state?(l=e.state.status,l!==42&&l!==69&&l!==73&&l!==91&&l!==103&&l!==113&&l!==666?O=mQ(e,-2):(e.state=null,O=l===113?mQ(e,-3):0)):O=-2,iZF(this,O),this.ended=
!0,O===0;C===2&&(iZF(this,0),e.avail_out=0);return!0};
var iZF=function(O,x){x===0&&(O.result=O.options.to==="string"?O.chunks.join(""):V4.flattenChunks(O.chunks));O.chunks=[];O.err=x;O.msg=O.strm.msg};var OAR=typeof TextEncoder!=="undefined"?new TextEncoder:null,LSn=OAR?function(O){return OAR.encode(O)}:function(O){O=_.Wv(O);
for(var x=new Uint8Array(O.length),e=0;e<x.length;e++)x[e]=O[e];return x};var NfL={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},$sm={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var IP=function(O,x){this.version=O;this.args=x};
IP.prototype.serialize=function(){return{version:this.version,args:this.args}};var KCn=function(O,x){this.topic=O;this.dataClass=x};
KCn.prototype.toString=function(){return this.topic};var xcp=_.i8("ytPubsub2Pubsub2Instance")||new _.UC;_.UC.prototype.subscribe=_.UC.prototype.subscribe;_.UC.prototype.unsubscribeByKey=_.UC.prototype.unsubscribeByKey;_.UC.prototype.publish=_.UC.prototype.publish;_.UC.prototype.clear=_.UC.prototype.clear;_.MB("ytPubsub2Pubsub2Instance",xcp);var H3m=_.i8("ytPubsub2Pubsub2SubscribedKeys")||{};_.MB("ytPubsub2Pubsub2SubscribedKeys",H3m);var nU8=_.i8("ytPubsub2Pubsub2TopicToKeys")||{};_.MB("ytPubsub2Pubsub2TopicToKeys",nU8);
var dwV=_.i8("ytPubsub2Pubsub2IsAsync")||{};_.MB("ytPubsub2Pubsub2IsAsync",dwV);_.MB("ytPubsub2Pubsub2SkipSubKey",null);var NOW=void 0,SAn=void 0;var CHr=_.yF("max_body_size_to_compress",5E5),QHr=_.yF("min_body_size_to_compress",500),JN=!0,MU$=0,wD=0,AYr=_.yF("compression_performance_threshold_lr",250),DQs=_.yF("slow_compressions_before_abandon_count",4),i3i=!1,OsL=new Map,Tqi=1,bsV=!0;_.fI(SC,XZr);SC.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 e1z=function(O,x,e){e||(e=0);var l=O.W_;if(typeof x==="string")for(var C=0;C<16;C++)l[C]=x.charCodeAt(e)<<24|x.charCodeAt(e+1)<<16|x.charCodeAt(e+2)<<8|x.charCodeAt(e+3),e+=4;else for(C=0;C<16;C++)l[C]=x[e]<<24|x[e+1]<<16|x[e+2]<<8|x[e+3],e+=4;for(x=16;x<80;x++)e=l[x-3]^l[x-8]^l[x-14]^l[x-16],l[x]=(e<<1|e>>>31)&4294967295;x=O.chain_[0];e=O.chain_[1];C=O.chain_[2];for(var Q=O.chain_[3],L=O.chain_[4],k,M,G=0;G<80;G++)G<40?G<20?(k=Q^e&(C^Q),M=1518500249):(k=e^C^Q,M=1859775393):G<60?(k=e&C|Q&(e|C),
M=2400959708):(k=e^C^Q,M=3395469782),k=(x<<5|x>>>27)+k+L+M+l[G]&4294967295,L=Q,Q=C,C=(e<<30|e>>>2)&4294967295,e=x,x=k;O.chain_[0]=O.chain_[0]+x&4294967295;O.chain_[1]=O.chain_[1]+e&4294967295;O.chain_[2]=O.chain_[2]+C&4294967295;O.chain_[3]=O.chain_[3]+Q&4294967295;O.chain_[4]=O.chain_[4]+L&4294967295};
SC.prototype.update=function(O,x){if(O!=null){x===void 0&&(x=O.length);for(var e=x-this.blockSize,l=0,C=this.buf_,Q=this.inbuf_;l<x;){if(Q==0)for(;l<=e;)e1z(this,O,l),l+=this.blockSize;if(typeof O==="string")for(;l<x;){if(C[Q]=O.charCodeAt(l),++Q,++l,Q==this.blockSize){e1z(this,C);Q=0;break}}else for(;l<x;)if(C[Q]=O[l],++Q,++l,Q==this.blockSize){e1z(this,C);Q=0;break}}this.inbuf_=Q;this.total_+=x}};
SC.prototype.digest=function(){var O=[],x=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var e=this.blockSize-1;e>=56;e--)this.buf_[e]=x&255,x/=256;e1z(this,this.buf_);for(e=x=0;e<5;e++)for(var l=24;l>=0;l-=8)O[x]=this.chain_[e]>>l&255,++x;return O};var Zs7;var ph=function(O){var x=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(X){x.databaseToken=X},
triggerThrottle:function(){x.throttledSend()},
cancelThrottle:function(){x.cancelThrottledSend()},
immediateSend:function(X){return _.A(function(y){return y.yield(x.immediateSend(X),0)})},
requestWithinAgeLimit:function(X,y){return x.requestWithinAgeLimit(X,y)},
retryQueuedRequests:function(){x.retryQueuedRequests()}};
var e;this.throttleTimeout=(e=O.throttleTimeout)!=null?e:100;var l;this.retryMaxAttempts=(l=O.retryMaxAttempts)!=null?l:1;var C;this.requestAgeLimitMs=(C=O.requestAgeLimitMs)!=null?C:2592E6;var Q;this.queuedRequestAgeLimitMs=(Q=O.queuedRequestAgeLimitMs)!=null?Q:12E4;var L;this.retryDelayMs=(L=O.retryDelayMs)!=null?L:5E3;var k;this.databaseToken=(k=O.databaseToken)!=null?k:void 0;this.enableCleaning=!!O.enableCleaning;var M;this.cleaningRate=(M=O.cleaningRate)!=null?M:.1;var G;this.potentialEsfErrorLimit=
(G=O.potentialEsfErrorLimit)!=null?G:10;O.handleError&&(this.handleError=O.handleError);O.handleWarning&&(this.handleWarning=O.handleWarning);O.disableYtIdbTransactions&&(this.disableYtIdbTransactions=O.disableYtIdbTransactions);O.bypassDbTokenDependency&&(this.bypassDbTokenDependency=O.bypassDbTokenDependency);this.getBooleanFlag=O.getBooleanFlag;this.jobManager=O.jobManager;this.logsStore=O.logsStore;this.networkManager=O.networkManager;this.sendFn=O.sendFn;this.onlineEvent=O.onlineEvent;this.offlineEvent=
O.offlineEvent;VC(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&lSJ(this)},lSJ=function(O){VC(O)&&!O.disableYtIdbTransactions&&(O.initialized=!0,O.enableCleaning&&Math.random()<=O.cleaningRate&&O.logsStore.cleanLogsStore(O.databaseToken),O.retryQueuedRequests(),O.networkManager.isNetworkAvailable()&&O.throttledSend(),O.networkManager.listen(O.onlineEvent,O.throttledSend.bind(O)),O.networkManager.listen(O.offlineEvent,O.cancelThrottledSend.bind(O)))};
_.b=ph.prototype;_.b.writeThenSend=function(O,x){var e=this;x=x===void 0?{}:x;if(VC(this)&&this.initialized){var l={url:O,options:x,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(l,this.databaseToken).then(function(C){l.id=C;e.networkManager.isNetworkAvailable()&&e.immediateSend(l)}).catch(function(C){e.immediateSend(l);
C9F(e,C)})}else this.sendFn(O,x)};
_.b.sendThenWrite=function(O,x,e){var l=this;x=x===void 0?{}:x;if(VC(this)&&this.initialized){var C={url:O,options:x,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(C.skipRetry=e);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!C.skipRetry){if(!C.skipRetry){var Q=x.onError?x.onError:function(){};
x.onError=function(L,k){return _.A(function(M){if(M.nextAddress==1)return M.yield(l.logsStore.set(C,l.databaseToken).catch(function(G){C9F(l,G)}),2);
Q(L,k);_.Ra(M)})}}this.sendFn(O,x,C.skipRetry)}else this.logsStore.set(C,this.databaseToken).catch(function(L){l.sendFn(O,x,C.skipRetry);
C9F(l,L)})}else this.sendFn(O,x,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&e)};
_.b.sendAndWrite=function(O,x){var e=this;x=x===void 0?{}:x;if(VC(this)&&this.initialized){var l={url:O,options:x,timestamp:this.now(),status:"NEW",sendCount:0},C=!1,Q=x.onSuccess?x.onSuccess:function(){};
l.options.onSuccess=function(L,k){l.id!==void 0?e.logsStore.deleteRequest(l.id,e.databaseToken):C=!0;e.networkManager.networkStatusHint&&e.getBooleanFlag&&e.getBooleanFlag("vss_network_hint")&&e.networkManager.networkStatusHint(!0);Q(L,k)};
this.sendFn(l.url,l.options,void 0,!0);this.logsStore.set(l,this.databaseToken).then(function(L){l.id=L;C&&e.logsStore.deleteRequest(l.id,e.databaseToken)}).catch(function(L){C9F(e,L)})}else this.sendFn(O,x,void 0,!0)};
_.b.throttledSend=function(){var O=this;if(!VC(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O.logsStore.getMostRecentByStatus("NEW",O.databaseToken),2);if(e.nextAddress!=3)return x=e.yieldResult,x?e.yield(O.immediateSend(x),3):(O.cancelThrottledSend(),e.return());O.intervalJob&&(O.intervalJob=0,O.throttledSend());_.Ra(e)})},this.throttleTimeout))};
_.b.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.b.immediateSend=function(O){var x=this,e;return _.A(function(l){switch(l.nextAddress){case 1:if(!VC(x))throw Error("cd");if(O.id===void 0){l.jumpTo(2);break}return l.yield(x.logsStore.markAsQueued(O.id,x.databaseToken),3);case 3:(e=l.yieldResult)||x.handleWarning(Error("dd"));case 2:if(x.requestWithinAgeLimit(O,x.requestAgeLimitMs)){l.jumpTo(4);break}x.handleWarning(Error("ed"));if(O.id===void 0){l.jumpTo(5);break}return l.yield(x.logsStore.deleteRequest(O.id,x.databaseToken),5);case 5:return l.return();
case 4:O.skipRetry||(O=QxL(x,O));if(!O){l.jumpTo(0);break}if(!O.skipRetry||O.id===void 0){l.jumpTo(8);break}return l.yield(x.logsStore.deleteRequest(O.id,x.databaseToken),8);case 8:x.sendFn(O.url,O.options,!!O.skipRetry),_.Ra(l)}})};
var QxL=function(O,x){if(!VC(O))throw Error("fd");var e=x.options.onError?x.options.onError:function(){};
x.options.onError=function(C,Q){var L,k,M,G;return _.A(function(X){switch(X.nextAddress){case 1:L=cY$(Q);(k=ICr(Q))&&O.getBooleanFlag&&O.getBooleanFlag("web_enable_error_204")&&O.handleError(Error("gd"),x.url,Q);if(!(O.getBooleanFlag&&O.getBooleanFlag("nwl_consider_error_code")&&L||O.getBooleanFlag&&!O.getBooleanFlag("nwl_consider_error_code")&&O.potentialEsfErrorCounter<=O.potentialEsfErrorLimit)){X.jumpTo(2);break}if(!O.networkManager.sendNetworkCheckRequest){X.jumpTo(3);break}return X.yield(O.networkManager.sendNetworkCheckRequest(),
3);case 3:if(O.networkManager.isNetworkAvailable()){X.jumpTo(2);break}e(C,Q);if(!O.getBooleanFlag||!O.getBooleanFlag("nwl_consider_error_code")||((M=x)==null?void 0:M.id)===void 0){X.jumpTo(6);break}return X.yield(O.logsStore.resetRequest(x.id,O.databaseToken,!1),6);case 6:return X.return();case 2:if(O.getBooleanFlag&&O.getBooleanFlag("nwl_consider_error_code")&&!L&&O.potentialEsfErrorCounter>O.potentialEsfErrorLimit)return X.return();O.potentialEsfErrorCounter++;if(((G=x)==null?void 0:G.id)===void 0){X.jumpTo(8);
break}return x.sendCount<O.retryMaxAttempts?X.yield(O.logsStore.resetRequest(x.id,O.databaseToken,!0,k?!1:void 0),12):X.yield(O.logsStore.deleteRequest(x.id,O.databaseToken),8);case 12:O.jobManager.addLowPriorityJob(function(){O.networkManager.isNetworkAvailable()&&O.throttledSend()},O.retryDelayMs);
case 8:e(C,Q),_.Ra(X)}})};
var l=x.options.onSuccess?x.options.onSuccess:function(){};
x.options.onSuccess=function(C,Q){var L;return _.A(function(k){if(k.nextAddress==1)return((L=x)==null?void 0:L.id)===void 0?k.jumpTo(2):k.yield(O.logsStore.deleteRequest(x.id,O.databaseToken),2);O.networkManager.networkStatusHint&&O.getBooleanFlag&&O.getBooleanFlag("vss_network_hint")&&O.networkManager.networkStatusHint(!0);l(C,Q);_.Ra(k)})};
return x};
ph.prototype.requestWithinAgeLimit=function(O,x){O=O.timestamp;return this.now()-O>=x?!1:!0};
ph.prototype.retryQueuedRequests=function(){var O=this;if(!VC(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(x){x&&!O.requestWithinAgeLimit(x,O.queuedRequestAgeLimitMs)?O.jobManager.addLowPriorityJob(function(){return _.A(function(e){if(e.nextAddress==1)return x.id===void 0?e.jumpTo(2):e.yield(O.logsStore.resetRequest(x.id,O.databaseToken),2);O.retryQueuedRequests();_.Ra(e)})}):O.networkManager.isNetworkAvailable()&&O.throttledSend()})};
var C9F=function(O,x){O.writeError&&!O.networkManager.isNetworkAvailable()?O.writeError(x):O.handleError(x)},VC=function(O){return!!O.databaseToken||O.bypassDbTokenDependency};var VUL;var hPN={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 bAz={},rY7=GC("ServiceWorkerLogsDatabase",{objectStores:(bAz.SWHealthLog={addedAtVersion:1},bAz),shared:!0,upgrade:function(O,x){x(1)&&$C(gD(O,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var vXN={},Bq7=0;var Swr;var RP=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},lU=function(){if(!RP.instance){var O=_.i8("yt.networkRequestMonitor.instance")||new RP;
_.MB("yt.networkRequestMonitor.instance",O);RP.instance=O}return RP.instance};
RP.prototype.requestComplete=function(O,x){x&&(this.anyRequestHasSucceeded=!0);O=this.removeParams(O);this.requestMap.get(O)||this.requestMap.set(O,x)};
RP.prototype.isEndpointCFR=function(O){O=this.removeParams(O);return(O=this.requestMap.get(O))?!1:O===!1&&this.anyRequestHasSucceeded?!0:null};
RP.prototype.removeParams=function(O){return O.split("?")[0]};
RP.prototype.removeParams=RP.prototype.removeParams;RP.prototype.isEndpointCFR=RP.prototype.isEndpointCFR;RP.prototype.requestComplete=RP.prototype.requestComplete;RP.getInstance=lU;var U_=function(O){_.tf.call(this);var x=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=O!=null?O:{addLowPriorityJob:function(C,Q){return setTimeout(C,Q)},
cancelJob:function(C){clearTimeout(C)}};
var e,l;this.isOnline=(l=(e=window.navigator)==null?void 0:e.onLine)!=null?l:!0;this.onNavigatorChange=function(){return _.A(function(C){return C.yield(Tbk(x),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||LWd(this)};
_.c(U_,_.tf);U_.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete U_.instance};
U_.prototype.isNetworkAvailable=function(){return this.isOnline};
var LWd=function(O){O.pollingJob=O.jobManager.addLowPriorityJob(function(){var x;return _.A(function(e){if(e.nextAddress==1)return O.isOnline?((x=window.navigator)==null?0:x.onLine)?e.jumpTo(3):e.yield(Tbk(O),3):e.yield(Tbk(O),3);LWd(O);_.Ra(e)})},3E4)},Tbk=function(O,x){return O.networkRequestPromise?O.networkRequestPromise:O.networkRequestPromise=new Promise(function(e){var l,C,Q,L;
return _.A(function(k){switch(k.nextAddress){case 1:return l=window.AbortController?new window.AbortController:void 0,Q=(C=l)==null?void 0:C.signal,L=!1,_.tS(k,2,3),l&&(O.abortTimeoutKey=O.jobManager.addLowPriorityJob(function(){l.abort()},x||2E4)),k.yield(fetch("/generate_204",{method:"HEAD",
signal:Q}),5);case 5:L=!0;case 3:_.PO(k);O.networkRequestPromise=void 0;O.abortTimeoutKey&&(O.jobManager.cancelJob(O.abortTimeoutKey),O.abortTimeoutKey=0);L!==O.isOnline&&(O.isOnline=L,O.isOnline?O.dispatchEvent("networkstatus-online"):O.dispatchEvent("networkstatus-offline"));e(L);_.Ia(k,0);break;case 2:_.VP(k),L=!1,k.jumpTo(3)}})})};var aP=function(){_.tf.call(this);var O=this;this.shouldFlushErrors=!1;U_.instance||(U_.instance=new U_(_.vn));this.sharedNetworkStatusManager=U_.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(O.shouldFlushErrors&&_.t("offline_error_handling")){var x=jHL().get("errors",!0);if(x){for(var e in x)if(x[e]){var l=new _.ry(e,"sent via offline_errors");l.name=x[e].name;l.stack=x[e].stack;l.level=x[e].level;_.jS(l)}jHL().set("errors",{},2592E3,!0)}}})};
_.c(aP,_.tf);var kLz=function(){if(!aP.instance){var O=_.i8("yt.networkStatusManager.instance")||new aP;_.MB("yt.networkStatusManager.instance",O);aP.instance=O}return aP.instance};
_.b=aP.prototype;_.b.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.b.networkStatusHint=function(O){this.sharedNetworkStatusManager.isOnline=O};
_.b.getWindowStatus=function(){var O=window.navigator.onLine;return O===void 0?!0:O};
_.b.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.b.listen=function(O,x){return this.sharedNetworkStatusManager.listen(O,x)};
_.b.sendNetworkCheckRequest=function(O){O=Tbk(this.sharedNetworkStatusManager,O);O.then(function(x){_.t("use_cfr_monitor")&&lU().requestComplete("generate_204",x)});
return O};
aP.prototype.sendNetworkCheckRequest=aP.prototype.sendNetworkCheckRequest;aP.prototype.listen=aP.prototype.listen;aP.prototype.enableErrorFlushing=aP.prototype.enableErrorFlushing;aP.prototype.getWindowStatus=aP.prototype.getWindowStatus;aP.prototype.networkStatusHint=aP.prototype.networkStatusHint;aP.prototype.isNetworkAvailable=aP.prototype.isNetworkAvailable;aP.getInstance=kLz;_.eb=function(O){O=O===void 0?{}:O;_.tf.call(this);var x=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=kLz();var e=_.i8("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);e&&(O.rateLimit?(this.rateLimit=O.rateLimit,e("networkstatus-online",function(){AhR(x,"publicytnetworkstatus-online")}),e("networkstatus-offline",function(){AhR(x,"publicytnetworkstatus-offline")})):(e("networkstatus-online",function(){x.dispatchEvent("publicytnetworkstatus-online")}),e("networkstatus-offline",
function(){x.dispatchEvent("publicytnetworkstatus-offline")})))};
_.c(_.eb,_.tf);_.eb.prototype.isNetworkAvailable=function(){var O=_.i8("yt.networkStatusManager.instance.isNetworkAvailable");return O?O.bind(this.nsmInstance)():!0};
_.eb.prototype.networkStatusHint=function(O){var x=_.i8("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);x&&x(O)};
_.eb.prototype.sendNetworkCheckRequest=function(O){var x=this,e;return _.A(function(l){e=_.i8("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(x.nsmInstance);return _.t("skip_network_check_if_cfr")&&lU().isEndpointCFR("generate_204")?l.return(new Promise(function(C){var Q;x.networkStatusHint(((Q=window.navigator)==null?void 0:Q.onLine)||!0);C(x.isNetworkAvailable())})):e?l.return(e(O)):l.return(!0)})};
var AhR=function(O,x){O.rateLimit?O.lastJobTime?(_.vn.cancelJob(O.schedulerJob),O.schedulerJob=_.vn.addLowPriorityJob(function(){O.lastPublicSignalSent!==x&&(O.dispatchEvent(x),O.lastPublicSignalSent=x,O.lastJobTime=(0,_.F2)())},O.rateLimit-((0,_.F2)()-O.lastJobTime))):(O.dispatchEvent(x),O.lastPublicSignalSent=x,O.lastJobTime=(0,_.F2)()):O.dispatchEvent(x)};var O_7,mB=function(){ph.call(this,{logsStore:{cleanLogsStore:hpL,deleteRequest:WSm,getMostRecentByStatus:aCN,markAsQueued:mQL,resetRequest:sHr,set:UQ$},networkManager:_.xjN(),handleError:function(O,x,e){var l,C=e==null?void 0:(l=e.error)==null?void 0:l.code;if(C===400||C===415){var Q;O=new _.ry(O.message,x,e==null?void 0:(Q=e.error)==null?void 0:Q.code);_.OC(O,void 0,void 0,void 0,!0)}else _.jS(O)},
handleWarning:_.OC,sendFn:$Qr,now:_.F2,writeError:Nqm,jobManager:_.Xu(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.yF("potential_esf_error_limit",10),getBooleanFlag:_.t,disableYtIdbTransactions:!(_.zG()&&_.e9V())});this.initializationPromise=new _.OA;_.t("networkless_immediately_drop_all_requests")&&zpL();ISW("LogsDatabaseV2")};
_.c(mB,ph);_.DcD=function(){var O=_.i8("yt.networklessRequestController.instance");O||(O=new mB,_.MB("yt.networklessRequestController.instance",O),_.t("networkless_logging")&&_.DG().then(function(x){O.databaseToken=x;lSJ(O);O.initializationPromise.resolve();O.enableCleaning&&Math.random()<=O.cleaningRate&&O.databaseToken&&KSn(O.databaseToken);_.t("networkless_immediately_drop_sw_health_store")&&M_T(O)}));
return O};
mB.prototype.writeThenSend=function(O,x){x||(x={});x=isi(O,x);_.zG()||(this.initialized=!1);ph.prototype.writeThenSend.call(this,O,x)};
mB.prototype.sendThenWrite=function(O,x,e){x||(x={});x=isi(O,x);_.zG()||(this.initialized=!1);ph.prototype.sendThenWrite.call(this,O,x,e)};
mB.prototype.sendAndWrite=function(O,x){x||(x={});x=isi(O,x);_.zG()||(this.initialized=!1);ph.prototype.sendAndWrite.call(this,O,x)};
mB.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var M_T=function(O){var x;_.A(function(e){if(!O.databaseToken)throw x=gy("clearSWHealthLogsDb"),x;return e.return(dQi(O.databaseToken).catch(function(l){O.handleError(l)}))})};_.CVi=!1;_.laL=_.CV.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.CVi};_.MB("ytNetworklessLoggingInitializationOptions",_.laL);var nt=function(O){var x=this;this.config_=null;O?this.config_=O:h1r()&&(this.config_=_.oC());_.zl(_.vn,function(){PHN(x)},5E3)};
nt.prototype.isReady=function(){!this.config_&&h1r()&&(this.config_=_.oC());return!!this.config_};
var qwV=function(O,x,e,l){!_.wz("VISITOR_DATA")&&x!=="visitor_id"&&Math.random()<.01&&_.OC(new _.ry("Missing VISITOR_DATA when sending innertube request.",x,e,l));if(!O.isReady()){var C=new _.ry("innertube xhrclient not ready",x,e,l);_.jS(C);throw C;}var Q={headers:l.headers||{},method:"POST",postParams:e,postBody:l.postBody,postBodyFormat:l.postBodyFormat||"JSON",onTimeout:function(){l.onTimeout()},
onFetchTimeout:l.onTimeout,onSuccess:function(y,Z){if(l.onSuccess)l.onSuccess(Z)},
onFetchSuccess:function(y){if(l.onSuccess)l.onSuccess(y)},
onProgress:function(y){if(l.onProgress)l.onProgress(y)},
onError:function(y,Z){if(l.onError)l.onError(Z)},
onFetchError:function(y){if(l.onError)l.onError(y)},
timeout:l.timeout,withCredentials:!0,compress:l.compress};Q.headers["Content-Type"]||(Q.headers["Content-Type"]="application/json");var L="";(C=O.config_.innertubeHostOverride)&&(L=C);var k=O.config_.innertubeUseThirdPartyAuth||!1,M=_.Nbr(k,L,l);Object.assign(Q.headers,M);Q.headers.Authorization&&!L&&k&&(Q.headers["x-origin"]=window.location.origin);var G=_.QF(L+("/youtubei/"+O.config_.innertubeApiVersion+"/"+x),{alt:"json"}),X=function(y){y=y===void 0?!1:y;var Z;if(l.retry&&L!="www.youtube-nocookie.com"&&
(y||_.t("skip_ls_gel_retry")||Q.headers["Content-Type"]!=="application/json"||(Z=EXr(x,e,M,k)),Z)){var E=Q.onSuccess,P=Q.onFetchSuccess;Q.onSuccess=function(z,r){tUr(Z);E(z,r)};
e.onFetchSuccess=function(z,r){tUr(Z);P(z,r)}}try{if(y&&l.retry&&!l.networklessOptions.bypassNetworkless)Q.method="POST",l.networklessOptions.writeThenSend?_.DcD().writeThenSend(G,Q):_.DcD().sendAndWrite(G,Q);
else if(l.compress){var U=!l.networklessOptions.writeThenSend;if(Q.postBody){var W=Q.postBody;typeof W!=="string"&&(W=JSON.stringify(Q.postBody));k1L(G,W,Q,_.pb,U)}else k1L(G,JSON.stringify(Q.postParams),Q,oms,U)}else _.t("web_all_payloads_via_jspb")?_.pb(G,Q):oms(G,Q)}catch(z){if(z.name==="InvalidAccessError")Z&&(tUr(Z),Z=0),_.OC(Error("id"));else throw z;}Z&&_.zl(_.vn,function(){PHN(O)},5E3)};
_.Ql8()?oEL().then(function(y){X(y)}):X(!1)};var IMW=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(IMW,_.TH);var GL2=0,TPw=_.gC?"webkit":_.No?"moz":_.j1?"ms":Inz?"o":"";_.MB("ytDomDomGetNextId",_.i8("ytDomDomGetNextId")||function(){return++GL2});var FWd={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},kb=function(O){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(O=
O||window.event){this.event=O;for(var x in O)x in FWd||(this[x]=O[x]);this.scale=O.scale;this.rotation=O.rotation;var e=O.target||O.srcElement;e&&e.nodeType==3&&(e=e.parentNode);this.target=e;var l=O.relatedTarget;if(l)try{l=l.nodeName?l:null}catch(C){l=null}else this.type=="mouseover"?l=O.fromElement:this.type=="mouseout"&&(l=O.toElement);this.relatedTarget=l;this.clientX=O.clientX!=void 0?O.clientX:O.pageX;this.clientY=O.clientY!=void 0?O.clientY:O.pageY;this.keyCode=O.keyCode?O.keyCode:O.which;
this.charCode=O.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=O.altKey;this.ctrlKey=O.ctrlKey;this.shiftKey=O.shiftKey;this.metaKey=O.metaKey;this.pageX_=O.pageX;this.pageY_=O.pageY}}catch(C){}},X1k=function(O){if(document.body&&document.documentElement){var x=document.body.scrollTop+document.documentElement.scrollTop;
O.pageX_=O.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);O.pageY_=O.clientY+x}};
kb.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
kb.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
kb.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Lt=_.CV.ytEventsEventsListeners||{};_.MB("ytEventsEventsListeners",Lt);var GOr=_.CV.ytEventsEventsCounter||{count:0};_.MB("ytEventsEventsCounter",GOr);var Fer=_.Xb(function(){var O=!1;try{var x=Object.defineProperty({},"capture",{get:function(){O=!0}});
window.addEventListener("test",null,x)}catch(e){}return O});_.fI(Mu,_.h0);Mu.prototype.onMouseMove_=function(O){O.pageX_===void 0&&X1k(O);var x=O.pageX_;O.pageY_===void 0&&X1k(O);this.position_=new _.dc(x,O.pageY_)};
Mu.prototype.checkPosition_=function(){if(this.position_){var O=(0,_.F2)();if(this.previousTime_!=0){var x=this.previousPosition_,e=this.position_,l=x.x-e.x;x=x.y-e.y;l=Math.sqrt(l*l+x*x)/(O-this.previousTime_);this.cycles_[this.index_]=Math.abs((l-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(e=x=0;e<4;e++)x+=this.cycles_[e]||0;x>=3&&this.callback_();this.previousVelocity_=l}this.previousTime_=O;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Mu.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Xs$(this.mouseListenerKey_)};var tf$={};var U5i=new _.$x("rawColdConfigGroup");var RPL=new _.$x("rawHotConfigGroup");var oEJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(oEJ,_.TH);var cE7=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(cE7,_.TH);var hG=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O,500)};
_.c(hG,_.TH);hG.prototype.getPayloadCase=function(){return _.ki(this,yhJ)};
hG.prototype.getContext=function(){return _.y4(this,cE7,33)};
var yhJ=[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 q1w=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(q1w,_.TH);var g0r=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(g0r,_.TH);g0r.prototype.setVideoId=function(O){return VQ(this,1,$ji,te(O))};
g0r.prototype.getPlaylistId=function(){return _.pf(this,mv(this,$ji,2))};
var $ji=[1,2];var XeN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(XeN,_.TH);XeN.prototype.getContext=function(){return _.y4(this,pt,1)};
XeN.prototype.getTier=function(){return _.y7(this,7)};var ZA4,XD,of;ZA4=_.CV.ytPubsubPubsubInstance||new _.UC;XD=_.CV.ytPubsubPubsubSubscribedKeys||{};of=_.CV.ytPubsubPubsubTopicToKeys||{};_.qxr=_.CV.ytPubsubPubsubIsSynchronous||{};_.UC.prototype.subscribe=_.UC.prototype.subscribe;_.UC.prototype.unsubscribeByKey=_.UC.prototype.unsubscribeByKey;_.UC.prototype.publish=_.UC.prototype.publish;_.UC.prototype.clear=_.UC.prototype.clear;_.MB("ytPubsubPubsubInstance",ZA4);_.MB("ytPubsubPubsubTopicToKeys",of);_.MB("ytPubsubPubsubIsSynchronous",_.qxr);
_.MB("ytPubsubPubsubSubscribedKeys",XD);var En=window;var s_=_.t("web_enable_lifecycle_monitoring")&&ps7()!==0,EEd=_.t("web_enable_lifecycle_monitoring");var t_4=function(O){var x=this;var e=e===void 0?0:e;var l=l===void 0?_.Xu():l;this.JSC$10886_defaultPriority=e;this.scheduler=l;this.completedResolver=new _.OA;this.scheduledPayloads=O;for(O={i$jscomp$492:0};O.i$jscomp$492<this.scheduledPayloads.length;O={payload$jscomp$20:void 0,i$jscomp$492:O.i$jscomp$492},O.i$jscomp$492++)O.payload$jscomp$20=this.scheduledPayloads[O.i$jscomp$492],e=function(C){return function(){C.payload$jscomp$20.job();x.scheduledPayloads[C.i$jscomp$492].processed=!0;x.scheduledPayloads.every(function(Q){return Q.processed===
!0})&&x.completedResolver.resolve()}}(O),l=this.getPriority(O.payload$jscomp$20),l=this.scheduler.addJob(e,l),this.scheduledPayloads[O.i$jscomp$492]=Object.assign({},O.payload$jscomp$20,{job:e,
jobId:l})};
t_4.prototype.flushJobs=function(){var O=this,x=Array.from(this.scheduledPayloads.keys()).sort(function(l,C){return O.getPriority(O.scheduledPayloads[C])-O.getPriority(O.scheduledPayloads[l])});
x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=this.scheduledPayloads[e.value],e.jobId===void 0||e.processed||(this.scheduler.cancelJob(e.jobId),this.scheduler.addJob(e.job,10))};
t_4.prototype.cancel=function(){for(var O=_.T(this.scheduledPayloads),x=O.next();!x.done;x=O.next())x=x.value,x.jobId===void 0||x.processed||this.scheduler.cancelJob(x.jobId),x.processed=!0;this.completedResolver.resolve()};
t_4.prototype.getPriority=function(O){var x;return(x=O.priority)!=null?x:this.JSC$10886_defaultPriority};var WY=function(O){this.state=O;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};s_&&R9V(this.state)};
WY.prototype.install=function(O){this.plugins.push(O);return this};
WY.prototype.uninstall=function(){var O=this;_.vw.apply(0,arguments).forEach(function(x){x=O.plugins.indexOf(x);x>-1&&O.plugins.splice(x,1)})};
WY.prototype.transition=function(O,x){var e=this;s_&&Uj8(this.state);var l=this.transitions.find(function(Q){return Array.isArray(Q.from)?Q.from.find(function(L){return L===e.state&&Q.to===O}):Q.from===e.state&&Q.to===O});
if(l){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);qQR(this,O,x);this.state=O;s_&&R9V(this.state);l=l.action.bind(this);var C=this.plugins.filter(function(Q){return Q[O]}).map(function(Q){return Q[O]});
l(P9$(this,C),x)}else throw Error("jd`"+this.state+"`"+O);};
var P9$=function(O,x){var e=x.filter(function(C){return chJ(O,C)===10}),l=x.filter(function(C){return chJ(O,C)!==10});
return O.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var C=_.vw.apply(0,arguments);return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(O.runImmediateJobsAsync.apply(O,[e].concat(_.Kx(C))),2);O.setJobSetWithScheduledJobs.apply(O,[l].concat(_.Kx(C)));_.Ra(Q)})}:function(){var C=_.vw.apply(0,arguments);
O.runImmediateJobsSync.apply(O,[e].concat(_.Kx(C)));O.setJobSetWithScheduledJobs.apply(O,[l].concat(_.Kx(C)))}};
WY.prototype.runImmediateJobsSync=function(O){var x=_.vw.apply(1,arguments);_.Xu();for(var e=_.T(O),l=e.next(),C={};!l.done;C={lifecycle$jscomp$2:void 0},l=e.next())C.lifecycle$jscomp$2=l.value,gP(function(Q){return function(){ISd(Q.lifecycle$jscomp$2.name);mjV(function(){return Q.lifecycle$jscomp$2.callback.apply(Q.lifecycle$jscomp$2,_.Kx(x))});
hn(Q.lifecycle$jscomp$2.name)}}(C))};
WY.prototype.runImmediateJobsAsync=function(O){var x=_.vw.apply(1,arguments),e,l,C,Q;return _.A(function(L){L.nextAddress==1&&(_.Xu(),e=_.T(O),l=e.next(),C={});if(L.nextAddress!=3){if(l.done)return L.jumpTo(0);C.lifecycle$jscomp$3=l.value;C.asyncJobCompletion=void 0;Q=function(k){return function(){ISd(k.lifecycle$jscomp$3.name);var M=mjV(function(){return k.lifecycle$jscomp$3.callback.apply(k.lifecycle$jscomp$3,_.Kx(x))});
eL4(M)?k.asyncJobCompletion=_.t("web_lifecycle_error_handling_killswitch")?M.then(function(){hn(k.lifecycle$jscomp$3.name)}):M.then(function(){hn(k.lifecycle$jscomp$3.name)},function(G){aar(G);
hn(k.lifecycle$jscomp$3.name)}):hn(k.lifecycle$jscomp$3.name)}}(C);
gP(Q);return C.asyncJobCompletion?L.yield(C.asyncJobCompletion,3):L.jumpTo(3)}C={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};l=e.next();return L.jumpTo(2)})};
WY.prototype.setJobSetWithScheduledJobs=function(O){var x=_.vw.apply(1,arguments),e=this,l=O.map(function(C){return{job:function(){ISd(C.name);mjV(function(){return C.callback.apply(C,_.Kx(x))});
hn(C.name)},
priority:chJ(e,C)}});
l.length&&(this.jobSet=new t_4(l))};
var chJ=function(O,x){var e,l;return(l=(e=O.overridePriority)!=null?e:x.priority)!=null?l:0},ISd=function(O){s_&&O&&R9V(O)},hn=function(O){s_&&O&&Uj8(O)},qQR=function(O,x,e){EEd&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+O.constructor.name+"] '"+O.state+"' to '"+x+"'"),console.log("with message: ",e),console.groupEnd())};
_.Dy.Object.defineProperties(WY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var V_d=function(O){WY.call(this,O===void 0?"none":O);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(){}}]},p1k;
_.c(V_d,WY);V_d.prototype.runApplicationNavigationBegin=function(O,x){var e=this;this.navigationTimer=_.zl(_.vn,function(){e.currentState==="application_navigating"&&e.transition("none")},5E3);
O(x==null?void 0:x.event)};
V_d.prototype.runApplicationNavigationEnd=function(O,x){this.navigationTimer&&(_.vn.cancelJob(this.navigationTimer),this.navigationTimer=null);O(x==null?void 0:x.event)};
_.pew=function(){p1k||(p1k=new V_d);return p1k};var Ve8=[];_.MB("yt.logging.transport.getScrapedGelPayloads",function(){return Ve8});var tG=function(){var O=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return O.totalEntries}}};
tG.prototype.storePayload=function(O,x){O=slW(O);this.store[O]?this.store[O].push(x):(this.memoizedKeySequences={},this.store[O]=[x]);this.totalEntries++;_.t("more_accurate_gel_parser")&&(x=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(x));return O};
tG.prototype.smartExtractMatchingEntries=function(O){if(!O.keys.length)return[];for(var x=R1d(this,O.keys.splice(0,1)[0]),e=[],l=0;l<x.length;l++)this.store[x[l]]&&O.sizeLimit&&(this.store[x[l]].length<=O.sizeLimit?(e.push.apply(e,_.Kx(this.store[x[l]])),delete this.store[x[l]]):e.push.apply(e,_.Kx(this.store[x[l]].splice(0,O.sizeLimit))));this.totalEntries-=e.length;(O==null?0:O.sizeLimit)&&e.length<(O==null?void 0:O.sizeLimit)&&(O.sizeLimit-=e.length,e.push.apply(e,_.Kx(this.smartExtractMatchingEntries(O))));
return e};
tG.prototype.extractMatchingEntries=function(O){O=R1d(this,O);for(var x=[],e=0;e<O.length;e++)this.store[O[e]]&&(x.push.apply(x,_.Kx(this.store[O[e]])),delete this.store[O[e]]);this.totalEntries-=x.length;return x};
tG.prototype.getSequenceCount=function(O){O=R1d(this,O);for(var x=0,e=0;e<O.length;e++){var l=void 0;x+=((l=this.store[O[e]])==null?void 0:l.length)||0}return x};
var R1d=function(O,x){var e=slW(x);if(O.memoizedKeySequences[e])return O.memoizedKeySequences[e];var l=Object.keys(O.store)||[];if(l.length<=1&&slW(x)===l[0])return l;for(var C=[],Q=0;Q<l.length;Q++){var L=l[Q].split("/");if(UcJ(x.auth,L[0])){var k=x.isJspb;UcJ(k===void 0?"undefined":k?"true":"false",L[1])&&UcJ(x.cttAuthInfo,L[2])&&(k=x.tier,k=k===void 0?"undefined":JSON.stringify(k),UcJ(k,L[3])&&C.push(l[Q]))}}return O.memoizedKeySequences[e]=C},UcJ=function(O,x){return O===void 0||O==="undefined"?
!0:O===x};
tG.prototype.getSequenceCount=tG.prototype.getSequenceCount;tG.prototype.extractMatchingEntries=tG.prototype.extractMatchingEntries;tG.prototype.smartExtractMatchingEntries=tG.prototype.smartExtractMatchingEntries;tG.prototype.storePayload=tG.prototype.storePayload;var TS8,Q2L,Lun,cH,aSL,Wui,s28,Ckr,ll7,JBV,b7$,cIN,O7n;TS8=_.yF("initial_gel_batch_timeout",2E3);Q2L=_.yF("gel_queue_timeout_max_ms",6E4);Lun=_.yF("gel_min_batch_size",5);cH=void 0;aSL=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Wui=new aSL;s28=new aSL;Ckr=new aSL;ll7=new aSL;b7$=!0;cIN=1;_.Pkm=new Map;O7n=_.CV.ytLoggingTransportTokensToCttTargetIds_||{};_.MB("ytLoggingTransportTokensToCttTargetIds_",O7n);var i_r=_.CV.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.MB("ytLoggingTransportTokensToJspbCttTargetIds_",i_r);var PH={};var Kt=_.CV.ytLoggingGelSequenceIdObj_||{};_.MB("ytLoggingGelSequenceIdObj_",Kt);var rIn=[];var S1s=new Set,unw=0,$57=0,gzs=0,BSn=[],Y1w=[],i7m=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var DRi=function(){};
DRi.prototype.getUrl=function(O,x){x=x===void 0?!1:x;return O.hasOwnProperty("shareEndpoint")?null:_.lc7(O,null,x)};
var RTr=function(O,x,e){O={endpoint:x,actions:[]};e=(e.path?e.path[0]:e.target).icon||"";x=e.indexOf(":");x>0&&(e=e.substr(x+1));e&&O.actions.push(e);return O};var kA7=/Command$/,L8W=/Endpoint$/,Qtr=new Map;var mcN,sxN;mcN=1;_.iU=function(){this.actionRoutingMap=new Map};
_.iU.prototype.triggerAction=function(O){var x=new etW(O,!1,_.vw.apply(1,arguments));this.handleAction(x);return x.returnValue};
_.iU.prototype.triggerOptionalAction=function(O){var x=new etW(O,!0,_.vw.apply(1,arguments));this.handleAction(x);return x.returnValue};
_.z6=function(O,x,e){x.forEach(function(l){var C=TYL(l);C&&O.triggerOptionalAction(C,l,e,void 0)})};
_.iU.prototype.handleAction=function(O){var x=this.actionRoutingMap.get(O.actionName);x&&sxN(O,x);O.optionalAction||O.returnValue.length!==0||(O=new _.ry("Unhandled action",O.actionName),_.OC(O))};
sxN=function(O,x){x.forEach(function(e){var l=null;e?l=e.apply(null,O.args):(e=Error("kd"),e.params=O.actionName,_.jS(e));O.returnValue.push(l)})};
_.e2=function(O,x,e){e||(e=mcN++);for(var l=_.T(Object.keys(x)),C=l.next();!C.done;C=l.next()){C=C.value;var Q=O.actionRoutingMap.get(C);Q||(Q=new Map,O.actionRoutingMap.set(C,Q));O.registerActionHandler(e,C,x[C],Q)}return e};
_.iU.prototype.registerActionHandler=function(O,x,e,l){l.set(O,_.$K(e))};
_.lD=function(O,x,e){x=_.T(Object.keys(x));for(var l=x.next();!l.done;l=x.next())(l=O.actionRoutingMap.get(l.value))&&l.delete(e)};
_.BN(_.iU);var X8W=function(O,x){var e=_.iU.getInstance();_.YK(function(){var l={},C=_.e2(e,(l[O]=x,l));_.YO(function(){var Q={};_.lD(e,(Q[O]="",Q),C)})})};var s6W=Symbol("md");E_w=iGN;var str=new Set(["For","If","Match","Watch"]),WWN={},h1F=(WWN[N4.default]=function(){return DyL},WWN.style=function(){return DyL},WWN),z12;
for(z12 in h1F)Gc.attributes[z12]=h1F[z12](Gc.attributes[z12]);var GQ=new _.iR("VISIBILITY_OBSERVER");var Y9L={retrieve:function(O){return this.id.\u0275prov.token===O.\u0275prov.token?this.contextValue:this?_.A6(this,this.id):ECr}};var zEr=function(O,x,e){if(O!==kg)return!1;O=VRN(document.createElement("div"),function(){var l=oU(!1);try{e[0]()}finally{oU(l)}});
O=Array.from(O.childNodes);O.length===1&&(O=O[0]);return O};var rhL=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(O){}var HA2=typeof WeakRef==="function";var KW$=function(O){this.value=O};
KW$.prototype.deref=function(){return this.value};
var dc2=HA2?WeakRef:KW$,nET=function(O){this.newKeyHandler=O;this.map=new WeakMap};
nET.prototype.add=function(O,x){this.map.has(O)||(this.newKeyHandler(O),this.map.set(O,[]));this.map.get(O).push(new dc2(x))};
nET.prototype.get=function(O){var x=this;return function l(){var C,Q,L,k,M,G,X,y,Z,E,P;return _.SK(l,function(U){switch(U.nextAddress){case 1:_.cO(U,2);C=x.map.get(O);if(!C)return U.return();Q=0;L=_.T(C);k=L.next();case 4:if(k.done){U.jumpTo(6);break}M=k.value;G=M.deref();if(!G){U.jumpTo(5);break}Q++;X=_.jK;return U.yield(G,8);case 8:X(U.yieldResult);case 5:k=L.next();U.jumpTo(4);break;case 6:if(2*Q<C.length){y=0;Z=_.T(C);for(E=Z.next();!E.done;E=Z.next())P=E.value,P.deref()&&(C[y++]=P);C.length=
y}case 2:_.PO(U),_.Ia(U,0)}})}()};var uxz=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},jt$=new nET(function(O){O.addEventListener("abort",gp8,{once:!0})}),S9r=new WeakMap,YQR=function(O){O=O===void 0?r1:O;
this.signal=new O};
YQR.prototype.abort=function(O){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=O,O=new Event("abort"),this.signal.dispatchEvent(O))};
var r1=function(){this.target=uxz();this.aborted=!1;this.onabort=null};
r1.prototype.throwIfAborted=function(){w8m.call(this)};
r1.prototype.addEventListener=function(O,x,e){this.target.addEventListener(O,x,e)};
r1.prototype.removeEventListener=function(O,x,e){this.target.removeEventListener(O,x,e)};
r1.prototype.dispatchEvent=function(O){if(this.onabort&&O.type==="abort")this.onabort(O);return this.target.dispatchEvent(O)};
r1.abort=JA8;r1.timeout=$RL;r1.any=NYW;var fcV=rhL?AbortController:YQR,HY=rhL?AbortSignal:r1;typeof HY.abort!=="function"&&(HY.abort=JA8);typeof HY.prototype.throwIfAborted!=="function"&&(HY.prototype.throwIfAborted=w8m);typeof HY.any!=="function"&&(HY.any=NYW);typeof HY.timeout!=="function"&&(HY.timeout=$RL);var X6=null,OMN=new Map;var Bb4=function(O){O=O.clone();kQT(O);tD(O,"dg",null);tD(O,"d","0");Qy$(O,null);bwz(O,null);return O},vE4=!0,fSD=function(O,x,e){var l=e===void 0?{}:e;
e=l.cssRowKey===void 0?void 0:l.cssRowKey;var C=l.combinedSignature===void 0?void 0:l.combinedSignature;var Q=l.extraEdges===void 0?void 0:l.extraEdges;l=l.callback===void 0?void 0:l.callback;tD(O,"m",x.join(","));Q&&L1p(O,Q);e&&(tD(O,"ck",e),C?tD(O,"rs",C):vE4&&(vE4=!1));if(l){if(l!=null&&!D3D.test(l))throw Error("Xa`"+l);tD(O,"cb",l)}O=O.toString();_.br(O,"/")&&(O=u52(document.location.href)+O);return _.aS(O)};var w13=function(O){return JhN(O).then(function(x){return JSON.parse(x.responseText)})},JhN=function(O){var x={},e=x.xmlHttpFactory?x.xmlHttpFactory.createInstance():pEz.createInstance();
return(new _.If(function(l,C){var Q;try{e.open("GET",O,!0)}catch(M){C(new Kh("Error opening XHR: "+M.message,O,e))}e.onreadystatechange=function(){if(e.readyState==4){_.CV.clearTimeout(Q);var M;!(M=VS4(e.status))&&(M=e.status===0)&&(M=nG3(O),M=!(M=="http"||M=="https"||M==""));M?l(e):C(new SQL(e.status,O,e))}};
e.onerror=function(){C(new Kh("Network error",O,e))};
if(x.headers)for(var L in x.headers){var k=x.headers[L];k!=null&&e.setRequestHeader(L,k)}x.withCredentials&&(e.withCredentials=x.withCredentials);x.responseType&&(e.responseType=x.responseType);x.mimeType&&e.overrideMimeType(x.mimeType);x.timeoutMs>0&&(Q=_.CV.setTimeout(function(){e.onreadystatechange=function(){};
e.abort();C(new jx3(O,e))},x.timeoutMs));
try{e.send(null)}catch(M){e.onreadystatechange=function(){},_.CV.clearTimeout(Q),C(new Kh("Error sending XHR: "+M.message,O,e))}})).thenCatch(function(l){l instanceof _.Vn&&e.abort();
throw l;})},Kh=function(O,x,e){_.ew.call(this,O+", url="+x);
this.url=x;this.xhr=e};
_.fI(Kh,_.ew);Kh.prototype.name="XhrError";var SQL=function(O,x,e){Kh.call(this,"Request Failed, status="+O,x,e);this.status=O};
_.fI(SQL,Kh);SQL.prototype.name="XhrHttpError";var jx3=function(O,x){Kh.call(this,"Request timed out",O,x)};
_.fI(jx3,Kh);jx3.prototype.name="XhrTimeoutError";YQ=YQ||{};var d1=function(){_.h0.call(this)};
_.fI(d1,_.h0);d1.prototype.initialize=function(){};var Nbp=function(O,x){this.fn_=O;this.handler_=x};
Nbp.prototype.execute=function(O){this.fn_&&(this.fn_.call(this.handler_||null,O),this.fn_=this.handler_=null)};
Nbp.prototype.abort=function(){this.handler_=this.fn_=null};var nh=function(O,x){_.h0.call(this);this.deps_=O;this.JSC$11041_id_=x;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.fI(nh,_.h0);nh.prototype.moduleConstructor_=d1;nh.prototype.module_=null;nh.prototype.getId=function(){return this.JSC$11041_id_};
nh.prototype.registerCallback=function(O,x){return gET(this.onloadCallbacks_,O,x)};
var $cF=function(O,x){gET(O.onErrorCallbacks_,x)},gET=function(O,x,e){x=new Nbp(x,e);
O.push(x);return x};
nh.prototype.isLoaded=function(){return!!this.module_};
nh.prototype.onLoad=function(O){var x=new this.moduleConstructor_;x.initialize(O());this.module_=x;x=(x=iAT(this.earlyOnloadCallbacks_,O()))||iAT(this.onloadCallbacks_,O());x||(this.onErrorCallbacks_.length=0);return x};
nh.prototype.onError=function(O){(O=iAT(this.onErrorCallbacks_,O))&&QN(Error("qd`"+O));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var iAT=function(O,x){for(var e=[],l=0;l<O.length;l++)try{O[l].execute(x)}catch(C){QN(C),e.push(C)}O.length=0;return e.length?e:null};
nh.prototype.disposeInternal=function(){nh.superClass_.disposeInternal.call(this);_.Lf(this.module_)};var O3L,b3L,CK$,QFT,erD,lEp,Mx3,kuF,AUd;
_.y5=function(O,x,e,l,C){l=l===void 0?!1:l;C=C===void 0?!1:C;var Q=Q===void 0?!0:Q;this.scsReferenceUrl_=YY7(_.sh(O).toString(),Q);this.cssRowKey_=x;this.combinedSignature_=e;this.useNegativeLoading_=l;this.requestedModuleMap_={};this.JSC$11044_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(O=ES(this.scsReferenceUrl_,"excm"))?O.split(","):[];this.shouldScanForCss_=C;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;BDN();_.uY(this,TaF(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
O3L=function(O,x){if(x.href||x.getAttribute("data-href"))if(x=x.href||x.getAttribute("data-href"),KQW(x)&&!YY7(x).urlPrefix_.endsWith("_/js/")){x=TaF(YY7(x));x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,O.loadedCssModuleList_.includes(e)||O.loadedCssModuleList_.push(e)}};
_.y5.prototype.JSC$11046_loadModules=function(O,x,e){var l=e===void 0?{}:e;e=l.extraEdges;var C=l.onError;var Q=l.onSuccess;l=l.forceReload;this.JSC$11044_moduleInfoMap_=x;if(!O)throw Error("rd");if(this.shouldScanForCss_){x=_.T(document.getElementsByTagName("style"));for(var L=x.next();!L.done;L=x.next())O3L(this,L.value);x=_.T(document.getElementsByTagName("link"));for(L=x.next();!L.done;L=x.next())O3L(this,L.value)}xwd(this,erD(this,O),e,C,Q,l)};
var xwd=function(O,x,e,l,C,Q){l=l===void 0?function(){}:l;
C=C===void 0?function(){}:C;
Q=Q===void 0?!1:Q;lEp(O,x,function(L,k,M){M=M===void 0?k:M;O.enableFallbackFetch&&Q?O.loadWithFetch(L,k,l,C,M):O.load(L,k,l,C,M,e)},e)||l(-1)};
_.y5.prototype.loadWithFetch=function(){_.A(function(){throw Error("sd");})};
_.y5.prototype.maybeSetAdditionalFields=function(){};
b3L=function(O,x,e){if(O.useNegativeLoading_){var l=O.scsReferenceUrl_;O={cssRowKey:O.cssRowKey_,combinedSignature:O.combinedSignature_,extraEdges:e,requestedModuleIds:CK$(O),requestedCssModuleIds:QFT(O)};var C=O===void 0?{}:O;O=C.requestedModuleIds===void 0?[]:C.requestedModuleIds;e=C.requestedCssModuleIds===void 0?[]:C.requestedCssModuleIds;var Q=C.cssRowKey===void 0?void 0:C.cssRowKey;var L=C.combinedSignature===void 0?void 0:C.combinedSignature;var k=C.extraEdges===void 0?void 0:C.extraEdges;
C=C.callback===void 0?void 0:C.callback;l=Bb4(l);tD(l,"d","1");Qy$(l,O);bwz(l,e);x=fSD(l,x,{cssRowKey:Q,combinedSignature:L,extraEdges:k,callback:C})}else l=O.scsReferenceUrl_,O={cssRowKey:O.cssRowKey_,combinedSignature:O.combinedSignature_,requestedModuleIds:CK$(O),requestedCssModuleIds:QFT(O)},k=O===void 0?{}:O,O=k.requestedCssModuleIds===void 0?[]:k.requestedCssModuleIds,e=k.cssRowKey===void 0?void 0:k.cssRowKey,Q=k.combinedSignature===void 0?void 0:k.combinedSignature,L=k.extraEdges===void 0?
void 0:k.extraEdges,k=k.callback===void 0?void 0:k.callback,l=Bb4(l),bwz(l,O),x=fSD(l,x,{cssRowKey:e,combinedSignature:Q,extraEdges:L,callback:k});return x};
_.uY=function(O,x){for(var e=!1,l=[],C=0;C<x.length;++C){var Q=x[C];O.requestedModuleMap_[Q]||(O.requestedModuleMap_[Q]=!0,O.requestedModuleList_.push(Q),e=!0,l.push(Q))}e&&(O.requestedModuleListSorted_=!1)};
_.Ys=function(O,x){for(var e=[],l=0;l<x.length;++l){var C=x[l];O.requestedModuleMap_[C]&&(delete O.requestedModuleMap_[C],_.YW(O.requestedModuleList_,C),e.push(C))}};
_.y5.prototype.load=function(O,x,e,l,C){C=C===void 0?x:C;_.sh(O);var Q=this.useCors_,L=this.corsMode_,k=this.fetchPriority,M=_.R9("SCRIPT");_.QP(M,O);Q&&(M.crossOrigin=L);M.async=!1;k&&M.setAttribute("fetchpriority",k);_.uY(this,x);_.TOT(this,O,M,x,e,l,C)};
_.TOT=function(O,x,e,l,C,Q,L){L=L===void 0?l:L;O.lastScript_=e;O.insertPos.insertBefore(e,O.insertPos.firstChild);_.LCT(e,l,function(){e.parentElement.removeChild(e);O.lastScript_==e&&(O.lastScript_=null);var k=new Set;l.map(function(G){return k.add(G)});
for(var M in O.JSC$11044_moduleInfoMap_)O.JSC$11044_moduleInfoMap_[M].isLoaded()&&k.add(M);Array.from(k);Q()},function(k){e.parentElement.removeChild(e);
O.lastScript_==e&&(O.lastScript_=null);_.Ys(O,k);O.pendingModuleGraphUpdate_?O.pendingModuleGraphUpdate_.then(function(){C(-1,x)}):C(-1,x)},L)};
_.LCT=function(O,x,e,l,C){C=C===void 0?x:C;var Q=x.length,L=function(){Q=0;O.onload=null;O.onerror=null;k=function(){}},k=function(){L();
var G=C.filter(function(X){return!uP().getModuleInfo(X).isLoaded()});
G.length!==0?l(G,"Response was successful but was missing module(s) "+G+"."):e()},M=function(){Q--;
Q==0&&k()};
x.forEach(function(G){G=uP().getModuleInfo(G);G.isLoaded()?M():(gET(G.earlyOnloadCallbacks_,M),$cF(G,M))});
O.onload=function(){return k()};
O.onerror=function(){L();l(x)}};
CK$=function(O){O.requestedModuleListSorted_||(O.requestedModuleListSorted_=!0,O.requestedModuleList_.sort());return O.requestedModuleList_};
QFT=function(O){O=O.loadedCssModuleList_;O.sort();return O};
erD=function(O,x){return x.filter(function(e){return!O.requestedModuleMap_[e]})};
lEp=function(O,x,e,l){if(O.pendingModuleGraphUpdate_)return O.pendingModuleGraphUpdate_.then(function(){lEp(O,x,e,l)}),!0;
if(!O.useNegativeLoading_){var C=[],Q=Object.assign({},O.requestedModuleMap_);kuF(O,x,function(X){C.push(X.getId())},l,function(X){return!X.isLoaded()},Q);
x=C}for(Q=0;Q<x.length;){for(var L=x.length-Q,k=Q==0?x:x.slice(Q,x.length),M=b3L(O,k,l),G=_.sh(M).toString();G.length>O.urlMaxLength;)if(L>1)L-=Math.ceil((G.length-O.urlMaxLength)/6),L=Math.max(L,1),k=x.slice(Q,Q+L),M=b3L(O,k,l),G=_.sh(M).toString();else return O.useNegativeLoading_?(O.useNegativeLoading_=!1,O.pendingModuleGraphUpdate_=AUd(O).then(function(X){Mx3(O,X,l)}),lEp(O,x.slice(Q),e,l)):!1;
Q+=L;O.useNegativeLoading_?e(M,k):e(M,k,Q===x.length?x:[])}return!0};
Mx3=function(O,x,e){uP().setAllModuleInfoString((x||{}).moduleGraph);kuF(O,CK$(O),function(l){_.uY(O,[l.getId()])},e);
O.pendingModuleGraphUpdate_=null};
kuF=function(O,x,e,l,C,Q){Q=Q===void 0?{}:Q;var L=uP();x=_.T(x);for(var k=x.next();!k.done;k=x.next()){k=k.value;var M=L.getModuleInfo(k);if(!(Q[k]||C&&!C(M))){Q[k]=!0;var G=M.deps_||[];if(l){var X=[];l[k]&&(X=Object.keys(l[k]));G=G.concat(X)}kuF(O,G,e,l,C,Q);e(M)}}};
AUd=function(O){O=O.scsReferenceUrl_.clone();kQT(O);tD(O,"dg",null);tD(O,"md","1");return w13(O.toString())};var e2r=new Uint8Array(123);var Dw$=[];var Gud=function(){this.JSC$10049_loader_=null};
_.b=Gud.prototype;_.b.setBatchModeEnabled=function(){};
_.b.setAllModuleInfoString=function(){};
_.b.addExtraEdge=function(){throw Error("td");};
_.b.removeExtraEdge=function(){throw Error("ud");};
_.b.getModuleContext=function(){return null};
_.b.isActive=function(){return!1};
_.b.isUserActive=function(){return!1};
_.b.registerCallback=function(){};var BY=function(O,x,e,l,C){var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.name="ModuleLoadFailure";this.type=O;this.status=x;this.requestedModuleIds=e;this.url=l;this.cause=C;this.message=this.toString()};
_.c(BY,Error);BY.prototype.toString=function(){return FCk(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var FCk=function(O){switch(O.type){case BY.Type.UNAUTHORIZED:return"Unauthorized";case BY.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case BY.Type.TIMEOUT:return"Timed out";case BY.Type.OLD_CODE_GONE:return"Out of date module id";case BY.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+O.type}};
YQ.ModuleLoadFailure=BY;YQ.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var vY=function(){this.moduleIds_=this.JSC$10049_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11059_extraEdges_={};this.JSC$11059_callbackMap_={};this.JSC$11059_currentlyLoadingModule_=this.baseModuleInfo_=new nh([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new fr;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.fI(vY,Gud);var XR3=function(O,x){_.ew.call(this,"Error loading "+O+": "+x)};
_.fI(XR3,_.ew);vY.prototype.setBatchModeEnabled=function(O){this.batchModeEnabled_=O};
vY.prototype.setAllModuleInfoString=function(O,x){if(!(this instanceof vY))this.setAllModuleInfoString(O,x);else if(typeof O==="string"){if(O.startsWith("d$")){O=O.substring(2);for(var e=[],l=0,C=O.indexOf("/"),Q=0,L=!1,k=0;;){var M=L?O.substring(Q):O.substring(Q,C);if(M.length===0)l++,Q="sy"+l.toString(36),M=[];else{var G=M.indexOf(":");if(G<0)Q=M,M=[];else if(G===M.length-1)Q=M.substring(0,G),M=Array(e[k-1]);else{Q=M.substring(0,G);M=M.substring(G+1).split(",");G=k;for(var X=0;X<M.length;X++)G-=
M[X].length===0?1:Number(M[X]),M[X]=e[G]}G=0;if(Q.length===0)G=1;else if(Q.charAt(0)==="+"||Q.charAt(0)==="-")G=Number(Q);G!==0&&(l+=G,Q="sy"+l.toString(36))}e.push(Q);oUR(this,Q,M);if(L)break;Q=C+1;C=O.indexOf("/",Q);C===-1&&(L=!0);k++}this.moduleIds_=e}else if(O.startsWith("p$"))yUp(this,O);else{O=O.split("/");e=[];for(l=0;l<O.length;l++){k=O[l].split(":");C=k[0];L=[];if(k[1])for(L=k[1].split(","),k=0;k<L.length;k++)L[k]=e[parseInt(L[k],36)];e.push(C);oUR(this,C,L)}this.moduleIds_=e}x&&x.length?
(_.fV(this.loadingModuleIds_,x),this.lastInitialModuleId_=_.zr(x)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11059_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11059_currentlyLoadingModule_=null,(x=this.baseModuleInfo_.onLoad((0,_.z8)(this.getModuleContext,this)))&&x.length&&Z3J(this,new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,x[0])),fh(this))}};
var yUp=function(O,x){var e=x.substring(2);for(x=0;x<64;x++)e2r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(x)]=x;var l={buf:e,pos:0};oy(l);var C=oy(l),Q=oy(l)+1;x=Array(C);var L=Array(C),k=Array(C);Q=Array(Q);var M=0,G=0,X=l.pos,y=l.buf.indexOf("|",l.pos);l.pos=y+1;for(y=0;y<C;y++){var Z=oy(l),E=Z&2,P=Z&1;Z>>>=2;P?(M+=Z>>>1^-(Z&1),Z="sy"+M.toString(36)):(P=X,X+=Z,Z=e.substring(P,X));x[y]=Z;E&&(Q[G++]=Z)}Q[G]="";l.pos++;G=C&-2;e=C&1;for(M=0;M<G;M+=2)X=lwi(l),k[M]=
X&7,k[M+1]=X>>>3&7;e&&(e=lwi(l),k[G]=e&7);l.pos++;for(G=0;G<C;G++)k[G]===7&&(k[G]=oy(l));l.pos++;for(e=G=0;e<C;e++){M=k[e];X=M===0?Dw$:Array(M);L[e]=X;y=G;for(E=0;E<M;E++)y-=oy(l),X[E]=Q[y];Q[G]===x[e]&&G++}for(l=0;l<x.length;l++)oUR(O,x[l],L[l]);O.moduleIds_=x};
_.b=vY.prototype;_.b.getModuleInfo=function(O){return this.moduleInfoMap[O]};
_.b.addExtraEdge=function(O,x){var e=this.getModuleInfo(O);e&&e.isLoaded()?this.load(x):(this.JSC$11059_extraEdges_[O]||(this.JSC$11059_extraEdges_[O]={}),this.JSC$11059_extraEdges_[O][x]=!0)};
_.b.removeExtraEdge=function(O,x){if(this.JSC$11059_extraEdges_[O]){delete this.JSC$11059_extraEdges_[O][x];for(var e in this.JSC$11059_extraEdges_[O])return;delete this.JSC$11059_extraEdges_[O]}};
_.b.isActive=function(){return this.loadingModuleIds_.length>0};
_.b.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var fh=function(O){var x=O.lastActive_,e=O.isActive();e!=x&&(O.executeCallbacks_(e?"active":"idle"),O.lastActive_=e);x=O.isUserActive();x!=O.userLastActive_&&(O.executeCallbacks_(x?"userActive":"userIdle"),O.userLastActive_=x)},oUR=function(O,x,e){O.moduleInfoMap[x]?(O=O.moduleInfoMap[x].deps_,O!=e&&O.splice.apply(O,[0,
O.length].concat(_.Kx(e)))):O.moduleInfoMap[x]=new nh(e,x)},txR=function(O,x,e){var l=[];
zsn(x,l);x=[];for(var C={},Q=0;Q<l.length;Q++){var L=l[Q],k=O.getModuleInfo(L);if(!k)throw Error("vd`"+L);var M=new fr;C[L]=M;k.isLoaded()?M.callback(null):(EU3(O,L,k,!!e,M),O.isModuleLoading(L)||x.push(L))}x.length>0&&(O.loadingModuleIds_.length===0?O.loadModules_(x):(O.requestedModuleIdsQueue_.push(x),fh(O)));return C},EU3=function(O,x,e,l,C){e.registerCallback(C.callback,C);
$cF(e,function(Q){C.errback(new XR3(x,Q))});
O.isModuleLoading(x)?l&&(qA2(O,x),fh(O)):l&&qA2(O,x)};
vY.prototype.loadModules_=function(O,x,e){var l=this;x||(this.consecutiveFailures_=0);var C=PKd(this,O);this.loadingModuleIds_=C;this.requestedLoadingModuleIds_=this.batchModeEnabled_?O:_.Bi(C);fh(this);if(C.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,C);O=this.JSC$10049_loader_;if(!O)throw Error("wd");if(Object.keys(this.JSC$11059_extraEdges_).length>0&&!O.supportsExtraEdges)throw Error("xd");e=(0,_.z8)(O.JSC$11046_loadModules,O,_.Bi(C),this.moduleInfoMap,{extraEdges:this.JSC$11059_extraEdges_,
forceReload:!!e,onError:function(Q,L){var k=l.requestedLoadingModuleIds_;Q=Q!=null?Q:void 0;l.consecutiveFailures_++;var M=_.Bi(C);l.requestedLoadingModuleIds_=k;C.forEach(_.b_(_.YW,l.requestedModuleIds_),l);Q==401?(Z3J(l,new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.UNAUTHORIZED,Q)),l.requestedModuleIdsQueue_.length=0):Q==410?(cUp(l,new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.OLD_CODE_GONE,Q)),IEL(l)):l.consecutiveFailures_>=3?(cUp(l,new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
Q,M,L)),IEL(l)):l.loadModules_(l.requestedLoadingModuleIds_,!0,Q==8001||!1)},
onTimeout:(0,_.z8)(this.handleLoadTimeout_,this)});(O=Math.pow(this.consecutiveFailures_,2)*5E3)?_.CV.setTimeout(e,O):e()}};
var PKd=function(O,x){x=x.filter(function(C){return O.moduleInfoMap[C].isLoaded()?(_.CV.setTimeout(function(){return Error("yd`"+C)},0),!1):!0});
for(var e=[],l=0;l<x.length;l++)e=e.concat(Vxp(O,x[l]));zsn(e);return!O.batchModeEnabled_&&e.length>1?(x=e.shift(),O.requestedModuleIdsQueue_=e.map(function(C){return[C]}).concat(O.requestedModuleIdsQueue_),[x]):e},Vxp=function(O,x){var e=_.HX.createSet(O.requestedModuleIds_),l=[];
e[x]||l.push(x);x=[x];for(var C=0;C<x.length;C++)for(var Q=O.getModuleInfo(x[C]).deps_,L=Q.length-1;L>=0;L--){var k=Q[L];O.getModuleInfo(k).isLoaded()||e[k]||(l.push(k),x.push(k))}l.reverse();zsn(l);return l};
vY.prototype.JSC$11054_setLoaded=function(){if(this.JSC$11059_currentlyLoadingModule_){var O=this.JSC$11059_currentlyLoadingModule_.getId(),x=[];if(this.JSC$11059_extraEdges_[O]){for(var e=_.T(Object.keys(this.JSC$11059_extraEdges_[O])),l=e.next();!l.done;l=e.next()){l=l.value;var C=this.getModuleInfo(l);C&&!C.isLoaded()&&(this.removeExtraEdge(O,l),x.push(l))}this.loadMultiple(x)}this.isDisposed()||((x=this.moduleInfoMap[O].onLoad((0,_.z8)(this.getModuleContext,this)))&&x.length&&Z3J(this,new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,x[0])),_.YW(this.userInitiatedLoadingModuleIds_,O),_.YW(this.loadingModuleIds_,O),this.loadingModuleIds_.length===0&&IEL(this),this.lastInitialModuleId_&&O==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),fh(this),this.JSC$11059_currentlyLoadingModule_=null)}};
vY.prototype.isModuleLoading=function(O){if(_.ur(this.loadingModuleIds_,O))return!0;for(var x=0;x<this.requestedModuleIdsQueue_.length;x++)if(_.ur(this.requestedModuleIdsQueue_[x],O))return!0;return!1};
vY.prototype.load=function(O,x){return txR(this,[O],x)[O]};
vY.prototype.loadMultiple=function(O){return txR(this,O)};
var qA2=function(O,x){_.ur(O.userInitiatedLoadingModuleIds_,x)||O.userInitiatedLoadingModuleIds_.push(x)};
vY.prototype.beforeLoadModuleCode=function(O){var x=this;this.JSC$11059_currentlyLoadingModule_&&this.JSC$11059_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11054_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[O]&&pR2(this,this.moduleInfoMap[O].deps_||[],function(e){e.module_=new d1;_.YW(x.loadingModuleIds_,e.getId())},function(e){return!e.isLoaded()});
this.JSC$11059_currentlyLoadingModule_=this.getModuleInfo(O)};
vY.prototype.handleLoadTimeout_=function(){cUp(this,new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.TIMEOUT));IEL(this)};
var cUp=function(O,x){O.requestedLoadingModuleIds_.length>1?O.requestedModuleIdsQueue_=O.requestedLoadingModuleIds_.map(function(e){return[e]}).concat(O.requestedModuleIdsQueue_):Z3J(O,x)},Z3J=function(O,x){var e=O.requestedLoadingModuleIds_;
O.loadingModuleIds_.length=0;for(var l=[],C=0;C<O.requestedModuleIdsQueue_.length;C++){var Q=O.requestedModuleIdsQueue_[C].filter(function(M){var G=Vxp(this,M);return Ct(e,function(X){return _.ur(G,X)})},O);
_.fV(l,Q)}for(C=0;C<e.length;C++)_.m$L(l,e[C]);for(C=0;C<l.length;C++){for(Q=0;Q<O.requestedModuleIdsQueue_.length;Q++)_.YW(O.requestedModuleIdsQueue_[Q],l[C]);_.YW(O.userInitiatedLoadingModuleIds_,l[C])}if(C=O.JSC$11059_callbackMap_.error)for(Q=0;Q<C.length;Q++)for(var L=C[Q],k=0;k<l.length;k++)L("error",l[k],x);for(l=0;l<e.length;l++)if(O.moduleInfoMap[e[l]])O.moduleInfoMap[e[l]].onError(x);O.requestedLoadingModuleIds_.length=0;fh(O)},IEL=function(O){for(;O.requestedModuleIdsQueue_.length;){var x=
O.requestedModuleIdsQueue_.shift().filter(function(e){return!this.getModuleInfo(e).isLoaded()},O);
if(x.length>0){O.loadModules_(x);return}}fh(O)};
vY.prototype.registerCallback=function(O,x){Array.isArray(O)||(O=[O]);for(var e=0;e<O.length;e++){var l=O[e],C=x,Q=this.JSC$11059_callbackMap_;Q[l]||(Q[l]=[]);Q[l].push(C)}};
vY.prototype.executeCallbacks_=function(O){for(var x=this.JSC$11059_callbackMap_[O],e=0;x&&e<x.length;e++)x[e](O)};
var pR2=function(O,x,e,l,C){l=l===void 0?function(){return!0}:l;
C=C===void 0?{}:C;x=_.T(x);for(var Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var L=O.getModuleInfo(Q);!C[Q]&&l(L)&&(C[Q]=!0,pR2(O,L.deps_||[],e,l,C),e(L))}};
vY.prototype.dispose=function(){_.k8(_.HX.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11059_callbackMap_={};this.isDisposed_=!0};
vY.prototype.isDisposed=function(){return this.isDisposed_};
_.nf=function(){return new vY};var RrJ=[5E3,2E4],Uwp=function(){this.JSC$10049_loader_=null;this.JSC$11067_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11067_queue_=[];this.JSC$11067_extraEdges_=Object.create(null);this.JSC$11067_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.c(Uwp,Gud);_.b=Uwp.prototype;_.b.setAllModuleInfoString=function(){this.JSC$11067_currentlyLoadingModule_&&this.JSC$11067_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11054_setLoaded()};
_.b.getModuleInfo=function(O){var x=this.JSC$11067_moduleInfoMap_[O];x||(x=new nh([],O),this.JSC$11067_moduleInfoMap_[O]=x);return x};
_.b.addExtraEdge=function(O,x){this.getModuleInfo(O).isLoaded()?this.load(x):(this.JSC$11067_extraEdges_[O]||(this.JSC$11067_extraEdges_[O]={}),this.JSC$11067_extraEdges_[O][x]=!0)};
_.b.removeExtraEdge=function(O,x){if(this.JSC$11067_extraEdges_[O]){delete this.JSC$11067_extraEdges_[O][x];for(var e in this.JSC$11067_extraEdges_[O])return;delete this.JSC$11067_extraEdges_[O]}};
_.b.isModuleLoading=function(O){return!!this.loadingModules_[O]};
_.b.load=function(O){aET(this,[O]);return mwN(this,O)};
_.b.loadMultiple=function(O){var x=this,e=Object.create(null),l=[];O.forEach(function(C){e[C]||(e[C]=mwN(x,C),l.push(C))});
aET(this,l);return e};
_.b.beforeLoadModuleCode=function(O){var x;((x=this.JSC$11067_currentlyLoadingModule_)==null?void 0:x.getId())==="synthetic_module_overhead"&&this.JSC$11054_setLoaded();var e,l;sFL(this,(l=(e=this.JSC$11067_moduleInfoMap_[O])==null?void 0:e.deps_)!=null?l:[],function(C){C.module_=new d1},function(C){return!C.isLoaded()});
this.JSC$11067_currentlyLoadingModule_=this.getModuleInfo(O)};
_.b.JSC$11054_setLoaded=function(){if(this.JSC$11067_currentlyLoadingModule_){var O=this.JSC$11067_currentlyLoadingModule_.getId(),x=[];if(this.JSC$11067_extraEdges_[O]){for(var e=_.T(Object.keys(this.JSC$11067_extraEdges_[O])),l=e.next();!l.done;l=e.next())l=l.value,this.getModuleInfo(l).isLoaded()||(this.removeExtraEdge(O,l),x.push(l));this.loadMultiple(x)}this.JSC$11067_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11067_currentlyLoadingModule_=null;(!this.isModuleLoading(O)&&/^sy[0-9a-z]{0,4}$/.test(O)||O==="synthetic_module_overhead")&&delete this.JSC$11067_moduleInfoMap_[O];this.unsetModulesAsLoading(O)}};
_.b.setModulesAsLoading=function(){var O=this;_.vw.apply(0,arguments).forEach(function(x){O.loadingModules_[x]=!0})};
_.b.unsetModulesAsLoading=function(){var O=this;_.vw.apply(0,arguments).forEach(function(x){delete O.loadingModules_[x]})};
var mwN=function(O,x){return new _.If(function(e,l){var C=O.getModuleInfo(x);C.isLoaded()?e(null):(C.registerCallback(function(){e(null)}),$cF(C,function(Q){var L="Error loading "+x+": "+Q;
Q instanceof YQ.ModuleLoadFailure&&Q.url&&(L=L+", requested url: "+Q.url.toString());l(Error(L))}))})},aET=function(O,x){x=x.filter(function(e){return!O.isModuleLoading(e)&&!O.getModuleInfo(e).isLoaded()});
x.length>0&&(O.setModulesAsLoading.apply(O,_.Kx(x)),O.JSC$11067_queue_.push(x),WCD(O))},WCD=function(O){for(var x={};O.activeLoads_<Infinity&&O.JSC$11067_queue_.length>0;x={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})x.ids$jscomp$36=O.JSC$11067_queue_.shift().filter(function(e){return!O.getModuleInfo(e).isLoaded()}),x.ids$jscomp$36.length>0&&(O.activeLoads_++,x.finishLoad=function(e){return function(){O.activeLoads_--;
WCD(O);e.finishLoad=function(){}}}(x),_.cF(x.ids$jscomp$36.map(function(e){return mwN(O,e)})).then(function(e){return function(){(0,e.finishLoad)()}}(x)),x.attempt$jscomp$6=0,x.load$jscomp$1=function(e){return function(){if(Object.keys(O.JSC$11067_extraEdges_).length>0&&!O.JSC$10049_loader_.supportsExtraEdges)throw Error("xd");
O.JSC$10049_loader_.JSC$11046_loadModules(e.ids$jscomp$36,O.JSC$11067_moduleInfoMap_,{extraEdges:O.JSC$11067_extraEdges_,onError:function(l,C){var Q=RrJ[e.attempt$jscomp$6++];Q!==void 0?setTimeout(function(){(0,e.load$jscomp$1)()},Q):(O.unsetModulesAsLoading.apply(O,_.Kx(e.ids$jscomp$36)),(0,e.finishLoad)(),e.ids$jscomp$36.forEach(function(L){L=O.getModuleInfo(L);
if(!L.isLoaded())L.onError(new YQ.ModuleLoadFailure(YQ.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,l,e.ids$jscomp$36,C))}))}})}}(x),(0,x.load$jscomp$1)())},sFL=function(O,x,e,l,C){l=l===void 0?function(){return!0}:l;
C=C===void 0?{}:C;x=_.T(x);for(var Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var L=O.getModuleInfo(Q);!C[Q]&&l(L)&&(C[Q]=!0,sFL(O,L.deps_||[],e,l,C),e(L))}};var hrd=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Tjm=Symbol("Ad");window.JSCompiler_renameProperty=function(O){return O};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var zr4=!hrd||HTMLElement.es5Shimmed||_.CV.Reflect===void 0||_.CV.customElements===void 0||_.CV.customElements.polyfillWrapFlushCallback||!1,rUF,vrL=function(){var O=HTMLElement;if(zr4)return O;if(rUF!==void 0)return rUF;var x=_.CV.Reflect,e=function(){return x.construct(O,[],this.constructor)};
e.prototype=O.prototype;e.prototype.constructor=e;e.es5Shimmed=!0;Object.setPrototypeOf(e,O);return rUF=e},H3z=!1;zr4||H3z||(H3z=!0,_.CV.HTMLElement=vrL());/*

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 DS$=/(url\()([^)]*)(\))/g,Ai7=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,MKN,Z9;var iD=!window.ShadyDOM||!window.ShadyDOM.inUse,KCD=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),dw2=!window.customElements.polyfillWrapFlushCallback,nUT;if(nUT=iD&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var uod=new CSSStyleSheet;uod.replaceSync("");var YAD=document.createElement("div");YAD.attachShadow({mode:"open"});YAD.shadowRoot.adoptedStyleSheets=[uod];nUT=YAD.shadowRoot.adoptedStyleSheets[0]===uod}catch(O){nUT=!1}
var BON=nUT,vUD=window.Polymer&&window.Polymer.rootPath||Fz7(document.baseURI||window.location.href),WD=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Pgr=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,lO=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,fE3=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,$g=window.Polymer&&window.Polymer.legacyOptimizations||!1,el=window.Polymer&&window.Polymer.legacyWarnings||!1,JUL=window.Polymer&&window.Polymer.syncInitialRender||
!1,zQ=window.Polymer&&window.Polymer.legacyUndefined||!1,wRL=window.Polymer&&window.Polymer.orderedComputed||!1,Jn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,w1=window.Polymer&&window.Polymer.fastDomIf||!1,SD=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,SAD=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,jFL=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var jD={},NOd={},HD=function(){return HTMLElement.apply(this,arguments)||this};
_.c(HD,HTMLElement);HD.import=function(O,x){return O?(O=jD[O]||NOd[O.toLowerCase()])&&x?O.querySelector(x):O:null};
HD.prototype.attributeChangedCallback=function(O,x,e){x!==e&&this.register()};
HD.prototype.register=function(O){if(O=O||this.id){if(lO&&(jD[O]||NOd[O.toLowerCase()])!==void 0)throw jD[O]=NOd[O.toLowerCase()]=null,Error("Bd`"+O);this.id=O;jD[O]=NOd[O.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Dy.Object.defineProperties(HD.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var O=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;O=_.EZ(this.getAttribute("assetpath")||"",O.baseURI);this.__assetpath=Fz7(O)}return this.__assetpath}}});
_.Dy.Object.defineProperties(HD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
HD["import"]=HD.import;HD.prototype.modules=jD;customElements.define("dom-module",HD);var gUN=0,oVW=0,ta=[],$wR=0,Xbr=!1,i3d=document.createTextNode(""),OsJ,j2;(new window.MutationObserver(yiV)).observe(i3d,{characterData:!0});_.NC={after:function(O){return{run:function(x){return window.setTimeout(x,O)},
cancel:function(x){window.clearTimeout(x)}}},
run:function(O,x){return window.setTimeout(O,x)},
cancel:function(O){window.clearTimeout(O)}};
_.yG={run:function(O){return window.requestAnimationFrame(O)},
cancel:function(O){window.cancelAnimationFrame(O)}};
OsJ={run:function(O){return window.requestIdleCallback?window.requestIdleCallback(O):window.setTimeout(O,16)},
cancel:function(O){window.cancelIdleCallback?window.cancelIdleCallback(O):window.clearTimeout(O)}};
j2={run:function(O){Xbr||(Xbr=!0,i3d.textContent=$wR++);ta.push(O);return gUN++},
cancel:function(O){var x=O-oVW;if(x>=0){if(!ta[x])throw Error("Cd`"+O);ta[x]=null}}};var xQT=0,g1=function(O){var x=O.__mixinApplications;x||(x=new WeakMap,O.__mixinApplications=x);var e=xQT++;return function(l){var C=l.__mixinSet;if(C&&C[e])return l;var Q=x,L=Q.get(l);L||(L=O(l),Q.set(l,L),l=Object.create(L.__mixinSet||C||null),l[e]=!0,L.__mixinSet=l);return L}};_.sZ=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(O){return ShadyDOM.patch(O)}:function(O){return O};var epd=g1(function(O){var x=function(){var e=O.call(this)||this;e.__dataEnabled=!1;e.__dataReady=!1;e.__dataInvalid=!1;e.__data={};e.__dataPending=null;e.__dataOld=null;e.__dataInstanceProps=null;e.__dataCounter=0;e.__serializing=!1;e._initializeProperties();return e};
_.c(x,O);x.createProperties=function(e){var l=this.prototype,C;for(C in e)C in l||l._createPropertyAccessor(C)};
x.attributeNameForProperty=function(e){return e.toLowerCase()};
x.typeForProperty=function(){};
x.prototype._createPropertyAccessor=function(e,l){this._addPropertyToAttributeMap(e);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,l))};
x.prototype._addPropertyToAttributeMap=function(e){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var l=this.__dataAttributes[e];l||(l=this.constructor.attributeNameForProperty(e),this.__dataAttributes[l]=e);return l};
x.prototype._definePropertyAccessor=function(e,l){Object.defineProperty(this,e,{get:function(){return this.__data[e]},
set:l?function(){}:function(C){this._setPendingProperty(e,C,!0)&&this._invalidateProperties()}})};
x.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
x.prototype._initializeProperties=function(){for(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])};
x.prototype._initializeInstanceProperties=function(e){Object.assign(this,e)};
x.prototype._setProperty=function(e,l){this._setPendingProperty(e,l)&&this._invalidateProperties()};
x.prototype._getProperty=function(e){return this.__data[e]};
x.prototype._setPendingProperty=function(e,l){var C=this.__data[e],Q=this._shouldPropertyChange(e,l,C);Q&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=C),this.__data[e]=l,this.__dataPending[e]=l);return Q};
x.prototype._isPropertyPending=function(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))};
x.prototype._invalidateProperties=function(){var e=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,j2.run(function(){e.__dataInvalid&&(e.__dataInvalid=!1,e._flushProperties())}))};
x.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
x.prototype._flushProperties=function(){this.__dataCounter++;var e=this.__data,l=this.__dataPending,C=this.__dataOld;this._shouldPropertiesChange(e,l,C)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(e,l,C));this.__dataCounter--};
x.prototype._shouldPropertiesChange=function(e,l){return!!l};
x.prototype._propertiesChanged=function(){};
x.prototype._shouldPropertyChange=function(e,l,C){return C!==l&&(C===C||l===l)};
x.prototype.attributeChangedCallback=function(e,l,C,Q){l!==C&&this._attributeToProperty(e,C);O.prototype.attributeChangedCallback&&O.prototype.attributeChangedCallback.call(this,e,l,C,Q)};
x.prototype._attributeToProperty=function(e,l,C){if(!this.__serializing){var Q=this.__dataAttributes;e=Q&&Q[e]||e;this[e]=this._deserializeValue(l,C||this.constructor.typeForProperty(e))}};
x.prototype._propertyToAttribute=function(e,l,C){this.__serializing=!0;C=arguments.length<3?this[e]:C;this._valueToNodeAttribute(this,C,l||this.constructor.attributeNameForProperty(e));this.__serializing=!1};
x.prototype._valueToNodeAttribute=function(e,l,C){l=this._serializeValue(l);if(C==="class"||C==="name"||C==="slot")e=(0,_.sZ)(e);l===void 0?e.removeAttribute(C):e.setAttribute(C,l===""&&window.trustedTypes?window.trustedTypes.emptyScript:l)};
x.prototype._serializeValue=function(e){switch(typeof e){case "boolean":return e?"":void 0;default:return e!=null?e.toString():void 0}};
x.prototype._deserializeValue=function(e,l){switch(l){case Boolean:return e!==null;case Number:return Number(e);default:return e}};
return x});var lC$=0,ZMN=[];var CH4=g1(function(O){function x(Q){Q=Object.getPrototypeOf(Q);return Q.prototype instanceof C?Q:null}
function e(Q){if(!Q.hasOwnProperty("__ownProperties")){var L=null;if(Q.hasOwnProperty("properties")){var k=Q.properties;if(k){L={};for(var M in k){var G=k[M];L[M]=typeof G==="function"?{type:G}:G}}}Q.__ownProperties=L}return Q.__ownProperties}
var l=epd(O),C=function(){return l.apply(this,arguments)||this};
_.c(C,l);C.finalize=function(){if(!this.hasOwnProperty("__finalized")){var Q=x(this);Q&&Q.finalize();this.__finalized=!0;this._finalizeClass()}};
C._finalizeClass=function(){var Q=e(this);Q&&this.createProperties(Q)};
C.typeForProperty=function(Q){return(Q=this._properties[Q])&&Q.type};
C.prototype._initializeProperties=function(){lC$++;this.constructor.finalize();l.prototype._initializeProperties.call(this)};
C.prototype.connectedCallback=function(){l.prototype.connectedCallback&&l.prototype.connectedCallback.call(this);this._enableProperties()};
C.prototype.disconnectedCallback=function(){l.prototype.disconnectedCallback&&l.prototype.disconnectedCallback.call(this)};
_.Dy.Object.defineProperties(C,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var Q=this;if(!this.hasOwnProperty("__observedAttributes")){EVr(this.prototype);var L=this._properties;this.__observedAttributes=L?Object.keys(L).map(function(k){return Q.prototype._addPropertyToAttributeMap(k)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var Q=x(this);this.__properties=Object.assign({},Q&&Q._properties,e(this))}return this.__properties}}});
return C});var tKs={},qMs=/-[a-z]/g,Pc7=/([A-Z])/g;for(var QH4={},bs2=HTMLElement.prototype;bs2;){for(var Tqd=Object.getOwnPropertyNames(bs2),LSD=0;LSD<Tqd.length;LSD++)QH4[Tqd[LSD]]=!0;bs2=Object.getPrototypeOf(bs2)}var k1J=window.trustedTypes?function(O){return trustedTypes.isHTML(O)||trustedTypes.isScript(O)||trustedTypes.isScriptURL(O)}:function(){return!1},AYF=g1(function(O){var x=epd(O);
O=function(){return x.apply(this,arguments)||this};
_.c(O,x);O.createPropertiesForAttributes=function(){for(var e=this.observedAttributes,l=0;l<e.length;l++)this.prototype._createPropertyAccessor(q3(e[l]))};
O.attributeNameForProperty=function(e){return PD(e)};
O.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);x.prototype._initializeProperties.call(this)};
O.prototype._initializeProtoProperties=function(e){for(var l in e)this._setProperty(l,e[l])};
O.prototype._ensureAttribute=function(e,l){this.hasAttribute(e)||this._valueToNodeAttribute(this,l,e)};
O.prototype._serializeValue=function(e){switch(typeof e){case "object":if(e instanceof Date)return e.toString();if(e){if(k1J(e))return e;try{return JSON.stringify(e)}catch(l){return""}}default:return x.prototype._serializeValue.call(this,e)}};
O.prototype._deserializeValue=function(e,l){switch(l){case Object:try{var C=JSON.parse(e)}catch(Q){C=e}break;case Array:try{C=JSON.parse(e)}catch(Q){C=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:C=isNaN(e)?String(e):Number(e);C=new Date(C);break;default:C=x.prototype._deserializeValue.call(this,e,l)}return C};
O.prototype._definePropertyAccessor=function(e,l){if(!QH4[e]){var C=this[e];C!==void 0&&(this.__data?this._setPendingProperty(e,C):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[e]=C))}x.prototype._definePropertyAccessor.call(this,e,l)};
O.prototype._hasAccessor=function(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]};
O.prototype._isPropertyPending=function(e){return!!(this.__dataPending&&e in this.__dataPending)};
return O});var MUk={"dom-if":!0,"dom-repeat":!0},DQL=!1,G13=!1,FSd=function(){var O=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(x){return x}});
return function(x,e,l){e=e.getAttribute(l);O&&l.startsWith("on-")?x.setAttribute(l,O.createScript(e,l)):x.setAttribute(l,e)}}(),XZF=g1(function(O){var x=function(){return O.apply(this,arguments)||this};
_.c(x,O);x._parseTemplate=function(e,l){if(!e._templateInfo){var C=e._templateInfo={};C.nodeInfoList=[];C.nestedTemplate=!!l;C.stripWhiteSpace=l&&l.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace");this._parseTemplateContent(e,C,{parent:null})}return e._templateInfo};
x._parseTemplateContent=function(e,l,C){return this._parseTemplateNode(e.content,l,C)};
x._parseTemplateNode=function(e,l,C){var Q=!1;e.localName!="template"||e.hasAttribute("preserve-content")?e.localName==="slot"&&(l.hasInsertionPoint=!0):Q=this._parseTemplateNestedTemplate(e,l,C)||Q;if(!DQL){DQL=!0;var L=document.createElement("textarea");L.placeholder="a";G13=L.placeholder===L.textContent}G13&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null);e.firstChild&&this._parseTemplateChildNodes(e,l,C);e.hasAttributes&&e.hasAttributes()&&(Q=this._parseTemplateNodeAttributes(e,
l,C)||Q);return Q||C.noted};
x._parseTemplateChildNodes=function(e,l,C){if(e.localName!=="script"&&e.localName!=="style")for(var Q=e.firstChild,L=0,k;Q;Q=k){if(Q.localName=="template"){var M=Q.getAttribute("is");if(M&&MUk[M])for(k=Q,k.removeAttribute("is"),Q=k.ownerDocument.createElement(M),k.parentNode.replaceChild(Q,k),Q.appendChild(k);k.attributes.length;)M=k.attributes[0].name,FSd(Q,k,M),k.removeAttribute(M)}k=Q.nextSibling;if(Q.nodeType===Node.TEXT_NODE){for(M=k;M&&M.nodeType===Node.TEXT_NODE;)Q.textContent+=M.textContent,
k=M.nextSibling,e.removeChild(M),M=k;if(l.stripWhiteSpace&&!Q.textContent.trim()){e.removeChild(Q);continue}}M={parentIndex:L,parentInfo:C};this._parseTemplateNode(Q,l,M)&&(M.infoIndex=l.nodeInfoList.push(M)-1);Q.parentNode&&L++}};
x._parseTemplateNestedTemplate=function(e,l,C){l=this._parseTemplate(e,l);(l.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content);C.templateInfo=l;return!0};
x._parseTemplateNodeAttributes=function(e,l,C){for(var Q=!1,L=Array.from(e.attributes),k=L.length-1,M;M=L[k];k--)Q=this._parseTemplateNodeAttribute(e,l,C,M.name,M.value)||Q;return Q};
x._parseTemplateNodeAttribute=function(e,l,C,Q,L){return Q.slice(0,3)==="on-"?(e.removeAttribute(Q),C.events=C.events||[],C.events.push({name:Q.slice(3),value:L}),!0):Q==="id"?(C.id=L,!0):!1};
x._contentForTemplate=function(e){var l=e._templateInfo;return l&&l.content||e.content};
x.prototype._stampTemplate=function(e,l){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);l=l||this.constructor._parseTemplate(e);var C=l.nodeInfoList;e=document.importNode(l.content||e.content,!0);e.__noInsertionPoint=!l.hasInsertionPoint;var Q=e.nodeList=Array(C.length);e.$={};for(var L=0,k=C.length,M=void 0;L<k&&(M=C[L]);L++){var G=Q[L]=ciw(e,M);M.id&&(e.$[M.id]=G);var X=G,y=M,Z=l;y.templateInfo&&(X._templateInfo=y.templateInfo,X._parentTemplateInfo=
Z);if(M.events&&M.events.length)for(X=0,y=M.events,Z=void 0;X<y.length&&(Z=y[X]);X++)this._addMethodEventListenerToNode(G,Z.name,Z.value,this)}return e};
x.prototype._addMethodEventListenerToNode=function(e,l,C,Q){C=Iwr(Q||e,C);this._addEventListenerToNode(e,l,C);return C};
x.prototype._addEventListenerToNode=function(e,l,C){e.addEventListener(l,C)};
x.prototype._removeEventListenerFromNode=function(e,l,C){e.removeEventListener(l,C)};
return x});var ay=0,ha=[],oX4={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},yYD=/[A-Z]/,ZsN=function(O,x,e,l,C){var Q=C?Iy(O):O;if(x=x[Q])for(Q=0;Q<x.length;Q++){var L=x[Q];if(L.info.lastRun!==ay&&(!C||mS$(O,L.trigger))){L.info.lastRun=ay;L=L.info;for(var k=e,M=l,G=0,X=k.length-1,y=-1;G<=X;){var Z=G+X>>1,E=M.get(k[Z].methodInfo)-M.get(L.methodInfo);if(E<0)G=Z+1;else if(E>0)X=Z-1;else{y=Z;break}}y<
0&&(y=X+1);k.splice(y,0,L)}}},Jii=[],EX4=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"),iY=g1(function(O){var x=XZF(AYF(O));
O=function(){var e=x.call(this)||this;e.__isPropertyEffectsClient=!0;return e};
_.c(O,x);O.prototype._initializeProperties=function(){x.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};
O.prototype._registerHost=function(){if($s.length){var e=$s[$s.length-1];e._enqueueClient(this);this.__dataHost=e}};
O.prototype._initializeProtoProperties=function(e){this.__data=Object.create(e);this.__dataPending=Object.create(e);this.__dataOld={}};
O.prototype._initializeInstanceProperties=function(e){var l=this.__readOnly,C;for(C in e)l&&l[C]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[C]=this.__dataPending[C]=e[C])};
O.prototype._addPropertyEffect=function(e,l,C){this._createPropertyAccessor(e,l=="__readOnly");var Q=awL(this,l,!0)[e];Q||(Q=this[l][e]=[]);Q.push(C)};
O.prototype._removePropertyEffect=function(e,l,C){e=awL(this,l,!0)[e];C=e.indexOf(C);C>=0&&e.splice(C,1)};
O.prototype._hasPropertyEffect=function(e,l){l=this[l];return!(!l||!l[e])};
O.prototype._hasReadOnlyEffect=function(e){return this._hasPropertyEffect(e,"__readOnly")};
O.prototype._hasNotifyEffect=function(e){return this._hasPropertyEffect(e,"__notifyEffects")};
O.prototype._hasReflectEffect=function(e){return this._hasPropertyEffect(e,"__reflectEffects")};
O.prototype._hasComputedEffect=function(e){return this._hasPropertyEffect(e,"__computeEffects")};
O.prototype._setPendingPropertyOrPath=function(e,l,C,Q){if(Q||Iy(Array.isArray(e)?e[0]:e)!==e){if(!Q&&(Q=UZ(this,e),e=USr(this,e,l),!e||!x.prototype._shouldPropertyChange.call(this,e,l,Q)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(e,l,C)){if(C=this.__dataLinkedPaths)for(var L in C)Q=C[L],V5(L,e)?(Q=pw(L,Q,e),this._setPendingPropertyOrPath(Q,l,!0,!0)):V5(Q,e)&&(Q=pw(Q,L,e),this._setPendingPropertyOrPath(Q,l,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,
l,C);this[e]=l}return!1};
O.prototype._setUnmanagedPropertyToNode=function(e,l,C){if(C!==e[l]||typeof C=="object")l==="className"&&(e=(0,_.sZ)(e)),e[l]=C};
O.prototype._setPendingProperty=function(e,l,C){var Q=this.__dataHasPaths&&cD(e);if(this._shouldPropertyChange(e,l,(Q?this.__dataTemp:this.__data)[e])){this.__dataPending||(this.__dataPending={},this.__dataOld={});e in this.__dataOld||(this.__dataOld[e]=this.__data[e]);Q?this.__dataTemp[e]=l:this.__data[e]=l;this.__dataPending[e]=l;if(Q||this.__notifyEffects&&this.__notifyEffects[e])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=C;return!0}return!1};
O.prototype._setProperty=function(e,l){this._setPendingProperty(e,l,!0)&&this._invalidateProperties()};
O.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
O.prototype._enqueueClient=function(e){this.__dataPendingClients=this.__dataPendingClients||[];e!==this&&this.__dataPendingClients.push(e)};
O.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
O.prototype.__enableOrFlushClients=function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var l=0;l<e.length;l++){var C=e[l];C.__dataEnabled?C.__dataPending&&C._flushProperties():C._enableProperties()}}};
O.prototype._readyClients=function(){this.__enableOrFlushClients()};
O.prototype.setProperties=function(e,l){for(var C in e)!l&&this.__readOnly&&this.__readOnly[C]||this._setPendingPropertyOrPath(C,e[C],!0);this._invalidateProperties()};
O.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
O.prototype._propertiesChanged=function(e,l,C){e=this.__dataHasPaths;this.__dataHasPaths=!1;var Q;if(Q=this.__computeEffects)if(wRL){ay++;var L=HMV(this),k=[],M;for(M in l)ZsN(M,Q,k,L,e);for(;M=k.shift();)dSV(this,"",l,C,M)&&ZsN(M.methodInfo,Q,k,L,e);Object.assign(C,this.__dataOld);Object.assign(l,this.__dataPending);this.__dataPending=null}else for(L=l;m1(this,Q,L,C,e);)Object.assign(C,this.__dataOld),Object.assign(l,this.__dataPending),L=this.__dataPending,this.__dataPending=null;Q=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(l,C,e);this._flushClients();m1(this,this.__reflectEffects,l,C,e);m1(this,this.__observeEffects,l,C,e);if(Q){L=this.__notifyEffects;k=ay++;for(var G in Q)if(Q[G]){if(M=L){var X=L;M=k;var y=G,Z=l,E=C,P=e,U=!1,W=P?Iy(y):y;if(X=X[W]){W=0;for(var z=X.length,r=void 0;W<z&&(r=X[W]);W++)r.info&&r.info.lastRun===M||P&&!mS$(y,r.trigger)||(r.info&&(r.info.lastRun=M),r.fn(this,y,Z,E,r.info,P,void 0),U=!0)}M=U}if(M)var f=!0;else{if(M=e)M=G,y=l,Z=Iy(M),Z!==
M?(Z=PD(Z)+"-changed",Wzr(this,Z,y[M],M),M=!0):M=!1;M&&(f=!0)}}var u;f&&(u=this.__dataHost)&&u._invalidateProperties&&u._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
O.prototype._propagatePropertyChanges=function(e,l,C){this.__propagateEffects&&m1(this,this.__propagateEffects,e,l,C);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,l,C)};
O.prototype._runEffectsForTemplate=function(e,l,C,Q){var L=this,k=function(M,G){m1(L,e.propertyEffects,M,C,G,e.nodeList);for(var X=e.firstChild;X;X=X.nextSibling)L._runEffectsForTemplate(X,M,C,G)};
e.runEffects?e.runEffects(k,l,Q):k(l,Q)};
O.prototype.linkPaths=function(e,l){e=Ry(e);l=Ry(l);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[e]=l};
O.prototype.unlinkPaths=function(e){e=Ry(e);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]};
O.prototype.notifySplices=function(e,l){var C={path:""};e=UZ(this,e,C);NjV(this,e,C.path,l)};
O.prototype.get=function(e,l){return UZ(l||this,e)};
O.prototype.set=function(e,l,C){C?USr(C,e,l):this.__readOnly&&this.__readOnly[e]||this._setPendingPropertyOrPath(e,l,!0)&&this._invalidateProperties()};
O.prototype.push=function(e){var l=_.vw.apply(1,arguments),C={path:""},Q=UZ(this,e,C),L=Q.length,k=Q.push.apply(Q,_.Kx(l));l.length&&ra(this,Q,C.path,L,l.length,[]);return k};
O.prototype.pop=function(e){var l={path:""};e=UZ(this,e,l);var C=!!e.length,Q=e.pop();C&&ra(this,e,l.path,e.length,0,[Q]);return Q};
O.prototype.splice=function(e,l,C){var Q=_.vw.apply(3,arguments),L={path:""},k=UZ(this,e,L);l<0?l=k.length-Math.floor(-l):l&&(l=Math.floor(l));var M=arguments.length===2?k.splice(l):k.splice.apply(k,[l,C].concat(_.Kx(Q)));(Q.length||M.length)&&ra(this,k,L.path,l,Q.length,M);return M};
O.prototype.shift=function(e){var l={path:""};e=UZ(this,e,l);var C=!!e.length,Q=e.shift();C&&ra(this,e,l.path,0,0,[Q]);return Q};
O.prototype.unshift=function(e){var l=_.vw.apply(1,arguments),C={path:""},Q=UZ(this,e,C),L=Q.unshift.apply(Q,_.Kx(l));l.length&&ra(this,Q,C.path,0,l.length,[]);return L};
O.prototype.notifyPath=function(e,l){if(arguments.length==1){var C={path:""};l=UZ(this,e,C);C=C.path}else C=Array.isArray(e)?Ry(e):e;this._setPendingPropertyOrPath(C,l,!0,!0)&&this._invalidateProperties()};
O.prototype._createReadOnlyProperty=function(e,l){this._addPropertyEffect(e,"__readOnly");l&&(this["_set"+(e[0].toUpperCase()+e.substring(1))]=function(C){this._setProperty(e,C)})};
O.prototype._createPropertyObserver=function(e,l,C){var Q={property:e,method:l,dynamicFn:!!C};this._addPropertyEffect(e,"__observeEffects",{fn:s$W,info:Q,trigger:{name:e}});C&&this._addPropertyEffect(l,"__observeEffects",{fn:s$W,info:Q,trigger:{name:l}})};
O.prototype._createMethodObserver=function(e,l){var C=SML(e);if(!C)throw Error("Dd`"+e);vVW(this,C,"__observeEffects",Kzm,null,l)};
O.prototype._createNotifyingProperty=function(e){this._addPropertyEffect(e,"__notifyEffects",{fn:h2L,info:{eventName:PD(e)+"-changed",property:e}})};
O.prototype._createReflectedProperty=function(e){var l=this.constructor.attributeNameForProperty(e);l[0]==="-"?console.warn("Property "+e+" cannot be reflected to attribute "+l+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,"__reflectEffects",{fn:z2s,info:{attrName:l}})};
O.prototype._createComputedProperty=function(e,l,C){var Q=SML(l);if(!Q)throw Error("Ed`"+l);l=vVW(this,Q,"__computeEffects",dSV,e,C);awL(this,"__computeInfo")[e]=l};
O.prototype._marshalArgs=function(e,l,C){for(var Q=this.__data,L=[],k=0,M=e.length;k<M;k++){var G=e[k],X=G.name,y=G.structured,Z=G.wildcard,E=G.value;G.literal||(Z?(G=V5(X,l),y=j$r(Q,C,G?l:X),E={path:G?l:X,value:y,base:G?UZ(Q,X):y}):E=y?j$r(Q,C,X):Q[X]);if(zQ&&!this._overrideLegacyUndefined&&E===void 0&&e.length>1)return ha;L[k]=E}return L};
O.addPropertyEffect=function(e,l,C){this.prototype._addPropertyEffect(e,l,C)};
O.createPropertyObserver=function(e,l,C){this.prototype._createPropertyObserver(e,l,C)};
O.createMethodObserver=function(e,l){this.prototype._createMethodObserver(e,l)};
O.createNotifyingProperty=function(e){this.prototype._createNotifyingProperty(e)};
O.createReadOnlyProperty=function(e,l){this.prototype._createReadOnlyProperty(e,l)};
O.createReflectedProperty=function(e){this.prototype._createReflectedProperty(e)};
O.createComputedProperty=function(e,l,C){this.prototype._createComputedProperty(e,l,C)};
O.bindTemplate=function(e){return this.prototype._bindTemplate(e)};
O.prototype._bindTemplate=function(e,l){var C=this.constructor._parseTemplate(e),Q=this.__preBoundTemplateInfo==C;if(!Q)for(var L in C.propertyEffects)this._createPropertyAccessor(L);l?(C=Object.create(C),C.wasPreBound=Q,this.__templateInfo?(e=e._parentTemplateInfo||this.__templateInfo,l=e.lastChild,C.parent=e,e.lastChild=C,(C.previousSibling=l)?l.nextSibling=C:e.firstChild=C):this.__templateInfo=C):this.__preBoundTemplateInfo=C;return C};
O._addTemplatePropertyEffect=function(e,l,C){(e.hostProps=e.hostProps||{})[l]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[l]=e[l]||[]).push(C)};
O.prototype._stampTemplate=function(e,l){l=l||this._bindTemplate(e,!0);$s.push(this);e=x.prototype._stampTemplate.call(this,e,l);$s.pop();l.nodeList=e.nodeList;if(!l.wasPreBound)for(var C=l.childNodes=[],Q=e.firstChild;Q;Q=Q.nextSibling)C.push(Q);e.templateInfo=l;C=l.nodeList;Q=l.nodeInfoList;if(Q.length)for(var L=0;L<Q.length;L++){var k=C[L],M=Q[L].bindings;if(M)for(var G=0;G<M.length;G++){var X=M[G],y=k,Z=X;if(Z.isCompound){for(var E=y.__dataCompoundStorage||(y.__dataCompoundStorage={}),P=Z.parts,
U=Array(P.length),W=0;W<P.length;W++)U[W]=P[W].literal;P=Z.target;E[P]=U;Z.literal&&Z.kind=="property"&&(P==="className"&&(y=(0,_.sZ)(y)),y[P]=Z.literal)}Bjw(k,this,X)}k.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(l,this.__data,null,!1),this._flushClients());return e};
O.prototype._removeBoundDom=function(e){e=e.templateInfo;var l=e.previousSibling,C=e.nextSibling,Q=e.parent;l?l.nextSibling=C:Q&&(Q.firstChild=C);C?C.previousSibling=l:Q&&(Q.lastChild=l);e.nextSibling=e.previousSibling=null;e=e.childNodes;for(l=0;l<e.length;l++)C=e[l],(0,_.sZ)((0,_.sZ)(C).parentNode).removeChild(C)};
O._parseTemplateNode=function(e,l,C){var Q=x._parseTemplateNode.call(this,e,l,C);if(e.nodeType===Node.TEXT_NODE){var L=this._parseBindings(e.textContent,l);L&&(e.textContent=fwN(L)||" ",YMr(this,l,C,"text","textContent",L),Q=!0)}return Q};
O._parseTemplateNodeAttribute=function(e,l,C,Q,L){var k=this._parseBindings(L,l);if(k){L=Q;var M="property";yYD.test(Q)?M="attribute":Q[Q.length-1]=="$"&&(Q=Q.slice(0,-1),M="attribute");var G=fwN(k);G&&M=="attribute"&&(Q=="class"&&e.hasAttribute("class")&&(G+=" "+e.getAttribute(Q)),e.setAttribute(Q,G));M=="attribute"&&L=="disable-upgrade$"&&e.setAttribute(Q,"");e.localName==="input"&&L==="value"&&e.setAttribute(L,"");e.removeAttribute(L);M==="property"&&(Q=q3(Q));YMr(this,l,C,M,Q,k,G);return!0}return x._parseTemplateNodeAttribute.call(this,
e,l,C,Q,L)};
O._parseTemplateNestedTemplate=function(e,l,C){var Q=x._parseTemplateNestedTemplate.call(this,e,l,C),L=e.parentNode,k=C.templateInfo,M=L.localName==="dom-if",G=L.localName==="dom-repeat";Jn&&(M||G)&&(L.removeChild(e),C=C.parentInfo,C.templateInfo=k,C.noted=!0,Q=!1);e=k.hostProps;if(w1&&M)e&&(l.hostProps=Object.assign(l.hostProps||{},e),Jn||(C.parentInfo.noted=!0));else for(var X in e)YMr(this,l,C,"property","_host_"+X,[{mode:"{",source:X,dependencies:[X],hostProp:!0}]);return Q};
O._parseBindings=function(e,l){for(var C=[],Q=0,L;(L=EX4.exec(e))!==null;){L.index>Q&&C.push({literal:e.slice(Q,L.index)});Q=L[1][0];var k=!!L[2];L=L[3].trim();var M=!1,G="",X=-1;Q=="{"&&(X=L.indexOf("::"))>0&&(G=L.substring(X+2),L=L.substring(0,X),M=!0);X=SML(L);var y=[];if(X){var Z=X,E=Z.args;Z=Z.methodName;for(var P=0;P<E.length;P++){var U=E[P];U.literal||y.push(U)}if((E=l.dynamicFns)&&E[Z]||X.static)y.push(Z),X.dynamicFn=!0}else y.push(L);C.push({source:L,mode:Q,negate:k,customEvent:M,signature:X,
dependencies:y,event:G});Q=EX4.lastIndex}Q&&Q<e.length&&(e=e.substring(Q))&&C.push({literal:e});return C.length?C:null};
O._evaluateBinding=function(e,l,C,Q,L,k){e=l.signature?Kzm(e,C,Q,L,l.signature):C!=l.source?UZ(e,l.source):k&&cD(C)?UZ(e,C):e.__data[C];l.negate&&(e=!e);return e};
_.Dy.Object.defineProperties(O.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return oX4}}});
return O}),$s=[];var tU4=window.ShadyCSS&&window.ShadyCSS.cssBuild,ON=g1(function(O){function x(l,C,Q,L){if(!tU4){for(var k=C.content.querySelectorAll("style"),M=OIN(C),G=xoL(Q),X=C.content.firstElementChild,y=0;y<G.length;y++){var Z=G[y];Z.textContent=l._processStyleText(Z.textContent,L);C.content.insertBefore(Z,X)}for(X=G=0;X<M.length;X++)y=M[X],Z=k[G],Z!==y?(y=y.cloneNode(!0),Z.parentNode.insertBefore(y,Z)):G++,y.textContent=l._processStyleText(y.textContent,L)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(C,
Q);if(jFL&&tU4&&BON&&(C=C.content.querySelectorAll("style"))){var E="";Array.from(C).forEach(function(P){E+=P.textContent;P.parentNode.removeChild(P)});
l._styleSheet=new CSSStyleSheet;l._styleSheet.replaceSync(E)}}
var e=CH4(iY(O));O=function(){return e.call(this)||this};
_.c(O,e);O._finalizeClass=function(){e._finalizeClass.call(this);var l;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(l=this.__ownObservers)&&this.createObservers(l,this._properties);this._prepareTemplate()};
O._prepareTemplate=function(){var l=this.template;l&&(typeof l==="string"?(console.error("template getter must return HTMLTemplateElement"),l=null):$g||(l=l.cloneNode(!0)));this.prototype._template=l};
O.createProperties=function(l){for(var C in l){var Q=this.prototype,L=C,k=l[C],M=l;k.computed&&(k.readOnly=!0);k.computed&&(Q._hasReadOnlyEffect(L)?console.warn("Cannot redefine computed property '"+L+"'."):Q._createComputedProperty(L,k.computed,M));k.readOnly&&!Q._hasReadOnlyEffect(L)?Q._createReadOnlyProperty(L,!k.computed):k.readOnly===!1&&Q._hasReadOnlyEffect(L)&&console.warn("Cannot make readOnly property '"+L+"' non-readOnly.");k.reflectToAttribute&&!Q._hasReflectEffect(L)?Q._createReflectedProperty(L):
k.reflectToAttribute===!1&&Q._hasReflectEffect(L)&&console.warn("Cannot make reflected property '"+L+"' non-reflected.");k.notify&&!Q._hasNotifyEffect(L)?Q._createNotifyingProperty(L):k.notify===!1&&Q._hasNotifyEffect(L)&&console.warn("Cannot make notify property '"+L+"' non-notify.");k.observer&&Q._createPropertyObserver(L,k.observer,M[k.observer]);Q._addPropertyToAttributeMap(L)}};
O.createObservers=function(l,C){for(var Q=this.prototype,L=0;L<l.length;L++)Q._createMethodObserver(l[L],C)};
O.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);e.prototype._initializeProperties.call(this);this.rootPath=vUD;this.importPath=this.constructor.importPath;var l=this.constructor;if(!l.hasOwnProperty("__propertyDefaults")){l.__propertyDefaults=null;var C=l._properties,Q;for(Q in C){var L=C[Q];"value"in L&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[Q]=L)}}if(l=l.__propertyDefaults)for(var k in l)C=l[k],
this._canApplyPropertyDefault(k)&&(C=typeof C.value=="function"?C.value.call(this):C.value,this._hasAccessor(k)?this._setPendingProperty(k,C,!0):this[k]=C)};
O.prototype._canApplyPropertyDefault=function(l){return!this.hasOwnProperty(l)};
O._processStyleText=function(l,C){return G_7(l,C)};
O._finalizeTemplate=function(l){var C=this.prototype._template;if(C&&!C.__polymerFinalized){C.__polymerFinalized=!0;var Q=this.importPath;Q=Q?_.EZ(Q):"";x(this,C,l,Q);this.prototype._bindTemplate(C)}};
O.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);e.prototype.connectedCallback.call(this)};
O.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);e.prototype.ready.call(this)};
O.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));e.prototype._readyClients.call(this)};
O.prototype._attachDom=function(l){var C=(0,_.sZ)(this);if(C.attachShadow)return l?(C.shadowRoot||(C.attachShadow({mode:"open",shadyUpgradeFragment:l}),C.shadowRoot.appendChild(l),this.constructor._styleSheet&&(C.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),JUL&&window.ShadyDOM&&window.ShadyDOM.flushInitial(C.shadowRoot),C.shadowRoot):null;throw Error("Gd");};
O.prototype.updateStyles=function(l){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,l)};
O.prototype.resolveUrl=function(l,C){!C&&this.importPath&&(C=_.EZ(this.importPath));return _.EZ(l,C)};
O._parseTemplateContent=function(l,C,Q){C.dynamicFns=C.dynamicFns||this._properties;return e._parseTemplateContent.call(this,l,C,Q)};
O._addTemplatePropertyEffect=function(l,C,Q){!el||C in this._properties||Q.info.part.signature&&Q.info.part.signature.static||Q.info.part.hostProp||l.nestedTemplate||console.warn("Property '"+C+"' used in template but not declared in 'properties'; attribute will not be observed.");return e._addTemplatePropertyEffect.call(this,l,C,Q)};
_.Dy.Object.defineProperties(O,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var l=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof l==="function"&&(l=l());if(l===void 0){if(l=this.hasOwnProperty("is")){l=this.is;var C=null;if(l&&(!lO||fE3)&&(C=HD.import(l,"template"),lO&&!C))throw Error("Fd`"+l);l=C}l=l||Object.getPrototypeOf(this.prototype).constructor.template}this._template=l}return this._template},
set:function(l){this._template=l}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var l=this.importMeta;l?this._importPath=Fz7(l.url):this._importPath=(l=HD.import(this.is))&&l.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return O});var qw2=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(O){return O}}),L6s=function(O,x){PHR(O,x);
this.value=x.reduce(function(e,l,C){return e+ko7(l)+O[C+1]},O[0]).toString()},PHR;
L6s.prototype.toString=function(){return this.value};
_.cYk=function(O){var x=_.vw.apply(1,arguments);PHR(O,x);var e=document.createElement("template");x=x.reduce(function(l,C,Q){if(C instanceof HTMLTemplateElement)C=C.innerHTML;else if(C instanceof L6s)C=ko7(C);else throw Error("Id`"+C);return l+C+O[Q+1]},O[0]);
qw2&&(x=qw2.createHTML(x));e.innerHTML=x;return e};
PHR=function(O,x){if(!Array.isArray(O)||!Array.isArray(O.raw)||x.length!==O.length-1)throw new TypeError("Jd");};var xh=ON(HTMLElement);var IC4=g1(function(O){var x=ON(O);O=function(){var e=x.call(this)||this;e.__lastItems=null;e.__lastMulti=null;e.__selectedMap=null;return e};
_.c(O,x);O.prototype.__updateSelection=function(e,l){var C=l.path;C=="items"?(l=l.base||[],C=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),C&&(C=TC7(l,C),this.__applySplices(C)),this.__lastItems=l,this.__lastMulti=e):l.path=="items.splices"?this.__applySplices(l.value.indexSplices):(e=C.slice(6),l=parseInt(e,10),e.indexOf(".")<0&&e==l&&this.__deselectChangedIdx(l))};
O.prototype.__applySplices=function(e){for(var l=this,C=this.__selectedMap,Q={},L=0;L<e.length;Q={s$jscomp$109:void 0},L++){Q.s$jscomp$109=e[L];C.forEach(function(X){return function(y,Z){y<X.s$jscomp$109.index||(y>=X.s$jscomp$109.index+X.s$jscomp$109.removed.length?C.set(Z,y+X.s$jscomp$109.addedCount-X.s$jscomp$109.removed.length):C.set(Z,-1))}}(Q));
for(var k=0;k<Q.s$jscomp$109.addedCount;k++){var M=Q.s$jscomp$109.index+k;C.has(this.items[M])&&C.set(this.items[M],M)}}this.__updateLinks();var G=0;C.forEach(function(X,y){X<0?(l.multi?l.splice("selected",G,1):l.selected=l.selectedItem=null,C.delete(y)):G++})};
O.prototype.__updateLinks=function(){var e=this;this.__dataLinkedPaths={};if(this.multi){var l=0;this.__selectedMap.forEach(function(C){C>=0&&e.linkPaths("items."+C,"selected."+l++)})}else this.__selectedMap.forEach(function(C){e.linkPaths("selected","items."+C);
e.linkPaths("selectedItem","items."+C)})};
O.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
O.prototype.isSelected=function(e){return this.__selectedMap.has(e)};
O.prototype.isIndexSelected=function(e){return this.isSelected(this.items[e])};
O.prototype.__deselectChangedIdx=function(e){var l=this,C=this.__selectedIndexForItemIndex(e);if(C>=0){var Q=0;this.__selectedMap.forEach(function(L,k){C==Q++&&l.deselect(k)})}};
O.prototype.__selectedIndexForItemIndex=function(e){if(e=this.__dataLinkedPaths["items."+e])return parseInt(e.slice(9),10)};
O.prototype.deselect=function(e){var l=this.__selectedMap.get(e);if(l>=0){this.__selectedMap.delete(e);var C;this.multi&&(C=this.__selectedIndexForItemIndex(l));this.__updateLinks();this.multi?this.splice("selected",C,1):this.selected=this.selectedItem=null}};
O.prototype.deselectIndex=function(e){this.deselect(this.items[e])};
O.prototype.select=function(e){this.selectIndex(this.items.indexOf(e))};
O.prototype.selectIndex=function(e){var l=this.items[e];this.isSelected(l)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(l,e),this.__updateLinks(),this.multi?this.push("selected",l):this.selected=this.selectedItem=l)};
_.Dy.Object.defineProperties(O,{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 O}),VU3=IC4(xh),eP=function(){return VU3.apply(this,arguments)||this};
_.c(eP,VU3);_.Dy.Object.defineProperties(eP,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(eP.is,eP);var pZT=window.Polymer;window.Polymer=function(O){return window.Polymer._polymerFn(O)};
pZT&&Object.assign(Polymer,pZT);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:G_7,resolveUrl:_.EZ,pathFromUrl:Fz7};Polymer.DomModule=HD;Polymer.Async={timeOut:_.NC,animationFrame:_.yG,idlePeriod:OsJ,microTask:j2};Polymer.dedupingMixin=g1;Polymer.wrap=_.sZ;Polymer.PropertiesChanged=epd;Polymer.telemetry={instanceCount:lC$,incrementInstanceCount:function(){lC$++},
registrations:ZMN,register:EVr,dumpRegistrations:function(){ZMN.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=CH4;Polymer.CaseMap={dashToCamelCase:q3,camelToDashCase:PD};Polymer.PropertyAccessors=AYF;Polymer.TemplateStamp=XZF;Polymer.Path={isPath:cD,root:Iy,isAncestor:VK7,isDescendant:V5,translate:pw,matches:pbs,normalize:Ry,split:R28,get:UZ,set:USr,isDeep:cD};Polymer.Settings={useShadow:iD,useNativeCSSProperties:KCD,useNativeCustomElements:dw2,get rootPath(){return vUD},setRootPath:function(O){vUD=O},
get sanitizeDOMValue(){return WD},setSanitizeDOMValue:function(O){WD=O},
get passiveTouchGestures(){return Pgr},setPassiveTouchGestures:function(O){Pgr=O},
get strictTemplatePolicy(){return lO},setStrictTemplatePolicy:function(O){lO=O},
get allowTemplateFromDomModule(){return fE3},setAllowTemplateFromDomModule:function(O){fE3=O},
get legacyOptimizations(){return $g},setLegacyOptimizations:function(O){$g=O},
get syncInitialRender(){return JUL},setSyncInitialRender:function(O){JUL=O},
get legacyUndefined(){return zQ},setLegacyUndefined:function(O){zQ=O},
get legacyWarnings(){return el},setLegacyWarnings:function(O){el=O},
get orderedComputed(){return wRL},setOrderedComputed:function(O){wRL=O},
get fastDomIf(){return w1},setFastDomIf:function(O){w1=O},
get removeNestedTemplates(){return Jn},setRemoveNestedTemplates:function(O){Jn=O},
get suppressTemplateNotifications(){return SD},setSuppressTemplateNotifications:SD};Polymer.rootPath!==void 0&&(vUD=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(WD=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Pgr=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(lO=Polymer.strictTemplatePolicy);fE3=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&($g=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(JUL=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(zQ=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(el=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(wRL=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(w1=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Jn=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(SD=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return WD},
set:function(O){WD=O}});Polymer.PropertyEffects=iY;Polymer.StyleGather={stylesFromModules:iMr,stylesFromModule:$Sm,stylesFromTemplate:OIN,stylesFromModuleImports:xoL,cssFromModules:lrW,cssFromModule:eJr,cssFromTemplate:CgV,cssFromModuleImports:function(O){return(O=HD.import(O))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O):""}};Polymer.ElementMixin=ON;Polymer.updateStyles=function(O){window.ShadyCSS&&window.ShadyCSS.styleDocument(O)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:TC7};Polymer.html=_.cYk;Polymer.htmlLiteral=function(O){return new L6s(O,_.vw.apply(1,arguments))};Polymer.Element=xh;Polymer.ArraySelectorMixin=IC4;Polymer.ArraySelector=eP;var Rp$=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,UQk=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,B4w=/@media\s(.*)/;var Gos=null,DoW=window.HTMLImports&&window.HTMLImports.whenReady||null,F6r;var aCR=null,lG=null,Cp=function(){this.customStyles=[];this.enqueued=!1;XNL(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},mQ3=function(O){!O.enqueued&&lG&&(O.enqueued=!0,XNL(lG))};
Cp.prototype.addCustomStyle=function(O){O.__seenByShadyCSS||(O.__seenByShadyCSS=!0,this.customStyles.push(O),mQ3(this))};
Cp.prototype.getStyleForCustomStyle=function(O){if(O.__shadyCSSCachedStyle)return O.__shadyCSSCachedStyle;var x;O.getStyle?x=O.getStyle():x=O;return x};
Cp.prototype.processStyles=function(){for(var O=this.customStyles,x=0;x<O.length;x++){var e=O[x];if(!e.__shadyCSSCachedStyle){var l=this.getStyleForCustomStyle(e);l&&(l=l.__appliedElement||l,aCR&&aCR(l),e.__shadyCSSCachedStyle=l)}}return O};
Cp.prototype.addCustomStyle=Cp.prototype.addCustomStyle;Cp.prototype.getStyleForCustomStyle=Cp.prototype.getStyleForCustomStyle;Cp.prototype.processStyles=Cp.prototype.processStyles;Object.defineProperties(Cp.prototype,{transformCallback:{get:function(){return aCR},
set:function(O){aCR=O}},
validateCallback:{get:function(){return lG},
set:function(O){var x=!1;lG||(x=!0);lG=O;x&&mQ3(this)}}});var ytr=!(window.ShadyDOM&&window.ShadyDOM.inUse),oQW,My;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(My=window.ShadyCSS.cssBuild);var sH4=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?oQW=window.ShadyCSS.nativeCss:window.ShadyCSS?(ZIi(window.ShadyCSS),window.ShadyCSS=void 0):ZIi(window.WebComponents&&window.WebComponents.flags);var niV=oQW;var WSz=new Cp;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(O,x){WSz.processStyles();Ats(O,x)},
styleElement:function(){WSz.processStyles()},
styleDocument:function(O){WSz.processStyles();Ats(document.body,O)},
getComputedStyleValue:function(O,x){return M1r(O,x)},
flushCustomStyles:function(){},
nativeCss:niV,nativeShadow:ytr,cssBuild:My,disableRuntime:sH4});window.ShadyCSS.CustomStyleInterface=WSz;var hp3=window.ShadyCSS.CustomStyleInterface,QJ=function(){var O=HTMLElement.call(this)||this;O._style=null;hp3.addCustomStyle(O);return O};
_.c(QJ,HTMLElement);QJ.prototype.getStyle=function(){if(this._style)return this._style;var O=this.querySelector("style");if(!O)return null;this._style=O;var x=O.getAttribute("include");x&&(O.removeAttribute("include"),O.textContent=lrW(x)+O.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
QJ.prototype.getStyle=QJ.prototype.getStyle;window.customElements.define("custom-style",QJ);Polymer.CustomStyle=QJ;var bG=function(){this._timer=this._callback=this._asyncModule=null},Ty,rYN;
bG.prototype.setConfig=function(O,x){var e=this;this._asyncModule=O;this._callback=x;this._timer=this._asyncModule.run(function(){e._timer=null;Ty.delete(e);e._callback()})};
bG.prototype.cancel=function(){this.isActive()&&(zpJ(this),Ty.delete(this))};
var zpJ=function(O){O.isActive()&&(O._asyncModule.cancel(O._timer),O._timer=null)};
bG.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
bG.prototype.isActive=function(){return this._timer!=null};
_.Lp=function(O,x,e){O instanceof bG?zpJ(O):O=new bG;O.setConfig(x,e);return O};
Ty=new Set;_.kh=function(O){Ty.add(O)};
rYN=function(){var O=!!Ty.size;Ty.forEach(function(x){try{x.flush()}catch(e){setTimeout(function(){throw e;})}});
return O};var t1w=typeof document.head.style.touchAction==="string",EQs=["mousedown","mousemove","mouseup","click"],arr=[0,1,4,2],Hs4;try{Hs4=(new MouseEvent("test",{buttons:1})).buttons===1}catch(O){Hs4=!1}var Uo$=Hs4,qe$=!1;(function(){try{var O=Object.defineProperty({},"passive",{get:function(){qe$=!0}});
window.addEventListener("test",null,O);window.removeEventListener("test",null,O)}catch(x){}})();
var Irr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),V1w=[],KSD={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},YeL={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},pNV=function(O){var x=O.sourceCapabilities;if(!x||x.firesTouchEvents)if(O.__polymerGesturesHandled={skip:!0},O.type==="click"){x=!1;for(var e=hJV(O),l=0;l<e.length;l++){if(e[l].nodeType===Node.ELEMENT_NODE)if(e[l].localName==="label")V1w.push(e[l]);
else if(KSD[e[l].localName]){var C=e[l];var Q=Array.prototype.slice.call(C.labels||[]);if(!Q.length){Q=[];try{var L=C.getRootNode();if(C.id){var k=L.querySelectorAll("label[for = '"+C.id+"']");for(C=0;C<k.length;C++)Q.push(k[C])}}catch(M){}}for(C=0;C<Q.length;C++)x=x||V1w.indexOf(Q[C])>-1}if(e[l]===dQd)return}x||(O.preventDefault(),O.stopPropagation())}},dQd=null,AP=null,rtw=0,HIL=0,zJr=-1,K6r=!1;
document.addEventListener("touchend",function(O){AP||RJm(!0);dQd=hJV(O)[0];AP=_.Lp(AP,_.NC.after(2500),function(){RJm();AP=dQd=null})},qe$?{passive:!0}:!1);
var hJV=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(O){return O.composedPath&&O.composedPath()||[]},BD={},uD=[];
dor({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){nw(this.info)},
mousedown:function(O){if(da(O)){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),e=this;sLr(this.info,function(l){da(l)||(N3("up",x,l),nw(e.info))},function(l){da(l)&&N3("up",x,l);
nw(e.info)});
N3("down",x,O)}},
touchstart:function(O){N3("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),O.changedTouches[0],O)},
touchend:function(O){N3("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),O.changedTouches[0],O)}});
dor({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(O){this.moves.length>2&&this.moves.shift();this.moves.push(O)},
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;nw(this.info)},
mousedown:function(O){if(da(O)){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),e=this,l=function(C){var Q=C.clientX,L=C.clientY;nQ8(e.info,Q,L)&&(e.info.state=e.info.started?C.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Yg("tap"),e.info.addMove({x:Q,y:L}),da(C)||(e.info.state="end",nw(e.info)),x&&uur(e.info,x,C),e.info.started=!0)};
sLr(this.info,l,function(C){e.info.started&&l(C);nw(e.info)});
this.info.x=O.clientX;this.info.y=O.clientY}},
touchstart:function(O){O=O.changedTouches[0];this.info.x=O.clientX;this.info.y=O.clientY},
touchmove:function(O){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);O=O.changedTouches[0];var e=O.clientX,l=O.clientY;nQ8(this.info,e,l)&&(this.info.state==="start"&&Yg("tap"),this.info.addMove({x:e,y:l}),uur(this.info,x,O),this.info.state="track",this.info.started=!0)},
touchend:function(O){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);O=O.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:O.clientX,y:O.clientY}),uur(this.info,x,O))}});
dor({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(O){da(O)&&(this.info.x=O.clientX,this.info.y=O.clientY)},
click:function(O){da(O)&&BCn(this.info,O)},
touchstart:function(O){O=O.changedTouches[0];this.info.x=O.clientX;this.info.y=O.clientY},
touchend:function(O){BCn(this.info,O.changedTouches[0],O)}});var nXz=g1(function(O){var x=function(){return O.apply(this,arguments)||this};
_.c(x,O);x.prototype._addEventListenerToNode=function(e,l,C){vD(e,l,C)||O.prototype._addEventListenerToNode.call(this,e,l,C)};
x.prototype._removeEventListenerFromNode=function(e,l,C){fw(e,l,C)||O.prototype._removeEventListenerFromNode.call(this,e,l,C)};
return x});var MX=g1(function(O){var x=function(){return O.apply(this,arguments)||this};
_.c(x,O);x.prototype._shouldPropertyChange=function(e,l,C){return vQm(this,e,l,C,!0)};
return x}),u9$=g1(function(O){var x=function(){return O.apply(this,arguments)||this};
_.c(x,O);x.prototype._shouldPropertyChange=function(e,l,C){return vQm(this,e,l,C,this.mutableData)};
_.Dy.Object.defineProperties(x,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return x});
MX._mutablePropertyChange=vQm;var frm=!1;var Ywk=nXz(u9$(iY(HTMLElement))),Di=function(){var O=Ywk.call(this)||this;if(lO)throw Error("Ld");O.root=null;O.$=null;O.__children=null;return O};
_.c(Di,Ywk);_.b=Di.prototype;_.b.attributeChangedCallback=function(){this.mutableData=!0};
_.b.connectedCallback=function(){JtN()||(this.style.display="none");this.render()};
_.b.disconnectedCallback=function(){this.__removeChildren()};
_.b.__insertChildren=function(){(0,_.sZ)((0,_.sZ)(this).parentNode).insertBefore(this.root,this)};
_.b.__removeChildren=function(){if(this.__children)for(var O=0;O<this.__children.length;O++)this.root.appendChild(this.__children[O])};
_.b.render=function(){var O=this;if(!this.__children){var x=x||this.querySelector("template");if(!x){var e=new MutationObserver(function(){if(x=O.querySelector("template"))e.disconnect(),O.render();else throw Error("Md");});
e.observe(this,{childList:!0});return}this.root=this._stampTemplate(x);this.$=this.root.$;this.__children=[];for(var l=this.root.firstChild;l;l=l.nextSibling)this.__children[this.__children.length]=l;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Dy.Object.defineProperties(Di,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Di);Polymer.Debouncer=bG;Polymer.Gestures={gestures:BD,recognizers:uD,deepTargetFind:W6V,addListener:vD,removeListener:fw,register:dor,setTouchAction:_.Ja,prevent:Yg,resetMouseCanceller:function(){AP&&AP.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:vD,remove:fw};Polymer.GestureEventListeners=nXz;Polymer.MutableData=MX;Polymer.OptionalMutableData=u9$;Polymer.DomBind=Di;_.Gy=function(){do{var O=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var x=rYN()}while(O||x)};var wNW=null;Sen.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Sen,writable:!0}});var eIV=iY(Sen),xis=MX(eIV),BqN=iY(function(){}),Ov=function(O){var x=BqN.call(this)||this;
x._configureProperties(O);x.root=x._stampTemplate(x.__dataHost);var e=[];x.children=e;for(var l=x.root.firstChild;l;l=l.nextSibling)e.push(l),l.__templatizeInstance=x;x.__templatizeOwner&&x.__templatizeOwner.__hideTemplateChildren__&&x._showHideChildren(!0);e=x.__templatizeOptions;(O&&e.instanceProps||!e.instanceProps)&&x._enableProperties();return x};
_.c(Ov,BqN);_.b=Ov.prototype;_.b._configureProperties=function(O){if(this.__templatizeOptions.forwardHostProp)for(var x in this.__hostProps)this._setPendingProperty(x,this.__dataHost["_host_"+x]);for(var e in O)this._setPendingProperty(e,O[e])};
_.b.forwardHostProp=function(O,x){this._setPendingPropertyOrPath(O,x,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.b._addEventListenerToNode=function(O,x,e){var l=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(O,x,function(Q){Q.model=l;e(Q)});
else{var C=this.__dataHost.__dataHost;C&&C._addEventListenerToNode(O,x,e)}};
_.b._showHideChildren=function(O){NCV(O,this.children)};
_.b._setUnmanagedPropertyToNode=function(O,x,e){O.__hideTemplateChildren__&&O.nodeType==Node.TEXT_NODE&&x=="textContent"?O.__polymerTextContent__=e:BqN.prototype._setUnmanagedPropertyToNode.call(this,O,x,e)};
_.b.dispatchEvent=function(){return!0};
_.Dy.Object.defineProperties(Ov.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var O=this.__parentModel;if(!O){var x;O=this;do O=O.__dataHost.__dataHost;while((x=O.__templatizeOptions)&&!x.parentModel);this.__parentModel=O}return O}}});
var $oV=MX(Ov);var FJ=function(){var O=xh.call(this)||this;O.__renderDebouncer=null;O._lastIf=!1;O.__hideTemplateChildren__=!1;return O};
_.c(FJ,xh);_.b=FJ.prototype;_.b.__debounceRender=function(){var O=this;this.__renderDebouncer=_.Lp(this.__renderDebouncer,j2,function(){return O.__render()});
_.kh(this.__renderDebouncer)};
_.b.disconnectedCallback=function(){xh.prototype.disconnectedCallback.call(this);var O=(0,_.sZ)(this).parentNode;O&&(O.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.sZ)(O).host)||this.__teardownInstance()};
_.b.connectedCallback=function(){xh.prototype.connectedCallback.call(this);JtN()||(this.style.display="none");this.if&&this.__debounceRender()};
_.b.__ensureTemplate=function(){var O=this;if(!this.__template){var x=this._templateInfo?this:(0,_.sZ)(this).querySelector("template");if(!x){var e=new MutationObserver(function(){if((0,_.sZ)(O).querySelector("template"))e.disconnect(),O.__render();else throw Error("Pd");});
e.observe(this,{childList:!0});return!1}this.__template=x}return!0};
_.b.__ensureInstance=function(){var O=(0,_.sZ)(this).parentNode;if(this.__hasInstance()){var x=this.__getInstanceNodes();if(x&&x.length&&(0,_.sZ)(this).previousSibling!==x[x.length-1])for(var e=0,l=void 0;e<x.length&&(l=x[e]);e++)(0,_.sZ)(O).insertBefore(l,this)}else{if(!O||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(O)}return!0};
_.b.render=function(){_.Gy()};
_.b.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();SD&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.b.__hasInstance=function(){};
_.b.__getInstanceNodes=function(){};
_.b.__createAndInsertInstance=function(){};
_.b.__teardownInstance=function(){};
_.b._showHideChildren=function(){};
_.Dy.Object.defineProperties(FJ,{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:FJ.prototype.__debounceRender},restamp:{type:Boolean,observer:FJ.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var vXR=function(){var O=FJ.call(this)||this;O.__instance=null;O.__syncInfo=null;return O};
_.c(vXR,FJ);_.b=vXR.prototype;_.b.__hasInstance=function(){return!!this.__instance};
_.b.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.b.__createAndInsertInstance=function(O){var x=this,e=this.__dataHost||this;if(lO&&!this.__dataHost)throw Error("Nd");var l=e._bindTemplate(this.__template,!0);l.runEffects=function(C,Q,L){var k=x.__syncInfo;if(x.if)k&&(x.__syncInfo=null,x._showHideChildren(),Q=Object.assign(k.changedProps,Q)),C(Q,L);else if(x.__instance)if(k||(k=x.__syncInfo={runEffects:C,changedProps:{}}),L)for(var M in Q)C=Iy(M),k.changedProps[C]=x.__dataHost[C];else Object.assign(k.changedProps,Q)};
this.__instance=e._stampTemplate(this.__template,l);(0,_.sZ)(O).insertBefore(this.__instance,this)};
_.b.__syncHostProperties=function(){var O=this.__syncInfo;O&&(this.__syncInfo=null,O.runEffects(O.changedProps,!1))};
_.b.__teardownInstance=function(){var O=this.__dataHost||this;this.__instance&&(O._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.b._showHideChildren=function(){var O=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==O&&(this.__instance.__hidden=O,NCV(O,this.__instance.templateInfo.childNodes));O||this.__syncHostProperties()};
var fCT=function(){var O=FJ.call(this)||this;O.__ctor=null;O.__instance=null;O.__invalidProps=null;return O};
_.c(fCT,FJ);_.b=fCT.prototype;_.b.__hasInstance=function(){return!!this.__instance};
_.b.__getInstanceNodes=function(){return this.__instance.children};
_.b.__createAndInsertInstance=function(O){this.__ctor||(this.__ctor=x_(this.__template,this,{mutableData:!0,forwardHostProp:function(x,e){this.__instance&&(this.if?this.__instance.forwardHostProp(x,e):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Iy(x)]=!0))}}));
this.__instance=new this.__ctor;(0,_.sZ)(O).insertBefore(this.__instance.root,this)};
_.b.__teardownInstance=function(){if(this.__instance){var O=this.__instance.children;if(O&&O.length){var x=(0,_.sZ)(O[0]).parentNode;if(x){x=(0,_.sZ)(x);for(var e=0,l=void 0;e<O.length&&(l=O[e]);e++)x.removeChild(l)}}this.__instance=this.__invalidProps=null}};
_.b.__syncHostProperties=function(){var O=this.__invalidProps;if(O){this.__invalidProps=null;for(var x in O)this.__instance._setPendingProperty(x,this.__dataHost[x]);this.__instance._flushProperties()}};
_.b._showHideChildren=function(){var O=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==O&&(this.__instance.__hidden=O,this.__instance._showHideChildren(O));O||this.__syncHostProperties()};
_.PZ=w1?vXR:fCT;customElements.define(_.PZ.is,_.PZ);Polymer.enqueueDebouncer=_.kh;Polymer.flush=_.Gy;Polymer.Templatize={templatize:x_,modelForElement:Lt8};Polymer.TemplateInstanceBase=Ov;Polymer.DomIf=_.PZ;var JYp=u9$(xh),qQ=function(){var O=JYp.call(this)||this;O.__instances=[];O.__renderDebouncer=null;O.__itemsIdxToInstIdx={};O.__chunkCount=null;O.__renderStartTime=null;O.__itemsArrayChanged=!1;O.__shouldMeasureChunk=!1;O.__shouldContinueChunking=!1;O.__chunkingId=0;O.__sortFn=null;O.__filterFn=null;O.__observePaths=null;O.__ctor=null;O.__isDetached=!0;O.template=null;return O};
_.c(qQ,JYp);_.b=qQ.prototype;_.b.disconnectedCallback=function(){JYp.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var O=0;O<this.__instances.length;O++)this.__detachInstance(O);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.b.connectedCallback=function(){JYp.prototype.connectedCallback.call(this);JtN()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var O=(0,_.sZ)((0,_.sZ)(this).parentNode),x=0;x<this.__instances.length;x++)this.__attachInstance(x,O);this.__chunkingId&&this.__render()}};
_.b.__ensureTemplatized=function(){var O=this;if(!this.__ctor){var x=this.template=this._templateInfo?this:this.querySelector("template");if(!x){var e=new MutationObserver(function(){if(O.querySelector("template"))e.disconnect(),O.__render();else throw Error("Qd");});
e.observe(this,{childList:!0});return!1}var l={};l[this.as]=!0;l[this.indexAs]=!0;l[this.itemsIndexAs]=!0;this.__ctor=x_(x,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:l,forwardHostProp:function(C,Q){for(var L=this.__instances,k=0,M=void 0;k<L.length&&(M=L[k]);k++)M.forwardHostProp(C,Q)},
notifyInstanceProp:function(C,Q,L){pbs(this.as,Q)&&(C=C[this.itemsIndexAs],Q==this.as&&(this.items[C]=L),Q=pw(this.as,"items."+C,Q),this.notifyPath(Q,L))}})}return!0};
_.b.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.b.__functionFromPropertyValue=function(O){if(typeof O==="string"){var x=this.__getMethodHost();return function(){return x[O].apply(x,arguments)}}return O};
_.b.__sortChanged=function(O){this.__sortFn=this.__functionFromPropertyValue(O);this.items&&this.__debounceRender(this.__render)};
_.b.__filterChanged=function(O){this.__filterFn=this.__functionFromPropertyValue(O);this.items&&this.__debounceRender(this.__render)};
_.b.__computeFrameTime=function(O){return Math.ceil(1E3/O)};
_.b.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.b.__handleObservedPaths=function(O){if(this.__sortFn||this.__filterFn)if(!O)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var x=this.__observePaths,e=0;e<x.length;e++)O.indexOf(x[e])===0&&this.__debounceRender(this.__render,this.delay)};
_.b.__itemsChanged=function(O){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(O.path,O.value)||(O.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.b.__debounceRender=function(O,x){x=x===void 0?0:x;this.__renderDebouncer=_.Lp(this.__renderDebouncer,x>0?_.NC.after(x):j2,O.bind(this));_.kh(this.__renderDebouncer)};
_.b.render=function(){this.__debounceRender(this.__render);_.Gy()};
_.b.__render=function(){var O=this;if(this.__ensureTemplatized()){var x=this.items||[],e=this.__sortAndFilterItems(x),l=this.__calculateLimit(e.length);this.__updateInstances(x,l,e);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){O.__chunkingId=null;O.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);SD&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.b.__sortAndFilterItems=function(O){for(var x=this,e=Array(O.length),l=0;l<O.length;l++)e[l]=l;this.__filterFn&&(e=e.filter(function(C,Q,L){return x.__filterFn(O[C],Q,L)}));
this.__sortFn&&e.sort(function(C,Q){return x.__sortFn(O[C],O[Q])});
return e};
_.b.__calculateLimit=function(O){var x=O,e=this.__instances.length;if(this.initialCount){var l;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(x=Math.min(O,this.initialCount),this.__chunkCount=(l=Math.max(x-e,0))||1):(l=Math.min(Math.max(O-e,0),this.__chunkCount),x=Math.min(e+l,O));this.__shouldMeasureChunk=l===this.__chunkCount;this.__shouldContinueChunking=x<O;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return x};
_.b.__continueChunking=function(){if(this.__shouldMeasureChunk){var O=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/O*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.b.__updateInstances=function(O,x,e){var l=this.__itemsIdxToInstIdx={},C;for(C=0;C<x;C++){var Q=this.__instances[C],L=e[C],k=O[L];l[L]=C;Q?(Q._setPendingProperty(this.as,k),Q._setPendingProperty(this.indexAs,C),Q._setPendingProperty(this.itemsIndexAs,L),Q._flushProperties()):this.__insertInstance(k,C,L)}for(O=this.__instances.length-1;O>=C;O--)this.__detachAndRemoveInstance(O)};
_.b.__detachInstance=function(O){O=this.__instances[O];for(var x=(0,_.sZ)(O.root),e=0;e<O.children.length;e++)x.appendChild(O.children[e]);return O};
_.b.__attachInstance=function(O,x){x.insertBefore(this.__instances[O].root,this)};
_.b.__detachAndRemoveInstance=function(O){this.__detachInstance(O);this.__instances.splice(O,1)};
_.b.__stampInstance=function(O,x,e){var l={};l[this.as]=O;l[this.indexAs]=x;l[this.itemsIndexAs]=e;return new this.__ctor(l)};
_.b.__insertInstance=function(O,x,e){O=this.__stampInstance(O,x,e);e=(e=this.__instances[x+1])?e.children[0]:this;(0,_.sZ)((0,_.sZ)(this).parentNode).insertBefore(O.root,e);return this.__instances[x]=O};
_.b._showHideChildren=function(O){for(var x=0;x<this.__instances.length;x++)this.__instances[x]._showHideChildren(O)};
_.b.__handleItemPath=function(O,x){var e=O.slice(6),l=e.indexOf(".");O=l<0?e:e.substring(0,l);if(O==parseInt(O,10)){e=l<0?"":e.substring(l+1);this.__handleObservedPaths(e);if(O=this.__instances[this.__itemsIdxToInstIdx[O]])O._setPendingPropertyOrPath(this.as+(e?"."+e:""),x,!1,!0),O._flushProperties();return!0}};
_.b.itemForElement=function(O){return(O=this.modelForElement(O))&&O[this.as]};
_.b.indexForElement=function(O){return(O=this.modelForElement(O))&&O[this.indexAs]};
_.b.modelForElement=function(O){return Lt8(this.template,O)};
_.Dy.Object.defineProperties(qQ,{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:qQ.prototype.__sortChanged},filter:{type:Function,observer:qQ.prototype.__filterChanged},observe:{type:String,observer:qQ.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!SD,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.*)"]}}});
qQ.prototype._setRenderedItemCount=function(){};
customElements.define(qQ.is,qQ);Polymer.DomRepeat=qQ;var wZz=function(O,x){var e=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=O;this.callback=x;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){e._schedule()};
this.connect();this._schedule()},Sw4=function(O){var x=(0,_.sZ)(O);
if(CG(O))return x.assignedNodes({flatten:!0});O=[];for(var e=0;e<x.childNodes.length;e++){var l=x.childNodes[e];CG(l)?O.push.apply(O,_.Kx((0,_.sZ)(l).assignedNodes({flatten:!0}))):O.push(l)}return O};
_.b=wZz.prototype;_.b.connect=function(){var O=this;CG(this._target)?this._listenSlots([this._target]):(0,_.sZ)(this._target).children&&(this._listenSlots((0,_.sZ)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(x){O._processMutations(x)}):(this._nativeChildrenObserver=new MutationObserver(function(x){O._processMutations(x)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.b.disconnect=function(){CG(this._target)?this._unlistenSlots([this._target]):(0,_.sZ)(this._target).children&&(this._unlistenSlots((0,_.sZ)(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};
_.b._schedule=function(){var O=this;this._scheduled||(this._scheduled=!0,j2.run(function(){return O.flush()}))};
_.b._processMutations=function(O){this._processSlotMutations(O);this.flush()};
_.b._processSlotMutations=function(O){if(O)for(var x=0;x<O.length;x++){var e=O[x];e.addedNodes&&this._listenSlots(e.addedNodes);e.removedNodes&&this._unlistenSlots(e.removedNodes)}};
_.b.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 O={target:this._target,addedNodes:[],removedNodes:[]},x=Sw4(this._target),e=TC7(x,this._effectiveNodes),l=0,C=void 0;l<e.length&&(C=e[l]);l++)for(var Q=0,L=void 0;Q<C.removed.length&&(L=C.removed[Q]);Q++)O.removedNodes.push(L);
l=0;for(C=void 0;l<e.length&&(C=e[l]);l++)for(Q=C.index;Q<C.index+C.addedCount;Q++)O.addedNodes.push(x[Q]);this._effectiveNodes=x;x=!1;if(O.addedNodes.length||O.removedNodes.length)x=!0,this.callback.call(this._target,O);return x};
_.b._listenSlots=function(O){for(var x=0;x<O.length;x++){var e=O[x];CG(e)&&e.addEventListener("slotchange",this._boundSchedule)}};
_.b._unlistenSlots=function(O){for(var x=0;x<O.length;x++){var e=O[x];CG(e)&&e.removeEventListener("slotchange",this._boundSchedule)}};var XJ=Element.prototype,jHJ=XJ.matches||XJ.matchesSelector||XJ.mozMatchesSelector||XJ.msMatchesSelector||XJ.oMatchesSelector||XJ.webkitMatchesSelector,Nqz=function(O,x){return jHJ.call(O,x)},QS=function(O){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(O);
this.node=O},O_N;
_.b=QS.prototype;_.b.observeNodes=function(O){return new wZz(this.node,O)};
_.b.unobserveNodes=function(O){O.disconnect()};
_.b.notifyObserver=function(){};
_.b.deepContains=function(O){if((0,_.sZ)(this.node).contains(O))return!0;var x=O;for(O=O.ownerDocument;x&&x!==O&&x!==this.node;)x=(0,_.sZ)(x).parentNode||(0,_.sZ)(x).host;return x===this.node};
_.b.getOwnerRoot=function(){return(0,_.sZ)(this.node).getRootNode()};
_.b.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.sZ)(this.node).assignedNodes({flatten:!0}):[]};
_.b.getDestinationInsertionPoints=function(){for(var O=[],x=(0,_.sZ)(this.node).assignedSlot;x;)O.push(x),x=(0,_.sZ)(x).assignedSlot;return O};
_.b.importNode=function(O,x){return(0,_.sZ)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(O,x)};
_.b.getEffectiveChildNodes=function(){return Sw4(this.node)};
_.b.queryDistributedElements=function(O){for(var x=this.getEffectiveChildNodes(),e=[],l=0,C=x.length,Q=void 0;l<C&&(Q=x[l]);l++)Q.nodeType===Node.ELEMENT_NODE&&Nqz(Q,O)&&e.push(Q);return e};
_.Dy.Object.defineProperties(QS.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var O=this.node;return O._activeElement!==void 0?O._activeElement:O.activeElement}}});
var o3=function(O){this.event=O};
_.Dy.Object.defineProperties(o3.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 gX$=QS;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var $QF=window.ShadyDOM.Wrapper,isd=function(){return $QF.apply(this,arguments)||this};
_.c(isd,$QF);Object.getOwnPropertyNames(QS.prototype).forEach(function(O){O!="activeElement"&&O!="constructor"&&(isd.prototype[O]=QS.prototype[O])});
AOs(isd.prototype,["classList"]);gX$=isd;Object.defineProperties(o3.prototype,{localTarget:{get:function(){var O=this.event.currentTarget;O=O&&_.G0(O).getOwnerRoot();for(var x=this.path,e=0;e<x.length;e++){var l=x[e];if(_.G0(l).getOwnerRoot()===O)return l}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else kBr(),AOs(QS.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),MJ$();O_N=gX$;_.G0=function(O){O=O||document;if(O instanceof gX$)return O;if(O instanceof o3)return O;var x=O.__domApi;x||(O instanceof Event?x=new o3(O):x=new gX$(O),O.__domApi=x);return x};var xjR=/:host\(:dir\((ltr|rtl)\)\)/g,e92=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,la3=/:dir\((?:ltr|rtl)\)/,CVd=!(!window.ShadyDOM||!window.ShadyDOM.inUse),TS=[],yJ=null,bO="",QlT=g1(function(O){CVd||yJ||(bO=document.documentElement.getAttribute("dir"),yJ=new MutationObserver(Dir),yJ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var x=AYF(O);O=function(){var e=x.call(this)||this;e.__autoDirOptOut=!1;return e};
_.c(O,x);O._processStyleText=function(e,l){e=x._processStyleText.call(this,e,l);!CVd&&la3.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0);return e};
O._replaceDirInCssText=function(e){e=e.replace(xjR,':host([dir="$1"])');return e=e.replace(e92,':host([dir="$2"]) $1')};
O.prototype.ready=function(){x.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
O.prototype.connectedCallback=function(){x.prototype.connectedCallback&&x.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(yJ&&yJ.takeRecords().length&&Dir(),TS.push(this),this.__autoDirOptOut||this.setAttribute("dir",bO))};
O.prototype.disconnectedCallback=function(){x.prototype.disconnectedCallback&&x.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var e=TS.indexOf(this);e>-1&&TS.splice(e,1)}};
O.__activateDir=!1;return O});var b_z=function(O){for(;O;){var x=Object.getOwnPropertyDescriptor(O,"observedAttributes");if(x)return x.get;O=Object.getPrototypeOf(O.prototype).constructor}return function(){return[]}};
g1(function(O){var x=ON(O),e=b_z(x);O=function(){return x.call(this)||this};
_.c(O,x);O.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:x.prototype._initializeProperties.call(this)};
O.prototype._enableProperties=function(){this.__isUpgradeDisabled||x.prototype._enableProperties.call(this)};
O.prototype._canApplyPropertyDefault=function(l){return x.prototype._canApplyPropertyDefault.call(this,l)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(l))};
O.prototype.attributeChangedCallback=function(l,C,Q,L){l=="disable-upgrade"?this.__isUpgradeDisabled&&Q==null&&(x.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.sZ)(this).isConnected&&x.prototype.connectedCallback.call(this)):x.prototype.attributeChangedCallback.call(this,l,C,Q,L)};
O.prototype.connectedCallback=function(){this.__isUpgradeDisabled||x.prototype.connectedCallback.call(this)};
O.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||x.prototype.disconnectedCallback.call(this)};
_.Dy.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return e.call(this).concat("disable-upgrade")}}});
return O});var LG=!1,Ftr=[],k_=[];var Z08=window.ShadyDOM,Eii=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",qaw):document.readyState==="interactive"||document.readyState==="complete"?qaw():window.addEventListener("DOMContentLoaded",qaw);var IO8=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=""},Pmw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,cO8=/@import[^;]*;/gim,min=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,sKL=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Wt7=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,hIr=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ui8=/^@[^\s]*keyframes/,
RIs=/\s+/g;var zI$={};var Ktr=Promise.resolve();var TP$=new Set;var Le$=/;\s*/m,kOk=/^\s*(initial)|(inherit)\s*$/,ABp=/\s*!important/,Mfk=function(){this._map={}};
Mfk.prototype.set=function(O,x){O=O.trim();this._map[O]={properties:x,dependants:{}}};
Mfk.prototype.get=function(O){O=O.trim();return this._map[O]||null};
var Djd=null,Zi=function(){this._measureElement=this._currentElement=null;this._map=new Mfk};
_.b=Zi.prototype;_.b.detectMixin=function(O){O=UQk.test(O)||Rp$.test(O);UQk.lastIndex=0;Rp$.lastIndex=0;return O};
_.b.transformTemplate=function(O,x){if(O._gatheredStyle===void 0){var e=[];for(var l=O.content.querySelectorAll("style"),C=0;C<l.length;C++){var Q=l[C];if(Q.hasAttribute("shady-unscoped")){if(!ytr){var L=Q.textContent;if(!TP$.has(L)){TP$.add(L);var k=document.createElement("style");k.setAttribute("shady-unscoped","");k.textContent=L;document.head.appendChild(k)}Q.parentNode.removeChild(Q)}}else e.push(Q.textContent),Q.parentNode.removeChild(Q)}(e=e.join("").trim())?(l=document.createElement("style"),
l.textContent=e,O.content.insertBefore(l,O.content.firstChild),e=l):e=null;O._gatheredStyle=e}return(O=O._gatheredStyle)?this.JSC$11267_transformStyle(O,x):null};
_.b.JSC$11267_transformStyle=function(O,x){x=x===void 0?"":x;var e=Yaw(O);this.transformRules(e,x);O.textContent=ulm(e);return e};
_.b.transformCustomStyle=function(O){var x=this,e=Yaw(O);vi7(e,function(l){l.selector===":root"&&(l.selector="html");x.transformRule(l)});
O.textContent=ulm(e);return e};
_.b.transformRules=function(O,x){var e=this;this._currentElement=x;vi7(O,function(l){e.transformRule(l)});
this._currentElement=null};
_.b.transformRule=function(O){O.cssText=GOp(this,O.parsedCssText,O);O.selector===":root"&&(O.selector=":host > *")};
var GOp=function(O,x,e){x=x.replace(Rp$,function(l,C,Q,L){return O._produceCssProperties(l,C,Q,L,e)});
return O._consumeCssProperties(x,e)};
_.b=Zi.prototype;_.b._getInitialValueForProperty=function(O){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(O)};
_.b._fallbacksFromPreviousRules=function(O){for(var x=this,e=O;e.parent;)e=e.parent;var l={},C=!1;vi7(e,function(Q){(C=C||Q===O)||Q.selector===O.selector&&Object.assign(l,x._cssTextToMap(Q.parsedCssText))});
return l};
_.b._consumeCssProperties=function(O,x){for(var e;e=UQk.exec(O);){var l=e[0],C=e[1];e=e.index;var Q=e+l.indexOf("@apply"),L=e+l.length;l=O.slice(0,Q);O=O.slice(L);Q=x?this._fallbacksFromPreviousRules(x):{};Object.assign(Q,this._cssTextToMap(l));C=this._atApplyToCssProperties(C,Q);O=l+C+O;UQk.lastIndex=e+C.length}return O};
_.b._atApplyToCssProperties=function(O,x){O=O.replace(Le$,"");var e=[],l=this._map.get(O);l||(this._map.set(O,{}),l=this._map.get(O));if(l){this._currentElement&&(l.dependants[this._currentElement]=!0);var C,Q=l.properties;for(C in Q){var L=x&&x[C];l=[C,": var(",O,"_-_",C];L&&l.push(",",L.replace(ABp,""));l.push(")");ABp.test(Q[C])&&l.push(" !important");e.push(l.join(""))}}return e.join("; ")};
_.b._replaceInitialOrInherit=function(O,x){var e=kOk.exec(x);e&&(x=e[1]?this._getInitialValueForProperty(O):"apply-shim-inherit");return x};
_.b._cssTextToMap=function(O,x){x=x===void 0?!1:x;O=O.split(";");for(var e,l,C={},Q=0;Q<O.length;Q++)if(e=O[Q])l=e.split(":"),l.length>1&&(e=l[0].trim(),l=l.slice(1).join(":"),x&&(l=this._replaceInitialOrInherit(e,l)),C[e]=l);return C};
_.b._invalidateMixinEntry=function(O){if(Djd)for(var x in O.dependants)x!==this._currentElement&&Djd(x)};
_.b._produceCssProperties=function(O,x,e,l,C){var Q=this;e&&fOW(e,function(P,U){U&&Q._map.get(U)&&(l="@apply "+U+";")});
if(!l)return O;var L=this._consumeCssProperties(""+l,C);C=O.slice(0,O.indexOf("--"));var k=L=this._cssTextToMap(L,!0),M=this._map.get(x),G=M&&M.properties;G?k=Object.assign(Object.create(G),L):this._map.set(x,k);var X=[],y,Z=!1;for(y in k){var E=L[y];E===void 0&&(E="initial");!G||y in G||(Z=!0);X.push(x+"_-_"+y+": "+E)}Z&&this._invalidateMixinEntry(M);M&&(M.properties=k);e&&(C=O+";"+C);return C+X.join("; ")+";"};
Zi.prototype.detectMixin=Zi.prototype.detectMixin;Zi.prototype.transformStyle=Zi.prototype.JSC$11267_transformStyle;Zi.prototype.transformCustomStyle=Zi.prototype.transformCustomStyle;Zi.prototype.transformRules=Zi.prototype.transformRules;Zi.prototype.transformRule=Zi.prototype.transformRule;Zi.prototype.transformTemplate=Zi.prototype.transformTemplate;Zi.prototype._separator="_-_";Object.defineProperty(Zi.prototype,"invalidCallback",{get:function(){return Djd},
set:function(O){Djd=O}});var EN=new Zi,FeF=function(){this.customStyleInterface=null;EN.invalidCallback=rOr},tP=function(O){!O.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(O.customStyleInterface=window.ShadyCSS.CustomStyleInterface,O.customStyleInterface.transformCallback=function(x){EN.transformCustomStyle(x)},O.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){O.customStyleInterface.enqueued&&O.flushCustomStyles()})})};
_.b=FeF.prototype;_.b.prepareTemplate=function(O,x){tP(this);JO8(O)===""&&(zI$[x]=O,x=EN.transformTemplate(O,x),O._styleAst=x)};
_.b.flushCustomStyles=function(){tP(this);if(this.customStyleInterface){var O=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var x=0;x<O.length;x++){var e=this.customStyleInterface.getStyleForCustomStyle(O[x]);e&&EN.transformCustomStyle(e)}this.customStyleInterface.enqueued=!1}}};
_.b.styleSubtree=function(O,x){tP(this);x&&Ats(O,x);if(O.shadowRoot)for(this.styleElement(O),O=O.shadowRoot.children||O.shadowRoot.childNodes,x=0;x<O.length;x++)this.styleSubtree(O[x]);else for(O=O.children||O.childNodes,x=0;x<O.length;x++)this.styleSubtree(O[x])};
_.b.styleElement=function(O){tP(this);var x=O.localName,e;x?x.indexOf("-")>-1?e=x:e=O.getAttribute&&O.getAttribute("is")||"":e=O.is;x=zI$[e];if(!(x&&JO8(x)!==""||!x||H0L(x))){if(H0L(x)||x._applyShimValidatingVersion!==x._applyShimNextVersion)this.prepareTemplate(x,e),diw(x);if(O=O.shadowRoot)if(O=O.querySelector("style"))O.__cssRules=x._styleAst,O.textContent=ulm(x._styleAst)}};
_.b.styleDocument=function(O){tP(this);this.styleSubtree(document.body,O)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var qX=new FeF,Xsk=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(O,x){qX.flushCustomStyles();qX.prepareTemplate(O,x)},
prepareTemplateStyles:function(O,x,e){window.ShadyCSS.prepareTemplate(O,x,e)},
prepareTemplateDom:function(){},
styleSubtree:function(O,x){qX.flushCustomStyles();qX.styleSubtree(O,x)},
styleElement:function(O){qX.flushCustomStyles();qX.styleElement(O)},
styleDocument:function(O){qX.flushCustomStyles();qX.styleDocument(O)},
getComputedStyleValue:function(O,x){return M1r(O,x)},
flushCustomStyles:function(){qX.flushCustomStyles()},
nativeCss:niV,nativeShadow:ytr,cssBuild:My,disableRuntime:sH4};Xsk&&(window.ShadyCSS.CustomStyleInterface=Xsk)}window.ShadyCSS.ApplyShim=EN;var o0J;o0J=window.ShadyCSS;_.PP=g1(function(O){O=nXz(ON(O));var x=tU4?O:QlT(O),e=b_z(x),l={x:"pan-x",y:"pan-y",none:"none",all:"auto"};O=function(){return x.call(this)||this};
_.c(O,x);O.prototype.created=function(){};
O.prototype.__attributeReaction=function(C,Q,L){(this.__dataAttributes&&this.__dataAttributes[C]||C==="disable-upgrade")&&this.attributeChangedCallback(C,Q,L,null)};
O.prototype.setAttribute=function(C,Q){if(SAD&&!this._legacyForceObservedAttributes){var L=this.getAttribute(C);x.prototype.setAttribute.call(this,C,Q);this.__attributeReaction(C,L,String(Q))}else x.prototype.setAttribute.call(this,C,Q)};
O.prototype.removeAttribute=function(C){if(SAD&&!this._legacyForceObservedAttributes){var Q=this.getAttribute(C);x.prototype.removeAttribute.call(this,C);this.__attributeReaction(C,Q,null)}else x.prototype.removeAttribute.call(this,C)};
O.prototype._enableProperties=function(){this.__isUpgradeDisabled||x.prototype._enableProperties.call(this)};
O.prototype._canApplyPropertyDefault=function(C){return x.prototype._canApplyPropertyDefault.call(this,C)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(C))};
O.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(x.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
O.prototype.attached=function(){};
O.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(x.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
O.prototype.detached=function(){};
O.prototype.attributeChangedCallback=function(C,Q,L,k){Q!==L&&(C=="disable-upgrade"?this.__isUpgradeDisabled&&L==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.sZ)(this).isConnected&&this.connectedCallback()):(x.prototype.attributeChangedCallback.call(this,C,Q,L,k),this.attributeChanged(C,Q,L)))};
O.prototype.attributeChanged=function(){};
O.prototype._initializeProperties=function(){if($g&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var C=Object.getPrototypeOf(this);C.hasOwnProperty("__hasRegisterFinished")||(this._registered(),C.__hasRegisterFinished=!0);x.prototype._initializeProperties.call(this);this.root=this;this.created();SAD&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
O.prototype._takeAttributes=function(){for(var C=this.attributes,Q=0,L=C.length;Q<L;Q++){var k=C[Q];this.__attributeReaction(k.name,null,k.value)}};
O.prototype._registered=function(){};
O.prototype.ready=function(){this._ensureAttributes();x.prototype.ready.call(this)};
O.prototype._ensureAttributes=function(){};
O.prototype._applyListeners=function(){};
O.prototype.serialize=function(C){return this._serializeValue(C)};
O.prototype.deserialize=function(C,Q){return this._deserializeValue(C,Q)};
O.prototype.reflectPropertyToAttribute=function(C,Q,L){this._propertyToAttribute(C,Q,L)};
O.prototype.serializeValueToAttribute=function(C,Q,L){this._valueToNodeAttribute(L||this,C,Q)};
O.prototype.extend=function(C,Q){if(!C||!Q)return C||Q;for(var L=Object.getOwnPropertyNames(Q),k=0,M=void 0;k<L.length&&(M=L[k]);k++){var G=Object.getOwnPropertyDescriptor(Q,M);G&&Object.defineProperty(C,M,G)}return C};
O.prototype.mixin=function(C,Q){for(var L in Q)C[L]=Q[L];return C};
O.prototype.chainObject=function(C,Q){C&&Q&&C!==Q&&(C.__proto__=Q);return C};
O.prototype.instanceTemplate=function(C){C=this.constructor._contentForTemplate(C);return document.importNode(C,!0)};
O.prototype.fire=function(C,Q,L){L=L||{};Q=Q===null||Q===void 0?{}:Q;C=new Event(C,{bubbles:L.bubbles===void 0?!0:L.bubbles,cancelable:!!L.cancelable,composed:L.composed===void 0?!0:L.composed});C.detail=Q;(0,_.sZ)(L.node||this).dispatchEvent(C);return C};
O.prototype.listen=function(C,Q,L){C=C||this;var k=this.__boundListeners||(this.__boundListeners=new WeakMap),M=k.get(C);M||(M={},k.set(C,M));k=Q+L;M[k]||(M[k]=this._addMethodEventListenerToNode(C,Q,L,this))};
O.prototype.unlisten=function(C,Q,L){C=C||this;var k=this.__boundListeners&&this.__boundListeners.get(C);L=Q+L;var M=k&&k[L];M&&(this._removeEventListenerFromNode(C,Q,M),k[L]=null)};
O.prototype.setScrollDirection=function(C,Q){_.Ja(Q||this,l[C]||"auto")};
O.prototype.$$=function(C){return this.root.querySelector(C)};
O.prototype.distributeContent=function(){var C=_.G0(this);window.ShadyDOM&&C.shadowRoot&&ShadyDOM.flush()};
O.prototype.getEffectiveChildNodes=function(){return _.G0(this).getEffectiveChildNodes()};
O.prototype.queryDistributedElements=function(C){return _.G0(this).queryDistributedElements(C)};
O.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
O.prototype.getEffectiveTextContent=function(){for(var C=this.getEffectiveChildNodes(),Q=[],L=0,k;k=C[L];L++)k.nodeType!==Node.COMMENT_NODE&&Q.push(k.textContent);return Q.join("")};
O.prototype.queryEffectiveChildren=function(C){return(C=this.queryDistributedElements(C))&&C[0]};
O.prototype.queryAllEffectiveChildren=function(C){return this.queryDistributedElements(C)};
O.prototype.getContentChildNodes=function(C){return(C=this.root.querySelector(C||"slot"))?_.G0(C).getDistributedNodes():[]};
O.prototype.getContentChildren=function(C){return this.getContentChildNodes(C).filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
O.prototype.isLightDescendant=function(C){return this!==C&&(0,_.sZ)(this).contains(C)&&(0,_.sZ)(this).getRootNode()===(0,_.sZ)(C).getRootNode()};
O.prototype.isLocalDescendant=function(C){return this.root===(0,_.sZ)(C).getRootNode()};
O.prototype.scopeSubtree=function(C,Q){return tJL(C,Q===void 0?!1:Q)};
O.prototype.getComputedStyleValue=function(C){return o0J.getComputedStyleValue(this,C)};
O.prototype.debounce=function(C,Q,L){this._debouncers=this._debouncers||{};return this._debouncers[C]=_.Lp(this._debouncers[C],L>0?_.NC.after(L):j2,Q.bind(this))};
O.prototype.isDebouncerActive=function(C){this._debouncers=this._debouncers||{};C=this._debouncers[C];return!(!C||!C.isActive())};
O.prototype.flushDebouncer=function(C){this._debouncers=this._debouncers||{};(C=this._debouncers[C])&&C.flush()};
O.prototype.cancelDebouncer=function(C){this._debouncers=this._debouncers||{};(C=this._debouncers[C])&&C.cancel()};
O.prototype.async=function(C,Q){return Q>0?_.NC.run(C.bind(this),Q):~j2.run(C.bind(this))};
O.prototype.cancelAsync=function(C){C<0?j2.cancel(~C):_.NC.cancel(C)};
O.prototype.create=function(C,Q){C=document.createElement(C);if(Q)if(C.setProperties)C.setProperties(Q);else for(var L in Q)C[L]=Q[L];return C};
O.prototype.elementMatches=function(C,Q){return Nqz(Q||this,C)};
O.prototype.toggleAttribute=function(C,Q){var L=this;arguments.length===3&&(L=arguments[2]);arguments.length==1&&(Q=!L.hasAttribute(C));if(Q)return(0,_.sZ)(L).setAttribute(C,""),!0;(0,_.sZ)(L).removeAttribute(C);return!1};
O.prototype.toggleClass=function(C,Q,L){L=L||this;arguments.length==1&&(Q=!L.classList.contains(C));Q?L.classList.add(C):L.classList.remove(C)};
O.prototype.transform=function(C,Q){Q=Q||this;Q.style.webkitTransform=C;Q.style.transform=C};
O.prototype.translate3d=function(C,Q,L,k){this.transform("translate3d("+C+","+Q+","+L+")",k||this)};
O.prototype.arrayDelete=function(C,Q){if(Array.isArray(C)){if(Q=C.indexOf(Q),Q>=0)return C.splice(Q,1)}else if(Q=UZ(this,C).indexOf(Q),Q>=0)return this.splice(C,Q,1);return null};
O.prototype._logger=function(C,Q){Array.isArray(Q)&&Q.length===1&&Array.isArray(Q[0])&&(Q=Q[0]);switch(C){case "log":case "warn":case "error":console[C].apply(console,_.Kx(Q))}};
O.prototype._log=function(){this._logger("log",_.vw.apply(0,arguments))};
O.prototype._warn=function(){this._logger("warn",_.vw.apply(0,arguments))};
O.prototype._error=function(){this._logger("error",_.vw.apply(0,arguments))};
O.prototype._logf=function(C){return["[%s::%s]",this.is,C].concat(_.Kx(_.vw.apply(1,arguments)))};
_.Dy.Object.defineProperties(O.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var C=(0,_.sZ)(this).getRootNode();return C instanceof DocumentFragment?C.host:C}}});
_.Dy.Object.defineProperties(O,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return SAD&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],EVr(this.prototype)),this.__observedAttributes):e.call(this).concat("disable-upgrade")}}});
O.prototype.is="";return O});Polymer.FlattenedNodesObserver=wZz;Polymer.DomApi=O_N;Polymer.EventApi=o3;Polymer.dom=_.G0;Polymer.dom.matchesSelector=Nqz;Polymer.dom.flush=_.Gy;Polymer.dom.addDebouncer=_.kh;Polymer.DirMixin=QlT;Polymer.RenderStatus={beforeNextRender:_.yOi,afterNextRender:_.A_,flush:function(){for(;Ftr.length||k_.length;)GBr(Ftr),GBr(k_);LG=!1}};Polymer.LegacyElementMixin=_.PP;var yBR;yBR=MX._mutablePropertyChange;var Z_z={properties:{mutableData:Boolean},_shouldPropertyChange:function(O,x,e){return yBR(this,O,x,e,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(O,x,e){return yBR(this,O,x,e,!0)}};
Polymer.OptionalMutableDataBehavior=Z_z;var wML={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},$ir={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},giV=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},$ir),E04=(0,_.PP)(HTMLElement),g2N=function(O,x){O||console.warn("Polymer.Class requires `info` argument");x=x?x(E04):E04;x=i0r(O,x,O.behaviors);x.is=x.prototype.is=
O.is;return x};Polymer.Class=g2N;Polymer.mixinBehaviors=function(O,x){return i0r({},(0,_.PP)(x),O)};
Polymer.GenerateClassFromInfo=i0r;_.tY=function(O){var x=typeof O==="function"?O:_.tY.Class(O);O._legacyForceObservedAttributes&&(x.prototype._legacyForceObservedAttributes=O._legacyForceObservedAttributes);customElements.define(x.is,x);return x};
_.tY.Class=g2N;Polymer._polymerFn=_.tY;var tfk=window.onLegacyPolymerFunctionDefinedCallback;tfk&&tfk();var iBL={templatize:function(O,x){this._templatizerTemplate=O;this.ctor=x_(O,this,{mutableData:!!x,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(O){return new this.ctor(O)},
modelForElement:function(O){return Lt8(this._templatizerTemplate,O)}};Polymer.Templatizer=iBL;_.cP=(0,_.PP)(HTMLElement).prototype;Polymer.Base=_.cP;var xp8=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.GS=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.c(_.GS,PolymerFakeBaseClass);var Fp=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.c(Fp,PolymerFakeBaseClass);var e0m=Symbol("Rd"),Ali=[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 qx4=qx4||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},PVT;(function(O){function x(u,Y,J){var O8=f.get(u);if(!O8){if(!J)return;O8=new z;f.set(u,O8)}u=O8.get(Y);if(!u){if(!J)return;u=new z;O8.set(Y,u)}return u}
function e(u,Y,J){if(l(u,Y,J))return!0;Y=Z(Y);return Y!==null?e(u,Y,J):!1}
function l(u,Y,J){Y=x(Y,J,!1);return Y===void 0?!1:!!Y.has(u)}
function C(u,Y,J){if(l(u,Y,J))return Q(u,Y,J);Y=Z(Y);if(Y!==null)return C(u,Y,J)}
function Q(u,Y,J){Y=x(Y,J,!1);if(Y!==void 0)return Y.get(u)}
function L(u,Y){var J=k(u,Y);u=Z(u);if(u===null)return J;var O8=L(u,Y);if(O8.length<=0)return J;if(J.length<=0)return O8;Y=new r;u=[];J=_.T(J);for(var Xr=J.next();!Xr.done;Xr=J.next())Xr=Xr.value,Y.has(Xr)||(Y.add(Xr),u.push(Xr));J=_.T(O8);for(O8=J.next();!O8.done;O8=J.next())O8=O8.value,Y.has(O8)||(Y.add(O8),u.push(O8));return u}
function k(u,Y){u=x(u,Y,!1);var J=[];u&&u.forEach(function(O8,Xr){return J.push(Xr)});
return J}
function M(u){return u===void 0}
function G(u){return typeof u==="object"?u!==null:typeof u==="function"}
function X(u){return typeof u==="function"}
function y(u){return typeof u==="symbol"?u:String(u)}
function Z(u){var Y=Object.getPrototypeOf(u);if(typeof u!=="function"||u===W||Y!==W)return Y;var J=Object.getPrototypeOf(u.prototype);if(J==null||J===Object.prototype)return Y;J=J.constructor;return typeof J!=="function"||J===u?Y:J}
function E(){function u(){this._keys=[];this._values=[];this._cache=Y}
var Y={};u.prototype={get size(){return this._keys.length},has:function(J){return J===this._cache?!0:this._find(J)>=0?(this._cache=J,!0):!1},
get:function(J){var O8=this._find(J);if(O8>=0)return this._cache=J,this._values[O8]},
set:function(J,O8){this.delete(J);this._keys.push(J);this._values.push(O8);this._cache=J;return this},
delete:function(J){J=this._find(J);return J>=0?(this._keys.splice(J,1),this._values.splice(J,1),this._cache=Y,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Y},
forEach:function(J){for(var O8=this.size,Xr=0;Xr<O8;++Xr){var Fr=this._keys[Xr],mL=this._values[Xr];this._cache=Fr;J.call(this,mL,Fr,this)}},
_find:function(J){for(var O8=this._keys,Xr=O8.length,Fr=0;Fr<Xr;++Fr)if(O8[Fr]===J)return Fr;return-1}};
return u}
function P(){function u(){this._map=new z}
u.prototype={get size(){return this._map.length},has:function(Y){return this._map.has(Y)},
add:function(Y){this._map.set(Y,Y);return this},
delete:function(Y){return this._map.delete(Y)},
clear:function(){this._map.clear()},
forEach:function(Y,J){this._map.forEach(Y,J)}};
return u}
function U(){function u(){this._key=J()}
function Y(q$,KV){for(var VN=0;VN<KV;++VN)q$[VN]=Math.random()*255|0}
function J(){do{if(Xr)var q$=Xr.randomBytes(16);else typeof Uint8Array==="function"?(q$=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(q$):Y(q$,16)):(q$=Array(16),Y(q$,16));q$[6]=q$[6]&79|64;q$[8]=q$[8]&191|128;for(var KV="",VN=0;VN<16;++VN){var Pd=q$[VN];if(VN===4||VN===6||VN===8)KV+="-";Pd<16&&(KV+="0");KV+=Pd.toString(16).toLowerCase()}q$="@@WeakMap@@"+KV}while(Fr.call(mL,q$));mL[q$]=!0;return q$}
function O8(q$,KV){if(!Fr.call(q$,Zn)){if(!KV)return;Object.defineProperty(q$,Zn,{value:Object.create(null)})}return q$[Zn]}
var Xr=typeof global!=="undefined"&&typeof qx4==="object"&&typeof require==="function"&&require("crypto"),Fr=Object.prototype.hasOwnProperty,mL={},Zn=J();u.prototype={has:function(q$){return(q$=O8(q$,!1))?this._key in q$:!1},
get:function(q$){if(q$=O8(q$,!1))return q$[this._key]},
set:function(q$,KV){O8(q$,!0)[this._key]=KV;return this},
delete:function(q$){return(q$=O8(q$,!1))&&this._key in q$?delete q$[this._key]:!1},
clear:function(){this._key=J()}};
return u}
var W=Object.getPrototypeOf(Function),z=typeof Map==="function"?Map:E(),r=typeof Set==="function"?Set:P(),f=new (typeof WeakMap==="function"?WeakMap:U());O.decorate=function(u,Y,J,O8){if(M(O8)){if(M(J)){if(!Array.isArray(u))throw new TypeError;if(!X(Y))throw new TypeError;for(J=u.length-1;J>=0;--J)if(O8=(0,u[J])(Y),!M(O8)){if(!X(O8))throw new TypeError;Y=O8}return Y}if(!Array.isArray(u))throw new TypeError;if(!G(Y))throw new TypeError;J=y(J);for(O8=u.length-1;O8>=0;--O8)(0,u[O8])(Y,J)}else{if(Array.isArray(u))if(G(Y)){if(M(J))throw new TypeError;
if(!G(O8))throw new TypeError;}else throw new TypeError;else throw new TypeError;J=y(J);for(var Xr=u.length-1;Xr>=0;--Xr){var Fr=(0,u[Xr])(Y,J,O8);if(!M(Fr)){if(!G(Fr))throw new TypeError;O8=Fr}}return O8}};
O.metadata=function(u,Y){return function(J,O8){if(M(O8)){if(!X(J))throw new TypeError;x(J,void 0,!0).set(u,Y)}else{if(!G(J))throw new TypeError;O8=y(O8);x(J,O8,!0).set(u,Y)}}};
O.defineMetadata=function(u,Y){var J;if(G(Y))M(J)||(J=y(J));else throw new TypeError;x(Y,J,!0).set("parameters",u)};
O.hasMetadata=function(u,Y,J){if(G(Y))M(J)||(J=y(J));else throw new TypeError;return e(u,Y,J)};
O.hasOwnMetadata=function(u,Y,J){if(G(Y))M(J)||(J=y(J));else throw new TypeError;return l(u,Y,J)};
O.getMetadata=function(u,Y,J){if(G(Y))M(J)||(J=y(J));else throw new TypeError;return C(u,Y,J)};
O.getOwnMetadata=function(u,Y,J){if(G(Y))M(J)||(J=y(J));else throw new TypeError;return Q(u,Y,J)};
O.getMetadataKeys=function(u,Y){if(G(u))M(Y)||(Y=y(Y));else throw new TypeError;return L(u,Y)};
O.getOwnMetadataKeys=function(u,Y){if(G(u))M(Y)||(Y=y(Y));else throw new TypeError;return k(u,Y)};
O.deleteMetadata=function(u,Y,J){if(G(Y))M(J)||(J=y(J));else throw new TypeError;var O8=x(Y,J,!1);if(!M(O8)){if(!O8.delete(u))return!1;if(O8.size>0)return!0;u=f.get(Y);u.delete(J);if(u.size>0)return!0;f.delete(Y);return!0}};
(function(u){if(typeof u.Reflect!=="undefined"){if(u.Reflect!==O)for(var Y in O)u.Reflect[Y]=O[Y]}else u.Reflect=O})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(PVT||(PVT={}));var Hgi=self;var cBk=[0,_.zB,_.d4,_.zB];var Iad=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Iad,_.TH);var VfJ=_.yc(Iad,[0,_.vM,_.Yi,cBk,_.d4,_.JO]);var R92=[0,f0,-3,_.JO,_.vM,_.zB,_.i24,f0,xhp,NNT,mt,_.r4,_.zB,function(){return psN},
_.d4],psN=[0,_.Yi,function(){return R92},
_.vM,14,f0];_.fI(_.Xp,_.h0);_.b=_.Xp.prototype;_.b.start=function(){this.stop();this.usingListeners_=!1;var O=UjT(this),x=aaF(this);O&&!x&&this.JSC$11310_win_.mozRequestAnimationFrame?(this.JSC$11310_id_=_.ol(this.JSC$11310_win_,"MozBeforePaint",this.callback_),this.JSC$11310_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11310_id_=O&&x?O.call(this.JSC$11310_win_,this.callback_):this.JSC$11310_win_.setTimeout(t5k(this.callback_),20)};
_.b.stop=function(){if(this.isActive()){var O=UjT(this),x=aaF(this);O&&!x&&this.JSC$11310_win_.mozRequestAnimationFrame?GO(this.JSC$11310_id_):O&&x?x.call(this.JSC$11310_win_,this.JSC$11310_id_):this.JSC$11310_win_.clearTimeout(this.JSC$11310_id_)}this.JSC$11310_id_=null};
_.b.fire=function(){this.stop();this.JSC$11312_doAction_()};
_.b.isActive=function(){return this.JSC$11310_id_!=null};
_.b.JSC$11312_doAction_=function(){this.usingListeners_&&this.JSC$11310_id_&&GO(this.JSC$11310_id_);this.JSC$11310_id_=null;this.JSC$11310_listener_.call(this.handler_,_.vN())};
_.b.disposeInternal=function(){this.stop();_.Xp.superClass_.disposeInternal.call(this)};
var UjT=function(O){O=O.JSC$11310_win_;return O.requestAnimationFrame||O.webkitRequestAnimationFrame||O.mozRequestAnimationFrame||O.oRequestAnimationFrame||O.msRequestAnimationFrame||null},aaF=function(O){O=O.JSC$11310_win_;
return O.cancelAnimationFrame||O.cancelRequestAnimationFrame||O.webkitCancelRequestAnimationFrame||O.mozCancelRequestAnimationFrame||O.oCancelRequestAnimationFrame||O.msCancelRequestAnimationFrame||null};_.QI=function(O,x,e){_.h0.call(this);this.JSC$11313_listener_=e!=null?O.bind(e):O;this.JSC$11313_interval_=x;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11313_timer_=null};
_.c(_.QI,_.h0);_.b=_.QI.prototype;_.b.fire=function(O){this.args_=arguments;this.JSC$11313_timer_||this.pauseCount_?this.shouldFire_=!0:mj2(this)};
_.b.stop=function(){this.JSC$11313_timer_&&(_.CV.clearTimeout(this.JSC$11313_timer_),this.JSC$11313_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.b.pause=function(){this.pauseCount_++};
_.b.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11313_timer_||(this.shouldFire_=!1,mj2(this))};
_.b.disposeInternal=function(){_.h0.prototype.disposeInternal.call(this);this.stop()};
var mj2=function(O){O.JSC$11313_timer_=VK(function(){O.JSC$11313_timer_=null;O.shouldFire_&&!O.pauseCount_&&(O.shouldFire_=!1,mj2(O))},O.JSC$11313_interval_);
var x=O.args_;O.args_=null;O.JSC$11313_listener_.apply(null,x)};var sld=function(O,x){this.childIterator_=O[_.CV.Symbol.iterator]();this.mapFn_=x};
sld.prototype[Symbol.iterator]=function(){return this};
sld.prototype.next=function(){var O=this.childIterator_.next();return{value:O.done?void 0:this.mapFn_.call(void 0,O.value),done:O.done}};
var WeD=function(O,x){return new sld(O,x)};var h9d={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 F2i=function(O){var x=z94(O);if(!x)throw Error("Vd`"+O);return x},z94=function(O){var x={};
O=String(O);var e=O.charAt(0)=="#"?O:"#"+O;if(rBN.test(e))return x.hex=Lfr(e),x.type="hex",x;e=ZWL(O);return e.length?(x.hex=ONw(e[0],e[1],e[2]),x.type="rgb",x):h9d&&(O=h9d[O.toLowerCase()])?(x.hex=O,x.type="named",x):null},H_$=/#(.)(.)(.)/,Lfr=function(O){if(!rBN.test(O))throw Error("Xd`"+O);
O.length==4&&(O=O.replace(H_$,"#$1$1$2$2$3$3"));return O.toLowerCase()},X3L=function(O){O=Lfr(O);
O=parseInt(O.slice(1),16);return[O>>16,O>>8&255,O&255]},ONw=function(O,x,e){O=Number(O);
x=Number(x);e=Number(e);if(O!=(O&255)||x!=(x&255)||e!=(e&255))throw Error("Yd`"+O+"`"+x+"`"+e);x=O<<16|x<<8|e;return O<16?"#"+(16777216|x).toString(16).slice(1):"#"+x.toString(16)},rBN=/^#(?:[0-9a-f]{3}){1,2}$/i,Kez=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,ZWL=function(O){var x=O.match(Kez);
if(x){O=Number(x[1]);var e=Number(x[2]);x=Number(x[3]);if(O>=0&&O<=255&&e>=0&&e<=255&&x>=0&&x<=255)return[O,e,x]}return[]};var djN={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},xV=djN;xV=djN;var xYr,n0F,uvL;xYr=function(O,x){switch(x){case 1:return O%4!=0||O%100==0&&O%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
n0F=function(O,x,e,l,C){O=new Date(O,x,e);C=C||0;return O.valueOf()+(((l!==void 0?l:3)-C+7)%7-((O.getDay()+6)%7-C+7)%7)*864E5};
_.I3=function(O,x,e){typeof O==="number"?(this.date=uvL(O,x||0,e||1),YxN(this,e||1)):_.w7(O)?(this.date=uvL(O.getFullYear(),O.getMonth(),O.getDate()),YxN(this,O.getDate())):(this.date=new Date(_.vN()),O=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),YxN(this,O))};
uvL=function(O,x,e){x=new Date(O,x,e);O>=0&&O<100&&x.setFullYear(x.getFullYear()-1900);return x};
_.b=_.I3.prototype;_.b.firstDayOfWeek_=xV.FIRSTDAYOFWEEK;_.b.firstWeekCutOffDay_=xV.FIRSTWEEKCUTOFFDAY;_.b.clone=function(){var O=new _.I3(this.date);O.firstDayOfWeek_=this.firstDayOfWeek_;O.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return O};
_.b.getFullYear=function(){return this.date.getFullYear()};
_.b.getYear=function(){return this.getFullYear()};
_.b.getMonth=function(){return this.date.getMonth()};
_.b.getDate=function(){return this.date.getDate()};
_.b.getTime=function(){return this.date.getTime()};
_.b.getDay=function(){return this.date.getDay()};
_.b.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.b.getUTCMonth=function(){return this.date.getUTCMonth()};
_.b.getUTCDate=function(){return this.date.getUTCDate()};
_.b.getUTCDay=function(){return this.date.getDay()};
_.b.getUTCHours=function(){return this.date.getUTCHours()};
_.b.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.b.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.b.set=function(O){this.date=new Date(O.getFullYear(),O.getMonth(),O.getDate())};
_.b.setFullYear=function(O){this.date.setFullYear(O)};
_.b.setYear=function(O){this.setFullYear(O)};
_.b.setMonth=function(O){this.date.setMonth(O)};
_.b.setDate=function(O){this.date.setDate(O)};
_.b.setTime=function(O){this.date.setTime(O)};
_.b.setUTCFullYear=function(O){this.date.setUTCFullYear(O)};
_.b.setUTCMonth=function(O){this.date.setUTCMonth(O)};
_.b.setUTCDate=function(O){this.date.setUTCDate(O)};
_.b.add=function(O){if(O.years||O.months){var x=this.getMonth()+O.months+O.years*12,e=this.getYear()+Math.floor(x/12);x%=12;x<0&&(x+=12);var l=Math.min(xYr(e,x),this.getDate());this.setDate(1);this.setFullYear(e);this.setMonth(x);this.setDate(l)}O.days&&(e=this.getYear(),x=e>=0&&e<=99?-1900:0,O=new Date((new Date(e,this.getMonth(),this.getDate(),12)).getTime()+O.days*864E5),this.setDate(1),this.setFullYear(O.getFullYear()+x),this.setMonth(O.getMonth()),this.setDate(O.getDate()),YxN(this,O.getDate()))};
_.b.JSC$11326_toIsoString=function(O){var x=this.getFullYear(),e=x<0?"-":x>=1E4?"+":"";return[e+_.im(Math.abs(x),e?6:4),_.im(this.getMonth()+1,2),_.im(this.getDate(),2)].join(O?"-":"")};
_.b.equals=function(O){return!(!O||this.getYear()!=O.getYear()||this.getMonth()!=O.getMonth()||this.getDate()!=O.getDate())};
_.b.toString=function(){return this.JSC$11326_toIsoString()};
var YxN=function(O,x){O.getDate()!=x&&O.date.setUTCHours(O.date.getUTCHours()+(O.getDate()<x?1:-1))};
_.I3.prototype.valueOf=function(){return this.date.valueOf()};var pp=function(O,x,e,l,C){this.reversed=!!x;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!e;O&&VJ(this,O,l);this.depth=C!=void 0?C:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.fI(pp,QC);var VJ=function(O,x,e,l){if(O.node=x)O.tagType=typeof e==="number"?e:O.node.nodeType!=1?0:O.reversed?-1:1;typeof l==="number"&&(O.depth=l)};
_.b=pp.prototype;_.b.JSC$11341_copyFrom=function(O){this.node=O.node;this.tagType=O.tagType;this.depth=O.depth;this.reversed=O.reversed;this.constrained=O.constrained};
_.b.clone=function(){return new pp(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.b.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return bY;var O=this.node;var x=this.reversed?-1:1;if(this.tagType==x){var e=this.reversed?O.lastChild:O.firstChild;e?VJ(this,e):VJ(this,O,x*-1)}else(e=this.reversed?O.previousSibling:O.nextSibling)?VJ(this,e):VJ(this,O.parentNode,x*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(O=this.node)?T6(O):bY};
_.b.equals=function(O){return O.node==this.node&&(!this.node||O.tagType==this.tagType)};
_.b.splice=function(O){var x=this.node,e=this.reversed?1:-1;this.tagType==e&&(this.tagType=e*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;pp.prototype.next.call(this);this.reversed=!this.reversed;e=_.vi(arguments[0])?arguments[0]:arguments;for(var l=e.length-1;l>=0;l--)_.U5(e[l],x);_.Um(x)};var BP3=function(){},R3=function(O){for(var x=[],e=O.getTextRangeCount(),l=0;l<e;l++)x.push(O.getTextRange(l));
return x};
BP3.prototype.isReversed=function(){return!1};
BP3.prototype.getWindow=function(){return nu(_.BX(this.JSC$11343_getStartNode()))};
var v0D=function(O,x){pp.call(this,O,x,!0)};
_.fI(v0D,pp);var UN=function(O,x,e,l,C){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!C;if(O){this.startNode_=O;this.startOffset_=x;this.endNode_=e;this.endOffset_=l;if(O.nodeType==1&&O.tagName!="BR")if(O=O.childNodes,x=O[x])this.startNode_=x,this.startOffset_=0;else{O.length&&(this.startNode_=_.zr(O));var Q=!0}e.nodeType==1&&((this.endNode_=e.childNodes[l])?this.endOffset_=0:this.endNode_=e)}pp.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);Q&&this.next()};
_.fI(UN,v0D);_.b=UN.prototype;_.b.JSC$11349_getStartNode=function(){return this.startNode_};
_.b.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)};
_.b.next=function(){return this.isLast()?bY:UN.superClass_.next.call(this)};
_.b.JSC$11341_copyFrom=function(O){this.startNode_=O.startNode_;this.endNode_=O.endNode_;this.startOffset_=O.startOffset_;this.endOffset_=O.endOffset_;this.isReversed_=O.isReversed_;UN.superClass_.JSC$11341_copyFrom.call(this,O)};
_.b.clone=function(){var O=new UN(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);O.JSC$11341_copyFrom(this);return O};var faJ=function(){};
faJ.prototype.__iterator__=function(){return new UN(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var a3=function(O){this.range_=O};
_.fI(a3,faJ);var JB2=function(O){var x=_.BX(O).createRange();if(O.nodeType==3)x.setStart(O,0),x.setEnd(O,O.length);else if(Vf(O)||O.nodeType==3){for(var e,l=O;(e=l.firstChild)&&(Vf(e)||e.nodeType==3);)l=e;x.setStart(l,0);for(l=O;(e=l.lastChild)&&(Vf(e)||e.nodeType==3);)l=e;x.setEnd(l,l.nodeType==1?l.childNodes.length:l.length)}else e=O.parentNode,O=Array.prototype.indexOf.call(e.childNodes,O),x.setStart(e,O),x.setEnd(e,O+1);return x},wsJ=function(O,x,e,l){var C=_.BX(O).createRange();
C.setStart(O,x);C.setEnd(e,l);return C};
_.b=a3.prototype;_.b.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.b.getContainer=function(){return this.range_.commonAncestorContainer};
_.b.compareBrowserRangeEndpoints=function(O,x,e){return this.range_.compareBoundaryPoints(e==1?x==1?_.CV.Range.START_TO_START:_.CV.Range.START_TO_END:x==1?_.CV.Range.END_TO_START:_.CV.Range.END_TO_END,O)};
_.b.isCollapsed=function(){return this.range_.collapsed};
_.b.select=function(O){this.selectInternal(nu(_.BX(this.range_.startContainer)).getSelection(),O)};
_.b.selectInternal=function(O){O.removeAllRanges();O.addRange(this.range_)};
_.b.insertNode=function(O,x){var e=this.range_.cloneRange();e.collapse(x);e.insertNode(O);e.detach();return O};
_.b.collapse=function(O){this.range_.collapse(O)};_.fI(op,a3);op.prototype.selectInternal=function(O,x){!x||this.isCollapsed()?op.superClass_.selectInternal.call(this,O,x):(O.collapse(this.range_.endContainer,this.range_.endOffset),O.extend(this.range_.startContainer,this.range_.startOffset))};_.fI(yS,a3);yS.prototype.compareBrowserRangeEndpoints=function(O,x,e){return yS.superClass_.compareBrowserRangeEndpoints.call(this,O,x,e)};
yS.prototype.selectInternal=function(O,x){x?O.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):O.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Sxk=function(O){return _.gC?new yS(O):_.No?new op(O):new a3(O)};var mi=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},jl2;
_.fI(mi,BP3);jl2=function(O,x){var e=new mi;e.browserRangeWrapper_=O;e.isReversed_=!!x;return e};
_.NPd=function(O){O=_.gC?new yS(JB2(O)):_.No?new op(JB2(O)):new a3(JB2(O));return jl2(O)};
_.sN=function(O,x,e,l){var C=new mi;C.isReversed_=g04(O,x,e,l);if(_.Tl(O)&&!Vf(O)){var Q=O.parentNode;x=Array.prototype.indexOf.call(Q.childNodes,O);O=Q}_.Tl(e)&&!Vf(e)&&(Q=e.parentNode,l=Array.prototype.indexOf.call(Q.childNodes,e),e=Q);C.isReversed_?(C.startNode_=e,C.startOffset_=l,C.endNode_=O,C.endOffset_=x):(C.startNode_=O,C.startOffset_=x,C.endNode_=e,C.endOffset_=l);return C};
_.b=mi.prototype;_.b.clone=function(){var O=new mi;O.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();O.startNode_=this.startNode_;O.startOffset_=this.startOffset_;O.endNode_=this.endNode_;O.endOffset_=this.endOffset_;O.isReversed_=this.isReversed_;return O};
_.b.JSC$11343_getType=function(){return"text"};
_.b.getBrowserRangeObject=function(){return WP(this).range_};
_.b.getTextRangeCount=function(){return 1};
_.b.getTextRange=function(){return this};
var WP=function(O){var x;if(!(x=O.browserRangeWrapper_)){x=O.JSC$11343_getStartNode();var e=O.JSC$11343_getStartOffset(),l=O.JSC$11343_getEndNode(),C=O.JSC$11343_getEndOffset();x=_.gC?new yS(wsJ(x,e,l,C)):_.No?new op(wsJ(x,e,l,C)):new a3(wsJ(x,e,l,C));x=O.browserRangeWrapper_=x}return x};
_.b=mi.prototype;_.b.getContainer=function(){return WP(this).getContainer()};
_.b.JSC$11343_getStartNode=function(){return this.startNode_||(this.startNode_=WP(this).range_.startContainer)};
_.b.JSC$11343_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=WP(this).range_.startOffset};
_.b.JSC$11343_getEndNode=function(){return this.endNode_||(this.endNode_=WP(this).range_.endContainer)};
_.b.JSC$11343_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=WP(this).range_.endOffset};
_.b.isReversed=function(){return this.isReversed_};
_.b.JSC$11343_containsRange=function(O,x){if(O.JSC$11343_getType()=="text"){var e=WP(this);O=WP(O);x=x&&!O.isCollapsed();O=O.range_;e=x?e.compareBrowserRangeEndpoints(O,0,1)>=0&&e.compareBrowserRangeEndpoints(O,1,0)<=0:e.compareBrowserRangeEndpoints(O,0,0)>=0&&e.compareBrowserRangeEndpoints(O,1,1)<=0}else e=!1;return e};
_.b.isCollapsed=function(){return WP(this).isCollapsed()};
_.b.JSC$11343_getText=function(){return WP(this).range_.toString()};
_.b.__iterator__=function(){return new UN(this.JSC$11343_getStartNode(),this.JSC$11343_getStartOffset(),this.JSC$11343_getEndNode(),this.JSC$11343_getEndOffset())};
_.b.select=function(){WP(this).select(this.isReversed_)};
_.b.JSC$11343_removeContents=function(){var O=WP(this).range_;O.extractContents();if(O.startContainer.hasChildNodes()&&(O=O.startContainer.childNodes[O.startOffset])){var x=O.previousSibling;oGT(O)==""&&_.Um(O);x&&oGT(x)==""&&_.Um(x)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.b.insertNode=function(O,x){O=WP(this).insertNode(O,x);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return O};
_.b.collapse=function(O){O=this.isReversed()?!O:O;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(O);O?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var $jd=function(){};
_.fI($jd,BP3);$jd.prototype.JSC$11343_containsRange=function(O,x){var e=R3(this);O=R3(O);return(x?Ct:_.xe7)(O,function(l){return Ct(e,function(C){return C.JSC$11343_containsRange(l,x)})})};
$jd.prototype.insertNode=function(O,x){x?_.Rs(O,this.JSC$11343_getStartNode()):_.U5(O,this.JSC$11343_getEndNode());return O};var i_p,O7D=an().JSC$9321_document_.documentElement;i_p=O7D.requestFullscreen?"fullscreenchange":O7D.webkitRequestFullscreen?"webkitfullscreenchange":O7D.mozRequestFullScreen?"mozfullscreenchange":O7D.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var x5N=function(){var O=an().JSC$9321_document_;return!!(O.webkitIsFullScreen||O.mozFullScreen||O.msFullscreenElement||O.fullscreenElement)};var hP=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.fI(hP,$jd);_.b=hP.prototype;_.b.clone=function(){var O=new hP;O.browserRanges_=_.Bi(this.browserRanges_);return O};
_.b.JSC$11343_getType=function(){return"mutli"};
_.b.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.b.getTextRangeCount=function(){return this.browserRanges_.length};
_.b.getTextRange=function(O){this.ranges_[O]||(this.ranges_[O]=jl2(Sxk(this.browserRanges_[O])));return this.ranges_[O]};
_.b.getContainer=function(){if(!this.container_){for(var O=[],x=this.getTextRangeCount(),e=0;e<x;e++)O.push(this.getTextRange(e).getContainer());this.container_=kJk.apply(null,O)}return this.container_};
var zy=function(O){O.sortedRanges_||(O.sortedRanges_=R3(O),O.sortedRanges_.sort(function(x,e){var l=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();var C=e.JSC$11343_getStartNode();e=e.JSC$11343_getStartOffset();return l==C&&x==e?0:g04(l,x,C,e)?1:-1}));
return O.sortedRanges_};
_.b=hP.prototype;_.b.JSC$11343_getStartNode=function(){return zy(this)[0].JSC$11343_getStartNode()};
_.b.JSC$11343_getStartOffset=function(){return zy(this)[0].JSC$11343_getStartOffset()};
_.b.JSC$11343_getEndNode=function(){return _.zr(zy(this)).JSC$11343_getEndNode()};
_.b.JSC$11343_getEndOffset=function(){return _.zr(zy(this)).JSC$11343_getEndOffset()};
_.b.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.b.JSC$11343_getText=function(){return R3(this).map(function(O){return O.JSC$11343_getText()}).join("")};
_.b.__iterator__=function(){return new rv(this)};
_.b.select=function(){var O=this.getWindow().getSelection();O.removeAllRanges();for(var x=this.getTextRangeCount(),e=0;e<x;e++)O.addRange(this.getTextRange(e).getBrowserRangeObject())};
_.b.JSC$11343_removeContents=function(){R3(this).forEach(function(O){O.JSC$11343_removeContents()})};
_.b.collapse=function(O){if(!this.isCollapsed()){var x=O?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;x.collapse(O);this.ranges_=[x];this.sortedRanges_=[x];this.browserRanges_=[x.getBrowserRangeObject()]}};
var rv=function(O){this.iterators_=null;this.currentIdx_=0;O&&(this.iterators_=zy(O).map(function(x){return _.M6$(x)}));
pp.call(this,O?this.JSC$11349_getStartNode():null,!1,!0)};
_.fI(rv,v0D);_.b=rv.prototype;_.b.JSC$11349_getStartNode=function(){return this.iterators_[0].JSC$11349_getStartNode()};
_.b.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.b.next=function(){for(;this.currentIdx_<this.iterators_.length;){var O=this.iterators_[this.currentIdx_],x=O.next();if(x.done)this.currentIdx_++;else return VJ(this,O.node,O.tagType,O.depth),x}return bY};
_.b.JSC$11341_copyFrom=function(O){this.iterators_=_.Bi(O.iterators_);rv.superClass_.JSC$11341_copyFrom.call(this,O)};
_.b.clone=function(){var O=new rv(null);O.JSC$11341_copyFrom(this);return O};var ePk,g04;_.NR=function(){var O=window.getSelection();return O&&ePk(O)};
ePk=function(O){var x=!1;if(O.createRange)try{var e=O.createRange()}catch(C){return null}else if(O.rangeCount){if(O.rangeCount>1){e=new hP;x=O.rangeCount;for(var l=0;l<x;l++)e.browserRanges_.push(O.getRangeAt(l));return e}e=O.getRangeAt(0);x=g04(O.anchorNode,O.anchorOffset,O.focusNode,O.focusOffset)}else return null;return jl2(Sxk(e),x)};
_.HP=function(O,x){return _.sN(O,x,O,x)};
_.Kp=function(O,x,e,l){return _.sN(O,x,e,l)};
g04=function(O,x,e,l){if(O==e)return l<x;var C;if(O.nodeType==1&&x)if(C=O.childNodes[x])O=C,x=0;else if(_.$8(O,e))return!0;if(e.nodeType==1&&l)if(C=e.childNodes[l])e=C,l=0;else if(_.$8(e,O))return!1;return(LO$(O,e)||x-l)>0};var dv=function(){_.tf.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.z8)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.z8)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.z8)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.z8)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.z8)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.z8)(this.dispatchProgressEvent_,this)};
_.fI(dv,_.tf);dv.prototype.abort=function(){try{this.reader_.abort()}catch(O){throw new o74(O,"aborting read");}};
dv.prototype.getError=function(){return this.reader_.error&&new o74(this.reader_.error,"reading file")};
dv.prototype.dispatchProgressEvent_=function(O){this.dispatchEvent(new ysF(O,this))};
dv.prototype.disposeInternal=function(){dv.superClass_.disposeInternal.call(this);delete this.reader_};
var CkF=function(O){var x=new dv,e=llN(x);x.reader_.readAsArrayBuffer(O);return e},Q2J=function(O){var x=new dv,e=llN(x);
x.reader_.readAsDataURL(O);return e},llN=function(O){var x=new fr;
O.listen("loadend",_.b_(function(e,l){var C=l.reader_.result,Q=l.getError();C==null||Q?e.errback(Q):e.callback(C);l.dispose()},x,O));
return x};var np=function(){_.tf.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11383_eventHandler_=new _.Ev(this);this.JSC$11383_isInitialized_=!1};
_.fI(np,_.tf);var b7k=new _.Fz("d"),TST=new _.Fz("beforedragstart"),LuD=new _.Fz("dragstart"),k7N=new _.Fz("beforedragmove"),AIL=new _.Fz("dragmove"),Me$=new _.Fz("beforedragend"),D5$=new _.Fz("dragend"),G7$=new _.Fz("e");np.prototype.isDragging=function(){return!!this.JSC$11383_dragger_};
var FuL=function(O,x){x.dlgGrowthDirection_=0;x.dlgDragHoverClass_=void 0;x.dlgDragPermission=0;O.dragLists_.push(x)},XeR=function(O,x){O.getHandleForDragItem_=x};
np.prototype.init=function(){if(!this.JSC$11383_isInitialized_){for(var O=this.dragLists_.length,x=0;x<O;x++)for(var e=_.as(this.dragLists_[x]),l=e.length,C=0;C<l;++C){var Q=e[C],L=this.getHandleForDragItem_(Q),k=_.N$(L);this.dragItemForHandle_[k]=Q;this.dragItemHoverClasses_&&(this.JSC$11383_eventHandler_.listen(Q,"mouseover",this.handleDragItemMouseover_),this.JSC$11383_eventHandler_.listen(Q,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11383_eventHandler_.listen(L,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11383_eventHandler_.listen(L,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(Q);this.JSC$11383_eventHandler_.listen(L,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11383_isInitialized_=!0}};
np.prototype.disposeInternal=function(){this.JSC$11383_eventHandler_.dispose();for(var O=this.dragLists_.length,x=0;x<O;x++){var e=this.dragLists_[x];e.dlgGrowthDirection_=void 0;e.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;ozL(this);np.superClass_.disposeInternal.call(this)};
var yIN=function(O,x){for(var e=O.dragLists_.length,l=0;l<e;l++){var C=O.dragLists_[l];C.dlgBounds_=o4L(C)}e=O.dragItems_.length;for(l=0;l<e;l++)C=O.dragItems_[l],C!=x&&(C.dlgBounds_=o4L(C))};
_.b=np.prototype;
_.b.handlePotentialDragStart_=function(O){var x=_.N$(O.currentTarget);x=this.dragItemForHandle_[x];if(x.parentElement.dlgDragPermission!=2){this.currDragItem_=x;a:{x=this.currDragItem_;for(var e=x.cloneNode(!0),l=a9("TEXTAREA",x),C=a9("TEXTAREA",e),Q=0;Q<l.length;Q++)C[Q].value=l[Q].value;switch(x.tagName){case "TR":x=_.cS("TABLE",null,_.cS("TBODY",null,e));break a;case "TD":case "TH":x=_.cS("TABLE",null,_.cS("TBODY",null,_.cS("TR",null,e)));break a;case "TEXTAREA":e.value=x.value;default:x=e;break a}x=
void 0}this.draggerEl_=x;this.draggerElClasses_&&Yu(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.BX(this.currDragItem_).body.appendChild(this.draggerEl_);e=_.vX(this.currDragItem_);x=this.draggerEl_;l=_.vX(x);if(e instanceof _.dc){var L=e.y;e=e.x}z3(x,x.offsetLeft+(e-l.x),x.offsetTop+(Number(L)-l.y));this.JSC$11383_dragger_=new _.rV(this.draggerEl_);_.Xop(this.JSC$11383_dragger_,this.hysteresisDistance_);
_.ol(this.JSC$11383_dragger_,"start",this.handleDragStart_,!1,this);_.ol(this.JSC$11383_dragger_,"end",this.handleDragEnd_,!1,this);_.ol(this.JSC$11383_dragger_,"earlycancel",this.JSC$11385_cleanup_,!1,this);this.dispatchEvent(new uG(b7k,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_));this.JSC$11383_dragger_.startDrag(O)}};
_.b.handleDragStart_=function(O){if(this.dispatchEvent(new uG(TST,this,O.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Qn4(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Yu(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var x=Pt3(this.draggerEl_);this.draggerEl_.halfWidth=x.width/2;this.draggerEl_.halfHeight=x.height/2;x=this.draggerEl_.getBoundingClientRect();
var e=O.clientY,l=o_4(this.JSC$11383_dragger_,O.clientX);if(l>x.right){var C=this.currDragItem_.getBoundingClientRect();this.JSC$11383_dragger_.deltaX=l-(l-C.left)/C.width*x.width}e=y_N(this.JSC$11383_dragger_,e);e>x.bottom&&(this.JSC$11383_dragger_.deltaY+=e-x.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";yIN(this,this.currDragItem_);this.currDragItem_.style.display="";_.ol(this.JSC$11383_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new uG(LuD,
this,O.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_))}else O.preventDefault(),this.JSC$11385_cleanup_()};
_.b.handleDragMove_=function(O){var x=_.vX(this.draggerEl_);x=new _.dc(x.x+this.draggerEl_.halfWidth,x.y+this.draggerEl_.halfHeight);a:{var e=null;if(this.currDragItem_.style.display!="none"){e=this.currDragItem_.parentNode;var l=o4L(e);if(Z7$(x,l))break a}l=this.dragLists_.length;for(var C=0;C<l;C++){var Q=this.dragLists_[C];if(Q!=e&&Z7$(x,Q.dlgBounds_)){e=Q;break a}}e=null}if(e){if(e==null)throw Error("Zd");l=0;C=!1;Q=void 0;switch(e.dlgGrowthDirection_){case 0:l=x.y;var L=EzJ;var k=ted;break;case 4:C=
!0;case 2:l=x.x;L=q1$;k=ted;break;case 5:C=!0;case 3:l=x.x,L=Pkz,k=cIR}for(var M=null,G,X=_.as(e),y=X.length,Z=0;Z<y;Z++){var E=X[Z];if(E!=this.currDragItem_){var P=L(E.dlgBounds_);if(C){var U=IlR(E,x);Q===void 0&&(Q=U);k(l,P)&&(G==void 0||U<Q||U==Q&&(k(P,G)||P==G))&&(M=E,G=P);U<Q&&(Q=U)}else k(l,P)&&(G==void 0||k(P,G))&&(M=E,G=P)}}L=M!==null&&IlR(M,x)>Q?null:M}else L=null;if(!this.dispatchEvent(new uG(k7N,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_,x,e,L)))return!1;if(e&&e.dlgDragPermission!=
1)this.currDragItem_.parentNode==e&&_.Qn4(this.currDragItem_)==L||e.insertBefore(this.currDragItem_,L),this.currDragItem_.style.display="",e.dlgDragHoverClass_&&_.uV(e,e.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",k=this.dragLists_.length,G=0;G<k;G++)l=this.dragLists_[G],l.dlgDragHoverClass_&&_.dP(l,l.dlgDragHoverClass_);e!=this.currHoverList_&&(this.currHoverList_=e,yIN(this,this.currDragItem_));this.dispatchEvent(new uG(AIL,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_,
x,e,L));return!1};
_.b.JSC$11385_cleanup_=function(){ozL(this);this.JSC$11383_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var O=this.dragLists_.length,x=0;x<O;x++)this.dragLists_[x].dlgBounds_=null;O=this.dragItems_.length;for(x=0;x<O;x++)this.dragItems_[x].dlgBounds_=null};
_.b.handleDragEnd_=function(O){if(!this.dispatchEvent(new uG(Me$,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_)))return!1;ozL(this);this.dispatchEvent(new uG(D5$,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_));this.JSC$11385_cleanup_();return!0};
var ozL=function(O){_.Lf(O.JSC$11383_dragger_);var x=O.draggerEl_&&O.draggerEl_.parentElement;O.draggerEl_&&_.Um(O.draggerEl_);O.currDragItem_&&O.currDragItem_.style.display=="none"&&(O.origList_.insertBefore(O.currDragItem_,O.origNextItem_),O.currDragItem_.style.display="");O.currDragItemClasses_&&O.currDragItem_?GCd(O.currDragItem_,O.currDragItemClasses_||[]):O.currDragItem_&&(O.currDragItem_.style.visibility="");for(var e=O.dragLists_.length,l=0;l<e;l++){var C=O.dragLists_[l];C.dlgDragHoverClass_&&
_.dP(C,C.dlgDragHoverClass_)}x&&O.dispatchEvent(new uG(G7$,O,null,O.currDragItem_,O.draggerEl_,O.JSC$11383_dragger_))};
_.b=np.prototype;_.b.getHandleForDragItem_=function(O){return O};
_.b.handleDragItemMouseover_=function(O){Yu(O.currentTarget,this.dragItemHoverClasses_||[])};
_.b.handleDragItemMouseout_=function(O){GCd(O.currentTarget,this.dragItemHoverClasses_||[])};
_.b.handleDragItemHandleMouseover_=function(O){Yu(O.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.b.handleDragItemHandleMouseout_=function(O){GCd(O.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Z7$=function(O,x){return O.x>x.left&&O.x<x.left+x.width&&O.y>x.top&&O.y<x.top+x.height},IlR=function(O,x){O=O.dlgBounds_;
return Math.abs(x.y-(O.top+(O.height-1)/2))},EzJ=function(O){return O.top+O.height-1},q1$=function(O){return O.left+O.width-1},Pkz=function(O){return O.left||0},ted=function(O,x){return O<x},cIR=function(O,x){return O>x},uG=function(O,x,e,l,C,Q){_.Xz.call(this,O);
this.event=e;this.currDragItem=l;this.draggerEl=C;this.JSC$11387_dragger=Q};
_.fI(uG,_.Xz);_.fI(qy,_.h0);var VeT=new _.dc(0,0);qy.prototype.JSC$11391_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
qy.prototype.JSC$11391_onMouseMove=function(O){var x=this.containerIsActuallyContent_?VeT:Ud(an(this.containerNode_)),e=this.horizontalScrolling_?this.calculateScrollDelta(O.clientX+x.x,this.scrollBounds_.left,this.scrollBounds_.width):0,l=this.calculateScrollDelta(O.clientY+x.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=e;this.scrollDelta_.y=l;!(e=!e&&!l)&&(e=this.constrainScroll_)&&(e=O.clientX+x.x,O=O.clientY+x.y,x=this.containerBounds_,e=!(x.left<=e&&x.left+x.width>=
e&&x.top<=O&&x.top+x.height>=O));e?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
qy.prototype.calculateScrollDelta=function(O,x,e){var l=0;O<x?l=-8:O>x+e&&(l=8);return l};
qy.prototype.disposeInternal=function(){qy.superClass_.disposeInternal.call(this);this.JSC$11389_eventHandler_.dispose();this.scrollTimer_.dispose()};var pe$={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"}}},Yh=pe$;Yh=pe$;var BP={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 RPJ=function(){},rb=function(O){if(typeof O=="number"){var x=new RPJ;
x.standardOffset_=O;var e=O;if(e==0)e="Etc/GMT";else{var l=["Etc/GMT",e<0?"-":"+"];e=Math.abs(e);l.push(Math.floor(e/60)%100);e%=60;e!=0&&l.push(":",_.im(e,2));e=l.join("")}x.timeZoneId_=e;e=O;e==0?e="UTC":(l=["UTC",e<0?"+":"-"],e=Math.abs(e),l.push(Math.floor(e/60)%100),e%=60,e!=0&&l.push(":",e),e=l.join(""));O=U5d(O);x.tzNames_=[e,e];x.tzNamesExt_={STD_LONG_NAME_GMT:O,STD_GENERIC_LOCATION:O};x.transitions_=[];return x}x=new RPJ;x.timeZoneId_=O.id;x.standardOffset_=-O.std_offset;x.tzNames_=O.names;
x.tzNamesExt_=O.names_ext;x.transitions_=O.transitions;return x},U5d=function(O){var x=["GMT"];
x.push(O<=0?"+":"-");O=Math.abs(O);x.push(_.im(Math.floor(O/60)%100,2),":",_.im(O%60,2));return x.join("")},alF=function(O,x){x=Date.UTC(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate(),x.getUTCHours(),x.getUTCMinutes())/36E5;
for(var e=0;e<O.transitions_.length&&x>=O.transitions_[e];)e+=2;return e==0?0:O.transitions_[e-1]},m5R=function(O,x){O=O.standardOffset_-alF(O,x);
return O===-1440?0:O};var H1=function(O,x){this.patternParts_=[];this.JSC$11402_dateTimeSymbols_=x||xV;typeof O=="number"?s2T(this,O):Wud(this,O)},hPR=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],vP=function(O){return O.getHours?O.getHours():0},Wud=function(O,x){for(g5r&&(x=x.replace(/\u200f/g,""));x;){for(var e=x,l=0;l<hPR.length;++l){var C=x.match(hPR[l]);
if(C){var Q=C[0];x=x.substring(Q.length);l==0&&(Q=="''"?Q="'":(Q=Q.substring(1,C[1]=="'"?Q.length-1:Q.length),Q=Q.replace(/''/g,"'")));O.patternParts_.push({text:Q,type:l});break}}if(e===x)throw Error("$d`"+x);}};
H1.prototype.format=function(O,x){if(!O)throw Error("ae");var e=x?(O.getTimezoneOffset()-m5R(x,O))*6E4:0,l=e?new Date(O.getTime()+e):O,C=l;x&&l.getTimezoneOffset()!=O.getTimezoneOffset()&&(l=new Date(l.getTime()+(l.getTimezoneOffset()-O.getTimezoneOffset())*6E4),C=new Date(O.getTime()+(e+(e>0?-864E5:864E5))));e=[];for(var Q=0;Q<this.patternParts_.length;++Q){var L=this.patternParts_[Q].text;1==this.patternParts_[Q].type?e.push(zP$(this,L,O,l,C,x)):e.push(L)}return e.join("")};
var s2T=function(O,x){if(x<4)var e=O.JSC$11402_dateTimeSymbols_.DATEFORMATS[x];else if(x<8)e=O.JSC$11402_dateTimeSymbols_.TIMEFORMATS[x-4];else if(x<12)e=O.JSC$11402_dateTimeSymbols_.DATETIMEFORMATS[x-8],e=e.replace("{1}",O.JSC$11402_dateTimeSymbols_.DATEFORMATS[x-8]),e=e.replace("{0}",O.JSC$11402_dateTimeSymbols_.TIMEFORMATS[x-8]);else if(x===12)e=O.JSC$11402_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(x===13)e=O.JSC$11402_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{s2T(O,10);return}Wud(O,e)},fp=function(O,x){x=String(x);
O=O.JSC$11402_dateTimeSymbols_||xV;if(O.ZERODIGIT!==void 0&&!N_r){for(var e=[],l=0;l<x.length;l++){var C=x.charCodeAt(l);e.push(48<=C&&C<=57?String.fromCharCode(O.ZERODIGIT+C-48):x.charAt(l))}x=e.join("")}return x},N_r=!1,g5r=!1,H7R=function(O,x,e,l){e=e.getFullYear();
e<=0&&l&&(e=1-e);return fp(O,rID(e,x))},rID=function(O,x){x==2&&(O%=100);
O<0&&x++;return _.im(O,x)},JP=function(O){if(!(O.getHours&&O.getSeconds&&O.getMinutes))throw Error("be");
},KuR=function(O,x){JP(x);
x=vP(x);return O.JSC$11402_dateTimeSymbols_.AMPMS[x>=12&&x<24?1:0]},zP$=function(O,x,e,l,C,Q){var L=x.length;
switch(x.charAt(0)){case "G":return e=l.getFullYear()>0?1:0,L>=4?O.JSC$11402_dateTimeSymbols_.ERANAMES[e]:O.JSC$11402_dateTimeSymbols_.ERAS[e];case "y":return H7R(O,L,l,!0);case "Y":return e=(new Date(n0F(l.getFullYear(),l.getMonth(),l.getDate(),O.JSC$11402_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,O.JSC$11402_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),L==2&&(e%=100),fp(O,rID(e,L));case "u":return H7R(O,L,l,!1);case "M":a:switch(e=l.getMonth(),L){case 5:L=O.JSC$11402_dateTimeSymbols_.NARROWMONTHS[e];
break a;case 4:L=O.JSC$11402_dateTimeSymbols_.MONTHS[e];break a;case 3:L=O.JSC$11402_dateTimeSymbols_.SHORTMONTHS[e];break a;default:L=fp(O,_.im(e+1,L))}return L;case "k":return JP(C),fp(O,_.im(vP(C)||24,L));case "S":return fp(O,(C.getMilliseconds()/1E3).toFixed(Math.min(3,L)).slice(2)+(L>3?_.im(0,L-3):""));case "E":return e=l.getDay(),L>=4?O.JSC$11402_dateTimeSymbols_.WEEKDAYS[e]:O.JSC$11402_dateTimeSymbols_.SHORTWEEKDAYS[e];case "a":return KuR(O,C);case "b":return KuR(O,C);case "B":return KuR(O,
C);case "h":return JP(C),fp(O,_.im(vP(C)%12||12,L));case "K":return JP(C),fp(O,_.im(vP(C)%12,L));case "H":return JP(C),fp(O,_.im(vP(C),L));case "c":a:switch(e=l.getDay(),L){case 5:L=O.JSC$11402_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[e];break a;case 4:L=O.JSC$11402_dateTimeSymbols_.STANDALONEWEEKDAYS[e];break a;case 3:L=O.JSC$11402_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[e];break a;default:L=fp(O,_.im(e,1))}return L;case "L":a:switch(e=l.getMonth(),L){case 5:L=O.JSC$11402_dateTimeSymbols_.STANDALONENARROWMONTHS[e];
break a;case 4:L=O.JSC$11402_dateTimeSymbols_.STANDALONEMONTHS[e];break a;case 3:L=O.JSC$11402_dateTimeSymbols_.STANDALONESHORTMONTHS[e];break a;default:L=fp(O,_.im(e+1,L))}return L;case "Q":return e=Math.floor(l.getMonth()/3),L<4?O.JSC$11402_dateTimeSymbols_.SHORTQUARTERS[e]:O.JSC$11402_dateTimeSymbols_.QUARTERS[e];case "d":return fp(O,_.im(l.getDate(),L));case "m":return JP(C),fp(O,_.im(C.getMinutes?C.getMinutes():0,L));case "s":return JP(C),fp(O,_.im(C.getSeconds(),L));case "v":return(Q||rb(e.getTimezoneOffset())).timeZoneId_;
case "V":return O=Q||rb(e.getTimezoneOffset()),L<=2?O.timeZoneId_:alF(O,e)>0?O.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?O.tzNamesExt_.DST_GENERIC_LOCATION:O.tzNamesExt_.DST_GENERIC_LOCATION:O.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?O.tzNamesExt_.STD_GENERIC_LOCATION:O.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return e=n0F(C.getFullYear(),C.getMonth(),C.getDate(),O.JSC$11402_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,O.JSC$11402_dateTimeSymbols_.FIRSTDAYOFWEEK),fp(O,_.im(Math.floor(Math.round((e-(new Date((new Date(e)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,L));case "z":return O=Q||rb(e.getTimezoneOffset()),L<4?O.tzNames_[alF(O,e)>0?2:0]:O.tzNames_[alF(O,e)>0?3:1];case "Z":return x=Q||rb(e.getTimezoneOffset()),L<4?(L=-m5R(x,e),O=[L<0?"-":"+"],L=Math.abs(L),O.push(_.im(Math.floor(L/60)%100,2),_.im(L%60,2)),L=O.join("")):L=fp(O,U5d(m5R(x,e))),L;default:return""}};var d5T=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,nzp=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,p7W=function(O){this.patternParts_=[];this.JSC$11411_dateTimeSymbols_=xV;if(typeof O=="number"){O>11&&(O=10);if(O<4)var x=this.JSC$11411_dateTimeSymbols_.DATEFORMATS[O];else O<8?x=this.JSC$11411_dateTimeSymbols_.TIMEFORMATS[O-4]:(x=this.JSC$11411_dateTimeSymbols_.DATETIMEFORMATS[O-8],x=x.replace("{1}",this.JSC$11411_dateTimeSymbols_.DATEFORMATS[O-8]),x=x.replace("{0}",this.JSC$11411_dateTimeSymbols_.TIMEFORMATS[O-
8]));un$(this,x)}else un$(this,O)},un$=function(O,x){for(var e=!1,l="",C=0;C<x.length;C++){var Q=x.charAt(C);
if(d5T.test(Q))for(l.length>0&&(O.patternParts_.push({text:l,count:0,abutStart:!1,numeric:!1}),l=""),O.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});C<x.length-1&&x.charAt(C+1)==" ";)C++;else if(e)Q=="'"?C+1<x.length&&x.charAt(C+1)=="'"?(l+="'",C++):e=!1:l+=Q;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(Q)>=0){l.length>0&&(O.patternParts_.push({text:l,count:0,abutStart:!1,numeric:!1}),l="");for(var L=x.charAt(C),k=C+1;k<x.length&&x.charAt(k)==L;)k++;L=k-C;L<=0?k=!1:(k="MydhHmsSDkK".indexOf(Q),
k=k>0||k==0&&L<3);O.patternParts_.push({text:Q,count:L,abutStart:!1,numeric:k});C+=L-1}else Q=="'"?C+1<x.length&&x.charAt(C+1)=="'"?(l+="'",C++):e=!0:l+=Q}l.length>0&&O.patternParts_.push({text:l,count:0,abutStart:!1,numeric:!1});x=!1;for(e=0;e<O.patternParts_.length;e++)O.patternParts_[e].numeric?!x&&e+1<O.patternParts_.length&&O.patternParts_[e+1].numeric&&(x=!0,O.patternParts_[e].abutStart=!0):x=!1};
p7W.prototype.parse=function(O,x,e){var l=!1,C=!1;e&&(l=e.predictive||!1,C=e.validate||!1);if(l)for(e=0;e<this.patternParts_.length;e++){var Q=this.patternParts_[e];if(Q.count>0&&("abBhHkKm".indexOf(Q.text.charAt(0))<0||Q.count>2||Q.abutStart))throw Error("ce`"+Q.text.charAt(0));}Q=new Y1$;e=[0];Q.dayPeriodIndex=-1;for(var L=0;L<this.patternParts_.length&&!(l&&e[0]>=O.length);L++){if(this.patternParts_[L].count==0){a:{var k=O;var M=e,G=this.patternParts_[L],X=l;if(G.text.match(d5T)!=null){if(G=M[0],
BSD(k,M),M[0]>G){k=!0;break a}}else{if(k.indexOf(G.text,M[0])==M[0]){M[0]+=G.text.length;k=!0;break a}if(X&&G.text.indexOf(k.substring(M[0]))==0){M[0]+=k.length-M[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[L].abutStart){a:{M=O;G=e;X=L;var y=G[0],Z=0;for(k=X;k<this.patternParts_.length;k++){var E=this.patternParts_[k],P=E.count;if(P===0)break;if(k==X&&(P-=Z,Z++,P==0)){k=0;break a}var U=k>X&&E.numeric,W=G[0];if(!vzF(this,M,G,E,P,Q,!1)||U&&G[0]-W<P)k=X-1,G[0]=y}k-=X}if(k<=0)return 0;
L+=k-1}else if(!vzF(this,O,e,this.patternParts_[L],0,Q,l))return 0}a:{O=C;if(x==null)throw Error("de");Q.era!=void 0&&Q.year!=void 0&&Q.era==0&&Q.year>0&&(Q.year=-(Q.year-1));Q.year!=void 0&&x.setFullYear(Q.year);l=x.getDate();x.setDate(1);Q.month!=void 0&&x.setMonth(Q.month);Q.day!=void 0?x.setDate(Q.day):(C=xYr(x.getFullYear(),x.getMonth()),x.setDate(l>C?C:l));typeof x.setHours==="function"&&(Q.hours==void 0&&(Q.hours=x.getHours()),Q.hours<12&&(Q.ampm!=void 0&&Q.ampm>0?Q.hours+=12:Q.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(Q.dayPeriodName)||["night1","night2"].includes(Q.dayPeriodName)&&Q.hours>=6)&&(Q.hours+=12)),x.setHours(Q.hours));typeof x.setMinutes==="function"&&Q.minutes!=void 0&&x.setMinutes(Q.minutes);typeof x.setSeconds==="function"&&Q.seconds!=void 0&&x.setSeconds(Q.seconds);typeof x.setMilliseconds==="function"&&Q.milliseconds!=void 0&&x.setMilliseconds(Q.milliseconds);if(O&&(Q.year&&Q.year!=x.getFullYear()||Q.month&&Q.month!=
x.getMonth()||Q.day&&Q.day!=x.getDate()||Q.hours&&Q.hours>=24||Q.minutes&&Q.minutes>=60||Q.seconds&&Q.seconds>=60||Q.milliseconds&&Q.milliseconds>=1E3))x=!1;else{Q.tzOffset!=void 0&&x.setTime(x.getTime()+(Q.tzOffset-x.getTimezoneOffset())*60*1E3);Q.ambiguousYear&&(O=new Date,O.setFullYear(O.getFullYear()-80),x.getTime()<O.getTime()&&x.setFullYear(O.getFullYear()+100));if(Q.dayOfWeek!=void 0)if(Q.day==void 0)Q=(7+Q.dayOfWeek-x.getDay())%7,Q>3&&(Q-=7),O=x.getMonth(),x.setDate(x.getDate()+Q),x.getMonth()!=
O&&x.setDate(x.getDate()+(Q>0?-7:7));else if(Q.dayOfWeek!=x.getDay()){x=!1;break a}x=!0}}return x?e[0]:0};
var vzF=function(O,x,e,l,C,Q,L){BSD(x,e);if(l.numeric&&C>0&&e[0]+C>x.length)return!1;switch(l.text.charAt(0)){case "G":return wv(x,e,[O.JSC$11411_dateTimeSymbols_.ERAS],function(k){return Q.era=k}),!0;
case "M":case "L":return flR(O,x,e,C,l,Q);case "E":return wv(x,e,[O.JSC$11411_dateTimeSymbols_.WEEKDAYS,O.JSC$11411_dateTimeSymbols_.SHORTWEEKDAYS],function(k){return Q.dayOfWeek=k});
case "B":case "b":return C=[],O=[[].concat(O.JSC$11411_dateTimeSymbols_.AMPMS)],C.push("isAm"),C.push("isPm"),x=wv(x,e,O,function(k){return Q.dayPeriodIndex=k},L),Q.dayPeriodName=C[Q.dayPeriodIndex],L?x:!0;
case "a":return x=wv(x,e,[O.JSC$11411_dateTimeSymbols_.AMPMS],function(k){return Q.ampm=k},L),L?x:!0;
case "y":return JIp(O,x,e,l,C,Q);case "Q":return wv(x,e,[O.JSC$11411_dateTimeSymbols_.QUARTERS,O.JSC$11411_dateTimeSymbols_.SHORTQUARTERS],function(k){Q.month=k*3;Q.day=1});
case "d":return SP(O,x,e,l,C,function(k){Q.day=k}),!0;
case "S":return we$(O,x,e,C,Q);case "h":case "K":case "H":case "k":return x=SP(O,x,e,l,C,function(k){Q.hours=l.text.charAt(0)==="h"&&k===12?0:k},L),L?x:!0;
case "m":return x=SP(O,x,e,l,C,function(k){Q.minutes=k},L),L?x:!0;
case "s":return SP(O,x,e,l,C,function(k){Q.seconds=k}),!0;
case "z":case "Z":case "v":return S1L(O,x,e,Q);default:return!1}},JIp=function(O,x,e,l,C,Q){var L=e[0];
C=jP(O,x,e,C);C===null&&(C=jP(O,x,e,0,!0));if(C===null)return!1;C>=0&&e[0]-L==2&&l.count==2?(O=C,x=(new Date).getFullYear()-80,e=x%100,Q.ambiguousYear=O==e,O+=Math.floor(x/100)*100+(O<e?100:0),Q.year=O):Q.year=C;return!0},flR=function(O,x,e,l,C,Q){return C.numeric&&SP(O,x,e,C,l,function(L){Q.month=L-1})?!0:wv(x,e,[O.JSC$11411_dateTimeSymbols_.MONTHS,
O.JSC$11411_dateTimeSymbols_.STANDALONEMONTHS,O.JSC$11411_dateTimeSymbols_.SHORTMONTHS,O.JSC$11411_dateTimeSymbols_.STANDALONESHORTMONTHS],function(L){Q.month=L})},we$=function(O,x,e,l,C){var Q=e[0];
O=jP(O,x,e,l);if(O===null)return!1;e=e[0]-Q;C.milliseconds=e<3?O*Math.pow(10,3-e):Math.round(O/Math.pow(10,e-3));return!0},S1L=function(O,x,e,l){x.indexOf("GMT",e[0])==e[0]&&(e[0]+=3);
if(e[0]>=x.length)return l.tzOffset=0,!0;var C=e[0],Q=jP(O,x,e,0,!0);if(Q===null)return!1;if(e[0]<x.length&&x.charAt(e[0])==":"){var L=Q*60;e[0]++;Q=jP(O,x,e,0);if(Q===null)return!1;L+=Q}else L=Q,L=L<24&&e[0]-C<=3?L*60:L%100+L/100*60;l.tzOffset=-L;return!0},SP=function(O,x,e,l,C,Q,L){L=L||!1;
var k=e[0];O=jP(O,x,e,C);if(O===null)return!1;if(L&&e[0]-k<l.count){if(e[0]<x.length)return!1;O*=Math.pow(10,l.count-(e[0]-k))}Q(O);return!0},wv=function(O,x,e,l,C){C=C||!1;
for(var Q,L=0;L<e.length;L++){Q=x;for(var k=e[L],M=C,G=0,X=null,y=O.substring(Q[0]).toLowerCase(),Z=0;Z<k.length;Z++){var E=k[Z].toLowerCase();if(M&&E.indexOf(y)==0){G=y.length;X=Z;break}k[Z].length>G&&y.indexOf(E)==0&&(G=k[Z].length,X=Z)}X!==null&&(Q[0]+=G);Q=X;if(Q!==null)return l(Q),!0}return!1},BSD=function(O,x){(O=O.substring(x[0]).match(nzp))&&(x[0]+=O[0].length)},jP=function(O,x,e,l,C){x=l>0?x.substring(0,e[0]+l):x;
C=C||!1;if(O.JSC$11411_dateTimeSymbols_.ZERODIGIT){l=[];for(var Q=e[0];Q<x.length;Q++){var L=x.charCodeAt(Q)-O.JSC$11411_dateTimeSymbols_.ZERODIGIT;l.push(0<=L&&L<=9?String.fromCharCode(L+48):x.charAt(Q))}x=l.join("")}else x=x.substring(e[0]);O=x.match(new RegExp("^"+(C?"[+-]?":"")+"\\d+"));if(!O)return null;e[0]+=O[0].length;return parseInt(O[0],10)},Y1$=function(){};
Y1$.prototype.ambiguousYear=!1;var j2d;
j2d={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 NSL={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}"]};
NSL={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 gzL=function(){var O={type:"unit",style:"narrow"};this.listType_=O&&O.type?O.type:"conjunction";this.listStyle_=O&&O.style?O.style:"long";this.listSymbols_=NSL;O=0;switch(this.listStyle_){case "short":O=1;break;case "narrow":O=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[O];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[O];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[O];this.listEndPattern_=
this.listSymbols_.AND_END[O];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[O];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[O];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[O];this.listEndPattern_=this.listSymbols_.OR_END[O];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[O],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[O],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[O],this.listEndPattern_=this.listSymbols_.UNIT_END[O]}};
gzL.prototype.format=function(O){return $5N(this,O)};
var $5N=function(O,x){var e=x.length;switch(e){case 0:return"";case 1:return String(x[0]);case 2:return O.listTwoPattern_.replace("{0}",String(x[0])).replace("{1}",String(x[1]))}for(var l=O.listStartPattern_.replace("{0}",String(x[0])).replace("{1}",String(x[1])),C=2;C<e-1;++C)l=O.listMiddlePattern_.replace("{0}",l).replace("{1}",String(x[C]));return O.listEndPattern_.replace("{0}",l).replace("{1}",String(x[e-1]))};var i7z={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"},O52=i7z,xR3=i7z;xR3=O52=i7z;var lcN,NX,$h,Ocr,gv,ejT;
_.W1=function(O,x,e,l){var C;if(C=x){a:if(x&&x.length===3){for(C=0;C<3;C++){var Q=x[C];if(Q<"A"||Q>"Z"&&Q<"a"||Q>"z"){C=!1;break a}}C=!0}else C=!1;C=!C}if(C)throw new TypeError("ee");this.intlCurrencyCode_=x?x.toUpperCase():null;this.currencyStyle_=e||0;this.overrideNumberFormatSymbols_=l||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_=NX(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof O==="number")switch(O){case 1:gv(this,NX(this).DECIMAL_PATTERN);break;case 2:gv(this,NX(this).SCIENTIFIC_PATTERN);break;case 3:gv(this,NX(this).PERCENT_PATTERN);break;case 4:O=NX(this).CURRENCY_PATTERN;x=["0"];if(e=
BP[$h(this)]){e=e[0]&7;if(e>0)for(x.push("."),l=0;l<e;l++)x.push("0");O=O.replace(/0.00/g,x.join(""))}gv(this,O);break;case 5:ejT(this,1);break;case 6:ejT(this,2);break;default:throw Error("he");}else gv(this,O)};
lcN=!1;NX=function(O){return O.overrideNumberFormatSymbols_||(lcN?xR3:O52)};
$h=function(O){return O.intlCurrencyCode_||NX(O).DEF_CURRENCY_CODE};
Ocr=function(O,x){if(x>308)throw Error("ge`"+x);O.maximumFractionDigits_=x;return O};
gv=function(O,x){var e=[0];O.positivePrefix_=Cw$(O,x,e);for(var l=e[0],C=-1,Q=0,L=0,k=0,M=-1,G=x.length,X=!0;e[0]<G&&X;e[0]++)switch(x.charAt(e[0])){case "#":L>0?k++:Q++;M>=0&&C<0&&M++;break;case "0":if(k>0)throw Error("ne`"+x);L++;M>=0&&C<0&&M++;break;case ",":M>0&&O.groupingArray_.push(M);M=0;break;case ".":if(C>=0)throw Error("oe`"+x);C=Q+L+k;break;case "E":if(O.useExponentialNotation_)throw Error("pe`"+x);O.useExponentialNotation_=!0;O.minExponentDigits_=0;e[0]+1<G&&x.charAt(e[0]+1)=="+"&&(e[0]++,
O.useSignForPositiveExponent_=!0);for(;e[0]+1<G&&x.charAt(e[0]+1)=="0";)e[0]++,O.minExponentDigits_++;if(Q+L<1||O.minExponentDigits_<1)throw Error("qe`"+x);X=!1;break;default:e[0]--,X=!1}L==0&&Q>0&&C>=0&&(L=C,L==0&&L++,k=Q-L,Q=L-1,L=1);if(C<0&&k>0||C>=0&&(C<Q||C>Q+L)||M==0)throw Error("re`"+x);k=Q+L+k;O.maximumFractionDigits_=C>=0?k-C:0;C>=0&&(O.minimumFractionDigits_=Q+L-C,O.minimumFractionDigits_<0&&(O.minimumFractionDigits_=0));O.minimumIntegerDigits_=(C>=0?C:k)-Q;O.useExponentialNotation_&&(O.maximumIntegerDigits_=
Q+O.minimumIntegerDigits_,O.maximumFractionDigits_==0&&O.minimumIntegerDigits_==0&&(O.minimumIntegerDigits_=1));O.groupingArray_.push(Math.max(0,M));O.decimalSeparatorAlwaysShown_=C==0||C==k;l=e[0]-l;O.positiveSuffix_=Cw$(O,x,e);e[0]<x.length&&x.charAt(e[0])==";"?(e[0]++,O.multiplier_!=1&&(O.negativePercentSignExpected_=!0),O.negativePrefix_=Cw$(O,x,e),e[0]+=l,O.negativeSuffix_=Cw$(O,x,e)):(O.negativePrefix_+=O.positivePrefix_,O.negativeSuffix_+=O.positiveSuffix_)};
ejT=function(O,x){O.compactStyle_=x;gv(O,NX(O).DECIMAL_PATTERN);O.minimumFractionDigits_=0;Ocr(O,2);if(O.minimumFractionDigits_>0)throw Error("fe");O.significantDigits_=2};
_.W1.prototype.parse=function(O,x){x=x||[0];if(this.compactStyle_!==0)throw Error("ie");O=O.replace(/ |\u202f/g,"\u00a0");var e=O.indexOf(this.positivePrefix_,x[0])==x[0],l=O.indexOf(this.negativePrefix_,x[0])==x[0];e&&l&&(this.positivePrefix_.length>this.negativePrefix_.length?l=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(e=!1));e?x[0]+=this.positivePrefix_.length:l&&(x[0]+=this.negativePrefix_.length);if(O.indexOf(NX(this).INFINITY,x[0])==x[0]){x[0]+=NX(this).INFINITY.length;var C=
Infinity}else{C=O;var Q=!1,L=!1,k=!1,M=-1,G=1,X=NX(this).DECIMAL_SEP,y=NX(this).GROUP_SEP,Z=NX(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");y=y.replace(/\u202f/g,"\u00a0");for(var E="";x[0]<C.length;x[0]++){var P=C.charAt(x[0]),U=Qtp(this,P);if(U>=0&&U<=9)E+=U,k=!0;else if(P==X.charAt(0)){if(Q||L)break;E+=".";Q=!0}else if(P==y.charAt(0)&&("\u00a0"!=y.charAt(0)||x[0]+1<C.length&&Qtp(this,C.charAt(x[0]+1))>=0)){if(Q||L)break}else if(P==Z.charAt(0)){if(L)break;E+="E";L=!0;M=x[0]}else if(P==
"+"||P=="-"){if(k&&M!=x[0]-1)break;E+=P}else if(this.multiplier_==1&&P==NX(this).PERCENT.charAt(0)){if(G!=1)break;G=100;if(k){x[0]++;break}}else if(this.multiplier_==1&&P==NX(this).PERMILL.charAt(0)){if(G!=1)break;G=1E3;if(k){x[0]++;break}}else break}this.multiplier_!=1&&(G=this.multiplier_);C=parseFloat(E)/G}if(e){if(O.indexOf(this.positiveSuffix_,x[0])!=x[0])return NaN;x[0]+=this.positiveSuffix_.length}else if(l){if(O.indexOf(this.negativeSuffix_,x[0])!=x[0])return NaN;x[0]+=this.negativeSuffix_.length}return l?
-C:C};
_.W1.prototype.format=function(O){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(O))return NX(this).NAN;var x=[];var e=O;if(this.compactStyle_==0)e=iG;else{e=Math.abs(e);var l=b52(this,e<=1?0:TYJ(e)).divisorBase;e=b52(this,l+TYJ(L8d(this,OF(e,-l)).intValue))}O=OF(O,-e.divisorBase);(l=O<0||O==0&&1/O<0)?e.negative_prefix?x.push(e.negative_prefix):(x.push(e.prefix),x.push(this.negativePrefix_)):(x.push(e.prefix),x.push(this.positivePrefix_));if(isFinite(O))if(O*=
l?-1:1,O*=this.multiplier_,this.useExponentialNotation_){var C=O;if(C==0)kAN(this,C,this.minimumIntegerDigits_,x),AA3(this,0,x);else{var Q=Math.floor(Math.log(C)/Math.log(10)+2E-15);C=OF(C,-Q);var L=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(L=Q%this.maximumIntegerDigits_,L<0&&(L=this.maximumIntegerDigits_+L),C=OF(C,L),Q-=L,L=1):this.minimumIntegerDigits_<1?(Q++,C=OF(C,-1)):(Q-=this.minimumIntegerDigits_-1,C=OF(C,this.minimumIntegerDigits_-
1));kAN(this,C,L,x);AA3(this,Q,x)}}else kAN(this,O,this.minimumIntegerDigits_,x);else x.push(NX(this).INFINITY);l?e.negative_suffix?x.push(e.negative_suffix):(isFinite(O)&&x.push(e.suffix),x.push(this.negativeSuffix_)):(isFinite(O)&&x.push(e.suffix),x.push(this.positiveSuffix_));return x.join("")};
var L8d=function(O,x){var e=OF(x,O.maximumFractionDigits_);O.significantDigits_>0&&(e=MR2(e,O.significantDigits_,O.maximumFractionDigits_));e=Math.round(e);if(isFinite(e)){var l=Math.floor(OF(e,-O.maximumFractionDigits_));e=Math.floor(e-OF(l,O.maximumFractionDigits_));if(e<0||e>=OF(1,O.maximumFractionDigits_))l=Math.round(x),e=0}else l=x,e=0;return{intValue:l,fracValue:e}},kAN=function(O,x,e,l){if(O.minimumFractionDigits_>O.maximumFractionDigits_)throw Error("ke");
l||(l=[]);x=L8d(O,x);var C=x.intValue,Q=x.fracValue,L=O.minimumFractionDigits_>0||Q>0||!1;x=O.minimumFractionDigits_;L&&(x=O.minimumFractionDigits_);for(var k="",M=C;M>1E20;)k="0"+k,M=Math.round(OF(M,-1));k=M+k;var G=NX(O).DECIMAL_SEP;M=NX(O).ZERO_DIGIT.codePointAt(0);var X=k.length,y=0;if(C>0||e>0){for(C=X;C<e;C++)l.push(String.fromCodePoint(M));if(O.groupingArray_.length>=2)for(e=1;e<O.groupingArray_.length;e++)y+=O.groupingArray_[e];e=X-y;if(e>0){C=O.groupingArray_;y=X=0;for(var Z,E=NX(O).GROUP_SEP,
P=k.length,U=0;U<P;U++)if(l.push(String.fromCodePoint(M+Number(k.charAt(U)))),P-U>1)if(Z=C[y],U<e){var W=e-U;(Z===1||Z>0&&W%Z===1)&&l.push(E)}else y<C.length&&(U===e?y+=1:Z===U-e-X+1&&(l.push(E),X+=Z,y+=1))}else{e=k;k=O.groupingArray_;C=NX(O).GROUP_SEP;Z=e.length;E=[];for(X=k.length-1;X>=0&&Z>0;X--){y=k[X];for(P=0;P<y&&Z-P-1>=0;P++)E.push(String.fromCodePoint(M+Number(e.charAt(Z-P-1))));Z-=y;Z>0&&E.push(C)}l.push.apply(l,E.reverse())}}else L||l.push(String.fromCodePoint(M));(O.decimalSeparatorAlwaysShown_||
L)&&l.push(G);Q=String(Q);L=Q.split("e+");L.length==2&&(Q=String(MR2(parseFloat(L[0]),O.significantDigits_,1)),Q=Q.replace(".",""),Q+=(0,_.vyL)("0",parseInt(L[1],10)-Q.length+1));O.maximumFractionDigits_+1>Q.length&&(Q="1"+(0,_.vyL)("0",O.maximumFractionDigits_-Q.length)+Q);for(O=Q.length;Q.charAt(O-1)=="0"&&O>x+1;)O--;for(x=1;x<O;x++)l.push(String.fromCodePoint(M+Number(Q.charAt(x))))},AA3=function(O,x,e){e.push(NX(O).EXP_SYMBOL);
x<0?(x=-x,e.push(NX(O).MINUS_SIGN)):O.useSignForPositiveExponent_&&e.push(NX(O).PLUS_SIGN);x=""+x;for(var l=NX(O).ZERO_DIGIT,C=x.length;C<O.minExponentDigits_;C++)e.push(l);O=l.codePointAt(0)-DRd;for(l=0;l<x.length;l++)e.push(String.fromCodePoint(O+x.codePointAt(l)))},Qtp=function(O,x){x=x.codePointAt(0);
if(48<=x&&x<58)return x-48;O=NX(O).ZERO_DIGIT.codePointAt(0);return O<=x&&x<O+10?x-O:-1},DRd="0".codePointAt(0),Cw$=function(O,x,e){for(var l="",C=!1,Q=x.length;e[0]<Q;e[0]++){var L=x.charAt(e[0]);
if(L=="'")e[0]+1<Q&&x.charAt(e[0]+1)=="'"?(e[0]++,l+="'"):C=!C;else if(C)l+=L;else switch(L){case "#":case "0":case ",":case ".":case ";":return l;case "\u00a4":if(e[0]+1<Q&&x.charAt(e[0]+1)=="\u00a4")e[0]++,l+=$h(O);else switch(O.currencyStyle_){case 0:L=$h(O);l+=L in BP?BP[L][1]:L;break;case 2:L=$h(O);var k=BP[L];l+=k?L==k[1]?L:L+" "+k[1]:L;break;case 1:L=$h(O),l+=L in BP?BP[L][2]:L}break;case "%":if(!O.negativePercentSignExpected_&&O.multiplier_!=1)throw Error("le");if(O.negativePercentSignExpected_&&
O.multiplier_!=100)throw Error("me");O.multiplier_=100;O.negativePercentSignExpected_=!1;l+=NX(O).PERCENT;break;case "\u2030":if(!O.negativePercentSignExpected_&&O.multiplier_!=1)throw Error("le");if(O.negativePercentSignExpected_&&O.multiplier_!=1E3)throw Error("me");O.multiplier_=1E3;O.negativePercentSignExpected_=!1;l+=NX(O).PERMILL;break;default:l+=L}}return l},iG={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},b52=function(O,x){O=O.compactStyle_==1?Yh.COMPACT_DECIMAL_SHORT_PATTERN:Yh.COMPACT_DECIMAL_LONG_PATTERN;O==null&&(O=Yh.COMPACT_DECIMAL_SHORT_PATTERN);if(x<3)return iG;x=Math.min(14,x);var e=O[OF(1,x)];for(--x;!e&&x>=3;)e=O[OF(1,x)],x--;if(!e)return iG;e=e.other;var l=O="",C=e.indexOf(";");C>=0&&(e=e.substring(0,C),C=e.substring(C+1))&&(l=/([^0]*)(0+)(.*)/.exec(C),O=l[1],l=l[3]);return e&&e!="0"?(e=/([^0]*)(0+)(.*)/.exec(e))?{divisorBase:x+
1-(e[2].length-1),negative_prefix:O,negative_suffix:l,prefix:e[1],suffix:e[3]}:iG:iG},TYJ=function(O){if(!isFinite(O))return O>0?O:0;
for(var x=0;(O/=10)>=1;)x++;return x},OF=function(O,x){if(!O||!isFinite(O)||x==0)return O;
O=String(O).split("e");return parseFloat(O[0]+"e"+(parseInt(O[1]||0,10)+x))},GA3=function(O,x){return O&&isFinite(O)?OF(Math.round(OF(O,x)),-x):O},MR2=function(O,x,e){if(!O)return O;
x=x-TYJ(O)-1;return x<-e?GA3(O,-e):GA3(O,x)};var F8$=function(O){return O%10==1&&O%100!=11?"one":O%10==2&&O%100!=12?"two":O%10==3&&O%100!=13?"few":"other"},X8d=F8$;
X8d=F8$;var op$=function(O,x){var e=O|0;if(void 0===x){x=Math;var l=x.min,C=O+"",Q=C.indexOf(".");x=l.call(x,Q===-1?0:C.length-Q-1,3)}l=Math.pow(10,x);O={v:x,f:(O*l|0)%l};return e==1&&O.v==0?"one":"other"},mW=op$;
mW=op$;var tRp=function(O){this.JSC$11454_pattern_=O;this.parsedPattern_=this.literals_=this.initialLiterals_=null;O=O52;var x=Yh;if(yAD!==O||Z5z!==x)yAD=O,Z5z=x,EpL=new _.W1(1);this.numberFormatter_=EpL},yAD=null,Z5z=null,EpL=null,q9D=RegExp("'([{}#].*?)'","g"),PwF=RegExp("''","g");
tRp.prototype.format=function(O){if(this.JSC$11454_pattern_){this.initialLiterals_=[];var x=cA$(this,this.JSC$11454_pattern_);this.parsedPattern_=IcJ(this,x);this.JSC$11454_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Bi(this.initialLiterals_),x=[],VRR(this,this.parsedPattern_,O,!1,x),O=x.join("");this.literals_.length>0;)O=O.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else O="";return O};
var VRR=function(O,x,e,l,C){for(var Q=0;Q<x.length;Q++)switch(x[Q].type){case 4:C.push(x[Q].value);break;case 3:var L=x[Q].value;var k=O,M=C,G=e[L];G===void 0?M.push("Undefined parameter - "+L):(k.literals_.push(G),M.push(k.buildPlaceholder_(k.literals_)));break;case 2:L=x[Q].value;k=O;M=e;G=l;var X=C,y=L.argumentIndex;M[y]===void 0?X.push("Undefined parameter - "+y):(y=L[M[y]],y===void 0&&(y=L.other),VRR(k,y,M,G,X));break;case 0:L=x[Q].value;p8T(O,L,e,mW,l,C);break;case 1:L=x[Q].value,p8T(O,L,e,
X8d,l,C)}},p8T=function(O,x,e,l,C,Q){var L=x.argumentIndex,k=x.argumentOffset,M=+e[L];
isNaN(M)?Q.push("Undefined or invalid parameter - "+L):(k=M-k,L=x[e[L]],L===void 0&&(l=l(Math.abs(k)),L=x[l],L===void 0&&(L=x.other)),x=[],VRR(O,L,e,C,x),e=x.join(""),C?Q.push(e):(O=O.numberFormatter_.format(k),Q.push(e.replace(/#/g,O))))},cA$=function(O,x){var e=O.initialLiterals_,l=O.buildPlaceholder_.bind(O);
x=x.replace(PwF,function(){e.push("'");return l(e)});
return x=x.replace(q9D,function(C,Q){e.push(Q);return l(e)})},Rj$=function(O){var x=0,e=[],l=[],C=/[{}]/g;
C.lastIndex=0;for(var Q;Q=C.exec(O);){var L=Q.index;Q[0]=="}"?(e.pop(),e.length==0&&(Q={type:1},Q.value=O.substring(x,L),l.push(Q),x=L+1)):(e.length==0&&(x=O.substring(x,L),x!=""&&l.push({type:0,value:x}),x=L+1),e.push("{"))}O=O.substring(x);O!=""&&l.push({type:0,value:O});return l},URd=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,acz=/^\s*(\w+)\s*,\s*selectordinal\s*,/,mRN=/^\s*(\w+)\s*,\s*select\s*,/,IcJ=function(O,x){var e=[];
x=Rj$(x);for(var l=0;l<x.length;l++){var C={};if(0==x[l].type)C.type=4,C.value=x[l].value;else if(1==x[l].type){var Q=x[l].value;switch(URd.test(Q)?0:acz.test(Q)?1:mRN.test(Q)?2:/^\s*\w+\s*/.test(Q)?3:5){case 2:C.type=2;C.value=stF(O,x[l].value);break;case 0:C.type=0;C.value=W8N(O,x[l].value);break;case 1:C.type=1;C.value=hj2(O,x[l].value);break;case 3:C.type=3,C.value=x[l].value}}e.push(C)}return e},stF=function(O,x){var e="";
x=x.replace(mRN,function(k,M){e=M;return""});
var l={};l.argumentIndex=e;x=Rj$(x);for(var C=0;C<x.length;){var Q=x[C].value;C++;var L=void 0;1==x[C].type&&(L=IcJ(O,x[C].value));l[Q.replace(/\s/g,"")]=L;C++}return l},W8N=function(O,x){var e="",l=0;
x=x.replace(URd,function(M,G,X){e=G;X&&(l=parseInt(X,10));return""});
var C={};C.argumentIndex=e;C.argumentOffset=l;x=Rj$(x);for(var Q=0;Q<x.length;){var L=x[Q].value;Q++;var k=void 0;1==x[Q].type&&(k=IcJ(O,x[Q].value));C[L.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;Q++}return C},hj2=function(O,x){var e="";
x=x.replace(acz,function(k,M){e=M;return""});
var l={};l.argumentIndex=e;l.argumentOffset=0;x=Rj$(x);for(var C=0;C<x.length;){var Q=x[C].value;C++;var L=void 0;1==x[C].type&&(L=IcJ(O,x[C].value));l[Q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=L;C++}return l};
tRp.prototype.buildPlaceholder_=function(O){return"\ufddf_"+(O.length-1).toString(10)+"_"};var Hn7=function(){var O={style:1},x=zjD;this.style_=(O==null?void 0:O.style)||0;this.durationSymbols_=x||j2d},rAp=function(O,x){switch(x){default:case "years":return O.durationSymbols_.YEAR;
case "months":return O.durationSymbols_.MONTH;case "weeks":return O.durationSymbols_.WEEK;case "days":return O.durationSymbols_.DAY;case "hours":return O.durationSymbols_.HOUR;case "minutes":return O.durationSymbols_.MINUTE;case "seconds":return O.durationSymbols_.SECOND}},xT=function(O,x,e){a:{e=rAp(O,e);
switch(O.style_){case 1:if(e.LONG!=void 0){O=e.LONG;break a}case 2:if(e.NARROW!=void 0){O=e.NARROW;break a}default:O=e.SHORT;break a}O=void 0}return O?(new tRp("{DURATION_VALUE,plural,"+O+"}")).format({DURATION_VALUE:x}):""};
Hn7.prototype.format=function(O){var x=[],e=O.years,l=O.months,C=O.weeks,Q=O.days,L=O.hours,k=O.minutes;O=O.seconds;e!=null&&x.push(xT(this,e,"years"));l!=null&&x.push(xT(this,l,"months"));C!=null&&x.push(xT(this,C,"weeks"));Q!=null&&x.push(xT(this,Q,"days"));L!=null&&x.push(xT(this,L,"hours"));k!=null&&x.push(xT(this,k,"minutes"));O!=null&&x.push(xT(this,O,"seconds"));return(new gzL).format(x)};var H5F;
H5F={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 in8=function(){this.rdtfSymbols_=K8T||H5F;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
in8.prototype.format=function(O,x){a:{x=dRR(this,x);switch(this.style_){case 2:if(x.NARROW!=void 0){x=x.NARROW;break a}case 1:if(x.SHORT!=void 0){x=x.SHORT;break a}default:x=x.LONG;break a}x=void 0}if(!this.alwaysNumeric_&&x&&x.R&&x.R[""+O])O=x.R[""+O];else if(x){var e=Math.abs(O);O=(new tRp("{N,plural,"+(O>0||O==0&&1/O==Infinity?x.F:x.P)+"}")).format({N:e})}else O="";return O};
var dRR=function(O,x){switch(x){default:case 0:return O.rdtfSymbols_.YEAR;case 1:return O.rdtfSymbols_.QUARTER;case 2:return O.rdtfSymbols_.MONTH;case 3:return O.rdtfSymbols_.WEEK;case 4:return O.rdtfSymbols_.DAY;case 5:return O.rdtfSymbols_.HOUR;case 6:return O.rdtfSymbols_.MINUTE;case 7:return O.rdtfSymbols_.SECOND}};var npd=function(O,x,e,l,C,Q,L,k){this.x0=O;this.y0=x;this.x1=e;this.y1=l;this.x2=C;this.y2=Q;this.x3=L;this.y3=k};
npd.prototype.clone=function(){return new npd(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
npd.prototype.equals=function(O){return this.x0==O.x0&&this.y0==O.y0&&this.x1==O.x1&&this.y1==O.y1&&this.x2==O.x2&&this.y2==O.y2&&this.x3==O.x3&&this.y3==O.y3};
var uQ4=function(O,x){if(x==0)return O.x0;if(x==1)return O.x3;var e=E5(O.x0,O.x1,x),l=E5(O.x1,O.x2,x);O=E5(O.x2,O.x3,x);e=E5(e,l,x);l=E5(l,O,x);return E5(e,l,x)},Y93=function(O,x){var e=(x-O.x0)/(O.x3-O.x0);
if(e<=0)return 0;if(e>=1)return 1;for(var l=0,C=1,Q=0,L=0;L<8;L++){Q=uQ4(O,e);var k=(uQ4(O,e+1E-6)-Q)/1E-6;if(Math.abs(Q-x)<1E-6)return e;if(Math.abs(k)<1E-6)break;else Q<x?l=e:C=e,e-=(Q-x)/k}for(L=0;Math.abs(Q-x)>1E-6&&L<8;L++)Q<x?(l=e,e=(e+C)/2):(C=e,e=(e+l)/2),Q=uQ4(O,e);return e};var ea=function(){_.tf.call(this);this.JSC$11475_name_="closure_frame"+BYk++;this.iframesForDisposal_=[];vpR[this.JSC$11475_name_]=this},lz;
_.fI(ea,_.tf);var vpR={},BYk=0,fc2=function(O,x){var e=an(O);SYT(x,function(l,C){Array.isArray(l)||(l=[l]);_.e3(l,function(Q){Q=e.JSC$9323_createDom("INPUT",{type:"hidden",name:C,value:Q});O.appendChild(Q)})})};
_.b=ea.prototype;_.b.JSC$11477_form_=null;_.b.JSC$11477_iframe_=null;_.b.iframeName_=null;_.b.nextIframeId_=0;_.b.JSC$11477_active_=!1;_.b.complete_=!1;_.b.success_=!1;_.b.lastContent_=null;_.b.JSC$11477_lastErrorCode_=0;_.b.iframeDisposalTimer_=null;
_.b.send=function(O,x,e,l){if(this.JSC$11477_active_)throw Error("se");O=new _.K1(O);x=x?x.toUpperCase():"GET";e&&_.T5(O);lz||(lz=_.cS("FORM"),lz.acceptCharset="utf-8",e=lz.style,e.position="absolute",e.visibility="hidden",e.top=e.left="-10px",e.width=e.height="10px",e.overflow="hidden",document.body.appendChild(lz));this.JSC$11477_form_=lz;x=="GET"&&fc2(this.JSC$11477_form_,O.JSC$10027_queryData_);l&&fc2(this.JSC$11477_form_,l);e=O.toString();e=vcL(e);l=this.JSC$11477_form_;e=_.fU(zH(e));e!==void 0&&
(l.action=e);this.JSC$11477_form_.method=x;JAT(this);w8z(this)};
_.b.abort=function(O){if(this.JSC$11477_active_){var x=C6(this);if(x)if(yK(x))x.removeAllListeners(void 0);else if(x=ZN(x)){var e=0,l;for(l in x.listeners)for(var C=x.listeners[l].concat(),Q=0;Q<C.length;++Q)GO(C[Q])&&++e}this.success_=this.JSC$11477_active_=this.complete_=!1;this.JSC$11477_lastErrorCode_=O||7;this.dispatchEvent("abort");S9p(this)}};
_.b.disposeInternal=function(){this.JSC$11477_active_&&this.abort();ea.superClass_.disposeInternal.call(this);this.JSC$11477_iframe_&&jtk(this);w8z(this);this.JSC$11477_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11477_form_=null;this.JSC$11477_lastErrorCode_=0;delete vpR[this.JSC$11475_name_]};
_.b.isComplete=function(){return this.complete_};
_.b.isSuccess=function(){return this.success_};
_.b.isActive=function(){return this.JSC$11477_active_};
_.b.getResponseText=function(){return this.lastContent_};
_.b.getLastError=function(){return _.IKd(this.JSC$11477_lastErrorCode_)};
var JAT=function(O){O.JSC$11477_active_=!0;O.complete_=!1;O.JSC$11477_lastErrorCode_=0;O.iframeName_=O.JSC$11475_name_+"_"+(O.nextIframeId_++).toString(36);O.JSC$11477_iframe_=an(O.JSC$11477_form_).JSC$9323_createDom("IFRAME",{name:O.iframeName_,id:O.iframeName_});var x=O.JSC$11477_iframe_.style;x.visibility="hidden";x.width=x.height="10px";x.display="none";_.gC?x.marginTop=x.marginLeft="-10px":(x.position="absolute",x.top=x.left="-10px");an(O.JSC$11477_form_).JSC$9321_document_.body.appendChild(O.JSC$11477_iframe_);
x=O.iframeName_+"_inner";var e=AjL(O.JSC$11477_iframe_);if(document.baseURI){var l=ik(x);l='<head><base href="'+ik(document.baseURI)+'"></head><body><iframe id="'+l+'" name="'+l+'"></iframe>';l=SE(l)}else l=ik(x),l=SE('<body><iframe id="'+l+'" name="'+l+'"></iframe>');e.write(NT(l));_.ol(e.getElementById(x),"load",O.onIframeLoaded_,!1,O);l=a9("TEXTAREA",O.JSC$11477_form_);for(var C=0,Q=l.length;C<Q;C++){var L=l[C].value;oGT(l[C])!=L&&(_.mn(l[C],L),l[C].value=L)}l=e.importNode(O.JSC$11477_form_,!0);
l.target=x;l.action=O.JSC$11477_form_.action;e.body.appendChild(l);C=a9("SELECT",O.JSC$11477_form_);Q=a9("SELECT",l);L=0;for(var k=C.length;L<k;L++)for(var M=a9("OPTION",C[L]),G=a9("OPTION",Q[L]),X=0,y=M.length;X<y;X++)G[X].selected=M[X].selected;C=a9("INPUT",O.JSC$11477_form_);Q=a9("INPUT",l);L=0;for(k=C.length;L<k;L++)if(C[L].type=="file"&&C[L].value!=Q[L].value){O.JSC$11477_form_.target=x;l=O.JSC$11477_form_;break}try{O.errorHandled_=!1,l.submit(),e.close(),_.No&&setTimeout(O.testForFirefoxSilentError_.bind(O),
250)}catch(Z){_.EK(e.getElementById(x),"load",O.onIframeLoaded_,!1,O),e.close(),Qr(O,2)}};
ea.prototype.onIframeLoaded_=function(){_.EK(C6(this),"load",this.onIframeLoaded_,!1,this);try{var O=this.JSC$11477_iframe_?AjL(C6(this)):null;this.complete_=!0;this.JSC$11477_active_=!1;try{var x=O.body;this.lastContent_=x.textContent||x.innerText}catch(C){var e=1}var l;e||typeof this.errorChecker_!="function"||(l=this.errorChecker_(O))&&(e=4);e?Qr(this,e):(this.success_=!0,this.JSC$11477_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),S9p(this))}catch(C){Qr(this,1)}};
var Qr=function(O,x){O.errorHandled_||(O.success_=!1,O.JSC$11477_active_=!1,O.complete_=!0,O.JSC$11477_lastErrorCode_=x,O.dispatchEvent("complete"),O.dispatchEvent("error"),S9p(O),O.errorHandled_=!0)},S9p=function(O){jtk(O);
w8z(O);O.JSC$11477_form_=null;O.dispatchEvent("ready")},jtk=function(O){var x=O.JSC$11477_iframe_;
x&&(x.onreadystatechange=null,x.onload=null,x.onerror=null,O.iframesForDisposal_.push(x));O.iframeDisposalTimer_&&(clearTimeout(O.iframeDisposalTimer_),O.iframeDisposalTimer_=null);_.No?O.iframeDisposalTimer_=setTimeout(O.disposeIframes_.bind(O),2E3):O.disposeIframes_();O.JSC$11477_iframe_=null;O.iframeName_=null};
ea.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var O=this.iframesForDisposal_.pop();_.Um(O)}};
var w8z=function(O){O.JSC$11477_form_&&O.JSC$11477_form_==lz&&_.pl(O.JSC$11477_form_)},C6=function(O){return O.JSC$11477_iframe_?AjL(O.JSC$11477_iframe_).getElementById(O.iframeName_+"_inner"):null};
ea.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11477_active_){var O=this.JSC$11477_iframe_?AjL(C6(this)):null;O&&!Hur(O,"documentUri")?(_.EK(C6(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Qr(this,3):Qr(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.bz=function(O){return O=="\r"||O=="\n"||O==" "||O=="\t"};var NYd;_.Tk=function(O){this.errorMessage_=null;this.result_=[];this.JSC$11479_buffer_="";this.stack_=[];this.JSC$11479_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!O||!O.deliverMessageAsRawString)};
NYd={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};_.Tk.prototype.isInputValid=function(){return this.streamState_!=3};
_.Tk.prototype.done=function(){return this.streamState_===2};
var L6=function(O,x,e){O.streamState_=3;O.errorMessage_="The stream is broken @"+O.JSC$11479_pos_+"/"+e+". With input:\n"+x;throw Error(O.errorMessage_);};
_.Tk.prototype.acceptsBinaryInput=function(){return!1};
_.Tk.prototype.parse=function(O){function x(){for(;Z<O.length;)if(_.bz(O[Z]))Z++,Q.JSC$11479_pos_++;else break;return Z<G}
function e(){for(var P;;){P=O[Z++];if(!P)break;Q.JSC$11479_pos_++;switch(Q.state_){case M.INIT:P==="{"?Q.state_=M.OBJECT_OPEN:P==="["?Q.state_=M.ARRAY_OPEN:_.bz(P)||L6(Q,O,Z);continue;case M.KEY_START:case M.OBJECT_OPEN:if(_.bz(P))continue;if(Q.state_===M.KEY_START)L.push(M.KEY_END);else if(P==="}"){C("{}");Q.state_=l();continue}else L.push(M.OBJECT_END);P==='"'?Q.state_=M.STRING:L6(Q,O,Z);continue;case M.KEY_END:case M.OBJECT_END:if(_.bz(P))continue;P===":"?(Q.state_===M.OBJECT_END&&(L.push(M.OBJECT_END),
Q.depth_++),Q.state_=M.VALUE):P==="}"?(Q.depth_--,C(),Q.state_=l()):P===","?(Q.state_===M.OBJECT_END&&L.push(M.OBJECT_END),Q.state_=M.KEY_START):L6(Q,O,Z);continue;case M.ARRAY_OPEN:case M.VALUE:if(_.bz(P))continue;if(Q.state_===M.ARRAY_OPEN)if(Q.depth_++,Q.state_=M.VALUE,P==="]"){Q.depth_--;if(Q.depth_===0){Q.state_=M.ARRAY_END;return}C("[]");Q.state_=l();continue}else L.push(M.ARRAY_END);P==='"'?Q.state_=M.STRING:P==="{"?Q.state_=M.OBJECT_OPEN:P==="["?Q.state_=M.ARRAY_OPEN:P==="t"?Q.state_=M.TRUE1:
P==="f"?Q.state_=M.FALSE1:P==="n"?Q.state_=M.NULL1:P!=="-"&&("0123456789".indexOf(P)!==-1?Q.state_=M.NUM_DIGIT:L6(Q,O,Z));continue;case M.ARRAY_END:if(P===",")L.push(M.ARRAY_END),Q.state_=M.VALUE,Q.depth_===1&&(y=Z);else if(P==="]"){Q.depth_--;if(Q.depth_===0)return;C();Q.state_=l()}else if(_.bz(P))continue;else L6(Q,O,Z);continue;case M.STRING:var U=Z;a:for(;;){for(;Q.unicodeCount_>0;)if(P=O[Z++],Q.unicodeCount_===4?Q.unicodeCount_=0:Q.unicodeCount_++,!P)break a;if(P==='"'&&!Q.slashed_){Q.state_=
l();break}if(P==="\\"&&!Q.slashed_&&(Q.slashed_=!0,P=O[Z++],!P))break;if(Q.slashed_)if(Q.slashed_=!1,P==="u"&&(Q.unicodeCount_=1),P=O[Z++])continue;else break;k.lastIndex=Z;P=k.exec(O);if(!P){Z=O.length+1;break}Z=P.index+1;P=O[P.index];if(!P)break}Q.JSC$11479_pos_+=Z-U;continue;case M.TRUE1:if(!P)continue;P==="r"?Q.state_=M.TRUE2:L6(Q,O,Z);continue;case M.TRUE2:if(!P)continue;P==="u"?Q.state_=M.TRUE3:L6(Q,O,Z);continue;case M.TRUE3:if(!P)continue;P==="e"?Q.state_=l():L6(Q,O,Z);continue;case M.FALSE1:if(!P)continue;
P==="a"?Q.state_=M.FALSE2:L6(Q,O,Z);continue;case M.FALSE2:if(!P)continue;P==="l"?Q.state_=M.FALSE3:L6(Q,O,Z);continue;case M.FALSE3:if(!P)continue;P==="s"?Q.state_=M.FALSE4:L6(Q,O,Z);continue;case M.FALSE4:if(!P)continue;P==="e"?Q.state_=l():L6(Q,O,Z);continue;case M.NULL1:if(!P)continue;P==="u"?Q.state_=M.NULL2:L6(Q,O,Z);continue;case M.NULL2:if(!P)continue;P==="l"?Q.state_=M.NULL3:L6(Q,O,Z);continue;case M.NULL3:if(!P)continue;P==="l"?Q.state_=l():L6(Q,O,Z);continue;case M.NUM_DECIMAL_POINT:P===
"."?Q.state_=M.NUM_DIGIT:L6(Q,O,Z);continue;case M.NUM_DIGIT:if("0123456789.eE+-".indexOf(P)!==-1)continue;else Z--,Q.JSC$11479_pos_--,Q.state_=l();continue;default:L6(Q,O,Z)}}}
function l(){var P=L.pop();return P!=null?P:M.VALUE}
function C(P){Q.depth_>1||(P||(P=y===-1?Q.JSC$11479_buffer_+O.substring(X,Z):O.substring(y,Z)),Q.deliverMessageAsRawString_?Q.result_.push(P):Q.result_.push(JSON.parse(P)),y=Z)}
for(var Q=this,L=Q.stack_,k=Q.stringInputPattern_,M=NYd,G=O.length,X=0,y=-1,Z=0;Z<G;)switch(Q.streamState_){case 3:return L6(Q,O,Z),null;case 2:return x()&&L6(Q,O,Z),null;case 0:if(x()){var E=O[Z++];Q.JSC$11479_pos_++;if(E==="["){Q.streamState_=1;X=Z;Q.state_=M.ARRAY_OPEN;continue}else L6(Q,O,Z)}return null;case 1:return e(),Q.depth_===0&&Q.state_==M.ARRAY_END?(Q.streamState_=2,Q.JSC$11479_buffer_=O.substring(Z)):Q.JSC$11479_buffer_=y===-1?Q.JSC$11479_buffer_+O.substring(X):O.substring(y),Q.result_.length>
0?(E=Q.result_,Q.result_=[],E):null}return null};_.fI(_.Po,Kb);co.prototype.getValue=function(){return this.JSC$11487_value_};
co.prototype.clone=function(){return new co(this.JSC$11487_key_,this.JSC$11487_value_)};var kT=function(O){this.nodes_=[];if(O)a:{if(O instanceof kT){var x=O.getKeys();O=O.getValues();if(this.getCount()<=0){for(var e=this.nodes_,l=0;l<x.length;l++)e.push(new co(x[l],O[l]));break a}}else x=_.HX.getKeys(O),O=_.HX.getValues(O);for(e=0;e<x.length;e++)this.insert(x[e],O[e])}};
_.b=kT.prototype;_.b.insert=function(O,x){var e=this.nodes_;e.push(new co(O,x));O=e.length-1;x=this.nodes_;for(e=x[O];O>0;){var l=O-1>>1;if(x[l].JSC$11487_key_>e.JSC$11487_key_)x[O]=x[l],O=l;else break}x[O]=e};
_.b.remove=function(){var O=this.nodes_,x=O.length,e=O[0];if(!(x<=0)){if(x==1)O.length=0;else{O[0]=O.pop();O=0;x=this.nodes_;for(var l=x.length,C=x[O];O<l>>1;){var Q=O*2+1,L=O*2+2;Q=L<l&&x[L].JSC$11487_key_<x[Q].JSC$11487_key_?L:Q;if(x[Q].JSC$11487_key_>C.JSC$11487_key_)break;x[O]=x[Q];O=Q}x[O]=C}return e.getValue()}};
_.b.peek=function(){var O=this.nodes_;if(O.length!=0)return O[0].getValue()};
_.b.getValues=function(){for(var O=this.nodes_,x=[],e=O.length,l=0;l<e;l++)x.push(O[l].getValue());return x};
_.b.getKeys=function(){for(var O=this.nodes_,x=[],e=O.length,l=0;l<e;l++)x.push(O[l].JSC$11487_key_);return x};
_.b.containsValue=function(O){return this.nodes_.some(function(x){return x.getValue()==O})};
_.b.containsKey=function(O){return this.nodes_.some(function(x){return x.JSC$11487_key_==O})};
_.b.clone=function(){return new kT(this)};
_.b.getCount=function(){return this.nodes_.length};
_.b.isEmpty=function(){return this.nodes_.length===0};
_.b.clear=function(){this.nodes_.length=0};_.A5=function(O,x){this.JSC$11493_map_={};this.JSC$11493_keys_=[];this.version_=this.size=0;var e=arguments.length;if(e>1){if(e%2)throw Error("ma");for(var l=0;l<e;l+=2)this.set(arguments[l],arguments[l+1])}else O&&this.addAll(O)};
_.b=_.A5.prototype;_.b.getCount=function(){return this.size};
_.b.getValues=function(){M_(this);for(var O=[],x=0;x<this.JSC$11493_keys_.length;x++)O.push(this.JSC$11493_map_[this.JSC$11493_keys_[x]]);return O};
_.b.getKeys=function(){M_(this);return this.JSC$11493_keys_.concat()};
_.b.containsKey=function(O){return this.has(O)};
_.b.has=function(O){return Dm(this.JSC$11493_map_,O)};
_.b.containsValue=function(O){for(var x=0;x<this.JSC$11493_keys_.length;x++){var e=this.JSC$11493_keys_[x];if(Dm(this.JSC$11493_map_,e)&&this.JSC$11493_map_[e]==O)return!0}return!1};
_.b.equals=function(O,x){if(this===O)return!0;if(this.size!=O.getCount())return!1;x=x||gpT;M_(this);for(var e,l=0;e=this.JSC$11493_keys_[l];l++)if(!x(this.get(e),O.get(e)))return!1;return!0};
var gpT=function(O,x){return O===x};
_.A5.prototype.isEmpty=function(){return this.size==0};
_.A5.prototype.clear=function(){this.JSC$11493_map_={};this.version_=this.size=this.JSC$11493_keys_.length=0};
_.A5.prototype.remove=function(O){return this.delete(O)};
_.A5.prototype.delete=function(O){return Dm(this.JSC$11493_map_,O)?(delete this.JSC$11493_map_[O],--this.size,this.version_++,this.JSC$11493_keys_.length>2*this.size&&M_(this),!0):!1};
var M_=function(O){if(O.size!=O.JSC$11493_keys_.length){for(var x=0,e=0;x<O.JSC$11493_keys_.length;){var l=O.JSC$11493_keys_[x];Dm(O.JSC$11493_map_,l)&&(O.JSC$11493_keys_[e++]=l);x++}O.JSC$11493_keys_.length=e}if(O.size!=O.JSC$11493_keys_.length){x={};for(l=e=0;e<O.JSC$11493_keys_.length;){var C=O.JSC$11493_keys_[e];Dm(x,C)||(O.JSC$11493_keys_[l++]=C,x[C]=1);e++}O.JSC$11493_keys_.length=l}};
_.b=_.A5.prototype;_.b.get=function(O,x){return Dm(this.JSC$11493_map_,O)?this.JSC$11493_map_[O]:x};
_.b.set=function(O,x){Dm(this.JSC$11493_map_,O)||(this.size+=1,this.JSC$11493_keys_.push(O),this.version_++);this.JSC$11493_map_[O]=x};
_.b.addAll=function(O){if(O instanceof _.A5)for(var x=O.getKeys(),e=0;e<x.length;e++)this.set(x[e],O.get(x[e]));else for(x in O)this.set(x,O[x])};
_.b.forEach=function(O,x){for(var e=this.getKeys(),l=0;l<e.length;l++){var C=e[l],Q=this.get(C);O.call(x,Q,C,this)}};
_.b.clone=function(){return new _.A5(this)};
_.b.transpose=function(){for(var O=new _.A5,x=0;x<this.JSC$11493_keys_.length;x++){var e=this.JSC$11493_keys_[x];O.set(this.JSC$11493_map_[e],e)}return O};
_.b.keys=function(){return Dgz(this.__iterator__(!0)).toEs6()};
_.b.values=function(){return Dgz(this.__iterator__(!1)).toEs6()};
_.b.entries=function(){var O=this;return WeD(this.keys(),function(x){return[x,O.get(x)]})};
_.b.__iterator__=function(O){M_(this);var x=0,e=this.version_,l=this,C=new QC;C.next=function(){if(e!=l.version_)throw Error("te");if(x>=l.JSC$11493_keys_.length)return bY;var Q=l.JSC$11493_keys_[x++];return T6(O?Q:l.JSC$11493_map_[Q])};
return C};
var Dm=function(O,x){return Object.prototype.hasOwnProperty.call(O,x)};var i54=function(){this.JSC$11496_map_=new _.A5;this.JSC$11496_head_=new $RJ("");this.JSC$11496_head_.next=this.JSC$11496_head_.prev=this.JSC$11496_head_},OMR=function(O,x){if(x=O.JSC$11496_map_.get(x))x.remove(),O.insert_(x);
return x};
_.b=i54.prototype;_.b.get=function(O,x){return(O=OMR(this,O))?O.value:x};
_.b.set=function(O,x){var e=OMR(this,O);e?e.value=x:(e=new $RJ(O,x),this.JSC$11496_map_.set(O,e),this.insert_(e))};
_.b.peek=function(){return this.JSC$11496_head_.next.value};
_.b.shift=function(){return xS$(this,this.JSC$11496_head_.next)};
_.b.pop=function(){return xS$(this,this.JSC$11496_head_.prev)};
_.b.remove=function(O){return(O=this.JSC$11496_map_.get(O))?(this.removeNode(O),!0):!1};
_.b.removeNode=function(O){O.remove();this.JSC$11496_map_.remove(O.key)};
_.b.getCount=function(){return this.JSC$11496_map_.getCount()};
_.b.isEmpty=function(){return this.JSC$11496_map_.isEmpty()};
_.b.getKeys=function(){return this.map(function(O,x){return x})};
_.b.getValues=function(){return this.map(function(O){return O})};
_.b.contains=function(O){return this.some(function(x){return x==O})};
_.b.containsKey=function(O){return this.JSC$11496_map_.containsKey(O)};
_.b.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11496_head_.prev)};
_.b.forEach=function(O,x){for(var e=this.JSC$11496_head_.next;e!=this.JSC$11496_head_;e=e.next)O.call(x,e.value,e.key,this)};
_.b.map=function(O,x){for(var e=[],l=this.JSC$11496_head_.next;l!=this.JSC$11496_head_;l=l.next)e.push(O.call(x,l.value,l.key,this));return e};
_.b.some=function(O,x){for(var e=this.JSC$11496_head_.next;e!=this.JSC$11496_head_;e=e.next)if(O.call(x,e.value,e.key,this))return!0;return!1};
_.b.every=function(O,x){for(var e=this.JSC$11496_head_.next;e!=this.JSC$11496_head_;e=e.next)if(!O.call(x,e.value,e.key,this))return!1;return!0};
_.b.insert_=function(O){O.next=this.JSC$11496_head_.next;O.prev=this.JSC$11496_head_;this.JSC$11496_head_.next=O;for(O.next.prev=O;this.getCount()>100;)this.removeNode(this.JSC$11496_head_.prev)};
var xS$=function(O,x){O.JSC$11496_head_!=x&&O.removeNode(x);return x.value},$RJ=function(O,x){this.key=O;
this.value=x};
$RJ.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var e2F=function(){kT.apply(this,arguments)};
_.c(e2F,kT);e2F.prototype.enqueue=function(O,x){this.insert(O,x)};var lwd=function(){var O=Error();O.name="SecurityError";throw O;},pAV=function(){return{get opener(){return null},
get closed(){return!0},get location(){lwd()},get document(){lwd()},postMessage:function(){},
close:function(){},
focus:function(){}}};var ylL={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 tW8={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 Cc4={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(tW8).join("|");var Q$d=function(){function O(k){k.substr(-1)!==";"&&(k+=";");return L(k)}
for(var x=Object.keys(Cc4).sort(E4r),e=Object.keys(tW8).sort(E4r),l=0,C=0;l<e.length;l++)x[C]===e[l]?(e[l]+=";?",C++):e[l]+=";";var Q=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),L=q5n();return function(k){return String(k).replace(Q,O)}}();/*

 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 bMN={};var Tjz=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"),Lzk=/[\\&]/,k_J=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),AiN=RegExp('[&<>"]',"g"),MKR=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),DSk=function(O){return O.charCodeAt(0)===92?O.charAt(1):Q$d(O)},G_N=function(O){return Lzk.test(O)?O.replace(k_J,DSk):O},FzN=function(O){try{var x,e="";
if(typeof C!=="string"){var l=C;var C=";/?:@&=+$,-_.!~*'()#"}typeof l==="undefined"&&(l=!0);var Q,L=bMN[C];if(L)var k=L;else{L=bMN[C]=[];for(Q=0;Q<128;Q++){var M=String.fromCharCode(Q);/^[0-9a-z]$/i.test(M)?L.push(M):L.push("%"+("0"+Q.toString(16).toUpperCase()).slice(-2))}for(Q=0;Q<C.length;Q++)L[C.charCodeAt(Q)]=C[Q];k=L}var G=0;for(x=O.length;G<x;G++){var X=O.charCodeAt(G);if(l&&X===37&&G+2<x&&/^[0-9a-f]{2}$/i.test(O.slice(G+1,G+3)))e+=O.slice(G,G+3),G+=2;else if(X<128)e+=k[X];else if(X>=55296&&
X<=57343){if(X>=55296&&X<=56319&&G+1<x){var y=O.charCodeAt(G+1);if(y>=56320&&y<=57343){e+=encodeURIComponent(O[G]+O[G+1]);G++;continue}}e+="%EF%BF%BD"}else e+=encodeURIComponent(O[G])}return e}catch(Z){return O}},Xb4=function(O){switch(O){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return O}},Gk=function(O,x){return AiN.test(O)?x?O.replace(MKR,Xb4):O.replace(AiN,Xb4):O};/*

 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 FI;if(String.fromCodePoint)FI=function(O){try{return String.fromCodePoint(O)}catch(x){if(x instanceof RangeError)return String.fromCharCode(65533);throw x;}};
else{var oVd=String.fromCharCode,yi2=Math.floor;FI=function(){var O=[],x=-1,e=arguments.length;if(!e)return"";for(var l="";++x<e;){var C=Number(arguments[x]);if(!isFinite(C)||C<0||C>1114111||yi2(C)!==C)return String.fromCharCode(65533);if(C<=65535)O.push(C);else{C-=65536;var Q=(C>>10)+55296;C=C%1024+56320;O.push(Q,C)}if(x+1===e||O.length>16384)l+=oVd.apply(null,O),O.length=0}return l}};var ZMR=function(O){this.root=this.current=O;this.entering=!0};
ZMR.prototype.next=function(){var O=this.current,x=this.entering;if(O===null)return null;a:switch(O._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 e=!0;break a;default:e=!1}x&&e?O._firstChild?(this.current=O._firstChild,this.entering=!0):this.entering=!1:O===this.root?this.current=null:O._next===null?(this.current=
O._parent,this.entering=!1):(this.current=O._next,this.entering=!0);return{entering:x,node:O}};
var Rp=function(O,x){this._type=O;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=x;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};
Rp.prototype.appendChild=function(O){O.unlink();O._parent=this;this._lastChild?(this._lastChild._next=O,O._prev=this._lastChild):this._firstChild=O;this._lastChild=O};
Rp.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 EVp=function(O,x){x.unlink();x._next=O._next;x._next&&(x._next._prev=x);x._prev=O;O._next=x;x._parent=O._parent;x._next||(x._parent._lastChild=x)};
Rp.prototype.insertBefore=function(O){O.unlink();O._prev=this._prev;O._prev&&(O._prev._next=O);O._next=this;this._prev=O;O._parent=this._parent;O._prev||(O._parent._firstChild=O)};
_.Dy.Object.defineProperties(Rp.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(O){this._literal=O}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(O){this._destination=O}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(O){this._title=O}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(O){this._info=O}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(O){this._level=O}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(O){this._listData.type=O}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(O){this._listData.tight=O}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(O){this._listData.start=O}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(O){this._onEnter=O}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(O){this._onExit=O}}});var PfW=/[ \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,
clN={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 tKL=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]/),
qML=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),PcN=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),ci$=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),IwF=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),VKN=/`+/,pbL=/^`+/,R2T=/\.\.\./g,US4=/--+/g,aw3=/^<([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])?)*)>/,
mSk=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,s$d=/^ *(?:\n *)?/,Wzp=/^[ \t\n\x0b\x0c\x0d]/,h23=/[ \t\n\x0b\x0c\x0d]+/g,z2L=/^\s/,rip=/ *$/,HM2=/^ */,Kzz=/^ *(?:\n|$)/,dS2=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),nVN=/^[^\n`\[\]\\!<&*_'"]+/m,XI=function(O){var x=new Rp("text");x._literal=O;return x},o1=function(O){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=O||{}};
o1.prototype.match=function(O){O=O.exec(this.subject.slice(this.pos));if(O===null)return null;this.pos+=O.index+O[0].length;return O[0]};
o1.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var yr=function(O){O.match(s$d);return!0},uGp=function(O,x,e){var l=0;
var C=O.pos;if(x===39||x===34)l++,O.pos++;else for(;O.peek()===x;)l++,O.pos++;if(l===0)l=null;else{var Q=C===0?"\n":O.subject.charAt(C-1);var L=O.peek();L=L===-1?"\n":FI(L);var k=z2L.test(L);L=tKL.test(L);var M=z2L.test(Q);var G=tKL.test(Q);Q=!k&&!(L&&!M&&!G);k=!M&&!(G&&!k&&!L);x===95?(M=Q&&(!k||G),L=k&&(!Q||L)):(M=x===39||x===34?Q&&!k:Q,L=k);O.pos=C;l={numdelims:l,can_open:M,can_close:L}}if(!l)return!1;C=l.numdelims;L=O.pos;O.pos+=C;L=x===39?"\u2019":x===34?"\u201c":O.subject.slice(L,O.pos);L=XI(L);
e.appendChild(L);O.delimiters={cc:x,numdelims:C,origdelims:C,node:L,previous:O.delimiters,next:null,can_open:l.can_open,can_close:l.can_close};O.delimiters.previous!==null&&(O.delimiters.previous.next=O.delimiters);return!0},YMF=function(O,x){x.previous!==null&&(x.previous.next=x.next);
x.next===null?O.delimiters=x.previous:x.next.previous=x.previous},Bj$=function(O,x){var e,l,C=[],Q=!1;
C[95]=x;C[42]=x;C[39]=x;C[34]=x;for(e=O.delimiters;e!==null&&e.previous!==x;)e=e.previous;for(;e!==null;){var L=e.cc;if(e.can_close){var k=e.previous;for(l=!1;k!==null&&k!==x&&k!==C[L];){Q=(e.can_open||k.can_close)&&(k.origdelims+e.origdelims)%3===0;if(k.cc===e.cc&&k.can_open&&!Q){l=!0;break}k=k.previous}var M=e;if(L===42||L===95)if(l){var G=e.numdelims>=2&&k.numdelims>=2?2:1;var X=k.node;var y=e.node;k.numdelims-=G;e.numdelims-=G;X._literal=X._literal.slice(0,X._literal.length-G);y._literal=y._literal.slice(0,
y._literal.length-G);var Z=new Rp(G===1?"emph":"strong");for(G=X._next;G&&G!==y;){var E=G._next;G.unlink();Z.appendChild(G);G=E}EVp(X,Z);G=k;E=e;G.next!==E&&(G.next=E,E.previous=G);k.numdelims===0&&(X.unlink(),YMF(O,k));e.numdelims===0&&(y.unlink(),k=e.next,YMF(O,e),e=k)}else e=e.next;else L===39?(e.node._literal="\u2019",l&&(k.node._literal="\u2018"),e=e.next):L===34&&(e.node._literal="\u201d",l&&(k.node.literal="\u201c"),e=e.next);l||Q||(C[L]=M.previous,M.can_open||YMF(O,M))}else e=e.next}for(;O.delimiters!==
null&&O.delimiters!==x;)YMF(O,O.delimiters)},vVd=function(O){O=O.match(qML);
return O===null?null:G_N(O.substr(1,O.length-2))},fwR=function(O){var x=O.match(PcN);
if(x===null){x=O.pos;for(var e=0,l;(l=O.peek())!==-1;)if(l===92)O.pos+=1,O.peek()!==-1&&(O.pos+=1);else if(l===40)O.pos+=1,e+=1;else if(l===41)if(e<1)break;else O.pos+=1,--e;else if(Wzp.exec(FI(l))!==null)break;else O.pos+=1;x=O.subject.substr(x,O.pos-x);return FzN(G_N(x))}return FzN(G_N(x.substr(1,x.length-2)))},Jid=function(O){O=O.match(dS2);
return O===null||O.length>1001?0:O.length},wb3=function(O,x,e,l){O.brackets!==null&&(O.brackets.bracketAfter=!0);
O.brackets={node:x,previous:O.brackets,previousDelimiter:O.delimiters,index:e,image:l,active:!0}},SM3=function(O,x){var e;
return(e=O.match(nVN))?(O.options.smart?x.appendChild(XI(e.replace(R2T,"\u2026").replace(US4,function(l){var C=0,Q=0;l.length%3===0?Q=l.length/3:l.length%2===0?C=l.length/2:l.length%3===2?(C=1,Q=(l.length-2)/3):(C=2,Q=(l.length-4)/3);l="";var L;for(L=0;L<Q;L++)l+="\u2014";for(L=0;L<C;L++)l+="\u2013";return l}))):x.appendChild(XI(e)),!0):!1},j$F=function(O,x,e){O.subject=x;
O.pos=0;x=O.pos;var l=Jid(O);if(l===0)return 0;var C=O.subject.substr(0,l);if(O.peek()===58)O.pos++;else return O.pos=x,0;yr(O);l=fwR(O);if(l===null||l.length===0)return O.pos=x,0;var Q=O.pos;yr(O);var L=vVd(O);L===null&&(L="",O.pos=Q);var k=!0;O.match(Kzz)===null&&(L===""?k=!1:(L="",O.pos=Q,k=O.match(Kzz)!==null));if(!k)return O.pos=x,0;C=Ign(C);if(C==="")return O.pos=x,0;e[C]||(e[C]={destination:l,title:L});return O.pos-x},Nj2=function(O,x){var e,l=O.peek();
if(l===-1)return!1;switch(l){case 10:O.pos+=1;if((e=x._lastChild)&&e.type==="text"&&e._literal[e._literal.length-1]===" "){var C=e._literal[e._literal.length-2]===" ";e._literal=e._literal.replace(rip,"");x.appendChild(new Rp(C?"linebreak":"softbreak"))}else x.appendChild(new Rp("softbreak"));O.match(HM2);e=!0;break;case 92:e=O.subject;O.pos+=1;O.peek()===10?(O.pos+=1,e=new Rp("linebreak"),x.appendChild(e)):ci$.test(e.charAt(O.pos))?(x.appendChild(XI(e.charAt(O.pos))),O.pos+=1):x.appendChild(XI("\\"));
e=!0;break;case 96:a:if(e=O.match(pbL),e===null)e=!1;else{C=O.pos;for(var Q;(Q=O.match(VKN))!==null;)if(Q===e){Q=new Rp("code");Q._literal=O.subject.slice(C,O.pos-e.length).trim().replace(h23," ");x.appendChild(Q);e=!0;break a}O.pos=C;x.appendChild(XI(e));e=!0}break;case 42:case 95:e=uGp(O,l,x);break;case 39:case 34:e=O.options.smart&&uGp(O,l,x);break;case 91:e=O.pos;O.pos+=1;C=XI("[");x.appendChild(C);wb3(O,C,e,!1);e=!0;break;case 33:e=O.pos;O.pos+=1;O.peek()===91?(O.pos+=1,C=XI("!["),x.appendChild(C),
wb3(O,C,e+1,!0)):x.appendChild(XI("!"));e=!0;break;case 93:var L,k=!1,M;O.pos+=1;var G=O.pos;C=O.brackets;if(C===null)x.appendChild(XI("]"));else if(C.active){e=C.image;var X=O.pos;O.peek()===40&&(O.pos++,yr(O)&&(Q=fwR(O))!==null&&yr(O)&&(Wzp.test(O.subject.charAt(O.pos-1))&&(L=vVd(O)),1)&&yr(O)&&O.peek()===41?(O.pos+=1,k=!0):O.pos=X);if(!k){var y=O.pos,Z=Jid(O);Z>2?M=O.subject.slice(y,y+Z):C.bracketAfter||(M=O.subject.slice(C.index,G));Z===0&&(O.pos=X);M&&(M=O.refmap[Ign(M)])&&(Q=M.destination,L=
M.title,k=!0)}if(k){G=new Rp(e?"image":"link");G._destination=Q;G._title=L||"";for(Q=C.node._next;Q;)L=Q._next,Q.unlink(),G.appendChild(Q),Q=L;x.appendChild(G);Bj$(O,C.previousDelimiter);O.brackets=O.brackets.previous;C.node.unlink();if(!e)for(C=O.brackets;C!==null;)C.image||(C.active=!1),C=C.previous}else O.brackets=O.brackets.previous,O.pos=G,x.appendChild(XI("]"))}else x.appendChild(XI("]")),O.brackets=O.brackets.previous;e=!0;break;case 60:(e=O.match(aw3))?(e=e.slice(1,e.length-1),C=new Rp("link"),
C._destination=FzN("mailto:"+e),C._title="",C.appendChild(XI(e)),x.appendChild(C),e=!0):(e=O.match(mSk))?(e=e.slice(1,e.length-1),C=new Rp("link"),C._destination=FzN(e),C._title="",C.appendChild(XI(e)),x.appendChild(C),e=!0):e=!1;e||(e=O.match(Tjz),e===null?e=!1:(C=new Rp("html_inline"),C._literal=e,x.appendChild(C),e=!0));break;case 38:(e=O.match(IwF))?(x.appendChild(XI(Q$d(e))),e=!0):e=!1;break;default:e=SM3(O,x)}e||(O.pos+=1,x.appendChild(XI(FI(l))));return!0};
o1.prototype.parseInlines=function(O){this.subject=O._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Nj2(this,O););O._string_content=null;Bj$(this,null)};
o1.prototype.parse=o1.prototype.parseInlines;var gV4=[/./,/^<(?: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")],$Sz=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],iMF=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,OIR=/^[#`~*+_=<>0-9-\|]|\|/,xo3=/[^ \t\f\v\r\n]/,eJ4=/^[*+-]/,lrd=/^(\d{1,9})([.)])/,Cg2=/^#{1,6}(?:[ \t]+|$)/,QLJ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,bI$=/^(?:`{3,}|~{3,})(?= *$)/,TCN=/^(?:=+|-+)[ \t]*$/,L6L=/\r\n|\n|\r/,pSL=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,R0$=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,koN={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(O){return O!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(O,x){for(O=x._firstChild;O;){if(VWr(O)&&O._next){x._listData.tight=!1;break}for(var e=O._firstChild;e;){if(VWr(e)&&(O._next||e._next)){x._listData.tight=!1;break}e=e._next}O=O._next}},
canContain:function(O){return O==="item"},
acceptsLines:!1},block_quote:{continue:function(O){var x=O.currentLine;if(O.indented||VS(x,O.nextNonspace)!==62)return 1;EF(O);t5(O,1,!1);Ip(VS(x,O.offset))&&t5(O,1,!0);return 0},
finalize:function(){},
canContain:function(O){return O!=="item"},
acceptsLines:!1},item:{continue:function(O,x){if(O.blank){if(x._firstChild==null)return 1;EF(O)}else if(O.indent>=x._listData.markerOffset+x._listData.padding)t5(O,x._listData.markerOffset+x._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(O){return O!=="item"&&!Upi(O)},
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(O,x){var e=O.currentLine,l=O.indent;if(x._isFenced){if((l=l<=3&&e.charAt(O.nextNonspace)===x._fenceChar&&e.slice(O.nextNonspace).match(bI$))&&l[0].length>=x._fenceLength)return O.finalize(x,O.lineNumber),2;for(x=x._fenceOffset;x>0&&Ip(VS(e,O.offset));)t5(O,1,!0),x--}else if(l>=4)t5(O,4,!0);else if(O.blank)EF(O);else return 1;return 0},
finalize:function(O,x){if(x._isFenced){var e=x._string_content,l=e.indexOf("\n");O=e.slice(0,l);e=e.slice(l+1);x.info=G_N(O.trim());x._literal=e}else x._literal=x._string_content.replace(/(\n *)+$/,"\n");x._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(O,x){return!O.blank||x._htmlBlockType!==6&&x._htmlBlockType!==7?0:1},
finalize:function(O,x){x._literal=x._string_content.replace(/(\n *)+$/,"");x._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(O){return O.blank?1:0},
finalize:function(O,x){for(var e,l=!1;VS(x._string_content,0)===91&&(e=j$F(O.inlineParser,x._string_content,O.refmap));)x._string_content=x._string_content.slice(e),l=!0;l&&!xo3.test(x._string_content)&&x.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(O){return pG(O.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(O){return O=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(O,x){if(!x._rowIsDelimiter){O=x._isHeader?"th":"td";for(var e=x._parent._tableColumns,l=x._string_content,C=0,Q="",L,k=x._sourcepos[0][0];C<l.length;){switch(l[C]){case "|":L&&(L._string_content=Q.trim(),Q="",L=null,e--,e<=0&&(C=l.length));break;default:if(!L){L=new Rp(O,[[k,C],[k,C]]);var M=x._parent._columnAlignment,G=x._parent._tableColumns-e;M&&G<=M.length&&G>=0&&(L._alignment=M[G]);x.appendChild(L)}Q+=l[C];L._sourcepos[1][1]=C}C++}L&&(L._string_content=Q.trim());x._string_content=
""}},
canContain:function(O){return O!=="row"},
acceptsLines:!1}},AtL=[function(O){if(O.indented||VS(O.currentLine,O.nextNonspace)!==62)return 0;EF(O);t5(O,1,!1);Ip(VS(O.currentLine,O.offset))&&t5(O,1,!0);q_(O);O.addChild("block_quote",O.nextNonspace);return 1},
function(O){var x;if(!O.indented&&(x=O.currentLine.slice(O.nextNonspace).match(Cg2))){EF(O);t5(O,x[0].length,!1);q_(O);var e=O.addChild("heading",O.nextNonspace);e.level=x[0].trim().length;e._string_content=O.currentLine.slice(O.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");t5(O,O.currentLine.length-O.offset);return 2}return 0},
function(O){var x;if(!O.indented&&(x=O.currentLine.slice(O.nextNonspace).match(QLJ))){var e=x[0].length;q_(O);var l=O.addChild("code_block",O.nextNonspace);l._isFenced=!0;l._fenceLength=e;l._fenceChar=x[0][0];l._fenceOffset=O.indent;EF(O);t5(O,e,!1);return 2}return 0},
function(O,x){if(!O.indented&&VS(O.currentLine,O.nextNonspace)===60){var e=O.currentLine.slice(O.nextNonspace),l;for(l=1;l<=7;l++)if(gV4[l].test(e)&&(l<7||x.type!=="paragraph"))return q_(O),O.addChild("html_block",O.offset)._htmlBlockType=l,2}return 0},
function(O,x){var e;if(!O.indented&&x.type==="paragraph"&&(e=O.currentLine.slice(O.nextNonspace).match(TCN))){q_(O);var l=new Rp("heading",x.sourcepos);l.level=e[0][0]==="="?1:2;l._string_content=x._string_content;EVp(x,l);x.unlink();O.tip=l;t5(O,O.currentLine.length-O.offset,!1);return 2}return 0},
function(O){return!O.indented&&iMF.test(O.currentLine.slice(O.nextNonspace))?(q_(O),O.addChild("thematic_break",O.nextNonspace),t5(O,O.currentLine.length-O.offset,!1),2):0},
function(O,x){var e,l;if(!(l=O.indented&&x.type!=="list")){a:{var C=x,Q=O.currentLine.slice(O.nextNonspace);l={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:O.indent};if(e=Q.match(eJ4))l.type="bullet",l.bulletChar=e[0][0];else{if(!(e=Q.match(lrd))||C.type==="paragraph"&&e[1]!=="1"){e=null;break a}l.type="ordered";l.start=parseInt(e[1],10);l.delimiter=e[2]}var L=VS(O.currentLine,O.nextNonspace+e[0].length);if(L!==-1&&L!==9&&L!==32||C.type==="paragraph"&&!O.currentLine.slice(O.nextNonspace+
e[0].length).match(xo3))e=null;else{EF(O);t5(O,e[0].length,!0);C=O.column;Q=O.offset;do t5(O,1,!0),L=VS(O.currentLine,O.offset);while(O.column-C<5&&Ip(L));L=VS(O.currentLine,O.offset)===-1;var k=O.column-C;k>=5||k<1||L?(l.padding=e[0].length+1,O.column=C,O.offset=Q,Ip(VS(O.currentLine,O.offset))&&t5(O,1,!0)):l.padding=e[0].length+k;e=l}}l=!e}if(l)return 0;q_(O);(l=O.tip.type!=="list")||(x=x._listData,l=!(x.type===e.type&&x.delimiter===e.delimiter&&x.bulletChar===e.bulletChar));l&&(x=O.addChild("list",
O.nextNonspace),x._listData=e);x=O.addChild("item",O.nextNonspace);x._listData=e;return 1},
function(O){var x;return((x=O.options.shouldParseIndentAsCodeBlock)!=null?x:1)&&O.indented&&O.tip.type!=="paragraph"&&!O.blank?(t5(O,4,!0),q_(O),O.addChild("code_block",O.offset),2):0},
function(O,x){var e=pG(O.currentLine),l=pG(O.lookahead);if(e!==0&&l<0&&Math.abs(e)==Math.abs(l)&&!Upi(x.type)){q_(O);x=O.addChild("table",O.nextNonspace);x._tableRows=1;x._tableColumns=Math.abs(e);e=O.lookahead;if(R0$.test(e)){l=[];for(var C=0,Q=!1,L=0,k=void 0;C<e.length;){var M=L>=3;switch(e[C]){case "-":L++;break;case "|":Q&&(l.push(k),k=void 0,L=0);Q=!0;break;case ":":k||M||(k="left"),!k&&M&&(k="right"),k==="left"&&M&&(k="center")}C++}e=l}else e=void 0;x._columnAlignment=e;x=O.addChild("row",
O.nextNonspace);x._isHeader=!0;t5(O,O.currentLine.length-O.offset,!1);x._string_content=O.currentLine;return 1}return 0},
function(O,x){if(x.type=="table"&&pG(O.currentLine)!==0){q_(O);var e=x;x=O.addChild("row",O.nextNonspace);pG(O.currentLine)<0?x._rowIsDelimiter=!0:e._tableRows+=1;t5(O,O.currentLine.length-O.offset,!1);x._string_content=O.currentLine;return 2}return 0}],o$w=function(){var O={shouldParseIndentAsCodeBlock:!1};
O=O===void 0?{}:O;this.lastMatchedContainer=this.doc=agW();this.refmap={};this.lastLineLength=0;this.inlineParser=new o1(O);this.options=O;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=koN;this.blockStarts=AtL},M1p=function(O){O.partiallyConsumedTab&&(O.offset+=1,O.tip._string_content+=" ".repeat(4-O.column%
4));
O.tip._string_content+=O.currentLine.slice(O.offset)+"\n"};
o$w.prototype.addChild=function(O,x){for(;!this.blocks[this.tip.type].canContain(O);)this.finalize(this.tip,this.lineNumber-1);O=new Rp(O,[[this.lineNumber,x+1],[0,0]]);O._string_content="";this.tip.appendChild(O);return this.tip=O};
var q_=function(O){if(!O.allClosed){for(;O.oldtip!==O.lastMatchedContainer;){var x=O.oldtip._parent;O.finalize(O.oldtip,O.lineNumber-1);O.oldtip=x}O.allClosed=!0}},t5=function(O,x,e){for(var l=O.currentLine,C,Q;x>0&&(Q=l[O.offset]);)Q==="\t"?(C=4-O.column%4,e?(O.partiallyConsumedTab=C>x,C=C>x?x:C,O.column+=C,O.offset+=O.partiallyConsumedTab?0:1,x-=C):(O.partiallyConsumedTab=!1,O.column+=C,O.offset+=1,--x)):(O.partiallyConsumedTab=!1,O.offset+=1,O.column+=1,--x)},EF=function(O){O.offset=O.nextNonspace;
O.column=O.nextNonspaceColumn;O.partiallyConsumedTab=!1},Dod=function(O){for(var x=O.currentLine,e=O.offset,l=O.column,C;(C=x.charAt(e))!=="";)if(C===" ")e++,l++;
else if(C==="\t")e++,l+=4-l%4;else break;O.blank=C==="\n"||C==="\r"||C==="";O.nextNonspace=e;O.nextNonspaceColumn=l;O.indent=O.nextNonspaceColumn-O.column;O.indented=O.indent>=4};
o$w.prototype.finalize=function(O,x){var e=O._parent;O._open=!1;O.sourcepos[1]=[x,this.lastLineLength];this.blocks[O.type].finalize(this,O);this.tip=e};
o$w.prototype.parse=function(O){this.tip=this.doc=agW();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!O)return this.doc;this.options.time&&console.time("preparing input");var x=O.split(L6L),e=x.length;O.charCodeAt(O.length-1)===10&&--e;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(O=0;O<e;O++)a:{var l=void 0,C=x[O],Q=x[O+1],L=!0,k=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;C.indexOf("\x00")!==-1&&(C=C.replace(/\0/g,"\ufffd"));this.currentLine=C;for(this.lookahead=Q;(l=k._lastChild)&&l._open;){k=l;Dod(this);switch(this.blocks[k.type].continue(this,k)){case 0:break;case 1:L=!1;break;case 2:this.lastLineLength=C.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!L){k=k._parent;break}}this.allClosed=k===this.oldtip;this.lastMatchedContainer=
k;l=k.type!=="paragraph"&&koN[k.type].acceptsLines;Q=this.blockStarts;for(L=Q.length;!l;){Dod(this);if(!this.indented&&!OIR.test(C.slice(this.nextNonspace))){EF(this);break}for(var M=0;M<L;){var G=Q[M](this,k);if(G===1){k=this.tip;break}else if(G===2){k=this.tip;l=!0;break}else M++}if(M===L){EF(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){q_(this);this.blank&&k.lastChild&&(k.lastChild._lastLineBlank=!0);l=k.type;Q=this.blank&&!(l==="block_quote"||l==="code_block"&&k._isFenced||
l==="item"&&!k._firstChild&&k.sourcepos[0][0]===this.lineNumber);for(L=k;L;)L._lastLineBlank=Q,L=L._parent;this.blocks[l].acceptsLines?(M1p(this),l==="html_block"&&k._htmlBlockType>=1&&k._htmlBlockType<=5&&$Sz[k._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(k,this.lineNumber)):this.offset<C.length&&!this.blank&&(this.addChild("paragraph",this.offset),EF(this),M1p(this))}else M1p(this);this.lastLineLength=C.length}for(;this.tip;)this.finalize(this.tip,e);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");C=new ZMR(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;e=C.next();)x=e.node,O=x.type,e.entering||O!=="paragraph"&&O!=="heading"&&O!=="th"&&O!="td"||this.inlineParser.parse(x);this.options.time&&console.timeEnd("inline parsing");return this.doc};mpN.prototype.render=function(O){O=new ZMR(O);var x;this.buffer="";for(this.lastOut="\n";x=O.next();){var e=x.node.type;if(this[e])this[e](x.node,x.entering)}return this.buffer};
mpN.prototype.out=function(O){Pg(this,O)};
var Pg=function(O,x){O.buffer+=x;O.lastOut=x};
mpN.prototype.cr=function(){this.lastOut!=="\n"&&Pg(this,"\n")};var GoL=/^javascript:|vbscript:|file:|data:/i,F64=/^data:image\/(?:png|gif|jpeg|webp)/i,XNJ=function(O){return GoL.test(O)&&!F64.test(O)};
Uv.prototype=Object.create(mpN.prototype);_.b=Uv.prototype;_.b.text=function(O){this.out(O.literal)};
_.b.html_inline=function(O){this.options.safe?Pg(this,"\x3c!-- raw HTML omitted --\x3e"):Pg(this,O.literal)};
_.b.html_block=function(O){this.cr();this.options.safe?Pg(this,"\x3c!-- raw HTML omitted --\x3e"):Pg(this,O.literal);this.cr()};
_.b.softbreak=function(){Pg(this,this.options.softbreak)};
_.b.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.b.link=function(O,x){var e=this.attrs(O);x?(this.options.safe&&XNJ(O.destination)||e.push(["href",Gk(O.destination,!0)]),O.title&&e.push(["title",Gk(O.title,!0)]),this.tag("a",e)):this.tag("/a")};
_.b.image=function(O,x){x?(this.disableTags===0&&(this.options.safe&&XNJ(O.destination)?Pg(this,'<img src="" alt="'):Pg(this,'<img src="'+Gk(O.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(O.title&&Pg(this,'" title="'+Gk(O.title,!0)),Pg(this,'" />')))};
_.b.emph=function(O,x){this.tag(x?"em":"/em")};
_.b.strong=function(O,x){this.tag(x?"strong":"/strong")};
_.b.paragraph=function(O,x){var e=O.parent.parent;O=this.attrs(O);e!==null&&e.type==="list"&&e.listTight||(x?(this.cr(),this.tag("p",O)):(this.tag("/p"),this.cr()))};
_.b.heading=function(O,x){var e="h"+O.level;O=this.attrs(O);x?(this.cr(),this.tag(e,O)):(this.tag("/"+e),this.cr())};
_.b.code=function(O){this.tag("code");this.out(O.literal);this.tag("/code")};
_.b.code_block=function(O){var x=O.info?O.info.split(/\s+/):[],e=this.attrs(O);x.length>0&&x[0].length>0&&e.push(["class","language-"+Gk(x[0],!0)]);this.cr();this.tag("pre");this.tag("code",e);this.out(O.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.b.thematic_break=function(O){O=this.attrs(O);this.cr();this.tag("hr",O,!0);this.cr()};
_.b.block_quote=function(O,x){O=this.attrs(O);x?(this.cr(),this.tag("blockquote",O)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.b.list=function(O,x){var e=O.listType==="bullet"?"ul":"ol",l=this.attrs(O);x?(O=O.listStart,O!==null&&O!==1&&l.push(["start",O.toString()]),this.cr(),this.tag(e,l)):(this.cr(),this.tag("/"+e));this.cr()};
_.b.item=function(O,x){O=this.attrs(O);x?this.tag("li",O):(this.tag("/li"),this.cr())};
_.b.custom_inline=function(O,x){x&&O.onEnter?Pg(this,O.onEnter):!x&&O.onExit&&Pg(this,O.onExit)};
_.b.custom_block=function(O,x){this.cr();x&&O.onEnter?Pg(this,O.onEnter):!x&&O.onExit&&Pg(this,O.onExit);this.cr()};
_.b.table=function(O,x){O=this.attrs(O);x?(this.cr(),this.tag("table",O)):(this.tag("/table"),this.cr())};
_.b.row=function(O,x){O._rowIsDelimiter||(O=this.attrs(O),x?this.tag("tr",O):this.tag("/tr"))};
_.b.td=function(O,x){var e=this.attrs(O);O._alignment&&e.push(["align",O._alignment]);x?this.tag("td",e):this.tag("/td")};
_.b.th=function(O,x){var e=this.attrs(O);O._alignment&&e.push(["align",O._alignment]);x?this.tag("th",e):this.tag("/th")};
_.b.out=function(O){Pg(this,Gk(O,!1))};
_.b.tag=function(O,x,e){if(!(this.disableTags>0)){this.buffer+="<"+O;if(x&&x.length>0){O=0;for(var l;(l=x[O])!==void 0;)this.buffer+=" "+l[0]+'="'+l[1]+'"',O++}e&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.b.attrs=function(O){var x=[];this.options.sourcepos&&(O=O.sourcepos)&&x.push(["data-sourcepos",String(O[0][0])+":"+String(O[0][1])+"-"+String(O[1][0])+":"+String(O[1][1])]);return x};
Uv.prototype.text=Uv.prototype.text;Uv.prototype.html_inline=Uv.prototype.html_inline;Uv.prototype.html_block=Uv.prototype.html_block;Uv.prototype.softbreak=Uv.prototype.softbreak;Uv.prototype.linebreak=Uv.prototype.linebreak;Uv.prototype.link=Uv.prototype.link;Uv.prototype.image=Uv.prototype.image;Uv.prototype.emph=Uv.prototype.emph;Uv.prototype.strong=Uv.prototype.strong;Uv.prototype.paragraph=Uv.prototype.paragraph;Uv.prototype.heading=Uv.prototype.heading;Uv.prototype.code=Uv.prototype.code;
Uv.prototype.code_block=Uv.prototype.code_block;Uv.prototype.thematic_break=Uv.prototype.thematic_break;Uv.prototype.block_quote=Uv.prototype.block_quote;Uv.prototype.list=Uv.prototype.list;Uv.prototype.item=Uv.prototype.item;Uv.prototype.custom_inline=Uv.prototype.custom_inline;Uv.prototype.custom_block=Uv.prototype.custom_block;Uv.prototype.table=Uv.prototype.table;Uv.prototype.row=Uv.prototype.row;Uv.prototype.td=Uv.prototype.td;Uv.prototype.th=Uv.prototype.th;Uv.prototype.out=Uv.prototype.out;
Uv.prototype.tag=Uv.prototype.tag;Uv.prototype.attrs=Uv.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 oQd,yt4,y$N;(function(){function O(h,m){return h<m?-1:h>m?1:h>=m?0:NaN}
function x(h){return function(m,d){return O(h(m),d)}}
function e(){for(var h=0,m=arguments.length,d={},xW;h<m;++h){if(!(xW=arguments[h]+"")||xW in d)throw Error("ve`"+xW);d[xW]=[]}return new l(d)}
function l(h){this._=h}
function C(h,m){return h.trim().split(/^|\s+/).map(function(d){var xW="",kW=d.indexOf(".");kW>=0&&(xW=d.slice(kW+1),d=d.slice(0,kW));if(d&&!m.hasOwnProperty(d))throw Error("we`"+d);return{type:d,name:xW}})}
function Q(h,m,d){for(var xW=0,kW=h.length;xW<kW;++xW)if(h[xW].name===m){h[xW]=jVQ;h=h.slice(0,xW).concat(h.slice(xW+1));break}d!=null&&h.push({name:m,value:d});return h}
function L(h){var m=h,d=m.indexOf(":");d>=0&&(m=h.slice(0,d))!=="xmlns"&&(h=h.slice(d+1));return NS.hasOwnProperty(m)?{space:NS[m],local:h}:h}
function k(h){return function(){var m=this.ownerDocument,d=this.namespaceURI;return d==="http://www.w3.org/1999/xhtml"&&m.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?m.createElement(h):m.createElementNS(d,h)}}
function M(h){return function(){return this.ownerDocument.createElementNS(h.space,h.local)}}
function G(h){h=L(h);return(h.local?M:k)(h)}
function X(){}
function y(h){return h==null?X:function(){return this.querySelector(h)}}
function Z(h){return Array(h.length)}
function E(h,m){this.ownerDocument=h.ownerDocument;this.namespaceURI=h.namespaceURI;this._next=null;this._parent=h;this.__data__=m}
function P(h){return function(){return h}}
function U(h,m,d,xW,kW,yN){for(var ci=0,hL,bF=m.length,$W=yN.length;ci<$W;++ci)(hL=m[ci])?(hL.__data__=yN[ci],xW[ci]=hL):d[ci]=new E(h,yN[ci]);for(;ci<bF;++ci)if(hL=m[ci])kW[ci]=hL}
function W(h,m,d,xW,kW,yN,ci){var hL,bF,$W={},Tp=m.length,X4=yN.length,S$=Array(Tp),s4;for(hL=0;hL<Tp;++hL)if(bF=m[hL])S$[hL]=s4="$"+ci.call(bF,bF.__data__,hL,m),s4 in $W?kW[hL]=bF:$W[s4]=bF;for(hL=0;hL<X4;++hL)s4="$"+ci.call(h,yN[hL],hL,yN),(bF=$W[s4])?(xW[hL]=bF,bF.__data__=yN[hL],$W[s4]=null):d[hL]=new E(h,yN[hL]);for(hL=0;hL<Tp;++hL)(bF=m[hL])&&$W[S$[hL]]===bF&&(kW[hL]=bF)}
function z(h,m){return h<m?-1:h>m?1:h>=m?0:NaN}
function r(h){return function(){this.removeAttribute(h)}}
function f(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function u(h,m){return function(){this.setAttribute(h,m)}}
function Y(h,m){return function(){this.setAttributeNS(h.space,h.local,m)}}
function J(h,m){return function(){var d=m.apply(this,arguments);d==null?this.removeAttribute(h):this.setAttribute(h,d)}}
function O8(h,m){return function(){var d=m.apply(this,arguments);d==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,d)}}
function Xr(h){return function(){this.style.removeProperty(h)}}
function Fr(h,m,d){return function(){this.style.setProperty(h,m,d)}}
function mL(h,m,d){return function(){var xW=m.apply(this,arguments);xW==null?this.style.removeProperty(h):this.style.setProperty(h,xW,d)}}
function Zn(h,m){return h.style.getPropertyValue(m)||(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView).getComputedStyle(h,null).getPropertyValue(m)}
function q$(h){return function(){delete this[h]}}
function KV(h,m){return function(){this[h]=m}}
function VN(h,m){return function(){var d=m.apply(this,arguments);d==null?delete this[h]:this[h]=d}}
function Pd(){this.textContent=""}
function f2(h){return function(){this.textContent=h}}
function p2(h){return function(){var m=h.apply(this,arguments);this.textContent=m==null?"":m}}
function OT(){this.innerHTML=""}
function Gp(h){return function(){this.innerHTML=h}}
function zp(h){return function(){var m=h.apply(this,arguments);this.innerHTML=m==null?"":m}}
function m3(){return null}
function E4(){var h=this.parentNode;h&&h.removeChild(this)}
function Xw(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Tr(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function QR(h,m,d){h=ET(h,m,d);return function(xW){var kW=xW.relatedTarget;kW&&(kW===this||kW.compareDocumentPosition(this)&8)||h.call(this,xW)}}
function ET(h,m,d){return function(){h.call(this,this.__data__,m,d)}}
function Q$(h){return h.trim().split(/^|\s+/).map(function(m){var d="",xW=m.indexOf(".");xW>=0&&(d=m.slice(xW+1),m=m.slice(0,xW));return{type:m,name:d}})}
function tJ(h){return function(){var m=this.__on;if(m){for(var d=0,xW=-1,kW=m.length,yN;d<kW;++d)(yN=m[d],h.type&&yN.type!==h.type||yN.name!==h.name)?m[++xW]=yN:this.removeEventListener(yN.type,yN.listener,yN.capture);++xW?m.length=xW:delete this.__on}}}
function CQ(h,m,d){var xW=o5T.hasOwnProperty(h.type)?QR:ET;return function(kW,yN,ci){kW=this.__on;var hL;yN=xW(m,yN,ci);if(kW){ci=0;for(var bF=kW.length;ci<bF;++ci)if((hL=kW[ci]).type===h.type&&hL.name===h.name){this.removeEventListener(hL.type,hL.listener,hL.capture);this.addEventListener(hL.type,hL.listener=yN,hL.capture=d);hL.value=m;return}}this.addEventListener(h.type,yN,d);hL={type:h.type,name:h.name,value:m,listener:yN,capture:d};kW?kW.push(hL):this.__on=[hL]}}
function hS(h,m,d){var xW=h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView,kW=xW.CustomEvent;typeof kW==="function"?kW=new kW(m,d):(kW=xW.document.createEvent("Event"),d?(kW.initEvent(m,d.bubbles,d.cancelable),kW.detail=d.detail):kW.initEvent(m,!1,!1));h.dispatchEvent(kW)}
function JJ(h,m){return function(){return hS(this,h,m)}}
function F4(h,m){return function(){return hS(this,h,m.apply(this,arguments))}}
function DD(h,m){this._groups=h;this._parents=m}
function lL(){return new DD([[document.documentElement]],Ng4)}
function Sw(){this._="@"+(++gaL).toString(36)}
function ZD(h,m,d){h.prototype=m.prototype=d;d.constructor=h}
function qh(h,m){h=Object.create(h.prototype);for(var d in m)h[d]=m[d];return h}
function Or(){}
function au(h){var m;h=(h+"").trim().toLowerCase();return(m=$Lu.exec(h))?(m=parseInt(m[1],16),new Iu(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1)):(m=idQ.exec(h))?BO(parseInt(m[1],16)):(m=OnQ.exec(h))?new Iu(m[1],m[2],m[3],1):(m=xOe.exec(h))?new Iu(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=eYh.exec(h))?OZ(m[1],m[2],m[3],m[4]):(m=l1L.exec(h))?OZ(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=Cnh.exec(h))?wo(m[1],m[2]/100,m[3]/100,1):(m=Qeh.exec(h))?wo(m[1],m[2]/100,m[3]/100,m[4]):y8T.hasOwnProperty(h)?
BO(y8T[h]):h==="transparent"?new Iu(NaN,NaN,NaN,0):null}
function BO(h){return new Iu(h>>16&255,h>>8&255,h&255,1)}
function OZ(h,m,d,xW){xW<=0&&(h=m=d=NaN);return new Iu(h,m,d,xW)}
function TJ(h){h instanceof Or||(h=au(h));if(!h)return new Iu;h=h.rgb();return new Iu(h.r,h.g,h.b,h.opacity)}
function ep(h,m,d,xW){return arguments.length===1?TJ(h):new Iu(h,m,d,xW==null?1:xW)}
function Iu(h,m,d,xW){this.r=+h;this.g=+m;this.b=+d;this.opacity=+xW}
function $d(h){h=Math.max(0,Math.min(255,Math.round(h)||0));return(h<16?"0":"")+h.toString(16)}
function wo(h,m,d,xW){xW<=0?h=m=d=NaN:d<=0||d>=1?h=m=NaN:m<=0&&(h=NaN);return new SZ(h,m,d,xW)}
function ut(h){if(h instanceof SZ)return new SZ(h.h,h.s,h.l,h.opacity);h instanceof Or||(h=au(h));if(!h)return new SZ;if(h instanceof SZ)return h;h=h.rgb();var m=h.r/255,d=h.g/255,xW=h.b/255,kW=Math.min(m,d,xW),yN=Math.max(m,d,xW),ci=NaN,hL=yN-kW,bF=(yN+kW)/2;hL?(ci=m===yN?(d-xW)/hL+(d<xW)*6:d===yN?(xW-m)/hL+2:(m-d)/hL+4,hL/=bF<.5?yN+kW:2-yN-kW,ci*=60):hL=bF>0&&bF<1?0:ci;return new SZ(ci,hL,bF,h.opacity)}
function Pv(h,m,d,xW){return arguments.length===1?ut(h):new SZ(h,m,d,xW==null?1:xW)}
function SZ(h,m,d,xW){this.h=+h;this.s=+m;this.l=+d;this.opacity=+xW}
function zt(h,m,d){return(h<60?m+(d-m)*h/60:h<180?d:h<240?m+(d-m)*(240-h)/60:m)*255}
function t_(h){if(h instanceof Rm)return new Rm(h.l,h.a,h.b,h.opacity);if(h instanceof VR){if(isNaN(h.h))return new Rm(h.l,0,0,h.opacity);var m=h.h*Znk;return new Rm(h.l,Math.cos(m)*h.c,Math.sin(m)*h.c,h.opacity)}h instanceof Iu||(h=TJ(h));var d=ou(h.r),xW=ou(h.g),kW=ou(h.b);m=nV(.2225045*d+.7168786*xW+.0606169*kW);if(d===xW&&xW===kW)var yN=d=m;else yN=nV((.4360747*d+.3850649*xW+.1430804*kW)/.96422),d=nV((.0139322*d+.0971045*xW+.7141733*kW)/.82521);return new Rm(116*m-16,500*(yN-m),200*(m-d),h.opacity)}
function Rm(h,m,d,xW){this.l=+h;this.a=+m;this.b=+d;this.opacity=+xW}
function nV(h){return h>bnL?Math.pow(h,1/3):h/E5$+tg4}
function JL(h){return h>xk?h*h*h:E5$*(h-tg4)}
function Iz(h){return 255*(h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055)}
function ou(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}
function mo(h){if(h instanceof VR)return new VR(h.h,h.c,h.l,h.opacity);h instanceof Rm||(h=t_(h));if(h.a===0&&h.b===0)return new VR(NaN,0,h.l,h.opacity);var m=Math.atan2(h.b,h.a)*qBJ;return new VR(m<0?m+360:m,Math.sqrt(h.a*h.a+h.b*h.b),h.l,h.opacity)}
function mY(h,m,d,xW){return arguments.length===1?mo(h):new VR(h,m,d,xW==null?1:xW)}
function VR(h,m,d,xW){this.h=+h;this.c=+m;this.l=+d;this.opacity=+xW}
function cd(h,m,d,xW){if(arguments.length===1){var kW=h;if(kW instanceof KQ)kW=new KQ(kW.h,kW.s,kW.l,kW.opacity);else{kW instanceof Iu||(kW=TJ(kW));var yN=kW.g/255,ci=kW.b/255,hL=(PnD*ci+kW.r/255*-1.7884503806-3.5172982438*yN)/(PnD+-1.7884503806-3.5172982438);ci-=hL;var bF=(1.97294*(yN-hL)- -.29227*ci)/-.90649;ci=(yN=Math.sqrt(bF*bF+ci*ci)/(1.97294*hL*(1-hL)))?Math.atan2(bF,ci)*qBJ-120:NaN;kW=new KQ(ci<0?ci+360:ci,yN,hL,kW.opacity)}}else kW=new KQ(h,m,d,xW==null?1:xW);return kW}
function KQ(h,m,d,xW){this.h=+h;this.s=+m;this.l=+d;this.opacity=+xW}
function Zs(h,m,d,xW,kW){var yN=h*h,ci=yN*h;return((1-3*h+3*yN-ci)*m+(4-6*yN+3*ci)*d+(1+3*h+3*yN-3*ci)*xW+ci*kW)/6}
function yR(h){return function(){return h}}
function Vi(h,m){return function(d){return h+d*m}}
function fb(h,m,d){return h=Math.pow(h,d),m=Math.pow(m,d)-h,d=1/d,function(xW){return Math.pow(h+xW*m,d)}}
function dk(h,m){var d=m-h;return d?Vi(h,d>180||d<-180?d-360*Math.round(d/360):d):yR(isNaN(h)?m:h)}
function gw(h){return(h=+h)===1?xg:function(m,d){return d-m?fb(m,d,h):yR(isNaN(m)?d:m)}}
function xg(h,m){var d=m-h;return d?Vi(h,d):yR(isNaN(h)?m:h)}
function D2(h){return function(m){var d=m.length,xW=Array(d),kW=Array(d),yN=Array(d),ci;for(ci=0;ci<d;++ci){var hL=ep(m[ci]);xW[ci]=hL.r||0;kW[ci]=hL.g||0;yN[ci]=hL.b||0}xW=h(xW);kW=h(kW);yN=h(yN);hL.opacity=1;return function(bF){hL.r=xW(bF);hL.g=kW(bF);hL.b=yN(bF);return hL+""}}}
function YG(h,m){return h=+h,m-=h,function(d){return h+m*d}}
function Wb(h){return function(){return h}}
function lJ(h){return function(m){return h(m)+""}}
function jw(h,m){var d=eY$.lastIndex=l1W.lastIndex=0,xW,kW,yN,ci=-1,hL=[],bF=[];h+="";for(m+="";(xW=eY$.exec(h))&&(kW=l1W.exec(m));)(yN=kW.index)>d&&(yN=m.slice(d,yN),hL[ci]?hL[ci]+=yN:hL[++ci]=yN),(xW=xW[0])===(kW=kW[0])?hL[ci]?hL[ci]+=kW:hL[++ci]=kW:(hL[++ci]=null,bF.push({i:ci,x:YG(xW,kW)})),d=l1W.lastIndex;d<m.length&&(yN=m.slice(d),hL[ci]?hL[ci]+=yN:hL[++ci]=yN);return hL.length<2?bF[0]?lJ(bF[0].x):Wb(m):(m=bF.length,function($W){for(var Tp=0,X4;Tp<m;++Tp)hL[(X4=bF[Tp]).i]=X4.x($W);return hL.join("")})}
function V$(h,m,d,xW,kW,yN){var ci,hL,bF;if(ci=Math.sqrt(h*h+m*m))h/=ci,m/=ci;if(bF=h*d+m*xW)d-=h*bF,xW-=m*bF;if(hL=Math.sqrt(d*d+xW*xW))d/=hL,xW/=hL,bF/=hL;h*xW<m*d&&(h=-h,m=-m,bF=-bF,ci=-ci);return{translateX:kW,translateY:yN,rotate:Math.atan2(m,h)*c83,skewX:Math.atan(bF)*c83,scaleX:ci,scaleY:hL}}
function he(h,m,d,xW){function kW($W){return $W.length?$W.pop()+" ":""}
function yN($W,Tp,X4,S$,s4,qT){$W!==X4||Tp!==S$?(s4=s4.push("translate(",null,m,null,d),qT.push({i:s4-4,x:YG($W,X4)},{i:s4-2,x:YG(Tp,S$)})):(X4||S$)&&s4.push("translate("+X4+m+S$+d)}
function ci($W,Tp,X4,S$){$W!==Tp?($W-Tp>180?Tp+=360:Tp-$W>180&&($W+=360),S$.push({i:X4.push(kW(X4)+"rotate(",null,xW)-2,x:YG($W,Tp)})):Tp&&X4.push(kW(X4)+"rotate("+Tp+xW)}
function hL($W,Tp,X4,S$){$W!==Tp?S$.push({i:X4.push(kW(X4)+"skewX(",null,xW)-2,x:YG($W,Tp)}):Tp&&X4.push(kW(X4)+"skewX("+Tp+xW)}
function bF($W,Tp,X4,S$,s4,qT){$W!==X4||Tp!==S$?(s4=s4.push(kW(s4)+"scale(",null,",",null,")"),qT.push({i:s4-4,x:YG($W,X4)},{i:s4-2,x:YG(Tp,S$)})):X4===1&&S$===1||s4.push(kW(s4)+"scale("+X4+","+S$+")")}
return function($W,Tp){var X4=[],S$=[];$W=h($W);Tp=h(Tp);yN($W.translateX,$W.translateY,Tp.translateX,Tp.translateY,X4,S$);ci($W.rotate,Tp.rotate,X4,S$);hL($W.skewX,Tp.skewX,X4,S$);bF($W.scaleX,$W.scaleY,Tp.scaleX,Tp.scaleY,X4,S$);$W=Tp=null;return function(s4){for(var qT=-1,fx=S$.length,px;++qT<fx;)X4[(px=S$[qT]).i]=px.x(s4);return X4.join("")}}}
function Ae(h){return function(m,d){var xW=h((m=Pv(m)).h,(d=Pv(d)).h),kW=xg(m.s,d.s),yN=xg(m.l,d.l),ci=xg(m.opacity,d.opacity);return function(hL){m.h=xW(hL);m.s=kW(hL);m.l=yN(hL);m.opacity=ci(hL);return m+""}}}
function Du(h){return function(m,d){var xW=h((m=mY(m)).h,(d=mY(d)).h),kW=xg(m.c,d.c),yN=xg(m.l,d.l),ci=xg(m.opacity,d.opacity);return function(hL){m.h=xW(hL);m.c=kW(hL);m.l=yN(hL);m.opacity=ci(hL);return m+""}}}
function SN(h){return function xW(d){function kW(yN,ci){var hL=h((yN=cd(yN)).h,(ci=cd(ci)).h),bF=xg(yN.s,ci.s),$W=xg(yN.l,ci.l),Tp=xg(yN.opacity,ci.opacity);return function(X4){yN.h=hL(X4);yN.s=bF(X4);yN.l=$W(Math.pow(X4,d));yN.opacity=Tp(X4);return yN+""}}
d=+d;kW.gamma=xW;return kW}(1)}
function jZ(){return mT||(I1J(QG),mT=WQ.now()+Lvs)}
function QG(){mT=0}
function rS(){this._call=this._time=this._next=null}
function IN(h,m,d){var xW=new rS;xW.restart(h,m,d);return xW}
function V2(){mT=(klr=WQ.now())+Lvs;er=h1=0;try{jZ();++er;for(var h=AGr,m;h;)(m=mT-h._time)>=0&&h._call.call(null,m),h=h._next;--er}finally{er=0;h=AGr;for(var d=Infinity;h;)if(h._call){d>h._time&&(d=h._time);var xW=h;h=h._next}else m=h._next,h._next=null,h=xW?xW._next=m:AGr=m;zW=xW;pR(d);mT=0}}
function Jfr(){var h=WQ.now(),m=h-klr;m>1E3&&(Lvs-=m,klr=h)}
function pR(h){er||(h1&&(h1=clearTimeout(h1)),h-mT>24?(h<Infinity&&(h1=setTimeout(V2,h-WQ.now()-Lvs)),r3&&(r3=clearInterval(r3))):(r3||(klr=WQ.now(),r3=setInterval(Jfr,1E3)),er=1,I1J(V2)))}
function Vgk(h,m,d){var xW=new rS;m=m==null?0:+m;xW.restart(function(kW){xW.stop();h(kW+m)},m,d);
return xW}
function Cn$(h,m,d,xW,kW,yN){var ci=h.__transition;if(!ci)h.__transition={};else if(d in ci)return;T_u(h,d,{name:m,index:xW,group:kW,on:LrQ,tween:k$X,time:yN.time,delay:yN.delay,duration:yN.duration,ease:yN.ease,timer:null,state:0})}
function Qe$(h,m){h=vF(h,m);if(h.state>0)throw Error("xe");return h}
function sj(h,m){h=vF(h,m);if(h.state>2)throw Error("ye");return h}
function vF(h,m){h=h.__transition;if(!h||!(h=h[m]))throw Error("ze");return h}
function T_u(h,m,d){function xW(bF){var $W,Tp;if(d.state!==1)return yN();for(S$ in ci){var X4=ci[S$];if(X4.name===d.name){if(X4.state===3)return Vgk(xW);X4.state===4?(X4.state=6,X4.timer.stop(),X4.on.call("interrupt",h,h.__data__,X4.index,X4.group),delete ci[S$]):+S$<m&&(X4.state=6,X4.timer.stop(),delete ci[S$])}}Vgk(function(){d.state===3&&(d.state=4,d.timer.restart(kW,d.delay,d.time),kW(bF))});
d.state=2;d.on.call("start",h,h.__data__,d.index,d.group);if(d.state===2){d.state=3;hL=Array(Tp=d.tween.length);var S$=0;for($W=-1;S$<Tp;++S$)if(X4=d.tween[S$].value.call(h,h.__data__,d.index,d.group))hL[++$W]=X4;hL.length=$W+1}}
function kW(bF){bF=bF<d.duration?d.ease.call(null,bF/d.duration):(d.timer.restart(yN),d.state=5,1);for(var $W=-1,Tp=hL.length;++$W<Tp;)hL[$W].call(null,bF);d.state===5&&(d.on.call("end",h,h.__data__,d.index,d.group),yN())}
function yN(){d.state=6;d.timer.stop();delete ci[m];for(var bF in ci)return;delete h.__transition}
var ci=h.__transition,hL;ci[m]=d;d.timer=IN(function(bF){d.state=1;d.timer.restart(xW,d.delay,d.time);d.delay<=bF&&xW(bF-d.delay)},0,d.time)}
function A8p(h,m){var d,xW;return function(){var kW=sj(this,h),yN=kW.tween;if(yN!==d){xW=d=yN;yN=0;for(var ci=xW.length;yN<ci;++yN)if(xW[yN].name===m){xW=xW.slice();xW.splice(yN,1);break}}kW.tween=xW}}
function MgO(h,m,d){var xW,kW;if(typeof d!=="function")throw Error();return function(){var yN=sj(this,h),ci=yN.tween;if(ci!==xW){kW=(xW=ci).slice();ci={name:m,value:d};for(var hL=0,bF=kW.length;hL<bF;++hL)if(kW[hL].name===m){kW[hL]=ci;break}hL===bF&&kW.push(ci)}yN.tween=kW}}
function bnW(h,m,d){var xW=h._id;h.each(function(){var kW=sj(this,xW);(kW.value||(kW.value={}))[m]=d.apply(this,arguments)});
return function(kW){return vF(kW,xW).value[m]}}
function py2(h,m){var d;return(typeof m==="number"?YG:m instanceof au?RYT:(d=au(m))?(m=d,RYT):jw)(h,m)}
function DOh(h){return function(){this.removeAttribute(h)}}
function G$$(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function FrO(h,m,d){var xW,kW;return function(){var yN=this.getAttribute(h);return yN===d?null:yN===xW?kW:kW=m(xW=yN,d)}}
function Xyp(h,m,d){var xW,kW;return function(){var yN=this.getAttributeNS(h.space,h.local);return yN===d?null:yN===xW?kW:kW=m(xW=yN,d)}}
function o54(h,m,d){var xW,kW,yN;return function(){var ci=d(this);if(ci==null)return void this.removeAttribute(h);var hL=this.getAttribute(h);return hL===ci?null:hL===xW&&ci===kW?yN:yN=m(xW=hL,kW=ci)}}
function y84(h,m,d){var xW,kW,yN;return function(){var ci=d(this);if(ci==null)return void this.removeAttributeNS(h.space,h.local);var hL=this.getAttributeNS(h.space,h.local);return hL===ci?null:hL===xW&&ci===kW?yN:yN=m(xW=hL,kW=ci)}}
function Znh(h,m){function d(){var xW=this,kW=m.apply(xW,arguments);return kW&&function(yN){xW.setAttributeNS(h.space,h.local,kW(yN))}}
d._value=m;return d}
function E5p(h,m){function d(){var xW=this,kW=m.apply(xW,arguments);return kW&&function(yN){xW.setAttribute(h,kW(yN))}}
d._value=m;return d}
function tgw(h,m){return function(){Qe$(this,h).delay=+m.apply(this,arguments)}}
function qBe(h,m){return m=+m,function(){Qe$(this,h).delay=m}}
function PnQ(h,m){return function(){sj(this,h).duration=+m.apply(this,arguments)}}
function c8Y(h,m){return m=+m,function(){sj(this,h).duration=m}}
function I1e(h,m){if(typeof m!=="function")throw Error();return function(){sj(this,h).ease=m}}
function Vgh(h){return(h+"").trim().split(/^|\s+/).every(function(m){var d=m.indexOf(".");d>=0&&(m=m.slice(0,d));return!m||m==="start"})}
function pyQ(h,m,d){var xW,kW,yN=Vgh(m)?Qe$:sj;return function(){var ci=yN(this,h),hL=ci.on;if(hL!==xW)(kW=(xW=hL).copy()).on(m,d);ci.on=kW}}
function RY4(h){return function(){var m=this.parentNode,d;for(d in this.__transition)if(+d!==h)return;m&&m.removeChild(this)}}
function UOe(h,m){var d,xW,kW;return function(){var yN=Zn(this,h),ci=(this.style.removeProperty(h),Zn(this,h));return yN===ci?null:yN===d&&ci===xW?kW:kW=m(d=yN,xW=ci)}}
function a1p(h){return function(){this.style.removeProperty(h)}}
function mOQ(h,m,d){var xW,kW;return function(){var yN=Zn(this,h);return yN===d?null:yN===xW?kW:kW=m(xW=yN,d)}}
function seQ(h,m,d){var xW,kW,yN;return function(){var ci=Zn(this,h),hL=d(this);hL==null&&(hL=(this.style.removeProperty(h),Zn(this,h)));return ci===hL?null:ci===xW&&hL===kW?yN:yN=m(xW=ci,kW=hL)}}
function Wrw(h,m,d){function xW(){var kW=this,yN=m.apply(kW,arguments);return yN&&function(ci){kW.style.setProperty(h,yN(ci),d)}}
xW._value=m;return xW}
function hYT(h){return function(){this.textContent=h}}
function zYe(h){return function(){var m=h(this);this.textContent=m==null?"":m}}
function EJ(h,m,d,xW){this._groups=h;this._parents=m;this._name=d;this._id=xW}
function T_m(h){return{type:h}}
function Lrn(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Mbw(){}
function UOJ(h,m){var d=new Mbw;if(h instanceof Mbw)h.each(function(ci,hL){d.set(hL,ci)});
else if(Array.isArray(h)){var xW=-1,kW=h.length,yN;if(m==null)for(;++xW<kW;)d.set(xW,h[xW]);else for(;++xW<kW;)d.set(m(yN=h[xW],xW,h),yN)}else if(h)for(xW in h)d.set(xW,h[xW]);return d}
function Dur(){}
function a1$(h){return function(m){for(var d={},xW=0;xW<h.length;xW++)d[h[xW]]=m[xW]||"";return d}}
function r8Q(h,m){var d=a1$(h);return function(xW,kW){return m(d(xW),kW,h)}}
function HnL(h){var m=Object.create(null),d=[];h.forEach(function(xW){for(var kW in xW)kW in m||d.push(m[kW]=kW)});
return d}
function mO2(h){function m(ci,hL){function bF(){if(qT)return k$r;if(fx)return fx=!1,seD;var TQ,O0=X4,qg;if(ci.charCodeAt(O0)===34){for(;X4++<Tp&&ci.charCodeAt(X4)!==34||ci.charCodeAt(++X4)===34;);(TQ=X4)>=Tp?qT=!0:(qg=ci.charCodeAt(X4++))===10?fx=!0:qg===13&&(fx=!0,ci.charCodeAt(X4)===10&&++X4);return ci.slice(O0+1,TQ-1).replace(/""/g,'"')}for(;X4<Tp;){if((qg=ci.charCodeAt(TQ=X4++))===10)fx=!0;else if(qg===13)fx=!0,ci.charCodeAt(X4)===10&&++X4;else if(qg!==yN)continue;return ci.slice(O0,TQ)}return qT=
!0,ci.slice(O0,Tp)}
var $W=[],Tp=ci.length,X4=0,S$=0,s4,qT=Tp<=0,fx=!1;ci.charCodeAt(Tp-1)===10&&--Tp;for(ci.charCodeAt(Tp-1)===13&&--Tp;(s4=bF())!==k$r;){for(var px=[];s4!==seD&&s4!==k$r;)px.push(s4),s4=bF();hL&&(px=hL(px,S$++))==null||$W.push(px)}return $W}
function d(ci){return ci.map(xW).join(h)}
function xW(ci){return ci==null?"":kW.test(ci)?'"'+ci.replace(/"/g,'""')+'"':ci}
var kW=new RegExp('["'+h+"\n\r]"),yN=h.charCodeAt(0);return{parse:function(ci,hL){var bF,$W;ci=m(ci,function(Tp,X4){if(bF)return bF(Tp,X4-1);$W=Tp;bF=hL?r8Q(Tp,hL):a1$(Tp)});
ci.columns=$W||[];return ci},
parseRows:m,format:function(ci,hL){hL==null&&(hL=HnL(ci));return[hL.map(xW).join(h)].concat(ci.map(function(bF){return hL.map(function($W){return xW(bF[$W])}).join(h)})).join("\n")},
formatRows:function(ci){return ci.map(d).join("\n")}}}
function KrX(h){if(!h.ok)throw Error("Ae`"+h.status+"`"+h.statusText);return h.text()}
function Wr4(h){return function(m,d,xW){arguments.length===2&&typeof d==="function"&&(xW=d,d=void 0);return fetch(m,d).then(KrX).then(function(kW){return h(kW,xW)})}}
function hYd(h,m,d,xW){if(isNaN(m)||isNaN(d))return h;var kW,yN=h._root;xW={data:xW};var ci=h._x0,hL=h._y0,bF=h._x1,$W=h._y1,Tp,X4,S$,s4,qT;if(!yN)return h._root=xW,h;for(;yN.length;)if((S$=m>=(Tp=(ci+bF)/2))?ci=Tp:bF=Tp,(s4=d>=(X4=(hL+$W)/2))?hL=X4:$W=X4,kW=yN,!(yN=yN[qT=s4<<1|S$]))return kW[qT]=xW,h;var fx=+h._x.call(null,yN.data);var px=+h._y.call(null,yN.data);if(m===fx&&d===px)return xW.next=yN,kW?kW[qT]=xW:h._root=xW,h;do kW=kW?kW[qT]=Array(4):h._root=Array(4),(S$=m>=(Tp=(ci+bF)/2))?ci=Tp:bF=
Tp,(s4=d>=(X4=(hL+$W)/2))?hL=X4:$W=X4;while((qT=s4<<1|S$)===(S$=(px>=X4)<<1|fx>=Tp));return kW[S$]=yN,kW[qT]=xW,h}
function jx(h,m,d,xW,kW){this.node=h;this.x0=m;this.y0=d;this.x1=xW;this.y1=kW}
function dO$(h){return h[0]}
function n5$(h){return h[1]}
function A8w(h,m,d,xW,kW,yN){this._x=h;this._y=m;this._x0=d;this._y0=xW;this._x1=kW;this._y1=yN;this._root=void 0}
function zYJ(h){for(var m={data:h.data},d=m;h=h.next;)d=d.next={data:h.data};return m}
function GlV(h,m){if((m=(h=m?h.toExponential(m-1):h.toExponential()).indexOf("e"))<0)return null;var d=h.slice(0,m);return[d.length>1?d[0]+d.slice(2):d,+h.slice(m+1)]}
function uYL(h){return h=GlV(Math.abs(h)),h?h[1]:NaN}
function YBh(h,m){return function(d,xW){for(var kW=d.length,yN=[],ci=0,hL=h[0],bF=0;kW>0&&hL>0;){bF+hL+1>xW&&(hL=Math.max(1,xW-bF));yN.push(d.substring(kW-=hL,kW+hL));if((bF+=hL+1)>xW)break;hL=h[ci=(ci+1)%h.length]}return yN.reverse().join(m)}}
function B_u(h){return function(m){return m.replace(/[0-9]/g,function(d){return h[+d]})}}
function Mgs(h){return new DO$(h)}
function DO$(h){if(!(m=v5h.exec(h)))throw Error("Be`"+h);var m;this.fill=m[1]||" ";this.align=m[2]||">";this.sign=m[3]||"-";this.symbol=m[4]||"";this.zero=!!m[5];this.width=m[6]&&+m[6];this.comma=!!m[7];this.precision=m[8]&&+m[8].slice(1);this.trim=!!m[9];this.type=m[10]||""}
function r82(h,m){m=GlV(h,m);if(!m)return h+"";h=m[0];m=m[1];return m<0?"0."+Array(-m).join("0")+h:h.length>m+1?h.slice(0,m+1)+"."+h.slice(m+1):h+Array(m-h.length+2).join("0")}
function HnN(h){return h}
function f1Y(h){function m(hL){function bF(jE){var ZP=qg,Je=lw,t7,A7;if(O0==="c")Je=xK(jE)+Je,jE="";else{jE=+jE;var rL=jE<0;jE=xK(Math.abs(jE),px);if(TQ){var ND=jE.length,wa=1,Lw=-1;a:for(;wa<ND;++wa)switch(jE[wa]){case ".":Lw=t7=wa;break;case "0":Lw===0&&(Lw=wa);t7=wa;break;default:if(!+jE[wa])break a;Lw>0&&(Lw=0)}jE=Lw>0?jE.slice(0,Lw)+jE.slice(t7+1):jE}rL&&+jE===0&&(rL=!1);ZP=(rL?X4==="("?X4:"-":X4==="-"||X4==="("?"":X4)+ZP;Je=(O0==="s"?Krp[8+dOR/3]:"")+Je+(rL&&X4==="("?")":"");if(cv)for(rL=-1,
t7=jE.length;++rL<t7;)if(A7=jE.charCodeAt(rL),48>A7||A7>57){Je=(A7===46?kW+jE.slice(rL+1):jE.slice(rL))+Je;jE=jE.slice(0,rL);break}}fx&&!s4&&(jE=d(jE,Infinity));A7=ZP.length+jE.length+Je.length;rL=A7<qT?Array(qT-A7+1).join($W):"";fx&&s4&&(jE=d(rL+jE,rL.length?qT-Je.length:Infinity),rL="");switch(Tp){case "<":jE=ZP+jE+Je+rL;break;case "=":jE=ZP+rL+jE+Je;break;case "^":jE=rL.slice(0,A7=rL.length>>1)+ZP+jE+Je+rL.slice(A7);break;default:jE=rL+ZP+jE+Je}return yN(jE)}
hL=Mgs(hL);var $W=hL.fill,Tp=hL.align,X4=hL.sign,S$=hL.symbol,s4=hL.zero,qT=hL.width,fx=hL.comma,px=hL.precision,TQ=hL.trim,O0=hL.type;O0==="n"?(fx=!0,O0="g"):n5R[O0]||(px==null&&(px=12),TQ=!0,O0="g");if(s4||$W==="0"&&Tp==="=")s4=!0,$W="0",Tp="=";var qg=S$==="$"?xW[0]:S$==="#"&&/[boxX]/.test(O0)?"0"+O0.toLowerCase():"",lw=S$==="$"?xW[1]:/[%p]/.test(O0)?ci:"",xK=n5R[O0],cv=/[defgprs%]/.test(O0);px=px==null?6:/[gprs]/.test(O0)?Math.max(1,Math.min(21,px)):Math.max(0,Math.min(20,px));bF.toString=function(){return hL+
""};
return bF}
var d=h.grouping&&h.thousands?YBh(h.grouping,h.thousands):HnN,xW=h.currency,kW=h.decimal,yN=h.numerals?B_u(h.numerals):HnN,ci=h.percent||"%";return{format:m,formatPrefix:function(hL,bF){var $W=m((hL=Mgs(hL),hL.type="f",hL));hL=Math.max(-8,Math.min(8,Math.floor(uYL(bF)/3)))*3;var Tp=Math.pow(10,-hL),X4=Krp[8+hL/3];return function(S$){return $W(Tp*S$)+X4}}}}
function K0(){this.reset()}
function uYF(h,m,d){var xW=h.s=m+d,kW=xW-m;h.t=m-(xW-kW)+(d-kW)}
function Fvr(h){return h>1?gj:h<-1?-gj:Math.asin(h)}
function J8$(){}
function YBk(h){var m=h[0];h=h[1];var d=$V(h);return[d*$V(m),d*sQ(m),sQ(h)]}
function B_z(h,m){return[h[1]*m[2]-h[2]*m[1],h[2]*m[0]-h[0]*m[2],h[0]*m[1]-h[1]*m[0]]}
function v5k(h){var m=XH8(h[0]*h[0]+h[1]*h[1]+h[2]*h[2]);h[0]/=m;h[1]/=m;h[2]/=m}
function wyw(){var h=[],m;return{point:function(d,xW){m.push([d,xW])},
lineStart:function(){h.push(m=[])},
lineEnd:J8$,rejoin:function(){h.length>1&&h.push(h.pop().concat(h.shift()))},
result:function(){var d=h;h=[];m=null;return d}}}
function obr(h,m,d,xW){this.x=h;this.z=m;this.o=d;this.e=xW;this.v=!1;this.n=this.p=null}
function SBL(h,m,d,xW,kW){var yN=[],ci=[];h.forEach(function(X4){if(!((S$=X4.length-1)<=0)){var S$,s4=X4[0],qT=X4[S$],fx=s4;if(tc(fx[0]-qT[0])<1E-6&&tc(fx[1]-qT[1])<1E-6){kW.lineStart();for(hL=0;hL<S$;++hL)kW.point((s4=X4[hL])[0],s4[1]);kW.lineEnd()}else yN.push(S$=new obr(s4,X4,null,!0)),ci.push(S$.o=new obr(s4,null,S$,!1)),yN.push(S$=new obr(qT,X4,null,!1)),ci.push(S$.o=new obr(qT,null,S$,!0))}});
if(yN.length){ci.sort(m);f13(yN);f13(ci);var hL=0;for(h=ci.length;hL<h;++hL)ci[hL].e=d=!d;d=yN[0];for(var bF;;){for(var $W=d,Tp=!0;$W.v;)if(($W=$W.n)===d)return;m=$W.z;kW.lineStart();do{$W.v=$W.o.v=!0;if($W.e){if(Tp)for(hL=0,h=m.length;hL<h;++hL)kW.point((bF=m[hL])[0],bF[1]);else xW($W.x,$W.n.x,1,kW);$W=$W.n}else{if(Tp)for(m=$W.p.z,hL=m.length-1;hL>=0;--hL)kW.point((bF=m[hL])[0],bF[1]);else xW($W.x,$W.p.x,-1,kW);$W=$W.p}$W=$W.o;m=$W.z;Tp=!Tp}while(!$W.v);kW.lineEnd()}}}
function f13(h){if(m=h.length){for(var m,d=0,xW=h[0],kW;++d<m;)xW.n=kW=h[d],kW.p=xW,xW=kW;xW.n=kW=h[0];kW.p=xW}}
function jeL(h){return h.length>1}
function N_w(h,m){return((h=h.x)[0]<0?h[1]-gj-1E-6:gj-h[1])-((m=m.x)[0]<0?m[1]-gj-1E-6:gj-m[1])}
function G$N(){}
function J8R(h){return function(m,d){var xW=$V(m),kW=$V(d);xW=h(xW*kW);return[xW*kW*sQ(m),xW*sQ(d)]}}
function HQ(h){return function(m,d){var xW=XH8(m*m+d*d),kW=h(xW),yN=sQ(kW);kW=$V(kW);return[wy4(m*yN,xW*kW),Fvr(xW&&d*yN/xW)]}}
function g5w(h){var m=0,d=h.children,xW=d&&d.length;if(xW)for(;--xW>=0;)m+=d[xW].value;else m=1;h.value=m}
function SBd(h,m){var d=new Kc(h);h=+h.value&&(d.value=h.value);var xW,kW=[d],yN,ci,hL,bF;for(m==null&&(m=$OT);xW=kW.pop();)if(h&&(xW.value=+xW.data.value),(ci=m(xW.data))&&(bF=ci.length))for(xW.children=Array(bF),hL=bF-1;hL>=0;--hL)kW.push(yN=xW.children[hL]=new Kc(ci[hL])),yN.parent=xW,yN.depth=xW.depth+1;return d.eachBefore(in4)}
function $OT(h){return h.children}
function Oje(h){h.data=h.data.data}
function in4(h){var m=0;do h.height=m;while((h=h.parent)&&h.height<++m)}
function Kc(h){this.data=h;this.depth=this.height=0;this.parent=null}
function Eb(h,m,d,xW){function kW(yN){return h(yN=new Date(+yN)),yN}
kW.floor=kW;kW.ceil=function(yN){return h(yN=new Date(yN-1)),m(yN,1),h(yN),yN};
kW.round=function(yN){var ci=kW(yN),hL=kW.ceil(yN);return yN-ci<hL-yN?ci:hL};
kW.offset=function(yN,ci){return m(yN=new Date(+yN),ci==null?1:Math.floor(ci)),yN};
kW.range=function(yN,ci,hL){var bF=[],$W;yN=kW.ceil(yN);hL=hL==null?1:Math.floor(hL);if(!(yN<ci&&hL>0))return bF;do bF.push($W=new Date(+yN)),m(yN,hL),h(yN);while($W<yN&&yN<ci);return bF};
kW.filter=function(yN){return Eb(function(ci){if(ci>=ci)for(;h(ci),!yN(ci);)ci.setTime(ci-1)},function(ci,hL){if(ci>=ci)if(hL<0)for(;++hL<=0;)for(;m(ci,-1),!yN(ci););
else for(;--hL>=0;)for(;m(ci,1),!yN(ci););})};
d&&(kW.count=function(yN,ci){Frs.setTime(+yN);Xyw.setTime(+ci);h(Frs);h(Xyw);return Math.floor(d(Frs,Xyw))},kW.every=function(yN){yN=Math.floor(yN);
return isFinite(yN)&&yN>0?yN>1?kW.filter(xW?function(ci){return xW(ci)%yN===0}:function(ci){return kW.count(0,ci)%yN===0}):kW:null});
return kW}
function Wf(h){return Eb(function(m){m.setDate(m.getDate()-(m.getDay()+7-h)%7);m.setHours(0,0,0,0)},function(m,d){m.setDate(m.getDate()+d*7)},function(m,d){return(d-m-(d.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/6048E5})}
function hH(h){return Eb(function(m){m.setUTCDate(m.getUTCDate()-(m.getUTCDay()+7-h)%7);m.setUTCHours(0,0,0,0)},function(m,d){m.setUTCDate(m.getUTCDate()+d*7)},function(m,d){return(d-m)/6048E5})}
function xAe(h){if(0<=h.y&&h.y<100){var m=new Date(-1,h.m,h.d,h.H,h.M,h.S,h.L);m.setFullYear(h.y);return m}return new Date(h.y,h.m,h.d,h.H,h.M,h.S,h.L)}
function yGm(h){if(0<=h.y&&h.y<100){var m=new Date(Date.UTC(-1,h.m,h.d,h.H,h.M,h.S,h.L));m.setUTCFullYear(h.y);return m}return new Date(Date.UTC(h.y,h.m,h.d,h.H,h.M,h.S,h.L))}
function d3(h){return{y:h,m:0,d:1,H:0,M:0,S:0,L:0}}
function eZQ(h){function m(Je,t7){return function(A7){var rL=[],ND=-1,wa=0,Lw=Je.length,PK,Zm;for(A7 instanceof Date||(A7=new Date(+A7));++ND<Lw;)if(Je.charCodeAt(ND)===37){rL.push(Je.slice(wa,ND));(wa=jeF[PK=Je.charAt(++ND)])!=null?PK=Je.charAt(++ND):wa=PK==="e"?" ":"0";if(Zm=t7[PK])PK=Zm(A7,wa);rL.push(PK);wa=ND+1}rL.push(Je.slice(wa,ND));return rL.join("")}}
function d(Je,t7){return function(A7){var rL=d3(1900);if(xW(rL,Je,A7,0)!=A7.length)return null;if("Q"in rL)return new Date(rL.Q);"p"in rL&&(rL.H=rL.H%12+rL.p*12);if("V"in rL){if(rL.V<1||rL.V>53)return null;"w"in rL||(rL.w=1);if("Z"in rL){A7=yGm(d3(rL.y));var ND=A7.getUTCDay();A7=ND>4||ND===0?o58.ceil(A7):o58(A7);A7=N_4.offset(A7,(rL.V-1)*7);rL.y=A7.getUTCFullYear();rL.m=A7.getUTCMonth();rL.d=A7.getUTCDate()+(rL.w+6)%7}else A7=t7(d3(rL.y)),ND=A7.getDay(),A7=ND>4||ND===0?y88.ceil(A7):y88(A7),A7=g54.offset(A7,
(rL.V-1)*7),rL.y=A7.getFullYear(),rL.m=A7.getMonth(),rL.d=A7.getDate()+(rL.w+6)%7}else if("W"in rL||"U"in rL)"w"in rL||(rL.w="u"in rL?rL.u%7:"W"in rL?1:0),ND="Z"in rL?yGm(d3(rL.y)).getUTCDay():t7(d3(rL.y)).getDay(),rL.m=0,rL.d="W"in rL?(rL.w+6)%7+rL.W*7-(ND+5)%7:rL.w+rL.U*7-(ND+6)%7;return"Z"in rL?(rL.H+=rL.Z/100|0,rL.M+=rL.Z%100,yGm(rL)):t7(rL)}}
function xW(Je,t7,A7,rL){for(var ND=0,wa=t7.length,Lw=A7.length,PK;ND<wa;){if(rL>=Lw)return-1;PK=t7.charCodeAt(ND++);if(PK===37){if(PK=t7.charAt(ND++),PK=ZP[PK in jeF?t7.charAt(ND++):PK],!PK||(rL=PK(Je,A7,rL))<0)return-1}else if(PK!=A7.charCodeAt(rL++))return-1}return rL}
var kW=h.dateTime,yN=h.date,ci=h.time,hL=h.periods,bF=h.days,$W=h.shortDays,Tp=h.months,X4=h.shortMonths,S$=nc(hL),s4=ud(hL),qT=nc(bF),fx=ud(bF),px=nc($W),TQ=ud($W),O0=nc(Tp),qg=ud(Tp),lw=nc(X4),xK=ud(X4),cv={a:function(Je){return $W[Je.getDay()]},
A:function(Je){return bF[Je.getDay()]},
b:function(Je){return X4[Je.getMonth()]},
B:function(Je){return Tp[Je.getMonth()]},
c:null,d:$Od,e:$Od,f:lBL,H:CZw,I:QXY,j:bjL,L:inT,m:T8w,M:LXL,p:function(Je){return hL[+(Je.getHours()>=12)]},
Q:OjJ,s:xAJ,S:kY$,u:ATT,U:M7Q,V:DAQ,w:GYQ,W:FXL,x:null,X:null,y:XmQ,Y:ow$,Z:yTL,"%":eZ2},jE={a:function(Je){return $W[Je.getUTCDay()]},
A:function(Je){return bF[Je.getUTCDay()]},
b:function(Je){return X4[Je.getUTCMonth()]},
B:function(Je){return Tp[Je.getUTCMonth()]},
c:null,d:lBN,e:lBN,f:Zjw,H:EwX,I:t7Y,j:qg4,L:CZ4,m:PZw,M:cTL,p:function(Je){return hL[+(Je.getUTCHours()>=12)]},
Q:OjJ,s:xAJ,S:IBh,u:V7Y,U:pmw,V:RZw,w:UAw,W:aBY,x:null,X:null,y:mAY,Y:sX4,Z:WXw,"%":eZ2},ZP={a:function(Je,t7,A7){return(t7=px.exec(t7.slice(A7)))?(Je.w=TQ[t7[0].toLowerCase()],A7+t7[0].length):-1},
A:function(Je,t7,A7){return(t7=qT.exec(t7.slice(A7)))?(Je.w=fx[t7[0].toLowerCase()],A7+t7[0].length):-1},
b:function(Je,t7,A7){return(t7=lw.exec(t7.slice(A7)))?(Je.m=xK[t7[0].toLowerCase()],A7+t7[0].length):-1},
B:function(Je,t7,A7){return(t7=O0.exec(t7.slice(A7)))?(Je.m=qg[t7[0].toLowerCase()],A7+t7[0].length):-1},
c:function(Je,t7,A7){return xW(Je,kW,t7,A7)},
d:QX3,e:QX3,f:hZL,H:bjN,I:bjN,j:zZ$,L:rT$,m:Hje,M:KXT,p:function(Je,t7,A7){return(t7=S$.exec(t7.slice(A7)))?(Je.p=s4[t7[0].toLowerCase()],A7+t7[0].length):-1},
Q:dAw,s:nwL,S:uZX,u:Yg$,U:B8h,V:vwO,w:fBp,W:JTL,x:function(Je,t7,A7){return xW(Je,yN,t7,A7)},
X:function(Je,t7,A7){return xW(Je,ci,t7,A7)},
y:wmL,Y:SgL,Z:jXu,"%":N8T};cv.x=m(yN,cv);cv.X=m(ci,cv);cv.c=m(kW,cv);jE.x=m(yN,jE);jE.X=m(ci,jE);jE.c=m(kW,jE);return{format:function(Je){var t7=m(Je,cv);t7.toString=function(){return Je};
return t7},
parse:function(Je){var t7=d(Je,xAe);t7.toString=function(){return Je};
return t7},
utcFormat:function(Je){var t7=m(Je,jE);t7.toString=function(){return Je};
return t7},
utcParse:function(Je){var t7=d(Je,yGm);t7.toString=function(){return Je};
return t7}}}
function cE(h,m,d){var xW=h<0?"-":"";h=(xW?-h:h)+"";var kW=h.length;return xW+(kW<d?Array(d-kW+1).join(m)+h:h)}
function gwp(h){return h.replace($AQ,"\\$&")}
function nc(h){return new RegExp("^(?:"+h.map(gwp).join("|")+")","i")}
function ud(h){for(var m={},d=-1,xW=h.length;++d<xW;)m[h[d].toLowerCase()]=d;return m}
function fBp(h,m,d){return(m=PU.exec(m.slice(d,d+1)))?(h.w=+m[0],d+m[0].length):-1}
function Yg$(h,m,d){return(m=PU.exec(m.slice(d,d+1)))?(h.u=+m[0],d+m[0].length):-1}
function B8h(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.U=+m[0],d+m[0].length):-1}
function vwO(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.V=+m[0],d+m[0].length):-1}
function JTL(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.W=+m[0],d+m[0].length):-1}
function SgL(h,m,d){return(m=PU.exec(m.slice(d,d+4)))?(h.y=+m[0],d+m[0].length):-1}
function wmL(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.y=+m[0]+(+m[0]>68?1900:2E3),d+m[0].length):-1}
function jXu(h,m,d){return(m=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(m.slice(d,d+6)))?(h.Z=m[1]?0:-(m[2]+(m[3]||"00")),d+m[0].length):-1}
function Hje(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.m=m[0]-1,d+m[0].length):-1}
function QX3(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.d=+m[0],d+m[0].length):-1}
function zZ$(h,m,d){return(m=PU.exec(m.slice(d,d+3)))?(h.m=0,h.d=+m[0],d+m[0].length):-1}
function bjN(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.H=+m[0],d+m[0].length):-1}
function KXT(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.M=+m[0],d+m[0].length):-1}
function uZX(h,m,d){return(m=PU.exec(m.slice(d,d+2)))?(h.S=+m[0],d+m[0].length):-1}
function rT$(h,m,d){return(m=PU.exec(m.slice(d,d+3)))?(h.L=+m[0],d+m[0].length):-1}
function hZL(h,m,d){return(m=PU.exec(m.slice(d,d+6)))?(h.L=Math.floor(m[0]/1E3),d+m[0].length):-1}
function N8T(h,m,d){return(h=iju.exec(m.slice(d,d+1)))?d+h[0].length:-1}
function dAw(h,m,d){return(m=PU.exec(m.slice(d)))?(h.Q=+m[0],d+m[0].length):-1}
function nwL(h,m,d){return(m=PU.exec(m.slice(d)))?(h.Q=+m[0]*1E3,d+m[0].length):-1}
function $Od(h,m){return cE(h.getDate(),m,2)}
function CZw(h,m){return cE(h.getHours(),m,2)}
function QXY(h,m){return cE(h.getHours()%12||12,m,2)}
function bjL(h,m){return cE(1+g54.count(lS(h),h),m,3)}
function inT(h,m){return cE(h.getMilliseconds(),m,3)}
function lBL(h,m){return inT(h,m)+"000"}
function T8w(h,m){return cE(h.getMonth()+1,m,2)}
function LXL(h,m){return cE(h.getMinutes(),m,2)}
function kY$(h,m){return cE(h.getSeconds(),m,2)}
function ATT(h){h=h.getDay();return h===0?7:h}
function M7Q(h,m){return cE(Oze.count(lS(h),h),m,2)}
function DAQ(h,m){var d=h.getDay();h=d>=4||d===0?Zn$(h):Zn$.ceil(h);return cE(Zn$.count(lS(h),h)+(lS(h).getDay()===4),m,2)}
function GYQ(h){return h.getDay()}
function FXL(h,m){return cE(y88.count(lS(h),h),m,2)}
function XmQ(h,m){return cE(h.getFullYear()%100,m,2)}
function ow$(h,m){return cE(h.getFullYear()%1E4,m,4)}
function yTL(h){h=h.getTimezoneOffset();return(h>0?"-":(h*=-1,"+"))+cE(h/60|0,"0",2)+cE(h%60,"0",2)}
function lBN(h,m){return cE(h.getUTCDate(),m,2)}
function EwX(h,m){return cE(h.getUTCHours(),m,2)}
function t7Y(h,m){return cE(h.getUTCHours()%12||12,m,2)}
function qg4(h,m){return cE(1+N_4.count(CE(h),h),m,3)}
function CZ4(h,m){return cE(h.getUTCMilliseconds(),m,3)}
function Zjw(h,m){return CZ4(h,m)+"000"}
function PZw(h,m){return cE(h.getUTCMonth()+1,m,2)}
function cTL(h,m){return cE(h.getUTCMinutes(),m,2)}
function IBh(h,m){return cE(h.getUTCSeconds(),m,2)}
function V7Y(h){h=h.getUTCDay();return h===0?7:h}
function pmw(h,m){return cE(xzL.count(CE(h),h),m,2)}
function RZw(h,m){var d=h.getUTCDay();h=d>=4||d===0?E5w(h):E5w.ceil(h);return cE(E5w.count(CE(h),h)+(CE(h).getUTCDay()===4),m,2)}
function UAw(h){return h.getUTCDay()}
function aBY(h,m){return cE(o58.count(CE(h),h),m,2)}
function mAY(h,m){return cE(h.getUTCFullYear()%100,m,2)}
function sX4(h,m){return cE(h.getUTCFullYear()%1E4,m,4)}
function WXw(){return"+0000"}
function eZ2(){return"%"}
function OjJ(h){return+h}
function xAJ(h){return Math.floor(+h/1E3)}
function F5(h){for(var m=h.length/6|0,d=Array(m),xW=0;xW<m;)d[xW]="#"+h.slice(xW*6,++xW*6);return d}
function gz(h){return e44(h[h.length-1])}
function Zti(h){var m=h.length;return function(d){return h[Math.max(0,Math.min(m-1,Math.floor(d*m)))]}}
function T84(h){this._context=h}
function LXN(h){this._curve=h}
function kYR(h,m,d){var xW=h._x1-h._x0;m-=h._x1;var kW=(h._y1-h._y0)/(xW||m<0&&-0);h=(d-h._y1)/(m||xW<0&&-0);return((kW<0?-1:1)+(h<0?-1:1))*Math.min(Math.abs(kW),Math.abs(h),.5*Math.abs((kW*m+h*xW)/(xW+m)))||0}
function ATd(h,m){var d=h._x1-h._x0;return d?(3*(h._y1-h._y0)/d-m)/2:m}
function tgr(h,m,d){var xW=h._x0,kW=h._x1,yN=h._y1,ci=(kW-xW)/3;h._context.bezierCurveTo(xW+ci,h._y0+ci*m,kW-ci,yN-ci*d,kW,yN)}
function qBL(h){this._context=h}
function M72(h){this._context=h}
function YY(h,m,d){this.k=h;this.x=m;this.y=d}
(function(h){h.length===1&&(h=x(h));return{left:function(m,d,xW,kW){xW==null&&(xW=0);kW==null&&(kW=m.length);for(;xW<kW;){var yN=xW+kW>>>1;h(m[yN],d)<0?xW=yN+1:kW=yN}return xW},
right:function(m,d,xW,kW){xW==null&&(xW=0);kW==null&&(kW=m.length);for(;xW<kW;){var yN=xW+kW>>>1;h(m[yN],d)>0?kW=yN:xW=yN+1}return xW}}})(O);
var jVQ={value:function(){}};
l.prototype=e.prototype={constructor:l,on:function(h,m){var d=this._,xW=C(h+"",d),kW,yN=-1,ci=xW.length;if(arguments.length<2)for(;++yN<ci;){var hL;if(hL=kW=(h=xW[yN]).type){a:{hL=d[kW];for(var bF=0,$W=hL.length;bF<$W;++bF)if((kW=hL[bF]).name===h.name){kW=kW.value;break a}kW=void 0}hL=kW}if(hL)return kW}else{if(m!=null&&typeof m!=="function")throw Error("Ce`"+m);for(;++yN<ci;)if(kW=(h=xW[yN]).type)d[kW]=Q(d[kW],h.name,m);else if(m==null)for(kW in d)d[kW]=Q(d[kW],h.name,null);return this}},
copy:function(){var h={},m=this._,d;for(d in m)h[d]=m[d].slice();return new l(h)},
call:function(h,m){if((kW=arguments.length-2)>0)for(var d=Array(kW),xW=0,kW,yN;xW<kW;++xW)d[xW]=arguments[xW+2];if(!this._.hasOwnProperty(h))throw Error("we`"+h);yN=this._[h];xW=0;for(kW=yN.length;xW<kW;++xW)yN[xW].value.apply(m,d)},
apply:function(h,m,d){if(!this._.hasOwnProperty(h))throw Error("we`"+h);h=this._[h];for(var xW=0,kW=h.length;xW<kW;++xW)h[xW].value.apply(m,d)}};
var NS={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/"},DAD=function(h){return function(){return this.matches(h)}};
if(typeof document!=="undefined"){var BQ=document.documentElement;if(!BQ.matches){var lLw=BQ.webkitMatchesSelector||BQ.msMatchesSelector||BQ.mozMatchesSelector||BQ.oMatchesSelector;DAD=function(h){return function(){return lLw.call(this,h)}}}}var GYD=DAD;
E.prototype={constructor:E,appendChild:function(h){return this._parent.insertBefore(h,this._next)},
insertBefore:function(h,m){return this._parent.insertBefore(h,m)},
querySelector:function(h){return this._parent.querySelector(h)},
querySelectorAll:function(h){return this._parent.querySelectorAll(h)}};
var o5T={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(o5T={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ng4=[null];DD.prototype=lL.prototype={constructor:DD,select:function(h){typeof h!=="function"&&(h=y(h));for(var m=this._groups,d=m.length,xW=Array(d),kW=0;kW<d;++kW)for(var yN=m[kW],ci=yN.length,hL=xW[kW]=Array(ci),bF,$W,Tp=0;Tp<ci;++Tp)(bF=yN[Tp])&&($W=h.call(bF,bF.__data__,Tp,yN))&&("__data__"in bF&&($W.__data__=bF.__data__),hL[Tp]=$W);return new DD(xW,
this._parents)},
filter:function(h){typeof h!=="function"&&(h=GYD(h));for(var m=this._groups,d=m.length,xW=Array(d),kW=0;kW<d;++kW)for(var yN=m[kW],ci=yN.length,hL=xW[kW]=[],bF,$W=0;$W<ci;++$W)(bF=yN[$W])&&h.call(bF,bF.__data__,$W,yN)&&hL.push(bF);return new DD(xW,this._parents)},
data:function(h,m){if(!h)return s4=Array(this.size()),$W=-1,this.each(function(O0){s4[++$W]=O0}),s4;
var d=m?W:U,xW=this._parents,kW=this._groups;typeof h!=="function"&&(h=P(h));for(var yN=kW.length,ci=Array(yN),hL=Array(yN),bF=Array(yN),$W=0;$W<yN;++$W){var Tp=xW[$W],X4=kW[$W],S$=X4.length,s4=h.call(Tp,Tp&&Tp.__data__,$W,xW),qT=s4.length,fx=hL[$W]=Array(qT),px=ci[$W]=Array(qT);S$=bF[$W]=Array(S$);d(Tp,X4,fx,px,S$,s4,m);X4=Tp=0;for(var TQ;Tp<qT;++Tp)if(S$=fx[Tp]){for(Tp>=X4&&(X4=Tp+1);!(TQ=px[X4])&&++X4<qT;);S$._next=TQ||null}}ci=new DD(ci,xW);ci._enter=hL;ci._exit=bF;return ci},
enter:function(){return new DD(this._enter||this._groups.map(Z),this._parents)},
exit:function(){return new DD(this._exit||this._groups.map(Z),this._parents)},
merge:function(h){var m=this._groups;h=h._groups;for(var d=m.length,xW=Math.min(d,h.length),kW=Array(d),yN=0;yN<xW;++yN)for(var ci=m[yN],hL=h[yN],bF=ci.length,$W=kW[yN]=Array(bF),Tp,X4=0;X4<bF;++X4)if(Tp=ci[X4]||hL[X4])$W[X4]=Tp;for(;yN<d;++yN)kW[yN]=m[yN];return new DD(kW,this._parents)},
order:function(){for(var h=this._groups,m=-1,d=h.length;++m<d;)for(var xW=h[m],kW=xW.length-1,yN=xW[kW],ci;--kW>=0;)if(ci=xW[kW])yN&&yN!==ci.nextSibling&&yN.parentNode.insertBefore(ci,yN),yN=ci;return this},
sort:function(h){function m(X4,S$){return X4&&S$?h(X4.__data__,S$.__data__):!X4-!S$}
h||(h=z);for(var d=this._groups,xW=d.length,kW=Array(xW),yN=0;yN<xW;++yN){for(var ci=d[yN],hL=ci.length,bF=kW[yN]=Array(hL),$W,Tp=0;Tp<hL;++Tp)if($W=ci[Tp])bF[Tp]=$W;bF.sort(m)}return(new DD(kW,this._parents)).order()},
call:function(){var h=arguments[0];arguments[0]=this;h.apply(null,arguments);return this},
nodes:function(){var h=Array(this.size()),m=-1;this.each(function(){h[++m]=this});
return h},
node:function(){for(var h=this._groups,m=0,d=h.length;m<d;++m)for(var xW=h[m],kW=0,yN=xW.length;kW<yN;++kW){var ci=xW[kW];if(ci)return ci}return null},
size:function(){var h=0;this.each(function(){++h});
return h},
empty:function(){return!this.node()},
each:function(h){for(var m=this._groups,d=0,xW=m.length;d<xW;++d)for(var kW=m[d],yN=0,ci=kW.length,hL;yN<ci;++yN)(hL=kW[yN])&&h.call(hL,hL.__data__,yN,kW);return this},
attr:function(h,m){var d=L(h);if(arguments.length<2){var xW=this.node();return d.local?xW.getAttributeNS(d.space,d.local):xW.getAttribute(d)}return this.each((m==null?d.local?f:r:typeof m==="function"?d.local?O8:J:d.local?Y:u)(d,m))},
style:function(h,m,d){return arguments.length>1?this.each((m==null?Xr:typeof m==="function"?mL:Fr)(h,m,d==null?"":d)):Zn(this.node(),h)},
property:function(h,m){return arguments.length>1?this.each((m==null?q$:typeof m==="function"?VN:KV)(h,m)):this.node()[h]},
text:function(h){return arguments.length?this.each(h==null?Pd:(typeof h==="function"?p2:f2)(h)):this.node().textContent},
html:function(h){return arguments.length?this.each(h==null?OT:(typeof h==="function"?zp:Gp)(h)):this.node().innerHTML},
append:function(h){var m=typeof h==="function"?h:G(h);return this.select(function(){return this.appendChild(m.apply(this,arguments))})},
insert:function(h,m){var d=typeof h==="function"?h:G(h),xW=m==null?m3:typeof m==="function"?m:y(m);return this.select(function(){return this.insertBefore(d.apply(this,arguments),xW.apply(this,arguments)||null)})},
remove:function(){return this.each(E4)},
clone:function(h){return this.select(h?Tr:Xw)},
datum:function(h){return arguments.length?this.property("__data__",h):this.node().__data__},
on:function(h,m,d){var xW=Q$(h+""),kW=xW.length,yN;if(arguments.length<2){var ci=this.node().__on;if(ci)for(var hL=0,bF=ci.length,$W;hL<bF;++hL){var Tp=0;for($W=ci[hL];Tp<kW;++Tp)if((yN=xW[Tp]).type===$W.type&&yN.name===$W.name)return $W.value}}else{ci=m?CQ:tJ;d==null&&(d=!1);for(Tp=0;Tp<kW;++Tp)this.each(ci(xW[Tp],m,d));return this}},
dispatch:function(h,m){return this.each((typeof m==="function"?F4:JJ)(h,m))}};
var gaL=0;Sw.prototype=function(){return new Sw}.prototype={constructor:Sw,
get:function(h){for(var m=this._;!(m in h);)if(!(h=h.parentNode))return;return h[m]},
set:function(h,m){return h[this._]=m},
remove:function(h){return this._ in h&&delete h[this._]},
toString:function(){return this._}};
var Qe=1/.7,$Lu=/^#([0-9a-f]{3})$/,idQ=/^#([0-9a-f]{6})$/,OnQ=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),xOe=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),eYh=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),l1L=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*\\)$"),
Cnh=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Qeh=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*\\)$"),y8T={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};
ZD(Or,au,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ZD(Iu,ep,qh(Or,{brighter:function(h){h=h==null?Qe:Math.pow(Qe,h);return new Iu(this.r*h,this.g*h,this.b*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new Iu(this.r*h,this.g*h,this.b*h,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"#"+$d(this.r)+$d(this.g)+$d(this.b)},
toString:function(){var h=this.opacity;h=isNaN(h)?1:Math.max(0,Math.min(1,h));return(h===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))+(h===1?")":", "+h+")")}}));
ZD(SZ,Pv,qh(Or,{brighter:function(h){h=h==null?Qe:Math.pow(Qe,h);return new SZ(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new SZ(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=this.h%360+(this.h<0)*360,m=this.l,d=m+(m<.5?m:1-m)*(isNaN(h)||isNaN(this.s)?0:this.s);m=2*m-d;return new Iu(zt(h>=240?h-240:h+120,m,d),zt(h,m,d),zt(h<120?h+240:h-120,m,d),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 Znk=Math.PI/180,qBJ=180/Math.PI,tg4=4/29,xk=6/29,E5$=3*xk*xk,bnL=xk*xk*xk;ZD(Rm,function(h,m,d,xW){return arguments.length===1?t_(h):new Rm(h,m,d,xW==null?1:xW)},qh(Or,{brighter:function(h){return new Rm(this.l+18*(h==null?1:h),this.a,this.b,this.opacity)},
darker:function(h){return new Rm(this.l-18*(h==null?1:h),this.a,this.b,this.opacity)},
rgb:function(){var h=(this.l+16)/116,m=isNaN(this.a)?h:h+this.a/500,d=isNaN(this.b)?h:h-this.b/200;m=.96422*JL(m);h=1*JL(h);d=.82521*JL(d);return new Iu(Iz(3.1338561*m-1.6168667*h-.4906146*d),Iz(-.9787684*m+1.9161415*h+.033454*d),Iz(.0719453*m-.2289914*h+1.4052427*d),this.opacity)}}));
ZD(VR,mY,qh(Or,{brighter:function(h){return new VR(this.h,this.c,this.l+18*(h==null?1:h),this.opacity)},
darker:function(h){return new VR(this.h,this.c,this.l-18*(h==null?1:h),this.opacity)},
rgb:function(){return t_(this).rgb()}}));
var PnD=1.78277*-.29227-.1347134789;ZD(KQ,cd,qh(Or,{brighter:function(h){h=h==null?Qe:Math.pow(Qe,h);return new KQ(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new KQ(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=isNaN(this.h)?0:(this.h+120)*Znk,m=+this.l,d=isNaN(this.s)?0:this.s*m*(1-m),xW=Math.cos(h);h=Math.sin(h);return new Iu(255*(m+d*(-.14861*xW+1.78277*h)),255*(m+d*(-.29227*xW+-.90649*h)),255*(m+1.97294*xW*d),this.opacity)}}));
var RYT=function d(m){function xW(yN,ci){var hL=kW((yN=ep(yN)).r,(ci=ep(ci)).r),bF=kW(yN.g,ci.g),$W=kW(yN.b,ci.b),Tp=xg(yN.opacity,ci.opacity);return function(X4){yN.r=hL(X4);yN.g=bF(X4);yN.b=$W(X4);yN.opacity=Tp(X4);return yN+""}}
var kW=gw(m);xW.gamma=d;return xW}(1),e44=D2(function(m){var d=m.length-1;
return function(xW){var kW=xW<=0?xW=0:xW>=1?(xW=1,d-1):Math.floor(xW*d),yN=m[kW],ci=m[kW+1];return Zs((xW-kW/d)*d,kW>0?m[kW-1]:2*yN-ci,yN,ci,kW<d-1?m[kW+2]:2*ci-yN)}});
D2(function(m){var d=m.length;return function(xW){var kW=Math.floor(((xW%=1)<0?++xW:xW)*d);return Zs((xW-kW/d)*d,m[(kW+d-1)%d],m[kW%d],m[(kW+1)%d],m[(kW+2)%d])}});
var eY$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,l1W=new RegExp(eY$.source,"g"),c83=180/Math.PI,Pnn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},vQ,c8L,FXd,EbW,ClQ=he(function(m){if(m==="none")return Pnn;vQ||(vQ=document.createElement("DIV"),c8L=document.documentElement,FXd=document.defaultView);vQ.style.transform=m;m=FXd.getComputedStyle(c8L.appendChild(vQ),null).getPropertyValue("transform");c8L.removeChild(vQ);m=m.slice(7,-1).split(",");return V$(+m[0],+m[1],+m[2],+m[3],
+m[4],+m[5])},"px, ","px)","deg)"),Q0Y=he(function(m){if(m==null)return Pnn;
EbW||(EbW=document.createElementNS("http://www.w3.org/2000/svg","g"));EbW.setAttribute("transform",m);if(!(m=EbW.transform.baseVal.consolidate()))return Pnn;m=m.matrix;return V$(m.a,m.b,m.c,m.d,m.e,m.f)},", ",")",")");
Ae(dk);Ae(xg);Du(dk);Du(xg);SN(dk);var I1L=SN(xg),er=0,h1=0,r3=0,AGr,zW,klr=0,mT=0,Lvs=0,WQ=typeof performance==="object"&&performance.now?performance:Date,I1J=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(m){setTimeout(m,17)};
rS.prototype=IN.prototype={constructor:rS,restart:function(m,d,xW){if(typeof m!=="function")throw new TypeError("De");xW=(xW==null?jZ():+xW)+(d==null?0:+d);this._next||zW===this||(zW?zW._next=this:AGr=this,zW=this);this._call=m;this._time=xW;pR()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,pR())}};
var LrQ=e("start","end","interrupt"),k$X=[],bzQ=lL.prototype.constructor,Xm2=0,bS=lL.prototype;EJ.prototype=function(m){return lL().transition(m)}.prototype={constructor:EJ,
select:function(m){var d=this._name,xW=this._id;typeof m!=="function"&&(m=y(m));for(var kW=this._groups,yN=kW.length,ci=Array(yN),hL=0;hL<yN;++hL)for(var bF=kW[hL],$W=bF.length,Tp=ci[hL]=Array($W),X4,S$,s4=0;s4<$W;++s4)(X4=bF[s4])&&(S$=m.call(X4,X4.__data__,s4,bF))&&("__data__"in X4&&(S$.__data__=X4.__data__),Tp[s4]=S$,Cn$(Tp[s4],d,xW,s4,Tp,vF(X4,xW)));return new EJ(ci,this._parents,d,xW)},
filter:function(m){typeof m!=="function"&&(m=GYD(m));for(var d=this._groups,xW=d.length,kW=Array(xW),yN=0;yN<xW;++yN)for(var ci=d[yN],hL=ci.length,bF=kW[yN]=[],$W,Tp=0;Tp<hL;++Tp)($W=ci[Tp])&&m.call($W,$W.__data__,Tp,ci)&&bF.push($W);return new EJ(kW,this._parents,this._name,this._id)},
merge:function(m){if(m._id!==this._id)throw Error();var d=this._groups;m=m._groups;for(var xW=d.length,kW=Math.min(xW,m.length),yN=Array(xW),ci=0;ci<kW;++ci)for(var hL=d[ci],bF=m[ci],$W=hL.length,Tp=yN[ci]=Array($W),X4,S$=0;S$<$W;++S$)if(X4=hL[S$]||bF[S$])Tp[S$]=X4;for(;ci<xW;++ci)yN[ci]=d[ci];return new EJ(yN,this._parents,this._name,this._id)},
selection:function(){return new bzQ(this._groups,this._parents)},
transition:function(){for(var m=this._name,d=this._id,xW=++Xm2,kW=this._groups,yN=kW.length,ci=0;ci<yN;++ci)for(var hL=kW[ci],bF=hL.length,$W,Tp=0;Tp<bF;++Tp)if($W=hL[Tp]){var X4=vF($W,d);Cn$($W,m,xW,Tp,hL,{time:X4.time+X4.delay+X4.duration,delay:0,duration:X4.duration,ease:X4.ease})}return new EJ(kW,this._parents,m,xW)},
call:bS.call,nodes:bS.nodes,node:bS.node,size:bS.size,empty:bS.empty,each:bS.each,on:function(m,d){var xW=this._id;return arguments.length<2?vF(this.node(),xW).on.on(m):this.each(pyQ(xW,m,d))},
attr:function(m,d){var xW=L(m),kW=xW==="transform"?Q0Y:py2;return this.attrTween(m,typeof d==="function"?(xW.local?y84:o54)(xW,kW,bnW(this,"attr."+m,d)):d==null?(xW.local?G$$:DOh)(xW):(xW.local?Xyp:FrO)(xW,kW,d+""))},
attrTween:function(m,d){var xW="attr."+m;if(arguments.length<2)return(xW=this.tween(xW))&&xW._value;if(d==null)return this.tween(xW,null);if(typeof d!=="function")throw Error();var kW=L(m);return this.tween(xW,(kW.local?Znh:E5p)(kW,d))},
style:function(m,d,xW){var kW=m==="transform"?ClQ:py2;return d==null?this.styleTween(m,UOe(m,kW)).on("end.style."+m,a1p(m)):this.styleTween(m,typeof d==="function"?seQ(m,kW,bnW(this,"style."+m,d)):mOQ(m,kW,d+""),xW)},
styleTween:function(m,d,xW){var kW="style."+m;if(arguments.length<2)return(kW=this.tween(kW))&&kW._value;if(d==null)return this.tween(kW,null);if(typeof d!=="function")throw Error();return this.tween(kW,Wrw(m,d,xW==null?"":xW))},
text:function(m){return this.tween("text",typeof m==="function"?zYe(bnW(this,"text",m)):hYT(m==null?"":m+""))},
remove:function(){return this.on("end.remove",RY4(this._id))},
tween:function(m,d){var xW=this._id;if(arguments.length<2){xW=vF(this.node(),xW).tween;for(var kW=0,yN=xW.length,ci;kW<yN;++kW)if((ci=xW[kW]).name===m)return ci.value;return null}return this.each((d==null?A8p:MgO)(xW,m,d))},
delay:function(m){var d=this._id;return arguments.length?this.each((typeof m==="function"?tgw:qBe)(d,m)):vF(this.node(),d).delay},
duration:function(m){var d=this._id;return arguments.length?this.each((typeof m==="function"?PnQ:c8Y)(d,m)):vF(this.node(),d).duration},
ease:function(m){var d=this._id;return arguments.length?this.each(I1e(d,m)):vF(this.node(),d).ease}};
var Vg$={time:null,delay:0,duration:250,ease:function(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}};
lL.prototype.transition=function(m){var d;if(m instanceof EJ){var xW=m._id;m=m._name}else xW=++Xm2,(d=Vg$).time=jZ(),m=m==null?null:m+"";for(var kW=this._groups,yN=kW.length,ci=0;ci<yN;++ci)for(var hL=kW[ci],bF=hL.length,$W,Tp=0;Tp<bF;++Tp)if($W=hL[Tp]){var X4=$W,S$=m,s4=xW,qT=Tp,fx=hL,px;if(!(px=d))a:{px=void 0;for(var TQ=xW;!(px=$W.__transition)||!(px=px[TQ]);)if(!($W=$W.parentNode)){px=(Vg$.time=jZ(),Vg$);break a}}Cn$(X4,S$,s4,qT,fx,px)}return new EJ(kW,this._parents,m,xW)};
["e","w"].map(T_m);["n","s"].map(T_m);"n e s w nw ne se sw".split(" ").map(T_m);Lrn.prototype=function(){return new Lrn}.prototype={constructor:Lrn,
moveTo:function(m,d){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+d)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(m,d){this._+="L"+(this._x1=+m)+","+(this._y1=+d)},
bezierCurveTo:function(m,d,xW,kW,yN,ci){this._+="C"+ +m+","+ +d+","+ +xW+","+ +kW+","+(this._x1=+yN)+","+(this._y1=+ci)},
rect:function(m,d,xW,kW){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+d)+"h"+ +xW+"v"+ +kW+"h"+-xW+"Z"},
toString:function(){return this._}};
Mbw.prototype=UOJ.prototype={constructor:Mbw,has:function(m){return" "+m in this},
get:function(m){return this[" "+m]},
set:function(m,d){this[" "+m]=d;return this},
remove:function(m){m=" "+m;return m in this&&delete this[m]},
clear:function(){for(var m in this)m[0]===" "&&delete this[m]},
keys:function(){var m=[],d;for(d in this)d[0]===" "&&m.push(d.slice(1));return m},
values:function(){var m=[],d;for(d in this)d[0]===" "&&m.push(this[d]);return m},
entries:function(){var m=[],d;for(d in this)d[0]===" "&&m.push({key:d.slice(1),value:this[d]});return m},
size:function(){var m=0,d;for(d in this)d[0]===" "&&++m;return m},
empty:function(){for(var m in this)if(m[0]===" ")return!1;return!0},
each:function(m){for(var d in this)d[0]===" "&&m(this[d],d.slice(1),this)}};
var zz=UOJ.prototype;Dur.prototype=function(m,d){var xW=new Dur;if(m instanceof Dur)m.each(function(ci){xW.add(ci)});
else if(m){var kW=-1,yN=m.length;if(d==null)for(;++kW<yN;)xW.add(m[kW]);else for(;++kW<yN;)xW.add(d(m[kW],kW,m))}return xW}.prototype={constructor:Dur,
has:zz.has,add:function(m){this[" "+m]=m;return this},
remove:zz.remove,clear:zz.clear,values:zz.keys,size:zz.size,empty:zz.empty,each:zz.each};var seD={},k$r={},T6Q=mO2(",").parse,LAT=mO2("\t").parse;Wr4(T6Q);Wr4(LAT);var Nw=function(m,d,xW){d=new A8w(d==null?dO$:d,xW==null?n5$:xW,NaN,NaN,NaN,NaN);return m==null?d:d.addAll(m)}.prototype=A8w.prototype;
Nw.copy=function(){var m=new A8w(this._x,this._y,this._x0,this._y0,this._x1,this._y1),d=this._root,xW,kW;if(!d)return m;if(!d.length)return m._root=zYJ(d),m;for(xW=[{source:d,target:m._root=Array(4)}];d=xW.pop();)for(var yN=0;yN<4;++yN)if(kW=d.source[yN])kW.length?xW.push({source:kW,target:d.target[yN]=Array(4)}):d.target[yN]=zYJ(kW);return m};
Nw.add=function(m){var d=+this._x.call(null,m),xW=+this._y.call(null,m);return hYd(this.cover(d,xW),d,xW,m)};
Nw.addAll=function(m){var d,xW,kW=m.length,yN,ci,hL=Array(kW),bF=Array(kW),$W=Infinity,Tp=Infinity,X4=-Infinity,S$=-Infinity;for(xW=0;xW<kW;++xW)isNaN(yN=+this._x.call(null,d=m[xW]))||isNaN(ci=+this._y.call(null,d))||(hL[xW]=yN,bF[xW]=ci,yN<$W&&($W=yN),yN>X4&&(X4=yN),ci<Tp&&(Tp=ci),ci>S$&&(S$=ci));X4<$W&&($W=this._x0,X4=this._x1);S$<Tp&&(Tp=this._y0,S$=this._y1);this.cover($W,Tp).cover(X4,S$);for(xW=0;xW<kW;++xW)hYd(this,hL[xW],bF[xW],m[xW]);return this};
Nw.cover=function(m,d){if(isNaN(m=+m)||isNaN(d=+d))return this;var xW=this._x0,kW=this._y0,yN=this._x1,ci=this._y1;if(isNaN(xW))yN=(xW=Math.floor(m))+1,ci=(kW=Math.floor(d))+1;else if(xW>m||m>yN||kW>d||d>ci){var hL=yN-xW,bF=this._root,$W;switch($W=(d<(kW+ci)/2)<<1|m<(xW+yN)/2){case 0:do{var Tp=Array(4);Tp[$W]=bF;bF=Tp}while(hL*=2,yN=xW+hL,ci=kW+hL,m>yN||d>ci);break;case 1:do Tp=Array(4),Tp[$W]=bF,bF=Tp;while(hL*=2,xW=yN-hL,ci=kW+hL,xW>m||d>ci);break;case 2:do Tp=Array(4),Tp[$W]=bF,bF=Tp;while(hL*=
2,yN=xW+hL,kW=ci-hL,m>yN||kW>d);break;case 3:do Tp=Array(4),Tp[$W]=bF,bF=Tp;while(hL*=2,xW=yN-hL,kW=ci-hL,xW>m||kW>d)}this._root&&this._root.length&&(this._root=bF)}else return this;this._x0=xW;this._y0=kW;this._x1=yN;this._y1=ci;return this};
Nw.data=function(){var m=[];this.visit(function(d){if(!d.length){do m.push(d.data);while(d=d.next)}});
return m};
Nw.extent=function(m){return arguments.length?this.cover(+m[0][0],+m[0][1]).cover(+m[1][0],+m[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Nw.find=function(m,d,xW){var kW=this._x0,yN=this._y0,ci,hL,bF,$W,Tp=this._x1,X4=this._y1,S$=[],s4=this._root,qT;s4&&S$.push(new jx(s4,kW,yN,Tp,X4));xW==null?xW=Infinity:(kW=m-xW,yN=d-xW,Tp=m+xW,X4=d+xW,xW*=xW);for(;qT=S$.pop();)if(!(!(s4=qT.node)||(ci=qT.x0)>Tp||(hL=qT.y0)>X4||(bF=qT.x1)<kW||($W=qT.y1)<yN))if(s4.length){qT=(ci+bF)/2;var fx=(hL+$W)/2;S$.push(new jx(s4[3],qT,fx,bF,$W),new jx(s4[2],ci,fx,qT,$W),new jx(s4[1],qT,hL,bF,fx),new jx(s4[0],ci,hL,qT,fx));if(s4=(d>=fx)<<1|m>=qT)qT=S$[S$.length-
1],S$[S$.length-1]=S$[S$.length-1-s4],S$[S$.length-1-s4]=qT}else if(qT=m-+this._x.call(null,s4.data),fx=d-+this._y.call(null,s4.data),qT=qT*qT+fx*fx,qT<xW){var px=Math.sqrt(xW=qT);kW=m-px;yN=d-px;Tp=m+px;X4=d+px;px=s4.data}return px};
Nw.remove=function(m){if(isNaN($W=+this._x.call(null,m))||isNaN(Tp=+this._y.call(null,m)))return this;var d,xW=this._root,kW,yN=this._x0,ci=this._y0,hL=this._x1,bF=this._y1,$W,Tp,X4,S$,s4,qT,fx;if(!xW)return this;if(xW.length)for(;;){(s4=$W>=(X4=(yN+hL)/2))?yN=X4:hL=X4;(qT=Tp>=(S$=(ci+bF)/2))?ci=S$:bF=S$;if(!(d=xW,xW=xW[fx=qT<<1|s4]))return this;if(!xW.length)break;if(d[fx+1&3]||d[fx+2&3]||d[fx+3&3]){var px=d;var TQ=fx}}for(;xW.data!==m;)if(!(kW=xW,xW=xW.next))return this;(m=xW.next)&&delete xW.next;
if(kW)return m?kW.next=m:delete kW.next,this;if(!d)return this._root=m,this;m?d[fx]=m:delete d[fx];(xW=d[0]||d[1]||d[2]||d[3])&&xW===(d[3]||d[2]||d[1]||d[0])&&!xW.length&&(px?px[TQ]=xW:this._root=xW);return this};
Nw.removeAll=function(m){for(var d=0,xW=m.length;d<xW;++d)this.remove(m[d]);return this};
Nw.root=function(){return this._root};
Nw.size=function(){var m=0;this.visit(function(d){if(!d.length){do++m;while(d=d.next)}});
return m};
Nw.visit=function(m){var d=[],xW,kW=this._root,yN,ci,hL,bF,$W;for(kW&&d.push(new jx(kW,this._x0,this._y0,this._x1,this._y1));xW=d.pop();)if(!m(kW=xW.node,ci=xW.x0,hL=xW.y0,bF=xW.x1,$W=xW.y1)&&kW.length){xW=(ci+bF)/2;var Tp=(hL+$W)/2;(yN=kW[3])&&d.push(new jx(yN,xW,Tp,bF,$W));(yN=kW[2])&&d.push(new jx(yN,ci,Tp,xW,$W));(yN=kW[1])&&d.push(new jx(yN,xW,hL,bF,Tp));(yN=kW[0])&&d.push(new jx(yN,ci,hL,xW,Tp))}};
Nw.visitAfter=function(m){var d=[],xW=[],kW;for(this._root&&d.push(new jx(this._root,this._x0,this._y0,this._x1,this._y1));kW=d.pop();){var yN=kW.node;if(yN.length){var ci,hL=kW.x0,bF=kW.y0,$W=kW.x1,Tp=kW.y1,X4=(hL+$W)/2,S$=(bF+Tp)/2;(ci=yN[0])&&d.push(new jx(ci,hL,bF,X4,S$));(ci=yN[1])&&d.push(new jx(ci,X4,bF,$W,S$));(ci=yN[2])&&d.push(new jx(ci,hL,S$,X4,Tp));(ci=yN[3])&&d.push(new jx(ci,X4,S$,$W,Tp))}xW.push(kW)}for(;kW=xW.pop();)m(kW.node,kW.x0,kW.y0,kW.x1,kW.y1);return this};
Nw.x=function(m){return arguments.length?(this._x=m,this):this._x};
Nw.y=function(m){return arguments.length?(this._y=m,this):this._y};
var v5h=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Mgs.prototype=DO$.prototype;DO$.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 dOR,n5R={"%":function(m,d){return(m*100).toFixed(d)},
b:function(m){return Math.round(m).toString(2)},
c:function(m){return m+""},
d:function(m){return Math.round(m).toString(10)},
e:function(m,d){return m.toExponential(d)},
f:function(m,d){return m.toFixed(d)},
g:function(m,d){return m.toPrecision(d)},
o:function(m){return Math.round(m).toString(8)},
p:function(m,d){return r82(m*100,d)},
r:r82,s:function(m,d){var xW=GlV(m,d);if(!xW)return m+"";var kW=xW[0];xW=xW[1];xW=xW-(dOR=Math.max(-8,Math.min(8,Math.floor(xW/3)))*3)+1;var yN=kW.length;return xW===yN?kW:xW>yN?kW+Array(xW-yN+1).join("0"):xW>0?kW.slice(0,xW)+"."+kW.slice(xW):"0."+Array(1-xW).join("0")+GlV(m,Math.max(0,d+xW-1))[0]},
X:function(m){return Math.round(m).toString(16).toUpperCase()},
x:function(m){return Math.round(m).toString(16)}},Krp="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),kxw;
(function(m){return kxw=f1Y(m)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});K0.prototype={constructor:K0,reset:function(){this.s=this.t=0},
add:function(m){uYF(tbi,m,this.t);uYF(this,tbi.s,this.s);this.s?this.t+=tbi.t:this.s=tbi.t},
valueOf:function(){return this.s}};
var tbi=new K0,S2=Math.PI,gj=S2/2,owR=S2/4,AML=S2*2,pyV=S2/180,tc=Math.abs,RY8=Math.atan,wy4=Math.atan2,$V=Math.cos,sQ=Math.sin,XH8=Math.sqrt;new K0;new K0;new K0;var UOL=new K0;(function(m,d,xW,kW){return function(yN){function ci(xK,cv){m(xK,cv)&&yN.point(xK,cv)}
function hL(xK,cv){s4.point(xK,cv)}
function bF(){lw.point=hL;s4.lineStart()}
function $W(){lw.point=ci;s4.lineEnd()}
function Tp(xK,cv){qg.push([xK,cv]);fx.point(xK,cv)}
function X4(){fx.lineStart();qg=[]}
function S$(){Tp(qg[0][0],qg[0][1]);fx.lineEnd();var xK=fx.clean(),cv=qT.result(),jE=cv.length,ZP;qg.pop();TQ.push(qg);qg=null;if(jE)if(xK&1){if(jE=cv[0],(cv=jE.length-1)>0){px||(yN.polygonStart(),px=!0);yN.lineStart();for(xK=0;xK<cv;++xK)yN.point((ZP=jE[xK])[0],ZP[1]);yN.lineEnd()}}else jE>1&&xK&2&&cv.push(cv.pop().concat(cv.shift())),O0.push(cv.filter(jeL))}
var s4=d(yN),qT=wyw(),fx=d(qT),px=!1,TQ,O0,qg,lw={point:ci,lineStart:bF,lineEnd:$W,polygonStart:function(){lw.point=Tp;lw.lineStart=X4;lw.lineEnd=S$;O0=[];TQ=[]},
polygonEnd:function(){lw.point=ci;lw.lineStart=bF;lw.lineEnd=$W;var xK=O0,cv=xK.length;var jE=-1;for(var ZP=0,Je,t7;++jE<cv;)ZP+=xK[jE].length;for(Je=Array(ZP);--cv>=0;)for(t7=xK[cv],jE=t7.length;--jE>=0;)Je[--ZP]=t7[jE];O0=Je;xK=TQ;cv=kW[0];ZP=kW[1];var A7=sQ(ZP);jE=[sQ(cv),-$V(cv),0];t7=Je=0;UOL.reset();A7===1?ZP=gj+1E-6:A7===-1&&(ZP=-gj-1E-6);A7=0;for(var rL=xK.length;A7<rL;++A7)if(wa=(ND=xK[A7]).length){var ND,wa,Lw=ND[wa-1],PK=Lw[0],Zm=Lw[1]/2+owR,qnL=sQ(Zm),yTd=$V(Zm);for(Zm=0;Zm<wa;++Zm,PK=
a1w,qnL=Zj4,yTd=fc,Lw=PUL){var PUL=ND[Zm],a1w=PUL[0];fc=PUL[1]/2+owR;var Zj4=sQ(fc),fc=$V(fc),Tv=a1w-PK,mOV=Tv>=0?1:-1,sen=mOV*Tv,cGs=sen>S2;qnL*=Zj4;UOL.add(wy4(qnL*mOV*sQ(sen),yTd*fc+qnL*$V(sen)));Je+=cGs?Tv+mOV*AML:Tv;cGs^PK>=cv^a1w>=cv&&(Lw=B_z(YBk(Lw),YBk(PUL)),v5k(Lw),PK=B_z(jE,Lw),v5k(PK),PK=(cGs^Tv>=0?-1:1)*Fvr(PK[2]),ZP>PK||ZP===PK&&(Lw[0]||Lw[1]))&&(t7+=cGs^Tv>=0?1:-1)}}xK=(Je<-1E-6||Je<1E-6&&UOL<-1E-6)^t7&1;O0.length?(px||(yN.polygonStart(),px=!0),SBL(O0,N_w,xK,xW,yN)):xK&&(px||(yN.polygonStart(),
px=!0),yN.lineStart(),xW(null,null,1,yN),yN.lineEnd());px&&(yN.polygonEnd(),px=!1);O0=TQ=null},
sphere:function(){yN.polygonStart();yN.lineStart();xW(null,null,1,yN);yN.lineEnd();yN.polygonEnd()}};
return lw}})(function(){return!0},function(m){var d=NaN,xW=NaN,kW=NaN,yN;
return{lineStart:function(){m.lineStart();yN=1},
point:function(ci,hL){var bF=ci>0?S2:-S2,$W=tc(ci-d);if(tc($W-S2)<1E-6)m.point(d,xW=(xW+hL)/2>0?gj:-gj),m.point(kW,xW),m.lineEnd(),m.lineStart(),m.point(bF,xW),m.point(ci,xW),yN=0;else if(kW!==bF&&$W>=S2){tc(d-kW)<1E-6&&(d-=kW*1E-6);tc(ci-bF)<1E-6&&(ci-=bF*1E-6);$W=d;var Tp=xW,X4=ci,S$,s4,qT=sQ($W-X4);xW=tc(qT)>1E-6?RY8((sQ(Tp)*(s4=$V(hL))*sQ(X4)-sQ(hL)*(S$=$V(Tp))*sQ($W))/(S$*s4*qT)):(Tp+hL)/2;m.point(kW,xW);m.lineEnd();m.lineStart();m.point(bF,xW);yN=0}m.point(d=ci,xW=hL);kW=bF},
lineEnd:function(){m.lineEnd();d=xW=NaN},
clean:function(){return 2-yN}}},function(m,d,xW,kW){m==null?(xW*=gj,kW.point(-S2,xW),kW.point(0,xW),kW.point(S2,xW),kW.point(S2,0),kW.point(S2,-xW),kW.point(0,-xW),kW.point(-S2,-xW),kW.point(-S2,0),kW.point(-S2,xW)):tc(m[0]-d[0])>1E-6?(m=m[0]<d[0]?S2:-S2,xW=xW*m/2,kW.point(-m,xW),kW.point(0,xW),kW.point(m,xW)):kW.point(d[0],d[1])},[-S2,
-gj]);new K0;new K0;new K0;new K0;G$N.prototype={constructor:G$N,point:function(m,d){this.stream.point(m,d)},
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()}};
$V(30*pyV);(function(m){return function(d){var xW=new G$N,kW;for(kW in m)xW[kW]=m[kW];xW.stream=d;return xW}})({point:function(m,d){this.stream.point(m*pyV,d*pyV)}});
J8R(function(m){return XH8(2/(1+m))}).invert=HQ(function(m){return 2*Fvr(m/2)});
J8R(function(m){return(m=m>1?0:m<-1?S2:Math.acos(m))&&m/sQ(m)}).invert=HQ(function(m){return m});
XH8(3);HQ(RY8);HQ(Fvr);HQ(function(m){return 2*RY8(m)});
Kc.prototype=SBd.prototype={constructor:Kc,count:function(){return this.eachAfter(g5w)},
each:function(m){var d,xW=[this],kW;do{var yN=xW.reverse();for(xW=[];d=yN.pop();)if(m(d),d=d.children){var ci=0;for(kW=d.length;ci<kW;++ci)xW.push(d[ci])}}while(xW.length);return this},
eachAfter:function(m){for(var d,xW=[this],kW=[],yN,ci;d=xW.pop();)if(kW.push(d),d=d.children)for(yN=0,ci=d.length;yN<ci;++yN)xW.push(d[yN]);for(;d=kW.pop();)m(d);return this},
eachBefore:function(m){for(var d,xW=[this],kW;d=xW.pop();)if(m(d),d=d.children)for(kW=d.length-1;kW>=0;--kW)xW.push(d[kW]);return this},
sum:function(m){return this.eachAfter(function(d){for(var xW=+m(d.data)||0,kW=d.children,yN=kW&&kW.length;--yN>=0;)xW+=kW[yN].value;d.value=xW})},
sort:function(m){return this.eachBefore(function(d){d.children&&d.children.sort(m)})},
path:function(m){var d=this;var xW=d;var kW=m;if(xW!==kW){var yN=xW.ancestors(),ci=kW.ancestors(),hL=null;xW=yN.pop();for(kW=ci.pop();xW===kW;)hL=xW,xW=yN.pop(),kW=ci.pop();xW=hL}for(kW=[d];d!==xW;)d=d.parent,kW.push(d);for(d=kW.length;m!==xW;)kW.splice(d,0,m),m=m.parent;return kW},
ancestors:function(){for(var m=this,d=[m];m=m.parent;)d.push(m);return d},
links:function(){var m=this,d=[];m.each(function(xW){xW!==m&&d.push({source:xW.parent,target:xW})});
return d},
copy:function(){return SBd(this).eachBefore(Oje)}};
(function(m,d){this._=m;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=d}).prototype=Object.create(Kc.prototype);
var Frs=new Date,Xyw=new Date,Ewp=Eb(function(){},function(m,d){m.setTime(+m+d)},function(m,d){return d-m});
Ewp.every=function(m){m=Math.floor(m);return isFinite(m)&&m>0?m>1?Eb(function(d){d.setTime(Math.floor(d/m)*m)},function(d,xW){d.setTime(+d+xW*m)},function(d,xW){return(xW-d)/m}):Ewp:null};
Eb(function(m){m.setTime(Math.floor(m/1E3)*1E3)},function(m,d){m.setTime(+m+d*1E3)},function(m,d){return(d-m)/1E3},function(m){return m.getUTCSeconds()});
Eb(function(m){m.setTime(Math.floor(m/6E4)*6E4)},function(m,d){m.setTime(+m+d*6E4)},function(m,d){return(d-m)/6E4},function(m){return m.getMinutes()});
Eb(function(m){var d=m.getTimezoneOffset()*6E4%36E5;d<0&&(d+=36E5);m.setTime(Math.floor((+m-d)/36E5)*36E5+d)},function(m,d){m.setTime(+m+d*36E5)},function(m,d){return(d-m)/36E5},function(m){return m.getHours()});
var g54=Eb(function(m){m.setHours(0,0,0,0)},function(m,d){m.setDate(m.getDate()+d)},function(m,d){return(d-m-(d.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/864E5},function(m){return m.getDate()-1}),Oze=Wf(0),y88=Wf(1);
Wf(2);Wf(3);var Zn$=Wf(4);Wf(5);Wf(6);Eb(function(m){m.setDate(1);m.setHours(0,0,0,0)},function(m,d){m.setMonth(m.getMonth()+d)},function(m,d){return d.getMonth()-m.getMonth()+(d.getFullYear()-m.getFullYear())*12},function(m){return m.getMonth()});
var lS=Eb(function(m){m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,d){m.setFullYear(m.getFullYear()+d)},function(m,d){return d.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});
lS.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Eb(function(d){d.setFullYear(Math.floor(d.getFullYear()/m)*m);d.setMonth(0,1);d.setHours(0,0,0,0)},function(d,xW){d.setFullYear(d.getFullYear()+xW*m)}):null};
Eb(function(m){m.setUTCSeconds(0,0)},function(m,d){m.setTime(+m+d*6E4)},function(m,d){return(d-m)/6E4},function(m){return m.getUTCMinutes()});
Eb(function(m){m.setUTCMinutes(0,0,0)},function(m,d){m.setTime(+m+d*36E5)},function(m,d){return(d-m)/36E5},function(m){return m.getUTCHours()});
var N_4=Eb(function(m){m.setUTCHours(0,0,0,0)},function(m,d){m.setUTCDate(m.getUTCDate()+d)},function(m,d){return(d-m)/864E5},function(m){return m.getUTCDate()-1}),xzL=hH(0),o58=hH(1);
hH(2);hH(3);var E5w=hH(4);hH(5);hH(6);Eb(function(m){m.setUTCDate(1);m.setUTCHours(0,0,0,0)},function(m,d){m.setUTCMonth(m.getUTCMonth()+d)},function(m,d){return d.getUTCMonth()-m.getUTCMonth()+(d.getUTCFullYear()-m.getUTCFullYear())*12},function(m){return m.getUTCMonth()});
var CE=Eb(function(m){m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,d){m.setUTCFullYear(m.getUTCFullYear()+d)},function(m,d){return d.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});
CE.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Eb(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/m)*m);d.setUTCMonth(0,1);d.setUTCHours(0,0,0,0)},function(d,xW){d.setUTCFullYear(d.getUTCFullYear()+xW*m)}):null};
var jeF={"-":"",_:" ",0:"0"},PU=/^\s*\d+/,iju=/^%/,$AQ=/[\\^$*+?|[\]().{}]/g,IPW;(function(m){IPW=eZQ(m);oQd=IPW.utcFormat;yt4=IPW.utcParse;return IPW})({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||oQd("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||yt4("%Y-%m-%dT%H:%M:%S.%LZ");F5("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
F5("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");F5("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");F5("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");F5("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");F5("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");F5("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
F5("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");F5("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");F5("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");F5("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");F5("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var MQ4=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(F5);gz(MQ4);var DzQ=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(F5);gz(DzQ);var GxQ=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(F5);gz(GxQ);var FA4=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(F5);
gz(FA4);var XIT=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(F5);gz(XIT);var oRQ=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(F5);gz(oRQ);var yMY=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(F5);gz(yMY);var Zzh=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(F5);gz(Zzh);var ERY=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(F5);gz(ERY);var tQe=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(F5);gz(tQe);var qqT=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(F5);gz(qqT);var PlX=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(F5);gz(PlX);var cMQ=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(F5);gz(cMQ);var ILh=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(F5);gz(ILh);var VQT=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(F5);gz(VQT);var pIL=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(F5);gz(pIL);var R4h=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(F5);gz(R4h);var UzL=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(F5);gz(UzL);var aLY=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(F5);gz(aLY);var mzX=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(F5);gz(mzX);var s0L=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(F5);gz(s0L);var WAX=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(F5);gz(WAX);var h4$=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(F5);gz(h4$);var z44=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(F5);gz(z44);var rMQ=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(F5);gz(rMQ);var Hze=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(F5);gz(Hze);var KAh=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(F5);gz(KAh);I1L(cd(300,.5,0),cd(-240,.5,1));I1L(cd(-100,.75,.35),cd(80,1.5,.8));I1L(cd(260,.75,.35),cd(80,1.5,.8));cd();ep();Zti(F5("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Zti(F5("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Zti(F5("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Zti(F5("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
T84.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(m,d){m=+m;d=+d;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,d):this._context.moveTo(m,d);break;case 1:this._point=2;default:this._context.lineTo(m,d)}}};
(function(m){function d(xW){return new LXN(m(xW))}
d._curve=m;return d})(function(m){return new T84(m)});
LXN.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(m,d){this._curve.point(d*Math.sin(m),d*-Math.cos(m))}};
qBL.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:tgr(this,this._t0,ATd(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(m,d){var xW=NaN;m=+m;d=+d;if(m!==this._x1||d!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,d):this._context.moveTo(m,d);break;case 1:this._point=2;break;case 2:this._point=3;tgr(this,ATd(this,xW=kYR(this,m,d)),xW);break;default:tgr(this,this._t0,xW=kYR(this,m,d))}this._x0=this._x1;this._x1=m;this._y0=this._y1;this._y1=d;this._t0=xW}}};
(function(m){this._context=new M72(m)}.prototype=Object.create(qBL.prototype)).point=function(m,d){qBL.prototype.point.call(this,d,m)};
M72.prototype={moveTo:function(m,d){this._context.moveTo(d,m)},
closePath:function(){this._context.closePath()},
lineTo:function(m,d){this._context.lineTo(d,m)},
bezierCurveTo:function(m,d,xW,kW,yN,ci){this._context.bezierCurveTo(d,m,kW,xW,ci,yN)}};
YY.prototype={constructor:YY,scale:function(m){return m===1?this:new YY(this.k*m,this.x,this.y)},
translate:function(m,d){return m===0&d===0?this:new YY(this.k,this.x+this.k*m,this.y+this.k*d)},
apply:function(m){return[m[0]*this.k+this.x,m[1]*this.k+this.y]},
invert:function(m){return[(m[0]-this.x)/this.k,(m[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new YY(1,0,0);y$N=au;NS.svg=NS.svg;NS.xhtml=NS.xhtml;NS.xlink=NS.xlink;NS.xml=NS.xml;NS.xmlns=NS.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 ZId="hammer_"+(Math.random()*1E6|0),EQL=function(){var O=document||document;if(!O[ZId]){var x=function(){(function(e,l,C,Q){function L(Rm,nV,JL){return setTimeout(Z(Rm,JL),nV)}
function k(Rm,nV,JL){return Array.isArray(Rm)?(M(Rm,JL[nV],JL),!0):!1}
function M(Rm,nV,JL){var Iz;if(Rm)if(Rm.forEach)Rm.forEach(nV,JL);else if(Rm.length!==Q){var ou=0;for(Iz=Rm.length;ou<Iz;ou++)nV.call(JL,Rm[ou],ou,Rm)}else for(ou in Rm)Rm.hasOwnProperty(ou)&&nV.call(JL,Rm[ou],ou,Rm)}
function G(Rm,nV,JL){for(var Iz=Object.keys(nV),ou=0,mo=Iz.length;ou<mo;ou++)if(!JL||JL&&Rm[Iz[ou]]===Q)Rm[Iz[ou]]=nV[Iz[ou]];return Rm}
function X(Rm,nV){return G(Rm,nV,!0)}
function y(Rm,nV,JL){nV=nV.prototype;var Iz=Rm.prototype=Object.create(nV);Iz.constructor=Rm;Iz._super=nV;JL&&G(Iz,JL)}
function Z(Rm,nV){return function(){return Rm.apply(nV,arguments)}}
function E(Rm,nV){return typeof Rm=="function"?Rm.apply(nV?nV[0]||Q:Q,nV):Rm}
function P(Rm,nV,JL){M(W(nV),function(Iz){Rm.addEventListener(Iz,JL,!1)})}
function U(Rm,nV,JL){M(W(nV),function(Iz){Rm.removeEventListener(Iz,JL,!1)})}
function W(Rm){return Rm.trim().split(/\s+/g)}
function z(Rm,nV,JL){if(Rm.indexOf&&!JL)return Rm.indexOf(nV);for(var Iz=0,ou=Rm.length;Iz<ou;Iz++)if(JL&&Rm[Iz][JL]==nV||!JL&&Rm[Iz]===nV)return Iz;return-1}
function r(Rm,nV,JL){for(var Iz=[],ou=[],mo=0,mY=Rm.length;mo<mY;mo++){var VR=nV?Rm[mo][nV]:Rm[mo];z(ou,VR)<0&&Iz.push(Rm[mo]);ou[mo]=VR}JL&&(Iz=nV?Iz.sort(function(cd,KQ){return cd[nV]>KQ[nV]}):Iz.sort());
return Iz}
function f(Rm,nV){for(var JL,Iz=nV[0].toUpperCase()+nV.slice(1),ou=0,mo=F4.length;ou<mo;ou++)if(JL=(JL=F4[ou])?JL+Iz:nV,JL in Rm)return JL;return Q}
function u(Rm,nV){var JL=this;this.manager=Rm;this.callback=nV;this.element=Rm.element;this.target=Rm.options.inputTarget;this.domHandler=function(Iz){E(Rm.options.enable,[Rm])&&JL.handler(Iz)};
this.evEl&&P(this.element,this.evEl,this.domHandler);this.evTarget&&P(this.target,this.evTarget,this.domHandler);this.evWin&&P(e,this.evWin,this.domHandler)}
function Y(Rm){var nV;BO?nV=KV:OZ?nV=VN:au?nV=Pd:nV=q$;return new nV(Rm,J)}
function J(Rm,nV,JL){var Iz=JL.pointers.length,ou=JL.changedPointers.length,mo=nV&1&&Iz-ou===0;JL.isFirst=!!mo;JL.isFinal=!!(nV&12&&Iz-ou===0);mo&&(Rm.session={});JL.eventType=nV;nV=Rm.session;Iz=JL.pointers;ou=Iz.length;nV.firstInput||(nV.firstInput=O8(JL));ou>1&&!nV.firstMultiple?nV.firstMultiple=O8(JL):ou===1&&(nV.firstMultiple=!1);mo=nV.firstInput;var mY=(ou=nV.firstMultiple)?ou.center:mo.center,VR=JL.center=Xr(Iz);JL.timeStamp=ZD();JL.deltaTime=JL.timeStamp-mo.timeStamp;JL.angle=Zn(mY,VR);JL.distance=
mL(mY,VR);mo=JL.center;mY=nV.offsetDelta||{};VR=nV.prevDelta||{};var cd=nV.prevInput||{};if(JL.eventType===1||cd.eventType===4)VR=nV.prevDelta={x:cd.deltaX||0,y:cd.deltaY||0},mY=nV.offsetDelta={x:mo.x,y:mo.y};JL.deltaX=VR.x+(mo.x-mY.x);JL.deltaY=VR.y+(mo.y-mY.y);JL.offsetDirection=Fr(JL.deltaX,JL.deltaY);ou?(mo=ou.pointers,mo=mL(Iz[0],Iz[1],ep)/mL(mo[0],mo[1],ep)):mo=1;JL.scale=mo;ou?(ou=ou.pointers,Iz=Zn(Iz[1],Iz[0],ep)-Zn(ou[1],ou[0],ep)):Iz=0;JL.rotation=Iz;mY=nV.lastInterval||JL;Iz=JL.timeStamp-
mY.timeStamp;JL.eventType!=8&&(Iz>25||mY.velocity===Q)?(mo=mY.deltaX-JL.deltaX,mY=mY.deltaY-JL.deltaY,VR=mo/Iz||0,cd=mY/Iz||0,Iz=VR,ou=cd,VR=Sw(VR)>Sw(cd)?VR:cd,mo=Fr(mo,mY),nV.lastInterval=JL):(VR=mY.velocity,Iz=mY.velocityX,ou=mY.velocityY,mo=mY.direction);JL.velocity=VR;JL.velocityX=Iz;JL.velocityY=ou;JL.direction=mo;nV=Rm.element;a:{for(Iz=JL.srcEvent.target;Iz;){if(Iz==nV){Iz=!0;break a}Iz=Iz.parentNode}Iz=!1}Iz&&(nV=JL.srcEvent.target);JL.target=nV;Rm.emit("hammer.input",JL);Rm.recognize(JL);
Rm.session.prevInput=JL}
function O8(Rm){for(var nV=[],JL=0;JL<Rm.pointers.length;JL++)nV[JL]={clientX:lL(Rm.pointers[JL].clientX),clientY:lL(Rm.pointers[JL].clientY)};return{timeStamp:ZD(),pointers:nV,center:Xr(nV),deltaX:Rm.deltaX,deltaY:Rm.deltaY}}
function Xr(Rm){var nV=Rm.length;if(nV===1)return{x:lL(Rm[0].clientX),y:lL(Rm[0].clientY)};for(var JL=0,Iz=0,ou=0;ou<nV;ou++)JL+=Rm[ou].clientX,Iz+=Rm[ou].clientY;return{x:lL(JL/nV),y:lL(Iz/nV)}}
function Fr(Rm,nV){return Rm===nV?1:Sw(Rm)>=Sw(nV)?Rm>0?2:4:nV>0?8:16}
function mL(Rm,nV,JL){JL||(JL=TJ);var Iz=nV[JL[0]]-Rm[JL[0]];Rm=nV[JL[1]]-Rm[JL[1]];return Math.sqrt(Iz*Iz+Rm*Rm)}
function Zn(Rm,nV,JL){JL||(JL=TJ);return Math.atan2(nV[JL[1]]-Rm[JL[1]],nV[JL[0]]-Rm[JL[0]])*180/Math.PI}
function q$(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;u.apply(this,arguments)}
function KV(){this.evEl=ut;this.evWin=Pv;u.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function VN(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};u.apply(this,arguments)}
function Pd(){u.apply(this,arguments);var Rm=Z(this.handler,this);this.touch=new VN(this.manager,Rm);this.mouse=new q$(this.manager,Rm)}
function f2(Rm,nV){this.manager=Rm;this.set(nV)}
function p2(Rm){if(Rm.indexOf("none")>-1)return"none";var nV=Rm.indexOf("pan-x")>-1,JL=Rm.indexOf("pan-y")>-1;return nV&&JL?"pan-x pan-y":nV||JL?nV?"pan-x":"pan-y":Rm.indexOf("manipulation")>-1?"manipulation":"auto"}
function OT(Rm){this.id=qh++;this.manager=null;this.options=X(Rm||{},this.defaults);Rm=this.options.enable;this.options.enable=Rm===Q?!0:Rm;this.state=1;this.simultaneous={};this.requireFail=[]}
function Gp(Rm){return Rm==16?"down":Rm==8?"up":Rm==2?"left":Rm==4?"right":""}
function zp(Rm,nV){return(nV=nV.manager)?nV.get(Rm):Rm}
function m3(){OT.apply(this,arguments)}
function E4(){m3.apply(this,arguments);this.pY=this.pX=null}
function Xw(){m3.apply(this,arguments)}
function Tr(){OT.apply(this,arguments);this._input=this._timer=null}
function QR(){m3.apply(this,arguments)}
function ET(){m3.apply(this,arguments)}
function Q$(){OT.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function tJ(Rm,nV){nV=nV||{};var JL=nV.recognizers;nV.recognizers=JL===Q?tJ.defaults.preset:JL;return new CQ(Rm,nV)}
function CQ(Rm,nV){nV=nV||{};this.options=X(nV,tJ.defaults);this.options.inputTarget=this.options.inputTarget||Rm;this.handlers={};this.session={};this.recognizers=[];this.element=Rm;this.input=Y(this);this.touchAction=new f2(this,this.options.touchAction);hS(this,!0);M(nV.recognizers,function(JL){var Iz=this.add(new JL[0](JL[1]));JL[2]&&Iz.recognizeWith(JL[2]);JL[3]&&Iz.requireFailure(JL[2])},this)}
function hS(Rm,nV){var JL=Rm.element;M(Rm.options.cssProps,function(Iz,ou){JL.style[f(JL.style,ou)]=nV?Iz:""})}
function JJ(Rm,nV){var JL=l.createEvent("Event");JL.initEvent(Rm,!0,!0);JL.gesture=nV;nV.target.dispatchEvent(JL)}
var F4=" webkit moz MS ms o".split(" "),DD=l.createElement("div"),lL=Math.round,Sw=Math.abs,ZD=Date.now,qh=1,Or=/mobile|tablet|ip(ad|hone|od)|android/i,au="ontouchstart"in e,BO=f(e,"PointerEvent")!==Q,OZ=au&&Or.test(navigator.userAgent),TJ=["x","y"],ep=["clientX","clientY"];u.prototype={handler:function(){},
destroy:function(){this.evEl&&U(this.element,this.evEl,this.domHandler);this.evTarget&&U(this.target,this.evTarget,this.domHandler);this.evWin&&U(e,this.evWin,this.domHandler)}};
var Iu={mousedown:1,mousemove:2,mouseup:4};y(q$,u,{handler:function(Rm){var nV=Iu[Rm.type];nV&1&&Rm.button===0&&(this.pressed=!0);nV&2&&Rm.which!==1&&(nV=4);this.pressed&&this.allow&&(nV&4&&(this.pressed=!1),this.callback(this.manager,nV,{pointers:[Rm],changedPointers:[Rm],pointerType:"mouse",srcEvent:Rm}))}});
var $d={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},wo={2:"touch",3:"pen",4:"mouse",5:"kinect"},ut="pointerdown",Pv="pointermove pointerup pointercancel";e.MSPointerEvent&&(ut="MSPointerDown",Pv="MSPointerMove MSPointerUp MSPointerCancel");y(KV,u,{handler:function(Rm){var nV=this.store,JL=!1,Iz=Rm.type.toLowerCase().replace("ms","");Iz=$d[Iz];var ou=wo[Rm.pointerType]||Rm.pointerType;Iz&1&&(Rm.button===0||ou=="touch")?nV.push(Rm):Iz&12&&(JL=!0);var mo=z(nV,Rm.pointerId,"pointerId");
mo<0||(nV[mo]=Rm,this.callback(this.manager,Iz,{pointers:nV,changedPointers:[Rm],pointerType:ou,srcEvent:Rm}),JL&&nV.splice(mo,1))}});
var SZ={touchstart:1,touchmove:2,touchend:4,touchcancel:8};y(VN,u,{handler:function(Rm){var nV=SZ[Rm.type];var JL=Array.prototype.slice.call(Rm.touches,0);var Iz=this.targetIds;if(nV&3&&JL.length===1)Iz[JL[0].identifier]=!0,Iz=[JL,JL];else{var ou,mo=Array.prototype.slice.call(Rm.targetTouches,0),mY=Array.prototype.slice.call(Rm.changedTouches,0),VR=[];if(nV===1)for(JL=0,ou=mo.length;JL<ou;JL++)Iz[mo[JL].identifier]=!0;JL=0;for(ou=mY.length;JL<ou;JL++)Iz[mY[JL].identifier]&&VR.push(mY[JL]),nV&12&&
delete Iz[mY[JL].identifier];Iz=VR.length?[r(mo.concat(VR),"identifier",!0),VR]:void 0}Iz&&this.callback(this.manager,nV,{pointers:Iz[0],changedPointers:Iz[1],pointerType:"touch",srcEvent:Rm})}});
y(Pd,u,{handler:function(Rm,nV,JL){var Iz=JL.pointerType=="mouse";if(JL.pointerType=="touch")this.mouse.allow=!1;else if(Iz&&!this.mouse.allow)return;nV&12&&(this.mouse.allow=!0);this.callback(Rm,nV,JL)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var zt=f(DD.style,"touchAction"),t_=zt!==Q;f2.prototype={set:function(Rm){Rm=="compute"&&(Rm=this.compute());t_&&(this.manager.element.style[zt]=Rm);this.actions=Rm.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Rm=[];M(this.manager.recognizers,function(nV){E(nV.options.enable,[nV])&&(Rm=Rm.concat(nV.getTouchAction()))});
return p2(Rm.join(" "))},
preventDefaults:function(Rm){if(!t_){var nV=Rm.srcEvent;Rm=Rm.offsetDirection;if(this.manager.session.prevented)nV.preventDefault();else{var JL=this.actions,Iz=JL.indexOf("none")>-1,ou=JL.indexOf("pan-y")>-1;JL=JL.indexOf("pan-x")>-1;if(Iz||ou&&JL||ou&&Rm&6||JL&&Rm&24)return this.preventSrc(nV)}}},
preventSrc:function(Rm){this.manager.session.prevented=!0;Rm.preventDefault()}};
OT.prototype={defaults:{},set:function(Rm){G(this.options,Rm);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Rm){if(k(Rm,"recognizeWith",this))return this;var nV=this.simultaneous;Rm=zp(Rm,this);nV[Rm.id]||(nV[Rm.id]=Rm,Rm.recognizeWith(this));return this},
dropRecognizeWith:function(Rm){if(k(Rm,"dropRecognizeWith",this))return this;Rm=zp(Rm,this);delete this.simultaneous[Rm.id];return this},
requireFailure:function(Rm){if(k(Rm,"requireFailure",this))return this;var nV=this.requireFail;Rm=zp(Rm,this);z(nV,Rm)===-1&&(nV.push(Rm),Rm.requireFailure(this));return this},
dropRequireFailure:function(Rm){if(k(Rm,"dropRequireFailure",this))return this;Rm=zp(Rm,this);Rm=z(this.requireFail,Rm);Rm>-1&&this.requireFail.splice(Rm,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Rm){return!!this.simultaneous[Rm.id]},
emit:function(Rm){function nV(ou){JL.manager.emit(JL.options.event+(ou?Iz&16?"cancel":Iz&8?"end":Iz&4?"move":Iz&2?"start":"":""),Rm)}
var JL=this,Iz=this.state;Iz<8&&nV(!0);nV();Iz>=8&&nV(!0)},
tryEmit:function(Rm){if(this.canEmit())return this.emit(Rm);this.state=32},
canEmit:function(){for(var Rm=0;Rm<this.requireFail.length;Rm++)if(!(this.requireFail[Rm].state&33))return!1;return!0},
recognize:function(Rm){Rm=G({},Rm);E(this.options.enable,[this,Rm])?(this.state&56&&(this.state=1),this.state=this.process(Rm),this.state&30&&this.tryEmit(Rm)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
y(m3,OT,{defaults:{pointers:1},attrTest:function(Rm){var nV=this.options.pointers;return nV===0||Rm.pointers.length===nV},
process:function(Rm){var nV=this.state,JL=Rm.eventType,Iz=nV&6;Rm=this.attrTest(Rm);return Iz&&(JL&8||!Rm)?nV|16:Iz||Rm?JL&4?nV|8:nV&2?nV|4:2:32}});
y(E4,m3,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Rm=this.options.direction;if(Rm===30)return["none"];var nV=[];Rm&6&&nV.push("pan-y");Rm&24&&nV.push("pan-x");return nV},
directionTest:function(Rm){var nV=this.options,JL=!0,Iz=Rm.distance,ou=Rm.direction,mo=Rm.deltaX,mY=Rm.deltaY;ou&nV.direction||(nV.direction&6?(ou=mo===0?1:mo<0?2:4,JL=mo!=this.pX,Iz=Math.abs(Rm.deltaX)):(ou=mY===0?1:mY<0?8:16,JL=mY!=this.pY,Iz=Math.abs(Rm.deltaY)));Rm.direction=ou;return JL&&Iz>nV.threshold&&ou&nV.direction},
attrTest:function(Rm){return m3.prototype.attrTest.call(this,Rm)&&(this.state&2||!(this.state&2)&&this.directionTest(Rm))},
emit:function(Rm){this.pX=Rm.deltaX;this.pY=Rm.deltaY;var nV=Gp(Rm.direction);nV&&this.manager.emit(this.options.event+nV,Rm);this._super.emit.call(this,Rm)}});
y(Xw,m3,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Rm){return this._super.attrTest.call(this,Rm)&&(Math.abs(Rm.scale-1)>this.options.threshold||this.state&2)},
emit:function(Rm){this._super.emit.call(this,Rm);Rm.scale!==1&&this.manager.emit(this.options.event+(Rm.scale<1?"in":"out"),Rm)}});
y(Tr,OT,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Rm){var nV=this.options,JL=Rm.pointers.length===nV.pointers,Iz=Rm.distance<nV.threshold,ou=Rm.deltaTime>nV.time;this._input=Rm;if(!Iz||!JL||Rm.eventType&12&&!ou)this.reset();else if(Rm.eventType&1)this.reset(),this._timer=L(function(){this.state=8;this.tryEmit()},nV.time,this);
else if(Rm.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Rm){this.state===8&&(Rm&&Rm.eventType&4?this.manager.emit(this.options.event+"up",Rm):(this._input.timeStamp=ZD(),this.manager.emit(this.options.event,this._input)))}});
y(QR,m3,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Rm){return this._super.attrTest.call(this,Rm)&&(Math.abs(Rm.rotation)>this.options.threshold||this.state&2)}});
y(ET,m3,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return E4.prototype.getTouchAction.call(this)},
attrTest:function(Rm){var nV=this.options.direction;if(nV&30)var JL=Rm.velocity;else nV&6?JL=Rm.velocityX:nV&24&&(JL=Rm.velocityY);return this._super.attrTest.call(this,Rm)&&nV&Rm.direction&&Sw(JL)>this.options.velocity&&Rm.eventType&4},
emit:function(Rm){var nV=Gp(Rm.direction);nV&&this.manager.emit(this.options.event+nV,Rm);this.manager.emit(this.options.event,Rm)}});
y(Q$,OT,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Rm){var nV=this.options,JL=Rm.pointers.length===nV.pointers,Iz=Rm.distance<nV.threshold,ou=Rm.deltaTime<nV.time;this.reset();if(Rm.eventType&1&&this.count===0)return this.failTimeout();if(Iz&&ou&&JL){if(Rm.eventType!=4)return this.failTimeout();JL=this.pTime?Rm.timeStamp-this.pTime<nV.interval:!0;Iz=!this.pCenter||mL(this.pCenter,Rm.center)<nV.posThreshold;this.pTime=Rm.timeStamp;this.pCenter=Rm.center;Iz&&JL?this.count+=1:this.count=1;this._input=Rm;if(this.count%nV.taps===0)return this.hasRequireFailures()?
(this._timer=L(function(){this.state=8;this.tryEmit()},nV.interval,this),2):8}return 32},
failTimeout:function(){this._timer=L(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
tJ.VERSION="2.0.2";tJ.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[QR,{enable:!1}],[Xw,{enable:!1},["rotate"]],[ET,{direction:6}],[E4,{direction:6},["swipe"]],[Q$],[Q$,{event:"doubletap",taps:2},["tap"]],[Tr]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};CQ.prototype={set:function(Rm){G(this.options,Rm);return this},
stop:function(Rm){this.session.stopped=Rm?2:1},
recognize:function(Rm){var nV=this.session;if(!nV.stopped){this.touchAction.preventDefaults(Rm);var JL=this.recognizers,Iz=nV.curRecognizer;if(!Iz||Iz&&Iz.state&8)Iz=nV.curRecognizer=null;for(var ou=0,mo=JL.length;ou<mo;ou++){var mY=JL[ou];nV.stopped===2||Iz&&mY!=Iz&&!mY.canRecognizeWith(Iz)?mY.reset():mY.recognize(Rm);!Iz&&mY.state&14&&(Iz=nV.curRecognizer=mY)}}},
get:function(Rm){if(Rm instanceof OT)return Rm;for(var nV=this.recognizers,JL=0;JL<nV.length;JL++)if(nV[JL].options.event==Rm)return nV[JL];return null},
add:function(Rm){if(k(Rm,"add",this))return this;var nV=this.get(Rm.options.event);nV&&this.remove(nV);this.recognizers.push(Rm);Rm.manager=this;this.touchAction.update();return Rm},
remove:function(Rm){if(k(Rm,"remove",this))return this;var nV=this.recognizers;Rm=this.get(Rm);nV.splice(z(nV,Rm),1);this.touchAction.update();return this},
on:function(Rm,nV){var JL=this.handlers;M(W(Rm),function(Iz){JL[Iz]=JL[Iz]||[];JL[Iz].push(nV)});
return this},
off:function(Rm,nV){var JL=this.handlers;M(W(Rm),function(Iz){nV?JL[Iz].splice(z(JL[Iz],nV),1):delete JL[Iz]});
return this},
emit:function(Rm,nV){this.options.domEvents&&JJ(Rm,nV);var JL=this.handlers[Rm]&&this.handlers[Rm].slice();if(JL&&JL.length){nV.type=Rm;nV.preventDefault=function(){nV.srcEvent.preventDefault()};
Rm=0;for(var Iz=JL.length;Rm<Iz;Rm++)JL[Rm](nV)}},
destroy:function(){this.element&&hS(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
G(tJ,{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:CQ,Input:u,TouchAction:f2,Recognizer:OT,AttrRecognizer:m3,Tap:Q$,Pan:E4,Swipe:ET,Pinch:Xw,Rotate:QR,Press:Tr,on:P,off:U,each:M,merge:X,extend:G,inherit:y,bindFn:Z,prefixed:f});
e[C]=tJ})(window,document,"Hammer");
return window.Hammer}.call({});
x.DOCUMENT=O;O[ZId]=x}return O[ZId]};/*

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

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 vQz;_.BCD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");vQz=function(){var O=[],x;var e=e||_.BCD.length;for(x=0;x<8;x++)O[x]=_.BCD[0|Math.random()*e];return O.join("")};var S5W=function(){return Math.random().toString(36).substring(7).split("").join(".")},wSw="@@redux/INIT"+S5W(),g4N="@@redux/REPLACE"+S5W();var $pr=typeof Symbol==="function"&&Symbol.observable||"@@observable";var frz=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var JtR="top right bottom left width height size weight".split(" "),wNd=typeof MutationObserver!=="undefined",SeD=frz&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,jLR=function(){this.mutationEventsAdded_=this.JSC$11752_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=ilL(this.refresh.bind(this))},NC2=function(O,
x){var e=O.observers_;
x=e.indexOf(x);~x&&e.splice(x,1);!e.length&&O.JSC$11752_connected_&&frz&&O.JSC$11752_connected_&&(document.removeEventListener("transitionend",O.onTransitionEnd_),window.removeEventListener("resize",O.refresh),O.mutationsObserver_&&(O.mutationsObserver_.disconnect(),SeD&&(HTMLElement.prototype.attachShadow=SeD)),O.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",O.refresh),O.mutationsObserver_=null,O.mutationEventsAdded_=!1,O.JSC$11752_connected_=!1)};
jLR.prototype.refresh=function(){gQT(this)&&this.refresh()};
var gQT=function(O){O=O.observers_.filter(function(x){return $o2(x),x.activeObservations_.length>0});
O.forEach(function(x){return iI2(x)});
return O.length>0},O0J=function(O){if(frz&&!O.JSC$11752_connected_){document.addEventListener("transitionend",O.onTransitionEnd_);
window.addEventListener("resize",O.refresh);if(wNd){O.mutationsObserver_=new MutationObserver(O.refresh);var x={attributes:!0,childList:!0,characterData:!0,subtree:!0};O.mutationsObserver_.observe(document,x);SeD&&(function C(l){var Q=l.shadowRoot;Q&&(O.mutationsObserver_.observe(Q,x),C(Q));for(l=l.firstElementChild;l;)C(l),l=l.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var l=SeD.apply(this,_.vw.apply(0,arguments));
O.mutationsObserver_.observe(l,x);return l})}else document.addEventListener("DOMSubtreeModified",O.refresh),O.mutationEventsAdded_=!0;
O.JSC$11752_connected_=!0}};
jLR.prototype.onTransitionEnd_=function(O){var x=O.propertyName===void 0?"":O.propertyName;JtR.some(function(e){return!!~x.indexOf(e)})&&this.refresh()};
var xiL=null;var eI2=function(O,x){for(var e=_.T(Object.keys(x)),l=e.next();!l.done;l=e.next())l=l.value,Object.defineProperty(O,l,{value:x[l],enumerable:!1,writable:!1,configurable:!0})};var r2=function(O){var x;return(O==null?void 0:(x=O.ownerDocument)==null?void 0:x.defaultView)||globalThis};var lOL={x:0,y:0,width:0,height:0},Cmk=typeof SVGGraphicsElement!=="undefined"?function(O){return O instanceof r2(O).SVGGraphicsElement}:function(O){return O instanceof r2(O).SVGElement&&typeof O.getBBox==="function"};var QKF=function(O){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=O};
QKF.prototype.isActive=function(){var O=this.target;if(frz)if(Cmk(O)){var x=O.getBBox();x={x:0,y:0,width:x.width,height:x.height}}else{var e=O.clientWidth,l=O.clientHeight;if(e||l){var C=r2(O).getComputedStyle(O);x=sv(C["padding-top"]);var Q=sv(C["padding-left"]),L=Q+sv(C["padding-right"]),k=x+sv(C["padding-bottom"]),M=sv(C.width),G=sv(C.height);C.boxSizing==="border-box"&&(Math.round(M+L)!==e&&(M-=Orr(C,"left","right")+L),Math.round(G+k)!==l&&(G-=Orr(C,"top","bottom")+k));O!==r2(O).document.documentElement&&
(O=Math.round(M+L)-e,l=Math.round(G+k)-l,Math.abs(O)!==1&&(M-=O),Math.abs(l)!==1&&(G-=l));x={x:Q,y:x,width:M,height:G}}else x=lOL}else x=lOL;this.contentRect_=x;return x.width!==this.broadcastWidth||x.height!==this.broadcastHeight};var b0F=function(O,x){var e=x.x;var l=x.y;var C=x.width;x=x.height;var Q=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);eI2(Q,{x:e,y:l,width:C,height:x,top:l,right:e+C,bottom:x+l,left:e});eI2(this,{target:O,contentRect:Q})};var T4d=function(O,x){var e=xiL;this.activeObservations_=[];this.observations_=new Map;if(typeof O!=="function")throw new TypeError("Ue");this.callback_=O;this.controller_=e;this.callbackCtx_=x};
T4d.prototype.observe=function(O){if(O===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(O instanceof r2(O).Element))throw new TypeError("We");var x=this.observations_;x.has(O)||(x.set(O,new QKF(O)),O=this.controller_,~O.observers_.indexOf(this)||O.observers_.push(this),O.JSC$11752_connected_||O0J(O),this.controller_.refresh())}};
T4d.prototype.unobserve=function(O){if(O===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(O instanceof r2(O).Element))throw new TypeError("We");var x=this.observations_;x.has(O)&&(x.delete(O),x.size||NC2(this.controller_,this))}};
T4d.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();NC2(this.controller_,this)};
var $o2=function(O){O.activeObservations_.splice(0);O.observations_.forEach(function(x){x.isActive()&&O.activeObservations_.push(x)})},iI2=function(O){if(O.activeObservations_.length>0){var x=O.callbackCtx_,e=O.activeObservations_.map(function(l){var C=l.target,Q=l.contentRect_;
l.broadcastWidth=Q.width;l.broadcastHeight=Q.height;return new b0F(C,Q)});
O.callback_.call(x,e,x);O.activeObservations_.splice(0)}};var Hg=function(O){if(!(this instanceof Hg))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");xiL||(xiL=new jLR);this.observer_=new T4d(O,this)};
Hg.prototype.observe=function(O){this.observer_.observe(O)};
Hg.prototype.unobserve=function(O){this.observer_.unobserve(O)};
Hg.prototype.disconnect=function(){this.observer_.disconnect()};var pas=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Hg;var $_={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},x7={"2D":0,WebGL:1,WebGL2:2};x7[x7["2D"]]="2D";x7[1]="WebGL";x7[2]="WebGL2";var eFw={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lNr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xZN={},Qji={},brs={},nG=function(O){return Wo("Node",O,"childNodes")},dM=function(O){return Wo("Node",O,"parentNode")},uO=function(O){return Wo("Node",O,"parentElement")},uzr=function(O){return Wo("Node",O,
"textContent")},e_8=function(O){return TF7(O,"getRootNode")()},zS=function(O){return O&&"host"in O?Wo("ShadowRoot",O,"host"):null},rM=function(O){return O&&"shadowRoot"in O?Wo("Element",O,"shadowRoot"):null};var fG=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
fG.prototype.getId=function(O){if(!O)return-1;var x,e;return(e=(x=this.nodeMetaMap.get(O)||null)==null?void 0:x.id)!=null?e:-1};
fG.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var LtT=function(O,x){var e=O.getId(x);O.idNodeMap.delete(e);x.childNodes&&x.childNodes.forEach(function(l){return LtT(O,l)})};
fG.prototype.has=function(O){return this.idNodeMap.has(O)};
fG.prototype.add=function(O,x){this.idNodeMap.set(x.id,O);this.nodeMetaMap.set(O,x)};
fG.prototype.replace=function(O,x){var e=this.idNodeMap.get(O)||null;e&&(e=this.nodeMetaMap.get(e))&&this.nodeMetaMap.set(x,e);this.idNodeMap.set(O,x)};
fG.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var ouW=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,yfV=/^(?:[a-z+]+:)?\/\//i,ZrL=/^www\..*/i,EuV=/^(data:)([^,]*),(.*)/i;var Pes=1,INL=RegExp("[^a-z0-9-_:]"),Y_,BFV,RFs=/^[^ \t\n\r\u000c]+/,pFL=/^[, \t\n\r\u000c]+/,sjL=new WeakMap;var eh,gM=function(O){return eh?function(){var x=_.vw.apply(0,arguments);try{return O.apply(null,_.Kx(x))}catch(e){if(!eh||eh(e)!==!0)throw e;}}:O};var K6=function(O){this.generateIdFn=O;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
K6.prototype.getId=function(O,x,e,l){e=e||kB4(this,O);O=l||AOL(this,O);l=e.get(x);l||(l=this.generateIdFn(),e.set(x,l),O.set(l,x));return l};
K6.prototype.getIds=function(O,x){var e=this,l=kB4(this,O),C=AOL(this,O);return x.map(function(Q){return e.getId(O,Q,l,C)})};
K6.prototype.reset=function(O){O?(this.iframeIdToRemoteIdMap.delete(O),this.iframeRemoteIdToIdMap.delete(O)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var kB4=function(O,x){var e=O.iframeIdToRemoteIdMap.get(x);e||(e=new Map,O.iframeIdToRemoteIdMap.set(x,e));return e},AOL=function(O,x){var e=O.iframeRemoteIdToIdMap.get(x);
e||(e=new Map,O.iframeRemoteIdToIdMap.set(x,e));return e};var fVs=function(O){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new K6(cfm);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=O.mutationCb;this.wrappedEmit=O.wrappedEmit;this.stylesheetManager=O.stylesheetManager;this.recordCrossOriginIframes=O.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new K6(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=O.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11816_handleMessage.bind(this))},NVn=function(O,x){O.iframes.set(x,!0);
x.contentWindow&&O.crossOriginIframeMap.set(x.contentWindow,x)},eUw=function(O,x){O.loadListener=x},iy$=function(O,x,e){O.mutationCb({adds:[{parentId:O.mirror.getId(x),
nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(O.recordCrossOriginIframes){var l;(l=x.contentWindow)==null||l.addEventListener("message",O.JSC$11816_handleMessage.bind(O))}var C;(C=O.loadListener)==null||C.call(O,x);x.contentDocument&&x.contentDocument.adoptedStyleSheets&&x.contentDocument.adoptedStyleSheets.length>0&&IV8(O.stylesheetManager,x.contentDocument.adoptedStyleSheets,O.mirror.getId(x.contentDocument))};
fVs.prototype.JSC$11816_handleMessage=function(O){if(O.data.type==="rrweb"&&O.origin===O.data.origin&&O.source){var x=this.crossOriginIframeMap.get(O.source);x&&(x=MJk(this,x,O.data.event))&&this.wrappedEmit(x,O.data.isCheckout)}};
var MJk=function(O,x,e){switch(e.type){case 2:O.crossOriginIframeMirror.reset(x);O.crossOriginIframeStyleMirror.reset(x);DiF(O,e.data.node,x);var l=e.data.node.id;O.crossOriginIframeRootIdMap.set(x,l);GBp(O,e.data.node,l);return{timestamp:e.timestamp,type:3,data:{source:0,adds:[{parentId:O.mirror.getId(x),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return e;case 5:return d2(O,e.data.payload,x,["id","parentId","previousId","nextId"]),e;case 3:switch(e.data.source){case 0:return e.data.adds.forEach(function(C){d2(O,
C,x,["parentId","nextId","previousId"]);DiF(O,C.node,x);var Q=O.crossOriginIframeRootIdMap.get(x);Q&&GBp(O,C.node,Q)}),e.data.removes.forEach(function(C){d2(O,C,x,["parentId",
"id"])}),e.data.attributes.forEach(function(C){d2(O,C,x,["id"])}),e.data.texts.forEach(function(C){d2(O,C,x,["id"])}),e;
case 12:case 6:case 1:return e.data.positions.forEach(function(C){d2(O,C,x,["id"])}),e;
case 7:case 2:case 3:case 9:case 5:return d2(O,e.data,x,["id"]),e;case 8:case 13:return d2(O,e.data,x,["id"]),Ft4(O,e.data,x,["styleId"]),e;case 10:return e;case 14:return e.data.ranges.forEach(function(C){d2(O,C,x,["start","end"])}),e;
case 15:return d2(O,e.data,x,["id"]),Ft4(O,e.data,x,["styleIds"]),(l=e.data.styles)==null||l.forEach(function(C){Ft4(O,C,x,["styleId"])}),e}}return!1};
fVs.prototype.replace=function(O,x,e,l){l=_.T(l);for(var C=l.next();!C.done;C=l.next())if(C=C.value,Array.isArray(x[C])||typeof x[C]==="number")Array.isArray(x[C])?x[C]=O.getIds(e,x[C]):x[C]=O.getId(e,x[C]);return x};
var d2=function(O,x,e,l){O.replace(O.crossOriginIframeMirror,x,e,l)},Ft4=function(O,x,e,l){O.replace(O.crossOriginIframeStyleMirror,x,e,l)},DiF=function(O,x,e){d2(O,x,e,["id",
"rootId"]);"childNodes"in x&&x.childNodes.forEach(function(l){DiF(O,l,e)})},GBp=function(O,x,e){x.type===0||x.rootId||(x.rootId=e);
"childNodes"in x&&x.childNodes.forEach(function(l){GBp(O,l,e)})};var D07=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},XMJ=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.b=XMJ.prototype;_.b.getId=function(O){var x;return(x=this.styleIDMap.get(O))!=null?x:-1};
_.b.has=function(O){return this.styleIDMap.has(O)};
_.b.add=function(O,x){if(this.has(O))return this.getId(O);x=x===void 0?this.id++:x;this.styleIDMap.set(O,x);this.idStyleMap.set(x,O);return x};
_.b.getStyle=function(O){return this.idStyleMap.get(O)||null};
_.b.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.b.generateId=function(){return this.id++};var oiF=function(){this.length=0;this.tail=this.head=null};
oiF.prototype.get=function(O){if(O>=this.length)throw Error("Ye");for(var x=this.head,e=0;e<O;e++){var l=void 0;x=((l=x)==null?void 0:l.next)||null}return x};
var yOd=function(O,x){var e={value:x,previous:null,next:null};x.__ln=e;if(x.previousSibling&&"__ln"in x.previousSibling){var l=x.previousSibling.__ln.next;e.next=l;e.previous=x.previousSibling.__ln;x.previousSibling.__ln.next=e;l&&(l.previous=e)}else x.nextSibling&&"__ln"in x.nextSibling&&x.nextSibling.__ln.previous?(l=x.nextSibling.__ln.previous,e.previous=l,e.next=x.nextSibling.__ln,x.nextSibling.__ln.previous=e,l&&(l.next=e)):(O.head&&(O.head.previous=e),e.next=O.head,O.head=e);e.next===null&&
(O.tail=e);O.length++};
oiF.prototype.removeNode=function(O){var x=O.__ln;this.head&&(x.previous?(x.previous.next=x.next)?x.next.previous=x.previous:this.tail=x.previous:(this.head=x.next)?this.head.previous=null:this.tail=null,O.__ln&&delete O.__ln,this.length--)};
var Z0T=function(O,x){return O+"@"+x},ADm=function(){var O=this;
this.locked=this.JSC$11847_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(x){x.forEach(O.JSC$11847_processMutation);O.emit()};
this.emit=function(){if(!O.JSC$11847_frozen&&!O.locked){for(var x=[],e=new Set,l=new oiF,C=function(y){for(var Z=-2;Z===-2;)Z=(y=y&&y.nextSibling)&&O.mirror.getId(y);return Z},Q=function(y){var Z=dM(y);
if(Z&&CRL(y)){var E=!1;if(y.nodeType===Node.TEXT_NODE){var P=Z.tagName;if(P==="TEXTAREA")return;P==="STYLE"&&O.addedSet.has(Z)&&(E=!0)}Z=Ho(Z)?O.mirror.getId(lV8(y)):O.mirror.getId(Z);P=C(y);if(Z===-1||P===-1)return yOd(l,y);if(E=vo(y,{doc:O.doc,mirror:O.mirror,blockClass:O.blockClass,blockSelector:O.blockSelector,maskTextClass:O.maskTextClass,maskTextSelector:O.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:O.inlineStylesheet,maskInputOptions:O.maskInputOptions,maskTextFn:O.maskTextFn,
maskInputFn:O.maskInputFn,slimDOMOptions:O.slimDOMOptions,dataURLOptions:O.dataURLOptions,recordCanvas:O.recordCanvas,inlineImages:O.inlineImages,onSerialize:function(U){U.nodeName==="IFRAME"&&O.mirror.nodeMetaMap.get(U)&&NVn(O.iframeManager,U);x0m(U,O.mirror)&&gxV(O.stylesheetManager,U);y&&rM(y)&&$0r(O.shadowDomManager,rM(y),O.doc)},
onIframeLoad:function(U,W){iy$(O.iframeManager,U,W);U.contentWindow&&U.contentDocument&&Oh7(O.shadowDomManager,U.contentWindow.Element,U.contentDocument)},
onStylesheetLoad:function(U,W){xCr(O.stylesheetManager,U,W)},
cssCaptured:E}))x.push({parentId:Z,nextId:P,node:E}),e.add(E.id)}};O.mapRemoves.length;)LtT(O.mirror,O.mapRemoves.shift());
for(var L=_.T(O.movedSet),k=L.next();!k.done;k=L.next())k=k.value,TVr(O.removesSubTreeCache,k)&&!O.movedSet.has(dM(k))||Q(k);L=_.T(O.addedSet);for(k=L.next();!k.done;k=L.next())k=k.value,k5i(O.droppedSet,k)||TVr(O.removesSubTreeCache,k)?k5i(O.movedSet,k)?Q(k):O.droppedSet.add(k):Q(k);for(k=null;l.length;){L=null;if(k){var M=O.mirror.getId(dM(k.value)),G=C(k.value);M!==-1&&G!==-1&&(L=k)}if(!L)for(k=l.tail;k;){var X=k;k=k.previous;if(X&&(M=O.mirror.getId(dM(X.value)),C(X.value)!==-1))if(M!==-1){L=X;
break}else if((M=dM(X.value))&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(M=zS(M),O.mirror.getId(M)!==-1)){L=X;break}}if(!L){for(;l.head;)l.removeNode(l.head.value);break}k=L.previous;l.removeNode(L.value);Q(L.value)}Q={texts:O.texts.map(function(y){var Z=y.node,E=dM(Z);E&&E.tagName==="TEXTAREA"&&O.genTextAreaValueMutation(E);return{id:O.mirror.getId(Z),value:y.value}}).filter(function(y){return!e.has(y.id)}).filter(function(y){return O.mirror.has(y.id)}),
attributes:O.attributes.map(function(y){var Z=y.attributes;if(typeof Z.style==="string"){var E=JSON.stringify(y.styleDiff),P=JSON.stringify(y._unchangedStyles);E.length<Z.style.length&&(E+P).split("var(").length===Z.style.split("var(").length&&(Z.style=y.styleDiff)}return{id:O.mirror.getId(y.node),attributes:Z}}).filter(function(y){return!e.has(y.id)}).filter(function(y){return O.mirror.has(y.id)}),
removes:O.removes,adds:x};if(Q.texts.length||Q.attributes.length||Q.removes.length||Q.adds.length)O.texts=[],O.attributes=[],O.attributeMap=new WeakMap,O.removes=[],O.addedSet=new Set,O.movedSet=new Set,O.droppedSet=new Set,O.removesSubTreeCache=new Set,O.movedMap={},O.mutationCb(Q)}};
this.genTextAreaValueMutation=function(x){var e=O.attributeMap.get(x);e||(e={node:x,attributes:{},styleDiff:{},_unchangedStyles:{}},O.attributes.push(e),O.attributeMap.set(x,e));var l=Array.from(nG(x),function(C){return uzr(C)||""}).join("");
e.attributes.value=DZm({element:x,maskInputOptions:O.maskInputOptions,tagName:x.tagName,type:Fdi(x),value:l,maskInputFn:O.maskInputFn})};
this.JSC$11847_processMutation=function(x){if(!$Zs(x.target,O.mirror,O.slimDOMOptions))switch(x.type){case "characterData":var e=uzr(x.target);Sl(x.target,O.blockClass,O.blockSelector,!1)||e===x.oldValue||O.texts.push({value:HrN(x.target,O.maskTextClass,O.maskTextSelector,!0)&&e?O.maskTextFn?O.maskTextFn(e,gum(x.target)):e.replace(/[\S]/g,"*"):e,node:x.target});break;case "attributes":e=x.target;var l=x.attributeName,C=x.target.getAttribute(l);if(l==="value"){var Q=Fdi(e);C=DZm({element:e,maskInputOptions:O.maskInputOptions,
tagName:e.tagName,type:Q,value:C,maskInputFn:O.maskInputFn})}if(Sl(x.target,O.blockClass,O.blockSelector,!1)||C===x.oldValue)break;Q=O.attributeMap.get(x.target);if(e.tagName==="IFRAME"&&l==="src"&&!O.keepIframeSrcFn(C))if(e.contentDocument)break;else l="rr_src";Q||(Q={node:x.target,attributes:{},styleDiff:{},_unchangedStyles:{}},O.attributes.push(Q),O.attributeMap.set(x.target,Q));l==="type"&&e.tagName==="INPUT"&&(x.oldValue||"").toLowerCase()==="password"&&e.setAttribute("data-rr-is-password","true");
if(!hFN(e.tagName,l))if(Q.attributes[l]=WdL(O.doc,e.tagName.toLowerCase(),l.toLowerCase(),C),l==="style"){if(!O.unattachedDoc)try{O.unattachedDoc=document.implementation.createHTMLDocument()}catch(G){O.unattachedDoc=O.doc}l=O.unattachedDoc.createElement("span");x.oldValue&&l.setAttribute("style",x.oldValue);C=_.T(Array.from(e.style));for(var L=C.next();!L.done;L=C.next()){L=L.value;var k=e.style.getPropertyValue(L),M=e.style.getPropertyPriority(L);k!==l.style.getPropertyValue(L)||M!==l.style.getPropertyPriority(L)?
Q.styleDiff[L]=M===""?k:[k,M]:Q._unchangedStyles[L]=[k,M]}l=_.T(Array.from(l.style));for(C=l.next();!C.done;C=l.next())C=C.value,e.style.getPropertyValue(C)===""&&(Q.styleDiff[C]=!1)}else l==="open"&&e.tagName==="DIALOG"&&(e.matches("dialog:modal")?Q.attributes.rr_open_mode="modal":Q.attributes.rr_open_mode="non-modal");break;case "childList":Sl(x.target,O.blockClass,O.blockSelector,!0)||(x.target.tagName==="TEXTAREA"?O.genTextAreaValueMutation(x.target):(x.addedNodes.forEach(function(G){return O.genAdds(G,
x.target)}),x.removedNodes.forEach(function(G){var X=O.mirror.getId(G),y=Ho(x.target)?O.mirror.getId(zS(x.target)):O.mirror.getId(x.target);
Sl(x.target,O.blockClass,O.blockSelector,!1)||$Zs(G,O.mirror,O.slimDOMOptions)||O.mirror.getId(G)===-1||(O.addedSet.has(G)?(QE8(O.addedSet,G),O.droppedSet.add(G)):O.addedSet.has(x.target)&&X===-1||irw(x.target,O.mirror)||(O.movedSet.has(G)&&O.movedMap[X+"@"+y]?QE8(O.movedSet,G):(O.removes.push({parentId:y,id:X,isShadow:Ho(x.target)&&KG(x.target)?!0:void 0}),byi(G,O.removesSubTreeCache))),O.mapRemoves.push(G))})))}};
this.genAdds=function(x,e){if(!Eid(O.processedNodeManager,x,O)&&!O.addedSet.has(x)&&!O.movedSet.has(x)){if(O.mirror.nodeMetaMap.has(x)){if($Zs(x,O.mirror,O.slimDOMOptions))return;O.movedSet.add(x);var l=null;e&&O.mirror.nodeMetaMap.has(e)&&(l=O.mirror.getId(e));l&&l!==-1&&(O.movedMap[Z0T(O.mirror.getId(x),l)]=!0)}else O.addedSet.add(x),O.droppedSet.delete(x);Sl(x,O.blockClass,O.blockSelector,!1)||(nG(x).forEach(function(C){return O.genAdds(C)}),x&&rM(x)&&nG(rM(x)).forEach(function(C){O.processedNodeManager.add(C,
O);
O.genAdds(C,x)}))}}};
_.b=ADm.prototype;_.b.init=function(O){var x=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(e){x[e]=O[e]})};
_.b.freeze=function(){this.JSC$11847_frozen=!0;this.canvasManager.freeze()};
_.b.unfreeze=function(){this.JSC$11847_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.b.isFrozen=function(){return this.JSC$11847_frozen};
_.b.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.b.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.b.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var Ny=[],Ob=window.Proxy,yDV=["INPUT","TEXTAREA","SELECT"],ZyL=new WeakMap;var tJ3=new Map,Hyw=function(O,x,e){if(O&&(rDi(O,x)||typeof O==="object")){x=O.constructor.name;var l=tJ3.get(e);l||(l=new Map,tJ3.set(e,l));l.has(x)||l.set(x,[]);e=l.get(x);x=e.indexOf(O);x===-1&&(x=e.length,e.push(O));return x}},KhW=function(O,x,e){return O.map(function(l){return z_V(l,x,e)})},rDi=function(O,x){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(e){return typeof x[e]===
"function"}).find(function(e){return O instanceof x[e]})};var qa$=ht(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
JjW=_.e5(qa$.join(""));var SSr=function(O){var x=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11889_frozen=!1;this.JSC$11889_processMutation=function(M,G){if(x.rafStamps.invokeId&&x.rafStamps.latestId!==x.rafStamps.invokeId||!x.rafStamps.invokeId)x.rafStamps.invokeId=x.rafStamps.latestId;x.pendingCanvasMutations.has(M)||x.pendingCanvasMutations.set(M,[]);x.pendingCanvasMutations.get(M).push(G)};
var e=O.sampling===void 0?"all":O.sampling,l=O.win,C=O.blockClass,Q=O.blockSelector,L=O.recordCanvas,k=O.dataURLOptions;this.mutationCb=O.mutationCb;this.mirror=O.mirror;L&&e==="all"&&Pm$(this,l,C,Q);L&&typeof e==="number"&&cOT(this,e,l,C,Q,{dataURLOptions:k})};
_.b=SSr.prototype;_.b.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.b.freeze=function(){this.JSC$11889_frozen=!0};
_.b.unfreeze=function(){this.JSC$11889_frozen=!1};
_.b.lock=function(){this.locked=!0};
_.b.unlock=function(){this.locked=!1};
var cOT=function(O,x,e,l,C,Q){var L=nx$(e,l,C,!0),k=new Map,M=t5$(wXs());M.onmessage=function(P){var U=P.data.id;k.set(U,!1);"base64"in P.data&&(P=P.data,O.mutationCb({id:U,type:x7["2D"],commands:[{property:"clearRect",args:[0,0,P.width,P.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:P.base64}],type:P.type}]},0,0]}]}))};
var G=1E3/x,X=0,y=function(){var P=[];e.document.querySelectorAll("canvas").forEach(function(U){Sl(U,l,C,!0)||P.push(U)});
return P},Z=function(P){X&&P-X<G||(X=P,y().forEach(function(U){var W,z,r,f,u;
return _.A(function(Y){if(Y.nextAddress==1){W=O.mirror.getId(U);if(k.get(W)||U.width===0||U.height===0)return Y.return();k.set(W,!0);["webgl","webgl2"].includes(U.__context)&&(z=U.getContext(U.__context),((r=z)==null?void 0:(f=r.getContextAttributes())==null?void 0:f.preserveDrawingBuffer)===!1&&z.clear(z.COLOR_BUFFER_BIT));return Y.yield(createImageBitmap(U),2)}u=Y.yieldResult;M.postMessage({id:W,bitmap:u,width:U.width,height:U.height,dataURLOptions:Q.dataURLOptions},[u]);_.Ra(Y)})}));
E=requestAnimationFrame(Z)};
var E=requestAnimationFrame(Z);O.resetObservers=function(){L();cancelAnimationFrame(E)}},Pm$=function(O,x,e,l){IOT(O);
VJk(O);var C=nx$(x,e,l,!1),Q=d0r(O.JSC$11889_processMutation.bind(O),x,e,l),L=YSr(O.JSC$11889_processMutation.bind(O),x,e,l);O.resetObservers=function(){C();Q();L()}},VJk=function(O){requestAnimationFrame(function(){return pMF(O)})},IOT=function(O){var x=function(e){O.rafStamps.latestId=e;
requestAnimationFrame(x)};
requestAnimationFrame(x)},pMF=function(O){O.pendingCanvasMutations.forEach(function(x,e){var l=O.mirror.getId(e);
RIL(O,e,l)});
requestAnimationFrame(function(){return pMF(O)})},RIL=function(O,x,e){if(!O.JSC$11889_frozen&&!O.locked){var l=O.pendingCanvasMutations.get(x);
if(l&&e!==-1){var C=l.map(function(Q){Q=Object.assign({},Q);return delete Q.type,Q});
O.mutationCb({id:e,type:l[0].type,commands:C});O.pendingCanvasMutations.delete(x)}}};var JDw=function(){this.nodeMap=new WeakMap;this.active=!1},Eid=function(O,x,e){return(O=O.nodeMap.get(x))&&Array.from(O).some(function(l){return l!==e})};
JDw.prototype.add=function(O,x){var e=this;this.active||(this.active=!0,requestAnimationFrame(function(){e.nodeMap=new WeakMap;e.active=!1}));
this.nodeMap.set(O,(this.nodeMap.get(O)||new Set).add(x))};
JDw.prototype.destroy=function(){};var jEV=function(O){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=O.mutationCb;this.scrollCb=O.scrollCb;this.bypassOptions=O.bypassOptions;this.mirror=O.mirror;this.init()};
jEV.prototype.init=function(){this.reset();Oh7(this,Element,document)};
var $0r=function(O,x,e){if(KG(x)&&!O.shadowDoms.has(x)){O.shadowDoms.add(x);var l=MvL(Object.assign({},O.bypassOptions,{doc:e,mutationCb:O.mutationCb,mirror:O.mirror,shadowDomManager:O}),x);O.restoreHandlers.push(function(){return l.disconnect()});
O.restoreHandlers.push(XxV(Object.assign({},O.bypassOptions,{scrollCb:O.scrollCb,doc:x,mirror:O.mirror})));setTimeout(function(){x.adoptedStyleSheets&&x.adoptedStyleSheets.length>0&&IV8(O.bypassOptions.stylesheetManager,x.adoptedStyleSheets,O.mirror.getId(zS(x)));O.restoreHandlers.push(VvV({mirror:O.mirror,stylesheetManager:O.bypassOptions.stylesheetManager},x))},0)}},Oh7=function(O,x,e){O.restoreHandlers.push(h_(x.prototype,"attachShadow",function(l){return function(C){C=l.call(this,C);
var Q=rM(this);Q&&CRL(this)&&$0r(O,Q,e);return C}}))};
jEV.prototype.reset=function(){this.restoreHandlers.forEach(function(O){try{O()}catch(x){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var vxr=function(O){this.trackedLinkElements=new WeakSet;this.styleMirror=new XMJ;this.mutationCb=O.mutationCb;this.adoptedStyleSheetCb=O.adoptedStyleSheetCb},xCr=function(O,x,e){"_cssText"in e.attributes&&O.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]});gxV(O,x)},gxV=function(O,x){O.trackedLinkElements.has(x)||O.trackedLinkElements.add(x)},IV8=function(O,x,e){if(x.length!==0){e={id:e,
styleIds:[]};var l=[];x=_.T(x);for(var C=x.next(),Q={};!C.done;Q={sheet$jscomp$3:void 0},C=x.next())Q.sheet$jscomp$3=C.value,C=void 0,O.styleMirror.has(Q.sheet$jscomp$3)?C=O.styleMirror.getId(Q.sheet$jscomp$3):(C=O.styleMirror.add(Q.sheet$jscomp$3),l.push({styleId:C,rules:Array.from(Q.sheet$jscomp$3.rules||CSSRule,function(L){return function(k,M){return{rule:kaL(k,L.sheet$jscomp$3.href),index:M}}}(Q))})),e.styleIds.push(C);
l.length>0&&(e.styles=l);O.adoptedStyleSheetCb(e)}};
vxr.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var C1,BVw,wxi;try{if(Array.from([1],function(O){return O*2})[0]!==2){var UiT=document.createElement("iframe");
document.body.appendChild(UiT);var aOD;Array.from=((aOD=UiT.contentWindow)==null?void 0:aOD.Array.from)||Array.from;document.body.removeChild(UiT)}}catch(O){console.debug("Unable to override Array.from",O)}var lh=new fG;var MDN="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(" "),AnN={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},k68=null,CYL=null;var DCr={},G6W=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 tDs={text:1},osL={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var miD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,sKJ={CONSTANT:{isUnwrappable:function(O){return O instanceof wl},
unwrap:JSN},JAVASCRIPT:{isUnwrappable:function(O){return O instanceof _.xS},
unwrap:lx},HTML:{isUnwrappable:function(O){return O instanceof wk},
unwrap:function(O){return NT(O)}},
RESOURCE_URL:{isUnwrappable:function(O){return O instanceof Uh},
unwrap:_.sh},STRING:{isUnwrappable:function(O){return O instanceof Object},
unwrap:function(O){return String(O)}},
STYLE:{isUnwrappable:function(O){return typeof O==="string"},
unwrap:function(O){return O}},
URL:{isUnwrappable:function(O){return rk(O)},
unwrap:_.Hw}},WtN={CONSTANT:q_W,JAVASCRIPT:q_W,HTML:function(O){O=O instanceof wk?O:SE(String(O).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return NT(O)},
RESOURCE_URL:q_W,STRING:String,STYLE:q_W,URL:function(O,x){O=miD.test(O)?O:void 0;return O===void 0?x:O}};var WBN=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,PYw=/[\t\n\f\r ]+/,I7W=/[\t\n\f\r ,]+/g,pYi=function(O,x,e){return e},L1={},hIF=function(){var O=function(){var l={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",l):l}(),x=O.createHTML(""),e=O.createScript("");
O=O.createScriptURL("");return{INNOCUOUS_STRING:x,INNOCUOUS_SCRIPT:e,INNOCUOUS_URL:O}}(),T0=hIF.INNOCUOUS_STRING,sPW=hIF.INNOCUOUS_SCRIPT,mC$=hIF.INNOCUOUS_URL;var zIk=function(O){var x=hU$(O);return function(e,l,C,Q){return Q?x(Q,l,C,e):T0}}({reportHandler:function(O,x){if(O)try{throw Error(x);
}catch(e){_.BH(e)}},
safeTypesBridge:function(O,x,e){var l=sKJ[x];return l.isUnwrappable(O)&&(l=l.unwrap(O,e),l!==e)?l:(0,WtN[x])(String(O),e)},
allowedIdentifierPrefixes:[""]});if(WD!==void 0)throw Error("$e");WD=zIk;if(WD!==zIk)throw Error("af");k7("Injectable",[]);var bps=k7("Inject",[["token",void 0]]),Liw=k7("Optional",[]);k7("Injectable",[]);var kyw=k7("Self",[]),APW=k7("SkipSelf",[]);k7("Host",[]);var rO4={},H0J=function(){};
H0J.prototype.resolve=function(){throw Error("cf");};
H0J.prototype.addProvider=function(){throw Error("cf");};var CGr=Function;var KtF=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,di$=function(){this._reflect=window.Reflect};
_.b=di$.prototype;_.b.factory=function(O){return function(){return new (Function.prototype.bind.apply(O,[null].concat(_.Kx(_.vw.apply(0,arguments)))))}};
_.b._zipTypesAndAnnotations=function(O,x){var e=typeof O==="undefined"?Array(x.length):Array(O.length);for(var l=0;l<e.length;l++)e[l]=typeof O==="undefined"?[]:O[l]!=Object?[O[l]]:[],x&&rn8(x[l])&&(e[l]=e[l].concat(x[l]));return e};
_.b._ownParameters=function(O,x){if(KtF.exec(O.toString()))return null;if(O.parameters&&O.parameters!==x.parameters)return O.parameters;var e=O.ctorParameters;return e&&e!==x.ctorParameters?(x=typeof e==="function"?e():e,O=x.map(function(l){return l&&l.type}),x=x.map(function(l){return l&&KBs(l.decorators)}),this._zipTypesAndAnnotations(O,x)):rn8(this._reflect)&&rn8(this._reflect.getOwnMetadata)&&(x=this._reflect.getOwnMetadata("parameters",O),(e=this._reflect.getOwnMetadata("design:paramtypes",O))||
x)?this._zipTypesAndAnnotations(e,x):Array(O.length).fill(void 0)};
_.b.parameters=function(O){if(!O.prototype)return[];var x=Object.getPrototypeOf(O.prototype).constructor;(O=this._ownParameters(O,x))||x===Object||(O=this.parameters(x));return O||[]};
_.b._ownAnnotations=function(O,x){if(O.annotations&&O.annotations!==x.annotations)return O=O.annotations,typeof O==="function"&&O.annotations&&(O=O.annotations),O;if(O.decorators&&O.decorators!==x.decorators)return KBs(O.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",O)};
_.b.annotations=function(O){var x=Object.getPrototypeOf(O.prototype).constructor;O=this._ownAnnotations(O,x)||[];return(x!==Object?this.annotations(x):[]).concat(O)};
_.b._ownPropMetadata=function(O,x){if(O.propMetadata&&O.propMetadata!==x.propMetadata)return O=O.propMetadata,typeof O==="function"&&O.propMetadata&&(O=O.propMetadata),O;if(O.propDecorators&&O.propDecorators!==x.propDecorators){var e=O.propDecorators,l={};Object.keys(e).forEach(function(C){l[C]=KBs(e[C])});
return l}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",O)};
_.b.propMetadata=function(O){var x=Object.getPrototypeOf(O.prototype).constructor,e={};if(x!==Object){var l=this.propMetadata(x);Object.keys(l).forEach(function(Q){e[Q]=l[Q]})}var C=this._ownPropMetadata(O,x);
C&&Object.keys(C).forEach(function(Q){var L=[];e.hasOwnProperty(Q)&&L.push.apply(L,_.Kx(e[Q]));L.push.apply(L,_.Kx(C[Q]));e[Q]=L});
return e};
_.b.getter=function(O){return function(x){return x[O]}};
_.b.setter=function(O){return function(x,e){return x[O]=e}};
_.b.method=function(O){return function(x,e){if(!x[O])throw Error("df`"+O);return x[O].apply(x,e)}};var ni2=function(){};var ulz=function(O){this.reflectionCapabilities=O};
_.c(ulz,ni2);_.b=ulz.prototype;_.b.factory=function(O){return this.reflectionCapabilities.factory(O)};
_.b.parameters=function(O){return this.reflectionCapabilities.parameters(O)};
_.b.annotations=function(O){return this.reflectionCapabilities.annotations(O)};
_.b.propMetadata=function(O){return this.reflectionCapabilities.propMetadata(O)};
_.b.getter=function(O){return this.reflectionCapabilities.getter(O)};
_.b.setter=function(O){return this.reflectionCapabilities.setter(O)};
_.b.method=function(O){return this.reflectionCapabilities.method(O)};var wYi=new ulz(new di$);var n6=function(O,x){this.token=O;this.id=x;if(O===void 0||O===null)throw Error("jf");};
_.Dy.Object.defineProperties(n6.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return As(this.token)}}});
_.Dy.Object.defineProperties(n6,{JSC$11945_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Df.JSC$11949_numberOfKeys}}});
var Ya$=function(){this._allKeys=new Map};
Ya$.prototype.get=function(O){if(O instanceof n6)return O;if(this._allKeys.has(O))return this._allKeys.get(O);var x=new n6(O,n6.JSC$11945_numberOfKeys);this._allKeys.set(O,x);return x};
_.Dy.Object.defineProperties(Ya$.prototype,{JSC$11949_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Df=new Ya$;var MP8=function(O,x,e){this.key=O;this.optional=x;this.visibility=e},jPm=function(O){return new MP8(O,!1,null)},gsL=[],Op$=function(O,x,e){this.key=O;
this.resolvedFactories=x;this.multiProvider=e},$CL=function(O,x,e,l){this.factory=O;
this.dependencies=x;this.providerClass=e;this.providerValue=l};var uz={},Bg=function(O,x){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=x===void 0?null:x;O=_.T(O);for(x=O.next();!x.done;x=O.next())this.addProvider(x.value)};
_.b=Bg.prototype;_.b.addProvider=function(O){this.keyIdToIndex.set(O.key.id,this.keyIds.length);this.providers.push(O);this.keyIds.push(O.key.id);this.objs.push(uz)};
_.b.resolve=function(O,x){x=x===void 0?rO4:x;return this._getByKey(Df.get(M9(O)),null,x)};
_.b._new=function(O){if(this.constructedKeyIds[O.key.id])throw vsN(this,O.key);this.constructedKeyIds[O.key.id]=!0;return this._instantiateProvider(O)};
_.b._instantiateProvider=function(O){if(O.multiProvider){for(var x=Array(O.resolvedFactories.length),e=0;e<O.resolvedFactories.length;++e)x[e]=this._instantiate(O,O.resolvedFactories[e]);return x}return this._instantiate(O,O.resolvedFactories[0])};
_.b._instantiate=function(O,x){var e=this,l=x.factory;try{var C=x.dependencies.map(function(L){return e._getByReflectiveDependency(L)})}catch(L){throw L.addKey&&L.addKey(this,O.key),L;
}try{var Q=l.apply(null,_.Kx(C))}catch(L){throw f7r(this,L,O.key);}return Q};
_.b._getByReflectiveDependency=function(O){return this._getByKey(O.key,O.visibility,O.optional?null:rO4)};
_.b._getByKey=function(O,x,e){return O===B4$?this:x instanceof kyw?this._getByKeySelf(O,e):this._getByKeyDefault(O,e,x)};
_.b._getObjByKeyId=function(O){for(var x=0;x<this.keyIds.length;x++)if(this.keyIds[x]===O)return this.objs[x]===uz&&(this.objs[x]=this._new(this.providers[x])),this.objs[x];return uz};
_.b._throwOrNull=function(O,x){if(x!==rO4)return x;throw B1W(this,O);};
_.b._getByKeySelf=function(O,x){var e=this._getObjByKeyId(O.id);return e!==uz?e:this._throwOrNull(O,x)};
_.b._getByKeyDefault=function(O,x,e){for(var l=e=e instanceof APW?this.parent:this;e instanceof Bg;){var C=e._getObjByKeyId(O.id);if(C!==uz)return C;e=e.parent}C=void 0;if(e!==null)try{var Q=e.resolve(O.token,x);if(Q!==uz)return Q}catch(L){C=L}if(!(l instanceof Bg&&GyV(O.token))){if(C)throw C;return this._throwOrNull(O,x)}for(Q=l;Q.parent instanceof Bg;)Q=Q.parent;Q.addProvider(xXm({provide:O.token,useClass:O.token}));return Q.resolve(O.token,x)};
_.b.toString=function(){return this.displayName};
_.Dy.Object.defineProperties(Bg.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+DXW(this,function(O){return' "'+O.key.displayName+'" '}).join(", ")+"])"}}});
var B4$=Df.get(M9(H0J));(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");$jscomp.defineProperty(Array.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 viN=window.XRegExp;var fOd=-1,JOT=function(O){addEventListener("pageshow",function(x){x.persisted&&(fOd=x.timeStamp,O(x))},!0)};var SaL=function(O,x,e){var l=wM3,C,Q;return function(L){if(x.value>=0&&(L||e)){var k;if((Q=x.value-((k=C)!=null?k:0))||C===void 0)C=x.value,x.delta=Q,L=x.value,x.rating=L>l[1]?"poor":L>l[0]?"needs-improvement":"good",O(x)}}};var jKD=function(O){requestAnimationFrame(function(){return requestAnimationFrame(function(){return O()})})};var N44=function(){var O=performance.getEntriesByType("navigation")[0];if(O&&O.responseStart>0&&O.responseStart<performance.now())return O};var gi2=function(){var O,x;return(x=(O=N44())==null?void 0:O.activationStart)!=null?x:0};var vg=-1,$iF=new Set,i0p=function(O){if(document.visibilityState==="hidden"){if(O.type==="visibilitychange")for(var x=_.T($iF),e=x.next();!e.done;e=x.next())e=e.value,e();isFinite(vg)||(vg=O.type==="visibilitychange"?O.timeStamp:0,removeEventListener("prerenderingchange",i0p,!0))}},OlL=function(){if(vg<0){var O=gi2(),x,e;
vg=(e=document.prerendering?void 0:(x=globalThis.performance.getEntriesByType("visibility-state").filter(function(l){return l.name==="hidden"&&l.startTime>O})[0])==null?void 0:x.startTime)!=null?e:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",i0p,!0);addEventListener("prerenderingchange",i0p,!0);JOT(function(){setTimeout(function(){vg=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return vg},
onHidden:function(l){$iF.add(l)}}};var xpT=function(){var O=O===void 0?-1:O;var x=N44(),e="navigate";fOd>=0?e="back-forward-cache":x&&(document.prerendering||gi2()>0?e="prerender":document.wasDiscarded?e="restore":x.type&&(e=x.type.replace(/_/g,"-")));return{name:"LCP",value:O,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:e}};var XPL=new WeakMap;var e0z=function(O){var x=x===void 0?{}:x;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var e=new PerformanceObserver(function(l){Promise.resolve().then(function(){O(l.getEntries())})});
e.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},x));return e}}catch(l){}};var lgp=function(O){var x=!1;return function(){x||(O(),x=!0)}};var CfD=function(O){document.prerendering?addEventListener("prerenderingchange",function(){return O()},!0):O()};var Qs3=function(O){var x=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?O():(O=lgp(O),addEventListener("visibilitychange",O,{once:!0,capture:!0}),x(function(){O();removeEventListener("visibilitychange",O,{capture:!0})}))};var FiN=function(){};
FiN.prototype._processEntry=function(O){var x;(x=this._onBeforeProcessingEntry)==null||x.call(this,O)};var wM3=[2500,4E3],wJr=function(O){var x=x===void 0?{}:x;CfD(function(){var e=OlL(),l=xpT(),C=ohr(x),Q=function(Z){x.reportAllChanges||(Z=Z.slice(-1));Z=_.T(Z);for(var E=Z.next();!E.done;E=Z.next())E=E.value,C._processEntry(E),E.startTime<e.firstHiddenTime&&(l.value=Math.max(E.startTime-gi2(),0),l.entries=[E],k())},L=e0z(Q);
if(L){var k=SaL(O,l,x.reportAllChanges);for(var M=lgp(function(){Q(L.takeRecords());L.disconnect();k(!0)}),G=function(Z){Z.isTrusted&&(Qs3(M),removeEventListener(Z.type,G,{capture:!0}))},X=_.T(["keydown",
"click","visibilitychange"]),y=X.next();!y.done;y=X.next())addEventListener(y.value,G,{capture:!0});JOT(function(Z){l=xpT();k=SaL(O,l,x.reportAllChanges);jKD(function(){l.value=performance.now()-Z.timeStamp;k(!0)})})}})};var bld;var Tpp;_.w=function(){return Tpp!==void 0?Tpp:Tpp=document.createElement("template")};
document.head.appendChild(_.w().content);var Lnk;_.tY({_template:function(){if(Lnk!==void 0)return Lnk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;bld===void 0&&(bld=document.createElement("template"));var l=bld;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Lnk=O},
is:"tp-yt-app-toolbar"});var k3N;var Ald;_.f6=function(){};
_.f6=_.tY({_template:function(){if(Ald!==void 0)return Ald;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;k3N===void 0&&(k3N=document.createElement("template"));var l=k3N;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Ald=O},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.f6.instance||(_.f6.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(O){this._text===O&&(O+="\u00a0");this._text="";this.async(function(){this._text=O},this.timeout)},
_onIronAnnounce:function(O){O.detail&&O.detail.text&&this.announce(O.detail.text)}});
_.f6.instance=null;_.f6.requestAvailability=function(){_.f6.instance||(_.f6.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.f6.instance):document.addEventListener("load",function(){document.body.appendChild(_.f6.instance)})};var MWT;var Dpp;/*

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

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 J5,E4p,tWT;J5=Element.prototype;E4p=J5.matches||J5.matchesSelector||J5.mozMatchesSelector||J5.msMatchesSelector||J5.oMatchesSelector||J5.webkitMatchesSelector;tWT=function(){};
_.Pfd=function(O){var x=q5D,e=[];return x._collectTabbableNodes(O,e)?x._sortByTabIndex(e):e};
_.b=tWT.prototype;_.b.isFocusable=function(O){return E4p.call(O,"input, select, textarea, button, object")?E4p.call(O,":not([disabled])"):E4p.call(O,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.b._normalizedTabIndex=function(O){return this.isFocusable(O)?(O=O.getAttribute("tabindex")||0,Number(O)):-1};
_.b._collectTabbableNodes=function(O,x){if(O.nodeType!==Node.ELEMENT_NODE||!this._isVisible(O))return!1;var e=this._normalizedTabIndex(O),l=e>0;e>=0&&x.push(O);if(O.localName==="content"||O.localName==="slot")e=_.G0(O).getDistributedNodes();else{var C;e=((C=_.G0(O).shadowRoot)!=null?C:_.G0(O.root||O)).children}for(O=0;O<e.length;O++)l=this._collectTabbableNodes(e[O],x)||l;return l};
_.b._isVisible=function(O){var x=O.style;return x.visibility!=="hidden"&&x.display!=="none"?(x=window.getComputedStyle(O),x.visibility!=="hidden"&&x.display!=="none"):!1};
_.b._sortByTabIndex=function(O){var x=O.length;if(x<2)return O;var e=Math.ceil(x/2);x=this._sortByTabIndex(O.slice(0,e));O=this._sortByTabIndex(O.slice(e));return this._mergeSortByTabIndex(x,O)};
_.b._mergeSortByTabIndex=function(O,x){for(var e=[];O.length>0&&x.length>0;)this._hasLowerTabOrder(O[0],x[0])?e.push(x.shift()):e.push(O.shift());return e.concat(O,x)};
_.b._hasLowerTabOrder=function(O,x){O=Math.max(O.tabIndex,0);x=Math.max(x.tabIndex,0);return O===0||x===0?x>O:O>x};
var q5D=new tWT;var clR;var IgD;_.tY({_template:function(){if(IgD!==void 0)return IgD;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;clR===void 0&&(clR=document.createElement("template"));var l=clR;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return IgD=O},
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&&_.G0(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.G0(this.parentNode).removeChild(this)},
_onTransitionend:function(O){O&&O.target===this&&this.complete()},
_openedChanged:function(O){O?this.prepare():(O=window.getComputedStyle(this),O.transitionDuration!=="0s"&&O.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 w2=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;vD(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)};
w2.prototype._bringOverlayAtIndexToFront=function(O){var x=this._overlays[O];if(x){var e=this._overlays.length-1,l=this._overlays[e];l&&this._shouldBeBehindOverlay(x,l)&&e--;if(!(O>=e)){l=Math.max(this._getZ(_.VWF(this)),this._minimumZ);for(this._getZ(x)<=l&&this._applyOverlayZ(x,l);O<e;)this._overlays[O]=this._overlays[O+1],O++;this._overlays[e]=x}}};
w2.prototype.addOverlay=function(O){var x=this._overlays.indexOf(O);if(x>=0)this._bringOverlayAtIndexToFront(x);else{x=this._overlays.length;var e=this._overlays[x-1],l=Math.max(this._getZ(e),this._minimumZ),C=this._getZ(O);e&&this._shouldBeBehindOverlay(O,e)&&(this._applyOverlayZ(e,l),x--,l=Math.max(this._getZ(this._overlays[x-1]),this._minimumZ));C<=l&&this._applyOverlayZ(O,l);this._overlays.splice(x,0,O)}this.trackBackdrop()};
w2.prototype.removeOverlay=function(O){O=this._overlays.indexOf(O);O!==-1&&(this._overlays.splice(O,1),this.trackBackdrop())};
_.VWF=function(O){return O._overlays[O._overlays.length-1]};
_.b=w2.prototype;_.b.trackBackdrop=function(){var O=this._overlayWithBackdrop();if(O||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(O)-1,this.backdropElement.opened=!!O,this.backdropElement.prepare()};
_.b._overlayWithBackdrop=function(){for(var O=this._overlays.length-1;O>=0;O--)if(this._overlays[O].withBackdrop)return this._overlays[O]};
_.b._getZ=function(O){var x=this._minimumZ;if(O){var e,l,C=Number(((e=O.hostElement)!=null?e:O).style.zIndex||window.getComputedStyle((l=O.hostElement)!=null?l:O).zIndex);C===C&&(x=C)}return x};
_.b._setZ=function(O,x){var e;((e=O.hostElement)!=null?e:O).style.zIndex=x};
_.b._applyOverlayZ=function(O,x){this._setZ(O,x+2)};
_.b._overlayInPath=function(O){O=O||[];for(var x=0;x<O.length;x++){var e=void 0;if(((e=O[x].polymerController)!=null?e:O[x])._manager===this)return O[x]}};
_.b._onCaptureClick=function(O){var x=this._overlays.length-1;if(x!==-1)for(var e=_.G0(O).path,l,C;(l=this._overlays[x])&&this._overlayInPath(e)!==((C=l.hostElement)!=null?C:l);)if(l._onCaptureClick(O),l.allowClickThrough)x--;else break};
_.b._onCaptureFocus=function(O){var x=_.VWF(this);x&&x._onCaptureFocus(O)};
_.b._onCaptureKeyDown=function(O){var x=_.VWF(this);x&&(_.cg.keyboardEventMatchesKeys(O,"esc")?x._onCaptureEsc(O):_.cg.keyboardEventMatchesKeys(O,"tab")&&x._onCaptureTab(O))};
_.b._shouldBeBehindOverlay=function(O,x){return!O.alwaysOnTop&&x.alwaysOnTop&&!x.contains(O)};
_.Dy.Object.defineProperties(w2.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 O=document.activeElement;O&&O instanceof Element!==!1||(O=document.body);for(;O.root&&_.G0(O.root).activeElement;)O=_.G0(O.root).activeElement;return O}}});
_.Sa=new w2;var yPN=0,ZpV=0,Ehs=null,tPw=[],Fe=["wheel","mousewheel","DOMMouseScroll"],qNi;_.t("web_no_lock_on_touchstart_killswitch")&&(Fe.push("touchstart"),Fe.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;_.ja={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:_.Sa},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var O;return this._focusedChild||_.G0((O=this.hostElement)!=null?O:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var O;return _.Pfd((O=this.hostElement)!=null?O: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 O;this._observer=_.G0((O=this.hostElement)!=null?O:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var O;_.G0((O=this.hostElement)!=null?O:this).unobserveNodes(this._observer)}this._observer=null;for(var x in this.__rafs)this.__rafs[x]!==null&&cancelAnimationFrame(this.__rafs[x]);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(O){this.fire("iron-overlay-canceled",O,{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 O;((O=this.hostElement)!=null?O:this).style.outline="none";var x;((x=this.hostElement)!=null?x:this).style.display="none"}},
_openedChanged:function(O){if(O){var x;((x=this.hostElement)!=null?x:this).removeAttribute("aria-hidden")}else{var e;((e=this.hostElement)!=null?e: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 O;if(this.withBackdrop&&!((O=this.hostElement)!=null?O:this).hasAttribute("tabindex")){var x;((x=this.hostElement)!=null?x:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var e;((e=this.hostElement)!=null?e: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 O;((O=this.hostElement)!=null?O:this).style.display="none";var x;((x=this.hostElement)!=null?x:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var O,x;((O=this.hostElement)!=null?O:this).style.transition=((x=this.hostElement)!=null?x:this).style.webkitTransition="none";var e,l;((e=this.hostElement)!=null?e:this).style.transform=((l=this.hostElement)!=null?l:this).style.webkitTransform="none";var C;((C=this.hostElement)!=null?C:this).style.display=""},
_finishPositioning:function(){var O;((O=this.hostElement)!=null?O:this).style.display="none";this.scrollTop=this.scrollTop;var x,e;((x=this.hostElement)!=null?x:this).style.transition=((e=this.hostElement)!=null?e:this).style.webkitTransition="";var l,C;((l=this.hostElement)!=null?l:this).style.transform=((C=this.hostElement)!=null?C:this).style.webkitTransform="";var Q;((Q=this.hostElement)!=null?Q:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var O=this._manager.deepActiveElement,x;if(!(x=O===document.body))a:{for(;O;O=O.assignedSlot||O.parentNode||O.host)if(O===this){x=!0;break a}x=!1}x&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(O){this.noCancelOnOutsideClick||this.cancel(O)},
_onCaptureFocus:function(O){if(this.withBackdrop){var x=_.G0(O).path;x.indexOf(this)===-1?(O.stopPropagation(),this._applyFocus()):this._focusedChild=x[0]}},
_onCaptureEsc:function(O){this.noCancelOnEscKey||this.cancel(O)},
_onCaptureTab:function(O){if(this.withBackdrop){this.__ensureFirstLastFocusables();var x=O.shiftKey,e=x?this.__firstFocusableNode:this.__lastFocusableNode;x=x?this.__lastFocusableNode:this.__firstFocusableNode;if(e===x)e=!0;else{var l=this._manager.deepActiveElement;e=l===e||l===this}e&&(O.preventDefault(),this._focusedChild=x,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 O=this._focusableNodes;this.__firstFocusableNode=O[0];this.__lastFocusableNode=O[O.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(O,x){var e=this.__rafs;e[O]!==null&&cancelAnimationFrame(e[O]);e[O]=requestAnimationFrame(function(){e[O]=null;x.call(this)}.bind(this))},
__updateScrollObservers:function(O,x,e){O&&x&&this.__isValidScrollAction(e)?(e==="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),qNi=_._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()):(O=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),O!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(O,1),qNi=_._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(iD)for(var O=this;O;)O.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&O.host&&this.__rootNodes.push(O),O=O.host||O.assignedSlot||O.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(x){x.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(O){O.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(O){return O==="lock"||O==="refit"||O==="cancel"},
__onCaptureScroll:function(O){if(!(this.__isAnimating||_.G0(O).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(O)}},
__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)}};
_.N_=[ZlJ,_.Wg,_.ja];_.tY({_template:function(){if(o43!==void 0)return o43;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;XS4===void 0&&(XS4=document.createElement("template"));var l=XS4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return o43=O},
is:"tp-yt-iron-dropdown",behaviors:[_.I1,_.cg,_.N_,K64],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 O=_.G0(this.$.content).getDistributedNodes(),x=0,e=O.length;x<e;x++)if(O[x].nodeType===Node.ELEMENT_NODE)return O[x]},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(),_.ja._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.ja._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.ja._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var O=this.containedElement,x=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),e=0;e<x.length;e++)x[e].node=O;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(O){this._readied&&(O?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var O=this.focusTarget||this.containedElement;O&&this.opened&&!this.noAutoFocus?O.focus():_.ja._applyFocus.apply(this,arguments)}});var pS3;var R0k;/*

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 Upd=new _.UF({type:"iconset"});
_.tY({_template:function(){if(R0k!==void 0)return R0k;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;pS3===void 0&&(pS3=document.createElement("template"));
var l=pS3;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return R0k=O},
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(O){O=(O||"").split(":");this._iconName=O.pop();this._iconsetName=O.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&&_.G0(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Upd.byKey(this._iconsetName)){var O=this._iconset.applyIcon(this,this._iconName,this.theme);O&&O.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,_.G0(this.root).appendChild(this._img)}});var agd;var mpR;_.tY({_template:function(){if(mpR!==void 0)return mpR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;agd===void 0&&(agd=document.createElement("template"));var l=agd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return mpR=O},
is:"tp-yt-iron-input",behaviors:[_.m_],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(){_.f6.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.G0(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.G0(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 O=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":O=/[0-9.,e-]/}return O},_bindValueChanged:function(O,x){x&&(O===void 0?x.value=null:O!==x.value&&(this.inputElement.value=O),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:O}))},
_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(O){var x=O.keyCode==19||O.keyCode==20||O.keyCode==45||O.keyCode==46||O.keyCode==144||O.keyCode==145||O.keyCode>32&&O.keyCode<41||O.keyCode>111&&O.keyCode<124;return!(O.keyCode==8||O.keyCode==9||O.keyCode==13||O.keyCode==27)&&!(O.charCode==0&&x)},
_onKeypress:function(O){if(this.allowedPattern||this.inputElement.type==="number"){var x=this._patternRegExp;if(x&&!(O.metaKey||O.ctrlKey||O.altKey)){this._patternAlreadyChecked=!0;var e=String.fromCharCode(O.charCode);this._isPrintable(O)&&!x.test(e)&&(O.preventDefault(),this._announceInvalidCharacter("Invalid character "+e+" not entered."))}}},
_checkPatternValidity:function(){var O=this._patternRegExp;if(!O)return!0;for(var x=0;x<this.inputElement.value.length;x++)if(!O.test(this.inputElement.value[x]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var O=this.inputElement.checkValidity();O&&(this.required&&this.bindValue===""?O=!1:this.hasValidator()&&(O=_.m_.validate.call(this,this.bindValue)));this.invalid=!O;this.fire("iron-input-validate");return O},
_announceInvalidCharacter:function(O){this.fire("iron-announce",{text:O})},
_computeValue:function(O){return O}});var ssz;var WnT;var h0d=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),z0k=h0d&&h0d[1]>=8;
_.tY({_template:function(){if(WnT!==void 0)return WnT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ssz===void 0&&(ssz=document.createElement("template"));var l=ssz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return WnT=O},
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:[iBL,_.Wg,_.HI3,Z_z],_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 _.G0(_.G0(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var O=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,O-this._physicalCount)},set _virtualStart(O){O=this._clamp(O,0,this._maxVirtualStart);this.grid&&(O-=O%this._itemsPerRow);this._virtualStartVal=O},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(O){O%=this._physicalCount;O<0&&(O=this._physicalCount+O);this.grid&&(O-=O%this._itemsPerRow);this._physicalStartVal=O},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(O){this._physicalCountVal=O},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 O=this._firstVisibleIndexVal;if(O==null){var x=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
O=this._iterateItems(function(e,l){x+=this._getPhysicalSizeIncrement(e);if(x>this._scrollPosition)return this.grid?l-l%this._itemsPerRow:l;if(this.grid&&this._virtualCount-1===l)return l-l%this._itemsPerRow})||0}return O},
get lastVisibleIndex(){var O=this._lastVisibleIndexVal;if(O==null){if(this.grid)O=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var x=this._physicalTop+this._scrollOffset;this._iterateItems(function(e,l){x<this._scrollBottom&&(O=l);x+=this._getPhysicalSizeIncrement(e)})}this._lastVisibleIndexVal=O}return O},
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,_.yG);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(O){this.style.webkitOverflowScrolling=O===this?"touch":"";this.style.overflowY=O===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.yG)},
updateViewportBoundaries:function(){var O=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(O["padding-top"],10);this._isRTL=O.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var O=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),x=O-this._scrollPosition,e=x>=0;this._scrollPosition=O;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(x)>this._physicalSize&&this._physicalSize>0?(x-=this._scrollOffset,e=Math.round(x/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(O=this._getReusables(e),e?(this._physicalTop=O.physicalTop,this._virtualStart+=O.indexes.length,this._physicalStart+=O.indexes.length):(this._virtualStart=this._virtualStart-O.indexes.length,this._physicalStart=this._physicalStart-O.indexes.length),this._update(O.indexes,e?null:O.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),j2))},
_getReusables:function(O){var x=[],e=this._hiddenContentSize*this._ratio,l=this._virtualStart,C=this._virtualEnd,Q=this._physicalCount,L=this._physicalTop+this._scrollOffset;var k=this._physicalBottom+this._scrollOffset;var M=this._scrollPosition,G=this._scrollBottom;if(O){var X=this._physicalStart;k=M-L}else X=this._physicalEnd,k-=G;for(;;){var y=this._getPhysicalSizeIncrement(X);k-=y;if(x.length>=Q||k<=e)break;if(O){if(C+x.length+1>=this._virtualCount)break;if(L+y>=M-this._scrollOffset)break;x.push(X);
L+=y;X=(X+1)%Q}else{if(l-x.length<=0)break;if(L+this._physicalSize-y<=G)break;x.push(X);L-=y;X=X===0?Q-1:X-1}}return{indexes:x,physicalTop:L-this._scrollOffset}},
_update:function(O,x){if(!(O&&O.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(O);this._updateMetrics(O);if(x)for(;x.length;)O=x.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(O);this._positionItems();this._updateScrollerSize()}},
_createPool:function(O){this._ensureTemplatized();var x,e=Array(O);for(x=0;x<O;x++){var l=this.stamp(null);e[x]=l.root.querySelector("*");this._itemsParent.appendChild(l.root)}return e},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(O){O=this._clamp(this._physicalCount+O,3,this._virtualCount-this._virtualStart);O=this._convertIndexToCompleteRow(O);if(this.grid){var x=O%this._itemsPerRow;x&&O-x<=this._physicalCount&&(O+=this._itemsPerRow);O-=x}O-=this._physicalCount;x=Math.round(this._physicalCount*.5);if(!(O<0)){if(O>0){x=window.performance.now();[].push.apply(this._physicalItems,this._createPool(O));for(var e=0;e<O;e++)this._physicalSizes.push(0);this._physicalCount+=O;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=O);this._update();this._templateCost=(window.performance.now()-x)/O;x=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||x===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,x)),OsJ):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,x),j2))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var O=this._getReusables(!0);this._physicalTop=O.physicalTop;this._virtualStart+=O.indexes.length;this._physicalStart+=O.indexes.length;this._update(O.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 O={__key__:!0};O[this.as]=!0;O[this.indexAs]=!0;O[this.selectedAs]=!0;O.tabIndex=!0;this._instanceProps=O;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(O,x){typeof x!=="undefined"&&(this.notifyResize(),_.Gy(),O&&this._updateGridMetrics())},
_itemsChanged:function(O){if(O.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,
_.yG);else if(O.path==="items.splices"){this._adjustVirtualIndex(O.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(O.value.indexSplices.some(function(e){return e.addedCount>0||e.removed.length>0})){var x=this._getActiveElement();
this.contains(x)&&x.blur()}O=O.value.indexSplices.some(function(e){return e.index+e.addedCount>=this._virtualStart&&e.index<=this._virtualEnd},this);
this._isClientFull()&&!O||this._debounce("_render",this._render,_.yG)}else O.path!=="items.length"&&this._forwardItemPath(O.path,O.value)},
_forwardItemPath:function(O,x){O=O.slice(6);var e=O.indexOf(".");e===-1&&(e=O.length);var l,C=this.modelForElement(this._offscreenFocusedItem),Q=parseInt(O.substring(0,e),10);if(l=this._isIndexRendered(Q)){var L=this._getPhysicalIndex(Q);var k=this.modelForElement(this._physicalItems[L])}else C&&(k=C);k&&k[this.indexAs]===Q&&(O=O.substring(e+1),O=this.as+(O?"."+O:""),k._setPendingPropertyOrPath(O,x,!1,!0),k._flushProperties&&k._flushProperties(),l&&(this._updateMetrics([L]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(O){O.forEach(function(x){x.removed.forEach(this._removeItem,this);x.index<this._virtualStart&&(x=Math.max(x.addedCount-x.removed.length,x.index-this._virtualStart),this._virtualStart+=x,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=x))},this)},
_removeItem:function(O){this.$.selector.deselect(O);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===O&&this._removeFocusedItem()},
_iterateItems:function(O,x){var e,l;if(arguments.length===2&&x)for(l=0;l<x.length;l++){var C=x[l];var Q=this._computeVidx(C);if((e=O.call(this,C,Q))!=null)return e}else{C=this._physicalStart;for(Q=this._virtualStart;C<this._physicalCount;C++,Q++)if((e=O.call(this,C,Q))!=null)return e;for(C=0;C<this._physicalStart;C++,Q++)if((e=O.call(this,C,Q))!=null)return e}},
_computeVidx:function(O){return O>=this._physicalStart?this._virtualStart+(O-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+O},
_assignModels:function(O){this._iterateItems(function(x,e){var l=this._physicalItems[x],C=this.items&&this.items[e];if(C!=null){var Q=this.modelForElement(l);Q.__key__=null;this._forwardProperty(Q,this.as,C);this._forwardProperty(Q,this.selectedAs,this.$.selector.isSelected(C));this._forwardProperty(Q,this.indexAs,e);this._forwardProperty(Q,"tabIndex",this._focusedVirtualIndex===e?0:-1);this._physicalIndexForKey[Q.__key__]=x;Q._flushProperties&&Q._flushProperties(!0);l.removeAttribute("hidden")}else l.setAttribute("hidden",
"")},O)},
_updateMetrics:function(O){_.Gy();var x=0,e=0,l=this._physicalAverageCount,C=this._physicalAverage;this._iterateItems(function(Q){e+=this._physicalSizes[Q];this._physicalSizes[Q]=this._physicalItems[Q].offsetHeight;x+=this._physicalSizes[Q];this._physicalAverageCount+=this._physicalSizes[Q]?1:0},O);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(e=this._itemsPerRow===1?e:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+x-e,this._itemsPerRow=1);this._physicalAverageCount!==l&&(this._physicalAverage=Math.round((C*l+x)/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 O=this._physicalTop;if(this.grid){var x=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(e,l){var C=Math.floor(l%this._itemsPerRow*this._itemWidth+x);this._isRTL&&(C*=-1);this.translate3d(C+"px",O+"px",0,this._physicalItems[e]);this._shouldRenderNextRow(l)&&(O+=this._rowHeight)})}else this._iterateItems(function(e){this.translate3d(0,O+"px",0,this._physicalItems[e]);
O+=this._physicalSizes[e]})},
_getPhysicalSizeIncrement:function(O){return this.grid?this._computeVidx(O)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[O]},
_shouldRenderNextRow:function(O){return O%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var O=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(O!==0){this._physicalTop=this._physicalTop-O;var x=this._scrollPosition;!z0k&&x>0&&this._resetScrollPosition(x-O)}},
_resetScrollPosition:function(O){this.scrollTarget&&O>=0&&(this._scrollPosition=this._scrollTop=O)},
_updateScrollerSize:function(O){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((O=(O=(O=O||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(O){return this.scrollToIndex(this.items.indexOf(O))},
scrollToIndex:function(O){if(!(typeof O!=="number"||O<0||O>this.items.length-1)&&(_.Gy(),this._physicalCount!==0)){O=this._clamp(O,0,this._virtualCount-1);if(!this._isIndexRendered(O)||O>=this._maxVirtualStart)this._virtualStart=this.grid?O-this._itemsPerRow*2:O-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var x=this._physicalStart,e=this._virtualStart,l=0,C=this._hiddenContentSize;e<O&&
l<=C;)l+=this._getPhysicalSizeIncrement(x),x=(x+1)%this._physicalCount,e++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+l);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)},_.yG)},
selectItem:function(O){return this.selectIndex(this.items.indexOf(O))},
selectIndex:function(O){if(!(O<0||O>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(O)){var x=this.modelForElement(this._physicalItems[this._getPhysicalIndex(O)]);x&&(x[this.selectedAs]=!0);this.updateSizeForIndex(O)}this.$.selector.selectIndex(O)}},
deselectItem:function(O){return this.deselectIndex(this.items.indexOf(O))},
deselectIndex:function(O){O<0||O>=this._virtualCount||(this._isIndexRendered(O)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(O)])[this.selectedAs]=!1,this.updateSizeForIndex(O)),this.$.selector.deselectIndex(O))},
toggleSelectionForItem:function(O){return this.toggleSelectionForIndex(this.items.indexOf(O))},
toggleSelectionForIndex:function(O){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(O):this.$.selector.isSelected(this.items[O]))?this.deselectIndex(O):this.selectIndex(O)},
clearSelection:function(){this._iterateItems(function(O){this.modelForElement(this._physicalItems[O])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(O){(O?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(O){var x=this.modelForElement(O.target);if(x){var e=_.G0(O).path[0];O=this._getActiveElement();var l=this._physicalItems[this._getPhysicalIndex(x[this.indexAs])];if(e.localName!=="input"&&e.localName!=="button"&&e.localName!=="select"){e=x.tabIndex;x.tabIndex=-100;var C=O?O.tabIndex:-1;x.tabIndex=e;O&&l!==O&&l.contains(O)&&C!==-100||this.toggleSelectionForItem(x[this.as])}}},
_multiSelectionChanged:function(O){this.clearSelection();this.$.selector.multi=O},
updateSizeForItem:function(O){return this.updateSizeForIndex(this.items.indexOf(O))},
updateSizeForIndex:function(O){if(!this._isIndexRendered(O))return null;this._updateMetrics([this._getPhysicalIndex(O)]);this._positionItems();return null},
_manageFocus:function(){var O=this._focusedVirtualIndex;O>=0&&O<this._virtualCount?this._isIndexRendered(O)?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(O){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(O/this._itemsPerRow)*this._itemsPerRow:O},
_isIndexRendered:function(O){return O>=this._virtualStart&&O<=this._virtualEnd},
_isIndexVisible:function(O){return O>=this.firstVisibleIndex&&O<=this.lastVisibleIndex},
_getPhysicalIndex:function(O){return(this._physicalStart+(O-this._virtualStart))%this._physicalCount},
focusItem:function(O){this._focusPhysicalItem(O)},
_focusPhysicalItem:function(O){if(!(O<0||O>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(O)||this.scrollToIndex(O);var x=this._physicalItems[this._getPhysicalIndex(O)],e=this.modelForElement(x),l;e.tabIndex=-100;x.tabIndex===-100&&(l=x);l||(l=_.G0(x).querySelector('[tabindex="-100"]'));e.tabIndex=0;this._focusedVirtualIndex=O;l&&l.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 O=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var x=this.stamp(null);this._focusBackfillItem=x.root.querySelector("*");this._itemsParent.appendChild(x.root)}this._offscreenFocusedItem=this._physicalItems[O];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[O]=this._focusBackfillItem;this._focusedPhysicalIndex=O;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var O=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),x=this._physicalItems[O];if(x){var e=this.modelForElement(x),l=this.modelForElement(this._offscreenFocusedItem);e[this.as]===l[this.as]?(this._focusBackfillItem=x,e.tabIndex=-1,this._physicalItems[O]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(O){O=this.modelForElement(O.target);var x=this.modelForElement(this._focusedItem),e=this._offscreenFocusedItem!==null,l=this._focusedVirtualIndex;O&&(x===O?this._isIndexVisible(l)||this.scrollToIndex(l):(this._restoreFocusedItem(),x&&(x.tabIndex=-1),O.tabIndex=0,this._focusedVirtualIndex=l=O[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(l),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],e&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(O){switch(O.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&O.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&&O.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(O)}},
_clamp:function(O,x,e){return Math.min(e,Math.max(x,O))},
_debounce:function(O,x,e){this._debouncers=this._debouncers||{};this._debouncers[O]=_.Lp(this._debouncers[O],e,x.bind(this));_.kh(this._debouncers[O])},
_forwardProperty:function(O,x,e){O._setPendingProperty(x,e)},
_forwardHostPropV2:function(O,x){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(e){e&&this.modelForElement(e).forwardHostProp(O,x)},this)},
_notifyInstancePropV2:function(O,x,e){pbs(this.as,x)&&(O=O[this.indexAs],x==this.as&&(this.items[O]=e),this.notifyPath(pw(this.as,"items."+O,x),e))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(O,x,e){x.indexOf(this.as+".")===0&&this.notifyPath("items."+O.__key__+"."+x.slice(this.as.length+1),e)},
_forwardParentPath:function(O,x){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(e){e&&this.modelForElement(e).notifyPath(O,x)},this)},
_forwardParentProp:function(O,x){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(e){e&&(this.modelForElement(e)[O]=x)},this)},
_getActiveElement:function(){var O=this._itemsParent.node.domHost;return _.G0(O?O.root:document).activeElement},
_scrollTargetChanged:function(O,x){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(x)if(O==="document")this.scrollTarget=this._doc;else if(typeof O==="string"){var e,l;this.scrollTarget=(x=(l=(e=this.domHost)==null?void 0:e.polymerController)!=null?l:this.domHost)&&x.$?x.$[O]:_.G0(this.ownerDocument).querySelector("#"+O)}else this._isValidScrollTarget()&&(this._oldScrollTarget=O,this._toggleScrollListener(this._shouldHaveListener,O))}});var rld;var Hlz;var Kn2=function(O,x,e,l){O-=e;x-=l;return Math.sqrt(O*O+x*x)},dpR=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
PGr.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var cPr=function(O){O.maxRadius=0;O.mouseDownStart=0;O.mouseUpStart=0;O.xStart=0;O.yStart=0;O.xEnd=0;O.yEnd=0;O.containerMetrics=new PGr(O.element)};
Iir.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var O=dpR()-this.mouseDownStart;this.mouseUpStart&&(O-=this.mouseUpElapsed);return O},get mouseUpElapsed(){return this.mouseUpStart?dpR()-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 O=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(O*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-O/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 O=this.radius/(this.containerMetrics.size/2);var x=this.xNow-this.containerMetrics.width/2;var e=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+x+"px, "+e+"px)";this.waveContainer.style.transform="translate3d("+x+"px, "+e+"px, 0)";this.wave.style.webkitTransform="scale("+O+","+O+")";this.wave.style.transform="scale3d("+O+","+O+",1)"},
downAction:function(O){var x=this.containerMetrics.width/2,e=this.containerMetrics.height/2;cPr(this);this.mouseDownStart=dpR();this.center?(this.xStart=x,this.yStart=e):(this.xStart=O?O.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=O?O.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=x,this.yEnd=e);O=this.containerMetrics;x=this.xStart;e=this.yStart;this.maxRadius=Math.max(Kn2(x,e,0,0),Kn2(x,e,
O.width,0),Kn2(x,e,0,O.height),Kn2(x,e,O.width,O.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=dpR())},
remove:function(){_.G0(_.G0(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.tY({_template:function(){if(Hlz!==void 0)return Hlz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;rld===void 0&&(rld=document.createElement("template"));var l=rld;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Hlz=O},
is:"tp-yt-paper-ripple",behaviors:[_.cg],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(){_.G0(this).parentNode.nodeType==11?this.keyEventTarget=_.G0(this).getOwnerRoot().host:this.keyEventTarget=_.G0(this).parentNode;var O=this.keyEventTarget;this.listen(O,"up","uiUpAction");this.listen(O,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(O){O.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var O=0;O<this.ripples.length;++O)if(!this.ripples[O].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(O){this.noink||this.downAction(O)},
downAction:function(O){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(O),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(O){this.noink||this.upAction(O)},
upAction:function(O){this.holdDown||(this.ripples.forEach(function(x){x.upAction(O)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var O=0;O<this.ripples.length;++O){var x=this.ripples[O];x.isOpacityFullyDecayed&&!x.isRestingAtMaxRadius&&this.removeRipple(x)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var O=new Iir(this);_.G0(this.$.waves).appendChild(O.waveContainer);this.$.background.style.backgroundColor=O.color;this.ripples.push(O);this._setAnimating(!0);return O},
removeRipple:function(O){var x=this.ripples.indexOf(O);x<0||(this.ripples.splice(x,1),O.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var O;for(O=0;O<this.ripples.length;++O){var x=this.ripples[O];x.draw();this.$.background.style.opacity=x.outerOpacity;x.isOpacityFullyDecayed&&!x.isRestingAtMaxRadius&&this.removeRipple(x)}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(O,x){x!==void 0&&(O?this.downAction():this.upAction())}});var g2={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(O){Vr._downHandler.call(this,O);this.pressed&&this.ensureRipple(O)},
ensureRipple:function(O){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var x=this._rippleContainer||this.root;x&&_.G0(x).appendChild(this._ripple);if(O){x=_.G0(this._rippleContainer||this);var e=_.G0(O).rootTarget;x.deepContains(e)&&this._ripple.uiDownAction(O)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(O){this.hasRipple()&&(this._ripple.noink=O)}};var n42={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 O=1;this.disabled?O=0:this.active||this.pressed?O=4:this.receivedFocusFromKeyboard&&(O=3);this._setElevation(O)},
_computeKeyboardClass:function(O){this.toggleClass("keyboard-focus",O)},
_spaceKeyDownHandler:function(O){Vr._spaceKeyDownHandler.call(this,O);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(O){Vr._spaceKeyUpHandler.call(this,O);this.hasRipple()&&this._ripple.uiUpAction()}},ubJ=[V1$,
_.I1,g2,n42];_.Y5d={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(O){O&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=O)},
_createRipple:function(){var O=g2._createRipple();O.id="ink";O.setAttribute("center","");O.classList.add("circle");return O}};
_.Bp2=[V1$,_.I1,g2,_.Y5d];_.v4F=[_.Bp2,Uok,{_checkedChanged:function(){RJz._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){g2._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var fgd;var Jlz;var wS$=function(){};
_.b=wS$.prototype;_.b.registered=function(){};
_.b.addOwnKeyBinding=function(){};
_.b.removeOwnKeyBindings=function(){};
_.b.keyboardEventMatchesKeys=function(){};
_.b._collectKeyBindings=function(){};
_.b._prepKeyBindings=function(){};
_.b._addKeyBinding=function(){};
_.b._resetKeyEventListeners=function(){};
_.b._listenKeyEventListeners=function(){};
_.b._unlistenKeyEventListeners=function(){};
_.b._onKeyBindingEvent=function(){};
_.b._triggerKeyHandler=function(){};
_.b._tapHandler=function(){};
_.b._focusChanged=function(){};
_.b._detectKeyboardFocus=function(){};
_.b._userActivate=function(){};
_.b._upHandler=function(){};
_.b._asyncClick=function(){};
_.b._pressedChanged=function(){};
_.b._ariaActiveAttributeChanged=function(){};
_.b._activeChanged=function(){};
_.b._controlStateChanged=function(){};
_.b._changedButtonState=function(){};
_.b._focusBlurHandler=function(){};
_.b._disabledChanged=function(){};
_.b._changedControlState=function(){};
_.b._buttonStateChanged=function(){};
_.b._downHandler=function(){};
_.b.ensureRipple=function(){};
_.b.getRipple=function(){};
_.b.hasRipple=function(){};
_.b._createRipple=function(){};
_.b._noinkChanged=function(){};
_.b._computeKeyboardClass=function(){};
_.b._spaceKeyDownHandler=function(){};
_.b._spaceKeyUpHandler=function(){};
_.b._setPressed=function(){};
_.b._setPointerDown=function(){};
_.b._setReceivedFocusFromKeyboard=function(){};
_.b._setFocused=function(){};
_.b._setElevation=function(){};
wS$=_.tY({_template:function(){if(Jlz!==void 0)return Jlz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;fgd===void 0&&(fgd=document.createElement("template"));var l=fgd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Jlz=O},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[ubJ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?n42._calculateElevation.apply(this):this._setElevation(0)}});var S5d;var jsd;var NpR={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(O){_.t("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(O)},
_onDialogClickWrapped:function(O){_.t("dialog_behavior_no_tap_killswitch")||this._onDialogClick(O)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(O,x){x&&(O?(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(O){if(O){var x;((x=this.hostElement)!=null?x:this).setAttribute("aria-modal","true")}else{var e;((e=this.hostElement)!=null?e:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(O){this.closingReason=this.closingReason||{};this.closingReason.confirmed=O},
_onDialogClick:function(O){for(var x=_.G0(O).path,e=0,l,C=x.indexOf((l=this.hostElement)!=null?l:this);e<C;e++)if(l=x[e],l.hasAttribute&&(l.hasAttribute("dialog-dismiss")||l.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(l.hasAttribute("dialog-confirm"));this.close();O.stopPropagation();break}}},g4R=[_.N_,
NpR];var $pF=document.createElement("template");_.I($pF,'<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($pF.content);var ilJ=document.createElement("template");_.I(ilJ,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(ilJ.content);_.tY({_template:function(){if(jsd!==void 0)return jsd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;S5d===void 0&&(S5d=document.createElement("template"));var l=S5d;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return jsd=O},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[g4R,K64],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 OrF;var xZR;_.tY({_template:function(){if(xZR!==void 0)return xZR;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;OrF===void 0&&(OrF=document.createElement("template"));var l=OrF;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return xZR=O},
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 O,x,e;if(((O=window.ShadyDOM)==null?void 0:O.noPatch)!==!0&&((x=window.ShadyDOM)==null?void 0:x.noPatch)!=="on-demand"||((e=this.__shady_parentNode)==null?void 0:e.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(NpR)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var eF$=_.zo(['<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>']),lNF=_.cYk(eF$);lNF.setAttribute("style","display: none;");document.head.appendChild(lNF.content);var Ce$;var Qjd;var brL;var TFN;_.tY({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[h5],configure:function(O){var x=O.node,e=x.getBoundingClientRect().height;return this._effect=new KeyframeEffect(x,[{height:e/2+"px"},{height:e+"px"}],this.timingFromConfig(O))}});
_.tY({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[h5],configure:function(O){var x=O.node,e=x.getBoundingClientRect().width;return this._effect=new KeyframeEffect(x,[{width:e/2+"px"},{width:e+"px"}],this.timingFromConfig(O))}});
_.tY({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[h5],configure:function(O){var x=O.node,e=x.getBoundingClientRect().width;return this._effect=new KeyframeEffect(x,[{width:e+"px"},{width:e-e/20+"px"}],this.timingFromConfig(O))}});
_.tY({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[h5],configure:function(O){var x=O.node,e=x.getBoundingClientRect().height;this.setPrefixedProperty(x,"transformOrigin","0 0");return this._effect=new KeyframeEffect(x,[{height:e+"px",transform:"translateY(0)"},{height:e/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(O))}});var $T={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},LdF=function(){};
_.b=LdF.prototype;_.b.registered=function(){};
_.b.addOwnKeyBinding=function(){};
_.b.removeOwnKeyBindings=function(){};
_.b.keyboardEventMatchesKeys=function(){};
_.b._collectKeyBindings=function(){};
_.b._prepKeyBindings=function(){};
_.b._addKeyBinding=function(){};
_.b._resetKeyEventListeners=function(){};
_.b._listenKeyEventListeners=function(){};
_.b._unlistenKeyEventListeners=function(){};
_.b._onKeyBindingEvent=function(){};
_.b._triggerKeyHandler=function(){};
_.b._focusBlurHandler=function(){};
_.b._changedControlState=function(){};
_.b._setFocused=function(){};
LdF=_.tY({_template:function(){if(TFN!==void 0)return TFN;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;brL===void 0&&(brL=document.createElement("template"));var l=brL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return TFN=O},
is:"tp-yt-paper-menu-button",behaviors:[_.cg,_.I1],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:$T.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:$T.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:$T.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 O=_.G0(this.$.content).getDistributedNodes(),x=0,e=O.length;x<e;x++)if(O[x].nodeType===Node.ELEMENT_NODE)return O[x]},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(O,x){O?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):x!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(O){_.I1._disabledChanged.apply(this,arguments);O&&this.opened&&this.close()},
__onIronOverlayCanceled:function(O){var x=this.$.trigger;_.G0(O.detail).path.indexOf(x)>-1&&O.preventDefault()}});
Object.keys($T).forEach(function(O){LdF[O]=$T[O]});var kaJ=_.p6.IronButtonState,Af3=(0,_.PP)(HTMLElement);
_.tY({_template:function(){if(Qjd!==void 0)return Qjd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Ce$===void 0&&(Ce$=document.createElement("template"));var l=Ce$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Qjd=O},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[kaJ,_.I1,g2,_.R1,_.m_],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(O){var x=(0,_.sZ)(this);x.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:O});x.shadowRoot.appendChild(O);return Af3.prototype._attachDom.call(this,O)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var O=this.contentElement;O&&O.selectedItem&&this._setSelectedItem(O.selectedItem)},
get contentElement(){for(var O=_.G0(this.$.content).getDistributedNodes(),x=0,e=O.length;x<e;x++)if(O[x].nodeType===Node.ELEMENT_NODE)return O[x]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(O){this._setSelectedItem(O.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(O){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O)===this&&this.open()},
_selectedItemChanged:function(O){var x="";O?x=O.label||O.getAttribute("label")||O.textContent.trim():x="";this.value=x;this._setSelectedItemLabel(x)},
_computeMenuVerticalOffset:function(O,x){return x?x:O?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var O=this.opened?"true":"false",x=this.contentElement;x&&x.setAttribute("aria-expanded",O)},
_computeLabelClass:function(O,x,e){var l="label";if(O)e&&(l+=" label-is-hidden");else if(e||x)l+=" label-is-floating";return l},
_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 MdR;var DZz;_.tY({is:"tp-yt-paper-icon-button",_template:function(){if(DZz!==void 0)return DZz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;MdR===void 0&&(MdR=document.createElement("template"));var l=MdR;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return DZz=O},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Bp2],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(O,x){var e=this.getAttribute("aria-label");e&&x!=e||this.setAttribute("aria-label",O)}});var Ga$;var Fdd;_.iz=[V1$,_.I1,{hostAttributes:{role:"option",tabindex:"0"}}];_.tY({_template:function(){if(Fdd!==void 0)return Fdd;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;Ga$===void 0&&(Ga$=document.createElement("template"));var l=Ga$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Fdd=O},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.iz]});var XF2;var oud;var yf2={attached:function(){this.fire("addon-attached")},
update:function(){}};var Zr3=1,Eu2=1,tdR=1,qKT=[_.I1,_.cg,{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();!xh&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(O,x){O?O=O+" "+x:O=x;return O},
_onAddonAttached:function(O){O=_.G0(O).rootTarget;if(O.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,O.id);else{var x="paper-input-add-on-"+Eu2++;O.id=x;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,x)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(O){_.I1._focusBlurHandler.call(this,O);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var O=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",O);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(O){try{var x=this.inputElement.selectionStart;this.value=O;this.inputElement.selectionStart=x;this.inputElement.selectionEnd=x}catch(e){this.value=O}},
_computeAlwaysFloatLabel:function(O,x){return x||O},
_updateAriaLabelledBy:function(){var O=_.G0(this.root).querySelector("label");if(O){if(O.id)var x=O.id;else x="paper-input-label-"+Zr3++,O.id=x;this._ariaLabelledBy=x}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+tdR++)},
_onChange:function(O){this.shadowRoot&&this.fire(O.type,{sourceEvent:O},{node:this,bubbles:O.bubbles,cancelable:O.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var O=document.activeElement;O instanceof HTMLElement&&O!==document.body&&O!==document.documentElement||this._focusableElement.focus()}}}];var PeL;var cfz;_.tY({_template:function(){if(cfz!==void 0)return cfz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;PeL===void 0&&(PeL=document.createElement("template"));var l=PeL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return cfz=O},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[yf2],properties:{_charCounterStr:{type:String,value:"0"}},update:function(O){if(O.inputElement){O.value=O.value||"";var x=O.value.toString().length.toString();O.inputElement.hasAttribute("maxlength")&&(x+="/"+O.inputElement.getAttribute("maxlength"));this._charCounterStr=x}}});var IN3;var Vd2;_.tY({_template:function(){if(Vd2!==void 0)return Vd2;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;IN3===void 0&&(IN3=document.createElement("template"));var l=IN3;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Vd2=O},
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 q3(this.attrForValue)},get _inputElement(){return _.G0(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(O){this._addons||(this._addons=[]);O=O.target;this._addons.indexOf(O)===-1&&(this._addons.push(O),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(O){this._handleValueAndAutoValidate(O.target)},
_onValueChanged:function(O){var x=O.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,x.value===void 0||x.value===""))return;this._handleValueAndAutoValidate(O.target)},
_handleValue:function(O){var x=this._inputElementValue;x||x===0||O.type==="number"&&!O.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:O,value:x,invalid:this.invalid})},
_handleValueAndAutoValidate:function(O){this.autoValidate&&O&&(this.invalid=!(O.validate?O.validate(this._inputElementValue):O.checkValidity()));this._handleValue(O)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(O){if(this._addons)for(var x,e=0;x=this._addons[e];e++)x.update(O)},
_computeInputContentClass:function(O,x,e,l,C){var Q="input-content";O?(C&&(Q+=" label-is-hidden"),l&&!this.noUnfloatedLabelError&&(Q+=" is-invalid")):(O=this.querySelector("label"),x||C?(Q+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",l?Q+=" is-invalid":e&&(Q+=" label-is-highlighted")):(O&&(this.$.labelAndInputContainer.style.position="relative"),l&&!this.noUnfloatedLabelError&&(Q+=" is-invalid")));e&&(Q+=" focused");return Q},
_computeUnderlineClass:function(O,x){var e="underline";x?e+=" is-invalid":O&&(e+=" is-highlighted");return e},
_computeAddOnContentClass:function(O,x){var e="add-on-content";x?e+=" is-invalid":O&&(e+=" is-highlighted");return e}});var pFJ;var RFL;_.tY({_template:function(){if(RFL!==void 0)return RFL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;pFJ===void 0&&(pFJ=document.createElement("template"));var l=pFJ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return RFL=O},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[yf2],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(O){this._setInvalid(O.invalid)}});_.tY({is:"tp-yt-paper-input",_template:function(){if(oud!==void 0)return oud;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;XF2===void 0&&(XF2=document.createElement("template"));var l=XF2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return oud=O},
behaviors:[qKT,_.R1],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 UZz;var aNd;_.tY({_template:function(){if(aNd!==void 0)return aNd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=
O.content,e=x.insertBefore;UZz===void 0&&(UZz=document.createElement("template"));var l=UZz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return aNd=O},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.iz]});var mZp;var sj3;_.tY({_template:function(){if(sj3!==void 0)return sj3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;mZp===void 0&&(mZp=document.createElement("template"));var l=mZp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return sj3=O},
is:"tp-yt-paper-item-body"});var WdJ;var hFR;var zFJ=function(){};
_.b=zFJ.prototype;_.b.indexOf=function(){};
_.b.selectPrevious=function(){};
_.b.selectNext=function(){};
_.b.selectIndex=function(){};
_.b.forceSynchronousItemUpdate=function(){};
_.b._checkFallback=function(){};
_.b._addListener=function(){};
_.b._removeListener=function(){};
_.b._activateEventChanged=function(){};
_.b._updateItems=function(){};
_.b._selectSelected=function(){};
_.b._filterItem=function(){};
_.b._valueToItem=function(){};
_.b._valueToIndex=function(){};
_.b._indexToValue=function(){};
_.b._valueForItem=function(){};
_.b._observeItems=function(){};
_.b._itemActivate=function(){};
_.b.multiChanged=function(){};
_.b._updateAttrForSelected=function(){};
_.b._updateSelected=function(){};
_.b._selectMulti=function(){};
_.b._selectionChange=function(){};
_.b._toggleSelected=function(){};
_.b._valuesToItems=function(){};
_.b.registered=function(){};
_.b.addOwnKeyBinding=function(){};
_.b.removeOwnKeyBindings=function(){};
_.b.keyboardEventMatchesKeys=function(){};
_.b._collectKeyBindings=function(){};
_.b._prepKeyBindings=function(){};
_.b._addKeyBinding=function(){};
_.b._resetKeyEventListeners=function(){};
_.b._listenKeyEventListeners=function(){};
_.b._unlistenKeyEventListeners=function(){};
_.b._onKeyBindingEvent=function(){};
_.b._triggerKeyHandler=function(){};
_.b.select=function(){};
_.b._resetTabindices=function(){};
_.b._updateMultiselectable=function(){};
_.b._focusWithKeyboardEvent=function(){};
_.b._clearSearchText=function(){};
_.b._focusPrevious=function(){};
_.b._focusNext=function(){};
_.b._applySelection=function(){};
_.b._focusedItemChanged=function(){};
_.b._onIronItemsChanged=function(){};
_.b._onShiftTabDown=function(){};
_.b._onFocus=function(){};
_.b._onUpKey=function(){};
_.b._onDownKey=function(){};
_.b._onEscKey=function(){};
_.b._onKeydown=function(){};
_.b._activateHandler=function(){};
_.b._disabledChanged=function(){};
_.b._setSelectedItem=function(){};
_.b._setItems=function(){};
_.b._setSelectedItems=function(){};
_.b._setFocusedItem=function(){};
zFJ=_.tY({_template:function(){if(hFR!==void 0)return hFR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;WdJ===void 0&&(WdJ=document.createElement("template"));var l=WdJ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return hFR=O},
is:"tp-yt-paper-listbox",behaviors:[W62],hostAttributes:{role:"listbox"}});var rfF;var HrR;var Kdd={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(O,x){return[O||x?"active":"",x?"cooldown":""].join(" ")},
__activeChanged:function(O,x){this.__setAriaHidden(!O);this.__coolingDown=!O&&x},
__altChanged:function(O){this.setAttribute("aria-label",O||"loading")},
__setAriaHidden:function(O){O?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.tY({_template:function(){if(HrR!==void 0)return HrR;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;rfF===void 0&&(rfF=document.createElement("template"));var l=rfF;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return HrR=O},
is:"tp-yt-paper-spinner",behaviors:[Kdd]});var dZD;var nuD;_.tY({_template:function(){if(nuD!==void 0)return nuD;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;dZD===void 0&&(dZD=document.createElement("template"));var l=dZD;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return nuD=O},
is:"tp-yt-paper-spinner-lite",behaviors:[Kdd]});var uzF;var YKR;_.tY({_template:function(){if(YKR!==void 0)return YKR;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;uzF===void 0&&(uzF=document.createElement("template"));var l=uzF;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return YKR=O},
is:"tp-yt-paper-tab",behaviors:[_.I1,_.p6.IronButtonState,g2],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 O=_.G0(this).parentNode;return!!O&&!!O.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(O){if(this.link){var x=this.queryEffectiveChildren("a");x&&O.target!==x&&x.click()}}});var BF2;var vuL;var fNd=_.zo(['<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>']),Jfp=_.cYk(fNd);document.head.appendChild(Jfp.content);_.tY({_template:function(){if(vuL!==void 0)return vuL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;BF2===void 0&&(BF2=document.createElement("template"));var l=BF2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return vuL=O},
is:"tp-yt-paper-tabs",behaviors:[_.Wg,_.zJp],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(O){_.G0(this).querySelectorAll("tp-yt-paper-tab").forEach(O?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(O){O.setAttribute("noink","")},
_removeNoinkAttribute:function(O){O.removeAttribute("noink")},
_computeScrollButtonClass:function(O,x,e,l){return!x||e?"hidden":O?l?"hidden":"not-visible":""},
_computeTabsContentClass:function(O,x){var e="tabs-content";O&&(e+=" scrollable");if(!O||x)e+=" fit-container";return e},
_computeSelectionBarClass:function(O,x){var e="selection-bar";O?e+=" hidden":x&&(e+=" align-bottom");return e},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(O){return""+O},
_onIronSelect:function(O){this._tabChanged(O.detail.item,this._previousTab);this._previousTab=O.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();_.sF._activateHandler.apply(this,arguments)},
_scheduleActivation:function(O,x){this._pendingActivationItem=O;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,x)},
_delayedActivationHandler:function(){var O=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;O.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(O){O.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(O,x){this.scrollable&&this._affectScroll(x&&-x.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(O){this.$.tabsContainer.scrollLeft+=O;O=this.$.tabsContainer.scrollLeft;this._leftHidden=O===0||this.hideScrollButtons;this._rightHidden=O===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(O,x){if(O){var e=this.$.tabsContent.getBoundingClientRect(),l=e.width,C=O.getBoundingClientRect();e=C.left-e.left;this._pos={width:this._calcPercent(C.width,l),left:this._calcPercent(e,l)};if(this.noSlide||x==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var Q=x.getBoundingClientRect();x=this.items.indexOf(x);O=this.items.indexOf(O);this.$.selectionBar.classList.add("expand");
O=x<O;this._isRTL&&(O=!O);O?this._positionBar(this._calcPercent(C.left+C.width-Q.left,l)-5,this._left):this._positionBar(this._calcPercent(Q.left+Q.width-C.left,l)-5,this._calcPercent(e,l)+5);this.scrollable&&this._scrollToSelectedIfNeeded(C.width,e)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(O,x){x-=this.$.tabsContainer.scrollLeft;x<0?this.$.tabsContainer.scrollLeft+=x:(x+=O-this.$.tabsContainer.offsetWidth,x>0&&(this.$.tabsContainer.scrollLeft+=x))},
_calcPercent:function(O,x){return 100*O/x},
_positionBar:function(O,x){O=O||0;x=x||0;this._width=O;this._left=x;this.transform("translateX("+x+"%) scaleX("+O/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var O=this.$.selectionBar.classList;O.contains("expand")?(O.remove("expand"),O.add("contract"),this._positionBar(this._pos.width,this._pos.left)):O.contains("contract")&&O.remove("contract")}});var wFd;var SKz;_.tY({_template:function(){if(SKz!==void 0)return SKz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;wFd===void 0&&(wFd=document.createElement("template"));var l=wFd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return SKz=O},
is:"tp-yt-paper-textarea",behaviors:[qKT,_.R1],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(O){this.$.input.textarea.selectionStart=O},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(O){this.$.input.textarea.selectionEnd=O},_ariaLabelledByChanged:function(O){this._focusableElement.setAttribute("aria-labelledby",O)},
_ariaDescribedByChanged:function(O){this._focusableElement.setAttribute("aria-describedby",O)},
get _focusableElement(){return this.inputElement.textarea}});var jjF;var NF$;/*

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 guz=function(){};
_.b=guz.prototype;_.b.addOwnKeyBinding=function(){};
_.b.removeOwnKeyBindings=function(){};
_.b.keyboardEventMatchesKeys=function(){};
_.b._collectKeyBindings=function(){};
_.b._prepKeyBindings=function(){};
_.b._addKeyBinding=function(){};
_.b._resetKeyEventListeners=function(){};
_.b._listenKeyEventListeners=function(){};
_.b._unlistenKeyEventListeners=function(){};
_.b._onKeyBindingEvent=function(){};
_.b._triggerKeyHandler=function(){};
_.b._tapHandler=function(){};
_.b._focusChanged=function(){};
_.b._detectKeyboardFocus=function(){};
_.b._userActivate=function(){};
_.b._upHandler=function(){};
_.b._spaceKeyDownHandler=function(){};
_.b._spaceKeyUpHandler=function(){};
_.b._asyncClick=function(){};
_.b._pressedChanged=function(){};
_.b._ariaActiveAttributeChanged=function(){};
_.b._activeChanged=function(){};
_.b._controlStateChanged=function(){};
_.b._changedButtonState=function(){};
_.b._focusBlurHandler=function(){};
_.b._disabledChanged=function(){};
_.b._changedControlState=function(){};
_.b._downHandler=function(){};
_.b.ensureRipple=function(){};
_.b.getRipple=function(){};
_.b.hasRipple=function(){};
_.b._noinkChanged=function(){};
_.b._focusedChanged=function(){};
_.b.registered=function(){};
_.b._invalidChanged=function(){};
_.b.hasValidator=function(){};
_.b.validate=function(){};
_.b._getValidity=function(){};
_.b._requiredChanged=function(){};
_.b._valueChanged=function(){};
_.b._checkedChanged=function(){};
_.b._buttonStateChanged=function(){};
_.b._setPressed=function(){};
_.b._setPointerDown=function(){};
_.b._setReceivedFocusFromKeyboard=function(){};
_.b._setFocused=function(){};
guz=_.tY({is:"tp-yt-paper-toggle-button",_template:function(){if(NF$!==void 0)return NF$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;jjF===void 0&&(jjF=document.createElement("template"));var l=jjF;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return NF$=O},
behaviors:[_.v4F],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");_.A_(this,function(){_.Ja(this,"pan-y")})},
_ontrack:function(O){O=O.detail;O.state==="start"?this._trackStart(O):O.state==="track"?this._trackMove(O):O.state==="end"&&this._trackEnd(O)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(O){O=O.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+O:O)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+O:O));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 O=g2._createRipple();O.id="ink";O.setAttribute("recenters","");O.classList.add("circle","toggle-ink");return O}});var $ZL;var ir$;_.tY({_template:function(){if(ir$!==void 0)return ir$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;$ZL===void 0&&($ZL=document.createElement("template"));var l=$ZL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return ir$=O},
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 O=_.G0(this).parentNode,x=_.G0(this).getOwnerRoot(),e;this.for?e=_.G0(x).querySelector("#"+this.for):e=O.nodeType==Node.DOCUMENT_FRAGMENT_NODE?x.host:O;return e},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(O){O==="entry"?this.show():O==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.G0(this).textContent.trim()===""){for(var O=!0,x=_.G0(this).getEffectiveChildNodes(),e=0;e<x.length;e++)if(x[e].textContent.trim()!==""){O=!1;break}if(O)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 O=this.offset;this.marginTop!=14&&this.offset==14&&(O=this.marginTop);var x=this.offsetParent.getBoundingClientRect(),e=this._target.getBoundingClientRect(),l=this.getBoundingClientRect(),C=(e.width-l.width)/2,Q=(e.height-l.height)/2,L=e.left-x.left,k=e.top-x.top;switch(this.position){case "top":var M=L+C;var G=k-l.height-O;break;case "bottom":M=L+C;G=k+e.height+O;break;case "left":M=L-l.width-O;G=k+Q;break;case "right":M=L+e.width+
O,G=k+Q}this.fitToVisibleBounds?(x.left+M+l.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,M)+"px",this.style.right="auto"),x.top+G+l.height>window.innerHeight?(this.style.bottom=x.height+"px",this.style.top="auto"):(this.style.top=Math.max(-x.top,G)+"px",this.style.bottom="auto")):(this.style.left=M+"px",this.style.top=G+"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(O){O!==500&&this.updateStyles({"--paper-tooltip-delay-in":O+"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(O){if(O==="entry"&&this.animationEntry!=="")return this.animationEntry;if(O==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[O]&&typeof this.animationConfig[O][0].name==="string"){if(this.animationConfig[O][0].timing&&this.animationConfig[O][0].timing.delay&&this.animationConfig[O][0].timing.delay!==0){var x=this.animationConfig[O][0].timing.delay;O==="entry"?this.updateStyles({"--paper-tooltip-delay-in":x+"ms"}):O==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":x+
"ms"})}return this.animationConfig[O][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 Oyd=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Oyd,_.TH);var x0z=_.yc(Oyd,[0,_.JO]);var Ol=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Ol,_.TH);var e_T=[3,4],lVT=[5,6];var CRJ=[0,e_T,lVT,_.Np,-1,_.BM,_.gp,-1,kXd,Ae2];var QET=_.yc(Ol,CRJ),byd=_.Eh(CRJ);var TV4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(TV4,_.TH);var Lh2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Lh2,_.TH);var k5d=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(k5d,_.TH);var ADz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ADz,_.TH);var Mv3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Mv3,_.TH);var xo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(xo,_.TH);xo.prototype.getSource=function(){return _.y7(this,1)};
xo.prototype.getMessage=function(){return _.oK(this,4)};
xo.prototype.getData=function(){return _.y4(this,Mv3,8)};var D0N=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(D0N,_.TH);var em=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(em,_.TH);var lN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(lN,_.TH);var CY=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(CY,_.TH);CY.prototype.getUrl=function(){return _.oK(this,1)};
CY.prototype.setUrl=function(O){return _.mO(this,1,O)};
CY.prototype.hasUrl=function(){return _.PT(_.C0(this,1))!=null};var G54=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(G54,_.TH);var Fhk=[3];var Xx2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Xx2,_.TH);var Qq=function(O){var x=new Xx2;return _.ZG(x,2,O)};
Xx2.prototype.getLanguage=function(){return Ea(this,4,bN)};
var ox4=function(O){var x=Qq(1);return _.Vc(x,6,bN,O)},bN=[3,
4,5,6];var yD2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(yD2,_.TH);var TU=function(O){var x=new yD2;return _.ZG(x,1,O)},LY=function(O,x){return _.Vc(O,2,Zy3,x)},Zy3=[2,
3,4,5];var ExJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ExJ,_.TH);var ko=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ko,_.TH);var tvJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(tvJ,_.TH);var qST=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(qST,_.TH);var PRp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(PRp,_.TH);var cDT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(cDT,_.TH);var IVT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(IVT,_.TH);var AE=function(O){return _.y4(O,lN,5)};var Vv2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Vv2,_.TH);Vv2.prototype.getValue=function(){return Fl(this,1)};var pxk=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(pxk,_.TH);var Ms=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Ms,_.TH);Ms.prototype.getMetadata=function(){return _.tO(this,PRp,7,DM)};
Ms.prototype.hasMetadata=function(){return _.bm(this,PRp,7,DM)};
var R_L=_.Shw(Ms),DM=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var GU=function(O){this.JSC$12169_name_=O;this.files_=[];this.directories_=[];this.directoryMap_={}};
GU.prototype.getName=function(){return this.JSC$12169_name_};var Xf=function(O,x){this.callback_=x;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new GU("");U0d(this,O,this.rootDirectory_);Ff(this)},U0d=function(O,x,e){for(var l=0;l<x.length;l++){var C=x[l];
C.isFile?(O.fileOps_++,C.file((0,_.z8)(O.handleFileSuccess_,O,e),(0,_.z8)(O.handleFileError_,O))):O.unscannedDirectories_.push(new aVL(C,e))}},Ff=function(O){if(O.unscannedDirectories_.length>0&&O.directoryOps_<5&&!O.hasError_){O.directoryOps_++;
var x=O.unscannedDirectories_.shift(),e=x.entry,l=new GU(e.name);x=x.parent;x.directoryMap_[l.getName()]=l;x.directories_.push(l);e=e.createReader();e.readEntries((0,_.z8)(O.handleDirectorySuccess_,O,e,l),(0,_.z8)(O.handleDirectoryError_,O))}O.directoryOps_!=0||O.fileOps_!=0||O.unscannedDirectories_.length!=0&&!O.hasError_||O.callback_(O.rootDirectory_.files_,O.rootDirectory_.directories_,O.hasError_)};
Xf.prototype.handleDirectorySuccess_=function(O,x,e){U0d(this,e,x);e.length==0?(this.directoryOps_--,Ff(this)):O.readEntries((0,_.z8)(this.handleDirectorySuccess_,this,O,x),(0,_.z8)(this.handleDirectoryError_,this))};
Xf.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Ff(this)};
Xf.prototype.handleFileSuccess_=function(O,x){O.files_.push(x);this.fileOps_--;Ff(this)};
Xf.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Ff(this)};
var aVL=function(O,x){this.entry=O;this.parent=x};var oq=function(O){_.tf.call(this);_.ol(O,"drop",this.onObjectsDropped_,!1,this);_.ol(O,"dragenter",this.onFilesDragged_,!1,this);_.ol(O,"dragover",this.onFilesDragged_,!1,this);_.ol(O,"dragleave",this.onDragLeave_,!1,this);_.ol(O,"dragend",this.onDragLeave_,!1,this)};
_.fI(oq,_.tf);var m0L=function(O,x){_.Xz.call(this,"f");this.files=O;this.directories=x};
_.fI(m0L,_.Xz);var sEd=function(){_.Xz.call(this,"h")};
_.fI(sEd,_.Xz);var Whd=function(){_.Xz.call(this,"i")};
_.fI(Whd,_.Xz);var h_F=function(){_.Xz.call(this,"g")};
_.fI(h_F,_.Xz);oq.prototype.onObjectsDropped_=function(O){var x=this;O.preventDefault();var e=O.event_.dataTransfer;if((O=e&&e.items)&&O.length>0&&O[0].webkitGetAsEntry){e=[];for(var l=[],C=0;C<O.length;C++){var Q=O[C].webkitGetAsEntry();Q?e.push(Q):l.push(O[C])}new Xf(e,function(L,k,M){M?x.dispatchEvent(new h_F("Error occurred while reading from the file system.")):x.dispatchEvent(new m0L(L,k,l))})}else(O=e&&e.files)&&this.dispatchEvent(new m0L(Array.from(O),[]))};
oq.prototype.onFilesDragged_=function(O){O.type==="dragenter"&&this.dispatchEvent(new sEd);O.preventDefault()};
oq.prototype.onDragLeave_=function(){this.dispatchEvent(new Whd)};var z_2=function(O,x){this.JSC$12192_name_=O;this.inputElement_=x};
z_2.prototype.getName=function(){return this.JSC$12192_name_};
z_2.prototype.getInputElement=function(){return this.inputElement_};var yq=function(O,x,e){x=x===void 0?"single_file":x;e=e===void 0?[]:e;_.tf.call(this);this.overlayTarget_=O;this.parentOverlay_=O!=null?O.parentNode:_.R9("scotty-overlay-parent");this.selectorType_=x;this.acceptTypes_=e;this.overlay_=rDd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.c(yq,_.tf);
var rDd=function(O,x,e,l){var C=document.createElement("input");C.setAttribute("type","file");C.setAttribute("name","Filedata");_.ol(C,"change",O.onFilesSelected_,!1,O);e==="multiple_file"&&(C.multiple="true");e==="single_directory"&&(C.webkitdirectory="true");l.length>0&&C.setAttribute("accept",l.join(","));C.style.position="absolute";C.style.overflow="hidden";C.style.height="0px";C.style.width="0px";C.style.opacity="0";C.setAttribute("aria-hidden","true");C.setAttribute("tabIndex",-1);if(O.overlayTarget_!=
null)return C.style.height=x.offsetHeight+"px",C.style.width=x.offsetWidth+"px",O.parentOverlay_&&(O.parentOverlay_.style.position="relative"),_.U5(C,x),z3(C,new _.dc(x.offsetLeft,x.offsetTop)),C;O.parentOverlay_.appendChild(C);return C};
yq.prototype.click=function(){this.overlay_.click()};
yq.prototype.onFilesSelected_=function(O){a:{try{var x=(new XMLHttpRequest).upload!==void 0;break a}catch(G){}x=!1}if(x){var e;O=Array.from((e=O.target.files)!=null?e:[]);e=[];if(this.selectorType_==="single_directory"&&(_.gC||kC||_.No)){e=new GU("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(x=0;x<O.length;x++)for(var l=O[x],C=l.webkitRelativePath.split("/"),Q=e,L=0;L<C.length;L++){var k=C[L];if(L==C.length-1){k!="."&&Q.files_.push(l);break}var M=Q.directoryMap_[k];M==void 0&&(k=
M=new GU(k),Q.directoryMap_[k.getName()]=k,Q.directories_.push(k));Q=M}e=e.directories_}this.dispatchEvent(new Hy$(O,e,null))}else O=O.target.value,O.match(/^c:\\fakepath\\/i)&&(O=O.substring(12)),this.dispatchEvent(new Hy$([],[],new z_2(O,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=rDd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Hy$=function(O,x){_.Xz.call(this,"j");this.files=O;this.directories=x};
_.c(Hy$,_.Xz);var Khd=function(O){this.uploadUrl_=O};var d0p=function(){_.tf.call(this)};
_.fI(d0p,_.tf);var ZM=function(O){_.Xz.call(this,O)};
_.fI(ZM,_.Xz);var El=function(O){_.Xz.call(this,O)};
_.fI(El,_.Xz);var nxk=function(O,x,e,l,C){_.tf.call(this);e=document.createElement("form");e.setAttribute("method",x);e.setAttribute("enctype","multipart/form-data");e.setAttribute("encoding","multipart/form-data");x=document.createElement("input");x.setAttribute("type","hidden");x.setAttribute("name","metadata");x.setAttribute("value",C);e.appendChild(x);e.appendChild(l);this.JSC$12209_form_=e;O=new _.K1(O);_.lo(O,"upload_protocol","multipart");this.JSC$12209_url_=O.toString();this.JSC$12209_request_=new ea;this.state_=
"Ready";this.JSC$12209_errorDescription_=null;this.JSC$12209_eventHandler_=new _.Ev(this);_.qq(this,this.JSC$12209_eventHandler_);this.JSC$12209_eventHandler_.listen(this.JSC$12209_request_,"success",this.onTransferSuccess_);this.JSC$12209_eventHandler_.listen(this.JSC$12209_request_,"error",this.onTransferError_)};
_.c(nxk,d0p);_.b=nxk.prototype;_.b.run=function(){this.state_="Transferring";var O=this.JSC$12209_request_,x=this.JSC$12209_form_;if(O.JSC$11477_active_)throw Error("se");var e=new _.K1(this.JSC$12209_url_||x.action);O.JSC$11477_form_=x;x=O.JSC$11477_form_;e=_.fU(e.toString());e!==void 0&&(x.action=e);JAT(O)};
_.b.getResponseCode=function(){return null};
_.b.getResponseText=function(){return this.JSC$12209_request_&&this.JSC$12209_request_.getResponseText()||null};
_.b.JSC$29710_getErrorDescription=function(){return this.JSC$12209_errorDescription_};
_.b.cancel=function(){this.JSC$12209_request_&&this.JSC$12209_request_.abort();this.state_="Cancelled";this.dispatchEvent(new ZM("o"))};
_.b.pause=function(){};
_.b.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new ZM("l"))};
_.b.onTransferError_=function(){this.JSC$12209_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new ZM("n"))};var tE=function(){_.UK.call(this)};
_.c(tE,_.UK);tE.prototype.createXhr=function(){var O=_.UK.prototype.createXhr.call(this);O.upload&&(O.upload.onprogress=(0,_.z8)(this.onProgress_,this));return O};
tE.prototype.onProgress_=function(O){this.dispatchEvent(O)};var ujF=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},BV$=function(O,x){var e=O.attempt_+1;
if(O.maxAttempts_>0&&e>O.maxAttempts_)return!1;e==0?x():O.delayCallId_=VK(function(){O.delayCallId_=null;x()},YSp(O),O);
O.attempt_=e;return!0};
ujF.prototype.reset=function(){this.delayCallId_&&_.CV.clearTimeout(this.delayCallId_);this.attempt_=-1};
var YSp=function(O){var x=250*Math.pow(2,O.attempt_);O.maxDelayMs_>=0&&(x=Math.min(x,O.maxDelayMs_));return x};var pPN=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var qs=function(){_.tf.call(this);this.JSC$12219_request_=this.state_=null;this.JSC$12219_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12219_bytesTransferred_=0;this.retryIterator_=new ujF;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12219_errorDescription_=null;this.JSC$12219_eventHandler_=new _.Ev(this);_.qq(this,this.JSC$12219_eventHandler_);this.JSC$12219_url_=this.blob_=null;this.JSC$12219_method_=void 0;this.chunkSize_=this.JSC$12219_metadata_=
this.JSC$12219_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12219_responseText_=this.JSC$12219_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.fI(qs,d0p);_.b=qs.prototype;_.b.run=function(){Pj(this)};
_.b.getResponseCode=function(){return this.JSC$12219_responseCode_};
_.b.getResponseText=function(){return this.JSC$12219_responseText_};
_.b.JSC$29710_getErrorDescription=function(){return this.JSC$12219_errorDescription_};
_.b.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12219_eventHandler_.removeAll();this.JSC$12219_request_&&this.JSC$12219_request_.abort();this.retryIterator_.reset();var O=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(O==="Upload"||O==="Query")O=new tE,O.JSC$9791_withCredentials_=this.JSC$12219_withCredentials_,O.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12219_bytesTransferred_=
0;this.dispatchEvent(new ZM("o"))}};
_.b.pause=function(){this.pauseRequested_=!0};
var Pj=function(O){var x=O.state_;O.pauseRequested_?(O.pauseRequested_=!1,O.stateAfterUnpausing_=x,O.state_="Paused"):BV$(O.retryIterator_,function(){switch(O.state_){case "Start":O.JSC$12219_request_=new tE;var e=_.HX.clone(O.JSC$12219_headers_);O.blob_.size!=null&&(e["Content-Length"]=O.blob_.size);e=RCw(e);e["X-Goog-Upload-Protocol"]="resumable";e["X-Goog-Upload-Command"]="start";O.JSC$12219_eventHandler_.removeAll();O.JSC$12219_eventHandler_.listen(O.JSC$12219_request_,"complete",O.onStartComplete_);
O.JSC$12219_request_.JSC$9791_withCredentials_=O.JSC$12219_withCredentials_;O.JSC$12219_request_.send(O.JSC$12219_url_,O.JSC$12219_method_,O.JSC$12219_metadata_,e);O.lastCommandResponseCode_=null;O.dispatchEvent(new El("q"));break;case "Upload":e=O.transferHandle_.uploadUrl_;var l=O.blob_.size;if(E7z()){var C=O.chunkSize_;var Q=O.offset_+C>=l;l=Z1R(O.blob_,O.offset_,Q?l:O.offset_+C)}else O.offset_=0,l=O.blob_,Q=!0;O.JSC$12219_request_=new tE;O.JSC$12219_request_.JSC$9791_withCredentials_=O.JSC$12219_withCredentials_;
O.JSC$12219_eventHandler_.removeAll();O.JSC$12219_eventHandler_.listen(O.JSC$12219_request_,"progress",O.onUploadProgress_);C=(0,_.z8)(O.JSC$12221_onUploadComplete_,O,O.offset_+l.size,Q);O.JSC$12219_eventHandler_.listen(O.JSC$12219_request_,"complete",C);O.lastCommandResponseCode_=null;O.dispatchEvent(new El("q"));Q=Object.assign({},O.JSC$12219_headers_||{},{"X-Goog-Upload-Command":"upload"+(Q?", finalize":""),"X-Goog-Upload-Offset":O.offset_});O.JSC$12219_request_.send(e,"POST",l,Q);break;case "Query":O.JSC$12219_request_=
new tE;O.JSC$12219_eventHandler_.removeAll();O.JSC$12219_eventHandler_.listen(O.JSC$12219_request_,"complete",O.onQueryComplete_);e=Object.assign({},O.JSC$12219_headers_||{},{"X-Goog-Upload-Command":"query"});O.JSC$12219_request_.send(O.transferHandle_.uploadUrl_,"POST","",e);O.lastCommandResponseCode_=null;O.dispatchEvent(new El("q"));break;default:throw Error("kf");}})||cj(O,"Transfer encountered too many consecutive failures.")},cj=function(O,x){O.state_="Error";
O.JSC$12219_errorDescription_=x;O.dispatchEvent(new ZM("n"))};
qs.prototype.onStartComplete_=function(O){var x=O.target;this.lastCommandResponseCode_=x.getStatus();this.dispatchEvent(new El("r"));if(vxF(x))fVL(this,x);else if(JD$(x)){O=Tc(O.target.getAllResponseHeaders());for(var e in O)_.br(e.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new ZM("m"));e=Xe(O,"X-Goog-Upload-URL");O=(O=Xe(O,"X-Goog-Upload-Chunk-Granularity"))?parseInt(O,10):1;e===void 0||isNaN(O)||O<=0?cj(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
O)*O,this.transferHandle_=new Khd(e),this.dispatchEvent(new ZM("p")),this.state_="Upload",this.retryIterator_.reset(),Pj(this))}else Pj(this)};
qs.prototype.onUploadProgress_=function(O){this.JSC$12219_bytesTransferred_=this.offset_+O.loaded;this.dispatchEvent(new ZM("k"))};
qs.prototype.JSC$12221_onUploadComplete_=function(O,x,e){var l=this,C,Q;return _.A(function(L){switch(L.nextAddress){case 1:C=e.target;l.lastCommandResponseCode_=C.getStatus();l.dispatchEvent(new El("r"));if(wxd(C)||C.getStatus()==404)return l.JSC$12219_bytesTransferred_=O,fVL(l,C),L.return();if(JD$(C)){L.jumpTo(2);break}if(!(Q=l.detectCorruptedBlobEnabled_)){L.jumpTo(3);break}return L.yield(SS4(l),4);case 4:Q=L.yieldResult;case 3:if(Q)return cj(l,"Blob has been modified or corrupted."),L.return();
l.requireUploadRequestModification_=C.getStatus()==400;l.state_="Query";Pj(l);return L.return();case 2:if(x)return cj(l,"Got a non-final success response after issuing a finalize command."),L.return();l.JSC$12219_bytesTransferred_=O;l.offset_=O;l.retryIterator_.reset();Pj(l);return L.return()}})};
qs.prototype.onQueryComplete_=function(O){var x=O.target;this.lastCommandResponseCode_=x.getStatus();this.dispatchEvent(new El("r"));vxF(x)?(x.getStatus()===200&&(this.JSC$12219_bytesTransferred_=this.blob_.size),fVL(this,x)):JD$(x)?(O=Tc(O.target.getAllResponseHeaders()),O=parseInt(Xe(O,"X-Goog-Upload-Size-Received"),10),isNaN(O)?cj(this,"Server did not respond with current offset."):O<this.offset_?cj(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
O+"."):this.requireUploadRequestModification_&&this.offset_===O?cj(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<O&&this.retryIterator_.reset(),this.offset_=this.JSC$12219_bytesTransferred_=O,this.state_="Upload",Pj(this))):Pj(this)};
var fVL=function(O,x){O.JSC$12219_responseCode_=x.getStatus();var e=Tc(x.getAllResponseHeaders());UXi(e);O.JSC$12219_responseText_=x.getResponseText();O.state_="Response received";O.dispatchEvent(new ZM("l"))},JD$=function(O){var x=O.getStatus();
O=Tc(O.getAllResponseHeaders());O=Xe(O,"X-Goog-Upload-Status");return x===200&&O==="active"},wxd=function(O){O=Tc(O.getAllResponseHeaders());
return Xe(O,"X-Goog-Upload-Status")==="final"},vxF=function(O){if(wxd(O))return!0;
O=O.getStatus();return O>=400&&O<500},SS4=function(O){var x;
return _.A(function(e){if(e.nextAddress==1){if(!O.blob_||O.originalBlobSize_<=0)return e.return(!1);if(O.blob_.size!==O.originalBlobSize_)return e.return(!0);_.tS(e,2);if(x=Z1R(O.blob_,0,1)){var l=e.yield,C=new dv,Q=llN(C);C.reader_.readAsBinaryString(x);e=l.call(e,Q,4)}else e=e.return(!0);return e}if(e.nextAddress!=2)return e.return(O.blob_.size!==O.originalBlobSize_);_.VP(e);return e.return(!0)})};var jE2=function(O,x,e,l,C,Q){_.tf.call(this);this.payload_=l;this.JSC$12222_url_=O;this.JSC$12222_method_=x;this.JSC$12222_headers_=e;this.JSC$12222_metadata_=C;this.encoding_=Q||"binary";O=new _.I3;this.boundary_="uploader-"+Of()+"-"+O.JSC$11326_toIsoString();this.JSC$12222_responseText_=this.JSC$12222_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12222_errorDescription_=null;this.JSC$12222_eventHandler_=new _.Ev(this);_.qq(this,this.JSC$12222_eventHandler_)};
_.c(jE2,d0p);_.b=jE2.prototype;
_.b.run=function(){var O=_.HX.clone(this.JSC$12222_headers_);this.payload_.length!=null&&(O["Content-Length"]=this.payload_.length);O=RCw(O);O["X-Goog-Upload-Protocol"]="multipart";O["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new tE;this.JSC$12222_eventHandler_.removeAll();this.JSC$12222_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12222_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12222_url_,this.JSC$12222_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12222_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",O)};
_.b.getResponseCode=function(){return this.JSC$12222_responseCode_};
_.b.getResponseText=function(){return this.JSC$12222_responseText_};
_.b.JSC$29710_getErrorDescription=function(){return this.JSC$12222_errorDescription_};
_.b.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12222_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new ZM("o")))};
_.b.pause=function(){};
_.b.onTransferProgress_=function(){this.dispatchEvent(new ZM("k"))};
_.b.onTransferComplete_=function(O){var x=O.target.getStatus();x===void 0||x===-1?(this.JSC$12222_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new ZM("n"))):(this.JSC$12222_responseCode_=x,O=O.target,x=Tc(O.getAllResponseHeaders()),UXi(x),this.JSC$12222_responseText_=O.getResponseText(),this.state_="Complete",this.dispatchEvent(new ZM("l")))};_.NVD=function(O,x,e,l){l=l===void 0?!1:l;if(e instanceof z_2)return new nxk(O,"POST",x,e.getInputElement(),"");if(typeof e==="string"||e instanceof String)return new jE2(O,"POST",x,e,"");var C=new qs(void 0);C.JSC$12219_url_=O;C.JSC$12219_method_="POST";C.JSC$12219_headers_=x;C.blob_=e;C.originalBlobSize_=e.size;C.JSC$12219_metadata_="";l&&(C.JSC$12219_withCredentials_=l);C.state_="Start";return C};var Iq=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Iq,_.TH);_.b=Iq.prototype;_.b.getEnableSsEngine=function(){return _.GB(this,2)};
_.b.getEnableAwr=function(){return _.GB(this,3)};
_.b.getAlohaAutoGaRollout=function(){return _.GB(this,5)};
_.b.getEnableConfigurator=function(){return _.GB(this,6)};
_.b.getEnableMweb=function(){return _.GB(this,7)};
var $0p=function(){var O=gx2();return _.yo(O,7,!0)};
Iq.prototype.getEnableCtlConsentCheckbox=function(){return _.GB(this,8)};
Iq.prototype.getEnableIframe=function(){return _.GB(this,9)};
var gx2=function(){var O=new Iq;O=_.yo(O,5,!0);O=_.yo(O,2,!0);O=_.yo(O,4,!1);O=_.yo(O,8,!0);return _.yo(O,9,!0)};
Iq.prototype.getEnableScreenshotNudge=function(){return _.GB(this,10)};
var iyk=function(){var O=$0p();return _.yo(O,10,!0)};
Iq.prototype.getEnableWebStartupConfigEndpoint=function(){return _.GB(this,11)};
Iq.prototype.getEnableJunkNudge=function(){return _.GB(this,12)};
var SNr=function(){var O=iyk();return _.yo(O,12,!0)};
_.b=Iq.prototype;_.b.getEnableConfiguratorLocale=function(){return _.GB(this,13)};
_.b.getEnableTinyNoPointer=function(){return _.GB(this,14)};
_.b.getEnableSupportSessionLogging=function(){return _.GB(this,15)};
_.b.getEnableFileUploadForScreenshot=function(){return _.GB(this,16)};
_.b.getEnableDirectDeflectionForSingleCategory=function(){return _.GB(this,17)};
_.b.getEnableImageSanitization=function(){return _.GB(this,18)};
_.b.getEnableAlohaBinarySplit=function(){return _.GB(this,19)};
_.b.getEnableDbFeedbackIntents=function(){return _.GB(this,20)};
_.b.getEnableMarkMandatoryFieldsWithRequired=function(){return _.GB(this,21)};
_.b.getEnableFeedbackCategoryCustomUi=function(){return _.GB(this,22)};
_.b.getEnableRealtimeCtl=function(){return _.GB(this,23)};var wPn=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(wPn,_.TH);var ais=[/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 s3V="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 Wii=_.zo(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),hCr=_.zo(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var rPr,dXs,HpL,nhw;var OhN,xCF;
OhN=function(O,x,e){O.timeOfStartCall=(new Date).getTime();var l=e||_.CV,C=l.document,Q=O.nonce||_.iI(l.document);Q&&!O.nonce&&(O.nonce=Q);if(O.flow=="help"){var L=_.i8("document.location.href",l);!O.helpCenterContext&&L&&(O.helpCenterContext=L.substring(0,1200));L=!0;if(x&&JSON&&JSON.stringify){var k=JSON.stringify(x);(L=k.length<=1200)&&(O.psdJson=k)}L||(x={invalidPsd:!0})}x=[O,x,e];l.GOOGLE_FEEDBACK_START_ARGUMENTS=x;e=O.feedbackServerUri||"//www.google.com/tools/feedback";if(L=l.GOOGLE_FEEDBACK_START)L.apply(l,x);
else{l=e+"/load.js?";for(var M in O)x=O[M],x==null||_.w7(x)||(l+=encodeURIComponent(M)+"="+encodeURIComponent(x)+"&");O=an(C).createElement("SCRIPT");Q&&O.setAttribute("nonce",Q);_.QP(O,_.aS(l));C.body.appendChild(O)}};
xCF=function(O,x,e,l){var C,Q;_.A(function(L){C=e||_.CV;var k=O.serverEnvironment==="DEV",M=e||_.CV;M=O.nonce||_.iI(M.document);k={integrationKeys:{productId:O.productId,feedbackBucket:O.bucket,triggerId:O.triggerId},callbacks:{onClose:O.callback,onLoad:O.onLoadCallback},formContent:{locale:O.locale,disableScreenshot:O.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:O.abuseLink,additionalDataConsent:O.additionalDataConsent},initializationData:{isLocalServer:k,nonce:M,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:O.feedbackServerUri,colorScheme:O.colorScheme},extraData:{productVersion:O.productVersion,authUser:O.authuser,configuratorId:O.configuratorId,customZIndex:O.customZIndex,tinyNoPointer:O.tinyNoPointer,
allowNonLoggedInFeedback:O.allowNonLoggedInFeedback,enableAnonymousFeedback:O.enableAnonymousFeedback}};x&&(M=new Map(Object.entries(x)),k.extraData.productSpecificData=M);Q=k;return L.yield(vhr(Q,l,C),0)})};
_.eU$=function(O,x,e){try{if(O.flow==="help"){var l=O.helpCenterPath.replace(/^\//,"");_.$y(e||window,"https://support.google.com/"+l)}else O.flow==="submit"?OhN(O,x,e):j37(O.productId,O.feedbackServerUri).then(function(C){C=_.y4(C,Iq,1);var Q=!pid||(C==null?void 0:C.getEnableMweb()),L=!O.tinyNoPointer||(C==null?void 0:C.getEnableTinyNoPointer());!C||C.getAlohaAutoGaRollout()&&Q&&L?xCF(O,x,e,C):OhN(O,x,e)},function(C){C&&C.name!=="DuplicateFormError"&&OhN(O,x,e)})}catch(C){xCF(O,x,e,null)}};
_.MB("userfeedback.api.startFeedback",_.eU$);var Nvn=/https?:\/\/\S+\.\S+/,ghi=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],$Xn=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var ml$=function(O){var x=O.split(""),e=[-263237435,15,x,function(l,C,Q){var L=C.length;Q.forEach(function(k,M,G){this.push(G[M]=C[(C.indexOf(k)-C.indexOf(this[M])+M+L--)%C.length])},l.split(""))},
function(l,C){l=(l%C.length+C.length)%C.length;C.splice(-l).reverse().forEach(function(Q){C.unshift(Q)})},
"response",function(){for(var l=64,C=[];++l-C.length-32;){switch(l){case 58:l-=14;case 91:case 92:case 93:continue;case 123:l=47;case 94:case 95:case 96:continue;case 46:l=95}C.push(String.fromCharCode(l))}return C},
null,12,1540023973,65941107,null,x,function(l,C){for(l=(l%C.length+C.length)%C.length;l--;)C.unshift(C.pop())},
695603893,function(l){for(var C=l.length;C;)l.push(l.splice(--C,1)[0])},
"'[;'[(",function(l,C){l.push(C)},
null,function(l,C,Q,L,k){return C(Q,L,k)},
"continuation",x,function(l,C){if(l.length!=0){C=(C%l.length+l.length)%l.length;var Q=l[0];l[0]=l[C];l[C]=Q}},
function(){for(var l=64,C=[];++l-C.length-32;){switch(l){case 91:l=44;continue;case 123:l=65;break;case 65:l-=18;continue;case 58:l=96;continue;case 46:l=95}C.push(String.fromCharCode(l))}return C},
'"),/]];'];e[7]=e;e[11]=e;e[18]=e;try{(((0,e[15])(e[21]),e[22])(e[11],e[9]),e[22])(e[new Date("1970-01-01T04:30:12.000+04:30")/1E3],e[1]),((0,e[22])(e[11],e[23]),e[4])(e[10],e[18]),(0,e[20])(e[21],e[14])<<(0,e[17])(e[18],e[1]),(0,e[4])(e[8],e[21]),(0,e[19])((0,e[19])((0,e[17])(e[7],e[9]),e[3],e[20],(0,e[6])(),e[2]),e[3],e[5],(0,e[15])(),e[2])}catch(l){return"aTlOUOubTO4AP____8P_"+O}return x.join("")};_.l7N=new _.$x("runAttestationCommand");var CYJ=new _.$x("verifyCommand");_.LM=new _.$x("accessibilityContext");var QP3=new _.$x("accessibilityData");var bhD=new _.$x("profileCardCommand");var mN7=new _.$x("signInEndpoint");var azm=new _.$x("signOutEndpoint");var LB$;_.T1d=new _.$x("accountItemSectionRenderer");LB$=new _.$x("accountItemRenderer");_.k6T=new _.$x("saveCommandToSessionStorageAction");var AnR=new _.$x("crossAccountChannelTransferEndpoint");var Vqs=new _.$x("getAccountMenuEndpoint");_.p_7=new _.$x("getAccountSwitcherEndpoint");var ITV=new _.$x("getAccountsListEndpoint");var MDR=new _.$x("getAccountsListInnertubeEndpoint");_.DC4=new _.$x("addToToastAction");var G6d=new _.$x("hideEnclosingAction");_.Vq=new _.$x("replaceEnclosingAction");var FB$=new _.$x("buttonRefreshAction");var XY4=new _.$x("adsControlFlowOpportunityReceivedCommand");var osJ=new _.$x("openAdAllowlistInstructionCommand");var ynN=new _.$x("videoMastheadAdPrimaryVideoRenderer");var Zh2=new _.$x("displayAdRenderer");_.Esd=new _.$x("inFeedAdLayoutRenderer");var tDL=new _.$x("sequenceItemInPlayerAdLayoutRenderer");_.q_d=new _.$x("adSlotRenderer");var PY$=new _.$x("adAvatarViewModel");var cnd=new _.$x("adBadgeViewModel");var I7d=new _.$x("adButtonViewModel");var VDL=new _.$x("adImageViewModel");var wGn=new _.$x("reelsAdCardButtonedViewModel");var pYd=new _.$x("reelsPlayerOverlayLayoutViewModel");var RUJ=new _.$x("updateConversationIdCommand");var UC2=new _.$x("showSchedulingPanelCommand");var a72=new _.$x("backstageCommentsRenderer");var mCk=new _.$x("backstageImageRenderer");var sPd=new _.$x("backstagePostRenderer");var WBR=new _.$x("backstageZeroStateRenderer");var hUk=new _.$x("postRenderer");var zU4=new _.$x("sharedPostRenderer");var rnT=new _.$x("createBackstagePostEndpoint");var HhT=new _.$x("getPostVideoPreviewEndpoint");var KBL=new _.$x("updateBackstagePostEndpoint");var dCz=new _.$x("filterChipTransformCommand");var nsp=new _.$x("insertRichSectionCommand");var g1n=new _.$x("talkToRecsDeselectCommand");var OaV=new _.$x("talkToRecsNextCommand");var NJL=new _.$x("talkToRecsSelectCommand");var uNp=new _.$x("talkToRecsUpdateTextCommand");_.Q9=new _.$x("browseEndpoint");_.Y_N=new _.$x("confirmDialogEndpoint");var B1d=new _.$x("expandOnHoverCardRenderer");var vsR=new _.$x("lumiereShelfDetailsRenderer");var f7F=new _.$x("revealBusinessEmailCommand");var Jn3=new _.$x("validateChannelHandleCommand");var wYd=new _.$x("channelCreationFormEndpoint");var S_d=new _.$x("aboutChannelViewModel");var jPz=new _.$x("channelThumbnailWithLinkRenderer");var N1p=new _.$x("channelCreationServiceEndpoint");var gs3=new _.$x("updateChannelPageSettingsEndpoint");var pY=function(O){this.delegate=O},Rq=function(){pY.apply(this,arguments)};
_.c(Rq,pY);_.Dy.Object.defineProperties(Rq.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(O){this.delegate.entityMetadata=O}}});var $CJ=function(){Rq.apply(this,arguments)};
_.c($CJ,Rq);$CJ.prototype.getAssociations=function(){return[]};
$CJ.prototype.getTypeName=function(){return"channelHandle"};var a68=new _.$x("webThumbnailDetailsExtensionData");var NAW=new _.$x("commandContext");var ihz=new _.$x("addVideoLinkAction");var Opk=new _.$x("banAuthorAction");var xXz=new _.$x("createCommentAction");var eC$=new _.$x("createCommentReplyAction");var lid=new _.$x("createPollAction");var CGp=new _.$x("hideIdentityChipAction");var Q3D=new _.$x("openUpdateCommentDialogAction");var bpL=new _.$x("pinCommentAction");var TvF=new _.$x("removeCommentAction");var Li$=new _.$x("unpinCommentAction");var Ul=new _.$x("updateBackstagePollAction");var ky$=new _.$x("updateCommentVoteAction");var APd=new _.$x("commentThreadRenderer");var MPT=function(){Rq.apply(this,arguments)};
_.c(MPT,Rq);MPT.prototype.getAssociations=function(){return[]};
MPT.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var DXd=function(){Rq.apply(this,arguments)};
_.c(DXd,Rq);DXd.prototype.getAssociations=function(){return[]};
DXd.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Gy2=new _.$x("commentDialogRenderer");var FiR=new _.$x("reloadCommentsCommand");var XPJ=new _.$x("updateCommentsSettingsEndpoint");var ohp=new _.$x("commentViewModel");var yPR=new _.$x("triStateButtonViewModel");var Zp2=new _.$x("voiceReplyContainerViewModel");_.ih=new _.$x("commandExecutorCommand");var cs=new _.$x("emoji");var EhL=new _.$x("updateCreatorChannelInnertubeCommand");_.tP$=new _.$x("appendContinuationItemsAction");_.qNd=new _.$x("changeEngagementPanelVisibilityAction");_.U1=new _.$x("continuationCommand");var PGF=new _.$x("hideReportedCommentAction");var cPp=new _.$x("listMutationCommand");_.aq=new _.$x("openPopupAction");var Iip=new _.$x("persistSubscriptionsDisplayPreferencesCommand");var Wid;_.VP$=new _.$x("playlistRemoveVideosAction");_.pPR=new _.$x("updatePlaylistAction");_.RC$=new _.$x("addToPlaylistCommand");_.UXd=new _.$x("endPlaylistCommand");_.aiL=new _.$x("recoverPlaylistCommand");_.mXp=new _.$x("refreshPlaylistCommand");_.s32=new _.$x("refreshFormCommand");Wid=new _.$x("openOnePickAddVideoModalCommand");_.WZs=new _.$x("reloadContinuationItemsCommand");_.hCF=new _.$x("scrollToEngagementPanelCommand");var zCT=new _.$x("selectCountryCommand");var rP4=new _.$x("showReloadUiCommand");var HpJ=new _.$x("undoFeedbackAction");var KiR=new _.$x("updateButtonAction");var dXL=new _.$x("updateSubscribeButtonAction");var nh$=new _.$x("updateToggleAction");var uJN=new _.$x("webNativeShareCommand");_.e6=new _.$x("webCommandMetadata");_.m5=new _.$x("webHandleServiceEndpointExtension");var VAL=new _.$x("webNavigationEndpointData");var YNd=new _.$x("backgroundAudioPlaybackCommand");var Bv2=new _.$x("copyLinkCommand");var vhp=new _.$x("playlistVotingRefreshPopupCommand");var fiF=new _.$x("selectChipCommand");var JPL=new _.$x("setCookieCommand");var wPD=new _.$x("setLocalStorageCommand");var SNF=new _.$x("setPrefStorageEntryCommand");var $XD;_.j3N=new _.$x("settingsUpdateCheckboxCommand");_.NvD=new _.$x("settingsUpdateTextCommand");_.ghd=new _.$x("settingsUpdateOptionsCommand");$XD=new _.$x("settingsUpdateSwitchCommand");_.ipN=new _.$x("settingsUpdateConnectedAppRendererCommand");var O6F=new _.$x("showCreatorChatbotEngagementPanelCommand");var x_z=new _.$x("updateTextInputFormFieldRendererCommand");var ebN=new _.$x("updateToggleButtonStateCommand");var lm$=new _.$x("updateUrlParamCommand");var Czd=new _.$x("webSubmitFormCommand");var Q1T=new _.$x("channelSwitcherPageRenderer"),b6d=new _.$x("updateChannelSwitcherPageAction");_.dj=new _.$x("continuationItemRenderer");_.sl=new _.$x("richItemRenderer");var T2N=new _.$x("richSectionRenderer");_.L_k=new _.$x("richShelfRenderer");_.kkT=new _.$x("metadataBadgeRenderer");_.A5F=new _.$x("multiPageMenuNotificationSectionRenderer");_.MaT=new _.$x("playlistLoopButtonStateRenderer");var D_T=new _.$x("claimLegacyYoutubeChannelEndpoint");var Gkk=new _.$x("getNotificationMenuEndpoint");var F_$=new _.$x("getSearchInVideoCommand");_.Xg4=new _.$x("getTranscriptEndpoint");_.xm=new _.$x("signalServiceEndpoint");var oTR=new _.$x("verifyAgeEndpoint");var ha8=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ha8,_.TH);ha8.prototype.getPath=function(){return _.oK(this,1)};
ha8.prototype.getValue=function(){return _.oK(this,2)};var y52=[0,_.d4,-1];var Z6R=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Z6R,_.TH);var Wa8=_.yc(Z6R,[0,_.Yi,y52]);var ETR=new _.$x("dismissalEndpoint");var taz=new _.$x("elementsCommand");_.VG=new _.$x("innertubeCommand");var qFk=new _.$x("multipleInlinePlaybackCommand");var kIV=new _.$x("loggingDirectives");var Pz3=new _.$x("acknowledgeChannelTouStrikeCommand");var c5d=function(){Rq.apply(this,arguments)};
_.c(c5d,Rq);c5d.prototype.getAssociations=function(){return[]};
c5d.prototype.getTypeName=function(){return"booleanEntity"};var Imk=function(){Rq.apply(this,arguments)};
_.c(Imk,Rq);Imk.prototype.getAssociations=function(){return[]};
Imk.prototype.getTypeName=function(){return"stringEntity"};var dS=new _.$x("entityBatchUpdate");_.iqV=new _.$x("entityUpdateCommand");var VaF=function(){Rq.apply(this,arguments)};
_.c(VaF,Rq);VaF.prototype.getAssociations=function(){var O=[];this.delegate.alternateChannel&&O.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&O.push.apply(O,_.Kx(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&O.push(this.delegate.oneofChannelEntity);return[].concat(_.Kx(new Set(O)))};
VaF.prototype.getTypeName=function(){return"fakeChannel"};var pgz=function(){Rq.apply(this,arguments)};
_.c(pgz,Rq);pgz.prototype.getAssociations=function(){var O=[];this.delegate.entryCollection&&O.push(this.delegate.entryCollection);return[].concat(_.Kx(new Set(O)))};
pgz.prototype.getTypeName=function(){return"fakePlaylist"};
var RbF=function(){Rq.apply(this,arguments)};
_.c(RbF,Rq);RbF.prototype.getAssociations=function(){var O=[];this.delegate.parentPlaylist&&O.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var x=_.T(this.delegate.entries),e=x.next();!e.done;e=x.next())O.push.apply(O,_.Kx((new U_F(e.value)).getAssociations()));return[].concat(_.Kx(new Set(O)))};
RbF.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var U_F=function(){pY.apply(this,arguments)};
_.c(U_F,pY);U_F.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);return[].concat(_.Kx(new Set(O)))};var amN=function(){Rq.apply(this,arguments)};
_.c(amN,Rq);amN.prototype.getAssociations=function(){var O=[];this.delegate.descriptionEntity&&O.push(this.delegate.descriptionEntity);this.delegate.creators&&O.push.apply(O,_.Kx(this.delegate.creators));this.delegate.theBiggestFan&&O.push(this.delegate.theBiggestFan);return[].concat(_.Kx(new Set(O)))};
amN.prototype.getTypeName=function(){return"fakeVideo"};
var m_J=function(){Rq.apply(this,arguments)};
_.c(m_J,Rq);m_J.prototype.getAssociations=function(){return[]};
m_J.prototype.getTypeName=function(){return"fakeVideoDescription"};var s1N=new _.$x("fantasyRosterViewModel");var W_z=new _.$x("addFollowUpSurveyCommand");var hbR=new _.$x("getSurveyCommand");var zbN=new _.$x("ratingSurveyOptionRenderer");_.Ee=new _.$x("feedbackEndpoint");var r5F=new _.$x("reportHistoryTableCellRenderer"),H62=new _.$x("reportHistoryTableTextCellRenderer"),K_d=new _.$x("reportHistoryTableReasonCellRenderer");_.d_L=new _.$x("flagEndpoint");_.nTT=new _.$x("flowNextStepCommand");_.uI4=new _.$x("flowPrevStepCommand");var YF$=new _.$x("getFlowCommand");var B2R=new _.$x("submitFormWithValidationFlowCommand");_.vTd=new _.$x("updateFlowCommand");var fmF=function(){Rq.apply(this,arguments)};
_.c(fmF,Rq);fmF.prototype.getAssociations=function(){return[]};
fmF.prototype.getTypeName=function(){return"flowStateEntity"};var J5p=new _.$x("flowFormState");_.Wj=new _.$x("flowStepRenderer");var wgL=new _.$x("gameCardRenderer");var SFD=new _.$x("accountLinkingStateChangedCommand");var j1J=function(){Rq.apply(this,arguments)};
_.c(j1J,Rq);j1J.prototype.getAssociations=function(){return[]};
j1J.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var N23=new _.$x("changeMiniAppPlayStateCommand");var gTz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(gTz,_.TH);var hE=[1,2,3];var $_L=[0,hE,bQk,_.um,$kp];var i64=_.yc(gTz,$_L),OYR=_.Eh($_L);var xs4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(xs4,_.TH);var etd=[0,_.sa,_.d4];var lM$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(lM$,_.TH);var CNF=[0,_.d4,_.sa,-1];var zU=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(zU,_.TH);var QqL=_.Eh([0,1,etd,_.JO,CNF]);var bYN=new _.$x("miniAppScoreChallengeViewModel");var Tfz=new _.$x("miniGameCardViewModel");var L53=new _.$x("teaserCardViewModel");var kUJ=function(){Rq.apply(this,arguments)};
_.c(kUJ,Rq);kUJ.prototype.getAssociations=function(){return[]};
kUJ.prototype.getTypeName=function(){return"logoEntity"};var AEk=new _.$x("feedbackItemRenderer");var Mmz=function(){Rq.apply(this,arguments)};
_.c(Mmz,Rq);Mmz.prototype.getAssociations=function(){return[]};
Mmz.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.DsR=new _.$x("playerInterstitialRenderer");var GUD=new _.$x("getKidsBlocklistPickerCommand");_.F5J=new _.$x("updateKidsBlacklistEndpoint");_.I$=new _.$x("likeEndpoint");var XjF,ooF,yEd;XjF=new _.$x("addChatItemAction");ooF=new _.$x("removeChatItemAction");yEd=new _.$x("markChatItemAsDeletedAction");_.ZYz=new _.$x("setLiveChatCollapsedStateAction");var Eok=function(){Rq.apply(this,arguments)};
_.c(Eok,Rq);Eok.prototype.getAssociations=function(){return[]};
Eok.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var tmL=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(tmL,_.TH);tmL.prototype.getPayloadCase=function(){return _.ki(this,ql4)};
var ql4=[3,4];var PN$=[0,_.Yi,[0,[1,2],_.um,_.BM,[0,_.n0,1,_.n0]]];var cEN=[0,_.d4,-1];var IMd=[0,[1],_.um];var rf=[0,[1,2],_.um,_.BM,[0,_.JO]];var Hj=[0,_.d4];var Vm2=[0,[0,_.r4,_.zB,[0,_.n0,_.w4,_.n0]],1,[0,_.r4]];var pjd=[0,WM];var Rt4=[0,WM];var Us3=[0,Rt4,pjd];var aM$=[0,_.Yi,[0,[1,2],_.um,-1],_.r4];var msd=[0,[2],1,_.BM,[0,_.n0,-1,aM$]];var sq$=[0,[1],_.BM,[0,_.n0,_.d4,_.w4,1,aM$]];var W5D=[0,_.zB,-1,gd2,_.JO];var htJ=[0,[0,mt,-3],-4];var KY=[0,_.r4,-3,_.d4,_.r4,_.Np,_.r4,PN$,_.r4,-2];var df=[0,_.Yi,[0,[1,2],_.um,-1],_.r4,_.d4];var ztF=[0,[3],rf,[0,[2,3,4],Mpz,_.um,-2],_.BM,[0,_.d4],_.sa];var rE3=[0,[3,5],_.d4,hO,_.BM,[0,1,_.sa,_.JO],_.JO,_.BM,[0,_.JO,_.sa]];var HYF=[0,2,hO,_.d4,-1];var K5$=[0,CLk];var dsR=[0,[3,4],2,OQz,_.um,_.d4];var noN=[0,_.JO,-2,1,_.d4];var ufL=[0,_.d4,-1,_.JO];var YlT=[0,Hj,function(){return nY},
Hj,_.d4],Bfd=[0,_.JO,Hj,rf,function(){return nY},
_.d4],nY=[-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],Hj,hO,[0,_.r4,1,_.r4,1,_.r4,1,_.JO,-1,Hj],[0,1,_.r4,2,_.r4,_.JO,_.r4],1,hO,-1,_.d4,hO,2,mt,[0,mt,hO],_.d4,1,Vm2,1,rf,_.Np,1,[0,[0,_.Yi,[0,_.d4,_.r4,_.JO]]],[0,_.r4,[0,_.sa,[0,_.w4]],_.sa,1,[0,eON,-1]],_.d4,[0,1,_.d4],76,_.BM,[0,rf,df,Vm2,1,[0,_.Yi,df]],1,_.BM,[0,rf,_.d4,_.r4],_.BM,
[0,rf,IMd],_.BM,[0,rf,IMd,hO],_.BM,[0,rf,IMd],_.BM,[0,rf,_.Yi,Hj,rf,TLT],_.BM,[0,rf,Hj,_.d4],_.BM,[0,rf,_.r4,KY,-1,_.r4],4,_.BM,[0,rf,_.r4,hO,KY,_.r4],_.BM,[0,[4,9],rf,_.JO,hO,_.um,df,1,Vm2,_.d4,_.um,noN],_.BM,[0,rf,Hj,rf,_.JO,_.d4],_.BM,[0,_.r4,rf,KY,_.r4,_.d4],_.BM,[0,rf,Hj,rf,_.JO,_.d4],1,_.BM,[0,rf,_.JO,_.d4,KY],_.BM,[0,rf,_.JO,[0,_.d4,hO],_.d4,hO,_.d4,f0,-2,3,ufL,_.Yi,ufL,ufL,noN],_.BM,[0,rf,_.JO,sq$,_.Yi,[0,Rt4,msd],Hj,_.Yi,Us3,_.d4,1,_.JO,W5D,htJ,NNT,-1],_.BM,[0,rf,[0,_.w4,-1,sq$,_.Yi,[0,Rt4,
msd,pjd],[0,_.gp],1,_.n0],Hj,_.d4],_.BM,[0,rf,df,_.d4,[0,_.zB]],_.BM,function(){return Bfd},
_.BM,[0,rf,hO,_.d4,-1,_.r4],_.BM,[0,[6,7],rf,_.Yi,HYF,_.JO,df,1,_.BM,dsR,_.BM,K5$],_.BM,[0,_.Yi,HYF,_.JO,_.r4],_.BM,[0,_.d4,b$z,-1],_.BM,[0,Hj,_.Yi,Us3,_.d4],_.BM,[0,rf,Hj,_.d4],_.BM,[0,f0,_.d4],_.BM,[0,cEN],_.BM,[0,cEN],_.BM,[0,df],_.BM,[0,Hj,df],_.BM,function(){return YlT},
_.BM,[0,Hj,_.d4],_.BM,[0,Hj,_.d4],1,_.BM,[0,_.r4,rf,KY,_.r4,KY],_.BM,[0,_.gp],1,_.BM,[0],1,_.BM,[0,Hj,_.JO,rf,_.JO],_.BM,[0,[1,2],_.BM,dsR,_.BM,K5$,hO],_.BM,[0,_.gp,df,rE3,_.d4,hO],_.BM,[0,rE3,_.d4,hO],_.BM,[0,W5D,df,_.r4,htJ],_.BM,ztF,_.BM,[0],_.BM,[0,_.d4,-1,_.sa],_.BM,[0,Hj,_.d4],_.BM,[0,ztF,_.sa,_.d4],_.BM,[0,rf,KY,_.r4],_.BM,[0,rf,KY,_.r4],_.BM,[0,W5D,htJ,df,_.Np,_.r4,NNT,-1],_.BM,[0,rf,KY,_.r4]];var voR=[0,_.Yi,nY];var fMD=_.yc(tmL,[0,ql4,1,_.sa,_.BM,[0,[18,22,24],voR,3,[0,voR],1,_.sa,[0,_.Yi,[0,hO,mt],hO],1,nY,-1,[0,_.HM,-2,_.Np,_.HM,-1,_.Np,_.HM,PN$,_.HM,-2],STN,[!0,_.d4,[0,IMd,2,_.d4,hO,_.r4,2,_.d4,f0]],[0,[1,2,3],[5,6],_.BM,[0,_.n0],_.BM,[0,_.n0,-1],_.BM,[0,_.n0],1,_.BM,cEN,_.BM,[0,_.d4]],[0,nY,-1],_.gp,nY,_.BM,nY,[0,voR],_.sa,nY,_.BM,nY,_.d4,_.BM,nY],_.BM,psN,_.sa]);var JEp=new _.$x("liveChatEndpoint");var wjL=new _.$x("liveChatItemContextMenuEndpoint");var SlL=new _.$x("liveChatReplayEndpoint");_.jqd=new _.$x("emojiPickerRenderer");var NfJ=new _.$x("liveChatAuthorBadgeViewModel");var go4=new _.$x("deleteLiveChatMessageCommand");var $sz=new _.$x("liveChatActionEndpoint");var iYd=new _.$x("createLiveChatPollEndpoint");var Ooz=new _.$x("manageLiveChatUserEndpoint");var xKD=new _.$x("moderateLiveChatEndpoint");_.em3=new _.$x("sendLiveChatMessageEndpoint");var lvT=new _.$x("sendLiveChatVoteEndpoint");var CQz=new _.$x("clearLocationCommand");var Q7d=new _.$x("resolveLocationCommand");var bo4=new _.$x("interactionLoggingCommandMetadata");var Tx2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Tx2,_.TH);var Lwd=function(O,x){return _.yW(O,1,x)};var kjL=[0,_.r4];var Ax$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Ax$,_.TH);var MoL=function(O,x){return Un(O,1,Tx2,x)};Ax$.prototype.JSC$12316_serializeBinary=wwL([0,_.Yi,kjL]);var tam={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 DKR={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"},
GjD={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 eLr={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"};_.NWr=new _.$x("logFlowLoggingEventCommand");_.AB=new _.$x("loggingContext");var Fw$=new _.$x("audioTrackSelectActionCommand");var XuR=new _.$x("captionLanguageSelectActionCommand");var ojT=new _.$x("showAudioTrackPickerActionCommand");var yx4=new _.$x("showCaptionLanguageSelectActionCommand");var Zo4=new _.$x("dismissDialogEndpoint");var Ejd=new _.$x("dismissPlayerOverlayCommand");var tod=new _.$x("hideItemSectionVideosByIdCommand");var q7p=new _.$x("showMiniplayerCommand");var PQN=function(){Rq.apply(this,arguments)};
_.c(PQN,Rq);PQN.prototype.getAssociations=function(){return[]};
PQN.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var cxL=function(){Rq.apply(this,arguments)};
_.c(cxL,Rq);cxL.prototype.getAssociations=function(){return[]};
cxL.prototype.getTypeName=function(){return"downloadStatusEntity"};var Iv4=function(){Rq.apply(this,arguments)};
_.c(Iv4,Rq);Iv4.prototype.getAssociations=function(){return[]};
Iv4.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var Vo3=function(){Rq.apply(this,arguments)};
_.c(Vo3,Rq);Vo3.prototype.getAssociations=function(){var O=[];this.delegate.downloadsList&&O.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&O.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&O.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&O.push(this.delegate.refresh);return[].concat(_.Kx(new Set(O)))};
Vo3.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var puR=function(){Rq.apply(this,arguments)};
_.c(puR,Rq);puR.prototype.getAssociations=function(){var O=[];this.delegate.refresh&&O.push(this.delegate.refresh);if(this.delegate.downloads)for(var x=_.T(this.delegate.downloads),e=x.next();!e.done;e=x.next())O.push.apply(O,_.Kx((new RmR(e.value)).getAssociations()));return[].concat(_.Kx(new Set(O)))};
puR.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var RmR=function(){pY.apply(this,arguments)};
_.c(RmR,pY);RmR.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);this.delegate.playlist&&O.push(this.delegate.playlist);this.delegate.videoItem&&O.push(this.delegate.videoItem);this.delegate.playlistItem&&O.push(this.delegate.playlistItem);return[].concat(_.Kx(new Set(O)))};var UKF=function(){Rq.apply(this,arguments)};
_.c(UKF,Rq);UKF.prototype.getAssociations=function(){var O=[];this.delegate.localImageEntities&&O.push.apply(O,_.Kx(this.delegate.localImageEntities));return[].concat(_.Kx(new Set(O)))};
UKF.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var avd=function(){Rq.apply(this,arguments)};
_.c(avd,Rq);avd.prototype.getAssociations=function(){var O=[];this.delegate.playbackData&&O.push(this.delegate.playbackData);this.delegate.localImageEntities&&O.push.apply(O,_.Kx(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Kx(new Set(O)))};
avd.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var mKL=function(){Rq.apply(this,arguments)};
_.c(mKL,Rq);mKL.prototype.getAssociations=function(){return[]};
mKL.prototype.getTypeName=function(){return"offlineabilityEntity"};var s7N=function(){Rq.apply(this,arguments)};
_.c(s7N,Rq);s7N.prototype.getAssociations=function(){var O=[];this.delegate.fakeChildren&&O.push.apply(O,_.Kx(this.delegate.fakeChildren));return[].concat(_.Kx(new Set(O)))};
s7N.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var WwD=function(){Rq.apply(this,arguments)};
_.c(WwD,Rq);WwD.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);this.delegate.playbackData&&O.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&O.push(this.delegate.offlineVideoPolicy);return[].concat(_.Kx(new Set(O)))};
WwD.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var hm3=function(){Rq.apply(this,arguments)};
_.c(hm3,Rq);hm3.prototype.getAssociations=function(){return[]};
hm3.prototype.getTypeName=function(){return"continuationTokenEntity"};var zmN=function(){Rq.apply(this,arguments)};
_.c(zmN,Rq);zmN.prototype.getAssociations=function(){var O=[];this.delegate.channelOwner&&O.push(this.delegate.channelOwner);this.delegate.videos&&O.push.apply(O,_.Kx(this.delegate.videos));this.delegate.collaboratorChannels&&O.push.apply(O,_.Kx(this.delegate.collaboratorChannels));this.delegate.downloadState&&O.push(this.delegate.downloadState);this.delegate.refresh&&O.push(this.delegate.refresh);return[].concat(_.Kx(new Set(O)))};
zmN.prototype.getTypeName=function(){return"mainPlaylistEntity"};var rxd=function(){Rq.apply(this,arguments)};
_.c(rxd,Rq);rxd.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);this.delegate.channelContributor&&O.push(this.delegate.channelContributor);return[].concat(_.Kx(new Set(O)))};
rxd.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var Ho3=function(){pY.apply(this,arguments)};
_.c(Ho3,pY);Ho3.prototype.getAssociations=function(){var O=[];this.delegate.recommendedVideoMetadata&&O.push.apply(O,_.Kx((new KwT(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Kx(new Set(O)))};
var KwT=function(){pY.apply(this,arguments)};
_.c(KwT,pY);KwT.prototype.getAssociations=function(){var O=[];this.delegate.localImageEntities&&O.push.apply(O,_.Kx(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Kx(new Set(O)))};var dKp=function(){pY.apply(this,arguments)};
_.c(dKp,pY);dKp.prototype.getAssociations=function(){var O=[];this.delegate.playbackPosition&&O.push(this.delegate.playbackPosition);return[].concat(_.Kx(new Set(O)))};var njD=function(){Rq.apply(this,arguments)};
_.c(njD,Rq);njD.prototype.getAssociations=function(){var O=[];this.delegate.owner&&O.push(this.delegate.owner);this.delegate.downloadState&&O.push(this.delegate.downloadState);this.delegate.userState&&O.push.apply(O,_.Kx((new dKp(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&O.push.apply(O,_.Kx((new Ho3(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Kx(new Set(O)))};
njD.prototype.getTypeName=function(){return"mainVideoEntity"};var utd=function(){Rq.apply(this,arguments)};
_.c(utd,Rq);utd.prototype.getAssociations=function(){var O=[];this.delegate.userChannelDetails&&O.push(this.delegate.userChannelDetails);return[].concat(_.Kx(new Set(O)))};
utd.prototype.getTypeName=function(){return"ytMainChannelEntity"};var Y7k=function(){Rq.apply(this,arguments)};
_.c(Y7k,Rq);Y7k.prototype.getAssociations=function(){var O=[];this.delegate.channelOwner&&O.push(this.delegate.channelOwner);this.delegate.playbackPosition&&O.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&O.push.apply(O,_.Kx(this.delegate.localImageEntities));this.delegate.downloadStatus&&O.push(this.delegate.downloadStatus);return[].concat(_.Kx(new Set(O)))};
Y7k.prototype.getTypeName=function(){return"ytMainVideoEntity"};var oaV=new _.$x("downloadsPageSmartDownloadsOptInBannerParams");var tOi=new _.$x("downloadsPageUpsellBannerParams");var Bx$=function(){Rq.apply(this,arguments)};
_.c(Bx$,Rq);Bx$.prototype.getAssociations=function(){return[]};
Bx$.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var vjT=function(){Rq.apply(this,arguments)};
_.c(vjT,Rq);vjT.prototype.getAssociations=function(){return[]};
vjT.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var fvJ=function(){Rq.apply(this,arguments)};
_.c(fvJ,Rq);fvJ.prototype.getAssociations=function(){return[]};
fvJ.prototype.getTypeName=function(){return"macroMarkerEntity"};var Jxp=function(){Rq.apply(this,arguments)};
_.c(Jxp,Rq);Jxp.prototype.getAssociations=function(){return[]};
Jxp.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var wuF=function(){Rq.apply(this,arguments)};
_.c(wuF,Rq);wuF.prototype.getAssociations=function(){return[]};
wuF.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var S7R=function(){Rq.apply(this,arguments)};
_.c(S7R,Rq);S7R.prototype.getAssociations=function(){return[]};
S7R.prototype.getTypeName=function(){return"playerStateEntity"};var j7R=function(){Rq.apply(this,arguments)};
_.c(j7R,Rq);j7R.prototype.getAssociations=function(){return[]};
j7R.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var NxF=function(){Rq.apply(this,arguments)};
_.c(NxF,Rq);NxF.prototype.getAssociations=function(){return[]};
NxF.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var gjD=function(){Rq.apply(this,arguments)};
_.c(gjD,Rq);gjD.prototype.getAssociations=function(){return[]};
gjD.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.uN=new _.$x("dislikeButtonViewModel");_.Yo=new _.$x("likeButtonViewModel");var $Kd=new _.$x("videoSummaryContentViewModel");var ioL=new _.$x("videoSummaryParagraphViewModel");var OL2=new _.$x("changeTimelyActionVisibilityCommand");var xnR=new _.$x("hideEngagementPanelEndpoint");var eqD=new _.$x("refreshPanelEndpoint");var l5$=new _.$x("scrollToSectionEndpoint");var CX4=new _.$x("seekToVideoTimestampCommand");_.Zr=new _.$x("showEngagementPanelEndpoint");var Qd3=new _.$x("showTransientPlayerScrimOverlayCommand");var bL3=new _.$x("toggleEngagementPanelCommand");_.THD=new _.$x("createBroadcastCommand");var LGD=new _.$x("metadataUpdateCommand");var kKF=function(){Rq.apply(this,arguments)};
_.c(kKF,Rq);kKF.prototype.getAssociations=function(){return[]};
kKF.prototype.getTypeName=function(){return"featuredProductsEntity"};var Ad$=function(){Rq.apply(this,arguments)};
_.c(Ad$,Rq);Ad$.prototype.getAssociations=function(){return[]};
Ad$.prototype.getTypeName=function(){return"pinnedProductEntity"};var MG3=function(){Rq.apply(this,arguments)};
_.c(MG3,Rq);MG3.prototype.getAssociations=function(){return[]};
MG3.prototype.getTypeName=function(){return"trendingOfferEntity"};_.DnL=new _.$x("merchandiseShelfRenderer");var GK2=new _.$x("shoppingContentLineItemViewModel");var FGF=new _.$x("gridMovieRenderer");_.Xrz=new _.$x("movieRenderer");var oqD=function(){Rq.apply(this,arguments)};
_.c(oqD,Rq);oqD.prototype.getAssociations=function(){return[]};
oqD.prototype.getTypeName=function(){return"compositeSourceEntity"};var ydp=function(){Rq.apply(this,arguments)};
_.c(ydp,Rq);ydp.prototype.getAssociations=function(){var O=[];this.delegate.compositeSourceKeys&&O.push.apply(O,_.Kx(this.delegate.compositeSourceKeys));return[].concat(_.Kx(new Set(O)))};
ydp.prototype.getTypeName=function(){return"multiviewStagingEntity"};var ZLN=function(){Rq.apply(this,arguments)};
_.c(ZLN,Rq);ZLN.prototype.getAssociations=function(){var O=[];this.delegate.trackDownloadMetadatas&&O.push.apply(O,_.Kx(this.delegate.trackDownloadMetadatas));return[].concat(_.Kx(new Set(O)))};
ZLN.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Eq4=function(){Rq.apply(this,arguments)};
_.c(Eq4,Rq);
Eq4.prototype.getAssociations=function(){var O=[];this.delegate.downloadedTracks&&O.push.apply(O,_.Kx(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&O.push.apply(O,_.Kx(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&O.push.apply(O,_.Kx(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&O.push.apply(O,_.Kx(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&O.push.apply(O,_.Kx(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
O.push.apply(O,_.Kx(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&O.push.apply(O,_.Kx(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&O.push.apply(O,_.Kx(this.delegate.metadataOnlyTracks));return[].concat(_.Kx(new Set(O)))};
Eq4.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var tG2=function(){Rq.apply(this,arguments)};
_.c(tG2,Rq);tG2.prototype.getAssociations=function(){var O=[];this.delegate.trackDownloadMetadatas&&O.push.apply(O,_.Kx(this.delegate.trackDownloadMetadatas));return[].concat(_.Kx(new Set(O)))};
tG2.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var q2z=function(){Rq.apply(this,arguments)};
_.c(q2z,Rq);q2z.prototype.getAssociations=function(){var O=[];this.delegate.playbackData&&O.push(this.delegate.playbackData);this.delegate.localImageEntities&&O.push.apply(O,_.Kx(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Kx(new Set(O)))};
q2z.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var PXT=function(){Rq.apply(this,arguments)};
_.c(PXT,Rq);
PXT.prototype.getAssociations=function(){var O=[];this.delegate.musicLibraryStatusEntity&&O.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&O.push.apply(O,_.Kx(this.delegate.primaryArtists));this.delegate.details&&O.push(this.delegate.details);this.delegate.userDetails&&O.push(this.delegate.userDetails);this.delegate.tracks&&O.push.apply(O,_.Kx(this.delegate.tracks));this.delegate.share&&O.push(this.delegate.share);this.delegate.downloadMetadata&&O.push(this.delegate.downloadMetadata);this.delegate.refresh&&
O.push(this.delegate.refresh);return[].concat(_.Kx(new Set(O)))};
PXT.prototype.getTypeName=function(){return"musicAlbumRelease"};
var cdF=function(){Rq.apply(this,arguments)};
_.c(cdF,Rq);cdF.prototype.getAssociations=function(){var O=[];this.delegate.albumRelease&&O.push(this.delegate.albumRelease);this.delegate.tracks&&O.push.apply(O,_.Kx(this.delegate.tracks));return[].concat(_.Kx(new Set(O)))};
cdF.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var I5d=function(){Rq.apply(this,arguments)};
_.c(I5d,Rq);I5d.prototype.getAssociations=function(){var O=[];this.delegate.albumRelease&&O.push(this.delegate.albumRelease);return[].concat(_.Kx(new Set(O)))};
I5d.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var VG4=function(){Rq.apply(this,arguments)};
_.c(VG4,Rq);VG4.prototype.getAssociations=function(){var O=[];this.delegate.details&&O.push(this.delegate.details);this.delegate.userDetails&&O.push(this.delegate.userDetails);return[].concat(_.Kx(new Set(O)))};
VG4.prototype.getTypeName=function(){return"musicArtist"};
var pr$=function(){Rq.apply(this,arguments)};
_.c(pr$,Rq);pr$.prototype.getAssociations=function(){var O=[];this.delegate.parentArtist&&O.push(this.delegate.parentArtist);return[].concat(_.Kx(new Set(O)))};
pr$.prototype.getTypeName=function(){return"musicArtistDetail"};
var Rqd=function(){Rq.apply(this,arguments)};
_.c(Rqd,Rq);Rqd.prototype.getAssociations=function(){var O=[];this.delegate.parentArtist&&O.push(this.delegate.parentArtist);return[].concat(_.Kx(new Set(O)))};
Rqd.prototype.getTypeName=function(){return"musicArtistUserDetail"};var Un4=function(){Rq.apply(this,arguments)};
_.c(Un4,Rq);Un4.prototype.getAssociations=function(){return[]};
Un4.prototype.getTypeName=function(){return"musicLibraryEdit"};var a5N=function(){Rq.apply(this,arguments)};
_.c(a5N,Rq);a5N.prototype.getAssociations=function(){return[]};
a5N.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var mn4=function(){Rq.apply(this,arguments)};
_.c(mn4,Rq);
mn4.prototype.getAssociations=function(){var O=[];this.delegate.tracks&&O.push.apply(O,_.Kx(this.delegate.tracks));this.delegate.refresh&&O.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&O.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&O.push(this.delegate.details);this.delegate.downloadMetadata&&O.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&O.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&O.push(this.delegate.userDetails);this.delegate.entryCollection&&
O.push(this.delegate.entryCollection);this.delegate.share&&O.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&O.push.apply(O,_.Kx((new sdJ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Kx(new Set(O)))};
mn4.prototype.getTypeName=function(){return"musicPlaylist"};
var sdJ=function(){pY.apply(this,arguments)};
_.c(sdJ,pY);sdJ.prototype.getAssociations=function(){var O=[];this.delegate.creatorEntity&&O.push(this.delegate.creatorEntity);return[].concat(_.Kx(new Set(O)))};var WGJ=function(){Rq.apply(this,arguments)};
_.c(WGJ,Rq);WGJ.prototype.getAssociations=function(){return[]};
WGJ.prototype.getTypeName=function(){return"musicShare"};var hq4=function(){Rq.apply(this,arguments)};
_.c(hq4,Rq);
hq4.prototype.getAssociations=function(){var O=[];this.delegate.musicLibraryStatusEntity&&O.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&O.push.apply(O,_.Kx(this.delegate.artists));this.delegate.audioModeVersion&&O.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&O.push(this.delegate.videoModeVersion);this.delegate.userDetails&&O.push(this.delegate.userDetails);this.delegate.details&&O.push(this.delegate.details);this.delegate.albumRelease&&O.push(this.delegate.albumRelease);this.delegate.share&&
O.push(this.delegate.share);this.delegate.libraryEdit&&O.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&O.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&O.push(this.delegate.playbackPosition);this.delegate.lyrics&&O.push(this.delegate.lyrics);return[].concat(_.Kx(new Set(O)))};
hq4.prototype.getTypeName=function(){return"musicTrack"};
var zqT=function(){Rq.apply(this,arguments)};
_.c(zqT,Rq);zqT.prototype.getAssociations=function(){var O=[];this.delegate.parentTrack&&O.push(this.delegate.parentTrack);return[].concat(_.Kx(new Set(O)))};
zqT.prototype.getTypeName=function(){return"musicTrackDetail"};
var rdN=function(){Rq.apply(this,arguments)};
_.c(rdN,Rq);rdN.prototype.getAssociations=function(){var O=[];this.delegate.parentTrack&&O.push(this.delegate.parentTrack);return[].concat(_.Kx(new Set(O)))};
rdN.prototype.getTypeName=function(){return"musicTrackUserDetail"};var rj=new _.$x("musicResponsiveListItemRenderer");var Hvn=new _.$x("addToPlaylistEndpoint");var HLT=new _.$x("captionPickerEndpoint");var KG2=new _.$x("suggestStats");var dn3=new _.$x("backstageImageUploadEndpoint");var nqL=new _.$x("createBackstagePostDialogEndpoint");_.u8p=new _.$x("createCommentReplyDialogEndpoint");_.Y23=new _.$x("updateCommentDialogEndpoint");_.BH4=new _.$x("updateCommentReplyDialogEndpoint");var vq2=new _.$x("menuEndpoint");var PJs=new _.$x("modalEndpoint");var f5F=new _.$x("playlistEditorEndpoint");var Jdp=new _.$x("copyTextEndpoint");var wr3,S2p;wr3=new _.$x("shareEndpoint");S2p=new _.$x("shareEntityEndpoint");_.jdF=new _.$x("shareEntityServiceEndpoint");_.UUr=new _.$x("userFeedbackEndpoint");_.Hq=new _.$x("watchEndpoint");var bg$=new _.$x("watchPlaylistEndpoint");var NHz=new _.$x("addUpcomingEventReminderEndpoint");_.Bj=new _.$x("getCommentsFromInboxCommand");var gqd=new _.$x("notificationOptOutEndpoint");var $np=new _.$x("recordNotificationInteractionsEndpoint");var iLF=new _.$x("removeUpcomingEventReminderEndpoint");var z8W=new _.$x("getDownloadActionCommand");_.OdD=new _.$x("offlineOrchestrationActionCommand");var xL2=function(){Rq.apply(this,arguments)};
_.c(xL2,Rq);xL2.prototype.getAssociations=function(){return[]};
xL2.prototype.getTypeName=function(){return"captionTrack"};var eV$=function(){Rq.apply(this,arguments)};
_.c(eV$,Rq);eV$.prototype.getAssociations=function(){return[]};
eV$.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var lXN=function(){Rq.apply(this,arguments)};
_.c(lXN,Rq);lXN.prototype.getAssociations=function(){return[]};
lXN.prototype.getTypeName=function(){return"offlineVideoPolicy"};var C4T=function(){Rq.apply(this,arguments)};
_.c(C4T,Rq);C4T.prototype.getAssociations=function(){return[]};
C4T.prototype.getTypeName=function(){return"offlineVideoStreams"};var QV4=function(){Rq.apply(this,arguments)};
_.c(QV4,Rq);QV4.prototype.getAssociations=function(){var O=[];this.delegate.transfer&&O.push(this.delegate.transfer);this.delegate.adsPlaybackData&&O.push.apply(O,_.Kx(this.delegate.adsPlaybackData));this.delegate.drmLicense&&O.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&O.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Kx(new Set(O)))};
QV4.prototype.getTypeName=function(){return"playbackData"};var bdR=function(){Rq.apply(this,arguments)};
_.c(bdR,Rq);bdR.prototype.getAssociations=function(){return[]};
bdR.prototype.getTypeName=function(){return"refresh"};var TgJ=function(){Rq.apply(this,arguments)};
_.c(TgJ,Rq);TgJ.prototype.getAssociations=function(){var O=[];this.delegate.offlineVideoStreams&&O.push.apply(O,_.Kx(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&O.push.apply(O,_.Kx(this.delegate.captionTrack));return[].concat(_.Kx(new Set(O)))};
TgJ.prototype.getTypeName=function(){return"transfer"};var LPd=function(){Rq.apply(this,arguments)};
_.c(LPd,Rq);LPd.prototype.getAssociations=function(){return[]};
LPd.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var kTp=new _.$x("showMoreDrawerCommand");var Acd=new _.$x("updateEngagementPanelContentCommand");var MOk=new _.$x("getPdgBuyFlowCommand");var DLp=new _.$x("liveChatPurchaseMessageEndpoint");var GT3=new _.$x("openSuperStickerBuyFlowCommand");var FPd=new _.$x("updatePdgFeatureEnablementCommand");var Xt$=function(){Rq.apply(this,arguments)};
_.c(Xt$,Rq);Xt$.prototype.getAssociations=function(){return[]};
Xt$.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var oa2=function(){Rq.apply(this,arguments)};
_.c(oa2,Rq);oa2.prototype.getAssociations=function(){return[]};
oa2.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.ycd=new _.$x("pdgCommentChipRenderer");_.ZdN=new _.$x("permissionRoleBottomBarRenderer");_.Ea2=new _.$x("updatePermissionRoleCommand");var tOd=new _.$x("prefetchWatchCommand");var qJd=new _.$x("updatePlayerErrorMessageCommand");var R8m=new _.$x("toggleCaptionsVisibilityCommand");_.P4L=new _.$x("quickActionsViewModel");var ccd=new _.$x("playerResponse");var IXD=new _.$x("playlistRenderer");_.VON=new _.$x("playlistVideoListRenderer");_.vj=new _.$x("playlistEditEndpoint");var ptd=new _.$x("createImagePollCommand");var RV3=new _.$x("createQuizCommand");var ULd=new _.$x("quizRenderer");var aXz=new _.$x("uploadedVideoRenderer");var mLd=new _.$x("decorateMessageEndpoint");var sVd=new _.$x("lpOfferCardOptionViewModel");var WPz=new _.$x("sfvAudioItemPlaybackCommand");var hVz=function(){Rq.apply(this,arguments)};
_.c(hVz,Rq);hVz.prototype.getAssociations=function(){return[]};
hVz.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.fY=new _.$x("reelNonVideoContentEndpoint");_.kU=new _.$x("reelWatchEndpoint");_.JE=new _.$x("reelItemRenderer");_.zVk=new _.$x("reelMetapanelViewModel");_.rcd=new _.$x("reelNonVideoContentRenderer");_.HdF=new _.$x("reelPlayerOverlayRenderer");var KPT=new _.$x("shortsLockupViewModel");var dLJ=new _.$x("sponsorButtonViewModel");var naR=new _.$x("reelItemWatchResponse");var u_2=new _.$x("textBadgeRenderer");_.wf=new _.$x("buttonRenderer");_.Sm=new _.$x("toggleButtonRenderer");var Kmn=new _.$x("switchButtonViewModel");_.YJp=new _.$x("confirmDialogRenderer");var BgN;BgN=new _.$x("menuRenderer");_.vad=new _.$x("menuFlexibleItemRenderer");var fXd=new _.$x("pollRenderer");_.Jcp=new _.$x("backgroundPromoRenderer");var SJd;_.wtp=new _.$x("chipCloudRenderer");SJd=new _.$x("chipCloudChipRenderer");var jVD=new _.$x("dropdownRenderer");var NgT=new _.$x("gridVideoRenderer");_.gad=new _.$x("itemSectionRenderer");_.$Lz=new _.$x("messageRenderer");var id2=new _.$x("sortFilterHeaderRenderer");_.jm=new _.$x("videoRenderer");var On2=new _.$x("resolveUrlCommandMetadata");var xOJ=function(){Rq.apply(this,arguments)};
_.c(xOJ,Rq);xOJ.prototype.getAssociations=function(){return[]};
xOJ.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.eYk=new _.$x("getAnswerCommand");_.bK=new _.$x("searchEndpoint");var l1d=new _.$x("genAiRichTextViewModel");var h8s=new _.$x("overviewAnswerViewModel");var Cnk=new _.$x("videoOverviewViewModel");var Qek=new _.$x("addToPlaylistServiceEndpoint");var bnd=new _.$x("clearSearchHistoryEndpoint");var T_z=new _.$x("clearWatchHistoryEndpoint");var LrD=new _.$x("webSerializedServiceEndpointExtension");_.k$p=new _.$x("createCommentEndpoint");var A8$=new _.$x("createCommentReplyEndpoint");var MgL=new _.$x("performCommentActionEndpoint");var DOk=new _.$x("updateCommentEndpoint");var G$R=new _.$x("updateCommentReplyEndpoint");_.Ns=new _.$x("createPlaylistServiceEndpoint");var FrL=new _.$x("deletePlaylistEndpoint");var Xy$=new _.$x("deleteVideoEndpoint");var rV8=new _.$x("getReportFormEndpoint");var t73=new _.$x("modifyChannelNotificationPreferenceEndpoint");var vns;_.TA=new _.$x("offlinePlaylistEndpoint");vns={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 fzm;_.bw=new _.$x("offlineVideoEndpoint");fzm={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 qgT=new _.$x("pingingEndpoint");_.PZ4=new _.$x("selectActiveIdentityEndpoint");var cTd=new _.$x("setSettingEndpoint");var $HV=new _.$x("undoFeedbackEndpoint");var IBk=new _.$x("unsubscribeEndpoint");_.V73=new _.$x("updatedMetadataEndpoint");var pm4=function(){Rq.apply(this,arguments)};
_.c(pm4,Rq);pm4.prototype.getAssociations=function(){return[]};
pm4.prototype.getTypeName=function(){return"settingEntity"};_.RZ4=new _.$x("updateLocalAppSettingCommand");var UA4=new _.$x("saveImageToDeviceEndpoint");var aB3=new _.$x("shareImageCommand");var mA3=new _.$x("sharingProviderDataCommand");var sXT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(sXT,_.TH);var WX4=[0,_.d4,-1];sXT.prototype.JSC$12523_serializeBinary=wwL(WX4);var hZN=_.Eh(WX4);var zZR=new _.$x("userMentionSuggestionRenderer");var rTR=new _.$x("liveChatTunnelCommand");var HjJ=new _.$x("showSponsorshipsGiftOfferDialogCommand");var KXd=new _.$x("sponsorshipsScrollableShelfViewModel");var dA4=new _.$x("updateUpcomingEventReminderButtonStateCommand");var nwN=new _.$x("upcomingEventReminderButtonStateRenderer");var uZp=new _.$x("subscribeEndpoint");var YgR=new _.$x("registerTasksCommand");var B8k=new _.$x("hideSheetCommand");var vwL=new _.$x("hideSnackbarCommand");var fB$=new _.$x("showDialogCommand");_.k4W=new _.$x("showSheetCommand");var JTF=new _.$x("showSnackbarCommand");var wmN=function(){Rq.apply(this,arguments)};
_.c(wmN,Rq);wmN.prototype.getAssociations=function(){return[]};
wmN.prototype.getTypeName=function(){return"chipEntity"};var Sgd=function(){Rq.apply(this,arguments)};
_.c(Sgd,Rq);Sgd.prototype.getAssociations=function(){return[]};
Sgd.prototype.getTypeName=function(){return"dismissState"};_.c8=new _.$x("avatarViewModel");var jXz=new _.$x("badgeViewModel");_.gf=new _.$x("buttonViewModel");_.$o=new _.$x("chipViewModel");var xW$=new _.$x("collectionThumbnailViewModel");var N8d=new _.$x("contentPreviewImageViewModel");var gw$=new _.$x("decoratedAvatarViewModel");_.j8W=new _.$x("engagementBarViewModel");_.$A2=new _.$x("imageBannerViewModel");var ijz=new _.$x("lockupContentMetadataRowExtension");_.OzJ=new _.$x("lockupMetadataViewModel");_.xzN=new _.$x("lockupViewModel");var e4T=new _.$x("avatarStackViewModel");_.lL4=new _.$x("contentMetadataViewModel");var ClD=function(){Rq.apply(this,arguments)};
_.c(ClD,Rq);ClD.prototype.getAssociations=function(){return[]};
ClD.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Q03=new _.$x("pageHeaderViewModel");var bz2=new _.$x("snackbarViewModel");var T6D=new _.$x("thumbnailHoverOverlayToggleActionsViewModel");_.iN=new _.$x("toggleButtonViewModel");var LAd=function(){Rq.apply(this,arguments)};
_.c(LAd,Rq);LAd.prototype.getAssociations=function(){return[]};
LAd.prototype.getTypeName=function(){return"votingEntity"};_.N3m=new _.$x("votingViewModel");var kx4=new _.$x("sectionHeaderViewModel");var AMF=new _.$x("notifyDropdownOptionSelectedCommand");var Aks=new _.$x("listViewModel");_.GA=new _.$x("listItemViewModel");var OXW=new _.$x("toggleableListItemViewModel");var MQT=new _.$x("dialogHeaderViewModel");var DzD=function(){Rq.apply(this,arguments)};
_.c(DzD,Rq);DzD.prototype.getAssociations=function(){return[]};
DzD.prototype.getTypeName=function(){return"dataFreshnessEntity"};var qpm=new _.$x("suspenseViewModel");var Gx2=function(){Rq.apply(this,arguments)};
_.c(Gx2,Rq);Gx2.prototype.getAssociations=function(){return[]};
Gx2.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var FAT=function(){Rq.apply(this,arguments)};
_.c(FAT,Rq);FAT.prototype.getAssociations=function(){return[]};
FAT.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var XId=function(){Rq.apply(this,arguments)};
_.c(XId,Rq);XId.prototype.getAssociations=function(){return[]};
XId.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.oR2=new _.$x("transcriptSubmitCaptionCorrectionCommand");var yM3=function(){Rq.apply(this,arguments)};
_.c(yM3,Rq);yM3.prototype.getAssociations=function(){return[]};
yM3.prototype.getTypeName=function(){return"buttonEntity"};var A4r=new _.$x("unpluggedStringRunImage");var Zzk=new _.$x("tabViewModel");var ER3=new _.$x("tabbedViewModel");var tQJ=function(){Rq.apply(this,arguments)};
_.c(tQJ,Rq);tQJ.prototype.getAssociations=function(){return[]};
tQJ.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.qqd=new _.$x("updateDescriptionAction");var Plp=new _.$x("updateToggleButtonTextAction");var cMD=new _.$x("updateVideoMetadataCommand");_.ILk=new _.$x("autoplaySwitchButtonRenderer");var PN;_.VQd=new _.$x("multiMarkersPlayerBarRenderer");PN=new _.$x("chapterRenderer");var pId=new _.$x("heatMarkerRenderer");var M4L=new _.$x("heatmapRenderer");var R4k=new _.$x("smartSkipPlayerScrimOverlayRenderer");var UzF=new _.$x("timedMarkerDecorationRenderer");var zHL=new _.$x("postWebToNativeMessageCommand");var ti=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ti,_.TH);ti.prototype.getMethodName=function(){return _.oK(this,1)};var aL3=[0,_.d4,-2];ti.prototype.JSC$12545_serializeBinary=wwL(aL3);var mzp=_.yc(ti,aL3);var s0N=new _.$x("whitelistEditEndpoint");var WAp=new _.$x("clearUrlParamCommand");var h4R=new _.$x("commerceActionCommand");_.z4T=new _.$x("getPaymentInstrumentsParamsCommand");var rMD=new _.$x("getPaymentsClientTokenCommand");var HzJ=new _.$x("googlePaymentBillingCommand");var KAk=new _.$x("googlePaymentPurchaseManagerCommand");_.dzJ=new _.$x("logGtmCommand");var nR2=new _.$x("updateCardItemOnClickCommand");_.us3=new _.$x("ypcPauseSubscriptionCommand");_.YqR=new _.$x("ypcResumeSubscriptionCommand");var B64=function(){Rq.apply(this,arguments)};
_.c(B64,Rq);B64.prototype.getAssociations=function(){return[]};
B64.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var vRT=function(){Rq.apply(this,arguments)};
_.c(vRT,Rq);vRT.prototype.getAssociations=function(){return[]};
vRT.prototype.getTypeName=function(){return"commerceCartListEntity"};var fLL=function(){Rq.apply(this,arguments)};
_.c(fLL,Rq);fLL.prototype.getAssociations=function(){return[]};
fLL.prototype.getTypeName=function(){return"iconBadgeEntity"};var JMd=function(){Rq.apply(this,arguments)};
_.c(JMd,Rq);JMd.prototype.getAssociations=function(){return[]};
JMd.prototype.getTypeName=function(){return"pdpStateEntity"};var wID=function(){Rq.apply(this,arguments)};
_.c(wID,Rq);wID.prototype.getAssociations=function(){return[]};
wID.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var EZN=new _.$x("ypcOffersEndpoint");var SqL=new _.$x("cardItemRenderer"),j0F=new _.$x("cardItemTextRenderer");var N6T=new _.$x("commerceCartItemQuantityPickerRenderer");var gRp=new _.$x("linkCardRenderer");var RHL=new _.$x("quantityIncrementerButtonViewModel");var $zd=new _.$x("quantityIncrementerViewModel");var iz3=new _.$x("themedImageViewModel");_.Ogd=new _.$x("ypcCancelRecurrenceEndpoint");var xPd=new _.$x("ypcCompleteTransactionEndpoint");_.eXd=new _.$x("ypcGetCartEndpoint");_.zA=new _.$x("ypcGetOffersEndpoint");_.O7=new _.$x("ypcHandleTransactionEndpoint");var lZJ=new _.$x("ypcLogWalletAnalyticDataEndpoint");_.C6$=new _.$x("ypcRedeemCodeEndpoint");var Q4N=new _.$x("ypcUpdateFopEndpoint");LY(TU(1),Qq(4));nLJ((new MessageChannel).port2);var bgk=function(){this.register=new Map},PzL=function(O,x,e){O=O+"_"+x;
xj.register.has(O)?e=xj.register.get(O):(e=e(),xj.register.set(O,e));return e},TG4=function(O){O=_.T(O.register.values());
for(var x=O.next();!x.done;x=O.next())_.Oe(x.value,"ABORTED")};
bgk.prototype.clear=function(){TG4(this);this.register.clear()};
var xj=new bgk;var eb7=Date.now().toString();var Q18=Czi();var Gk$={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 L0J,ts;L0J=1;ts=function(O){this.veData=O};
_.Fv=function(O){return new ts({trackingParams:O})};
_.O9=function(O,x,e,l,C,Q){var L=L0J++;return new ts({veType:O,veCounter:L,elementIndex:e,dataElement:x,youtubeData:l,jspbYoutubeData:C,loggingDirectives:Q})};
_.b=ts.prototype;
_.b.getAsJson=function(){var O={};this.veData.trackingParams!==void 0?O.trackingParams=this.veData.trackingParams:(O.veType=this.veData.veType,this.veData.veCounter!==void 0&&(O.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(O.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(O.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(O.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(O.isCounterfactual=!0);
return O};
_.b.getAsJspb=function(){var O=new ehk;this.veData.trackingParams!==void 0?O.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.qi(O,2,this.veData.veType),this.veData.veCounter!==void 0&&_.qi(O,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.qi(O,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.yW(O,5,!0));if(this.veData.dataElement!==void 0){var x=this.veData.dataElement.getAsJspb();_.IS(O,7,x)}this.veData.youtubeData!==void 0&&_.IS(O,8,this.veData.jspbYoutubeData);
return O};
_.b.toString=function(){return JSON.stringify(this.getAsJson())};
_.b.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.b.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.MB("yt_logging_screen.getRootVeType",A5r);_.MB("yt_logging_screen.getCurrentCsn",_.Pq);_.MB("yt_logging_screen.getCttAuthInfo",cq);_.MB("yt_logging_screen.setCurrentScreen",_.Ig);var kd$=function(){this.events=new Map},AXF=function(O){var x=[];
O=_.T(O.events.values());for(var e=O.next();!e.done;e=O.next())x.push(e.value);return x};
kd$.prototype.clear=function(){this.events.clear()};var DPD=function(){this.logTransport=new MV4;this.loggedEventRegister=new kd$;this.unloggedEventRegister=new kd$;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12582_flushTimer=new _.Zy(this.flushInterval);this.JSC$12582_flushTimer.listen("tick",this.flush,!1,this)};
DPD.prototype.flush=function(){if(this.eventsCount){var O={loggedEvents:AXF(this.loggedEventRegister),unloggedEvents:AXF(this.unloggedEventRegister)};if(_.t("export_player_version_to_ytconfig")){var x;(x=_.wz("PLAYER_CLIENT_VERSION"))?(x=x.split("-")[0].replace(/\./g,""),x=isNaN(Number(x))?"0":x):x="";var e=_.wz("PLAYER_CLIENT_VERSION");if(e){e=e.split("-");var l="";e.length>1&&(l=e[e.length-1]);e=x_m(l.startsWith("canary_experiment")?"canary":l.startsWith("canary_control")?"control":"none")}else e=
"CLIENT_CANARY_STATE_UNKNOWN";O.dimensions={playerClientVersion:x,playerCanaryState:e}}this.logTransport.flush(O);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12582_flushTimer.enabled&&this.JSC$12582_flushTimer.stop()}};
var Gdd=function(O){eo==null&&(eo=new DPD);var x=eo;var e=x.loggedEventRegister;O.dimensions=O.dimensions||{};O.dimensions.csn=_.Pq()||"";var l=oTN(O.dimensions).join(";");if(O.records!=null)if(e.events.has(l)){var C;(C=e.events.get(l).records)==null||C.push.apply(C,_.Kx(O.records))}else e.events.set(l,O);x.JSC$12582_flushTimer.enabled||x.JSC$12582_flushTimer.start();x.eventsCount++;x.eventsCount>=100&&x.flush()};var MV4=function(){};
MV4.prototype.flush=function(O,x){_.t("enable_client_sli_logging")&&_.uU("sliEventBatch",O,{sendIsolatedPayload:!!x})};var eo;var X$d;X$d=function(O){var x=F0L;O=O===void 0?{}:O;x=x.name;var e=qF$("SUCCESS");Gdd({dimensions:O,records:[{name:x,state:"SLI_STATE_END",status:e}]})};
_.c5i=function(O,x,e,l){this.name=O;this.sliId=x;this.timeoutMs=e;this.statusOnTimeout=l;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.c5i.prototype.getId=function(){return this.sliId};
_.ic=function(O,x){x=x===void 0?{}:x;O.ongoing||(O.ongoing=!0,O.dimensions=x,O.logSliId=vQz(),Gdd({dimensions:O.dimensions,records:[{name:O.name,state:"SLI_STATE_START",sliId:O.logSliId}]}),O.timeoutMs>0&&(O.timeoutHandle=setTimeout(function(){_.Oe(O,O.statusOnTimeout)},O.timeoutMs)))};
_.Oe=function(O,x){O.ongoing&&(O.timeoutMs>0&&clearTimeout(O.timeoutHandle),O.ongoing=!1,x={dimensions:O.dimensions,records:[{name:O.name,status:qF$(x),state:"SLI_STATE_END",sliId:O.logSliId}]},xj.register.delete(O.name+"_"+O.sliId),Gdd(x))};var F0L=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var o6T=function(){Rq.apply(this,arguments)};
_.c(o6T,Rq);o6T.prototype.getAssociations=function(){return[]};
o6T.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var wls=new _.$x("highlightTextDecoratorColorMapExtension");var fJw=new _.$x("styleRunColorMapExtension");var m_L=_.zo(["data-"]),hbN={};var r5r={};var lQ=function(O){this.wrappedPromise_=O===void 0?null:O;this.state_=0;this.JSC$12613_value_=null};
lQ.prototype.then=function(O,x,e){return this.wrappedPromise_?this.wrappedPromise_.then(O,x,e):this.state_===1&&O?(O=O.call(e,this.JSC$12613_value_))&&typeof O.then==="function"?O:_.Co(O):this.state_===2&&x?(O=x.call(e,this.JSC$12613_value_))&&typeof O.then==="function"?O:_.yXL(O):this};
lQ.prototype.getValue=function(){return this.JSC$12613_value_};
lQ.prototype.isRejected=function(){return this.state_==2};
iek(lQ);_.yXL=function(O){var x=new lQ;O=O===void 0?null:O;x.state_=2;x.JSC$12613_value_=O===void 0?null:O;return x};
_.Co=function(O){var x=new lQ;O=O===void 0?null:O;x.state_=1;x.JSC$12613_value_=O===void 0?null:O;return x};var gTm="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var ZgL=["load","abort","error"],QA=function(O,x,e){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12633_maxAspectRatio_=O;this.disableAnimation_=x===void 0?!1:x;this.disableExifRotation_=e===void 0?!1:e;this.JSC$12633_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12633_reject_=this.resolve_=null};
QA.prototype.transform=function(O){var x=this;this.mime_=O.type;wF(Q2J(O),this.dataUrlRead_,this.readError_,this);wF(CkF(O.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(e,l){x.resolve_=e;x.JSC$12633_reject_=l})};
QA.prototype.dataUrlRead_=function(O){this.dataUrl_=O;this.angle_!=null&&E6J(this)};
QA.prototype.exifRead_=function(O){if(this.disableExifRotation_)this.angle_=0;else{a:if(O=new DataView(O),O.byteLength<2||O.getUint16(0)!==65496)O=-2;else{for(var x=2,e=O.byteLength;x<e;){var l=O.getUint16(x),C=O.getUint16(x+2);if(l===65505){x+=4;l=O.getUint32(x);C=O.getUint16(x+4);if(l!==1165519206||C!==0)break;x+=6;l=O.getUint16(x)===18761;x+=O.getUint32(x+4,l);C=O.getUint16(x,l);x+=2;for(var Q=0;Q<C;Q++){if(O.getUint16(x,l)===274){x+=8;O=O.getUint16(x,l);break a}x+=12}}else if(l>>8!==255)break;
else x+=C+2}O=-1}switch(O){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&&E6J(this)};
QA.prototype.readError_=function(){this.JSC$12633_reject_()};
var E6J=function(O){Da(O.JSC$12633_image_,ZgL,O.completeTransform_,!1,O);O.JSC$12633_image_.src=_.Yy(O.dataUrl_).toString();O.JSC$12633_image_.src!=uI.toString()&&O.JSC$12633_image_.src.substr(0,11)==="data:image/"||O.JSC$12633_reject_()};
QA.prototype.completeTransform_=function(){if(this.JSC$12633_image_.src!=uI.toString()){var O=_.Yy(this.dataUrl_),x=this.JSC$12633_image_.naturalHeight?this.JSC$12633_image_.naturalWidth/this.JSC$12633_image_.naturalHeight:null;this.invalidAspectRatio=x>this.JSC$12633_maxAspectRatio_||x<1/this.JSC$12633_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var e=this.JSC$12633_image_.naturalWidth,l=this.JSC$12633_image_.naturalHeight,C=x=0,Q=this.JSC$12633_image_.naturalHeight?this.JSC$12633_image_.naturalWidth/
this.JSC$12633_image_.naturalHeight:null;Q>this.JSC$12633_maxAspectRatio_?(e=this.JSC$12633_maxAspectRatio_*l,x=(e-this.JSC$12633_image_.naturalWidth)/2,this.cropped=!0):Q<1/this.JSC$12633_maxAspectRatio_?(l=this.JSC$12633_maxAspectRatio_*e,C=(l-this.JSC$12633_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)Q=e,e=l,l=Q,Q=x,x=C,C=Q;switch(this.angle_){case 90:C-=e;break;case 180:x-=e;C-=l;break;case 270:x-=
l}this.cropped||this.angle_%360!==0?(O=document.createElement("canvas"),O.width=e||1,O.height=l||1,this.JSC$12633_image_.naturalWidth&&this.JSC$12633_image_.naturalHeight&&(e=O.getContext("2d"),e.rotate(Math.PI/180*this.angle_),e.drawImage(this.JSC$12633_image_,x,C,this.JSC$12633_image_.naturalWidth,this.JSC$12633_image_.naturalHeight)),this.transformedData=_.Yy(O.toDataURL(this.mime_))):this.transformedData=O}else this.transformedData=O;this.resolve_(this)}};var bQ=function(O,x){_.Xz.call(this,O);this.value=x};
_.c(bQ,_.Xz);
var Tj=function(O,x,e,l,C,Q,L){L=L===void 0?!1:L;_.tf.call(this);var k=this;this.JSC$12638_url_=O;this.channelId_=x;this.maxFileSizeMb_=e;this.JSC$12638_maxAspectRatio_=l;this.dropZoneEl_=C;this.rejectInvalidAspectRatio_=L;this.selectButtonEl_=Q;this.JSC$12638_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new oq(this.dropZoneEl_);this.selectOverlay_=new yq(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12638_image_=this.transfer_=null;this.handler_=new _.Ev(this);_.qq(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(Q,"click",function(){k.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.c(Tj,_.tf);Tj.prototype.disposeInternal=function(){for(var O=this.selectButtonEl_.nextSibling;O&&O.parentNode&&O.tagName=="INPUT";)O.parentNode.removeChild(O),O=this.selectButtonEl_.nextSibling;this.cancel();_.tf.prototype.disposeInternal.call(this)};
Tj.prototype.uploadPromise=function(){if(this.JSC$12638_image_==null)return null;this.uploadPromise_||tVL(this);return this.uploadPromise_};
Tj.prototype.cancel=function(){qLT(this);this.JSC$12638_image_=null};
var qLT=function(O){O.transfer_&&O.transfer_.cancel();O.transfer_=null;O.uploadPromise_=null;O.resolve_=null;O.JSC$12638_reject_=null},tVL=function(O){qLT(O);
O.transfer_=_.NVD(O.JSC$12638_url_,{"X-YouTube-ChannelId":O.channelId_},O.JSC$12638_image_);O.handler_.listenOnce(O.transfer_,"l",O.JSC$12640_onUploadComplete_);O.handler_.listenOnce(O.transfer_,"n",O.onUploadError_);O.transfer_.run();O.uploadPromise_=new Promise(function(x,e){O.resolve_=x;O.JSC$12638_reject_=e})};
_.b=Tj.prototype;_.b.onChange_=function(O){O.files.length&&(this.JSC$12638_image_=O.files[0],this.JSC$12638_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12638_image_=null,this.dispatchEvent(new bQ("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(tVL(this),(new QA(this.JSC$12638_maxAspectRatio_)).transform(this.JSC$12638_image_).then((0,_.z8)(this.onPreview_,this),(0,_.z8)(this.onPreviewError_,this))))};
_.b.onPreview_=function(O){if(O.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12638_image_=null),this.dispatchEvent(new bQ("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;O.cropped&&this.dispatchEvent(new bQ("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new bQ("yt.comments.ImageUploadOverlay.CHANGE_EVENT",O.transformedData))};
_.b.onPreviewError_=function(){this.JSC$12638_image_=null;this.dispatchEvent(new bQ("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.b.onHover_=function(O){O.stopPropagation();O.preventDefault();if(O.type==="dragover")O=!0;else if(O.type==="dragleave")O=!1;else return;this.dispatchEvent(new bQ("yt.comments.ImageUploadOverlay.HOVER_EVENT",O))};
_.b.JSC$12640_onUploadComplete_=function(){var O=(0,_.cZ3)(this.transfer_.getResponseText());this.resolve_(O.encryptedBlobId)};
_.b.onUploadError_=function(){this.JSC$12638_reject_();qLT(this)};var P63=function(O){O=O||{};var x={},e={};this.url=O.url||"";this.args=O.args||_.HX.clone(x);this.assets=O.assets||{};this.attrs=O.attrs||_.HX.clone(e);this.fallback=O.fallback||null;this.fallbackMessage=O.fallbackMessage||null;this.html5=!!O.html5;this.disable=O.disable||{};this.loaded=!!O.loaded;this.messages=O.messages||{}};
P63.prototype.clone=function(){var O=new P63,x;for(x in this)if(this.hasOwnProperty(x)){var e=this[x];_.Nk(e)=="object"?O[x]=_.HX.clone(e):O[x]=e}return O};var cXz,IZp,VV4,z_,RXN,UPd,aZF,mPd,s42,W0D,hXT,zX4,rXz,Hgd,K0N,dPF,n64,uMd,YLR,BGL,v63,fZp,JX3,w$p,SLR,j4d,NGT,g6$,$PN,fRW,ig2,ON$,xeN,e$F,l_d,CEL,QbT,bN$,Tep,LTp,vYN,kzJ,AH3,MIF,Dep,Gz4,FT2,Xf3,ov2,yHN,ZN$,Evz,tI2,qj4,PE2,cHR,Lo,I_T,VIR,pfz,R$z,UeR,a_R,me$,sbN,WT4,h$3,z$3,rHJ,HNd,KTk,deF,nvd,uVN,Yjd,Be3,YIn,vvJ,f_F,JHN,wfd,Sj$,jbd,Ned,gvT,$e$,iNF,OBL,xr2,eGF,lxR,CpL,QBN,bBF,TI4,LMT,kiT,Ab3,MHd,Drd,GiL,FMT;cXz=["account/accounts_list"];IZp=["acknowledge_channel_tou_strike"];VV4=["notification/add_upcoming_event_reminder"];
_.p$$=["att/get"];z_=["browse","music/browse","unplugged/browse"];RXN=["channel/claim_legacy_youtube_channel"];UPd=["history/clear_search_history"];aZF=["history/clear_watch_history"];mPd=["comment/perform_comment_action"];s42=["comment/get_comment_replies"];W0D=["ypc/commerce_action"];hXT=["backstage/create_post"];zX4=["live/create_broadcast"];rXz=["channel/create_channel"];Hgd=["comment/create_comment_reply"];K0N=["comment/create_comment"];dPF=["live_chat/create_poll"];n64=["playlist/create"];
uMd=["decorate_message"];YLR=["live_chat/delete_message"];BGL=["playlist/delete"];v63=["video/delete"];fZp=["like/dislike"];JX3=["dismissal/dismiss"];w$p=["flag/flag"];SLR=["flow"];j4d=["account/account_menu"];NGT=["playlist/get_add_to_playlist"];g6$=["get_answer"];$PN=["channel/get_channel_creation_form"];fRW=["offline/get_download_action"];ig2=["kids/get_kids_blocklist_picker"];ON$=["live_chat/get_item_context_menu"];xeN=["live_chat/get_live_chat_message_buy_flow"];e$F=["live_chat/get_live_chat_replay"];
l_d=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];CEL=["live_chat/get_live_chat_super_sticker_buy_flow"];QbT=["notification/get_notification_menu"];bN$=["playlist/get_settings_editor"];Tep=["backstage/get_post_video_preview"];LTp=["account/get_profile_card"];vYN=["share/get_share_panel"];kzJ=["share/get_sharing_provider_data"];AH3=["get_survey"];MIF=["notification/get_unseen_count"];Dep=["get_user_mention_suggestions"];Gz4=["get_watch"];FT2=["guide"];
Xf3=["feedback"];ov2=["kids/update_blacklist"];yHN=["like/like"];ZN$=["live_chat/live_chat_action"];Evz=["live_chat/manage_user"];tI2=["video_manager/metadata_update"];qj4=["live_chat/moderate"];PE2=["notification/modify_channel_preference"];cHR=["notification/opt_out"];Lo=["get_panel","get_posts_by_host_panel"];I_T=["player"];VIR=["browse/edit_playlist"];pfz=["notification/record_interactions"];R$z=["reel/reel_item_watch"];UeR=["reel/reel_watch_sequence"];a_R=["like/removelike"];me$=["notification/remove_upcoming_event_reminder"];
sbN=["flag/get_form"];WT4=["miniapp/report_value"];h$3=["navigation/resolve_url"];z$3=["channel/reveal_business_email"];rHJ=["in_video/search"];HNd=["search","sfv/search","unplugged/search"];KTk=["live_chat/send_message"];deF=["live_chat/send_live_chat_vote"];nvd=["account/set_setting"];uVN=["submit_caption_correction"];Yjd=["submit_form"];Be3=["subscription/subscribe"];YIn=["get_transcript"];vvJ=["resolve_location","unplugged/resolve_location"];f_F=["subscription/unsubscribe"];JHN=["backstage/update_post"];
wfd=["channel_edit/update_channel_page_settings"];Sj$=["comment/update_comment_reply"];jbd=["comment/update_comment"];Ned=["comment/update_comments_settings"];gvT=["creator/update_creator_channel"];$e$=["pdg/update_enablement"];iNF=["updated_metadata"];OBL=["channel_edit/validate_channel_handle"];xr2=["verify_age"];eGF=["next","unplugged/watch_next"];lxR=["whitelist/edit"];CpL=["ypc/cancel_recurrence"];QBN=["ypc/complete_transaction"];bBF=["ypc/get_cart"];TI4=["ypc/get_fix_instrument_params"];
LMT=["ypc/get_offers"];kiT=["ypc/get_payment_instruments_params"];Ab3=["ypc/handle_transaction"];MHd=["ypc/log_payment_server_analytics"];Drd=["ypc/pause_subscription"];GiL=["ypc/redeem_code"];FMT=["ypc/resume_subscription"];var XC3=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,
45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,
166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,
194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,173191,173192,173193,101951,171502,196043,198305,
97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,
211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,
59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,
248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,
110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var l_=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.MB("yt.msgs_",l_);var kj=new _.iR("ACTION_ROUTER_TOKEN");_.Ax=function(){this.autonavState_=_.t("kevlar_is_pupi_enabled")?2:kUL()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Ax.prototype.getState=function(){return this.autonavState_};
_.Ax.prototype.pause=function(O){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=O):this.autonavState_==1&&(this.disabledAutonavPauseReason_=O)};
_.Ax.prototype.setState=function(O,x,e){x&&(this.autoplayChangedByUser=!0);x=this.autonavState_===3||O===3;this.autonavState_!=O&&(this.autonavState_=O,O!=3&&_.AE$(O==2),O=_.t("kevlar_is_pupi_enabled")?e||x:!0,_.iU.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,O,e))};
_.Ax.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.BN(_.Ax);var MK=function(){this.hasRun=!1};var Dv={},qlr=(Dv.auto_search="LATENCY_ACTION_AUTO_SEARCH",Dv.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Dv.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Dv.app_startup="LATENCY_ACTION_APP_STARTUP",Dv.browse="LATENCY_ACTION_BROWSE",Dv.cast_splash="LATENCY_ACTION_CAST_SPLASH",Dv.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Dv.channels="LATENCY_ACTION_CHANNELS",Dv.chips="LATENCY_ACTION_CHIPS",Dv.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Dv.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Dv.editor="LATENCY_ACTION_EDITOR",Dv.embed="LATENCY_ACTION_EMBED",Dv.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Dv.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Dv.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Dv.explore="LATENCY_ACTION_EXPLORE",Dv.favorites="LATENCY_ACTION_FAVORITES",Dv.home="LATENCY_ACTION_HOME",Dv.inboarding="LATENCY_ACTION_INBOARDING",Dv.landing="LATENCY_ACTION_LANDING",Dv.learning="LATENCY_ACTION_LEARNING",
Dv.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Dv.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Dv.library="LATENCY_ACTION_LIBRARY",Dv.live="LATENCY_ACTION_LIVE",Dv.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Dv.management="LATENCY_ACTION_MANAGEMENT",Dv.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Dv.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Dv.onboarding="LATENCY_ACTION_ONBOARDING",Dv.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Dv.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Dv.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Dv.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Dv.prebuffer="LATENCY_ACTION_PREBUFFER",Dv.prefetch="LATENCY_ACTION_PREFETCH",Dv.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Dv.profile_switcher="LATENCY_ACTION_LOGIN",Dv.projects="LATENCY_ACTION_PROJECTS",Dv.reel_watch="LATENCY_ACTION_REEL_WATCH",Dv.results="LATENCY_ACTION_RESULTS",Dv.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Dv.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Dv.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Dv.review="LATENCY_ACTION_REVIEW",Dv.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Dv.search_ui="LATENCY_ACTION_SEARCH_UI",Dv.search_suggest="LATENCY_ACTION_SUGGEST",Dv.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Dv.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Dv.seek="LATENCY_ACTION_PLAYER_SEEK",Dv.settings="LATENCY_ACTION_SETTINGS",Dv.store="LATENCY_ACTION_STORE",
Dv.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Dv.tenx="LATENCY_ACTION_TENX",Dv.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Dv.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Dv.watch="LATENCY_ACTION_WATCH",Dv.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Dv["watch,watch7"]="LATENCY_ACTION_WATCH",Dv["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Dv["watch,watch7ad"]="LATENCY_ACTION_WATCH",Dv["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Dv.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Dv.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Dv.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Dv.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Dv.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Dv.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Dv.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Dv.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Dv),HYr=0;var BfW=function(O,x){IP.call(this,1,arguments);this.timer=x};
_.c(BfW,IP);var Yl8=new KCn("aft-recorded",BfW);var VmV=_.CV.ytLoggingGelSequenceIdObj_||{};_.MB("ytLoggingGelSequenceIdObj_",VmV);var Gj=_.CV.ytLoggingLatencyUsageStats_||{};_.MB("ytLoggingLatencyUsageStats_",Gj);var Ft=function(){this.cleanupJob=0},UsL=function(){Ft.instance||(Ft.instance=new Ft);
return Ft.instance};
_.b=Ft.prototype;_.b.baseline=function(O,x,e){Xt(this,"baseline_"+O)||_.uU("latencyActionBaselined",{clientActionNonce:O},{timestamp:x,cttAuthInfo:e})};
_.b.tick=function(O,x,e,l){Xt(this,"tick_"+O+"_"+x)||_.uU("latencyActionTicked",{tickName:O,clientActionNonce:x},{timestamp:e,cttAuthInfo:l})};
_.b.info=function(O,x,e){var l=Object.keys(O).join("");Xt(this,"info_"+l+"_"+x)||(O=Object.assign({},O),O.clientActionNonce=x,_.uU("latencyActionInfo",O,{cttAuthInfo:e}))};
_.b.jspbInfo=function(O,x,e){for(var l="",C=0;C<dL(O).length;C++)dL(O)[C]!==void 0&&(l=C===0?l.concat(""+C):l.concat("_"+C));Xt(this,"info_"+l+"_"+x)||(_.mO(O,2,x),x={cttAuthInfo:e},e=_.t("jspb_sparse_encoded_pivot")?new hG([{}]):new hG,_.Vc(e,7,yhJ,O),pji("latencyActionInfo",e,x))};
_.b.span=function(O,x,e){var l=Object.keys(O).join("");Xt(this,"span_"+l+"_"+x)||(O.clientActionNonce=x,_.uU("latencyActionSpan",O,{cttAuthInfo:e}))};
var Xt=function(O,x){Gj[x]=Gj[x]||{count:0};var e=Gj[x];e.count++;e.time=(0,_.F2)();O.cleanupJob||(O.cleanupJob=_.zl(_.vn,function(){var l=(0,_.F2)(),C;for(C in Gj)Gj[C]&&l-Gj[C].time>6E4&&delete Gj[C];O&&(O.cleanupJob=0)},5E3));
return e.count>5?(e.count===6&&Math.random()*1E5<1&&(e=new _.ry("CSI data exceeded logging limit with key",x.split("_")),x.indexOf("plev")>=0||_.ft(e)),!0):!1};var o2R,ybT;o2R=window;ybT=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.GD=o2R.performance||o2R.mozPerformance||o2R.msPerformance||o2R.webkitPerformance||new ybT;var ufs=!1,msi=!1,voN=(0,_.z8)(_.GD.clearResourceTimings||_.GD.webkitClearResourceTimings||_.GD.mozClearResourceTimings||_.GD.msClearResourceTimings||_.GD.oClearResourceTimings||_.Fb,_.GD);var ZBR=window;ZBR.ytcsi&&(ZBR.ytcsi.infoGel=_.EO,ZBR.ytcsi.tick=_.IR);var xKn=function(O){IP.call(this,1,arguments);this.csn=O};
_.c(xKn,IP);var BO7=new KCn("screen-created",xKn),yxr=[],Oom=oj8,Zor=0,aR=new Map,emL=new Map,lv8=new Map;var a4N=Symbol("Cf"),u_=new WeakMap;var o7=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Mj=function(){o7.instance||(o7.instance=new o7);
return o7.instance};
_.b=o7.prototype;_.b.setClient=function(O){this.client=O};
_.b.JSC$12719_newScreen=function(){this.clear();this.csn=_.Pq()};
_.b.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.b.reportShown=function(O,x,e){var l=this.JSC$12719_getTrackingParams(O),C=O.visualElement?O.visualElement:l;x=this.shownElements.has(C);var Q=this.visibleState.get(C);this.shownElements.add(C);this.visibleState.set(C,!0);O.impressionLog&&!x&&O.impressionLog();if(l||O.visualElement)if(e=E2$(this,O,e))if(C=tH4(this,O),yA(this,O)||C){l=O.visualElement?O.visualElement:_.Fv(l);var L=O.interactionLoggingClientData;C||x?yA(this,O)&4?Q||Mos(this.client,e,l,L):yA(this,O)&1&&!x&&Lwi(this.client,e,l,L):Lwi(this.client,
e,l,L)}};
_.b.reportHidden=function(O,x,e){var l=this.JSC$12719_getTrackingParams(O),C=O.visualElement?O.visualElement:l;x=this.hiddenElements.has(C);var Q=this.visibleState.get(C);this.hiddenElements.add(C);this.visibleState.set(C,!1);if(Q===!1)return!0;if(!l&&!O.visualElement)return!1;e=E2$(this,O,e);if(!e||!yA(this,O)&&tH4(this,O))return!1;l=O.visualElement?O.visualElement:_.Fv(l);yA(this,O)&8?DKN(this.client,e,l):yA(this,O)&2&&!x&&(O=this.client,x=UO({cttAuthInfo:cq(e)||void 0},e),l={csn:e,ve:l.getAsJson(),
eventType:2},e==="UNDEFINED_CSN"?sO("visualElementHidden",x,l):O?dl("visualElementHidden",l,O,x):_.uU("visualElementHidden",l,x));return!0};
_.b.JSC$12719_getTrackingParams=function(O){var x=this.getData(O),e,l;if(_.t("il_use_view_model_logging_context")&&(x==null?0:(e=x.context)==null?0:(l=e.loggingContext)==null?0:l.loggingDirectives))return x.context.loggingContext.loggingDirectives.trackingParams||"";var C,Q;if(x==null?0:(C=x.rendererContext)==null?0:(Q=C.loggingContext)==null?0:Q.loggingDirectives)return x.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(x==null?0:x.loggingDirectives)return x.loggingDirectives.trackingParams||
"";var L;return((L=O.veContainer)==null?0:L.trackingParams)?O.veContainer.trackingParams:(x==null?void 0:x.trackingParams)||""};
_.b.JSC$12719_elementShouldLogGesture=function(O,x){O=this.getData(O);return!!((Math.floor(Number(O&&O.loggingDirectives&&O.loggingDirectives.gestures&&O.loggingDirectives.gestures.types||""))||0)&x)};
_.b.JSC$12719_getNearestParentVe=function(O){var x=this.JSC$12719_getTrackingParams(O);return O.visualElement?O.visualElement:x?_.Fv(x):O.parentElement?this.JSC$12719_getNearestParentVe(O.parentElement):null};
var E2$=function(O,x,e){var l=_.Pq(e);return O.csn===null||l===O.csn||e?l:(O=new _.ry("VisibilityLogger called before newScreen",{caller:x.tagName,previous_csn:O.csn,current_csn:l}),_.ft(O),null)};
o7.prototype.getData=function(O){var x,e=O.data||((x=O.props)==null?void 0:x.data);if(!e||O.isWebComponentWrapper){var l;e=(l=u_.get(O))==null?void 0:l[a4N]}return e};
var tH4=function(O,x){var e;return!((e=O.getData(x))==null||!e.loggingDirectives)},yA=function(O,x){O=O.getData(x);
return Math.floor(Number(O&&O.loggingDirectives&&O.loggingDirectives.visibility&&O.loggingDirectives.visibility.types||""))||1};var Zv;Zv=function(){};
_.TO=function(){Zv.instance||(Zv.instance=new Zv);return Zv.instance};
Zv.prototype.setClient=function(O){_.$K(Mj().setClient).bind(Mj())(O)};
_.quR=function(){_.TO();_.$K(Mj().JSC$12719_newScreen).bind(Mj())()};
Zv.prototype.clear=function(){_.$K(Mj().clear).bind(Mj())()};
Zv.prototype.reportShown=function(O,x,e){_.$K(Mj().reportShown).bind(Mj())(O,x,e)};
Zv.prototype.reportHidden=function(O,x,e){return _.$K(Mj().reportHidden).bind(Mj())(O,x,e)};
var J$w=function(O,x){return _.$K(Mj().JSC$12719_getTrackingParams).bind(Mj())(x)},mHn=function(O,x){return _.$K(Mj().JSC$12719_getNearestParentVe).bind(Mj())(x)};var E7,PpD;E7=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};
_.k0=function(){E7.instance||(E7.instance=new E7);return E7.instance};
E7.prototype.setClient=function(O){this.client=O};
PpD=function(O,x,e){e=e===void 0?{}:e;_.$K(function(){var l,C,Q,L=((l=_.q(x==null?void 0:x.commandMetadata,_.e6))==null?void 0:l.rootVe)||((C=_.q(x==null?void 0:x.commandMetadata,bo4))==null?void 0:(Q=C.screenVisualElement)==null?void 0:Q.uiType);if(L){l=_.q(x==null?void 0:x.commandMetadata,On2);if(l==null?0:l.parentTrackingParams){var k=_.Fv(l.parentTrackingParams);if(l.parentCsn)var M=l.parentCsn}else e.clickedVisualElement?k=e.clickedVisualElement:x.clickTrackingParams&&(k=_.Fv(x.clickTrackingParams));
a:{l=_.q(x,_.Hq);C=_.q(x,bg$);if(l){if(C=Mmm(l,"VIDEO")){l={token:C,videoId:l.videoId};break a}}else if(C&&(l=Mmm(C,"PLAYLIST"))){l={token:l,playlistId:C.playlistId};break a}l=void 0}e=Object.assign({},{cttAuthInfo:l,parentCsn:M},e);if(_.t("expectation_logging")){var G;e.loggingExpectations=((G=_.q(x==null?void 0:x.commandMetadata,bo4))==null?void 0:G.loggingExpectations)||void 0}_.tx(O,L,k,e)}else _.ft(new _.ry("Error: Trying to create a new screen without a rootVeType",x))})()};
_.tx=function(O,x,e,l){l=l===void 0?{}:l;_.$K(function(){XC3.includes(x)||(_.ft(new _.ry("createClientScreen() called with a non-page VE",x)),x=83769);l.isHistoryNavigation||(O.forwardHistoryStack=[],O.backHistoryStack.push({rootVe:x,key:l.key||""}));O.graftQueue=[];O.stateChangedQueue=[];l.dataPromises?cbd(O,x,e,l):Ixd(O,x,e,l)})()};
_.VHF=function(O,x,e){e=e===void 0?0:e;_.$K(function(){x.then(function(l){O.pendingScreenCreation.has(e)&&O.pendingScreenFn&&O.pendingScreenFn();var C=_.Pq(e),Q=_.q9(e);if(C&&Q){var L={automatedLogEventSource:3},k;(l==null?0:(k=l.response)==null?0:k.trackingParams)&&mR(O.client,C,Q,_.Fv(l.response.trackingParams),!1,L);var M;(l==null?0:(M=l.playerResponse)==null?0:M.trackingParams)&&mR(O.client,C,Q,_.Fv(l.playerResponse.trackingParams),!1,L)}})})()};
E7.prototype.graftServerVe=function(O,x,e){var l=this;return _.$K(function(){var C=_.Fv(O);_.qK(l,C,x,e);return C})()};
_.shi=function(O,x,e,l){return _.t("enable_client_ve_spec")&&x.clientVeSpec?(x=_.O9(x.clientVeSpec.uiType,void 0,x.clientVeSpec.elementIndex,x.clientVeSpec.clientYoutubeData,void 0,x),_.qK(O,x,e,l)?x:null):x.trackingParams?O.graftServerVe(x.trackingParams,e,l):null};
_.L_=function(O,x,e,l){return _.$K(function(){if(!x.veType)return _.vH(new _.ry("Error: Trying to graft a client VE without a veType.")),null;if(x.visibilityTypes){var C=x.visibilityTypes.reduce(function(Q,L){return Q|L});
C={visibility:{types:String(C)}}}C=_.O9(x.veType,x.visualElement,x.elementIndex,x.clientYouTubeData,void 0,C);return _.qK(O,C,e,l)?C:null})()};
_.qK=function(O,x,e,l){l=l===void 0?0:l;return _.$K(function(){if(O.pendingScreenCreation.has(l))return O.graftQueue.push([x,e]),!0;var C=_.Pq(l),Q=e||_.q9(l);if(C&&Q){if(_.t("combine_ve_grafts")){var L=O.cachedVisualElements.get(Q.toString());L?L.push(x):(O.cachedRootVisualElements.set(Q.toString(),Q),O.cachedVisualElements.set(Q.toString(),[x]));O.attachTimeout||(O.attachTimeout=_.zl(_.vn,function(){pCp(O,C)},1200))}else mR(O.client,C,Q,x);
return!0}return!1})()};
_.Pu=function(O,x,e){e=e===void 0?0:e;var l=O.recurringGrafts.get(e)||new Map;if(_.t("smarter_ve_dedupping"))for(var C=Array.from(l.keys()),Q=0;Q<C.length;Q++){var L=void 0,k=void 0;var M=x;var G=C[Q];G.isClientVe()&&M.isClientVe()?(L=M.getAsJson(),k=G.getAsJson(),M=L.veType!==k.veType||L.elementIndex!==k.elementIndex||L.dataElement!==k.dataElement||M.getLoggingDirectives()!==G.getLoggingDirectives()?!1:!0):M=G.veData.trackingParams!==void 0&&M.veData.trackingParams!==void 0?((k=M.veData)==null?void 0:
k.trackingParams)===((L=G.veData)==null?void 0:L.trackingParams):!1;if(M)return}else if(l.has(x))return;l.set(x,void 0);O.recurringGrafts.set(e,l);_.Pq(e)==="UNDEFINED_CSN"||O.pendingScreenCreation.has(e)||_.qK(O,x,void 0,e)};
_.cu=function(O,x,e,l){l=_.Pq(l===void 0?0:l);if(!l)return!1;Fww(O.client,l,x,e);return!0};
_.I7=function(O,x,e,l){if(!x)return!1;l=_.Pq(l===void 0?0:l);if(!l)return!1;Fww(O.client,l,_.Fv(x),e);return!0};
_.s1=function(O,x){var e=x.getScreenLayer&&x.getScreenLayer();if(x.visualElement)return _.cu(O,x.visualElement,void 0,e);x=J$w(_.TO(),x);return _.I7(O,x,void 0,e)};
E7.prototype.clickCommand=function(O,x,e){return _.I7(this,O.clickTrackingParams,x,e===void 0?0:e)};
E7.prototype.stateChanged=function(O,x,e){this.visualElementStateChanged(_.Fv(O),x,e===void 0?0:e)};
E7.prototype.visualElementStateChanged=function(O,x,e){e=e===void 0?0:e;e===0&&this.pendingScreenCreation.has(e)?this.stateChangedQueue.push([O,x]):this.logStateChanged(O,x,e)};
E7.prototype.logStateChanged=function(O,x,e){e=e===void 0?0:e;var l=_.Pq(e);O=O||_.q9(e);return l&&O?(XuN(this.client,l,O,x),!0):!1};
var cbd=function(O,x,e,l){l=l===void 0?{}:l;O.pendingScreenCreation.add(l.layer||0);O.pendingScreenFn=function(){Ixd(O,x,e,l);var L=_.q9(l.layer);if(L){for(var k=_.T(O.graftQueue),M=k.next();!M.done;M=k.next())M=M.value,_.qK(O,M[0],M[1]||L,l.layer);L=_.T(O.stateChangedQueue);for(k=L.next();!k.done;k=L.next())k=k.value,O.logStateChanged(k[0],k[1])}};
e||_.Pq(l.layer)||O.pendingScreenFn();if(l.dataPromises)for(var C=_.T(l.dataPromises),Q=C.next();!Q.done;Q=C.next())_.VHF(O,Q.value,l.layer);else _.BH(Error("Df"))},Ixd=function(O,x,e,l){l=l===void 0?{}:l;
var C=void 0;l.layer||(l.layer=0);C=l.parentLayer!==void 0?l.parentLayer:l.layer;var Q=_.Pq(C);C=_.q9(C);var L=e||C,k;L&&(l.parentCsn!==void 0?k={clientScreenNonce:l.parentCsn,visualElement:L}:Q&&Q!=="UNDEFINED_CSN"&&(k={clientScreenNonce:Q,visualElement:L}));var M,G=_.wz("EVENT_ID");Q==="UNDEFINED_CSN"&&G&&(M={servletData:{serializedServletEventId:G}});_.t("combine_ve_grafts")&&Q&&pCp(O,Q);_.t("no_client_ve_attach_unless_shown")&&L&&Q&&TxV(L,Q);try{var X=_.CQm(O.client,x,k,l.csnToClone,l.cttAuthInfo,
M,l.implicitGestureType,void 0,l.loggingExpectations)}catch(E){_.JG(E,{rootVeType:x,rootVe:C,parentVisualElement:e,currentCsn:Q,parentEl:k,csnToClone:l.csnToClone});_.BH(E);return}_.Ig(X,x,l.layer,l.cttAuthInfo);Q&&Q!=="UNDEFINED_CSN"&&C&&!F_w(Q)&&DKN(O.client,Q,C,!0);O.backHistoryStack[O.backHistoryStack.length-1]&&!O.backHistoryStack[O.backHistoryStack.length-1].csn&&(O.backHistoryStack[O.backHistoryStack.length-1].csn=X||"");_.EO({clientScreenNonce:X});_.quR();var y=_.q9(l.layer);Q&&Q!=="UNDEFINED_CSN"&&
y&&(_.t("web_mark_root_visible")||_.t("music_web_mark_root_visible"))&&_.zD(X,y);O.pendingScreenCreation.delete(l.layer||0);O.pendingScreenFn=void 0;var Z;(Z=O.recurringGrafts.get(l.layer))==null||Z.forEach(function(E,P){E?_.qK(O,P,E,l.layer):y&&_.qK(O,P,y,l.layer)});
RG$(O)},RG$=function(O){for(var x=0;x<O.afterNewScreenOneOffJobs.length;x++){var e=O.afterNewScreenOneOffJobs[x];
try{e()}catch(l){_.BH(l)}}for(x=O.afterNewScreenOneOffJobs.length=0;x<O.afterNewScreenRecurringJobs.length;x++){e=O.afterNewScreenRecurringJobs[x];try{e()}catch(l){_.BH(l)}}},pCp=function(O,x){if(x===void 0)for(var e=D_8(),l=0;l<e.length;l++)e[l]!==void 0&&pCp(O,e[l]);
else O.cachedVisualElements.forEach(function(C,Q){(Q=O.cachedRootVisualElements.get(Q))&&Q7W(O.client,x,Q,C)}),O.cachedVisualElements.clear(),O.cachedRootVisualElements.clear(),O.attachTimeout=void 0};var VA=function(O){O=O===void 0?{layer:0}:O;this.hasRun=!1;this.createScreenConfig=O;O={};this.xul=(O.response=!1,O.playerResponse=!1,O)};
_.c(VA,MK);VA.prototype.validate=function(O){return!(!O.data||!O.data.response&&!O.data.playerResponse)};
VA.prototype.handle=function(O){var x=_.k0(),e=this.createScreenConfig.layer;O.data.response&&O.data.response.trackingParams&&!this.xul.response&&(x.graftServerVe(O.data.response.trackingParams,void 0,e),this.xul.response=!0);O.data.playerResponse&&O.data.playerResponse.trackingParams&&!this.xul.playerResponse&&(x.graftServerVe(O.data.playerResponse.trackingParams,void 0,e),this.xul.playerResponse=!0)};var po=function(){this.hZ=_.He();this.zG=[];this.uYm=0};
po.prototype.processChunk=function(O){if(O){for(var x=_.T(this.zG),e=x.next();!e.done;e=x.next())e=e.value,e.validate(O)&&(e.handle(O),e.hasRun=!0);_.IR("np"+this.uYm);this.uYm++}};var Ym={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},Ivr={rootSpan:function(){return Ym.stack[0]}};var axR=function(){var O=UrT;this.observers=[];this.value=O};
_.b=axR.prototype;_.b.subscribe=function(O){var x=this;if(O.idx!=null)throw Error("Ff");O.idx=this.observers.length;this.observers.push(O);return function(){var e=x.observers[x.observers.length-1];x.observers[O.idx]=e;e.idx=O.idx;x.observers.pop()}};
_.b.update=function(O){this.value=O(this.value);this.notify()};
_.b.mutate=function(O){O(this.value);this.notify()};
_.b.set=function(O){this.value=O;this.notify()};
_.b.notify=function(){for(var O=_.T(this.observers),x=O.next();!x.done;x=O.next()){x=x.value;try{x(this.value)}catch(e){}}};var xJr,mrR,hGT;_.lV=function(O,x,e,l,C,Q,L,k){L=L===void 0?[]:L;k=k===void 0?[]:k;this.buildCommandPayload=O;this.navigate=x;this.handleServiceRequest=e;this.sendAction=l;this.JSC$12766_screenManager=C;this.commandResolverMap=Q;this.autoLogResolverAllowlist=L;this.metaCommandClickLoggingDenylist=k;this.pendingCommands=new Set;this.isTracingEnabled=!1;mrR(this)};
xJr=function(O,x,e,l){var C=dHN,Q=n1i,L=_.k0(),k=sBF;e=e===void 0?[]:e;l=l===void 0?[]:l;_.lV.instance=new _.lV(O,x,C,Q,L,k,e,l)};
mrR=function(O){if(!O.isTracingEnabled&&PQ7("command")){var x=O.resolveCommand;O.resolveCommand=function(e,l){a:{for(C in e)if(Object.prototype.hasOwnProperty.call(e,C)){var C={commandType:C};break a}C={}}return VoL("command",C,x.bind(this,e,l))};
O.isTracingEnabled=!0}};
hGT=function(O,x,e){if(!O.commandResolverMap)return!1;var l=mKs(x,O.commandResolverMap);return l?((O.autoLogResolverAllowlist.some(function(C){return!!_.q(x,C)})||(e==null?0:e.forceClickLogging))&&WMd(O,x,e),l instanceof Promise?l.then(function(C){C.resolve(x,e)}):l.resolve(x,e),!0):!1};
_.lV.prototype.resolveCommand=function(O,x){var e=this,l=zGd(O);if(hGT(this,O,x))return!0;if(l)return rbk(this,O,x);if(!this.buildCommandPayload)return RmN(O,"Unhandled command by buildCommandPayload"),!1;var C=this.buildCommandPayload(O,x);if(x==null?0:x.commandController)C.commandController=x.commandController;if(C.type===0){if(!this.navigate)return UKr(O,"navigate"),!1;if(!HBT(C.command))return RmN(O,"Page requests need to specify a url"),!1;_.t("logging_avoid_blocking_during_navigation")&&_.pew().transition("application_navigating");
O=this.navigate(C)||[];bOz(O).then(function(){e.pendingCommands.delete(C.command)});
return!0}if(C.type===1){if(!this.handleServiceRequest)return UKr(O,"handleServiceRequest"),!1;(x==null?0:x.forceClickLogging)&&WMd(this,C.command,x);O=this.handleServiceRequest(C);bOz(O).then(function(){e.pendingCommands.delete(C.command)});
return!0}if(C.type===2){if(!this.sendAction)return UKr(O,"sendAction"),!1;WMd(this,C.command,x);this.sendAction(C);return!0}return!1};
var WMd=function(O,x,e){if((e==null||!e.disableClickTracking)&&O.JSC$12766_screenManager)if(x.clickTrackingParams&&_.t("log_click_with_layer_from_element_in_command_handler")){var l;e=e==null?void 0:(l=e.form)==null?void 0:l.element;O.JSC$12766_screenManager.clickCommand(x,null,e&&e.getScreenLayer&&e.getScreenLayer())}else x.clickTrackingParams?O.JSC$12766_screenManager.clickCommand(x):!_.t("disable_clicked_visual_element_in_command_handler")&&(e==null?0:e.clickedVisualElement)&&_.cu(O.JSC$12766_screenManager,
e.clickedVisualElement)},zGd=function(O){var x=!!_.q(O,_.ih),e;
O=((e=_.q(O,_.xm))==null?void 0:e.signal)==="CLIENT_SIGNAL";return x||O},rbk=function(O,x,e){var l=_.q(x,_.ih);
if(l)var C=(l==null?void 0:l.commands)||[];else{var Q;if(((Q=_.q(x,_.xm))==null?void 0:Q.signal)==="CLIENT_SIGNAL"){var L;C=((L=_.q(x,_.xm))==null?void 0:L.actions)||[]}}if(C){(l=KMT(O,C))&&WMd(O,x,e);x=_.T(C);for(C=x.next();!C.done;C=x.next()){C=C.value;try{var k=Object.assign({},e);l&&(k.disableClickTracking=!0);O.resolveCommand(C,k)}catch(M){M instanceof Error&&_.BH(M)}}return!0}RmN(x,"Could not handle the meta command");return!1},KMT=function(O,x){return x.every(function(e){return O.metaCommandClickLoggingDenylist.some(function(l){return!!_.q(e,
l)})})},HBT=function(O){var x;
return!((x=_.q(O==null?void 0:O.commandMetadata,_.e6))==null||!x.url)};var R7=function(){MK.apply(this,arguments)};
_.c(R7,MK);R7.prototype.validate=function(O){var x,e;return!this.hasRun&&!!((x=O.data.response)==null?0:(e=x.onResponseReceivedEndpoints)==null?0:e.length)};
R7.prototype.handle=function(O){var x=_.lV.instance;O=_.T(O.data.response.onResponseReceivedEndpoints);for(var e=O.next();!e.done;e=O.next())x.resolveCommand(e.value)};var drL,n2T,uA2;
drL=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.$7();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.U7=function(){n2T||(n2T=new drL);return n2T};
uA2=function(){var O=_.U7();O.miniplayerButtonActivation=!1;O.userActivation=!1;O.playlistWatchPageActivation=!1;O.productDetailsPageActivation=!1;O.miniAppPageActivation=!1;O.playablesDestPageActivation=!1;O.lockupActivation=!1;O.showMiniplayerCommandActivation=!1;O.playlistSuggestionsShelfActivation=!1;O.mediaSessionPipActivation=!1;O.watchPipActivation=!1;O.watchWhileActivation=!1;O.shortsPipActivation=!1;O.companionCanvasActivation=!1};
_.Yu4=function(){var O=_.U7(),x=O.mediaSessionPipActivation,e=O.watchPipActivation,l=O.watchWhileActivation,C=O.playlistWatchPageActivation,Q=O.lockupActivation,L=O.showMiniplayerCommandActivation,k=O.navigatingAwayFromWatchDeletedVideo,M=O.shortsPipActivation,G=O.playlistSuggestionsShelfActivation,X=O.productDetailsPageActivation,y=O.miniAppPageActivation,Z=O.playablesDestPageActivation,E=O.companionCanvasActivation;return!O.miniplayerButtonActivation&&!C&&!G&&!X&&!y&&!Z&&!Q&&!L&&!x&&!e&&!l&&!M&&
!E||k};var BnW;_.a7=_.vU("FEwhat_to_watch","/",3854);_.vML=_.vU("FEdownloads","/feed/downloads",42352);BnW=_.vU("FEmusic_offline","browse/FEmusic_offline",42352);var nA=function(O,x){x=x===void 0?[]:x;var e=e===void 0?[]:e;x=fgi.apply(null,[Jlm.apply(null,_.Kx(x))].concat(_.Kx(e)));this.store=NpN(O,void 0,x)};
nA.prototype.getState=function(){return this.store.getState()};
nA.prototype.dispatch=function(O){return this.store.dispatch(O)};
nA.prototype.subscribe=function(O){return this.store.subscribe(O)};
nA.prototype.replaceReducer=function(O){return this.store.replaceReducer(O)};
nA.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.mw=function(O,x,e){var l=x(O.getState());return O.subscribe(function(){var C=x(O.getState());if(C!==l){var Q=l;l=C;e(C,Q)}})};var q2m;_.Dc=function(O,x,e){return _.j6({type:"REPLACE_ENTITY",payload:{entityPayload:e,entityType:O,key:x}})};
q2m=function(O){return _.j6({type:"REPLACE_ENTITIES",payload:O})};
_.Zw=function(O,x,e,l){return _.j6({type:"UPDATE_ENTITY",payload:{entityPayload:e,entityType:O,key:x,mergeOption:l}})};var vj8=function(O){var x=this;O=O===void 0?[]:O;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;O.forEach(function(e){x.append(e)})};
_.b=vj8.prototype;_.b.getLength=function(){return this.totalLength};
_.b.append=function(O){var x=this.arrays.length===0?!1:(x=this.arrays[this.arrays.length-1])&&x.buffer===O.buffer&&x.byteOffset+x.length===O.byteOffset;x?(x=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(x.buffer,x.byteOffset,x.length+O.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(O);this.totalLength+=O.length};
_.b.split=function(O){for(var x=new vj8,e=new vj8,l=_.T(this.arrays),C=l.next();!C.done;C=l.next())C=C.value,O>=C.length?(x.append(C),O-=C.length):O?(x.append(new Uint8Array(C.buffer,C.byteOffset,O)),e.append(new Uint8Array(C.buffer,C.byteOffset+O,C.length-O)),O=0):e.append(C);return{headView:x,tailView:e}};
_.b.isFocused=function(O){return O>=this.arrayPos&&O<this.arrayPos+this.arrays[this.arrayIdx].length};
_.b.focus=function(O){if(!this.isFocused(O))for(O<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=O&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var BIR=function(O,x){O.focus(x);return O.arrays[O.arrayIdx][x-O.arrayPos]};(function(){var O=function(l){return new Uint8Array(l)},x=function(l){for(var C=new Uint8Array(l.length),Q=0;Q<l.length;Q++)C[Q]=l[Q];
return C},e=new Uint8Array([1]);
return e.length===1&&e[0]===1?O:x})();
var Kw8=Array(1024),HoL=window.TextDecoder?new TextDecoder:void 0,njn=window.TextEncoder?new TextEncoder:void 0;var Bxw=function(O){this.arrayView=O;this.pos=0;this.pendingTagAndType=-1},Ng=function(O){var x=BIR(O.arrayView,O.pos);
++O.pos;if(x<128)return x;for(var e=x&127,l=1;x>=128;)x=BIR(O.arrayView,O.pos),++O.pos,l*=128,e+=(x&127)*l;return e},fvL=function(O,x){var e=O.pendingTagAndType;
for(O.pendingTagAndType=-1;O.pos+1<=O.arrayView.totalLength;){e<0&&(e=Ng(O));var l=e>>3,C=e&7;if(l===x)return!0;if(l>x){O.pendingTagAndType=e;break}e=-1;switch(C){case 0:Ng(O);break;case 1:O.pos+=8;break;case 2:l=Ng(O);O.pos+=l;break;case 5:O.pos+=4}}return!1};var wur=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=Y7$(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},i_=function(O,x){x=O.pos+x;
if(!(O.buf.length>=x)){for(var e=O.buf.length*2;e<x;)e*=2;O.buf=Y7$(e,O.wasm,O.buf.subarray(0,O.pos));O.view=new DataView(O.buf.buffer,O.buf.byteOffset,O.buf.byteLength)}},$m=function(O,x){if(x>268435455){i_(O,4);
for(var e=x&1073741823,l=0;l<4;l++)O.view.setUint8(O.pos,e&127|128),e>>=7,O.pos+=1;x=Math.floor(x/268435456)}for(i_(O,4);x>127;)O.view.setUint8(O.pos,x&127|128),x>>=7,O.pos+=1;O.view.setUint8(O.pos,x);O.pos+=1};for(var S7N={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},Jxr={},v2z=_.T(Object.entries(S7N)),fx4=v2z.next();!fx4.done;fx4=v2z.next()){var JbF=_.T(fx4.value),wCJ=JbF.next().value,SuF=JbF.next().value,jBJ=wCJ,NIR=SuF;NIR&&(Jxr[NIR]=jBJ)};var Nxr=function(O,x){O=O===void 0?{}:O;switch(x.type){case "ENTITY_LOADED":return x.payload.reduce(function(l,C){var Q,L=(Q=C.options)==null?void 0:Q.persistenceOption;if(L&&L!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&L!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return l;if(!C.entityKey)return _.BH(Error("Hf")),l;if(C.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!C.payload)return C=new _.ry("REPLACE entity mutation is missing a payload",{entityKey:C.entityKey}),_.BH(C),l;var k=(0,_.HX.getAnyKey)(C.payload);
return $KW(l,k,C.entityKey,C.payload[k])}if(C.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{C=C.entityKey;try{var M=_.gT(C).entityType;k=$KW(l,M,C);break a}catch(y){if(y instanceof Error){C=new _.ry("Failed to deserialize entity key",{entityKey:C,originalMessage:y.message});_.BH(C);k=l;break a}throw y;}k=void 0}return k}if(C.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!C.payload)return C=new _.ry("UPDATE entity mutation is missing a payload",{entityKey:C.entityKey}),_.BH(C),l;k=(0,_.HX.getAnyKey)(C.payload);
var G,X;return ios(l,k,C.entityKey,C.payload[k],(G=C.fieldMask)==null?void 0:(X=G.mergeOptions)==null?void 0:X.repeatedFieldsMergeOption)}return l},O);
case "REPLACE_ENTITY":var e=x.payload;return $KW(O,e.entityType,e.key,e.entityPayload);case "REPLACE_ENTITIES":return Object.keys(x.payload).reduce(function(l,C){var Q=x.payload[C];return Object.keys(Q).reduce(function(L,k){return $KW(L,C,k,Q[k])},l)},O);
case "UPDATE_ENTITY":return e=x.payload,ios(O,e.entityType,e.key,e.entityPayload,e.mergeOption);default:return O}};var OLV;var g2R=!1,s7,Wu,hx,zj,rx,$rL=function(O){_.h0.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!g2R){var x,e=new Uint8Array(256),l=new Uint8Array(256);var C=1;for(x=0;x<256;x++)e[C]=x,l[x]=C,C^=C<<1^(C>>7&&283);s7=new Uint8Array(256);Wu=e_(256);hx=e_(256);zj=e_(256);rx=e_(256);for(var Q=0;Q<256;Q++){C=Q?l[255^e[Q]]:0;C^=C<<1^C<<2^C<<3^C<<4;C=C&255^C>>>8^99;s7[Q]=C;x=C<<1^(C>>7&&283);var L=x^C;Wu[Q]=x<<24|C<<16|C<<8|L;hx[Q]=L<<24|Wu[Q]>>>8;zj[Q]=C<<24|hx[Q]>>>
8;rx[Q]=C<<24|zj[Q]>>>8}g2R=!0}C=e_(44);for(e=0;e<4;e++)C[e]=O[4*e]<<24|O[4*e+1]<<16|O[4*e+2]<<8|O[4*e+3];for(l=1;e<44;e++)O=C[e-1],e%4||(O=(s7[O>>16&255]^l)<<24|s7[O>>8&255]<<16|s7[O&255]<<8|s7[O>>>24],l=l<<1^(l>>7&&283)),C[e]=C[e-4]^O;this.key=C};
_.c($rL,_.h0);
$rL.prototype.encrypt=function(O){var x=O.length;O=new Uint8Array(O.buffer.slice(O.byteOffset,O.byteOffset+x));for(var e=this.cipherBlock,l=0;l<x&&this.blockOffset<16;)O[l++]^=e[this.blockOffset++];for(var C=x-(x-l)%16;l<C;)iB3(this),O[l++]^=e[0],O[l++]^=e[1],O[l++]^=e[2],O[l++]^=e[3],O[l++]^=e[4],O[l++]^=e[5],O[l++]^=e[6],O[l++]^=e[7],O[l++]^=e[8],O[l++]^=e[9],O[l++]^=e[10],O[l++]^=e[11],O[l++]^=e[12],O[l++]^=e[13],O[l++]^=e[14],O[l++]^=e[15];if(l<x)for(iB3(this),this.blockOffset=0;l<x;)O[l++]^=
e[this.blockOffset++];return O};
var iB3=function(O){for(var x=O.key,e=O.counter[0]^x[0],l=O.counter[1]^x[1],C=O.counter[2]^x[2],Q=O.counter[3]^x[3],L=3;L>=0&&!(O.counter[L]=-~O.counter[L]);L--);for(var k,M,G=4;G<40;)L=Wu[e>>>24]^hx[l>>16&255]^zj[C>>8&255]^rx[Q&255]^x[G++],k=Wu[l>>>24]^hx[C>>16&255]^zj[Q>>8&255]^rx[e&255]^x[G++],M=Wu[C>>>24]^hx[Q>>16&255]^zj[e>>8&255]^rx[l&255]^x[G++],Q=Wu[Q>>>24]^hx[e>>16&255]^zj[l>>8&255]^rx[C&255]^x[G++],e=L,l=k,C=M;O=O.cipherBlock;L=x[40];O[0]=s7[e>>>24]^L>>>24;O[1]=s7[l>>16&255]^L>>16&255;O[2]=
s7[C>>8&255]^L>>8&255;O[3]=s7[Q&255]^L&255;L=x[41];O[4]=s7[l>>>24]^L>>>24;O[5]=s7[C>>16&255]^L>>16&255;O[6]=s7[Q>>8&255]^L>>8&255;O[7]=s7[e&255]^L&255;L=x[42];O[8]=s7[C>>>24]^L>>>24;O[9]=s7[Q>>16&255]^L>>16&255;O[10]=s7[e>>8&255]^L>>8&255;O[11]=s7[l&255]^L&255;L=x[43];O[12]=s7[Q>>>24]^L>>>24;O[13]=s7[e>>16&255]^L>>16&255;O[14]=s7[l>>8&255]^L>>8&255;O[15]=s7[C&255]^L&255};var OCL=!1;(function(){var O=function(l){return new Uint8Array(l)},x=function(l){for(var C=new Uint8Array(l.length),Q=0;Q<l.length;Q++)C[Q]=l[Q];
return C},e=new Uint8Array([1]);
return e.length===1&&e[0]===1?O:x})();
var Hu;var lhN=function(O){a:{if(!OCL&&!kC){if(Hu){var x=Hu;break a}Hu=(x=window.crypto)==null?void 0:x.subtle;var e,l,C;if(((e=Hu)==null?0:e.importKey)&&((l=Hu)==null?0:l.sign)&&((C=Hu)==null?0:C.encrypt)){x=Hu;break a}Hu=void 0}x=void 0}x&&(this.nativeEncryptor=new xVJ(O,x));this.encryptorPolyfill=new egD(O)};
lhN.prototype.encrypt=function(O,x){var e=this,l;return _.A(function(C){switch(C.nextAddress){case 1:if(!e.nativeEncryptor){C.jumpTo(2);break}_.tS(C,3);return C.yield(e.nativeEncryptor.encrypt(O,x),5);case 5:return C.return(C.yieldResult);case 3:l=_.VP(C),_.ft(l),OCL=!0,e.nativeEncryptor=void 0;case 2:return C.return(e.encryptorPolyfill.encrypt(O,x))}})};
lhN.prototype.decrypt=function(O,x){return this.encrypt(O,x)};
var xVJ=function(O,x){this.JSC$12839_aesKey=O;this.subtleCrypto=x};
xVJ.prototype.encrypt=function(O,x){var e=this,l;return _.A(function(C){if(C.nextAddress==1)return _.tS(C,2),C.yield(Cq4(e,O,x),4);if(C.nextAddress!=2)return C.return(C.yieldResult);l=_.VP(C);_.ft(l);OCL=!0;throw l;})};
var Cq4=function(O,x,e){var l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:if(O.cryptoKey){Q.jumpTo(2);break}return Q.yield(O.subtleCrypto.importKey("raw",O.JSC$12839_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:O.cryptoKey=Q.yieldResult;case 2:return l={name:"AES-CTR",counter:e,length:128},Q.yield(O.subtleCrypto.encrypt(l,O.cryptoKey,x),4);case 4:return C=Q.yieldResult,Q.return(new Uint8Array(C))}})},egD=function(O){this.JSC$12842_aesKey=O};
egD.prototype.encrypt=function(O,x){this.encryptor||(this.encryptor=new $rL(this.JSC$12842_aesKey));for(var e=this.encryptor,l=0;l<4;l++)e.counter[l]=x[l*4]<<24|x[l*4+1]<<16|x[l*4+2]<<8|x[l*4+3];e.blockOffset=16;return this.encryptor.encrypt(O)};
egD.prototype.decrypt=function(O,x){return this.encrypt(O,x)};var QM$={},l5w=GC("yt-idb-pref-storage",{objectStores:(QM$.prefs={addedAtVersion:1},QM$),shared:!1,upgrade:function(O,x){x(1)&&$C(gD(O,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Ko=function(O){this.token=O};
_.Ko.getInstance=function(){return _.A(function(O){return O.return(new Promise(function(x){_.DG().then(function(e){e?(_.Ko.instance||(_.Ko.instance=new _.Ko(e)),x(_.Ko.instance)):x(void 0)})}))})};
_.Ko.prototype.get=function(O){var x=this,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(CXr(x.token),2);if(Q.nextAddress!=3)return e=Q.yieldResult,Q.yield(e.get("prefs",O),3);l=Q.yieldResult;if(!l)return Q.return();C=(0,_.F2)();return l.expirationTimestampMs<=C?Q.return():Q.return(l.value)})};
_.Ko.prototype.set=function(O,x,e){e=e===void 0?31536E3:e;var l=this,C,Q,L;return _.A(function(k){if(k.nextAddress==1)return C=(0,_.F2)(),Q={key:O,value:x,expirationTimestampMs:C+e*1E3},k.yield(CXr(l.token),2);L=k.yieldResult;return k.yield(L.put("prefs",Q),0)})};
_.Ko.prototype.remove=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(CXr(x.token),2);e=l.yieldResult;return l.yield(e.delete("prefs",O),0)})};var dx={},bCk=(dx.INVALID_ENCODER_VERSION="Invalid encoder version",dx.KEY_CREATION_FAILED="Failed to create encoder key",dx.UNKNOWN_DECODE_ERROR="Failed to decode PES data",dx.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",dx.WRONG_DATA_TYPE="Encoder cannot process the data type",dx),l9=function(O,x){x=x===void 0?{}:x;_.ry.call(this,bCk[O],Object.assign({},{name:"PESEncoderError",type:O},x));this.type=O;this.level="WARNING";Object.setPrototypeOf(this,l9.prototype)};
_.c(l9,_.ry);var no=function(){};
no.prototype.encode=function(O,x){try{return this.encodeImpl(O,x)}catch(e){LGn(e,bLL)}};
no.prototype.decode=function(O,x){try{return this.decodeImpl(O,x)}catch(e){LGn(e,THn)}};
var T9T=function(O,x,e){var l;return _.A(function(C){if(C.nextAddress==1)return _.tS(C,2),C.yield(O.decodeAsyncImpl(x,e),4);if(C.nextAddress!=2)return C.return(C.yieldResult);l=_.VP(C);LGn(l,THn);_.Ra(C)})};
no.prototype.decodeAsyncImpl=function(O,x){return Promise.resolve(this.decodeImpl(O,x))};var uQ=function(O,x){this.aesEncryptor=O;this.aesEncryptorAsync=x};
_.c(uQ,no);uQ.prototype.encodeImpl=function(O,x){x=kKr(x);O=(new TextEncoder).encode(JSON.stringify(O));return this.aesEncryptor.encrypt(O,x)};
uQ.prototype.decodeImpl=function(O,x){if(!(O instanceof Uint8Array))throw QdL(1);var e=new TextDecoder;x=kKr(x);O=this.aesEncryptor.decrypt(O,x);return JSON.parse(e.decode(O))};
uQ.prototype.decodeAsyncImpl=function(O,x){var e=this,l,C,Q;return _.A(function(L){if(L.nextAddress==1){if(!(O instanceof Uint8Array))throw QdL(1);l=new TextDecoder;C=kKr(x);return L.yield(e.aesEncryptorAsync.decrypt(O,C),2)}Q=L.yieldResult;return L.return(JSON.parse(l.decode(Q)))})};var Adw={accountLinkStatusEntity:j1J,booleanEntity:c5d,buttonEntity:yM3,captionTrack:xL2,channelHandle:$CJ,chipEntity:wmN,commerceAcquisitionClientPayloadEntity:B64,commerceCartListEntity:vRT,compositeSourceEntity:oqD,multiviewStagingEntity:ydp,contextNoteFeedEntityPayload:MPT,contextNoteUserRatingEntityPayload:DXd,continuationTokenEntity:hm3,downloadQualityPickerEntity:PQN,downloadsPageRefreshTokenEntity:Iv4,downloadsPageViewConfigurationEntity:Bx$,downloadStatusEntity:cxL,dismissState:Sgd,sfvAudioItemCurrentlyPlayingEntity:hVz,
emojiFountainDataEntity:FAT,emojiCustomizationSetEntity:Gx2,fakeChannel:VaF,fakePlaylist:pgz,fakePlaylistEntryCollection:RbF,fakeVideo:amN,fakeVideoDescription:m_J,featuredProductsEntity:kKF,flowStateEntity:fmF,iconBadgeEntity:fLL,interstitialInteractionStateEntity:Mmz,likeButtonAnimationEntity:vjT,liveChatPollStateEntity:Eok,dataFreshnessEntity:DzD,liveViewerLeaderboardChatEntryPointStateEntity:Xt$,liveViewerLeaderboardPointsEntity:oa2,liveReactionsDataEntity:XId,logoEntity:kUJ,macroMarkerEntity:fvJ,
mainDownloadsLibraryEntity:Vo3,mainDownloadsListEntity:puR,mainPlaylistDownloadStateEntity:UKF,mainPlaylistEntity:zmN,mainPlaylistVideoEntity:rxd,mainVideoDownloadStateEntity:avd,mainVideoEntity:njD,markersEngagementPanelSyncEntity:Jxp,markersVisibilityOverrideEntity:wuF,musicAlbumReleaseDetail:cdF,musicAlbumReleaseDownloadMetadataEntity:ZLN,musicAlbumRelease:PXT,musicAlbumReleaseUserDetail:I5d,musicArtistDetail:pr$,musicArtist:VG4,musicArtistUserDetail:Rqd,musicDownloadsLibraryEntity:Eq4,musicLibraryEdit:Un4,
musicLibraryStatusEntity:a5N,musicPlaylist:mn4,musicPlaylistDownloadMetadataEntity:tG2,musicShare:WGJ,musicTrackDetail:zqT,musicTrackDownloadMetadataEntity:q2z,musicTrack:hq4,musicTrackUserDetail:rdN,offlineOrchestrationActionWrapperEntity:eV$,offlineVideoPolicy:lXN,offlineVideoStreams:C4T,offlineabilityEntity:mKL,orchestrationWebSamplingEntity:s7N,pageHeaderEntity:ClD,pdpStateEntity:JMd,pinnedProductEntity:Ad$,playbackData:QV4,playerStateEntity:S7R,quantityIncrementerEntity:wID,refresh:bdR,saveToPlaylistListEntity:xOJ,
selectedChipIndexEntityPayload:j7R,settingEntity:pm4,stringEntity:Imk,suggestedFeedbackChipStateEntity:NxF,transfer:TgJ,trendingOfferEntity:MG3,videoDownloadContextEntity:LPd,videoOverviewAsyncDataEntity:o6T,videoPlaybackPositionEntity:tQJ,votingEntity:LAd,ytMainChannelEntity:utd,youchatPendingResponseEntity:gjD,ytMainDownloadedVideoEntity:WwD,ytMainVideoEntity:Y7k};var LDd,AC$,LA,ZL7,Eqr,GbJ,X4d,FDp,DVk;LDd=function(O,x){this.JSC$12861_wrapped=O;this.JSC$12861_encoderRegistry=x;this.changedKeys={}};
AC$=function(O,x){return kb2(O.JSC$12861_encoderRegistry,x.version).decode(x.data,x.key)};
_.MX3=function(O,x,e){return O.JSC$12861_wrapped.objectStore("EntityStore").get(x).then(function(l){if(l){if(e&&l.entityType!==e)throw Error("If");return AC$(O,l)}})};
LA=function(O,x,e){return e?(e=e.map(function(l){return _.MX3(O,l,x)}),$c.all(e)):O.JSC$12861_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(x)).then(function(l){return l.map(function(C){return AC$(O,C)})})};
_.ydr=function(O,x,e){var l=j7N(x),C=kb2(O.JSC$12861_encoderRegistry,1),Q=Object.assign({},x);return O.JSC$12861_wrapped.objectStore("EntityStore").get(l).then(function(L){if(L){if(L.entityType!==e)throw Error("If");Q.entityMetadata||(L=AC$(O,L),Q.entityMetadata=L.entityMetadata)}}).then(function(){var L={key:l,
entityType:e,data:C.encode(Q,l),version:1};return $c.all([O.JSC$12861_wrapped.objectStore("EntityStore").put(L),DVk(O,Q,e)])}).then(function(){GbJ(O,l,e);
return l})};
ZL7=function(O,x){var e=_.gT(x).entityType;return $c.all([O.JSC$12861_wrapped.objectStore("EntityStore").delete(x),FDp(O,x)]).then(function(){GbJ(O,x,e)})};
Eqr=function(O,x,e,l){var C=kb2(O.JSC$12861_encoderRegistry,1);return _.MX3(O,x,l).then(function(Q){if(Q){Q=rxW(Q,e);var L={key:x,entityType:l,data:C.encode(Q,x),version:1};return $c.all([O.JSC$12861_wrapped.objectStore("EntityStore").put(L),DVk(O,Q,l)])}}).then(function(){GbJ(O,x,l);
return x})};
GbJ=function(O,x,e){var l=O.changedKeys[e];l||(l=new Set,O.changedKeys[e]=l);l.add(x)};
X4d=function(O,x,e){var l=j7N(x);e=MGL(e);if(!e)return $c.resolve([]);e=new e(x);O=O.JSC$12861_wrapped.objectStore("EntityAssociationStore");x=[];e=_.T(e.getAssociations());for(var C=e.next();!C.done;C=e.next())x.push(O.put({parentEntityKey:l,childEntityKey:C.value}));return $c.all(x).then(function(Q){return Q.map(function(L){return L[1]})})};
FDp=function(O,x){return O.JSC$12861_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(x))};
DVk=function(O,x,e){var l=j7N(x);return FDp(O,l).then(function(){return X4d(O,x,e)})};var oBN=function(){};
_.c(oBN,no);oBN.prototype.encodeImpl=function(O){return O};
oBN.prototype.decodeImpl=function(O){if(O instanceof Uint8Array)throw QdL(0);return O};var FGr=function(){this.cacheMap={};this.cacheMap[0]=new oBN;if(!_.t("aes_pes_encoder_killswitch")){var O=this.cacheMap;try{var x=_.hq();var e=kKr(x);var l=new uQ(new egD(e),new lhN(e))}catch(C){throw O=C instanceof Error?new l9("KEY_CREATION_FAILED",{originalMessage:C.message}):new l9("KEY_CREATION_FAILED"),_.BH(O),O;}O[1]=l}},kb2=function(O,x){x=x===void 0?0:x;
O=O.cacheMap[x];if(!O)throw x=new l9("INVALID_ENCODER_VERSION",{encoderVersion:x}),_.BH(x),x;return O};var Qy=function(O,x){_.h0.call(this);this.token=O;this.JSC$12875_encoderRegistry=x;this.observers=[];O=new _.CV.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.hq());O.onmessage=this.JSC$12875_handleMessage.bind(this);this.channel=O};
_.c(Qy,_.h0);_.TL=function(O,x,e){var l,C,Q,L;return _.A(function(k){if(k.nextAddress==1)return k.yield(eqn(O.token),2);if(k.nextAddress!=3)return l=k.yieldResult,k.yield(_.bb(l,["EntityStore","EntityAssociationStore"],x,function(M){C=new LDd(M,O.JSC$12875_encoderRegistry);return e(C)}),3);
Q=k.yieldResult;C&&(L=C.changedKeys,Object.keys(L).length>0&&(O.channel.postMessage(L),yC4(O,L)));return k.return(Q)})};
Qy.prototype.observe=function(O){var x=this;this.observers.push(O);return function(){var e=x.observers.indexOf(O);e>=0&&x.observers.splice(e,1)}};
var C57=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(_.TL(O,{mode:"readonly",enableRetries:!0},function(l){return l.JSC$12861_wrapped.objectStore("EntityStore").getAll()}),2);
x=e.yieldResult;return e.return(Promise.all(x.filter(function(l){return!!l}).map(function(l){var C,Q;
return _.A(function(L){if(L.nextAddress==1){C=l.key;Q=l.entityType;var k=L.yield;var M=T9T(kb2(O.JSC$12875_encoderRegistry,l.version),l.data,l.key);return k.call(L,M,2)}return L.return({key:C,entityType:Q,data:L.yieldResult})})})))})};
Qy.prototype.JSC$12875_handleMessage=function(O){yC4(this,O.data)};
var yC4=function(O,x){O=_.T(O.observers);for(var e=O.next();!e.done;e=O.next())e=e.value,e(x)};
Qy.prototype.disposeInternal=function(){this.channel.close()};
var Dns;var Yj,EBz,dnL;Yj={};_.ZCT=(Yj.mainVideoEntity="mainVideoEntityActionMetadata",Yj.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Yj.musicTrack="musicTrackEntityActionMetadata",Yj.musicPlaylist="musicPlaylistEntityActionMetadata",Yj);EBz=new _.iR("DOWNLOADS_ENTITY_TYPE_MAP");_.ox=_.OQ("","downloadsPageViewConfigurationEntity");dnL=_.OQ("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Zd7=_.OQ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.OQ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.OQ("SMART_DOWNLOADS_ENABLED","settingEntity");_.OQ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var I5W=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var sdL=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.tX$={isLeaderTab:!0};var bdN={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Bu=window,ax=Bu.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",r8V=Bu.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||mW,YB$=Bu.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||xV,K8T=Bu.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||H5F,zjD=Bu.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||j2d,xls=Bu.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||xR3;var zYL;rb({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 xAL=B_m(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(O){return O}}}),a$$=B_m(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(O){return O}}}),wyr=new Map;var lB7=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],$Oi;var qX3=function(O){return _.j6({type:"SET_EPHEMERAL_ACTION",payload:O})};_.Pq4={ephemeralAction:null};var cC3=function(O){return _.j6({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:O})};_.Ih3={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var UAr={sharedUi:function(O,x){O=O===void 0?_.Ih3:O;switch(x.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},O,{animatedThumbnailEnabled:x.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},O,{inlinePreviewEnabled:x.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},O,{currentPageType:x.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},O,{currentPageSubType:x.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
O,{persistentPanelVisible:x.payload});default:return O}},
a11y:mN({ephemeralAction:function(O,x){O=O===void 0?_.Pq4.ephemeralAction:O;switch(x.type){case "SET_EPHEMERAL_ACTION":return x.payload;default:return O}}}),
entities:gjn};_.kYN={playlistId:"",inviteLinkURL:""};_.VXd={continuationCommand:{}};var t7L=mN({continuationCommand:function(O,x){O=O===void 0?_.VXd.continuationCommand:O;switch(x.type){case "SET_CONTINUATION_COMMAND":return x.payload.continuationCommand;default:return O}}});_.M7V={currentFormId:"",commandsMap:{}};var qg8=mN({isLeaderTab:function(O,x){O=O===void 0?_.tX$.isLeaderTab:O;switch(x.type){case "SET_IS_LEADER_TAB":var e,l;return(l=x==null?void 0:(e=x.payload)==null?void 0:e.isLeaderTab)!=null?l:O;default:return O}}});var Rg$;_.p4J=function(O){return _.j6({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:O}})};
Rg$=function(O){return _.j6({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:O}})};_.vu={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var RZr=mN({isDesktopSmallWidth:function(O,x){O=O===void 0?_.vu.isDesktopSmallWidth:O;switch(x.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return x.payload.isDesktopSmallWidth;default:return O}},
isShortsActive:function(O,x){O=O===void 0?_.vu.isShortsActive:O;switch(x.type){case "SET_IS_SHORTS_ACTIVE":return x.payload.isShortsActive;default:return O}},
isWatchWhileMode:function(O,x){O=O===void 0?_.vu.isWatchWhileMode:O;switch(x.type){case "SET_IS_WATCH_WHILE_MODE":return x.payload.isWatchWhileMode;default:return O}},
playerState:function(O,x){O=O===void 0?_.vu.playerState:O;switch(x.type){case "SET_PLAYER_STATE":return x.payload.playerState;default:return O}},
isFullscreen:function(O,x){O=O===void 0?_.vu.isFullscreen:O;switch(x.type){case "SET_IS_FULLSCREEN":return x.payload.isFullscreen;default:return O}},
isSmallScreenSqueezeback:function(O,x){O=O===void 0?_.vu.isSmallScreenSqueezeback:O;switch(x.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return x.payload.isSmallScreenSqueezeback;default:return O}},
isShortsPipActive:function(O,x){O=O===void 0?_.vu.isShortsPipActive:O;switch(x.type){case "SET_IS_SHORTS_PIP_ACTIVE":return x.payload.isShortsPipActive;default:return O}},
isPlaybackStarted:function(O,x){O=O===void 0?_.vu.isPlaybackStarted:O;switch(x.type){case "SET_IS_PLAYBACK_STARTED":return x.payload.isPlaybackStarted;default:return O}}});_.GYn={currentMode:"canvas-hidden"};var mAL=function(){return function(O){return function(x){var e=O(x);_.Sh(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[x],!0);return e}}};var UVz,rz8;UVz=new _.OA;_.N5=new _.iR("WATCH_PLAYER_PROMISE_TOKEN");_.ahd=new _.OA;_.mV3=new _.iR("SHORTS_PLAYER_PROMISE_TOKEN");rz8=new _.iR("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var sX8=function(){return function(O){return function(x){x.type==="ENTITY_LOADED"&&_.GG().resolve(_.N5).then(function(e){var l;(l=e.dispatchReduxAction)==null||l.call(e,x)});
return O(x)}}};_.sMd={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var PZr=mN({additionalContext:function(O,x){O=O===void 0?_.sMd.additionalContext:O;switch(x.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var e;return(e=x.payload)!=null?e:"";default:return O}},
impersonatedChannelUrl:function(O,x){O=O===void 0?_.sMd.impersonatedChannelUrl:O;switch(x.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var e;return(e=x.payload)!=null?e:"";default:return O}},
selectedVideoIds:function(O,x){O=O===void 0?_.sMd.selectedVideoIds:O;switch(x.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var e={};return Object.assign({},O,(e[x.payload]=!0,e));case "VIDEO_UNSELECTED":return x=x.payload,O=Object.assign({},O),delete O[x],O;default:return O}}});_.WDz={parentClickTrackingParams:""};var cTW=mN({parentClickTrackingParams:function(O,x){O=O===void 0?_.WDz.parentClickTrackingParams:O;switch(x.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return x.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return O}}});var hg3=function(O){return _.j6({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:O})};_.zgd={stepStates:{}};var IB$=mN({stepStates:function(O,x){O=O===void 0?_.zgd.stepStates:O;switch(x.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var e=O,l=x.payload,C,Q,L;O={};x={selectionStates:Object.assign({},(L=(C=e[l.stepId])==null?void 0:C.selectionStates)!=null?L:{},(O[l.token]={isSelected:l.isSelected},O)),userQuery:(Q=e[l.stepId])==null?void 0:Q.userQuery};C={};return Object.assign({},e,(C[l.stepId]=x,C));case "TALK_TO_RECS_UPDATE_USER_QUERY":return C=O,Q=x.payload,
L={selectionStates:Object.assign({},(l=(e=C[Q.stepId])==null?void 0:e.selectionStates)!=null?l:{}),userQuery:{userQuery:Q.userQuery,token:Q.userQueryToken}},e={},Object.assign({},C,(e[Q.stepId]=L,e));default:return O}}});var rC3,HCd,dV3;rC3=function(O){return _.j6({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:O})};
HCd=function(O){return _.j6({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:O})};
_.oL=function(O){return _.j6({type:"SET_CURRENT_PAGE_TYPE",payload:O})};
_.KDD=function(O){return _.j6({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:O})};
dV3=function(O){return _.j6({type:"SET_CHIP_BAR_IS_STICKY",payload:O})};_.XmV={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"};_.nBz=function(O){return _.j6({type:"SET_PLAYER_STATE",payload:{playerState:O}})};_.fo={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:yTW(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var V7L=mN({isTheaterMode:function(O,x){O=O===void 0?yTW():O;switch(x.type){case "SET_IS_THEATER_MODE":return x.payload.isTheaterMode;default:return O}},
isWatchActive:function(O,x){O=O===void 0?_.fo.isWatchActive:O;switch(x.type){case "SET_IS_WATCH_ACTIVE":return x.payload.isWatchActive;default:return O}},
isLearningJourneyActive:function(O,x){O=O===void 0?_.fo.isLearningJourneyActive:O;switch(x.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return x.payload.isLearningJourneyActive;default:return O}},
isWatchFullscreen:function(O,x){O=O===void 0?_.fo.isWatchFullscreen:O;switch(x.type){case "SET_IS_WATCH_FULLSCREEN":return x.payload.isWatchFullscreen;default:return O}},
isWatchNarrowWidth:function(O,x){O=O===void 0?_.fo.isWatchNarrowWidth:O;switch(x.type){case "SET_IS_WATCH_NARROW_WIDTH":return x.payload.isWatchNarrowWidth;default:return O}},
isSwatcherooActive:function(O,x){O=O===void 0?_.fo.isSwatcherooActive:O;switch(x.type){case "SET_IS_SWATCHEROO_ACTIVE":return x.payload.isSwatcherooActive;default:return O}},
isWatchRetroMode:function(O,x){O=O===void 0?_.fo.isWatchRetroMode:O;switch(x.type){case "SET_IS_WATCH_RETRO_MODE":return x.payload.isWatchRetroMode;default:return O}},
isLiveChatCollapsed:function(O,x){O=O===void 0?_.fo.isLiveChatCollapsed:O;switch(x.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return x.payload.isLiveChatCollapsed;default:return O}},
openEngagementPanels:function(O,x){O=O===void 0?_.fo.openEngagementPanels:O;var e=[].concat(_.Kx(O));switch(x.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return e.push(x.payload.panelToAdd),e;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return e.splice(e.indexOf(x.payload.panelToRemove),1),e;default:return O}},
playerState:function(O,x){O=O===void 0?_.fo.playerState:O;switch(x.type){case "SET_PLAYER_STATE":return x.payload.playerState;default:return O}},
watchScrollTop:function(O,x){O=O===void 0?_.fo.watchScrollTop:O;switch(x.type){case "SET_WATCH_SCROLL_TOP":return x.payload.watchScrollTop;default:return O}},
watchWindowSize:function(O,x){O=O===void 0?_.fo.watchWindowSize:O;switch(x.type){case "SET_WATCH_WINDOW_SIZE":return x.payload.watchWindowSize;default:return O}}});_.uq2={surveyFeedbackData:{feedbackTokens:[]}};var pmr=mN({surveyFeedbackData:function(O,x){O=O===void 0?_.uq2.surveyFeedbackData:O;switch(x.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return x.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},O,x.payload);default:return O}}});_.Zjr={};var hZ7=void 0;_.t("web_enable_redux_store_on_demand")||(hZ7=WXr());var YXL=function(O,x,e){var l=this;this.listId=O;this.JSC$13019_updateCallback=x;this.isOfflineVideoCallback=e;_.u9().subscribe(function(){l.handleUpdate()})};
YXL.prototype.getPlaylistData=function(){var O=_.u9().getState().entities;if(this.listId&&this.listId!=="PPSV"){var x=jdr(O,this.listId,!0),e=_.OQ(this.listId,"mainPlaylistEntity"),l,C;O=O==null?void 0:(l=O.mainPlaylistEntity)==null?void 0:(C=l[e])==null?void 0:C.title;return zZN(x,O,this.listId)}x=_.WGL(IXn(O));O=_.WGL(_.yy(O));O=x.concat(O);return zZN(O)};
YXL.prototype.getPlaylistId=function(){return this.listId};
YXL.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13019_updateCallback(this.listId,this.getPlaylistData(),{})};var Jx=function(O,x,e,l){l=l===void 0?[]:l;this.JSC$13022_playlistNetworkManager=O;this.listId=x;this.JSC$13022_updateCallback=e;this.videoIds=l;this.pendingUpdates=[];this.currentIndex=0};
Jx.prototype.JSC$13022_setCurrentIndex=function(O){this.currentIndex=O};
Jx.prototype.setListId=function(O){this.listId=O};
var B9p=function(O,x){O.currentCreateRequest&&O.currentCreateRequest.cancel(x);O.currentUpdateRequest&&O.currentUpdateRequest.cancel(x);O.currentRefreshRequest&&O.currentRefreshRequest.cancel(x)};
Jx.prototype.delete=function(){B9p(this,"PROXY DELETED")};
Jx.prototype.addVideos=function(O,x,e){var l=this;e!==void 0?this.videoIds.splice.apply(this.videoIds,[e,0].concat(_.Kx(O))):this.videoIds.push.apply(this.videoIds,_.Kx(O));this.listId||this.currentCreateRequest?(O.forEach(function(C,Q){C={addedVideoId:C,action:"ACTION_ADD_VIDEO"};e&&(C.addedVideoPosition=e+Q);l.pendingUpdates.push(C)}),wx(this)):vBd(this,x.onCreateListCommand)};
var fhd=function(O,x,e,l,C){d$L(O.videoIds,x,e);x>O.currentIndex&&e<=O.currentIndex?O.JSC$13022_setCurrentIndex(O.currentIndex+1):x===O.currentIndex?O.JSC$13022_setCurrentIndex(e):x<O.currentIndex&&e>=O.currentIndex&&O.JSC$13022_setCurrentIndex(O.currentIndex-1);O.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:l,movedSetVideoIdPredecessor:C});wx(O)},vBd=function(O,x){B9p(O,"OBSOLETE");
O.currentCreateRequest=JC4(O.JSC$13022_playlistNetworkManager,x,O.videoIds);_.Ij(O.currentCreateRequest,function(){O.currentCreateRequest=void 0}).then(function(e){O.setListId(e.playlistId);
O.pendingUpdates.length>0?wx(O):w4N(O)})},wx=function(O){if(O.pendingUpdates.length!==0&&(O.currentRefreshRequest&&O.currentRefreshRequest.cancel("OBSOLETE"),!O.currentUpdateRequest&&!O.currentCreateRequest)){var x=O.pendingUpdates.splice(0,O.pendingUpdates.length);
O.currentUpdateRequest=O.JSC$13022_playlistNetworkManager.updatePlaylist(O.listId,x);_.Ij(O.currentUpdateRequest,function(){O.currentUpdateRequest=void 0}).then(function(){O.pendingUpdates.length>0?wx(O):w4N(O)}).thenCatch(function(){O.pendingUpdates.unshift.apply(O.pendingUpdates,_.Kx(x))})}},w4N=function(O){O.currentRefreshRequest=_.SXT(O.JSC$13022_playlistNetworkManager,O.listId,O.currentIndex,O.videoIds[O.currentIndex]);
_.Ij(O.currentRefreshRequest,function(){O.currentRefreshRequest=void 0}).then(function(x){O.JSC$13022_updateCallback(x.playlistId,x.playlistPanelRenderer,x.autoplayRenderer)})};
Jx.prototype.size=function(){return this.videoIds.length};var jM4=function(O,x,e,l){l=l===void 0?[]:l;Jx.call(this,O,x,e,l);this.JSC$13022_playlistNetworkManager=O;this.listId=x;this.JSC$13022_updateCallback=e;this.videoIds=l};
_.c(jM4,Jx);_.So=function(O,x,e,l,C,Q,L){C=C===void 0?[]:C;L=L===void 0?Cr:L;Jx.call(this,O,x,e,C);this.JSC$13022_playlistNetworkManager=O;this.listId=x;this.JSC$13022_updateCallback=e;this.onAuthChange=l;this.videoIds=C;this.storage=Q;this.cookieReader=L;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.$0(_.vn,this.checkLoggedInStatusChange.bind(this),1E3)};
_.c(_.So,Jx);_.b=_.So.prototype;_.b.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.$0(_.vn,this.checkLoggedInStatusChange.bind(this),1E3)};
_.b.JSC$13022_setCurrentIndex=function(O){Jx.prototype.JSC$13022_setCurrentIndex.call(this,O);this.store()};
_.b.delete=function(){_.vn.cancelJob(this.queueSapisIdJob);Jx.prototype.delete.call(this)};
_.b.setListId=function(O){Jx.prototype.setListId.call(this,O);this.store()};
_.b.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var N9z=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],gBN=["playerResponse","videoDetails"],$VL=["response","currentVideoEndpoint","watchEndpoint","videoId"],iCN=["response","currentVideoEndpoint","watchEndpoint","playlistId"],OiF=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],xmd=["response","contents","twoColumnWatchNextResults","playlist","playlist"],ek2=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
lb3=["response","contents","twoColumnWatchNextResults"];var jo={},nw7=(jo.WEB_UNPLUGGED="^unplugged/",jo.WEB_UNPLUGGED_ONBOARDING="^unplugged/",jo.WEB_UNPLUGGED_OPS="^unplugged/",jo.WEB_UNPLUGGED_PUBLIC="^unplugged/",jo.WEB_CREATOR="^creator/",jo.WEB_KIDS="^kids/",jo.WEB_EXPERIMENTS="^experiments/",jo.WEB_MUSIC="^music/",jo.WEB_REMIX="^music/",jo.WEB_MUSIC_EMBEDDED_PLAYER="^music/",jo.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",jo);var IZr,JC4;IZr=function(O,x){this.networkManager=O;this.innertubeTransportService=x};
JC4=function(O,x,e){if(!_.q(x,_.Ns))return _.Za(Error("Mf"));_.q(x,_.Ns).videoIds=e;e={create_playlist_title:_.CZ("QUEUE",void 0,"Queue")};return KXi(_.z7(O.innertubeTransportService,x,e),rTN)};
_.SXT=function(O,x,e,l){x={videoId:l,playlistId:x,playlistIndex:e};e=_.YE(eGF);return KXi(_.NK(O.innertubeTransportService,x,e),dAr)};
IZr.prototype.updatePlaylist=function(O,x){return KXi(_.z7(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:O,actions:x}}),HjL)};var CAp=function(O){this.storage=O},Qkp;
CAp.prototype.store=function(O,x){x=x===void 0?0:x;if(this.storage&&O.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",O),this.storage.set("TLPQindex",String(x)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(e){}};
CAp.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
CAp.prototype.getPlaylistId=function(){if(!this.storage)return null;var O=null;try{O=this.storage.get("TLPQplaylist")}catch(x){}return O};var vws=["navigationEndpoint","watchEndpoint","videoId"],B8$=["nextButtonVideo","watchEndpoint","videoId"];_.cR=new _.iR("NETWORK_TOKEN");_.Be=new _.iR("PAGE_TOKEN");_.gx=new _.iR("PLAYLIST_TOKEN");var bi$;bi$=new _.iR("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.IF=new _.iR("INNERTUBE_TRANSPORT_TOKEN");var TEd,iQ,kML,AQJ,Dmz,GM2;TEd=new Set(["ci","cr","carml"]);iQ=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13069_parkedJobs=new Map;this.parkedProcessors=new Map};
_.O2=function(){iQ.instance||(iQ.instance=new iQ);return iQ.instance};
iQ.prototype.onAny=function(O){return _.Lc2(this,O,2)};
iQ.prototype.parkOrScheduleJob=function(O,x,e,l,C){_.xq(this,e)?_.Xu().addJob(O,x,l):(C&&(O=kML(O),AQJ(this,O,x,e,C)),C=this.JSC$13069_parkedJobs.get(e),C||(this.JSC$13069_parkedJobs.set(e,[]),C=this.JSC$13069_parkedJobs.get(e)),C.push({job:O,priority:x,delay:l}))};
iQ.prototype.addListener=function(O,x,e){e&&(x=kML(x),AQJ(this,x,0,O,e));e=this.parkedProcessors.get(O);e||(this.parkedProcessors.set(O,[]),e=this.parkedProcessors.get(O));e.push(x)};
iQ.prototype.processSignal=function(O){if(!_.xq(this,O)){this.inProgressSignals.add(O);var x=this.JSC$13069_parkedJobs.get(O);if(x){x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,_.Xu().addJob(e.job,e.priority,e.delay);this.JSC$13069_parkedJobs.delete(O)}if(x=this.parkedProcessors.get(O)){x=_.T(x);for(e=x.next();!e.done;e=x.next())e=e.value,e();this.parkedProcessors.delete(O)}this.signals.push(O);this.inProgressSignals.delete(O)}};
_.xq=function(O,x){return TEd.has(x)||_.SS("IS_HOMEPAGE_COLD")||_.SS("IS_RESULTS_PAGE_COLD")||_.SS("IS_WATCH_PAGE_COLD")?O.signals.indexOf(x)>=0:!0};
kML=function(O){var x=!1;return function(){x||(x=!0,O())}};
AQJ=function(O,x,e,l,C){if(MzJ.has(l))_.Xu().addJob(x,e,C);else{var Q=O.compoundSignals.get(l);Q&&_.Xu().addJob(function(){_.xq(O,l)||(Q.isTimeoutConditionSatisfied?_.Xu().addJob(x,e):Q.timeoutConditionObservers.push(function(){_.Xu().addJob(x,e)}))},e,C)}};
_.Lc2=function(O,x,e){if(x.length>1){var l=[],C=Object.create(null);x=_.T(x);for(var Q=x.next();!Q.done;Q=x.next())Q=Q.value,C[Q]||(l.push(Q),C[Q]=!0);x=l}if(x.length===1)return x[0];Q=x;l="";C=e===2?"|":"&";Q.sort();Q=_.T(Q);for(var L=Q.next();!L.done;L=Q.next())l+=L.value+C;if(!O.compoundSignals.get(l)){C=0;Q=[];L=_.T(x);for(var k=L.next();!k.done;k=L.next())k=k.value,C++,_.xq(O,k)||Q.push(k);(e=e===2)&&C>Q.length||!e&&!Q.length?O.signals.push(l):Dmz(O,l,e,x,Q)}return l};
Dmz=function(O,x,e,l,C){var Q=C.length,L=function(){e||--Q===0?O.processSignal(x):GM2(O,x)};
C=_.T(C);for(var k=C.next();!k.done;k=C.next())O.addListener(k.value,L);O.compoundSignals.set(x,{signals:l,isOnAny:e,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});GM2(O,x)};
GM2=function(O,x){if(!_.xq(O,x)){var e=O.compoundSignals.get(x);if(e&&!e.isTimeoutConditionSatisfied){for(var l=!1,C=0,Q=0,L=_.T(e.signals),k=L.next();!k.done;k=L.next()){var M=k.value;k=!_.xq(O,M);MzJ.has(M)?l=!0:(M=O.compoundSignals.get(M))?k&&!M.isTimeoutConditionSatisfied&&(Q++,e.isInitialized||M.timeoutConditionObservers.push(function(){GM2(O,x)})):k&&C++}e.isInitialized=!0;
e.isOnAny?l&&(e.isTimeoutConditionSatisfied=!0):C===0&&Q===0&&(e.isTimeoutConditionSatisfied=!0);if(e.isTimeoutConditionSatisfied)for(e=_.T(e.timeoutConditionObservers),l=e.next();!l.done;l=e.next())l=l.value,l()}}};
iQ.prototype.processSignal=iQ.prototype.processSignal;iQ.prototype.parkOrScheduleJob=iQ.prototype.parkOrScheduleJob;iQ.prototype.onAny=iQ.prototype.onAny;_.MB("ytsignals.getInstance",_.O2);iQ.prototype.onAny=iQ.prototype.onAny;iQ.prototype.parkOrScheduleJob=iQ.prototype.parkOrScheduleJob;iQ.prototype.processSignal=iQ.prototype.processSignal;var MzJ=new Set(["eop","eocs","dl","pcl"]);_.Vs=new _.iR("MINIPLAYER_SERVICE");var eG,Fcp,X02;eG=function(O,x,e){var l=_.iU.getInstance();if(!Qkp){var C=new BTV;var Q=void 0,L=_.wz("ID_TOKEN");L&&C.isAvailable()&&(Q=new nb(C,"yt-queue"+L));Qkp=new CAp(Q)}C=Qkp;Q=_.O2();this.JSC$13076_actionRouter=l;this.JSC$13076_pageManager=O;this.playlistManager=x;this.JSC$13076_playlistNetworkManager=e;this.storage=C;this.signals=Q;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.lX=function(){if(!Fcp){var O=_.GG(),x=O.resolve(_.D0(_.Be)),e=O.resolve(_.D0(_.cR)),l=O.resolve(_.D0(_.gx));O=O.resolve(_.IF);Fcp=new eG(x,l,new IZr(e,O))}return Fcp};
X02=function(O,x,e){if(e){var l;if(((l=O.responsePlaylistData)==null?void 0:l.playlistId)!==e)return}O.responsePlaylistData&&(e=N8i(x,O.responsePlaylistData),O.responsePlaylistData=(0,_.HX.unsafeClone)(O.responsePlaylistData),$AV(O.responsePlaylistData,e));e=O.temporaryItems.findIndex(function(C){return C.videoId===x});
e>-1&&O.temporaryItems.splice(e,1);_.CL(O,_.Qp(O,O.response?O.response.autoplayRenderer:void 0))};
_.oHd=function(O,x){if(O.responsePlaylistData){var e=gww(x,O.responsePlaylistData);$AV(O.responsePlaylistData,e);if(O.queueProxy){var l=O.queueProxy;e<0||(l.videoIds.splice(e,1),e<l.currentIndex&&l.JSC$13022_setCurrentIndex(l.currentIndex-1),l.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:x}),wx(l))}}_.CL(O,_.Qp(O,O.response?O.response.autoplayRenderer:void 0))};
eG.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.CL(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
eG.prototype.setPlaylistData=function(O,x,e){this.temporaryItems=[];this.listId=O;this.responsePlaylistData=x;_.CL(this,_.Qp(this,e))};
var yQD=function(O){return(O==null?0:O.playlistId)?O.playlistId:"PPSV"},ZiF=function(O){return O&&O.playlistId?O.playlistId==="PPSV"?!0:wrL(_.u9().getState().entities,O.playlistId):!1};
eG.prototype.isPlayingOfflineVideo=function(){return this.response?ZiF(this.response):!1};
eG.prototype.closeMiniplayer=function(O){var x=this.queueProxy&&this.queueProxy.size()<=1,e=_.GG().resolve(_.Vs);if(!this.queueProxy||x)this.queueProxy&&this.clearQueue(),e.close(!0);else{e.pipController.getWindow()&&window.focus();x=this.responsePlaylistData;var l=this.temporaryItems.length+(x&&x.contents?x.contents.length:0);x=_.CZ("QUEUE_CLEARED_UNPLURALIZED")||_.QO("QUEUE_CLEARED",l);x=_.v1(x);e=_.CZ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");l=_.CZ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.QO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",l);var C=_.CZ("MINIPLAYER_CLOSE",void 0,"Close"),Q=_.CZ("CANCEL",void 0,"Cancel");_.z6(this.JSC$13076_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.KA(e),dialogMessages:[_.KA(l)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.KA(C),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
x]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.KA(Q)}}}}}}],O)}};
_.Qp=function(O,x){var e={},l=O.response;e.autoplayRenderer=x;if(!O.responsePlaylistData&&!O.temporaryItems.length)return!l||!l.hasRelatedVideoData&&_.t("kevlar_prefetch_data_augments_network_data")||(e.playerData={rvs:l.relatedVideoArgs,endScreenRenderer:l.endScreenRenderer}),e;e.playerData={};if(O.index===void 0)return _.BH(Error("Of")),e;e.panel=O.responsePlaylistData?(0,_.HX.unsafeClone)(O.responsePlaylistData):{titleText:_.KA(_.CZ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
x=e.panel;if(x.contents)for(var C=_.T(O.temporaryItems),Q=C.next();!Q.done;Q=C.next())x.contents.push({playlistPanelVideoRenderer:Q.value});O.queueProxy&&l&&l.playingVideo&&l.playingVideoId&&!jXm(l.playingVideoId,e.panel)&&(x=l.playingVideo,C=e.panel,Q=O.index,C.contents&&C.contents.splice(Q===void 0?0:Q,0,{playlistPanelVideoRenderer:x}));l&&l.playingVideoId&&(x=O.index,C=e.panel,x=!C.contents||x>=C.contents.length?void 0:C.contents[x].playlistPanelVideoRenderer,x&&x.videoId===l.playingVideoId||(x=
N8i(l.playingVideoId,e.panel),O.index=x!==-1?x:O.index?O.index-1:0));x=SgW(O.index+1,e.panel);C=void 0;O.index>0&&(C=SgW(O.index-1,e.panel));if(C||x)e.autoplayRenderer=fBw(x,C,e.autoplayRenderer);!x&&(l==null?0:l.relatedVideoArgs)&&(e.playerData.rvs=l.relatedVideoArgs);l=l?l.playlistIndexOffset:0;O.queueProxy?xz7(e.panel,O.index,l,wm7,!0,!0,!0):xz7(e.panel,O.index,l);e.playerData.playlistPanelRenderer=e.panel;return e};
eG.prototype.openToast=function(O){_.GG().resolve(_.Vs).openToast(O,_.CZ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
eG.prototype.isMiniplayerActive=function(){return _.GG().resolve(_.Vs).isMiniplayerActive()};
_.CL=function(O,x){O.playlistManager.setAutoplayRenderer(x.autoplayRenderer||null);O.playlistManager.setPlaylistData(x.panel||null);x.playerData&&O.playlistManager.setPlayerPlaybackControlData(x.playerData)};var lLr="#";var EH4={},tz2={},qyR={},PAL={},cQ4={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:(EH4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",EH4),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:(tz2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",tz2),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:(qyR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",qyR),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:(PAL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",PAL),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 nRV=[{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:cQ4},{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:cQ4}}];var aLL;_.i9=[[["cXM3b3FjZHJraW5kI3JkbXc=","N3FzdmFsdWUjaTUxYzNrNHRo"],"TkRfU1RBUlQjaDYxZTBiZHViNHloQURfUExBQ0VNRU5UX0tJ"]];
aLL=[[["I21oYTIxMHhtOGhxcXByaW1hcnk=",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjdGh4cmFzdndmYmJoeXRkLXR3by1j","bGUtc2NvcGUjdjJ2bDBobHozbjg1c3R5"],null],["dGhlYWQtYWQjMnBsMW5oY2FjeGxubWFz",["ZC1yZW5kZXJlciNiOWpjMnlvZTI1YmN5dGQtcmljaC1ncmk="],null],[null,["ZC1yZW5kZXJlciNvdjNseDl2dnh3NnZ5dGQtcmljaC1ncmk=","bGUtc2NvcGUja3d4aGRjbXd1OXpzc3R5"],null],[null,["ZW5kZXJlciMxcWo0eTd6ang0MHl0ZC1iYW5uZXItcHJvbW8tcg==","bGUtc2NvcGUjZHVjMzJ3Z2EwYjhmc3R5"],null],[null,["LXNsb3QtcmVuZGVyZXIjb2dzbGVlMnQ5eXFueXRkLWFk"],
null]],[["ZXBsYXllci1hZHMjYXdybDg5bzJmNDI=",null,null]]];_.$E=["aGRndTl6bDV2Z2xvYmFsQ2FsbGJhY2tzI2RvcA==","bGl0eURldGVjdGVkIzQ4OHJicXB5M2NtNG9uQWJub3JtYQ==","b3V1eDRzam45b25BZFNraXAjcjI3","X3BsYXllcl9yZXNwb25zZSN6ZG9zZ3l0ZG9haHRyYXc=","I29zNHQ1bnZ1ZTF3eWFkU2xvdHM="];_.bX="aGRndTl6bDV2Z2xvYmFsQ2FsbGJhY2tzI2RvcA== bGl0eURldGVjdGVkIzQ4OHJicXB5M2NtNG9uQWJub3JtYQ== b3V1eDRzam45b25BZFNraXAjcjI3 X3BsYXllcl9yZXNwb25zZSN6ZG9zZ3l0ZG9haHRyYXc= bGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNsanZkNTM3enZpcWF3ZWJfcA== bDU5aWxnbXd6YWJfc2FfZWYjZDc0 I29zNHQ1bnZ1ZTF3eWFkU2xvdHM=".split(" ");var TK;TK=function(O,x,e){this.f1m=O;this.isAsync=x;this.c9v=e};
_.$zW=[new TK("b.f_",!1,0),new TK("j.s_",!1,2),new TK("r.s_",!1,4),new TK("e.h_",!1,6),new TK("i.s_",!0,8),new TK("s.t_",!1,10),new TK("p.h_",!1,12),new TK("s.i_",!1,14),new TK("f.i_",!1,16),new TK("a.b_",!1,18),new TK("a.o_",!1),new TK("g.o_",!1,22),new TK("p.i_",!1,24),new TK("p.m_",!1),new TK("n.k_",!0,20),new TK("i.f_",!1),new TK("a.s_",!0),new TK("m.c_",!1),new TK("n.h_",!1,26),new TK("o.p_",!1),new TK("m.p_",!0,28),new TK("o.a_",!1),new TK("d.p_",!1),new TK("e.i_",!1)].reduce(function(O,x){O[x.f1m]=
x;return O},{});var Ib2=function(){};
Ib2.prototype.flush=function(O,x){O=O===void 0?[]:O;x=x===void 0?!1:x;if(_.t("enable_client_streamz_web")){O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=Noz(e.value),this.rootSpec&&_.IS(e,2,this.rootSpec),e={serializedIncrementBatch:_.zX(e.JSC$9602_serializeBinary())},_.uU("streamzIncremented",e,{sendIsolatedPayload:x})}};
var LAi=function(){};
_.c(LAi,Ib2);var Vz3=function(O){var x=new Bo2;var e=new n8d;e=_.mO(e,1,"botguard");O=_.mO(e,2,O);this.rootSpec=_.Vc(x,1,v8d,O)};
_.c(Vz3,Ib2);var j_,p0p=new Map;var h4N,AMr,ERL,GxV,oRV,R4$,rMn,VQi;h4N=2;AMr=2;ERL=2;GxV=2;oRV=2;R4$=2;rMn=2;VQi=new vc3;var UmF,ab3;UmF=function(){this.ongoingFlowNonces=new Map};
_.ex=function(){ab3||(ab3=new UmF);return ab3};
_.xU=function(O,x,e){return{eventType:{flowEventNamespace:O,flowEventType:x},metadata:e,statusCode:void 0,csn:void 0,can:void 0}};
_.OgW=function(O,x){var e=_.ex(),l=mm$(e,x,!0);e.logFlowEvent(O,x,l,void 0)};
UmF.prototype.logFlowEvent=function(O,x,e,l){x={flowNonce:e||mm$(this,x),flowType:x,flowEventType:O.eventType};O.metadata&&(x.flowMetadata=O.metadata);O.statusCode!==void 0&&(x.flowEventStatus=O.statusCode);O.csn&&(x.csn=O.csn);O.can&&(x.can=O.can);_.uU("flowEvent",x,l)};
var mm$=function(O,x,e){e=e===void 0?!1:e;var l=O.ongoingFlowNonces.get(x);if(!l||e)l=Zf(16),O.ongoingFlowNonces.set(x,l);return l};_.skT=new ByJ;var Q47={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 LL=function(O,x,e,l,C,Q,L){e=e===void 0?!1:e;l=l===void 0?!1:l;Q=Q===void 0?_.lX():Q;this.hasRun=!1;this.tpn=O;this.heY=x;this.kEt=e;this.fromHistory=l;this.previousVideoId=C;this.sLV=Q;this.tempData=L;this.jLU=new _.f0L};
_.c(LL,MK);LL.prototype.validate=function(O){return!(!O.data.playerResponse||O.data.page!=="watch"&&O.data.page!=="learning_journey_watch"&&O.data.page!=="shorts"||this.hasRun)};
LL.prototype.handle=function(O){var x=this,e=_.q(O.endpoint,_.Hq),l=_.q(O.endpoint,_.kU);if(_.t("kevlar_continue_playback_without_player_response")&&(e==null?0:e.videoId)&&this.previousVideoId&&(e==null?void 0:e.videoId)===this.previousVideoId&&(e==null?0:e.continuePlayback)&&!this.fromHistory)this.tpn.resolve();else{var C={};e?C.watch_endpoint=e:l&&(C.watch_endpoint=l,l.endTimeSeconds&&(C.end=l.endTimeSeconds));O.data.page==="watch"?(O.data.filler||this.kEt||(_.VO("cfg"),_.iU.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(C,WcN(this,O.endpoint)),_.t("enable_masthead_quartile_ping_fix")&&Object.assign(C,hkd(this)),Object.assign(C,void 0),O.data.forceExternalPlaylist&&(C.external_list=!0)):O.data.page==="shorts"?_.iU.getInstance().triggerAction("yt-start-loading-shorts"):O.data.page==="learning_journey_watch"&&_.iU.getInstance().triggerAction("yt-start-loading-learning-journey");if(e=this.heY()){try{e.loadVideoWithPlayerResponse(O.data.playerResponse,C),e.getPlayerPromise().then(this.tpn.resolve)}catch(Q){_.BH(Q),
this.tpn.resolve()}this.hasRun=!0;e.getPlayerPromise().then(function(Q){Q.addEventListener("onAbnormalityDetected",function(){var L=O.data.playerResponse,k=Q.getVideoData().cpn;rMn=0;_.Rkd=k;if(k=gRr(L))x.jLU.increment("IN_PLAYER"),_.lK(5),_.t("ab_st_vid_ks")?Q.pauseVideo(!0):Q.stopVideo(),L.playabilityStatus=Object.assign({},L.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:k}}),L.videoDetails=void 0,_.iU.getInstance().triggerOptionalAction("yt-updated-playability-status",
L.playabilityStatus)})})}else _.ft(Error("Rf"))}};
var WcN=function(O,x){var e=_.q(x,_.Hq);if(x&&e&&e.playlistId&&e.videoId&&(O=O.sLV,O.queueProxy?(O=O.queueProxy,e=O.listId===e.playlistId?O.attributionData.get(e.videoId):void 0):e=void 0,e))return{queue_info:e}},hkd=function(O){var x;
if((x=O.tempData)==null?0:x.adpings)return{adpings:O.tempData.adpings}};var kq=function(O,x,e){this.hasRun=!1;this.egO=O;this.nb3=x;this.ykO=e};
_.c(kq,MK);kq.prototype.validate=function(O){return!!_.HX.getValueByKeys.apply(null,[O.data].concat(_.Kx(lb3)))};
kq.prototype.handle=function(O){var x=this;this.egO.promise.then(function(){var e=O.data;var l=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx(N9z))),C=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx(xmd))),Q=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx($VL)));var L=(L=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx(gBN))))?{videoId:L.videoId,thumbnail:L.thumbnail,title:L.title?_.KA(L.title):void 0,shortBylineText:L.author?_.KA(L.author):void 0}:void 0;var k=void 0;_.t("web_get_playlist_id_from_current_endpoint_ks")||
(k=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx(iCN))));var M=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx(ek2))),G=_.HX.getValueByKeys.apply(null,[e].concat(_.Kx(OiF))),X=!!M||!!G&&!!G.results&&G.results.length>0,y=0;C&&C.currentIndex&&C.localCurrentIndex&&(y=C.currentIndex-C.localCurrentIndex);C&&C.playlistId&&(k=C.playlistId);e={rawResponse:e,autoplayRenderer:l,hasRelatedVideoData:X,playingVideo:L,playingVideoId:Q,playlistPanelRenderer:C,playlistId:k,playlistIndex:C&&C.currentIndex,relatedVideoArgs:M,
endScreenRenderer:G,playlistIndexOffset:y};a:{l=x.ykO;C=x.nb3;l.response=e;if(ZiF(e))l.downloadPlaylistProxy&&l.downloadPlaylistProxy.getPlaylistId()===yQD(e)||(l.downloadPlaylistProxy=new YXL(yQD(e),l.setPlaylistData.bind(l),l.isPlayingOfflineVideo.bind(l))),l.responsePlaylistData=l.downloadPlaylistProxy.getPlaylistData(),l.listId=yQD(e),l.index=0;else if(e.playlistPanelRenderer&&e.playlistId&&e.autoplayRenderer)e.playlistId.startsWith("TLPQ")?l.queueProxy?l.listId===e.playlistId?(l.index=e.playlistIndex,
l.responsePlaylistData=e.playlistPanelRenderer,l.queueProxy.JSC$13022_setCurrentIndex(l.index)):e.playingVideoId&&l.index!==void 0&&C.clientParams.autoSaveToQueue&&(l.index+=1,l.queueProxy.JSC$13022_setCurrentIndex(l.index),l.queueProxy.addVideos([e.playingVideoId],{},l.index)):(l.queueProxy=new _.So(l.JSC$13076_playlistNetworkManager,e.playlistId,l.setPlaylistData.bind(l),l.clearQueue.bind(l),_.ijm(e.playlistPanelRenderer),l.storage),l.responsePlaylistData=e.playlistPanelRenderer,l.listId=e.playlistId,
l.index=e.playlistIndex):(l.index=e.playlistIndex,l.listId!==e.playlistId&&l.clearQueue(),l.responsePlaylistData=e.playlistPanelRenderer,l.listId=e.playlistId,l.playlistProxy=new jM4(l.JSC$13076_playlistNetworkManager,e.playlistId,l.setPlaylistData.bind(l),_.ijm(e.playlistPanelRenderer)));else if(!l.queueProxy)l.responsePlaylistData=void 0;else if(e.playingVideoId&&C.clientParams.autoSaveToQueue){if(l.index===void 0){_.BH(Error("Nf"));l.clearQueue();break a}l.queueProxy.videoIds.includes(e.playingVideoId)||
(l.index+=1,l.queueProxy.JSC$13022_setCurrentIndex(l.index),l.queueProxy.addVideos([e.playingVideoId],{},l.index))}_.CL(l,_.Qp(l,l.response.autoplayRenderer))}})};var zk$=function(O,x){x=x===void 0?_.lX():x;po.call(this);this.zG.push(new kq(this.hZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},x));this.zG.push(new LL(this.hZ,O,!1,!1));_.t("web_response_commands_chunk_processor")&&this.zG.push(new R7)};
_.c(zk$,po);zk$.prototype.processChunk=function(O){O&&O.data.player===void 0&&this.hZ.resolve();po.prototype.processChunk.call(this,O)};var Ad=function(O,x){O=O===void 0?{layer:0}:O;this.hasRun=!1;this.createScreenConfig=O;this.uSk=x};
_.c(Ad,MK);Ad.prototype.validate=function(O){return!(this.hasRun||!O.endpoint)};
Ad.prototype.handle=function(O){var x=_.k0(),e,l,C=(l=_.q((e=O.endpoint)==null?void 0:e.commandMetadata,_.e6))==null?void 0:l.rootVe;this.uSk&&C?_.tx(x,C,this.uSk,this.createScreenConfig):PpD(x,O.endpoint,this.createScreenConfig);this.hasRun=!0};var Mn=function(O,x){this.hasRun=!1;this.u7k=O;this.previousVideoId=x};
_.c(Mn,MK);Mn.prototype.validate=function(O){return _.t("kevlar_continue_playback_without_player_response")&&(O=_.q(O.endpoint,_.Hq),(O==null?0:O.videoId)&&this.previousVideoId&&(O==null?void 0:O.videoId)===this.previousVideoId&&(O==null?0:O.continuePlayback))?!1:this.u7k.uYm===0};
Mn.prototype.handle=function(O){_.iU.getInstance().triggerAction("yt-stop-old-player",O.data,!0)};var rQ$=function(O){O=O===void 0?{layer:0}:O;po.call(this);this.zG.push(new Mn(this));this.zG.push(new Ad(O));this.zG.push(new VA(O))};
_.c(rQ$,po);var D5=function(){MK.apply(this,arguments)};
_.c(D5,MK);D5.prototype.validate=function(O){return!!O.data.preconnect};
D5.prototype.handle=function(O){_.IR("bc");O=_.T(O.data.preconnect);for(var x=O.next();!x.done;x=O.next())x=x.value,(new Image).src=x};var HiT=function(O,x,e,l,C,Q,L){e=e===void 0?{layer:0}:e;Q=Q===void 0?_.lX():Q;po.call(this);if(l)if(C){C=Q;this.zG.push(new kq(this.hZ,x,C));this.zG.push(new D5);var k,M;this.zG.push(new LL(this.hZ,O,!1,!((k=x.clientParams)==null||!k.fromHistory),(M=x.clientParams)==null?void 0:M.previousVideoId,C,x.tempData));var G;this.zG.push(new Mn(this,(G=x.clientParams)==null?void 0:G.previousVideoId));var X;(X=x.clientParams)!=null&&X.fromHistory||(e.layer||(e=Object.assign({},e,{layer:0})),this.zG.push(new Ad(e,
L)),this.zG.push(new VA(e)))}else this.zG.push(new kq(this.hZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Q)),this.zG.push(new LL(this.hZ,O,!1,!1));else this.zG.push(new Mn(this)),this.zG.push(new Ad(e)),this.zG.push(new VA(e));_.t("web_response_commands_chunk_processor")&&l&&this.zG.push(new R7)};
_.c(HiT,po);HiT.prototype.processChunk=function(O){O&&O.data.player===void 0&&this.hZ.resolve();po.prototype.processChunk.call(this,O)};var Kc4=function(){this.hasRun=this.hasRun=!1};
_.c(Kc4,MK);Kc4.prototype.validate=function(O){return!this.hasRun&&!(!O.data.csn||!O.data.rootVe)};
Kc4.prototype.handle=function(O){this.hasRun=!0;_.Ig(O.data.csn,O.data.rootVe,3)};var dm4=function(O,x,e){e=e===void 0?{layer:0}:e;po.call(this);this.zG.push(new LL(this.hZ,O));this.zG.push(new Ad(e));this.zG.push(new VA(e))};
_.c(dm4,po);var nHF=function(O,x,e,l,C){e=e===void 0?{layer:0}:e;l=l===void 0?_.lX():l;po.call(this);var Q=!!x&&!!x.clientParams&&!!x.clientParams.miniplayer;Q&&this.zG.push(new Kc4);this.zG.push(new kq(this.hZ,x,l));this.zG.push(new D5);var L,k;this.zG.push(new LL(this.hZ,O,Q,!((L=x.clientParams)==null||!L.fromHistory),(k=x.clientParams)==null?void 0:k.previousVideoId,l,x.tempData));var M;this.zG.push(new Mn(this,(M=x.clientParams)==null?void 0:M.previousVideoId));var G;(G=x.clientParams)!=null&&G.fromHistory||
(e.layer||(e=Object.assign({},e,{layer:Q?3:0})),this.zG.push(new Ad(e,C)),this.zG.push(new VA(e)));_.t("web_response_commands_chunk_processor")&&this.zG.push(new R7)};
_.c(nHF,po);var GK,BEp;GK={};
_.uyk=(GK["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},GK["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},GK["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},GK["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},GK["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},GK["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},GK["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},GK);_.F8=new _.jC("yt-edu");_.Yyk=function(){this.JSC$13174_eduDisplayedThisLoad_={}};
BEp=function(O){var x=_.Yyk.getInstance();var e=_.yF("kevlar_tooltip_impression_cap");x=e&&parseInt(_.F8.get(O+"-impression")||0,10)>=e||_.F8.get(O+"-dismissed")?!1:(e=_.uyk[O])&&!x.JSC$13174_eduDisplayedThisLoad_[e.setKey||O]&&(e.titleText&&_.CZ(e.titleText)||e.bodyText&&_.CZ(e.bodyText))?!0:!1;if(!x)return null;x=_.uyk[O];if(!x)return null;e=x.bodyText?_.CZ(x.bodyText):void 0;var l=x.titleText?_.CZ(x.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:x.position,popup:{bubbleHintRenderer:{text:l?
_.KA(l):void 0,detailsText:e?_.KA(e):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.KA(_.CZ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:O}}]}}}}}}}},{eduImpressionAction:{key:O}}]};
_.BN(_.Yyk);var xPW=!1;for(var vHp="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),fbT=[],X8=6;X8>=1;X8--)fbT.push({columnCount:X8,query:X8==1?0:X8*2*107-4+32,className:"grid-"+X8+"-columns",width:X8*2*107+"px"});_.od=function(O){this.actionRouter_=O=O===void 0?_.iU.getInstance():O;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.JQD(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.JQD=function(O){var x=O.documentWidth_-(O.miniGuideVisible_?72:0)-(O.guidePersistentAndVisible_?240:0)-(O.persistentPanelVisible_?400:0);return fbT.find(function(e){return x>e.query})};
_.BN(_.od);var w0p=function(){var O=this;this.JSC$13186_keyboardInUse=!1;document.addEventListener("keydown",function(){O.onKeydown()});
document.addEventListener("mousedown",function(){O.JSC$13186_keyboardInUse=!1})},SyN;
w0p.prototype.isKeyBoardInUse=function(){return this.JSC$13186_keyboardInUse};
w0p.prototype.onKeydown=function(){this.JSC$13186_keyboardInUse=!0};var jk4,E2;_.yp=new _.jC("yt-mentions");_.Z5=function(){};
jk4=function(O,x){return E2(x,"drag-to-reorder-edu-displayed")};
E2=function(O,x,e,l,C,Q){e=e===void 0?"OPEN_POPUP_POSITION_TOP":e;if(x){if(_.yp.get(x))return;_.yp.set(x,!0,l)}if(C&&Q!==void 0){x=Number(_.yp.get(C)||0);if(x>=Q)return;_.yp.set(C,x+1)}return[{openPopupAction:{popupType:"HINT",position:e,popup:{bubbleHintRenderer:{detailsText:O,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.BN(_.Z5);var NEN,gH2,$mD;NEN=function(O,x,e,l){this.JSC$13196_taskManager_=O;this.onFulfilled_=typeof x==="function"?x:null;this.onRejected_=typeof e==="function"?e:null;this.JSC$13196_context_=l};
gH2=function(O,x){O.onFulfilled_&&_.FQ(O.JSC$13196_taskManager_,function(){O.onFulfilled_.call(O.JSC$13196_context_,x)})};
$mD=function(O,x){O.onRejected_&&_.FQ(O.JSC$13196_taskManager_,function(){O.onRejected_.call(O.JSC$13196_context_,x)})};
_.td=function(O){this.JSC$13199_taskManager_=O;this.callbacks_=[]};
_.td.prototype.then=function(O,x,e){this.callbacks_.push(new NEN(this.JSC$13199_taskManager_,O,x,e));return this};
_.td.prototype.onSuccess=function(O){this.callbacks_.forEach(function(x){gH2(x,O)})};
_.td.prototype.onFailure=function(O){this.callbacks_.forEach(function(x){$mD(x,O)})};
_.td.prototype.cancel=function(){this.callbacks_.length=0};
iek(_.td);_.TGr=null;_.Fn=new _.iR("ACTIVITY_TOKEN");var qn=function(O,x){this.serviceId=new itF(O,x)};
qn.prototype.toString=function(){return this.serviceId.toString()};var iiF=function(){this.internalMap={}};
_.b=iiF.prototype;_.b.contains=function(O){return Object.prototype.hasOwnProperty.call(this.internalMap,O)};
_.b.get=function(O){if(this.contains(O))return this.internalMap[O]};
_.b.set=function(O,x){this.internalMap[O]=x};
_.b.getKeys=function(){return Object.keys(this.internalMap)};
_.b.remove=function(O){delete this.internalMap[O]};var Pr=function(){this.mappings=new iiF;this.errorCallbacks=new Set};
Pr.prototype.getModuleId=function(O){return O.serviceId.getModuleId()};
Pr.prototype.get=function(O){var x=this.mappings.get(O.toString());return OK2(this,x,O)};
Pr.prototype.getMultipleAsync=function(){var O=_.vw.apply(0,arguments),x=this,e=O.map(function(M){return x.getModuleId(M)}),l=O.map(function(M){return x.mappings.get(M.toString())}).filter(function(M){return M});
if(l.length===O.length)return _.$7(l.map(function(M,G){return OK2(x,M,O[G])}));
var C=uP().loadMultiple(e);l=_.cF(e.map(function(M){return C[M]}));
var Q=document.hidden,L=-1,k=_.yF("get_async_timeout_ms",-1);k>-1&&(L=setTimeout(function(){_.ft(new _.ry("Module timeout.",e,Q,document.hidden))},k));
return _.Ij(l.then(function(){return O.map(function(M){return OK2(x,x.mappings.get(M.toString()),M)})}).thenCatch(function(M){for(var G=_.T(x.errorCallbacks),X=G.next();!X.done;X=G.next())X=X.value,X(M);
throw M;}),function(){clearTimeout(L)})};
Pr.prototype.registerService=function(O,x){this.mappings.set(O.toString(),{type:"mapping",value:x});return O};
var OK2=function(O,x,e){switch(x.type){case "mapping":return x.value;case "factory":return x=x.value(),O.mappings.set(e.toString(),{type:"mapping",value:x}),x;default:return _.vd(x)}};
Pr.prototype.onLoadError=function(O){var x=this;this.errorCallbacks.add(O);return function(){x.errorCallbacks.delete(O)}};
_.cr=new Pr;var DPn=/^[a-zA-Z0-9_\-]{11}$/;var Gdi=_.Xb(function(){var O,x;return(x=(O=window).matchMedia)==null?void 0:x.call(O,"(prefers-reduced-motion: reduce)").matches});var xtL=_.Xb(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 O=_.i8("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");O||(O=_.R9("VIDEO"),_.MB("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
O));return!!(O&&O.canPlayType&&O.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var E6L=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Id;Id=function(){this.tokenJars={};if(this.cookiesEnabled=_.WK()){var O=_.mK.get("CONSISTENCY",void 0);O&&eKL(this,{encryptedTokenJarContents:O})}};
_.qL8=function(){Id.instance||(Id.instance=new Id);return Id.instance};
Id.prototype.handleResponse=function(O,x){if(!x)throw Error("Xf");var e,l;x=((e=x.innerTubeRequest.context)==null?void 0:(l=e.request)==null?void 0:l.consistencyTokenJars)||[];var C;(O=(C=O.responseContext)==null?void 0:C.consistencyTokenJar)&&this.replace(x,O)};
Id.prototype.replace=function(O,x){O=_.T(O);for(var e=O.next();!e.done;e=O.next())delete this.tokenJars[e.value.encryptedTokenJarContents];eKL(this,x)};
var eKL=function(O,x){if(x.encryptedTokenJarContents&&(O.tokenJars[x.encryptedTokenJarContents]=x,typeof x.expirationSeconds==="string")){var e=Number(x.expirationSeconds);setTimeout(function(){delete O.tokenJars[x.encryptedTokenJarContents]},e*1E3);
O.cookiesEnabled&&_.sC("CONSISTENCY",x.encryptedTokenJarContents,e,void 0,!0)}};var lY4,Vp;lY4=window.location.hostname.split(".").slice(-2).join(".");_.y9=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var O=_.wz("LOCATION_PLAYABILITY_TOKEN");_.wz("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Cip(this))&&(O=this.localStorage.get("yt-location-playability-token"));O&&(this.locationPlayabilityToken=O,this.mostRecentPosition=void 0)};
_.y9.getInstance=function(){Vp=_.i8("yt.clientLocationService.instance");Vp||(Vp=new _.y9,_.MB("yt.clientLocationService.instance",Vp));return Vp};
_.y9.prototype.setLocationOnInnerTubeContext=function(O){O.client||(O.client={});if(this.mostRecentPosition)O.client.locationInfo||(O.client.locationInfo={}),O.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),O.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),O.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),O.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)O.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.y9.prototype.handleResponse=function(O){var x;O=(x=O.responseContext)==null?void 0:x.locationPlayabilityToken;O!==void 0&&(this.locationPlayabilityToken=O,this.mostRecentPosition=void 0,_.wz("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Cip(this))&&this.localStorage.set("yt-location-playability-token",O,15552E3):_.sC("YT_CL",JSON.stringify({loctok:O}),15552E3,lY4,!0))};
var Cip=function(O){return O.localStorage===void 0?new _.jC("yt-client-location"):O.localStorage};
_.y9.prototype.clearLocationPlayabilityToken=function(O){O==="TVHTML5"?(this.localStorage=Cip(this))&&this.localStorage.remove("yt-location-playability-token"):_.zhL("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.y9.prototype.getCurrentPositionFromGeolocation=function(){var O=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Yf"));var x=!1,e=1E4;_.wz("INNERTUBE_CLIENT_NAME")==="MWEB"&&(x=!0,e=15E3);return new Promise(function(l,C){navigator.geolocation.getCurrentPosition(function(Q){O.mostRecentPosition=Q;l(Q)},function(Q){C(Q)},{enableHighAccuracy:x,
maximumAge:0,timeout:e})})};
_.y9.prototype.createUnpluggedLocationInfo=function(O){var x={};O=O.coords;if(O==null?0:O.latitude)x.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)x.longitudeE7=Math.floor(O.longitude*1E7);if(O==null?0:O.accuracy)x.locationRadiusMeters=Math.round(O.accuracy);return x};
_.y9.prototype.createLocationInfo=function(O){var x={};O=O.coords;if(O==null?0:O.latitude)x.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)x.longitudeE7=Math.floor(O.longitude*1E7);return x};var QYL=function(){};
_.b=QYL.prototype;
_.b.JSC$13266_getRequest=function(O,x,e){x=x===void 0?{}:x;e=e===void 0?l2R:e;var l=x;if(this.isNavigationCommand()){var C,Q=(C=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:C.url;l=_.P6L(O.clickTrackingParams,!0,!1,Q,this.JSC$13266_getClientScreen(l))}else l=_.P6L(O.clickTrackingParams,!1,this.includeCsn);l={context:l};if(C=this.getExtension(O))return this.JSC$13266_buildRequest(l,C,x),C=this.getApiUrl(O),Q=Object.assign({},{command:O},this.getRequestConfig(O,x)),l={input:C,requestShell:z0(C),
innerTubeRequest:l,config:Q},l.config.authStrategy?l.config.authStrategy.identity=e:l.config.authStrategy={identity:e},(O=this.JSC$13266_getRequestKey(O,x))&&!l.config.requestKey&&(l.config.requestKey=O),l;O=new _.ry("Error: Failed to create Request from Command.",O);_.BH(O)};
_.b.getApiUrl=function(O){var x=_.YE(this.getApiPaths(O)),e;(O=(e=_.q(O.commandMetadata,_.e6))==null?void 0:e.apiUrl)&&(x=O);return uIr(nT8(x))};
_.b.isNavigationCommand=function(){return!1};
_.b.JSC$13266_getClientScreen=function(){};
_.b.JSC$13266_getRequestKey=function(){};
_.b.getRequestConfig=function(){};
_.Dy.Object.defineProperties(QYL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var pL=function(){};
_.c(pL,QYL);pL.prototype.JSC$13273_getStoreKey=function(){};
pL.prototype.JSC$13266_getRequestKey=function(O,x){x=x===void 0?{}:x;return this.JSC$13273_getStoreKey(O,x)};_.ZE={getLocalStorage:_.Xb(function(){try{var O=new YOr;var x=O.isAvailable()?O:null}catch(e){return null}return x?new _.Po(x):null}),
getSessionStorage:_.Xb(function(){var O=new BTV;return O.isAvailable()?new _.Po(O):null})};var fM=new _.iR("ENTITY_STATE_TOKEN"),Rd=new _.iR("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var bKd=XMLHttpRequest.prototype.fetch,TU$=bKd&&bKd.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!kC?!0:!1;var U2=function(O){this.JSC$13279_storeWithEntities=O};
_.c(U2,pL);_.b=U2.prototype;_.b.getApiPaths=function(){return I_T};
_.b.getExtension=function(O){return _.q(O,_.Hq)||_.q(O,_.kU)||_.q(O,tOd)};
_.b.isNavigationCommand=function(){return!0};
_.b.JSC$13273_getStoreKey=function(O){if((_.t("kevlar_cache_on_ttl_player")||_.t("mweb_enable_shorts_innertube_player_prefetch")||_.t("mweb_use_new_history_manager")||_.t("web_shorts_prefetch_service_enabled"))&&(O=this.getExtension(O))&&O.videoId){var x={videoId:O.videoId};O.playlistId&&(x.playlistId=O.playlistId);O.playerParams&&(x.params=O.playerParams);return _.rr("player",x)}};
_.b.JSC$13266_getClientScreen=function(O){var x;return((x=O.contentPlaybackContext)==null?void 0:x.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.b.JSC$13266_buildRequest=function(O,x,e){if(_.t("enable_interstitial_entity_check")){var l=this.JSC$13279_storeWithEntities;if(x.videoId)for(var C=_.T(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var L;var k=void 0,M=void 0,G=x.videoId,X=Q;(L=l)?(G=_.OQ(G+X,"interstitialInteractionStateEntity"),L=(k=(M=_.xE(L.getState().entities,"interstitialInteractionStateEntity",G))==null?void 0:M.primaryButtonClicked)!=null?k:!1):L=!1;if(L)switch(Q){case "CONTENT_CHECK_REQUIRED":x.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":x.racyCheckOk=!0}}}x.videoId&&(O.videoId=x.videoId);x.playlistId&&(O.playlistId=x.playlistId);x.index!==void 0&&(O.playlistIndex=x.index+1);x.playerParams&&(O.params=x.playerParams);"startTimeSeconds"in x&&x.startTimeSeconds&&(_.t("enable_player_request_builder_start_time_floor")?O.startTimeSecs=Math.floor(x.startTimeSeconds):O.startTimeSecs=x.startTimeSeconds);e.contentPlaybackContext&&(O.playbackContext={contentPlaybackContext:e.contentPlaybackContext});e.prefetchPlaybackContext&&
(O.playbackContext=Object.assign({},O.playbackContext,{prefetchPlaybackContext:e.prefetchPlaybackContext}),O.context.request||(O.context.request={}),O.context.request.isPrefetch=!0);O.playbackContext||(O.playbackContext={});l=xtL();O.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!l,supportXhr:TU$};e.overrideMutedAtStart&&(O.overrideMutedAtStart=e.overrideMutedAtStart);O.racyCheckOk=!!x.racyCheckOk;O.contentCheckOk=!!x.contentCheckOk;!_.t("captions_prefs_killswitch")&&(e=(e=_.tU("yt-player-caption-language-preferences"))?
e:[],e==null?0:e.length)&&(O.captionParams={viewerSelectedCaptionLangs:e})};
_.b.getRequestConfig=function(O){O=this.JSC$13273_getStoreKey(O);var x;O&&(x={storeStrategy:{storeKey:O}});_.t("web_log_player_watch_next_ticks")&&(x=x||{},x.requestTick="ps_s",x.responseTick="ps_r");return x};
U2[Fc]=[fM];var ad=function(){};
_.c(ad,pL);_.b=ad.prototype;_.b.getApiPaths=function(){return eGF};
_.b.getExtension=function(O){return _.q(O,_.Hq)};
_.b.isNavigationCommand=function(){return!0};
_.b.JSC$13273_getStoreKey=function(O){if((O=this.getExtension(O))&&O.videoId){var x={videoId:O.videoId};O.playlistId&&(x.playlistId=O.playlistId);O.index&&(x.index=O.index);O.params&&(x.params=O.params);return _.rr("next",x)}};
_.b.JSC$13266_getClientScreen=function(O){var x;return((x=O.contentPlaybackContext)==null?void 0:x.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.b.JSC$13266_buildRequest=function(O,x,e){x.videoId&&(O.videoId=x.videoId);x.playlistId&&(O.playlistId=x.playlistId);x.params&&(O.params=x.params);x.index!==void 0&&(O.playlistIndex=x.index);O.racyCheckOk=!(!e.racyCheckOk&&!x.racyCheckOk);O.contentCheckOk=!!x.contentCheckOk;e.contentPlaybackContext&&(O.autonavState=e.contentPlaybackContext.autonavState,O.playbackContext={vis:e.contentPlaybackContext.vis,lactMilliseconds:e.contentPlaybackContext.lactMilliseconds});e.prefetchPlaybackContext&&(O.context.request||
(O.context.request={}),O.context.request.isPrefetch=!0);_.t("captions_hats_killswitch")||(x=_.TD().getFlag(65),x=x!=null?!x:!1,e=!!_.tU("yt-player-sticky-caption"),O.captionsRequested=x&&e)};
_.b.getRequestConfig=function(O){O=this.JSC$13273_getStoreKey(O);var x;O&&(x={storeStrategy:{storeKey:O}});_.t("web_log_player_watch_next_ticks")&&(x=x||{},x.requestTick="wn_s",x.responseTick="wn_r");return x};
var mG=function(){};
_.c(mG,pL);mG.prototype.getApiPaths=function(){return eGF};
mG.prototype.getExtension=function(O){return _.q(O,_.U1)};
mG.prototype.JSC$13266_buildRequest=function(O,x){x.token&&(O.continuation=x.token)};var s2=function(O,x){this.playerRequestBuilder=O;this.watchNextRequestBuilder=x};
_.c(s2,pL);s2.prototype.getApiPaths=function(){return Gz4};
s2.prototype.getExtension=function(O){return _.q(O,_.Hq)};
s2.prototype.isNavigationCommand=function(){return!0};
s2.prototype.JSC$13266_buildRequest=function(O,x,e){O.playerRequest={};this.playerRequestBuilder.JSC$13266_buildRequest(O.playerRequest,x,e);_.t("web_streaming_watch")&&(O.watchNextRequest={},this.watchNextRequestBuilder.JSC$13266_buildRequest(O.watchNextRequest,x,e))};
s2[Fc]=[U2,ad];var LUN;_.Wr=new _.iR("SHORTS_CONTROLLER_TOKEN");LUN=new _.iR("SHORTS_STATE_STORE_TOKEN");var hd=function(O,x){var e=_.vw.apply(2,arguments);O=O===void 0?0:O;_.ry.call(this,x,e);this.errorType=O;Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(hd,_.ry);var keF,Ayd,Dtz,BJV,Ue,kgr,oPR,Xp4,PiD,EPz,ZKd;keF=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(O){return O+"="}).join("|"));
Ayd=RegExp(".*\\?.*playnext=1.*");_.zK=function(O,x,e,l){this.watchEndpointMap=O;this.reelWatchEndpointMap=x;this.innerTubeTransportService=e;this.fetchPbj=l};
Dtz=function(O,x,e){var l=_.GG().resolve(_.D0(MBT));_.zK.instance=new _.zK(O,x,e,l)};
_.Ged=function(O,x){var e=_.yF("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;var l;if((l=_.q(x.commandMetadata,_.e6))==null||!l.rootVe)return e&&_.ft(Error("$f")),!1;var C;l=(C=_.q(x.commandMetadata,_.e6))==null?void 0:C.url;if(!l)return e&&_.ft(Error("ag")),!1;if(Ayd.test(l))return!0;if(keF.test(l))return e&&_.ft(Error("bg`"+l)),!1;if(_.q(x,_.Hq)){if(!(O.watchEndpointMap.watchNext&&O.watchEndpointMap.player||_.t("kevlar_fetch_initial_data_op_watch_client")))return e&&_.ft(Error("Tf")),!1;
O=_.yF("web_pbj_log_warning_rate",0);O=O>0&&Math.random()<O;_.q(x,_.Hq)?AXr(x)?x=!0:(O&&_.ft(Error("Uf")),x=!1):(O&&_.ft(Error("Tf")),x=!1);return x}if(_.q(x,_.kU))return MVr(x);if(_.q(x,_.fY))return!0;O=_.hI(O.innerTubeTransportService,x);!O&&e&&_.BH(Error("cg"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(x)});return O};
BJV=function(O,x,e,l,C,Q){x={url:x};if(e==null?0:e.itct)x.parentTrackingParams=e.itct;var L=_.YE(h$3);return _.NK(O.innerTubeTransportService,x,L).then(function(k){(k=k.endpoint)||(k=_.a7);(e==null?0:e.itct)&&k&&!k.trackingParams&&(k.trackingParams=e.itct);var M=Tu(k);return Ue(O,k,e,l,M,C,Q)})};
Ue=function(O,x,e,l,C,Q,L,k){k=k===void 0?{}:k;if(O.fetchPbj&&!_.Ged(O,x)&&!_.t("force_one_platform")){k=O.fetchPbj(x);var M=_.$7(k.then(function(u){if(!u)throw Error("dg");L(M)||Q(x,u);return u}));
return M}var G,X,y={rootVe:(G=_.q(x.commandMetadata,_.e6))==null?void 0:G.rootVe,url:(X=_.q(x.commandMetadata,_.e6))==null?void 0:X.url,endpoint:x,page:C};if(_.q(x,_.Hq)){var Z,E={contentPlaybackContext:_.DE(e,(Z=_.q(x.commandMetadata,_.e6))==null?void 0:Z.url,l)},P=_.He();_.t("web_streaming_watch")&&window.TextDecoderStream?(k=FUR(O.innerTubeTransportService,x,E,function(u){!y.response&&u.content&&(y.response=u.content);!y.playerResponse&&u.player&&(y.playerResponse=u.player);Q(x,y)}),G=YFw(x),G.length&&
(y.preconnect=G,Q(x,y)),Xp4(k,P,y).catch(function(u){u instanceof hd&&u.errorType===2&&_.t("web_streaming_watch_fallback")&&oPR(O,x,E,y,Q,L,P)})):oPR(O,x,E,y,Q,L,P);
return P.promise}if(_.q(x,_.kU)){var U;if(((U=_.q(x,_.kU))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var W=_.He();_.yyF(_.GG().resolve(_.Wr),x).then(function(u){ZKd(O,e,l,C,Q,W,u)});
return W.promise}k=_.$7();var z;G={contentPlaybackContext:_.DE(e,(z=_.q(x.commandMetadata,_.e6))==null?void 0:z.url,l)};(z=O.reelWatchEndpointMap.player)&&(z=z().JSC$13266_getRequest(x,G))&&(k=_.NK(O.innerTubeTransportService,z.innerTubeRequest,z.input,x.clickTrackingParams,z.config));z=_.$7();(X=O.reelWatchEndpointMap.reelItemWatch)&&(X=X().JSC$13266_getRequest(x))&&(z=_.NK(O.innerTubeTransportService,X.innerTubeRequest,X.input,x.clickTrackingParams,X.config));X=_.$7();_.t("web_enable_delay_shorts_sequence_call_extra")&&
(X=new _.If(function(u){setTimeout(function(){u(void 0)},200)}));
(!_.t("web_enable_delay_shorts_sequence_call_new")||_.t("web_enable_delay_shorts_sequence_call_forget"))&&(Z=O.reelWatchEndpointMap.reelWatchSequence)&&_.q(x,_.kU).sequenceParams&&(G=Z().JSC$13266_getRequest(x,G))&&(_.t("web_enable_delay_shorts_sequence_call_forget")?_.NK(O.innerTubeTransportService,G.innerTubeRequest,G.input,x.clickTrackingParams,G.config):X=_.NK(O.innerTubeTransportService,G.innerTubeRequest,G.input,x.clickTrackingParams,G.config));G=_.$7(y);Z=_.He();EPz(x,G,k,z,X,Q,L,Z);return Z.promise}var r;
if(_.q(x,bg$)&&((r=_.q(x.commandMetadata,_.e6))==null?0:r.url))return k=tVs(_.xO(nu().location.href),_.xO(_.q(x.commandMetadata,_.e6).url)).toString(),BJV(O,k,e,l,Q,function(){return!1});
if(_.q(x,_.fY))return Q(x,y),_.$7(y);if(_.hI(O.innerTubeTransportService,x)){k=Object.assign({},{tempData:e,disableCache:e.disableCache},k);var f=_.z7(O.innerTubeTransportService,x,k).then(function(u){y.response=u;L(f)||Q(x,y);return y});
return f}return _.$7(y)};
_.qtp=function(O,x,e,l){if(_.q(x,_.Hq)||_.q(x,_.kU)&&(_.t("mweb_enable_shorts_innertube_player_prefetch")||_.t("kevlar_enable_shorts_prefetch_in_sequence"))||_.q(x,tOd)&&_.t("web_enable_prefetching_videos_on_home")){var C,Q={contentPlaybackContext:_.DE(e,(C=_.q(x.commandMetadata,_.e6))==null?void 0:C.url,l),prefetchPlaybackContext:X$W(e)},L,k,M;if(((L=_.q(x,_.Hq))==null?void 0:(k=L.watchEndpointSupportedPrefetchConfig)==null?void 0:(M=k.prefetchHintConfig)==null?void 0:M.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(e=
O.watchEndpointMap.watchNext)if(Q=e().JSC$13266_getRequest(x,Q))return Promise.resolve(_.NK(O.innerTubeTransportService,Q.innerTubeRequest,Q.input,void 0,Q.config).then(function(y){return y}))}else if(e=O.watchEndpointMap.player)if(Q=e().JSC$13266_getRequest(x,Q))return Promise.resolve(_.NK(O.innerTubeTransportService,Q.innerTubeRequest,Q.input,void 0,Q.config).then(function(y){return y}))}else if(_.hI(O.innerTubeTransportService,x)){var G={tempData:e},X=tBN(O.innerTubeTransportService,x);
return X?new Promise(function(y,Z){var E,P;return _.A(function(U){if(U.nextAddress==1)return U.yield(X,2);if(U.nextAddress!=4)return E=U.yieldResult,E.JSC$13273_getStoreKey(x,G)?U.yield(_.z7(O.innerTubeTransportService,x,G),4):(Z(new _.ry("Prefetching request builder with no store key.",x)),U.jumpTo(0));P=U.yieldResult;y(P);_.Ra(U)})}):Promise.reject(new _.ry("Prefetching unregistered request builder.",x))}return Promise.reject(new _.ry("No request builder available to prefetch endpoint.",x))};
kgr=function(O,x){var e,l,C;if(_.q(x,_.Hq)){var Q=O.watchEndpointMap.watchNext;Q&&(e=Q());(O=O.watchEndpointMap.player)&&(l=O())}else if(_.q(x,_.kU))(Q=O.reelWatchEndpointMap.reelItemWatch)&&(e=Q()),(Q=O.reelWatchEndpointMap.player)&&(l=Q()),(O=O.reelWatchEndpointMap.reelWatchSequence)&&(C=O());else{a:{O=G98(x,O.innerTubeTransportService.endpointMap);if(O!==void 0)if(typeof O.then==="function")_.BH(new _.ry("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",x));else break a;
O=void 0}O&&(e=O)}var L,k,M;return{content:(L=e)==null?void 0:L.JSC$13273_getStoreKey(x),player:(k=l)==null?void 0:k.JSC$13273_getStoreKey(x),reelSequence:(M=C)==null?void 0:M.JSC$13273_getStoreKey(x)}};
oPR=function(O,x,e,l,C,Q,L){var k=_.$7(),M=O.watchEndpointMap.player;_.t("web_streaming_player")&&(M=Mw(s2));M&&(M=M().JSC$13266_getRequest(x,e))&&(k=_.NK(O.innerTubeTransportService,M.innerTubeRequest,M.input,x.clickTrackingParams,M.config));M=_.$7();var G=O.watchEndpointMap.watchNext;G&&(e=G().JSC$13266_getRequest(x,e))&&(M=_.NK(O.innerTubeTransportService,e.innerTubeRequest,e.input,x.clickTrackingParams,e.config));O=_.$7(l);PiD(x,O,k,M,C,Q,L)};
Xp4=function(O,x,e){return _.A(function(l){if(l.nextAddress==1)return l.yield(O,2);x.resolve(e);_.Ra(l)})};
PiD=function(O,x,e,l,C,Q,L){var k,M,G,X,y;_.A(function(Z){switch(Z.nextAddress){case 1:return Z.yield(x,2);case 2:k=Z.yieldResult;if(Q(L.promise))return L.resolve(k),Z.return();C(O,k);M=YFw(O);if(!M.length){Z.jumpTo(3);break}return Z.yield(x,4);case 4:k.preconnect=M,C(O,k);case 3:return _.tS(Z,5),Z.yield(e,7);case 7:G=Z.yieldResult;_.lb(Z,6);break;case 5:return X=_.VP(Z),L.reject(X),Z.return();case 6:if(G===void 0)return k.reload=!0,C(O,k),L.resolve(k),Z.return();if(Q(L.promise))return L.resolve(k),
Z.return();k.playerResponse=G;C(O,k);_.tS(Z,8);return Z.yield(l,10);case 10:y=Z.yieldResult;_.lb(Z,9);break;case 8:_.VP(Z);case 9:if(y===void 0)return k.response={responseContext:{}},L.resolve(k),Z.return();if(Q(L.promise))return L.resolve(k),Z.return();k.response=y;C(O,k);L.resolve(k);_.Ra(Z)}})};
EPz=function(O,x,e,l,C,Q,L,k){var M,G,X,y,Z,E;_.A(function(P){switch(P.nextAddress){case 1:return P.yield(x,2);case 2:M=P.yieldResult;if(L(k.promise))return k.resolve(M),P.return();Q(O,M);G=YFw(O);if(!G.length){P.jumpTo(3);break}return P.yield(x,4);case 4:M.preconnect=G,Q(O,M);case 3:return _.tS(P,5),P.yield(e,7);case 7:X=P.yieldResult;_.lb(P,6);break;case 5:return y=_.VP(P),k.reject(y),P.return();case 6:if(X===void 0)return M.reload=!0,Q(O,M),k.resolve(M),P.return();if(L(k.promise))return k.resolve(M),
P.return();M.playerResponse=X;Q(O,M);_.tS(P,8);return P.yield(l,10);case 10:Z=P.yieldResult;_.lb(P,9);break;case 8:_.VP(P);case 9:if(Z===void 0)return M.response={responseContext:{}},k.resolve(M),P.return();if(L(k.promise))return k.resolve(M),P.return();M.response=Z;Q(O,M);_.tS(P,11);return P.yield(C,13);case 13:E=P.yieldResult;_.lb(P,12);break;case 11:_.VP(P);case 12:if(L(k.promise))return k.resolve(M),P.return();E&&(M.reelWatchSequenceResponse=E);Q(O,M);k.resolve(M);_.Ra(P)}})};
ZKd=function(O,x,e,l,C,Q,L){var k,M,G,X,y,Z;_.A(function(E){if((k=L)==null||!k.replacementEndpoint)return Q.reject(),E.return();M=L.replacementEndpoint;(G=_.q(M,_.kU))?(L.sequenceContinuation&&(G.sequenceParams=L.sequenceContinuation),X=_.GG().resolve(_.Wr),y=G.sequenceParams,cyd(X,M)&&delete G.sequenceParams,Z=Ue(O,M,x,e,l,C,function(){return!1}),Z.then(function(P){return _.A(function(U){if(U.nextAddress==1)return IYJ(X,{reelWatchEndpoint:{sequenceParams:y}},P),U.yield(0,2);
Q.resolve(P);_.Ra(U)})})):Q.reject();
_.Ra(E)})};_.VBR=function(O){if(O.validatedFragments_.length==0)return null;if(!O.mergedPrefetchedData_){for(var x=[],e=_.T(O.validatedFragments_),l=e.next();!l.done;l=e.next()){l=_.T(O.fragmentConfiguration_[l.value].graftedKeys);for(var C=l.next();!C.done;C=l.next())(C=O.prefetchedData_[C.value].trackingParams)&&x.push(C)}O.mergedPrefetchedData_={};Object.assign(O.mergedPrefetchedData_,O.prefetchedData_,{clientSideGrafts:x})}return O.mergedPrefetchedData_};var pp3;_.rH=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
pp3=function(O,x,e){if(_.L0L(x))return O.prefetchCache_.get(_.kdw(x,e))};_.Hr=new _.iR("NAVIGATION_TOKEN");var RKT=function(O){var x=this;var e=e===void 0?VVr():e;var l=l===void 0?_.GG().resolve(_.Hr):l;this.onePickCommand=O;this.JSC$13377_playlistNetworkManager=e;this.navigationManager=l;this.videoPickerBuilder=_.cXm("yt-addtoplaylist");_.Egp(D9T(G0R(Mhz(this.videoPickerBuilder.setTitle(O.modalTitle).setSize(1E3).addView(XDk()).addView(F1T())).addView("youtube"),O.selectButtonLabel)),function(C){x.handleAction(C)})};
RKT.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
RKT.prototype.handleAction=function(O){var x=this;if(O&&this.onePickCommand.listId&&O.action==="picked"&&O.docs){var e=[];O.docs.forEach(function(l){e.push({addedVideoId:l.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13377_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,e).then(function(){_.t("playlist_add_video_hard_reload_killswitch")?x.navigationManager.reload():UtL(x.navigationManager)})}};var aYF=function(){if(this.constructor===aYF)throw new TypeError("eg");};
_.b=aYF.prototype;_.b.dispose=function(){};
_.b.disconnect=function(){};
_.b.reconnect=function(){};
_.b.observe=function(O,x,e){return{element:O,option:e}};
_.b.unobserveByKey=function(){};var p$w=function(O,x){x=x===void 0?0:x;aYF.call(this);this.viewroot=O;this.defaultPrescanHeight=x;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),O?{root:O,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.c(p$w,aYF);_.b=p$w.prototype;_.b.dispose=function(){this.disconnect();this.handlers.clear()};
_.b.disconnect=function(O){this.isConnected=!1;this.pauseObservingUntilReconnect=O===void 0?!1:O;this.observer.disconnect();O=_.T(this.prescanObservers.values());for(var x=O.next();!x.done;x=O.next())x.value.disconnect()};
_.b.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var O=_.T(this.handlers),x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;var l=e.next().value;e=!1;l=_.T(l.keys());for(var C=l.next();!C.done;C=l.next())if((C=C.value)&&C.state==="prescan"){e=!0;break}e&&mtF(this,x).observe(x);this.observer.observe(x)}}};
_.b.handleObserveEvent=function(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;var e=this.handlers.get(x.target);if(e){var l=x.isIntersecting;e=_.T(e);for(var C=e.next();!C.done;C=e.next()){var Q=_.T(C.value);C=Q.next().value;Q=Q.next().value;C&&(C.state==="visible"&&l||C.state==="hidden"&&!l)&&(Q(x.target,C.state),C.calledOnce&&this.unobserveByKey({element:x.target,option:C}))}}}};
_.b.handlePrescanEvent=function(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;var e=this.handlers.get(x.target);if(e&&x.isIntersecting){e=_.T(e);for(var l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;l&&l.state==="prescan"&&(C(x.target,l.state),l.calledOnce&&this.unobserveByKey({element:x.target,option:l}))}}}};
_.b.observe=function(O,x,e){var l=(l=this.handlers.get(O))&&l.has(e)?{element:O,option:e}:void 0;if(l)return l;l={element:O,option:e};this.handlers.has(O)||this.handlers.set(O,new Map);var C=this.handlers.get(O);C&&!C.has(e)&&C.set(e,x);this.pauseObservingUntilReconnect||(e.state==="prescan"&&mtF(this,O).observe(O),this.observer.observe(O));return l};
_.b.unobserveByKey=function(O){var x=this.handlers.get(O.element);if(x&&x.has(O.option)){x.delete(O.option);if(O&&O.option.state==="prescan")for(var e=_.T(this.prescanObservers.values()),l=e.next();!l.done;l=e.next())l.value.unobserve(O.element);x.size===0&&(this.handlers.delete(O.element),this.observer.unobserve(O.element))}};
var mtF=function(O,x){var e=O.defaultPrescanHeight;x.hasAttribute("prescan-height")&&(x=Number(x.getAttribute("prescan-height")),isNaN(x)||(e=x));if(O.prescanObservers.has(e))return O.prescanObservers.get(e);x="-0.1px -0.1px "+e+"px -0.1px";x=new IntersectionObserver(O.handlePrescanEvent.bind(O),O.viewroot?{root:O.viewroot,rootMargin:x}:{rootMargin:x});O.prescanObservers.set(e,x);return x};var sY$=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],WUd=function(){var O,x=this;this.JSC$13394_actionRouter=O=O===void 0?_.iU.getInstance():O;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return x.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return x.visibilityObservedElementHandlerKeys}}},hKN,ryz,dtD;
WUd.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.t("kevlar_use_vimio_behavior")&&_.wz("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=RX7())};
WUd.prototype.dispose=function(){this.visibilityMonitor&&_.EK(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
WUd.prototype.handleVisibilityRefreshed=function(){for(var O=_.T(this.targetMap.entries()),x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;e=e.next().value;_.zKp(this,x,e)}};
_.KUz=function(O,x,e){ryz(O,e);var l=_.HKJ(O,x);l.element=e;O.targetedElements.set(e,x);_.zKp(O,x,l)};
ryz=function(O,x){var e=O.targetedElements.get(x);if(e){var l=O.targetMap.get(e);l&&(delete l.element,O.targetMap.set(e,l));O.targetedElements.delete(x);O.visibilityObserver&&O.visibilityObservedElementHandlerKeys&&(e=O.visibilityObservedElementHandlerKeys.get(x))&&(O.visibilityObserver.unobserveByKey(e),O.visibilityObservedElementHandlerKeys.delete(x))}};
_.zKp=function(O,x,e){var l=e.action,C=e.element;C&&l&&(sY$.includes(x)||_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||O.visibilityMonitor&&O.visibilityMonitor.isNodeVisible(C)?dtD(O,x,e):O.visibilityObserver&&(O.visibilityObservedElementHandlerKeys||(O.visibilityObservedElementHandlerKeys=new WeakMap),l=O.visibilityObserver.observe(C,function(){dtD(O,x,e);O.visibilityObservedElementHandlerKeys.delete(C)},{calledOnce:!0,
state:"visible"}),O.visibilityObservedElementHandlerKeys.set(C,l)))};
dtD=function(O,x,e){var l=e.action;(e=e.element)&&l&&(_.z6(O.JSC$13394_actionRouter,[l],e),O.targetMap.delete(x),O.targetedElements.delete(e),O.triggeredTargets.add(x))};
_.HKJ=function(O,x){var e=O.targetMap.get(x);e||(e={},O.targetMap.set(x,e));return e};
_.KL=function(){hKN||(hKN=new WUd);return hKN};var nP$=document.createElement("div");nP$.style.touchAction="pan-down";var UPi=nP$.style.touchAction==="pan-down";var u3F,YtN;u3F=function(){this.hammerFn=EQL();this.JSC$13402_screenManager=_.k0();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.O9(83615);_.Pu(this.JSC$13402_screenManager,this.ve);aZr()};
_.dH=function(){YtN||(YtN=new u3F);return YtN};
u3F.prototype.registerTouchEvents=function(O,x,e){var l=_.vw.apply(3,arguments),C=this.hammerFn(O,{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}]]});e&&C.set({touchAction:e});this.nodeManagerMapping.set(O,C);var Q=
mPW(x);l=_.T(l);for(var L=l.next();!L.done;L=l.next()){L=L.value;if(L.includes("swipe")||L.includes("pinch")||L.includes("pan"))L.includes("swipe")?C.get("swipe").set({enable:!0,direction:Q,velocity:.2}):L.includes("pinch")?C.get("pinch").set({enable:!0}):L.includes("pan")&&(C.get("pan").set({enable:!0,direction:Q}),C.get("swipe").set({enable:!0,direction:Q,velocity:.2}),C.get("swipe").recognizeWith("pan"));BUN(this,O,C,L)}};
var BUN=function(O,x,e,l){e.on(l,function(C){if(l.includes("pinch"))O.lastPinchTime=Date.now();else if(l.includes("swipe")&&Date.now()-O.lastPinchTime<400)return;C.pointerType!=="mouse"&&(C=l==="doubletap"?{coordinates:C.center}:l.includes("pan")?C:l.includes("swipe")?{target:C.target}:{},x.dispatchEvent(new CustomEvent(l,{bubbles:!0,composed:!0,detail:C})))})};
u3F.prototype.unregisterTouchEvents=function(O){var x=_.vw.apply(1,arguments),e=this.nodeManagerMapping.get(O);if(e){x=_.T(x);for(var l=x.next();!l.done;l=x.next())e.off(l.value);this.nodeManagerMapping.delete(O);O.style.touchAction="unset"}};var vPR=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var s4V=null;var fY4=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},NG8=function(){fY4.instance||(fY4.instance=new fY4);
return fY4.instance},g6w=function(O){var x=O.networkEvents;
O.networkEvents=[];return _.t("enable_network_monitoring")?x:[]};var Jyk;Jyk={};_.wpD=GC("yt-serviceworker-metadata",{objectStores:(Jyk.auth={addedAtVersion:1},Jyk["resource-manifest-assets"]={addedAtVersion:2},Jyk),shared:!0,upgrade:function(O,x){x(1)&&gD(O,"resource-manifest-assets");x(2)&&gD(O,"auth")},
version:2});var K07=self.location.origin+"/";dPr([/\.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\//]);dPr([/purge_shell=1/]);var StL=void 0;StL=StL===void 0?[]:StL;for(var jYD=[],NU$=_.T(Nr4),gPF=NU$.next();!gPF.done;gPF=NU$.next())jYD.push({key:gPF.value});for(var $tL=_.T(StL),iK$=$tL.next();!iK$.done;iK$=$tL.next())jYD.push(iK$.value);var OW2,V9=_.CV==null?void 0:(OW2=_.CV.performance)==null?void 0:OW2.memory,YLN=!1,$P7={},fZr={},p3={},RF=navigator;var nL=function(O){this.JSC$13446_expiringStorage=new Kb(O)};
nL.prototype.set=function(O,x,e){e=e!==void 0?Date.now()+e:void 0;this.JSC$13446_expiringStorage.set(O,x,e)};
nL.prototype.get=function(O){return this.JSC$13446_expiringStorage.get(O)};
nL.prototype.remove=function(O){this.JSC$13446_expiringStorage.remove(O)};var bNw=_.zo(["https://www.youtube.com/",""]),Ter=_.zo(["https://studio.youtube.com/",""]),Der="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",kzL=null,yH7;var x2T=_.zo(["https://www.youtube.com/iframe_api"]),uX=function(){this.playerResolver_=_.He();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Fb;this.playbackDurationSeconds_=0},ev2=function(O){var x=function(){return window.YT&&typeof window.YT.ready==="function"};
if(x())return _.$7(window.YT);var e=_.He(),l=_.R9("SCRIPT");l.onload=l.onreadystatechange=function(){l.readyState&&l.readyState!="loaded"&&l.readyState!="complete"||(l.onload=_.Fb,l.onreadystatechange=_.Fb,l.onerror=_.Fb,x()?e.resolve(window.YT):e.reject(new _.ry("Failed to load the iframe player library","script.onload",l.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
l.onerror=function(C){l.onload=_.Fb;l.onreadystatechange=_.Fb;l.onerror=_.Fb;e.reject(new _.ry("Failed to load the iframe player library","script.onerror",C&&C.target&&C.target.src))};
_.QP(l,_.on(x2T));O.insertBefore(l,O.firstChild);return e.promise},lpd=function(O,x,e){var l,C;
_.A(function(Q){switch(Q.nextAddress){case 1:return O.playbackEndedCallback_=e,_.tS(Q,2),Q.yield(ev2(x.parentElement||null),4);case 4:l=Q.yieldResult;_.lb(Q,3);break;case 2:return C=_.VP(Q),C instanceof _.ry&&C.args&&C.args[0]=="script.onerror"?_.ft(C):_.BH(C),Q.return();case 3:l.ready(function(){return new l.Player(x,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:O.onPlayerReady_.bind(O),onStateChange:O.onPlayerStateChange_.bind(O),
onCueRangeExit:O.onCueRangeExit_.bind(O)}})}),_.Ra(Q)}})};
_.b=uX.prototype;_.b.getPlayerPromise=function(){return this.playerPromise_};
_.b.onPlayerReady_=function(O){this.playerResolver_.resolve(O.target)};
_.b.onPlayerStateChange_=function(O){if(O.data==YT.PlayerState.PLAYING){O=O.target;var x=O.getCurrentTime();O.addCueRange("playback",x,x+this.playbackDurationSeconds_)}};
_.b.onCueRangeExit_=function(O){O.data=="playback"&&(O.target.stopVideo(),this.playbackEndedCallback_())};
_.b.stopVideo=function(){this.playerPromise_.then(function(O){O.stopVideo()})};
var C3N=function(O){O.playerVars_&&O.playerPromise_.then(function(x){typeof x.cueVideoByPlayerVars!="function"?_.ft(new _.ry("vmh: player API not ready","cueVideoByPlayerVars",typeof x.cueVideoByPlayerVars)):x.cueVideoByPlayerVars(O.playerVars_)})};
uX.prototype.playVideo=function(){var O=this;this.playerVars_&&this.playerPromise_.then(function(x){typeof x.loadVideoByPlayerVars!="function"?(x=new _.ry("vmh: player API not ready","loadVideoByPlayerVars",typeof x.loadVideoByPlayerVars),_.BH(x)):x.loadVideoByPlayerVars(O.playerVars_)})};
var QWL=function(O,x,e,l,C){x&&(e===void 0&&(e=0),l===void 0&&(l=0),O.playbackDurationSeconds_=l/1E3,O.playerVars_={adformat:"17_8",videoId:x,suggestedQuality:"hd720",startSeconds:e/1E3,player_params:C})};
uX.prototype.mute=function(){this.playerPromise_.then(function(O){O.mute()})};
uX.prototype.unMute=function(){this.playerPromise_.then(function(O){O.unMute()})};var bWd=function(O,x){var e=Ub();O||(O="unknown");x||(x="unknown");O="MAIN_APP_WEB_PAGE_TYPE_"+O.toUpperCase();O in DKR||(O="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");x="MAIN_APP_WEB_REQUEST_TYPE_"+x.toUpperCase();x in GjD||(x="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.ic(e,{mainAppWeb:{pageType:O,requestType:x,isShellLoad:_.SS("IS_SHELL_LOAD",!1)}})},TWd={start:function(){_.ic(Var(),{mainAppWeb:_.rO()})},
success:function(){_.Oe(Var(),"SUCCESS")},
failure:function(){_.Oe(Var(),"FAILURE")},
cancelled:function(){_.Oe(Var(),"CANCELLED")}};var L2L,kEJ,I_8;L2L=_.zo(["/sw.js"]);kEJ=_.zo(["/sw.js?0"]);_.A$k=_.on(L2L);I_8=_.on(kEJ);var MTF=function(){var O=Error.apply(this,arguments);this.message=O.message;"stack"in O&&(this.stack=O.stack)};
_.c(MTF,Error);_.dO.prototype.load=function(O){this.megabloxUrl_=_.wz("YPC_MB_URL");_.ag(this.megabloxUrl_,(0,_.z8)(function(){O&&O()},this))};
_.hyL=function(O,x,e,l,C,Q,L,k,M,G,X){_.pfm(M);O.load((0,_.z8)(function(){try{var y=Q?Q:_.wz("HL"),Z=_.wz("SESSION_INDEX");_.CNr("client",function(){lGT("59",{helpCenterPath:"/youtube",locale:y,window:window}).JSC$9970_loadChatSupport({authuser:String(Z)})})}catch(E){throw HR(10,X,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),C&&C(E),_.BH(E),E;
}D2d(this,x,e,l,C,Q,L,k,M,G,X)},O))};
_.dO.prototype.openFixFlowDialog=function(O,x,e,l){this.load((0,_.z8)(function(){try{GEd(this,_.i8("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(O).withIntegratorCallback(x).load(e,l)}catch(C){throw _.BH(C),C;}},this))};
var GEd=function(O,x,e,l){var C=x.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.t("enable_window_constrained_buy_flow_dialog")&&(C=C.usingPopupStyle(_.i8("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));l&&(C=C.usingCloseCallback(l));x.bootstrap.fromPaymentsUrl(O.megabloxUrl_);O=x.bootstrap.asMashupMode(C);e=e?e:_.wz("HL");O.usingGaiaIndex(_.wz("SESSION_INDEX")).usingLocale(e).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.t("enable_google_payments_buyflow_material2_style_web")?
O.usingStyle(":m2;pc=#444;ac=#065fd4"):O.usingStyle(":md;pc=#444;ac=#065fd4");return O},D2d=function(O,x,e,l,C,Q,L,k,M,G,X){try{var y=_.i8("payments.business.integration");
if(!y)throw new MTF("payments.business.integration is undefined");var Z=y.standaloneContextAuthId.forUserId(),E=GEd(O,y,Q,function(){UeN(!1);k&&k()});
L&&E.usingServerAnalyticsEventHandler(L);var P=E.inStandaloneContext(Z).buyFlow(function(U){if(U&&(!U.integratorData||U.integratorData===""||U.error))if(U.error!=null)if(String(U.error)==="-1")_.R$m(M);else{var W=String(U.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";HR(10,X,W,U.debugCode);_.K3(W,M,U.debugCode);W=new _.ry("PAYMENT_ERROR_MESSAGE::"+U.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+U.internalErrorDetails);
_.BH(W)}else HR(10,X,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.K3("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",M,"EMPTY_INTEGRATOR_DATA"),_.BH(Error("jg"));e&&(UeN(!1),e(U))}).withEncryptedParameters(x);
G&&P.withClientParameters(Crp(_.s87(G)));P.load(function(){HR(24,X);_.pZ("ttc",void 0,"commerce_transaction");t3("commerce_transaction");l&&(l(),UeN(!0))},function(U){if(U==null?0:U.debugCode)var W=U==null?void 0:U.debugCode;
else if(!U||(U==null?0:U.debugCode))W="EMPTY_LOAD_FAILURE_ERROR",_.BH(Error(W));else{W="EMPTY_LOAD_FAILURE_DEBUG_CODE";var z=new _.ry("LOAD_FAILURE:"+U.message," DEBUG_CODE:"+W);_.BH(z)}HR(10,X,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W);_.K3("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M,W);_.BH(U);C&&C(U)})}catch(U){throw U instanceof MTF&&(HR(10,X,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),C&&C(U)),_.BH(U),U;
}};var F2d;F2d=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.m68=function(O,x){x=x===void 0?!1:x;O=F2d.test(O)?_.aS(O):null;!x&&window.payments||!O?(O=_.He(),x=O.promise,O.resolve()):x=_.vgT(O,{attributes:{"data-payments-main":"",id:"payment-lib"}});return x};var X33;X33=_.zo(["//www.googletagmanager.com/gtm.js?id=",""]);_.Yq=function(O,x){_.wS(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:x}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.wz("GL")}),x=_.R9("SCRIPT"),x.async=!0,_.QP(x,_.on(X33,O)),x.id="gtm",O=document.getElementsByTagName("script"),O.length==0?document.head.appendChild(x):(O=O[0],O.parentNode.insertBefore(x,O)))};
_.Br=function(O){if(O=JSON.parse(O))window.dataLayer=window.dataLayer||[],window.dataLayer.push(O)};var oNk,y$R;oNk=_.zo(["https://clients2.google.com/gr/gr_sync.js"]);_.U6m=function(){};
_.U6m.prototype.init=function(){if(y$R()){var O=_.He();O.resolve();return O.promise}return _.vgT(_.on(oNk)).then(function(){if(!y$R())throw Error("kg");},function(){throw Error("lg");
})};
_.ak7=function(){if(!y$R())return"";var O=window.google.gr;O.init({async:{schedule:"sync"},merchantId:"youtube"});O.start();O=O.finish();return O==null?"":O};
y$R=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.a=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.c(_.a,PolymerFakeBaseClassWithoutHtml);_.MQ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.c(_.MQ,PolymerFakeBaseClassWithoutHtml);var a_N=window.ShadyDOM;var AbL,LM8,Dri,Gis,XCL,o2N,vr,gO;AbL=_.t("enable_shadydom_free_scoped_query_methods");LM8=_.t("enable_shadydom_free_scoped_node_methods");Dri=_.t("enable_shadydom_free_scoped_readonly_properties_batch_one");Gis=_.t("enable_shadydom_free_parent_node");XCL=_.t("enable_shadydom_free_children");o2N=_.t("enable_shadydom_free_last_child");vr=window.ShadyDOM;_.eU=vr&&vr.noPatch&&vr.wrap?vr.wrap:vr?function(O){return vr.patch(O)}:function(O){return O};
gO=function(O){if(O instanceof ShadowRoot)this.host=(0,_.eU)(O.host),this.root=O;else if(O.$$){this.host=(0,_.eU)(O);var x;this.root=(x=O.root)!=null?x:this.host}else if(O.polymerController){this.host=(0,_.eU)(O);var e;this.root=(e=this.host.shadowRoot)!=null?e:this.host}else this.root=this.host=(0,_.eU)(O)};
ki8();MHi();yb8();ZBN();FM8();var ZW3={querySelector:function(O,x){x=sb7(x,BR(O));O=_.vR(O);return f3(O).prototype.querySelector.call(O,x)},
querySelectorAll:function(O,x){x=sb7(x,BR(O));O=_.vR(O);return f3(O).prototype.querySelectorAll.call(O,x)}},ENF={appendChild:function(O,x){var e=BR(O),l=_.YU(x);
return _.bBr(_.vR(O),e?_.wO(x,e,l):x)},
cloneNode:function(O,x){var e=_.YU(O);O=_.vR(O);x=f3(O).prototype.cloneNode.call(O,x);return e?Sx(x,e):x},
contains:function(O,x){var e=BR(O),l=_.YU(x);return e!==l?!1:TIr(O,x)},
insertBefore:function(O,x,e){var l=BR(O),C=_.YU(x);O=_.vR(O);x=l?_.wO(x,l,C):x;return f3(O).prototype.insertBefore.call(O,x,e)},
removeChild:function(O,x){var e=BR(O);O=_.vR(O);x=e?Sx(x,e):x;return f3(O).prototype.removeChild.call(O,x)},
replaceChild:function(O,x,e){var l=BR(O),C=_.YU(x);x=l?_.wO(x,l,C):C?Sx(x,C):x;e=l?Sx(e,l):e;O=_.vR(O);return f3(O).prototype.replaceChild.call(O,x,e)},
getRootNode:function(O,x){x=x===void 0?{composed:!0}:x;var e;if(((e=x)!=null?e:{}).composed)O=BeL(O);else{x=O;for(O=h$L(O);O;)x=O,O=rHL(O);O=x}return O}},tHr=Dri?{firstChild:OBs,
nextSibling:gv8,previousSibling:iNr,firstElementChild:xrV,lastElementChild:lxN,nextElementSibling:NeW,previousElementSibling:$ew,childNodes:Cps}:{};Gis&&(tHr.parentNode=jbW);XCL&&(tHr.children=QB7);o2N&&(tHr.lastChild=eGr);AbL&&E2w(ZW3);LM8&&E2w(ENF);quN();var Ppn=function(O){this.node=O instanceof ShadowRoot?O.host:O};
cbi();IxW();var RGw=new WeakMap;var axN=Symbol("Ad");var zGi=new Set(["tap","track","down","up"]),rb$=_.t("pbcm_fi_query_decorators");var fL=function(){return _.MQ.apply(this,arguments)||this};
_.c(fL,_.MQ);_.b=fL.prototype;_.b.getState=function(){return this.store.getState()};
_.b.dispatch=function(O){this.store.dispatch(O)};
_.b.beforeRegister=function(){if(this&&typeof this==="object"){var O;var x=!!this.useSignals||!((O=this.polymerController)==null||!O.useSignals)}else x=!1;if(!x&&this.properties)for(x=_.T(Object.keys(this.properties)),O=x.next();!O.done;O=x.next()){var e=O.value;O=this.properties[e];if(O.selector){if(O.computed)throw Error("rg");e=["reduxPropertiesRecomputeTrigger",'"'+e+'"'].concat(_.Kx(O.selectorArgs||[])).join(",");O.computed="recomputeReduxSelector("+e+")"}}};
_.b.attached=function(){var O=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){O.reduxPropertiesRecomputeTrigger++}));
_.t("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.b.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.b.recomputeReduxSelector=function(O,x){var e=_.vw.apply(2,arguments),l=this.properties[x].selector;if(!l)throw Error("pg`"+x);return l.apply(null,[this.store.getState()].concat(_.Kx(e)))};
_.b.select=function(O){var x=_.vw.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return O.apply(null,[this.store.getState()].concat(_.Kx(x)))};
_.Dy.Object.defineProperties(fL.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("qg");}}});
fL.prototype.recomputeReduxSelector=fL.prototype.recomputeReduxSelector;_.B([_.R(),_.v("design:type",Number)],fL.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.B([_.DC()],fL);var Jd=[],n28={},IH=function(){return Fp.apply(this,arguments)||this};
_.c(IH,Fp);IH.prototype._addPropertyEffect=function(O,x,e){if(x==="__observeEffects"&&e){var l,C=(l=e.info.method)!=null?l:e.info.methodName;if(C){var Q=this[C];this[C]=function(){Jd.push(C);try{Q==null||Q.apply(this,arguments)}finally{Jd.pop()}}}}_.cP._addPropertyEffect.apply(this,[O,
x,e])};
IH.prototype._setPendingProperty=function(O,x,e){if(Jd.length){var l=Jd[Jd.length-1],C;(C=n28[this.is])!=null&&C.has(l)||(uAV(this.is,l),_.uU("polymerPropertyChangedInObserver",{componentName:this.is,observerName:l}))}return _.cP._setPendingProperty.apply(this,[O,x,e])};
_.B([Cfn()],IH);var Yur=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),v2m,X9={};_.t("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=X9);var ZC=function(){return _.MQ.apply(this,arguments)||this};
_.c(ZC,_.MQ);ZC.prototype._setUnmanagedPropertyToNode=function(O,x,e){O.loggingStatus&&(O.loggingStatus.isDeclarativeExternal=!0);if(e!==O[x]||typeof e==="object")O[x]=e;O.is&&O.polymerController&&O.polymerController!==O&&oH(O.is,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");O.loggingStatus&&(O.loggingStatus.isDeclarativeExternal=!1)};
_.B([_.DC()],ZC);BIN()&&(Ov.prototype._setUnmanagedPropertyToNode=(new ZC)._setUnmanagedPropertyToNode);_.Cqr={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(O){},set polymerController(O){}}]};var cZ=function(){var O=Fp.apply(this,arguments)||this;O.json=function(){};
return O};
_.c(cZ,Fp);cZ.prototype.equals=function(O,x){return O===x};
cZ.prototype.isEmpty=function(O){var x;(x=!O)||(x=_.vi(O)&&O.length===0);return x};
_.B([Cfn()],cZ);var tTT=function(O){O=lii(O);Bg.call(this,O)};
_.c(tTT,Bg);tTT.prototype.addProvider=function(O){O=O.key?O:lii([O])[0];var x=this.keyIdToIndex.get(O.key.id);if(x){if(jBL(O,this.providers[x]))throw Error("sg`"+O.key.displayName);}else Bg.prototype.addProvider.call(this,O)};
var qUF=new tTT([]);var P3D=!1;var xVL={};P3D||(OCs(),P3D=!0);
xVL.InjectBehavior={initializeInjection:function(){var O=this.provide;try{if((O=O!=null?O:[])&&O.length>0)for(var x=lii(O),e=_.T(x),l=e.next();!l.done;l=e.next())qUF.addProvider(l.value);var C=new Set;NIN(this.behaviors||[],C);x={};for(var Q=_.T(C),L=Q.next();!L.done;L=Q.next()){var k=L.value;k.inject&&Object.assign(x,k.inject)}this.inject&&Object.assign(x,this.inject);for(var M=_.T(Object.keys(x)),G=M.next();!G.done;G=M.next()){var X=G.value,y=x[X];try{this[X]=qUF.resolve(y)}catch(Z){throw Z;}}}catch(Z){throw Error(Z.message);
}}};var lh7;var QMw=/\bclass\b/.test(function(){}.toString()),LDi=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var c$2=function(O){this.wasDefined=!0;Array.isArray(O)||O instanceof Array?(this.JSC$13573_getImpl=O[0],this.JSC$13573_setImpl=O[1]):this.JSC$13573_getImpl=O};
_.b=c$2.prototype;_.b.getWithPath=function(O){return MXL(this.JSC$13573_getImpl(),O)};
_.b.setWithPath=function(O,x){var e=this;if(O.length)throw Error("tg");if(!this.JSC$13573_setImpl)throw Error("ug");mF(function(){e.JSC$13573_setImpl(x)})};
_.b.notifyPath=function(){throw Error("vg");};
_.b.notifySplices=function(){throw Error("wg");};
_.b.getChangeRecordSignal=function(O,x){var e=this;if(O.length)throw Error("xg");return function(){var l=e.getWithPath(O);return{path:x!=null?x:"",base:l,value:l}}};
_.b.getSplicesSignal=function(){throw Error("yg");};
_.b.getPathMutationSignal=function(){throw Error("zg");};
_.b.pop=function(){throw Error("Ag");};
_.b.push=function(){throw Error("Bg");};
_.b.splice=function(){throw Error("Cg");};
_.b.unshift=function(){throw Error("Dg");};var wH=function(O){var x=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(O)||O instanceof Array?(this.JSC$13578_getImpl=O[0],this.JSC$13578_setImpl=O[1]):this.JSC$13578_getImpl=O;this.wasDefined=!1;_.cL(function(){x.wasDefined=x.JSC$13578_getImpl()!==void 0})};
wH.prototype.getWithPath=function(O){return MXL(this.JSC$13578_getImpl(),O)};
wH.prototype.setWithPath=function(O,x){var e=this;if(O[O.length-1]!=="*"&&O[O.length-1]!=="splices"){var l=_.cL(function(){return e.getWithPath([])});
if(O.length===0){if(!this.JSC$13578_setImpl)throw Error("Eg");if(l===x)return;this.wasDefined||(this.wasDefined=x!==void 0);mF(function(){e.JSC$13578_setImpl(x)})}else{for(var C=0;C<O.length-1;C++){if(!l)return;
l=l[O[C]]}C=O[O.length-1];l&&(l[C]=x);this.wasDefined||(this.wasDefined=O.length>1||x!==void 0)}Ipz(this,O,{pathComponents:O,value:x})}};
wH.prototype.notifyPath=function(O,x){O.length===0?x&&this.setWithPath(O,x.value):Ipz(this,O,{pathComponents:O,value:x==null?void 0:x.value,fallbackWhenUndefined:x==null?void 0:x.value})};
var Ipz=function(O,x,e,l){if(O.setMutationSignal){var C=++O.mutationIndex,Q=[O.observedPath],L=O.observedPath,k;x.length===0&&(k=L);for(var M=0;M<x.length;M++){var G=L.subPaths[x[M]];if(!G)break;Q.push(G);L=G;M===x.length-1&&(k=G)}for(x=!1;Q.length;)L=Q.shift(),L.data={index:C,mutation:e,spliceMutationIndex:l},x||(x=L===k),x&&Q.push.apply(Q,_.Kx(Object.values(L.subPaths)));mF(function(){O.setMutationSignal(C)})}};
wH.prototype.notifySplices=function(O,x){var e=this,l=_.cL(function(){return e.getWithPath(O)}),C=[].concat(_.Kx(O),["splices"]);
Ipz(this,C,{pathComponents:C,value:{indexSplices:x}});if(l==null?0:l.length)x=this.mutationIndex,C=[].concat(_.Kx(O),["length"]),Ipz(this,C,{pathComponents:C,value:l.length},x)};
var VTz=function(O,x,e,l,C,Q){O.notifySplices(e,[{index:l,addedCount:C,removed:Q,object:x,type:"splice"}])},p3L=function(O,x){O=O.observedPath;
for(var e=0;e<x.length;e++){var l=x[e],C=O.subPaths[l];C||(C={pathComponents:x.slice(0,e+1),subPaths:{}},O.subPaths[l]=C);O=C}},U2k=function(O,x,e){p3L(O,x);
if(!O.getMutationSignal){var l=_.T(_.Iw(O.mutationIndex,void 0,"sNBMCd"));O.getMutationSignal=l.next().value;O.setMutationSignal=l.next().value}var C=O.getMutationSignal;return _.aw(function(){C();return e(Rvd(O,x))},void 0,"zvsXEd")};
wH.prototype.getChangeRecordSignal=function(O,x){var e=this,l=this.mutationIndex,C;return U2k(this,O,function(Q){if(Q&&Q.index>l){var L=Q.mutation;l=Q.index;C=void 0}Q=_.cL(function(){return e.getWithPath(O)});
if(L){var k=L.pathComponents[L.pathComponents.length-1],M=[].concat(_.Kx(L.pathComponents));if(k==="splices"||k==="length")return{base:Q,path:(x?[x].concat(_.Kx(M)):M).join("."),value:L.value};var G=O.length>M.length?O:M,X;return{base:Q!=null?Q:L.fallbackWhenUndefined,path:(x?[x].concat(_.Kx(G)):G).join("."),value:(X=_.cL(function(){return e.getWithPath(G)}))!=null?X:L.fallbackWhenUndefined}}C||(C={base:Q,
path:(x?[x].concat(_.Kx(O)):O).join("."),value:Q});return C})};
wH.prototype.getSplicesSignal=function(O){var x=this.mutationIndex,e;return U2k(this,O,function(l){if(l&&l.index>x&&l.spliceMutationIndex!==x){var C=l.mutation;x=l.index;e=void 0}return C&&C.pathComponents[C.pathComponents.length-1]==="splices"?e=l=C.value:e})};
wH.prototype.getPathMutationSignal=function(O){var x=this;p3L(this,O);if(!this.getMutationSignal){var e=_.T(_.Iw(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=e.next().value;this.setMutationSignal=e.next().value}var l=this.getMutationSignal,C=this.mutationIndex,Q;return _.aw(function(){l();var L=Rvd(x,O);if(L&&L.index>C&&L.mutation&&DV$(L.mutation.pathComponents,O)){var k=L.mutation;C=L.index}if(!Q||C!==Q.index){var M,G;L=(G=_.cL(function(){return x.getWithPath(O)}))!=null?G:(M=k)==null?
void 0:M.fallbackWhenUndefined;
Q={index:C,value:L}}return Q},void 0,"RXYC9b")};
var Rvd=function(O,x){O=O.observedPath;x=_.T(x);for(var e=x.next();!e.done;e=x.next())O=O.subPaths[e.value];return O.data};
wH.prototype.pop=function(O){var x=this,e=_.cL(function(){return x.getWithPath(O)});
if(!(e instanceof Array))throw Error("Fg");var l=e.length>0,C=e.pop();l&&VTz(this,e,O,e.length,0,[C]);return C};
wH.prototype.push=function(O){var x=_.vw.apply(1,arguments),e=this,l=_.cL(function(){return e.getWithPath(O)});
if(!(l instanceof Array))throw Error("Gg");var C=l.length,Q=l.push.apply(l,_.Kx(x));x.length&&VTz(this,l,O,C,x.length,[]);return Q};
wH.prototype.splice=function(O,x,e){var l=_.vw.apply(3,arguments),C=this,Q=_.cL(function(){return C.getWithPath(O)});
if(!(Q instanceof Array))throw Error("Hg");x<0?x=Q.length-Math.floor(-x):x&&(x=Math.floor(x));var L=Q.splice.apply(Q,[x,e].concat(_.Kx(l)));(l.length||L.length)&&VTz(this,Q,O,x,l.length,L);return L};
wH.prototype.unshift=function(O){var x=_.vw.apply(1,arguments),e=this,l=_.cL(function(){return e.getWithPath(O)});
if(!(l instanceof Array))throw Error("Ig");var C=l.unshift.apply(l,_.Kx(x));x.length&&VTz(this,l,O,0,x.length,[]);return C};var SG=function(O,x,e){this.model=O;this.unknownSignalResolver=x;this.options=e;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];x=_.T(qXL());O=x.next().value;x=x.next().value;this.owner=O;this.disposeImpl=x};
SG.prototype.dispose=function(){if(!this.isDisposed){for(var O=_.T(this.childSignalProxies),x=O.next();!x.done;x=O.next())x.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var apF=function(O,x){O=_.kO(O.owner);try{x()}finally{_.kO(O)}};
SG.prototype.effect=function(O){apF(this,function(){_.fe(O,"g")})};
var m2k=function(O,x){O.options!=null||(O.options={});var e;(e=O.options).immutableProps!=null||(e.immutableProps=new Set);O.options.immutableProps.add(x)},w47=function(O,x){x=""+x;
sWp(O,x);var e,l;if((e=O.options)==null?0:(l=e.immutableProps)==null?0:l.has(x))return!0;var C;if((C=O.model.__signalCache)==null?0:C.has(x))e=O.model.__signalCache.get(x),Array.isArray(e)&&m2k(O,x);var Q,L,k;return(k=(Q=O.options)==null?void 0:(L=Q.immutableProps)==null?void 0:L.has(x))!=null?k:!1},W2T=function(O,x){var e;
O.unknownSignalResolver&&(e=O.unknownSignalResolver(x));var l,C;((l=O.options)==null?0:(C=l.immutableProps)==null?0:C.has(x))?e!=null||(e=new c$2(_.Iw(O.model[x],void 0,"By5iP"))):e!=null||(e=new wH(_.Iw(O.model[x],void 0,"CXghNc")));var Q=O.model.hostElement;Object.defineProperty(O.model,x,{get:function(){Jbr(Q,x);return e.getWithPath([])},
set:function(L){ya(Q,x);O.setWithPath([x],L)},
configurable:!0});return e},sWp=function(O,x){var e,l,C;
((e=O.model.__signalCache)==null||!e.has(x))&&((l=O.options)==null?0:(C=l.externalSignalProps)==null?0:C.has(x))&&O.model[x]},Uw=function(O,x){x=""+x;
var e=O.signalCache[x];if(e!==void 0)return e;e=!1;sWp(O,x);var l;if((l=O.model.__signalCache)==null?0:l.has(x))if(e=O.model.__signalCache.get(x),Array.isArray(e))e=!0,m2k(O,x);else return O.signalCache[x]=O.model.__signalCache.get(x).signal,O.signalCache[x];var C,Q;l=(Q=(C=O.options)==null?void 0:C.reactivityMode)!=null?Q:0;var L,k;if(!((L=O.options)==null?0:(k=L.reactiveProps)==null?0:k.has(x))&&!e&&l===1)throw Error("Jg`"+x);C=e?hvN(O,x):W2T(O,x);return O.signalCache[x]=C},hvN=function(O,x){var e=
Object.getOwnPropertyDescriptor(O.model.constructor.prototype,x),l=function(){return O.model[x]};
return new c$2(e&&e.get&&!e.set?l:[l,function(C){O.model[x]=C}])};
SG.prototype.getWithPath=function(O){var x=_.T(O);O=x.next().value;x=bo(x);Jbr(this.model.hostElement,""+O);return Uw(this,O).getWithPath(x)};
SG.prototype.setWithPath=function(O,x){if(O.length){ya(this.model.hostElement,O.join("."));var e=_.T(O);O=e.next().value;e=bo(e);Uw(this,O).setWithPath(e,x)}};
SG.prototype.getPathMutationSignal=function(O){var x=_.T(O);O=x.next().value;x=bo(x);return Uw(this,O).getPathMutationSignal(x)};
SG.prototype.notifyPath=function(O,x){var e=_.T(O);O=e.next().value;e=bo(e);Uw(this,O).notifyPath(e,x)};
var zvd=function(O,x){if(x.type==="literal")return function(){return{rootWasDefined:!0,value:x.value}};
var e=ps(x.path),l=_.T(e),C=l.next().value;l=bo(l);var Q,L;if(x.type==="path"&&(e.length===1||((Q=O.options)==null?0:(L=Q.immutableProps)==null?0:L.has(C))))return function(){var y=O.getWithPath(e.slice(0,1));y=MXL(y,e.slice(1));return{rootWasDefined:Uw(O,e[0]).wasDefined,value:y}};
var k=Uw(O,C);if(x.type==="path"){var M=k.getPathMutationSignal(l);return function(){var y,Z=(y=M())==null?void 0:y.value;return{rootWasDefined:k.wasDefined,value:Z}}}if(x.type==="splices"){var G=k.getSplicesSignal(l);
return function(){var y=G();return{rootWasDefined:k.wasDefined,value:y}}}var X=k.getChangeRecordSignal(l,""+C);
return function(){var y=X();return{rootWasDefined:k.wasDefined,value:y}}},ZC8=function(O,x,e){var l=e.map(function(k){return zvd(O,k)}),C=e.length===0,Q=[],L=e.length!==1||e[0].type!=="path"?!1:!0;
O.effect(function(){for(var k=l.length,M=[],G=!!Q.length,X=0;X<k;X++){var y=l[X](),Z=y.rootWasDefined;y=y.value;C||(C=Z);M[X]=y;L&&(M[X+k]=G?Q[X]:M[X],Q[X]=y)}C&&J6(O.owner,function(){return void x.apply(null,_.Kx(M))})})},GbL=function(O,x,e,l,C){var Q=Uw(O,x);
C!==void 0&&Q.setWithPath([],C);ZC8(O,function(){var L=_.vw.apply(0,arguments);ya(O.model.hostElement,x,!0);Q.setWithPath([],e.apply(null,_.Kx(L)))},l)};
SG.prototype.arrayPush=function(O){var x=_.vw.apply(1,arguments),e=_.T(O),l=e.next().value;e=bo(e);l=Uw(this,l);return l.push.apply(l,[e].concat(_.Kx(x)))};
SG.prototype.arraySplice=function(O,x,e){var l=_.vw.apply(3,arguments),C=_.T(O),Q=C.next().value;C=bo(C);Q=Uw(this,Q);return Q.splice.apply(Q,[C,x,e].concat(_.Kx(l)))};
SG.prototype.arrayUnshift=function(O){var x=_.vw.apply(1,arguments),e=_.T(O),l=e.next().value;e=bo(e);l=Uw(this,l);return l.unshift.apply(l,[e].concat(_.Kx(x)))};
SG.prototype.notifySplices=function(O,x){var e=_.T(O);O=e.next().value;e=bo(e);Uw(this,O).notifySplices(e,x)};var r$F=!0,HW2=!1,Sy7=!1,K2$=!1,d24=0;K2$=!1;d24=0;r$F=!0;HW2=Sy7=!1;var Rgw=/([^\s]+?)\(([\s\S]*)\)/,IhL=/\.([^.]+)$/,ahW=/\\,/g,Pqr=/&comma;/g,cCL=/\\(.)/g,UVm=[],VXW={"*":"wildcard",splices:"splices"};var nBm=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"),rCL=/[A-Z]/,nNd=["class","hidden","id","on-dom-change"],YXs=new Set([].concat(_.Kx(nNd),
["if","notify-dom-change","restamp"])),B9r=new Set([].concat(_.Kx(nNd),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),vBW=new Set(["restamp"]);var vPN=new Set(["className","id"]);var jMr=Symbol(),ekV=window;var AQL=window;var yQn=0,GMV=0,aH=[],oHi=0,Dmm=!1,X0V=document.createTextNode("");(new window.MutationObserver(Fcr)).observe(X0V,{characterData:!0});var sw=new Map,mS=0,uS2=function(O){this.mappedHandleId=O},EHr=function(O,x,e,l){this.mappedHandleId=O;
var C=this;this.mappedHandleId=O;this.callback=x;this.waitTime=e;this.schedulerPriority=l;this.handleId=_.vn.addJob(function(){C.callback();sw.delete(C.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.c(EHr,uS2);EHr.prototype.cancel=function(){_.vn.cancelJob(this.handleId);sw.delete(this.mappedHandleId)};
var tzV=function(O,x){this.mappedHandleId=O;var e=this;this.mappedHandleId=O;this.callback=x;this.handleId=Zir(function(){e.callback();sw.delete(e.mappedHandleId)})};
_.c(tzV,uS2);tzV.prototype.cancel=function(){var O=this.handleId-GMV;O<0||aH.length<=O||(aH[O]=null);sw.delete(this.mappedHandleId)};var IbV=function(){};
IbV.prototype.cancel=function(){this.jobHandle!==void 0&&(qyN(this.jobHandle),this.jobHandle=void 0)};
IbV.prototype.run=function(O,x,e){var l=this;this.cancel();this.callback=O;this.jobHandle=_.WZ(function(){O();l.callback=void 0},x,e)};
IbV.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var PAs=new WeakMap;var YUR=g1(function(O){for(var x=O,e=0;e<3;e++)x=Object.getPrototypeOf(x);delete x.prototype.connectedCallback;var l=function(){return O.apply(this,arguments)||this};
_.c(l,O);l.prototype._attachDom=function(C){if(!C)return null;var Q=(0,_.eU)(this.hostElement);Q.attachShadow({mode:"open",shadyUpgradeFragment:C});Q.shadowRoot.appendChild(C);return Q.shadowRoot};
l.prototype._takeAttributes=function(){for(var C=this.hostElement.attributes,Q=0;Q<C.length;Q++){var L=C[Q],k=void 0,M=void 0;(M=(k=this).__attributeReaction)==null||M.call(k,L.name,null,L.value)}};
l.prototype._readyClients=function(){O.prototype._readyClients.call(this);this.root=this};
l.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);O.prototype.connectedCallback.call(this)};
_.Dy.Object.defineProperties(l,{template:{configurable:!0,enumerable:!0,get:function(){return l.prototype._template}}});
return l}),BWR=g1(function(O){var x=function(){return O.apply(this,arguments)||this};
_.c(x,O);x.prototype.created=function(){if(this.__notifyEffects)for(var e=_.T(Object.values(this.__notifyEffects)),l=e.next();!l.done;l=e.next()){l=_.T(l.value);for(var C=l.next();!C.done;C=l.next())C.value.fn=Umr}if(this.__reflectEffects)for(e=_.T(Object.values(this.__reflectEffects)),l=e.next();!l.done;l=e.next())for(l=_.T(l.value),C=l.next();!C.done;C=l.next())C.value.fn=abL};
x.prototype._addEventListenerToNode=function(e,l,C){e=z1(e);vD(e,l,C)||O.prototype._addEventListenerToNode.call(this,e,l,C)};
x.prototype._removeEventListenerFromNode=function(e,l,C){e=z1(e);fw(e,l,C)||O.prototype._removeEventListenerFromNode.call(this,e,l,C)};
x.prototype._propertiesChanged=function(e,l,C){if(this.__dataToNotify&&this.__notifyEffects)for(var Q=_.T(Object.keys(this.__dataToNotify)),L=Q.next();!L.done;L=Q.next()){L=L.value;var k=Rki(L);this.__notifyEffects[k]||delete this.__dataToNotify[L]}else this.__dataToNotify=null;O.prototype._propertiesChanged.call(this,e,l,C)};
x.prototype.fire=function(e,l,C){l=l===void 0?{}:l;var Q;return _.wr(z1((Q=C==null?void 0:C.node)!=null?Q:this),e,l,C)};
x.prototype._ensureAttribute=function(e,l){var C=z1(this);C.hasAttribute(e)||RH(C,l,e)};
x.prototype.isLightDescendant=function(e){var l=z1(this);return z1(l)!==e&&_.$U(l).contains(e)&&_.$U(l).getRootNode()===_.$U(e).getRootNode()};
return x});
_.I1.ready=function(){var O;((O=this.hostElement)!=null?O:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var x;((x=this.hostElement)!=null?x:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Wg._subscribeIronResize=function(O){var x;((x=O.hostElement)!=null?x:O).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Wg._unsubscribeIronResize=function(O){var x;((x=O.hostElement)!=null?x:O).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Wc7=[Array,Boolean,Date,Number,Object,String],HZ=function(O,x,e,l){this.polySiInfo=O;this.polySiParams=x;this.polySiContext=e;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;l||this instanceof HTMLElement&&(l=this);if(!l)throw Error("Qg");this.allowedProps=x.allowedProps;this.hostElement=l;this.is=O.is;this.upgradeDisabled=!!x.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");O=new Set(x.reactiveSchemas.filter(function(C){return C.type!==
"observe"}).map(function(C){return C.propertyKey}));
this.signalProxy=new SG(this,void 0,{reactiveProps:O,reactivityMode:x.reactivityMode});this.__dataHasAccessor={};x=_.T(x.reactiveSchemas);for(O=x.next();!O.done;O=x.next())O=O.value,O.type==="signal"&&(this.__dataHasAccessor[O.propertyKey]=!0);this.upgradeDisabled||vN2(this)};
HZ.prototype.getExtraMethodsToForward=function(){return[]};
var vN2=function(O){O.polySiContext.didRegister||(O.registered(),O.polySiContext.didRegister=!0);O.polySiContext.finalizedTemplate||(O.polySiContext.finalizedTemplate={},O.polySiParams.templateGetter&&(O.polySiContext.finalizedTemplate.processedTemplate=MzL(O.polySiParams.templateGetter,O.polySiParams.is)));fpJ(O);var x=O.hostElement;x.loggingStatus!=null||(x.loggingStatus={});x.loggingStatus.isInitializing=!0;_.cL(function(){return void O.created()});
x.loggingStatus.isInitializing=!1;O.isPolySiElementConnected&&J$$(O)},J$$=function(O){O.didCallReady||(_.cL(function(){return void O.ready()}),O.didCallReady=!0);
O.isAttached=!0;O.attached()};
_.b=HZ.prototype;_.b.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||J$$(this)};
_.b.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.b.attributeChangedCallback=function(O,x,e){if(this.upgradeDisabled)O==="disable-upgrade"&&e===null&&(this.upgradeDisabled=!1,vN2(this));else if(x!==e){var l=_.bh(O),C=this.polySiContext.typesForSignals[l];if(C&&(!this.reflecting||_.t("polysi_attribute_changed_serializing_killswitch"))){switch(C){case Object:try{var Q=JSON.parse(e)}catch(k){Q=e}break;case Array:try{Q=JSON.parse(e)}catch(k){Q=null}break;case Date:Q=isNaN(e)?String(e):Number(e);Q=new Date(Q);break;case Boolean:Q=e!==null;break;case Number:Q=
Number(e);break;default:Q=e}this[l]=Q}l=_.T(this.polySiParams.behaviors);for(C=l.next();!C.done;C=l.next())Q=void 0,(Q=C.value.attributeChanged)==null||Q.call(this,O,x,e);var L;(L=this.attributeChanged)==null||L.call(this,O,x,e)}};
_.b.attributeChangedCallbackWrapper=function(O,x,e){this.attributeChangedCallback(O,x,e)};
_.b.setPropertiesFromInitialAttributeValues=function(){for(var O=0;O<this.hostElement.attributes.length;O++){var x=this.hostElement.attributes[O];(x.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(x.name))&&this.attributeChangedCallback(x.name,null,x.value)}};
_.b.created=function(){this.provide=this.polySiParams.provide;var O;(O=this.initializeInjection)==null||O.call(this);O=_.T(this.polySiParams.reactiveSchemas);for(var x=O.next();!x.done;x=O.next())x=x.value,x.type==="signal"&&(this.mutablePropNames.add(x.propertyKey),Uw(this.signalProxy,x.propertyKey));sk8(this,this.polySiInfo,this.polySiParams.behaviors);O=_.T(this.polySiParams.reactiveSchemas);for(x=O.next();!x.done;x=O.next())x=x.value,x.type==="signal"&&x.value!==void 0&&(this.signalProxy.model[x.propertyKey]=
typeof x.value==="function"?x.value.call(this):x.value);if(this.polySiParams.signalProperties)for(O=_.T(this.polySiParams.signalProperties),x=O.next();!x.done;x=O.next()){x=x.value;var e=void 0;((e=this.__signalCache)==null?0:e.has(x))||(this.signalProxy.model[x]=void 0)}K2$||w3k(this);mmw(this);O=_.T(this.polySiParams.behaviors);for(x=O.next();!x.done;x=O.next())e=void 0,(e=x.value.created)==null||e.call(this);var l;(l=this.polySiInfo.created)==null||l.call(this)};
_.b.registered=function(){var O=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var x=Object.getPrototypeOf(this);x.addReactiveSchema=function(k){O.polySiParams.reactiveSchemas.push(k)};
for(var e=_.T(this.polySiParams.behaviors),l=e.next();!l.done;l=e.next()){var C=void 0;(C=l.value.beforeRegister)==null||C.call(x)}var Q;(Q=this.polySiInfo.beforeRegister)==null||Q.call(x);x.addReactiveSchema=zkw;e=_.T(this.polySiParams.behaviors);for(l=e.next();!l.done;l=e.next())C=void 0,(C=l.value.registered)==null||C.call(x);var L;(L=this.polySiInfo.registered)==null||L.call(x)};
_.b.ready=function(){var O;(O=this.beforeReady)==null||O.call(this);K2$&&w3k(this);var x;if(O=(x=this.polySiContext.finalizedTemplate)==null?void 0:x.processedTemplate){O=kMs(O.template,O.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:O.hasInsertionPoint,thisCtx:this});x=O.nodesById;O=O.root;var e=this.hostElement;var l=l===void 0?!1:l;e=(0,_.eU)(e);if(!e.attachShadow)throw Error("Gd");if(!e.shadowRoot||l)e.attachShadow({mode:"open",shadyUpgradeFragment:O}),e.shadowRoot.appendChild(O);
this.root=e.shadowRoot;this.$=x}SUz(this);l=_.T(this.polySiParams.behaviors);for(x=l.next();!x.done;x=l.next())O=void 0,(O=x.value.ready)==null||O.call(this);var C;(C=this.polySiInfo.ready)==null||C.call(this)};
_.b.attached=function(){for(var O=_.T(this.polySiParams.behaviors),x=O.next();!x.done;x=O.next()){var e=void 0;(e=x.value.attached)==null||e.call(this)}var l;(l=this.polySiInfo.attached)==null||l.call(this)};
_.b.detached=function(){for(var O=_.T(this.polySiParams.behaviors),x=O.next();!x.done;x=O.next()){var e=void 0;(e=x.value.detached)==null||e.call(this)}var l;(l=this.polySiInfo.detached)==null||l.call(this)};
var fpJ=function(O){for(var x=_.T(O.polySiParams.behaviors),e=x.next();!e.done;e=x.next())if(e=e.value,e.listeners)for(var l in e.listeners)LcV(O,O.hostElement,l,e.listeners[l]);if(O.polySiInfo.listeners)for(var C in O.polySiInfo.listeners)LcV(O,O.hostElement,C,O.polySiInfo.listeners[C])},LcV=function(O,x,e,l,C){O=ACw(O,l,C);
vD(x,e,O)||x.addEventListener(e,O);return O},w3k=function(O){for(var x=_.T(O.polySiParams.reactiveSchemas),e=x.next();!e.done;e=x.next())e=e.value,e.type==="compute"||e.type==="computeWithMethod"?FDr(O.signalProxy,e,O):e.type==="redux"?yCr(O.signalProxy,e,O.store):e.type==="signal"&&e.readOnly&&oB7(O.signalProxy,e)},SUz=function(O){for(var x=_.T(O.polySiParams.reactiveSchemas),e=x.next(),l={};!e.done;l={schema$jscomp$12:void 0},e=x.next())l.schema$jscomp$12=e.value,l.schema$jscomp$12.type==="notify"?
EBm(O.signalProxy,l.schema$jscomp$12,O.hostElement):l.schema$jscomp$12.type==="observe"?tXw(O.signalProxy,l.schema$jscomp$12,O):l.schema$jscomp$12.type==="reflect"&&O.signalProxy.effect(function(Q){return function(){var L=O.signalProxy.getWithPath([Q.schema$jscomp$12.propertyKey]);
O.reflecting=!0;sMW(O.hostElement,Q.schema$jscomp$12.propertyKey,L,!0);O.reflecting=!1}}(l));
if(O.reflectedAttributes)for(x=_.T(Object.entries(O.reflectedAttributes)),l=x.next(),e={};!l.done;e={key$jscomp$939:void 0,value$jscomp$9908:void 0},l=x.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;e.key$jscomp$939=l;e.value$jscomp$9908=C;O.signalProxy.effect(function(Q){return function(){O.reflecting=!0;sMW(O.hostElement,Q.key$jscomp$939,(0,Q.value$jscomp$9908)(),!0);O.reflecting=!1}}(e))}};
_.b=HZ.prototype;_.b._setPendingProperty=function(O,x){this.set(O,x);return!1};
_.b._enableProperties=function(){};
_.b._setPendingPropertyOrPath=function(O,x){this.notifyPath(O,x);return!1};
_.b._addPropertyEffect=function(){};
_.b._stampTemplate=function(){throw Error("Rg");};
_.b.fire=function(O,x,e){x=x===void 0?{}:x;e=e===void 0?{}:e;var l,C,Q={bubbles:(l=e.bubbles)!=null?l:!0,cancelable:!!e.cancelable,composed:(C=e.composed)!=null?C:!0},L;return _.wr(rQw((L=e.node)!=null?L:this.hostElement),O,x,Q)};
_.b.get=function(O,x){var e=ps(O);return x?MXL(x,e):O==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(e)};
_.b.linkPaths=function(){};
_.b.listen=function(O,x,e){O=rQw(O);this.boundListeners!=null||(this.boundListeners=new WeakMap);var l=this.boundListeners.get(O);l||(l={},this.boundListeners.set(O,l));var C=x+e;l[C]||(l[C]=LcV(this,O,x,e))};
_.b.notifyPath=function(O,x){this.signalProxy.notifyPath(ps(O),arguments.length===2?{value:x}:void 0)};
_.b.canNotifyPath=function(O){return this.mutablePropNames.has(O)&&!w47(this.signalProxy,O)};
_.b.notifySplices=function(O,x){this.signalProxy.notifySplices(ps(O),x)};
_.b.pop=function(O){var x=this.signalProxy;O=ps(O);var e=_.T(O);O=e.next().value;e=bo(e);return Uw(x,O).pop(e)};
_.b.push=function(O){var x=_.vw.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[ps(O)].concat(_.Kx(x)))};
_.b.set=function(O,x,e){if(e)throw Error("Sg");O==="hidden"?this.hostElement.hidden=!!x:this.signalProxy.setWithPath(ps(O),x)};
_.b.setProperties=function(O){O=_.T(Object.entries(O));for(var x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;e=e.next().value;this[x]=e}};
_.b.splice=function(O,x,e){var l=_.vw.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[ps(O),x,e].concat(_.Kx(l)))};
_.b.unlinkPaths=function(){};
_.b.unlisten=function(O,x,e){O=rQw(O);if(this.boundListeners){var l=this.boundListeners.get(O);if(l){e=x+e;var C=l[e];C&&(fw(O,x,C)||O.removeEventListener(x,C),delete l[e])}}};
_.b.unshift=function(O){var x=_.vw.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[ps(O)].concat(_.Kx(x)))};
_.Dy.Object.defineProperties(HZ.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 w0r=[Array,Boolean,Date,Number,Object,String];var NE7=!1;var jG=function(){var O=HTMLElement.apply(this,arguments)||this;O.restamp=!1;O.notifyDomChange=!1;O.JSC$13686_didCallConnected=!1;O.JSC$13686_renderDebouncer=null;O.disableTemplateUpdateSignalImpl=Ks()?void 0:_.Iw(!1,void 0,"Ofhkwb");var x;O.getDisableTemplateUpdate=(x=O.disableTemplateUpdateSignalImpl)==null?void 0:x[0];var e;O.setDisableTemplateUpdate=(e=O.disableTemplateUpdateSignalImpl)==null?void 0:e[1];return O};
_.c(jG,HTMLElement);var jW3=function(O){O.conditionSignalImpl!=null||(O.conditionSignalImpl=new wH(_.Iw(!1,void 0,"gE52Fb")));return O.conditionSignalImpl};
_.b=jG.prototype;_.b.showHideChildren=function(O){NW4(this,O,this.if)};
_.b.attributeChangedCallback=function(O,x,e){if(this.JSC$13686_didCallConnected)throw Error("Wg`"+O);O==="notify-dom-change"?this.notifyDomChange=e!==null:O==="restamp"&&(this.restamp=e!==null)};
_.b.debounceRender=function(){this.JSC$13686_renderDebouncer=_.Lp(this.JSC$13686_renderDebouncer,j2,this.JSC$13686_renderImpl.bind(this));_.kh(this.JSC$13686_renderDebouncer)};
_.b.disconnectedCallback=function(){var O=(0,_.eU)(this).parentNode;(!O||O.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in O&&!O.host)&&gNN(this)};
_.b.connectedCallback=function(){var O=this;this.JSC$13686_didCallConnected=!0;r$F?gHV():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.t("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){jW3(O).getWithPath([]);O.debounceRender()})};
_.b.render=function(){_.Gy()};
_.b.JSC$13686_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var O=this.if,x=!1;if(O){this.hasInstance()||($2J(this),x=!0);a:{var e=(0,_.eU)(this).parentNode;if(this.hasInstance()){var l=this.instance.children;if((l==null?0:l.length)&&(0,_.eU)(this).previousSibling!==l[l.length-1])for(var C=0;C<l.length;C++)(0,_.eU)(e).insertBefore(l[C],this)}else{if(!e){e=!1;break a}iW3(this,e)}e=!0}if(!e)return}else this.restamp&&gNN(this);NW4(this,!1,O);O&&!x&&$2J(this);HW2&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.b.hasInstance=function(){return!!this.instance};
var iW3=function(O,x){var e=O.parentSignalProxy;if(Ks()){var l=_.T(_.Iw(!0,void 0,"dkzufd"));var C=l.next().value;l=l.next().value;e=O.parentSignalProxy}else{var Q;var L=new SG((Q=O9R(O))!=null?Q:{},function(M){var G=Uw(O.parentSignalProxy,M).getChangeRecordSignal([]);M=_.Iw(void 0,void 0,"iG8Uwe");var X=new wH(M);L.effect(function(){if(O.getDisableTemplateUpdate&&!O.getDisableTemplateUpdate()){var y=G();X.notifyPath(ps(y.path),{value:y.value})}});
return X});
O.parentSignalProxy.childSignalProxies.push(L);var k=e=L}e=kMs(O.templateInfo,O.templateInfo.nodeInfoList,e,{eventListenerHost:O.eventListenerHost,hasInsertionPoint:O.templateInfo.hasInsertionPoint,thisCtx:O.eventListenerHost,enabledSignal:Ks()?C:void 0,getModel:function(){return O9R(O)}}).root;
O.instance={root:e,children:[],hidden:!1,signalProxy:k,getTemplateUpdatesEnabled:C,setTemplateUpdatesEnabled:l};k=_.T(e.childNodes);for(C=k.next();!C.done;C=k.next())O.instance.children.push(C.value);(0,_.eU)(x).insertBefore(O.instance.root,O)},O9R=function(O){if((O=O.parentSignalProxy.model)&&!O.hostElement){var x={},e;
for(e in O)O.hasOwnProperty(e)&&(x[e]=O[e]);return x}},gNN=function(O){if(O.instance){var x=O.instance.children;
if(x.length){var e=(0,_.eU)(x[0]).parentNode;if(e){e=(0,_.eU)(e);for(var l=0;l<x.length;l++)e.removeChild(x[l])}}Ks()?O.instance.setTemplateUpdatesEnabled(!1):O.instance.signalProxy.dispose();O.instance=void 0}},NW4=function(O,x,e){x=x||!e;
O.instance&&O.instance.hidden!==x&&(O.instance.hidden=x,jkr(x,O.instance.children))},$2J=function(O){if(Ks()){var x=O.instance;
x&&J6(O.parentSignalProxy.owner,function(){return!x.getTemplateUpdatesEnabled()})&&x.setTemplateUpdatesEnabled(!0)}else O.setDisableTemplateUpdate(!1)};
_.Dy.Object.defineProperties(jG.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var O=this;return J6(this.parentSignalProxy.owner,function(){return jW3(O).getWithPath([])})},
set:function(O){O||(Ks()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));jW3(this).setWithPath([],!!O)}}});
_.Dy.Object.defineProperties(jG,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",jG);var xv$=[],Nn=function(){var O=HTMLElement.apply(this,arguments)||this;O.as="item";O.indexAs="index";O.itemsIndexAs="itemsIndex";O.targetFramerate=20;O.notifyDomChange=!1;O.isDetached=!1;O.JSC$13693_renderDebouncer=null;O.instances=[];O.chunkingId=null;O.chunkCount=null;O.shouldMeasureChunk=!1;O.shouldContinueChunking=!1;O.renderStartTime=null;O.JSC$13693_didCallConnected=!1;return O};
_.c(Nn,HTMLElement);var elR=function(O){O.itemSignalImpl!=null||(O.itemSignalImpl=new wH(_.Iw(xv$,void 0,"YBrqgf")));return O.itemSignalImpl},lJd=function(O,x){Array.isArray(x)||(x=xv$);
elR(O).setWithPath([],x)};
_.b=Nn.prototype;_.b.showHideChildren=function(O){for(var x=_.T(this.instances),e=x.next();!e.done;e=x.next())jkr(O,e.value.children)};
_.b.notifyPath=function(O,x){O=ps(O);O[0]==="items"&&(O.length===1?lJd(this,x):elR(this).setWithPath(O.slice(1),x))};
_.b.canNotifyPath=function(O){return O==="items"};
_.b.attributeChangedCallback=function(O,x,e){if(this.JSC$13693_didCallConnected)throw Error("Xg`"+O);O==="as"?this.as=e:O==="index-as"?this.indexAs=e:O==="items-index-as"?this.itemsIndexAs=e:O==="initial-count"?this.initialCount=Number(e):O==="notify-dom-change"?this.notifyDomChange=e!==null:O==="target-framerate"&&(this.targetFramerate=Number(e))};
_.b.disconnectedCallback=function(){this.isDetached=!0;for(var O=0;O<this.instances.length;O++)CJJ(this,O);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.b.connectedCallback=function(){var O=this,x=elR(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var C=x(),Q=ps(C.path);if(Q[0]===void 0||Q[0]==="splices"||Q[0]==="length")O.debounceRender();else{var L=Q[0];if(L=O.instances[typeof L==="string"?Math.floor(Number(L)):L])Q=[O.as].concat(_.Kx(Q.slice(1))),L.signalProxy.notifyPath(Q,C)}});
this.JSC$13693_didCallConnected=!0;r$F?gHV():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var e=(0,_.eU)((0,_.eU)(this).parentNode),l=0;l<this.instances.length;l++)e.insertBefore(this.instances[l].root,this);this.chunkingId&&this.render()}};
_.b.debounceRender=function(){this.JSC$13693_renderDebouncer=_.Lp(this.JSC$13693_renderDebouncer,j2,this.JSC$13693_renderImpl.bind(this));_.kh(this.JSC$13693_renderDebouncer)};
_.b.render=function(){this.debounceRender();_.Gy()};
_.b.JSC$13693_renderImpl=function(){var O=this;if(!this.parentSignalProxy.isDisposed){var x=this.items,e=Qcp(this,x.length);b9d(this,x,e);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){O.chunkingId=null;if(O.shouldMeasureChunk){var l=performance.now()-O.renderStartTime;O.chunkCount=Math.round(Math.ceil(1E3/O.targetFramerate)/l*O.chunkCount)||1}O.shouldContinueChunking&&O.debounceRender()}));
HW2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Qcp=function(O,x){var e=x,l=O.instances.length;if(O.initialCount){if(O.chunkCount){var C=Math.min(Math.max(x-l,0),O.chunkCount);e=Math.min(l+C,x)}else e=Math.min(x,O.initialCount),C=Math.max(e-l,0),O.chunkCount=C||1;O.shouldMeasureChunk=C===O.chunkCount;O.shouldContinueChunking=e<x;O.renderStartTime=performance.now()}return e},b9d=function(O,x,e){for(var l=0;l<e;l++){var C=O.instances[l],Q=x[l];
C?(C.signalProxy.setWithPath([O.as],Q),C.signalProxy.setWithPath([O.indexAs],l)):T0$(O,Q,l)}for(x=O.instances.length-1;x>=l;x--)e=O,C=x,CJJ(e,C),_.T(e.instances.splice(C,1)).next().value.signalProxy.dispose()},CJJ=function(O,x){O=O.instances[x];
x=(0,_.eU)(O.root);for(var e=0;e<O.children.length;e++)x.appendChild(O.children[e])},T0$=function(O,x,e){var l={};
x=Object.assign({},LfF(O),(l[O.as]=x,l[O.indexAs]=e,l[O.itemsIndexAs]=e,l));var C=new SG(x,function(L){if(L!==O.as&&L!==O.indexAs){if(L===O.itemsIndexAs)return Uw(C,O.indexAs);var k=Uw(O.parentSignalProxy,L).getChangeRecordSignal([]);L=_.Iw(void 0,void 0,"T21Pqc");var M=new wH(L);C.effect(function(){var G=k();M.notifyPath(ps(G.path),{value:G.value})});
return M}});
O.parentSignalProxy.childSignalProxies.push(C);l=kMs(O.templateInfo,O.templateInfo.nodeInfoList,C,{eventListenerHost:O.eventListenerHost,getModel:function(){var L={};return Object.assign({},LfF(O),(L[O.as]=C.model[O.as],L[O.indexAs]=C.model[O.indexAs],L[O.itemsIndexAs]=C.model[O.indexAs],L))},
hasInsertionPoint:O.templateInfo.hasInsertionPoint,thisCtx:O.eventListenerHost,methodInvocationRequirement:d24,enabledSignal:O.stampingEnabled}).root;x={root:l,children:[],signalProxy:C};l=_.T(l.childNodes);for(var Q=l.next();!Q.done;Q=l.next())x.children.push(Q.value);l=(l=O.instances[e+1])?l.children[0]:O;(0,_.eU)((0,_.eU)(O).parentNode).insertBefore(x.root,l);O.instances[e]=x},LfF=function(O){if((O=O.parentSignalProxy.model)&&!O.hostElement){var x={},e;
for(e in O)O.hasOwnProperty(e)&&(x[e]=O[e]);return x}};
Nn.prototype.itemForElement=function(O){var x=this,e=this.instances.find(function(l){return l.children.includes(O)});
if(e)return J6(this.parentSignalProxy.owner,function(){return e.signalProxy.getWithPath([x.as])})};
Nn.prototype.indexForElement=function(O){var x=this.instances.findIndex(function(e){return e.children.includes(O)});
return x>=0?x:void 0};
_.Dy.Object.defineProperties(Nn.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var O=this;return J6(this.parentSignalProxy.owner,function(){return elR(O).getWithPath([])})},
set:function(O){lJd(this,O)}},
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}}});
_.Dy.Object.defineProperties(Nn,{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",Nn);var kI2,A4F;_.gH=new _.iR("STATE_STORE_TOKEN");kI2=new _.iR("SELECT_TOKEN");A4F=new _.iR("DISPATCH_TOKEN");var lYr={getSelectFn:function(){var O;return(O=_.GG().resolve(_.D0(kI2)))!=null?O:$mn},
getDispatchFn:function(){var O;return(O=_.GG().resolve(_.D0(A4F)))!=null?O:_.dq().dispatch.bind(_.dq())},
getAppStore:function(){return _.GG().resolve(_.gH)}},iir,eKs=!1;var TUw,UrT={traceAllComponents:_.t("web_tracing_all_components"),exportToCsi:_.t("web_tracing_export_to_csi"),exportBreadcrumbs:_.t("web_enable_tracing"),bufferSize:_.yF("web_max_tracing_events"),enabledSpansArray:_.EC("web_tracing_enabled_spans"),exportToDevTools:_.t("web_tracing_export_to_devtools"),sessionReplayEvents:_.yF("web_tracing_session_replay")};TUw=new axR;var Dtm=function(){};var ker=void 0;var MAL=function(){};
MAL.prototype.hasAttribute=function(O){if(O==="dir")return!1;if(O==="disable-upgrade"){var x,e;return(e=(x=this.hostElement)==null?void 0:x.hasAttribute("disable-upgrade"))!=null?e:!1}throw Error("Yg`"+O);};
MAL.prototype.attributeChangedCallbackWrapper=function(O,x,e){if(O==="disable-upgrade"&&this.__isUpgradeDisabled&&e===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var l;((l=this.hostElement)!=null?l:this).isConnected&&this.connectedCallback()}else x===e||this.__isReflecting||this.attributeChangedCallback(O,x,e)};
MAL.prototype.getExtraMethodsToForward=function(){for(var O=this,x=[],e=_.T(DvJ),l=e.next(),C={};!l.done;C={tagName$jscomp$67:void 0,name$jscomp$628:void 0},l=e.next())C.name$jscomp$628=l.value,l=void 0,C.name$jscomp$628==="_setPendingProperty"?(C.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),l=function(Q){return function(L,k,M){oH(Q.tagName$jscomp$67,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return O._setPendingProperty(L,k,M)}}(C)):l=function(Q){return function(){return O[Q.name$jscomp$628].apply(O,
_.Kx(_.vw.apply(0,arguments)))}}(C),x.push([C.name$jscomp$628,
l]);return x};
for(var Xpr=BWR(YUR((0,_.PP)(MAL))),EPm=["disabled","disable-upgrade"],GIz=(0,_.PP)(function(){}),Ffz=new Set(Object.getOwnPropertyNames(GIz.prototype)),IYL=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Kx(Ffz))),qtr=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),DvJ=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),XlT=new Set([].concat(_.Kx(qtr),_.Kx(DvJ),_.Kx(Ffz))),oe2=_.T(XlT),y4d=oe2.next();!y4d.done;y4d=oe2.next())Yur.add(y4d.value);var cyi={created:function(){mmw(this);this.initializeInjection()}};var hK7=!1,wq=window.ShadyDOM,Yt7=["appendChild","insertBefore","removeChild","replaceChild"],u3r=[Node];wq&&u3r.push(wq.Wrapper);var jYn,NUw,iKw={};var SU,jU=new Set;var TWW=new Set("context didCallReady is info params signalProxy".split(" ")),kEL="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),A$$="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Z93=mN({entities:gjn}),EeJ=new nA(Z93);var tAz=function(){return _.MQ.apply(this,arguments)||this};
_.c(tAz,_.MQ);_.Dy.Object.defineProperties(tAz.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return EeJ}}});
_.B([_.DC()],tAz);_.$q=[fL.prototype,tAz.prototype];_.iX={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var O=this,x={};setTimeout(function(){var e;return _.wr((e=O.hostElement)!=null?e:O,"yt-live-chat-add-tooltip-target",x)},0);
this.handler_=x.handler},
detached:function(){if(this.handler_){var O;this.handler_.removeElementFromSupportingTooltips((O=this.hostElement)!=null?O:this)}this.handler_=null}}};_.ef=new _.iR("ICON_MANAGER_TOKEN");var qW$=[48,20,18,16,15,13,12],W28=new Map,p3s=new Set,c$V=new Set,VTm=new Set,P3n=new Set,Ipm=new Set,U2$=new Promise(function(O){var x=!1,e=!1,l=!1,C=[],Q=function(L){if("detail"in L)if(L=L.detail,L.name==="yt-icons")Rvi(L),x=!0;else if(L.name==="yt-sys-icons")Rvi(L),e=!0;else{var k;((k=L.name)==null?0:k.includes("yt-sys-icons"))&&L.size!==24&&(Rvi(L,!0),C.push(L.size),C.length===qW$.length&&(l=!0))}x&&e&&l&&(window.removeEventListener("iron-iconset-added",Q),O())};
window.addEventListener("iron-iconset-added",Q)}),m2$=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"]]);_.OJ={};_.OJ.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.db,computeHref_:function(O,x){x=x===void 0?!1:x;if(!O||O.commandExecutorCommand)return null;var e=GAL(O,x);return x||e!==null?e?_.t("enable_polymer_resin")?_.Yy(e).toString():e:null:(_.ft(new _.ry("computeHref was null",this.is,O)),null)},
computeOptionalHref_:function(O){return this.computeHref_(O,!0)},
computeNofollow_:function(O){return O?Cww(O)?"nofollow":null:null},
computeIcon_:function(O){return O&&O.iconType?_.x0(O.iconType):""},
resolveCommand:function(O,x,e){x=x===void 0?{}:x;return _.C_(O,this.hostElement,x,e===void 0?!1:e)}};var c4$,xa;_.PJL={};c4$=null;
xa={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_=RX7(this.viewroot));_.WZ(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var O=this;this.unobserve_();if(_.t("kevlar_vimio_use_shared_monitor"))K2w(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 x=[];this.visibilityOptionVisible_&&x.push(this.visibilityObserver.observe(this.hostElement,function(){return O.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&x.push(this.visibilityObserver.observe(this.hostElement,function(){return O.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&x.push(this.visibilityObserver.observe(this.hostElement,function(){return O.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=x}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){hv7(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 O=_.fu(this.parentNode,function(e){var l,C=(l=e.polymerController)!=null?l:e;return!!C.getVisibilityObserverForChild&&C.getVisibilityObserverForChild()},!0);
if(O){var x;this.localVisibilityObserver_=((x=O.polymerController)!=null?x:O).getVisibilityObserverForChild()}else c4$||(c4$=RX7()),this.localVisibilityObserver_=c4$;return this.localVisibilityObserver_},visibilityCallback:function(O){O?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.t("kevlar_use_vimio_behavior")||(xa={});xa&&!_.t("kevlar_use_vimio_behavior")&&(delete xa.attached,delete xa.detached);_.PJL.YtVisibilityObserverBehavior=[xa];var IJ$={};IJ$.YtVisualElementBehavior=[_.PJL.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.t("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.t("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var O=this.getScreenLayer&&this.getScreenLayer(),x=this.getVisibilityLogger();x&&x.reportShown(this,void 0,O)}},
onHidden:function(){if(_.t("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.t("kevlar_vimio_use_shared_monitor")){var O=this.getScreenLayer&&this.getScreenLayer(),x=this.getVisibilityLogger();x&&x.reportHidden(this,void 0,O)}},
getVisibilityLogger:function(){return _.t("kevlar_use_vimio_behavior")?_.TO():null},
shouldSkipLogging:function(){if(_.wz("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var O=this.getParentRenderer&&this.getParentRenderer();if(!O)return!1;var x,e=(x=O.polymerController)!=null?x:O;if(!e.data)return!1;O=this.data.trackingParams;O=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:O;var l;x=(l=e.data)==null?void 0:l.trackingParams;var C,Q;x=((C=e.data)==null?0:C.loggingDirectives)?(Q=e.data)==null?void 0:Q.loggingDirectives.trackingParams:x;return O&&x&&O===
x}}];var uSV=new Map,Xv;var UHs=function(O){this.layer=O},xQ=function(O){return O.layer!==void 0?O.layer:O.parent?xQ(O.parent):O.layer=0};var w3$;_.S={};w3$=0;_.S.YtRendererBehavior=[_.OJ.YtComponentBehavior,IJ$.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_:_.t("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var O,x;(x=(O=this.monitorScrollElement)!=null?O:this.hostElement)==null||x.removeEventListener("scroll",_.Qa(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();d2r(this.hostElement);ryz(_.KL(),this.hostElement);u_.delete(this.hostElement)},
registerRenderer:function(O){var x;((x=O.polymerController)!=null?x:O).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(O),this.markDirty())},
unregisterRenderer_:function(O){this.useVimio_||(this.childCache_.delete(O),this.markDirty())},
attached:function(){var O=this,x=this.getParentRenderer();if(x){var e,l,C;(l=(e=(C=x.polymerController)!=null?C:x).registerRenderer)==null||l.call(e,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var Q,L;(L=(Q=this.monitorScrollElement)!=null?Q:this.hostElement)==null||L.addEventListener("scroll",_.Qa(this,this.onScroll))}_.vn.addJob(function(){YUN(O.hostElement)},8);
e=new UHs(this.screenLayer||void 0);(x=u_.get(x))&&x.layerNode&&(e.parent=x.layerNode);x={};Eji(this.hostElement,(x.isRenderer=!0,x.layerNode=e,x[a4N]=this.data,x))},
getParentRenderer:function(){for(var O=this.hostElement.parentNode,x,e;O&&((x=u_.get(O))==null||!x.isRenderer)&&!((e=O.polymerController)!=null?e:O).isRenderer_;)O=O.parentNode||O.host;return O},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.t("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.SS("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.t("debug_web_ve_data")&&this.data.trackingParams){var O="";try{O=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(e){_.BH(e)}if(O){var x=mgr(O,1);x!==void 0&&(this.hostElement.dataset.veIndex=String(x));O=mgr(O,2);
O!==void 0&&(this.hostElement.dataset.ve=String(O))}}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,_.t("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Fv(this.data.loggingDirectives.trackingParams)),this.visualElement=_.L_(_.k0(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var O=this.data.targetId;_.KUz(_.KL(),O,this.hostElement)}else ryz(_.KL(),this.hostElement)},
onScroll:function(){var O=Date.now();O-this.lastHandledScroll_<50||(this.lastHandledScroll_=O,this.markDirty())},
markDirty:function(){_.t("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():SUm(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var O=this.getParentRenderer();if(O&&(O=u_.get(O))&&O.layerNode)return xQ(O.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Kx(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var O=0;O<this.data.impressionEndpoints.length;O++)this.sendImpression(this.data.impressionEndpoints[O]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(O){O.clickTrackingParams&&delete O.clickTrackingParams;var x,e;(O==null?0:(x=O.commandMetadata)==null?0:(e=x.webCommandMetadata)==null?0:e.sendPost)?_.N9(this.hostElement,[O,{impression:!0}]):_.gr(this.hostElement,[O],this.hostElement)},
logExplicitClick:function(O){var x=_.Pq(this.getScreenLayer());if(x){var e,l=(e=O.polymerController)!=null?e:O;O=l.visualElement;l=l.trackingParams||l.clickTrackingParams;!O&&l&&(O=_.Fv(l));O&&_.KZ(x,O)}}}];var VA3={},eO=function(){return _.MQ.apply(this,arguments)||this};
_.c(eO,_.MQ);eO.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
eO.prototype.onPdgItemBehaviorClick=eO.prototype.onPdgItemBehaviorClick;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eO.prototype,"data",void 0);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],eO.prototype,"onPdgItemBehaviorClick",null);_.B([_.DC()],eO);VA3.YtPdgLiveChatItemBehavior=[eO.prototype,_.S.YtRendererBehavior];var plk;var RlJ;_.l4={};_.l4.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Cd=function(){var O=Fp.apply(this,arguments)||this;O.switchTemplateAtRegistration=!1;return O};
_.c(Cd,Fp);Cd.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||$2L(this),_.VzL(this,"doRender"),this.doRender())};
Cd.prototype.debounceRender=function(){this.templatingFn&&_.hY(this,"doRender",this.doRender)};
Cd.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.BH(Error("hh"))};
Cd.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.B([Cfn()],Cd);var Uvd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Qt={},elN=(Qt[1]={filterString:null,isUnwrappable:null,unwrap:null},Qt[2]={filterString:function(O,x,e){return ik(e)},
isUnwrappable:function(O){return O instanceof wk},
unwrap:function(O){return NT(O)}},Qt[3]={filterString:function(O,x,e){return Uvd.test(e)?e:uI.toString()},
isUnwrappable:function(O){return rk(O)},
unwrap:function(O){return _.Hw(O)}},Qt[4]={filterString:function(){return uI.toString()},
isUnwrappable:function(O){return O instanceof Uh},
unwrap:function(O){return _.sh(O).toString()}},Qt[5]={filterString:function(O,x,e){return e},
isUnwrappable:function(O){return typeof O==="string"},
unwrap:function(O){return O.toString()}},Qt[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(O){return O instanceof _.xS},
unwrap:function(O){return lx(O)}},Qt[8]={filterString:function(O,x,e){e=String(e).toLowerCase();
return m38(O,x,e)?e:"zClosurez"},
isUnwrappable:null,unwrap:null},Qt[10]={filterString:null,isUnwrappable:null,unwrap:null},Qt);M3[N4["default"]]=CJL;var Qcr=[];(function(){var O=kK;kK=function(x){O==null||O(x);Ex(function(){for(var e=0;e<x.length;e++)b9W(x[e])})}})();var aJT=function(){var O=_.MQ.apply(this,arguments)||this;O.hasUnmounted=!1;return O};
_.c(aJT,_.MQ);_.b=aJT.prototype;_.b.beforeRegister=function(){var O=this.doIdomRender;this.templatingFn?_.BH(Error("gh")):(this.templatingFn=O,this.switchTemplateAtRegistration=!0,xvw(this))};
_.b.attached=function(){};
_.b.detached=function(){b9W(this.hostElement)};
_.b.renderIdom=function(){throw Error("jh");};
_.b.doIdomRender=function(){var O=this;VRN(this.hostElement,function(){O.renderIdom()})};
_.B([_.DC()],aJT);var mvR=[Cd.prototype,aJT.prototype];var scR,Wf3=function(){return scR!==void 0?scR:scR=document.createElement("template")};
document.head.appendChild(Wf3().content);var hlJ;var zlN,r4d=function(){return zlN!==void 0?zlN:zlN=document.createElement("template")};
document.head.appendChild(r4d().content);var H9z;var KfL=document.head,dvk=KfL.appendChild,ne3;if(H9z===void 0){var uET=document.createElement("template");_.I(uET,"\x3c!--css-build:shady--\x3e");uET.content.insertBefore(r4d().content.cloneNode(!0),uET.content.firstChild);H9z=uET}ne3=H9z;dvk.call(KfL,ne3.content);var YWz,B0R=function(){return YWz!==void 0?YWz:YWz=document.createElement("template")};
document.head.appendChild(B0R().content);var vek;var fJ$=document.head,J4N=fJ$.appendChild,wlL;if(vek===void 0){var SW4=document.createElement("template");_.I(SW4,"\x3c!--css-build:shady--\x3e");SW4.content.insertBefore(B0R().content.cloneNode(!0),SW4.content.firstChild);vek=SW4}wlL=vek;J4N.call(fJ$,wlL.content);var jcJ=document.head,N03=jcJ.appendChild,ge4;if(hlJ===void 0){var $vD=document.createElement("template");_.I($vD,"\x3c!--css-build:shady--\x3e");$vD.content.insertBefore(Wf3().content.cloneNode(!0),$vD.content.firstChild);hlJ=$vD}ge4=hlJ;N03.call(jcJ,ge4.content);var i9F,O4z=function(){return i9F!==void 0?i9F:i9F=document.createElement("template")};
document.head.appendChild(O4z().content);var xd4;_.rP=new _.iR("DARK_THEME_TOKEN");var jcL=new _.$x("accessibilityProperties");var SWr=new _.$x("layoutProperties");var N0L=new _.$x("imageType");var eN2={};if("ytAttributedStringLinkHoverColor"in eN2)throw Error("mh`ytAttributedStringLinkHoverColor");(function(O,x){eN2[O]="value"in x&&"unit"in x?DvL(O,x):function(e){try{return x(e)}catch(l){throw Error("kh`"+O+"`"+l.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var l6z=function(O){var x=this;this.holdTime=O===void 0?500:O;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(e){var l=new CustomEvent("LONG_PRESS"),C;(C=e.changedTouches[0].target)==null||C.dispatchEvent(l)};
this.ontouchstart=function(e){x.longPressTimeout=_.e1(_.vn,function(){x.onlongpress(e);x.longPressOccurred=!0},x.holdTime)};
this.ontouchmove=function(){_.vn.cancelJob(x.longPressTimeout);x.longPressTimeout=NaN;x.longPressOccurred=!1;x.moveOccurred=!0};
this.ontouchend=function(e){if(x.longPressTimeout&&!x.longPressOccurred&&!x.moveOccurred){var l;(l=e.changedTouches[0].target)==null||l.dispatchEvent(new Event("click"))}_.vn.cancelJob(x.longPressTimeout);x.longPressTimeout=NaN;x.longPressOccurred=!1;x.moveOccurred=!1}};var mvN=function(O,x){l6z.call(this,x);var e=this;this.callback=O;this.onlongpress=function(l){var C;(C=e.callback)==null||C.call(e,l)}};
_.c(mvN,l6z);var scN=function(O,x){var e=Object.assign({},x);O=_.T(new Map([["ontouchstart",O.ontouchstart],["ontouchend",O.ontouchend],["ontouchmove",O.ontouchmove]]));for(var l=O.next(),C={};!l.done;C={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},l=O.next()){var Q=_.T(l.value);l=Q.next().value;Q=Q.next().value;C.eventName$jscomp$103=l;C.eventHandler$jscomp$2=Q;x[C.eventName$jscomp$103]=function(L){return function(k){var M;(M=e[L.eventName$jscomp$103])==null||M.call(e,k);(0,L.eventHandler$jscomp$2)(k)}}(C)}};_.Xc=new _.iR("COMMAND_HANDLER_TOKEN");var Ffm=new _.$x("parallelCommand");var y4W=new _.$x("performOnceCommand");var oeV=new _.$x("serialCommand");var Z9L=void 0;var C2D=function(){this.data=[];this.consumer=null};
C2D.prototype.push=function(O){this.consumer?this.consumer(O):this.data.push(O)};var hA={};_.Iw(hA,void 0,"sgPmTd");_.Iw(null,void 0,"jypsq");_.Iw(null,void 0,"mWiOof");var sJr=new C2D;var pl$=[UTT,asd,mTz,Wo4,sST,RzT,hzR,zzJ];var J47=new _.$x("bracketTextDecorator");var hB=new _.$x("highlightTextDecorator");_.K_=new _.iR("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var uE8=function(){},Q63;
(Q63=window.requestIdleCallback)==null||Q63.bind(window);var B0N={calledOnce:!1,state:"visible"},YWm={calledOnce:!1,state:"hidden"};var b42=new _.iR("ICON_WIZ_COMPONENT_TOKEN");_.L7=_.K(function(O){var x=O.icon;var e=O.active;var l=O.className;var C=O.style;var Q=O.dataSelected;var L=O.dataDisabled;var k=O.role;var M=O.animateIcon;var G=O.themeOverride;var X=O.ariaHidden;var y=O.ariaExpanded;var Z=O.ariaLabel;var E=O.tabindex;var P=O.id;var U=O.size;var W=O.iconFilter;var z=O.gradientColor;var r=O.onKeydown;return _.D(_.F,{cond:x,then:function(){var f=_.GG().resolve(b42);return _.D(f,{icon:x,dataSelected:Q,dataDisabled:L,animateIcon:M,themeOverride:G,ariaExpanded:y,tabindex:E,
id:P,active:e,size:U,role:k,className:l,ariaHidden:X,ariaLabel:Z,style:function(){return C!=null&&C()||U==null||!U()?C==null?void 0:C():"width: "+(U==null?void 0:U())+"px;height: "+((U==null?void 0:U())+"px;")},
iconFilter:W,gradientColor:z,onKeydown:r})}})},"k");
_.L7.idomCompat={callbacks:{onKeydown:!0}};var DdL=window.devicePixelRatio||1;var or7=new Map([["yt_outline_bag_black_24","bag"]]);var b4=function(O){var x=this;this.margin=.1;this.whenInViewportWithMargin=O;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){x.requestScan()});
window.addEventListener("touchend",function(){x.requestScan()});
window.addEventListener("updateui",function(){x.requestScan()});
var e=new _.QI((0,_.z8)(this.requestScan,this),100);window.addEventListener("scroll",function(){e.fire()},!0);
window.addEventListener("resize",(0,_.z8)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){x.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.z8)(this.requestScan,this))};
b4.prototype.observe=function(O){this.observationTargets.includes(O)||this.observationTargets.push(O)};
b4.prototype.unobserve=function(O){this.observationTargets=this.observationTargets.filter(function(x){return x!==O})};
b4.prototype.requestScan=function(){var O=this;this.scanRequested||(Ex(function(){ThJ(O)}),this.scanRequested=!0)};
var ThJ=function(O){var x=(1+O.margin)*(document.documentElement.clientHeight||window.innerHeight);O.observationTargets=O.observationTargets.filter(function(e){var l=e.getBoundingClientRect();(l=x>l.top&&!!l.height)&&O.whenInViewportWithMargin(e);return!l&&e.parentNode});
O.scanRequested=!1};
b4.prototype.disconnect=function(){this.observationTargets=[]};var LIz,Ao2;LIz=_.T(_.Iw(qEr(),void 0,"O3X2wd"));_.ksk=LIz.next().value;Ao2=LIz.next().value;window.addEventListener("resize",function(){Ao2(qEr())});var MtD={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Dd3=void 0,Gs$=window.innerWidth,FID=window.innerHeight;window.addEventListener("resize",function(){Dd3=void 0});var XWR;if("IntersectionObserver"in window)XWR=I6i();else{if(Dd3===void 0){var orN;orN="matchMedia"in window?window.matchMedia(MtD.landscape+","+MtD.portrait).matches:void 0;Dd3=orN!==void 0?orN:Gs$>=930&&FID>=550||Gs$>=550&&FID>=930}XWR=Dd3?{observe:function(O){Ex(function(){var x;(x=O.onViewportEntered)==null||x.call(O)})},
unobserve:function(){}}:new b4(function(O){Ex(function(){var x;
(x=O.onViewportEntered)==null||x.call(O)})})}var P2V=XWR;var yo2=_.K(function(O){var x=!1,e=_.Q5("img",function(l){_.YO(function(){x=!0;l.onload=null})});
_.uo(function(){var l,C=(l=O.data)==null?void 0:l.call(O),Q,L=(Q=O.getSrc)==null?void 0:Q.call(O).cb,k;l=(k=O.config)==null?void 0:k.call(O);if(k=e.value)if(Q=function(G,X){if(!x)return L?L(G,X):G},RNr(k,l),_.t("web_image_dont_reload_same_src")&&pWs(k,C,Q))_.t("web_image_dont_reload_same_src_simulate_load")&&k.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var M;Vt$(k,C||null,Q,l,(M=O.lazy)==null?void 0:M.call(O))}},"zS0jKb");
return _.D("img",{el:e})},"m");
yo2.idomCompat=!0;_.n_=_.K(function(O){var x=function(){var e,l=O.data(),C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr,mL,Zn,q$,KV,VN,Pd,f2;var p2={contentMode:(C=O.contentMode)==null?void 0:C.call(O),loadedClass:(Q=O.loadedClass)==null?void 0:Q.call(O),isPreloaded:(L=O.isPreloaded)==null?void 0:L.call(O),notifyOnLoaded:(k=O.notifyOnLoaded)==null?void 0:k.call(O),notifyOnUnloaded:(M=O.notifyOnUnloaded)==null?void 0:M.call(O),preferredThumbnail:(G=O.preferredThumbnail)==null?void 0:G.call(O),preserveHeight:(X=O.preserveHeight)==
null?void 0:X.call(O),preserveWidth:(y=O.preserveWidth)==null?void 0:y.call(O),objectPosition:(Z=O.objectPosition)==null?void 0:Z.call(O),targetWidth:(E=O.targetWidth)==null?void 0:E.call(O),targetHeight:(P=O.targetHeight)==null?void 0:P.call(O),shouldShowPlaceholder:(U=O.shouldShowPlaceholder)==null?void 0:U.call(O),useWidth:(W=O.useWidth)==null?void 0:W.call(O),isToggled:(z=O.isToggled)==null?void 0:z.call(O),alt:(r=O.alt)==null?void 0:r.call(O),className:(f=O.className)==null?void 0:f.call(O),
onerror:O.onerror,onload:O.onload,style$:((u=O.style$)==null?void 0:u.call(O))||((Y=O.style)==null?void 0:Y.call(O)),color:(J=O.color)==null?void 0:J.call(O),width:(O8=O.width)==null?void 0:O8.call(O),height:(Xr=O.height)==null?void 0:Xr.call(O),"aria-hidden$":(Pd=(Fr=O["aria-hidden$"])==null?void 0:Fr.call(O))!=null?Pd:(mL=O.ariaHidden)==null?void 0:mL.call(O),draggable:(Zn=O.draggable)==null?void 0:Zn.call(O),"data-disabled$":(f2=(q$=O["data-disabled$"])==null?void 0:q$.call(O))!=null?f2:(KV=O.dataDisabled)==
null?void 0:KV.call(O),size:(VN=O.size)==null?void 0:VN.call(O)};return md8(l,p2,(e=O.hideOn404)==null?void 0:e.call(O))};
return _.D(_.KO,null,_.D(_.zn,{when:function(){var e;return((e=x())==null?void 0:e.type)==="image"}},function(){return _.D(yo2,{data:function(){return x().image},
getSrc:{cb:function(e,l){var C=x().image.sources,Q=x().config.isPreloaded,L=x().config.useWidth,k=x().config.targetWidth,M=x().config.targetHeight,G=x().config.preferredThumbnail;return _.Gsw(l,C,Q,L,k,M,G)||""}},
config:function(){var e=x().config,l;for(l in e)e[l]===void 0&&delete e[l];return e},
lazy:O.renderLazy})}),_.D(_.zn,{when:function(){var e;
return((e=x())==null?void 0:e.type)==="icon"}},function(){return _.D(_.L7,{icon:function(){return x().iconName},
role:function(){return x().config.role},
className:function(){return x().config.className},
style:function(){return x().config.style$+";width: "+(x().config.width+"px;height: ")+(x().config.height+"px;color: ")+(x().config.color+";")},
ariaLabel:function(){return x().config["aria-label$"]},
ariaHidden:function(){return x().config["aria-hidden$"]},
dataDisabled:function(){return x().config["data-disabled$"]},
active:function(){return x().config.isToggled},
size:function(){return x().config.size}})}))},"n");
_.n_.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Z4F=function(O){return function(x){return _.D(BY$,null,function(){var e=x.data(),l=_.vL(x.config);return _.D(kg,null,function(){return void O(e,l)})})}}(ro7),hNV=_.K(function(O){var x=function(C){var Q,L=_.Y0(function(E){Q=BL(function(){for(var P=_.T(y()),U=P.next();!U.done;U=P.next()){U=H4V(U.value);
U=typeof U==="string"?document.createTextNode(U):U;if(!(U instanceof Node)){P=new _.ry("Part is not a node",U,typeof U);_.BH(P);break}E.appendChild(U)}})});
var k=_.t("web_wiz_attributed_string_skip_empty")?C:Bs(function(){return $vn(C())},{isEqual:WIs});
var M=_.uH(O.config),G=function(){var E,P=k();return!((E=M())==null||!E.ariaLabel)||!(P.commandRuns&&P.commandRuns.length!==0||P.paragraphStyleRuns&&P.paragraphStyleRuns.length!==0)},X=Bs(M,{isEqual:ddL}),y=function(){var E=ger(k(),X());
O4m(E,X());return k().content?b4V(k().content,E).parts:[]},Z=!0;
_.uo(function(){k();X();if(Z)Z=!1;else{var E=y();Promise.resolve().then(function(){var P=L.value;if(P){P.innerText="";var U;(U=Q)==null||U();Q=_.nO(P,function(){return _.D(KIn,{parts:E})},"o")}})}},"S2CIIe");
return _.D("span",{el:L,class:function(){return k()&&H9m(k(),M())},
dir:function(){var E;return((E=M())==null?0:E.userInput)?"auto":void 0},
"aria-label":function(){var E;return G()?(E=M())==null?void 0:E.ariaLabel:void 0},
role:function(){return G()?"text":void 0}})},e=_.t("web_wiz_attributed_string_skip_empty")?Bs(function(){var C,Q=(C=O.text)==null?void 0:C.call(O);
if(Q)return C=$vn(Q),(C==null?0:C.content)?C:void 0},{isEqual:WIs}):O.text,l;
return((l=O.config)==null?0:l.renderedFromFormattedString)?x(e):_.D(_.F,{cond:e,then:x})},"q");
hNV.idomCompat=!0;_.TT=_.K(function(O){var x=_.uH(O.text),e=nrm(O);O.renderedFromFormattedString!==void 0&&(e.renderedFromFormattedString=!0);return _.t("attr_string_reactive")?_.D(hNV,{text:x,config:e}):_.D(_.F,{cond:function(){var l;return x()&&((l=$vn(x()))==null?void 0:l.content)},
then:function(){return _.D(Z4F,{data:O.text,config:e})},
debugInstance:"Apcuac"})},"r");
_.TT.idomCompat=!0;var wWN="";fyw({beforeVisit:function(O){O.type.TAG_NAME&&(wWN=O.type.TAG_NAME)},
afterRender:function(O,x){var e;wWN=(e=x==null?void 0:x.type)!=null?e:""},
didPatch:function(){wWN=""}});var ukr=function(O,x,e){x=x===void 0?"unknown":x;e=e===void 0?{}:e;_.ry.call(this,O+" ("+x+")",Object.assign({},{name:"YtWcwError",tagName:x},e));Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(ukr,_.ry);_.JB=new WeakMap;_.f_=!1;var Jon,SE8,f6r;_.Ld=Symbol("oh");_.vs=Symbol("ph");Jon=Symbol("qh");SE8=new Set(Object.getOwnPropertyNames(Element.prototype));f6r=Symbol("rh");var ErJ=_.K(function(O){return _.D("yt-attributed-string",{"aria-label":O.ariaLabel,hidden:O.hidden,id:O.id,class:O.className,"force-default-style":O.forceDefaultStyle},_.D(_.TT,{text:O.data,ariaLabel:O.ariaLabel,ellipsisTruncate:O.ellipsisTruncate,isOverlay:O.isOverlay,linkInheritColor:O.linkInheritColor,noPreWrap:O.noPreWrap,noWrap:O.noWrap,userInput:O.userInput,noEndpoints:O.noEndpoints,headerRuns:O.headerRuns,isHeadline:O.isHeadline}))},"s");
_.t("web_wiz_attributed_string")&&_.wP(ErJ,"yt-attributed-string",{props:{ariaHidden:_.Ld,ariaLabel:_.Ld,className:_.Ld,ellipsisTruncate:_.Ld,isOverlay:_.Ld,linkInheritColor:_.Ld,noEndpoints:_.Ld,noStyleRuns:_.Ld,noLinkColor:_.Ld,noPreWrap:_.Ld,noWrap:_.Ld,skipOnClick:_.Ld,userInput:_.Ld,headerRuns:_.Ld,isHeadline:_.Ld,id:_.Ld,data:_.Ld,hidden:_.Ld,forceDefaultStyle:_.Ld,text:_.vs,disableUpgrade:_.vs,disable:_.vs,slot:_.vs}});var ka=function(){return _.a.apply(this,arguments)||this};
_.c(ka,_.a);ka.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},ro7(this.data,this.config))};
_.B([_.V(mvR),_.v("design:type",Object)],ka.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ka.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ka.prototype,"ariaLabel",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"disable",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"ellipsisTruncate",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"isOverlay",void 0);
_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"linkInheritColor",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"noPreWrap",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"noWrap",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"userInput",void 0);_.B([_.R(),_.v("design:type",Boolean)],ka.prototype,"noEndpoints",void 0);_.B([_.R(),_.v("design:type",Array)],ka.prototype,"headerRuns",void 0);
_.B([_.Va({is:"yt-attributed-string",disableElementRegistration:!0})],ka);
_.t("web_wiz_attributed_string")||_.n(ka,"yt-attributed-string",function(){if(xd4===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
O.content.insertBefore(O4z().content.cloneNode(!0),O.content.firstChild);xd4=O}O=xd4;return O},{mode:2});var ttT,qEF,xFr;ttT=function(){this.firstThumbnailLoaded=!1};
_.P22=function(){qEF||(qEF=new ttT);return qEF};
xFr=function(O){var x=_.P22();x.firstThumbnailLoaded||(x.firstThumbnailLoaded=!0,_.IR("ftl",O))};
ttT.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Nhn=0,OE7=new WeakMap,$dW=0,Nj=new Set;var cod,I6d=function(){return cod!==void 0?cod:cod=document.createElement("template")};
document.head.appendChild(I6d().content);var Vtk;var QTr,TZN,Ac;_.iV=_.CV.caches;Ac=function(){};
Ac.prototype.open=function(O){return _.iV.open(pWL(O))};
Ac.prototype.has=function(O){return _.iV.has(pWL(O))};
Ac.prototype.delete=function(O){return _.iV.delete(pWL(O))};
Ac.prototype.match=function(O,x){var e=this,l,C,Q,L,k,M;return _.A(function(G){switch(G.nextAddress){case 1:return G.yield(e.keys(),2);case 2:l=G.yieldResult,C=_.T(l),Q=C.next();case 3:if(Q.done){G.jumpTo(5);break}L=Q.value;return G.yield(e.open(L),6);case 6:return k=G.yieldResult,G.yield(k.match(O,x),7);case 7:if(M=G.yieldResult)return G.return(M);Q=C.next();G.jumpTo(3);break;case 5:return G.return()}})};
var L7L=function(){};
_.c(L7L,Ac);var pWL=function(O){if(O.includes(":"))throw Error("uh`"+O);return O+":"+_.hq("CacheStorage get")};
L7L.prototype.keys=function(){var O,x,e,l,C,Q,L,k,M;return _.A(function(G){if(G.nextAddress==1)return O=[],x=_.hq("CacheStorage keys"),G.yield(_.iV.keys(),2);e=G.yieldResult;l=_.T(e);for(C=l.next();!C.done;C=l.next())Q=C.value,L=_.CSN(Q),k=L.originalName,M=L.datasyncId,M===x&&O.push(k);return G.return(O)})};var ML=function(){var O=_.a.apply(this,arguments)||this;O.objectURL=null;O.loadTime=Infinity;return O};
_.c(ML,_.a);_.b=ML.prototype;_.b.renderIdom=function(){ljr(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("xh");this.setConfig();this.config&&Udm(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.b.objectFitToContentMode=function(O){switch(O){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.b.logThumbnailFailureVe=function(){var O=_.O9(197497);_.qK(_.k0(),O);var x=_.Pq();x&&O&&x&&_.rT(x,[O])};
_.b.loadImageFromCacheIfExists=function(O){var x=this,e=O.target;(e==null?0:e.src)&&ARs(e.src).then(function(l){x.objectURL=_.Bw(l).toString();x.setSrc(e,x.objectURL)}).catch(function(){})};
_.b.onError=function(O){var x=this;if(_.t("web_use_cache_for_image_fallback")){var e=O.target;e&&ARs(e.src).then(function(l){x.objectURL=_.Bw(l).toString();x.setSrc(e,x.objectURL)}).catch(function(){_.t("kevlar_woffle_log_thumbnail_failure_ve")&&x.logThumbnailFailureVe();
_.t("kevlar_woffle_fallback_image")&&x.setSrc(e,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.b.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.b.setConfig=function(){var O=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(x){O.loadImageFromCacheIfExists(x);O.revokeObjectURL();eDr(O.hostElement)},
onerror:function(x){O.onError(x)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.t("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.b.setSrc=function(O,x){x&&(O.src=x)};
_.B([_.V(mvR),_.v("design:type",Object)],ML.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ML.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],ML.prototype,"alt",void 0);_.B([_.R(),_.v("design:type",Boolean)],ML.prototype,"ftlEligible",void 0);_.B([_.R(),_.v("design:type",Number)],ML.prototype,"height",void 0);_.B([_.R(),_.v("design:type",Boolean)],ML.prototype,"notifyOnLoaded",void 0);
_.B([_.R(),_.v("design:type",Boolean)],ML.prototype,"notifyOnUnloaded",void 0);_.B([_.R(),_.v("design:type",String)],ML.prototype,"objectFit",void 0);_.B([_.R(),_.v("design:type",String)],ML.prototype,"objectPosition",void 0);_.B([_.R(),_.v("design:type",String)],ML.prototype,"preferredThumbnail",void 0);_.B([_.R(),_.v("design:type",Boolean)],ML.prototype,"preserveHeight",void 0);_.B([_.R(),_.v("design:type",Boolean)],ML.prototype,"preserveWidth",void 0);
_.B([_.R({value:!0}),_.v("design:type",Boolean)],ML.prototype,"useWidth",void 0);_.B([_.R({value:function(){return!_.SS("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.v("design:type",Boolean)],ML.prototype,"shouldRenderLazy",void 0);_.B([_.R(),_.v("design:type",Number)],ML.prototype,"width",void 0);_.B([_.Va({is:"yt-image",disableElementRegistration:!0})],ML);
_.n(ML,"yt-image",function(){if(Vtk===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);O.content.insertBefore(I6d().content.cloneNode(!0),O.content.firstChild);
Vtk=O}O=Vtk;return O},{mode:2});var DX=function(){return _.a.apply(this,arguments)||this};
_.c(DX,_.a);DX.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var O=_.p_(this.data.onVisibleCommand);O&&this.ytComponentBehavior.resolveCommand(O)}};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],DX.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.l4.YtVisibilityBehavior),_.v("design:type",Object)],DX.prototype,"ytVisibilityBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],DX.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],DX);
_.n(DX,"yt-bumper-user-edu-content-view-model",function(){if(RlJ===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;plk===void 0&&(plk=document.createElement("template"));var l=plk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);RlJ=O}O=RlJ;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var RNp;var Udz,a6T=function(){if(Udz!==void 0)return Udz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;RNp===void 0&&(RNp=document.createElement("template"));var l=RNp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Udz=O};var mdT;_.GT={};mdT=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"]);_.GT.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var O=this.getContext_();return O?O.getTaskManager():_.vn},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var O=_.wr(this.hostElement,"yt-get-context-provider",{});O.detail&&O.detail.contextProvider?this.cachedProviderNode_=O.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return mdT.has(this.hostElement.localName)},
getNetworkManager:function(){var O=this.getContext_();if(O)return O.getNetworkManager()}};var okW,s6d,hN2,WIL;_.F_=function(O){var x=s6d.get(O);if(x&&(x=x.pop()))return WIL++,x;hN2++;try{var e=document.createElement(O)}catch(l){throw new _.ry("ElementPool failed to create element",O,l.message);}return e};
okW=function(O){var x=O.is;if(x){var e=s6d.get(x);e||(e=[],s6d.set(x,e));var l=_.wz("ELEMENT_POOL_CONFIG")||{};e.length>=(l[x]!==void 0?l[x]:_.wz("ELEMENT_POOL_DEFAULT_CAP",0))||e.push(O)}else _.ft(new _.ry("Element pool should only handle custom elements:",O.nodeName))};
s6d=new Map;hN2=0;WIL=0;var O1=new WeakMap,Xkr=new WeakMap;var roN;_.X_=function(O,x,e){e=e===void 0?_.Xu():e;this.JSC$13959_defaultPriority=O;this.signal=x;this.scheduler=e;this.nextJobDescriptor=0;this.JSC$13959_parkedJobs=[];this.scheduledJobs=new Map};
_.oV=function(O,x){if(x){var e=_.O2();O.signal&&!_.xq(e,O.signal)?(e.addListener(O.signal,function(){O.processSignal()}),O.JSC$13959_parkedJobs.push({job:x,
priority:void 0})):zNp(O,x)}};
roN=function(O,x){if(x!==O.JSC$13959_defaultPriority){O.JSC$13959_defaultPriority=x;for(var e=_.T(O.scheduledJobs.values()),l=e.next();!l.done;l=e.next())l=l.value,O.scheduler.cancelJob(l.jobId),l.jobId=O.scheduler.addJob(l.jobWrapper,x)}};
_.X_.prototype.flushJobs=function(){roN(this,10);this.processSignal()};
_.X_.prototype.cancel=function(){for(var O=_.T(this.scheduledJobs),x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;e=e.next().value;this.scheduler.cancelJob(e.jobId);this.scheduledJobs.delete(x)}this.JSC$13959_parkedJobs=[]};
_.X_.prototype.processSignal=function(){for(var O=_.T(this.JSC$13959_parkedJobs),x=O.next();!x.done;x=O.next())x=x.value,zNp(this,x.job,x.priority);this.JSC$13959_parkedJobs=[]};
var zNp=function(O,x,e){e=e||O.JSC$13959_defaultPriority;if(e===10)gP(x);else{var l=O.nextJobDescriptor++,C=function(){x();O.scheduledJobs.delete(l)},Q=O.scheduler.addJob(C,e);
O.scheduledJobs.set(l,{jobWrapper:C,jobId:Q,priority:e})}};var H42;_.ZX={};H42={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.ZX.YtRendererstamperBehavior=[_.GT.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 O in this.stampDom){var x=this.stampDom[O];x&&x.id&&this.addReactiveSchema({type:"observe",method:{methodName:DFr(x.id),args:[{type:"wildcard",path:O}]}})}else{(O=(this.constructor.generatedFrom||this).observers)||(O=[]);for(x in this.stampDom){var e=this.stampDom[x];e&&e.id&&O.push(DFr(e.id)+"("+x+".*)")}this.constructor.generatedFrom.observers=O}},
addStampDomObserverFns_:function(){for(var O in this.stampDom){var x=this.stampDom[O];x.id?(this[DFr(x.id)]=this.rendererStamperObserver_.bind(this,O,x.id),this.hasDataPath_[O]=!1):(x=new _.ry("Bad rendererstamper config",this.is+":"+O),_.BH(x))}},
rendererStamperObserver_:function(O,x,e){if(e.path==O){if(e.value===void 0&&!this.hasDataPath_[O])return;this.hasDataPath_[O]=e.value!==void 0}this.rendererStamperApplyChangeRecord_(O,x,e)},
rendererStamperApplyChangeRecord_:function(O,x,e){var l=this.renderJobsMap_[x],C=null;O==e.path?(e=e.value,_.vi(e)||(e=e===void 0||e===null?[]:[e]),O=this.stampDom[O],O.mapping&&(C=this.stampDomArray_.bind(this,e,x,O.mapping,O.reuseComponents,O.events,O.stamperStableList)),l&&l.cancel(),e=O.usePageScheduler?this.getTaskManager():void 0,l||O.initialRenderPriority==void 0)?O.renderPriority==void 0||l||(l=new _.X_(O.renderPriority,O.waitForSignal,e),this.renderJobsMap_[x]=l):(l=new _.X_(O.initialRenderPriority,
O.waitForSignal,e),this.renderJobsMap_[x]=l,C=function(Q,L){Q();roN(L,10)}.bind(this,C,l)):C=O+".splices"==e.path?this.stampDomArraySplices_.bind(this,O,x,e.value):this.forwardRendererStamperChanges_.bind(this,O,x,e);
l?_.oV(l,C):C()},
forwardRendererStamperChanges_:function(O,x,e){var l=e.path.slice(O.length+1),C=this.getStampContainer_(x),Q=l.indexOf("."),L=l.substring(0,Q),k=!1,M=0,G=parseInt(L,0);if(L[0]=="#"){k=parseInt(L.substring(1),0);G=this.get(O);var X=this.get([O,L]);G[k]==X?M=k:M=G.indexOf(X);k=!0}else isNaN(G)||(M=G,k=!0);k&&(l=l.substring(L.length+1),Q=l.indexOf("."));L=this.polymerDom(C).children[M];var y;if(C=(y=L==null?void 0:L.polymerController)!=null?y:L)l="data"+l.slice(Q),typeof C.notifyPath!=="function"?_.ft(new _.ry("notifyPath missing",
this.is+": "+O+", "+x)):e.value?C.notifyPath(l,e.value):C.notifyPath(l)},
stampDomArraySplices_:function(O,x,e){if(e&&e.indexSplices){var l=this.getStampContainer_(x);if(l){for(var C=this.polymerDom(l),Q=F7$(this.stampDom[O].reuseComponents),L=e.indexSplices.length,k=0;k<L;k++){for(var M=e.indexSplices[k],G=C.children[M.index],X=M.removed.length;X>0;X--)G&&G.parentElement&&(this.polymerDom(G.parentElement).removeChild(G),Q&&okW(G),G=C.children[M.index]);X=this.stampDom[O].mapping;for(var y=M.index+M.addedCount,Z=document.createDocumentFragment(),E=Q,P=M.index;P<y;P++){var U=
M.object[P],W=Mr$(X,U);if(W){var z=X[W];U=U[W];W=this.getComponentName_(z,U);var r=G?O1.has(G):!1;E&&G&&G.is==W&&r?(W=G,this.telemetry_.reuse++,G=G.nextElementSibling):E&&G&&r?(W=this.createComponent_(z,U,Q),r=this.polymerDom(G).nextElementSibling,C.insertBefore(W,r),ZEn(this.is,C,G,Q),G=r):(E=!1,W=this.createComponent_(z,U,Q),Z.appendChild(W));this.deferRenderStamperBinding_(W,z,U)}else z=new _.ry("Unimplemented type",O,x,l.tagName,Object.keys(U)[0]),_.BH(z)}C.insertBefore(Z,G)}this.flushRenderStamperComponentBindings_();
this.stampDom[O].events&&_.wr(this.hostElement,"yt-rendererstamper-finished",{container:l})}else O=new _.ry("Container object not found",x,this.hostElement?this.hostElement.is:""),_.BH(O)}},
stampDomArray_:function(O,x,e,l,C,Q){var L=this.getStampContainer_(x);if(L)if(x=this.polymerDom(L),l=F7$(l),O){var k=0,M=0,G;if(Q=Q===void 0?_.SS("STAMPER_STABLE_LIST",!1):Q||!1)for(G=x.firstElementChild;G&&!O1.has(G)&&O.length>M;){Q=O[M];var X=Mr$(e,Q);if(X){if(this.getComponentName_(e[X],Q[X])!=G.is){var y=this.createComponent_(e[X],Q[X],l),Z=_.G0(G).nextElementSibling;Z?x.insertBefore(y,Z):x.appendChild(y);ZEn(this.is,x,G,l);G=y}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(G,e[X],
Q[X]);k++;M++;G=this.polymerDom(G).nextElementSibling}else M++}EkV(this.is,x,k,l);k=G;if(O.length>M){Q=document.createDocumentFragment();for(X=O.length;M<X;M++)if(y=O[M],Z=Mr$(e,y))G=this.createComponent_(e[Z],y[Z],l),this.deferRenderStamperBinding_(G,e[Z],y[Z]),Q.appendChild(G);k&&this.polymerDom(k).parentNode&&G&&!O1.has(G)?x.insertBefore(Q,k):x.appendChild(Q)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();C&&_.wr(this.hostElement,"yt-rendererstamper-finished",{container:L})}else EkV(this.is,
x,0,l);else O=new _.ry("Container object not found",x,this.hostElement?this.hostElement.is:""),_.BH(O)},
polymerDom:function(O){return this.minimizePipBreakages?O:_.G0(O)},
getStampContainer_:function(O){return this.$&&this.$[O]||_.$U(this.hostElement).querySelector("#"+O)},
getComponentName_:function(O,x){return typeof O==="string"?O:O.matcher?O.matcher.call(this,x):O.component},
createComponent_:function(O,x,e){O=this.getComponentName_(O,x);try{var l=jU.has(O);if(e&&!l){var C=_.F_(O);try{_.lH(C)}catch(Q){e="Failed to clear styles for "+O+".",Q.message&&(e+=" Original error: "+Q.message),_.ft(new _.ry(e))}}else C=document.createElement(O)}catch(Q){return C="YtRendererStamperBehavior failed to create "+O+".",Q.message&&(C+=" Original description: "+Q.message),Q.message="YtRendererStamperBehavior failed to create element",_.JG(Q,C),H42.hasOwnProperty(O)?_.ft(Q):_.BH(Q),document.createElement("SPAN")}this.telemetry_.create++;
return C},
deferRenderStamperBinding_:function(O,x,e){this.deferredBindingTasks_.push({component:O,typeOrConfig:x,data:e})},
flushRenderStamperComponentBindings_:function(){for(var O=0,x=this.deferredBindingTasks_.length;O<x;O++){var e=this.deferredBindingTasks_[O];if(!e)break;var l=void 0,C=void 0,Q=void 0,L=void 0,k=e.component,M=e.typeOrConfig;e=e.data;var G=(L=k.polymerController)!=null?L:k;L=k.loggingStatus;try{L&&(L.isRendererStamper=!0);if(typeof M!=="string"){for(Q in M.attributes)M.attributes[Q]===!0?k.setAttribute(Q,""):M.attributes[Q]===!1?k.removeAttribute(Q):k.setAttribute(Q,M.attributes[Q]);for(C in M.params)G[C]=
M.params[C],k!==G&&oH(k.localName,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(l in M.properties){var X=M.properties[l];if(X){var y=Gvw(X);G[l]=this.get(y);k!==G&&oH(k.localName,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(l==="on-tap"||l==="on-click"){var Z=this.get(y);k.addEventListener("click",Z);Xkr.set(k,{property:l,listener:{type:"element",eventName:"click",handler:Z}})}}else{var E=new _.ry("Undefined property binding",l);_.BH(E)}}}if(M.classListBinding){var P=Gvw(M.classListBinding),
U=P?this[P]:null;if(U)for(l=0;l<U.length;l++)_.Ow(k,U[l],!0)}G.data=e}finally{L&&(L.isRendererStamper=!1)}if(l=O1.get(k))k.hidden=!1,O1.delete(k),_.vn.cancelJob(l)}this.deferredBindingTasks_.length=0}}];_.wP(_.K(function(O){function x(){e().seconds&&Q(xOL({seconds:Number(e().seconds)-Date.now()/1E3}))}
var e=O.targetTimestamp;O=O.className;var l=_.T(_.Iw("",void 0,"Lqijgf")),C=l.next().value,Q=l.next().value;_.u8(function(){x();var L=setInterval(function(){x()},1E3);
_.YO(function(){clearInterval(L)})});
return _.D("yt-countdown",{class:_.xz("ytCountDownHost",O)},_.D("div",null,C))},"u"),"yt-countdown",{props:{targetTimestamp:_.Ld,
className:_.vs}});_.qL=new _.iR("KEY_MANAGER_TOKEN");var RDN={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"};_.Pt=_.K(function(O){var x=_.Q5("a",O.ref),e=O.aTagConfig?O.aTagConfig:_.aw(function(){var l,C,Q,L,k;var M=(k=_.p_((Q=O.command)==null?void 0:Q.call(O)))!=null?k:(L=O.command)==null?void 0:L.call(O);return _.Ux({innertubeCommand:M,skipOnClick:(l=O.skipOnClick)==null?void 0:l.call(O),defaultTarget:(C=O.target)==null?void 0:C.call(O)})||{}},void 0,"TAvz0");
_.uo(function(){_.t("mweb_enable_keto_batch_pages")||(x.value._data=e()._data,x.value.params=e().params)},"dcjvAe");
return _.D("a",{el:x,href:function(){return e().href$},
rel:function(){return e().rel$},
class:function(){var l,C;return(C=e().className)!=null?C:(l=O.className)==null?void 0:l.call(O)},
style:function(){var l;if((l=O.style)==null?0:l.call(O))return O.style();var C;return((C=O.disabled)==null?0:C.call(O))?"pointer-events:none":""},
"aria-haspopup":function(){return!!e()["aria-haspopup$"]},
"force-new-state":C7(function(){return e()["force-new-state$"]}),
title:C7(function(){var l,C;return(C=e().title$)!=null?C:(l=O.title)==null?void 0:l.call(O)}),
role:C7(function(){var l;return((l=O.role)==null?void 0:l.call(O))||e().role$}),
target:C7(function(){return e().target$}),
dir:C7(function(){var l;return((l=O.dir)==null?void 0:l.call(O))||e().dir}),
tabindex:function(){var l;return e().tabindex$?Number(e().tabindex$):(l=O.tabIndex)==null?void 0:l.call(O)},
"aria-hidden":function(){var l,C;return(C=e()["aria-hidden$"])!=null?C:(l=O.ariaHidden)==null?void 0:l.call(O)},
"aria-label":function(){var l,C;return(C=e()["aria-label$"])!=null?C:(l=O.ariaLabel)==null?void 0:l.call(O)},
"aria-current":O.ariaCurrent,"aria-disabled":O.disabled,"aria-labelledby":O.ariaLabelledby,"aria-describedby":O.ariaDescribedby,"aria-selected":O.ariaSelected,"tab-identifier":O.tabIdentifier,"on:pointerdown":_.lk(function(l){var C,Q;return void((Q=(C=e()).onpointerdown)==null?void 0:Q.call(C,l))}),
"on:click":_.lk(function(l){var C,Q;(Q=(C=e()).onclick)==null||Q.call(C,l);var L;(L=O.onClick)==null||L.call(O,l)}),
"on:focusin":_.lk(function(l){var C;(C=O.onFocusin)==null||C.call(O,l)}),
"on:focusout":_.lk(function(l){var C;(C=O.onFocusout)==null||C.call(O,l)})},O.children)},"w");var rRL={duration:1E3,easing:"ease",fill:"forwards"};zDi.componentType=HL;var dFN={duration:1E3,easing:"ease",fill:"forwards"},nrz=_.K(function(O){var x=_.Q5("animated-rolling-character"),e=void 0,l=function(){var k,M;return dr((k=O.character)==null?void 0:k.call(O))||dr((M=O.previousCharacter)==null?void 0:M.call(O))},C=_.T(_.Iw(0,void 0,"CYT8Ob")),Q=C.next().value,L=C.next().value;
_.u8(function(){if(window.ResizeObserver&&_.t("web_fix_rolling_numbers_zoom_safari")){var k=new _.QI(function(){var G,X,y=Math.round(((X=(G=x.value.querySelector("div"))==null?void 0:G.getBoundingClientRect().height)!=null?X:0)*100)/100;y&&L(y)},500),M=new ResizeObserver(function(){k.fire()});
M.observe(x.value);_.YO(function(){M.disconnect();k.dispose()})}});
_.uo(function(){var k=_.t("web_fix_rolling_numbers_zoom_safari")?Q:O.marginMultiplier;if(k()){var M;(M=e)==null||M.cancel();if(l()){var G;M=((G=O.previousCharacter)==null?0:G.call(O))?Number(O.previousCharacter())+10:O.rollUp()?0:30;var X;if((X=O.shouldAnimate)==null||!X.call(O)){var y,Z;M-=K7$((y=O.character)==null?void 0:y.call(O),(Z=O.previousCharacter)==null?void 0:Z.call(O),O.rollUp(),M)}}else{M=O.rollUp()?0:2;var E;(E=O.shouldAnimate)!=null&&E.call(O)||(G=M,X=O.rollUp()?-1:1,M=G-X)}x.value.style.marginTop=
"-"+M*k()+"px";var P;if((P=O.shouldAnimate)==null?0:P.call(O)){var U,W;e=nk7(x.value,(U=O.character)==null?void 0:U.call(O),(W=O.previousCharacter)==null?void 0:W.call(O),O.rollUp(),M,l(),k())}else{var z;x.value.style.display=((z=O.character)==null?0:z.call(O))?"":"none"}}},"CA6Pmf");
return _.D("animated-rolling-character",{el:x,class:"animatedRollingCharacterHost"},_.D(_.F,{cond:l,then:function(){return _.D(KID,null)},
else:function(){return _.D(dd3,{character:O.character})}}))},"z");
nrz.idomCompat=!0;var uLW=_.t("web_enable_sink_animated_rolling_character_and_number")?nrz:zDi,uk4=_.t("web_enable_sink_animated_rolling_character_and_number")?nrz:HEN(zDi),KID=_.K(function(){for(var O=[],x=1;x<30;x++)O.push(_.D("div",null,x%10));return _.D(_.Xm,null,_.D("div",null,"\u00a0"),O,_.D("div",null,"\u00a0"))},"A"),dd3=_.K(function(O){var x=O.character;
return _.D(_.Xm,null,_.D("div",null,"\u00a0"),_.D(_.F,{cond:function(){return!(x==null?0:x())||_.AL(x==null?void 0:x())},
then:function(){return _.D("div",null,"\u00a0")},
else:function(){return _.D("div",null,x)}}),_.D("div",null,"\u00a0"))},"B");YDi.componentType=HL;var YER=_.K(function(O){var x=void 0,e=void 0,l=function(){var Q;return((Q=O.fontSizeMultiplier)==null?0:Q.call(O))?O.heightPx()*O.fontSizeMultiplier():O.heightPx()},C=_.aw(function(){if(!O.numberText())return[];
var Q,L,k=((Q=O.forceRollUp)==null?void 0:Q.call(O))||!e||!((L=O.numberValue)==null?0:L.call(O))||e<O.numberValue(),M,G=O.numberText();Q=l();L=!((M=O.shouldAnimate)==null||!M.call(O));M=[];var X=0,y=0,Z=(x?x.replace(/\D/g,"").length:0)-(G?G.replace(/\D/g,"").length:0),E=x?x.split(/(\d)/).filter(Boolean):[];for(G=G.split(/(\d)/).filter(Boolean);Z<0;){var P=G[y];M.push({character:P,rollUp:k,marginMultiplier:Q,shouldAnimate:L});y++;dr(P)&&Z++}for(;X<Z;)P=E[X],M.push({previousCharacter:P,rollUp:k,marginMultiplier:Q,
shouldAnimate:L}),X++,dr(P)||Z++;for(;y<G.length;)Z=G[y],P=E[X],dr(Z)===dr(P)?(y++,X++):dr(Z)?(X++,Z=void 0):dr(P)&&(y++,P=void 0),M.push({character:Z,previousCharacter:P,rollUp:k,marginMultiplier:Q,shouldAnimate:L});x=O.numberText();var U;e=(U=O.numberValue)==null?void 0:U.call(O);return M},void 0,"kWiBv");
return _.D("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return O.numberText()?["height: "+l()+"px;","line-height: "+O.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.D(_.HE,{each:C,keyBy:"INDEX"},function(Q){return _.D(uk4,{character:function(){return Q().character},
previousCharacter:function(){return Q().previousCharacter},
marginMultiplier:function(){return Q().marginMultiplier},
rollUp:function(){return Q().rollUp},
shouldAnimate:function(){return Q().shouldAnimate}})}))},"C");
YER.idomCompat=!0;_.Bh4=_.t("web_enable_sink_animated_rolling_character_and_number")?YER:HEN(YDi);var vr3=function(O,x){this.fillAnimation=new Animation(JRn(O),document.timeline);this.strokeAnimation=new Animation(wkV(x),document.timeline)};
vr3.prototype.play=function(){var O,x;(x=(O=this.fillAnimation).play)==null||x.call(O);var e,l;(l=(e=this.strokeAnimation).play)==null||l.call(e)};
vr3.prototype.cancel=function(){var O,x;(x=(O=this.fillAnimation).cancel)==null||x.call(O);var e,l;(l=(e=this.strokeAnimation).cancel)==null||l.call(e)};_.ct=_.K(function(O){var x=O.model;var e=O.pointerDownEvent;var l=O.pointerUpEvent;var C=O.pointerLeaveEvent;var Q=O.hovered;O=_.Q5("yt-touch-feedback-shape");var L=_.Q5("div"),k=_.Q5("div"),M=_.T(_.bk(function(){return(l==null?0:l())||(C==null?0:C())?!1:!(e==null||!e())||!1})),G=M.next().value,X=M.next().value,y=void 0,Z=function(){!y&&k.value&&L.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(y=new vr3(k.value,L.value));
var r;(r=y)==null||r.play()},E=function(){var r;
(r=y)==null||r.cancel()},P=function(){var r;
(r=y)==null||r.cancel()};
_.uo(function(){(l==null?0:l())&&Z()},"bg756c");
_.uo(function(){(e==null?0:e())&&E()},"QAes8c");
_.uo(function(){(C==null?0:C())&&P()},"YaFbrc");
M=_.lk(function(){Z();X(!1)});
var U=_.lk(function(){E();X(!0)}),W=_.lk(function(){P();
X(!1)});
_.YO(function(){if(y){var r;(r=y)==null||r.cancel();y=void 0}});
var z={};G=_.xz("yt-spec-touch-feedback-shape",function(){return SDL(x().color)},function(){return jTL(x().thumbnailSize,!!x().isExtended)},(z["yt-spec-touch-feedback-shape--focused"]=function(){return!!x().focused&&!x().disabled},z["yt-spec-touch-feedback-shape--circular"]=function(){return!!x().circular},z["yt-spec-touch-feedback-shape--down"]=G,z["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!x().triggerEvents},z["yt-spec-touch-feedback-shape--hovered"]=function(){return Q==
null?void 0:Q()},z));
return _.D("yt-touch-feedback-shape",{el:O,class:G,style:_.T7({"margin-top":function(){return x().customTopExtend?"-"+x().customTopExtend+"px":void 0}}),
"on:mousedown":U,"on:mouseup":M,"on:pointerleave":W,"on:touchstart":U,"on:touchend":M,"aria-hidden":!0},_.D(_.F,{cond:function(){return!!x().hoverEffect},
then:function(){return _.D("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.T7({"border-radius":function(){return x().borderRadius},
background:function(){var r;if(r=x().hoverEffect){for(var f=[],u=_.T((r==null?void 0:r.lightingTechniques)||[]),Y=u.next();!Y.done;Y=u.next())switch(Y.value){case 2:var J=Y=void 0,O8=void 0,Xr=void 0;f.push("linear-gradient(180deg, "+((Y=r)==null?void 0:(J=Y.palette)==null?void 0:J.keyLight)+", "+((O8=r)==null?void 0:(Xr=O8.palette)==null?void 0:Xr.background)+")")}var Fr,mL;f.push((Fr=x().hoverEffect)==null?void 0:(mL=Fr.palette)==null?void 0:mL.background);r=f.join(", ")}else r=void 0;return r}})})}}),
_.D("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.T7({"border-radius":function(){return x().borderRadius},
"border-color":function(){var r,f;return(r=x().touchEffect)==null?void 0:(f=r.palette)==null?void 0:f.background}}),
el:L}),_.D("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.T7({"border-radius":function(){return x().borderRadius},
"background-color":function(){var r,f;return(r=x().touchEffect)==null?void 0:(f=r.palette)==null?void 0:f.background}}),
el:k}))},"I");
_.ct.idomCompat=!0;var f64={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 IV=_.E8();IV=IV.toLowerCase();if(_.M$(IV,"android")){var JoD=IV.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);JoD&&parseFloat(JoD[1])<100||IV.match("("+Object.keys(f64).join("|")+")")};var wWR=_.K(function(O){return _.D(_.F,{cond:O.aTagConfig,then:function(x){return _.D(_.Pt,{aTagConfig:x,disabled:O.disabled,className:O.className,style:O.style,title:O.title,ariaLabel:O.ariaLabel,ariaCurrent:function(){var e,l;return((e=O.toggleable)==null?void 0:e.call(O))&&((l=O.toggled)==null?void 0:l.call(O))},
ref:O.ref},O.children)},
else:function(){return _.D("button",{el:_.Y0(O.ref),"on:click":_.lk(function(x){var e;return(e=O.onClick)==null?void 0:e.call(O,x)}),
class:O.className,title:O.title,style:O.style,disabled:O.disabled,"aria-pressed":function(){var x,e;return((x=O.toggleable)==null?0:x.call(O))?!((e=O.toggled)==null||!e.call(O)):void 0},
"aria-label":O.ariaLabel,"aria-disabled":O.visiblyDisabled,"aria-hidden":O.ariaHidden,tabindex:O.tabIndex},O.children)}})},"J"),j6F=_.K(function(O){var x=O.data;
var e=O.hasIconLeading;var l=O.hasIconLeadingTrailing;var C=O.hasIconTrailing;var Q=O.iconButton;var L=O.iconClassName;var k=O.secondaryIconClassName;var M=O.icon;var G=O.secondaryIcon;var X=O.textContentClassName;return _.D(Vt,{className:"",style:"display: inherit; justify-content: center"},_.D(_.F,{debugInstance:"V4z1Uc",cond:function(){return M&&(e()||l()||(Q==null?void 0:Q()))},
then:function(){return _.D(Vt,null,_.D("div",{class:L,"aria-hidden":"true"},M==null?void 0:M()))}}),_.D(_.F,{debugInstance:"ok3btb",
cond:function(){return(x().buttonText||x().animatedTextProps||x().formattedButtonText)&&!(Q==null?0:Q())},
then:function(){return _.D(Vt,null,_.D(SET,{className:X,iconPosition:function(){return x().iconPosition},
text:function(){return x().buttonText},
oneOffCustomTextWrap:function(){return x().oneOffCustomTextWrap},
formattedButtonText:function(){return x().formattedButtonText},
animatedTextProps:function(){return x().animatedTextProps}}))}}),_.D(_.F,{debugInstance:"DO5Rz",
cond:C,then:function(){return _.D(Vt,null,_.D("div",{class:L},M==null?void 0:M()))}}),_.D(_.F,{debugInstance:"bnojSc",
cond:l,then:function(){return _.D(Vt,null,_.D("div",{class:k},G==null?void 0:G()))}}),_.D(_.F,{debugInstance:"HN3kad",
cond:function(){return!x().disabled&&!0},
then:function(){return _.D(_.ct,{model:function(){var y=x();return{color:y.style==="overlay-dark"?4:y.style==="overlay"?y.type==="filled"?4:3:y.type==="filled"||y.style==="call-to-action-inverse"||y.style==="mono-inverse"?2:1}}})}}))},"K"),SET=_.K(function(O){var x=function(){var e,l;
return((e=O.iconPosition)==null?void 0:e.call(O))==="icon-with-label"||((l=O.oneOffCustomTextWrap)==null?void 0:l.call(O))};
return _.D("div",{class:O.className,"aria-hidden":function(){var e,l,C;return((e=O.ariaHidden)==null?void 0:e.call(O))&&(!((l=O.animatedTextProps)==null||!l.call(O))||!((C=O.formattedButtonText)==null||!C.call(O)))}},_.D(_.KO,null,_.D(_.zn,{when:function(){var e;
return(e=O.animatedTextProps)==null?void 0:e.call(O)}},function(){return _.D(_.Bh4,{numberText:function(){return O.animatedTextProps().numberText},
numberValue:function(){return O.animatedTextProps().numberValue},
heightPx:function(){return O.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return O.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return O.animatedTextProps().shouldAnimate},
forceRollUp:function(){return O.animatedTextProps().forceRollUp}})}),_.D(_.zn,{when:function(){var e;
return(e=O.formattedButtonText)==null?void 0:e.call(O)}},function(){return _.D(_.TT,{text:function(){return Object.assign({},O.formattedButtonText(),{lineBreakMode:x()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":O.formattedButtonText().lineBreakMode,
alignment:x()?"TEXT_ALIGNMENT_CENTER":O.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!x()}})}),_.D(_.zn,{when:function(){var e,l;
return((e=O.iconPosition)==null?void 0:e.call(O))==="icon-with-label"&&((l=O.text)==null?void 0:l.call(O))}},function(){return _.D(_.TT,{text:function(){return{content:O.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.D(_.rz,null,function(){return O.text})))},"L"),NhD=_.K(function(O){return _.D(_.F,{debugInstance:"kM7Sgc",
cond:O.hasLabel,then:function(){var x;return _.D("label",{class:O.className},O.children,(x=O.textContent)==null?void 0:x.call(O))},
else:function(){return O.children}})},"M"),Vt=_.K(function(O){return O.children},"N");var grz=_.K(function(O){var x=_.Y0(),e=_.T(_.Iw(void 0,void 0,"Ug77pc")),l=e.next().value,C=e.next().value;e=_.T(_.Iw(void 0,void 0,"XGf7Zb"));var Q=e.next().value,L=e.next().value;e=_.T(_.Iw(0,void 0,"Ygnx7b"));var k=e.next().value,M=e.next().value;e=_.lk(function(){switch(k()){case 1:M(2);break;case 3:var X,y;(y=(X=x.value).hidePopover)==null||y.call(X);M(0);C(void 0);L(void 0)}});
_.uo(function(){if(O.show()){var X;C((X=O.children)==null?void 0:X.call(O));var y;L((y=O.location)==null?void 0:y.call(O));switch(k()){case 0:var Z,E;(E=(Z=x.value).showPopover)==null||E.call(Z);M(1);break;case 3:M(1);var P,U;(U=(P=x.value).hidePopover)==null||U.call(P);var W,z;(z=(W=x.value).showPopover)==null||z.call(W)}}else switch(k()){case 2:M(3);break;case 1:var r,f;(f=(r=x.value).hidePopover)==null||f.call(r);C(void 0);L(void 0);M(0)}},"lOyibf");
_.YK(function(){});
var G={};return _.D("yt-popover",{popover:"manual",el:x,style:_.T7({left:function(){var X;return(X=Q())==null?void 0:X.left},
top:function(){var X;return(X=Q())==null?void 0:X.top},
bottom:function(){var X;return(X=Q())==null?void 0:X.bottom},
right:function(){var X;return(X=Q())==null?void 0:X.right}}),
class:_.xz("ytPopoverComponentHost",O.classNames,(G.ytPopoverComponentHostClosing=function(){return k()===3},G.ytPopoverComponentHostSeeThrough=function(){var X;
return((X=O.seeThrough)==null?void 0:X.call(O))===!0},G)),
"on:animationend":e},l)},"P");var $dd={left:"0px",right:"auto",top:"0px",bottom:"auto"},i4$=function(){var O=this;this.registerTooltipElement=function(e){var l;O.tooltipElement=(l=e.querySelector("yt-popover"))!=null?l:void 0};
var x=_.T(_.Iw(void 0,void 0,"z4iHWd"));this.state=x.next().value;this.setState=x.next().value;x=_.T(_.Iw(void 0,void 0,"uKDcaf"));this.schedulerJobID=x.next().value;this.setSchedulerJobID=x.next().value},CT8=function(O,x){var e=AI,l=_.vn.addJob(function(){var C=OEN(e,O,x);
e.setState({text:x.text,location:C,anchor:O,offset:x.offset})},4,x.delay);
e.setSchedulerJobID(l)},QiW=function(){var O=AI,x=O.schedulerJobID();
x&&(_.vn.cancelJob(x),O.setSchedulerJobID(void 0));O.setState(void 0)};
i4$.prototype.notify=function(O,x){var e;((e=this.state())==null?void 0:e.anchor)===O&&(e=OEN(this,O,x),this.setState({text:x.text,location:e,anchor:O,offset:x.offset}))};
var OEN=function(O,x,e){var l=x.getBoundingClientRect();x=window.innerWidth;var C=window.innerHeight,Q=e.location,L=e.offset;e=e.text;if(O=O.tooltipElement){var k=getComputedStyle(O);O=k.font;var M=kz(k.lineHeight),G=kz(k.paddingLeft),X=kz(k.paddingRight),y=kz(k.paddingTop);k=kz(k.paddingBottom);var Z=document.createElement("canvas").getContext("2d");Z.font=O;e={width:Z.measureText(e).width+G+X,height:M+y+k}}else e=void 0;O=e;if(!O)return $dd;e=O.width;O=O.height;G=L+O;y=L+e;M=l.top>=G;G=C-l.bottom>=
G;X=l.left>=y;y=x-l.right>=y;k=Q;switch(Q){case "top":!M&&G&&(k="bottom");break;case "bottom":!G&&M&&(k="top");break;case "left":!X&&y&&(k="right");break;case "right":!y&&X&&(k="left")}switch(k){case "top":Q=l.left+l.width/2-e/2;l=l.top-O-L;break;case "bottom":Q=l.left+l.width/2-e/2;l=l.bottom+L;break;case "left":Q=l.left-e-L;l=l.top+l.height/2-O/2;break;case "right":Q=l.right+L;l=l.top+l.height/2-O/2;break;default:Q=l.left+l.width/2-e/2,l=l.bottom+L}L=Object.assign({},$dd);Q+e>x?(L.right="0px",L.left=
"auto"):(L.left=Math.round(Math.max(0,Q)+window.scrollX)+"px",L.right="auto");l+O>C?(L.bottom="0px",L.top="auto"):(L.top=Math.round(Math.max(0,l)+window.scrollY)+"px",L.bottom="auto");return L};var AI;AI=new i4$;_.xFF=_.K(function(){var O=_.aw(function(){var e;return(e=AI.state())==null?void 0:e.text},void 0,"jgLmfd"),x=_.aw(function(){var e;
return(e=AI.state())==null?void 0:e.location},void 0,"zV1Udb");
return _.D("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Y0(AI.registerTooltipElement),"aria-hidden":"true"},_.D(grz,{classNames:"ytTooltipContainerContent",location:x,show:function(){return!!O()},
seeThrough:!0},O))},"Q");var K88=M4("stamper-context");_.pd=_.K(function(O){var x=O.data;var e=O.icon;var l=O.iconName;var C=O.animateIcon;var Q=O.secondaryIcon;var L=O.secondaryIconName;var k=O.focusedOverride;var M=O.clientOnlyWizTooltipsEnabled;TQs();var G=NZL(x),X=G.size,y=G.style;O=G.disabled;var Z=G.onTap,E=G.alignByText,P=G.aTagConfig,U=G.customColors,W=G.segmentedPosition,z=G.toggled,r=G.toggleable,f=G.accessibilityLabel,u=G.onToggle,Y=G.iconPosition,J=G.oneOffCustomTextWrap,O8=G.disableTextEllipsis,Xr=G.disableBackdropFilter,Fr=G.tooltipText,
mL=G.ariaHidden,Zn=G.tabIndex,q$=G.buttonText,KV=G.formattedButtonText,VN=G.animatedTextProps,Pd=G.onClickRateLimitMs,f2=OTr(x,e,Q,l,L,k,C),p2=f2.type;e=f2.shouldFocus;l=f2.hasIconLeading;C=f2.hasIconTrailing;var OT=f2.hasIconLeadingTrailing,Gp=f2.hasIconOnly;Q=f2.hasIconOnly40;var zp=f2.hasIconWithLabel;L=f2.iconButton;var m3=f2.visiblyDisabled;k=f2.overrideSmallSizeIcon;G=f2.iconToRender;f2=f2.secondaryIconToRender;var E4=_.T(bT8(Fr)).next().value,Xw=function(tJ){Z==null||Z(tJ);r()&&(u==null||u(tJ))},
Tr=_.aw(function(){return Pd==null?void 0:Pd()},void 0,"wrF7V"),QR=_.aw(function(){return Tr()?qrT(Xw,Tr()):Xw},void 0,"fG5dyf"),ET={},Q$={};
return _.D(NhD,{className:_.xz("yt-spec-button-shape-with-label",(ET["yt-spec-button-shape-with-label--is-overlay"]=function(){return y()==="overlay"||y()==="overlay-dark"},ET)),
hasLabel:zp,textContent:function(){return _.D(SET,{text:q$,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:J,iconPosition:Y,formattedButtonText:KV,animatedTextProps:VN})}},_.D(wWR,{aTagConfig:P,
className:_.xz("yt-spec-button-shape-next",function(){return xUN(p2())},function(){return m3()?void 0:eTr(y())},function(){return lFN(X())},(Q$["yt-spec-button-shape-next--disabled"]=m3,Q$["yt-spec-button-shape-next--focused"]=e,Q$["yt-spec-button-shape-next--icon-trailing"]=C,Q$["yt-spec-button-shape-next--icon-leading"]=l,Q$["yt-spec-button-shape-next--icon-leading-trailing"]=OT,Q$["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return OT()&&!(q$()||KV())},Q$["yt-spec-button-shape-next--icon-button"]=
function(){return Gp()||zp()},Q$["yt-spec-button-shape-next--icon-only-default"]=Q,Q$["yt-spec-button-shape-next--align-by-text"]=E,Q$["yt-spec-button-shape-next--segmented-start"]=function(){return W()==="start"},Q$["yt-spec-button-shape-next--segmented-end"]=function(){return W()==="end"},Q$["yt-spec-button-shape-next--override-small-size-icon"]=k,Q$["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=J,Q$["yt-spec-button-shape-next--disable-text-ellipsis"]=O8,Q$["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Xr()&&!_.t("web_disable_backdrop_filter")},Q$)),
style:function(){var tJ=U();if(tJ){var CQ=tJ.color;var hS=tJ.backgroundColor;tJ=tJ.borderColor;var JJ="";CQ&&(JJ+="color: "+CQ+";");hS&&(JJ+="background-color: "+hS+";");tJ&&(JJ+="border-color: "+tJ+";");CQ={style:JJ}}else CQ={};return CQ.style},
onClick:function(tJ){QR()(tJ)},
disabled:O,ariaLabel:f,toggleable:r,toggled:z,title:function(){return(M==null?0:M())||!Fr()?"":Fr()},
visiblyDisabled:m3,ariaHidden:mL,tabIndex:Zn,ref:function(tJ){(M==null?0:M())&&E4(tJ)}},_.D(j6F,{data:x,
hasIconLeading:l,hasIconLeadingTrailing:OT,hasIconTrailing:C,iconButton:L,icon:G,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:f2})))},"S");
_.pd.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.RV=_.K(function(O){var x=O.data;var e=O.className;var l=O.style;var C=O.useOutlinedIcon;var Q=O.buttonOverrides;var L=O.animatedTextProps;var k=O.onClick;var M=O.target;var G=_.Q5("button-view-model",function(u){u.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var Y=x().targetId;Y&&_.KUz(_.KL(),Y,u);return function(){ryz(_.KL(),u)}}),X=function(){return x().iconName},y=_.Dl(function(u){a:{var Y=x().entityKey,J=x().buttonEntitySelectorType;
if(J&&Y)switch(J){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":u=(u=_.ee(u,Y))?{isHidden:u.adsState==="ADS_STATE_NONE"||u.adsState==="ADS_STATE_UNKNOWN"}:void 0;break a;default:u={isHidden:!1};break a}u=void 0}return u}),Z,E=(Z=_.GG().resolve(_.D0(_.rP)))==null?void 0:Z(),P=function(){var u=x();
var Y=Q==null?void 0:Q(),J=L==null?void 0:L(),O8=M==null?void 0:M();if(u){var Xr=FEi(u.type);var Fr=!!u.title||!!u.titleFormatted;var mL=!(!u.iconName&&!u.iconImage);Fr=mL&&!Fr?"icon-only":mL?u.iconTrailing||u.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Fr==="icon-only-40"&&(Xr="text");var Zn;mL=(Zn=Y==null?void 0:Y.state)!=null?Zn:XB8(u.state);var q$,KV=(q$=Y==null?void 0:Y.disabled)!=null?q$:u.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||u.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.t("web_button_vm_refactor_disabled")){var VN;KV=(VN=Y==null?void 0:Y.disabled)!=null?VN:mL==="disabled"}J=J&&J.numberText&&!isNaN(Number(J.numberValue))?J:void 0;q$=Object;VN=q$.assign;Zn=u.title;var Pd=u.titleFormatted,f2=u.accessibilityText,p2=Gfw(u.style),OT=ofL(u.buttonSize);O8=DUL(u,G,KV,k,O8);KV=KV&&!u.onDisabledTap;var Gp=Agm(u,G),zp=u.customFontColor,m3=u.customBackgroundColor;var E4=u.customBorderColor;var Xw=u.customDarkThemeFontColor,Tr=u.customDarkThemeBackgroundColor,QR=u.customDarkThemeBorderColor;
zp=E&&Xw?Xw:zp;m3=E&&Tr?Tr:m3;E4=E&&QR?QR:E4;E4={color:zp?_.aF(zp):void 0,backgroundColor:m3?_.aF(m3):void 0,borderColor:E4?_.aF(E4):void 0};u=VN.call(q$,{},{buttonText:Zn,formattedButtonText:Pd,animatedTextProps:J,accessibilityLabel:f2,style:p2,type:Xr,state:mL,size:OT,iconPosition:Fr,onTap:O8,disabled:KV,aTagConfig:Gp,customColors:E4,tooltipText:u.tooltip},Y)}else u={style:"mono",type:"text",state:"active",size:"M"};u.focused=z();return u},U=function(){return $FW(P(),!!x().iconName)};
O=_.T(_.Iw(!1,void 0,"yZ8hab"));Z=O.next().value;var W=O.next().value,z=Z;O=_.lk(function(){var u=_.GG().resolve(_.D0(_.qL));u&&W(u.isKeyBoardInUse());return!1});
Z=_.lk(function(){W(!1);return!1});
_.uo(function(){var u,Y=_.q(x==null?void 0:(u=x())==null?void 0:u.onVisible,_.VG);Y&&_.Rl(Y,{disableClickTracking:!0})},"G9MlKd");
var r=function(){var u;return(x==null?0:(u=x())==null?0:u.iconImage)?{sources:[x().iconImage]}:void 0},f=_.t("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.D("button-view-model",{el:G,class:_.xz("ytSpecButtonViewModelHost",e),"on:focusin":O,"on:focusout":Z},_.D(_.F,{cond:function(){var u,Y;return!((Y=x().entityKey&&x().buttonEntitySelectorType&&((u=y())==null?void 0:u.isHidden))!=null&&Y)},
then:function(){return _.D(_.F,{cond:r,then:function(u){return _.D(_.pd,{data:P,icon:function(){return _.D(_.n_,{data:u,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:f})},
else:function(){return _.D(_.pd,{data:P,icon:function(){return _.D(_.L7,{icon:X,active:function(){return(C==null?0:C())?!1:P().toggled},
animateIcon:function(){var u;return!!(l==null?0:(u=l())==null?0:u.animateIcon)},
size:U})},
clientOnlyWizTooltipsEnabled:f})}})}}))},"U");
_.RV.idomCompat={callbacks:{onClick:!0}};_.wP(_.K(function(O){return _.D("yt-button-view-model",{id:O.id,class:_.xz(O.scopingClassName,O.classes),icon:function(){var x;return(x=O.icon)==null?void 0:x.call(O)},
"dialog-dismiss":function(){var x;return((x=O.dialogDismiss)==null?0:x.call(O))?"":void 0}},_.D(_.RV,{data:function(){var x;
return(x=O.data)==null?void 0:x.call(O)},
className:function(){var x;return(x=O.className)==null?void 0:x.call(O)},
style:function(){var x;return(x=O.style)==null?void 0:x.call(O)},
useOutlinedIcon:function(){var x;return(x=O.useOutlinedIcon)==null?void 0:x.call(O)},
buttonOverrides:function(){var x;return(x=O.buttonOverrides)==null?void 0:x.call(O)},
animatedTextProps:function(){var x;return(x=O.animatedTextProps)==null?void 0:x.call(O)},
onClick:function(x){var e;return(e=O.onClick)==null?void 0:e.call(O,x)}}))},"V"),"yt-button-view-model",{props:{data:_.Ld,
className:_.Ld,style:_.Ld,useOutlinedIcon:_.Ld,buttonOverrides:_.Ld,animatedTextProps:_.Ld,onClick:_.vs,scopingClassName:_.Ld,id:_.Ld,icon:_.Ld,dialogDismiss:_.Ld,classes:_.Ld,target:_.vs}});_.wP(_.K(function(O){var x=O.data;var e=O.id;var l=O.className;var C=O.iconName;var Q=O.animateIcon;var L=O.secondaryIconName;O=_.T(_.Iw(!1,void 0,"TtJl8"));var k=O.next().value,M=O.next().value,G=function(){var y=_.GG().resolve(_.D0(_.qL));y&&M(y.isKeyBoardInUse())},X=function(){M(!1)};
O=_.Q5("yt-button-shape",function(y){if(_.GG().resolve(_.D0(_.qL)))return y.addEventListener("focusin",G),y.addEventListener("focusout",X),function(){y.removeEventListener("focusin",G);y.removeEventListener("focusout",X)}});
return _.D("yt-button-shape",{el:O,id:e,class:l},_.D(_.F,{cond:x,then:function(){return _.D(_.pd,{data:x,iconName:C,secondaryIconName:L,focusedOverride:k,animateIcon:Q})}}))},"W"),"yt-button-shape",{props:{data:_.Ld,
id:_.Ld,className:_.Ld,iconName:_.Ld,animateIcon:_.Ld,secondaryIconName:_.Ld,clientOnlyWizTooltipsEnabled:_.Ld,disableUpgrade:_.Ld},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var UJ=function(){var O=_.a.apply(this,arguments)||this;O.isGoalActive=!0;return O};
_.c(UJ,_.a);UJ.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
UJ.prototype.progressBarChanged=function(){var O=_.$U(this.hostElement).querySelector("#progress-bar-progress"),x,e,l,C=(l=Number((x=this.creatorGoalState)==null?void 0:x.currentGoalCount)/Number((e=this.creatorGoalState)==null?void 0:e.totalGoalCount)*100)!=null?l:0,Q;O.style.width=((Q=Math.min(C,100))!=null?Q:0)+"%"};
UJ.prototype.goalStateChanged=function(){var O;this.isGoalActive=((O=this.creatorGoalState)==null?void 0:O.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var x;O={"--yt-progress-bar-color":jWL((x=this.creatorGoalState)==null?void 0:x.progressBarColor)};_.lH(this.hostElement,O)};
UJ.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Dy.Object.defineProperties(UJ.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var O;return this.isGoalActive&&!((O=this.creatorGoalState)==null||!O.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.creatorGoalState)==null?0:O.endTimestampMs){var x;O=Number((x=this.creatorGoalState)==null?void 0:x.endTimestampMs)/1E3;return{seconds:String(O)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.creatorGoalState)==null?0:O.themedTargetImage){var x;O=_.q((x=this.creatorGoalState)==null?void 0:x.themedTargetImage,iz3);return this.isAppDarkTheme()?O==null?void 0:O.imageDark:O==null?void 0:O.imageLight}}}});
_.Dy.Object.defineProperties(UJ,{template:{configurable:!0,enumerable:!0,get:function(){return a6T()}}});
UJ.prototype.goalStateChanged=UJ.prototype.goalStateChanged;UJ.prototype.progressBarChanged=UJ.prototype.progressBarChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],UJ.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);
_.B([_.R({selectorArgs:["data.creatorGoalEntityKey"],selector:function(O,x){return _.xE(O.entities,"creatorGoalEntity",x)}}),
_.v("design:type",Object)],UJ.prototype,"creatorGoalState",void 0);_.B([_.R(),_.v("design:type",Object)],UJ.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],UJ.prototype,"isGoalActive",void 0);_.B([_.p("creatorGoalState","isGoalActive"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],UJ.prototype,"shouldShowCountdown",null);_.B([_.p("creatorGoalState"),_.v("design:type",Object),_.v("design:paramtypes",[])],UJ.prototype,"endTimestamp",null);
_.B([_.p("creatorGoalState"),_.v("design:type",Object),_.v("design:paramtypes",[])],UJ.prototype,"targetIconThemedImage",null);_.B([_.T1("creatorGoalState.currentGoalCount"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],UJ.prototype,"progressBarChanged",null);_.B([_.T1("creatorGoalState.creatorGoalState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],UJ.prototype,"goalStateChanged",null);
_.B([_.Va({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],UJ);_.n(UJ,"yt-creator-goal-progress-flow-view-model",function(){return a6T()},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var eDp;var lj4;var aV=function(){return _.a.apply(this,arguments)||this};
_.c(aV,_.a);aV.prototype.attached=function(){var O,x,e;if(this==null?0:(O=this.data)==null?0:(x=O.pdgPurchasedBumperLoggingDirectives)==null?0:(e=x.loggingDirectives)==null?0:e.trackingParams){var l,C,Q;Ef8(this==null?void 0:(l=this.data)==null?void 0:(C=l.pdgPurchasedBumperLoggingDirectives)==null?void 0:(Q=C.loggingDirectives)==null?void 0:Q.trackingParams)}};
aV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],aV.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],aV.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],aV);
_.n(aV,"yt-live-chat-item-bumper-view-model",function(){if(lj4===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;eDp===void 0&&(eDp=document.createElement("template"));var l=eDp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);lj4=O}O=lj4;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var CSR;var QT4;_.n7=function(O,x){this.data=O;this.actions=x;this.data=O;this.actions=x};
_.mu=function(){};_.mP={};_.mP.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(O,x){tn7(this.hostElement,O,x)},
getNavigationEndpointPopupAction:function(O){return qzr(O,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(O,x){PTr(this.hostElement,O,x,this.openPopupConfig)}};var WE$=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.sJ={};
_.sJ.YtEndpointBehavior=[_.mP.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.wz("openPopupConfig");(this.useClickHandler=_.SS("useClickHandler",!1))?this.hostElement.addEventListener("click",Cs(this,this.onEndpointClick_)):(vD(this.hostElement,"tap",Cs(this,this.onEndpointTap_)),vD(this.hostElement,"touchend",Cs(this,this.onEndpointTouchEnd_)));vD(this.hostElement,"touchstart",Cs(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Cs(this,this.onEndpointTapStart_))},
onEndpointClick_:function(O){Vn$(this.hostElement,O,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(O){var x=this.hostElement,e=this.openPopupConfig,l=this.disableCommandHandlerOverride;l=l===void 0?!1:l;var C=cgr(O);if(C){C.href&&hU(C.href);var Q=O.detail;var L=Q.sourceEvent;Q=Q.preventer;L=L.button!==void 0?L.button===0&&!G7(L):Q?!G7(Q):!0;C.data&&L&&IF8(x,C,O,e,l)}},
onEndpointTouchEnd_:function(O){G7(O)||cgr(O)&&O.preventDefault()},
onEndpointTapStart_:function(O){mU8(O)}}];_.Wt={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(O){for(var x=_.iU.getInstance(),e=_.T(Object.keys(O)),l=e.next();!l.done;l=e.next()){var C=l.value;l=O[C];if(this&&this[l]){var Q=x.actionRoutingMap.get(C);Q||(Q=new Map,x.actionRoutingMap.set(C,Q));x.registerActionHandler(this,C,this[l].bind(this),Q)}else C=Error("ld"),C.params=l,_.jS(C)}},
unregisterActionMap:function(O){_.lD(_.iU.getInstance(),O,this)}}]};var o2=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_"+(_.t("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.t("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.t("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:_.t("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:_.t("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:_.t("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Xn;var yI=new Map;var dU7=window.matchMedia("(forced-colors: active)").matches;var bED;var TZR;var L7J=new _.iR("LOTTIE_LOADER_TOKEN");_.hc=_.K(function(O){var x=O.data;var e=O.className;var l=O.animationName;var C=O.animationRef;var Q=O.elRefForInterop;var L=_.bD("lottie-component"),k;_.YO(function(){var G;return void((G=k)==null?void 0:G.destroy())});
var M;_.uo(function(){var G=_.vL(l);if(G!==M){M=G;var X=Object.assign({},{animationName:G,animationRef:_.vL(C)},_.vL(x));try{_.GG().resolve(L7J)().then(function(E){var P;(P=k)==null||P.destroy();var U,W;P=(W=Q==null?void 0:(U=Q())==null?void 0:U.value)!=null?W:L.value;U=X.animationRef;W=X.listeners;E=E.loadAnimation(Object.assign({},{container:P},X.animationConfig));U&&(U.lottieEl=E);if(W)for(P=_.T(Object.entries(W)),U=P.next();!U.done;U=P.next())W=_.T(U.value),U=W.next().value,(W=W.next().value)&&
E.addEventListener(U,W);k=E})}catch(E){G=E;
var y="LottieComponent error.";G.message&&(y+=" Original description: "+G.message);_.JG(G,y);_.ft(G);var Z;((Z=X.listeners)==null?0:Z.error)&&X.listeners.error(G)}}},"nrJISd");
return _.D(Mhm,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.D("lottie-component",{class:_.xz("ytLottieComponentHost",e),el:L})}})},"Y");_.wP(_.K(function(O){return _.D("ytd-lottie-player",{id:O.id,hidden:O.hidden,class:O.className,"aria-label":O.ariaLabel,style:"display: block;"},_.D(_.hc,{data:O.data,animationName:function(){var x;return((x=O.data().animationConfig)==null?void 0:x.name)||""},
animationRef:function(){return O.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.Ld,
id:_.Ld,hidden:_.Ld,className:_.Ld,ariaLabel:_.Ld}});var zT=function(){var O=_.a.apply(this,arguments)||this;O.animationRef={};O.delhiIconsEnabled=_.t("enable_web_delhi_icons");return O};
_.c(zT,_.a);_.b=zT.prototype;
_.b.handlePropertyChange=function(){var O=this.animatedIcon,x=this.active,e=this.isDarkTheme;if(O){var l=this.previousActive!==x;this.previousActive=x;this.animationRef.lottieEl?l&&this.toggleAnimation(x,O.totalFrames):x?this.initializeAnimationAsToggled(O.lottiePlayerProps,O.totalFrames):this.initializeAnimationAsUntoggled(O.lottiePlayerProps);O.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=O.type;this.lottiePlayerProps=this.computeLottiePlayerProps(O,e)}};
_.b.computeLottiePlayerProps=function(O,x){var e=this.deepCloneLottiePlayerProps(O);x?(x=O.nameDarkTheme,O=O.pathDarkTheme):(x=O.name,O=O.path);e.animationConfig.name=x;(x=yI.get(O))?e.animationConfig.animationData=x:e.animationConfig.path=O;return e};
_.b.initializeAnimationAsToggled=function(O,x){O.animationConfig.initialSegment=[x-1,x]};
_.b.initializeAnimationAsUntoggled=function(O){O.animationConfig.initialSegment=void 0};
_.b.toggleAnimation=function(O,x){if(O){var e;(e=this.animationRef.lottieEl)==null||e.playSegments([0,x],!0)}else{var l;(l=this.animationRef.lottieEl)==null||l.playSegments([0,1],!0)}};
_.b.deepCloneLottiePlayerProps=function(O){var x=Object.assign({},O.lottiePlayerProps.animationConfig);O=Object.assign({},O.lottiePlayerProps);O.animationConfig=x;return O};
zT.prototype.handlePropertyChange=zT.prototype.handlePropertyChange;_.B([_.R(),_.v("design:type",Object)],zT.prototype,"animatedIcon",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],zT.prototype,"active",void 0);_.B([_.R(),_.v("design:type",Boolean)],zT.prototype,"isDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],zT.prototype,"animatedIconType",void 0);_.B([_.R(),_.v("design:type",Boolean)],zT.prototype,"previousActive",void 0);
_.B([_.R(),_.v("design:type",Object)],zT.prototype,"lottiePlayerProps",void 0);_.B([_.R(),_.v("design:type",Object)],zT.prototype,"animationRef",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],zT.prototype,"delhiIconsEnabled",void 0);_.B([_.T1("animatedIcon","active","isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zT.prototype,"handlePropertyChange",null);_.B([_.Va({is:"yt-animated-icon",disableElementRegistration:!0})],zT);
_.n(zT,"yt-animated-icon",function(){if(TZR===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;bED===void 0&&(bED=document.createElement("template"));var l=bED;e.call(x,l.content.cloneNode(!0),O.content.firstChild);TZR=O}O=TZR;return O},{mode:2});var kvL;var ARL;var fF$=_.K(function(O){var x=_.bD("span"),e=BE(function(){return{value:null,cancelled:!1}});
_.YO(function(){e.cancelled=!0});
var l=_.aw(O.data,{equals:function(C,Q){return C.iconName===Q.iconName&&C.iconStyle===Q.iconStyle&&C.iconSize===Q.iconSize&&C.iconSetName===Q.iconSetName&&C.iconSelected===Q.iconSelected}},"AoOoyf");
_.uo(function(){var C,Q=(C=O.options)==null?void 0:C.call(O);vfV(x,e,l(),Q)},"Tie9e");
return _.D("span",{class:"yt-icon-shape",el:x})},"aa");
fF$.idomCompat=!0;var ic7=["youtube_fill","youtube_outline"];var Mrk=new _.UF({type:"iconset",value:void 0}),rg=function(){var O=_.a.apply(this,arguments)||this;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.iconName="";O.iconsetName="yt-icons";O.iconset=null;O.missingIconSet=!1;O.iconType=null;O.iconShapeDataSignal=_.Iw(void 0,void 0,"ZwOn2");O.renderingOptionsSignal=_.Iw({iconWidth:"100%",iconHeight:"100%",iconFilter:O.iconFilter,iconColor:O.gradientColor},void 0,"UgqF6d");O.wizHasRendered=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return O};
_.c(rg,_.a);rg.prototype.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O)};
rg.prototype.handlePropertyChange=function(){var O=this,x,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z;return _.A(function(r){switch(r.nextAddress){case 1:if(x=!O.icon&&!O.iconName||!O.isAttached)return r.return();e=O;l=e.icon;C=e.size;Q=e.defaultToFilled;L=e.active;k=e.targetContainer;O.toggleContainerClass(k);_.t("kevlar_use_wil_icons")&&l&&(M=qUr(l),O.iconType=M.length?M[1]:null);if(l){r.jumpTo(2);break}O.iconsetName="";O.iconName="";return r.yield(O.renderIcon(k,l),3);case 3:return r.return();case 2:G=DFF(l);
X=qUr(G);X.length&&(O.iconsetName=X[0],O.iconName=X[1]);if(!_.t("kevlar_use_wil_icons")){r.jumpTo(4);break}y=rg;Z=Gv$;E=O.iconType;P=O.active;U=O.defaultToFilled;W=O.size;z=O.iconsetName;return r.yield(F7k(),6);case 6:return r.yield(Z.call(y,E,P,U,W,z,r.yieldResult),5);case 5:O.iconShapeData=r.yieldResult;case 4:if(O.shouldRenderIconShape(k)){r.jumpTo(7);break}return r.yield(O.determineIconSet(G,L,Q,C,k),7);case 7:return r.yield(O.renderIcon(k,l),0)}})};
rg.prototype.toggleContainerClass=function(O){O?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var DFF=function(O){return!_.t("default_to_innertube_icon")||O.indexOf(":")>0?O:_.x0(O)};
_.b=rg.prototype;_.b.determineIconSet=function(O,x,e,l){var C=this;return _.A(function(Q){return Q.nextAddress==1?_.t("kevlar_system_icons")||_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.wz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?Q.yield(C.switchToYtSysIconset(O,x,e,l),3):Q.jumpTo(2):Q.nextAddress!=2?Q.return():Q.yield(C.useYtSysIconsetForMissingIcons(O,x,e,l),0)})};
_.b.switchToYtSysIconset=function(O,x,e,l){var C=this,Q,L,k,M,G,X,y;return _.A(function(Z){switch(Z.nextAddress){case 1:if(!O||C.iconsetName!=="yt-icons"&&C.iconsetName!=="yt-sys-icons"){Z.jumpTo(0);break}Q=qUr(O);L=Q[1];L=_.sWr(L);_.t("enable_polymer_icons_replace_underscores_dash")&&L.includes("_filled")&&(L=L.replace(/_filled/g,"-filled"));return Z.yield(Ox(L,!0),3);case 3:return k=Z.yieldResult,Z.yield(Ox(L,!1),4);case 4:if((M=Z.yieldResult)||x&&k)C.iconsetName="yt-sys-icons";C.iconName=C.getIconName(L,
x,e,M,k);if(l===24){Z.jumpTo(0);break}G="yt-sys-icons"+l+":"+C.iconName;return Z.yield(Ox(G,!1,!0),6);case 6:return X=Z.yieldResult,Z.yield(Ox(G,!0,!0),7);case 7:y=Z.yieldResult;C.iconName=C.getIconName(L,x,e,X,y);if(!x&&X||x&&y)C.iconsetName="yt-sys-icons"+l;_.Ra(Z)}})};
_.b.getIconName=function(O,x,e,l,C){O.includes("-filled")&&(O=O.replace("-filled",""));return C&&(x||e)?O+"-filled":O};
_.b.useYtSysIconsetForMissingIcons=function(O,x,e,l){var C=this,Q,L;return _.A(function(k){if(k.nextAddress==1)return C.iconsetName!=="yt-icons"?k.jumpTo(0):k.yield(Ox(C.iconName,!1,!1,!0),3);if(k.nextAddress!=4)return Q=k.yieldResult,k.yield(Ox(C.iconName,!1),4);L=k.yieldResult;if(Q||!L)return k.jumpTo(0);C.iconsetName="yt-sys-icons";return k.yield(C.switchToYtSysIconset(O,x,e,l),0)})};
_.b.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var F7k=function(){return _.A(function(O){try{return O.return(_.GG().resolve(_.ef))}catch(x){return O.return(new Promise(function(e){_.O2().parkOrScheduleJob(function(){e(_.GG().resolve(_.ef))},2,"ci")}))}})},Gv$=function(O,x,e,l,C,Q){l=l===void 0?24:l;
if(O){O=O.toLowerCase();var L=O.endsWith("_filled")||O.endsWith("-filled");x={iconName:O,iconStyle:(x===void 0?0:x)||(e===void 0?0:e)||L?"youtube_fill":"youtube_outline",iconSize:l,iconSetName:C===void 0?"yt-icons":C};e=!!Q.resolveIcon(x);e||(x.iconSize=void 0,e=!!Q.resolveIcon(x));!e&&L&&(x.iconName=O.substring(0,O.length-7),x.iconSize=l,e=!!Q.resolveIcon(x),e||(x.iconSize=void 0,e=!!Q.resolveIcon(x)));e||(x.iconStyle=void 0,e=!!Q.resolveIcon(x));e||_.ft(new _.ry("Icon not supported",{iconName:x.iconName,
iconStyle:x.iconStyle,iconSize:x.iconSize,iconType:O}));return e?x:void 0}};
_.b=rg.prototype;_.b.shouldRenderIconShape=function(O){if(!_.t("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;O=this.getContainer(O);return!nfr(O,this.icon)};
_.b.renderIcon=function(O,x){var e=this,l,C,Q,L,k,M,G,X;return _.A(function(y){switch(y.nextAddress){case 1:if(x&&e.icon!==x)return y.return();l=e.getContainer(O);C=nfr(l,e.icon);if(e.shouldRenderIconShape(O)&&e.iconType)return e.applyIconShape(C,l),y.return();e.removeIconShape();if(!l)return y.return();e.iconName===""&&e.iconset&&l&&(e.removeStaticIcon(e.iconset,l),C&&e.removeAnimatedIcon(l));if(e.iconName===""&&e.iconset||!e.iconsetName||!Mrk)return y.return();e.iconset=Mrk.byKey(e.iconsetName);
if(!e.iconset)return e.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Qa(e,e.onIconsetAdded)),y.return();e.missingIconSet&&(e.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Qa(e,e.onIconsetAdded)));L=(Q=C||e.isAnimatedIcon?HTi(e.icon):void 0)&&!Q.lazyLoad;M=Q&&((k=Q)==null?void 0:k.lazyLoad)&&(Q.lottiePlayerProps.animationConfig.animationData?!0:yI.get(e.isDarkTheme?Q.pathDarkTheme:Q.path)?!0:!1);if(L||M)return e.applyAnimatedIcon(l,Q,e.iconset),y.return();if(M||
(G=Q)==null||!G.lazyLoad){y.jumpTo(2);break}X=Yz$(Q,e.isDarkTheme);e.applyStaticIcon(e.iconset,l,e.iconName,O,C);return y.yield(X,3);case 3:return y.yield(e.renderIcon(e.targetContainer,e.icon),4);case 4:return y.return();case 2:e.applyStaticIcon(e.iconset,l,e.iconName,O,C),_.Ra(y)}})};
_.b.getContainer=function(O){var x,e=(x=BeL(this.hostElement))==null?void 0:x.host;x=!!e&&!!e.polymerController;if(!O||x)return O?this.getTargetContainer(O,e):this.hostElement};
_.b.getTargetContainer=function(O,x){var e=_.$U(x).querySelector("#"+O);e||(O=new _.ry("yt-icon container missing",x.is,O),_.BH(O));return e};
_.b.applyStaticIcon=function(O,x,e,l,C){C&&this.removeAnimatedIcon(x);this.removeIconShape();C=C&&!!this.iconType&&!!this.iconShapeData&&_.t("kevlar_use_wil_icons");try{C?this.applyIconShape(!1,x):O.applyIcon(x,e)}catch(Q){this.handleError(Q,l,x)}};
_.b.applyIconShape=function(O,x){this.iconset&&x&&(this.removeStaticIcon(this.iconset,x),O&&this.removeAnimatedIcon(x));O={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var e=_.T(this.iconShapeDataSignal);x=e.next().value;e=e.next().value;var l=_.T(this.renderingOptionsSignal),C=l.next().value;l=l.next().value;e(this.iconShapeData);l(O);if(!this.wizHasRendered)for(this.wizHasRendered=!0,O=_.T(Jg8(x,C)).next().value;O.firstChild;)_.$U(this.hostElement).appendChild(O.firstChild)};
_.b.removeIconShape=function(){if(_.t("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.b.removeStaticIcon=function(O,x){O.removeIcon(x)};
_.b.applyAnimatedIcon=function(O,x,e){this.removeStaticIcon(e,O);this.removeIconShape();var l;e=this.animatedIconElement&&((l=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:l.type)===x.type;if(this.animatedIconElement&&e){this.animatedIconElement.polymerController.animatedIcon=x;var C;((C=this.animatedIconElement)==null?void 0:C.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(O),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=x,this.animatedIconElement.polymerController.active=this.active,_.t("delhi_modern_web_player_icons")?(x=KEr(O,this.icon)&&O.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=x?x.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.t("kevlar_use_wil_icons")?
O.insertBefore(this.animatedIconElement,O.childNodes[0]):(O=_.$U(O),O.insertBefore(this.animatedIconElement,O.childNodes[0]))};
_.b.removeAnimatedIcon=function(O){_.t("kevlar_use_wil_icons")?this.animatedIconElement&&O.contains(this.animatedIconElement)&&O.removeChild(this.animatedIconElement):(O=_.$U(O),this.animatedIconElement&&O.contains(this.animatedIconElement)&&O.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.b.handleError=function(O,x,e){_.JG(O,this.iconName,x,e);x=nfr(e,this.icon);var l=!1;window.location.href.includes("JpymaW6Lh2w")?l=!0:e._svgIcon&&(e=(e=e._svgIcon.parentNode)?e.tagName:"unknown",_.JG(O,e),e==="YT-ICON"&&O.name==="NotFoundError"?l=!0:O.name==="NotFoundError"&&x&&(l=!0));l?_.ft(O):_.BH(O)};
_.Dy.Object.defineProperties(rg,{template:{configurable:!0,enumerable:!0,get:function(){if(ARL===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;
kvL===void 0&&(kvL=document.createElement("template"));var l=kvL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ARL=O}O=ARL;return O}}});
rg.prototype.handlePropertyChange=rg.prototype.handlePropertyChange;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],rg.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",String)],rg.prototype,"icon",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],rg.prototype,"active",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],rg.prototype,"defaultToFilled",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],rg.prototype,"isAnimatedIcon",void 0);
_.B([_.R({value:24}),_.v("design:type",Number)],rg.prototype,"size",void 0);_.B([_.R({value:""}),_.v("design:type",String)],rg.prototype,"targetContainer",void 0);_.B([_.R(),_.v("design:type",Object)],rg.prototype,"animatedIconElement",void 0);_.B([_.R(),_.v("design:type",Object)],rg.prototype,"isDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],rg.prototype,"ariaHidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],rg.prototype,"ariaLabel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],rg.prototype,"role",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],rg.prototype,"tabindex",void 0);_.B([_.R(),_.v("design:type",String)],rg.prototype,"style",void 0);_.B([_.R(),_.v("design:type",String)],rg.prototype,"iconFilter",void 0);_.B([_.R(),_.v("design:type",String)],rg.prototype,"gradientColor",void 0);
_.B([_.T1("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],rg.prototype,"handlePropertyChange",null);_.B([_.Va({is:"yt-icon",noInjection:!0})],rg);var wBr="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),jiw=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Xkp={};Xkp.YtPlaintextBehavior=[_.cg,{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(O){O.preventDefault();O=O.clipboardData.getData("text/plain");document.execCommand("insertText",!1,O)},
preventRichTextFormatting_:function(O){_.Oa&&(O=O.detail.keyboardEvent,O.stopImmediatePropagation(),O.preventDefault())}}];var okd;var yRD;var Ht=function(){var O=_.a.apply(this,arguments)||this;O.ignoreShadyDom=!1;O.hasChange_=!1;O.hasSetTitle_=!1;O.useIOObserverForVisibilityLogging_=_.t("kevlar_use_vimio_behavior")&&_.wz("INNERTUBE_CLIENT_NAME")==="WEB";O.ytFormattedStringObserverHandlerKeys_=void 0;return O};
_.c(Ht,_.a);_.b=Ht.prototype;_.b.created=function(){this.useIOObserverForVisibilityLogging_=_.t("kevlar_use_vimio_behavior")&&_.wz("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.b.ready=function(){_.wz("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_()};
_.b.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.b.detached=function(){this.unobserveIOObservers_()};
_.b.clearContents_=function(){for(var O=this.getRoot(),x=O.lastChild;x&&x.tagName!=="STYLE";){try{O.removeChild(x)}catch(e){break}x=O.lastChild}};
_.b.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var O=_.T(this.ytFormattedStringObserverHandlerKeys_),x=O.next();!x.done;x=O.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(x.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.b.resetForAttributedString=function(){var O=this.getRoot();!O.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),O.appendChild(this.ytAttributedStringElementRef))};
_.b.resetForFormattedString=function(){var O=this.getRoot(),x=O.querySelector("yt-attributed-string");x&&(this.ytAttributedStringElementRef=O.removeChild(x))};
_.b.textChanged=function(){this.textChanged_(this.text)};
_.b.textChanged_=function(O){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!O||!O.runs&&!O.simpleText;if(_.t("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var x=this.hostElement.firstChild;x&&x.nodeName==="FONT";){var e=x;x=x.nextSibling;this.hostElement.removeChild(e)}x=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
e=O.simpleText;var l;!e&&((l=O.runs)==null?void 0:l.length)===1&&this.isSimpleString_(O.runs[0])&&(e=O.runs[0].text);e!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.wz("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(e!==void 0){try{x.textContent=e}catch(C){}x.textContent||(this.isEmpty=!0)}else O=O.runs,e!==void 0&&(O=[{text:e}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),O&&this.updateText_(O),
x.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.b.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)};
_.b.computeAriaLabel_=function(O){return O};
_.b.computeEllipsisTruncateStyling=function(O,x){return O&&!x};
_.b.computeUseAttributedString=function(O){return _.t("web_replace_formatted_with_attributed_string")&&MAs(O)&&!this.disableAttributedString&&!this.enableContentEditable};
_.b.setNodeStyle_=function(O,x){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.t("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?x.removeAttribute("dir"):x.setAttribute("dir","auto");x.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");x.style.color="";var e=null;this.noStyles||(O.bold&&(x.classList.add("bold"),e="bold"),O.deemphasize&&(x.classList.add("deemphasize"),e="deemphasize"),O.italics&&x.classList.add("italic"),
O.strikethrough&&x.classList.add("strikethrough"),O.errorUnderline&&(x.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),O.bracket&&x.classList.add("bracket"),O.textColor&&(x.style.color=_.UA(O.textColor)));e!==x.getAttribute("style-target")&&(e?x.setAttribute("style-target",e):x.removeAttribute("style-target"))};
_.b.setUpVisibilityLogging_=function(O,x){var e=this;this.setNodeTrackingParams_(O,x);var l;((l=x.data)==null?0:l.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(O=this.ytRendererBehavior.visibilityObserver.observe(x,function(C){var Q=e.ytRendererBehavior.getVisibilityLogger();Q&&Q.reportShown(C)},this.ytRendererBehavior.visibilityOptionVisible_),x=this.ytRendererBehavior.visibilityObserver.observe(x,function(C){var Q=e.ytRendererBehavior.getVisibilityLogger();
Q&&Q.reportHidden(C)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(O),this.ytFormattedStringObserverHandlerKeys_.push(x))};
_.b.setNodeTrackingParams_=function(O,x){x.data||(x.data={});if((O=O.loggingDirectives?O.loggingDirectives.trackingParams:null)||x.data.trackingParams)x.data.trackingParams=O};
_.b.computeHasLinkOnly_=function(O){return!(!O||O.length!==1||this.noEndpoints||!O[0].navigationEndpoint)};
_.b.getRoot=function(){var O=this.buildScopeDomOptions();return this.enableContentEditable?_.$U(_.$U(this.hostElement,O).querySelector("[contenteditable]")):_.$U(this.hostElement,O)};
_.b.fixContenteditableScope=function(){var O=function(x){x&&(x.nodeType===1&&x.classList&&(x.classList.add("style-scope"),x.classList.add("yt-formatted-string")),x.childNodes&&x.childNodes.forEach(function(e){O(e)}))};
O(this.getRoot())};
_.b.updateText_=function(O){for(var x=O.length,e=this.getRoot(),l=e.firstChild;l&&l.nodeName==="STYLE";)l=l.nextSibling;for(var C=0;C<x&&l;){var Q=O[C],L=_.t("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)if(l.nodeName==="#text"){l.textContent!=L&&(l.textContent=L);C++;l=l.nextSibling;continue}else break;if(_.q(Q,cs))break;else if(!this.noEndpoints&&Q.navigationEndpoint){if(l.nodeName!=="A")break;this.setDataOnAnchor_(l,
Q.navigationEndpoint)}else if(l.nodeName!=="SPAN")break;this.setNodeStyle_(Q,l);this.setUpVisibilityLogging_(Q,l);l.textContent!=L&&(l.textContent=L);C++;l=l.nextSibling}if(l)for(Q=e.lastChild,l=C?l.previousSibling:null;Q&&Q!=l;){try{e.removeChild(Q)}catch(k){break}Q=e.lastChild}C!==x&&this.addTextNodes_(O,C)};
_.b.addTextNodes_=function(O,x){for(var e=document.createDocumentFragment(),l=O.length;x<l;x++){var C=O[x],Q=_.t("remove_cr_char")&&C.text?C.text.replace("\r",""):C.text;if(this.isSimpleString_(C)&&!this.useMixedDirectionFormattedStrings)e.appendChild(document.createTextNode(Q));else{var L=_.q(C,cs);if(L){if(L.image){var k=document.createElement("img");L.isCustomEmoji||k.classList.add("small-emoji");k.classList.add("emoji");L.isCustomEmoji&&(k.dataset.emojiId=L.emojiId);k.src=_.Sf(L.image.thumbnails,
this.emojiSize);(C=this.get("image.accessibility.accessibilityData.label",L))?k.alt=C:L.shortcuts&&L.shortcuts.length>0?k.alt=L.shortcuts[0]:L.emojiId&&(k.alt=L.emojiId);e.appendChild(k);this.hasEmoji=!0}}else!this.noEndpoints&&C.navigationEndpoint?(k=document.createElement("a"),k.classList.add("yt-simple-endpoint"),k.setAttribute("spellcheck","false"),this.setDataOnAnchor_(k,C.navigationEndpoint)):k=document.createElement("span"),this.setNodeStyle_(C,k),this.setUpVisibilityLogging_(C,k),k.appendChild(document.createTextNode(Q)),
e.appendChild(k)}}this.getRoot().appendChild(e)};
_.b.isSimpleString_=function(O){return(this.noEndpoints||!O.navigationEndpoint)&&!_.q(O,cs)&&(this.noStyles||!(O.bold||O.deemphasize||O.italics||O.strikethrough||O.errorUnderline||O.bracket||O.textColor))&&!O.loggingDirectives};
_.b.getRawText=function(){return _.db(this.text)};
_.b.getFirstRunText=function(){var O;if(((O=this.text)==null?0:O.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.b.setFirstRunText=function(O){var x;((x=this.text)==null?0:x.runs)&&this.text.runs[0]&&(this.text.runs[0].text=O,this.textChanged_(this.text))};
_.b.setDataOnAnchor_=function(O,x){var e=this;!_.t("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(x)||this.isSignalServiceEndpoint_(x)?(O.onclick=this.serviceEndpointHandler_(x),J7(O,"#")):ej8({text:this.text,command:x},function(){F8w(O,x,e.target)})};
_.b.isServiceEndpoint_=function(O){var x;return!((x=_.q(O==null?void 0:O.commandMetadata,_.e6))==null||!x.sendPost)};
_.b.isSignalServiceEndpoint_=function(O){return!!_.q(O,_.xm)};
_.b.serviceEndpointHandler_=function(O){var x=this;return function(e){_.N9(x.hostElement,[O]);e.preventDefault()}};
_.b.overrideAriaLabelChanged_=function(){var O=this.getRoot();this.enableContentEditable&&O&&O.setAttribute("aria-label",this.overrideAriaLabel)};
_.b.enableContentEditableChanged_=function(){var O=this,x=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),x=_.$U(this.hostElement,x),!x.lastChild||x.lastChild instanceof HTMLElement&&x.lastChild.id!=="contenteditable-root"){var e=document.createElement("div");e.id="contenteditable-root";e.setAttribute("contenteditable","true");e.setAttribute("dir","auto");e.onfocus=function(){O.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
x.appendChild(e);this.overrideAriaLabel&&e.setAttribute("aria-label",this.overrideAriaLabel)}}else e=_.iK(this.hostElement).firstChild,e instanceof HTMLElement&&e.id==="contenteditable-root"&&_.$U(this.hostElement,x).removeChild(e)};
_.b.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.b.getNodesForVisibilityLogging_=function(){return _.wC(this.getRoot().childNodes,function(O){var x;return!((x=O.data)==null||!x.trackingParams)})};
_.b.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.b.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var O=this.ytRendererBehavior.getVisibilityLogger();O&&this.getNodesForVisibilityLogging_().forEach(function(x){O.reportShown(x)})}};
_.b.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var O=this.ytRendererBehavior.getVisibilityLogger();O&&this.getNodesForVisibilityLogging_().forEach(function(x){O.reportHidden(x)})}};
_.Dy.Object.defineProperties(Ht.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.t("enable_mixed_direction_formatted_strings")}}});
Ht.prototype.enableContentEditableChanged_=Ht.prototype.enableContentEditableChanged_;Ht.prototype.overrideAriaLabelChanged_=Ht.prototype.overrideAriaLabelChanged_;Ht.prototype.ellipsisTruncateChanged_=Ht.prototype.ellipsisTruncateChanged_;Ht.prototype.textChanged=Ht.prototype.textChanged;_.B([_.V(Xkp.YtPlaintextBehavior),_.v("design:type",Object)],Ht.prototype,"ytPlaintextBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ht.prototype,"text",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"noEndpoints",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"noStyles",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Ht.prototype,"isDarkTheme",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Ht.prototype,"splitLines",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Ht.prototype,"forceDefaultStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Ht.prototype,"ellipsisTruncate",void 0);_.B([_.R(),_.v("design:type",Object)],Ht.prototype,"ignoreShadyDom",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.v("design:type",Boolean)],Ht.prototype,"ellipsisTruncateStyling",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.v("design:type",String)],Ht.prototype,"ariaLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Ht.prototype,"isEmpty",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.v("design:type",Boolean)],Ht.prototype,"hasLinkOnly_",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"hasEmoji",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"disableAttributedString",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"isOverlay",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"linkInheritColor",void 0);
_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"noPreWrap",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"userInput",void 0);_.B([_.R({value:16}),_.v("design:type",Number)],Ht.prototype,"emojiSize",void 0);_.B([_.R(),_.v("design:type",String)],Ht.prototype,"target",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"enableContentEditable",void 0);_.B([_.R(),_.v("design:type",String)],Ht.prototype,"overrideAriaLabel",void 0);
_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"respectHtmlDir",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ht.prototype,"respectLangDir",void 0);_.B([_.p("plaintextOnly"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ht.prototype,"useMixedDirectionFormattedStrings",null);_.B([_.R({computed:"computeUseAttributedString(text)"}),_.v("design:type",Boolean)],Ht.prototype,"useYtAttributedString",void 0);
_.B([_.T1("text"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ht.prototype,"textChanged",null);_.B([_.T1("ellipsisTruncate"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ht.prototype,"ellipsisTruncateChanged_",null);_.B([_.T1("overrideAriaLabel"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ht.prototype,"overrideAriaLabelChanged_",null);
_.B([_.T1("enableContentEditable"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ht.prototype,"enableContentEditableChanged_",null);_.B([_.Va({is:"yt-formatted-string",disableElementRegistration:!0})],Ht);
_.n(Ht,"yt-formatted-string",function(){if(yRD===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;okd===void 0&&(okd=document.createElement("template"));var l=okd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yRD=O}O=yRD;return O});var ZED;var Ek2;var trz;var qD3;var Kd=function(){var O=_.a.apply(this,arguments)||this;O.focused=!1;O.disabled=!1;O.isOverlay=!1;return O};
_.c(Kd,_.a);Kd.prototype.triggerDown=function(){if(!this.disabled){_.Ow(this.hostElement,"down",!0);var O;(O=this.currentAnimation)==null||O.cancel()}};
Kd.prototype.triggerUp=function(){if(!this.disabled){_.Ow(this.hostElement,"down",!1);var O=this.fillElement;var x=this.strokeElement;typeof GroupEffect==="function"?(O=new GroupEffect([JRn(O),wkV(x)]),O=new Animation(O,document.timeline)):O=new vr3(O,x);this.currentAnimation=O;var e;(e=this.currentAnimation)==null||e.play()}};
_.B([_.kX(".stroke"),_.v("design:type",HTMLElement)],Kd.prototype,"strokeElement",void 0);_.B([_.kX(".fill"),_.v("design:type",HTMLElement)],Kd.prototype,"fillElement",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Kd.prototype,"focused",void 0);_.B([_.R(),_.v("design:type",Object)],Kd.prototype,"disabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Kd.prototype,"isOverlay",void 0);_.B([_.Va({is:"yt-interaction",disableElementRegistration:!0})],Kd);
_.n(Kd,"yt-interaction",function(){if(qD3===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;trz===void 0&&(trz=document.createElement("template"));var l=trz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qD3=O}O=qD3;return O},{mode:2});var dg=function(){return _.a.apply(this,arguments)||this};
_.c(dg,_.a);_.b=dg.prototype;_.b.ready=function(){var O=this,x=_.$U(this.hostElement).querySelector("#button");x.addEventListener("focus",function(){SyN||(SyN=new w0p);O.keyboardFocused=SyN.isKeyBoardInUse()});
x.addEventListener("blur",function(){O.keyboardFocused=!1;O.rippleUp_()})};
_.b.computeTabIndex_=function(O){return O?-1:0};
_.b.computeButtonAriaPressed_=function(O){if(this.toggleable)return O?"true":"false"};
_.b.rippleDown_=function(){_.$U(this.hostElement).querySelector("#interaction").triggerDown()};
_.b.rippleUp_=function(){_.$U(this.hostElement).querySelector("#interaction").triggerUp()};
_.b.onPressedChanged_=function(){var O=_.iK(_.$U(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.iK(_.$U(this.hostElement).querySelector("#button")).children[0];O&&(O.active=this.pressed)};
dg.prototype.onPressedChanged_=dg.prototype.onPressedChanged_;dg.prototype.rippleUp_=dg.prototype.rippleUp_;dg.prototype.rippleDown_=dg.prototype.rippleDown_;_.B([_.R(),_.v("design:type",String)],dg.prototype,"label",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],dg.prototype,"disabled",void 0);_.B([_.R(),_.v("design:type",Boolean)],dg.prototype,"pressed",void 0);_.B([_.R(),_.v("design:type",Object)],dg.prototype,"toggleable",void 0);
_.B([_.R(),_.v("design:type",Boolean)],dg.prototype,"untabbable",void 0);_.B([_.R(),_.v("design:type",Boolean)],dg.prototype,"keyboardFocused",void 0);_.B([_.bH("down"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],dg.prototype,"rippleDown_",null);_.B([_.bH("up"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],dg.prototype,"rippleUp_",null);
_.B([_.T1("pressed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],dg.prototype,"onPressedChanged_",null);_.B([_.Va({is:"yt-icon-button",disableElementRegistration:!0})],dg);
_.n(dg,"yt-icon-button",function(){if(Ek2===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ZED===void 0&&(ZED=document.createElement("template"));var l=ZED;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Ek2=O}O=Ek2;return O},{mode:2});var PSd;var cRp=function(){var O=document.body,x=O.appendChild;if(PSd===void 0){var e=document.createElement("template");_.I(e,'\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>');
PSd=e}e=PSd;x.call(O,e.content)};
document.body?cRp():window.addEventListener("DOMContentLoaded",cRp);var IjJ=_.zo(["aria-"]),nd={};nd.YtRenderButtonBehavior=[_.S.YtRendererBehavior,_.sJ.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!!_.GG().resolve(_.D0(_.qL))&&_.t("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 O=this.computeHref_(this.endpoint,!0);O?J7(this.elements_.endpoint,O):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){O=this.buttonClass.split(" ");O=_.T(O);for(var x=O.next();!x.done;x=O.next())x=x.value,_.Ow(this.hostElement,x,!0),this.elements_.button&&_.Ow(this.elements_.button,x,!0),this.elements_.text&&_.Ow(this.elements_.text,x,!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&&(O=null,this.buttonAccessibility&&(O=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=O:O?_.Tt([_.GJ(IjJ)],this.elements_.button,"aria-label",O):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var O=_.GG().resolve(_.D0(_.qL));O&&(this.keyboardFocused=O.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.F_("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,_.G0(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.G0(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(O,x){if(x)for(O=x.split(" "),O=_.T(O),x=O.next();!x.done;x=O.next())x=x.value,_.Ow(this.hostElement,x,!1),this.elements_.button&&_.Ow(this.elements_.button,x,!1),this.elements_.text&&_.Ow(this.elements_.text,x,!1)},
buttonIconChanged_:function(O){this.elements_.icon?O?(this.elements_.icon.icon=O,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.G0(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.xX(this.hostElement,"is-paper-button-with-icon",!1)):O&&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"&&_.G0(this.elements_.button).appendChild(this.elements_.icon):_.G0(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.xX(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(O){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,O){var x=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(O){case "yt_icon_button_with_label":x=!0;_.Ow(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();O=_.G0(this.elements_.button).firstElementChild;
this.elements_.icon=O;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.G0(this.elements_.endpoint).appendChild(this.elements_.button);_.G0(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.F_("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;_.G0(this.elements_.button).appendChild(this.elements_.text);_.G0(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":x=!0,this.elements_.button=this.getYtIconButton_(),O=_.G0(this.elements_.button).firstElementChild,this.elements_.icon=O,this.setIconActive_(this.elements_.icon),
_.G0(this.elements_.endpoint).appendChild(this.elements_.button)}_.xX(this.hostElement,"is-icon-button",x);_.xX(this.hostElement,"is-paper-button",!x);_.xX(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 e;_.$U((e=this.container.hostElement)!=null?e:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.G0(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(O){if(O!=void 0||this.disabled)this.disabled=O,this.elements_.button&&(this.elements_.button.disabled=O)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(O){_.t("kevlar_system_icons")&&O&&this.data&&(this.data.isSelected!==void 0?O.active=this.data.isSelected:this.data.isToggled!==void 0&&(O.active=this.data.isToggled))},
observeBasicPalette_:function(O){_.Zl(this.hostElement,O)},
disabledChanged_:function(O){this.data&&this.set("data.isDisabled",O)},
onYtButtonTap_:function(O){if(this.disabled)O.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.N9(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(O=this.disableCommandHandlerOverride,!this.data||!this.data.command||O||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.t("handle_service_request_actions")||_.N9(this.hostElement,[this.serviceEndpoint]),
_.wr(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.t("handle_service_request_actions")?(O=[],this.serviceEndpoint&&O.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&O.push(this.data.command),O.length&&_.gr(this.hostElement,O,this.hostElement)):this.data&&this.data.command&&(O=this.data.command,O.accountUnlinkCommand||O.accountLinkCommand||O.insertAdCommand||O.insertHighlightMarkerCommand||
O.createLivestreamHighlightClipCommand||O.getVideoUploadFeedbackCommand||O.musicDeletePrivatelyOwnedEntityCommand||O.ypcCancelRecurrenceEndpoint||O.getMultiSelectCommandEndpoint?_.N9(this.hostElement,[O]):_.gr(this.hostElement,[O],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 O,x=_.$U((O=this.container.hostElement)!=null?O:this.container);x.lastChild&&x.lastChild.tagName!="STYLE";)try{x.removeChild(x.lastChild)}catch(e){break}},
getYtIconButton_:function(){var O=this.reuseEnabled_()?_.F_("yt-icon-button"):document.createElement("yt-icon-button"),x=_.G0(O).firstElementChild;if(x&&x.is!="yt-icon"){for(x=_.G0(O);x.lastChild;)x.removeChild(x.lastChild);x=null}x||(x=this.getIcon_(),this.setIconActive_(x),_.G0(O).appendChild(x));return O},
reuseEnabled_:function(){return _.t("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.F_("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.F_("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Vr3={};
_.Vr3.YtButtonBehavior=[nd.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var O=this.data;O&&(this._setEndpoint(this.computeEndpoint_(O)),this._setServiceEndpoint(this.computeServiceEndpoint_(O)),this._setCommand(this.computeCommand_(O)),this._setButtonIcon(this.computeButtonIcon_(O)),this._setButtonText(this.computeButtonText_(O,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(O)),this._setButtonTooltip(this.computeTooltip_(O)),this._setButtonClass(this.computeButtonClass_(O)),this._setIconPositionType(this.computeIconPositionType_(O)),this.updateRenderedElements())},
setPressedState:function(O){var x;if((x=this.elements_)==null?0:x.button)this.elements_.button.pressed=!!O},
computeIconPositionType_:function(O){return O&&O.iconPosition||null},
computeEndpoint_:function(O){var x=O&&O.navigationEndpoint,e=this.get("data.command.commandMetadata.webCommandMetadata.url"),l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return x?x:O&&O.command&&O.command.modalEndpoint?O.command:e&&!l&&O.command?O.command:null},
computeServiceEndpoint_:function(O){var x=O&&O.serviceEndpoint,e=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return x?x:e&&O.command?O.command:null},
computeCommand_:function(O){return O&&O.command||null},
computeButtonIcon_:function(O){return O&&O.icon&&O.icon.iconType?_.x0(O.icon.iconType):null},
computeButtonText_:function(O,x){return!x&&O&&O.text||null},
computeAccessibility_:function(O){return this.get("accessibilityData.accessibilityData",O)||O&&O.accessibility||(O&&O.text?{label:this.getSimpleString(O.text)}:null)},
computeTooltip_:function(O){return O?O.isDisabled&&O.disabledTooltip||O.tooltip||null:null},
computeButtonClass_:function(O){var x=O&&O.style?O.style.toLowerCase().replace(/_/g,"-")+" ":"";x+=O&&O.size?O.size.toLowerCase().replace(/_/g,"-")+" ":"";O.colorData&&O.colorData.basicColorPaletteData&&O.colorData.basicColorPaletteData.borderColor&&(x+="palette-with-border");return x.trim()}}];var E1={};var pk4;var RDR;var UF4,ajL=function(){return UF4!==void 0?UF4:UF4=document.createElement("template")};
document.head.appendChild(ajL().content);var mFN;var sTp,W7$=function(){return sTp!==void 0?sTp:sTp=document.createElement("template")};
document.head.appendChild(W7$().content);var hDD;var zDd,rRJ=function(){return zDd!==void 0?zDd:zDd=document.createElement("template")};
document.head.appendChild(rRJ().content);var HER;var K7k=document.head,dFR=K7k.appendChild,nkN;if(HER===void 0){var uLd=document.createElement("template");_.I(uLd,"\x3c!--css-build:shady--\x3e");uLd.content.insertBefore(rRJ().content.cloneNode(!0),uLd.content.firstChild);HER=uLd}nkN=HER;dFR.call(K7k,nkN.content);var YDd=document.head,BZ4=YDd.appendChild,vkT;if(hDD===void 0){var fj4=document.createElement("template");_.I(fj4,"\x3c!--css-build:shady--\x3e");fj4.content.insertBefore(W7$().content.cloneNode(!0),fj4.content.firstChild);hDD=fj4}vkT=hDD;BZ4.call(YDd,vkT.content);var JRD=document.head,wk2=JRD.appendChild,SD3;if(mFN===void 0){var jT3=document.createElement("template");_.I(jT3,"\x3c!--css-build:shady--\x3e");jT3.content.insertBefore(ajL().content.cloneNode(!0),jT3.content.firstChild);mFN=jT3}SD3=mFN;wk2.call(JRD,SD3.content);var NZJ;_.tI("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");NZJ=_.t("web_button_rework")&&_.SS("BUTTON_REWORK")||_.t("web_button_rework_with_live");_.u4=function(){return _.a.apply(this,arguments)||this};
_.c(_.u4,_.a);_.u4.prototype.created=function(){this.openPopupConfig=_.wz("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.u4.prototype.onYtNavigate_=function(O){var x=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);x&&(this.ytOpenPopupBehavior.openPopup(x),O.stopPropagation(),O.preventDefault())};
_.Dy.Object.defineProperties(_.u4,{template:{configurable:!0,enumerable:!0,get:function(){if(RDR===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;pk4===void 0&&(pk4=document.createElement("template"));var l=pk4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);RDR=O}O=RDR;return O}}});
_.u4.prototype.onYtNavigate_=_.u4.prototype.onYtNavigate_;_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],_.u4.prototype,"ytOpenPopupBehavior",void 0);_.B([_.V(_.Vr3.YtButtonBehavior),_.v("design:type",Object)],_.u4.prototype,"ytButtonBehavior",void 0);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],_.u4.prototype,"onYtNavigate_",null);
_.B([_.Va({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:NZJ})],_.u4);var gkL;var $Fd=_.t("web_button_rework")&&_.SS("BUTTON_REWORK")||_.t("web_button_rework_with_live"),Ya=function(){var O=_.a.apply(this,arguments)||this;O.isPressed=!1;O.forceIconButton=!1;O.forceIconOnly=!1;O.forceModernIconButton=!1;O.skipCommandHandling=!1;O.alignByText=!1;O.fitToVisibleBounds=!0;O.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};O.onTap=function(x){_.wr(O.hostElement,"yt-service-request-sent-button-renderer",x)};
return O};
_.c(Ya,_.a);_.b=Ya.prototype;_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.b.onClick=function(O){var x,e=this.disabled||((x=this.data)==null?void 0:x.isDisabled);x=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");e&&x&&O.stopPropagation()};
_.b.computeIcon=function(){var O,x,e=(O=this.data)==null?void 0:(x=O.icon)==null?void 0:x.iconType;if(e)return _.x0(e)};
_.b.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.b.handleUpdateButtonAction=function(O){O=_.q(O,KiR);var x=_.q(O==null?void 0:O.updatedButton,_.wf);if(this.data&&O&&x){var e=this.data;e.targetId&&O.targetId&&e.targetId===O.targetId&&(this.data=x)}};
_.Dy.Object.defineProperties(Ya.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var O=this;if(this.data){var x=xIi({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.wr(O.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.wr(O.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});x.alignByText=this.alignByText;return x}}}});
_.Dy.Object.defineProperties(Ya,{template:{configurable:!0,enumerable:!0,get:function(){if(gkL===void 0){var O=document.createElement("template");_.I(O,'\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>');gkL=O}O=gkL;return O}}});
Ya.prototype.onClick=Ya.prototype.onClick;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ya.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Ya.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"isPressed",void 0);
_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"forceIconButton",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"forceIconOnly",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"forceModernIconButton",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"skipCommandHandling",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"alignByText",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"buttonTooltipPosition",void 0);
_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"fitToVisibleBounds",void 0);_.B([_.R({computed:"computeTooltip(data)"}),_.v("design:type",Object)],Ya.prototype,"tooltip",void 0);_.B([_.R(),_.v("design:type",Object)],Ya.prototype,"overrides",void 0);_.B([_.R(),_.v("design:type",Boolean)],Ya.prototype,"disabled",void 0);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Ya.prototype,"onClick",null);
_.B([_.p("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ya.prototype,"computedButtonShape",null);_.B([_.Va({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$Fd,cssBuildOptOut:!0}),_.Va({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$Fd,cssBuildOptOut:!0})],Ya);var iEz;var OTp;var Bt=function(){var O=_.a.apply(this,arguments)||this;O.empty_=!0;O.loadTime=Infinity;O.pendingPaint=!1;O.hasChange_=!1;O.oldThumbnail_=null;O.oldDelayedSrc_="";O.objectURL_=null;return O};
_.c(Bt,_.a);_.b=Bt.prototype;_.b.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.b.ready=function(){var O=this.shouldShowPlaceholder_();_.Ow(this.hostElement,"no-transition",!0);O&&this.hostElement.classList.add("with-placeholder")};
_.b.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.b.isThumbPreloaded_=function(O){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",O)};
_.b.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||xUR};
_.b.computeThumbnailSrc_=function(O){return O&&O.thumbnails?_.Sf(O.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.b.computeAlt_=function(){var O=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&O||""};
_.b.thumbnailChanged_=function(){var O=_.T([this.thumbnail,this.oldThumbnail_]),x=O.next().value;O=O.next().value;this.oldThumbnail_=x;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(O=this.computeThumbnailSrc_(O),this.computeThumbnailSrc_(x)===O))return;_.t("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(x)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):x&&_.SS("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.A_(this,this.onReload_):_.A_(this,this.onShow_):this.resetImage_();x&&(this.hostElement.style.opacity=""+x.opacity)}};
_.b.delayedSrcChanged_=function(){var O=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===O||this.resetImage_()};
_.b.setSrc_=function(O){O?(_.$U(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.$U(this.hostElement).querySelector("#img").src=O):(_.$U(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.b.resetImage_=function(){ljr(this.hostElement);this.empty_=!0;this.setSrc_(xUR);this.ytRendererBehavior.invalidate(!1)};
_.b.observePlaceholderColor_=function(){var O=this.thumbnail&&this.thumbnail.placeholderColor;O?this.hostElement.style.backgroundColor=_.UA(O):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.b.onLoad_=function(){_.$U(this.hostElement).querySelector("#img").src&&_.$U(this.hostElement).querySelector("#img").src!==xUR&&(eDr(this.hostElement),this.notifyOnLoaded&&_.wr(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.b.onError_=function(){var O=this;if(_.t("web_use_cache_for_image_fallback"))ARs(_.$U(this.hostElement).querySelector("#img").src).then(function(x){O.objectURL_=_.Bw(x).toString();O.setSrc_(O.objectURL_)}).catch(function(){_.t("kevlar_woffle_fallback_image")&&O.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.b.onPrescanVisible=function(){this.onShow_()};
_.b.onVisible=function(){if(_.t("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.b.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var O=this.computeSrc_();O!==_.$U(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(O))}};
_.b.onReload_=function(){this.empty_=!1;var O=this.computeSrc_();O!==_.$U(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(O))};
_.b.shouldShowPlaceholder_=function(){return _.t("kevlar_thumbnail_bg")};
Bt.prototype.observePlaceholderColor_=Bt.prototype.observePlaceholderColor_;Bt.prototype.delayedSrcChanged_=Bt.prototype.delayedSrcChanged_;Bt.prototype.thumbnailChanged_=Bt.prototype.thumbnailChanged_;_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Bt.prototype,"alt",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Bt.prototype,"ariaHidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Bt.prototype,"ariaLabel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bt.prototype,"hidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Bt.prototype,"id",void 0);_.B([_.V(_.l4.YtVisibilityBehavior),_.v("design:type",Object)],Bt.prototype,"ytVisibilityBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",String)],Bt.prototype,"delayedSrc",void 0);
_.B([_.R(),_.v("design:type",Object)],Bt.prototype,"thumbnail",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Bt.prototype,"loaded",void 0);_.B([_.R(),_.v("design:type",Boolean)],Bt.prototype,"notifyOnLoaded",void 0);_.B([_.R(),_.v("design:type",Number)],Bt.prototype,"height",void 0);_.B([_.R(),_.v("design:type",Number)],Bt.prototype,"width",void 0);_.B([_.R({value:function(){return"width"}}),
_.v("design:type",String)],Bt.prototype,"dimension",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bt.prototype,"fit",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bt.prototype,"fitHeight",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bt.prototype,"fitWidth",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Bt.prototype,"objectFit",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Bt.prototype,"objectPosition",void 0);_.B([_.R(),_.v("design:type",String)],Bt.prototype,"preferredThumbnail",void 0);_.B([_.R({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.v("design:type",String)],Bt.prototype,"alt_",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Bt.prototype,"sharedTooltipText",void 0);
_.B([_.R(),_.v("design:type",Boolean)],Bt.prototype,"ftlEligible",void 0);_.B([_.R({value:void 0}),_.v("design:type",String)],Bt.prototype,"observeHiddenOption",void 0);_.B([_.R({value:"observe_once"}),_.v("design:type",String)],Bt.prototype,"observePrescanOption",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bt.prototype,"roundedContainer",void 0);
_.B([_.G1("thumbnail"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bt.prototype,"thumbnailChanged_",null);_.B([_.G1("delayedSrc"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bt.prototype,"delayedSrcChanged_",null);_.B([_.T1("thumbnail.placeholderColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bt.prototype,"observePlaceholderColor_",null);
_.B([_.Va({is:"yt-img-shadow",disableElementRegistration:!0})],Bt);var xUR=_.SS("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.NQ()(Bt,"yt-img-shadow",function(){if(OTp===void 0){var O=document.createElement("template");_.I(O,'\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">');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;iEz===void 0&&(iEz=document.createElement("template"));var l=iEz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);OTp=O}O=OTp;return O},{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 f4W;_.vt=new _.iR("SCREEN_MANAGER_TOKEN");f4W=new _.iR("LOG_INITIAL_SCREEN_TOKEN");var eT4=_.Pe({entities:{}});_.fd=_.ce(eT4)(eT4.entities,{selectSfvAudioItemPlaybackState:function(O,x){var e,l;O=(l=_.xE(O,"sfvAudioItemCurrentlyPlayingEntity",x))!=null?l:void 0;return(e=O==null?void 0:O.sfvAudioItemPlaybackState)!=null?e:void 0},
playlistLoopStateEntitySelector:Csm,toggleMenuServiceItemEntitySelector:QGi});_.Jc=_.K(function(O){function x(O8){return _.q(O8,_.gf)}
function e(){var O8=l().isTogglingDisabled||U()&&l().toggledIsTogglingDisabled,Xr=O8||Z()?U():!U();W(Xr);r(!1);if(!O8){var Fr;(Fr=L)==null||Fr(!!Xr)}var mL;((mL=Q)==null?0:mL())||_.I7(_.GG().resolve(_.vt),l().trackingParams);var Zn;if(!Xr||!x(l().defaultButtonViewModel)||(Zn=Q)!=null&&Zn()){var q$;!x(l().toggledButtonViewModel)||((q$=Q)==null?0:q$())||_.I7(_.GG().resolve(_.vt),x(l().toggledButtonViewModel).trackingParams)}else _.I7(_.GG().resolve(_.vt),x(l().defaultButtonViewModel).trackingParams)}
var l=O.data,C=O.buttonShapeOverrides,Q=O.disableExplicitClickLogging,L=O.onToggle,k=O.style,M=O.useOutlinedIcon,G=O.className,X=function(){var O8,Xr;return U()?(O8=O.animatedTextPropsToggled)==null?void 0:O8.call(O):(Xr=O.animatedTextPropsDefault)==null?void 0:Xr.call(O)},y=_.aw(function(){return X()?Object.assign({},X(),{shouldAnimate:z()}):void 0},void 0,"Zp4uoe"),Z=function(){var O8;
return((O8=Y())==null?void 0:O8.isToggled)!==void 0},E=_.T(_.bk(function(){var O8,Xr,Fr;
return Z()?(O8=Y())==null?void 0:O8.isToggled:(Fr=C==null?void 0:(Xr=C())==null?void 0:Xr.toggled)!=null?Fr:l().isToggled})),P=E.next().value;
E=E.next().value;var U=P,W=E;E=_.T(_.bk(function(){var O8,Xr;return(O8=O.animatedTextPropsToggled)==null?void 0:(Xr=O8.call(O))==null?void 0:Xr.shouldAnimate}));
P=E.next().value;E=E.next().value;var z=P,r=E;P=_.T(_.Iw(!1,void 0,"mq3Zfe"));var f=P.next().value,u=P.next().value,Y=_.Dl(function(O8){a:{var Xr=l().entityKey,Fr=l().toggledStateEntitySelectorType;if(Fr)switch(Fr){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Xr)break;O8=_.fd.selectSfvAudioItemPlaybackState(O8,Xr);if(O8==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){O8={isToggled:!0};break a}if(O8){O8={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":O8=
{isToggled:_.TtL(O8).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":O8={isToggled:_.TtL(O8).includes("engagement-panel-live-chat-item-section")};break a;default:_.ft(new _.ry("Error: entitySelectorType defined but not matched in selector.",O8,Fr))}O8=void 0}return O8}),J=function(){return Object.assign({},C==null?void 0:C(),{onToggle:e,
toggleable:!0,toggled:U(),focused:f()})};
return _.D("toggle-button-view-model",{"on:focusin":_.lk(function(){var O8=_.GG().resolve(_.D0(_.qL));O8&&u(O8.isKeyBoardInUse());return!1}),
"on:focusout":_.lk(function(){u(!1);return!1})},_.D(_.F,{cond:function(){return U()?x(l().toggledButtonViewModel):x(l().defaultButtonViewModel)},
then:function(O8){return _.D(_.RV,{data:O8,className:G,style:k,useOutlinedIcon:M,buttonOverrides:J,animatedTextProps:y})}}))},"ca");
_.Jc.idomCompat={callbacks:{onToggle:!0}};_.wP(_.K(function(O){return _.D("yt-toggle-button-view-model",{class:function(){var x;return(x=O.scopingClassName)==null?void 0:x.call(O)}},_.D(_.Jc,{data:function(){var x;
return(x=O.data)==null?void 0:x.call(O)},
buttonShapeOverrides:function(){var x;return(x=O.overrides)==null?void 0:x.call(O)},
animatedTextPropsDefault:function(){var x;return(x=O.animatedTextPropsDefault)==null?void 0:x.call(O)},
animatedTextPropsToggled:function(){var x;return(x=O.animatedTextPropsToggled)==null?void 0:x.call(O)},
disableExplicitClickLogging:function(){var x;return(x=O.disableExplicitClickLogging)==null?void 0:x.call(O)},
onToggle:function(x){var e;return(e=O.onToggle)==null?void 0:e.call(O,x)},
style:function(){var x;return(x=O.style)==null?void 0:x.call(O)},
useOutlinedIcon:function(){var x;return(x=O.useOutlinedIcon)==null?void 0:x.call(O)},
className:function(){var x;return(x=O.className)==null?void 0:x.call(O)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.Ld,
buttonShapeOverrides:_.Ld,overrides:_.Ld,animatedTextPropsDefault:_.Ld,animatedTextPropsToggled:_.Ld,disableExplicitClickLogging:_.Ld,onToggle:_.vs,style:_.Ld,useOutlinedIcon:_.Ld,className:_.Ld,scopingClassName:_.Ld}});var wg=function(){return _.a.apply(this,arguments)||this};
_.c(wg,_.a);wg.prototype.onTap=function(O){O.stopPropagation();O=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Zw("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:O})):this.ytLiveChatReduxBehavior.dispatch(_.Dc("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:O}))};
_.Dy.Object.defineProperties(wg.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.engagementState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=_.q(this.data.toggleButton,_.iN),x;if(Number(((x=this.likeCountState)==null?void 0:x.likeCountIfIndifferentNumber)||"0")===0){var e;x=((e=this.data.likeCountPlaceholder)==null?void 0:e.content)||""}else{var l,C,Q;x=((l=this.likeCountState)==null?void 0:(C=l.likeCountIfIndifferent)==null?void 0:C.content)||((Q=this.data.likeCountPlaceholder)==null?void 0:Q.content)||""}var L,k;e=((L=this.likeCountState)==null?void 0:(k=
L.likeCountIfLiked)==null?void 0:k.content)||"1";L=_.q(O.toggledButtonViewModel,_.gf);return Object.assign({},O,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.q(O.defaultButtonViewModel,_.gf),{title:x})},toggledButtonViewModel:{buttonViewModel:Object.assign({},L,{title:e})}})}}}});
wg.prototype.onTap=wg.prototype.onTap;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],wg.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],wg.prototype,"data",void 0);
_.B([_.R({selectorArgs:["data.likeCountEntityKey"],selector:LZr}),_.v("design:type",Object)],wg.prototype,"likeCountState",void 0);_.B([_.R({selectorArgs:["data.engagementStateKey"],selector:yg8}),_.v("design:type",Object)],wg.prototype,"engagementState",void 0);_.B([_.p("data","engagementState"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],wg.prototype,"isLiked",null);
_.B([_.p("data","likeCountState","isLiked"),_.v("design:type",Object),_.v("design:paramtypes",[])],wg.prototype,"toggleButton",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],wg.prototype,"onTap",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],wg);
_.n(wg,"yt-live-chat-like-button-view-model",function(){if(QT4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;CSR===void 0&&(CSR=document.createElement("template"));var l=CSR;e.call(x,l.content.cloneNode(!0),O.content.firstChild);QT4=O}O=QT4;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var lFR;var CTT;var SO=function(){return _.a.apply(this,arguments)||this};
_.c(SO,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],SO.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],SO);
_.n(SO,"yt-live-chat-paid-message-footer-renderer",function(){if(CTT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;lFR===void 0&&(lFR=document.createElement("template"));var l=lFR;e.call(x,l.content.cloneNode(!0),O.content.firstChild);CTT=O}O=CTT;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Qid;var bTT;var TQL;var LEN,kfT=function(){if(LEN!==void 0)return LEN;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;TQL===void 0&&(TQL=document.createElement("template"));var l=TQL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return LEN=O};var jO=function(){return _.a.apply(this,arguments)||this};
_.c(jO,_.a);jO.prototype.onTap=function(O){O.stopPropagation()};
_.Dy.Object.defineProperties(jO.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=_.q(this.data.replyButton,_.gf),x,e,l,C,Q,L,k,M=Number(((x=this.replyCountState)==null?void 0:x.replyCountNumber)||"0")===0?(e=this.data)==null?void 0:(l=e.replyCountPlaceholder)==null?void 0:l.content:((C=this.replyCountState)==null?void 0:(Q=C.replyCount)==null?void 0:Q.content)||((L=this.data)==null?void 0:(k=L.replyCountPlaceholder)==null?void 0:k.content)||"",G;return Object.assign({},
O,{title:M,accessibilityText:(G=this.replyCountState)==null?void 0:G.replyButtonAccessibilityText})}}}});
_.Dy.Object.defineProperties(jO,{template:{configurable:!0,enumerable:!0,get:function(){return kfT()}}});
jO.prototype.onTap=jO.prototype.onTap;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],jO.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],jO.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],jO.prototype,"data",void 0);
_.B([_.R({selectorArgs:["data.replyCountEntityKey"],selector:function(O,x){return _.xE(O.entities,"replyCountEntity",x)}}),
_.v("design:type",Object)],jO.prototype,"replyCountState",void 0);_.B([_.p("data","replyCountState"),_.v("design:type",Object),_.v("design:paramtypes",[])],jO.prototype,"buttonViewModel",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],jO.prototype,"onTap",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],jO);
_.n(jO,"yt-live-chat-reply-button-view-model",function(){return kfT()},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Agz;var Mn4;var NL=function(){var O=_.a.apply(this,arguments)||this;O.ariaLabel="";return O};
_.c(NL,_.a);
NL.prototype.dataChanged=function(){for(var O=(0,_.eU)(_.$U(this.hostElement).querySelector("#image"));O.firstChild;)O.removeChild(O.firstChild);if(this.data)if(this.data.icon){var x=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(x.polymerController.icon="yt-sys-icons:shield-filled",x.polymerController.defaultToFilled=!0):x.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();O.appendChild(x)}else if(this.data.customThumbnail){x=document.createElement("img");
var e=_.j6r(this.data.customThumbnail.thumbnails,16);e?(x.src=e,O.appendChild(x),x.setAttribute("alt",this.hostElement.ariaLabel||"")):_.ft(new _.ry("Could not compute URL for thumbnail",this.data.customThumbnail))}};
NL.prototype.identity=function(O){return O};
NL.prototype.computeType=function(O){return $X(O||void 0)};
NL.prototype.dataChanged=NL.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],NL.prototype,"data",void 0);_.B([_.R({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.v("design:type",Object)],NL.prototype,"ariaLabel",void 0);_.B([_.R({computed:"computeType(data)",reflectToAttribute:!0}),_.v("design:type",String)],NL.prototype,"type",void 0);
_.B([_.R({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.v("design:type",String)],NL.prototype,"sharedTooltipText",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("live_chat_enable_new_moderator_badge")}}),
_.v("design:type",Boolean)],NL.prototype,"enableNewModeratorBadge",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NL.prototype,"dataChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],NL);
_.n(NL,"yt-live-chat-author-badge-renderer",function(){if(Mn4===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Agz===void 0&&(Agz=document.createElement("template"));var l=Agz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Mn4=O}O=Mn4;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var DUJ;var Gf$;var gg=function(){return _.a.apply(this,arguments)||this};
_.c(gg,_.a);_.b=gg.prototype;_.b.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"}}}}};
_.b.computeBadgesInsideChip=function(O){return O?O.filter(function(x){return $X(x.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.b.computeBadgesOutsideChip=function(O){return this.prependChatBadges||!O?[]:O.filter(function(x){x=$X(x.liveChatAuthorBadgeRenderer);return x!=="verified"&&x!=="owner"})};
_.b.computeBadgesBeforeChip=function(O){return this.prependChatBadges&&O?O.filter(function(x){x=$X(x.liveChatAuthorBadgeRenderer);return x!=="verified"&&x!=="owner"}):[]};
_.b.computeIsHighlighted=function(O,x){var e=!!GEW(O,"owner"),l=!!GEW(O,"verified");O=!!GEW(O,"moderator");return(e||l&&!O)&&!x};
_.b.computeAuthorType=function(O){return D2i(O)};
_.b.computeAuthorClass=function(O,x){return x?(O?O+" ":"")+"single-line":O};
_.b.onSeedColorChanged=function(){_.t("live_chat_author_name_color_usernames")||_.t("live_chat_seed_color_usernames")||_.t("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):_.t("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
gg.prototype.onSeedColorChanged=gg.prototype.onSeedColorChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],gg.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gg.prototype,"authorName",void 0);_.B([_.R(),_.v("design:type",Array)],gg.prototype,"authorBadges",void 0);
_.B([_.R({computed:"computeAuthorType(authorBadges)"}),_.v("design:type",String)],gg.prototype,"authorType",void 0);_.B([_.R({computed:"computeAuthorClass(authorType, singleLine)"}),_.v("design:type",String)],gg.prototype,"authorClass",void 0);_.B([_.R({computed:"computeBadgesInsideChip(authorBadges)"}),_.v("design:type",Array)],gg.prototype,"badgesInsideChip",void 0);_.B([_.R({computed:"computeBadgesOutsideChip(authorBadges)"}),_.v("design:type",Array)],gg.prototype,"badgesOutsideChip",void 0);
_.B([_.R({computed:"computeBadgesBeforeChip(authorBadges)"}),_.v("design:type",Array)],gg.prototype,"badgesBeforeChip",void 0);_.B([_.R({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.v("design:type",Boolean)],gg.prototype,"isHighlighted",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],gg.prototype,"singleLine",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],gg.prototype,"disableHighlighting",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],gg.prototype,"dashboardMoneyFeed",void 0);_.B([_.R({value:_.t("live_chat_prepend_badges"),reflectToAttribute:!0}),_.v("design:type",Boolean)],gg.prototype,"prependChatBadges",void 0);_.B([_.R(),_.v("design:type",String)],gg.prototype,"authorNameColor",void 0);_.B([_.kX("#author-name"),_.v("design:type",HTMLDivElement)],gg.prototype,"username",void 0);
_.B([_.T1("authorNameColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gg.prototype,"onSeedColorChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],gg);
_.n(gg,"yt-live-chat-author-chip",function(){if(Gf$===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;DUJ===void 0&&(DUJ=document.createElement("template"));var l=DUJ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Gf$=O}O=Gf$;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var FEd;var XBT;var $a=function(){var O=_.a.apply(this,arguments)||this;O.debounceCommand=_.yf(function(x){O.ytComponentBehavior.resolveCommand(x)},1500);
return O};
_.c($a,_.a);$a.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var O=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",x,e,l=this.isHearted?(x=this.data)==null?void 0:x.unheartCommand:(e=this.data)==null?void 0:e.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Zw("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:O}));(O=_.p_(l))&&this.debounceCommand(O)}};
_.Dy.Object.defineProperties($a.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var O,x;if(!((O=this.data)==null?0:(x=O.creatorThumbnail)==null?0:x.sources))return{};O={thumbnails:[]};x={};x.url=this.data.creatorThumbnail.sources[0].url;O.thumbnails.push(x);return O}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.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}}});
$a.prototype.onTap=$a.prototype.onTap;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$a.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],$a.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$a.prototype,"data",void 0);
_.B([_.R({selectorArgs:["data.engagementStateKey"],selector:yg8}),_.v("design:type",Object)],$a.prototype,"engagementState",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],$a.prototype,"thumbnailDetails",null);_.B([_.p("data","engagementState"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],$a.prototype,"isHearted",null);_.B([_.p("data","engagementState"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],$a.prototype,"isEditable",null);
_.B([_.p("data","engagementState"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],$a.prototype,"showCreatorView",null);_.B([_.p("data","engagementState"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],$a.prototype,"showButton",null);_.B([_.p("data","isHearted"),_.v("design:type",String),_.v("design:paramtypes",[])],$a.prototype,"label",null);_.B([_.p("data","isHearted"),_.v("design:type",Object),_.v("design:paramtypes",[])],$a.prototype,"heartHoverText",null);
_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$a.prototype,"onTap",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],$a);
_.n($a,"yt-live-chat-creator-heart-view-model",function(){if(XBT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;FEd===void 0&&(FEd=document.createElement("template"));var l=FEd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);XBT=O}O=XBT;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var i4=function(){};
_.c(i4,pL);i4.prototype.JSC$13266_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:z0("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
i4.prototype.getApiPaths=function(){return[]};
i4.prototype.getExtension=function(){};
i4.prototype.JSC$13266_buildRequest=function(){};var of3={},ygT=(of3.GET_DATASYNC_IDS=AU(i4),of3);var ZT$,EfT,tnN,FUR,OB,cg4,tBN,PTF,qz4;ZT$="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");EfT=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.We=function(O,x,e,l,C,Q,L,k,M){this.endpointMap=O;this.networkManager=x;this.authService=e;this.responseProcessorMap=l;this.innertubeResponseStore=C;this.contextProcessors=Q;this.asyncContextProcessors=L;this.localInnertubeRouter=k;this.requestSequencer=M;this.inflightRequests=new Map;O.signalEndpointMap||(O.signalEndpointMap={});O.signalEndpointMap=Object.assign({},ygT,O.signalEndpointMap)};
tnN=function(O,x,e,l,C,Q,L,k,M){if(_.We.instance!==void 0){if(l=_.We.instance,O=[O!==l.endpointMap,x!==l.networkManager,e!==l.authService,C!==l.innertubeResponseStore,Q!==l.contextProcessors,L!==l.asyncContextProcessors,k!==l.localInnertubeRouter],O.some(function(G){return G}))throw new _.ry("InnerTubeTransportService is already initialized",O);
}else _.We.instance=new _.We(O,x,e,l,C,Q,L,k,M)};
_.z7=function(O,x,e){var l=l===void 0?l2R:l;var C=tBN(O,x);return C?new _.If(function(Q,L){var k,M,G,X,y;return _.A(function(Z){switch(Z.nextAddress){case 1:return Z.yield(C,2);case 2:k=Z.yieldResult;M=k.JSC$13266_getRequest(x,e,l);if(!M){L(new _.ry("Error: Failed to build request for command.",x));Z.jumpTo(0);break}hU(M.input);X=((G=M.requestShell)==null?void 0:G.mode)==="cors"?"cors":void 0;if(O.authService.syncHeaders){y=qz4(M.config,X);Z.jumpTo(4);break}return Z.yield(PTF(M.config,X),5);case 5:y=
Z.yieldResult;case 4:Q(cg4(O,M,y)),_.Ra(Z)}})}):_.Za(new _.ry("Error: No request builder found for command.",x))};
FUR=function(O,x,e,l){var C=C===void 0?l2R:C;var Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J;return _.A(function(O8){switch(O8.nextAddress){case 1:Q=DIn(x,O.endpointMap);if(!Q)throw new _.ry("Error: No streaming request builder found for command",x);L=Q.JSC$13266_getRequest(x,e,C);if(!L)throw new _.ry("Failed to build YtRequest for streaming Command",x);if((k=O.localInnertubeRouter)==null||!k.shouldPreferLocalResponse(L.input,L.innerTubeRequest)){O8.jumpTo(2);break}return O8.yield(O.localInnertubeRouter.localInnertubeResponse(L.input,
L.innerTubeRequest),3);case 3:return M=O8.yieldResult,G={},M.playerResponse&&(OB(O,M.playerResponse,L),G.player=M.playerResponse,(X=l)==null||X(G,M)),M.watchNextResponse&&(OB(O,M.watchNextResponse,L),G.content=M.watchNextResponse,(y=l)==null||y(G,M)),O8.return(G);case 2:E=((Z=L.requestShell)==null?void 0:Z.mode)==="cors"?"cors":void 0;if(O.authService.syncHeaders){P=qz4(L.config,E);O8.jumpTo(4);break}return O8.yield(PTF(L.config,E),5);case 5:P=O8.yieldResult;case 4:return z=(W=(U=L.requestShell)==
null?void 0:U.headers)!=null?W:{},L.requestShell=Object.assign({},L.requestShell,{headers:Object.assign({},z,P)}),r=Object.assign({},L.requestShell),f=JSON.stringify(L.innerTubeRequest),L.requestShell.method==="POST"&&(r=Object.assign({},r,{body:f})),u=function(Xr,Fr){OB(O,Fr.playerResponse||Fr.watchNextResponse||Fr.reelItemWatchResponse||Fr.reelWatchSequenceResponse,L);l==null||l(Xr,Fr)},Y={},O8.yield(IFT(O.networkManager,L.input,r,u),6);
case 6:return Y=O8.yieldResult,((J=L.config)==null?0:J.responseTick)&&_.IR(L.config.responseTick),O8.return(Y)}})};
_.NK=function(O,x,e,l,C){C=C===void 0?{authStrategy:{identity:l2R}}:C;var Q=Q===void 0?!0:Q;var L=function(){};
L=iYi(gor(e));x.context||(x.context=_.P6L(l,Q));return new _.If(function(k){var M,G,X,y,Z;return _.A(function(E){if(E.nextAddress==1)return M=nT8(e),G=_.hs(M),O.authService.syncHeaders?(X=qz4(C,G),E.jumpTo(2)):E.yield(PTF(C,G),3);E.nextAddress!=2&&(X=E.yieldResult);y=uIr(nT8(e));Z={input:y,requestShell:z0(y),innerTubeRequest:x,config:C};k(cg4(O,Z,X,L));_.Ra(E)})})};
OB=function(O,x,e){var l;if(x&&!(x==null?0:(l=x.sequenceMetaData)==null?0:l.skipProcessing)&&O.responseProcessorMap){l=_.T(ZT$);for(var C=l.next();!C.done;C=l.next())C=C.value,O.responseProcessorMap[C]&&O.responseProcessorMap[C].handleResponse(x,e)}};
cg4=function(O,x,e,l){l=l===void 0?function(){}:l;
var C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr,mL,Zn,q$,KV,VN,Pd,f2,p2,OT,Gp,zp,m3,E4,Xw,Tr,QR,ET,Q$;return _.A(function(tJ){switch(tJ.nextAddress){case 1:L=(C=x.config)==null?void 0:(Q=C.storeStrategy)==null?void 0:Q.storeKey;if(!(L&&O.innertubeResponseStore&&O.innertubeResponseStore.has(L))||((k=x.config)==null?0:(M=k.storeStrategy)==null?0:M.disableCache)){tJ.jumpTo(2);break}return tJ.yield(O.innertubeResponseStore.get(L),3);case 3:if((G=tJ.yieldResult)&&!G.isExpired())return tJ.return(Promise.resolve(_.Bb(G)));
case 2:if(!((X=x)==null?0:(y=X.innerTubeRequest)==null?0:y.context)){tJ.jumpTo(4);break}Z=x.innerTubeRequest.context;if(!(O.asyncContextProcessors&&O.asyncContextProcessors.length>0)){tJ.jumpTo(5);break}E=[];P=_.T(O.asyncContextProcessors);for(U=P.next();!U.done;U=P.next())W=U.value,z=W.processContext(x),z.wrappedPromise_&&E.push(z.wrappedPromise_);if(!(E.length>0)){tJ.jumpTo(5);break}return tJ.yield(Promise.all(E),5);case 5:r=_.T(O.contextProcessors||[]),f=r.next();case 8:if(f.done){tJ.jumpTo(4);
break}u=f.value;return tJ.yield(u.processContext(Z),9);case 9:f=r.next();tJ.jumpTo(8);break;case 4:if((Y=O.localInnertubeRouter)==null||!Y.shouldPreferLocalResponse(x.input,x.innerTubeRequest)){tJ.jumpTo(12);break}return tJ.yield(O.localInnertubeRouter.localInnertubeResponse(x.input,x.innerTubeRequest),13);case 13:return J=tJ.yieldResult,OB(O,J,x),tJ.return(J);case 12:return(Fr=(Xr=x.config)==null?void 0:Xr.requestKey)&&O.inflightRequests.has(Fr)?O8=O.inflightRequests.get(Fr):(mL=JSON.stringify(x.innerTubeRequest),
KV=(q$=(Zn=x.requestShell)==null?void 0:Zn.headers)!=null?q$:{},x.requestShell=Object.assign({},x.requestShell,{headers:Object.assign({},KV,e)}),VN=Object.assign({},x.requestShell),x.requestShell.method==="POST"&&(VN=Object.assign({},VN,{body:mL})),((Pd=x.config)==null?0:Pd.requestTick)&&_.IR(x.config.requestTick),f2=function(){return O.networkManager.fetch(x.input,VN,x.config)},O8=O.requestSequencer?Vnk(O.requestSequencer,x,f2):f2(),Fr&&O.inflightRequests.set(Fr,O8)),tJ.yield(O8,14);
case 14:(p2=tJ.yieldResult)&&_.t("web_streaming_player")&&Array.isArray(p2)&&(p2=p2[0].playerResponse);if(p2&&"error"in p2&&((OT=p2)==null?0:(Gp=OT.error)==null?0:Gp.details))for(zp=p2.error.details,m3=_.T(zp),E4=m3.next();!E4.done;E4=m3.next())Xw=E4.value,(Tr=Xw["@type"])&&EfT.indexOf(Tr)>-1&&(delete Xw["@type"],p2=Xw);Fr&&O.inflightRequests.has(Fr)&&O.inflightRequests.delete(Fr);((QR=x.config)==null?0:QR.responseTick)&&_.IR(x.config.responseTick);if(p2||(ET=O.localInnertubeRouter)==null||!ET.canProvideFallbackResponse(x.input,
x.innerTubeRequest)){tJ.jumpTo(15);break}return tJ.yield(O.localInnertubeRouter.localFallbackInnertubeResponse(x.input,x.innerTubeRequest),16);case 16:p2=tJ.yieldResult;case 15:return OB(O,p2,x),((Q$=x.config)==null?0:Q$.processorTick)&&_.IR(x.config.processorTick),l(),tJ.return(p2||void 0)}})};
_.hI=function(O,x){return Mqs(x,O.endpointMap)};
tBN=function(O,x){O=G98(x,O.endpointMap);if(O!==void 0)return Promise.resolve(O)};
PTF=function(O,x){var e,l,C,Q;return _.A(function(L){if(L.nextAddress==1){C=(e=O)==null?void 0:(l=e.authStrategy)==null?void 0:l.sessionIndex;var k=L.yield;var M=_.$7(jxL({sessionIndex:C}));return k.call(L,M,2)}Q=L.yieldResult;return L.return(Promise.resolve(Object.assign({},FZn(x),Q)))})};
qz4=function(O,x){var e;O=O==null?void 0:(e=O.authStrategy)==null?void 0:e.sessionIndex;e=jxL({sessionIndex:O});return Object.assign({},FZn(x),e)};var pBF,RT4,UUp,aFp,mUT,siN,zTR,rg$,ln,HTd,KE4,hT3,dUN;pBF=0;RT4=/tone[1-5]/;UUp=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");aFp="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
mUT=Number.MAX_SAFE_INTEGER;siN=RegExp("\ufe0f","g");_.x5=function(O){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;O&&_.WEk(this,O)};
_.WEk=function(O,x){try{_.pb(x,{context:O,onSuccess:function(l,C){Array.isArray(C)?O.load(C):(l=new _.ry("Emoji manager JSON response was not an array!",{response:C}),_.BH(l))},
onError:function(l){l=new _.ry("Failed to retrieve emoji manager initial JSON data!",{url:x,statusCode:_.tq(l).toString()});_.ft(l)}})}catch(l){var e=new _.ry("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:x});
_.ft(e)}};
_.x5.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.x5.prototype.load=function(O,x){if(x)if(O.length)O=O.concat(x.emojis);else{this.emojis=x.emojis;this.emojiMap=x.emojiMap;this.emojiShortcutMap=x.emojiShortcutMap;this.emojiShortcutCharMap=hT3(x);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=x.emojiRegex;return}this.emojis=[].concat(_.Kx(new Set(this.emojis.concat(O))));this.hasInitializedShortcutCharMap=!1;O=Array(this.emojis.length);for(x=0;x<this.emojis.length;x++){var e=this.emojis[x];if(e.emojiId){this.emojiMap[e.emojiId]=e;this.emojiMap[e.emojiId].index=
x;for(var l=0;e.shortcuts&&l<e.shortcuts.length;l++)this.emojiShortcutMap[e.shortcuts[l].toLocaleLowerCase()]=e;O[x]=e.isCustomEmoji&&e.shortcuts?e.shortcuts[0]:e.emojiId}}O.sort(function(C,Q){return Q.length-C.length});
if(O.length)try{this.emojiRegex=new RegExp(O.join("|").replace("*","\\*"),"gi")}catch(C){this.emojiRegex=/$./}else this.emojiRegex=/$./};
zTR=function(O,x){x=_.T(x);for(var e=x.next();!e.done;e=x.next()){var l=e.value;if(l.emojiId&&O.emojiMap[l.emojiId]){e=Object.assign({},O.emojiMap[l.emojiId],l);O.emojiMap[l.emojiId]=e;var C=void 0;e.index&&((C=O.emojis[e.index])==null?void 0:C.emojiId)===l.emojiId&&(O.emojis[e.index]=e);l=void 0;if((l=e.shortcuts)==null?0:l.length)for(O.hasInitializedShortcutCharMap=!1,l=_.T(e.shortcuts),C=l.next();!C.done;C=l.next())O.emojiShortcutMap[C.value.toLocaleLowerCase()]=e}}};
rg$=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(_.Ko.getInstance(),2);if(l.nextAddress!=3)return(x=l.yieldResult)?l.yield(x.get("ytlc-emoji-pref"),3):l.return();(e=l.yieldResult)&&zTR(O,Object.keys(e).map(function(C){return{emojiId:C,stickyPrefId:e[C]}}).filter(function(C){return!!C.emojiId&&!!C.stickyPrefId}));
_.Ra(l)})};
_.eg=function(O,x,e){return(O=O.emojiMap[x])&&(!O.isLocked||e!==void 0&&e)?O:void 0};
ln=function(O,x,e){e=_.eg(O,x,e===void 0?!1:e);var l=x.match("\u200d");e&&O.skinTone!==0&&(O=(l==null?void 0:l.length)===1?_.eg(O,x.replace("\u200d",UUp[O.skinTone]+"\u200d")):_.eg(O,x+UUp[O.skinTone]))&&(e=O);return e};
HTd=function(O,x){var e=O.emojiMap[x];return(e==null?0:e.stickyPrefId)?O.emojiMap[e.stickyPrefId]:ln(O,x)};
_.SR=function(O,x){O=O.emojiShortcutMap[x.toLocaleLowerCase()];return!O||O.isLocked?null:O};
KE4=function(O,x,e){return hT3(O,e===void 0?!1:e)[x]||{}};
hT3=function(O,x){x=x===void 0?!1:x;if(!O.hasInitializedShortcutCharMap){O.hasInitializedShortcutCharMap=!0;for(var e=0;e<O.emojis.length;e++){var l=O.emojis[e];if(!(l.isLocked||x&&l.isCustomEmoji&&l.emojiId&&!O.pickerCustomEmojiIds.includes(l.emojiId)))for(var C=0;l.shortcuts&&C<l.shortcuts.length;C++){var Q=l.shortcuts[C];Q.startsWith(":_")&&l.isCustomEmoji&&(O.emojiShortcutCharMap[":_"]==null&&(O.emojiShortcutCharMap[":_"]=Object.create(null)),O.emojiShortcutCharMap[":_"][Q]=l);if(!(Q.length<3||
!l.isCustomEmoji&&RT4.test(Q))){var L=Q.substr(0,3).toLocaleLowerCase();O.emojiShortcutCharMap[L]==null&&(O.emojiShortcutCharMap[L]=Object.create(null));O.emojiShortcutCharMap[L][Q]=l}}}}return O.emojiShortcutCharMap};
_.x5.prototype.createEmoji=function(O,x){x=x===void 0?!0:x;var e=document.createElement("img");O.isCustomEmoji||e.classList.add("small-emoji");e.classList.add("emoji");e.classList.add("yt-formatted-string");e.src=O.image?_.Sf(O.image.thumbnails,this.emojiSize)||"":"";var l=void 0;O.image&&O.image.accessibility&&O.image.accessibility.accessibilityData&&(l=O.image.accessibility.accessibilityData.label);e.alt=l?l:(O.isCustomEmoji&&O.shortcuts?O.shortcuts[0]:O.emojiId)||"";O.isCustomEmoji&&(e.dataset.emojiId=
O.emojiId);_.j1&&(e.setAttribute("contenteditable","false"),e.setAttribute("unselectable","on"));x&&(O.shortcuts&&O.shortcuts.length&&e.setAttribute("shared-tooltip-text",O.shortcuts[0]),e.id="emoji-"+pBF++);return e};
_.x5.prototype.createDocumentFragment=function(O,x,e,l){x=x===void 0?!1:x;e=e===void 0?!0:e;l=l===void 0?!1:l;O=O.replace(siN,"");for(var C=document.createDocumentFragment(),Q=0,L,k=0;(L=this.emojiRegex.exec(O))!=null;){var M=_.eg(this,L[0])||_.SR(this,L[0]);!M||M.isCustomEmoji&&!x||(M=this.createEmoji(M,e),Q!==L.index&&C.appendChild(document.createTextNode(O.substring(Q,L.index))),C.appendChild(M),Q=L.index+L[0].length,k++)}if(!l||k)return C.appendChild(document.createTextNode(O.substr(Q))),C};
dUN=function(O,x,e){var l,C,Q,L,k,M,G,X,y;return _.A(function(Z){if(Z.nextAddress==1){if(!x.emojiId||!O.emojiMap[x.emojiId])return Z.return();l=Object.assign({},O.emojiMap[x.emojiId],{stickyPrefId:e});O.emojiMap[x.emojiId]=l;x.index&&((C=O.emojis[x.index])==null?void 0:C.emojiId)===x.emojiId&&(O.emojis[x.index]=l);if((Q=x.shortcuts)==null?0:Q.length)for(O.hasInitializedShortcutCharMap=!1,L=_.T(x.shortcuts),k=L.next();!k.done;k=L.next())M=k.value,O.emojiShortcutMap[M.toLocaleLowerCase()]=l;return Z.yield(_.Ko.getInstance(),
2)}if(Z.nextAddress!=4)return(G=Z.yieldResult)?Z.yield(G.get("ytlc-emoji-pref"),4):Z.jumpTo(0);y=(X=Z.yieldResult)!=null?X:{};y[x.emojiId]=e;return Z.yield(G.set("ytlc-emoji-pref",y,mUT),0)})};
_.Cn=new _.x5;var Yzk;_.QU={};
Yzk={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.t("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:_.t("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 H1(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 O=_.$U(this.hostElement||this).querySelector("#inline-action-button-container");O&&O.setAttribute("aria-hidden","true");this.menuButton=_.$U(this.hostElement).querySelector("#menu-button")},
attached:function(){var O=this.menuButton;O&&(O.addEventListener("focusin",_.Qa(this,this.onMenuButtonFocus_)),O.addEventListener("focusout",_.Qa(this,this.onMenuButtonBlur_)))},
detached:function(){var O=this.menuButton;O&&(O.removeEventListener("focusin",_.Qa(this,this.onMenuButtonFocus_)),O.removeEventListener("focusout",_.Qa(this,this.onMenuButtonBlur_)))},
identity:_.Hi,truthy:function(O){return!!O},
computeTimestampString:function(O){return O?O.timestampText?this.getSimpleString(O.timestampText):this.TIME_FORMATTER.format(new Date(O.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(O){return O},
computeMenuVisible_:function(O,x){return O||x},
computeHasInlineActionButtons:function(O){if(!O)return!1;var x,e;return!((x=O.inlineActionButtons)==null||!x.length)||!((e=O.additionalInlineActionButtons)==null||!e.length)},
createDocumentFragmentFromString:function(O){var x=_.Cn.createDocumentFragment.bind(_.Cn),e;if((e=this.participantsManager)==null||!e.viewerRegex)return x(O);e=document.createDocumentFragment();for(var l=0,C;(C=this.participantsManager.viewerRegex.exec(O))!=null;){if(C.index>0){var Q=":"+C[0]+":";if((_.eg(_.Cn,Q)||_.SR(_.Cn,Q))&&O.indexOf(Q)===C.index-1)continue}e.appendChild(x(O.substring(l,C.index)));l=document.createElement("span");l.appendChild(x(C[0]));l.classList.add("mention");e.appendChild(l);
l=C.index+C[0].length}e.appendChild(x(O.substring(l)));return e},
createDocumentFragment:function(O){var x=document.createDocumentFragment();if(O.simpleText)return x.appendChild(this.createDocumentFragmentFromString(O.simpleText)),x;if(!O.runs)return x;for(var e=0;e<O.runs.length;e++){var l=O.runs[e];if(l.emoji)x.appendChild(_.Cn.createEmoji(l.emoji));else if(l.text)if(l.navigationEndpoint){var C=document.createElement("a");C.classList.add("yt-simple-endpoint");F8w(C,l.navigationEndpoint);_.$U(C).appendChild(this.createDocumentFragmentFromString(l.text));x.appendChild(C)}else x.appendChild(this.createDocumentFragmentFromString(l.text))}return x},
hasModerationOverlayVisible:function(){var O;return((O=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:O.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(O){O.composedPath().some(function(x){return(x=x instanceof Element?x:null)?x.tagName&&(x.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||x.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.t("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(O)},
colorFromDecimal:function(O){return jWL(O)},
markAsDeleted:function(O,x){this.set("data.deletedStateMessage",O);this.set("data.showOriginalContentMessage",x)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(O){if(this.data.contextMenuEndpoint){var x=_.GG().resolve(_.cR),e=this.data.contextMenuEndpoint,l;(l=_.We.instance)&&_.hI(l,e)?(x=nfF(x,e),l=_.NK(l,{},x)):l=_.uXp(x,e);l.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);O&&O.stopPropagation()}},
handleGetContextMenuResponse_:function(O){var x=_.We.instance;x&&_.hI(x,{liveChatEndpoint:{}})||(O=O.response);O.liveChatItemContextMenuSupportedRenderers&&O.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(O.liveChatItemContextMenuSupportedRenderers.menuRenderer);O.actions&&_.Sh(this.hostElement,"yt-live-chat-actions",[O.actions])},
handleGetContextMenuError:function(O){if(O instanceof Error||O instanceof Object||O instanceof String)var x=O;_.BH(new _.ry("Error encountered calling GetLiveChatItemContextMenu",x))},
showContextMenu_:function(O){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:O}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.wr(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.wr(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.QU.YtLiveChatItemBehavior=[Yzk,_.OJ.YtComponentBehavior,_.mP.YtOpenPopupBehavior];_.bn=function(){};var BQT;var vf2;var fFk;var JgT;var T$=function(){var O=_.a.apply(this,arguments)||this;O.active=!1;O.identity=_.Hi;return O};
_.c(T$,_.a);T$.prototype.dataChanged=function(){this.active=!1};
T$.prototype.onClick=function(){_.wr(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
T$.prototype.dataChanged=T$.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],T$.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],T$.prototype,"active",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],T$.prototype,"dataChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],T$);
_.n(T$,"yt-live-chat-text-input-field-suggestion",function(){if(JgT===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;fFk===void 0&&(fFk=document.createElement("template"));var l=fFk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);JgT=O}O=JgT;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});_.Ln=function(O,x,e){return CustomEvent.call(this,O,{detail:{value:x,path:e}})||this};
_.c(_.Ln,CustomEvent);_.k5=function(){var O=_.a.apply(this,arguments)||this;O.viewerName=null;O.actionMap={"yt-live-chat-actions":"onChatMessage_"};O.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];O.PARTICIPANT_TIME_USEC_=3E8;return O};
_.c(_.k5,_.a);_.b=_.k5.prototype;_.b.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.b.addParticipant=function(O){var x=_.HVr(this.participants,O,function(l,C){l=l[Object.keys(l)[0]];C=C[Object.keys(C)[0]];l=String(_.db(l.authorName)).toLowerCase();C=String(_.db(C.authorName)).toLowerCase();return l<C?-1:l==C?0:1}.bind(this));
if(x>=0){var e=this.participants[x];e[Object.keys(e)[0]].timestampUsec&&this.splice("participants",x,1,O)}else this.splice("participants",-x-1,0,O);O=O[Object.keys(O)[0]];x=_.db(O.authorName).toLocaleLowerCase();e=x.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(e)||(this.allParticipantsCharMap_[e]={});this.allParticipantsCharMap_[e][x]=O};
_.b.getAuthorsFromPrefix=function(O){return this.allParticipantsCharMap_.hasOwnProperty(O)?this.allParticipantsCharMap_[O]:null};
_.b.computeViewerRegex_=function(O){if(!O)return null;O=O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var x=O.indexOf("@")===0&&_.t("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(x+O.replace(/ /g,"\\s*")+"|^"+O.replace(/ /g,"\\s*")+"$|^"+O.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+O.replace(/ /g,"\\s*")+"$|(?<=\\s)"+O.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.b.checkForStaleParticipants_=function(){var O=this;this.trimOldParticipants_();this.asyncHandle_&&qyN(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.WZ(function(){O.checkForStaleParticipants_()},3E4))};
_.b.onChatMessage_=function(O){var x=this,e=Date.now()*1E3;O.forEach(function(l){if(l=_.q(l,XjF)){l=l.item;var C=Object.keys(l)[0];x.SUPPORTED_ITEM_TYPES_.indexOf(C)!=-1&&l[C].timestampUsec>=e-x.PARTICIPANT_TIME_USEC_&&x.addParticipant(l)}},this);
this.checkForStaleParticipants_()};
_.b.trimOldParticipants_=function(){for(var O=Date.now()*1E3,x=this.participants.length-1;x>=0;x--){var e=this.participants[x];e=e[Object.keys(e)[0]];e.timestampUsec&&e.timestampUsec<O-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",x,1)}};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],_.k5.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],_.k5.prototype,"viewerName",void 0);_.B([_.R({computed:"computeViewerRegex_(viewerName)"}),_.v("design:type",Object)],_.k5.prototype,"viewerRegex",void 0);_.B([_.R({value:function(){return[]},
notify:!0}),_.v("design:type",Array)],_.k5.prototype,"participants",void 0);_.B([_.Va({is:"yt-live-chat-participants-manager",noInjection:!0})],_.k5);var wBF=/.*([:@#].*?)$/,A8=/\u00a0/g,SzL=String.fromCharCode(160),ji$={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"},MO=function(){var O=_.a.apply(this,arguments)||this;O.disabled=!1;O.liveChatRichMessageInput=null;O.messageInput=null;O.isValidWithNoInputText=!1;O.suggestions=[];O.emojiManager=_.Cn;O.inputMethodEditorActive=
!1;O.suggestionIndex=-1;O.JSC$14266_lastSuggestionRange=null;return O};
_.c(MO,_.a);_.b=MO.prototype;_.b.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.b.attached=function(){_.No&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.b.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.b.dataChanged=function(){if(!this.ignoreColorMapping){var O=!1,x={},e;for(e in ji$)this.data&&this.data.hasOwnProperty(e)&&(x[ji$[e]]=this.colorFromDecimal(this.data[e]),O=!0);O&&_.lH(this.hostElement,x)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.b.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.b.colorFromDecimal=function(O){O=Math.floor(Number(O));return"rgba("+[O>>16&255,O>>8&255,O&255,(O>>24&255)/255].join()+")"};
_.b.preventDrag=function(O){O.dataTransfer&&(O.dataTransfer.dropEffect="none");O.preventDefault()};
_.b.preventResize=function(O){O.returnValue=!1};
_.b.onInputChange=function(){var O=this.characterCount,x=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&x&&x.remove();if(!x&&this.characterCount>this.maxCharacterLimit){var e=window.getSelection();if(e){var l=e.getRangeAt(0);e.removeAllRanges();e.addRange(l)}}if(e=this.getCurrentRange())l=this.calculateTextBeforeRange(e),this.completeEmojisInRange(e,l,!0)||this.updateSuggestions(e,l);l=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(l);
_.wr(this.hostElement,"yt-live-chat-message-input-change",l);x&&this.characterCount===0&&x.remove();e&&e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>O):e&&!e.collapsed&&e.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(O=this.input.childNodes.length-1;O>=0;O--)this.input.childNodes[O].nodeName==="BR"&&this.input.childNodes[O].remove()};
_.b.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.b.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var O=this.getCurrentRange();O&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.b.mergeOverflowText=function(O){if(O){var x=document.createRange();x.selectNodeContents(O);x=x.extractContents();this.input.insertBefore(x,O)}};
_.b.checkRangeAtEndOfInput=function(){var O=this.getCurrentRange();if(O){var x=_.$U(this.hostElement).querySelector("#overflow-text"),e=document.createRange();x&&x.previousSibling?x.previousSibling instanceof HTMLImageElement?e.selectNode(x.previousSibling):e.selectNodeContents(x.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?e.selectNode(this.input.lastChild):e.selectNodeContents(this.input.lastChild));e.collapse(!1);return e.isPointInRange(O.startContainer,
O.startOffset)}return!1};
_.b.handleOverflowText=function(O){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var x=_.$U(this.hostElement).querySelector("#overflow-text"),e=this.getCurrentRange();this.input.normalize();O=this.checkRangeAtEndOfInput()&&O;this.mergeOverflowText(x);for(var l,C=0,Q=0,L,k=this.input.childNodes,M=0;M<k.length;M++){var G=k[M];G instanceof Text?(Q+=G.textContent.length,Q>this.maxCharacterLimit&&(l=G,C=this.maxCharacterLimit+G.textContent.length-Q)):G instanceof HTMLImageElement&&
(l=void 0,Q=G.dataset.emojiId&&((l=this.data)==null?0:l.emojiCharacterCount)?Q+this.data.emojiCharacterCount:Q+G.alt.length,l=this.input,C=M);if(Q>this.maxCharacterLimit&&l){L=document.createRange();L.collapse(!1);x?(Q=this.input.lastChild.previousSibling,Q instanceof Text?L.setEnd(this.input.lastChild.previousSibling,Q.textContent.length):Q instanceof HTMLImageElement&&L.setEnd(this.input,this.input.childNodes.length-1)):L.selectNodeContents(this.input);L.setStart(l,C);break}}L&&(l=!1,e&&(O=L.isPointInRange(e.startContainer,
e.startOffset-1)),x||(x=document.createElement("span"),x.id="overflow-text",x.textContent="",x.setAttribute("contenteditable","true"),_.$U(_.$U(this.hostElement).querySelector("#input")).appendChild(x),l=!0),x&&(e=L.extractContents(),x.insertBefore(e,x.firstChild),O&&x.firstChild&&(e=document.createRange(),l?e.setStartAfter(x.lastChild):e.setStartAfter(x.firstChild),e.collapse(!0),x=window.getSelection(),x.removeAllRanges(),x.addRange(e))))}};
_.b.checkForDuplicateSpans=function(){for(var O=0;O<this.input.childNodes.length;O++){var x=this.input.childNodes[O];if(x.nodeName==="SPAN"){var e=document.createRange();e.selectNodeContents(x);e=e.extractContents();this.input.insertBefore(e,x);x.remove()}}this.handleOverflowText(!0)};
_.b.getCurrentRange=function(){var O=window.getSelection();return O&&O.rangeCount?O.getRangeAt(0).cloneRange():null};
_.b.getInputRange=function(){var O=this.getCurrentRange();if(O){for(var x=O.commonAncestorContainer,e=!1,l=_.$U(this.hostElement).querySelector("#input");x;){if(x===l){e=!0;break}x=x.parentNode}e||(O=null)}O||(O=this.getRangeAtEnd());return O};
_.b.getRangeAtEnd=function(){var O=document.createRange(),x=_.$U(this.hostElement).querySelector("#input").lastChild;!x||x.nodeName!=="#text"&&x.nodeName!=="SPAN"?(O.selectNodeContents(_.$U(this.hostElement).querySelector("#input")),O.collapse(!1)):x.nodeName==="#text"?O.setStart(x,x.textContent.length):O.setStart(x,x.childNodes.length);return O};
_.b.getChatParticipantSuggestions=function(O,x,e,l){var C=_.t("live_chat_enable_handles_web_text_input_update");if(x)for(var Q in x)if(Q.indexOf(O)===0||C&&Q.indexOf(e+O)===0){var L=x[Q],k=_.db(L.authorName);l.push({suggestion:{author:!0,authorType:e,image:L.authorPhoto,alt:k,text:k}});if(l.length>=64)break}};
_.b.getSuggestions=function(O){var x=[],e=O.substring(0,3),l=KE4(_.Cn,e,!0);if(l)for(var C in l)if(C.toLocaleLowerCase().indexOf(O)===0){var Q=l[C];if(Q&&Q.emojiId){if(Q=HTd(_.Cn,Q.emojiId)){var L=void 0,k=void 0,M=void 0,G=void 0,X=((L=Q.image)==null?0:(k=L.accessibility)==null?0:(M=k.accessibilityData)==null?0:M.label)||Q.isCustomEmoji?(G=Q.shortcuts)==null?void 0:G[0]:Q.emojiId;x.push({suggestion:{emoji:!0,image:Q.image,alt:X,text:C,textToInsertWhenSelected:Q.isCustomEmoji?C:X}})}if(x.length>=
64)break}}if(!this.participantsManager)return null;if(e.indexOf("@")===0||e.indexOf("#")===0)l=e.charAt(0),O=O.substring(1),C=_.t("live_chat_enable_handles_web_text_input_update"),e.indexOf("@")===0&&C&&(C=this.participantsManager.getAuthorsFromPrefix(e.substring(0,2)),this.getChatParticipantSuggestions(O,C,l,x)),e=e.substring(1),e=this.participantsManager.getAuthorsFromPrefix(e),this.getChatParticipantSuggestions(O,e,l,x);return x?x.sort(function(y,Z){return Z.suggestion.text<y.suggestion.text?-1:
Z.suggestion.text===y.suggestion.text?0:1}):null};
_.b.insertSuggestion=function(O){var x=_.t("live_chat_enable_handles_web_text_input_update"),e=O.authorType;x=O.text.indexOf(e)===0&&x?O.text+SzL:e+O.text+SzL;O.emoji?this.insertTextAtRange(this.JSC$14266_lastSuggestionRange,O.textToInsertWhenSelected||""):O.author&&this.insertTextAtRange(this.JSC$14266_lastSuggestionRange,x)};
_.b.updateSuggestionsAtCaret=function(){var O=this.getCurrentRange();O&&this.updateSuggestions(O,this.calculateTextBeforeRange(O))};
_.b.offsetStartOfRangeBy=function(O,x){for(;x>0;)if(O.startOffset-x>=0){O.setStart(O.startContainer,O.startOffset-x);break}else{x=O.startContainer instanceof HTMLImageElement?x-O.startContainer.alt.length:x-O.startOffset;var e=O.startContainer.previousSibling;if(!e){O.setStart(O.startContainer,0);break}if(_.t("live_chat_require_space_for_autocomplete_emoji")){var l=void 0,C=void 0;O.setStart(e,((l=e)==null?void 0:(C=l.textContent)==null?void 0:C.length)||0)}else O.setStart(e,e.childNodes.length||
0)}};
_.b.updateSuggestions=function(O,x){var e=this;this.JSC$14266_lastSuggestionRange&&(this.JSC$14266_lastSuggestionRange.detach(),this.JSC$14266_lastSuggestionRange=null);if((x=wBF.exec(x))&&x.length&&(x=x[x.length-1].toLocaleLowerCase(),x.length>2&&(this.offsetStartOfRangeBy(O,x.length),this.JSC$14266_lastSuggestionRange=O,(O=this.getSuggestions(x))&&O.length))){this.suggestions=O;_.A_(this,function(){_.$U(e.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(O.length-1);return}this.dropdown.opened=!1};
_.b.completeEmojisInRange=function(O,x,e){var l=x.replace(/[\s\xa0]+$/,"");x=x.length-l.length;l=l.split(" ");l=l[l.length-1].trim().toLocaleLowerCase();var C=l.lastIndexOf(":");if(e&&!x&&C!==l.length-1)return!1;C!==-1&&(e=l.lastIndexOf(":",C-1),e!==-1&&(l=l.substring(e)));if((e=_.SR(_.Cn,l))&&e.emojiId){e=HTd(_.Cn,e.emojiId)||null;this.offsetStartOfRangeBy(O,l.length+x);var Q,L,k,M;l=(((Q=e)==null?0:Q.isCustomEmoji)?(L=e)==null?void 0:(k=L.shortcuts)==null?void 0:k[0]:(M=e)==null?void 0:M.emojiId)||
"";x&&(l+=SzL);this.insertTextAtRange(O,l);this.dropdown.opened=!1;return!0}return!1};
_.b.onSuggestion=function(O){this.insertSuggestion(O.detail);this.dropdown.opened=!1};
_.b.onKeyPress=function(O){O.keyCode===13&&(O.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.wr(this.hostElement,"yt-live-chat-send-message"))};
_.b.completeEmojis=function(){var O=document.createRange(),x=_.$U(this.hostElement).querySelector("#input").lastChild;x?O.setStart(x,x.childNodes.length):(O.selectNodeContents(_.$U(this.hostElement).querySelector("#input")),O.collapse(!1));this.completeEmojisInRange(O,this.calculateTextBeforeRange(O),_.t("live_chat_require_space_for_autocomplete_emoji"))};
_.b.maybePreventTextFormatting=function(O){!_.Oa||!O.ctrlKey&&!O.metaKey||O.keyCode!==66&&O.keyCode!==73||(O.stopImmediatePropagation(),O.preventDefault())};
_.b.onKeyDown=function(O){this.maybePreventTextFormatting(O);if(this.dropdown.opened)switch(O.keyCode){case 27:this.dropdown.opened=!1;O.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;O.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);O.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),O.preventDefault()}};
_.b.onKeyUp=function(O){switch(O.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.j1)this.onInputChange()};
_.b.changeSuggestionIndex=function(O){if(this.dropdown.opened){var x=_.$U(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<x.children.length&&(x.children[this.suggestionIndex].active=!1);var e=this.suggestions.length;this.suggestionIndex=(O+e)%e;O=x.children[this.suggestionIndex];O.active=!0;x.scrollTop=O.offsetTop}};
_.b.onInputPaste=function(O){O.preventDefault();(O=O.clipboardData)&&O.types&&(O=O.getData("text/plain")||"",O=O.replace(/\n/g,""),this.insertText(O));(O=this.getCurrentRange())&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.b.onFocus=function(){this._setFocused(!0)};
_.b.onBlur=function(){this._setFocused(!1)};
_.b.insertText=function(O){this.insertTextAtRange(this.getInputRange(),O)};
_.b.insertTextAtRange=function(O,x){if(O&&(O.collapsed||O.deleteContents(),x=_.Cn.createDocumentFragment(x,!0,!1))){for(var e=_.T((x==null?void 0:x.childNodes)||[]),l=e.next();!l.done;l=e.next()){l=l.value;var C=void 0,Q=void 0,L=void 0,k=void 0,M=void 0;(L=(C=window)==null?void 0:(Q=C.ShadyCSS)==null?void 0:Q.ScopingShim)==null||(M=(k=L).scopeNode)==null||M.call(k,l,this.hostElement.localName)}e=x.lastChild;O.insertNode(x);this.focused||this.input.focus();if(this.focused){O=O.cloneRange();O.selectNodeContents(e);
O.collapse(!1);if(x=window.getSelection())x.removeAllRanges(),x.addRange(O);O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}O=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(O);_.wr(this.hostElement,"yt-live-chat-message-input-change",O)}};
_.b.setLiveChatRichMessageInput=function(O){_.$U(_.$U(this.hostElement).querySelector("#input")).textContent="";if(O&&O.textSegments){for(var x=0;x<O.textSegments.length;x++){var e=O.textSegments[x];e.text?_.$U(_.$U(this.hostElement).querySelector("#input")).appendChild(_.Cn.createDocumentFragment(e.text,!0,!1)):e.emojiId&&(e=_.eg(_.Cn,e.emojiId))&&_.$U(_.$U(this.hostElement).querySelector("#input")).appendChild(_.Cn.createEmoji(e,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.b.setText=function(O){this.setLiveChatRichMessageInput(O?{textSegments:[{text:O}]}:null)};
_.b.calculateTextBeforeRange=function(O){var x="",e=O.startContainer;if(e&&e instanceof Text){var l;x=((l=e.textContent)==null?void 0:l.substring(0,O.startOffset))||"";e=e.previousSibling}for(;e&&e instanceof Text;)x=e.textContent+x,e=e.previousSibling;return x.replace(A8," ")};
_.b.calculateLiveChatRichMessageInput=function(){for(var O=[],x="",e=_.$U(_.$U(this.hostElement).querySelector("#input")).childNodes,l=0;l<e.length;l++){var C=e[l];C instanceof Text?x+=C.textContent:C instanceof HTMLImageElement&&(C.dataset.emojiId?(x&&(O.push({text:x.replace(A8," ")}),x=""),O.push({emojiId:C.dataset.emojiId})):x+=C.alt)}x&&O.push({text:x.replace(A8," ")});if(e=_.$U(this.hostElement).querySelector("#overflow-text")){x="";e=e.childNodes;for(l=0;l<e.length;l++)C=e[l],C instanceof Text?
x+=C.textContent:C instanceof HTMLImageElement&&(C.dataset.emojiId?(x&&(O.push({text:x.replace(A8," ")}),x=""),O.push({emojiId:C.dataset.emojiId})):x+=C.alt);x&&O.push({text:x.replace(A8," ")})}return{textSegments:O}};
_.b.computeCharacterCount=function(O){if(!O||!O.textSegments)return 0;for(var x=0,e=0;e<O.textSegments.length;e++){var l=O.textSegments[e];if(l.text)x+=l.text.length;else if(l.emojiId){var C=void 0;if((C=this.data)==null?0:C.emojiCharacterCount)x+=this.data.emojiCharacterCount;else{var Q=C=void 0,L=void 0;x+=((Q=_.eg(_.Cn,(C=l)==null?void 0:C.emojiId))==null?void 0:(L=Q.shortcuts)==null?void 0:L[0].length)||0}}}return x};
_.b.characterCountChanged=function(){_.wr(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.b.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Ln("focused-changed",this.focused))};
_.b.focus=function(){this.setFocus(!1)};
_.b.focusAtEnd=function(){this.setFocus(!0)};
_.b.setFocus=function(O){O=O?this.getRangeAtEnd():this.getInputRange();_.$U(this.hostElement).querySelector("#input").focus();var x=window.getSelection();x&&(x.removeAllRanges(),x.addRange(O))};
_.b.insertEmoji=function(O){var x,e=((O==null?0:O.isCustomEmoji)?(x=O.shortcuts)==null?void 0:x[0]:O==null?void 0:O.emojiId)||"";this.insertText(e)};
_.b.computeText=function(O){if(!O||!O.textSegments)return"";for(var x="",e=0;e<O.textSegments.length;e++){var l=O.textSegments[e];if(l.text)x+=l.text;else if(l.emojiId){var C=void 0,Q=void 0,L=void 0;x+=((Q=_.eg(_.Cn,(C=l)==null?void 0:C.emojiId))==null?void 0:(L=Q.shortcuts)==null?void 0:L[0])||""}}return x};
_.b.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Dy.Object.defineProperties(MO.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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}}});
MO.prototype.focusedChanged=MO.prototype.focusedChanged;MO.prototype.characterCountChanged=MO.prototype.characterCountChanged;MO.prototype.onSuggestion=MO.prototype.onSuggestion;MO.prototype.onMessageSet=MO.prototype.onMessageSet;MO.prototype.dataChanged=MO.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],MO.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],MO.prototype,"disabled",void 0);_.B([_.p("disabled"),_.v("design:type",Number),_.v("design:paramtypes",[])],MO.prototype,"inputTabIndex",null);_.B([_.p("data.maxCharacterLimit"),_.R({readOnly:!0,notify:!0}),_.v("design:type",Number),_.v("design:paramtypes",[])],MO.prototype,"maxCharacterLimit",null);
_.B([_.p("liveChatRichMessageInput"),_.R({readOnly:!0,notify:!0}),_.v("design:type",Number),_.v("design:paramtypes",[])],MO.prototype,"characterCount",null);_.B([_.p("maxCharacterLimit, characterCount"),_.R({readOnly:!0,notify:!0}),_.v("design:type",Number),_.v("design:paramtypes",[])],MO.prototype,"remainingCharacterCount",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],MO.prototype,"isChatMessageInput",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],MO.prototype,"inputExpanded",void 0);_.B([_.R({readOnly:!0,notify:!0}),_.v("design:type",Object)],MO.prototype,"liveChatRichMessageInput",void 0);_.B([_.R(),_.v("design:type",Object)],MO.prototype,"messageInput",void 0);_.B([_.R(),_.v("design:type",Boolean)],MO.prototype,"ignoreColorMapping",void 0);_.B([_.p("characterCount"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],MO.prototype,"hasText",null);
_.B([_.R(),_.v("design:type",Object)],MO.prototype,"isValidWithNoInputText",void 0);_.B([_.p("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.R(),_.v("design:type",Boolean),_.v("design:paramtypes",[])],MO.prototype,"isInputValid",null);_.B([_.R({readOnly:!0,value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],MO.prototype,"focused",void 0);_.B([_.R(),_.v("design:type",Array)],MO.prototype,"suggestions",void 0);
_.B([_.R(),_.v("design:type",_.x5)],MO.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",_.k5)],MO.prototype,"participantsManager",void 0);_.B([_.R(),_.v("design:type",Boolean)],MO.prototype,"noUnderline",void 0);_.B([_.R(),_.v("design:type",Object)],MO.prototype,"inputMethodEditorActive",void 0);_.B([_.kX("#dropdown"),_.v("design:type",Object)],MO.prototype,"dropdown",void 0);_.B([_.kX("#input"),_.v("design:type",HTMLElement)],MO.prototype,"input",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MO.prototype,"dataChanged",null);_.B([_.T1("messageInput"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MO.prototype,"onMessageSet",null);_.B([_.bH("yt-live-chat-select-suggestion"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],MO.prototype,"onSuggestion",null);
_.B([_.T1("characterCount"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MO.prototype,"characterCountChanged",null);_.B([_.T1("focused"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MO.prototype,"focusedChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],MO);
_.NQJ=_.n(MO,"yt-live-chat-text-input-field-renderer",function(){if(vf2===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;BQT===void 0&&(BQT=document.createElement("template"));var l=BQT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);vf2=O}O=vf2;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var D1=function(){var O=_.a.apply(this,arguments)||this;O.buttonOverrides={style:"overlay",type:"filled"};O.allowAnimations=!1;O.modern=_.t("web_button_rework_with_live");O.noPadding=!1;return O};
_.c(D1,_.a);_.b=D1.prototype;_.b.shouldSupportInlineActionButtons=function(){return!0};
_.b.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"}}}}};
_.b.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.b.attached=function(){this.allowAnimations=!1};
_.b.dataChanged=function(){if(this.data){var O={"--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)};_.lH(this.hostElement,O);this.allowAnimations=!0}};
_.b.messageChanged=function(){var O,x=(O=this.data)==null?void 0:O.message;O=_.$U(_.$U(this.hostElement).querySelector("#message"));O.textContent="";x&&O.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x))};
_.b.computeShowOnlyHeader=function(O,x){return!O||O.pdgLikeButton||O.replyButton||O.buyFlowButton?!1:this.isEmpty(O,x)&&!O.footer};
_.b.computeShowFooterDivider=function(O,x,e){return O?!!O.footer&&!this.isEmpty(O,x)&&!e:!1};
_.b.computeIsUserEditable=function(O){return!!O.inputField};
_.b.computeHasHeartButton=function(O){return(O==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(O==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(O==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.b.computeNoveltyImage=function(O){if(O.headerOverlayImage&&O.headerOverlayImage.thumbnails.length){var x=O.headerOverlayImage.thumbnails[0],e,l;if((e=O.pdgPurchasedNoveltyLoggingDirectives)==null?0:(l=e.loggingDirectives)==null?0:l.trackingParams){var C,Q;Ef8((C=O.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Q=C.loggingDirectives)==null?void 0:Q.trackingParams)}return x.width||0}return 0};
_.b.computeAuthorPhotoSize=function(O){return(O==null?0:O.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.b.inputFocus=function(){var O=_.$U(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");O&&O.focus()};
_.b.inputInsertEmoji=function(O){var x=_.$U(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");x&&x.insertEmoji(O)};
_.b.inputMessage=function(){var O=_.$U(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),x;return O&&((x=this.data)==null?0:x.inputField)?(O.completeEmojis(),_.a2(O.liveChatRichMessageInput)):null};
_.b.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.b.isEmpty=function(O,x){return O?O.empty||!(O.message||O.inputField||x):!0};
_.b.onLowerBuyButtonClick=function(){var O,x=_.q((O=this.data)==null?void 0:O.buyButton,_.wf);x&&x.trackingParams&&!gN7(x.command)&&(O=_.Fv(x.trackingParams))&&(x=_.Pq())&&_.KZ(x,O)};
_.b.shouldSupportWholeItemClick=function(){return!0};
_.Dy.Object.defineProperties(D1.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
D1.prototype.isDeletedChanged=D1.prototype.isDeletedChanged;D1.prototype.messageChanged=D1.prototype.messageChanged;D1.prototype.dataChanged=D1.prototype.dataChanged;_.B([_.V(VA3.YtPdgLiveChatItemBehavior),_.v("design:type",Object)],D1.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],D1.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],D1.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],D1.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:yg8}),_.v("design:type",Object)],D1.prototype,"engagementState",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.v("design:type",Boolean)],D1.prototype,"isUserEditable",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.v("design:type",Boolean)],D1.prototype,"hasHeartButton",void 0);_.B([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.v("design:type",Boolean)],D1.prototype,"showOnlyHeader",void 0);
_.B([_.R({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.v("design:type",Boolean)],D1.prototype,"showFooterDivider",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Object)],D1.prototype,"allowAnimations",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],D1.prototype,"dashboardMoneyFeed",void 0);_.B([_.R({computed:"computeNoveltyImage(data)"}),_.v("design:type",Number)],D1.prototype,"noveltyWidth",void 0);
_.B([_.R({computed:"computeAuthorPhotoSize(data)"}),_.v("design:type",Number)],D1.prototype,"authorPhotoSize",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],D1.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],D1.prototype,"noPadding",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D1.prototype,"dataChanged",null);
_.B([_.T1("data.message"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D1.prototype,"messageChanged",null);_.B([_.p("data","dashboardMoneyFeed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],D1.prototype,"hideLowerBumper",null);_.B([_.T1("isDeleted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D1.prototype,"isDeletedChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],D1);
_.n(D1,"yt-live-chat-paid-message-renderer",function(){if(bTT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Qid===void 0&&(Qid=document.createElement("template"));var l=Qid;e.call(x,l.content.cloneNode(!0),O.content.firstChild);bTT=O}O=bTT;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var gfd;var $UL;var G$=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;return O};
_.c(G$,_.MQ);G$.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.wz("openPopupConfig")};
_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],G$.prototype,"ytOpenPopupBehavior",void 0);_.B([_.DC()],G$);_.FY=[_.mP.YtOpenPopupBehavior,G$.prototype];var iTF;var K7=[_.Q9,wYd,_.vj,_.bK,_.Hq,_.Xg4,_.kU,_.eYk,_.Ee,z8W];_.t("web_watch_get_updated_metadata_response_processing")&&K7.push(_.V73);_.t("web_continuation_response_processing")&&K7.push(_.U1);var X6s=new _.iR("RESPONSE_RECEIVED_COMMANDS"),mIr=new _.iR("RESPONSE_RECEIVED_COMMANDS");var cV7="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Pss=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],qir=["GET_UNSEEN_NOTIFICATION_COUNT"];var XY=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;O.serviceEndpointHandlers=[];return O};
_.c(XY,_.MQ);XY.prototype.created=function(){var O=this;this.endpointHandlerActionMap={"yt-service-request":function(x,e,l,C){var Q;return tqV(O.hostElement,x,e,l,C,O.serviceEndpointHandlers,(Q=O.onEntitiesUpdated)==null?void 0:Q.bind(O))}}};
XY.prototype.attached=function(){_.e2(_.iU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
XY.prototype.detached=function(){_.lD(_.iU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.B([_.DC()],XY);_.OvR=[XY.prototype];var xId,e8T=function(){return xId!==void 0?xId:xId=document.createElement("template")};
document.head.appendChild(e8T().content);var lTR;var Csz=document.head,QGd=Csz.appendChild,bvR;if(lTR===void 0){var TtJ=document.createElement("template");_.I(TtJ,"\x3c!--css-build:shady--\x3e");TtJ.content.insertBefore(e8T().content.cloneNode(!0),TtJ.content.firstChild);lTR=TtJ}bvR=lTR;QGd.call(Csz,bvR.content);var LZp,k9J=function(){return LZp!==void 0?LZp:LZp=document.createElement("template")};
document.head.appendChild(k9J().content);var AVp;var MqL=document.head,DID=MqL.appendChild,G9T;if(AVp===void 0){var FZD=document.createElement("template");_.I(FZD,"\x3c!--css-build:shady--\x3e");FZD.content.insertBefore(k9J().content.cloneNode(!0),FZD.content.firstChild);AVp=FZD}G9T=AVp;DID.call(MqL,G9T.content);var X_3;_.tI("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.tI("sharingRendererButtons","buttonRenderer","ytd-button-renderer");X_3=_.t("web_button_rework")&&_.SS("BUTTON_REWORK")||_.t("web_button_rework_with_live");_.oe=function(){var O=_.a.apply(this,arguments)||this;O.isPressed=!1;O.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return O};
_.c(_.oe,_.a);_.b=_.oe.prototype;_.b.created=function(){this.showTooltips=!0};
_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.b.onHintIdChanged=function(){var O=this,x,e,l=(x=this.ytButtonBehavior.data)==null?void 0:(e=x.hint)==null?void 0:e.hintRenderer;if(l&&l.hintId){x=_.jh(this.hostElement,"yt-get-opened-popups-action");x=(x&&x.length===1?x[0]:[]).length>0;var C=null;l.hintId!=="sponsor-pre-purchase"||x?l.hintId.startsWith("sponsor-post-purchase")&&!x?C=BEp("membership-manage"):l.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!x&&(C=BEp("membership-freebie-join")):C=BEp("membership-join");C&&_.vn.addLowPriorityJob(function(){for(var Q=
_.T(C),L=Q.next();!L.done;L=Q.next())O.ytComponentBehavior.resolveCommand(L.value)})}};
_.b.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.b.onYtNavigate=function(O){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);x&&(O.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(x))};
_.b.onYtServiceRequestSent=function(O,x){this.handleServiceRequestActions(x);_.wr(this.hostElement,"yt-service-request-sent-button-renderer")};
_.b.onServiceRequestCompleted=function(O,x){this.handleServiceRequestActions(x);_.wr(this.hostElement,"yt-service-request-completed-button-renderer")};
_.b.updateButton=function(O){var x;if(O=(x=_.q(O,KiR))==null?void 0:x.updatedButton)this.ytButtonBehavior.data=_.q(O,_.wf)};
_.b.handleUpdateButtonAction=function(O){var x=this.ytButtonBehavior.data;x.targetId&&O.updateButtonAction.targetId&&x.targetId===O.updateButtonAction.targetId&&this.updateButton(O)};
_.b.handleServiceRequestActions=function(O){if(O=O.actions)for(var x=0;x<O.length;x++)this.updateButton(O[x])};
_.Dy.Object.defineProperties(_.oe,{template:{configurable:!0,enumerable:!0,get:function(){if(iTF===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);iTF=O}O=iTF;return O}}});
_.oe.prototype.onServiceRequestCompleted=_.oe.prototype.onServiceRequestCompleted;_.oe.prototype.onYtServiceRequestSent=_.oe.prototype.onYtServiceRequestSent;_.oe.prototype.onYtNavigate=_.oe.prototype.onYtNavigate;_.oe.prototype.onPressedStateChanged=_.oe.prototype.onPressedStateChanged;_.oe.prototype.onHintIdChanged=_.oe.prototype.onHintIdChanged;_.B([_.R(),_.v("design:type",Object)],_.oe.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],_.oe.prototype,"isPressed",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],_.oe.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.Vr3.YtButtonBehavior),_.v("design:type",Object)],_.oe.prototype,"ytButtonBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],_.oe.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],_.oe.prototype,"ytComponentBehavior",void 0);
_.B([_.V(nd.YtRenderButtonBehavior),_.v("design:type",Object)],_.oe.prototype,"ytRenderButtonBehavior",void 0);_.B([_.T1("data.hint.hintRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],_.oe.prototype,"onHintIdChanged",null);_.B([_.T1("isPressed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],_.oe.prototype,"onPressedStateChanged",null);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],_.oe.prototype,"onYtNavigate",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],_.oe.prototype,"onYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],_.oe.prototype,"onServiceRequestCompleted",null);_.B([_.H({is:"ytd-button-renderer",disableElementRegistration:X_3})],_.oe);var yU=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_button_rework_with_live");O.buttonOverrides={style:"overlay",type:"filled"};return O};
_.c(yU,_.a);_.b=yU.prototype;_.b.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"}}}}};
_.b.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.b.dataChanged=function(){if(this.data&&this.data.sticker){var O=_.Sf(this.data.sticker.thumbnails,this.stickerWidth);O||_.KZ8(O).thenCatch(function(){_.ft(new _.ry("Failed to load Super Sticker with url",O))})}};
_.b.computeAuthorPhotoSize=function(O){return(O==null?0:O.isV2Style)?32:40};
_.b.computeIsV2Style=function(O){return(O==null?0:O.isV2Style)?!0:!1};
_.b.onStickerLoaded=function(O){var x,e,l;(x=_.uK(O))==null||(e=x.parentNode)==null||(l=e.classList)==null||l.add("sticker-loaded")};
_.b.computeNoveltyImageWidth=function(O){var x,e;if(O==null?0:(x=O.headerOverlayImage)==null?0:(e=x.thumbnails)==null?0:e.length){x=O.headerOverlayImage.thumbnails[0];var l,C;if((l=O.pdgPurchasedNoveltyLoggingDirectives)==null?0:(C=l.loggingDirectives)==null?0:C.trackingParams){var Q,L;Ef8((Q=O.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(L=Q.loggingDirectives)==null?void 0:L.trackingParams)}return x.width||0}return 0};
_.b.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.b.updateStickerStyles=function(){var O=this.data;O&&(O={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.authorNameTextColor)},
_.lH(this.hostElement,O))};
_.b.onBuyButtonClick=function(){var O,x=_.q((O=this.data)==null?void 0:O.buyButton,_.wf);x&&!gN7(x.command)&&this.ytRendererBehavior.logExplicitClick(x)};
_.b.shouldSupportWholeItemClick=function(){return!0};
_.Dy.Object.defineProperties(yU.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 O;return((O=this.data)==null?0:O.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
yU.prototype.updateStickerStyles=yU.prototype.updateStickerStyles;yU.prototype.isDeletedChanged=yU.prototype.isDeletedChanged;yU.prototype.onStickerLoaded=yU.prototype.onStickerLoaded;yU.prototype.dataChanged=yU.prototype.dataChanged;_.B([_.V(VA3.YtPdgLiveChatItemBehavior),_.v("design:type",Object)],yU.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],yU.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],yU.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yU.prototype,"data",void 0);
_.B([_.R({computed:"computeAuthorPhotoSize(data)"}),_.v("design:type",Number)],yU.prototype,"authorPhotoSize",void 0);_.B([_.R(),_.v("design:type",Boolean)],yU.prototype,"isDeleted",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yU.prototype,"dashboardMoneyFeed",void 0);_.B([_.R({computed:"computeNoveltyImageWidth(data)"}),_.v("design:type",Number)],yU.prototype,"noveltyWidth",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yU.prototype,"modern",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.v("design:type",Boolean)],yU.prototype,"isV2Style",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yU.prototype,"dataChanged",null);_.B([_.bH("yt-img-shadow-loaded"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],yU.prototype,"onStickerLoaded",null);
_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],yU.prototype,"stickerWidth",null);_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],yU.prototype,"stickerHeight",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],yU.prototype,"hasHeartButton",null);_.B([_.p("data","dashboardMoneyFeed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],yU.prototype,"hideLowerBumper",null);
_.B([_.T1("isDeleted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yU.prototype,"isDeletedChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yU.prototype,"updateStickerStyles",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],yU);
_.n(yU,"yt-live-chat-paid-sticker-renderer",function(){if($UL===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;gfd===void 0&&(gfd=document.createElement("template"));var l=gfd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);$UL=O}O=$UL;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var oA2;var yV2;var Zv4,EAz=function(){return Zv4!==void 0?Zv4:Zv4=document.createElement("template")};
document.head.appendChild(EAz().content);var tq2,qiF=function(){return tq2!==void 0?tq2:tq2=document.createElement("template")};
document.head.appendChild(qiF().content);var PsL;var cVN,IT2=function(){return cVN!==void 0?cVN:cVN=document.createElement("template")};
document.head.appendChild(IT2().content);var VqL;var p_N=document.head,R8z=p_N.appendChild,UId;if(VqL===void 0){var aTd=document.createElement("template");_.I(aTd,"\x3c!--css-build:shady--\x3e");aTd.content.insertBefore(IT2().content.cloneNode(!0),aTd.content.firstChild);VqL=aTd}UId=VqL;R8z.call(p_N,UId.content);var mIp=document.head,sGJ=mIp.appendChild,WZL;if(PsL===void 0){var Z1=document.createElement("template");_.I(Z1,"\x3c!--css-build:shady--\x3e");Z1.content.insertBefore(qiF().content.cloneNode(!0),Z1.content.firstChild);Z1.content.insertBefore(EAz().content.cloneNode(!0),Z1.content.firstChild);PsL=Z1}WZL=PsL;sGJ.call(mIp,WZL.content);var EB=function(){var O=_.MQ.apply(this,arguments)||this;O.focusedIndex=0;O.verticalOffset=0;O.verticalAlign="top";O.dynamicAlign=!0;return O};
_.c(EB,_.MQ);EB.prototype.emojiUrl=function(O){O=_.eg(this.emojiManager,O);if(!O)return"";var x;O=(x=O.image)==null?void 0:x.thumbnails;return _.Sf(O,24)||""};
var h8L=function(O){var x;O.emojiVariants&&(x=O.data)!=null&&x.target&&_.A_(O,function(){O.set("verticalOffset",-1*O.hostElement.clientHeight);var e=_.$U(O.hostElement).querySelector("img");e&&e.focus()})};
_.b=EB.prototype;_.b.onKeyboardEnter=function(){};
_.b.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.b.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.b.onKeyDown=function(O){switch(O.keyCode){case 13:this.onKeyboardEnter();O.preventDefault();break;case 40:this.changeFocus(1);O.preventDefault();break;case 38:this.changeFocus(-1);O.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.b.onYtEmojiSelect=function(O){var x=this,e,l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1)return l=(e=x.data)==null?void 0:e.emoji,L=((C=l)==null?void 0:C.stickyPrefId)||((Q=l)==null?void 0:Q.emojiId),M=(k=O.detail)==null?void 0:k.emojiId,L&&M&&L!==M?X.yield((G=x.emojiManager)==null?void 0:dUN(G,l,M),2):X.return();_.Sh(x.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[l,M]);_.Ra(X)})};
_.b.changeFocus=function(O){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+O+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(O=_.$U(this.hostElement).querySelector("#variants"))&&O.children[this.focusedIndex].focus())};
_.Dy.Object.defineProperties(EB.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
EB.prototype.onYtEmojiSelect=EB.prototype.onYtEmojiSelect;EB.prototype.onKeyDown=EB.prototype.onKeyDown;EB.prototype.onEmojiVariantsChanged=EB.prototype.onEmojiVariantsChanged;EB.prototype.onVerticalOffsetOrPositionTargetChanged=EB.prototype.onVerticalOffsetOrPositionTargetChanged;_.B([_.V(_.N_),_.v("design:type",Object)],EB.prototype,"ironOverlayBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],EB.prototype,"data",void 0);_.B([_.R(),_.v("design:type",_.x5)],EB.prototype,"emojiManager",void 0);
_.B([_.R(),_.v("design:type",Object)],EB.prototype,"emojiVariants",void 0);_.B([_.R(),_.v("design:type",Object)],EB.prototype,"focusedIndex",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],EB.prototype,"positionTarget",null);_.B([_.R({reflectToAttribute:!0}),_.p("verticalOffset","data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],EB.prototype,"isPositioned",null);_.B([_.R(),_.v("design:type",Object)],EB.prototype,"verticalOffset",void 0);
_.B([_.R(),_.v("design:type",Object)],EB.prototype,"verticalAlign",void 0);_.B([_.R(),_.v("design:type",Object)],EB.prototype,"dynamicAlign",void 0);_.B([_.T1("verticalOffset","positionTarget"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],EB.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.B([_.T1("emojiVariants"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],EB.prototype,"onEmojiVariantsChanged",null);
_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],EB.prototype,"onKeyDown",null);_.B([_.bH("yt-emoji-select"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype",Promise)],EB.prototype,"onYtEmojiSelect",null);_.B([_.DC()],EB);var z8d=[EB.prototype];var rVT;var HvD;var KZT=/medium-light|medium-dark|light|medium|dark/,dIF=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,nAF=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),t8=function(){var O=_.a.apply(this,arguments)||this;O.userSelection={left:null,right:null};O.scrollAction="lock";O.isEmojiDraftInProgress=!1;return O};
_.c(t8,_.a);_.b=t8.prototype;_.b.onClick=function(O){O=_.uK(O);O instanceof HTMLImageElement&&this.selectOrUpdateEmoji(O)};
_.b.selectOrUpdateEmoji=function(O){var x=O.getAttribute("selection");x&&(x==="default"?_.wr(this.hostElement,"yt-emoji-select",_.eg(this.emojiManager,O.id)):x==="left"?this.userSelection=Object.assign({},this.userSelection,{left:O.src}):x==="right"?this.userSelection=Object.assign({},this.userSelection,{right:O.src}):x==="user"&&this.userSelection.left&&this.userSelection.right&&_.wr(this.hostElement,"yt-emoji-select",_.eg(this.emojiManager,O.id)))};
_.b.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.b.onMultiSelectorThumbnailRowChanged=function(){var O,x,e;((O=this.data)==null?0:(x=O.emoji)==null?0:(e=x.multiSelectorThumbnailRow)==null?0:e.length)&&this.openSelector()};
_.b.getThumbnailFromEmojiRow=function(O){var x,e;return(O==null?void 0:(x=O.thumbnails)==null?void 0:(e=x[0])==null?void 0:e.url)||""};
_.b.getEmojiAltTextForPartialSelector=function(O){var x;return((x=this.getThumbnailFromEmojiRow(O).match(dIF))==null?void 0:x[0])||""};
_.b.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.b.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.b.getRowSelection=function(O){return["left","right"][O]};
_.b.getIdFromComposedEmoji=function(O){return(O==null?void 0:O.emojiId)||""};
_.b.getEmojiFromPartialSelections=function(O,x){if(!O&&!x)return null;var e,l,C=(e=this.data)==null?void 0:(l=e.emoji)==null?void 0:l.variantIds;if(!C||!C.length)return null;var Q;O=(Q=O.match(KZT))==null?void 0:Q[0];var L;x=(L=x.match(KZT))==null?void 0:L[0];if(!O||!x)return null;var k=nAF.get(O);L=nAF.get(x);if(k===L){L=Array.from(nAF.values()).filter(function(G){return G!==k}).join("|");
var M=new RegExp("^((?!("+L+")).)*"+k+"$")}else M=new RegExp(k+".*"+L);return(C=C.find(function(G){return M.test(G)}))&&_.eg(this.emojiManager,C)||null};
_.b.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var O,x=this.ytEmojiSelectorBehavior.emojiUrl(((O=this.data.emoji)==null?void 0:O.emojiId)||"");_.$U(this.hostElement).querySelector('[selection="user"]').src.includes(x)||(this.isEmojiDraftInProgress=!0)}};
_.b.onDomChange=function(){h8L(this.ytEmojiSelectorBehavior)};
_.b.getFocusableElements=function(){return _.$U(this.hostElement).querySelectorAll("img").filter(function(O){return O.getAttribute("role")==="option"})};
_.b.changeFocus=function(O){var x=this.getFocusableElements();x!=null&&x.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+O+x.length)%x.length,this.ytEmojiSelectorBehavior.focusedIndex<x.length&&(O=x[this.ytEmojiSelectorBehavior.focusedIndex])&&O.focus())};
_.b.onKeyboardEnter=function(){var O=this.getFocusableElements();O!=null&&O.length&&(O=O[this.ytEmojiSelectorBehavior.focusedIndex])&&O instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(O),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Dy.Object.defineProperties(t8.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var O=this,x,e,l;return this.emojiManager&&((x=this.data)==null?0:(e=x.emoji)==null?0:(l=e.variantIds)==null?0:l.length)?this.data.emoji.variantIds.map(function(C){return!!C&&_.eg(O.emojiManager,C)}).filter(function(C){return!!C}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var O,x=(O=this.userSelection)==null?void 0:O.left,e;O=(e=this.userSelection)==null?void 0:e.right;return x&&O?this.getEmojiFromPartialSelections(x,O):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.composedEmojiSelection)==null?0:O.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var x;O=(x=this.userSelection)==null?void 0:x.left;var e;x=(e=this.userSelection)==null?void 0:e.right;if(!O&&!x){var l;return this.ytEmojiSelectorBehavior.emojiUrl(((l=this.data.emoji)==null?void 0:l.emojiId)||"")}return O&&!x?O:!O&&x?x:""}}});
t8.prototype.onMultiSelectorThumbnailRowChanged=t8.prototype.onMultiSelectorThumbnailRowChanged;t8.prototype.onClick=t8.prototype.onClick;_.B([_.V(_.N_),_.v("design:type",Object)],t8.prototype,"ironOverlayBehavior",void 0);_.B([_.V(z8d),_.v("design:type",Object)],t8.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],t8.prototype,"data",void 0);_.B([_.R(),_.v("design:type",_.x5)],t8.prototype,"emojiManager",void 0);
_.B([_.R(),_.v("design:type",Object)],t8.prototype,"userSelection",void 0);_.B([_.R(),_.v("design:type",Object)],t8.prototype,"scrollAction",void 0);_.B([_.R(),_.v("design:type",Object)],t8.prototype,"isEmojiDraftInProgress",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],t8.prototype,"emojiVariants",null);_.B([_.p("data","userSelection"),_.v("design:type",Object),_.v("design:paramtypes",[])],t8.prototype,"composedEmojiSelection",null);
_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[MouseEvent]),_.v("design:returntype")],t8.prototype,"onClick",null);_.B([_.T1("data.emoji.multiSelectorThumbnailRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],t8.prototype,"onMultiSelectorThumbnailRowChanged",null);_.B([_.p("data","userSelection","composedEmojiSelection"),_.v("design:type",String),_.v("design:paramtypes",[])],t8.prototype,"draftEmojiUrl",null);
_.B([_.Va({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],t8);
_.n(t8,"yt-emoji-multi-person-selector",function(){if(HvD===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;rVT===void 0&&(rVT=document.createElement("template"));var l=rVT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);HvD=O}O=HvD;return O},{mode:2});var uBJ;var YiR;var qO=function(){var O=_.a.apply(this,arguments)||this;O.tooltip_=null;return O};
_.c(qO,_.a);_.b=qO.prototype;_.b.dataChanged_=function(){var O;if((O=this.data)==null?0:O.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.$U(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.eU)(this.tooltip_).textContent=this.data.tooltip};
_.b.computeTargetId=function(){var O;return((O=this.data)==null?void 0:O.targetId)||""};
_.b.computeId_=function(O){return O};
_.b.computeIcon_=function(O){return _.x0(O)};
_.b.onTap_=function(){this.active=!this.active;_.wr(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.b.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("active-changed",this.active))};
_.Dy.Object.defineProperties(qO.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var O,x;if((O=this.data)==null?0:(x=O.icon)==null?0:x.iconType)return this.data.icon.iconType==="SUPER_STICKER";var e,l;return((e=this.data)==null?void 0:(l=e.icon)==null?void 0:l.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
qO.prototype.activeChangedForBinding=qO.prototype.activeChangedForBinding;qO.prototype.dataChanged_=qO.prototype.dataChanged_;_.B([_.V(_.iX.YtLiveChatTooltipTargetingBehavior),_.v("design:type",Object)],qO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qO.prototype,"data",void 0);_.B([_.R({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.v("design:type",String)],qO.prototype,"id",void 0);
_.B([_.R({computed:"computeTargetId(data.targetId)"}),_.v("design:type",String)],qO.prototype,"targetId",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],qO.prototype,"active",void 0);_.B([_.R({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.v("design:type",String)],qO.prototype,"icon",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qO.prototype,"dataChanged_",null);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],qO.prototype,"iconFilled",null);_.B([_.T1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qO.prototype,"activeChangedForBinding",null);_.B([_.Va({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],qO);
_.n(qO,"yt-emoji-picker-category-button-renderer",function(){if(YiR===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;uBJ===void 0&&(uBJ=document.createElement("template"));var l=uBJ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);YiR=O}O=YiR;return O},{mode:2});var Btk;var vAR;var Py=function(){var O=_.a.apply(this,arguments)||this;O.ariaLabel=null;O.ariaActivedescendant=null;O.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};O.JSC$14331_ignoreNextFocus_=!1;O.longPressTimeoutId=-1;return O};
_.c(Py,_.a);_.b=Py.prototype;_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.b.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.b.emojiChanged_=function(){this.changeFocus_(0,!1);for(var O=_.k0(),x=0;x<this.emoji.length;x++){var e={veType:88013,elementIndex:x},l=this.emoji[x];l.isCustomEmoji&&(l=document.querySelector(("#"+l.emojiId).replace("/","\\/")))&&(e=_.L_(O,e))&&(l.visualElement=e)}};
_.b.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.b.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.b.emojiSkinToneChanged_=function(O){this.skinTone=O};
_.b.dataChanged=function(){this.data&&this.data.emojiData&&zTR(this.emojiManager,this.data.emojiData)};
_.b.emojiUrl=function(O){O=this.getEmoji(O);if(!O)return"";var x;O=(x=O.image)==null?void 0:x.thumbnails;return _.Sf(O,24)||""};
_.b.emojiAlt=function(O){var x=this.get("image.accessibility.accessibilityData.label",O);return x?x:O.isCustomEmoji?O.shortcuts[0]:O.emojiId};
_.b.emojiAriaLabel=function(O){return O.shortcuts?O.shortcuts[0]:""};
_.b.emojiAriaSelected=function(O,x,e){return O&&e==x?"true":"false"};
_.b.getEmoji=function(O){if(this.emojiManager)return this.shouldUseStickyPreferences?HTd(this.emojiManager,O):ln(this.emojiManager,O)};
_.b.computeId_=function(O){return O.categoryId||""};
_.b.computeEmoji=function(O){var x=this;return this.emojiManager?O.emojiIds?O.emojiIds.map(function(e){return e?_.eg(x.emojiManager,e):null}).filter(dIr):O.emojiData?O.emojiData.map(function(e){var l=!!e.emojiId&&_.eg(x.emojiManager,e.emojiId);
return l?Object.assign({},l,e):null}).filter(dIr):[]:[]};
_.b.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.b.computeAriaLabel_=function(O){return _.db(O)};
_.b.computeAriaActivedescendant_=function(O,x){return O&&O[x]?O[x].emojiId||"":""};
_.b.handleLongPressEmojiWithVariants=function(O,x){this.changeFocusToEmoji(O.emojiId,!1);this.openVariantSelector(O,x)};
_.b.onMouseDown=function(O){var x=this;this.hostElement!==document.activeElement&&(this.JSC$14331_ignoreNextFocus_=!0);if(O.button===0){var e=_.uK(O);if(e instanceof HTMLImageElement){var l=_.$U(this.hostElement).querySelector("#repeat").itemForElement(e);this.emojiContainsVariants(l)&&(this.longPressTimeoutId=setTimeout(function(){x.handleLongPressEmojiWithVariants(l,e)},500))}}};
_.b.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.b.onFocus=function(){this.JSC$14331_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14331_ignoreNextFocus_=!1};
_.b.onBlur_=function(){this.showFocus=!1};
_.b.emojiContainsVariants=function(O){return!!(O&&O.variantIds&&O.variantIds.length)};
_.b.onClick=function(O){clearTimeout(this.longPressTimeoutId);O=_.uK(O);if(O instanceof HTMLImageElement){var x=O.id;this.changeFocusToEmoji(x,!1);var e=this.getEmoji(x),l;if(l=this.shouldUseStickyPreferences&&this.emojiContainsVariants(e)){var C;l=!((C=this.emojiManager.emojiMap[x])!=null&&C.stickyPrefId)}l?(C=_.$U(this.hostElement).querySelector("#repeat").itemForElement(O),this.openVariantSelector(C,O)):_.wr(this.hostElement,"yt-emoji-select",e)}};
_.b.isActiveEmojiWithVariants=function(O,x){return O&&x?x.stickyPrefId?O===x.stickyPrefId:O===x.emojiId:!1};
_.b.onCloseEmojiVariantSelector=function(O){this.activeEmojiWithVariantsId===O&&(this.activeEmojiWithVariantsId="")};
_.b.onMouseOver_=function(O){O=_.uK(O);O instanceof HTMLImageElement&&_.wr(this.hostElement,"yt-emoji-hover",_.eg(this.emojiManager,O.id))};
_.b.changeFocus_=function(O,x){this.focusedIndex=(this.focusedIndex+O+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(O=this.emoji[this.focusedIndex],x&&(this.showFocus=!0,_.$U(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.wr(this.hostElement,"yt-emoji-hover",O)))};
_.b.changeFocusToEmoji=function(O,x){if(O){var e=this.emoji.findIndex(function(l){return l.emojiId===O});
e!==-1&&this.changeFocus_(e-this.focusedIndex,x)}};
_.b.onKeyDown_=function(O){switch(O.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var x=this.emoji[this.focusedIndex];if(x&&x.emojiId){if(this.emojiContainsVariants(x)){var e=_.$U(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(x,e)}else _.wr(this.hostElement,"yt-emoji-select",ln(this.emojiManager,x.emojiId)),this.hostElement.focus();O.preventDefault()}}break;case 40:this.changeFocus_(1,!0);O.preventDefault();break;case 38:this.changeFocus_(-1,!0),
O.preventDefault()}};
_.b.onEmojiStickyPreferenceChanged=function(O,x){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&O.emojiId&&O.variantIds&&O.variantIds.includes(x)&&this.activeEmojiWithVariantsId!==x&&this.setStickyEmojiPreference(O.emojiId,x)};
_.b.openVariantSelector=function(O,x){this.activeEmojiWithVariantsId=O.stickyPrefId||O.emojiId||"";_.wr(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:O,target:x})};
_.b.setStickyEmojiPreference=function(O,x){if(this.data){var e=this.emoji.findIndex(function(C){return C.emojiId===O});
if(e!==-1){var l=this.emoji[e];l.stickyPrefId=x;this.set("emoji."+e,Object.assign({},l));this.activeEmojiWithVariantsId=x}}};
Py.prototype.onKeyDown_=Py.prototype.onKeyDown_;Py.prototype.onMouseOver_=Py.prototype.onMouseOver_;Py.prototype.onClick=Py.prototype.onClick;Py.prototype.onBlur_=Py.prototype.onBlur_;Py.prototype.onFocus=Py.prototype.onFocus;Py.prototype.onMouseUp=Py.prototype.onMouseUp;Py.prototype.onMouseDown=Py.prototype.onMouseDown;Py.prototype.dataChanged=Py.prototype.dataChanged;Py.prototype.disableIncrementalLoadingChanged_=Py.prototype.disableIncrementalLoadingChanged_;Py.prototype.emojiManagerChanged_=Py.prototype.emojiManagerChanged_;
Py.prototype.emojiChanged_=Py.prototype.emojiChanged_;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Py.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Py.prototype,"data",void 0);_.B([_.R({computed:"computeId_(data)"}),_.v("design:type",String)],Py.prototype,"id",void 0);_.B([_.R({computed:"computeEmoji(data)"}),_.v("design:type",Array)],Py.prototype,"emoji",void 0);_.B([_.R(),_.v("design:type",Number)],Py.prototype,"skinTone",void 0);
_.B([_.R(),_.v("design:type",_.x5)],Py.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",Boolean)],Py.prototype,"disableIncrementalLoading",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Py.prototype,"focusedIndex",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],Py.prototype,"showFocus",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.v("design:type",Object)],Py.prototype,"ariaLabel",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.v("design:type",Object)],Py.prototype,"ariaActivedescendant",void 0);_.B([_.R({value:60}),_.v("design:type",Number)],Py.prototype,"domRepeatTargetFramerate",void 0);_.B([_.R({value:1}),_.v("design:type",Number)],Py.prototype,"domRepeatInitialCount",void 0);_.B([_.R({value:""}),_.v("design:type",String)],Py.prototype,"activeEmojiWithVariantsId",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],Py.prototype,"shouldUseStickyPreferences",void 0);_.B([_.T1("emoji"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"emojiChanged_",null);_.B([_.T1("emojiManager"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"emojiManagerChanged_",null);
_.B([_.T1("disableIncrementalLoading"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"disableIncrementalLoadingChanged_",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"dataChanged",null);_.B([_.bH("mousedown"),_.v("design:type",Function),_.v("design:paramtypes",[Object]),_.v("design:returntype")],Py.prototype,"onMouseDown",null);
_.B([_.bH("mouseup"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"onMouseUp",null);_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"onFocus",null);_.B([_.bH("blur"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Py.prototype,"onBlur_",null);
_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Py.prototype,"onClick",null);_.B([_.bH("mouseover"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Py.prototype,"onMouseOver_",null);_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Py.prototype,"onKeyDown_",null);
_.B([_.Va({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Py);
_.n(Py,"yt-emoji-picker-category-renderer",function(){if(vAR===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Btk===void 0&&(Btk=document.createElement("template"));var l=Btk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);vAR=O}O=vAR;return O},{mode:2});var fT2;var JVT;var w_L;var Si4;var cy=function(){var O=_.a.apply(this,arguments)||this;O.ariaLabel=null;O.ariaActivedescendant=null;O.getFormattedStringRawText=_.db;O.JSC$14337_ignoreNextFocus_=!1;return O};
_.c(cy,_.a);_.b=cy.prototype;_.b.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")};
_.b.emojiUrl=function(O){var x,e;O=(x=ln(this.emojiManager,O,!0))==null?void 0:(e=x.image)==null?void 0:e.thumbnails;return _.Sf(O,24)||""};
_.b.emojiAlt=function(O){var x=this.get("image.accessibility.accessibilityData.label",O);return x?x:O.isCustomEmoji?O.shortcuts[0]:O.emojiId};
_.b.emojiId=function(O){return"emoji"+O};
_.b.computeId_=function(O){return O.categoryId||""};
_.b.computeAriaActivedescendant_=function(O){return this.emoji&&O<this.emoji.length?this.emojiId(O):""};
_.b.emojiChanged_=function(){this.changeFocus_(0,!1);for(var O=_.k0(),x=0;x<this.emoji.length;x++){var e={veType:88013,elementIndex:x},l=this.emoji[x];l.isCustomEmoji&&(l=document.querySelector(("#"+l.emojiId).replace("/","\\/")))&&(e=_.L_(O,e))&&(l.visualElement=e)}};
_.b.computeEmoji_=function(O){var x=this;return this.emojiManager?O.emojiIds.map(function(e){return _.eg(x.emojiManager,e,!0)}).filter(nAr):[]};
_.b.titleOffsetChanged_=function(){var O=this.hostElement.getBoundingClientRect(),x=_.$U(this.hostElement).querySelector("#title").getBoundingClientRect();O=Math.max(0,Math.min(this.titleOffset,O.height-x.height));_.$U(this.hostElement).querySelector("#title").style.top=O+"px"};
_.b.onEmojiMouseOver_=function(O){_.wr(this.hostElement,"yt-emoji-hover",O.model.item)};
_.b.onEmojiTap_=function(O){this.data.command&&(O=RTr(_.GG().resolve(_.D0(gl)),this.data.command,O),_.wr(this.hostElement,"yt-navigate",O))};
_.b.emojiAriaLabel=function(O){return O.shortcuts[0]};
_.b.emojiAriaSelected=function(O,x,e){return O&&e==x?"true":"false"};
_.b.changeFocus_=function(O,x){var e=this.emoji.length;this.focusedIndex=(this.focusedIndex+O+e)%e;O=this.emoji[this.focusedIndex];if(x){var l;(l=_.$U(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||l.scrollIntoView(!1);_.wr(this.hostElement,"yt-emoji-hover",O)}};
_.b.onMouseDown_=function(){this.JSC$14337_ignoreNextFocus_=!0};
_.b.onFocus_=function(){this.JSC$14337_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14337_ignoreNextFocus_=!1};
_.b.onBlur_=function(){this.showFocus=!1};
_.b.onKeyDown_=function(O){switch(O.keyCode){case 13:this.onEmojiTap_(O);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);O.preventDefault();break;case 38:this.changeFocus_(-1,!0),O.preventDefault()}};
cy.prototype.onKeyDown_=cy.prototype.onKeyDown_;cy.prototype.onBlur_=cy.prototype.onBlur_;cy.prototype.onFocus_=cy.prototype.onFocus_;cy.prototype.onMouseDown_=cy.prototype.onMouseDown_;cy.prototype.onEmojiTap_=cy.prototype.onEmojiTap_;cy.prototype.titleOffsetChanged_=cy.prototype.titleOffsetChanged_;cy.prototype.emojiChanged_=cy.prototype.emojiChanged_;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],cy.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],cy.prototype,"data",void 0);_.B([_.R({computed:"computeId_(data)"}),_.v("design:type",String)],cy.prototype,"id",void 0);_.B([_.R({computed:"computeEmoji_(data)"}),_.v("design:type",Array)],cy.prototype,"emoji",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],cy.prototype,"titleOffset",void 0);_.B([_.R({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.v("design:type",Object)],cy.prototype,"ariaLabel",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.v("design:type",Object)],cy.prototype,"ariaActivedescendant",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],cy.prototype,"showFocus",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],cy.prototype,"focusedIndex",void 0);_.B([_.R(),_.v("design:type",_.x5)],cy.prototype,"emojiManager",void 0);
_.B([_.T1("emoji"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cy.prototype,"emojiChanged_",null);_.B([_.T1("titleOffset"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cy.prototype,"titleOffsetChanged_",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],cy.prototype,"onEmojiTap_",null);
_.B([_.bH("mousedown"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cy.prototype,"onMouseDown_",null);_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cy.prototype,"onFocus_",null);_.B([_.bH("blur"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cy.prototype,"onBlur_",null);
_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],cy.prototype,"onKeyDown_",null);_.B([_.Va({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],cy);
_.n(cy,"yt-emoji-picker-upsell-category-renderer",function(){if(Si4===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;w_L===void 0&&(w_L=document.createElement("template"));var l=w_L;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Si4=O}O=Si4;return O},{mode:2});var jGd;var NtL;var Ie=function(){var O=_.a.apply(this,arguments)||this;O.scrollAction="lock";O.verticalAlign="top";return O};
_.c(Ie,_.a);_.b=Ie.prototype;_.b.onClick=function(O){O=_.uK(O);O instanceof HTMLImageElement&&_.wr(this.hostElement,"yt-emoji-select",_.eg(this.emojiManager,O.id))};
_.b.openSelector=function(){this.ironOverlayBehavior.open()};
_.b.onDomChange=function(){h8L(this.ytEmojiSelectorBehavior)};
_.b.computeIsFamilySelector=function(O){var x;return(O==null?void 0:(x=O.emoji)==null?void 0:x.emojiId)==="\ud83d\udc6a"};
_.b.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var O=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];O&&O.emojiId&&(_.wr(this.hostElement,"yt-emoji-select",_.eg(this.emojiManager,O.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Dy.Object.defineProperties(Ie.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var O=this,x,e,l;return this.emojiManager&&((x=this.data)==null?0:(e=x.emoji)==null?0:(l=e.variantIds)==null?0:l.length)?this.data.emoji.variantIds.map(function(C){return!!C&&_.eg(O.emojiManager,C)}).filter(function(C){return!!C}):[]}}});
Ie.prototype.onClick=Ie.prototype.onClick;_.B([_.V(_.N_),_.v("design:type",Object)],Ie.prototype,"ironOverlayBehavior",void 0);_.B([_.V(z8d),_.v("design:type",Object)],Ie.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ie.prototype,"data",void 0);_.B([_.R(),_.v("design:type",_.x5)],Ie.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",Object)],Ie.prototype,"scrollAction",void 0);_.B([_.R(),_.v("design:type",Object)],Ie.prototype,"verticalAlign",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.v("design:type",Boolean)],Ie.prototype,"isFamilySelector",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ie.prototype,"emojiVariants",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[MouseEvent]),_.v("design:returntype")],Ie.prototype,"onClick",null);_.B([_.Va({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Ie);
_.n(Ie,"yt-emoji-variant-selector",function(){if(NtL===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;jGd===void 0&&(jGd=document.createElement("template"));var l=jGd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);NtL=O}O=NtL;return O},{mode:2});var gAk=/:/g,$IL=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],VU=function(){var O=_.a.apply(this,arguments)||this;O.emojiVariantSelector=null;O.emojiMultiPersonSelector=null;O.identity=_.Hi;O.lastAnimationTime_=0;O.animationStart_=null;O.animationEnd_=null;return O};
_.c(VU,_.a);_.b=VU.prototype;
_.b.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}}};
_.b.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Cn)};
_.b.attached=function(){_.j1&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&rg$(this.emojiManager)};
_.b.dataChanged=function(){var O;if((O=this.data)==null?0:O.categories){O=this.emojiManager;var x=this.getCustomEmojiIds();O.pickerCustomEmojiIds=[].concat(_.Kx(aFp),_.Kx(x))}};
_.b.getCustomEmojiIds=function(){var O,x=(O=this.data.categories)==null?void 0:O.find(function(Q){var L;return((L=Q.emojiPickerCategoryRenderer)==null?void 0:L.categoryId)&&$IL.includes(Q.emojiPickerCategoryRenderer.categoryId)}),e;
O=(e=this.data.categories)==null?void 0:e.find(function(Q){return Q.emojiPickerUpsellCategoryRenderer});
var l,C;return[x==null?void 0:(l=x.emojiPickerCategoryRenderer)==null?void 0:l.emojiIds,O==null?void 0:(C=O.emojiPickerUpsellCategoryRenderer)==null?void 0:C.emojiIds].flat().filter(function(Q){return!!Q})};
_.b.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.b.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.b.updateCategoriesAndPlaceholderInternal=function(O,x){var e=this;O&&x&&(this.categories=O.categories||[],this.categoryButtons=O.categoryButtons||[],this.resetPlaceholder(),this.search="",_.WZ(function(){e.updateButtons_()}))};
_.b.computeId_=function(O){return O.id||""};
_.b.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(O){return O.emojiPickerCategoryRenderer&&O.emojiPickerCategoryRenderer.emojiData}):!1};
_.b.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.b.onShowEmojiVariantSelector=function(O){var x=O.detail.emojiData;x.variantIds&&x.variantIds.length&&(x.multiSelectorThumbnailRow&&x.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:x,target:O.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:x,target:O.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.b.onIronOverlayClosed=function(O){var x=HTd(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");x&&O.composedPath&&(O.composedPath().includes(_.$U(this.hostElement).querySelector("#emoji-variant-selector"))||O.composedPath().includes(_.$U(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Sh(this.hostElement,"yt-close-emoji-variant-selector",[x.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.b.onEmojiVariantSelectorMouseup=function(O){var x=O.target.firstChild;this.variantSelectorOpened&&x&&_.WZ(function(){x.noCancelOnOutsideClick=!1},100)};
_.b.onEmojiVariantSelectorMousedown=function(O){O=O.target.firstChild;this.variantSelectorOpened&&O&&(O.noCancelOnOutsideClick=!1)};
_.b.onSelectCategory_=function(O){var x=this.search!="";this.search="";for(var e=_.$U(this.hostElement).querySelector("#categories").children,l=0;l<e.length;l++){var C=e[l];if(C.id==O.detail.categoryId){x?(_.$U(this.hostElement).querySelector("#categories").scrollTop=C.offsetTop,this.updateButtons_()):(this.animationStart_=_.$U(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=C.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.b.onEmojiHover_=function(O){this.placeholder=O.detail.shortcuts?O.detail.shortcuts[0]:""};
_.b.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.b.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.b.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.b.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.b.computeSearchCategory_=function(O){O=O.replace(gAk,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();O=O.split(" ");for(var x=[],e=this.emojiManager.emojis,l=0;l<e.length;l++){var C=e[l];if(C.searchTerms)for(var Q=0;Q<C.searchTerms.length;Q++){for(var L=C.searchTerms[Q].toLocaleLowerCase(),k=!1,M=0;M<O.length;M++)if(L.indexOf(O[M])!=-1){k=!0;break}if(k&&(!C.isCustomEmoji||!C.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(C.emojiId))){x.push(C.emojiId);
break}}}return{categoryId:-1,emojiIds:x}};
_.b.computeSearchEmptyMessage_=function(O,x){return O&&x&&x.emojiIds&&x.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.b.computeSearching_=function(O){return this.emojiManager&&O.replace(gAk,"").length>1};
_.b.computeSkinToneHidden=function(){var O;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((O=this.data)==null||!O.hideSkinTonePicker)};
_.b.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.b.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.b.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.b.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.b.selectSkinTone_=function(O){O=Number(O.target.getAttribute("tone"));this.set("emojiManager.skinTone",O);_.Sh(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[O]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.b.skinToneChanged_=function(){_.$U(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var O=_.$U(this.hostElement).querySelector("#dropdown-content").children,x=0;x<O.length;x++)x===this.skinTone?O[x].setAttribute("selected",""):O[x].removeAttribute("selected")};
_.b.animateScroll_=function(O){this.lastAnimationTime_||(this.lastAnimationTime_=O);O-=this.lastAnimationTime_;O<200?(_.$U(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*O/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.$U(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.b.searchChanged_=function(){this.updateButtons_()};
_.b.updateButtons_=function(){var O=null;if(!this.search)for(var x=_.$U(this.hostElement).querySelector("#categories").scrollTop,e=_.$U(this.hostElement).querySelector("#categories").children,l=0;l<e.length;l++){var C=e[l];C.offsetTop<=x&&(O=C.id)}x=_.$U(this.hostElement).querySelector("#category-buttons").children;for(e=0;e<x.length;e++)l=x[e],l.active=l.id===O};
VU.prototype.searchChanged_=VU.prototype.searchChanged_;VU.prototype.skinToneChanged_=VU.prototype.skinToneChanged_;VU.prototype.onEmojiHover_=VU.prototype.onEmojiHover_;VU.prototype.onSelectCategory_=VU.prototype.onSelectCategory_;VU.prototype.onShowEmojiVariantSelector=VU.prototype.onShowEmojiVariantSelector;VU.prototype.updateCategoriesAndPlaceholder_=VU.prototype.updateCategoriesAndPlaceholder_;VU.prototype.dataChanged=VU.prototype.dataChanged;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],VU.prototype,"data",void 0);_.B([_.R({value:function(){return[]}}),
_.v("design:type",Array)],VU.prototype,"categories",void 0);_.B([_.R({value:function(){return[]}}),
_.v("design:type",Array)],VU.prototype,"categoryButtons",void 0);_.B([_.R({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.v("design:type",Boolean)],VU.prototype,"disableScroll",void 0);_.B([_.R({computed:"computeId_(data)",reflectToAttribute:!0}),_.v("design:type",String)],VU.prototype,"id",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],VU.prototype,"selected",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],VU.prototype,"disableIncrementalLoading",void 0);_.B([_.R(),_.v("design:type",String)],VU.prototype,"placeholder",void 0);_.B([_.R({value:""}),_.v("design:type",String)],VU.prototype,"search",void 0);_.B([_.R({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.v("design:type",Boolean)],VU.prototype,"searching",void 0);_.B([_.R({computed:"computeSearchCategory_(search)"}),_.v("design:type",Object)],VU.prototype,"searchCategory",void 0);
_.B([_.R({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.v("design:type",Object)],VU.prototype,"searchEmptyMessage",void 0);_.B([_.R({computed:"identity(emojiManager.skinTone)"}),_.v("design:type",Number)],VU.prototype,"skinTone",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],VU.prototype,"skinToneOpened",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],VU.prototype,"variantSelectorOpened",void 0);
_.B([_.R({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.v("design:type",Boolean)],VU.prototype,"skinToneHidden",void 0);_.B([_.R(),_.v("design:type",_.x5)],VU.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",Object)],VU.prototype,"emojiVariantSelector",void 0);_.B([_.R(),_.v("design:type",Object)],VU.prototype,"emojiMultiPersonSelector",void 0);
_.B([_.R({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.v("design:type",Boolean)],VU.prototype,"shouldUseStickyPreferences",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VU.prototype,"dataChanged",null);_.B([_.T1("data","selected"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VU.prototype,"updateCategoriesAndPlaceholder_",null);
_.B([_.bH("yt-show-emoji-variant-selector"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],VU.prototype,"onShowEmojiVariantSelector",null);_.B([_.bH("yt-emoji-picker-select-category"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],VU.prototype,"onSelectCategory_",null);_.B([_.bH("yt-emoji-hover"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],VU.prototype,"onEmojiHover_",null);
_.B([_.T1("skinTone"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VU.prototype,"skinToneChanged_",null);_.B([_.T1("search"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VU.prototype,"searchChanged_",null);_.B([_.Va({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],VU);
_.n(VU,"yt-emoji-picker-renderer",function(){if(JVT===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;fT2===void 0&&(fT2=document.createElement("template"));var l=fT2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);JVT=O}O=JVT;return O},{mode:2});var pn=function(){var O=_.a.apply(this,arguments)||this;O.emojiManager=_.Cn;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.selectedIndex=1;O.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return O};
_.c(pn,_.a);_.b=pn.prototype;_.b.handleEmojiCustomizationVisible=function(O){this.emojiPickerRenderer.selected=O;this.selectedIndex=1;O?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.b.emojiCustomizationSetChanged=function(){var O;(O=this.data)!=null&&O.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.g7(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.b.updateSaveButtonState=function(O){var x;(x=this.data)!=null&&x.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Dc("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:O}))};
_.b.emojiUrl=function(O){O=_.eg(this.emojiManager,O);if(!O)return"";var x;O=(x=O.image)==null?void 0:x.thumbnails;return _.Sf(O,24)||""};
_.b.emojiAlt=function(O){var x=_.eg(this.emojiManager,O);if(!x)return O;var e,l,C,Q=(x==null?void 0:(e=x.image)==null?void 0:(l=e.accessibility)==null?void 0:(C=l.accessibilityData)==null?void 0:C.label)||"";return Q?Q:x.isCustomEmoji?x.shortcuts[0]:x.emojiId||O};
_.b.emojiAriaLabel=function(O){var x,e;return((x=_.eg(this.emojiManager,O))==null?void 0:(e=x.shortcuts)==null?void 0:e[0])||O};
_.b.onEmojiClick=function(O){O.model.index!==0&&(this.selectedIndex=O.model.index)};
_.b.onEmojiSelect=function(O){O=O.detail;var x,e;((x=this.data)==null?0:x.emojiCustomizationSetEntityKey)&&((e=this.emojiCustomizationSet)==null?0:e.emojiId)&&O.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,O.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Dc("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,O.emojiId,this.selectedIndex)}))};
_.b.canEditEmoji=function(O,x,e){O=O.indexOf(x);return O===e||O===0||e===0?!1:!0};
_.b.getUpdatedEmojiIdList=function(O,x,e){var l=O.indexOf(x);O=[].concat(_.Kx(O));l>=0&&(O[l]=O[e]);O[e]=x;return O};
_.Dy.Object.defineProperties(pn,{template:{configurable:!0,enumerable:!0,get:function(){if(yV2===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;oA2===void 0&&(oA2=document.createElement("template"));var l=oA2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yV2=O}O=yV2;return O}}});
pn.prototype.onEmojiSelect=pn.prototype.onEmojiSelect;_.B([_.V(_.$q),_.v("design:type",Object)],pn.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],pn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.kX("yt-emoji-picker-renderer"),_.v("design:type",Object)],pn.prototype,"emojiPickerRenderer",void 0);
_.B([_.R({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(O,x){return _.xE(O.entities,"emojiCustomizationSetEntity",x)},
observer:"emojiCustomizationSetChanged"}),_.v("design:type",Object)],pn.prototype,"emojiCustomizationSet",void 0);_.B([_.R(),_.v("design:type",Object)],pn.prototype,"originalEmojiSet",void 0);_.B([_.R(),_.v("design:type",_.x5)],pn.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",Object)],pn.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pn.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],pn.prototype,"selectedIndex",void 0);
_.B([_.bH("yt-emoji-select"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],pn.prototype,"onEmojiSelect",null);_.B([_.Va({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],pn);var ivD;var Ok$;var xN2;var e7p;var Re=function(){var O=_.a.apply(this,arguments)||this;O.authorBadges=[];return O};
_.c(Re,_.a);_.b=Re.prototype;_.b.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.b.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]]"}}}}}};
_.b.dataChanged=function(){var O=D2i(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",O)};
_.b.updateMessage=function(){var O=this.data.message,x=_.$U(_.$U(this.hostElement).querySelector("#message"));x.textContent="";O&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O))};
_.b.shouldSupportWholeItemClick=function(){return!0};
_.b.onShowOriginalClick=function(O){O.preventDefault();this.showOriginal=!0};
_.b.computeShowBar=function(O,x,e){return O&&x||e};
_.b.computeAuthorBadges=function(O){return O.authorBadges||[]};
_.b.computeAuthorIsOwner=function(O){return!!GEW(O.authorBadges,"owner")};
_.b.computeAuthorNameColor=function(O){var x;if(_.t("live_chat_author_name_color_usernames")&&(O==null?0:(x=O.authorName)==null?0:x.simpleText))return _.ENr(_.tT8(O.authorName.simpleText));if(_.t("live_chat_seed_color_usernames")&&(O==null?0:O.authorSeedColorArgb))return _.ENr(_.iH(O.authorSeedColorArgb));if(_.t("live_chat_colored_usernames"))return"#cc0000";var e;return _.t("live_chat_simple_color_usernames")&&(O==null?0:(e=O.authorName)==null?0:e.simpleText)&&(O==null?0:O.authorUsernameColorLight)&&
(O==null?0:O.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.iH(O.authorUsernameColorDark):_.iH(O.authorUsernameColorLight):""};
Re.prototype.updateMessage=Re.prototype.updateMessage;Re.prototype.dataChanged=Re.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],Re.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Re.prototype,"data",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"showOriginal",void 0);_.B([_.R({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"isDimmed",void 0);_.B([_.R({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"showBar",void 0);
_.B([_.R({computed:"computeAuthorBadges(data)"}),_.v("design:type",Array)],Re.prototype,"authorBadges",void 0);_.B([_.R({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"authorIsOwner",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"inCollapsedBanner",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"inBanner",void 0);
_.B([_.R({value:_.t("live_chat_hide_avatars"),reflectToAttribute:!0}),_.v("design:type",Boolean)],Re.prototype,"avatarHidden",void 0);_.B([_.R({computed:"computeAuthorNameColor(data)"}),_.v("design:type",String)],Re.prototype,"authorNameColor",void 0);_.B([_.R(),_.v("design:type",_.k5)],Re.prototype,"participantsManager",void 0);_.B([_.R({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.v("design:type",Object)],Re.prototype,"filledButtonOverrides",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Re.prototype,"dataChanged",null);_.B([_.T1("data.message"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Re.prototype,"updateMessage",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Re);
_.n(Re,"yt-live-chat-text-message-renderer",function(){if(e7p===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;xN2===void 0&&(xN2=document.createElement("template"));var l=xN2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);e7p=O}O=e7p;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var UB=function(){var O=_.a.apply(this,arguments)||this;O.tonalButtonOverrides={type:"tonal",style:"overlay"};return O};
_.c(UB,_.a);
UB.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]]"}}}}}};
UB.prototype.shouldSupportInlineActionButtons=function(){return!0};
UB.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Dy.Object.defineProperties(UB.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],UB.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],UB.prototype,"data",void 0);_.B([_.R(),_.v("design:type",_.k5)],UB.prototype,"participantsManager",void 0);
_.B([_.R(),_.v("design:type",Object)],UB.prototype,"tonalButtonOverrides",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.infoDialogButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],UB.prototype,"hasInfoDialogButton",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],UB);
_.n(UB,"yt-live-chat-auto-mod-message-renderer",function(){if(Ok$===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ivD===void 0&&(ivD=document.createElement("template"));var l=ivD;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Ok$=O}O=Ok$;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var lzp;var CvF;var QA$;var bkJ=function(){return _.a.apply(this,arguments)||this};
_.c(bkJ,_.a);_.B([_.R(),_.v("design:type",Object)],bkJ.prototype,"data",void 0);_.B([_.H({is:"ytd-factoid-renderer",disableElementRegistration:!0})],bkJ);
_.n(bkJ,"ytd-factoid-renderer",function(){if(QA$!==void 0)return QA$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return QA$=O},{mode:1});var ae=function(){return _.a.apply(this,arguments)||this};
_.c(ae,_.a);ae.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.B([_.R(),_.v("design:type",Object)],ae.prototype,"data",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],ae);
_.n(ae,"yt-live-chat-channel-activity-reputation-renderer",function(){if(CvF===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;lzp===void 0&&(lzp=document.createElement("template"));var l=lzp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);CvF=O}O=CvF;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Tid;var Lqz;var mr=function(){return _.a.apply(this,arguments)||this};
_.c(mr,_.a);mr.prototype.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Boolean)],mr.prototype,"menuFocused",void 0);_.B([_.R(),_.v("design:type",Object)],mr.prototype,"data",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],mr.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],mr);
_.n(mr,"yt-live-chat-donation-announcement-renderer",function(){if(Lqz===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;Tid===void 0&&(Tid=document.createElement("template"));var l=Tid;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Lqz=O}O=Lqz;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var k2T;var Az3,Muz=function(){if(Az3!==void 0)return Az3;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;k2T===void 0&&(k2T=document.createElement("template"));var l=k2T;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return Az3=O};var sB=function(){return _.a.apply(this,arguments)||this};
_.c(sB,_.a);_.Dy.Object.defineProperties(sB,{template:{configurable:!0,enumerable:!0,get:function(){return Muz()}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sB.prototype,"data",void 0);_.B([_.Va({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],sB);_.n(sB,"yt-live-chat-empty-feed-view-model",function(){return Muz()},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var DND;var G2D;var Wy=function(){return _.a.apply(this,arguments)||this};
_.c(Wy,_.a);Wy.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"}}}}}};
_.Dy.Object.defineProperties(Wy.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var O,x;return{runs:[{text:(O=this.data)==null?void 0:(x=O.channelName)==null?void 0:x.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var O=[],x;if((x=this.data)==null||!x.channelBadges)return O;var e;x=_.T((e=this.data)==null?void 0:e.channelBadges);for(e=x.next();!e.done;e=x.next()){e=_.q(e.value,NfJ);var l=void 0,C=void 0;if((l=e)==null?0:(C=l.badgeImage)==null?0:C.sources)l=void 0,C={liveChatAuthorBadgeRenderer:{tooltip:e.tooltip,accessibility:{accessibilityData:{label:(l=_.q(e.rendererContext,_.LM))==null?void 0:l.label}}}},e.badgeImage.sources[0].clientResource?C.liveChatAuthorBadgeRenderer.icon=
{iconType:e.badgeImage.sources[0].clientResource.imageName}:C.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:e.badgeImage.sources},O.push(C)}return O}}});
_.B([_.R(),_.v("design:type",Object)],Wy.prototype,"data",void 0);_.B([_.p("data.channelName"),_.v("design:type",Object),_.v("design:paramtypes",[])],Wy.prototype,"channelName",null);_.B([_.p("data.channelBadges"),_.v("design:type",Array),_.v("design:paramtypes",[])],Wy.prototype,"channelBadges",null);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Wy);
_.n(Wy,"yt-live-chat-identity-view-model",function(){if(G2D===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;DND===void 0&&(DND=document.createElement("template"));var l=DND;e.call(x,l.content.cloneNode(!0),O.content.firstChild);G2D=O}O=G2D;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var FqL;var XAL;var onN;var yzp;var h8=function(){var O=_.a.apply(this,arguments)||this;O.hidden=!1;O.supportsInlineActionButtons=!0;return O};
_.c(h8,_.a);h8.prototype.ready=function(){var O;((O=document.querySelector("yt-live-chat-app"))==null?0:O.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
h8.prototype.dataChanged=function(O){var x=(0,_.eU)(_.$U(this.hostElement).querySelector("#detail-text"));x.textContent="";(O==null?0:O.detailText)&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O.detailText))};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],h8.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({observer:"dataChanged"}),_.v("design:type",Object)],h8.prototype,"data",void 0);
_.B([_.R({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.v("design:type",Object)],h8.prototype,"hidden",void 0);_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],h8);
_.n(h8,"yt-live-chat-legacy-paid-message-renderer",function(){if(yzp===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;onN===void 0&&(onN=document.createElement("template"));var l=onN;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yzp=O}O=yzp;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Zkp;var End;var tuD={},z$=function(){return _.MQ.apply(this,arguments)||this};
_.c(z$,_.MQ);z$.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
z$.prototype.onLiveChatMembershipItemBehaviorClick=z$.prototype.onLiveChatMembershipItemBehaviorClick;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],z$.prototype,"data",void 0);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],z$.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.B([_.DC()],z$);
tuD.YtLiveChatMembershipItemBehavior=[z$.prototype,_.S.YtRendererBehavior];var r_=function(){var O=_.a.apply(this,arguments)||this;O.supportsInlineActionButtons=!0;O.hasPrimaryHeaderText=!1;O.showOnlyHeader=!1;O.authorBadges=[];O.modern=_.t("web_button_rework_with_live");O.buttonOverrides={style:"overlay",type:"filled"};return O};
_.c(r_,_.a);_.b=r_.prototype;_.b.shouldSupportInlineActionButtons=function(){return!0};
_.b.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.b.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.b.messageChanged=function(){var O=this.data.message,x=(0,_.eU)(_.$U(this.hostElement).querySelector("#message"));x.textContent="";O&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O))};
_.b.computeHasPrimaryHeaderText=function(O){return!(!O||!O.headerPrimaryText)};
_.b.computeShowOnlyHeader=function(O,x){return this.isMessageEmpty(O,x)};
_.b.computeAuthorBadges=function(O){return O.authorBadges||[]};
_.b.isMessageEmpty=function(O,x){return!O||O.empty?!0:!O.message&&!O.inputField&&!x};
_.b.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.b.getInputElement=function(){return _.$U(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.b.inputFocus=function(){var O=this.getInputElement();O&&O.focus()};
_.b.inputInsertEmoji=function(O){var x=this.getInputElement();x&&x.insertEmoji(O)};
_.b.inputMessage=function(){var O=this.getInputElement();return O&&this.data.inputField?(O.completeEmojis(),_.a2(O.liveChatRichMessageInput)):null};
_.b.onFooterButtonClick=function(){this.data.footerButton&&_.wr(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.b.shouldSupportWholeItemClick=function(){return!0};
r_.prototype.isDeletedChanged=r_.prototype.isDeletedChanged;r_.prototype.messageChanged=r_.prototype.messageChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],r_.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(tuD.YtLiveChatMembershipItemBehavior),_.v("design:type",Object)],r_.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],r_.prototype,"data",void 0);_.B([_.R({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.v("design:type",Object)],r_.prototype,"hasPrimaryHeaderText",void 0);_.B([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.v("design:type",Object)],r_.prototype,"showOnlyHeader",void 0);
_.B([_.R({computed:"computeAuthorBadges(data)"}),_.v("design:type",Array)],r_.prototype,"authorBadges",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],r_.prototype,"modern",void 0);_.B([_.T1("data.message"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],r_.prototype,"messageChanged",null);_.B([_.T1("isDeleted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],r_.prototype,"isDeletedChanged",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],r_);
_.n(r_,"yt-live-chat-membership-item-renderer",function(){if(End===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Zkp===void 0&&(Zkp=document.createElement("template"));var l=Zkp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);End=O}O=End;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var qc$;var PvL;var Hy=function(){return _.a.apply(this,arguments)||this};
_.c(Hy,_.a);Hy.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Hy.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Hy);
_.n(Hy,"yt-live-chat-mode-change-message-renderer",function(){if(PvL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;qc$===void 0&&(qc$=document.createElement("template"));var l=qc$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);PvL=O}O=PvL;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var czF;var Izp;var Kn=function(){return _.a.apply(this,arguments)||this};
_.c(Kn,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],Kn.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Kn.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Kn);
_.n(Kn,"yt-live-chat-moderation-message-renderer",function(){if(Izp===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;czF===void 0&&(czF=document.createElement("template"));var l=czF;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Izp=O}O=Izp;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Vup;var pA2;var d_=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_button_rework");return O};
_.c(d_,_.a);d_.prototype.onClick=function(){var O;if((O=this.data)!=null&&O.onClickCommand){var x;_.lV.instance.resolveCommand((x=this.data)==null?void 0:x.onClickCommand)}};
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],d_.prototype,"modern",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],d_.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],d_.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],d_.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],d_);
_.n(d_,"yt-live-chat-offer-click-count-message-renderer",function(){if(pA2===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Vup===void 0&&(Vup=document.createElement("template"));var l=Vup;e.call(x,l.content.cloneNode(!0),O.content.firstChild);pA2=O}O=pA2;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var R7$;var UN4=function(){return _.a.apply(this,arguments)||this};
_.c(UN4,_.a);_.B([_.R(),_.v("design:type",Object)],UN4.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],UN4);
_.n(UN4,"yt-live-chat-placeholder-item-renderer",function(){if(R7$===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);R7$=O}O=R7$;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var azz;var mNN;var sAD=new H1(7),nn=function(){var O=_.a.apply(this,arguments)||this;O.data={};return O};
_.c(nn,_.a);nn.prototype.dataChanged=function(){var O;((O=this.data)==null?0:O.class)&&_.Ow(this.hostElement,this.data.class,!0);var x;((x=this.oldData)==null?0:x.class)&&_.Ow(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
nn.prototype.computeTimestampString=function(O){return sAD.format(new Date(O/1E3))};
nn.prototype.dataChanged=nn.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],nn.prototype,"data",void 0);_.B([_.R({computed:"computeTimestampString(data.timestampUsec)"}),_.v("design:type",String)],nn.prototype,"timestampString",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],nn.prototype,"dataChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],nn);
_.n(nn,"yt-live-chat-server-error-message",function(){if(mNN===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;azz===void 0&&(azz=document.createElement("template"));var l=azz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);mNN=O}O=mNN;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var WqF;var h7d;var un=function(){var O=_.a.apply(this,arguments)||this;O.defaultToFilledIcon=!1;return O};
_.c(un,_.a);un.prototype.computeHasPrimaryColorIcon=function(O){return O==="SPARK"||O==="SPONSORSHIP_STAR"};
un.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],un.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],un.prototype,"defaultToFilledIcon",void 0);_.B([_.R(),_.v("design:type",Object)],un.prototype,"data",void 0);
_.B([_.R({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.v("design:type",Boolean)],un.prototype,"hasPrimaryColorIcon",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],un);
_.n(un,"yt-live-chat-viewer-engagement-message-renderer",function(){if(h7d===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;WqF===void 0&&(WqF=document.createElement("template"));var l=WqF;e.call(x,l.content.cloneNode(!0),O.content.firstChild);h7d=O}O=h7d;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var z7$;var Y5=function(){var O=_.a.apply(this,arguments)||this;O.modernUpdate=!1;O.buttonStyle="overlay";O.buttonType="filled";return O};
_.c(Y5,_.a);Y5.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Y5.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Y5.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Y5.prototype,"modernUpdate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Y5.prototype,"buttonStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Y5.prototype,"buttonType",void 0);
_.B([_.H({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Y5);
_.n(Y5,"ytd-ad-hover-text-button-renderer",function(){if(z7$!==void 0)return z7$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return z7$=O},{mode:1});var rzT;var By=function(){var O=_.a.apply(this,arguments)||this;O.buttonOverrides={size:"XS"};O.modern=_.t("web_button_rework");return O};
_.c(By,_.a);By.prototype.onHelpTap=function(O){this.data&&this.data.informationDialog&&(_.wr(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),O.preventDefault(),O.stopPropagation())};
_.B([_.R(),_.v("design:type",Object)],By.prototype,"buttonOverrides",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],By.prototype,"modern",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],By.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],By);
_.n(By,"ytd-live-chat-purchased-product-message-renderer",function(){if(rzT!==void 0)return rzT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return rzT=O},{mode:1});var Hkz;var KqN;var vy=function(){var O=_.a.apply(this,arguments)||this;O.isContainerDeleted=!1;return O};
_.c(vy,_.a);vy.prototype.onContextMenuClick=function(O){this.ytLiveChatItemBehavior.showContextMenu(O)};
vy.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))};
vy.prototype.isContainerDeletedChanged=vy.prototype.isContainerDeletedChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],vy.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vy.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],vy.prototype,"isContainerDeleted",void 0);
_.B([_.R(),_.v("design:type",String)],vy.prototype,"deletedStateMessage",void 0);_.B([_.T1("isContainerDeleted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vy.prototype,"isContainerDeletedChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],vy);
_.n(vy,"ytd-sponsorships-live-chat-header-renderer",function(){if(KqN!==void 0)return KqN;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return KqN=O},{mode:1});var fn=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_button_rework_with_live");O.buttonOverrides={style:"overlay",type:"filled"};return O};
_.c(fn,_.a);fn.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]]"}}}}}};
fn.prototype.onCtaButtonClick=function(){var O,x=_.q((O=this.data)==null?void 0:O.optInPrompt,_.wf);if(O=this.maybeGetButtonCommand(x)){var e;(e=_.k0())==null||e.clickCommand(O)}};
fn.prototype.maybeGetButtonCommand=function(O){return!O||!O.command||_.q(O.command,HjJ)===void 0&&_.q(O.command,rTR)===void 0?null:O.command};
fn.prototype.shouldHideOptinPrompt=function(O,x){return!O||x};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],fn.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fn.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],fn.prototype,"modern",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],fn);
_.n(fn,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Hkz!==void 0)return Hkz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Hkz=O},{mode:1});var dN4;var J8=function(){return _.a.apply(this,arguments)||this};
_.c(J8,_.a);J8.prototype.onContextMenuClick=function(O){this.ytLiveChatItemBehavior.showContextMenu(O)};
J8.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))};
J8.prototype.isDeletedChanged=J8.prototype.isDeletedChanged;_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],J8.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],J8.prototype,"data",void 0);_.B([_.T1("isDeleted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],J8.prototype,"isDeletedChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],J8);
_.n(J8,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(dN4!==void 0)return dN4;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return dN4=O},{mode:1});var w_=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return O};
_.c(w_,_.a);_.b=w_.prototype;
_.b.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"}}}};
_.b.handleLiveChatAction=function(O){_.q(O,yEd)?this.handleMarkChatItemAsDeletedAction(_.q(O,yEd)):_.q(O,ooF)&&this.handleRemoveChatItemAction(_.q(O,ooF))};
_.b.handleLiveChatActions=function(O){O.forEach(this.handleLiveChatAction,this)};
_.b.handleMarkChatItemAsDeletedAction=function(O){var x=this,e;((e=this.data)==null?0:e.items)&&this.data.items.forEach(function(l,C){var Q=Object.keys(l)[0];Object.values(l)[0].id===O.targetItemId&&x.markAsDeleted("data.items",C,Q,O.deletedStateMessage,O.showOriginalContentMessage)})};
_.b.handleRemoveChatItemAction=function(O){var x=this,e;((e=this.data)==null?0:e.items)&&this.data.items.forEach(function(l,C){Object.values(l)[0].id===O.targetItemId&&x.splice("data.items",C,1)})};
_.b.markAsDeleted=function(O,x,e,l,C){O=[O,x,e].join(".");this.set(O+".deletedStateMessage",l);this.set(O+".showOriginalContentMessage",C)};
_.B([_.R(),_.v("design:type",Object)],w_.prototype,"data",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],w_.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],w_);
_.n(w_,"yt-live-chat-item-display-list-renderer",function(){if(XAL===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;FqL===void 0&&(FqL=document.createElement("template"));var l=FqL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);XAL=O}O=XAL;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var nnD;var uHL,YcD=function(){if(uHL!==void 0)return uHL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;nnD===void 0&&(nnD=document.createElement("template"));var l=nnD;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return uHL=O};var Sg=function(){var O=_.a.apply(this,arguments)||this;O.isHeader=!1;return O};
_.c(Sg,_.a);Sg.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Dy.Object.defineProperties(Sg,{template:{configurable:!0,enumerable:!0,get:function(){return YcD()}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Sg.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Sg.prototype,"isHeader",void 0);_.B([_.Va({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Sg);_.n(Sg,"yt-live-chat-item-display-renderer",function(){return YcD()},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var BiN,vnL,jA3,Sc2;
BiN={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}};vnL={home:"eohps",search:"eosps",watch:"eowps"};_.fzz=["watch","search","home"];
_.jg=function(){this.JSC$14448_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14448_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.wz("PRECONSTRUCTION_DELAY",0);this.signals_=_.O2();this.targetPage_=""};
_.jg.prototype.init=function(O,x){O=O===void 0?"":O;x=x===void 0?null:x;if(this.JSC$14448_isInitialized_)this.abort();else if(this.JSC$14448_isInitialized_=!0,O&&_.Jzz(this,O),x){var e=_.xq(this.signals_,"pcl")?0:10,l=function(){for(var C=0,Q;Q=_.fzz[C++];)Q!=O&&Q!=x&&this.pendingPages_.push(Q);_.wAk(this)}.bind(this);
this.signals_.parkOrScheduleJob(l,e,"pcl")}};
_.jg.prototype.abort=function(){this.fragmentJobId_&&(_.vn.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Sc2(this)};
_.Jzz=function(O,x){O.JSC$14448_isInitialized_&&!O.targetPage_&&(O.targetPage_=x,jA3(O,x),O.isInitialPass_=!1,jA3(O,x),O.signals_.processSignal(vnL[O.targetPage_]),Sc2(O),_.wAk(O))};
_.wAk=function(O){O.pendingPages_.length&&!O.pagePreparerJobId_&&(O.pagePreparerJobId_=_.zl(_.vn,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Jzz(this,this.pendingPages_.shift())}.bind(O),O.DEFAULT_DELAY_))};
jA3=function(O,x){if(x=BiN[x])for(var e in x){var l=!1,C=e;e.charAt(0)=="~"&&(l=!0,C=e.substring(1));var Q=x[e];Q=typeof Q=="object"?Q:{count:Q};x[e]=Q;Q.componentName=C;Q.count>0&&(O.isInitialPass_?l||O.isSeenDuringInitialPass_[C]||(O.JSC$14448_queue_.push({componentName:C,count:1,signals:Q.signals}),O.isSeenDuringInitialPass_[C]=!0,Q.count--):O.JSC$14448_queue_.push(Q))}};
Sc2=function(O){O.JSC$14448_queue_.length=0;O.targetPage_="";O.isInitialPass_=!0;O.signals_.processSignal("eop")};
_.jg.getInstance=function(){return _.uc(_.jg)};var Ni3=function(){this.signals=_.O2();this.init()};
Ni3.prototype.startPreconstruction=function(){_.jg.getInstance().init(_.SS("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Ni3.prototype.init=function(){gnd(this);window.Polymer&&Ybd&&eXi();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var O=_.CV.ytcsi;if(O&&O.gt&&(O=O.gt())&&O.tick&&(O.tick.aft>0||O.tick.pbs>0)&&(_.SS("IS_HOMEPAGE_COLD")||_.SS("IS_RESULTS_PAGE_COLD")||_.SS("IS_WATCH_PAGE_COLD"))){$NR(this);break a}uoi(Yl8,this.onNotifications,this)}};
var gnd=function(O){var x=function(){O.signals.processSignal("dl")};
document.readyState==="complete"?(_.OC(Error("Ah"),"WARNING"),x()):_.o0L(window,"load",x)};
Ni3.prototype.onNotifications=function(O){O.timer||(_.SS("IS_HOMEPAGE_COLD")||_.SS("IS_RESULTS_PAGE_COLD")||_.SS("IS_WATCH_PAGE_COLD"))&&$NR(this)};
var $NR=function(O){O.signals.parkOrScheduleJob(function(){O.signals.processSignal("eocs")},10,"eor")};
new Ni3;var NO,ikd=function(){return _.MQ.apply(this,arguments)||this};
_.c(ikd,_.MQ);_.b=ikd.prototype;_.b.enableActiveViewMeasurement=function(O){if(this.isActiveViewEnabled(O)){var x=this.getUrlPrefixesFromCommand(O.viewableCommands);O=this.getUrlPrefixesFromCommand(O.endOfSessionCommands);if(!NO){var e=_.yF("custom_active_view_tos_timeout_ms");NO=e>0&&e!==36E5?new HmL(this.getVersion(),e):new HmL(this.getVersion())}dGV(NO,this.hostElement);nZr(NO,this.hostElement,x,O)}};
_.b.stopActiveViewMeasurement=function(){NO&&dGV(NO,this.hostElement)};
_.b.isActiveViewEnabled=function(O){return!!O&&(this.hasAtLeastOneUrl(O.viewableCommands)||this.hasAtLeastOneUrl(O.endOfSessionCommands))};
_.b.hasAtLeastOneUrl=function(O){return!!O&&O.length>0&&O[0].loggingUrls!=null&&O[0].loggingUrls.length>0};
_.b.getVersion=function(){var O=_.wz("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(O==null?void 0:O.length)===2?O[1]:null};
_.b.getUrlPrefixesFromCommand=function(O){if(!O)return[];var x=[];O=_.T(O);for(var e=O.next();!e.done;e=O.next())if(e=e.value,e.loggingUrls){e=_.T(e.loggingUrls);for(var l=e.next();!l.done;l=e.next())l=l.value,l.baseUrl&&x.push(l.baseUrl)}return x};
_.B([_.DC()],ikd);var g_=[ikd.prototype];var OJd=function(){return _.MQ.apply(this,arguments)||this};
_.c(OJd,_.MQ);_.Dy.Object.defineProperties(OJd.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.t("enable_entity_store_from_dependency_injection")?_.dq():_.u9()}}});
_.B([_.DC()],OJd);_.$5=[fL.prototype,OJd.prototype];var xaJ=["ytd-rich-shelf-renderer"],Og=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;O.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";O.followUpDialogPromise=null;O.followUpDialogPromiseResolve=null;O.followUpDialogPromiseReject=null;return O};
_.c(Og,_.MQ);_.b=Og.prototype;_.b.dismissibleItemIsDismissedChanged_=function(O){_.t("kevlar_fluid_dismiss")&&(O?_.wr(this.hostElement,"yt-dismissible-item-dismissed"):_.wr(this.hostElement,"yt-dismissible-item-undismissed"))};
_.b.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.b.dismissibleItemReset_=function(){var O=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 _.If(function(x,e){O.followUpDialogPromiseResolve=x;O.followUpDialogPromiseReject=e});
_.wr(this.hostElement,"yt-enable-lockup-interaction")};
_.b.dismissibleItemOnYtServiceRequestSent_=function(O,x){x.actions&&this.dismissibleItemProcessActions(x.actions,O)};
_.b.dismissibleItemOnRequestSent=function(O){if(_.t("web_button_rework"))for(var x=_.T(O.detail),e=x.next();!e.done;e=x.next()){var l=void 0;(e=(l=_.q(e.value,_.xm))==null?void 0:l.actions)&&this.dismissibleItemProcessActions(e,O)}};
_.b.dismissibleItemOnCommandSent=function(O,x){x&&this.dismissibleItemProcessActions(x,O)};
_.b.setAndGetDismissedContentId=function(O){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+O};
_.b.replayDismissAction=function(O){this.dismissibleItemProcessActions([O])};
_.b.dismissibleItemProcessActions=function(O,x){for(var e=0;e<O.length;e++){var l=O[e],C=void 0;((C=_.q(l,_.ih))==null?0:C.commands)&&this.dismissibleItemProcessActions(_.q(l,_.ih).commands,x);if(_.q(l,_.Vq)){if(C=_.q(l,_.Vq),!C.replaceParentSection||xaJ.includes(this.hostElement.nodeName.toLowerCase()))C.groupDismissal&&uBL(this,C.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(C),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Dc("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:l})),l=void 0,(l=x)==null||l.stopPropagation()}else if(_.q(l,G6d))this.dismissibleItemHandleHideEnclosingAction_(),l=void 0,(l=x)==null||l.stopPropagation();else if(_.q(l,HpJ))l=_.q(l,HpJ),C=void 0,((C=l)==null?0:C.targetGroupId)&&uBL(this,{targetGroupId:l.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Dc("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
l=void 0,(l=x)==null||l.stopPropagation();else if(_.q(l,_.xm))(l=_.q(l,_.xm).actions)&&_.gr(this.hostElement,l,this.hostElement),l=void 0,(l=x)==null||l.stopPropagation();else{var Q=C=void 0;((C=_.q(l,_.Nu))==null?void 0:C.signal)!=="TELL_US_WHY"||((Q=_.q(l,_.Nu))==null?0:Q.targetId)&&_.t("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),l=void 0,(l=x)==null||l.stopPropagation())}}};
_.b.dismissibleItemOnYtServiceRequestCompleted_=function(O,x){var e=this.get("feedbackResponses.0.followUpDialog",x.data);e?this.followUpDialogPromiseResolve(e):x.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(x.actions,O)};
_.b.dismissibleItemHandleReplaceEnclosingAction_=function(O){this.dismissedRenderer=O.item;this.isDismissed=!0;var x=null;(x=_.$U(this.hostElement).querySelector("#dismissed"))&&_.A_(this,function(){_.bU(x)});
_.wr(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.b.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.b.dismissibleItemHandleUndoFeedbackAction_=function(){_.wr(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.b.dismissibleItemHandleTellUsWhySignalAction_=function(){var O=this;this.followUpDialogPromise.then(function(x){O.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:x}})})};
Og.prototype.dismissibleItemOnYtServiceRequestCompleted_=Og.prototype.dismissibleItemOnYtServiceRequestCompleted_;Og.prototype.dismissibleItemOnCommandSent=Og.prototype.dismissibleItemOnCommandSent;Og.prototype.dismissibleItemOnRequestSent=Og.prototype.dismissibleItemOnRequestSent;Og.prototype.dismissibleItemOnYtServiceRequestSent_=Og.prototype.dismissibleItemOnYtServiceRequestSent_;Og.prototype.dismissibleItemDataChanged_=Og.prototype.dismissibleItemDataChanged_;
Og.prototype.dismissibleItemIsDismissedChanged_=Og.prototype.dismissibleItemIsDismissedChanged_;_.B([_.V(_.FY),_.v("design:type",Object)],Og.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Og.prototype,"ytdReduxBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Og.prototype,"isDismissed",void 0);_.B([_.R(),_.v("design:type",Object)],Og.prototype,"dismissedRenderer",void 0);
_.B([_.T1("isDismissed"),_.v("design:type",Function),_.v("design:paramtypes",[Boolean]),_.v("design:returntype")],Og.prototype,"dismissibleItemIsDismissedChanged_",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Og.prototype,"dismissibleItemDataChanged_",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],Og.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.B([_.bH("yt-service-request-sent-button-renderer"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Og.prototype,"dismissibleItemOnRequestSent",null);
_.B([_.bH("yt-dismissible-item-action"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Array]),_.v("design:returntype")],Og.prototype,"dismissibleItemOnCommandSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],Og.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.B([_.DC()],Og);_.xw=[_.FY,_.$5,Og.prototype];var e7=function(){var O=_.MQ.apply(this,arguments)||this;O.disableGridStateAware=!1;O.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};O.currentGridClass="";return O};
_.c(e7,_.MQ);e7.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.A_(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var O=this.gridStateAwareGetElement();_.Ow(O,"grid",!0)}};
e7.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
e7.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.$U(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
e7.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var O="grid-disabled";else{O=_.od.getInstance();var x=this.get("pageSubtype");O=x&&vHp.includes(x)?"grid-disabled":O.currentSnapState_?O.currentSnapState_.className:null}(x=this.gridStateAwareGetElement())&&O!==this.currentGridClass&&(O&&_.Ow(x,O,!0),this.currentGridClass&&_.Ow(x,this.currentGridClass,!1),this.currentGridClass=O)};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],e7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",String)],e7.prototype,"gridStateAwareSizingElementSelector",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],e7.prototype,"disableGridStateAware",void 0);_.B([_.DC()],e7);_.lZ=[e7.prototype,_.Wt.YtActionHandlerBehavior];_.Cj=new _.iR("GUIDE_TOKEN");var bZ;_.Ql={};bZ=function(){var O=_.MQ.apply(this,arguments)||this;O.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 O};
_.c(bZ,_.MQ);_.b=bZ.prototype;_.b.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.b.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var O=_.GG().resolve(_.D0(_.Cj));O&&(this.guidePersistentAndVisible=O.getGuidePersistentAndVisible(),this.activeEndpoint=O.getActiveEndpoint(),this.guideOpened=O.getGuideOpened(),this.miniGuideVisible=O.getMiniGuideVisible())};
_.b.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.b.handleGuideStateAction=function(O){this.guidePersistentAndVisible=O};
_.b.handleMiniGuideStateAction=function(O){this.miniGuideVisible=O};
_.b.handleGuideOpenedAction=function(O){this.guideOpened=O};
_.b.handleActiveEndpointAction=function(O){this.activeEndpoint=O};
bZ.prototype.onActiveEndpointChange=bZ.prototype.onActiveEndpointChange;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],bZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],bZ.prototype,"guidePersistentAndVisible",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],bZ.prototype,"miniGuideVisible",void 0);_.B([_.R(),_.v("design:type",Object)],bZ.prototype,"activeEndpoint",void 0);
_.B([_.T1("activeEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],bZ.prototype,"onActiveEndpointChange",null);_.B([_.R(),_.v("design:type",Boolean)],bZ.prototype,"guideOpened",void 0);_.B([_.DC()],bZ);_.Ql.YtdGuideStateAwareBehavior=[];_.Ql.YtdGuideStateAwareBehavior.push(bZ.prototype,_.Wt.YtActionHandlerBehavior);var eud=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],TY=function(){var O=_.MQ.apply(this,arguments)||this;O.hoverJobId=0;O.JSC$14479_touched=!1;return O};
_.c(TY,_.MQ);_.b=TY.prototype;_.b.created=function(){this.useExpandableTooltip=!eud.includes(this.is)};
_.b.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.b.detached=function(){this.useExpandableTooltip=!1};
_.b.lockupOnDown=function(O){this.interactionElement&&!_.uk(_.n3(O),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.b.lockupOnUp=function(O){this.interactionElement&&!_.uk(_.n3(O),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.b.onTouchStart=function(){this.JSC$14479_touched=!0};
_.b.lockupOnMouseEnter=function(){var O=this,x=_.yF("kevlar_lockup_hover_delay",-1);this.JSC$14479_touched&&x>=0?(_.vn.cancelJob(this.hoverJobId),this.hoverJobId=_.vn.addJob(function(){O.lockupIsHovered=!0},8,x),this.JSC$14479_touched=!1):this.lockupIsHovered=!0};
_.b.lockupOnMouseLeave=function(){this.hoverJobId&&(_.vn.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.b.lockupOnPopupClosed=function(O,x){var e;((e=x.popupRenderer)==null?void 0:e.is)==="ytd-menu-popup-renderer"&&(O=x.popupRenderer.veData,x=_.Pq(),O&&x&&_.HU(x,[O]))};
_.b.lockupOnLockupRequested=function(O){var x=O.detail.videoIds[0],e;O.detail&&x===((e=this.data)==null?void 0:e.videoId)&&(O.detail.returnValue=[this.data])};
_.b.lockupOnYtServiceRequestSent=function(O,x){if(O=x.actions)for(var e=0;e<O.length;e++){var l=O[e];if(l.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&x.ajaxPromise){var C=void 0,Q=(C=_.q(x.endpoint,_.vj))==null?void 0:C.playlistId;C=void 0;l=(C=l.removedVideoId)!=null?C:"";X02(_.lX(),l,Q)}else l.action==="ACTION_REMOVE_VIDEO"&&x.ajaxPromise&&(Q=void 0,l=(Q=l.setVideoId)!=null?Q:"",_.oHd(_.lX(),l))}};
_.b.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.b.lockupOnLockupEnabled=function(){if(!this.$){var O=_.GG().resolve(_.Be).getCurrentPage(),x=this.getParentRenderer?this.getParentRenderer():void 0;_.ft(new _.ry("component not ready",this.is,this.isAttached,O==null?void 0:O.is,x==null?void 0:x.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
TY.prototype.lockupOnLockupEnabled=TY.prototype.lockupOnLockupEnabled;TY.prototype.lockupOnLockupDisabled=TY.prototype.lockupOnLockupDisabled;TY.prototype.lockupOnYtServiceRequestSent=TY.prototype.lockupOnYtServiceRequestSent;TY.prototype.lockupOnLockupRequested=TY.prototype.lockupOnLockupRequested;TY.prototype.lockupOnPopupClosed=TY.prototype.lockupOnPopupClosed;TY.prototype.lockupOnMouseLeave=TY.prototype.lockupOnMouseLeave;TY.prototype.lockupOnMouseEnter=TY.prototype.lockupOnMouseEnter;
TY.prototype.onTouchStart=TY.prototype.onTouchStart;TY.prototype.lockupOnUp=TY.prototype.lockupOnUp;TY.prototype.lockupOnDown=TY.prototype.lockupOnDown;_.B([_.R(),_.v("design:type",Object)],TY.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],TY.prototype,"lockupIsHovered",void 0);_.B([_.R(),_.v("design:type",Boolean)],TY.prototype,"lockupTouchTriggered",void 0);_.B([_.R(),_.v("design:type",Boolean)],TY.prototype,"useExpandableTooltip",void 0);
_.B([_.kX("#interaction"),_.v("design:type",Object)],TY.prototype,"interactionElement",void 0);_.B([_.bH("down"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],TY.prototype,"lockupOnDown",null);_.B([_.bH("up"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],TY.prototype,"lockupOnUp",null);
_.B([_.bH("touchstart"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],TY.prototype,"onTouchStart",null);_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],TY.prototype,"lockupOnMouseEnter",null);_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],TY.prototype,"lockupOnMouseLeave",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],TY.prototype,"lockupOnPopupClosed",null);_.B([_.bH("yt-lockup-requested"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],TY.prototype,"lockupOnLockupRequested",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],TY.prototype,"lockupOnYtServiceRequestSent",null);_.B([_.bH("yt-disable-lockup-interaction"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],TY.prototype,"lockupOnLockupDisabled",null);
_.B([_.bH("yt-enable-lockup-interaction"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],TY.prototype,"lockupOnLockupEnabled",null);_.B([_.DC()],TY);_.Lj=[TY.prototype];_.lW2={YtdReduxBehavior:[]};_.lW2.YtdReduxBehavior.push.apply(_.lW2.YtdReduxBehavior,_.$5);var kw=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;O.disableNowPlaying=!1;O.disableTooltips=!1;O.useHoveredProperty=!1;O.hovered=!1;O.isThumbnailHovered_=!1;O.addBackground=_.t("kevlar_thumbnail_bg");O.nowPlaying=!1;O.disableRounding=!1;O.size="small";return O};
_.c(kw,_.MQ);_.b=kw.prototype;_.b.computeThumbnailOverlaySidePanelWidth_=function(O,x){return O-x};
_.b.computeSize=function(O,x){if(!this.disableRounding){if(!O&&!x)return"small";O=Math.max(O||0,x||0);return O>=256?"large":O>=96?"medium":"small"}};
_.b.computeFinalHoveredState_=function(O,x,e){return this.nowPlaying?!1:_.t("kevlar_thumbnail_fluid")&&O?x:e};
_.b.computeHoverOverlays_=function(O,x){return O&&x?x:void 0};
_.b.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.b.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.b.checkMiniplayer_=function(){var O;if(((O=this.data)==null?0:O.playlistSetVideoId)&&_.t("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{O=_.U7();var x=O.currentEndpoint;!this.disableNowPlaying&&x&&_.q(x,_.Hq)&&this.data?(x=_.q(x,_.Hq),this.nowPlaying=this.data.playlistId?x.playlistId===this.data.playlistId:x.videoId===this.data.videoId,this.isVideoPlaying=O==null?void 0:O.isVideoPlaying):this.nowPlaying=!1}};
kw.prototype.checkMiniplayer_=kw.prototype.checkMiniplayer_;kw.prototype.onMouseLeave_=kw.prototype.onMouseLeave_;kw.prototype.onMouseEnter_=kw.prototype.onMouseEnter_;kw.prototype.computeHoverOverlays_=kw.prototype.computeHoverOverlays_;kw.prototype.computeFinalHoveredState_=kw.prototype.computeFinalHoveredState_;kw.prototype.computeSize=kw.prototype.computeSize;kw.prototype.computeThumbnailOverlaySidePanelWidth_=kw.prototype.computeThumbnailOverlaySidePanelWidth_;
_.B([_.V(_.$5),_.v("design:type",Object)],kw.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],kw.prototype,"height",void 0);_.B([_.R(),_.v("design:type",Boolean)],kw.prototype,"bottomSidePanel",void 0);_.B([_.R(),_.v("design:type",Number)],kw.prototype,"width",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"disableNowPlaying",void 0);
_.B([_.R({selector:_.P1}),_.v("design:type",Boolean)],kw.prototype,"miniplayerIsActive",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"disableTooltips",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"useHoveredProperty",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"hovered",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"isThumbnailHovered_",void 0);
_.B([_.R({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.v("design:type",Boolean)],kw.prototype,"finalHoveredState_",void 0);_.B([_.R({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.v("design:type",Number)],kw.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kw.prototype,"addBackground",void 0);
_.B([_.R({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.v("design:type",Object)],kw.prototype,"hoverOverlays_",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kw.prototype,"nowPlaying",void 0);_.B([_.R(),_.v("design:type",Boolean)],kw.prototype,"isVideoPlaying",void 0);_.B([_.R(),_.v("design:type",Object)],kw.prototype,"disableRounding",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.v("design:type",Object)],kw.prototype,"size",void 0);_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],kw.prototype,"onMouseEnter_",null);_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],kw.prototype,"onMouseLeave_",null);
_.B([_.T1("data","disableNowPlaying","miniplayerIsActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],kw.prototype,"checkMiniplayer_",null);_.B([_.DC()],kw);var CMF=[kw.prototype];_.AT={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(O,x){return O+":"+_.N$(x)},
getPlayerListener_:function(O,x,e){O=this.getPlayerListenerKey_(O,x);x=this.playerListeners_.get(O);e&&this.playerListeners_.delete(O);return x},
savePlayerListener_:function(O,x){var e=x.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(O,x),e);return e},
listenToPlayerEvent:function(O,x,e){e=this.savePlayerListener_(x,e);O.addEventListener(x,e)},
listenToPlayerEvents:function(O,x){x.forEach(function(e,l){this.listenToPlayerEvent(O,l,e)}.bind(this))},
unlistenFromPlayerEvent:function(O,x,e){e=this.getPlayerListener_(x,e,!0);O.removeEventListener(x,e)},
unlistenFromPlayerEvents:function(O,x){x.forEach(function(e,l){this.unlistenFromPlayerEvent(O,l,e)}.bind(this))}}};
_.MA=function(){};_.QQJ=new _.iR("PLAYER_API_TOKEN");var fTV=!1,jGi,w_s=!1,gA$;var Se=function(O,x,e,l,C){_.h0.call(this);var Q=this;this.playerId=x;this.webPlayerContextConfig=l;this.gRV=C;this.cQb=!1;this.api={};this.wIy=this.boY=null;this.d4Y=new _.UC;this.bU={};this.w6z=this.aHa=this.elementId=this.tMb=this.config=null;this.zRk=!1;this.nB=this.tKv=null;this.j8k={};this.pNk=["onReady"];this.lastError=null;this.fFY=NaN;this.rfD={};this.z1z=0;this.wK=this.targetElement=O;_.qq(this,this.d4Y);bJR(this);e?this.z1z=setTimeout(function(){Q.loadNewVideoConfig(e)},0):l&&(Ts2(this),
L$d(this))};
_.c(Se,_.h0);Se.prototype.getId=function(){return this.playerId};
Se.prototype.loadNewVideoConfig=function(O){if(!this.isDisposed()){this.z1z&&(clearTimeout(this.z1z),this.z1z=0);var x=O||{};x instanceof P63||(x=new P63(x));this.config=x;this.setConfig(O);L$d(this);this.isReady()&&kh3(this)}};
var Ts2=function(O){var x;O.webPlayerContextConfig?x=O.webPlayerContextConfig.rootElementId:x=O.config.attrs.id;O.elementId=x||O.elementId;O.elementId==="video-player"&&(O.elementId=O.playerId,O.webPlayerContextConfig?O.webPlayerContextConfig.rootElementId=O.playerId:O.config.attrs.id=O.playerId);var e;((e=O.wK)==null?void 0:e.id)===O.elementId&&(O.elementId+="-player",O.webPlayerContextConfig?O.webPlayerContextConfig.rootElementId=O.elementId:O.config.attrs.id=O.elementId)};
Se.prototype.setConfig=function(O){this.tMb=O;this.config=Arp(O);Ts2(this);if(!this.aHa){var x;this.aHa=MMN(this,((x=this.config.args)==null?void 0:x.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var e;if((e=this.config)==null?0:e.attrs)O=this.config.attrs,(x=O.width)&&this.wK&&(this.wK.style.width=hl(Number(x)||x,!0)),(O=O.height)&&this.wK&&(this.wK.style.height=hl(Number(O)||O,!0))};
Se.prototype.getConfig=function(){return this.tMb};
var kh3=function(O){if(O.config&&O.config.loaded!==!0)if(O.config.loaded=!0,!O.config.args||O.config.args.autoplay!=="0"&&O.config.args.autoplay!==0&&O.config.args.autoplay!==!1){var x;O.api.loadVideoByPlayerVars((x=O.config.args)!=null?x:null)}else O.api.cueVideoByPlayerVars(O.config.args)},Ghk=function(O){var x=!0,e=O.getPlayerElement();
e&&O.config&&(x=e.dataset.version===DaN(O));return x&&!!_.i8("yt.player.Application.create")},L$d=function(O){if(!O.isDisposed()&&!O.zRk){var x=Ghk(O);
if(x&&(O.getPlayerElement()?"html5":null)==="html5")O.w6z="html5",O.isReady()||F$F(O);else if(XVD(O),O.w6z="html5",x&&O.nB&&O.targetElement)O.targetElement.appendChild(O.nB),F$F(O);else{O.config&&(O.config.loaded=!0);var e=!1;O.tKv=function(){e=!0;var l=ot2(O,"player_bootstrap_method")?_.i8("yt.player.Application.createAlternate")||_.i8("yt.player.Application.create"):_.i8("yt.player.Application.create");var C=O.config?Arp(O.config):void 0;l&&l(O.targetElement,C,O.webPlayerContextConfig,O.gRV);F$F(O)};
O.zRk=!0;x?O.tKv():(_.ag(DaN(O),O.tKv),(x=yr4(O))&&L5L(x||""),ZJk(O)&&!e&&_.MB("yt.player.Application.create",null))}}};
Se.prototype.getPlayerElement=function(){var O=_.wS(document,this.elementId);!O&&this.wK&&this.wK.querySelector&&(O=this.wK.querySelector("#"+this.elementId));return O};
var F$F=function(O){if(!O.isDisposed()){var x=O.getPlayerElement(),e=!1;x&&x.getApiInterface&&x.getApiInterface()&&(e=!0);if(e){O.zRk=!1;if(!ot2(O,"html5_remove_not_servable_check_killswitch")){var l;if((x==null?0:x.isNotServable)&&O.config&&(x==null?0:x.isNotServable((l=O.config.args)==null?void 0:l.video_id)))return}EtR(O)}else O.fFY=setTimeout(function(){F$F(O)},50)}},EtR=function(O){bJR(O);
O.cQb=!0;var x=O.getPlayerElement();if(x){O.boY=tM4(O,x,"addEventListener");O.wIy=tM4(O,x,"removeEventListener");var e=x.getApiInterface();e=e.concat(x.getInternalApiInterface());for(var l=O.api,C=0;C<e.length;C++){var Q=e[C];l[Q]||(l[Q]=tM4(O,x,Q))}}for(var L in O.bU)O.bU.hasOwnProperty(L)&&O.boY&&O.boY(L,O.bU[L]);kh3(O);O.aHa&&O.aHa(O.api);O.d4Y.publish("onReady",O.api)},tM4=function(O,x,e){var l=x[e];
return function(){var C=_.vw.apply(0,arguments);try{return O.lastError=null,l.apply(x,C)}catch(Q){if(e!=="sendAbandonmentPing")throw Q.params=e,O.lastError=Q,C=new _.ry("PlayerProxy error in method call",{error:Q,method:e,playerId:O.playerId}),C.level="WARNING",C;}}},bJR=function(O){O.cQb=!1;
if(O.wIy)for(var x in O.bU)O.bU.hasOwnProperty(x)&&O.wIy(x,O.bU[x]);for(var e in O.rfD)O.rfD.hasOwnProperty(e)&&clearTimeout(Number(e));O.rfD={};O.boY=null;O.wIy=null;x=O.api;for(var l in x)x.hasOwnProperty(l)&&(x[l]=null);x.addEventListener=function(C,Q){O.addEventListener(C,Q)};
x.removeEventListener=function(C,Q){O.removeEventListener(C,Q)};
x.destroy=function(){O.dispose()};
x.getLastError=function(){return O.getLastError()};
x.getPlayerType=function(){return O.getPlayerType()};
x.getCurrentVideoConfig=function(){return O.getConfig()};
x.loadNewVideoConfig=function(C){O.loadNewVideoConfig(C)};
x.isReady=function(){return O.isReady()}};
Se.prototype.isReady=function(){return this.cQb};
Se.prototype.addEventListener=function(O,x){var e=this;this.isDisposed();var l=MMN(this,x);l&&(_.ur(this.pNk,O)||this.bU[O]||(x=qVd(this,O),this.boY&&this.boY(O,x)),this.d4Y.subscribe(O,l),O==="onReady"&&this.isReady()&&setTimeout(function(){l(e.api)},0))};
Se.prototype.removeEventListener=function(O,x){this.isDisposed()||(x=MMN(this,x))&&this.d4Y.unsubscribe(O,x)};
var MMN=function(O,x){var e=x;if(typeof x==="string"){if(O.j8k[x])return O.j8k[x];e=function(){var l=_.vw.apply(0,arguments),C=_.i8(x);if(C)try{C.apply(_.CV,l)}catch(Q){throw l=new _.ry("PlayerProxy error when executing callback",{error:Q}),l.level="ERROR",l;}};
O.j8k[x]=e}return e?e:null},qVd=function(O,x){var e=function(l){var C=function(){O.isDisposed();
if(!O.isDisposed())try{O.d4Y.publish(x,l!=null?l:void 0)}catch(k){var L=new _.ry("PlayerProxy error when creating global callback",{error:k.message,event:x,playerId:O.playerId,data:l,originalStack:k.stack,componentStack:k.componentStack});L.level="WARNING";throw L;}};
if(ot2(O,"web_player_publish_events_immediately"))C();else{var Q=setTimeout(function(){C();_.HX.remove(O.rfD,String(Q))},0);
_.HX.add(O.rfD,String(Q),!0)}};
return O.bU[x]=e};
Se.prototype.getPlayerType=function(){return this.w6z||(this.getPlayerElement()?"html5":null)};
Se.prototype.getLastError=function(){return this.lastError};
var XVD=function(O){O.cancel();bJR(O);O.w6z=null;O.config&&(O.config.loaded=!1);var x=O.getPlayerElement();x&&(Ghk(O)||!ZJk(O)?O.nB=x:(x&&x.destroy&&x.destroy(),O.nB=null));O.targetElement&&_.pl(O.targetElement)};
Se.prototype.cancel=function(){this.tKv&&_.H6V(DaN(this),this.tKv);clearTimeout(this.fFY);this.zRk=!1};
Se.prototype.disposeInternal=function(){XVD(this);if(this.nB&&this.config&&this.nB.destroy)try{this.nB.destroy()}catch(x){var O=new _.ry("PlayerProxy error during disposal",{error:x});O.level="ERROR";throw O;}this.j8k=null;for(O in this.bU)this.bU.hasOwnProperty(O)&&delete this.bU[O];this.tMb=this.config=this.api=null;delete this.targetElement;delete this.wK;_.h0.prototype.disposeInternal.call(this)};
var ZJk=function(O){var x,e;O=(x=O.config)==null?void 0:(e=x.args)==null?void 0:e.fflags;return!!O&&O.indexOf("player_destroy_old_version=true")!==-1},DaN=function(O){return O.webPlayerContextConfig?O.webPlayerContextConfig.jsUrl:(O=O.config.assets)?O.js:""},yr4=function(O){return O.webPlayerContextConfig?O.webPlayerContextConfig.cssUrl:(O=O.config.assets)?O.css:""},ot2=function(O,x){if(O.webPlayerContextConfig)var e=O.webPlayerContextConfig.serializedExperimentFlags;
else{var l;if((l=O.config)==null?0:l.args)e=O.config.args.fflags}return(e||"").split("&").includes(x+"=true")},Arp=function(O){for(var x={},e=_.T(Object.keys(O)),l=e.next();!l.done;l=e.next()){l=l.value;
var C=O[l];x[l]=typeof C==="object"?_.HX.clone(C):C}return x};var e7r={},xNV="player_uid_"+(Math.random()*1E9>>>0);var DB=function(O,x,e,l,C,Q){x=x===void 0?document.createElement("div"):x;this.webPlayerContextConfig=O;this.container=x;this.commandResolver=e;this.apiResolver=QAw();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.OA;l||Q?PMR(this):cr4(this);this.pendingPlayerResponse=l;this.pendingWatchNextResponse=C;this.pendingPlayerVars=Q;IWD(this)};
DB.prototype.loadVideoWithPlayerResponse=function(O,x,e){this.loadVideo(O,x,e)};
DB.prototype.loadVideoWithPlayerVars=function(O){return this.loadVideo(void 0,void 0,O)};
DB.prototype.destroy=function(O){if(O=_.wS(document,O))O=xNV+"_"+_.N$(O),(O=e7r[O])&&O.dispose()};
var pVL=function(O,x){var e;_.A(function(l){if(l.nextAddress==1)return O.pendingWatchNextResponse=x,O.synchronousApi?(e=O.synchronousApi,l.jumpTo(2)):l.yield(O.api,3);l.nextAddress!=2&&(e=l.yieldResult);if(!VMF(O,e))return l.return();O.pendingWatchNextResponse&&(e.updateVideoData({raw_watch_next_response:O.pendingWatchNextResponse}),O.pendingWatchNextResponse=void 0);_.Ra(l)})},VMF=function(O,x){var e;
if(!(x==null?0:(e=x.isReady)==null?0:e.call(x))){var l;_.ft(new _.ry("playerApi is falsey",{synchronousApi:O.synchronousApi,apiResolved:O.apiResolver.resolved,playerApiUndefined:x===void 0,playerApiNull:x===null,playerApiReady:(x==null?void 0:(l=x.isReady)==null?void 0:l.call(x))===!0,playerApiMethods:x?Object.keys(x):[]}));return!1}return!0},Ru2=function(O,x){if(typeof O[x]==="function")return O[x]()},Ua4=function(O){var x=window,e,l=(e=x.ytplayer)==null?void 0:e.bootstrapPlayerContainer;
if((e=l==null?void 0:l.firstElementChild)&&_.ue(e,"html5-video-player")){var C,Q,L=(C=x.ytplayer)==null?void 0:(Q=C.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;C=O.webPlayerContextConfig.contextId;if(L&&L===C){l!==O.container&&(l=!1,Ru2(e,"getPlayerState")===2&&(l=!0),O.container.appendChild(e),l||Ru2(e,"playVideo"));var k;if((k=x.ytplayer)==null?0:k.bootstrapPlayerResponse)O.bootstrapPlayerResponse=x.ytplayer.bootstrapPlayerResponse}}},IWD=function(O){var x,e,l,C,Q;
_.A(function(L){if(L.nextAddress==1)return O.pageReadyOrDataAvailable?L.jumpTo(2):L.yield(O.pageReadyOrDataAvailableResolver.promise,2);if(L.nextAddress!=4)return!_.t("kevlar_player_unified_player_loading")||JV8()&&Sir()?L.jumpTo(4):L.yield(ivn(),4);Ua4(O);if(O.pendingPlayerResponse||O.pendingPlayerVars)x=Okw(O.pendingPlayerResponse,O.pendingWatchNextResponse,O.pendingPlayerVars),O.pendingPlayerResponse&&O.pendingPlayerResponse===O.bootstrapPlayerResponse&&(x.loaded=!0),O.bootstrapPlayerResponse=
void 0;e=Cvr(O.container,x,O.webPlayerContextConfig);((l=x)==null?0:l.loaded)&&O.pendingWatchNextResponse?(pVL(O,O.pendingWatchNextResponse),O.pendingPlayerResponse=void 0,O.pendingPlayerVars=void 0):aWN(O);C=function(k){e.removeEventListener("onReady",C);O.synchronousApi=k;O.apiResolver.resolve(k)};
e.addEventListener("onReady",C);O.commandResolver!==void 0&&(Q=O.commandResolver,e.addEventListener("innertubeCommand",function(k){Q(k)}));
_.Ra(L)})};
DB.prototype.loadVideo=function(O,x,e){var l=this,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){if(E.nextAddress==1)return l.pendingPlayerResponse=O,l.pendingWatchNextResponse=x,l.pendingPlayerVars=e,PMR(l),l.synchronousApi?(C=l.synchronousApi,E.jumpTo(2)):E.yield(l.api,3);E.nextAddress!=2&&(C=E.yieldResult);if(!VMF(l,C))return E.return(new Promise(function(){}));
L=new Promise(function(P){Q=P});
k=function(){var P=C.getPlayerResponse();P&&(C.removeEventListener("onVideoDataChange",k),Q(P))};
C.addEventListener("onVideoDataChange",k);if(l.pendingPlayerResponse||l.pendingPlayerVars)l.pendingPlayerResponse&&l.pendingPlayerResponse===l.bootstrapPlayerResponse?(Q(l.pendingPlayerResponse),l.pendingWatchNextResponse&&pVL(l,l.pendingWatchNextResponse)):(M=Okw(l.pendingPlayerResponse,l.pendingWatchNextResponse,l.pendingPlayerVars),(Z=(G=l.pendingPlayerResponse)==null?void 0:(X=G.playerConfig)==null?void 0:(y=X.playbackStartConfig)==null?void 0:y.startPaused)?C.cueVideoByPlayerVars(M.args):C.loadVideoByPlayerVars(M.args)),
aWN(l),l.bootstrapPlayerResponse=void 0;return E.return(L)})};
var cr4=function(O){if(document.readyState==="complete"||document.readyState==="interactive")PMR(O);else{var x=function(){document.removeEventListener("DOMContentLoaded",x);PMR(O)};
document.addEventListener("DOMContentLoaded",x)}},PMR=function(O){O.pageReadyOrDataAvailable=!0;
O.pageReadyOrDataAvailableResolver.resolve()},aWN=function(O){O.pendingPlayerResponse=void 0;
O.pendingWatchNextResponse=void 0;O.pendingPlayerVars=void 0};
_.Dy.Object.defineProperties(DB.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var GY=function(O){WY.call(this,O===void 0?"document_active":O);var x=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(e){x.transition("document_disposed",{event:e})});
window.addEventListener("beforeunload",function(e){x.transition("document_disposed_preventable",{event:e})});
window.addEventListener("unload",function(e){x.transition("document_disposed",{event:e});x.hasRun=new Map})};
_.c(GY,WY);
GY.prototype.runPreventableDispose=function(O,x){if(!this.hasRun.get("document_disposed_preventable")){O(x==null?void 0:x.event);var e,l;if((x==null?0:(e=x.event)==null?0:e.defaultPrevented)||(x==null?0:(l=x.event)==null?0:l.returnValue)){x.event.returnValue||(x.event.returnValue=!0);x.event.defaultPrevented||x.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")};
GY.prototype.runDispose=function(O,x){this.hasRun.get("document_disposed")?this.transition("document_active"):(O(x==null?void 0:x.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
GY.prototype.runFlush=function(O,x){O(x==null?void 0:x.event);this.transition("document_active")};
GY.prototype.runActive=function(){};var FZ=function(O){WY.call(this,O===void 0?"document_visibility_unknown":O);var x=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(e){document.visibilityState==="visible"?x.transition("document_visible",{event:e}):x.transition("document_hidden",
{event:e})});
_.t("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(e){x.transition("document_backgrounded",{event:e})}),window.addEventListener("focus",function(e){x.transition("document_foregrounded",{event:e})}))};
_.c(FZ,WY);FZ.prototype.runVisible=function(O,x){O(x==null?void 0:x.event);_.t("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
FZ.prototype.runHidden=function(O,x){O(x==null?void 0:x.event);_.t("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
FZ.prototype.runBackgrounded=function(O,x){O(x==null?void 0:x.event)};
FZ.prototype.runForegrounded=function(O,x){O(x==null?void 0:x.event)};var XZ=function(){this.teardownLifecycle=new GY;this.visibilityLifecycle=new FZ};
XZ.prototype.install=function(){var O=_.vw.apply(0,arguments),x=this;O.forEach(function(e){x.teardownLifecycle.install(e)});
O.forEach(function(e){x.visibilityLifecycle.install(e)})};var oX=function(){XZ.call(this);var O={};this.install((O.document_disposed={callback:this.abortSlisAndFlush},O));_.t("combine_ve_grafts")&&(O={},this.install((O.document_disposed={callback:this.flushInteractionLoggingAttachVes},O)));O={};this.install((O.flush_logs={callback:this.logFinalPayload},O));_.t("web_log_cfg_cee_ks")||_.zl(_.vn,ma$)};
_.c(oX,XZ);var bkL=function(){oX.loggingInstance||(oX.loggingInstance=new oX);return oX.loggingInstance};
oX.prototype.logFinalPayload=function(){if(_.t("web_fp_via_jspb")){var O=new oEJ,x=_.Pq();x&&_.mO(O,1,x);x=_.t("jspb_sparse_encoded_pivot")?new hG([{}]):new hG;_.Vc(x,380,yhJ,O);pji("finalPayload",x);_.t("web_fp_via_jspb_and_json")&&_.uU("finalPayload",{csn:_.Pq()})}else _.uU("finalPayload",{csn:_.Pq()})};
oX.prototype.abortSlisAndFlush=function(){TG4(xj);eo!=null&&eo.flush()};
oX.prototype.flushInteractionLoggingAttachVes=function(){pCp(_.k0())};
var ma$=function(){var O=_.wz("CLIENT_EXPERIMENT_EVENTS");if(O){var x=lDr();O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,x(e)&&_.uU("genericClientExperimentEvent",{eventType:e});delete _.fO.CLIENT_EXPERIMENT_EVENTS}};var sQL={};
sQL.YtPlayerBehavior=[_.AT.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 O=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.OA;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;TiW(function(){O.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Ja(this,"pan-down"),_.t("kevlar_pinch_fullscreen")&&_.dH().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.t("kevlar_pinch_fullscreen")&&_.dH().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(O,x,e){var l=this;je(this.useUnifiedPlayer_());if(this.mainAppPlayer_)je(!1,"MainAppPlayer already created.");else{var C=_.t("kevlar_player_container_query_killswitch")?this.$.container:_.$U(this.hostElement).querySelector("#container");this.mainAppPlayer_=new DB(this.getWebPlayerContextConfig_(),C,function(Q){return _.C_(Q,l.hostElement)},O,x,e);
this.mainAppPlayer_.api.then(function(Q){l.player_=Q;l.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&UVz.resolve(Q)})}},
loadVideoWithPlayerResponse:function(O,x){var e=this;if(this.useUnifiedPlayer_()){var l=this.watchNextData,C,Q=(C=O.videoDetails)==null?void 0:C.videoId,L,k,M;(C=(L=this.watchNextData)==null?void 0:(k=L.currentVideoEndpoint)==null?void 0:(M=k.watchEndpoint)==null?void 0:M.videoId)&&Q!=C&&(l=void 0,_.t("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(O,l,x):this.createMainAppPlayer_(O,l,x);this.mainAppPlayer_.api.then(function(){_.wr(e.hostElement,
"yt-player-updated")})}else this.update(YiN(O,x))},
loadVideoWithPlayerVars:function(O){var x=this;this.useUnifiedPlayer_()?(_.t("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(O):this.createMainAppPlayer_(void 0,void 0,O),this.mainAppPlayer_.api.then(function(){_.wr(x.hostElement,"yt-player-updated")})):this.update({args:O})},
update:function(O){var x=this;if(this.useUnifiedPlayer_())je(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(O);var e=J5r(O.args);e&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==e&&Object.assign(O.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(O).then(function(l){_.wr(x.hostElement,"yt-player-updated",_.t("kevlar_player_updated_obsolete_player_killswitch")?
l:void 0)})}_.vH(new _.ry("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.getPlayerPromise(),2);e=l.yieldResult;if(!e)throw Error("Ch");O&&x.updatePlayerPlaylist_(O);_.Ra(l)})},
acquireApi_:function(O){var x=this;if(this.useUnifiedPlayer_())je(!1,"Invalid method call in kevlar_unified_player.");else return _.vn.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(je(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(e){x.shouldAutoplay_(O)?e.loadVideoByPlayerVars(O.args):e.cueVideoByPlayerVars(O.args)})):this.initPlayerPromise_=this.initPlayerContainer_(O),this.initPlayerPromise_},
initPlayerContainer_:function(O){var x=this;if(this.useUnifiedPlayer_())je(!1,"Invalid method call in kevlar_unified_player.");else return je(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.ft(Error("Dh")),je(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.t("kevlar_player_container_query_killswitch")?this.$.container:_.$U(this.hostElement).querySelector("#container"),ivn().then(function(){var e=x.initPlayer_(O);x.playerResolver_.resolve(e);
return e})},
onPlayerReady_:function(O,x){this.useUnifiedPlayer_()?je(!1,"Invalid method call in kevlar_unified_player."):(O.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&UVz.resolve(O),x(O))},
maybeCallApiMethodOnElement_:function(O,x){if(typeof O[x]==="function")return O[x]()},
maybeAdoptBootstrapPlayer_:function(){var O=window,x,e=(x=O.ytplayer)==null?void 0:x.bootstrapPlayerContainer;if((x=e==null?void 0:e.firstElementChild)&&x.classList.contains("html5-video-player")){var l,C,Q=(l=O.ytplayer)==null?void 0:(C=l.bootstrapWebPlayerContextConfig)==null?void 0:C.contextId;l=this.getWebPlayerContextConfig_().contextId;if(Q&&Q===l){e!==this.playerContainer_&&(e=!1,this.maybeCallApiMethodOnElement_(x,"getPlayerState")===2&&(e=!0),this.playerContainer_.appendChild(x),e||this.maybeCallApiMethodOnElement_(x,
"playVideo"));var L;if((L=O.ytplayer)==null?0:L.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=O.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(O){var x=this;if(this.useUnifiedPlayer_())je(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(e){x.maybeAdoptBootstrapPlayer_();var l=O?Bt$(O):void 0;l&&l==x.bootstrapPlayerResponse_&&(O.loaded=!0);l=x.playerContainer_;var C=x.getWebPlayerContextConfig_();l=Cvr(l,O,C);x.player_=l;x.onPlayerReadyEvent_=x.onPlayerReady_.bind(x,x.player_,e);x.player_.addEventListener("onReady",x.onPlayerReadyEvent_);x.player_.addEventListener("innertubeCommand",
x.onPlayerInnerTubeCommand_.bind(x))})},
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(O){O.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(O){O.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var O=_.GG().resolve(_.Be).getCurrentPage();O&&O.getScrollTop()<=0?_.Ja(this,"pan-down"):_.Ja(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(O){O.isFullscreen()||O.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(O){O.isFullscreen()&&O.toggleFullscreen()})},
updatePlayerPlaylist_:function(O){var x=this,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return e=_.GG().resolve(_.D0(_.gx)),l=!!(e&&e.playlistComponent&&e.playlistComponent.loopOn),Q.yield(x.getPlayerPromise(),2);var L=C=Q.yieldResult,k=L.updatePlaylist,M=[];if(_.t("kevlar_player_playlist_use_local_index")){var G,X;var y=(X=(G=O.localCurrentIndex)!=null?G:O.currentIndex)!=null?X:0}else{var Z;y=(Z=O.currentIndex)!=null?Z:0}if(O.contents)for(G=0;G<O.contents.length;G++)if((X=O.contents[G])&&X.playlistPanelVideoRenderer)if(JTr(X)){X=
X.playlistPanelVideoRenderer;Z="";X.shortBylineText&&(Z=_.db(X.shortBylineText));var E="";X.title?E=_.db(X.title):X.unplayableText&&(E=_.db(X.unplayableText));M.push({author:Z,title:E,encrypted_id:X.videoId})}else G<y&&--y;k.call(L,{index:y,list:O.playlistId?O.playlistId:"",loop:l,playlist_title:O.title,playlist_length:M.length,video:M,fetch:0,external_list:"1",title:O.title?O.title:"",playlist_author:O.ownerName?_.db(O.ownerName):void 0});_.Ra(Q)})},
focusOnPlayer:function(){_.A_(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var O=this.playerContainer_.querySelector(".html5-video-player");O&&(_.yl(_.GG().resolve(_.Fn)),O.focus())}})},
preparePlayer:function(){var O=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(x){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")x();else{var e=function(){document.removeEventListener("DOMContentLoaded",e);x()};
document.addEventListener("DOMContentLoaded",e)}})).then(function(){return ivn()}).then(function(){O.initPlayerPromise_||O.preparePlayerJobId_||(O.preparePlayerJobId_=_.zl(_.vn,function(){O.initPlayerPromise_||(O.initPlayerPromise_=O.initPlayerContainer_())}))}):_.vH(new _.ry("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(O){this.useUnifiedPlayer_()?je(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(O)||(O.args.autoplay="0")},
shouldAutoplay_:function(O){if(this.useUnifiedPlayer_())je(!1,"Invalid method call in kevlar_unified_player.");else{var x=this.get("args.el",O);return x&&x!="detailpage"&&this.isMiniplayerActive_()||x&&(x=="sponsorshipsoffer"||x=="handlesclaiming")&&this.get("args.autoplay",O)=="0"?!1:(O=Bt$(O))&&this.get("playerConfig.playbackStartConfig.startPaused",O)?!1:!0}},
isMiniplayerActive_:function(){return _.GG().resolve(_.Vs).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var O=this.getPlayer();if(O){var x=O.getPlayerState();_.t("kevlar_player_check_ad_state_on_stop")&&(x=O.getPlayerState(O.getPresentingPlayerType()));x!=5&&O.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(O,x,e){e=e===void 0?!1:e;var l=this,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return x||(x=l.hostElement),C=l.useUnifiedPlayer_()?!!l.mainAppPlayer_:!!l.initPlayerPromise_,C?M.yield(l.getPlayerPromise(),2):(e?O.insertBefore(x,O.firstChild):O.appendChild(x),M.return());Q=M.yieldResult;L=Q.getPlayerState(Q.getPresentingPlayerType());k=!1;if(L==-1||L==1||L==3)k=!0;e?O.insertBefore(x,O.firstChild):O.appendChild(x);k&&Q.playVideo();Q.setSize(NaN,NaN);_.Ra(M)})},
watchNextDataChanged_:function(O){var x=this;O&&(this.useUnifiedPlayer_()&&_.t("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&pVL(this.mainAppPlayer_,O):this.getPlayerPromise().then(function(e){e.updateVideoData(x.computeWatchNextPlayerVars_(O))}))},
computeWatchNextPlayerVars_:function(O){if(this.useUnifiedPlayer_()&&_.t("kevlar_unified_player_update_watch_next_killswitch"))je(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:O}},
maybeSendAbandonmentPing_:function(){var O=this.getPlayer();O&&O.getPlayerState()!=5&&O.getPlayerState()!=0&&O.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var O=_.wz("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(O=Object.assign({},O),O.rootElementId=this.playerId);O.serializedExperimentIds&&O.serializedExperimentFlags||_.ft(Error("Eh"));return O},
hasWebPlayerContextConfig_:function(){return!!_.wz("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(O){this.useUnifiedPlayer_()?je(!1,"Invalid method call in kevlar_unified_player."):_.C_(O,this.hostElement)},
useUnifiedPlayer_:function(){var O=_.t("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.t("kevlar_unified_player")||O}}];var W$R={};W$R.YtPlaylistPanelBehavior=[_.S.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(O){O=O.detail;if(O.actions.loop!=void 0||O.actions["yt-icons:loop"]!=void 0)this.loopOn=O.actions.loop||O.actions["yt-icons:loop"];if(O.actions.shuffle!=void 0||O.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=O.actions.shuffle||O.actions["yt-icons:shuffle"]},
setMenuData_:function(O){if(!O||!O.playlistButtons||O.isInfinite)return null;for(var x=O.playlistButtons.menuRenderer.topLevelButtons,e=x.length,l=0;l<e;l++)if(x[l].toggleButtonRenderer){var C=x[l].toggleButtonRenderer;C.defaultIcon.iconType=="LOOP"&&this.loopOn?C.isToggled=this.loopOn:C.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(C.isToggled=this.shuffleOn)}return O.playlistButtons}}];var huT=function(O){qy.call(this,O,132);this.isDocument=O===document.documentElement};
_.c(huT,qy);huT.prototype.calculateScrollDelta=function(O,x,e){var l=0;O<x?l=O<x-100?-48:-8:O>x+e&&(l=O>x+e+100?48:8);return l};
huT.prototype.JSC$11391_onMouseMove=function(O){this.isDocument||(O.clientX=O.event_.pageX,O.clientY=O.event_.pageY);qy.prototype.JSC$11391_onMouseMove.call(this,O)};var ZB=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;O.scrollElement=document.documentElement;O.JSC$14538_dragListGroup=null;O.dragScrollSupport=null;O.onDraggerCreated=function(x){var e=x.JSC$11387_dragger;e.scrollTarget_=O.scrollElement;x=x.draggerEl;e&&x.menuOpened&&e.setEnabled(!1)};
O.onDragStart=function(x){var e=x.draggerEl;x=x.currDragItem;var l=Object.assign({},x==null?void 0:x.data);l.trackingParams=void 0;e.data=l;e.style.position="absolute";e.style.width=(x==null?void 0:x.clientWidth)+"px";e.style.zIndex="2030";e.onDrag&&e.onDrag();x=_.BX(e);(l=x.querySelector("ytd-app"))?_.$U(l).appendChild(e):x.body.appendChild(e);O.dragScrollSupport=new huT(O.scrollElement);O.dragScrollSupport.horizontalScrolling_=!1;e=O.dragScrollSupport;e.constrainScroll_=!!e.margin_&&!1};
O.onDrop=function(x){O.handleDrop(x);O.dragScrollSupport&&(_.Lf(O.dragScrollSupport),O.dragScrollSupport=null)};
O.onReorderableScroll=function(){if(O.JSC$14538_dragListGroup){var x=O.JSC$14538_dragListGroup;yIN(x,x.currDragItem_)}};
return O};
_.c(ZB,_.MQ);ZB.prototype.detached=function(){_.zuF(this)};
_.zuF=function(O){O.JSC$14538_dragListGroup&&(_.EK(O.JSC$14538_dragListGroup,LuD,O.onDragStart),_.EK(O.JSC$14538_dragListGroup,D5$,O.onDragStart),O.JSC$14538_dragListGroup.dispose(),O.JSC$14538_dragListGroup=null);O.dragScrollSupport&&(_.Lf(O.dragScrollSupport),O.dragScrollSupport=null);O.scrollElement.removeEventListener("scroll",O.onReorderableScroll)};
_.rrd=function(O,x,e,l){l=l===void 0?"":l;_.zuF(O);e&&(O.scrollElement=e);O.JSC$14538_dragListGroup=new np;O.JSC$14538_dragListGroup.hysteresisDistance_=2;FuL(O.JSC$14538_dragListGroup,x);O.JSC$14538_dragListGroup.draggerElClasses_=Gr("dragging").split(" ");l&&XeR(O.JSC$14538_dragListGroup,function(C){var Q=C||document,L=null;Q.getElementsByClassName?L=Q.getElementsByClassName(l)[0]:L=wOd("*",l,C);return L||C});
_.ol(O.JSC$14538_dragListGroup,b7k,O.onDraggerCreated);_.ol(O.JSC$14538_dragListGroup,LuD,O.onDragStart);_.ol(O.JSC$14538_dragListGroup,D5$,O.onDrop);O.JSC$14538_dragListGroup.init();O.scrollElement.addEventListener("scroll",O.onReorderableScroll,{passive:!0})};
ZB.prototype.handleDrop=function(){};
_.Dy.Object.defineProperties(ZB.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.B([_.R({value:100}),_.v("design:type",Number)],ZB.prototype,"scrollMargin",void 0);_.B([_.DC()],ZB);_.HJd=[ZB.prototype];_.Eg={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(O,x,e){var l=this.getClickTarget_(x);if(l&&this.isClickAllowed_(l)){x.preventDefault();O=(0,_.HX.unsafeClone)(O);var C=this.getContainerBoundingRect();x=this.getRelativeClickXy_(x,C);this.expandEndpointUrlMacros_(O,{NX:x[0],NY:x[1],NB:l.code});e&&this.truncateWebCommendMetadataUrl_(O);_.wr(this.hostElement,"yt-navigate",{endpoint:O})}},
getClickTarget_:function(O){if(!this.clickTargetMap)return null;O=_.n3(O)||[];O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;if(x===_.$U(this.hostElement).querySelector("#menu"))break;if(x=this.clickTargetMap.get(x.id))return x}return null},
getRelativeClickXy_:function(O,x){var e=Math.round(O.detail.x-x.left);O=Math.round(O.detail.y-x.top);return e<0||O<0?[null,null]:[e,O]},
getContainerBoundingRect:function(){return _.$U(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(O,x){for(var e=_.T(O.loggingUrls||[]),l=e.next();!l.done;l=e.next())l=l.value,l.baseUrl&&(l.baseUrl=Gcm(l.baseUrl,x));O.urlEndpoint&&O.urlEndpoint.url&&(O.urlEndpoint.url=Gcm(O.urlEndpoint.url,x));O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.url&&(O.commandMetadata.webCommandMetadata.url=Gcm(O.commandMetadata.webCommandMetadata.url,x))},
truncateWebCommendMetadataUrl_:function(O){if(O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.url){var x=O.commandMetadata.webCommandMetadata.url,e=x.indexOf("&pp=");if(e>0){var l=x.indexOf("&",e+1);O.commandMetadata.webCommandMetadata.url=l>e&&l<x.length?x.slice(0,e)+x.slice(l):x.slice(0,e)}}},
configureClickTargets:function(O,x,e){this.containerId=O;this.clickTargetMap=new Map;O=_.T(x);for(x=O.next();!x.done;x=O.next())if(x=x.value,x.location){var l=e.get(x.location);l&&(_.Ow(_.$U(this.hostElement).querySelector("#"+l),"yt-simple-endpoint",this.isClickAllowed_(x)),this.clickTargetMap.set(l,x))}},
isClickAllowed_:function(O){return O.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||O.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||O.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||O.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.tT={};
_.tT.YtLazyListBehavior=[_.GT.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 O=(this.constructor.generatedFrom||this).observers;O||(O=[]);O.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
O}},
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 O=this.renderElementsOutsideVisibleArea_;O&&(roN(O,4),O.processSignal())},
deepLazyListObserver_:function(O){var x=this;if(O){var e=O.value||[];if(this.itemsPath==O.path){var l=this.nonDeferredItemCount;O=0;l>-1&&e.length>l&&(O=_.wz("REMAINING_DOVA_DEFERRED_CHUNKS",-1));O>0?(l>0&&(l=e.slice(0,l),this.setInitialItemsOnDataChanged(l)),(l=this.renderElementsOutsideVisibleArea_)?l.cancel():(l=this.renderElementsOutsideVisibleArea_=new _.X_(2,"eocs"),_.o0L(window,"scroll",function(){return x.renderDeferredElements()})),_.oV(l,function(){x.setInitialItemsOnDataChanged(e)}),_.JZ("REMAINING_DOVA_DEFERRED_CHUNKS",
O-1)):this.setInitialItemsOnDataChanged(e)}else if(this.itemsPath+".splices"==O.path)this.onItemsUpdated_(e);
else l="shownItems"+O.path.substr(this.itemsPath.length),this.useSignals&&l==="shownItems.length"||this.notifyPath(l,O.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(O){O&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(O),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(O){O=O.indexSplices;for(var x=0,e=O.length;x<e;x++){var l=O[x];if(l.index<this.shownCount&&(l.removed&&this.splice("shownItems",l.index,l.removed.length),l.addedCount)){var C=l.object.slice(l.index,l.index+l.addedCount);l=["shownItems",l.index,0];l.push.apply(l,C);this.splice.apply(this,l)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(O){this.cancelPendingTasks_();O||(O=[]);this.items_=O;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.SS("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.A_(this,this.tryRenderChunk_)))},
fillRange_:function(O,x){this.canShowMore&&this.items_&&(O=this.items_.slice(O,x),O.unshift("shownItems"),this.push.apply(this,O),this.shownCount=x,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var O=this;this.canShowMore&&_.hY(this,"renderChunk",function(){O.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.SS("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.FQ(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var O=this.renderElementsOutsideVisibleArea_;O&&(O.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var O=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(O-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=O;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(O){return Math.ceil(1E3/O)},
onCanShowMoreUpdated_:function(O){this.data&&this.items_!==null&&(O?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(O){!this.shouldUseTaskManager()&&this.data&&(!O&&this.canShowMore?(_.VzL(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):O&&this.partiallyRenderedItems_.has(this.items_)&&(_.t("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var cm;_.qA={};
cm=function(){var O=_.MQ.apply(this,arguments)||this;O.atStart=!0;O.atEnd=!0;O.startIndex=0;O.endIndex=0;O.scrollCount=0;O.initialStartIndex=0;O.disableScrollEventListener=!1;O.useFloorScrolling=!1;O.isSearch=!1;O.dragging=!1;O.dragMouseStart=0;O.dragOffsetStart=0;O.disableWheelScroll=!1;O.centerListItems=!1;O.offset=0;O.minComponentWidth=0;O.marginWidthRight=0;O.marginWidthLeft=0;O.setButtonsStateRequested=!1;O.itemsVisibilityObserver=null;O.fullyVisibleItemsIndices=[];O.JSC$14548_onWheelScroll=function(x){if(O.isSearch&&
!O.disableWheelScroll&&_.t("desktop_enable_dmpanel_wheel_scroll")){var e=x.shiftKey?Math.abs(x.deltaY)>Math.abs(x.deltaX)?x.deltaY:x.deltaX:x.deltaX;e!==0&&(x.preventDefault(),O.ytLazyListBehavior.fillRemainingListItems(),O.offset+=e,Pm(O),O.reposition_())}};
O.onPointerDown=function(x){K$R(O)&&(O.dragMouseStart=x.clientX,O.dragOffsetStart=O.offset,O.dragging=!0)};
O.onPointerMove=function(x){K$R(O)&&O.dragging&&(O.ytLazyListBehavior.fillRemainingListItems(),O.offset=O.dragOffsetStart-(x.clientX-O.dragMouseStart),Pm(O),O.reposition_())};
O.onPointerUp=function(){K$R(O)&&(O.dragging=!1)};
return O};
_.c(cm,_.MQ);var da2=function(O){var x=_.$U(O.hostElement).querySelector("#items").children;if(!x)return 0;var e=0;O=_.T(O.fullyVisibleItemsIndices);for(var l=O.next();!l.done;l=O.next())e+=x[l.value].clientWidth;return e},K$R=function(O){return O.isSearch&&_.t("desktop_enable_dmpanel_click_drag_scroll")};
cm.prototype.created=function(){this.cachedViewportWidth=_.wz("initialInnerWidth")||window.innerWidth;this.JSC$14548_cachedViewportHeight=_.wz("initialInnerHeight")||window.innerHeight;_.wz("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.JZ("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
cm.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.t("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ntd(this)};
cm.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.t("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var O;(O=this.itemsVisibilityObserver)==null||O.disconnect();this.itemsVisibilityObserver=null;var x;(x=this.itemsObserver)==null||x.disconnect()};
var ntd=function(O){var x=_.$U(O.hostElement).querySelector("#scroll-container");if(x){if(!O.itemsVisibilityObserver){var e=window.getComputedStyle(x).marginRight;O.itemsVisibilityObserver=new IntersectionObserver(function(l){uOd(O,l)},{root:x,
rootMargin:e,threshold:.98})}if(x=_.$U(O.hostElement).querySelector("#items"))O.itemsObserver=new wZz(x,function(l){YV3(O,l)})}},YV3=function(O,x){Bs2(O)&&(Array.from(x.addedNodes).filter(function(e){return e.nodeType===Node.ELEMENT_NODE}).forEach(function(e){O.itemsVisibilityObserver&&O.itemsVisibilityObserver.observe(e)}),Array.from(x.removedNodes).filter(function(e){return e.nodeType===Node.ELEMENT_NODE}).forEach(function(e){O.itemsVisibilityObserver&&O.itemsVisibilityObserver.unobserve(e)}))},
uOd=function(O,x){var e=new Set(O.fullyVisibleItemsIndices);
x=_.T(x);for(var l=x.next();!l.done;l=x.next()){l=l.value;var C=l.target.parentElement;C?(C=Array.from(C.children).indexOf(l.target),l.isIntersecting?e.add(C):e.has(C)&&e.delete(C)):_.ft(new _.ry("Parent element not found",l.target.nodeName))}O.fullyVisibleItemsIndices=Array.from(e).sort(function(Q,L){return Q-L});
e.size===0?_.ft(new _.ry("No visible entries in horizontal list")):(O.startIndex=O.fullyVisibleItemsIndices[0],O.endIndex=O.fullyVisibleItemsIndices[O.fullyVisibleItemsIndices.length-1])},Bs2=function(O){O.data?O=(O=O.data)&&O.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===O.itemSizeConstraint:!1:O=!1;
return O};
_.b=cm.prototype;_.b.addScrollEventListeners=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container");O.style.touchAction="pan-y";O.addEventListener("wheel",this.JSC$14548_onWheelScroll);O.addEventListener("pointerdown",this.onPointerDown);O.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.b.removeScrollEventListeners=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container");O.removeEventListener("wheel",this.JSC$14548_onWheelScroll);O.removeEventListener("pointerdown",this.onPointerDown);O.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.b.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.A_(this,this.setStartIndex,[this.initialStartIndex])};
_.b.reposition_=function(){var O=_.wz("HTML_DIR")=="rtl"?"":"-",x=_.$U(this.hostElement).querySelector("#items");x&&(x.style.transform="translateX("+O+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.b.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.A_(this,this.setButtonsState_))};
_.b.setButtonsState_=function(){this.setButtonsStateRequested=!1;var O=_.$U(this.hostElement).querySelector("#items").firstElementChild;if(O){this.minComponentWidth||(this.minComponentWidth=vtz(this,O));O=_.$U(this.hostElement).querySelector("#scroll-container").clientWidth;var x=_.$U(this.hostElement).querySelector("#items");x=_.t("kevlar_horizontal_list_scroll_width_killswitch")?x.clientWidth:x.scrollWidth;var e=this.get(this.ytLazyListBehavior.itemsPath,this);if(e){var l=Math.round(O/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+l,e.length)-1)}this.ytLazyListBehavior.canShowMore?x+this.minComponentWidth>=this.offset+O&&(this.atEnd=!1):this.atEnd=this.offset+O>=x-20?!0:!1;this.atStart=this.offset<=20}};
_.b.setStartIndex=function(O){if(!this.minComponentWidth){var x=_.$U(this.hostElement).querySelector("#items").firstElementChild;if(!x)return;this.minComponentWidth=vtz(this,x)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*O;Pm(this);this.reposition_()};
_.b.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Gy();var O=_.$U(this.hostElement).querySelector("#scroll-container").clientWidth;_.t("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=vtz(this,_.$U(this.hostElement).querySelector("#items").firstElementChild));O=this.useFloorScrolling?Math.floor(O/this.minComponentWidth)||1:Math.round(O/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&fWL(this);this.offset+=Bs2(this)?
da2(this):O*this.minComponentWidth;Pm(this);this.reposition_();this.scrollCount++};
_.b.prevClick_=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container").clientWidth;O=this.useFloorScrolling?Math.floor(O/this.minComponentWidth)||1:Math.round(O/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Bs2(this)?da2(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Bs2(this)?da2(this):O*this.minComponentWidth;this.centerListItems&&fWL(this);Pm(this);this.reposition_()};
_.b.onIronResize_=function(){this.resizeSupportEnabled&&_.A_(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.b.onItemsTransitionEnd_=function(O){_.uK(O)===_.$U(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.b.onChildElementFocus_=function(O){O=O.target.closest("#items > *");var x=_.$U(this.hostElement).querySelector("#scroll-container");if(x.contains(O)){if(_.t("web_horizontal_list_behavior_focus_killswitch"))if(O.offsetLeft<this.offset)this.offset=Math.abs(O.offsetLeft)<O.clientWidth?0:O.offsetLeft;else if(O.offsetLeft+O.clientWidth>this.offset+x.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Gy(),this.offset=O.offsetLeft+O.clientWidth-x.clientWidth;else return;else{var e=_.$U(this.hostElement).querySelector("#items"),
l=_.wz("HTML_DIR")==="rtl",C=l?e.clientWidth-O.offsetLeft:O.offsetLeft;e=l?e.clientWidth-(O.offsetLeft+O.clientWidth):O.offsetLeft+O.clientWidth;var Q=l?C>this.offset+x.clientWidth:C<this.offset,L=l?e<this.offset:e>this.offset+x.clientWidth,k=l?Q:L;if(l?L:Q)x=l?e:C,this.offset=Math.abs(x)<O.clientWidth?0:x;else if(k)this.ytLazyListBehavior.fillRemainingListItems(),_.Gy(),this.offset=(l?C:e)-x.clientWidth;else return}Pm(this);this.reposition_()}};
_.b.observeShownItems_=function(){this.reset()};
_.b.checkComponentWidthResize=function(){var O=_.$U(this.hostElement).querySelector("#items").firstElementChild;O&&(O=vtz(this,O),this.centerListItems||O!==this.minComponentWidth)&&(this.minComponentWidth=O,this.offset=O*this.scrollCount,this.centerListItems&&fWL(this),Pm(this),this.reposition_())};
var vtz=function(O,x){var e=window.getComputedStyle(x).marginRight;e=Math.floor(Number(e.replace("px","")));var l=window.getComputedStyle(x).marginLeft;l=Math.floor(Number(l.replace("px","")));O.centerListItems&&!O.marginWidthRight&&(O.marginWidthRight=e,O.marginWidthLeft=l);return O.resizeSupportEnabled?x.getBoundingClientRect().width+e:x.offsetWidth+e},Pm=function(O){var x=_.$U(O.hostElement).querySelector("#scroll-container").clientWidth,e=_.$U(O.hostElement).querySelector("#items").clientWidth;
O.offset<0?O.offset=0:O.offset+x>=e&&(O.offset=e-x)},fWL=function(O){O.offset-=(_.$U(O.hostElement).querySelector("#scroll-container").clientWidth+O.marginWidthRight-O.minComponentWidth)/2-O.marginWidthLeft};
_.Dy.Object.defineProperties(cm.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var O=_.wz("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(O==-1)O=this.JSC$14548_cachedViewportHeight,O=O>1320?5:O>1020?4:O>730?3:O>430?2:1;else if(O==0)return 0;_.JZ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",O-1);O=_.wz("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(O>-1)return O;O=this.cachedViewportWidth;O=O>1600?6:O>1400?5:O>1300?4:O>1090?5:O>870?4:O>660?3:2;_.JZ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
O);return O},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.t("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
cm.prototype.observeShownItems_=cm.prototype.observeShownItems_;cm.prototype.onChildElementFocus_=cm.prototype.onChildElementFocus_;cm.prototype.onItemsTransitionEnd_=cm.prototype.onItemsTransitionEnd_;cm.prototype.onIronResize_=cm.prototype.onIronResize_;cm.prototype.prevClick_=cm.prototype.prevClick_;cm.prototype.nextClick_=cm.prototype.nextClick_;cm.prototype.setButtonsState_=cm.prototype.setButtonsState_;cm.prototype.requestButtonsStateUpdate_=cm.prototype.requestButtonsStateUpdate_;
cm.prototype.reposition_=cm.prototype.reposition_;cm.prototype.reset=cm.prototype.reset;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],cm.prototype,"ytLazyListBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],cm.prototype,"atStart",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],cm.prototype,"atEnd",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"startIndex",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"endIndex",void 0);_.B([_.R({value:6}),_.v("design:type",Number)],cm.prototype,"initialCount",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"scrollCount",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"initialStartIndex",void 0);
_.B([_.R(),_.v("design:type",Object)],cm.prototype,"disableScrollEventListener",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"supportComponentResize",void 0);_.B([_.R({value:function(){var O=this;return function(){return O.prevClick_()}}}),
_.v("design:type",Function)],cm.prototype,"boundPrevClick",void 0);_.B([_.R({value:function(){var O=this;return function(){return O.nextClick_()}}}),
_.v("design:type",Function)],cm.prototype,"boundNextClick",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"useFloorScrolling",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"isSearch",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"dragging",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"dragMouseStart",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"dragOffsetStart",void 0);
_.B([_.R(),_.v("design:type",Object)],cm.prototype,"disableWheelScroll",void 0);_.B([_.R(),_.v("design:type",Object)],cm.prototype,"centerListItems",void 0);_.B([_.bH("iron-resize"),_.T1("guideOpened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cm.prototype,"onIronResize_",null);_.B([_.bH("transitionend"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],cm.prototype,"onItemsTransitionEnd_",null);
_.B([_.bH("focusin"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],cm.prototype,"onChildElementFocus_",null);_.B([_.T1("shownItems"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cm.prototype,"observeShownItems_",null);_.B([_.DC()],cm);_.qA.YtdHorizontalListBehavior=[];_.qA.YtdHorizontalListBehavior.push(_.Wg,_.S.YtRendererBehavior,_.tT.YtLazyListBehavior,_.Ql.YtdGuideStateAwareBehavior,cm.prototype);var k28=["APP_STATE","PI"];var JrT=_.zo(["about:blank"]),wVd={pushState:window.history.pushState,replaceState:window.history.replaceState};var IX=function(O){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=O;this.internalPushState=O.pushState.bind(O);this.internalReplaceState=O.replaceState.bind(O)};
IX.prototype.init=function(){this.initialized=!0};
IX.prototype.pushState=function(O,x){this.initialized||this.init();this.internalPushState&&this.internalPushState(O,"",x)};
IX.prototype.replaceState=function(O,x){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(O,"",x)};
IX.prototype.getState=function(){return this.history&&this.history.state};var SVD=function(O){var x=function(){var e=O.apply(this,arguments)||this;e.boundHistoryPushState=!1;e.boundHistoryReplaceState=!1;e.debugInfo={};return e};
_.c(x,O);x.prototype.init=function(){var e=_.R9("IFRAME");_.gk(e,_.on(JrT));e.sandbox="allow-same-origin";e.style.display="none";this.iframe=e;document.body.appendChild(e);this.bindHistoryStateFunctions();O.prototype.init.call(this)};
x.prototype.bindHistoryStateFunctions=function(){var e=this,l=[],C;this.iframe&&((C=this.iframe.contentWindow)==null?0:C.history)&&(C=this.iframe.contentWindow.history)&&(l.push(C),Object.getPrototypeOf(C)&&l.push(Object.getPrototypeOf(C)));window.history&&l.push(window.history);C=window.history;Object.getPrototypeOf(C)&&l.push(Object.getPrototypeOf(C));l.push(wVd);C=function(L){for(var k=null,M=0;M<l.length;M++){var G=l[M][L];if(typeof G==="function"){k=G.bind(window.history);e.debugInfo[L]=M;break}}return k};
if(!this.boundHistoryReplaceState){var Q=C("replaceState");Q&&(this.internalReplaceState=Q,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(C=C("pushState"))&&(this.internalPushState=C,this.boundHistoryPushState=!0)};
return x}(IX),jQp=function(){return SVD.call(this,window.history)||this};
_.c(jQp,SVD);jQp.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Vl=function(O){this.browserHistory=O;this.initialized=!1};
Vl.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Vl.prototype.pushState=function(O,x){this.initialized||this.init();this.browserHistory.pushState(O,x)};
Vl.prototype.replaceState=function(O,x){this.initialized||this.init();this.browserHistory.replaceState(O,x)};
Vl.prototype.handlePopstate=function(O){return O.state};_.Nsp=function(O,x,e,l,C){this.endpoint=O;this.forward=x;this.historyEntry=e;this.JSC$30424_savedComponentState=l;this.legacyBorder=C===void 0?!1:C};var gtR=function(O,x){this.rootData=O;this.scrollTop=x};var Dr=new _.iR("PAGE_REQUEST_TOKEN"),MBT=new _.iR("FETCH_PBJ_TOKEN");_.pj=new _.iR("EPHEMERAL_STORE_TOKEN");_.RX=function(O){this.data=Object.assign({},O);var x;(x=this.data.innertubeResponse)==null||delete x.frameworkUpdates};
_.RX.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.F2)()};
_.Bb=function(O){return Object.assign({},O.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var $aN=function(){this.maxSize=100;this.timeToDataCache=new Map};
$aN.prototype.get=function(O){var x=this.timeToDataCache.get(O);x&&(this.timeToDataCache.delete(O),this.timeToDataCache.set(O,x));if(x&&x.rootData&&(_.t("web_use_response_store_for_history_cache")||_.t("mweb_use_new_history_manager"))){var e=_.GG().resolve(_.pj),l=iJz(x),C=!!l;if(l){if(l.content){var Q=Ug(e,l.content);C&&Q?x.rootData.response=_.Bb(Q):C=!1}l.player&&(Q=Ug(e,l.player),C&&Q?x.rootData.playerResponse=_.Bb(Q):C=!1);l.reelSequence&&(e=Ug(e,l.reelSequence),C&&e?x.rootData.reelWatchSequenceResponse=
_.Bb(e):C=!1)}C||(this.timeToDataCache.delete(O),x=void 0)}return x};
$aN.prototype.set=function(O,x){if(x.rootData&&(_.t("web_use_response_store_for_history_cache")||_.t("mweb_use_new_history_manager"))){var e=iJz(x),l=Object.assign({},x.rootData);e&&(e.content&&x.rootData.response&&(ODF(this,e.content,x.rootData.response),l.response=null),e.player&&x.rootData.playerResponse&&(ODF(this,e.player,x.rootData.playerResponse),l.playerResponse=null),e.reelSequence&&x.rootData.reelWatchSequenceResponse&&(ODF(this,e.reelSequence,x.rootData.reelWatchSequenceResponse),l.reelWatchSequenceResponse=
null));x=new gtR(l,x.scrollTop)}this.timeToDataCache.has(O)?this.timeToDataCache.delete(O):this.timeToDataCache.size>=this.maxSize&&(e=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(e.value));this.maxSize!==0&&this.timeToDataCache.set(O,x)};
$aN.prototype.clear=function(){this.timeToDataCache.clear()};
var iJz=function(O){var x=_.GG().resolve(_.D0(Dr)),e;if((e=O.rootData)==null?0:e.endpoint)return x==null?void 0:kgr(x,O.rootData.endpoint);var l;_.ft(new _.ry("History snapshot response data does not contain endpoint",(l=O.rootData)==null?void 0:l.url));return null},ODF=function(O,x,e){if(O.maxSize>0){var l;
(O=(l=e.responseContext)==null?void 0:l.maxAgeSeconds)&&Number(O)>0&&(l=_.GG().resolve(_.pj),e=$z(e,O),l.put(x,new _.RX(e)))}};var x8R=function(O,x,e){this.endpoint=x;this.JSC$30429_savedComponentState=e===void 0?null:e;this.entryTime=O};var XAs=1;var aX=function(O){var x=function(){var e=O.apply(this,[].concat(_.Kx(_.vw.apply(0,arguments))))||this;e.historyEntryTime=0;e.historySnapshotCache=e.createHistoryCache();return e};
_.c(x,O);x.prototype.createHistoryCache=function(){return new $aN};
x.prototype.saveAndReplace=function(e,l,C){var Q=window.location.href;var L=L===void 0?{}:L;var k=(k=this.browserHistory.getState())&&k.entryTime?k.entryTime:on7();e=this.createNewHistoryEntry(e,L,k);this.saveSnapshot(k,l,C);this.replaceState(e,Q||window.location.href)};
x.prototype.saveAndPush=function(e,l,C,Q,L){L=L===void 0?{}:L;this.saveSnapshot(this.historyEntryTime,C,Q);C=this.historySnapshotCache;Q=this.historyEntryTime;var k=C.timeToDataCache.keys();k=_.T(k);for(var M=k.next();!M.done;M=k.next())M=M.value,M>Q&&C.timeToDataCache.delete(M);l=this.createNewHistoryEntry(l,L);this.pushState(l,e)};
x.prototype.saveSnapshot=function(e,l,C){this.historySnapshotCache.set(e,new gtR(l,C))};
x.prototype.createNewHistoryEntry=function(e,l,C){C=C===void 0?on7():C;return new x8R(C,e,l)};
x.prototype.handlePopstate=function(e){var l=O.prototype.handlePopstate.call(this,e),C=null,Q=null,L=!1,k=null;l&&l.entryTime&&(k=this.historySnapshotCache.get(l.entryTime)||null,L=l.entryTime>this.historyEntryTime,this.historyEntryTime=l.entryTime,C=l.endpoint,Q=l.JSC$30429_savedComponentState);this.handleHistoryCacheLoad(new _.Nsp(C,L,k,Q),e);return l};
x.prototype.pushState=function(e,l){Number(e==null?void 0:e.entryTime)>=0&&(this.historyEntryTime=e.entryTime);O.prototype.pushState.call(this,e,l)};
x.prototype.replaceState=function(e,l){Number(e==null?void 0:e.entryTime)>=0&&(this.historyEntryTime=e.entryTime);O.prototype.replaceState.call(this,e,l)};
x.prototype.handleHistoryCacheLoad=function(){};
return x}(Vl),eSR=function(){var O=aX.call(this,new jQp)||this;
O.dispatchElement=null;O.entryIndex=0;return O};
_.c(eSR,aX);_.b=eSR.prototype;_.b.init=function(O){O=O===void 0?!0:O;aX.prototype.init.call(this);this.initialized||(O||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.b.handlePopstate=function(O){var x=null;O.state||(x="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return aX.prototype.handlePopstate.call(this,O);var e=new CustomEvent("yt-history-pop",{cancelable:!0});_.Sh(this.dispatchElement,"yt-history-pop",[e,{errorMsg:x}]);_.jh(this.dispatchElement,"yt-close-all-popups-action");if(!e.defaultPrevented){e=_.GG().resolve(_.Be);x=e.getCurrentData();var l=e.getCurrentPage();e=0;l?(l=_.Sh(this.dispatchElement,"yt-get-page-offset",
[l]),l.length>0&&(e=l[0])):_.ft(new _.ry("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:x?x.page:"undefined"}));x&&(x.csn=_.Pq());this.saveSnapshot(this.historyEntryTime,x,e)}return aX.prototype.handlePopstate.call(this,O)};
_.b.handleHistoryCacheLoad=function(O,x){O.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.T(_.jh(this.dispatchElement,"yt-history-will-navigate",[x])).next().value||_.Sh(this.dispatchElement,"yt-history-load",[x,O]))};
_.b.pushState=function(O,x){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var e=new _.ry("history.pushState is not a function",this.getDebugString());_.BH(e)}aX.prototype.pushState.call(this,O,x)};
_.b.replaceState=function(O,x){if(!this.browserHistory.boundHistoryReplaceState){var e=new _.ry("history.replaceState is not a function",this.getDebugString());_.BH(e)}aX.prototype.replaceState.call(this,O,x)};
_.b.saveAndPush=function(O,x,e,l,C){C=C===void 0?{}:C;e&&(e.csn=_.Pq());aX.prototype.saveAndPush.call(this,O,x,e,l,C)};
_.b.getDebugString=function(){var O=[];this.initialized&&O.push("i");this.browserHistory.boundHistoryReplaceState&&O.push("bhr");this.browserHistory.boundHistoryPushState&&O.push("bhs");"replaceState"in this.browserHistory.debugInfo&&O.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&O.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&O.push("ei:"+String(this.entryIndex));return O.join(",")};
_.mX=function(O,x){O.init(!0);var e=O.browserHistory.getState();O.replaceState(e,gS(x))};
eSR.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.sg=new _.iR("DESKTOP_HISTORY_MANAGER_TOKEN");var l$$=[10,20,30,40,50,60],Wm=function(){this.currentPartitionIndex=0},CB3=function(O){X$d({mainAppWeb:_.rO(),
survivalSli:{partitionMinute:O,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Q5N=function(O){X$d({mainAppWeb:_.rO(),
survivalSli:{partitionMinute:O,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},bDz=function(O){return O.currentPartitionIndex>=0&&O.currentPartitionIndex<l$$.length?l$$[O.currentPartitionIndex]:-1},TAD=function(O){return O.currentPartitionIndex>0&&O.currentPartitionIndex-1<l$$.length?l$$[O.currentPartitionIndex-1]:-1};
Wm.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var O=TAD(this);O>0&&Q5N(O);O=bDz(this);O>0&&CB3(O);LbT(this)}};
var LbT=function(O){var x=bDz(O);if(x>0){var e=TAD(O);e<0&&(e=0);O.intervalId=_.vn.addJob(function(){var l=TAD(O);l>0&&Q5N(l);l=bDz(O);l>0&&CB3(l);LbT(O)},3,(x-e)*6E4);
O.currentPartitionIndex+=1}else O.currentPartitionIndex=-1};var k4d=function(){this.skipNextNavigation=!1},AkL=function(O,x,e){if(!x)return!1;
if(O.skipNextNavigation)return O.skipNextNavigation=!1;if(_.q(e,_.$b))return!1;var l,C,Q;if((l=_.q(e,_.Q9))==null?0:(C=l.browseEndpointContextSupportedConfigs)==null?0:(Q=C.browseEndpointContextMainConfig)==null?0:Q.skipConfirmation)return!1;var L;return((L=_.q(x.commandMetadata,_.e6))==null?void 0:L.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
k4d.prototype.showConfirmationDialog=function(O,x){this.navigateParams=x;this.customConfirmationCommand?_.GG().resolve(_.Xc).resolveCommand(this.customConfirmationCommand):(x={openPopupAction:{popup:{confirmDialogRenderer:{title:_.KA(_.CZ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.KA(_.CZ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.KA(_.CZ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.KA(_.CZ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.iU.getInstance().triggerAction("yt-open-popup-action",x,O))};
k4d.prototype.cancelPendingNavigation=function(){var O;((O=this.navigateParams)==null?void 0:O.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var M9p=function(){},G43=function(O,x,e,l,C,Q,L){e=e===void 0?{}:e;
L=L===void 0?{}:L;var k=_.zK.instance,M,G=(M=_.q(x,_.$b))==null?void 0:M.url;return G?BJV(k,G,e,window.location.href,function(X,y){D8d(O,X,y,!1,!0,e,Q,l)},function(){return!1}):Ue(k,x,e,window.location.href,Tu(x),function(X,y){D8d(O,X,y,!1,!0,e,Q,l)},C,L)},D8d=function(O,x,e,l,C,Q,L,k){if(!O.JSC$14606_chunkHandler)if(e.page==="learning_journey_watch"&&_.t("web_enable_canvas_on_learning_journey")){var M=!_.q(k,_.Q9);
C=C||l;if(M)if(C){if(_.t("kevlar_continue_playback_without_player_response")){var G;var X=(G=_.q(k,_.Hq))==null?void 0:G.videoId}l={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:l,previousVideoId:X},tempData:Q}}else l={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else l={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};O.JSC$14606_chunkHandler=new HiT(_.f7,l,L,M,C)}else if(e.page==="watch"||e.page==="learning_journey_watch")if(C||l){if(_.t("kevlar_continue_playback_without_player_response")){var y;
M=(y=_.q(k,_.Hq))==null?void 0:y.videoId}O.JSC$14606_chunkHandler=new nHF(_.f7,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:l,previousVideoId:M},tempData:Q},L)}else O.JSC$14606_chunkHandler=new zk$(_.f7);else e.page==="shorts"&&C&&!l?O.JSC$14606_chunkHandler=new dm4(_.f7,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:Q},L):O.JSC$14606_chunkHandler=new rQ$(L);O.JSC$14606_chunkHandler.processChunk({endpoint:x,data:e});return O.JSC$14606_chunkHandler.hZ.promise},
Fbp=function(O,x,e,l,C){(e=_.VBR(e))&&D8d(O,x,e,!1,!0,l,void 0,C)};_.X2N=new _.iR("NAVIGATION_SERVICE_TOKEN");var oIF=function(){this.pendingNavigationPromise=null};
_.b=oIF.prototype;_.b.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.b.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.b.addEventListener=function(){throw Error("Fh");};
_.b.dispatchEvent=function(){throw Error("Fh");};
_.b.removeEventListener=function(){throw Error("Fh");};var ykN=new _.iR("APP_ROOT");var Zkr=null;var ZDL=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],hT=function(){_.tf.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];EIT(this)};
_.c(hT,_.tf);hT.prototype.verifyUser=function(){var O=EIT(this),x=O.logout;if(!O.sessionChange)return!0;this.dispatchEvent("ytsessionchange");x&&this.dispatchEvent("ytuserinvalid");return!1};
var EIT=function(O){var x=ZDL.map(function(C){var Q;return(Q=_.mK.get(C))!=null?Q:""}),e=x.some(function(C,Q){return O.sessionCookies&&O.sessionCookies[Q]!==""&&C===""}),l=x.some(function(C,Q){return O.sessionCookies&&O.sessionCookies[Q]!==C});
O.sessionCookies=x;return{logout:e,sessionChange:l}};
hT.prototype.clearTimeout=function(){this.scheduledJobId&&(_.vn.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Izr=new _.iR("POSTMESSAGE_TUNNEL_TOKEN");var qcw=["/parent_tools","/file_download","/artist_roster"],R7w=[UTT,asd,mTz,Wo4,sST,RzT,hzR,zzJ];var zY=new _.iR("NAVIGATION_CONFIRMATION_SERVICE");var t94="/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(" "),qPk=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],r8=function(O,x){this.pendingNavigationPromise=null;this.JSC$14629_clientRoot=O;this.historyManager=x;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 M9p;this.debugString=O.is;O={"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};_.e2(_.iU.getInstance(),O,this.JSC$14629_clientRoot)},p2R,RSz,U8d,a$k,V9J;
_.c(r8,oIF);r8.prototype.reload=function(){_.zu(window.location.href)};
var UtL=function(O){O.currentEndpoint&&_.q(O.currentEndpoint,_.kU)?O.reload():O.currentEndpoint&&O.navigate(O.currentEndpoint,!0,void 0,{disableCache:!0})};
r8.prototype.navigate=function(O,x,e,l,C,Q,L,k){x=x===void 0?!1:x;e=e===void 0?{}:e;l=l===void 0?{}:l;var M=_.GG().resolve(zY),G;if(!L&&AkL(M,(G=this.currentEndpoint)!=null?G:void 0,O))return M.showConfirmationDialog(this.JSC$14629_clientRoot.parentElement,{endpoint:O,reload:x,params:e,tempData:l,requestType:C,createScreenConfig:Q}),!1;var X=_.O2();_.xq(X,"eocs")||X.parkOrScheduleJob(function(){X.processSignal("eocs")},10,"eor");
EnW();L=Tu(O);M=l.autonav==="1";G=_.Pq();hT.instance||(hT.instance=new hT);var y=hT.instance.verifyUser(),Z;if(_.t("enable_dark_theme_only_on_shorts")){var E=document.documentElement.hasAttribute("dark"),P=_.Fo(!0)==="USER_INTERFACE_THEME_DARK";if(L==="shorts"){if(!E)if(_.t("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var U;_.zu((U=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:U.url,void 0,void 0,window.top)}}else{var W;_.zu(_.QF((W=_.q(O==
null?void 0:O.commandMetadata,_.e6))==null?void 0:W.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.t("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!E){var z;_.zu(_.QF((z=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:z.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(P!==E){var r;_.zu(_.QF((r=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:r.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(L==="watch"){if(PB3(_.GG().resolve(_.Vs),
O)&&(y||_.t("fix_miniplayer_navigation_killswitch")))return!1;_.t("block_all_player_prefetch_requests")||(Z=pp3(_.uc(_.rH),O,M))}else{var f,u=(f=_.q(this.currentEndpoint,_.Hq))==null?void 0:f.videoId;u&&_.Ko.getInstance().then(function(KV){KV&&KV.set("yt-miniplayer-shown-video-id",u)})}Z&&(e.frags=Z.missingFragments_.join(","));
U=null;var Y;W=(Y=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:Y.ignoreNavigation;if(!W)if(_.t("kevlar_command_url")){var J;U=(J=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?void 0:J.url}else U=_.lc7(O,e);if(U&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&U==this.lastNavigationUrl)return _.EO({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Oe(Ub(),"CANCELLED")}U&&(this.lastNavigationUrl=U);izL();_.JZ("IS_HOMEPAGE_COLD",
!1);_.JZ("IS_RESULTS_PAGE_COLD",!1);_.JZ("IS_WATCH_PAGE_COLD",!1);O.loggingUrls&&O.loggingUrls.forEach(function(KV){KV.baseUrl&&_.On(KV.baseUrl)});
_.sAn(O,Q?Q.layer:0)&&_.t("kevlar_flush_logs_on_away_navigation")&&_.Yb();if(UNr(O))return!1;bWd(L,C);if(!U)return W||_.ft(new _.ry("Can't construct url for endpoint",O)),_.Oe(Ub(),"FAILURE"),!1;_.tun();Y=O&&_.q(O,_.Q9)&&_.q(O,_.Q9).browseId.startsWith("UC");e=(J=_.t("enable_dark_theme_only_on_shorts")&&L==="shorts"?!1:_.Xo()&&document.documentElement.hasAttribute("dark")!==_.Gu())?{themeRefresh:1}:{};J&&!_.WK()&&_.Fo()==="USER_INTERFACE_THEME_DARK"&&(e.theme="dark");Y=J||ckR(U)&&!Y&&!_.t("kevlar_disable_url_allowlist");
y||(Y=!0);if(Y||_.wz("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var O8;var Xr=(O8=window.top)==null?void 0:O8.location.href}catch(KV){var Fr;Xr=(Fr=KV)==null?void 0:Fr.message}_.ft(new _.ry("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Xr}))}O=_.t("kevlar_redirect_on_window_killswitch")?window.top:window;hU(U);_.zu(_.QF(U,e),void 0,void 0,O);_.Oe(Ub(),"ABORTED");return!1}_.t("kevlar_early_popup_close")&&_.Sh(this.JSC$14629_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14606_chunkHandler=void 0;var mL;Xr=Tu((mL=this.currentEndpoint)!=null?mL:void 0);(mL=L==="shorts"&&Xr==="shorts")||_.JEr();_.$K(sqw)("nr",void 0);M&&_.EO({webInfo:{navigationReason:"an"}});O.clickTrackingParams&&(l.itct=O.clickTrackingParams,l.csn=G);MIr(l);l.endpoint=JSON.stringify(O);_.t("enable_unknown_lact_fix_on_html5")&&(_.GG().resolve(_.Fn),l.lact=_.Gl());_.HX.isEmpty(l)||_.uh(U,l);!_.t("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(Q=Object.assign({},{layer:0},Q,{parentLayer:3}));this.pendingNavigationPromise=Q=G43(this.pageFetcher,O,l,this.currentEndpoint,this.JSC$14629_isNetworkPromiseStale.bind(this),Q,k);Q=Q.then(this.handleNavigateSuccess.bind(this,Q,O,Z,l),this.handleNavigateFail.bind(this,Q,O));_.U7().navigationFinishPromise=Q;x={endpoint:O,pageType:L,url:gS(U),reload:!!x,noProgressBar:mL};C&&(x.type=C);var Zn;C=_.C3((Zn=this.currentEndpoint)!=null?Zn:null);Zn=_.C3(O!=null?O:null);this.fireEvent("yt-navigate-start",
x);var q$;(q$=_.GG().resolve(_.D0(_.X2N)))==null||q$.publish("navigation-start",{sourcePageSubtype:C,destinationPageSubtype:Zn});Z&&Fbp(this.pageFetcher,O,Z,l,this.currentEndpoint);return!0};
r8.prototype.JSC$14629_isNetworkPromiseStale=function(O){return O!=this.pendingNavigationPromise};
var I$T=function(O,x,e,l,C){var Q=Tu(x);x={endpoint:x,pageType:Q};C&&(x.errorMessage=C);_.ft(e);x.navigationDoneMs=_.IR("nd");x.navigationErrorReason=l;O.fireEvent("yt-navigate-error",x)};
r8.prototype.handleNavigateFail=function(O,x,e){var l=void 0;e instanceof _.Vn&&(l=e,xRL(e));if(this.JSC$14629_isNetworkPromiseStale(O))return _.Za(l);_.Oe(Ub(),"FAILURE");I$T(this,x,e,"101");return _.Za(e)};
r8.prototype.handleNavigateSuccess=function(O,x,e,l,C){if(this.JSC$14629_isNetworkPromiseStale(O))return _.$7();this.pendingNavigationPromise=null;if(!C)return x=new _.ry("Missing data in response for navigation endpoint",x),_.Za(x);if(C.reload)return window.location.reload(!0),_.$7();e&&(O={},_.HX.extend(O,_.VBR(e),C),C=O);var Q,L;e=(Q=C)==null?void 0:(L=Q.timing)==null?void 0:L.responseStart;e!=null&&_.IR("srt",e);_.IR("pdc");var k,M;Q=(k=C)==null?void 0:(M=k.timing)==null?void 0:M.info;Q!=null&&
(k=_.$K(_.rEL)(Q),_.EO(k));_.Oe(Ub(),"SUCCESS");V9J(this,x,C,1,l);return _.$7()};
var ckR=function(O){var x=O;_.t("kevlar_no_redirect_to_classic_2_ks")||(x=(new _.K1(O)).getPath());if(x==="/"||x==="/red")return!1;var e=!0;t94.forEach(function(l){O.indexOf(l)===0&&(e=!1)});
qPk.forEach(function(l){var C=l.url;_.t(l.expFlag)&&O.indexOf(C)===0&&(e=!1)});
return e};
r8.prototype.publishPageData=function(O){this.fireEvent("yt-page-data-fetched",{pageData:O})};
p2R=function(O,x,e,l,C,Q){var L=null;x.page!=="watch"&&x.page!=="learning_journey_watch"||l?x.filler||_.Sh(O.JSC$14629_clientRoot,"yt-stop-old-player",[x]):L=D8d(O.pageFetcher,C,x,e,!1,Q,void 0,O.currentEndpoint);if(L)return L.then(O.publishPageData.bind(O,x));O.publishPageData(x);return _.$7()};
RSz=function(O,x,e){var l=null;if(!e)return l=new _.ry("Empty data",O.debugString,x);var C=e.response;if(!C)return l;var Q={endpointType:Tu(x)||"unknown"};C.responseContext?(C=C.responseContext.errors)&&(l=new _.ry("Errors in response context",O.debugString,x,C,Q)):l=C.error||C.errorMetadata?new _.ry("Errors in response",O.debugString,x,C.error,C.errorMetadata,Q):new _.ry("responseContext missing",O.debugString,x,Object.keys(C).sort().join(","),Q);var L,k,M,G;if(O=e==null?void 0:(L=e.response)==null?
void 0:(k=L.responseContext)==null?void 0:(M=k.webResponseContextExtensionData)==null?void 0:(G=M.webResponseContextDebugData)==null?void 0:G.debugErrorMessages)for(L=0;L<O.length;L++);return l};
U8d=function(O){var x,e,l,C;return O==null?void 0:(x=O.response)==null?void 0:(e=x.responseContext)==null?void 0:(l=e.errors)==null?void 0:(C=l.error)==null?void 0:C["0"]};
a$k=function(O,x){var e;if(e=x.url&&!x.url.startsWith("/clip"))e=x.url,e=!_.t("webfe_parse_debug_param_in_resolveurl_service")&&O.searchDebugUrlMatcher.test(e)||kD$(e)?!0:!1;if(e)kD$(x.url)&&_.Cb(window.location.href).themeRefresh?(x=_.Y7(x.url,"themeRefresh"),_.mX(O.historyManager,x)):x.url&&!G2n(x.url)&&_.mX(O.historyManager,x.url);else if(x.endpoint){var l,C,Q;(e=(l=x.endpoint)==null?void 0:(C=l.commandMetadata)==null?void 0:(Q=C.webCommandMetadata)==null?void 0:Q.url)&&!G2n(e)&&_.mX(O.historyManager,
e);e&&x.url&&e!=x.url&&!x.url.match("playnext=1")&&new _.ry("Response url mismatch in response data",O.debugString,e,x.url)}};
_.m82=function(O,x,e,l,C,Q,L,k){Q=Q===void 0?!1:Q;var M=_.GG().resolve(zY),G;if(!k&&AkL(M,(G=O.currentEndpoint)!=null?G:void 0,x))return M.showConfirmationDialog(O.JSC$14629_clientRoot.parentElement,{endpoint:x,data:e,navigationType:l,tempData:C,isMiniplayer:Q,isForwardHistoryNavigation:L==null?void 0:L.forward}),_.$7();O.pageFetcher.JSC$14606_chunkHandler=void 0;return V9J(O,x,e,l,C,Q)};
V9J=function(O,x,e,l,C,Q){Q=Q===void 0?!1:Q;O.isMiniplayerExpansion=Q;var L=l===2;O.currentEndpoint=x;O.numNavigations++;O.numNavigations&&($P7.navigationCount=O.numNavigations);_.JZ("NUM_NAV",O.numNavigations);var k=RSz(O,x,e);if(k)return I$T(O,x,k,"102",U8d(e)),_.Za(k);var M,G,X,y;k=e.rootVe||(e==null?void 0:(M=e.response)==null?void 0:(G=M.responseContext)==null?void 0:(X=G.webResponseContextExtensionData)==null?void 0:(y=X.ytConfigData)==null?void 0:y.rootVisualElementType);!L&&e&&a$k(O,e);var Z,
E;M=e==null?void 0:(Z=e.response)==null?void 0:(E=Z.responseContext)==null?void 0:E.maxAgeSeconds;if(!L&&!isNaN(M)){var P;_.t("kevlar_use_response_ttl_to_invalidate_cache")?P=(0,_.F2)()+1E3*M:_.t("kevlar_always_invalidate_cache")&&(P=0);isNaN(P)||(e.expirationTime=P)}_.uc(_.rH).prefetchCache_.clear();L||e.page!=="watch"||e.type!=="reduced"&&l!==1?l=p2R(O,e,L,!!Q,x,C):(O.publishPageData(e),l=_.$7());C=l.then(function(){var U=Tu(x);U={endpoint:x,pageType:U,fromHistory:L,response:e};U.navigationDoneMs=
_.IR("nd");O.fireEvent("yt-navigate-finish",U);var W;(W=_.GG().resolve(_.D0(_.X2N)))==null||W.publish("navigation-end")});
e.csn&&k&&e.clientSideGrafts&&l.then(O.attachClientSideGrafts.bind(O,e,_.q9()));return C};
_.b=r8.prototype;_.b.attachClientSideGrafts=function(O,x){O.clientSideGrafts&&x&&O.clientSideGrafts.forEach(function(e){if(x&&e){var l=_.Fv(e);_.t("combine_ve_grafts")?_.k0().graftServerVe(e,x):_.WU(O.csn,x,l)}})};
_.b.handleSignalActionHistoryBack=function(){window.history.back()};
_.b.handleSignalActionCloseWindow=function(){window.close()};
_.b.handleSignalActionReloadPage=function(){this.reload()};
_.b.handleSignalActionSoftReloadPage=function(){UtL(this)};
_.b.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.b.fireEvent=function(O,x){O=new CustomEvent(O,{bubbles:!0,cancelable:!1,composed:!0,detail:x});this.dispatchEvent(O)};
_.b.addEventListener=function(O,x){this.JSC$14629_clientRoot.addEventListener(O,x)};
_.b.dispatchEvent=function(O){return this.JSC$14629_clientRoot.dispatchEvent(O)};
_.b.removeEventListener=function(O,x){this.JSC$14629_clientRoot.removeEventListener(O,x)};
r8[Fc]=[ykN,_.sg];_.SH$=new qn("browse","h8y2qb");_.jIN=new qn("search","JzFVk");_.Num=new qn("shorts","xwEKAe");_.gFn=new qn("watchFixie","nmfa2d");_.$JL=new qn("watchFlexy","CF909");_.ia7=new qn("watchGrid","Tm0L3c");_.OH8=new qn("watchLearningJourney","L3n37");var s5$;var WbL=function(){return _.a.apply(this,arguments)||this};
_.c(WbL,_.a);_.Dy.Object.defineProperties(WbL,{template:{configurable:!0,enumerable:!0,get:function(){if(s5$===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);s5$=O}O=s5$;return O}}});
_.B([_.V(sQL.YtPlayerBehavior),_.v("design:type",Object)],WbL.prototype,"ytPlayerBehavior",void 0);_.B([_.H({is:"ytd-player"})],WbL);var hSD;var zSd;var rkR;var Hm=function(){var O=_.a.apply(this,arguments)||this;O.forceModernIconButton=!1;O.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return O};
_.c(Hm,_.a);Hm.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]]"}}}}}};
Hm.prototype.handleAccountLinkingStateChangedCommand=function(O){if(O=_.q(O,SFD)){var x,e=(x=this.data)==null?void 0:x.providerKey;x=O.providerKey;e&&x&&e.id===x.id&&e.subject===x.subject&&(O=O.linked,O!==void 0&&(this.set("data.linked",O),this.notifyPath("data.linked"),_.t("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(O)))}};
Hm.prototype.setPlayerAccountLinkState=function(O){var x=new Ax$;MoL(x,Lwd(new Tx2,O));var e=_.f7();e&&e.getPlayerPromise().then(function(l){l.setAccountLinkState(_.zX(x.JSC$12316_serializeBinary(),4));l.updateAccountLinkingConfig(O)})};
Hm.prototype.handleShowAccountLinkDialog=function(){var O=this.get("button.buttonRenderer.command");O&&_.OO([O],this.hostElement)};
_.Dy.Object.defineProperties(Hm.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}}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.B([_.V([_.Wt.YtActionHandlerBehavior]),_.v("design:type",Object)],Hm.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Hm.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Hm.prototype,"overrides",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Hm.prototype,"forceModernIconButton",void 0);_.B([_.R({value:"bottom"}),_.v("design:type",String)],Hm.prototype,"buttonTooltipPosition",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],Hm.prototype,"forceIconButton",void 0);_.B([_.R(),_.v("design:type",Boolean)],Hm.prototype,"disableTextTransform",void 0);
_.B([_.p("data","data.linked","data.isWarning"),_.v("design:type",Object),_.v("design:paramtypes",[])],Hm.prototype,"button",null);_.B([_.H({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Hm);
_.n(Hm,"ytd-account-link-button-renderer",function(){if(rkR!==void 0)return rkR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return rkR=O},{mode:1});var HD4;var KbT=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Kj=function(){return _.a.apply(this,arguments)||this};
_.c(Kj,_.a);Kj.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Kj.prototype.updateButtonActiveState=function(){var O=this,x=!!KbT.find(function(e){return O.currentState===e});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.t("enable_web_delhi_icons")&&(x=!1);this.button&&(this.button.isPressed=x)};
_.Dy.Object.defineProperties(Kj.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.playlistLoopStateEntity)==null?void 0:O.state)||((x=this.data)==null?void 0:x.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var O=void 0,x;if(this.currentState&&((x=this.data)==null?0:x.states)){x=_.T(this.data.states);for(var e=x.next();!e.done;e=x.next()){e=_.q(e.value,_.MaT);var l=void 0;if(((l=e)==null?void 0:l.state)===this.currentState){O=e;break}}}return O}}});
Kj.prototype.updateButtonActiveState=Kj.prototype.updateButtonActiveState;_.B([_.V(_.$5),_.v("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.fd.playlistLoopStateEntitySelector}),_.v("design:type",Object)],Kj.prototype,"playlistLoopStateEntity",void 0);_.B([_.R(),_.v("design:type",Object)],Kj.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],Kj.prototype,"forceIconOnly",void 0);_.B([_.kX("ytd-button-renderer"),_.v("design:type",_.oe)],Kj.prototype,"button",void 0);
_.B([_.p("data","playlistLoopStateEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],Kj.prototype,"currentState",null);_.B([_.T1("currentButtonStateRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Kj.prototype,"updateButtonActiveState",null);_.B([_.p("currentState"),_.v("design:type",Object),_.v("design:paramtypes",[])],Kj.prototype,"currentButtonStateRenderer",null);
_.B([_.H({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Kj);
_.n(Kj,"ytd-playlist-loop-button-renderer",function(){if(HD4!==void 0)return HD4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return HD4=O},
{mode:1});var d8J;var nI$=_.CZ("DOWNLOAD",{},"Download"),udd=_.CZ("DOWNLOADING",{},"Downloading"),YPL=_.CZ("DOWNLOADED",{},"Downloaded"),BA$=_.CZ("RETRY",{},"Retry"),d8=function(){var O=_.a.apply(this,arguments)||this;O.forceIconButton=!1;O.forceIconOnly=!1;O.overrides=!1;O.buttonTooltipPosition=!1;O.styleActionButton=!1;O.disableTextTransform=!1;O.downloadProgress=0;O.isDownloadComplete=!1;O.isHidden=!0;O.transferState="TRANSFER_STATE_UNKNOWN";O.isVideoDeletedByUser=!1;O.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return O};
_.c(d8,_.a);_.b=d8.prototype;_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.b.dataChanged=function(){var O;(O=this.data)!=null&&O.text||(O=_.Vy(_.u9().getState(),this.videoId),this.updateButtonState(O))};
_.b.computeVideoId=function(O){return O};
_.b.computePlayerStateEntityKey=function(O){return O};
_.b.showHideButton=function(){this.updateButtonVisibility()};
_.b.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var O;((O=this.playerStateEntity)==null?void 0:O.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.b.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.b.updateButtonState=function(O){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==udd||!_.Ah(O))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(O){case "TRANSFER_STATE_UNKNOWN":O=nI$;var x="OFFLINE_DOWNLOAD";var e="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":O=BA$;x="OFFLINE_DOWNLOAD";e="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":O=YPL;x="OFFLINE_PIN";e="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":O=
udd;x="OFFLINE_DOWNLOADING_ZERO";e="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":O=BA$;x="OFFLINE_DOWNLOAD";e="ACTION_RETRY";break;default:O=nI$,x="OFFLINE_DOWNLOAD",e="ACTION_ADD"}this.isVideoDeletedByUser&&(O=nI$,x="OFFLINE_DOWNLOAD",e="ACTION_ADD");var l=Object.assign({},this.data);l.text=_.KA(O);l.tooltip=O;l.icon={iconType:x};l.size="SIZE_DEFAULT";l.style="STYLE_DEFAULT";_.q(l.command,_.bw)&&(_.q(l.command,_.bw).action=e);this.set("data",l)}};
_.b.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var O="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?O="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?O="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?O="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?O="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?O="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(O="OFFLINE_PIN",this.isDownloadComplete=!0);var x;O!==((x=this.data.icon)==null?void 0:x.iconType)&&(x=Object.assign({},this.data),x.text=_.KA(udd),x.tooltip=udd,x.icon={iconType:O},_.q(x.command,_.bw)&&(_.q(x.command,_.bw).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",x))}};
d8.prototype.updateProgress=d8.prototype.updateProgress;d8.prototype.onTransferStateChanged=d8.prototype.onTransferStateChanged;d8.prototype.showHideButton=d8.prototype.showHideButton;d8.prototype.dataChanged=d8.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],d8.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],d8.prototype,"forceIconButton",void 0);
_.B([_.R(),_.v("design:type",Object)],d8.prototype,"forceIconOnly",void 0);_.B([_.R(),_.v("design:type",Object)],d8.prototype,"overrides",void 0);_.B([_.R(),_.v("design:type",Object)],d8.prototype,"buttonTooltipPosition",void 0);_.B([_.R(),_.v("design:type",Object)],d8.prototype,"styleActionButton",void 0);_.B([_.R(),_.v("design:type",Object)],d8.prototype,"disableTextTransform",void 0);
_.B([_.R({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.v("design:type",String)],d8.prototype,"videoId",void 0);_.B([_.R({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.v("design:type",String)],d8.prototype,"playerStateEntityKey",void 0);_.B([_.R(),_.v("design:type",Object)],d8.prototype,"data",void 0);_.B([_.R({selector:Rx,selectorArgs:["videoId"]}),_.v("design:type",Object)],d8.prototype,"downloadProgress",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],d8.prototype,"isDownloadComplete",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],d8.prototype,"isHidden",void 0);_.B([_.R({selector:_.Vy,selectorArgs:["videoId"]}),_.v("design:type",String)],d8.prototype,"transferState",void 0);_.B([_.R({selector:_.Ng8,selectorArgs:["videoId"]}),_.v("design:type",Object)],d8.prototype,"isVideoDeletedByUser",void 0);
_.B([_.R({selector:vaW,selectorArgs:["videoId"]}),_.v("design:type",Object)],d8.prototype,"offlineabilityState",void 0);_.B([_.R({selector:_.ee,selectorArgs:["playerStateEntityKey"]}),_.v("design:type",Object)],d8.prototype,"playerStateEntity",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],d8.prototype,"showTooltips",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],d8.prototype,"sendCommandWhenDisabled",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],d8.prototype,"disabled",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d8.prototype,"dataChanged",null);_.B([_.G1("offlineabilityState","playerStateEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d8.prototype,"showHideButton",null);
_.B([_.G1("transferState","isVideoDeletedByUser"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d8.prototype,"onTransferStateChanged",null);_.B([_.G1("downloadProgress"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d8.prototype,"updateProgress",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],d8);
_.n(d8,"ytd-download-button-renderer",function(){if(d8J!==void 0)return d8J;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return d8J=O},{mode:2});var vIp;var f$N,Jkz=function(){if(f$N!==void 0)return f$N;var O=document.createElement("template");_.I(O,'\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 f$N=O};var w2d=_.t("web_button_rework")&&_.SS("BUTTON_REWORK")||_.t("web_button_rework_with_live"),SPL=_.yF("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,nj=function(){var O=_.a.apply(this,arguments)||this;O.isPressed=!1;O.forceIconButton=!1;O.forceIconOnly=!1;O.forceModernIconButton=!1;O.alignByText=!1;O.isShorts=!1;O.animatedText=!1;O.shouldAnimate=!1;O.JSC$14667_browserSupportsAnimation=_.t("web_supports_animations_api");O.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};O.onTap=function(){var x;if((x=O.data)==null||!x.defaultNavigationEndpoint){var e;x=!((e=O.data)==null?0:e.isToggled);var l;if((l=O.data)==null||!l.preventAutoToggle){O.shouldAnimate=!1;O.disableTextUpdateJobId&&_.vn.cancelJob(O.disableTextUpdateJobId);O.disableTextUpdateJobId=_.vn.addLowPriorityJob(function(){O.disableTextUpdateJobId=void 0},SPL);
var C;O.set("data.isToggled",!((C=O.data)==null?0:C.isToggled));e=O.getInnertubeIcon();l={toggled:x,actions:{}};e&&(l.actions[e.toLowerCase()]=x);_.wr(O.hostElement,"yt-toggle-button",l)}}};
return O};
_.c(nj,_.a);_.b=nj.prototype;_.b.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.vn.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.b.toggle=function(O){var x;this.set("data.isToggled",O!==void 0?O:!((x=this.data)==null?0:x.isToggled))};
_.b.handleUpdateToggleButtonStateCommand=function(O){if(this.data){O=_.q(O,ebN);var x,e,l,C=(x=this.data)==null?void 0:(e=x.toggleButtonSupportedData)==null?void 0:(l=e.toggleButtonIdData)==null?void 0:l.id;C&&O&&C===(O==null?void 0:O.buttonId)&&this.set("data.isToggled",O.toggled)}};
_.b.handleUpdateToggleButtonTextAction=function(O){if(this.data){O=_.q(O,Plp);var x,e,l,C=(x=this.data)==null?void 0:(e=x.toggleButtonSupportedData)==null?void 0:(l=e.toggleButtonIdData)==null?void 0:l.id;C&&O&&C===(O==null?void 0:O.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=O.defaultNumericalValue,this.set("data.defaultText",O.defaultText),this.set("data.toggledText",O.toggledText),this.shouldAnimate=!1)}};
_.b.getInnertubeIcon=function(){var O=this.data;if(O){var x,e,l=((x=O.defaultIcon)==null?0:x.iconType)?(e=O.defaultIcon)==null?void 0:e.iconType:null,C,Q;x=((C=O.toggledIcon)==null?0:C.iconType)?(Q=O.toggledIcon)==null?void 0:Q.iconType:l;return O.isToggled?x:l}};
_.b.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Dy.Object.defineProperties(nj.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O={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$14667_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var x=O.renderer;var e=O.element;var l=O.toggled;var C=O.onTapCallback;var Q=O.commandClientArgs;var L=O.overrides;var k=O.forceIcon;var M=O.forceModernIconButton;var G=O.forceDisabled;var X=O.useAnimatedText;var y=O.animatedTextProps;O=z7w(x,l);k=!x.defaultIcon||!k&&x.defaultText?x.defaultIcon?"leading":void 0:M?"icon-only":"icon-only-40";k==="icon-only-40"&&(O.type="text");var Z;M=Object;var E=M.assign,P;a:switch((P=
x.style)==null?void 0:P.styleType){case "STYLE_COMPACT_GRAY":P={size:"S"};break a;default:P={size:"M"}}var U=!!l;var W=(W=l&&x.toggledText||x.defaultText)?_.Ps(W):void 0;X?(X=_.db(l&&x.toggledText||x.defaultText))&&y&&!isNaN(Number(y.numberValue))?(y.numberText=X,l&&(y.numberValue+=1),X=y):X=void 0:X=void 0;var z,r,f,u;var Y=(y=((r=l?x.toggledAccessibilityData||((Y=x.toggledText)==null?void 0:Y.accessibility):x.accessibilityData||((z=x.defaultText)==null?void 0:z.accessibility))==null?void 0:(f=r.accessibilityData)==
null?void 0:f.label)||((u=x.accessibility)==null?void 0:u.label))?y:_.db(l&&x.toggledText||x.defaultText);G=G===void 0?x.isDisabled:G;e=h7W(x,l,C,e,Q);l=Wqr(x,l);l!=null&&l.length?(l=_.Ux({innertubeCommand:IJw(l),forceNewState:!0}),l=al(l)?l:void 0):l=void 0;x=E.call(M,{},O,P,{iconPosition:k},L,{focused:!1,toggled:U,toggleable:!0,formattedButtonText:W,animatedTextProps:X,accessibilityLabel:Y,disabled:G,onTap:e,aTagConfig:l},NQL((Z=x.colorData)==null?void 0:Z.basicColorPaletteData));x.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(x.type="filled");return x}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var O=this.getInnertubeIcon();if(O)return _.x0(O)}}});
nj.prototype.resetAnimation=nj.prototype.resetAnimation;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],nj.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],nj.prototype,"isPressed",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"forceIconButton",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"forceIconOnly",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"forceModernIconButton",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"alignByText",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"overrides",void 0);
_.B([_.R(),_.v("design:type",Boolean)],nj.prototype,"disabled",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"isShorts",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"buttonTooltipPosition",void 0);_.B([_.R(),_.v("design:type",Object)],nj.prototype,"animatedText",void 0);_.B([_.R(),_.v("design:type",String)],nj.prototype,"textNumberValue",void 0);_.B([_.R({computed:"computeTooltip(data, data.isToggled)"}),_.v("design:type",Object)],nj.prototype,"tooltip",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],nj.prototype,"resetAnimation",null);_.B([_.p("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.v("design:type",Object),_.v("design:paramtypes",[])],nj.prototype,"computedButtonShape",null);_.B([_.p("data.*"),_.v("design:type",Object),_.v("design:paramtypes",[])],nj.prototype,"computedIcon",null);
_.B([_.H({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],nj);w2d&&_.n(nj,"ytd-toggle-button-renderer",Jkz,{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var j5k=_.K(function(O){function x(G){var X;return _.A(function(y){if(y.nextAddress==1)return(X=!Hkm(G,k())||!k().enabled)?y.jumpTo(2):y.yield(Ycn(),3);y.nextAddress!=2&&(X=y.yieldResult);if(X)return y.return();e();setTimeout(function(){L(!1)},1500);
_.Ra(y)})}
function e(){setTimeout(function(){L(!0);var G;(G=l.lottieEl)==null||G.goToAndPlay(0)},150)}
var l=_.C5(),C=_.T(_.Iw(!1,void 0,"UfUosc")),Q=C.next().value,L=C.next().value,k=_.uH(O.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.YK(function(){var G,X;((G=O.settings)==null?void 0:(X=G.call(O))==null?void 0:X.uniqueId)==="this is not intended behavior"&&_.ft(new _.ry("Smartimation Settings is undefined"))});
_.uo(function(){k().experimentEnabled&&(k().enabled?Kq7(x):(L(!1),dNr(x)),_.YO(function(){dNr(x)}))},"IHhVmc");
_.uo(function(){k().timings.join("");k().experimentEnabled&&(nnn(k()),_.YO(function(){uHs(k())}))},"fsfhOe");
var M=_.aw(function(){var G=l,X=k().uniqueId+"-border",y,Z;var E="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Z=(y=_.GG().resolve(_.D0(_.rP)))==null?void 0:y())!=null&&Z?"dark":"light")+"_v2.json";return{animationRef:G,animationConfig:{name:X,autoplay:!1,loop:!1,path:E}}},void 0,"UWvUGe");
C={};return _.D("yt-smartimation",{class:_.xz(O.className,"smartimation",(C["smartimation--experiment-enabled"]=function(){return k().experimentEnabled},C["smartimation--active-border"]=Q,C["smartimation--enable-masking"]=Bi7(),C))},_.D(_.F,{cond:function(){return k().experimentEnabled},
then:function(){return _.D("div",{class:"smartimation__border"},_.D(_.hc,{className:"smartimation__border-gradient",data:M,animationName:function(){return M().animationConfig.name}}))}}),_.D("div",{class:"smartimation__content"},O.children))},"ga");
j5k.idomCompat=!0;_.wP(j5k,"yt-smartimation",{props:{className:_.Ld,settings:_.Ld}});var uZ=function(){var O=_.a.apply(this,arguments)||this;O.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};O.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};O.shouldEnableSmartimation=!1;return O};
_.c(uZ,_.a);uZ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
uZ.prototype.onDataChanged=function(){var O,x;this.shouldEnableSmartimation=(((O=this.data)==null?void 0:(x=O.timedAnimationData)==null?void 0:x.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
uZ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var O=_.q(this.data.likeButton,_.Sm),x=_.q(this.data.dislikeButton,_.Sm);return!!((O==null?0:O.isToggled)||(x==null?0:x.isToggled))};
uZ.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]]"}}}}}};
_.Dy.Object.defineProperties(uZ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var O,x,e=((O=this.data)==null?void 0:(x=O.timedAnimationData)==null?void 0:x.animationTiming)||[];return{uniqueId:"like-dislike",timings:e,enabled:this.shouldEnableSmartimation,experimentEnabled:e.length>0}}}});
uZ.prototype.onDataChanged=uZ.prototype.onDataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],uZ.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],uZ.prototype,"likeButtonOverride",void 0);_.B([_.R(),_.v("design:type",Object)],uZ.prototype,"dislikeButtonOverride",void 0);
_.B([_.p("shouldEnableSmartimation"),_.v("design:type",Object),_.v("design:paramtypes",[])],uZ.prototype,"smartimationSettings",null);_.B([_.T1("data"),_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],uZ.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],uZ);
_.n(uZ,"ytd-segmented-like-dislike-button-renderer",function(){if(vIp!==void 0)return vIp;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vIp=O},{mode:1});var NAd;var gId;(gId=document.body)==null||gId.setAttribute("rounded-container","");var $8F={};$8F.YtToggleButtonBehavior=[_.Wt.YtActionHandlerBehavior,nd.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 O=this.data.isToggled;if(!this.isModal_(O)){if(!this.data.preventAutoToggle){this.toggle();var x={toggled:this.data.isToggled,actions:{}};x.actions[this.buttonIcon]=this.data.isToggled;_.wr(this.hostElement,"yt-toggle-button",x)}x=this.data.defaultServiceEndpoint||null;var e=this.data.toggledServiceEndpoint||null;if(x&&e||x&&this.data.preventAutoToggle)O=O?e:x,x=this.disableCommandHandlerOverride,_.t("killswitch_toggle_button_behavior_resolve_command")||x?_.N9(this.hostElement,
[O]):_.C_(O,this.hostElement),_.wr(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:O})}},
stateChanged_:function(){var O=this.data;if(O){var x=O.isToggled;this._setEndpoint(this.computeEndpoint_(O));this._setServiceEndpoint(this.computeServiceEndpoint_(O));this._setButtonIcon(this.computeButtonIcon_(O,x));this._setButtonText(this.computeButtonText_(O,x));this._setButtonAccessibility(this.computeAccessibility_(O,x));this._setButtonTooltip(this.computeTooltip_(O,x));this._setButtonClass(this.computeButtonClass_(O,x));this._setIconPositionType(this.computeIconPositionType_(O));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=x):this.elements_.button.setAttribute("aria-pressed",x));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=x)}},
shouldSetIconActiveState_:function(){return _.t("kevlar_system_icons")},
toggle:function(O){this.set("data.isToggled",O!==void 0?O:!this.data.isToggled);_.t("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(O){if(O){var x,e;return!!((x=this.data)==null?0:(e=x.toggledServiceEndpoint)==null?0:e.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(O){return O&&O.defaultNavigationEndpoint||null},
computeButtonIcon_:function(O,x){var e=O&&O.defaultIcon?_.x0(O.defaultIcon.iconType):null;O=O&&O.toggledIcon?_.x0(O.toggledIcon.iconType):e;return x?O:e},
handleUpdateToggleButtonStateCommand_:function(O){O=O.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==O.buttonId&&this.toggle(O.toggled)},
computeButtonText_:function(O,x){return O?x&&O.toggledText||O.defaultText||null:null},
computeAccessibility_:function(O,x){return O?(x?this.get("toggledAccessibilityData.accessibilityData",O):this.get("accessibilityData.accessibilityData",O))||O.accessibility||null:null},
computeTooltip_:function(O,x){return O?x&&O.toggledTooltip||O.defaultTooltip||null:null},
computeButtonClass_:function(O,x){if(!O)return"";var e="",l=O.toggledStyle||O.style;if(x=x?l:O.style){x.styleType&&(x=x.styleType);try{e+=x.toLowerCase().replace(/_/g,"-")+" "}catch(C){_.JG(C,x,typeof x),_.ft(C)}}if(O=O.size){O.sizeType&&(O=O.sizeType);try{e+=O.toLowerCase().replace(/_/g,"-")+" "}catch(C){_.JG(C,O,typeof O),_.ft(C)}}return e.trim()},
computeIconPositionType_:function(O){return O&&O.iconPosition||null},
computeServiceEndpoint_:function(O){var x=O&&O.serviceEndpoint,e=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return x?x:e&&O.command?O.command:null},
handleUpdateToggleButtonTextAction_:function(O){O=O.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==O.buttonId&&(this.set("data.defaultText",O.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",O.toggledText),this.notifyPath("data.toggledText"))}}];_.tI("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var iD3=_.t("web_button_rework")&&_.SS("BUTTON_REWORK")||_.t("web_button_rework_with_live"),Yw=function(){var O=_.a.apply(this,arguments)||this;O.systemIcons=_.t("kevlar_system_icons");O.roundedContainer=!0;return O};
_.c(Yw,_.a);Yw.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Yw.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var O=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var x={toggled:!!this.data.isToggled,actions:{}};x.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var e,l;x.actions.playlistId=(e=this.data.defaultServiceEndpoint)==null?void 0:(l=e.playlistEditEndpoint)==null?void 0:l.playlistId;_.wr(this.hostElement,"yt-toggle-button",x)}(O=O?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(O)}};
Yw.prototype.onYtNavigate=function(O){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);x&&(O.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(x))};
_.Dy.Object.defineProperties(Yw,{template:{configurable:!0,enumerable:!0,get:function(){if(NAd===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);NAd=O}O=NAd;return O}}});
Yw.prototype.onYtNavigate=Yw.prototype.onYtNavigate;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Yw.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],Yw.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V($8F.YtToggleButtonBehavior),_.v("design:type",Object)],Yw.prototype,"ytToggleButtonBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],Yw.prototype,"data",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],Yw.prototype,"showTooltips",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Yw.prototype,"systemIcons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Yw.prototype,"roundedContainer",void 0);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Yw.prototype,"onYtNavigate",null);
_.B([_.H({is:"ytd-toggle-button-renderer",disableElementRegistration:iD3})],Yw);var OPd,xf3;_.Bm=new _.iR("PANEL_CONTROLLER_TOKEN");_.fj=new _.iR("SHEET_CONTROLLER_TOKEN");_.JT=new _.iR("DIALOG_CONTROLLER_TOKEN");OPd=new _.iR("DIALOG_CONTAINER_TOKEN");xf3=new _.iR("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.w8=new _.iR("PERSISTENT_PANEL_CONTROLLER_TOKEN");var $NN=_.CZ("DOWNLOAD",{},"Download"),iki=_.CZ("DOWNLOADING",{},"Downloading"),OJW=_.CZ("DOWNLOADED",{},"Downloaded"),xaL=_.CZ("RETRY",{},"Retry");var ed3=_.K(function(O){var x=bJN,e=function(){return""},l=euW(O.data),C=lWV(O.data),Q=CMr(O.data),L=QQL(O.data);
x=function(){var k=O.data(),M=NiL(k,l(),C(),Q(),L()),G=!!k.videoId,X=M.text;return{title:G?X:void 0,tooltip:G?void 0:X,accessibilityText:X,onTap:M.onTap,iconName:M.iconType,style:k.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:M.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:k.buttonSize}};
e={};e=_.xz("ytDownloadButtonViewModelHost",(e.ytDownloadButtonViewModelIsHidden=function(){var k=O.data(),M=L();return k.playlistId||M()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||M()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},e));
return _.D("download-button-view-model",{class:e},_.D(_.RV,{data:x}))},"ha");
ed3.idomCompat=!0;var XVn=new _.iR("SUBMIT_API_SERVICE_TOKEN");var Da7,Gh$,otV={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var sQs=new _.iR("RENDERER_LOGGER_TOKEN");var RuV=new _.iR("RENDERER_STAMPER_OPTIONS_TOKEN");var yrr;_.AA=new i54;yrr=new Map;var Uar="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),maw=["notificationTextRenderer","notificationMultiActionRenderer"],
aW7="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),pVs=ZJ$(function(O){return _.vL(O==null?void 0:O.targetId)}).useUpdatableData;var VMr=0;_.MR.debugName="EjJbCe";var lUN=_.K(function(O){var x=O.data;O=O.className;_.u8(function(){x().formId||_.BH(Error("Jh"))});
var e=_.MM7(function(){return x().formId},function(){return x().beforeSubmitCommand},function(){return x().afterSubmitCommand}),l=e.submitForm,C=e.isValid,Q=e.isSubmitting,L=function(){return{state:x().isDisabled||!C()||Q()?"disabled":"active"}};
return _.D("yt-submit-button-view-model",{class:_.xz("ytSubmitButtonViewModelHost",O)},_.D(_.MR,{data:function(){return x().button}},{buttonViewModel:function(k){return _.D(_.RV,{data:k.data,
buttonOverrides:L,onClick:l})}}))},"ka");var QD3=_.K(function(O){var x=O.backgroundLottieRef;var e=O.foregroundLottieRef;var l=O.children;var C=O.wrapperClass;var Q=O.disableAnimation;O=function(){return(_.t("web_animated_actions")||_.t("web_animated_actions_v2"))&&!(Q==null?0:Q())};
return _.D("yt-animated-action",{class:_.xz("ytAnimatedActionHost",C)},_.D("div",{class:"ytAnimatedActionContentWithBackground"},_.D(_.F,{cond:O,then:function(){return _.D(C1d,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:x==null?void 0:x(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(W$N()?"dark":"light")+"_v5.json"}}}})}}),l),_.D(_.F,{cond:O,
then:function(){return _.D(C1d,{lottiePlayerProps:function(){return{animationRef:e==null?void 0:e(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(W$N()?"dark":"light")+"_v4.json"}}}})}}))},"la");
QD3.idomCompat=!0;var C1d=_.K(function(O){var x=O.wrapperClass;var e=O.lottieClass;var l=O.lottiePlayerProps;return _.D("div",{class:_.xz("ytAnimatedActionLottie",x),"aria-hidden":"true"},_.D(_.hc,{className:e,data:l,animationName:function(){return l().animationConfig.name}}))},"ma");var hu8={isOpen:!1};var rri={isAllowed:!1};var K$N={errorMessage:"",title:"",privacy:"",isDisabled:!0};var ntW={isOpen:!1};var YVL={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var bP3={response:void 0};var vtm=function(O,x){O=O===void 0?bP3:O;switch(x.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},O,{response:x.payload});default:return O}};var TKT={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var fWs=function(O,x){O=O===void 0?TKT:O;switch(x.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},O,{nextDisabled:x.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},O,{nextCommand:x.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},O,{footerSubmissionData:x.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},O,{isImpersonationValid:x.payload});default:return O}};var LV4={reportFormData:void 0,reportDetailsFormData:void 0};var Jr8=function(O,x){O=O===void 0?LV4:O;switch(x.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},O,{reportFormData:x.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},O,{reportDetailsFormData:x.payload});default:return O}};var kNR=void 0;_.t("mweb_enable_redux_store_on_demand")||(kNR=new nA(wVi()));var S7=_.t("enable_web_delhi_icons");var Am2=_.K(function(O){O=_.YX(O,{themeOverride:void 0,animationRef:{}});var x=O.animatedIconType,e=O.active,l=O.themeOverride,C=O.animationRef;O=O.staticIconFn;var Q=_.T(_.Iw(void 0,void 0,"l48agc")),L=Q.next().value,k=Q.next().value,M=function(){a:{var W=x();var z=l==null?void 0:l();var r;z=(z==null?void 0:z.useDarkTheme)||((r=_.GG().resolve(_.D0(_.rP)))==null?void 0:r());switch(W){case "LIKE":kNR||(kNR=new nA(wVi()));W=(W=pkr(kNR.getState()))&&W.animationLightUrl&&W.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:z?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:z?W.animationDarkUrl:W.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(W){z=W;break a}z="animated_like_icon_"+(z?"dark":"light")+"_"+(S7?"v5":"v4");z={lottiePlayerProps:{animationConfig:{name:z,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+z+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(S7?" animated-like-icon-delhi":"")}}},totalFrames:S7?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":z={lottiePlayerProps:{animationConfig:{name:z?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(z?"dark":"light")+(S7?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(S7?" animated-subscribe-icon-delhi":"")}}},totalFrames:S7?120:79,lazyLoad:!1};break a}z=
void 0}return z},G=function(){var W,z;
return(z=(W=M())==null?void 0:W.lottiePlayerProps.animationConfig.name)!=null?z:""},X=function(){if(M()){var W=M().lottiePlayerProps.animationConfig.path;
return yI.get(W)||L()}};
Q=_.T(_.Iw(!1,void 0,"sDrGId"));var y=Q.next().value;Q=Q.next().value;var Z=jQr(Q),E=function(){var W=M(),z,r,f;return(f=W==null?void 0:(z=W.lottiePlayerProps.animationConfig)==null?void 0:(r=z.rendererSettings)==null?void 0:r.className)!=null?f:""},P=void 0,U=void 0;
_.uo(function(){var W=M(),z=G(),r=X(),f=y(),u=e();if(W&&(U!==z&&(U=z,P=u,z=C(),Z.animationConfig=W.lottiePlayerProps.animationConfig,Z.animationRef=z,r&&(Z.animationConfig.animationData=r,Z.animationConfig.path=void 0),z=W.lottiePlayerProps.animationConfig.path,!yI.get(z)&&W.lazyLoad&&z&&SVn(z,k)),!(f||W.lazyLoad&&!r))){if(r=!C().lottieEl)u?(f=W.totalFrames,Z.animationConfig.initialSegment=[f-1,f]):Z.animationConfig.initialSegment=void 0;if(P!==u&&!r)if(r=C(),u){var Y;(Y=r.lottieEl)==null||Y.playSegments([0,
W.totalFrames],!0)}else{var J;(J=r.lottieEl)==null||J.playSegments([0,1],!0)}P=u}},"RQVZ1d");
return _.D("animated-icon",{class:"ytAnimatedIconHost"},_.D(_.F,{cond:function(){var W,z;return!((W=M())==null||!W.lottiePlayerProps.animationConfig.path||((z=M())==null?0:z.lazyLoad)&&!X()||y())},
then:function(){return _.D(_.hc,{data:Z,animationName:G,className:E,animationRef:C})},
else:O}))},"oa");_.j7=_.K(function(O){var x=_.Q5("yt-subscribe-button-view-model"),e=_.Q5("div"),l=_.Q5("div"),C=_.C5(),Q=_.C5(),L=_.C5(),k=_.L5(iJm,function(){return O.data().stateEntityStoreKey}),M=_.L5(ODr,function(){var OT,Gp;
return(Gp=(OT=O.data().notificationStateEntityStoreKeys)==null?void 0:OT.subsNotificationStateKey)!=null?Gp:""}),G=function(){return!O.data().enableSubscribeButtonPostClickAnimation},X=_.T(_.Iw(0,void 0,"YtsSKb")),y=X.next().value,Z=X.next().value;
X=_.T(_.Iw(0,void 0,"V6JxRe"));var E=X.next().value,P=X.next().value;X=_.T(_.Iw(!1,void 0,"JUCSZ"));var U=X.next().value,W=X.next().value;X=_.T(_.Iw(!1,void 0,"oV6jwf"));var z=X.next().value,r=X.next().value;X=_.T(_.Iw(!1,void 0,"hK1Whe"));var f=X.next().value,u=X.next().value,Y;X=_.T(_.Iw(!1,void 0,"Asaolf"));var J=X.next().value,O8=X.next().value,Xr=function(){r(!0);_.FQ(_.vn,function(){r(!1)},1500)};
_.uo(function(){var OT=z();_.cL(function(){OT&&!G()&&k()&&Fbr(C,Q,L)})},"Qq6Hsf");
_.uo(function(){var OT=k();_.cL(function(){if(!G()&&OT){var Gp;((Gp=O.animateWidth)==null?0:Gp.call(O))&&G4L(x.value,!!OT.subscribed,y(),E());var zp,m3;((zp=Y)==null?0:zp.subscribed)||!OT.subscribed||OT.key!==((m3=Y)==null?void 0:m3.key)||Xr();Y=OT}})},"hog8te");
X=_.aw(function(){var OT,Gp,zp,m3=O.data(),E4=!((OT=k())==null||!OT.subscribed);OT=!((Gp=O.isOverlay)==null||!Gp.call(O));Gp=U()?x:void 0;var Xw=(zp=M())==null?void 0:zp.state;zp=J();D8W(m3,Xw);return $a7({model:m3,subscribed:E4,isOverlay:OT,element:Gp,notificationState:Xw,disableTextEllipsis:!0,focused:zp})},void 0,"hc1PRd");
var Fr=function(){var OT;if(!G()&&((OT=O.animateWidth)==null?0:OT.call(O))&&(e==null?0:e.value)&&(l==null?0:l.value)&&!f()){OT=k();var Gp=_.T((OT==null?0:OT.subscribed)?[e,l]:[l,e]),zp=Gp.next().value;Gp=Gp.next().value;zp=Math.ceil(zp.value.getBoundingClientRect().width);Gp=Math.ceil(Gp.value.getBoundingClientRect().width);Z(zp);P(Gp);G4L(x.value,!(OT==null||!OT.subscribed),zp,Gp);u(!0)}},mL=_.lk(function(OT){Fr();
var Gp=k();Gp&&(OT.detail.endpoint.subscribeEndpoint||OT.detail.endpoint.unsubscribeEndpoint)&&Lb8(x.value,!Gp.subscribed,Gp)}),Zn=function(){var OT=_.GG().resolve(_.D0(_.qL));
OT&&O8(OT.isKeyBoardInUse())},q$=function(){O8(!1)};
_.Cw("yt-player-subscribe",function(OT){var Gp=k();Gp&&OT===O.data().channelId&&Lb8(x.value,!0,Gp)});
_.Cw("yt-player-unsubscribe",function(OT){var Gp=k();Gp&&OT===O.data().channelId&&Lb8(x.value,!1,Gp)});
_.Cw("yt-update-subscribe-button-action",function(OT){OT=_.q(OT,dXL);var Gp=k();Gp&&OT&&OT.channelId===O.data().channelId&&Lb8(x.value,!!OT.subscribed,Gp)});
_.YK(function(){x.value&&(x.value.addEventListener("focusin",Zn),x.value.addEventListener("focusout",q$));var OT=_.zl(_.vn,function(){Fr()});
W(!0);_.YO(function(){_.vn.cancelJob(OT);x.value&&(x.value.removeEventListener("focusin",Zn),x.value.removeEventListener("focusout",q$))})});
var KV=function(){var OT,Gp,zp;if(zp=!((OT=k())==null||!OT.subscribed))OT=!!O.data().disableNotificationBell,zp=(Gp=M())==null?void 0:Gp.state,zp=!OT&&!!zp;return zp},VN=function(){var OT;
return!((OT=k())==null?0:OT.subscribed)},Pd=function(){var OT,Gp;
if(Gp=VN()){Gp=!!O.data().disableNotificationBell;var zp=(OT=M())==null?void 0:OT.state;Gp=!Gp&&!!zp}return Gp},f2={},p2={};
return _.D("yt-subscribe-button-view-model",{class:_.xz(O.className,"ytSubscribeButtonViewModelHost",(f2.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var OT,Gp;return!((OT=k())==null||!OT.subscribed)&&((Gp=O.animateWidth)==null?void 0:Gp.call(O))&&z()},f2.ytSubscribeButtonViewModelHostHidden=function(){var OT;
return!((OT=k())==null?0:OT.subscribed)&&O.data().hideWhenUnsubscribed},f2)),
el:x,"on:yt-service-request-sent":mL},_.D(QD3,{backgroundLottieRef:C,foregroundLottieRef:Q,wrapperClass:_.xz("ytSubscribeButtonViewModelAnimatedActionWrapper",(p2.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var OT;return((OT=O.animateWidth)==null?void 0:OT.call(O))&&z()},p2.ytSubscribeButtonViewModelStaticWidth=function(){var OT;
return!((OT=O.animateWidth)==null?0:OT.call(O))},p2)),
disableAnimation:G},_.D("div",{el:e,class:"ytSubscribeButtonViewModelContainer"},_.D(_.pd,{data:X,icon:function(){return _.D(_.F,{cond:KV,then:function(){var OT=function(){var Gp;return TAn((Gp=M())==null?void 0:Gp.state)};
return _.D(_.F,{cond:function(){return G()||OT()!=="NOTIFICATIONS_NONE"},
then:function(){return _.D(_.L7,{icon:OT})},
else:function(){return _.D(Am2,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:L})}})}})},
secondaryIconName:function(){return KV()?"EXPAND":void 0}}))),_.D("div",{el:l,
class:"ytSubscribeButtonViewModelInvisible"},_.D(_.F,{cond:function(){var OT;return((OT=O.animateWidth)==null?void 0:OT.call(O))&&!G()&&!f()},
then:function(){return _.D(_.pd,{data:_.aw(function(){var OT;return $a7({model:O.data(),subscribed:VN(),isOverlay:!((OT=O.isOverlay)==null||!OT.call(O)),element:x,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var OT;return Pd()?TAn((OT=M())==null?void 0:OT.state):void 0},
secondaryIconName:function(){return Pd()?"EXPAND":void 0}})}})))},"ra");
_.j7.idomCompat=!0;var MkL=_.K(function(O){var x=O.data;var e=_.L5(iJm,function(){return x().subscriptionStateEntityKey});
return _.D(_.F,{cond:function(){var l=x(),C=e();return!l.hideWhenUnsubscribed||(C==null?0:C.subscribed)?_.q(x().button,_.gf):void 0},
then:function(l){return _.D("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.D(_.RV,{data:l,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
MkL.idomCompat=!0;var Df3,NA;Df3=_.K(function(O){return _.D(_.MR,{data:function(){return O.actionRow().actions}},{buttonViewModel:function(x){var e=x.data;
return _.D(NA,{isRow:O.isRow,isIconOnlyButton:function(){return X27(e())},
useIntrinsicWidth:O.useIntrinsicWidth},_.D(_.RV,{data:e}))},
subscribeButtonViewModel:function(x){return _.D(NA,{isRow:O.isRow},_.D(_.j7,{data:x.data,isOverlay:!1,animateWidth:function(){return!O.isRow()}}))},
downloadButtonViewModel:function(x){var e=x.data;return _.D(NA,{isRow:O.isRow,isIconOnlyButton:function(){return!!e().playlistId}},_.D(ed3,{data:e}))},
submitButtonViewModel:function(x){var e=x.data;return _.D(NA,{isRow:O.isRow,isIconOnlyButton:function(){var l=e();return X27(_.q(l==null?void 0:l.button,_.gf))}},_.D(lUN,{data:e}))},
toggleButtonViewModel:function(x){var e=x.data;return _.D(NA,{isRow:O.isRow,isIconOnlyButton:function(){var l=e();return X27(_.q(l.isToggled?l.toggledButtonViewModel:l.defaultButtonViewModel,_.gf))}},_.D(_.Jc,{data:e}))},
subscribePlusButtonViewModel:function(x){return _.D(NA,{isRow:O.isRow},_.D(MkL,{data:x.data}))}})},"ta");
NA=_.K(function(O){var x={};return _.D("div",{class:_.xz("ytFlexibleActionsViewModelAction",(x.ytFlexibleActionsViewModelActionRowAction=O.isRow,x.ytFlexibleActionsViewModelActionIntrinsicWidth=O.useIntrinsicWidth,x.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,x.ytFlexibleActionsViewModelActionIconOnlyButton=O.isIconOnlyButton,x))},O.children)},"ua");
_.g8=_.K(function(O){var x=function(){var l;return((l=O.layout)==null?void 0:l.call(O))===1},e={};
return _.D("yt-flexible-actions-view-model",{class:_.xz("ytFlexibleActionsViewModelHost",O.className,(e.ytFlexibleActionsViewModelInline=function(){return!x()},e.ytFlexibleActionsViewModelScrollable=function(){return O.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},e))},_.D(_.HE,{each:function(){return O.data().actionsRows||[]}},function(l){return _.D(_.F,{cond:x,
then:function(){return _.D("div",{class:"ytFlexibleActionsViewModelActionRow"},_.D(Df3,{actionRow:l,isRow:x,useIntrinsicWidth:function(){return!!O.data().respectActionIntrinsicWidth}}))},
else:function(){return _.D(Df3,{actionRow:l,isRow:x})}})}))},"va");_.wP(_.g8,"yt-flexible-actions-view-model",{props:{data:_.Ld,layout:_.Ld,justifyContentOverride:_.Ld,className:_.Ld}});_.$w=_.K(function(O){var x=_.L5(R2,function(){var C;return(C=O.data().dislikeEntityKey)!=null?C:""}),e=_.aw(function(){var C=x();
return C?C.likeStatus==="DISLIKE":_.q(O.data().toggleButtonViewModel,_.iN).isToggled},void 0,"fNr9he"),l=_.aw(function(){return Object.assign({},_.q(O.data().toggleButtonViewModel,_.iN),{isToggled:e()})},void 0,"AezoCc");
return _.D("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.D(_.Jc,{data:l,buttonShapeOverrides:O.buttonShapeOverrideables,onToggle:function(C){var Q=x();Q&&C!==(Q.likeStatus==="DISLIKE")&&Q.key&&_.ns(_.Zw("likeStatusEntity",Q.key,{likeStatus:C?"DISLIKE":"INDIFFERENT",hadUserInteraction:C}))}}))},"wa");
_.$w.idomCompat=!0;_.iZ=_.K(function(O){var x=_.t("web_supports_animations_api"),e=Bs(function(Z){var E=G();if(!Z){var P,U;return{numberText:(U=E==null?void 0:(P=E.likeCountIfIndifferent)==null?void 0:P.content)!=null?U:"",numberValue:Number(E==null?void 0:E.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var W;P=(E==null?void 0:(W=E.likeCountIfIndifferent)==null?void 0:W.content)!==Z.numberText;if(k()||!P)return Z;var z;return{numberText:(E==null?void 0:(z=E.likeCountIfIndifferent)==null?void 0:z.content)||
"",numberValue:Number(E==null?void 0:E.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!E}}),l=Bs(function(Z){var E=G();
if(!Z){var P,U;return{numberText:(U=E==null?void 0:(P=E.likeCountIfLiked)==null?void 0:P.content)!=null?U:"",numberValue:Number(E==null?void 0:E.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var W;P=(E==null?void 0:(W=E.likeCountIfIndifferent)==null?void 0:W.content)!==Z.numberText;if(k()||!P)return Z;var z;return{numberText:(E==null?void 0:(z=E.likeCountIfLiked)==null?void 0:z.content)||"",numberValue:Number(E==null?void 0:E.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!E}}),C=_.T(_.Iw(void 0,
void 0,"xldjge")),Q=C.next().value,L=C.next().value,k=Q,M=_.L5(R2,function(){var Z,E;
return(E=(Z=O.data())==null?void 0:Z.likeStatusEntityKey)!=null?E:""}),G=_.L5(LZr,function(){var Z,E;
return((Z=O.likeCountEntity)==null?void 0:(E=Z.call(O))==null?void 0:E.key)||""}),X=_.aw(function(){var Z;
return((Z=M())==null?void 0:Z.likeStatus)==="LIKE"},void 0,"B3od5e"),y=function(){var Z;
return x&&!((Z=O.likeCountEntity)==null||!Z.call(O))};
return _.D("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.D(_.Jc,{data:function(){var Z=Object,E=Z.assign,P;var U=_.q((P=O.data())==null?void 0:P.toggleButtonViewModel,_.iN);return E.call(Z,{},U||{},{isToggled:X()})},
buttonShapeOverrides:O.buttonShapeOverrideables,animatedTextPropsDefault:function(){return y()?e():void 0},
animatedTextPropsToggled:function(){return y()?l():void 0},
onToggle:function(Z){oIr(Z,M(),k(),L)},
style:function(){var Z;return((Z=O.disableIconAnimation)==null?0:Z.call(O))?void 0:{animateIcon:"true"}}}))},"xa");
_.iZ.idomCompat=!0;var GN4=_.K(function(O){var x=function(){return _.q(O.data().likeButtonViewModel,_.Yo)},e=function(){var C;
return((C=x())==null?void 0:C.likeStatusEntityKey)||""},l=_.aw(function(){var C,Q;
var L=(Q=_.L5(R2,e)())!=null?Q:(C=x())==null?void 0:C.likeStatusEntity;C=O.data();var k;C=(C==null?void 0:(k=C.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:C,enabled:(L==null?void 0:L.likeStatus)==="INDIFFERENT"&&C.length>0,experimentEnabled:C.length>0}},void 0,"zZ3GQb");
return _.D("segmented-like-dislike-button-view-model",{class:_.xz("ytSegmentedLikeDislikeButtonViewModelHost",O.className),"button-renderer":!0},_.D(j5k,{settings:l},_.D("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.D(_.F,{cond:x,then:function(C){return _.D(_.iZ,{data:C,likeCountEntity:function(){return O.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.t("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.D(_.F,{cond:function(){return _.q(O.data().dislikeButtonViewModel,_.uN)},
then:function(C){return _.D(_.$w,{data:C,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
GN4.idomCompat=!0;_.wP(GN4,"segmented-like-dislike-button-view-model",{props:{data:_.Ld,className:_.Ld}});var FV$=_.K(function(O){var x=O.data;var e=O.className;var l=O.setMinWidth;var C=O.forceIconOnly;var Q=_.Q5("account-link-button-view-model"),L=_.L5(_.yk7,function(){var Z;return(Z=x().accountLinkStatusEntityKey)!=null?Z:""}),k=_.L5(_.yk7,function(){var Z;
return(Z=x().accountLinkStatusSecondaryEntityKey)!=null?Z:""}),M=function(){if(!_.t("web_account_link_secondary_killswitch")){var Z,E;
return((Z=L())==null?void 0:Z.linked)||((E=k())==null?void 0:E.linked)}var P;return(P=L())==null?void 0:P.linked};
_.uo(function(){var Z=L();if(Z){var E=MoL(new Ax$,Lwd(new Tx2,!!Z.linked));_.xp().then(function(P){P&&(P.setAccountLinkState(_.zX(E.JSC$12316_serializeBinary(),4)),P.updateAccountLinkingConfig(!!Z.linked))})}},"IvZF7");
var G=function(){return _.q(x().toggleButtonViewModel,_.iN)};
_.Cw("yt-signal-action-show-account-link-dialog",function(){if(G()){var Z=M()?G().toggledButtonViewModel:G().defaultButtonViewModel;Z=_.q(Z,_.gf);var E;if((E=L())==null?0:E.isWarning){E=_.q(x().warningButtonViewModel,_.gf);if(!E){_.OC(Error("Kh"));return}Z=E}var P;(E=_.p_((P=Z)==null?void 0:P.onTap))&&_.OO([E],Q.value)}else _.OC(Error("Lh"))});
var X=function(){var Z=G();return Object.assign({},Z,{isToggled:M()})},y=function(){return(C==null?0:C())?{iconPosition:"icon-only"}:{}};
return _.D("account-link-button-view-model",{class:_.xz("ytwAccountLinkButtonViewModelHost",e,function(){return(l==null?0:l())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:Q,"button-renderer":!0},_.D("div",null,_.D(_.F,{cond:function(){var Z;if((Z=L())==null?0:Z.isWarning)return(Z=_.q(x().warningButtonViewModel,_.gf))||_.OC(Error("Kh")),Z},
then:function(Z){return _.D(_.RV,{data:Z,buttonOverrides:y})},
else:function(){return _.D(_.Jc,{data:X,buttonShapeOverrides:y})}})))},"Aa");_.wP(FV$,"account-link-button-view-model",{props:{data:_.Ld,className:_.vs,setMinWidth:_.vs,forceIconOnly:_.vs}});_.tI("menuRenderer","menuRenderer","ytd-menu-renderer");
var X54={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"}},
oJ$=_.t("web_fix_missing_action_buttons")?100:200,Oq=function(){var O=_.a.apply(this,arguments)||this;O.safeArea=!_.t("kevlar_flex_menu_safe_area_killswitch");O.tonalOverride=!1;O.threeDotSize="M";O.isOverlay=!1;O.useOverlayDark=!1;O.topLevelIconsOnly=!1;O.JSC$14799_lastWidth=0;O.maybeUpdateFlexibleMenu=function(){_.t("web_fix_missing_action_buttons")?requestAnimationFrame(O.maybeUpdateFlexibleMenuImpl):O.maybeUpdateFlexibleMenuImpl()};
O.maybeUpdateFlexibleMenuImpl=function(){var x;if((x=O.data)!=null&&x.flexibleItems){O.maybeFlushDebouncer();x=O.hostElement.clientWidth;var e=x>O.JSC$14799_lastWidth,l,C=((l=O.topLevelButtonsContainer)==null?void 0:l.scrollHeight)||0,Q;l=((Q=O.flexibleItemButtonsContainer)==null?void 0:Q.scrollHeight)||0;Q=O.hostElement.scrollHeight>Math.max(C,l)+8;e?(O.resetFlexibleItems(),O.JSC$14799_lastWidth=O.hostElement.clientWidth,O.maybeUpdateFlexibleMenu()):Q&&(O.shrinkFlexibleMenu(),O.JSC$14799_lastWidth=
x)}};
O.computeThreeDotButtonShape=function(){if(O.tonalOverride)return Object.assign({},{onTap:function(){O.onOverflowTap()},
iconPosition:"icon-only",style:O.isOverlay?O.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:O.threeDotSize,state:"active",accessibilityLabel:O.computeAccessibilityLabel(O.data)},O.threeDotButtonOverride)};
O.onOverflowTap=function(){if(O.data.fetchMenuCommand)_.GG().resolve(_.Xc).resolveCommand(O.data.fetchMenuCommand,{form:{element:O.hostElement}});else if(O.data.isDisabled&&O.data.disabledCommand)_.C_(O.data.disabledCommand,O.hostElement);else{var x=O.createMenuRendererVe(),e={items:O.items};O.data.menuPopupAccessibility&&(e.menuPopupAccessibility=O.data.menuPopupAccessibility);O.data.footer&&(e.footer=O.data.footer);x={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:e},veData:x}};
_.GG().resolve(_.fj).openSheet({openPopupActionCommand:x},O.hostElement)}};
return O};
_.c(Oq,_.a);_.b=Oq.prototype;_.b.updateButtonOverrides=function(){if(!_.t("menu_renderer_label_update_upkillswitch")){var O=_.$U(this.hostElement).querySelector("yt-button-view-model");O&&(O.buttonOverrides=this.buttonOverrides)}};
_.b.computeHasItems=function(){var O;return((O=this.topLevelButtonData)==null?void 0:O.length)||this.hasFlexibleItems};
_.b.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.b.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.lH(this.hostElement,{"--ytd-menu-renderer-button-color":_.UA(this.data.iconColor)}))};
_.b.onStamperFinished=function(){this.JSC$14799_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.b.setupFlexibleMenu=function(){var O=this,x;(x=this.data)!=null&&x.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.QI(this.maybeUpdateFlexibleMenu,oJ$,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){O.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))};
_.b.maybeFlushDebouncer=function(){if(_.t("web_replace_formatted_with_attributed_string")){var O;(O=this.topLevelButtons)==null||O.forEach(function(e){var l;(e=(l=e.getElementsByTagName("yt-attributed-string"))==null?void 0:l[0])&&p0r(e)});
var x;(x=this.flexibleItemButtons)==null||x.forEach(function(e){var l;(e=(l=e.getElementsByTagName("yt-attributed-string"))==null?void 0:l[0])&&p0r(e)})}};
_.b.resetFlexibleItems=function(){var O;if((O=this.data)!=null&&O.flexibleItems){_.t("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var x;this.flexAsTopLevelButtons=(x=this.data.flexibleItems)==null?void 0:x.map(function(e){return _.q(e,_.vad).topLevelButton});
_.t("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.b.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.b.shrinkFlexibleMenu=function(){var O;(O=this.flexAsTopLevelButtons)!=null&&O.length&&(this.flexAsTopLevelButtons=[].concat(_.Kx(this.flexAsTopLevelButtons.slice(0,-1))))};
_.b.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:X54,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:X54,events:!0}}};
_.b.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.b.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.b.detached=function(){this.icon="MORE_VERT"};
_.b.computeTopLevelButtonData=function(O){if(!O)return[];var x;O=(x=O==null?void 0:O.topLevelButtons)!=null?x:[];return _.HX.unsafeClone([].concat(_.Kx(O)))};
_.b.computeItems=function(O,x){if(!O)return[];var e=[];if(x){var l=(O.flexibleItems||[]).map(function(L){return _.q(L,_.vad)});
l=_.T(l);for(var C=l.next();!C.done;C=l.next())C=C.value,x.includes(C.topLevelButton)||(C=C.menuItem)&&e.push(C)}var Q;O=(Q=O==null?void 0:O.items)!=null?Q:[];return[].concat(_.Kx(e),_.Kx(O))};
_.b.computeMenuActive=function(O,x){return O||x};
_.b.onPopupOpened=function(){this.overlayOpen=!0;_.wr(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.b.onPopupClosed=function(){this.overlayOpen=!1;_.wr(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.b.onPopupCanceled=function(){this.overlayOpen=!1;_.wr(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.b.computeAccessibilityLabel=function(O){return this.get("accessibility.accessibilityData.label",O)};
_.b.isHidden=function(O,x){return this.tonalOverride||!O?!0:O.fetchMenuCommand||O.isDisabled&&O.disabledCommand?!1:!(x==null?0:x.length)};
_.b.isModernOverflowHidden=function(O,x){return this.tonalOverride&&O?O.fetchMenuCommand?!1:!(x==null?0:x.length):!0};
_.b.createMenuRendererVe=function(){var O=this.data.trackingParams,x=_.Pq(),e=_.q9();return O&&x&&e?(O=_.Fv(O),e=_.O9(7591),_.t("combine_ve_grafts")?_.qK(_.k0(),e,O):_.WU(x,O,e),e):null};
_.Dy.Object.defineProperties(Oq.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.flexAsTopLevelButtons)==null||!O.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Oq.prototype.onPopupCanceled=Oq.prototype.onPopupCanceled;Oq.prototype.onPopupClosed=Oq.prototype.onPopupClosed;Oq.prototype.onPopupOpened=Oq.prototype.onPopupOpened;Oq.prototype.tonalOverrideChanged=Oq.prototype.tonalOverrideChanged;Oq.prototype.resetFlexibleItems=Oq.prototype.resetFlexibleItems;Oq.prototype.setupFlexibleMenu=Oq.prototype.setupFlexibleMenu;Oq.prototype.iconButtonColorChanged=Oq.prototype.iconButtonColorChanged;Oq.prototype.updateButtonOverrides=Oq.prototype.updateButtonOverrides;
_.B([_.V(_.FY),_.v("design:type",Object)],Oq.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#button-shape"),_.v("design:type",HTMLElement)],Oq.prototype,"buttonShape",void 0);_.B([_.kX("#button"),_.v("design:type",Object)],Oq.prototype,"button",void 0);
_.B([_.R(),_.v("design:type",Object)],Oq.prototype,"data",void 0);_.B([_.R({computed:"computeTopLevelButtonData(data)"}),_.v("design:type",Array)],Oq.prototype,"topLevelButtonData",void 0);_.B([_.R(),_.v("design:type",Array)],Oq.prototype,"flexAsTopLevelButtons",void 0);_.B([_.R({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.v("design:type",Array)],Oq.prototype,"items",void 0);_.B([_.R({value:"MORE_VERT"}),_.v("design:type",String)],Oq.prototype,"icon",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Oq.prototype,"safeArea",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.v("design:type",Boolean)],Oq.prototype,"menuActive",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oq.prototype,"menuFocused",void 0);_.B([_.R({value:"bottom"}),_.v("design:type",String)],Oq.prototype,"buttonTooltipPosition",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oq.prototype,"overlayOpen",void 0);
_.B([_.R({value:!0}),_.v("design:type",Boolean)],Oq.prototype,"forceIconButton",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oq.prototype,"styleActionButton",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oq.prototype,"disableTextTransformOnButtons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Oq.prototype,"tonalOverride",void 0);_.B([_.R(),_.v("design:type",Object)],Oq.prototype,"threeDotSize",void 0);
_.B([_.R(),_.v("design:type",Object)],Oq.prototype,"threeDotButtonOverride",void 0);_.B([_.R(),_.v("design:type",Object)],Oq.prototype,"isOverlay",void 0);_.B([_.R(),_.v("design:type",Object)],Oq.prototype,"useOverlayDark",void 0);_.B([_.R({computed:"computeButtonOverride(tonalOverride)"}),_.v("design:type",Object)],Oq.prototype,"buttonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Oq.prototype,"hasCustomIconColor",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("flexAsTopLevelButtons"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oq.prototype,"hasFlexibleItems",null);_.B([_.R({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.v("design:type",Boolean)],Oq.prototype,"hasItems",void 0);_.B([_.R(),_.v("design:type",Object)],Oq.prototype,"topLevelIconsOnly",void 0);
_.B([_.T1("topLevelIconsOnly"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"updateButtonOverrides",null);_.B([_.p("topLevelIconsOnly"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oq.prototype,"buttonOverrides",null);_.B([_.kX("#top-level-buttons-computed"),_.v("design:type",HTMLElement)],Oq.prototype,"topLevelButtonsContainer",void 0);_.B([_.AY(".top-level-buttons > *"),_.v("design:type",Array)],Oq.prototype,"topLevelButtons",void 0);
_.B([_.kX("#flexible-item-buttons"),_.v("design:type",HTMLElement)],Oq.prototype,"flexibleItemButtonsContainer",void 0);_.B([_.AY("#flexible-item-buttons > *"),_.v("design:type",Array)],Oq.prototype,"flexibleItemButtons",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"iconButtonColorChanged",null);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"setupFlexibleMenu",null);_.B([_.G1("topLevelIconsOnly"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"resetFlexibleItems",null);_.B([_.T1("tonalOverride"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"tonalOverrideChanged",null);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"onPopupOpened",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"onPopupClosed",null);_.B([_.bH("yt-popup-canceled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oq.prototype,"onPopupCanceled",null);
_.n(Oq,"ytd-menu-renderer",function(){if(zSd===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);zSd=O}O=zSd;return O},{mode:2});var ymk;var ZPR;_.xR=_.K(function(O){var x=O.data;var e=function(){if(x().icon)a:{var l={iconName:x().icon};for(var C=_.GG().resolve(_.ef),Q=_.T([12,24]),L=Q.next();!L.done;L=Q.next()){var k=L.value;L=Object.assign({},l,{iconStyle:"youtube_fill",iconSize:k});k=Object.assign({},l,{iconStyle:"youtube_outline",iconSize:k});if(C.resolveIcon(L)){l=L;break a}if(C.resolveIcon(k)){l=k;break a}}l=void 0}else l=void 0;return l};
O={};return _.D("badge-shape",{class:_.xz("yt-badge-shape",function(){return ckN(x().type)},(O["yt-badge-shape--overlay"]=function(){return x().isOverlay},O["yt-badge-shape--ads-include-dot"]=function(){return x().adsIncludeDot},O["yt-badge-shape--thumbnail-badge"]=function(){a:switch(x().type){case 17:case 18:case 19:var l=!0;
break a;default:l=!1}return l},O["yt-badge-shape--status-badge"]=function(){a:switch(x().type){case 12:case 13:case 14:case 15:case 16:var l=!0;
break a;default:l=!1}return l},O["yt-badge-shape--no-text"]=function(){return!x().text},O["yt-badge-shape--modern"]=function(){return x().modern||_.t("web_modern_badge_shape")},O)),
style:_.T7({"background-color":function(){var l;return(l=x().customColors)==null?void 0:l.backgroundColor}}),
role:function(){return x().accessibilityText?"img":void 0},
"aria-label":function(){return x().accessibilityText}},_.D(_.F,{cond:function(){return x().animation},
then:function(l){return _.D(_.hc,{className:"yt-badge-shape__icon",data:l,animationName:function(){return l().animationConfig.name||""}})}}),_.D(_.F,{cond:function(){var l;
return e()&&!((l=x())==null?0:l.animation)},
then:function(){return _.D("div",{class:"yt-badge-shape__icon"},_.D(fF$,{data:function(){return e()}}))}}),_.D("div",{class:"yt-badge-shape__text"},function(){var l;
return(l=x())==null?void 0:l.text}))},"Ba");
_.xR.idomCompat=!0;_.wP(_.xR,"badge-shape",{props:{data:_.Ld}});var eQ=function(){var O=_.a.apply(this,arguments)||this;O.systemIcons=_.t("kevlar_system_icons");O.animated=_.t("animated_live_badge_icon");O.useBadgeShape=_.t("web_badge_shape_defrag");return O};
_.c(eQ,_.a);_.b=eQ.prototype;_.b.addTooltips=function(){for(var O=_.$U(this.hostElement).querySelectorAll(".badge"),x=0,e;e=O[x++];){var l=this.repeatElement.itemForElement(e);e=_.$U(e);e.lastChild&&e.lastChild.is==="tp-yt-paper-tooltip"&&e.removeChild(e.lastChild);if(l=l.metadataBadgeRenderer&&l.metadataBadgeRenderer.tooltip){var C=_.F_("tp-yt-paper-tooltip");(0,_.eU)(C).textContent=l;C.setAttribute("position","top");C.setAttribute("aria-hidden","true");e.appendChild(C)}}};
_.b.badgesChanged=function(){var O=this;_.O2().parkOrScheduleJob(function(){O.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.b.standaloneRoundedBadgeChanged=function(){var O=this.useRoundedBadge?this.useRoundedBadge:void 0;O&&(this.useRoundedBadge=O)};
_.b.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.b.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.b.computeStyle=function(O){_.t("enable_html5_teal_ad_badge")&&O==="BADGE_STYLE_TYPE_AD"&&(O="badge-style-type-ad-alternate");_.t("kevlar_ytb_live_badges")&&O==="BADGE_STYLE_TYPE_LIVE_NOW"&&(O="badge-style-type-live-now-alternate");return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeRole=function(O){return this.computeAriaLabel(O)?"img":"status"};
_.b.computeAriaLabel=function(O){var x;return(O==null?void 0:(x=O.accessibilityData)==null?void 0:x.label)||(O==null?void 0:O.label)};
_.b.computeBadgeShape=function(O){if(O){var x,e;var l=qP$(O.style);var C=PBL(O.style),Q=O.label,L=((x=O.accessibilityData)==null?void 0:x.label)||O.label;a:switch(O.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":x=!0;break a;default:x=!1}var k=(e=O.icon)==null?void 0:e.iconType;a:switch(O.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":O=!0;break a;default:O=!1}l={type:l,brNzRatingBadgeType:C,text:Q,accessibilityText:L,
isOverlay:x,icon:k!=="PREMIUM"?k:void 0,modern:_.t("web_modern_badge_view_model"),adsIncludeDot:O}}else l={};return l};
_.b.updateComputedBadges=function(O,x,e){var l=this;(x=x?[x]:e?[e]:void 0)?this.computedBadges=x:this.computedBadges=O==null?void 0:O.filter(function(C){var Q;if((Q=C.metadataBadgeRenderer)==null?0:Q.groups){Q=!1;C=_.T(C.metadataBadgeRenderer.groups);for(var L=C.next();!L.done;L=C.next()){L=L.value;var k=void 0;Q=Q||((k=l.hiddenBadgeGroups)==null?void 0:k.includes(L))}return!Q}return!0})};
_.b.useFilledIcons=function(O){return _.t("kevlar_system_icons")&&(O==="AUDIO_BADGE"||O==="CHECK_CIRCLE_THICK"||O==="OFFICIAL_ARTIST_BADGE"||O==="SPONSORSHIP_STAR"||O==="PERSON_RADAR_FILLED"||O==="PERSON_RADAR")};
_.b.computeBadgeShapeStyle=function(O){return this.useBadgeShape?O==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||O==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.b.computeIcon=function(O){var x,e;O=O==null?void 0:(x=O.metadataBadgeRenderer)==null?void 0:(e=x.icon)==null?void 0:e.iconType;if(O!=="PREMIUM"&&O)return _.x0(O)};
_.b.computeStandaloneBadge=function(O){var x;O=O==null?void 0:(x=O.icon)==null?void 0:x.iconType;return O==="PREMIUM_STANDALONE"||O==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
eQ.prototype.hiddenBadgeGroupsChanged=eQ.prototype.hiddenBadgeGroupsChanged;eQ.prototype.standaloneBadgeChanged=eQ.prototype.standaloneBadgeChanged;eQ.prototype.standaloneRoundedBadgeChanged=eQ.prototype.standaloneRoundedBadgeChanged;eQ.prototype.badgesChanged=eQ.prototype.badgesChanged;_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"hidden",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],eQ.prototype,"componentBehavior",void 0);
_.B([_.R(),_.v("design:type",Array)],eQ.prototype,"badges",void 0);_.B([_.R(),_.v("design:type",Object)],eQ.prototype,"topStandaloneBadge",void 0);_.B([_.R(),_.v("design:type",Object)],eQ.prototype,"bottomStandaloneBadge",void 0);_.B([_.R(),_.v("design:type",Object)],eQ.prototype,"computedBadges",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"mediumFontAdBadge",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"useRoundedBadge",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"largeFontAdBadge",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"overlayAd",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"overlayPremium",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"noDotAdBadge",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"collectionTruncate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"isThumbnailBadge",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eQ.prototype,"wrapBadges",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Number)],eQ.prototype,"numBadgesInRow",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eQ.prototype,"systemIcons",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eQ.prototype,"animated",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eQ.prototype,"useBadgeShape",void 0);_.B([_.R({value:[]}),_.v("design:type",Array)],eQ.prototype,"hiddenBadgeGroups",void 0);_.B([_.kX("#repeat"),_.v("design:type",qQ)],eQ.prototype,"repeatElement",void 0);_.B([_.G1("badges"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eQ.prototype,"badgesChanged",null);
_.B([_.G1("useRoundedBadge"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eQ.prototype,"standaloneRoundedBadgeChanged",null);_.B([_.G1("topStandaloneBadge","bottomStandaloneBadge"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eQ.prototype,"standaloneBadgeChanged",null);_.B([_.G1("hiddenBadgeGroups"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eQ.prototype,"hiddenBadgeGroupsChanged",null);
_.B([_.H({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],eQ);
var EJL=_.NQ()(eQ,"ytd-badge-supported-renderer",function(){if(ZPR===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);ZPR=O}O=ZPR;return O},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.gq("kevlar_poly_si_batch_j053")?1:2});var ll=function(){var O=_.a.apply(this,arguments)||this;O.iconType="STAR";O.standardizeIconSize=_.t("kevlar_system_icons");O.mediaHoverOverlayInitialVisibility=_.t("enable_top_landscape_image_button_command_web");O.noBottomMargin=!1;O.thumbnailObjectFit="CONTAIN";O.thumbnailFitHeight=!0;O.actionMap={"yt-mute-ad-action":"handleMuteAd"};return O};
_.c(ll,_.a);_.b=ll.prototype;
_.b.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"}}}};
_.b.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",ll.JSC$14811_DEFAULT_CLICK_LOCATION_BEHAVIOR,ll.JSC$14811_CLICK_LOCATION_ID_MAP))};
_.b.onTap=function(O){this.onTapOrClick(O)};
_.b.onTapOrClick=function(O){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,O,!1)};
_.b.updateMediaBackgroundImage=function(){var O=this.get("data.image.thumbnail.thumbnails");O&&(O=_.Sf(O,0))&&_.lH(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+O+")"})};
_.b.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var O=0;O<this.data.impressionEndpoints.length;O++){var x=this.data.impressionEndpoints[O];x.clickTrackingParams&&delete x.clickTrackingParams;_.GG().resolve(_.Xc).resolveCommand(x,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var e;((e=this.data)==null?0:e.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.b.handleMuteAd=function(){};
_.b.attached=function(){var O=this;_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.b.detached=function(){_.t("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Dy.Object.defineProperties(ll.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.titleText)return"";var x;return _.CZ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((x=this.data)==null?void 0:x.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.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 O;return!((O=this.data)==null||!O.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"}}});
ll.prototype.onTap=ll.prototype.onTap;ll.prototype.dataChanged=ll.prototype.dataChanged;
ll.JSC$14811_CLICK_LOCATION_ID_MAP=_.t("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"]]);
ll.JSC$14811_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.t("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"}];_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.xw),_.v("design:type",Object)],ll.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],ll.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],ll.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.V(g_),_.v("design:type",Object)],ll.prototype,"ytdActiveViewBehavior",void 0);_.B([_.V([_.Wt.YtActionHandlerBehavior]),_.v("design:type",Object)],ll.prototype,"actionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],ll.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ll.prototype,"clickCommand",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],ll.prototype,"miniMode",void 0);_.B([_.R(),_.v("design:type",String)],ll.prototype,"iconType",void 0);_.B([_.p("data.titleText"),_.v("design:type",String),_.v("design:paramtypes",[])],ll.prototype,"titleAriaLabel",null);
_.B([_.p("data.rating"),_.v("design:type",Object),_.v("design:paramtypes",[])],ll.prototype,"getRating",null);_.B([_.p("data.price"),_.v("design:type",Object),_.v("design:paramtypes",[])],ll.prototype,"getPrice",null);_.B([_.p("data.thirdLine"),_.v("design:type",Object),_.v("design:paramtypes",[])],ll.prototype,"getThirdLine",null);_.B([_.p("data.fourthLine"),_.v("design:type",Object),_.v("design:paramtypes",[])],ll.prototype,"getFourthLine",null);
_.B([_.p("data.fifthLine"),_.v("design:type",Object),_.v("design:paramtypes",[])],ll.prototype,"getFifthLine",null);_.B([_.p("getRating"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"computeRatingHidden",null);_.B([_.p("getPrice"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"computePriceHidden",null);_.B([_.p("getThirdLine"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"computeThirdLineHidden",null);
_.B([_.p("getFourthLine"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"computeFourthLineHidden",null);_.B([_.p("getFifthLine"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"computeFifthLineHidden",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.energyIcon"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"hasEnergyIcon",null);
_.B([_.p("computePriceHidden","computeRatingHidden"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"computeSecondaryTextHidden",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ll.prototype,"standardizeIconSize",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ll.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ll.prototype,"noBottomMargin",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data.layout"),_.v("design:type",String),_.v("design:paramtypes",[])],ll.prototype,"layout",null);_.B([_.p("data.layout"),_.v("design:type",Object),_.v("design:paramtypes",[])],ll.prototype,"mediaThumbnailWidth",null);_.B([_.p("layout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ll.prototype,"useRoundedBadge",null);_.B([_.R(),_.v("design:type",String)],ll.prototype,"thumbnailObjectFit",void 0);
_.B([_.R(),_.v("design:type",Object)],ll.prototype,"thumbnailFitHeight",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ll.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],ll.prototype,"onTap",null);_.B([_.H({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],ll);
_.n(ll,"ytd-display-ad-renderer",function(){if(ymk!==void 0)return ymk;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ymk=O},{mode:1});var tkD;var qs$;var P1F;var I$8=new Map;var cmp=!1;var Cz=function(){var O=_.a.apply(this,arguments)||this;O.DEFAULT_TOOLTIP_OFFSET="10";O.TOOLTIP_OFFSET_NO_BANNER="-8";O.badges=null;O.noEndpoints=!1;O.wrapText=!1;O.forceVerified=!1;O.tooltipPosition="top";O.compactStyle=!1;O.height=0;O.lineHeight=0;return O};
_.c(Cz,_.a);_.b=Cz.prototype;_.b.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.b.attached=function(){var O=this;this.observer=new MutationObserver(function(x,e){O.handleResized();e.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.b.detached=function(){this.observer&&this.observer.disconnect()};
_.b.logTooltipEvent=function(){_.t("kevlar_wiz_tooltip_event_killswitch")||cmp||(_.V9L("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),cmp=!0)};
_.b.handleWindowResized=function(){this.handleResized()};
_.b.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")))};
_.b.onHeightChanged=function(){if(this.verified){var O=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.wz("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=O:this.textContainerEl.style.marginRight=O}};
_.b.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.wz("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.b.handleResized=function(){var O=this;this.verified&&_.vn.addLowPriorityJob(function(){O.fitBackgroundToText();var x=getComputedStyle(O.hostElement).lineHeight;x&&(x=x.match(/\d+/))&&x.length&&(O.lineHeight=Number(x[0]));O.height=O.lineHeight&&!O.wrapText?O.lineHeight:O.textEl.offsetHeight})};
_.b.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var O=document.createRange(),x=_.$U(this.textEl).children;x.length>0?O.selectNodeContents(x[0]):O.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(O.getBoundingClientRect().width)+"px"}};
_.b.computeChannelBadgeStyle=function(O){var x;if((O==null?0:(x=O.runs)==null?0:x.length)&&O.runs[0].textColor)return"--ytd-badge-icon-color:"+_.UA(O.runs[0].textColor)+";"};
_.Dy.Object.defineProperties(Cz.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"?_.KA(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var O=this.get("badges.0.metadataBadgeRenderer.tooltip");if(O)return O}return _.db(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Cz.prototype.onLineHeightChanged=Cz.prototype.onLineHeightChanged;Cz.prototype.onHeightChanged=Cz.prototype.onHeightChanged;Cz.prototype.onChannelNameChanged=Cz.prototype.onChannelNameChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"badges",void 0);_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"channelName",void 0);
_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"noEndpoints",void 0);_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"wrapText",void 0);_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"forceVerified",void 0);_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"tooltipPosition",void 0);_.B([_.R(),_.v("design:type",String)],Cz.prototype,"tooltip",void 0);_.B([_.R(),_.v("design:type",Boolean)],Cz.prototype,"hasChannelArt",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Cz.prototype,"compactStyle",void 0);_.B([_.kX("#text-container"),_.v("design:type",HTMLElement)],Cz.prototype,"textContainerEl",void 0);_.B([_.kX("#text"),_.v("design:type",Object)],Cz.prototype,"textEl",void 0);_.B([_.kX("#verified-tooltip"),_.v("design:type",HTMLElement)],Cz.prototype,"verifiedTooltip",void 0);_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"height",void 0);
_.B([_.R(),_.v("design:type",Object)],Cz.prototype,"lineHeight",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("badges","forceVerified"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Cz.prototype,"verified",null);_.B([_.p("badges","verified"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Cz.prototype,"hideBadges",null);_.B([_.p("channelName"),_.v("design:type",Object),_.v("design:paramtypes",[])],Cz.prototype,"formattedName",null);
_.B([_.p("badges","verified","formattedName"),_.v("design:type",String),_.v("design:paramtypes",[])],Cz.prototype,"tooltipText",null);_.B([_.p("hasChannelArt"),_.v("design:type",String),_.v("design:paramtypes",[])],Cz.prototype,"tooltipOffset",null);_.B([_.T1("channelName"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Cz.prototype,"onChannelNameChanged",null);
_.B([_.T1("height"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Cz.prototype,"onHeightChanged",null);_.B([_.T1("lineHeight","height"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Cz.prototype,"onLineHeightChanged",null);_.B([_.H({is:"ytd-channel-name",disableElementRegistration:!0})],Cz);
_.n(Cz,"ytd-channel-name",function(){if(P1F!==void 0)return P1F;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return P1F=O},{mode:_.gq("kevlar_poly_si_batch_j036")?1:2});var Qb=function(){var O=_.a.apply(this,arguments)||this;O.standardizeIconSize=_.t("kevlar_system_icons");return O};
_.c(Qb,_.a);Qb.prototype.basicPaletteChanged=function(){var O;(O=this.data.color)!=null&&O.basicColorPaletteData&&_.Zl(this.hostElement,this.data.color.basicColorPaletteData)};
Qb.prototype.useFilledIcons=function(O){return _.t("kevlar_system_icons")&&(O==="CHECK_CIRCLE_THICK"||O==="OFFICIAL_ARTIST_BADGE")};
_.Dy.Object.defineProperties(Qb.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return this.data.authorCreator||((O=this.data)==null?void 0:(x=O.color)==null?void 0:(e=x.basicColorPaletteData)==null?void 0:e.backgroundColor)}}});
Qb.prototype.basicPaletteChanged=Qb.prototype.basicPaletteChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Qb.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Qb.prototype,"standardizeIconSize",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.authorUnifiedVerified"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qb.prototype,"verified",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qb.prototype,"creator",null);_.B([_.T1("data.color.basicColorPaletteData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Qb.prototype,"basicPaletteChanged",null);_.B([_.H({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Qb);
_.n(Qb,"ytd-author-comment-badge-renderer",function(){if(qs$!==void 0)return qs$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return qs$=O},{mode:1});var IUT;var bl=function(){return _.a.apply(this,arguments)||this};
_.c(bl,_.a);bl.prototype.computeThumbnailWidth=function(O){if(O==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],bl.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",String)],bl.prototype,"icon",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],bl.prototype,"surface",void 0);
_.B([_.R({reflectToAttribute:!0,value:_.t("enable_shrink_image_size_on_web_posts_singleton")}),_.v("design:type",Boolean)],bl.prototype,"searchSxsUx",void 0);_.B([_.R({reflectToAttribute:!0,value:_.t("enable_community_page_on_desktop")}),_.v("design:type",Boolean)],bl.prototype,"useSmallerPostImageAttachments",void 0);_.B([_.H({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],bl);
_.n(bl,"ytd-backstage-image-renderer",function(){if(IUT!==void 0)return IUT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return IUT=O},{mode:1});var VkT;var Tx=function(){var O=_.a.apply(this,arguments)||this;O.isLoading=!1;O.selectedItemIndex=-1;return O};
_.c(Tx,_.a);_.b=Tx.prototype;_.b.computeIsChannelOwner=function(O){if(!O)return!0;O=O[0];return!(O&&(O.signinEndpoint||O.selectServiceEndpoint))};
_.b.computeIsImagePoll=function(O){return(O==null?void 0:O.type)==="POLL_TYPE_IMAGE"};
_.b.computeIsTotalVotesDisabled=function(O){return!(O==null?0:O.totalVotes)};
_.b.thumbnailSrc=function(O){var x,e,l,C;return(O==null?0:(x=O.thumbnails)==null?0:(e=x[0])==null?0:e.url)?_.Yy((l=O.thumbnails)==null?void 0:(C=l[0])==null?void 0:C.url):void 0};
_.b.progressWidth=function(O){return"width:"+(O?O*100:0)+"%;"};
_.b.textAreaWidth=function(O){return this.isImagePoll?null:"width:"+(O?O*100:0)+"%;"};
_.b.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.b.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var O=this.data.choices,x=0;x<O.length;x++)if(O[x].selected){this.selectedItemIndex=x;break}};
_.b.onPopupClosed=function(O,x){O=Number(this.pollVotes.selected);x.confirmed&&(this.selectChoice(O,!1),_.Sh(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.b.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.b.onYtCommentPollRevert=function(O,x){x&&(this.selectChoice(x.selectedChoiceIndex,!0),this.set("data.totalVotes",x.totalVotes))};
_.b.onYtServiceRequestSent=function(O,x){if(x.actions)for(O=0;O<x.actions.length;O++){var e=x.actions[O];_.q(e,Ul)&&this.set("data.totalVotes",_.q(e,Ul).totalVotes)}};
_.b.onYtServiceRequestCompleted=function(O){var x=this.get("detail.data.actionResults.0.feedback",O);O=this.get("detail.data.actionResults.0.status",O);if(x==="FEEDBACK_DESELECT"||x==="FEEDBACK_SELECT")this.isLoading=!1,O==="STATUS_FAILED"?_.wr(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.b.getEndpoint=function(O,x){return x===O?this.data.choices[x].deselectServiceEndpoint||null:this.data.choices[O].selectServiceEndpoint||null};
_.b.selectChoice=function(O,x){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var e=0;e<this.data.choices.length;e++){var l;if(O===this.selectedItemIndex){var C=!1;var Q=l=null}else l=(C=e===O)?this.data.choices[e].voteRatioIfSelected:this.data.choices[e].voteRatioIfNotSelected,Q=C?this.data.choices[e].votePercentageIfSelected:this.data.choices[e].votePercentageIfNotSelected;this.set("data.choices."+e+".voteRatio",l);
this.set("data.choices."+e+".votePercentage",Q);this.set("data.choices."+e+".selected",C)}x||(this.isLoading=!0,(x=this.getEndpoint(O,this.selectedItemIndex))&&_.GG().resolve(_.Xc).resolveCommand(x,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===O?-1:O};
_.Dy.Object.defineProperties(Tx.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Tx.prototype.onYtServiceRequestCompleted=Tx.prototype.onYtServiceRequestCompleted;Tx.prototype.onYtServiceRequestSent=Tx.prototype.onYtServiceRequestSent;Tx.prototype.onYtCommentPollRevert=Tx.prototype.onYtCommentPollRevert;Tx.prototype.onPopupClosed=Tx.prototype.onPopupClosed;Tx.prototype.dataChanged=Tx.prototype.dataChanged;_.B([_.V(_.iz),_.v("design:type",Object)],Tx.prototype,"paperItemBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],Tx.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Tx.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Tx.prototype,"isLoading",void 0);_.B([_.R({computed:"computeIsChannelOwner(data.choices)"}),_.v("design:type",Boolean)],Tx.prototype,"isChannelOwner",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.v("design:type",Boolean)],Tx.prototype,"isImagePoll",void 0);_.B([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.v("design:type",Boolean)],Tx.prototype,"isTotalVotesDisabled",void 0);_.B([_.R(),_.v("design:type",Object)],Tx.prototype,"previousPollInfo",void 0);_.B([_.R(),_.v("design:type",Object)],Tx.prototype,"selectedItemIndex",void 0);_.B([_.kX("#poll-votes"),_.v("design:type",Object)],Tx.prototype,"pollVotes",void 0);
_.B([_.p("isChannelOwner"),_.v("design:type",Object),_.v("design:paramtypes",[])],Tx.prototype,"endpointStyle",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Tx.prototype,"dataChanged",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Tx.prototype,"onPopupClosed",null);
_.B([_.bH("yt-comment-poll-revert"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Tx.prototype,"onYtCommentPollRevert",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],Tx.prototype,"onYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Tx.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Tx);
_.n(Tx,"ytd-backstage-poll-renderer",function(){if(VkT!==void 0)return VkT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return VkT=O},{mode:2});var p5T;var Rdp={autoplay:!1,loop:!1},Ufd={simpleText:""},Lz=function(){var O=_.a.apply(this,arguments)||this;O.isLoading=!1;O.usesPanelLockup=!1;O.selectedItemIndex=-1;O.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Rdp,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});O.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Rdp,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});O.correctnessAnimationProps=[];O.correctnessAnimationRefs=[];return O};
_.c(Lz,_.a);_.b=Lz.prototype;_.b.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.b.computeIsChannelOwner=function(O){if(!O)return!0;O=O[0];return!(O&&(O.signinEndpoint||O.selectServiceEndpoint))};
_.b.computeIsTotalVotesDisabled=function(O){return!(O==null?0:O.totalVotes)};
_.b.computeIsImageQuiz=function(O){return(O==null?void 0:O.type)==="POLL_TYPE_IMAGE"};
_.b.onExplanationChanged=function(){this.expander.reset()};
_.b.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var O=this.data.choices;if(O){this.maybeInitializeQuizLotties(O);for(var x=0;x<O.length;x++)if(O[x].isSelected||this.isChannelOwner&&O[x].isCorrect){this.selectedItemIndex=x;return}this.selectedItemIndex=-1}}};
_.b.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var O=this.selectedItemIndex,x=Number(this.quizVotes.selected);this.selectChoice(x);this.sendVoteAction(x,O);this.quizVotes.selected=-1;var e;O=!((e=this.data)==null?0:e.enableAnimation);this.maybePlayAnswerAnimations(O)}};
_.b.onYtCommentPollRevert=function(O,x){x&&(this.selectChoice(x.selectedChoiceIndex),this.set("data.totalVotes",x.totalVotes))};
_.b.onYtServiceRequestSent=function(O,x){if(x.actions)for(O=_.T(x.actions),x=O.next();!x.done;x=O.next())(x=_.q(x.value,Ul))&&this.set("data.totalVotes",x.totalVotes)};
_.b.onYtServiceRequestCompleted=function(O){var x=this.get("detail.data.actionResults.0.feedback",O);O=this.get("detail.data.actionResults.0.status",O);if(x==="FEEDBACK_DESELECT"||x==="FEEDBACK_SELECT")this.isLoading=!1,O==="STATUS_FAILED"?_.wr(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.b.getAnimationPropsForChoiceIndex=function(O,x){return x[O]};
_.b.maybePlayAnswerAnimations=function(O){O=O===void 0?!1:O;var x;if((x=this.data)!=null&&x.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){x=_.T(this.correctnessAnimationRefs);for(var e=x.next();!e.done;e=x.next()){var l=void 0,C=void 0;(l=e.value)==null||(C=l.lottieEl)==null||C.stop()}if(!(this.selectedItemIndex<0)){x=0;O&&(x=this.isCorrect?37:25);var Q,L;(Q=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(L=Q.lottieEl)==null||L.goToAndPlay(O?x:0,!0);if(!(this.isCorrect||
(Q=this.data.choices.findIndex(function(X){return X.isCorrect}),Q<0))){var k,M;
(M=(k=this.correctnessAnimationRefs[Q])==null?void 0:k.lottieEl)==null||M.goToAndPlay(37,!0);var G;k=(G=this.fadeContainers)==null?void 0:G.item(Q);!O&&k&&this.fadeIn(k)}}}};
_.b.thumbnailSrc=function(O){var x,e,l,C;return(O==null?0:(x=O.thumbnails)==null?0:(e=x[0])==null?0:e.url)?_.Yy((l=O.thumbnails)==null?void 0:(C=l[0])==null?void 0:C.url):void 0};
_.b.a11yVotedText=function(O,x){var e,l,C=((e=this.data)==null?void 0:(l=e.correctVotedText)==null?void 0:l.simpleText)||"",Q,L;e=((Q=this.data)==null?void 0:(L=Q.votedText)==null?void 0:L.simpleText)||"";if(!x)return"";var k,M;if((k=this.data)==null?0:(M=k.choices)==null?0:M[O].isCorrect)return C;var G,X;return((G=this.data)==null?0:(X=G.choices)==null?0:X[O].isSelected)?e:""};
_.b.getEndpoint=function(O,x){return x===O?this.data.choices[O].deselectServiceEndpoint||null:this.data.choices[O].selectServiceEndpoint||null};
_.b.sendVoteAction=function(O,x){if(O=this.getEndpoint(O,x))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(O)};
_.b.selectChoice=function(O){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var x=0;x<this.data.choices.length;x++)this.set("data.choices."+x+".isSelected",O===this.selectedItemIndex?!1:x===O);this.selectedItemIndex=this.selectedItemIndex===O?-1:O};
_.b.maybeInitializeQuizLotties=function(O){var x=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=O.map(function(e){return{animationConfig:e.isCorrect?x.baseCorrectLottiePlayerAnimationConfig:x.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){x.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(e){return e.animationRef||{}})};
_.b.fadeIn=function(O){O.classList.add("fade-in");_.$0(_.vn,function(){O.classList.remove("fade-in")},900)};
_.Dy.Object.defineProperties(Lz.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.t("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.db(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 O,x;return((O=this.data)==null?void 0:(x=O.choices)==null?void 0:x.some(function(e){return e.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null||!O.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Ufd:this.data.choices[this.selectedItemIndex].explanation||Ufd}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null||!O.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Lz.prototype.onYtServiceRequestCompleted=Lz.prototype.onYtServiceRequestCompleted;Lz.prototype.onYtServiceRequestSent=Lz.prototype.onYtServiceRequestSent;Lz.prototype.onYtCommentPollRevert=Lz.prototype.onYtCommentPollRevert;Lz.prototype.dataChanged=Lz.prototype.dataChanged;Lz.prototype.onExplanationChanged=Lz.prototype.onExplanationChanged;_.B([_.V(_.iz),_.v("design:type",Object)],Lz.prototype,"paperItemBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.GT.YtTaskEmitterBehavior),_.v("design:type",Object)],Lz.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],Lz.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Lz.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],Lz.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Object)],Lz.prototype,"usesPanelLockup",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.v("design:type",Boolean)],Lz.prototype,"isChannelOwner",void 0);_.B([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.v("design:type",Boolean)],Lz.prototype,"isTotalVotesDisabled",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.v("design:type",Boolean)],Lz.prototype,"isImageQuiz",void 0);_.B([_.R(),_.v("design:type",Object)],Lz.prototype,"previousQuizInfo",void 0);_.B([_.R(),_.v("design:type",Object)],Lz.prototype,"selectedItemIndex",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data","usesPanelLockup"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Lz.prototype,"shouldUseModernUi",null);
_.B([_.AY(".fade-container"),_.v("design:type",Object)],Lz.prototype,"fadeContainers",void 0);_.B([_.R(),_.v("design:type",Array)],Lz.prototype,"correctnessAnimationProps",void 0);_.B([_.p("explanation","showCorrectAnswer"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Lz.prototype,"showExplanation",null);_.B([_.p("isChannelOwner","isAttempted"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Lz.prototype,"showCorrectAnswer",null);
_.B([_.p("isChannelOwner","isAttempted","data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Lz.prototype,"isQuizAnsweringDisabled",null);_.B([_.p("isQuizAnsweringDisabled"),_.v("design:type",Object),_.v("design:paramtypes",[])],Lz.prototype,"endpointStyle",null);_.B([_.p("data","selectedItemIndex"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Lz.prototype,"isAttempted",null);
_.B([_.p("data","selectedItemIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],Lz.prototype,"explanation",null);_.B([_.p("data","selectedItemIndex"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Lz.prototype,"isCorrect",null);_.B([_.kX("ytd-expander"),_.v("design:type",Object)],Lz.prototype,"expander",void 0);_.B([_.kX("#quiz-votes"),_.v("design:type",Object)],Lz.prototype,"quizVotes",void 0);
_.B([_.T1("explanation"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Lz.prototype,"onExplanationChanged",null);_.B([_.T1("data","isChannelOwner"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Lz.prototype,"dataChanged",null);_.B([_.bH("yt-comment-quiz-revert"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Lz.prototype,"onYtCommentPollRevert",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],Lz.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Lz.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Lz);
_.n(Lz,"ytd-backstage-quiz-renderer",function(){if(p5T!==void 0)return p5T;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return p5T=O},{mode:1});var aUL;var kR=function(){return _.a.apply(this,arguments)||this};
_.c(kR,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kR.prototype,"data",void 0);_.B([_.H({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],kR);
_.n(kR,"ytd-post-uploaded-video-renderer",function(){if(aUL!==void 0)return aUL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return aUL=O},{mode:1});var mf3;var AM=function(){return _.a.apply(this,arguments)||this};
_.c(AM,_.a);AM.prototype.useFilledIcons=function(O){return O==="SPONSORSHIP_STAR"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],AM.prototype,"data",void 0);_.B([_.H({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],AM);
var sDJ=_.NQ()(AM,"ytd-sponsors-only-badge-renderer",function(){if(mf3===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);mf3=O}O=mf3;return O},{allowedProps:["data"],
mode:1});var WVN;var Mz=function(){return _.a.apply(this,arguments)||this};
_.c(Mz,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Mz.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Mz.prototype,"data",void 0);_.B([_.H({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Mz);
_.n(Mz,"ytd-child-video-renderer",function(){if(WVN!==void 0)return WVN;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return WVN=O},{mode:1});var hdD;var zd$;var DL=function(){var O=_.a.apply(this,arguments)||this;O.size=0;O.enableWebModernCollectionsV2=_.t("web_modern_collections_v2");O.fallbackImageSize={height:void 0,width:9999};O.webModernCollections=!1;return O};
_.c(DL,_.a);_.b=DL.prototype;_.b.computeBlurredImageSize=function(O){return O?{height:O*2,width:O*2}:this.fallbackImageSize};
_.b.computeImageSize=function(O){return O?{height:O,width:O}:this.fallbackImageSize};
_.b.computeObjectFit=function(O){return O?"FILL":"CONTAIN"};
_.b.computePreserve=function(O){return O?!0:!1};
_.b.setBackground=function(){var O,x;_.t("web_modern_collections_v2")&&((O=this.data)==null?0:(x=O.thumbnail)==null?0:x.sampledThumbnailColor)&&(O=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+O.red+","+O.green+","+O.blue+",1)")};
DL.prototype.setBackground=DL.prototype.setBackground;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],DL.prototype,"watchFeedThumbnail",void 0);_.B([_.R(),_.v("design:type",Object)],DL.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],DL.prototype,"size",void 0);
_.B([_.R({computed:"computeBlurredImageSize(size)"}),_.v("design:type",Object)],DL.prototype,"blurredImageSize",void 0);_.B([_.R({computed:"computeImageSize(size)"}),_.v("design:type",Object)],DL.prototype,"imageSize",void 0);_.B([_.R({computed:"computePreserve(size)"}),_.v("design:type",String)],DL.prototype,"preserve",void 0);_.B([_.R({computed:"computeObjectFit(size)"}),_.v("design:type",String)],DL.prototype,"objectFit",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],DL.prototype,"enableWebModernCollectionsV2",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],DL.prototype,"webModernCollections",void 0);_.B([_.T1("data.thumbnail.sampledThumbnailColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],DL.prototype,"setBackground",null);_.B([_.H({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],DL);
_.n(DL,"ytd-playlist-custom-thumbnail-renderer",function(){if(zd$!==void 0)return zd$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return zd$=O},{mode:1});var rmL;var Gx=function(){return _.a.apply(this,arguments)||this};
_.c(Gx,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Gx.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],Gx.prototype,"width",void 0);_.B([_.H({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Gx);
_.n(Gx,"ytd-playlist-video-thumbnail-renderer",function(){if(rmL!==void 0)return rmL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return rmL=O},{mode:1});var HPp;var Fs=function(){return _.a.apply(this,arguments)||this};
_.c(Fs,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Fs.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],Fs.prototype,"width",void 0);_.B([_.H({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Fs);
_.n(Fs,"ytd-show-custom-thumbnail-renderer",function(){if(HPp!==void 0)return HPp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return HPp=O},{mode:1});var KVR;var Xs=function(){return _.a.apply(this,arguments)||this};
_.c(Xs,_.a);Xs.prototype.useFilledIcons=function(O){return O==="MUSIC"||O==="COURSE"};
Xs.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=mC(this.overlayColor,"0.8");else if(this.overlayColor){var O=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+O.red+","+O.green+","+O.blue+",0.8)"}};
_.Dy.Object.defineProperties(Xs.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)}}});
Xs.prototype.overlayColorChanged=Xs.prototype.overlayColorChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Xs.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Xs.prototype,"overlayColor",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.icon","data.text"),_.v("design:type",Object),_.v("design:paramtypes",[])],Xs.prototype,"overlayStyle",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.icon","data.text"),_.v("design:type",Object),_.v("design:paramtypes",[])],Xs.prototype,"overlayTextStyle",null);_.B([_.T1("overlayColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Xs.prototype,"overlayColorChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Xs);
_.n(Xs,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(KVR!==void 0)return KVR;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return KVR=O},{mode:1});var dfd;var o0=function(){var O=_.a.apply(this,arguments)||this;O.active=!1;return O};
_.c(o0,_.a);o0.prototype.computeIsSpinnerHidden=function(O){return(O==null?void 0:O.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
o0.prototype.computeOverlayIcon=function(O){return(O==null?void 0:O.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(O==null?void 0:O.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],o0.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],o0.prototype,"active",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],o0);
_.n(o0,"ytd-thumbnail-overlay-downloading-renderer",function(){if(dfd!==void 0)return dfd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return dfd=O},{mode:1});var nJJ;var yb=function(){return _.a.apply(this,arguments)||this};
_.c(yb,_.a);_.Dy.Object.defineProperties(yb.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yb.prototype,"data",void 0);_.B([_.p("data.text"),_.v("design:type",Object),_.v("design:paramtypes",[])],yb.prototype,"text",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],yb);
_.n(yb,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(nJJ!==void 0)return nJJ;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return nJJ=O},{mode:1});var uRN,YsL=function(){if(uRN!==void 0)return uRN;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return uRN=O};var ZL=function(){return _.a.apply(this,arguments)||this};
_.c(ZL,_.a);_.Dy.Object.defineProperties(ZL,{template:{configurable:!0,enumerable:!0,get:function(){return YsL()}}});
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ZL.prototype,"animateEqualizer",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ZL);_.NQ()(ZL,"ytd-thumbnail-overlay-equalizer",function(){return YsL()},{allowedProps:["animateEqualizer"],
mode:1});var BKz;var Eq=function(){var O=_.a.apply(this,arguments)||this;O.nowPlayingBadge=_.t("web_now_playing_badge");O.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return O};
_.c(Eq,_.a);Eq.prototype.activeChanged=function(){var O=this;_.t("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.A_(this,function(){_.wr(O.hostElement,"yt-playlist-lockup-now-playing-active",O)})};
Eq.prototype.onMiniplayerPlayStateChanged=function(O){var x,e=(x=_.q(_.U7().currentEndpoint,_.Hq))==null?void 0:x.videoId;this.isVideoPlaying=O&&(_.t("web_limit_now_playing_animation_killswitch")||this.videoId===e)};
Eq.prototype.activeChanged=Eq.prototype.activeChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Eq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Eq.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],Eq.prototype,"isVideoPlaying",void 0);_.B([_.R(),_.v("design:type",String)],Eq.prototype,"videoId",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Eq.prototype,"equalizerOnly",void 0);_.B([_.R(),_.v("design:type",Boolean)],Eq.prototype,"isActive",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Eq.prototype,"nowPlayingBadge",void 0);_.B([_.T1("isActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Eq.prototype,"activeChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Eq);
_.n(Eq,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(BKz!==void 0)return BKz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return BKz=O},{mode:1});var vJz;var tM=function(){return _.a.apply(this,arguments)||this};
_.c(tM,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tM.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],tM);
_.n(tM,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(vJz!==void 0)return vJz;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return vJz=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var fUp;var qz=function(){return _.a.apply(this,arguments)||this};
_.c(qz,_.a);qz.prototype.onDurationChanged=function(){var O,x;_.$U(this.hostElement).querySelector("#progress").style.width=((x=(O=this.data)==null?void 0:O.percentDurationWatched)!=null?x:0)+"%"};
qz.prototype.onDurationChanged=qz.prototype.onDurationChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],qz.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qz.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],qz.prototype,"isLive",void 0);_.B([_.T1("data.percentDurationWatched"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qz.prototype,"onDurationChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],qz);
_.n(qz,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(fUp!==void 0)return fUp;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fUp=O},{mode:1});var JmF;var PI=function(){var O=_.a.apply(this,arguments)||this;O.bottomPanel=!1;O.richGridOverlay=!1;O.watchFeedOverlay=!1;O.isCompact=!1;return O};
_.c(PI,_.a);PI.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Dy.Object.defineProperties(PI.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:(x=O.icon)==null?void 0:x.iconType)==="PLAY_ALL"&&_.t("kevlar_system_icons")}}});
PI.prototype.widthChanged=PI.prototype.widthChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],PI.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],PI.prototype,"width",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],PI.prototype,"bottomPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],PI.prototype,"richGridOverlay",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],PI.prototype,"watchFeedOverlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],PI.prototype,"isCompact",void 0);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],PI.prototype,"isIconFilled",null);_.B([_.T1("width","watchFeedOverlay"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],PI.prototype,"widthChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],PI);
_.n(PI,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(JmF!==void 0)return JmF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return JmF=O},{mode:1});var w53;var Ssd=["CLIP","SHORTS"],cI=function(){var O=_.a.apply(this,arguments)||this;O.animated=_.t("animated_live_badge_icon");O.hasIcon=!1;O.updateTimerIntervalId=0;O.timeSinceLive=0;return O};
_.c(cI,_.a);_.b=cI.prototype;_.b.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.b.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.b.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.b.hasIconOrText=function(){var O,x;return!!(((O=this.data)==null?0:O.icon)||((x=this.data)==null?0:x.text))};
_.b.initializeLiveBadgeTimer=function(){var O=this,x,e=(x=this.liveBadgeData)==null?void 0:x.startTimestampSec;if(e&&this.canShowLiveBadgeTimer()){var l;x=Number((l=this.liveBadgeData)==null?void 0:l.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(e);this.updateTimerIntervalId=_.cK(function(){O.canShowLiveBadgeTimer()?O.timeSinceLive++:(O.timeSinceLive=0,window.clearInterval(O.updateTimerIntervalId))},x)}else this.timeSinceLive=0};
_.b.canShowLiveBadgeTimer=function(){var O=Date.now(),x,e;return O<(Number((x=this.liveBadgeData)==null?void 0:x.endTimestampSec)-1)*1E3&&O>Number((e=this.liveBadgeData)==null?void 0:e.startTimestampSec)*1E3};
_.Dy.Object.defineProperties(cI.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.p2N(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.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 Ssd.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
cI.prototype.initializeLiveBadgeTimer=cI.prototype.initializeLiveBadgeTimer;cI.prototype.dataChanged=cI.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],cI.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cI.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",String)],cI.prototype,"icon",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],cI.prototype,"animated",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.v("design:type",Boolean)],cI.prototype,"hideTimeStatus",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],cI.prototype,"hasIcon",void 0);_.B([_.R(),_.v("design:type",Object)],cI.prototype,"timeSinceLive",void 0);_.B([_.p("data","timeSinceLive"),_.v("design:type",Object),_.v("design:paramtypes",[])],cI.prototype,"badgeShapeData",null);
_.B([_.p("data","overlayType"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],cI.prototype,"hideBadgeShape",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cI.prototype,"dataChanged",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.style"),_.v("design:type",Object),_.v("design:paramtypes",[])],cI.prototype,"overlayStyle",null);
_.B([_.p("data.liveBadgeData"),_.v("design:type",Object),_.v("design:paramtypes",[])],cI.prototype,"liveBadgeData",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.type"),_.v("design:type",Object),_.v("design:paramtypes",[])],cI.prototype,"overlayType",null);_.B([_.p("overlayType","overlayStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],cI.prototype,"useFilledIcon",null);
_.B([_.G1("liveBadgeData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cI.prototype,"initializeLiveBadgeTimer",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],cI);
_.n(cI,"ytd-thumbnail-overlay-time-status-renderer",function(){if(w53!==void 0)return w53;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return w53=O},{mode:_.gq("kevlar_poly_si_batch_j035")?1:2});var jDd;var I0=function(){return _.a.apply(this,arguments)||this};
_.c(I0,_.a);I0.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"}}}}};
I0.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(O){if(this.hasPlaybackProgressBar)return{percentDurationWatched:O.percentDurationWatched}};
I0.prototype.computeHasPlaybackProgressBar=function(O){return!!O.percentDurationWatched&&O.percentDurationWatched>0};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],I0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.v("design:type",Boolean)],I0.prototype,"hasPlaybackProgressBar",void 0);
_.B([_.H({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],I0);
_.n(I0,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(jDd!==void 0)return jDd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jDd=O},{mode:1});var NKF;var gJD=_.K(function(O){var x=O.data;var e=O.children;var l=function(){return!!x().doubleStack},C=function(){return!!x().includeStackHeight};
return _.D("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!x().experimentEnabled}},_.D(_.F,{cond:x,
then:function(){var Q={};return _.D(_.Xm,null,_.D(_.F,{cond:C,then:function(){var L={};return _.D("div",{class:_.xz("ytCollectionsStackSpacer",(L.ytCollectionsStackSpacerDoubleStack=l,L))})}}),_.D("div",{class:_.xz((Q.ytCollectionsStackRelativeStack=C,Q))},_.D(_.F,{cond:l,
then:function(){var L={};return _.D("div",{class:_.xz("ytCollectionsStackCollectionStack2",function(){return x().customClassName2ndStack},(L.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return x().enableResponsiveMode},L)),
style:_.T7({"background-color":function(){return U8i(x())}})})}}),_.D("div",{class:_.xz("ytCollectionsStackCollectionStack1",function(){return x().customClassName1stStack},function(){return RSm(x().thumbnailSize?x().thumbnailSize:"medium")}),
style:_.T7({"background-color":function(){return U8i(x())}})}),e))}}))},"Ca");_.wP(gJD,"yt-collections-stack",{props:{data:_.Ld}});var Vb=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};O.webModernCollections=!1;O.isSearch=!1;O.isDoubleStack=!1;O.thumbnailSize="medium";O.enableWebModernCollectionsV2=_.t("web_modern_collections_v2");return O};
_.c(Vb,_.a);_.b=Vb.prototype;
_.b.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]]"}}}}}};
_.b.getThumbnailDetails=function(O){if(O!=null&&O.thumbnailRenderer){var x=O.thumbnailRenderer,e;if((e=x.playlistVideoThumbnailRenderer)==null?0:e.thumbnail)return x.playlistVideoThumbnailRenderer.thumbnail;var l;if((l=x.playlistCustomThumbnailRenderer)==null?0:l.thumbnail)return x.playlistCustomThumbnailRenderer.thumbnail;O=O.thumbnailRenderer;var C;if((C=O.showCustomThumbnailRenderer)==null?0:C.thumbnail)return O.showCustomThumbnailRenderer.thumbnail}};
_.b.computeOverlayColor=function(O){var x,e;if((x=this.getThumbnailDetails(O))==null?0:(e=x.darkColorPalette)==null?0:e.section2Color)return this.getThumbnailDetails(O).darkColorPalette.section2Color;var l;return(l=this.getThumbnailDetails(O))==null?void 0:l.sampledThumbnailColor};
_.b.computeWebModernCollections=function(O){if(O==null||!O.thumbnailOverlays)return!1;O=_.T(O.thumbnailOverlays);for(var x=O.next();!x.done;x=O.next()){var e=void 0;if((e=x.value)==null?0:e.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.b.computeNavigationEndpoint=function(O){return hmL(O==null?void 0:O.navigationEndpoint)};
_.Dy.Object.defineProperties(Vb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var O=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:O==null?void 0:O.sampledThumbnailColor,vibrantColorPalette:O==null?void 0:O.vibrantColorPalette,darkColorPalette:O==null?void 0:O.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Vb.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(CMF),_.v("design:type",Object)],Vb.prototype,"ytdThumbnailBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Vb.prototype,"componentBehavior",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],Vb.prototype,"watchFeedThumbnail",void 0);_.B([_.R(),_.v("design:type",Number)],Vb.prototype,"customThumbnailSize",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],Vb.prototype,"hideAria",void 0);_.B([_.R(),_.v("design:type",Object)],Vb.prototype,"data",void 0);_.B([_.R({computed:"computeOverlayColor(data)"}),_.v("design:type",Object)],Vb.prototype,"overlayColor",void 0);
_.B([_.R({computed:"computeWebModernCollections(data)"}),_.v("design:type",Object)],Vb.prototype,"webModernCollections",void 0);_.B([_.R({computed:"computeNavigationEndpoint(data)"}),_.v("design:type",Object)],Vb.prototype,"computedNavigationEndpoint",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Vb.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Vb.prototype,"isDoubleStack",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Vb.prototype,"thumbnailSize",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Vb.prototype,"enableWebModernCollectionsV2",void 0);_.B([_.p("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.v("design:type",Object),_.v("design:paramtypes",[])],Vb.prototype,"collectionStack",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Vb);
_.n(Vb,"ytd-playlist-thumbnail",function(){if(NKF!==void 0)return NKF;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return NKF=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var $fJ;_.wP(_.K(function(O){return _.D("yt-text-view-model",{class:_.xz("ytTextViewModelHost")},_.D(_.TT,{text:function(){return O.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.Ld}});var pz=function(){var O=_.a.apply(this,arguments)||this;O.noEndpoints=!1;O.amsterdamPostMvp=_.t("web_amsterdam_post_mvp_playlists");O.badges=[];O.transferState="TRANSFER_STATE_UNKNOWN";return O};
_.c(pz,_.a);_.b=pz.prototype;_.b.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.b.getMetadata=function(O){if(!O)return[];var x=[],e=O.shortViewCountText||O.viewCountText;e&&x.push(_.db(e));O.publishedTimeText&&x.push(_.db(O.publishedTimeText));O.upcomingEventData&&O.upcomingEventData.upcomingEventText&&x.push(_.XQ(_.db(O.upcomingEventData.upcomingEventText),Number(O.upcomingEventData.startTime)));return x};
_.b.observeDataForBylineSeparator=function(){this.data&&_.Ow(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.b.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.UA(this.metadataColor)};
_.b.getSimpleString=function(O){return _.db(O)};
_.b.isBylineHidden=function(O){return this.noByline||!((O==null?0:O.longBylineText)||(O==null?0:O.shortBylineText))};
_.b.isMetadataHidden=function(O){var x;return((x=this.getMetadata(O))==null?void 0:x.length)===0};
_.b.isBylineMetadataSeparatorHidden=function(O){return this.isMetadataHidden(O)||!this.shouldShowVideoInfo};
_.b.isLongByline=function(O,x){return x&&!(O==null||!O.longBylineText)};
_.Dy.Object.defineProperties(pz.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var O;return this.amsterdamPostMvp&&!((O=this.data)==null||!O.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.t("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
pz.prototype.metadataColorChanged=pz.prototype.metadataColorChanged;pz.prototype.observeDataForBylineSeparator=pz.prototype.observeDataForBylineSeparator;_.B([_.V(_.$5),_.v("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pz.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],pz.prototype,"noEndpoints",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"isSlimShort",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"radioMeta",void 0);_.B([_.R({selector:_.p7}),_.v("design:type",Object)],pz.prototype,"isGridViewEnabled",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"richMeta",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pz.prototype,"amsterdamPostMvp",void 0);
_.B([_.R(),_.v("design:type",Boolean)],pz.prototype,"noByline",void 0);_.B([_.R({computed:"isLongByline(data, radioMeta)"}),_.v("design:type",Boolean)],pz.prototype,"longByline",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"truncateMetadataLine",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"miniMode",void 0);_.B([_.R(),_.v("design:type",Number)],pz.prototype,"metadataColor",void 0);
_.B([_.R(),_.v("design:type",Array)],pz.prototype,"badges",void 0);_.B([_.R({selector:_.Vy,selectorArgs:["data.videoId"]}),_.v("design:type",String)],pz.prototype,"transferState",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"isDownloading",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pz.prototype,"typographyBump",void 0);_.B([_.kX("#metadata-line"),_.v("design:type",HTMLElement)],pz.prototype,"metadataLine",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pz.prototype,"observeDataForBylineSeparator",null);_.B([_.T1("metadataColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pz.prototype,"metadataColorChanged",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],pz.prototype,"shouldShowVideoInfo",null);
_.B([_.p("badges"),_.v("design:type",String),_.v("design:paramtypes",[])],pz.prototype,"inlineBadgeClass",null);_.B([_.p("longByline"),_.v("design:type",String),_.v("design:paramtypes",[])],pz.prototype,"longBylineClass",null);_.B([_.p("data","longByline"),_.v("design:type",Object),_.v("design:paramtypes",[])],pz.prototype,"bylineText",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pz.prototype,"hasAttributedBylineText",null);
_.B([_.p("isGridViewEnabled","data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pz.prototype,"watchFeedBigThumbs",null);_.B([_.H({is:"ytd-video-meta-block",disableElementRegistration:!0})],pz);
_.n(pz,"ytd-video-meta-block",function(){if($fJ!==void 0)return $fJ;var O=document.createElement("template");_.I(O,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $fJ=O},{mode:_.gq("kevlar_poly_si_batch_j080")?1:2});_.tI("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var R0=function(){var O=_.a.apply(this,arguments)||this;O.displayItemCount=2;O.isBackstagePlaylist=!1;O.isPostCompactPlaylist=!1;O.shouldShowChannelThumbnail=!1;O.useModernCollectionsV2=_.t("web_modern_collections_v2");return O};
_.c(R0,_.a);_.b=R0.prototype;_.b.computeFirstVideos=function(O,x){return O===void 0||x===void 0?[]:O.slice(0,x)};
_.b.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var O=this.data.thumbnailRenderer;O.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",O.playlistVideoThumbnailRenderer.thumbnail);O.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",O.playlistCustomThumbnailRenderer.thumbnail)}};
_.b.computeThumbnailHeight=function(O,x,e,l,C){return l?C==="BIG"?280:C==="MASSIVE"?337:234:e?240:x?72:O?118:138};
_.b.computeThumbnailWidth=function(O,x,e,l,C){return l?C==="MEDIUM"?450:C==="BIG"?500:C==="MASSIVE"?600:420:e?360:x?128:O?210:246};
_.b.computeUseBiggerThumbs=function(O){return O&&_.t("enable_desktop_search_bigger_thumbs")};
_.b.computeShouldShowChannelThumbnail=function(O,x){return O&&!(x==null||!x.channelThumbnail)};
_.Dy.Object.defineProperties(R0.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
R0.prototype.dataChanged=R0.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],R0.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],R0.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],R0.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],R0.prototype,"displayItemCount",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],R0.prototype,"isBackstagePlaylist",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],R0.prototype,"isPostCompactPlaylist",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],R0.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.v("design:type",Boolean)],R0.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],R0.prototype,"biggerThumbsStyle",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],R0.prototype,"isDownloads",void 0);_.B([_.R({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.v("design:type",Object)],R0.prototype,"shouldShowChannelThumbnail",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],R0.prototype,"useModernCollectionsV2",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],R0.prototype,"dataChanged",null);_.B([_.p("isSearch"),_.v("design:type",String),_.v("design:paramtypes",[])],R0.prototype,"stackThumbnailSize",null);_.B([_.H({is:"ytd-playlist-renderer",disableElementRegistration:!0})],R0);
_.n(R0,"ytd-playlist-renderer",function(){if(hdD===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);hdD=O}O=hdD;return O},{mode:1});var iP3;var Omd;var Uq=function(){var O=_.a.apply(this,arguments)||this;O.collections=!!_.t("web_modern_collections_v2");O.startX=0;return O};
_.c(Uq,_.a);Uq.prototype.onEndpointMouseDown=function(O){this.startX=O.clientX};
Uq.prototype.onEndpointClick=function(O){this.startX!==O.clientX&&(O.preventDefault(),O.stopPropagation())};
Uq.prototype.computeObjectFit=function(O){return O==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||O==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||O==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Uq.prototype.computeCardStyle=function(O){return O?O.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Dy.Object.defineProperties(Uq.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var O,x;return this.collections&&((O=this.data)==null?void 0:(x=O.searchRefinementCardRendererStyle)==null?void 0:x.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}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Uq.prototype,"data",void 0);_.B([_.R({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.v("design:type",Number)],Uq.prototype,"objectFit",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.v("design:type",String)],Uq.prototype,"cardStyle",void 0);
_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],Uq.prototype,"roundContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Uq.prototype,"collections",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Uq.prototype,"isAlbumCard",null);_.B([_.p("data","collections","isAlbumCard"),_.v("design:type",Object),_.v("design:paramtypes",[])],Uq.prototype,"collectionStack",null);
_.B([_.H({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Uq);
_.n(Uq,"ytd-search-refinement-card-renderer",function(){if(Omd!==void 0)return Omd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Omd=O},{mode:1});var xGR;var a0=function(){var O=_.a.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.c(a0,_.a);_.B([_.R(),_.v("design:type",Object)],a0.prototype,"data",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],a0.prototype,"componentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],a0.prototype,"isRichGrid",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],a0.prototype,"miniMode",void 0);
_.B([_.H({is:"ytd-game-details-renderer",disableElementRegistration:!0})],a0);
_.n(a0,"ytd-game-details-renderer",function(){if(xGR!==void 0)return xGR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return xGR=O},{mode:1});var eMN;var lIp;var mA=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return O};
_.c(mA,_.a);_.b=mA.prototype;_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.b.currentStateData=function(O){var x=O||this.data;return x&&x.states&&x.currentStateId!=null?x.states.find(function(e){return e.stateId===x.currentStateId})||null:null};
_.b.currentStateRendererData=function(O){return(O=this.currentStateData(O))&&O.state&&O.state.buttonRenderer?O.state.buttonRenderer:null};
_.b.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())};
_.b.computeButtonIcon=function(O){O=this.currentStateRendererData(O);var x;return(O==null?0:(x=O.icon)==null?0:x.iconType)?O.icon.iconType.toLowerCase():null};
_.b.computeAccessibility=function(O){return(O=this.currentStateRendererData(O))&&O.accessibilityData?O.accessibilityData.accessibilityData||null:null};
_.b.computeButtonClass=function(O){var x=this.currentStateRendererData(O);if(!x)return"";O="";var e=x.style;e&&(O+=e.toLowerCase().replace(/_/g,"-")+" ");(x=x.size)&&(O+=x.toLowerCase().replace(/_/g,"-")+" ");return O.trim()};
_.b.computeServiceEndpoint=function(O){if(!O)return null;var x=O&&O.serviceEndpoint,e=this.get("command.commandMetadata.webCommandMetadata.sendPost",O);return x?x:e&&O.command?O.command:null};
_.b.computeBellMenuItemParams=function(O){var x;O=(x=_.q(O==null?void 0:O.command,_.ih))==null?void 0:x.commands;if(!O||O.length===0)return null;x=_.q(O[0],_.aq);var e,l;return(x==null?0:(e=x.popup)==null?0:(l=e.menuPopupRenderer)==null?0:l.items)?x.popup.menuPopupRenderer.items.map(function(C){return C.menuServiceItemRenderer.trackingParams}):null};
_.b.handleBellMenuOpenSelectedAction=function(O){var x=O.trackingParams,e=this.computeBellMenuItemParams(this.data);this.data&&x&&e&&e.includes(x)&&this.ytRenderButtonBehavior._setButtonIcon(O.icon.iconType.toLowerCase())};
_.b.onYtServiceRequestCompleted=function(O,x){(O=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",x))&&this.set("data",O)};
_.b.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.b.resetState=function(){this.set("data.currentStateId",3)};
_.b.onYtButtonTapHandler=function(){if(this.data){var O=this.currentStateRendererData(this.data);O&&this.ytRendererBehavior.logExplicitClick(O)}};
mA.prototype.onYtServiceRequestError=mA.prototype.onYtServiceRequestError;mA.prototype.onYtServiceRequestCompleted=mA.prototype.onYtServiceRequestCompleted;mA.prototype.stateChanged=mA.prototype.stateChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],mA.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(nd.YtRenderButtonBehavior),_.v("design:type",Object)],mA.prototype,"ytRenderButtonBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mA.prototype,"data",void 0);_.B([_.G1("data","data.currentStateId"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mA.prototype,"stateChanged",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],mA.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],mA.prototype,"onYtServiceRequestError",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],mA);
_.n(mA,"ytd-subscription-notification-toggle-button-renderer",function(){if(lIp!==void 0)return lIp;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return lIp=O},{mode:1});var C7L;var sq=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};O.tapHandler=function(){if(O.data){var x=O.currentStateRendererData();x&&O.ytRendererBehavior.logExplicitClick(x)}};
return O};
_.c(sq,_.a);_.b=sq.prototype;_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.b.currentStateData=function(){var O=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(x){return x.stateId===O.data.currentStateId})||null:null};
_.b.currentStateRendererData=function(){var O=this.currentStateData();return O&&O.state&&O.state.buttonRenderer?O.state.buttonRenderer:null};
_.b.computeAccessibilityLabel=function(){var O,x,e;return(O=this.currentStateRendererData())==null?void 0:(x=O.accessibilityData)==null?void 0:(e=x.accessibilityData)==null?void 0:e.label};
_.b.computeBellMenuItemParams=function(){var O,x,e=(x=_.q((O=this.data)==null?void 0:O.command,_.ih))==null?void 0:x.commands;if(!e||e.length===0)return null;O=_.q(e[0],_.aq);var l,C;return(O==null?0:(l=O.popup)==null?0:(C=l.menuPopupRenderer)==null?0:C.items)?O.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.b.handleBellMenuOpenSelectedAction=function(O){var x=O.trackingParams,e=this.computeBellMenuItemParams();if(this.data&&x&&e&&e.includes(x)&&(O==null||!O.isDisabled)){var l;((l=_.q(O.serviceEndpoint,_.xm))==null?void 0:l.signal)!=="CLIENT_SIGNAL"&&(this.icon=O.icon.iconType)}};
_.b.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.b.onYtServiceRequestCompleted=function(O,x){if(O=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",x))this.icon=void 0,this.set("data",O)};
_.b.onYtServiceRequestError=function(){this.icon=void 0};
_.Dy.Object.defineProperties(sq.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=this.data,x=this.textLabel,e=this.hostElement,l=this.computeAccessibilityLabel(),C=this.tapHandler,Q=this.isOverlay?"overlay":"mono",L=(O==null?0:O.disableButton)?"disabled":"active";x=x?_.Ps(x):void 0;return{style:Q,type:"tonal",state:L,size:"M",focused:!1,formattedButtonText:x,iconPosition:"leading-trailing",onTap:m8V(O,C,e),accessibilityLabel:l}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var O=this.currentStateRendererData(),x,e,l=(e=this.icon)!=null?e:O==null?void 0:(x=O.icon)==null?void 0:x.iconType;if(l)return _.x0(l)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.data)==null?void 0:(x=O.secondaryIcon)==null?void 0:x.iconType;if(e)return _.x0(e)}}});
sq.prototype.onYtServiceRequestError=sq.prototype.onYtServiceRequestError;sq.prototype.onYtServiceRequestCompleted=sq.prototype.onYtServiceRequestCompleted;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],sq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sq.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],sq.prototype,"textLabel",void 0);
_.B([_.R(),_.v("design:type",String)],sq.prototype,"icon",void 0);_.B([_.R(),_.v("design:type",Boolean)],sq.prototype,"isOverlay",void 0);_.B([_.p("data.*","textLabel"),_.v("design:type",Object),_.v("design:paramtypes",[])],sq.prototype,"computedButtonShape",null);_.B([_.p("data.*","icon"),_.v("design:type",Object),_.v("design:paramtypes",[])],sq.prototype,"computedIcon",null);_.B([_.p("computedIcon"),_.v("design:type",Object),_.v("design:paramtypes",[])],sq.prototype,"computedAnimateIcon",null);
_.B([_.p("data.*"),_.v("design:type",Object),_.v("design:paramtypes",[])],sq.prototype,"computedSecondaryIcon",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],sq.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],sq.prototype,"onYtServiceRequestError",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],sq);
_.n(sq,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(C7L!==void 0)return C7L;var O=document.createElement("template");_.I(O,'\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 C7L=O},{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var QZ4;_.wP(QD3,"yt-animated-action",{props:{backgroundLottieRef:_.Ld,foregroundLottieRef:_.Ld,wrapperClass:_.Ld,disableAnimation:_.Ld},unsafeExternallySettableAttributes:new Set(["key"])});var WI=function(){var O=_.a.apply(this,arguments)||this;O.animatedActionEnabled=_.t("web_animated_actions");O.foregroundLottieRef={};O.backgroundLottieRef={};O.forceIconOnly=!1;O.showTextWhileAnimating=!1;O.keyboardFocused=!1;O.isAnimating=!1;O.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return O};
_.c(WI,_.a);_.b=WI.prototype;_.b.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.b.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]]"}}}}}};
_.b.attached=function(){this.keyboardFocused=!1};
_.b.onYtServiceRequestSent=function(O,x){(this.get("endpoint.subscribeEndpoint",x)||this.get("endpoint.unsubscribeEndpoint",x))&&this.updateSubscriptionState(!this.subscribed)};
_.b.onYtServiceRequestCompleted=function(O,x){(O=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",x.data))&&this.bellButton&&(this.bellButton.data=O)};
_.b.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.lH(this.hostElement)};
_.b.onPlayerSubscribe=function(O){this.isCompactRed()||O!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.b.onPlayerUnsubscribe=function(O){this.isCompactRed()||O!==this.data.channelId||this.updateSubscriptionState(!1)};
_.b.handleUpdateSubscribeButtonAction=function(O){O=_.q(O,dXL);var x;O&&O.channelId===((x=this.data)==null?void 0:x.channelId)&&this.updateSubscriptionState(!!O.subscribed)};
_.b.computeButtonStyle=function(O){return this.get("style.styleType",O)||null};
_.b.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.b.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.b.updateSubscriptionState=function(O){if(O!==this.subscribed){this.set("data.subscribed",O);var x,e=(x=this.data)==null?void 0:x.subscribedEntityKey;e&&this.ytdReduxBehavior.dispatch(_.Dc("subscriptionStateEntity",e,{key:e,subscribed:O}));this.isCompactRed()||_.wr(this.hostElement,"yt-subscription-changed",O);O||(_.Sh(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!O),O&&this.hasBellButton&&this.startAnimation())}};
_.b.startAnimation=function(){var O=this;if(!this.isAnimating){var x=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var e;(e=this.backgroundLottieRef.lottieEl)==null||e.goToAndPlay(0);var l;(l=this.foregroundLottieRef.lottieEl)==null||l.goToAndPlay(0);_.vn.addJob(function(){O.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.vn.addJob(function(){O.updateContainerToFitContent(!!O.subscribed,!0)},2,1500);
_.vn.addJob(function(){O.isAnimating=!1},2,x)}};
_.b.maybeAnimateBellIcon=function(){var O=_.iK(this.hostElement).querySelector("yt-animated-icon");if(O){var x;(x=O.animationRef.lottieEl)==null||x.goToAndPlay(0)}};
_.b.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.b.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.b.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var O;this.unsubscribedWidth=(O=this.subscribeButtonShape)==null?void 0:O.getBoundingClientRect().width}var x;this.subscribedWidth=(x=this.bellButton)==null?void 0:x.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.b.updateContainerToFitContent=function(O,x){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(O?(O=this.subscribedWidth,x=this.isAnimating&&!x,this.subscribedIconOnlyWidth===void 0||x||(O=this.subscribedIconOnlyWidth),this.hostElement.style.width=O+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.b.clearContainerSize=function(){this.hostElement.style.width=""};
_.b.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.b.maybeSetSubscribedButtonIconOnlyWidth=function(){var O=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 x;O.subscribedIconOnlyWidth=(x=O.bellButton)==null?void 0:x.getBoundingClientRect().width;requestAnimationFrame(function(){if(O.bellButton){var e;O.bellButton.textLabel=
(e=O.data)==null?void 0:e.subscribedButtonText}})})))};
_.Dy.Object.defineProperties(WI.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 O;return(O=this.data)==null?void 0:O.subscribedButtonText}var x;return this.forceIconOnly?void 0:(x=this.data)==null?void 0:x.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var O,x,e=((O=this.data)==null?void 0:(x=O.timedAnimationData)==null?void 0:x.animationTiming)||[];return{uniqueId:"subscribe",timings:e,enabled:e.length>0&&!this.subscribed,experimentEnabled:e.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var O;return!this.subscribed&&((O=this.data)==null?void 0:O.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 O={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var x=O.renderer;var e=O.element;var l=O.subscribed;var C=O.commandController;var Q=O.isOverlay;O=O.stopPropagation;var L=zSW(x,l);Q&&(L.style="overlay");Q=Object;var k=Q.assign,M;a:switch((M=x.style)==null?void 0:M.styleType){case "COMPACT_GRAY":case "COMPACT_RED":M={size:"S"};break a;default:M={size:"M"}}var G=hSn(x,
l);var X=(X=l?x.subscribedButtonText:x.unsubscribedButtonText)?_.Ps(X):void 0;return k.call(Q,{},L,M,{focused:!1,toggled:l,accessibilityLabel:G,formattedButtonText:X,onTap:Wbs(x,l,e,C,O)})}}}});
WI.prototype.onMouseDown=WI.prototype.onMouseDown;WI.prototype.onDataChanged=WI.prototype.onDataChanged;WI.prototype.observedSubscribed=WI.prototype.observedSubscribed;WI.prototype.onYtServiceRequestCompleted=WI.prototype.onYtServiceRequestCompleted;WI.prototype.onYtServiceRequestSent=WI.prototype.onYtServiceRequestSent;WI.prototype.maybeUpdateBellButtonText=WI.prototype.maybeUpdateBellButtonText;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],WI.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],WI.prototype,"data",void 0);
_.B([_.R({selectorArgs:["data.subscribedEntityKey"],selector:iJm}),_.v("design:type",Object)],WI.prototype,"subscriptionStateEntity",void 0);_.B([_.R({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.v("design:type",Boolean)],WI.prototype,"subscribed",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],WI.prototype,"branded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],WI.prototype,"animatedActionEnabled",void 0);
_.B([_.R(),_.v("design:type",Object)],WI.prototype,"foregroundLottieRef",void 0);_.B([_.R(),_.v("design:type",Object)],WI.prototype,"backgroundLottieRef",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],WI.prototype,"overlayButton",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.v("design:type",Object)],WI.prototype,"buttonStyle",void 0);_.B([_.R(),_.v("design:type",Object)],WI.prototype,"forceIconOnly",void 0);
_.B([_.R(),_.v("design:type",Object)],WI.prototype,"showTextWhileAnimating",void 0);_.B([_.R({value:function(){return!!_.GG().resolve(_.D0(_.qL))&&_.t("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.v("design:type",Boolean)],WI.prototype,"useKeyboardFocused",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],WI.prototype,"keyboardFocused",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],WI.prototype,"isAnimating",void 0);_.B([_.p("data.notificationPreferenceButton.*"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"hasBellButton",null);
_.B([_.T1("subscribedButtonText"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],WI.prototype,"maybeUpdateBellButtonText",null);_.B([_.p("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"subscribedButtonText",null);_.B([_.p("data.timedAnimationData.animationTiming","subscribed"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"smartimationSettings",null);
_.B([_.R({reflectToAttribute:!0}),_.p("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"subscribeButtonHidden",null);_.B([_.R({reflectToAttribute:!0}),_.p("subscribed","hasBellButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"subscribeButtonInvisible",null);
_.B([_.R({reflectToAttribute:!0}),_.p("subscribed"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"unsubscribeButtonHidden",null);_.B([_.kX("ytd-subscription-notification-toggle-button-renderer-next"),_.v("design:type",Object)],WI.prototype,"bellButton",void 0);_.B([_.kX("#subscribe-button-shape"),_.v("design:type",HTMLElement)],WI.prototype,"subscribeButtonShape",void 0);
_.B([_.p("overlayButton","subscribed","data"),_.v("design:type",Object),_.v("design:paramtypes",[])],WI.prototype,"buttonShape",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],WI.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],WI.prototype,"onYtServiceRequestCompleted",null);
_.B([_.T1("subscribed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],WI.prototype,"observedSubscribed",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],WI.prototype,"onDataChanged",null);_.B([_.bH("mousedown"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],WI.prototype,"onMouseDown",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],WI);
_.n(WI,"ytd-subscribe-button-renderer",function(){if(QZ4!==void 0)return QZ4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return QZ4=O},{mode:1});var hM=function(){var O=_.a.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.c(hM,_.a);hM.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hM.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hM.prototype,"isRichGrid",void 0);_.B([_.H({is:"ytd-game-card-renderer",disableElementRegistration:!0})],hM);
_.n(hM,"ytd-game-card-renderer",function(){if(eMN!==void 0)return eMN;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return eMN=O},{mode:1});var zx={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.t("defer_menus")&&!vPR?0:void 0,waitForSignal:"eocs"};var bm4;var TdR;var r6=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return O};
_.c(r6,_.a);_.b=r6.prototype;_.b.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.b.onSeriesReminderStateEntityChange=function(){var O,x,e;((O=this.eventReminderStateEntity)==null?0:O.key)&&((x=this.seriesReminderStateEntity)==null?void 0:x.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((e=this.eventReminderStateEntity)==null?void 0:e.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Dc("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.b.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.b.onYtServiceRequestError=function(){var O;this.updateReminderStateEntitiesFromButtonState((O=this.data)==null?void 0:O.currentState)};
_.b.handleUpdateUpcomingEventReminderButtonStateCommand=function(O){if(O=_.q(O,dA4)){var x,e=(x=this.data)==null?void 0:x.targetId;e&&O.targetId===e&&_.WZ(this.updateReminderStateEntitiesFromButtonState.bind(this,O.state))}};
_.b.getButtonStateFromReminderState=function(){var O;if(((O=this.seriesReminderStateEntity)==null?void 0:O.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var x;if(((x=this.eventReminderStateEntity)==null?void 0:x.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var e,l;if(((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((l=this.eventReminderStateEntity)==
null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var C;return(C=this.data)==null?void 0:C.currentState};
_.b.updateReminderStateEntitiesFromButtonState=function(O){if(O){switch(O){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":O="UPCOMING_EVENT_REMINDER_STATE_NONE";var x="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":O="UPCOMING_EVENT_REMINDER_STATE_SINGLE";x="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":O="UPCOMING_EVENT_REMINDER_STATE_NONE";x="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var e;
((e=this.eventReminderStateEntity)==null?0:e.key)&&this.ytdReduxBehavior.dispatch(_.Dc("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:O})));var l;((l=this.seriesReminderStateEntity)==null?0:l.key)&&this.ytdReduxBehavior.dispatch(_.Dc("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:x})))}};
_.Dy.Object.defineProperties(r6.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var O=this.getButtonStateFromReminderState(),x,e;if(O&&((x=this.data)==null?0:(e=x.states)==null?0:e.length))for(x=_.T(this.data.states),e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0;if(((l=_.q(e,nwN))==null?void 0:l.state)===O)return _.q(e,nwN)}}}});
r6.prototype.onYtServiceRequestError=r6.prototype.onYtServiceRequestError;r6.prototype.onYtServiceRequestCompleted=r6.prototype.onYtServiceRequestCompleted;r6.prototype.onSeriesReminderStateEntityChange=r6.prototype.onSeriesReminderStateEntityChange;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],r6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],r6.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],r6.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:x8N}),_.v("design:type",Object)],r6.prototype,"eventReminderStateEntity",void 0);
_.B([_.R({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(O,x){return _.xE(O.entities,"sportsSeriesReminderStateEntity",x)}}),
_.v("design:type",Object)],r6.prototype,"seriesReminderStateEntity",void 0);_.B([_.p("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],r6.prototype,"currentButtonStateRenderer",null);_.B([_.T1("seriesReminderStateEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],r6.prototype,"onSeriesReminderStateEntityChange",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],r6.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],r6.prototype,"onYtServiceRequestError",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],r6);
_.n(r6,"ytd-upcoming-event-reminder-button-renderer",function(){if(TdR!==void 0)return TdR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return TdR=O},{mode:1});var L9F;var HI=function(){return _.a.apply(this,arguments)||this};
_.c(HI,_.a);HI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Dy.Object.defineProperties(HI.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(_.t("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],HI.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],HI.prototype,"shelfDismissal",void 0);_.B([_.p("data.responseText"),_.v("design:type",Object),_.v("design:paramtypes",[])],HI.prototype,"text",null);
_.B([_.p("data.responseText"),_.v("design:type",Object),_.v("design:paramtypes",[])],HI.prototype,"textAriaLabel",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],HI);
_.n(HI,"ytd-notification-multi-action-renderer",function(){if(L9F!==void 0)return L9F;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return L9F=O},{mode:1});var kPN;var Kz=function(){return _.a.apply(this,arguments)||this};
_.c(Kz,_.a);Kz.prototype.ready=function(){var O=this;_.$U(this.hostElement).querySelector("#undo").addEventListener("tap",function(){O.onUndoTap()})};
Kz.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Kz.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Kz);
_.n(Kz,"ytd-notification-text-renderer",function(){if(kPN!==void 0)return kPN;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kPN=O},{mode:1});var Aw$;var d6=function(){var O=_.a.apply(this,arguments)||this;O.mouseOverDelayJobId=0;O.fadeInImageDelayJobId=0;O.startTimeMs=-1;O.loadingStartTimeMs=-1;O.loadingEndTimeMs=-1;O.hasVideoPreview=!1;return O};
_.c(d6,_.a);_.b=d6.prototype;_.b.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.b.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.b.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.b.showThumbnail=function(){var O=this;this.csn=_.Pq();_.VO("fmth");_.vn.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.$0(_.vn,function(){O.loadingStartTimeMs=(0,_.F2)();var x=_.$U(O.hostElement).querySelector("#thumbnail");x.complete?O.displayMouseOverImage():x.addEventListener("load",_.Qa(O,O.displayMouseOverImage))},150):_.Ow(_.$U(this.hostElement).querySelector("#play"),"show",!0)};
_.b.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.b.onTap=function(){this.removeVideoPreview()};
_.b.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var O=this.videoId,x=this.csn,e=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,l=this.startTimeMs,C=this.hasVideoPreview,Q=_.Fv(this.trackingParams),L={isMovingThumbnail:C};C&&l>0&&(e>0&&(L.movingThumbnailLoadingDurationMs=Math.round(e)),L.durationHoveredMs=Math.round((0,_.F2)()-l));O&&(L.videoId=O);_.dT(x,Q,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:L});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.b.removeVideoPreview=function(){_.vn.cancelJob(this.mouseOverDelayJobId);_.vn.cancelJob(this.fadeInImageDelayJobId);var O=_.$U(this.hostElement).querySelector("#thumbnail");_.Ow(O,"fade-in",!1);O.removeEventListener("load",_.Qa(this,this.displayMouseOverImage));O=_.$U(this.hostElement).querySelector("#play");_.Ow(O,"fade-in",!1);_.Ow(O,"show",!1)};
_.b.displayMouseOverImage=function(){var O=_.$U(this.hostElement).querySelector("#thumbnail"),x=_.$U(this.hostElement).querySelector("#play");this.isImageAvailable(O)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.F2)(),this.startTimeMs=(0,_.F2)(),this.fadeInImageDelayJobId=_.$0(_.vn,function(){_.Ow(O,"fade-in",!0)},50)):_.Ow(x,"fade-in",!0)};
_.b.computeThumbnail=function(O,x){var e;O&&O.movingThumbnailDetails&&O.movingThumbnailDetails.thumbnails&&x?e=_.Sf(O.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):e=x?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(e)return _.Yy(e)};
_.b.isImageAvailable=function(O){return!(!O.src||O.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||O.naturalWidth===120)};
d6.prototype.onTap=d6.prototype.onTap;d6.prototype.dataChanged=d6.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],d6.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],d6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],d6.prototype,"csn",void 0);_.B([_.R(),_.v("design:type",Object)],d6.prototype,"trackingParams",void 0);
_.B([_.R(),_.v("design:type",String)],d6.prototype,"videoId",void 0);_.B([_.R(),_.v("design:type",Boolean)],d6.prototype,"isAttachedAndDataSet",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d6.prototype,"dataChanged",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d6.prototype,"onTap",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],d6);
_.n(d6,"ytd-moving-thumbnail-renderer",function(){if(Aw$!==void 0)return Aw$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Aw$=O},{mode:1});var MyF;_.wj=function(O){this.hostElement=O;this.eventSink=null;this.eventList=[]};
_.wj.prototype.shouldForward=function(){var O,x;return(x=(O=this.eventSink)==null?void 0:O.isConnected)!=null?x:document.body.contains(this.eventSink)};
_.wj.prototype.start=function(O,x){this.eventSink&&this.stop();for(var e=0;e<O.length;e++)this.hostElement.addEventListener(O[e],_.Qa(this,this.forwardEvent));var l;this.eventSink=(l=x.hostElement)!=null?l:x;this.eventList=O};
_.wj.prototype.stop=function(){for(var O=0;O<this.eventList.length;O++)this.hostElement.removeEventListener(this.eventList[O],_.Qa(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.wj.prototype.forwardEvent=function(O,x){this.shouldForward()&&(O.stopPropagation(),this.eventSink instanceof Element?_.wr(this.eventSink,O.type,x):_.ft(new _.ry("eventSink is not an element")))};_.nz={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.wj(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(O,x){this.forwarder_.start(O,x)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ul=function(){return _.a.apply(this,arguments)||this};
_.c(ul,_.a);_.b=ul.prototype;_.b.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=_.wz("HTML_DIR")==="rtl"?"right":"left"};
_.b.dataChanged=function(){this.popupOpen=!1};
_.b.computeAriaLabel=function(O){return _.q(O,QP3).label};
_.b.onTap=function(O){O.stopPropagation();O.preventDefault();this.data.command&&_.GG().resolve(_.Xc).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.b.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.b.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
ul.prototype.onPopupClosed=ul.prototype.onPopupClosed;ul.prototype.onPopupOpened=ul.prototype.onPopupOpened;ul.prototype.onTap=ul.prototype.onTap;ul.prototype.dataChanged=ul.prototype.dataChanged;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],ul.prototype,"eventForwardingBehavior",void 0);_.B([_.V(_.zk),_.v("design:type",Object)],ul.prototype,"ironButtonState",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ul.prototype,"componentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],ul.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:-1}),_.v("design:type",Number)],ul.prototype,"tabindex",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.v("design:type",Object)],ul.prototype,"ariaLabel",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],ul.prototype,"disableTooltips",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ul.prototype,"popupOpen",void 0);
_.B([_.R(),_.v("design:type",Element)],ul.prototype,"eventSink",void 0);_.B([_.kX("#tooltip"),_.v("design:type",Object)],ul.prototype,"tooltip",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ul.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],ul.prototype,"onTap",null);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ul.prototype,"onPopupOpened",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ul.prototype,"onPopupClosed",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ul);
_.n(ul,"ytd-thumbnail-overlay-button-renderer",function(){if(MyF!==void 0)return MyF;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return MyF=O},{mode:1});var DG3;var YR=function(){return _.a.apply(this,arguments)||this};
_.c(YR,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],YR.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],YR.prototype,"disableAnimation",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],YR.prototype,"rounded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],YR.prototype,"transparentBackground",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],YR.prototype,"noPadding",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],YR);
_.n(YR,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(DG3!==void 0)return DG3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return DG3=O},{mode:1});var GPL;var BI=function(){return _.a.apply(this,arguments)||this};
_.c(BI,_.a);BI.prototype.computeIconPosition=function(O){return this.get("iconPosition",O)||null};
BI.prototype.computeIconStyle=function(O){return this.get("iconStyle",O)||null};
BI.prototype.computeIsIconStyleFilled=function(O){if(!O)return!1;var x;return O.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((x=O.icon)==null?void 0:x.iconType)==="ERROR_BLACK"};
_.B([_.R(),_.v("design:type",Object)],BI.prototype,"data",void 0);_.B([_.R({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.v("design:type",Object)],BI.prototype,"iconPosition",void 0);_.B([_.R({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.v("design:type",Object)],BI.prototype,"iconStyle",void 0);_.B([_.R({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],BI.prototype,"iconStyleFilled",void 0);
_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],BI);
_.n(BI,"ytd-thumbnail-overlay-icon-renderer",function(){if(GPL!==void 0)return GPL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GPL=O},{mode:1});var F9$;var vI=function(){return _.a.apply(this,arguments)||this};
_.c(vI,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vI.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],vI);
_.n(vI,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(F9$!==void 0)return F9$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return F9$=O},{mode:1});var XG$;var fz=function(){var O=_.a.apply(this,arguments)||this;O.isPreviewLoading=!1;return O};
_.c(fz,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fz.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],fz.prototype,"isPreviewLoading",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],fz);
_.n(fz,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(XG$!==void 0)return XG$;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XG$=O},{mode:1});var oZ4;var JM=function(){return _.a.apply(this,arguments)||this};
_.c(JM,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JM.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],JM);
_.n(JM,"ytd-thumbnail-overlay-pinking-renderer",function(){if(oZ4!==void 0)return oZ4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return oZ4=O},{mode:1});var yw3;var w6=function(){var O=_.a.apply(this,arguments)||this;O.disableTooltips=!1;O.isLoading=!1;O.useExpandableTooltip=!1;O.toggled=!1;O.hovered=!1;O.mouseoverDelayJobId=0;O.toggleDelayJobId=0;O.expandAnimationDelayJobId=0;return O};
_.c(w6,_.a);_.b=w6.prototype;_.b.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");_.$U(this.hostElement).querySelector("#tooltip").position=_.wz("HTML_DIR")==="rtl"?"right":"left"};
_.b.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.vn.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.vn.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.vn.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.b.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.vn.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.vn.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.vn.cancelJob(this.expandAnimationDelayJobId)};
_.b.computeIcon=function(O,x,e){return(O=e?x:O)&&O.iconType?_.x0(O.iconType):void 0};
_.b.computeAriaLabel=function(O,x,e){return _.q(e?x:O,QP3).label};
_.b.computeTooltip=function(O,x,e){return e?x:O};
_.b.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.b.computeIconOnHover=function(O,x){if((O==null?0:O.iconType)&&!x)return _.x0(O.iconType)};
_.b.onTap=function(O){var x=this;O.stopPropagation();O.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(O=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(O),this.useExpandableTooltip&&(this.toggleDelayJobId=_.$0(_.vn,function(){x.hovered=!1;x.data&&!x.data.toggledServiceEndpoint&&(x.expandAnimationDelayJobId=_.$0(_.vn,function(){x.set("data.isToggled",
!1)},200))},2E3))};
_.b.onMouseenter=function(){var O=this;this.mouseoverDelayJobId=_.$0(_.vn,function(){O.hovered=!0},300)};
_.b.onMouseleave=function(){_.vn.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.b.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.b.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.b.onServiceRequestCompleted=function(O,x){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(x)||this.set("data.isToggled",!this.data.isToggled)};
_.b.serviceRequestWasSuccessful=function(O){return _.q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.vj)?O.data.status==="STATUS_SUCCEEDED":!0};
w6.prototype.onServiceRequestCompleted=w6.prototype.onServiceRequestCompleted;w6.prototype.onPopupClosed=w6.prototype.onPopupClosed;w6.prototype.onPopupOpened=w6.prototype.onPopupOpened;w6.prototype.onMouseleave=w6.prototype.onMouseleave;w6.prototype.dataChanged=w6.prototype.dataChanged;_.B([_.V(_.zk),_.v("design:type",Object)],w6.prototype,"ironButtonState",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],w6.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],w6.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],w6.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.v("design:type",Object)],w6.prototype,"ariaLabel",void 0);_.B([_.R(),_.v("design:type",Object)],w6.prototype,"disableTooltips",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],w6.prototype,"popupOpen",void 0);_.B([_.R(),_.v("design:type",Object)],w6.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Element)],w6.prototype,"eventSink",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],w6.prototype,"useExpandableTooltip",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.v("design:type",Object)],w6.prototype,"toggled",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],w6.prototype,"hovered",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.v("design:type",Object)],w6.prototype,"iconOnHover",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],w6.prototype,"dataChanged",null);
_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],w6.prototype,"onMouseleave",null);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],w6.prototype,"onPopupOpened",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],w6.prototype,"onPopupClosed",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],w6.prototype,"onServiceRequestCompleted",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],w6);
_.n(w6,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(yw3!==void 0)return yw3;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return yw3=O},{mode:_.gq("kevlar_poly_si_batch_j053")?1:2});var Zm4;var EZR=_.K(function(O){var x=O.data;var e=O.thumbnailSize;var l=function(){return x().enableSegmentView};
return _.D("yt-thumbnail-overlay-progress-bar-view-model",{class:_.xz("ytThumbnailOverlayProgressBarHost",function(){return rkN(e==null?void 0:e())})},_.D(_.F,{cond:l,
then:function(){return _.D("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.D("div",{class:_.yu("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+x().startPercent+"%"}}),_.D("div",{class:_.yu("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+x().segmentDurationPercent+"%"}},_.D("div",{class:_.yu("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.D("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.D("div",null," ",function(){return x().segmentLabel})),_.D("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.D("div",{class:_.yu("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.D(_.F,{cond:function(){return!l()&&x().startPercent},
then:function(){var C={};return _.D("div",{class:_.yu("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(C.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.t("web_enable_modern_progress_bar_overlay"),C))},_.D("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+x().startPercent+"%"}}))}}))},"Ea");
EZR.idomCompat=!0;var tyd=_.K(function(O){var x=_.C5(),e=_.Dl(function(C){var Q,L,k;a:{var M=(Q=O.data())==null?void 0:Q.animationActivationTargetId;Q=((L=O.data())==null?void 0:L.animationActivationEntityKey)||"";L=(k=O.data())==null?void 0:k.animationActivationEntitySelectorType;if(Q&&M)switch(L){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":C=_.ee(C,Q);k=_.GG().resolve(_.D0(_.Vs));M=!!(C&&C.videoId===M&&(k==null?0:k.isMiniplayerActive()));M={activated:M,playAnimation:M&&C.playerState==="PLAYER_STATE_PLAYING"};
break a}M=void 0}return M});
_.uo(function(){var C;if((C=e())==null?0:C.activated){var Q;if((Q=e())==null?0:Q.playAnimation){var L;(L=x.lottieEl)==null||L.goToAndPlay(0)}else{var k;(k=x.lottieEl)==null||k.goToAndStop(0)}}},"DbQiXd");
var l=function(){var C,Q=!((C=e())==null||!C.activated);if(O.data()){C=O.data();var L=void 0;C.icon&&(L=_.AoV(C.icon),L=yoV(L));var k=void 0,M;if((M=C.backgroundColor)==null?0:M.lightTheme){var G;k={backgroundColor:mC((G=C.backgroundColor)==null?void 0:G.lightTheme,"0.8")}}if(C.text||L||Q){if(Q&&C.lottieData&&x){G=C.lottieData;var X,y,Z;M={animationConfig:{name:G.url,path:G.url,autoplay:(X=G.settings)==null?void 0:X.autoplay,loop:(Z=(y=G.settings)==null?void 0:y.loop)!=null?Z:!0},animationRef:x}}else M=
void 0;if(Q)X=17;else b:switch(C.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":X=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":X=19;break b;default:X=17}Q={type:X,text:Q&&C.animatedText?C.animatedText:C.text,icon:L,customColors:k,animation:M}}else Q=void 0}else Q=void 0;return Q};
return _.D("yt-thumbnail-badge-view-model",{class:_.xz("ytThumbnailBadgeViewModelHost",O.class)},_.D(_.F,{cond:l,then:function(){return _.D(_.xR,{data:function(){return l()}})}}))},"Ga");var qpz=_.K(function(O){var x={},e={};return _.D("yt-thumbnail-bottom-overlay-view-model",{class:_.xz("ytThumbnailBottomOverlayViewModelHost",(x.ytThumbnailBottomOverlayViewModelHostBackground=function(){return O.data().enableGradientBackground},x))},_.D(_.MR,{data:function(){return O.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(l){return _.D(EZR,{data:l.data,
thumbnailSize:O.thumbnailSize})}}),_.D("div",{class:_.xz("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var l;
return HDr((l=O.thumbnailSize)==null?void 0:l.call(O))},(e.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var l;
return(l=O.isClip)==null?void 0:l.call(O)},e.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var l;
return!_.t("web_enable_modern_progress_bar_overlay")&&((l=O.thumbnailSize)==null?void 0:l.call(O))==="small"},e))},_.D(_.MR,{data:function(){return O.data().badge}},{thumbnailBadgeViewModel:function(l){return _.D(tyd,{data:l.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.D(_.MR,{data:function(){return O.data().badges}},{thumbnailBadgeViewModel:function(l){return _.D(tyd,{data:l.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
qpz.idomCompat=!0;_.wP(qpz,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.vs,thumbnailSize:_.vs,isClip:_.vs}});var w2W={calledOnce:!1,state:"visible"},SPs={calledOnce:!1,state:"hidden"};var SQ=_.K(function(O){var x=O.data;var e=O.className;O=O.alwaysShow;var l=_.nIw(),C={};return _.D("thumbnail-hover-overlay-view-model",{el:_.Y0(_.P8(function(){return x().rendererContext})),
class:_.xz("ytThumbnailHoverOverlayViewModelHost",e,(C.ytThumbnailHoverOverlayViewModelHostForceHover=O,C)),"aria-label":function(){var Q;return(Q=_.q(x().rendererContext,_.LM))==null?void 0:Q.label},
role:function(){return _.tA(x().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.tA(x().rendererContext)!==void 0?0:void 0},
"on:keypress":l},_.D("div",{class:_.xz("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(x().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Q="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Q="ytThumbnailHoverOverlayViewModelStyleCover"}return Q})},_.D(_.F,{cond:function(){return x().icon},
then:function(Q){return _.D(_.n_,{data:Q,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.D(_.F,{cond:function(){return x().text},
then:function(Q){return _.D(_.TT,{text:Q,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
SQ.idomCompat=!0;var P7T=_.K(function(O){var x=O.data;return _.D(_.MR,{data:function(){return x==null?void 0:x().overlays}},{thumbnailHoverOverlayViewModel:SQ})},"Ka");
P7T.idomCompat=!0;var cwd={};var IIp=_.K(function(O){var x=O.data;var e=O.image;var l=O.state;var C=O.iconType;var Q=O.overlays;var L=O.isOverlay;var k=_.bD("div");O=_.T(_.Iw(!0,void 0,"AA4e7b"));var M=O.next().value,G=O.next().value,X=function(){return!!x().onTap},y=_.uH(C,"LIVE");
_.uo(function(){var E=x();requestAnimationFrame(function(){if(k.value===null)var P=!0;else{var U=k.value;P=E.badgeText;var W=gIW(E.size);P in cwd?U=cwd[P]:(U=U.clientWidth,cwd[P]=U);(P=U>W)?k.value.style.display="none":k.value.style.visibility="visible"}G(P)})},"vNdN8b");
var Z=function(){var E={};return E["yt-spec-avatar-shape__image"]=!0,E["yt-spec-avatar-shape__image--ads-app"]=x().type===1,E["yt-spec-avatar-shape__image--inscribed-square"]=x().type===2,E};
return _.D("yt-avatar-shape",null,_.D("div",{el:_.Y0(iDL(X,{keydown:function(E){if(E.key==="Enter"){var P;(P=E.currentTarget)==null||P.click()}},
click:function(E){var P,U;return void((U=(P=x()).onTap)==null?void 0:U.call(P,E))}})),
class:function(){var E={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},P=x();E=(E[P.clusterLayoutConfig?edL(P.clusterLayoutConfig):lU7(P.size)]=!0,E["yt-spec-avatar-shape__button--tappable"]=X(),E);(P=x().avatarButtonCustomClassName)&&(E[P]=!0);return _.yu(E)},
"aria-label":function(){return X()?x().accessibilityText:""},
role:function(){return X()?"button":void 0},
tabindex:function(){return X()?0:void 0}},_.D("div",{class:function(){var E,P=x(),U=l==null?void 0:l(),W=L==null?void 0:L(),z=!((E=P.decorations)==null||!E.includes(2)||P.size!=="medium"&&P.size!=="large"),r=P.size==="tiny"||P.size==="extra-small",f,u,Y,J,O8={};
E=(O8["yt-spec-avatar-shape--live-ring"]=!!(((f=P.decorations)==null?0:f.includes(0))&&QDL(P.size)),O8["yt-spec-avatar-shape--stories-watched"]=z&&!(U==null||!U.storiesWatched),O8["yt-spec-avatar-shape--stories-unwatched"]=z&&!(U==null?0:U.storiesWatched),O8["yt-spec-avatar-shape--background-border"]=bPL(P.decorations)&&!r,O8["yt-spec-avatar-shape--background-border-thin"]=bPL(P.decorations)&&r,O8["yt-spec-avatar-shape__on-select-border"]=!((u=P.decorations)==null||!u.includes(4)),O8["yt-spec-avatar-shape__white-border"]=
!((Y=P.decorations)==null||!Y.includes(5)),O8["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((J=P.decorations)==null?0:J.includes(5))&&r),O8["yt-spec-avatar-shape--is-overlay"]=!!W,O8);return _.yu(E)},
style:function(){a:{var E=x().clusterLayoutConfig;if(E){b:{var P=E.numAvatarsInCluster;var U=E.avatarIndex;if(U!==P-1){switch(E.clusterSize){case "small":E="32";break;case "medium":E="36";break;case "40":E="40";break;default:P=void 0;break b}P="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+E+"x"+E+"_avatars_"+P+"_index_"+U+".svg"}else P=void 0}if(P){P=_.T7({"-webkit-mask-image":"url("+P+")","mask-image":"url("+P+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}P=void 0}return P}},_.D("div",{class:function(){var E={};
var P=x();E=(E[P.clusterLayoutConfig?OPW(P.clusterLayoutConfig):xfL(P.size)]=!0,E["yt-spec-avatar-shape--no-margin"]=bPL(x().decorations),E["yt-spec-avatar-shape--square"]=x().type===2,E);return _.yu(E)}},_.D(_.n_,{data:e,
alt:function(){return!X()&&x().accessibilityText?x().accessibilityText:""},
targetWidth:function(){return C1i(x().size)},
targetHeight:function(){return C1i(x().size)},
className:function(){return _.yu(Z())}}),_.D(_.F,{cond:function(){var E;
return((E=x().decorations)==null?void 0:E.includes(0))&&QDL(x().size)},
then:function(){return _.D("div",{class:function(){var E={};E=(E["yt-spec-avatar-shape__live-badge"]=!0,E["yt-spec-avatar-shape__live-badge--badge-small"]=x().size==="small",E["yt-spec-avatar-shape__live-badge--badge-medium"]=x().size==="medium"||x().size==="48",E["yt-spec-avatar-shape__live-badge--badge-large"]=x().size==="large",E["yt-spec-avatar-shape__live-badge--badge-extra-large"]=x().size==="extra-large"||x().size==="extra-extra-large"||x().size==="giant",E);return _.yu(E)}},_.D(_.F,{cond:function(){return x().badgeText},
then:function(E){return _.D("div",{class:"yt-spec-avatar-shape__badge-text",el:k},E)}}),_.D(_.F,{cond:M,
then:function(){return _.D("div",{class:"yt-spec-avatar-shape__badge-icon"},_.D(_.L7,{icon:y,size:function(){a:switch(x().size){case "extra-large":var E=16;break a;default:E=13}return E}}))}}))}}),_.D(_.F,{cond:function(){var E,P;
return((E=x().decorations)==null?void 0:E.includes(1))||((P=x().decorations)==null?void 0:P.includes(0))&&!QDL(x().size)},
then:function(){return _.D("div",{class:function(){var E=x(),P,U,W={};var z=(W["yt-spec-avatar-shape__live-dot"]=!((P=E.decorations)==null||!P.includes(0)||QDL(E.size)),W["yt-spec-avatar-shape__new-content"]=!((U=E.decorations)==null||!U.includes(1)),W);return _.yu(z)}})}}),_.D(_.F,{cond:function(){return!!Q},
then:function(){return _.D("div",{class:function(){var E={};E=Object.assign((E["yt-spec-avatar-shape__image-overlays"]=!0,E),Z());return _.yu(E)}},Q==null?void 0:Q())}})))))},"Na");
IIp.idomCompat={callbacks:{overlays:!0}};_.jQ=_.K(function(O){function x(){e().endpoint&&_.me(e().endpoint)}
var e=O.data;var l=O.decorations;var C=O.avatarButtonCustomClassName;var Q=O.isOverlay;var L=O.clusterLayoutConfig;return _.D("avatar-view-model",null,_.D(_.F,{cond:function(){return e().image},
then:function(k){return _.D(IIp,{data:function(){return LVr({data:e(),onTap:e().endpoint?x:void 0,decorations:l==null?void 0:l(),badgeText:void 0,accessibilityText:e().accessibilityText,avatarButtonCustomClassName:C==null?void 0:C(),clusterLayoutConfig:L==null?void 0:L()})},
image:k,iconType:"RADAR_LIVE",overlays:function(){return _.D(P7T,{data:e})},
isOverlay:Q})}}))},"Oa");
_.jQ.idomCompat=!0;_.Nz=_.K(function(O){var x=O.data;O=O.className;var e=_.bD("yt-decorated-avatar-view-model"),l=function(){return _.q(x().avatar,_.c8)},C=_.aw(function(){var Q,L=x(),k=l(),M=_.tA(x().rendererContext),G=(Q=e.value)!=null?Q:void 0,X;
if(k){G={data:L,avatar:k,onTap:M,element:G};Q=G.data;L=G.avatar;k=G.onTap;M=G.element;G=G.commandController;k=k?DfL(k,M,G):void 0;M=[];Q.liveData&&M.push(0);var y;G=(y=Q.liveData)==null?void 0:y.liveBadgeText;y=(X=_.q(Q.rendererContext,_.LM))==null?void 0:X.label;X=LVr({data:L,onTap:k,decorations:M,badgeText:G,accessibilityText:y?y:Q.a11yLabel})}else X={size:"medium"};return X},void 0,"c00kWd");
return _.D("yt-decorated-avatar-view-model",{class:_.xz("ytDecoratedAvatarViewModelHost",O),el:e},_.D(_.F,{cond:function(){var Q;return(Q=l())==null?void 0:Q.image},
then:function(Q){return _.D(IIp,{data:C,image:Q,iconType:"RADAR_LIVE",overlays:function(){return _.D(P7T,{data:l})}})}}))},"Pa");
_.Nz.idomCompat=!0;_.g6=_.K(function(O){var x=function(){var k;return Object.assign({},O.data(),(k=O.overrides)==null?void 0:k.call(O))},e=function(){return _.qR(x().rendererContext)},l=function(){var k=x().avatars,M,G;
return(G=(M=(k==null?0:k[0])?_.q(k[0],_.c8):void 0)==null?void 0:M.avatarImageSize)!=null?G:"AVATAR_SIZE_UNKNOWN"},C=function(){return Mks(x())},Q=function(){if(x().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var k=void 0;
else if((k=O.decorations)==null?0:k.call(O))k=O.decorations();else{k=x();var M=0;k.avatars&&(M+=k.avatars.length);k.decoratedText&&(M+=1);k=M>1?[3]:[]}return k},L={};
return _.D("yt-avatar-stack-view-model",{el:_.Y0(_.P8(function(){return x().rendererContext})),
class:_.xz("yt-avatar-stack-view-model",O.className,(L["yt-avatar-stack-view-model--tappable"]=e,L["yt-avatar-stack-view-model--is-overlay"]=O.isOverlay,L["yt-avatar-stack-view-model--medium-text"]=O.useMediumText,L)),tabindex:function(){return e()?0:void 0},
role:function(){return e()?"link":void 0},
"aria-label":function(){var k,M;return(M=(k=_.q(x().rendererContext,_.LM))==null?void 0:k.label)!=null?M:""}},_.D(_.F,{cond:function(){var k;
return x().avatars&&!((k=O.hideAvatar)==null?0:k.call(O))},
then:function(){return _.D("div",{class:"yt-avatar-stack-view-model__avatars"},_.D(_.F,{cond:function(){return x().decoratedText},
then:function(k){var M={};return _.D("div",{class:_.xz("yt-avatar-stack-view-model__text-container",(M["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return l()==="AVATAR_SIZE_XXS"||l()==="AVATAR_SIZE_XS"},M["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var G;
return((G=O.isOverlay)==null?void 0:G.call(O))&&(l()==="AVATAR_SIZE_XXS"||l()==="AVATAR_SIZE_XS")},M)),
style:_.T7({width:function(){return C().avatarSizeInPx+"px"},
height:function(){return C().avatarSizeInPx+"px"}})},_.D(_.TT,{text:k,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.D("div",{style:function(){return _.T7(C().avatarStackStyle)()},
class:function(){return C().avatarStackClass}},_.D(_.MR,{data:function(){return C().avatars.reverse()}},{avatarViewModel:function(k,M){return _.D("div",{style:function(){var G,X;
return _.T7((X=(G=C()).avatarStyle)==null?void 0:X.call(G,M()))()},
class:function(){return C().avatarClass}},_.D(_.jQ,{data:k.data,
decorations:Q,avatarButtonCustomClassName:function(){return C().avatarButtonCustomClassName},
isOverlay:O.isOverlay,clusterLayoutConfig:function(){var G,X;return(X=(G=C()).clusterLayoutConfig)==null?void 0:X.call(G,M())}}))},
decoratedAvatarViewModel:function(k,M){return _.D("div",{style:function(){var G,X;return _.T7((X=(G=C()).avatarStyle)==null?void 0:X.call(G,M()))()},
class:function(){return C().avatarClass}},_.D(_.Nz,{data:k.data}))}})))}}),_.D(_.F,{cond:function(){return x().text},
then:function(k){return _.D(_.TT,{text:k,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.g6.idomCompat=!0;_.wP(_.K(function(O){var x=O.data;var e=O.thumbnailSize;return _.D("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.D("div",{class:_.xz("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return GNr(e==null?void 0:e())})},_.D(_.MR,{data:function(){return x().avatarStack}},{avatarStackViewModel:function(l){return _.D(_.g6,{data:l.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Ld,
thumbnailSize:_.Ld}});var Vy$=_.K(function(O){O=_.YX(O,{hidden:!1});var x=O.data;return _.D("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:O.hidden},_.D(_.TT,{text:function(){return x().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.D(_.F,{cond:function(){return x().subtitle},
then:function(){return _.D(_.TT,{text:function(){return x().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"Sa");
Vy$.idomCompat=!0;_.wP(Vy$,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Ld,hidden:_.Ld}});_.pGD=_.K(function(O){O=_.YX(O,{isClip:!1});var x=O.data,e=O.thumbnailSize,l={};return _.D("yt-thumbnail-overlay-badge-view-model",{class:_.xz("yt-thumbnail-overlay-badge-view-model",function(){a:switch(x().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var C="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:C="yt-thumbnail-overlay-badge-view-model--bottom-end"}return C},function(){return FVw(e==null?void 0:e())},(l["yt-thumbnail-overlay-badge-view-model--clip"]=O.isClip,
l))},_.D(_.MR,{data:function(){return x().thumbnailBadges}},{thumbnailBadgeViewModel:function(C){return _.D(tyd,{data:C.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.pGD.idomCompat=!0;_.wP(_.pGD,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Ld,thumbnailSize:_.Ld,isClip:_.Ld}});var RMp=_.K(function(O){var x=O.data;O=O.hidden;var e=_.aw(function(){return x().indicatorCount||0},void 0,"AbKnMc"),l={};
return _.D("yt-page-indicator-view-model",{class:_.xz("ytPageIndicatorViewModelHost",(l.ytPageIndicatorViewModelIndicatorHidden=function(){return!x().indicatorCount},l)),
hidden:O},_.D(_.HE,{each:function(){return Array(e())}},function(C,Q){var L={};
return _.D("div",{class:_.xz("ytPageIndicatorViewModelIndicator",(L.ytPageIndicatorViewModelIndicatorSelected=function(){return x().selectedIndex===Q()},L))})}))},"Ua");
RMp.idomCompat=!0;_.wP(RMp,"yt-page-indicator-view-model",{props:{data:_.Ld,hidden:_.Ld}});var $R=function(){var O=_.a.apply(this,arguments)||this;O.eventSink=function(){return O};
O.disableInteraction=!1;O.noRoundedCorners=!1;O.isPreviewLoading=!1;O.isOriginalAspectRatio=!1;O.computedObjectFit=!1;O.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return O};
_.c($R,_.a);_.b=$R.prototype;
_.b.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:_.t("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"}}};
_.b.onImageLoaded=function(){this.loaded=!0};
_.b.onImageUnloaded=function(){this.loaded=!1};
_.b.computeRichThumbnail=function(O,x,e,l){if(O&&x&&!l&&!_.t("disable_moving_thumbs_handling")&&!e)return x};
_.b.computeImageWidth=function(O,x){return x||9999};
_.b.computeIsOriginalAspectRatio=function(O){return O};
_.b.computeIsLive=function(O){if(O==null?0:O.badges)for(var x=0;x<O.badges.length;x++){var e=O.badges[x];if(e.metadataBadgeRenderer&&e.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(O==null?0:O.thumbnailOverlays)for(x=0;x<O.thumbnailOverlays.length;x++)if(e=O.thumbnailOverlays[x],e.thumbnailOverlayTimeStatusRenderer&&e.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.b.computeObjectFit=function(O,x){return x||(O?"CONTAIN":"")};
_.b.computeNavigationEndpoint=function(O,x,e){return O?x:e};
_.b.computeHasClip=function(O){O=_.T(O||[]);for(var x=O.next();!x.done;x=O.next())if(x.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.b.computeOverlayColor=function(O){var x;return(O==null?0:(x=O.darkColorPalette)==null?0:x.section2Color)?O.darkColorPalette.section2Color:O==null?void 0:O.sampledThumbnailColor};
_.Dy.Object.defineProperties($R.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return vk8(this.width)}}});
$R.prototype.onImageUnloaded=$R.prototype.onImageUnloaded;$R.prototype.onImageLoaded=$R.prototype.onImageLoaded;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(CMF),_.v("design:type",Object)],$R.prototype,"ytdThumbnailBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$R.prototype,"componentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],$R.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$R.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],$R.prototype,"circular",void 0);
_.B([_.R({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.v("design:type",Object)],$R.prototype,"richThumbnail",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.v("design:type",Boolean)],$R.prototype,"hasClip",void 0);_.B([_.R(),_.v("design:type",Object)],$R.prototype,"eventSink",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],$R.prototype,"queued",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],$R.prototype,"richGridThumbnail",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],$R.prototype,"useExpandableTooltip",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],$R.prototype,"useUntranslatedNavigationEndpoint",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$R.prototype,"disableInteraction",void 0);
_.B([_.R({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.v("design:type",Object)],$R.prototype,"computedNavigationEndpoint",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],$R.prototype,"nowPlayingEqualizerOnly",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],$R.prototype,"hidePlaybackStatus",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],$R.prototype,"objectFit",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$R.prototype,"noRoundedCorners",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],$R.prototype,"watchFeedThumbnail",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$R.prototype,"isPreviewLoading",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.v("design:type",Object)],$R.prototype,"isOriginalAspectRatio",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.v("design:type",Object)],$R.prototype,"computedObjectFit",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.v("design:type",Boolean)],$R.prototype,"isLiveVideo",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],$R.prototype,"loaded",void 0);_.B([_.R({computed:"computeOverlayColor(data.thumbnail)"}),_.v("design:type",Object)],$R.prototype,"overlayColor",void 0);_.B([_.R({selector:_.WPm}),_.v("design:type",Boolean)],$R.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.R(),_.v("design:type",Number)],$R.prototype,"width",void 0);
_.B([_.p("inlinePreviewIsEnabled"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],$R.prototype,"isPreviewDisabled",null);_.B([_.p("width"),_.v("design:type",String),_.v("design:paramtypes",[])],$R.prototype,"thumbnailSize",null);_.B([_.bH("image-loaded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$R.prototype,"onImageLoaded",null);
_.B([_.bH("image-unloaded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$R.prototype,"onImageUnloaded",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-thumbnail"})],$R);
var UGz=_.NQ()($R,"ytd-thumbnail",function(){if(Zm4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);Zm4=O}O=Zm4;return O},{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 ym$=function(O){var x=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15071_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15071_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(e){aId(x,e)};
this.onLockupMouseLeaveFn=function(e){e=e.relatedTarget;var l,C;((l=document.getElementsByTagName("ytd-video-preview"))==null?0:(C=l.item(0))==null?0:C.contains(e))||(x.terminateVideoPreview(),il(x))};
this.onThumbnailMouseDownFn=function(){x.terminateVideoPreview();il(x)};
this.onTouchStart=function(){x.JSC$15071_touched=!0};
this.mediaRenderer=O.mediaRenderer;this.thumbnailElement=O.thumbnailElement;this.lockupElement=O.lockupElement;this.videoPreviewOptsInput=O.videoPreviewOpts;mGd(this);OL(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)):
_.ft(Error("Mh")):_.ft(Error("Nh")):sZF(this)},KM=function(O){sZF(O);
var x;(x=O.lockupElement)==null||x.removeEventListener("mouseenter",O.onMouseMoveFn);var e;(e=O.lockupElement)==null||e.removeEventListener("mouseleave",O.onLockupMouseLeaveFn);var l;(l=O.lockupElement)==null||l.removeEventListener("touchstart",O.onTouchStart);var C;(C=O.thumbnailElement)==null||C.removeEventListener("mousedown",O.onThumbnailMouseDownFn);il(O)},mGd=function(O){O.inlinePreviewIsEnabledForUser=_.u9().getState().ui.inlinePreviewIsEnabled;
O.unsubscribeFromInlinePreviewIsEnabled=_.mw(_.u9(),_.WPm,function(x){(O.inlinePreviewIsEnabledForUser=x)||il(O)});
O.JSC$15071_unsubscribeFromInlinePreviewIsActive=_.mw(_.u9(),_.sVi,function(x){(O.inlinePreviewIsActive=x)||il(O)})},sZF=function(O){O.unsubscribeFromInlinePreviewIsEnabled();
O.unsubscribeFromInlinePreviewIsEnabled=function(){};
O.JSC$15071_unsubscribeFromInlinePreviewIsActive();O.JSC$15071_unsubscribeFromInlinePreviewIsActive=function(){}},aId=function(O,x){x.buttons>0||(x=_.yF("kevlar_lockup_hover_delay",-1),O.JSC$15071_touched&&x>=0?(_.vn.cancelJob(O.videoPreviewJobId),O.videoPreviewJobId=_.$0(_.vn,function(){W9d(O)},x),O.JSC$15071_touched=!1):W9d(O))},bFN=function(O){O.videoPreviewJobId=_.$0(_.vn,function(){return _.A(function(x){return x.yield(hMk(O,{isAutoplay:!0}),0)})})},W9d=function(O){!O.previewTriggered&&OL(O)&&
(O.inlinePreviewIsActive&&O.terminateVideoPreview(),O.previewTriggered=!0,O.mediaRenderer.isInlinePreviewTriggered=!0,_.vn.cancelJob(O.videoPreviewJobId),O.videoPreviewJobId=_.$0(_.vn,function(){return _.A(function(x){return x.yield(hMk(O),0)})}))},hMk=function(O,x){x=x===void 0?{}:x;
var e=x.isAutoplay===void 0?!1:x.isAutoplay;var l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){if(!OL(O))return k.return();l=O.getVideoPreviewOpts();if(!l)return k.return();e&&(l.isAutoplay=!0);return(Q=(C=_.jh(O.mediaRenderer.hostElement,"yt-open-video-preview-action",[l]))&&C[0])?k.yield(C[0],3):k.jumpTo(2)}k.nextAddress!=2&&(Q=k.yieldResult===1);if(Q){var M=(L=O.mediaRenderer)==null?void 0:L.data;M&&(oJw(M)?delete M.inlinePlayerData:"inlinePlaybackEndpoint"in M&&delete M.inlinePlaybackEndpoint)}_.Ra(k)})};
ym$.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var O,x;if((x=(O=this.videoPreviewOptsInput)==null?void 0:O.videoPreviewData)!=null)O=x;else if(O=this.mediaRenderer.data)if(oJw(O))O={inlinePlaybackEndpoint:_.p_(O.inlinePlayerData.onVisible),navigationEndpoint:_.p_(O.onTap),thumbnail:"image"in O?O.image:O.thumbnail,thumbnailOverlays:void 0,accessibilityText:X5r(O)};else if("multipleInlinePlaybackEndpoint"in O){var e=_.q(_.q(O.multipleInlinePlaybackEndpoint,taz),qFk);if(e!=
null&&e.playerDescriptors){x=[];e=_.T(e.playerDescriptors);for(var l=e.next();!l.done;l=e.next())l=l.value,x.push({inlinePlaybackEndpoint:l.inlinePlaybackEndpoint,navigationEndpoint:l.navigationEndpoint,thumbnail:l.thumbnail,thumbnailOverlays:l.thumbnailOverlays,accessibilityText:X5r(O)});O=x}else O=void 0}else O={inlinePlaybackEndpoint:O.inlinePlaybackEndpoint,navigationEndpoint:O.navigationEndpoint,thumbnail:O.thumbnail,thumbnailOverlays:O.thumbnailOverlays,accessibilityText:X5r(O)};else O=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:O,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var OL=function(O){var x;if(x=O.inlinePreviewIsEnabledForUser)x=(O=O.mediaRenderer.data)?"inlinePlaybackEndpoint"in O&&O.inlinePlaybackEndpoint||oJw(O)&&O.inlinePlayerData||"multipleInlinePlaybackEndpoint"in O&&O.multipleInlinePlaybackEndpoint?!0:!1:!1;return x};
ym$.prototype.terminateVideoPreview=function(){_.Sh(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var il=function(O){_.vn.cancelJob(O.videoPreviewJobId);O.inlinePreviewIsActive=!1;O.previewTriggered=!1;O.mediaRenderer.isInlinePreviewTriggered=!1};var zMd=_.zo(["#"]),x6=function(){var O=_.a.apply(this,arguments)||this;O.isDisabled=!1;return O};
_.c(x6,_.a);_.b=x6.prototype;
_.b.configureRendererStamper=function(){return{"data.menu":zx,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.b.attached=function(){this.updateInlinePreviewHoverListeners()};
_.b.detached=function(){this.clearInlinePreviewHoverListeners()};
_.b.getMetadata=function(O){var x=[];if(O.metadataText&&Object.keys(O.metadataText).length>0){var e=this.ytRendererBehavior.getSimpleString(O.metadataText);O.upcomingEventData&&O.upcomingEventData.upcomingEventText&&(e=_.XQ(e,Number(O.upcomingEventData.startTime)));x.push(e)}else O.shortViewCountText&&x.push(this.ytRendererBehavior.getSimpleString(O.shortViewCountText)),O.publishedTimeText&&x.push(this.ytRendererBehavior.getSimpleString(O.publishedTimeText)),O.upcomingEventData&&O.upcomingEventData.upcomingEventText&&
(e=this.ytRendererBehavior.getSimpleString(O.upcomingEventData.upcomingEventText),x.push(_.XQ(e,Number(O.upcomingEventData.startTime))));return x};
_.b.calculateBylineText=function(O){return O.shortBylineText?O.shortBylineText:O.bylineText?O.bylineText:null};
_.b.calculateIsDisabled=function(O){return!!O.isDisabled};
_.b.computeHrefWithDefault=function(O){return this.ytComponentBehavior.computeHref_(O)||_.Lg8(zMd)};
_.b.onDetailsTap=function(O){var x=this.data&&this.data.navigationEndpoint;x&&!_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.t("kevlar_grid_video_renderer_killswitch")?_.wr(this.hostElement,"yt-navigate",{endpoint:x}):this.ytComponentBehavior.resolveCommand(x))};
_.b.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15078_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:_.$U(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.$U(this.hostElement).querySelector("ytd-thumbnail")})};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15078_inlinePreviewHoverListener)==null||KM(O)};
_.b.computeThumbnailWidth=function(O,x){return x&&x>0?x:O?360:210};
_.b.computeNumBadgesInRow=function(O){var x;return((x=O.badges)==null?void 0:x.length)||0};
_.b.computeShowChannelThumbnail=function(O,x){var e;return x&&!!(O==null?0:(e=O.channelThumbnailSupportedRenderers)==null?0:e.channelThumbnailWithLinkRenderer)};
_.Dy.Object.defineProperties(x6.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15078_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
x6.prototype.dataChanged=x6.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],x6.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],x6.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Lj),_.v("design:type",Object)],x6.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],x6.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],x6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],x6.prototype,"noEndpoints",void 0);_.B([_.R({computed:"calculateBylineText(data)"}),_.v("design:type",Object)],x6.prototype,"bylineText",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],x6.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],x6.prototype,"isDownloading",void 0);_.B([_.R({reflectToAttribute:!0,value:0}),_.v("design:type",Number)],x6.prototype,"width",void 0);_.B([_.R({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.v("design:type",Object)],x6.prototype,"isDisabled",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x6.prototype,"dataChanged",null);_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],x6.prototype,"isHovered",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],x6.prototype,"hasAttributedBylineText",null);
_.B([_.p("bylineText","hasAttributedBylineText"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],x6.prototype,"showBylineText",null);_.B([_.H({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],x6);
_.n(x6,"ytd-grid-video-renderer",function(){if(bm4!==void 0)return bm4;var O=document.createElement("template");_.I(O,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return bm4=O},{mode:_.gq("kevlar_poly_si_batch_j047")?1:2});var rwz;var eV=function(){var O=_.a.apply(this,arguments)||this;O.roundedContainer=!0;O.skipRoundingTop=!1;O.disableTopPadding=!1;O.amsterdamEnabled=_.t("enable_desktop_amsterdam_info_panels");O.extractOverlay=!1;return O};
_.c(eV,_.a);eV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
eV.prototype.onClick=function(O){var x,e=(x=this.data)==null?void 0:x.sourceEndpoint;!_.uk(_.n3(O),this.hostElement,["A".toString()])&&e&&_.wr(this.hostElement,"yt-navigate",{endpoint:e})};
_.Dy.Object.defineProperties(eV.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 O;return!((O=this.data)==null||!O.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.data)==null?void 0:O.paragraphMaxLines)!=null?x:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eV.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eV.prototype,"showVerticalDividers",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eV.prototype,"roundedContainer",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eV.prototype,"skipRoundingTop",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eV.prototype,"disableTopPadding",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eV.prototype,"amsterdamEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eV.prototype,"extractOverlay",void 0);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],eV.prototype,"showMetadataAtTop",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],eV.prototype,"showMetadataBelowTitle",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.menu"),_.v("design:type",Object),_.v("design:paramtypes",[])],eV.prototype,"hasMenu",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.truncateParagraphs"),_.v("design:type",Object),_.v("design:paramtypes",[])],eV.prototype,"truncateParagraphs",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.paragraphMaxLines"),_.v("design:type",Number),_.v("design:paramtypes",[])],eV.prototype,"paragraphMaxLines",null);
_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.background"),_.v("design:type",Object),_.v("design:paramtypes",[])],eV.prototype,"background",null);_.B([_.H({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],eV);
_.n(eV,"ytd-info-panel-content-renderer",function(){if(rwz!==void 0)return rwz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return rwz=O},{mode:_.gq("kevlar_poly_si_batch_j076")?1:2});var Hm3;var K9N;var dG2;var nZ4;var l6=function(){return _.a.apply(this,arguments)||this};
_.c(l6,_.a);l6.prototype.computeStyle=function(O){return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],l6.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],l6.prototype,"style_",void 0);_.B([_.Va({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],l6);
_.n(l6,"yt-channel-thumbnail-with-link-renderer",function(){if(nZ4===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;dG2===void 0&&(dG2=document.createElement("template"));var l=dG2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);nZ4=O}O=nZ4;return O},{mode:2});var Cg=function(){return _.a.apply(this,arguments)||this};
_.c(Cg,_.a);Cg.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"}}}};
Cg.prototype.computeTitleStyle=function(O){return O||null};
Cg.prototype.computeAvatarStyle=function(O){return O||null};
Cg.prototype.computeShowNavigationButton=function(O,x){return!(O==null||!O.navigationButton||x)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Cg.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.v("design:type",String)],Cg.prototype,"titleStyle",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.v("design:type",String)],Cg.prototype,"avatarStyle",void 0);_.B([_.R(),_.v("design:type",Boolean)],Cg.prototype,"hideNavigationButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Cg.prototype,"isModernSd",void 0);_.B([_.H({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Cg);
_.n(Cg,"ytd-rich-list-header-renderer",function(){if(K9N!==void 0)return K9N;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return K9N=O},{mode:_.gq("kevlar_poly_si_batch_j058")?1:2});var QB=function(){return _.a.apply(this,arguments)||this};
_.c(QB,_.a);QB.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]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],QB.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],QB.prototype,"isSearch",void 0);_.B([_.H({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],QB);
_.n(QB,"ytd-preview-card-renderer",function(){if(Hm3!==void 0)return Hm3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Hm3=O},{mode:1});var uUk;var b6=function(){return _.a.apply(this,arguments)||this};
_.c(b6,_.a);b6.prototype.configureRendererStamper=function(){return{"data.menu":zx}};
b6.prototype.dataChanged=function(){var O=this.get("colorExtractionPalette.section1Color",this.data);O=_.UA(O);_.lH(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":O})};
b6.prototype.computeCardStyle=function(O){return this.get("style.value",O)||null};
b6.prototype.dataChanged=b6.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],b6.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],b6.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.v("design:type",String)],b6.prototype,"cardStyle",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],b6.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],b6);
_.n(b6,"ytd-compact-channel-recommendation-card-renderer",function(){if(uUk!==void 0)return uUk;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return uUk=O},{mode:1});var YpT;var Bd2;var Td=function(){var O=_.a.apply(this,arguments)||this;O.alignAuto=!1;O.collapsed=!0;O.isToggled=!1;O.alwaysCollapsed=!1;O.canToggle=!0;O.collapsedHeight=80;O.disableToggle=!1;O.alwaysToggleable=!1;O.reversed=!1;O.shouldUseNumberOfLines=!1;O.recomputeOnResize=!1;O.canToggleJobId=0;O.lastReversed=!1;return O};
_.c(Td,_.a);_.b=Td.prototype;_.b.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.b.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.b.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var O=_.$U(this.hostElement),x=O.childNodes,e=document.createDocumentFragment(),l=O.childNodes.length-1;l>=0;l--)_.$U(e).appendChild(x[l]);_.t("enable_shadydom_free_scoped_node_methods")?_.iK(this.hostElement).appendChild(e):O.appendChild(e)}};
_.b.ready=function(){var O=this;_.WZ(function(){O.initChildrenObserver()},1)};
_.b.attached=function(){var O;(O=this.resizeObserver)==null||O.observe(this.content)};
_.b.detached=function(){this.detachObserver()};
_.b.toggle=function(O,x){this.canToggle&&(this.isToggled=x,_.wr(this.hostElement,"yt-refit"),O&&O.stopPropagation())};
_.b.reset=function(){this.childrenChanged()};
_.b.onIronResize=function(){this.recomputeOnResize&&!_.t("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.b.computeIsMoreVisible=function(O,x){return O&&!x};
_.b.computeShouldUseNumberOfLines=function(O){try{return!!O&&window.CSS.supports("-webkit-line-clamp","1")}catch(x){}return!1};
_.b.computeIsLessVisible=function(O,x){return O&&x};
_.b.observeCollapsedHeightAndMaxLines=function(){var O=this.collapsedHeight,x=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.lH(this.hostElement,{"--ytd-expander-max-lines":""+x,"--ytd-expander-collapsed-height":""}):_.lH(this.hostElement,{"--ytd-expander-collapsed-height":O+"px","--ytd-expander-max-lines":""})};
_.b.handleMoreTap=function(O){this.disableToggle||(_.wr(this.hostElement,"yt-expander-more-tapped"),this.toggle(O,!0))};
_.b.handleLessTap=function(O){_.wr(this.hostElement,"yt-expander-less-tapped");this.toggle(O,!1)};
_.b.initChildrenObserver=function(){var O=this;this.observer=new MutationObserver(function(){O.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.t("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.QI(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var x;(x=O.resizeThrottle)==null||x.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.b.childrenChanged=function(){var O=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){gP(function(){O.canToggleJobId=0;O.calculateCanCollapse()})}))};
_.b.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};
_.b.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.b.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("collapsed-changed",this.collapsed))};
_.b.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("is-toggled-changed",this.isToggled))};
_.b.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("can-toggle-changed",this.canToggle))};
_.Dy.Object.defineProperties(Td.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Td.prototype.canToggleChangedForBinding=Td.prototype.canToggleChangedForBinding;Td.prototype.isToggledChangedForBinding=Td.prototype.isToggledChangedForBinding;Td.prototype.collapsedChangedForBinding=Td.prototype.collapsedChangedForBinding;Td.prototype.observeCollapsedHeightAndMaxLines=Td.prototype.observeCollapsedHeightAndMaxLines;Td.prototype.onIronResize=Td.prototype.onIronResize;Td.prototype.reversedChanged=Td.prototype.reversedChanged;Td.prototype.toggledChanged=Td.prototype.toggledChanged;
Td.prototype.alwaysToggleableChanged=Td.prototype.alwaysToggleableChanged;_.B([_.V(_.Wg),_.v("design:type",Object)],Td.prototype,"ironResizableBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Td.prototype,"alignAuto",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Td.prototype,"collapsed",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"isToggled",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"alwaysCollapsed",void 0);
_.B([_.R(),_.v("design:type",Object)],Td.prototype,"canToggle",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"collapsedHeight",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"disableToggle",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"alwaysToggleable",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"reversed",void 0);_.B([_.R(),_.v("design:type",Number)],Td.prototype,"maxNumberOfLines",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.v("design:type",Object)],Td.prototype,"shouldUseNumberOfLines",void 0);_.B([_.R(),_.v("design:type",Object)],Td.prototype,"recomputeOnResize",void 0);_.B([_.kX("#content"),_.v("design:type",HTMLDivElement)],Td.prototype,"content",void 0);_.B([_.G1("alwaysToggleable"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"alwaysToggleableChanged",null);
_.B([_.G1("isToggled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"toggledChanged",null);_.B([_.p("canToggleJobId"),_.v("design:type",Object),_.v("design:paramtypes",[])],Td.prototype,"isResetting",null);_.B([_.T1("reversed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"reversedChanged",null);
_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"onIronResize",null);_.B([_.T1("maxNumberOfLines","collapsedHeight"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"observeCollapsedHeightAndMaxLines",null);_.B([_.T1("collapsed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"collapsedChangedForBinding",null);
_.B([_.T1("isToggled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"isToggledChangedForBinding",null);_.B([_.T1("canToggle"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Td.prototype,"canToggleChangedForBinding",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-expander"})],Td);
_.n(Td,"ytd-expander",function(){if(Bd2!==void 0)return Bd2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Bd2=O},{mode:1});var Lg=function(){return _.a.apply(this,arguments)||this};
_.c(Lg,_.a);Lg.prototype.computeIsCarousel=function(O){return!!O.isCarousel};
Lg.prototype.observeLightsourcePalette=function(){var O,x=(O=this.data)==null?void 0:O.vibrantsourceColorPaletteData;x&&_.Zl(this.hostElement,x)};
Lg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Lg.prototype.observeLightsourcePalette=Lg.prototype.observeLightsourcePalette;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Lg.prototype,"data",void 0);_.B([_.R({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Lg.prototype,"isCarousel",void 0);
_.B([_.T1("data.vibrantsourceColorPaletteData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Lg.prototype,"observeLightsourcePalette",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Lg);
_.n(Lg,"ytd-media-upsell-renderer",function(){if(YpT!==void 0)return YpT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YpT=O},{mode:2});var vZL;var k6=function(){var O=_.a.apply(this,arguments)||this;O.JSC$15105_playerEvents=new Map;O.listeningToPlayer=!1;O.startX=0;O.active=!1;O.shouldShowButtons=_.t("web_buttons_hidden_killswitch");O.isHighlighted=!1;O.useHighlightStyling=_.t("web_enable_deeper_metadata_highlight_styling");O.modern=_.t("kevlar_modern_sd");O.enableProblemWalkthrough=_.t("problem_walkthrough_sd");return O};
_.c(k6,_.a);_.b=k6.prototype;
_.b.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}}}}}};
_.b.created=function(){this.JSC$15105_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.b.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Qa(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Qa(this,this.onActiveUpdate))};
_.b.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Qa(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Qa(this,this.onActiveUpdate))};
_.b.onDataChanged=function(){this.removePlayerListeners()};
_.b.onColorPaletteChange=function(){var O={},x;if(_.Fo()==="USER_INTERFACE_THEME_DARK"&&((x=this.data)==null?0:x.darkColorPalette)){var e=this.data.darkColorPalette;O["--ytd-macro-markers-list-item-background-color"]=_.aF(this.get("section2Color",e))}else{var l;_.Fo()==="USER_INTERFACE_THEME_LIGHT"&&((l=this.data)==null?0:l.lightColorPalette)&&(e=this.data.lightColorPalette,O["--ytd-macro-markers-list-item-background-color"]=_.aF(this.get("section3Color",e)))}e?(O["--ytd-macro-markers-list-item-title-color"]=
_.aF(this.get("primaryTitleColor",e)),O["--ytd-macro-markers-list-item-secondary-color"]=_.aF(this.get("secondaryTitleColor",e)),O["--ytd-macro-markers-list-item-timestamp-background-color"]=_.aF(this.get("section1Color",e)),this.customButtonProperties={customColors:{color:_.aF(this.get("primaryTitleColor",e))}},this.useColorSampling=!0):(O["--ytd-macro-markers-list-item-background-color"]="initial",O["--ytd-macro-markers-list-item-title-color"]="initial",O["--ytd-macro-markers-list-item-secondary-color"]=
"initial",O["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.lH(this.hostElement,O)};
_.b.onEndpointMouseDown=function(O){this.startX=O.clientX};
_.b.onEndpointClick=function(O){var x=this,e,l,C;return _.A(function(Q){if(Q.nextAddress==1){if(x.startX!==O.clientX)return O.preventDefault(),Q.return();x.data&&x.ytRendererBehavior.logExplicitClick(x.data);if(!x.seekWithAnimationOnClick)return Q.jumpTo(0);if(O.button!==0||O.shiftKey||O.altKey||O.metaKey||O.ctrlKey||_.uk(_.n3(O),x.hostElement,["BUTTON".toString()]))return Q.return();O.stopPropagation();O.preventDefault();return x.data?Q.yield(_.JI().getPlayerPromise(),3):Q.return()}e=Q.yieldResult;
C=(l=_.q(x.data.onTap,_.Hq))==null?void 0:l.startTimeSeconds;C!==void 0&&e.seekToTimeWithAnimation(C*1E3,_.db(x.data.title));_.Ra(Q)})};
_.b.computeLayout=function(O){return O};
_.b.computeIsHighlighted=function(O){return!!O};
_.b.computeCarouselType=function(O){return O};
_.b.hideModernCarousel=function(O){return this.modern&&this.hideThumbnail(O)};
_.b.hideThumbnail=function(O){return this.enableProblemWalkthrough&&O!==null&&O==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.b.onRepeatButtonToggle=function(O){var x=this;O.detail.toggled&&_.JI().getPlayerPromise().then(function(e){x.ytPlayerListenerBehavior.listenToPlayerEvents(e,x.JSC$15105_playerEvents);x.listeningToPlayer=!0})};
_.b.onLoopRangeChange=function(O){var x=_.$U(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(x){var e=x.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",x.polymerController.data);if(e){var l=Number(e.endTimeMs);if(Number(e.startTimeMs)!==(O==null?void 0:O.startTimeMs)||l!==(O==null?void 0:O.endTimeMs))x.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.b.removePlayerListeners=function(){var O=this;this.listeningToPlayer&&_.JI().getPlayerPromise().then(function(x){O.ytPlayerListenerBehavior.unlistenFromPlayerEvents(x,O.JSC$15105_playerEvents);O.listeningToPlayer=!1})};
_.b.onActiveUpdate=function(O){this.active=O.detail.active};
k6.prototype.onColorPaletteChange=k6.prototype.onColorPaletteChange;k6.prototype.onDataChanged=k6.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],k6.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],k6.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],k6.prototype,"useCustomColors",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],k6.prototype,"active",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],k6.prototype,"shouldShowButtons",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.v("design:type",String)],k6.prototype,"layout",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.v("design:type",Object)],k6.prototype,"isHighlighted",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],k6.prototype,"useHighlightStyling",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],k6.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],k6.prototype,"enableProblemWalkthrough",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.v("design:type",String)],k6.prototype,"carouselType",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],k6.prototype,"useColorSampling",void 0);_.B([_.R(),_.v("design:type",Boolean)],k6.prototype,"seekWithAnimationOnClick",void 0);_.B([_.R(),_.v("design:type",Object)],k6.prototype,"customButtonProperties",void 0);
_.B([_.kX("#repeat-button"),_.v("design:type",HTMLElement)],k6.prototype,"repeatButton",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],k6.prototype,"onDataChanged",null);_.B([_.T1("data.lightColorPalette","data.darkColorPalette"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],k6.prototype,"onColorPaletteChange",null);_.B([_.H({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],k6);
_.n(k6,"ytd-macro-markers-list-item-renderer",function(){if(vZL!==void 0)return vZL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vZL=O},{mode:1});var fI2;var Jwk;var AX=function(){return _.a.apply(this,arguments)||this};
_.c(AX,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],AX.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],AX);
_.n(AX,"ytd-title-and-button-list-header-renderer",function(){if(Jwk!==void 0)return Jwk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Jwk=O},{mode:1});var wGD;var SpR=new _.iR("BUTTON_RENDERER_WIZ_TOKEN"),jZR=new _.iR("BUTTON_RENDERER_TOKEN");_.MP=_.K(function(O){var x=_.GG().resolve(_.D0(SpR));if(x)return _.D(x,Object.assign({},O,{overrides:O.buttonOverrides}));var e=_.GG().resolve(jZR);return e?_.D(BY$,null,function(){return _.D(kg,null,function(){var l,C,Q,L,k,M,G,X,y,Z,E,P;return void e(O.data(),{onButtonClickCallback:O.onButtonClickCallback,shouldShowIcons:(l=O.shouldShowIcons)==null?void 0:l.call(O),icon:(C=O.icon)==null?void 0:C.call(O),processAllEndpoints:(Q=O.processAllEndpoints)==null?void 0:Q.call(O),preventDefault:(L=O.preventDefault)==
null?void 0:L.call(O),stopPropagation:(k=O.stopPropagation)==null?void 0:k.call(O),disableButtonRendererClickHandling:(M=O.disableButtonRendererClickHandling)==null?void 0:M.call(O),className:(G=O.className)==null?void 0:G.call(O),buttonOverrides:(X=O.buttonOverrides)==null?void 0:X.call(O),forceModernIconButton:(y=O.forceModernIconButton)==null?void 0:y.call(O),isSubscribe:(Z=O.isSubscribe)==null?void 0:Z.call(O),alignByText:(E=O.alignByText)==null?void 0:E.call(O),forceDisabled:(P=O.forceDisabled)==
null?void 0:P.call(O)})})}):_.D(_.Xm,null)},"Va");
_.MP.idomCompat=!0;var Nd3=_.K(function(O){var x=O.data,e=_.uH(O.useSquareAspectRatio,!1);return _.D("dismissed-mini-game-card-view-model",null,_.D(_.F,{cond:function(){var l,C;return(l=x().responseText)==null?void 0:(C=l.runs)==null?void 0:C.length},
then:function(){var l={};return _.D("div",{class:_.xz("yt-mini-game-card-view-model__dismissed-card",(l["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!e()},l["yt-mini-game-card-view-model--dismissed-square-card"]=e,l))},_.D("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.D(_.F,{cond:function(){return x().responseText.runs[0].text},
then:function(C){return _.D("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:C},C)}}),_.D(_.MR,{data:function(){return x().buttons}},{buttonRenderer:_.MP,
buttonViewModel:_.RV})))}}))},"Wa");var lA2=_.K(function(O){O=_.YX(O,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var x=O.data,e=O.useFullWidth,l=O.isDesktopWeb,C=O.addSearchResultTopMargin,Q=function(){return x().layout},L=function(){return x().title},k=function(){return x().metadataText?x().metadataText:x().genre},M=function(){return x().channelName},G=function(){return x().image},X=function(){return x().colorPalette},y=function(){return x().actionButton},Z=function(){return x().overflowButton},
E=function(){return x().avatar},P=function(){var r={};
r=_.xz("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(r["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return l()},r));
return _.D("div",{class:r},_.D(gZN,{imageData:G,colorPalette:X}),_.D($GD,{onTap:function(){return x().onTap},
imageData:G,accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
isDesktopWeb:l}),_.D(_.F,{cond:function(){return!l()},
then:function(){return _.D(_.Xm,null,_.D(imN,{layout:Q,colorPalette:X,isDesktopWeb:l,overflowButton:Z,avatar:E,onTap:function(){return x().onTap},
genre:k,title:L,channelName:M}),_.D(OR$,{actionButton:y}))}}))},U=function(){var r={};
r=_.xz((r["yt-mini-game-card-view-model--search-result-desktop"]=function(){return l()},r["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!l()},r["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return C()},r));
return _.D("div",{class:r},P(),_.D(xYp,{description:function(){return x().description},
isDesktopWeb:l,title:L,genre:k,onTap:function(){return x().onTap},
actionButton:y,overflowButton:Z,avatar:E,channelName:M}))},W=function(){var r={};
r=_.xz("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(r["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return l()},r["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return l()&&x().width===135},r["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return l()},r["yt-mini-game-card-view-model--big-metadata-font"]=function(){return x().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},r["yt-mini-game-card-view-model--use-full-width"]=
function(){return e()},r["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!y()},r));
return _.D("div",{class:r},_.D(eez,{colorPalette:X,isDesktopWeb:l,onTap:function(){return x().onTap},
accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
actionButton:y,imageData:G}),_.D(imN,{layout:Q,colorPalette:X,isDesktopWeb:l,overflowButton:Z,avatar:E,onTap:function(){return x().onTap},
genre:k,title:L,channelName:M}))},z=function(){var r={};
r=_.xz("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(r["yt-mini-game-card-view-model--square-card-desktop"]=function(){return l()},r["yt-mini-game-card-view-model--use-full-width"]=function(){return e()},r));
return _.D("div",{class:r},_.D($GD,{onTap:function(){return x().onTap},
imageData:G,accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
isDesktopWeb:l}),_.D(imN,{layout:Q,colorPalette:X,isDesktopWeb:l,overflowButton:Z,avatar:E,onTap:function(){return x().onTap},
genre:k,title:L,channelName:M}))};
return _.D("mini-game-card-view-model",{class:O.className},_.D(_.KO,null,_.D(_.zn,{when:function(){return Q()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return W()}),_.D(_.zn,{when:function(){return Q()==="MINI_APP_LAYOUT_SQUARE"}},function(){return z()}),_.D(_.zn,{when:function(){return Q()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return U()})))},"Xa");
lA2.idomCompat=!0;var OR$=_.K(function(O){var x=_.uH(O.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.D(_.MR,{data:O.actionButton},{buttonViewModel:function(e){return _.D("div",{class:x},_.D(_.RV,{data:e.data}))}})},"Ya"),$GD=_.K(function(O){var x=O.onTap;
var e=O.imageData;var l=O.accessibilityText;var C=O.overlayBadgeText;var Q=O.iconName;var L=O.unplayableInlinePlaybackIconName;O=O.isDesktopWeb;return _.D(_.Pt,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:x},_.D(_.n_,{data:e,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(l==null?void 0:l())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.D(Cyd,{overlayBadgeText:C,iconName:Q,unplayableInlinePlaybackIconName:L,isDesktopWeb:O}))},"Za"),Cyd=_.K(function(O){var x=O.overlayBadgeText;
var e=O.iconName;var l=O.unplayableInlinePlaybackIconName;var C=O.isDesktopWeb;return _.D("div",{class:"yt-mini-game-card-view-model__badge-container"},_.D(_.F,{cond:e,then:function(Q){return _.D("div",{class:"yt-mini-game-card-view-model__badge"},_.D("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.D(_.L7,{icon:Q,className:"yt-mini-game-card-view-model__icon",size:12}),_.D("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},x)))}}),_.D(_.F,{cond:function(){return!e()&&
x()},
then:function(){return _.D("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},x)}}),_.D(_.F,{cond:function(){return l()&&C()},
then:function(){return _.D("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.D(_.L7,{icon:l,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),gZN=_.K(function(O){var x=O.colorPalette;
var e=O.imageData;var l=function(){return x().vibrantColorPalette?x().vibrantColorPalette.section2Color:x().sectionTwoColor};
return _.D(_.Xm,null,_.D("div",{class:"yt-mini-game-card-view-model__background-base",style:_.T7({"background-color":function(){return mC(l(),"1")}})}),_.D("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.T7({"background-image":function(){return"url("+e().sources[0].url+")"}})}),_.D("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.T7({background:function(){return"linear-gradient(180deg,\n    "+mC(l(),".8")+" 0%,\n    "+mC(l(),".4")+" 25%,\n    "+mC(x().vibrantColorPalette?x().vibrantColorPalette.section4Color:x().sectionFourColor,".8")+" 100%)"}})}))},"ab"),imN=_.K(function(O){var x=O.layout;
var e=O.colorPalette;var l=O.overflowButton;var C=O.avatar;var Q=O.onTap;var L=O.title;var k=O.channelName;var M=O.genre;var G=function(){var X;return x()!=="MINI_APP_LAYOUT_SQUARE"&&((X=e())==null?0:X.textPrimaryColor)?"color: "+mC(e().textPrimaryColor,".7"):""};
return _.D("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.D(_.F,{cond:C,then:function(){return _.D("div",{class:"yt-mini-game-card-view-model__avatar"},_.D(_.MR,{data:C},{avatarViewModel:_.jQ}))}}),_.D(_.Pt,{command:Q,
className:"yt-mini-game-card-view-model__metadata-details"},_.D("h3",{class:"yt-mini-game-card-view-model__title",title:L},L),_.D(_.F,{cond:C,then:function(){return _.D("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.D("span",{class:"yt-mini-game-card-view-model__genre",title:k,style:G},k),_.D("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:G},M))},
else:function(){return _.D("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)}})),_.D("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.D(_.MR,{data:l},{buttonViewModel:function(X){var y=X.data;
return _.D(_.RV,{data:function(){return Object.assign({},y(),{customFontColor:x()==="MINI_APP_LAYOUT_SINGLETON"?y().customFontColor:void 0})}})}})))},"bb"),eez=_.K(function(O){var x=O.colorPalette;
var e=O.isDesktopWeb;var l=O.onTap;var C=O.accessibilityText;var Q=O.overlayBadgeText;var L=O.iconName;var k=O.unplayableInlinePlaybackIconName;var M=O.actionButton;O=O.imageData;return _.D("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.D(gZN,{imageData:O,colorPalette:x}),_.D($GD,{onTap:l,imageData:O,accessibilityText:C,overlayBadgeText:Q,iconName:L,unplayableInlinePlaybackIconName:k,isDesktopWeb:e}),_.D(_.F,{cond:function(){return M==null?void 0:M()},
then:function(){return _.D(OR$,{actionButton:M})}}))},"cb"),xYp=_.K(function(O){var x=O.description;
var e=O.isDesktopWeb;var l=O.title;var C=O.genre;var Q=O.onTap;var L=O.actionButton;var k=O.overflowButton;var M=O.avatar;O=O.channelName;var G={};G=_.xz("yt-mini-game-card-view-model--search-result-metadata-wrapper",(G["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=e,G["yt-mini-game-card-view-model--show-unplayable-on-hover"]=e,G["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!e()},G));
var X={};X=_.xz("yt-mini-game-card-view-model__search-result-info-row",(X["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!e()},X));
return _.D("div",{class:G},_.D("div",{class:X},_.D(_.Pt,{command:Q,className:"yt-mini-game-card-view-model__metadata-details"},_.D("h3",{class:"yt-mini-game-card-view-model__title",title:l},l),_.D("span",{class:"yt-mini-game-card-view-model__genre",title:C},C)),_.D(OR$,{actionButton:L,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.D("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.D(_.MR,{data:k},{buttonViewModel:_.RV}))),_.D("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.D("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.D("div",{class:"yt-mini-game-card-view-model__avatar"},_.D(_.MR,{data:M},{avatarViewModel:function(y){var Z=y.data;return _.D(_.jQ,{data:function(){return Object.assign({},Z(),{avatarImageSize:e()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.D(_.Pt,{command:Q,
className:"yt-mini-game-card-view-model__description"},_.D("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},O)),_.D(_.Pt,{command:Q,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.D("div",null)))),_.D(_.F,{cond:e,then:function(){return _.D(_.Pt,{command:Q,className:"yt-mini-game-card-view-model__description"},x)}}))},"db");_.wP(lA2,"mini-game-card-view-model",{props:{data:_.Ld,className:_.Ld,useFullWidth:_.Ld,isDesktopWeb:_.Ld,addSearchResultTopMargin:_.Ld}});_.wP(Nd3,"dismissed-mini-game-card-view-model",{props:{data:_.Ld,useSquareAspectRatio:_.Ld}});var DZ=function(){var O=_.a.apply(this,arguments)||this;O.isSearch=!1;O.isRichGrid=!1;return O};
_.c(DZ,_.a);_.b=DZ.prototype;_.b.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.b.dismissibleItemOnYtServiceRequestSent=function(O,x){x.actions&&this.dismissibleItemProcessActions(O,x.actions)};
_.b.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.b.dataChanged=function(){this.dismissibleItemReset()};
_.b.dismissibleItemProcessActions=function(O,x){for(var e=0;e<x.length;e++){var l=x[e];_.q(l,_.Vq)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.q(l,_.Vq)),O.stopPropagation())}};
_.b.dismissibleItemHandleReplaceEnclosingAction=function(O){this.dismissedRenderer=O.item;this.isDismissed=!0};
_.Dy.Object.defineProperties(DZ.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var O;return!!this.data&&!((O=this.dismissedRenderer)==null?0:O.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.dismissedRenderer)==null||!O.notificationMultiActionRenderer)}}});
DZ.prototype.dataChanged=DZ.prototype.dataChanged;DZ.prototype.dismissibleItemOnRequestSent=DZ.prototype.dismissibleItemOnRequestSent;DZ.prototype.dismissibleItemOnYtServiceRequestSent=DZ.prototype.dismissibleItemOnYtServiceRequestSent;_.B([_.R(),_.v("design:type",Object)],DZ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],DZ.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],DZ.prototype,"isDismissed",void 0);
_.B([_.R(),_.v("design:type",Object)],DZ.prototype,"dismissedRenderer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],DZ.prototype,"isRichGrid",void 0);_.B([_.p("data.layout"),_.v("design:type",Object),_.v("design:paramtypes",[])],DZ.prototype,"useSquareAspectRatio",null);_.B([_.p("data","dismissedRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],DZ.prototype,"showCard",null);
_.B([_.p("data","dismissedRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],DZ.prototype,"showDismissed",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],DZ.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-sent-button-renderer"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],DZ.prototype,"dismissibleItemOnRequestSent",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],DZ.prototype,"dataChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],DZ);
_.n(DZ,"ytd-mini-game-card-view-model",function(){if(wGD!==void 0)return wGD;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return wGD=O},{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var QNz;var bRT;var Gd=function(){return _.GS.apply(this,arguments)||this};
_.c(Gd,_.GS);Gd.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Gd.prototype.getContinuationUrl=function(O){var x={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(x.itct=this.data.clickTrackingParams);return _.bu(O,x)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Gd.prototype,"data",void 0);_.B([_.Va({is:"yt-reload-continuation",noInjection:!0})],Gd);var Tnk;var Lj$;var FM=function(){var O=_.a.apply(this,arguments)||this;O.notificationData={};return O};
_.c(FM,_.a);_.b=FM.prototype;_.b.isMenuExpanded=function(O){return O&&O.length<=1?"undefined":"false"};
_.b.dataChanged_=function(){this.selected=void 0;var O=this.computeSelectedIndex_(this.data);O>=0&&(this.selected=O);O=this.data&&this.data.length>1;_.Ow(this.hostElement,"has-items",O);_.$U(this.hostElement).querySelector("#label").tabIndex=O?0:-1};
_.b.onDropdownOpen=function(){var O=_.Pq();if(this.parentTrackingParams&&this.data){var x=_.Fv(this.parentTrackingParams);this.data.forEach(function(e){O&&x&&e.trackingParams&&(e=_.Fv(e.trackingParams),_.WU(O,x,e),_.rT(O,[e]))})}else this.parentTrackingParams||_.ft(new _.ry("No parent tracking params passed in for yt-dropdown-menu."))};
_.b.hasNotification=function(O){var x;if(O.targetId&&((x=this.notificationData)==null?0:x.targetId)){var e;return O.targetId===((e=this.notificationData)==null?void 0:e.targetId)}};
_.b.computeSelectedIndex_=function(O){if(O)for(var x=0,e=O.length;x<e;x++)if(O[x].selected)return x;return-1};
_.b.computeLabel_=function(O){return this.data&&O!=void 0?this.data[O].title:""};
_.b.computeShowIcon_=function(O,x){return!x&&!!O};
_.b.computeVerticalOffset_=function(O){return O?36:0};
_.b.computeEndpoint_=function(O){return O.endpoint||O.navigationEndpoint};
_.b.onLabelClick_=function(O){this.data&&this.data.length<=1?O.stopPropagation():this.menuExpanded="true"};
_.b.onIronActivate_=function(O){O=O.detail.item;var x=_.$U(this.hostElement).querySelector("#repeat").itemForElement(O);if(x&&x.trackingParams){var e=_.Pq(),l=_.Fv(x.trackingParams);e&&_.KZ(e,l)}if(x&&x.serviceEndpoint)_.t("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(x.serviceEndpoint):_.N9(this.hostElement,[x.serviceEndpoint]),_.wr(this.hostElement,"yt-playlist-reloading");else a:{if((x=O.querySelector("yt-supported-renderers"))&&
(x=x.rendererElement)&&x.is=="yt-reload-continuation"){x.trigger();break a}(O=O.querySelector("yt-reload-continuation"))&&O.trigger()}};
_.b.onTap_=function(O){O.preventDefault()};
_.b.onItemTap_=function(O){this.ytEndpointBehavior.onEndpointTap_(O)};
_.b.onLinkFocus_=function(O){try{var x=O.target}catch(l){}if(x){var e=x.querySelector("tp-yt-paper-item");e&&_.hY(this,"focus",function(){e.focus()})}};
_.b.onMenuClose_=function(){this.menuExpanded="false"};
_.b.isLabelIconActive_=function(O){return O==="true"};
_.b.computeHasSubtitle_=function(O){return!!O};
_.b.computeHrefForItem_=function(O){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(O))};
_.b.updateSelectedFromBinding=function(O){this.selected=O.detail.value};
_.Dy.Object.defineProperties(FM.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
FM.prototype.onMenuClose_=FM.prototype.onMenuClose_;FM.prototype.onTap_=FM.prototype.onTap_;FM.prototype.onIronActivate_=FM.prototype.onIronActivate_;FM.prototype.onDropdownOpen=FM.prototype.onDropdownOpen;FM.prototype.dataChanged_=FM.prototype.dataChanged_;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],FM.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],FM.prototype,"ytEndpointBehavior",void 0);
_.B([_.R(),_.v("design:type",Array)],FM.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],FM.prototype,"parentTrackingParams",void 0);_.B([_.R(),_.v("design:type",Object)],FM.prototype,"selected",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],FM.prototype,"useLabel",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],FM.prototype,"useComputedAriaLabel",void 0);_.B([_.R(),_.v("design:type",String)],FM.prototype,"icon",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],FM.prototype,"iconLabel",void 0);_.B([_.R(),_.v("design:type",String)],FM.prototype,"ariaLabel",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],FM.prototype,"disabled",void 0);_.B([_.R({computed:"isMenuExpanded(data)"}),_.v("design:type",String)],FM.prototype,"menuExpanded",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],FM.prototype,"closeOnActivate",void 0);
_.B([_.R({reflectToAttribute:!0,value:_.t("web_modern_buttons")}),_.v("design:type",Boolean)],FM.prototype,"modernButtons",void 0);_.B([_.R(),_.v("design:type",Object)],FM.prototype,"notificationData",void 0);_.B([_.p("ariaLabel, selected"),_.R(),_.v("design:type",String),_.v("design:paramtypes",[])],FM.prototype,"computedAriaLabel",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],FM.prototype,"dataChanged_",null);
_.B([_.bH("paper-dropdown-open"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],FM.prototype,"onDropdownOpen",null);_.B([_.bH("iron-activate"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],FM.prototype,"onIronActivate_",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],FM.prototype,"onTap_",null);
_.B([_.bH("iron-overlay-closed"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],FM.prototype,"onMenuClose_",null);_.B([_.Va({is:"yt-dropdown-menu",disableElementRegistration:!0})],FM);
_.n(FM,"yt-dropdown-menu",function(){if(Lj$===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Tnk===void 0&&(Tnk=document.createElement("template"));var l=Tnk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Lj$=O}O=Lj$;return O},{mode:2});var XM=function(){var O=_.a.apply(this,arguments)||this;O.hasNotification=!1;return O};
_.c(XM,_.a);XM.prototype.computeId=function(O){return O};
XM.prototype.computeHorizontalAlign=function(O){return O?"right":"left"};
XM.prototype.computeAccessibilityLabel=function(O){var x,e;return((x=O.accessibility)==null?void 0:(e=x.accessibilityData)==null?void 0:e.label)||null};
XM.prototype.notificationDataChanged=function(){var O;this.hasNotification=!!this.notificationData&&!((O=this.data)==null?0:O.icon)};
XM.prototype.notificationDataChanged=XM.prototype.notificationDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.iX.YtLiveChatTooltipTargetingBehavior),_.v("design:type",Object)],XM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XM.prototype,"data",void 0);_.B([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.v("design:type",String)],XM.prototype,"id",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],XM.prototype,"isRightAligned",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],XM.prototype,"disabled",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],XM.prototype,"closeOnActivate",void 0);_.B([_.R(),_.v("design:type",Object)],XM.prototype,"notificationData",void 0);_.B([_.R(),_.v("design:type",Object)],XM.prototype,"hasNotification",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],XM.prototype,"useComputedAriaLabel",void 0);_.B([_.T1("notificationData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XM.prototype,"notificationDataChanged",null);_.B([_.Va({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],XM);
_.n(XM,"yt-sort-filter-sub-menu-renderer",function(){if(bRT===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;QNz===void 0&&(QNz=document.createElement("template"));var l=QNz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);bRT=O}O=bRT;return O},{mode:2});var kZR=_.K(function(O){var x=O.data;var e=_.lk(function(){var Q=x().onTap;(Q=_.q(Q,_.VG))&&_.GG().resolve(_.Xc).resolveCommand(Q);return!1}),l=function(){return{sources:[{url:x().thumbnailUrl,
width:120,height:90}]}},C=function(){return x().rating&&x().ratingA11yLabel&&x().reviewsCount&&x().reviewsCountA11yLabel};
return _.D("place-data-view-model",null,_.D(_.F,{cond:function(){return x().placeName&&x().placeCategory},
then:function(){return _.D("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":e},_.D(_.n_,{data:l,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.D(_.Pt,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return x().onTap}},_.D("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return x().placeName}},function(){return x().placeName})),_.D("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.D(_.F,{cond:C,
then:function(){return _.D("div",{class:_.xz("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.D("span",{class:"score",title:function(){return x().ratingA11yLabel}},function(){return x().rating}),_.D("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.D(_.L7,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.D("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return x().reviewsCountA11yLabel}},function(){return x().reviewsCount}))},
else:function(){return _.D("div",{class:_.xz("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.D("div",{class:_.xz("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.D("span",{class:"category",
title:function(){return x().placeCategory}},function(){return x().placeCategory}))))}}))},"eb");
kZR.idomCompat=!0;_.wP(kZR,"place-data-view-model",{props:{data:_.Ld}});var AKN=new _.iR("INLINE_PLAYBACK_HOOK_TOKEN");var M0D=_.Pe({sharedUi:_.Ih3});_.at=_.ce(M0D)(M0D.sharedUi,{animatedThumbnailEnabledSelector:function(O){return O.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(O){return O.inlinePreviewEnabled},
currentPageTypeSelector:function(O){return O.currentPageType},
currentPageSubTypeSelector:function(O){return O.currentPageSubType},
persistentPanelVisibleSelector:function(O){return O.persistentPanelVisible}});var DYN=function(O){this.setActiveSlideIndex=O;this.jobIds=[];this.isSlideshowPlaying=!1},X73=function(O,x){O.isSlideshowPlaying||(O.isSlideshowPlaying=!0,GZF(O),FjR(O,x,0))},GZF=function(O){_.$0(_.vn,function(){O.setActiveSlideIndex(0)},1)},FjR=function(O,x,e){O.jobIds.push(_.$0(_.vn,function(){var l=e<x-1?e+1:0;
O.setActiveSlideIndex(l);FjR(O,x,l)},1800))};var oM4=new _.iR("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var yKz=new _.iR("IMAGE_ON_LOAD_HANDLER_TOKEN");var ZRF=_.K(function(O){return _.D("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.D(_.F,{cond:function(){var x;return(x=O.data())==null?void 0:x.thumbnail},
then:function(x){return _.D(_.n_,{data:x,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.EML=_.K(function(O){var x=O.data;var e=O.lockupExperiments;O={};return _.D("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.D("div",{class:_.xz("ytThumbnailOverlayButtonViewModelButton",(O.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var l;return e&&((l=e())==null?void 0:l.useLegacySizedIconButton)},O))},_.D(_.MR,{data:function(){return x().overlayButton}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
buttonOverrides:function(){var C;return e&&((C=e())==null?0:C.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.EML.idomCompat=!0;var t03=_.K(function(O){return _.D("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.lk(function(x){x.preventDefault();return!1})},_.D(_.MR,{data:function(){return O.data().buttons}},{toggleButtonViewModel:function(x){return _.D("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.D(_.Jc,{data:x.data}))}}))},"hb");
t03.idomCompat=!0;var q3d=_.K(function(O){var x=function(){var e;return((e=_.q(O.data().rendererContext,_.LM))==null?void 0:e.label)||""};
return _.D("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.D(_.F,{cond:function(){return O.data().image},
then:function(){return _.D("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.D(_.n_,{data:function(){return O.data().image},
alt:x}))}}),_.D(_.F,{cond:function(){return O.data().text},
then:function(){return _.D("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return O.data().text})}}))},"ib");var Pyz;Pyz=_.at.animatedThumbnailEnabledSelector;_.o4=_.K(function(O){var x=[],e=function(){var Z,E;return vk8((Z=O.width)==null?void 0:Z.call(O),(E=O.height)==null?void 0:E.call(O))},l=_.GG().resolve(_.D0(yKz)),C=_.Q5("yt-thumbnail-view-model",function(){x.push("elRef.value set");
var Z;(Z=O.playbackRef)==null||Z.call(O,{thumbnailElRef:C,thumbnail:O.data().image,thumbnailOverlays:O.data().overlays,thumbnailSize:e()})});
_.YK(function(){x.push("onInit");_.YO(function(){x.push("onCleanup")})});
var Q=_.Dl(Pyz),L=function(){var Z,E;return(E=(Z=O.aspectRatio)==null?void 0:Z.call(O))!=null?E:0},k=function(){return(O.data().image?_.ks$(O.data().image):L())<=1&&L()===0},M=function(){return k()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},G=function(){C.value||_.ft(new _.ry("Thumbnail elRef.value is null",x.join("\n")));
l&&C.value&&l(C.value)},X=function(){var Z,E;
return((Z=O.hovered)==null?void 0:Z.call(O))&&e()!=="large"&&((E=O.data().overlays)==null?void 0:E.some(function(P){return _.q(P,T6D)}))},y={};
return _.D("yt-thumbnail-view-model",{class:_.xz("ytThumbnailViewModelHost",O.className,function(){return EJs(L())},function(){var Z,E;
a:{var P=e(),U=(Z=O.disableRounding)==null?void 0:Z.call(O);Z=(E=O.isClip)==null?void 0:E.call(O);if(!U&&!Z)switch(P){case "large":E="ytThumbnailViewModelLarge";break a;case "small":E="ytThumbnailViewModelSmall";break a;default:E="ytThumbnailViewModelMedium";break a}E=void 0}return E},(y.ytThumbnailViewModelCinematic=k,y)),
style:_.T7({"background-color":function(){var Z,E=k()?(Z=O.data().backgroundColor)==null?void 0:Z.lightTheme:void 0;return E?mC(E,"1"):void 0}}),
el:C},_.D(_.F,{cond:k,then:function(){return _.D("div",{class:"ytThumbnailViewModelBlurredImage"},_.D(_.n_,{data:function(){return O.data().image},
alt:"",contentMode:M,targetWidth:O.width,onload:G}))}}),_.D("div",{class:"ytThumbnailViewModelImage"},_.D(_.n_,{data:function(){return O.data().image},
alt:"",contentMode:M,targetWidth:O.width,onload:G}),null),_.D(_.MR,{data:function(){return X()?void 0:O.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Vy$,thumbnailOverlayBadgeViewModel:function(Z){return _.D(_.pGD,{data:Z.data,thumbnailSize:e,isClip:O.isClip})},
thumbnailBottomOverlayViewModel:function(Z){return _.D(qpz,{data:Z.data,thumbnailSize:e,isClip:O.isClip})},
thumbnailOverlayFullViewModel:q3d,thumbnailOverlayButtonViewModel:function(Z){return _.D(_.EML,{data:Z.data,lockupExperiments:O.lockupExperiments})},
channelDisclosureViewModel:function(Z){Z=Z.data;var E;return _.D("div",null,(E=_.GG().resolve(_.D0(oM4)))==null?void 0:E({data:Z}))}}),_.D(_.MR,{data:function(){var Z;
return((Z=O.hovered)==null?0:Z.call(O))?O.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Z){return _.D(SQ,{data:Z.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:t03}),_.D(_.MR,{data:function(){var Z;return((Z=O.hovered)==null?0:Z.call(O))&&Q()?O.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:ZRF}),_.D(_.F,{cond:O.isClip,then:function(){return _.D("div",{class:"ytPinkingNsHost"},_.D("svg",{class:"ytPinkingNsPinkingLeft"},_.D("defs",null,_.D("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.D("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.D("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.D("svg",{class:"ytPinkingNsPinkingRight"},_.D("defs",null,_.D("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.D("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.D("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.o4.idomCompat={callbacks:{playbackRef:!0}};var cKL=_.K(function(O){var x=_.T(_.Iw(-1,void 0,"RW2Ole")),e=x.next().value,l=x.next().value;_.YK(function(){var C=new DYN(l);X73(C,O.data().thumbnails.length);_.YO(function(){if(C.isSlideshowPlaying){C.isSlideshowPlaying=!1;for(var Q=C.jobIds,L=0,k=Q.length;L<k;L++)_.vn.cancelJob(Q[L]);C.jobIds.length=0}})});
return _.D("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.D(_.MR,{data:function(){return O.data().thumbnails}},{thumbnailViewModel:function(C,Q){return _.D("div",{class:function(){var L=!O.data().primaryThumbnail,k=Q(),M=e(),G=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
L&&k===0&&G.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");k<=M&&G.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return G.join(" ")}},_.D(_.o4,{data:C.data,
disableRounding:O.disableRounding}))}}))},"kb");
cKL.idomCompat=!0;var tkn=new _.iR("DWELL_DETECTOR_REGISTRY_TOKEN");var V0$=_.K(function(O){var x=qsw(O.triggeringElement),e=function(){return!!O.data().primaryThumbnail},l=function(){var Q,L=(Q=O.data())==null?void 0:Q.maxHeight,k;
Q=(k=O.maxHeight)==null?void 0:k.call(O);return L!=null&&Q!=null?Math.min(L,Q):Q!=null?Q:L},C=function(){var Q=l();
if(Q){var L;if(e()&&(L=O.includeStackHeight)!=null&&L.call(O)){var k;L=((k=O.doubleStack)==null?0:k.call(O))?8:4}else L=0;Q=Q-L-1;if(!(Q<0)){k=Math;L=k.ceil;var M,G;var X=BZr((G=(M=O.aspectRatio)==null?void 0:M.call(O))!=null?G:0);return L.call(k,Q*X)}}};
return _.D("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.T7({height:function(){return l()?l()+"px":void 0},
width:function(){return C()?C()+"px":void 0}})},_.D(IA4,{stackEnabled:e,
thumbnailSize:function(){var Q,L;return vk8((Q=O.width)==null?void 0:Q.call(O),(L=O.height)==null?void 0:L.call(O))},
doubleStack:O.doubleStack,stackColor:function(){return O.data().stackColor},
includeStackHeight:O.includeStackHeight},_.D(_.MR,{data:function(){return O.data().primaryThumbnail}},{thumbnailViewModel:function(Q){var L={};
return _.D(_.o4,{data:Q.data,width:O.width,height:O.height,aspectRatio:O.aspectRatio,disableRounding:O.disableRounding,className:_.xz((L.ytCollectionThumbnailViewModelHostHasStacks=e,L)),hovered:O.hovered,playbackRef:O.playbackRef})}}),_.D(_.F,{cond:function(){var Q;
return x()&&((Q=O.data().thumbnails)==null?void 0:Q.length)},
then:function(){return _.D("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.D(cKL,{data:O.data,disableRounding:function(){return!e()}}))}})))},"lb");
V0$.idomCompat={callbacks:{playbackRef:!0}};
var IA4=_.K(function(O){var x=O.children;var e=O.stackEnabled;var l=O.thumbnailSize;var C=O.doubleStack;var Q=O.stackColor;var L=O.includeStackHeight;var k,M=(k=_.GG().resolve(_.D0(_.rP)))==null?void 0:k();return _.D(_.F,{cond:e,then:function(){return _.D(gJD,{data:function(){var G,X;return{experimentEnabled:!0,thumbnailSize:l(),doubleStack:C==null?void 0:C(),color:M?Q==null?void 0:(G=Q())==null?void 0:G.darkTheme:Q==null?void 0:(X=Q())==null?void 0:X.lightTheme,enableResponsiveMode:!1,includeStackHeight:L==
null?void 0:L()}}},x)},
else:function(){return x}})},"mb");var p7d=new _.iR("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ZZ;_.yB={calledOnce:!0,state:"visible"};ZZ={calledOnce:!0,state:"hidden"};_.EL=_.K(function(O){var x=O.data;var e=O.customCommandResolver;var l=O.className;var C=O.delayedClassName;var Q=O.animationEntityKey;var L=O.isCompactWidth;var k=O.isContentWidth;O=_.T(_.Iw(!1,void 0,"pC3tUb"));var M=O.next().value,G=O.next().value,X=_.uH(Q,""),y=_.L5(IjL,X),Z=function(){var Zn,q$;return(q$=(Zn=y())==null?void 0:Zn.value)!=null?q$:!1},E=function(){_.ns(_.Dc("booleanEntity",X(),{key:X(),
value:!0}));Y=void 0};
Q=_.T(_.bk(Z));var P=Q.next().value,U=Q.next().value;Q=_.T(_.bk(Z));var W=Q.next().value,z=Q.next().value;Q=_.T(_.bk(function(){var Zn;return Z()?(Zn=x().styleTransitionConfig)==null?void 0:Zn.destinationStyle:void 0}));
var r=Q.next().value,f=Q.next().value,u=function(){var Zn=Object.assign({},x(),r()&&{style:r()});var q$,KV,VN=Zn.label,Pd=(q$=Zn.interaction)==null?void 0:(KV=q$.accessibility)==null?void 0:KV.label;q$=Zn.iconImage?Zn.label&&Zn.label.content?Zn.iconLeading?"leading":"trailing":"icon-only":void 0;Zn={formattedButtonText:VN,accessibilityLabel:Pd,style:Vk8(Zn.style),type:p58(Zn.style),state:"active",size:IU8(Zn.size),iconPosition:q$,disabled:!1,aTagConfig:cmr(Zn,e)};_.t("enable_desktop_vdcbg_components")&&
(Zn.focused=M());return Zn},Y;
Q=_.F6({visibilityCallback:function(Zn){var q$,KV=(q$=x().interaction)==null?void 0:q$.onFirstVisible;Zn&&KV&&_.me(KV)},
showOption:_.yB});var J=function(){return $FW(u(),!!x().iconImage)};
O={};var O8={};l=_.xz(function(){return"ytwAdButtonViewModelHost"},function(){return x().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Zn=!!x().delayedAppearanceConfig,q$=P();
return Zn?q$?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Zn=!!x().delayedAppearanceConfig,q$=W();
return Zn?q$?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!x().delayedAppearanceConfig||P()?C==null?void 0:C():""},(O.ytwAdButtonViewModelHostCompactWidth=function(){return L==null?void 0:L()},O),(O8.ytwAdButtonViewModelHostContentWidth=function(){return k==null?void 0:k()},O8),l!=null?l:"");
var Xr=function(){var Zn,q$=(Zn=x().delayedAppearanceConfig)==null?void 0:Zn.delayedInvisibleSeconds;q$&&(Y=_.FQ(_.vn,function(){U(!0);Fr()},q$*1E3))},Fr=function(){var Zn,q$=(Zn=x().delayedAppearanceConfig)==null?void 0:Zn.delayedVisibleSeconds;
q$&&(Y=_.FQ(_.vn,function(){z(!0);mL()},q$*1E3))},mL=function(){var Zn,q$=(Zn=x().styleTransitionConfig)==null?void 0:Zn.styleTransitionSeconds,KV,VN=(KV=x().styleTransitionConfig)==null?void 0:KV.destinationStyle;
q$&&VN?Y=_.FQ(_.vn,function(){f(VN);E()},q$*1E3):E()};
_.YK(function(){Xr()});
_.YO(function(){Y&&_.vn.cancelJob(Y)});
return _.D("ad-button-view-model",{"on:focusin":_.lk(_.t("enable_desktop_vdcbg_components")?function(){var Zn=_.GG().resolve(_.D0(_.qL));Zn&&G(Zn.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.lk(_.t("enable_desktop_vdcbg_components")?function(){G(!1);return!1}:void 0),
class:l,el:_.Y0(Q),style:_.T7({"transition-duration":"0.3s"})},_.D(_.F,{cond:u,then:function(){return _.D(_.pd,{data:u,icon:function(){return _.D(_.F,{cond:function(){return x().iconImage},
then:function(Zn){return _.D(_.n_,{data:Zn,alt:"",targetWidth:J,targetHeight:J,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var Re4=_.K(function(O){var x=O.data;O=function(){return x().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var e=_.F6({visibilityCallback:function(Q){var L,k=(L=x().interaction)==null?void 0:L.onFirstVisible;Q&&k&&_.me(k)},
showOption:_.yB}),l={},C={};return _.D("ad-button-group-view-model",{class:_.xz("ytwAdButtonGroupViewModelHost",(l.ytwAdButtonGroupViewModelHostCompactWidth=O,l)),el:_.Y0(e)},_.D("div",{class:_.xz("ytwAdButtonGroupViewModelHostSecondaryButton",(C.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=O,C))},_.D(_.MR,{data:function(){return x().secondaryAdButton}},{adButtonViewModel:function(Q){return _.D(_.EL,{data:Q.data})}})),_.D("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.D(_.MR,
{data:function(){return x().primaryAdButton}},{adButtonViewModel:function(Q){return _.D(_.EL,{data:Q.data})}})))},"pb");var UY4=_.K(function(O){var x=function(){var e;return((e=O.data())==null?void 0:e.answers)||[]};
return _.D("yt-survey-icons",{class:"ytSurveyIconsHost"},_.D("div",{class:"ytSurveyIconsHeader"},_.D("div",{class:"ytSurveyIconsTitle"},function(){var e;return(e=O.data())==null?void 0:e.text}),_.D("div",null,_.D(_.pd,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var e;(e=O.onDismiss)==null||e.call(O)}}},
iconName:"DISMISSAL"}))),_.D("div",null,_.D("div",{class:"ytSurveyIconsAnswers"},_.D(_.HE,{each:function(){return x()},
keyBy:"INDEX"},function(e,l){return _.D("div",null,_.D(_.pd,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var C;(C=O.onSelect)==null||C.call(O,e(),l)}}},
icon:function(){return _.D(_.L7,{icon:function(){var C,Q;return(C=e())==null?void 0:(Q=C.icon)==null?void 0:Q.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.D("div",{class:"ytSurveyIconsAnswersText"},_.D("div",null,function(){return x().length?x()[0].text:""}),_.D("div",null,function(){return x().length?x()[x().length-1].text:""}))))},"qb");var aAT=_.K(function(O){var x=_.Y0(_.P8(function(){var M;return(M=O.data())==null?void 0:M.rendererContext},void 0,void 0,void 0,!0)),e=_.T(_.Iw(!1,void 0,"GW0yjf")),l=e.next().value,C=e.next().value,Q=_.L5(ZDs,function(){var M;
return(M=O.data().keys)==null?void 0:M.surveyEntityKey}),L=_.L5(EI8,function(){var M;
return(M=O.data().keys)==null?void 0:M.surveyStateEntityKey});
_.Cw("ytd-slimline-survey-show-action",function(){C(!1)});
var k=function(){var M,G;var X=(M=L())==null?void 0:(G=M.questionStack)==null?void 0:G[0];if(X!==void 0){var y,Z;return(y=Q())==null?void 0:(Z=y.questions)==null?void 0:Z[X]}};
e={};return _.D("yt-slimline-survey-view-model",{el:x,class:_.xz("ytSlimlineSurveyViewModelHost",(e.ytSlimlineSurveyViewModelCollapsed=function(){return l()},e))},_.D("div",{class:"ytSlimlineSurveyViewModelContainer"},_.D(_.F,{cond:function(){var M;
return((M=k())==null?void 0:M.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.D(UY4,{data:function(){return k()},
onSelect:function(M,G){var X,y;return _.A(function(Z){C(!0);if(y=(X=O.data())==null?void 0:X.onSelectRating)_.me(y),_.ns(rC3(G));_.Ra(Z)})},
onDismiss:function(){C(!0);var M;var G=(M=Q())==null?void 0:M.dismissalFeedbackToken;M=G?{feedbackEndpoint:{feedbackToken:G}}:void 0;M&&_.Rl(M,{form:{element:x.value}})}})}})))},"rb");var mYT=_.K(function(O){return _.D("yt-table-view-model",{class:_.xz("ytTableViewModelHost",O.className)},_.D(_.HE,{each:function(){return O.data().rows||[]}},function(x){return _.D("div",{class:"ytTableViewModelRow"},_.D(_.HE,{each:function(){return(x==null?void 0:x.cells)||[]}},function(e,l){var C,Q={};
return _.D("span",{class:_.xz((Q.ytTableViewModelRowLabel=function(){return l()===0&&O.data().showHorizontalHeaders},Q.ytTableViewModelCell=function(){return!O.data().showHorizontalHeaders||l()>0},Q))},(C=e.text)==null?void 0:C.content)}))}))},"sb");var sNd=_.K(function(O){return _.D("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.D(_.MR,{data:function(){var x;return(x=O.data())==null?void 0:x.attachments}},{flexibleActionsViewModel:function(x){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(_.g8,{data:x.data,
layout:function(){var e;return((e=O.lockupStyle())==null?void 0:e.arrangement)===1?0:1},
justifyContentOverride:function(){var e;return((e=O.lockupStyle())==null?void 0:e.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(x){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(aAT,{data:x.data}))},
expandableMetadataViewModel:function(x){x=x.data;var e;return _.D("div",{class:_.xz("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(e=_.GG().resolve(_.D0(p7d)))==null?void 0:e({data:x}))},
adButtonGroupViewModel:function(x){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(Re4,{data:x.data}))},
adButtonViewModel:function(x){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(_.EL,{data:x.data,isCompactWidth:!0}))},
tableViewModel:function(x){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(mYT,{data:x.data}))}}))},"tb");var WV7=_.yF("rich_grid_min_item_width",310),mfL=_.yF("rich_grid_max_item_width",500);var Wjd=_.K(function(O){var x=O.data;return _.D("br-nz-badge-shape",{class:_.xz(function(){return uR7(x().brNzRatingBadgeType)}),
role:function(){return x().accessibilityText?"img":void 0},
"aria-label":function(){return x().accessibilityText}},function(){var e;
return(e=x())==null?void 0:e.text})},"ub");_.tX=_.K(function(O){var x=function(){var e=O.data(),l,C;if(e){var Q=!((l=O.workaroundShortsIsThumbnailBadge)==null||!l.call(O));l=(C=O.modern)==null?void 0:C.call(O);var L;a:switch(e.badgeStyle){case "BADGE_OVERLAY":C=!0;break a;default:C=!1}e={type:Q?17:Yss(e.badgeStyle),brNzRatingBadgeType:BKm(e.badgeStyle),text:e.badgeText,icon:e.iconName,isOverlay:C,modern:l||_.t("web_modern_badge_view_model"),accessibilityText:e.accessibilityLabel||((L=_.q(e.rendererContext,_.LM))==null?void 0:L.label)}}else e=
void 0;return e};
return _.D("yt-badge-view-model",{class:_.xz("ytBadgeViewModelHost",O.class)},_.D(_.KO,null,_.D(_.zn,{when:function(){var e;return!((e=x())==null||!e.brNzRatingBadgeType)}},function(){return _.D(Wjd,{data:function(){return x()}})}),_.D(_.zn,{when:function(){return!!x()&&!x().brNzRatingBadgeType}},function(){return _.D(_.xR,{data:function(){return x()}})})))},"vb");
_.tX.idomCompat=!0;var fUr,vJm;fUr=16/9;vJm=2/3;_.qP=_.K(function(O){var x=O.data;var e=O.className;var l=O.imageSizeConfig;var C=O.notifyOnLoaded;var Q=function(){return x().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},L=function(){var Z;
return _.qR((Z=x())==null?void 0:Z.rendererContext)};
O={};O=(O.ytContentPreviewImageViewModelHost=!0,O.ytContentPreviewImageViewModelCircleImage=function(){return Q()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},O.ytContentPreviewImageViewModelTappable=function(){return L()},O);
var k=function(){var Z,E;return(E=(Z=_.q(x().rendererContext,_.LM))==null?void 0:Z.label)!=null?E:""},M=function(){return w5L(x())},G=function(){var Z=Jmr(Q(),x().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",l==null?void 0:l(),Ssi(M()),x().layoutWidth,x().layoutHeight),E=Object.assign({},Z);
Z.width&&(E.width=Math.round(Z.width));Z.height&&(E.height=Math.round(Z.height));Z.maxWidth&&(E.maxWidth=Math.round(Z.maxWidth));Z.maxHeight&&(E.maxHeight=Math.round(Z.maxHeight));return E},X=_.aw(function(){return G().height},void 0,"CxFlJb"),y=_.aw(function(){return G().width},void 0,"lb8Jhd");
return _.D("yt-content-preview-image-view-model",{el:_.Y0(_.P8(function(){var Z;return(Z=x())==null?void 0:Z.rendererContext})),
role:function(){return L()?"link":void 0},
tabindex:function(){return L()?0:void 0},
class:_.xz(e,O,function(){var Z=Q();var E=l==null?void 0:l();Z=Z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(E==null?void 0:E.size)!=null&&E.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(E==null?void 0:E.size)!=null&&E.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return Z}),
style:function(){var Z=G(),E=[];Z.width&&E.push("width: "+Z.width+"px");Z.height&&E.push("height: "+Z.height+"px");Z.maxWidth&&E.push("max-width: "+Z.maxWidth+"px");Z.maxHeight&&E.push("max-height: "+Z.maxHeight+"px");Z.fullWidth&&E.push("width: 100%");return E.join(";")}},_.D(_.F,{cond:M,
then:function(Z){return _.D(_.n_,{data:Z,alt:k,"data-disabled$":function(){return!k()},
notifyOnLoaded:C,targetWidth:y,targetHeight:X,preserveWidth:function(){return!!y()},
preserveHeight:function(){return!!X()}})}}),_.D(_.MR,{data:function(){var Z;
return(Z=x())==null?void 0:Z.overlays}},{thumbnailHoverOverlayViewModel:SQ,
thumbnailOverlayButtonViewModel:_.EML}))},"wb");
_.qP.idomCompat=!0;var P$=_.K(function(O){var x=O.data;var e=O.className;var l=O.useSmallLayout;var C=O.useMediumText;O=O.useHeavyText;var Q={};return _.D("yt-attribution-view-model",{el:_.Y0(_.P8(function(){var L;return(L=x())==null?void 0:L.rendererContext})),
class:_.xz(e,(Q.ytAttributionViewModelHost=!0,Q.ytAttributionViewModelMediumText=C,Q.ytAttributionViewModelHeavyText=O,Q))},_.D(_.F,{cond:function(){return _.qR(x().rendererContext)},
then:function(){return _.D("button",{class:"ytAttributionViewModelTappable"},_.D(hez,{data:x,useSmallLayout:l}))},
else:function(){return _.D(hez,{data:x,useSmallLayout:l})}}))},"xb"),hez=_.K(function(O){var x=O.data;
var e=O.useSmallLayout;var l=function(){return{size:(e==null?0:e())?16:24}};
return _.D(_.Xm,null,_.D(_.MR,{data:function(){return x().contentPreviewImage}},{contentPreviewImageViewModel:function(C){return _.D(_.qP,{data:C.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:l})}}),_.D(_.MR,{data:function(){return x().badge}},{badgeViewModel:function(C){return _.D(_.tX,{data:C.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.D(_.F,{cond:function(){return x().text},
then:function(){return _.D(_.TT,{text:function(){return x().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.D(_.F,{cond:function(){return x().suffix},
then:function(){return _.D(_.TT,{text:function(){return x().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
P$.idomCompat=!0;var zeF,rKN,HRN,Kjk,dYL;zeF=_.K(function(O){var x=O.delimiter;var e=O.max;var l=O.index;var C=O.isStandalone;return _.D(_.F,{cond:function(){return e()-1>l()},
then:function(){var Q={};return _.D("span",{class:_.xz("yt-content-metadata-view-model__delimiter",(Q["yt-content-metadata-view-model__delimiter--standalone"]=C,Q)),"aria-hidden":!0},x)}})},"zb");
rKN=_.K(function(O){var x=O.metadataPart;var e=O.maxLines;return _.D(_.TT,{text:function(){return x().text},
linkInheritColor:!0,className:function(){return jDW(e())},
userInput:!0})},"Ab");
HRN=_.K(function(O){var x=O.metadataPart;var e=O.maxLines;return _.D(_.F,{cond:function(){return x().tooltip},
then:function(l){return _.D("span",{title:l,role:"tooltip"},_.D(rKN,{metadataPart:x,maxLines:e}))},
else:function(){return _.D(rKN,{metadataPart:x,maxLines:e})}})},"Bb");
Kjk=_.K(function(O){var x=O.metadataPart;var e=O.isOverlay;var l=O.useMediumText;var C=O.hideAvatar;var Q=function(){return x().maxLines!==void 0?x().maxLines:1};
return _.D(_.Xm,null,_.D(_.MR,{data:function(){return x().avatarStack}},{avatarStackViewModel:function(L){return _.D(_.g6,{data:L.data,
isOverlay:e,useMediumText:l,hideAvatar:C})},
badgeViewModel:_.tX}),_.D(_.F,{cond:function(){return x().leadingIcon},
then:function(L){return _.D(_.L7,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return L().name},
size:function(){return L().width}})}}),_.D(_.F,{cond:function(){return x().text},
then:function(){return _.D(HRN,{metadataPart:x,maxLines:Q})}}),_.D(_.F,{cond:function(){return x().icon},
then:function(L){return _.D(_.L7,{className:"yt-content-metadata-view-model__icon",icon:function(){return L().name},
size:function(){return L().width}})}}))},"Cb");
dYL=_.K(function(O){var x=O.metadataRow;var e=O.isInline;var l=O.delimiter;var C=O.isOverlay;var Q=O.useMediumText;var L=O.extensions;var k=function(){var G,X=L==null?void 0:(G=L())==null?void 0:G.lockupMetadata;G=x();var y,Z;return!!((X==null?0:(y=X.byline)==null?0:y.hideAvatar)&&((Z=_.q(G,ijz))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},M=function(){return x().metadataParts||[]};
O={};return _.D("div",{class:_.xz("yt-content-metadata-view-model__metadata-row",(O["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=e,O["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var G,X=L==null?void 0:(G=L())==null?void 0:G.lockupMetadata;G=x();var y,Z;return!!((X==null?0:(y=X.byline)==null?0:y.addPadding)&&((Z=_.q(G,ijz))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},O["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var G;
return!!(L==null?0:(G=L())==null?0:G.lockupMetadata)&&x().badges&&!x().metadataParts},O))},_.D(_.MR,{data:function(){return x().badges}},{badgeViewModel:function(G){return _.D("div",{class:"yt-content-metadata-view-model__badge"},_.D(_.tX,{data:G.data}))}}),_.D(_.HE,{each:M},function(G,X){return _.D(_.Xm,null,_.D(Kjk,{metadataPart:G,
isOverlay:C,useMediumText:Q,hideAvatar:k}),_.D(zeF,{delimiter:l,max:function(){return M().length},
index:X,isStandalone:!1}))}),_.D(_.F,{cond:function(){return x().isSpacerRow&&!e()},
then:function(){return _.D("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.c$=_.K(function(O){O=_.YX(O,{layout:0,isOverlay:!1});var x=O.data,e=O.layout,l=O.isOverlay,C=O.useMediumText,Q=O.extensions,L=function(){return e()===0},k=function(){var G;
return((G=x().metadataRows)==null?void 0:G.filter(function(X){var y,Z=Q==null?void 0:(y=Q())==null?void 0:y.lockupMetadata,E,P;y=!!((Z==null?0:(E=Z.description)==null?0:E.hideDescription)&&((P=_.q(X,ijz))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var U,W;return!((Z==null?0:(U=Z.spacer)==null?0:U.hideSpacer)&&((W=_.q(X,ijz))==null?void 0:W.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||y)}))||[]},M={};
return _.D("yt-content-metadata-view-model",{class:_.xz(O.className,"yt-content-metadata-view-model",(M["yt-content-metadata-view-model--inline"]=L,M["yt-content-metadata-view-model--tappable"]=function(){return _.qR(x().rendererContext)},M["yt-content-metadata-view-model--medium-text"]=C,M)),
el:_.Y0(_.P8(function(){return x().rendererContext}))},_.D(_.HE,{each:k},function(G,X){return _.D(_.Xm,null,_.D(dYL,{metadataRow:G,
isInline:L,delimiter:function(){return x().delimiter},
isOverlay:l,useMediumText:C,extensions:Q}),_.D(_.F,{cond:function(){return L()&&!G.isSpacerRow},
then:function(){return _.D(zeF,{delimiter:function(){return x().delimiter},
max:function(){return k().length},
index:X,isStandalone:!0})}}))}))},"Eb");
_.c$.idomCompat=!0;var nMT=_.K(function(O){var x=_.GG().resolve(_.D0(_.rP)),e={};return _.D("yt-lockup-metadata-view-model",{class:_.xz("yt-lockup-metadata-view-model",function(){a:{var l=O.lockupStyle();if(l==null?0:l.isOverlay)l="yt-lockup-metadata-view-model--overlay";else switch(l==null?void 0:l.arrangement){case 1:l="yt-lockup-metadata-view-model--horizontal";break a;default:l="yt-lockup-metadata-view-model--vertical"}}return l},function(){a:{var l=O.lockupStyle();
if(l==null?0:l.isTiny)l="yt-lockup-metadata-view-model--tiny";else switch(l==null?void 0:l.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":l="yt-lockup-metadata-view-model--compact";break a;default:l="yt-lockup-metadata-view-model--standard"}}return l},(e["yt-lockup-metadata-view-model--overlay"]=function(){var l;
return(l=O.lockupStyle())==null?void 0:l.isOverlay},e["yt-lockup-metadata-view-model--card"]=function(){var l;
return(l=O.lockupStyle())==null?void 0:l.isCard},e["yt-lockup-metadata-view-model--centered"]=function(){var l;
return(l=O.lockupStyle())==null?void 0:l.isCentered},e["yt-lockup-metadata-view-model--typography-bump"]=function(){var l;
return(l=O.lockupStyle())==null?void 0:l.typographyBump},e["yt-lockup-metadata-view-model--legacy-typography"]=function(){var l;
return(l=O.lockupStyle())==null?void 0:l.useLegacyTypography},e["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var l;
return(l=O.lockupStyle())==null?void 0:l.useRichGridLegacyTypography},e))},_.D(_.MR,{data:function(){return O.data().image}},{avatarStackViewModel:function(l){return _.D("div",{class:"yt-lockup-metadata-view-model__avatar"},_.D(_.g6,{data:l.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(l){return _.D("div",{class:"yt-lockup-metadata-view-model__avatar"},_.D(_.jQ,{data:l.data}))},
decoratedAvatarViewModel:function(l){return _.D("div",{class:"yt-lockup-metadata-view-model__avatar"},_.D(_.Nz,{data:l.data}))}}),_.D("div",{class:"yt-lockup-metadata-view-model__text-container"},_.D("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var l;return(l=O.data().title)==null?void 0:l.content}},_.D(_.F,{cond:function(){return O.data().title},
then:function(l){return _.D(_.Pt,{command:O.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.T7({color:function(){var C;a:{var Q=O.lockupStyle();var L=(C=O.hovered)==null?void 0:C.call(O);C=!(x==null||!x());var k;if((Q==null?0:(k=Q.onFocusEffect)==null?0:k.textPrimaryColor)&&L&&(Q=C?Q.onFocusEffect.textPrimaryColor.darkTheme:Q.onFocusEffect.textPrimaryColor.lightTheme)){Q=sA(Q);break a}Q=void 0}return Q}}),
ariaLabel:O.lockupAccessibilityLabel},_.D(_.TT,{text:l,userInput:!0}))}})),_.D("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.T7({color:function(){var l;a:{var C=O.lockupStyle();var Q=(l=O.hovered)==null?void 0:l.call(O);l=!(x==null||!x());var L;if((C==null?0:(L=C.onFocusEffect)==null?0:L.textSecondaryColor)&&Q&&(C=l?C.onFocusEffect.textSecondaryColor.darkTheme:C.onFocusEffect.textSecondaryColor.lightTheme)){C=sA(C);break a}C=void 0}return C}})},_.D(_.MR,{data:function(){return O.data().metadata}},{contentMetadataViewModel:function(l){return _.D(_.c$,{data:l.data,
layout:1,useMediumText:function(){var C,Q;return((C=O.lockupStyle())==null?void 0:C.typographyBump)||((Q=O.lockupStyle())==null?void 0:Q.useRichGridLegacyTypography)},
extensions:function(){var C,Q,L,k;return{lockupMetadata:{byline:{hideAvatar:((C=O.lockupStyle())==null?void 0:C.arrangement)===0,addPadding:((Q=O.lockupStyle())==null?void 0:Q.arrangement)===1},description:{hideDescription:!((L=O.lockupStyle())==null||!L.compactMetadata)},spacer:{hideSpacer:!((k=O.lockupStyle())==null||!k.compactMetadata)}}}}})}})),_.D(_.MR,{data:function(){return O.data().attribution}},{attributionViewModel:function(l){return _.D("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.D(P$,{data:l.data,
useSmallLayout:!0}))}})),_.D("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.D(_.MR,{data:function(){return O.data().menuButton}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
buttonOverrides:function(){var C;return((C=O.lockupStyle())==null?0:C.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
nMT.idomCompat=!0;var u$N=_.K(function(O){var x=_.Q5("notification-multi-action-renderer");_.u8(function(){requestAnimationFrame(function(){_.bU(x.value)})});
var e={},l={},C={};return _.D("notification-multi-action-renderer",{class:_.xz("ytNotificationMultiActionRendererHost",(e.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var Q;return(Q=O.useLegacyShelfStyle)==null?void 0:Q.call(O)},e)),
el:x},_.D("span",{"aria-live":"polite",class:_.xz("ytNotificationMultiActionRendererTextContainer",(l.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var Q;return(Q=O.useLegacyShelfStyle)==null?void 0:Q.call(O)},l))},_.D(_.TT,{text:function(){return O.data().responseText}})),_.D("div",{class:_.xz("ytNotificationMultiActionRendererButtonContainer",(C.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var Q;
return(Q=O.useLegacyShelfStyle)==null?void 0:Q.call(O)},C))},_.D(_.MR,{data:function(){var Q;
return(Q=O.data().buttons)==null?void 0:Q.map(function(L){if(L=L.buttonRenderer){var k,M=Object,G=M.assign,X=(k=L.icon)==null?void 0:k.iconType;k=(k=L.command||L.serviceEndpoint||L.navigationEndpoint)?{innertubeCommand:k}:void 0;L={buttonViewModel:G.call(M,{},{iconName:X,onTap:k,trackingParams:L.trackingParams,titleFormatted:L.text?_.Ps(L.text):void 0},gJn(L))}}else L=void 0;return L}).filter(function(L){return!!L})}},{buttonViewModel:function(Q,L){return _.D("div",null,_.D(_.RV,{data:Q.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var k;return((k=O.useModernStyles)==null?0:k.call(O))?{type:L()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var Y3z=_.K(function(O){var x=_.Q5("notification-text-renderer");_.u8(function(){requestAnimationFrame(function(){_.bU(x.value)})});
return _.D("notification-text-renderer",{el:x,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.D(_.TT,{text:function(){return O.data().successResponseText}}))},"Jb");_.I4=_.K(function(O){var x=_.L5(bDm,function(){var l;return $fL((l=O.contentId)==null?void 0:l.call(O))}),e=function(){var l;
return _.q((l=x())==null?void 0:l.command,_.Vq)};
return _.D(_.F,{cond:function(){var l;if(!(l=e())){var C;l=_.q((C=x())==null?void 0:C.command,G6d)}return l},
then:function(){return _.D(_.F,{cond:e,then:function(){var l={};return _.D("div",{class:_.xz("ytDismissibleItemReplacedContent",function(){var C;return iPL((C=O.aspectRatio)==null?void 0:C.call(O))})},_.D("div",{class:_.xz((l.ytDismissibleItemAspectRatioContainer=function(){var C;
return((C=O.aspectRatio)==null?void 0:C.call(O))!==void 0},l))},_.D(_.MR,{data:function(){var C;
return(C=e())==null?void 0:C.item}},{notificationMultiActionRenderer:function(C){return _.D(u$N,{data:C.data,
useModernStyles:O.useModernStyle,useLegacyShelfStyle:O.useLegacyShelfStyle})},
notificationTextRenderer:Y3z})))}})},
else:O.children})},"Kb");_.Bnd=_.K(function(O){var x=O.data;var e=O.customCommandResolver;O=_.Y0(_.F6({visibilityCallback:function(Q){var L,k=(L=x().interaction)==null?void 0:L.onFirstVisible;Q&&k&&_.me(k)},
showOption:_.yB}));var l=function(){var Q;return((Q=x().interaction)==null?0:Q.onTap)?function(L){var k;P1r(L,(k=x().interaction)==null?void 0:k.onTap,e)}:void 0},C=function(){var Q,L=x(),k=l(),M=(Q=_.q(x().rendererContext,_.LM))==null?void 0:Q.label;
a:switch(L.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":Q=1;break a;default:Q=0}return{size:eM7(L.size),type:Q,onTap:k,accessibilityText:M}};
return _.D("ad-avatar-view-model",{class:function(){var Q;return((Q=x().interaction)==null?0:Q.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:O},_.D(_.F,{cond:function(){return x().image},
then:function(Q){return _.D(IIp,{data:C,image:Q})}}))},"Lb");_.VB=_.K(function(O){var x=_.YX(O,{hasDot:!1,usedInMasthead:!1}),e=Object.assign({},x),l=x.data,C=x.hasDot;O=x.customCommandResolver;var Q=x.usedInMasthead,L=(delete e.data,delete e.hasDot,delete e.customCommandResolver,delete e.usedInMasthead,e);x=function(){return l().style};
x!==void 0&&x!==null||_.OC(Error("Oh"));O=_.p5(function(){return l().interaction},O);
return _.D("ad-badge-view-model",{class:_.xz(function(){var k;return((k=l().interaction)==null?0:k.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var k=L.adRenderingContextType(),M=Q();
l();return k!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||M?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Y0(O)},_.D(_.xR,{data:function(){var k;l();return{type:2,text:(k=l().label)==null?void 0:k.content,adsIncludeDot:C(),isOverlay:l().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var vM3;_.pg=_.K(function(O){var x=O.data;var e=O.customCommandResolver;var l=O.adRenderingContextType;return _.D("ad-details-line-view-model",{class:function(){var C;return((C=x().interaction)==null?0:C.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(C){var Q,L=(Q=x().interaction)==null?void 0:Q.onFirstVisible;C&&L&&_.me(L)},
showOption:_.yB}),_.p5(function(){return x().interaction},e))},_.D(_.F,{cond:function(){return x().style},
then:function(C){return _.D(_.HE,{each:function(){var Q;return((Q=x())==null?void 0:Q.attributes)||[]},
keyBy:"INDEX"},function(Q){return _.D(vM3,{attribute:Q,style:C,adRenderingContextType:function(){return l()}})})}}))},"Nb");
vM3=_.K(function(O){var x=O.attribute;var e=O.style;var l=O.adRenderingContextType;return _.D(_.F,{cond:function(){return x().text},
then:function(C){return _.D(_.TT,{text:C,className:function(){var Q=l();e();return Q==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var fA2=_.K(function(O){var x=O.data;var e=O.typographyBump;var l=function(){return x().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
O={};return _.D(_.Xm,null,_.D("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.D(_.TT,{text:function(){return x().headline},
className:_.xz("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(O.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return l==null?void 0:l()},O.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(e==null?void 0:e())&&!(l==null?0:l())},O)),
linkInheritColor:!0}),_.D(_.F,{cond:function(){return x().description},
then:function(C){var Q={};return _.D(_.TT,{text:C,className:_.xz("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(Q.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return l==null?void 0:l()},Q.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(e==null?void 0:e())&&!(l==null?0:l())},Q)),
linkInheritColor:!0})}}),_.D(_.F,{cond:function(){return x().secondaryDescription},
then:function(C){var Q={};return _.D(_.TT,{text:C,className:_.xz("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(Q.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return e==null?void 0:e()},Q)),
linkInheritColor:!0})}}),_.D("div",{class:function(){return l()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.D(_.F,{cond:function(){return x().adAvatar},
then:function(){return _.D("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.D(_.MR,{data:function(){return x().adAvatar}},{adAvatarViewModel:_.Bnd}))}}),_.D(_.MR,{data:function(){return x().adBadge}},{adBadgeViewModel:function(C){return _.D(_.VB,{data:C.data,
hasDot:function(){return!!x().adDetailsLine},
adRenderingContextType:function(){return x().adRenderingContextType}})}}),_.D(_.MR,{data:function(){return x().adDetailsLine}},{adDetailsLineViewModel:function(C){return _.D(_.pg,{data:C.data,
adRenderingContextType:function(){return x().adRenderingContextType}})}}))),_.D("div",{class:function(){return l()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.D(_.MR,{data:function(){return x().menu}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
buttonOverrides:function(){a:switch(x().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var Q="S";break a;default:Q="M"}return{size:Q}}})}})))},"Pb"),JKR=_.K(function(O){var x=O.data;
var e=O.noBottomMargin;var l=O.useVideoLockupTopPadding;var C=O.typographyBump;O={};O=_.xz("ytwFeedAdMetadataViewModelHostMetadata",(O.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return e==null?void 0:e()},O.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return l==null?void 0:l()},O));
var Q=function(){return x().adBadge};
Q!==void 0&&Q!==null||_.OC(Error("Ph"));Q={};var L={};return _.D(_.Xm,null,_.D(_.F,{cond:function(){return x().adAvatar},
then:function(){return _.D("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.D(_.MR,{data:function(){return x().adAvatar}},{adAvatarViewModel:function(k){return _.D(_.Bnd,{data:k.data})}}))}}),_.D("div",{class:O},_.D("div",{class:_.xz("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(Q.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return C==null?void 0:C()},Q.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(C==
null?void 0:C())&&_.t("web_enable_typography_bump_v2")},Q))},_.D(_.TT,{text:function(){return x().headline},
linkInheritColor:!0})),_.D(_.F,{cond:function(){return x().description},
then:function(k){return _.D(_.TT,{text:k,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.D("div",{class:function(){return x().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.t("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.D(_.MR,{data:function(){return x().adBadge}},
{adBadgeViewModel:function(k){return _.D(_.VB,{data:k.data,
hasDot:function(){return!!x().adDetailsLine},
adRenderingContextType:function(){return x().adRenderingContextType}})}}),_.D(_.MR,{data:function(){return x().adDetailsLine}},{adDetailsLineViewModel:function(k){return _.D(_.pg,{data:k.data,
adRenderingContextType:function(){return x().adRenderingContextType}})}})),_.D(_.F,{cond:function(){return x().secondaryDescription},
then:function(k){return _.D(_.TT,{text:k,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.D("div",{class:_.xz("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(L.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return l==null?void 0:l()},L))},_.D(_.MR,{data:function(){return x().menu}},{buttonViewModel:_.RV})))},"Qb"),R4=_.K(function(O){var x=O.data;
var e=O.noBottomMargin;var l=O.listenToTapEvent;var C=O.setTouchEndHandler;var Q=O.useVideoLockupTopPadding;var L=O.typographyBump;O=_.F6({visibilityCallback:function(y){var Z,E=(Z=x().interaction)==null?void 0:Z.onFirstVisible;y&&E&&_.me(E)},
showOption:_.yB});var k=_.p5(function(){return x().interaction},void 0,function(){return l==null?void 0:l()}),M=_.T(_.Iw(!1,void 0,"a2FSrb")),G=M.next().value,X=M.next().value;
M=_.lk(function(y){(C==null?0:C())&&!G()&&(y.currentTarget.click(),X(!0),setTimeout(function(){X(!1)},100));
return!1});
return _.D("feed-ad-metadata-view-model",{class:function(){var y;return((y=x().interaction)==null?0:y.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Y0(O,k),"on:touchend":M},_.D(_.KO,null,_.D(_.zn,{when:function(){return x().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.D(fA2,{data:x,
typographyBump:L})}),_.D(_.zn,{when:function(){return x().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.D(JKR,{data:x,
noBottomMargin:e,useVideoLockupTopPadding:Q,typographyBump:L})})))},"Rb");var w7N,S3D;w7N=_.at.inlinePreviewEnabledSelector;_.UL=_.K(function(O){return _.D("yt-lockup-view-model",{class:_.xz(O.className,"yt-lockup-view-model--wrapper")},_.D(_.I4,{contentId:function(){return O.data().contentId},
useModernStyle:!0,aspectRatio:function(){var x,e;return((x=O.containerType)==null?void 0:x.call(O))!==3?dfW(O.data().contentType,(e=O.force16By9ThumbnailAspectRatio)==null?void 0:e.call(O)):void 0}},function(){return _.D(S3D,Object.assign({},O))}))},"Sb");
S3D=_.K(function(O){O=_.YX(O,{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 x=O.data,e=O.containerLayoutConfig,l=O.containerType,C=O.sizing,Q=O.protectBackground,L=O.typographyBump,k=O.force16By9ThumbnailAspectRatio,M=O.thumbnailFixedWidth,G=O.thumbnailTargetWidth,X=O.lockupExperiments,y=O.elementsPerRow,
Z=_.GG().resolve(_.D0(_.rP));O=_.Y0(_.P8(function(){var VN;return(VN=x())==null?void 0:VN.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 E=_.Dl(w7N),P=_.GG().resolve(_.D0(AKN)),U=P?{}:void 0,W=function(){var VN,Pd,f2;return(f2=(Pd=_.q((VN=x())==null?void 0:VN.rendererContext,_.LM))==null?void 0:Pd.label)!=null?f2:void 0},z=function(){var VN;
return(VN=_.q(x().metadata,_.OzJ))==null?void 0:VN.endorsement},r=function(){var VN=e==null?void 0:e(),Pd;
if(VN==null?0:VN.containerType){var f2=(Pd=x())==null?void 0:Pd.contentType;Pd=X();var p2=L(),OT=G(),Gp=Q();VN=Object.assign({},nJL(rms(VN),hdn(VN.responsiveSize),p2,f2,VN.force16By9ThumbnailAspectRatio,OT,Gp,Pd),{thumbnailFixedWidth:VN.contentPreviewWidth})}else VN=nJL(l(),C(),L(),(f2=x())==null?void 0:f2.contentType,k(),G(),Q(),X());return VN};
P&&U&&P({enabled:function(){return E()},
itemPlaybackModel:function(){return x().itemPlayback},
thumbnailElRef:function(){return U.thumbnailElRef},
containerElRef:O,options:function(){var VN=U.thumbnailOverlays||[],Pd=z(),f2;!Pd||((f2=X())==null?0:f2.onFocusEffect)||VN.push(Pd);var p2,OT;return{thumbnail:U.thumbnail,thumbnailOverlays:VN,accessibilityText:W(),thumbnailSize:U.thumbnailSize,enableRounding:r().isCollection,containPlayerWithinThumbnail:r().isCollection,mouseleaveCallback:function(){Y(!1)},
trackingParams:(p2=_.q(x().rendererContext,_.AB))==null?void 0:(OT=p2.loggingDirectives)==null?void 0:OT.trackingParams}}});
var f=0;P=_.T(_.Iw(!1,void 0,"dCI3sc"));var u=P.next().value,Y=P.next().value;P=_.T(_.Iw(!1,void 0,"fnxRwc"));var J=P.next().value,O8=P.next().value;P=_.lk(function(){J()?(_.vn.cancelJob(f),f=_.vn.addJob(function(){Y(!0)},8,32)):Y(!0);
return!0});
var Xr=_.lk(function(VN){VN=VN.relatedTarget;var Pd=document.querySelector("ytd-video-preview");VN&&Pd&&Pd.contains(VN)||(f&&(_.vn.cancelJob(f),f=0),Y(!1))});
_.YO(function(){f&&(_.vn.cancelJob(f),f=0)});
var Fr=xGN(function(){O8(!0)}),mL=Fr.touchFeedbackEvents,Zn=Fr.touchFeedbackOnPointerUp,q$=Fr.touchFeedbackOnPointerDown;
Fr=Fr.touchFeedbackOnPointerLeave;var KV={};return _.D(_.Xm,null,_.D("div",{el:O,class:_.xz("yt-lockup-view-model",function(){a:{var VN=r();if(VN.isOverlay)VN="yt-lockup-view-model--overlay";else switch(VN.arrangement){case 1:VN="yt-lockup-view-model--horizontal";break a;default:VN="yt-lockup-view-model--vertical"}}return VN},function(){a:{var VN=r();
if(VN.isOverlay)VN="yt-lockup-view-model--overlay";else{switch(VN.collectionStackNumber){case 1:VN="yt-lockup-view-model--collection-stack-1";break a;case 2:VN="yt-lockup-view-model--collection-stack-2";break a}VN=void 0}}return VN},function(){var VN;
return _.NKr((VN=x())==null?void 0:VN.contentId)},(KV["yt-lockup-view-model--card"]=function(){return r().isCard},KV["yt-lockup-view-model--compact"]=function(){return r().isTiny||r().sizing!=="STANDARD"},KV["yt-lockup-view-model--protect-background"]=Q,KV["yt-lockup-view-model--add-margins"]=function(){return r().addMarginForFullbleed},KV["yt-lockup-view-model--centered"]=function(){return r().isCentered},KV["yt-lockup-view-model--fullbleed"]=function(){return r().fullbleed},KV["yt-lockup-view-model--single-column-grid"]=
function(){return y()===1&&l()===2},KV["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var VN;
return(VN=X())==null?void 0:VN.useRichGridLegacyMargin},KV)),
"on:mousedown":q$,"on:mouseleave":Xr,"on:mouseup":Zn,"on:mouseover":P,"on:touchstart":q$,"on:touchend":Zn,"on:pointerleave":Fr},_.D(_.ct,{model:function(){var VN,Pd,f2=Object,p2=f2.assign,OT=(U==null?void 0:U.thumbnailSize)||"small";a:{var Gp=r();var zp=!!(z()&&((VN=X())==null?0:VN.onFocusEffect));switch((U==null?void 0:U.thumbnailSize)||"small"){case "small":VN=4;break;case "large":VN=12;break;default:VN=8}if(zp)Gp=VN+24;else{switch(Gp.collectionStackNumber){case 1:Gp=VN+8;break a;case 2:Gp=VN+12;
break a}Gp=void 0}}OT={thumbnailSize:OT,triggerEvents:!0,customTopExtend:Gp};var m3;Gp=(Pd=X())==null?void 0:Pd.onFocusEffect;zp=!(Z==null||!Z());if(Gp){var E4,Xw;Pd=zp?(E4=Gp.onFocusColor)==null?void 0:E4.darkTheme:(Xw=Gp.onFocusColor)==null?void 0:Xw.lightTheme;var Tr,QR;E4=zp?(Tr=Gp.keyLightColor)==null?void 0:Tr.darkTheme:(QR=Gp.keyLightColor)==null?void 0:QR.lightTheme;var ET;Tr=zp?(m3=Gp.touchResponseColor)==null?void 0:m3.darkTheme:(ET=Gp.touchResponseColor)==null?void 0:ET.lightTheme;m3={background:Pd!==
void 0?sA(Pd):void 0,keyLight:E4!==void 0?sA(E4):void 0};ET=[];QR=_.T(Gp.lightingTechniques||[]);for(E4=QR.next();!E4.done;E4=QR.next())switch(E4.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":ET.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":ET.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":ET.push(3)}m3={hoverEffect:{palette:m3,lightingTechniques:ET},touchEffect:{palette:{background:Tr!==void 0?sA(Tr):void 0}}}}else m3={};return p2.call(f2,{},OT,m3)},
hovered:function(){return u()},
pointerDownEvent:mL.pointerDownEvent,pointerUpEvent:mL.pointerUpEvent,pointerLeaveEvent:mL.pointerLeaveEvent}),_.D(_.F,{cond:function(){var VN;return z()&&u()&&((VN=X())==null?void 0:VN.onFocusEffect)},
then:function(){return _.D("div",{class:"yt-lockup-view-model__endorsement"},_.D(_.MR,{data:function(){return z()}},{attributionViewModel:function(VN){return _.D(P$,{data:VN.data,
useHeavyText:!0})}}))}}),_.D(_.Pt,{command:function(){var VN;
return _.tA((VN=x())==null?void 0:VN.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return M()&&r().arrangement===1?"width: "+M():""}},_.D(_.MR,{data:function(){var VN;
return(VN=x())==null?void 0:VN.contentImage}},{thumbnailViewModel:function(VN){return _.D(_.o4,{data:VN.data,
aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:G,hovered:function(){return u()&&!(E()&&x().itemPlayback)},
isClip:function(){var Pd;return((Pd=x())==null?void 0:Pd.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:ZPN(U),lockupExperiments:function(){return X()}})},
collectionThumbnailViewModel:function(VN){return _.D(V0$,{data:VN.data,aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:G,doubleStack:function(){return r().collectionStackNumber===2},
hovered:function(){return u()&&!(E()&&x().itemPlayback)},
playbackRef:ZPN(U)})},
decoratedAvatarViewModel:_.Nz})),_.D("div",{class:"yt-lockup-view-model__metadata"},_.D(_.MR,{data:function(){var VN;return(VN=x())==null?void 0:VN.metadata}},{lockupMetadataViewModel:function(VN){return _.D(nMT,{data:VN.data,
hovered:u,lockupStyle:r,lockupCommand:function(){var Pd;return _.tA((Pd=x())==null?void 0:Pd.rendererContext)},
lockupAccessibilityLabel:function(){return W()}})},
feedAdMetadataViewModel:function(VN){return _.D(R4,{data:VN.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:L})}}),_.D(_.MR,{data:function(){var VN;
return(VN=x())==null?void 0:VN.attachmentSlot}},{lockupAttachmentsViewModel:function(VN){return _.D(sNd,{data:VN.data,
lockupStyle:r})}}))),_.D(_.MR,{data:function(){var VN;
return(VN=x())==null?void 0:VN.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(VN){return _.D(sNd,{data:VN.data,
lockupStyle:r})}}))},"Tb");
_.UL.idomCompat=!0;_.wP(_.UL,"yt-lockup-view-model",{props:{data:_.Ld,containerLayoutConfig:_.Ld,containerType:_.Ld,sizing:_.Ld,protectBackground:_.Ld,typographyBump:_.Ld,thumbnailFixedWidth:_.Ld,thumbnailTargetWidth:_.Ld,force16By9ThumbnailAspectRatio:_.Ld,className:_.Ld,lockupExperiments:_.Ld,elementsPerRow:_.Ld}});var bmr,jNR=_.K(function(O){var x=_.YX(O,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),e=x.text,l=x.alwaysShowTruncationText;O=x.truncationText;var C=x.onTextClick,Q=x.maxLines,L=x.disableTextMask,k=x.textStyle,M=x.accessibilityLabel,G=x.textSize,X=x.alwaysTruncateAtMaxLines,y=x.expandOnClick;x=_.T(_.Iw(!1,void 0,"EzA1q"));var Z=x.next().value,E=x.next().value;x=_.lk(function(){y()&&E(!Z());C==null||C()});
var P=function(){a:switch(G()){case "medium":var J=2;break a;case "large":J=2.2;break a;default:J=1.8}return J},U=kP7(e,function(){return Z()?Infinity:Q()},P,L,X,Z),W=U.isTruncated;
e=U.displayText;X=U.contentRef;var z=U.hiddenRef,r=U.placeholderTruncationTextRef,f=U.hiddenTruncationTextRef;U=U.truncationTextRef;var u={},Y={};return _.D("truncated-text",{class:_.xz((u["yt-truncated-text"]=!0,u["yt-truncated-text--overlay"]=function(){return k()==="overlay"},u["yt-truncated-text--medium-text"]=function(){return G()==="medium"},u["yt-truncated-text--large-text"]=function(){return G()==="large"},u["yt-truncated-text--primary-text"]=function(){return k()==="primary-text"},u)),
"on:click":x,style:function(){return"line-height: "+P()+"rem;"}},_.D("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:X,style:function(){return Z()?"":"max-height: "+Q()*P()+"rem;"}},_.D(_.TT,{text:e}),_.D("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:r,style:function(){return"line-height: "+P()+"rem;"}},_.D(_.TT,{text:O}))),_.D("truncated-text-content",{class:_.xz("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:z,style:function(){return Z()?"":"max-height: "+Q()*P()+"rem;"},
"aria-hidden":"true"},_.D(_.TT,{text:e}),_.D("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:f,style:function(){return"line-height: "+P()+"rem;"}},_.D(_.TT,{text:O}))),_.D("button",{"aria-label":M,
class:_.xz((Y["yt-truncated-text__absolute-button"]=function(){return!L()},Y["yt-truncated-text__bottom-button"]=function(){return L()},Y["yt-truncated-text--hidden"]=function(){return!(!Z()&&(l!=null&&l()||W()))},Y)),
el:U,style:function(){return"line-height: "+P()+"rem;"}},_.D(_.TT,{text:O})))},"Vb");
jNR.idomCompat={callbacks:{onTextClick:!0}};var $YR=_.K(function(O){var x=O.data;O=O.className;var e=_.aw(function(){return Myr(x())},void 0,"uDhDke"),l=_.D(_.Xm,null,_.D(_.F,{cond:function(){return x().heroText||x().image},
then:function(){return _.D(NnJ,{data:x})}}),_.D(gMF,{data:x,
sizeSmall:function(){return x().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.D("yt-video-attribute-view-model",{class:O},_.D("div",{class:function(){var C=x();a:switch(C.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Q="yt-video-attribute-view-model--vertical";break a;default:Q="yt-video-attribute-view-model--horizontal"}a:switch(C.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var L="yt-video-attribute-view-model--image-small";break a;default:L="yt-video-attribute-view-model--image-large"}a:switch(C.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var k=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":k="yt-video-attribute-view-model--image-avatar";break a;default:k=""}a:switch(C.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(C.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var G="yt-video-attribute-view-model--container-card";break a;default:G=""}return["yt-video-attribute-view-model",Q,L,
k,M,G,Myr(C)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.T7({"background-color":function(){var C=x();if(C.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Q="";else{Q=C.lightColorPalette;C=C.darkColorPalette;var L,k=((L=_.GG().resolve(_.D0(_.rP)))==null?0:L())&&C?C:Q;Q=(Q=k==null?void 0:k.section2Color)?_.aF(Q):""}return Q}})},_.D(_.F,{cond:e,
then:function(){return _.D(_.Pt,{className:"yt-video-attribute-view-model__content-container",command:e,role:"group",ariaLabel:function(){return x().title}},l)},
else:function(){return _.D("div",{class:"yt-video-attribute-view-model__content-container"},l)}})))},"Wb");
$YR.idomCompat=!0;var NnJ=_.K(function(O){var x=O.data;var e,l=(e=_.GG().resolve(_.D0(_.rP)))==null?void 0:e(),C=function(){return l&&x().darkThemeImage?x().darkThemeImage:x().image},Q=_.aw(function(){return DGL(x())},void 0,"UDqj0b");
return _.D("div",{class:"yt-video-attribute-view-model__hero-section"},_.D(_.KO,null,_.D(_.zn,{when:C},function(){return _.D(_.n_,{data:function(){return C()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.D(_.zn,{when:function(){return x().heroText}},function(){return _.D("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.D("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return x().heroText}))})),_.D(_.F,{cond:function(){return x().overflowMenuOnTap},
then:function(){return _.D("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.D(_.pd,{data:Q,iconName:"MORE_VERT"}))}}))},"Xb");
NnJ.idomCompat=!0;var gMF=_.K(function(O){var x=O.data;O=O.sizeSmall;var e=function(){return x().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},l=_.aw(function(){return al(_.Ux({innertubeCommand:Myr(x())}))?"link":Myr(x())?"button":"group"},void 0,"e2MmYe"),C={};
return _.D("div",{class:_.xz("yt-video-attribute-view-model__metadata",(C["yt-video-attribute-view-model--small-font"]=O,C)),role:l},_.D("h1",{class:"yt-video-attribute-view-model__title"},function(){return x().title}),_.D(_.F,{cond:function(){return x().subtitle},
then:function(){return _.D("h4",{class:"yt-video-attribute-view-model__subtitle"},_.D(_.F,{cond:e,then:function(){return _.D(jNR,{text:function(){return Aww(x().subtitle)},
truncationText:function(){return Aww(x().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.D("span",null,function(){return x().subtitle})}}))}}),_.D(_.F,{cond:function(){return x().secondarySubtitle},
then:function(Q){return _.D("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.D(_.TT,{text:function(){var L=Q();if(L!=null&&L.attachmentRuns){for(var k=[],M=_.T(L.attachmentRuns),G=M.next();!G.done;G=M.next())G=G.value,G.element&&k.push(Object.assign({},G,{element:Object.assign({},G.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));L=Object.assign({},L,{attachmentRuns:k})}return L}}))}}),_.D(_.MR,
{data:function(){return x().buttonViewModel}},{buttonViewModel:function(Q){return _.D(_.RV,{data:Q.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
gMF.idomCompat=!0;_.wP($YR,"yt-video-attribute-view-model",{props:{data:_.Ld,className:_.Ld}});var a4=function(){var O=_.a.apply(this,arguments)||this;O.useHighlightStyling=_.t("web_enable_deeper_metadata_highlight_styling");O.isSearch=!1;O.JSC$15314_lastScrollContainerWidth=NaN;O.pageLoadingFromNavigation=!1;O.currentIndex=0;O.supportComponentResize=!1;return O};
_.c(a4,_.a);_.b=a4.prototype;
_.b.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}}}}}};
_.b.attached=function(){document.addEventListener("yt-page-type-changed",_.Qa(this,this.onPageChange))};
_.b.detached=function(){document.removeEventListener("yt-page-type-changed",_.Qa(this,this.onPageChange))};
_.b.getItemsPath=function(){return"data.cards"};
_.b.onIronResize=function(){this.updateListStyles()};
_.b.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var O;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(O=this.data)==null?void 0:O.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.t("problem_walkthrough_sd")&&!!this.centerItems};
_.b.computeCardListStyle=function(O){return O||null};
_.b.computeEmpty=function(O){return!this.get("cards.length",O)};
_.b.computeThumbnailStyle=function(O){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",O)||null};
_.b.computeHasSubtitle=function(O){return!!this.get("header.richListHeaderRenderer.subtitle",O)};
_.b.computeInitialCountNumber=function(O){return this.hasSquareMiniApp&&O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.b.computeUseFloorScrolling=function(O){return O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.b.computeHasGameCard=function(O){return(O=this.get("cards",O))?O.some(function(x){return x.gameCardRenderer}):!1};
_.b.computeCenterHeaderTitle=function(O){return!(O==null||!O.centerHeaderTitle)};
_.b.computeHasPortraitMiniApp=function(O){return(O=O==null?void 0:O.cards)?O.some(function(x){return x.miniGameCardViewModel&&x.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.b.computeHasSquareMiniApp=function(O){return(O=O==null?void 0:O.cards)?O.some(function(x){return x.miniGameCardViewModel&&x.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.b.computeHasSkinnyWidthPortraitMiniApp=function(O){return(O=O==null?void 0:O.cards)?O.some(function(x){return x.miniGameCardViewModel&&x.miniGameCardViewModel.width===135}):!1};
_.b.computeCenterItems=function(O){return!!O};
_.b.computeHasInfoPanel=function(O){var x;return O==null?void 0:(x=O.cards)==null?void 0:x.some(function(e){return e.infoPanelContentRenderer})};
_.b.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.b.getItemByIndex=function(O){var x=this.items.children;return x&&x.length>O?x[O]:void 0};
_.b.onPageChange=function(){var O=this;this.pageLoadingFromNavigation=!0;_.vn.addJob(function(){O.pageLoadingFromNavigation=!1;_.jh(O.hostElement,"yt-terminate-video-preview-action")},8)};
_.b.updateListStyles=function(){if(_.t("problem_walkthrough_sd")&&this.JSC$15314_scrollContainer!==void 0){var O=this.JSC$15314_scrollContainer.clientWidth;O!==this.JSC$15314_lastScrollContainerWidth&&(this.JSC$15314_lastScrollContainerWidth=O,_.lH(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(O*.8,415)+"px"}),_.wr(this.hostElement,"iron-resize"))}};
_.Dy.Object.defineProperties(a4.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.t("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.cards)==null?0:(e=x[0])==null?0:e.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.cards)==null?0:(e=x[0])==null?0:e.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return _.t("enable_desktop_amsterdam_info_panels")&&!!((O=this.data)==null?0:(x=O.cards)==null?0:(e=x[0])==null?0:e.infoPanelContentRenderer)}}});
a4.prototype.dataChanged=a4.prototype.dataChanged;a4.prototype.onIronResize=a4.prototype.onIronResize;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],a4.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.V(_.xw),_.v("design:type",Object)],a4.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],a4.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],a4.prototype,"useCustomColors",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],a4.prototype,"useHighlightStyling",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.v("design:type",Object)],a4.prototype,"cardListStyle",void 0);_.B([_.R({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.v("design:type",Boolean)],a4.prototype,"empty",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.v("design:type",Boolean)],a4.prototype,"hasSubtitle",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.v("design:type",Boolean)],a4.prototype,"thumbnailStyle",void 0);_.B([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.v("design:type",Boolean)],a4.prototype,"hasGameCard",void 0);_.B([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.v("design:type",Boolean)],a4.prototype,"centerHeaderTitle",void 0);
_.B([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.v("design:type",Boolean)],a4.prototype,"hasPortraitMiniApp",void 0);_.B([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.v("design:type",Boolean)],a4.prototype,"hasSquareMiniApp",void 0);_.B([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.v("design:type",Boolean)],a4.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.B([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.v("design:type",Boolean)],a4.prototype,"hasInfoPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],a4.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],a4.prototype,"inlineStructuredDescription",void 0);_.B([_.kX("#scroll-container"),_.v("design:type",HTMLDivElement)],a4.prototype,"JSC$15314_scrollContainer",void 0);
_.B([_.R({computed:"computeInitialCountNumber(data.style.type)"}),_.v("design:type",Number)],a4.prototype,"initialCount",void 0);_.B([_.R({computed:"computeUseFloorScrolling(data.style.type)"}),_.v("design:type",Boolean)],a4.prototype,"useFloorScrolling",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.v("design:type",Boolean)],a4.prototype,"centerItems",void 0);_.B([_.R(),_.v("design:type",Object)],a4.prototype,"pageLoadingFromNavigation",void 0);
_.B([_.R(),_.v("design:type",Object)],a4.prototype,"currentIndex",void 0);_.B([_.R(),_.v("design:type",Number)],a4.prototype,"scrollCount",void 0);_.B([_.R(),_.v("design:type",Object)],a4.prototype,"supportComponentResize",void 0);_.B([_.kX("#items"),_.v("design:type",HTMLDivElement)],a4.prototype,"items",void 0);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],a4.prototype,"onIronResize",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],a4.prototype,"dataChanged",null);_.B([_.R({reflectToAttribute:!0}),_.p("inlineStructuredDescription"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],a4.prototype,"hideNavigationButton",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],a4.prototype,"modernChapters",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],a4.prototype,"hasVideoAttributeViewModels",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],a4.prototype,"modernInfoPanels",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],a4);
_.n(a4,"ytd-horizontal-card-list-renderer",function(){if(fI2!==void 0)return fI2;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return fI2=O},{mode:_.gq("kevlar_poly_si_batch_j072")?1:2});var iRd=_.K(function(O){var x=O.data;var e={};return _.D("video-summary-content-view-model",{class:_.xz("videoSummaryContentViewModelHost",O.className,(e.videoSummaryContentViewModelHostIsSearch=O.isSearch,e))},_.D(_.HE,{each:function(){var l=[],C=x().paragraphs;if(C==null||!C.length)return[];for(var Q=0;Q<C.length;Q++){var L=_.q(C[Q],ioL),k=void 0;Q>0&&(k=_.q(C[Q-1],ioL));k&&!!k.marker===!!L.marker?l[l.length-1].paragraphs.push(L):l.push({isList:!!L.marker,paragraphs:[L]})}return l},
keyBy:"INDEX"},function(l){return _.D(_.F,{cond:function(){return l().isList},
then:function(){return _.D("ul",{class:"videoSummaryContentViewModelList"},_.D(_.HE,{each:function(){return l().paragraphs},
keyBy:"INDEX"},function(C){return _.D("li",{class:"videoSummaryContentViewModelListItem"},_.D(_.TT,{text:function(){return C().text}}))}))},
else:function(){return _.D("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.D(_.HE,{each:function(){return l().paragraphs},
keyBy:"INDEX"},function(C){return _.D("p",{class:"videoSummaryContentViewModelParagraph"},_.D(_.TT,{text:function(){return C().text}}))}))}})}),_.D(_.F,{cond:function(){return!!_.q(x().likeButtonViewModel,_.Yo)&&!!_.q(x().dislikeButtonViewModel,_.uN)},
then:function(){return _.D("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.D("div",{class:"videoSummaryContentViewModelLikeButton"},_.D(_.iZ,{data:function(){return _.q(x().likeButtonViewModel,_.Yo)},
disableIconAnimation:!0})),_.D(_.$w,{data:function(){return _.q(x().dislikeButtonViewModel,_.uN)}}))}}))},"Zb");
iRd.idomCompat=!0;_.wP(iRd,"video-summary-content-view-model",{props:{data:_.Ld,isSearch:_.Ld,className:_.Ld}});var m0=function(){var O=_.a.apply(this,arguments)||this;var x,e;O.isExpanded=(e=(x=O.data)==null?void 0:x.isExpanded)!=null?e:!1;O.disableExpand=!1;O.showProminentLabel=!1;O.showRightSideLabel=!0;O.toggleExpandableContent=function(l){O.disableExpand||(l.stopPropagation(),_.Yz(_.n3(l),O.hostElement,["info","expanded-subtitle"])||(O.isExpanded=!O.isExpanded,O.ytRendererBehavior.logExplicitClick(O.data),O.JSC$15325_cardList&&!_.t("expandable_metadata_a11y_fix_ks")&&_.A_(O,function(){_.QQ(O.hostElement)})))};
O.useSquareThumbnail=!1;O.startX=0;return O};
_.c(m0,_.a);_.b=m0.prototype;_.b.computeUseSquareThumbnail=function(){var O;return(O=this.data)==null?void 0:O.useSquareThumbnail};
_.b.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"}}}}};
_.b.dataChanged=function(){if(this.data){var O,x;this.isExpanded=(x=(O=this.data)==null?void 0:O.isExpanded)!=null?x:!1;var e,l,C,Q;if(O=this.isDarkTheme()?(e=this.data)==null?void 0:(l=e.colorData)==null?void 0:l.darkColorPalette:(C=this.data)==null?void 0:(Q=C.colorData)==null?void 0:Q.lightColorPalette){var L,k;if((L=this.data)==null?0:(k=L.colorData)==null?0:k.vibrantColorPalette)O.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Zl(this.hostElement,O)}}};
_.b.isExpandedChanged=function(){this.isExpanded&&this.JSC$15325_cardList&&_.wr(this.JSC$15325_cardList,"iron-resize")};
_.b.computeIsExpanded=function(O){return!!O.isExpanded};
_.b.computeShowProminentLabel=function(O,x){var e;return!!(O==null?0:(e=O.header)==null?0:e.showLeadingCollapsedLabel)&&!x};
_.b.computeShowRightSideLabel=function(O,x){var e;return!(O==null?0:(e=O.header)==null?0:e.showLeadingCollapsedLabel)&&!x};
_.b.captureContentClick=function(O){if(!this.disableExpand)if(_.t("expandable_metadata_fix_killswitch")){var x=O.target;_.yjR(x,"ytd-macro-markers-list-item-renderer")||O.stopPropagation();(x==null?void 0:x.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Yz(_.n3(O),this.hostElement,["items"])||_.uk(_.n3(O),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.b.timestampClick=function(O){O.stopPropagation();var x,e;(O=(x=this.data)==null?void 0:(e=x.header)==null?void 0:e.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(O)};
_.b.onDown=function(O){O.stopPropagation();this.startX=O.detail?O.detail.x:0};
_.b.onUp=function(O){this.skipKeyInteraction(O)&&O.stopPropagation()};
_.b.skipKeyInteraction=function(O){var x=O.target;if((x==null?void 0:x.id)==="scroll-container"||(x==null?void 0:x.id)==="items"||O.detail&&O.detail.x!==this.startX)return!0;O=_.n3(O);O=_.T(O);for(x=O.next();!x.done;x=O.next()){x=x.value;if(x===this.hostElement)break;if(x.hasAttribute&&x.hasAttribute("skip-key-interaction"))return!0}return!1};
_.b.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Dy.Object.defineProperties(m0.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.q((O=this.data)==null?void 0:O.expandedContent,$Kd)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.q((O=this.data)==null?void 0:O.expandedContent,_.xzN)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.useCustomColors)&&!((x=this.data)==null||!x.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!((O=this.data)==null?0:(x=O.header)==null?0:x.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!((O=this.data)==null?0:(x=O.header)==null?0:x.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!((O=this.data)==null?0:(x=O.header)==null?0:x.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
m0.prototype.onUp=m0.prototype.onUp;m0.prototype.onDown=m0.prototype.onDown;m0.prototype.isExpandedChanged=m0.prototype.isExpandedChanged;m0.prototype.dataChanged=m0.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],m0.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],m0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],m0.prototype,"isExpanded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],m0.prototype,"disableExpand",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],m0.prototype,"isSearch",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],m0.prototype,"isWatch",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.v("design:type",Object)],m0.prototype,"showProminentLabel",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.v("design:type",Object)],m0.prototype,"showRightSideLabel",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"hasVideoSummary",null);_.B([_.R({value:!1,reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"hasLockupViewModel",null);_.B([_.R({reflectToAttribute:!0}),_.p("data","isWatch"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"useCustomColors",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data","isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"showInfoButton",null);_.B([_.p("data","isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"showTimestamp",null);_.B([_.p("data","isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"showExpandedSubtitle",null);
_.B([_.p("data","isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],m0.prototype,"showThumbnail",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],m0.prototype,"useVppShoppingDestinationStyle",null);_.B([_.R(),_.v("design:type",Object)],m0.prototype,"toggleExpandableContent",void 0);_.B([_.kX("ytd-horizontal-card-list-renderer"),_.v("design:type",Object)],m0.prototype,"JSC$15325_cardList",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.v("design:type",Object)],m0.prototype,"useSquareThumbnail",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],m0.prototype,"dataChanged",null);_.B([_.T1("isExpanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],m0.prototype,"isExpandedChanged",null);
_.B([_.bH("down"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],m0.prototype,"onDown",null);_.B([_.bH("up"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],m0.prototype,"onUp",null);_.B([_.H({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],m0);
_.n(m0,"ytd-expandable-metadata-renderer",function(){if(iP3!==void 0)return iP3;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return iP3=O},{mode:1});var O8L,xET=function(){if(O8L!==void 0)return O8L;var O=document.createElement("template");_.I(O,'\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      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" 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]]" hidden="[[hasAttributedBylineText]]" 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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return O8L=O};_.wP(_.g6,"yt-avatar-stack-view-model",{props:{className:_.Ld,data:_.Ld,overrides:_.Ld,isOverlay:_.Ld,useMediumText:_.Ld,decorations:_.Ld,hideAvatar:_.Ld}});_.tI("itemSectionRenderer","videoRenderer","ytd-video-renderer");var sL=function(){var O=_.a.apply(this,arguments)||this;O.disableExpand=!1;O.shouldShowChannelInfo=!1;O.hasAttributedBylineText=!1;O.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return O};
_.c(sL,_.a);_.b=sL.prototype;_.b.computeUseSearchUi=function(){var O,x;return this.isSearch||((O=this.data)==null?void 0:(x=O.style)==null?void 0:x.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.b.computeUseThreeLineTitle=function(){var O;return((O=this.data)==null?void 0:O.maxTitleLines)===3};
_.b.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.t("polymer_video_renderer_defer_menu")&&!vPR?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"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.b.attached=function(){_.Ow(this.hostElement,"blue-links",_.t("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.b.detached=function(){this.clearInlinePreviewHoverListeners()};
_.b.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.xX(_.$U(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var O=this.get("data.buttons.buttonRenderer.serviceEndpoint"),x;O&&((x=_.q(O.commandMetadata,_.m5))==null?0:x.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(O);this.updateInlinePreviewHoverListeners()};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15330_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.JSC$15330_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15330_inlinePreviewHoverListener)==null||KM(O)};
_.b.onTextWrapperClick=function(O){var x,e,l=this.hideTranslation?(x=this.data)==null?void 0:x.untranslatedNavigationEndpoint:(e=this.data)==null?void 0:e.navigationEndpoint;x=_.Yz(_.n3(O),this.hostElement,["expandable-metadata"]);!l||x&&!_.t("expandable_metadata_fix_killswitch")||_.uk(_.n3(O),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.wr(this.hostElement,"yt-navigate",{endpoint:l})};
_.b.computeThumbnailWidth=function(O,x,e,l,C){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:l?C==="MASSIVE"?600:C==="BIG"?500:C==="MEDIUM"?450:420:e?360:x?128:O?210:246};
_.b.computeUseBiggerThumbs=function(O){return O&&_.t("enable_desktop_search_bigger_thumbs")};
_.b.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.b.computeHasAttributedBylineText=function(){var O;return!((O=this.data)==null||!O.attributedBylineText)};
_.b.computeVideoStyle=function(){if(_.t("enable_video_style")){var O,x;return(O=this.data)==null?void 0:(x=O.style)==null?void 0:x.value}};
_.b.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.b.handleHideItemSectionVideosByIdCommand=function(O){var x;O=(x=_.q(O,tod))==null?void 0:x.videoId;this.data&&this.data.videoId===O&&(this.isHidden=!0)};
_.b.getMetadataSnippetContainerClass=function(O){return O?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.b.computeTitleText=function(O,x,e){return O?e:x};
_.b.computeDescriptionSnippet=function(O,x,e){return O?e:x};
_.b.computeSnippetText=function(O,x,e){return O?e:x};
_.b.computeNavigationEndpoint=function(O,x){return O?x==null?void 0:x.untranslatedNavigationEndpoint:x==null?void 0:x.navigationEndpoint};
_.b.hideInlineTitleIcon=function(O,x){return O||!x};
_.Dy.Object.defineProperties(sL.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 O;return(O=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?O:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!(this==null?0:(O=this.data)==null?0:(x=O.channelThumbnailSupportedRenderers)==null?0:(e=x.channelThumbnailWithLinkRenderer)==null?0:e.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.q((O=this.data)==null?void 0:O.avatar,e4T)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15330_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Dy.Object.defineProperties(sL,{template:{configurable:!0,enumerable:!0,get:function(){return xET()}}});
sL.prototype.dataChanged=sL.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],sL.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],sL.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Lj),_.v("design:type",Object)],sL.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],sL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],sL.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sL.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],sL.prototype,"isBackstageVideo",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],sL.prototype,"isPostCompactVideo",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],sL.prototype,"isHistory",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],sL.prototype,"isRichGridVideoPost",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],sL.prototype,"isHidden",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],sL.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.v("design:type",Boolean)],sL.prototype,"useSearchUi",void 0);_.B([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.v("design:type",Boolean)],sL.prototype,"useThreeLineTitle",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.v("design:type",Boolean)],sL.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.v("design:type",Object)],sL.prototype,"videoStyle",void 0);_.B([_.R({computed:"computeDisableExpand(videoStyle)"}),_.v("design:type",Object)],sL.prototype,"disableExpand",void 0);
_.B([_.R({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.v("design:type",Object)],sL.prototype,"shouldShowChannelInfo",void 0);_.B([_.R({computed:"computeHasAttributedBylineText(data)"}),_.v("design:type",Object)],sL.prototype,"hasAttributedBylineText",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],sL.prototype,"biggerThumbsStyle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.v("design:type",String)],sL.prototype,"inlineTitleIcon",void 0);_.B([_.R({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.v("design:type",Object)],sL.prototype,"computedNavigationEndpoint",void 0);_.B([_.R({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(O,x){return _.xE(O.entities,"searchVideoResultEntity",x)}}),
_.v("design:type",Object)],sL.prototype,"searchVideoResultEntity",void 0);_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],sL.prototype,"thumbnail",void 0);_.B([_.kX("#dismissible"),_.v("design:type",HTMLElement)],sL.prototype,"JSC$15330_dismissibleMedia",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sL.prototype,"dataChanged",null);
_.B([_.p("searchVideoResultEntity"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sL.prototype,"hideTranslation",null);_.B([_.p("searchVideoResultEntity"),_.v("design:type",Array),_.v("design:paramtypes",[])],sL.prototype,"hiddenBadgeGroups",null);_.B([_.p("data","useAvatar"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sL.prototype,"shouldShowChannelThumbnail",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sL.prototype,"useAvatar",null);
_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sL.prototype,"isHovered",null);_.B([_.H({is:"ytd-video-renderer",disableElementRegistration:!0})],sL);_.n(sL,"ytd-video-renderer",function(){return xET()},{mode:_.gq("kevlar_poly_si_batch_j047")?1:2});var W$=function(){var O=_.a.apply(this,arguments)||this;O.editDialog=null;O.roundedContainer=!0;O.isLoading=!1;O.isRichGrid=!1;O.isRichGridRepost=!1;O.reduceSidePaddings=_.t("reduce_side_paddings_in_shelf");O.JSC$15337_spinnerEl=null;return O};
_.c(W$,_.a);_.b=W$.prototype;
_.b.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"}}}};
_.b.contentTextChanged=function(){this.expander.reset()};
_.b.dataChanged=function(){var O=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var x=0,e=this.data.actions&&this.data.actions.length;x<e;x++)this.openEditDialog(_.q(this.data.actions[x],Q3D));if((x=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(x=this.get("buttonRenderer.hint.hintRenderer.hintId",x))&&x.startsWith("share-post-hint")){var l=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(l){_.Z5.getInstance();var C=E2(_.KA(_.CZ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.vn.addLowPriorityJob(function(){_.gr(O.hostElement,C,l)})}}}};
_.b.updatePoll=function(O){O>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.b.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15337_spinnerEl||(this.JSC$15337_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.$U(this.hostElement).appendChild(this.JSC$15337_spinnerEl));this.JSC$15337_spinnerEl&&(this.JSC$15337_spinnerEl.active=this.isLoading)};
_.b.onYtNavigate=function(O){var x=this.get("updateCommentDialogEndpoint",O.detail.endpoint);x&&(this.openEditDialog(x),O.stopPropagation())};
_.b.onYtCommentboxDismiss=function(){this.editDialog=null};
_.b.onYtCommentPollRevert=function(O,x){x&&this.updatePoll(x.selectedChoiceIndex)};
_.b.onYtServiceRequestSent=function(O,x){var e;x.endpoint&&(_.q(x.endpoint,DOk)||_.q(x.endpoint,MgL)&&((e=_.q(x.endpoint,MgL))==null||!e.clientActions))&&(this.isLoading=!0);if(x.actions)for(O=0;O<x.actions.length;O++)e=x.actions[O],_.q(e,Ul)&&(e=this.get("updateBackstagePollAction.selectedChoiceIndex",e),e==void 0&&(e=-1),this.updatePoll(e))};
_.b.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.b.openEditDialog=function(O){O&&O.dialog&&(this.editDialog=O.dialog,O=this.editDialogEl.firstElementChild)&&(O.focus(),O.openDialog&&O.openDialog())};
_.b.computeIsPostHidden=function(O,x){return!!O||x};
_.b.computeSurfaceType=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeUsesCompactLockup=function(O){return O==="BACKSTAGE_SURFACE_TYPE_HOME"||O==="BACKSTAGE_SURFACE_TYPE_SEARCH"||O==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||O==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||O==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||O==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.b.computeShowWithoutToolbar=function(O){return!O.actionButtons&&!O.actionMenu};
_.b.computePostAttachment=function(O){if(O.backstageAttachment){if(_.q(O.backstageAttachment,fXd))return"poll";if(_.q(O.backstageAttachment,ULd))return"quiz";if(_.q(O.backstageAttachment,_.jm))return"video";if(_.q(O.backstageAttachment,aXz))return"uploaded-videos";if(_.q(O.backstageAttachment,mCk))return O.contentText?"image":"image-only";if(_.q(O.backstageAttachment,IXD))return"playlist"}return"none"};
_.b.computePostTabIndex=function(O){return O?0:-1};
_.b.computeButtonTooltipPosition=function(O){return this.computeUsesCompactLockup(O)?"top":"bottom"};
_.b.computeHasText=function(O){return!(O==null||!O.contentText)};
_.b.onTap=function(O){var x,e;if(((x=this.data)==null?0:x.navigationEndpoint)&&((e=this.data)==null?void 0:e.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var l;((l=this.data)==null?0:l.navigationEndpoint)&&!_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Dy.Object.defineProperties(W$.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.voteCount)||_.KA("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,fXd))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,aXz))}}});
W$.prototype.onYtServiceRequestCompleted=W$.prototype.onYtServiceRequestCompleted;W$.prototype.onYtServiceRequestSent=W$.prototype.onYtServiceRequestSent;W$.prototype.onYtCommentPollRevert=W$.prototype.onYtCommentPollRevert;W$.prototype.onYtCommentboxDismiss=W$.prototype.onYtCommentboxDismiss;W$.prototype.onYtNavigate=W$.prototype.onYtNavigate;W$.prototype.isLoadingChanged=W$.prototype.isLoadingChanged;W$.prototype.dataChanged=W$.prototype.dataChanged;W$.prototype.contentTextChanged=W$.prototype.contentTextChanged;
_.B([_.V(_.xw),_.v("design:type",Object)],W$.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],W$.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],W$.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],W$.prototype,"editDialog",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],W$.prototype,"roundedContainer",void 0);_.B([_.R(),_.v("design:type",Object)],W$.prototype,"isLoading",void 0);_.B([_.R({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.v("design:type",String)],W$.prototype,"surface",void 0);
_.B([_.R({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.v("design:type",Boolean)],W$.prototype,"usesCompactLockup",void 0);_.B([_.R({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],W$.prototype,"showWithoutToolbar",void 0);_.B([_.R({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.v("design:type",String)],W$.prototype,"attachment",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],W$.prototype,"isRichGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],W$.prototype,"isRichGridRepost",void 0);_.B([_.R({reflectToAttribute:!0,value:_.t("use_better_post_dismissals")}),_.v("design:type",Boolean)],W$.prototype,"useBetterPostDismissals",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],W$.prototype,"reduceSidePaddings",void 0);
_.B([_.R({computed:"computeHasText(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],W$.prototype,"hasText",void 0);_.B([_.kX("#expander"),_.v("design:type",Object)],W$.prototype,"expander",void 0);_.B([_.kX("#action-buttons"),_.v("design:type",Object)],W$.prototype,"actionButtons",void 0);_.B([_.kX("#edit-dialog"),_.v("design:type",HTMLElement)],W$.prototype,"editDialogEl",void 0);
_.B([_.T1("data.contentText"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],W$.prototype,"contentTextChanged",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],W$.prototype,"dataChanged",null);_.B([_.T1("isLoading"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],W$.prototype,"isLoadingChanged",null);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],W$.prototype,"onYtNavigate",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],W$.prototype,"onYtCommentboxDismiss",null);_.B([_.bH("yt-comment-poll-revert"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],W$.prototype,"onYtCommentPollRevert",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],W$.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],W$.prototype,"onYtServiceRequestCompleted",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],W$.prototype,"voteCount",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],W$.prototype,"commentCount",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],W$.prototype,"hasPoll",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],W$.prototype,"hasUploadedVideo",null);_.B([_.H({is:"ytd-post-renderer",disableElementRegistration:!0})],W$);
_.n(W$,"ytd-post-renderer",function(){if(tkD!==void 0)return tkD;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return tkD=O},{mode:1});var eB2;var l82;var hX=function(){return _.a.apply(this,arguments)||this};
_.c(hX,_.a);hX.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],hX.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],hX.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hX.prototype,"data",void 0);
_.B([_.R({value:"$.items.children"}),_.v("design:type",String)],hX.prototype,"itemsPath",void 0);_.B([_.R({value:1}),_.v("design:type",Number)],hX.prototype,"initialCount",void 0);_.B([_.R({reflectToAttribute:!0,value:_.t("enable_community_page_on_desktop")}),_.v("design:type",Boolean)],hX.prototype,"useSmallerPostImageAttachments",void 0);_.B([_.R(),_.v("design:type",String)],hX.prototype,"surface",void 0);_.B([_.H({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],hX);
_.n(hX,"ytd-post-multi-image-renderer",function(){if(l82!==void 0)return l82;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return l82=O},{mode:_.gq("kevlar_poly_si_batch_j079")?1:2});var Ca$={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
zd=function(){var O=_.a.apply(this,arguments)||this;O.hasInlineCommentSection=!1;O.editDialog=null;O.isLoading=!1;O.shouldHideAuthor=!1;O.shouldShowVideoTime=!1;O.isInEngagementPanel=!1;O.hideBorder=!1;O.usesFullLockup=!1;O.shouldShowMenuInCompactView=!1;O.JSC$15352_spinnerEl=null;O.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return O};
_.c(zd,_.a);_.b=zd.prototype;_.b.configureRendererStamper=function(){return Ca$};
_.b.computeIsPollHeaderEnabled=function(O){return(O==null?void 0:O.pollMetadataIcon)!=null};
_.b.getPublishTimeStampString=function(O,x){x=new Date((Number(x)-60*((new Date).getTimezoneOffset()-(new Date(Number(x)*1E3)).getTimezoneOffset()))*1E3);x=(new H1(10)).format(x);if(O&&O.runs&&O.runs.length)for(var e=0;e<O.runs.length;e++)O.runs[e].text&&(O.runs[e].text=O.runs[e].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",x));return O};
_.b.created=function(){this.JSC$15352_spinnerEl=null};
_.b.contentTextChanged=function(){this.expander.reset()};
_.b.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var O;if((O=this.data)==null?0:O.actions){O=_.T(this.data.actions);for(var x=O.next();!x.done;x=O.next())this.openEditDialog(_.q(x.value,Q3D))}};
_.b.handleSignalActionOpenPostCommentDialogAction=function(){_.$U(this.hostElement).querySelector("#action-buttons").reply()};
_.b.updatePoll=function(O,x){x&&this.set("data.pollMetadataVoteCountText",x);this.hasInlineCommentSection&&(O=O>=0,x=_.$U(this.hostElement).querySelector("#action-buttons"),O?x.reply():x.hideReplyDialog())};
_.b.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15352_spinnerEl||(this.JSC$15352_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.$U(this.hostElement).appendChild(this.JSC$15352_spinnerEl));this.JSC$15352_spinnerEl&&(this.JSC$15352_spinnerEl.active=this.isLoading)};
_.b.onYtNavigate=function(O){var x=this.get("updateCommentDialogEndpoint",O.detail.endpoint);x&&(this.openEditDialog(x),O.stopPropagation())};
_.b.onYtCommentboxDismiss=function(){this.editDialog=null};
_.b.onYtCommentPollRevert=function(O,x){x&&this.updatePoll(x.selectedChoiceIndex,x.totalVotes)};
_.b.onYtServiceRequestSent=function(O,x){O.stopPropagation();O=_.q(x.endpoint,MgL);if(_.q(x.endpoint,DOk)||O&&!O.clientActions)this.isLoading=!0;if(x.actions)for(O=0;O<x.actions.length;O++){var e=x.actions[O],l=_.q(e,Ul);l&&(e=this.get("updateBackstagePollAction.selectedChoiceIndex",e),e===void 0&&(e=-1),this.updatePoll(e,l.totalVotes))}};
_.b.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.b.openEditDialog=function(O){O&&O.dialog&&(this.editDialog=O.dialog,O=this.editDialogElement.firstElementChild)&&(O.focus(),O.openDialog&&O.openDialog())};
_.b.computeIsBodyHidden=function(O,x){return!!O||x};
_.Dy.Object.defineProperties(zd.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var O=this.data,x=O.showPostAuthorBackgroundHighlight,e=O.postAuthorBadgeType,l=O.authorEndpoint;if(!x&&e!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&e!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var C,Q,L;O=_.KA(((C=O.authorText)==null?void 0:(Q=C.runs)==null?void 0:(L=Q[0])==null?void 0:L.text)||"");C=void 0;switch(e){case "POST_AUTHOR_BADGE_TYPE_ARTIST":C={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":C={iconType:x?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:O,authorEndpoint:l,authorCreator:x,icon:C}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var O,x;if((O=this.data)==null?0:(x=O.pollMetadataIcon)==null?0:x.iconType)return _.x0(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.voteCount)||_.KA("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,fXd))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,ULd))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,aXz))}}});
zd.prototype.onYtServiceRequestCompleted=zd.prototype.onYtServiceRequestCompleted;zd.prototype.onYtServiceRequestSent=zd.prototype.onYtServiceRequestSent;zd.prototype.onYtCommentPollRevert=zd.prototype.onYtCommentPollRevert;zd.prototype.onYtCommentboxDismiss=zd.prototype.onYtCommentboxDismiss;zd.prototype.onYtNavigate=zd.prototype.onYtNavigate;zd.prototype.isLoadingChanged=zd.prototype.isLoadingChanged;zd.prototype.dataChanged=zd.prototype.dataChanged;zd.prototype.contentTextChanged=zd.prototype.contentTextChanged;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],zd.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zd.prototype,"rendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zd.prototype,"rendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],zd.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.kX("#contentTextExpander"),_.v("design:type",Object)],zd.prototype,"expander",void 0);_.B([_.kX("#edit-dialog"),_.v("design:type",Element)],zd.prototype,"editDialogElement",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"hasInlineCommentSection",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"editDialog",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"isLoading",void 0);
_.B([_.R({computed:"computeIsPollHeaderEnabled(data)"}),_.v("design:type",Boolean)],zd.prototype,"isPollHeaderEnabled",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"shouldHideAuthor",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"shouldShowVideoTime",void 0);_.B([_.R(),_.v("design:type",Object)],zd.prototype,"isInEngagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],zd.prototype,"hideBorder",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],zd.prototype,"usesFullLockup",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],zd.prototype,"shouldShowMenuInCompactView",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zd.prototype,"authorCommentBadge",null);_.B([_.p("isInEngagementPanel"),_.v("design:type",Number),_.v("design:paramtypes",[])],zd.prototype,"postTextMaxLines",null);
_.B([_.p("data.icon.iconType"),_.v("design:type",Object),_.v("design:paramtypes",[])],zd.prototype,"pollIcon",null);_.B([_.T1("data.contentText"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zd.prototype,"contentTextChanged",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zd.prototype,"dataChanged",null);
_.B([_.T1("isLoading"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zd.prototype,"isLoadingChanged",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],zd.prototype,"onYtNavigate",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zd.prototype,"onYtCommentboxDismiss",null);
_.B([_.bH("yt-comment-poll-revert"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],zd.prototype,"onYtCommentPollRevert",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],zd.prototype,"onYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],zd.prototype,"onYtServiceRequestCompleted",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zd.prototype,"voteCount",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zd.prototype,"commentCount",null);
_.B([_.p("data.backstageAttachment"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],zd.prototype,"hasPoll",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],zd.prototype,"hasQuiz",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],zd.prototype,"hasUploadedVideo",null);_.B([_.H({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],zd);
_.n(zd,"ytd-backstage-post-renderer",function(){if(eB2!==void 0)return eB2;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return eB2=O},{mode:1});var Qr4;var rG=function(){var O=_.a.apply(this,arguments)||this;O.editDialog=null;O.showExpandButton=!1;O.isRichGrid=!1;O.usesFullLockup=!1;return O};
_.c(rG,_.a);_.b=rG.prototype;_.b.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"}}}};
_.b.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.b.computeShowExpandButton=function(O){return this.usesCompactLockup||O&&O.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.b.computeUsesCompactLockup=function(O){return!!O.condensedContent};
_.b.computeShowFullContentText=function(O){return!O};
_.b.onYtNavigate=function(O){O=this.get("updateCommentDialogEndpoint",O.detail.endpoint);this.openEditDialog(O)};
_.b.onYtCommentboxDismiss=function(){this.editDialog=null};
_.b.openEditDialog=function(O){O&&O.dialog&&(this.editDialog=O.dialog,O=this.repostEditDialogEl.firstElementChild)&&(O.focus(),O.openDialog&&O.openDialog())};
_.b.onTap=function(O){if(this.data){var x=null;this.usesCompactLockup&&!_.uk(_.n3(O)||[],this.hostElement,["YT-IMG-SHADOW"])?x=this.get("navigationEndpoint",this.data):O.target===this.moreButtonEl&&(x=this.get("navigationEndpoint",O.target.data));x&&_.wr(this.hostElement,"yt-navigate",{endpoint:x})}};
rG.prototype.onYtCommentboxDismiss=rG.prototype.onYtCommentboxDismiss;rG.prototype.onYtNavigate=rG.prototype.onYtNavigate;rG.prototype.dataChanged=rG.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],rG.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],rG.prototype,"editDialog",void 0);_.B([_.R({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],rG.prototype,"usesCompactLockup",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],rG.prototype,"showExpandButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],rG.prototype,"isRichGrid",void 0);
_.B([_.R({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.v("design:type",Boolean)],rG.prototype,"showFullContentText",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],rG.prototype,"usesFullLockup",void 0);_.B([_.kX("#more"),_.v("design:type",Object)],rG.prototype,"moreButtonEl",void 0);_.B([_.kX("#repost-content-text"),_.v("design:type",HTMLElement)],rG.prototype,"repostContentTextEl",void 0);
_.B([_.kX("#repost-edit-dialog"),_.v("design:type",HTMLElement)],rG.prototype,"repostEditDialogEl",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rG.prototype,"dataChanged",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],rG.prototype,"onYtNavigate",null);
_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rG.prototype,"onYtCommentboxDismiss",null);_.B([_.H({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],rG);
_.n(rG,"ytd-shared-post-renderer",function(){if(Qr4!==void 0)return Qr4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Qr4=O},{mode:1});var b8p;var TmN;var H$=function(){return _.a.apply(this,arguments)||this};
_.c(H$,_.a);H$.prototype.attached=function(){var O=this;this.networkStatusManager||(this.networkStatusManager=new _.eb,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){O.onlineHandler()}))};
H$.prototype.detached=function(){var O=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){O.onlineHandler()}),delete this.networkStatusManager)};
H$.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],H$.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],H$.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],H$);
_.n(H$,"ytd-reload-page-button-renderer",function(){if(TmN!==void 0)return TmN;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return TmN=O},{mode:1});var LmL={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"},Kg=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(Kg,_.a);_.b=Kg.prototype;_.b.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.b.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.b.computeHasBodyText=function(O){return!!O.bodyText};
_.b.computeButtons=function(O){var x=[];O.ctaButton&&x.push(O.ctaButton);O.secondaryButton&&x.push(O.secondaryButton);return x};
_.b.computeRendererStyle=function(O){return O.style?O.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():O.icon?"":"no-icon"};
_.b.getIconName=function(O,x){x=x===void 0?!1:x;if(O===void 0)return"";O=this.get("icon.iconType",O);var e;_.t("enable_hlp_client_icon_pick")?e=this.getThemedIcon(O,x):e=O;(x=LmL[e])||(x="yt-icons");return[x,e].join(":")};
_.b.getThemedIcon=function(O,x){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(O)?x?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(O)?x?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":O};
_.b.isThumbnail=function(O){return!!O.thumbnail};
_.b.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.b.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Kg.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Kg.prototype,"data",void 0);
_.B([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.v("design:type",String)],Kg.prototype,"rendererStyle",void 0);_.B([_.R({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.v("design:type",String)],Kg.prototype,"iconName",void 0);_.B([_.R({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Kg.prototype,"thumbnail",void 0);_.B([_.R({computed:"computeButtons(data)"}),_.v("design:type",Array)],Kg.prototype,"buttons",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Kg.prototype,"isDarkTheme",void 0);_.B([_.R({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Kg.prototype,"hasBodyText",void 0);_.B([_.H({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Kg);
_.n(Kg,"ytd-background-promo-renderer",function(){if(b8p!==void 0)return b8p;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return b8p=O},{mode:1});var kV4;var dG=function(){var O=_.a.apply(this,arguments)||this;O.collections=_.t("web_modern_collections_v2");return O};
_.c(dG,_.a);_.Dy.Object.defineProperties(dG.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C,Q;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(O=this.data)==null?void 0:(x=O.thumbnail)==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:(e=this.data)==null?void 0:(l=e.thumbnail)==null?void 0:l.vibrantColorPalette,darkColorPalette:(C=this.data)==null?void 0:(Q=C.thumbnail)==null?void 0:Q.darkColorPalette,experimentEnabled:this.collections}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],dG.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],dG.prototype,"collections",void 0);_.B([_.p("data","collections"),_.v("design:type",Object),_.v("design:paramtypes",[])],dG.prototype,"collectionStack",null);_.B([_.H({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],dG);
_.n(dG,"ytd-compact-station-renderer",function(){if(kV4!==void 0)return kV4;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return kV4=O},{mode:1});var AFd;var ng=function(){var O=_.a.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.c(ng,_.a);ng.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]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ng.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ng.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ng.prototype,"isRichGrid",void 0);_.B([_.H({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ng);
_.n(ng,"ytd-grid-channel-renderer",function(){if(AFd!==void 0)return AFd;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return AFd=O},{mode:1});var Mcz;var u6=function(){return _.a.apply(this,arguments)||this};
_.c(u6,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],u6.prototype,"data",void 0);_.B([_.H({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],u6);
_.n(u6,"ytd-grid-movie-playlist-renderer",function(){if(Mcz!==void 0)return Mcz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Mcz=O},{mode:1});var DEF;var Y6=function(){var O=_.a.apply(this,arguments)||this;O.downloadProgress=0;O.transferState="TRANSFER_STATE_UNKNOWN";O.modernButtons=_.t("web_modern_buttons");O.useModernCollectionsV2=_.t("web_modern_collections_v2");return O};
_.c(Y6,_.a);Y6.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Y6.prototype.configureRendererStamper=function(){return{"data.menu":zx}};
Y6.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Y6.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.t("woffle_playlist_renderer_killswitch")){var O,x=T8r(this.entityInfo,this.transferState,this.downloadProgress,(O=this.data)==null?void 0:O.playlistId,this.isOnline);O=x.viewPlaylistText;var e=x.badges;x=x.thumbnailOverlays;this.isDownloads=!!O||!!e;this.set("data.viewPlaylistText",O);e&&e.length>0&&this.set("data.badges",e);x&&x.length>0&&this.set("data.thumbnailOverlays",
x)}};
_.Dy.Object.defineProperties(Y6.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 O;return!((O=this.data)==null?0:O.menu)}}});
Y6.prototype.transferStateChanged=Y6.prototype.transferStateChanged;Y6.prototype.dataChanged=Y6.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],Y6.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Y6.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R({selector:_.u_V,selectorArgs:["data.playlistId"]}),_.v("design:type",Object)],Y6.prototype,"downloadProgress",void 0);_.B([_.R({selector:_.pA,selectorArgs:["data.playlistId"]}),_.v("design:type",Object)],Y6.prototype,"transferState",void 0);_.B([_.R({selector:naN,selectorArgs:["data.playlistId"]}),_.v("design:type",Object)],Y6.prototype,"entityInfo",void 0);_.B([_.R({selector:_.Ix}),_.v("design:type",Boolean)],Y6.prototype,"isOnline",void 0);
_.B([_.R(),_.v("design:type",Object)],Y6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Y6.prototype,"downloadRenderData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Y6.prototype,"modernButtons",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Y6.prototype,"isDownloads",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Y6.prototype,"useModernCollectionsV2",void 0);
_.B([_.p("transferState"),_.R({reflectToAttribute:!0}),_.v("design:type",String),_.v("design:paramtypes",[])],Y6.prototype,"downloadState",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Y6.prototype,"menuHidden",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Y6.prototype,"dataChanged",null);
_.B([_.G1("transferState","downloadProgress","isOnline"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Y6.prototype,"transferStateChanged",null);_.B([_.H({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Y6);
_.n(Y6,"ytd-grid-playlist-renderer",function(){if(DEF!==void 0)return DEF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return DEF=O},{mode:1});var GVk;var B$=function(){var O=_.a.apply(this,arguments)||this;O.collections=_.t("web_modern_collections_v2");return O};
_.c(B$,_.a);B$.prototype.configureRendererStamper=function(){return{"data.menu":zx,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Dy.Object.defineProperties(B$.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C,Q;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(O=this.data)==null?void 0:(x=O.thumbnail)==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:(e=this.data)==null?void 0:(l=e.thumbnail)==null?void 0:l.vibrantColorPalette,darkColorPalette:(C=this.data)==null?void 0:(Q=C.thumbnail)==null?void 0:Q.darkColorPalette,experimentEnabled:this.collections}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],B$.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],B$.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],B$.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B$.prototype,"collections",void 0);_.B([_.p("data","collections"),_.v("design:type",Object),_.v("design:paramtypes",[])],B$.prototype,"collectionStack",null);_.B([_.H({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],B$);
_.n(B$,"ytd-grid-radio-renderer",function(){if(GVk!==void 0)return GVk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GVk=O},{mode:1});var Fm3;var v$=function(){var O=_.a.apply(this,arguments)||this;O.useModernCollectionsV2=_.t("web_modern_collections_v2");return O};
_.c(v$,_.a);v$.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
v$.prototype.computeNavigationEndpoint=function(O){return hmL(O==null?void 0:O.navigationEndpoint)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],v$.prototype,"ytdLockupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],v$.prototype,"data",void 0);_.B([_.R({computed:"computeNavigationEndpoint(data)"}),_.v("design:type",Object)],v$.prototype,"computedNavigationEndpoint",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],v$.prototype,"useModernCollectionsV2",void 0);_.B([_.H({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],v$);
_.n(v$,"ytd-grid-show-renderer",function(){if(Fm3!==void 0)return Fm3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Fm3=O},{mode:1});var Xa3;_.fg=function(O){this.playerClient=O};
_.olT=function(O,x,e){e=e===void 0?{}:e;return O.playerClient.setOption("ad",x,e)};
_.fg.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.fg.prototype.executeCommand=function(O,x){this.getOptions().includes("executeCommand")?_.olT(this,"executeCommand",{command:O,layoutId:x}):_.m8("Calling executeCommand when adModule is not loaded")};var JX=function(){return _.a.apply(this,arguments)||this};
_.c(JX,_.a);JX.prototype.getLayoutId=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
JX.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var O=_.f7(),x=this.getLayoutId(),e=this.data.clickthroughEndpoint;O&&x&&_.t("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?O.getPlayerPromise().then(function(l){(new _.fg(l)).executeCommand(e,x)}):_.wr(this.hostElement,"yt-navigate",{endpoint:e})}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JX.prototype,"data",void 0);_.B([_.H({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],JX);
_.n(JX,"ytd-shopping-companion-item-renderer",function(){if(Xa3!==void 0)return Xa3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Xa3=O},{mode:1});var yFd;var wG=function(){var O=_.a.apply(this,arguments)||this;O.isExpandableContent=!1;return O};
_.c(wG,_.a);_.Dy.Object.defineProperties(wG.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?void 0:O.price)||((x=this.data)==null?void 0:(e=x.dealsData)==null?void 0:e.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var O,x;if((O=this.data)!=null&&O.dealsData&&((x=this.data)==null||!x.priceReplacementText)){O=this.data.dealsData;var e,l,C;return((e=O.salesData)==null?void 0:e.originalPrice)||((l=O.priceDropData)==null?void 0:l.referencePrice)||((C=O.promotionData)==null?void 0:C.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var O,x;return(O=this.data)==null?void 0:(x=O.dealsData)==null?void 0:x.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],wG.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],wG.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],wG.prototype,"isExpandableContent",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"showCta",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"ctaText",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"hasPriceTopPosition",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"hasPriceBottomPosition",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"useNewStyle",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"showPriceReplacementText",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"priceValue",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"showDeal",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"showAffiliateDisclaimer",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"useSaleStyle",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"useFromBrandCtaStyle",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"useFromVendorCtaStyle",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wG.prototype,"useShoppingCollectionCtaStyle",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],wG);
_.n(wG,"ytd-vertical-product-card-renderer",function(){if(yFd!==void 0)return yFd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return yFd=O},{mode:1});var Z8D;var SV=function(){return _.a.apply(this,arguments)||this};
_.c(SV,_.a);SV.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],SV.prototype,"ytdLockupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],SV.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],SV);
_.n(SV,"ytd-grid-movie-renderer",function(){if(Z8D!==void 0)return Z8D;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Z8D=O},{mode:1});var ElJ;var jV=function(){var O=_.a.apply(this,arguments)||this;O.roundedFix=_.t("web_enable_merch_item_rounding_fix");O.itemStyle="small-item";return O};
_.c(jV,_.a);jV.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var O,x,e,l,C=(x=_.q((O=this.data)==null?void 0:O.buttonCommand,_.DC4))==null?void 0:(e=x.item)==null?void 0:(l=e.notificationTextRenderer)==null?void 0:l.successResponseText;C&&_.GPs(this.hostElement,C)}};
_.Dy.Object.defineProperties(jV.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.isProductPlaceholder)!==void 0&&((x=this.data)==null?void 0:x.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],jV.prototype,"roundedFix",void 0);_.B([_.R(),_.v("design:type",Object)],jV.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],jV.prototype,"itemStyle",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"hasPrice",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"hasPriceReplacementText",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"hasAdditionalFeesText",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"hasAffiliateDisclaimer",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"isProductPlaceholder",null);
_.B([_.R(),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"hideOpenInNewIcon",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jV.prototype,"ariaLabel",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],jV);
_.n(jV,"ytd-merch-shelf-item-renderer",function(){if(ElJ!==void 0)return ElJ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ElJ=O},{mode:1});var tcJ=_.K(function(O){return _.D("button-card-view-model",{el:_.Y0(_.P8(function(){return O.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return O.data().title},
role:"button"},_.D(_.ct,{model:{}}),_.D("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.D("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.D(_.F,{cond:function(){return O.data().image},
then:function(x){return _.D(_.n_,{data:x,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.D("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return O.data().title})))},"$b");_.t("web_button_view_model_wcw_registration_killswitch")||_.wP(tcJ,"button-card-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){O=_.YX(O,{className:void 0});var x=O.data;O=O.className;var e=_.aw(function(){return x().onTapCommand},void 0,"SXkP9e");
return _.D("ytd-shopping-item-card",{class:_.xz("ytdShoppingItemCardHost",O)},_.D(_.Pt,{command:e,className:"ytdShoppingItemCardHostLink"},_.D("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.D(_.MR,{data:function(){return x().thumbnailViewModel}},{thumbnailViewModel:function(l){return _.D(_.o4,{data:l.data,
aspectRatio:3})}})),_.D("div",null,_.D("p",{class:"ytdShoppingItemCardHostItemTitle"},_.D(_.TT,{text:function(){return x().itemTitle}})),_.D("p",{class:"ytdShoppingItemCardHostPrice"},_.D(_.TT,{text:function(){return x().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.Ld,
className:_.Ld}});var qkN={isAdsVideo:!0},PaF={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},cFd={showPlayerControls:!1,videoPreviewDurationMs:15E3},I8R={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var W8=null,F9w={};var ywL="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(" "),NP={},Zmr=(NP.FEwhat_to_watch="home",NP.FEhashtag="hashtag",NP.FEtrending="trending",NP.FEhistory="history",NP.SPunlimited="premium",NP.FEmemberships_and_purchases="paid_memberships",NP.SPredeem_code="redeem",NP.SPverify_location="locate",NP.SPminor_moment="minor_moment",
NP.FEmini_app_container="mini_app",NP.FEnews_destination="news",NP.SPopen_in_app="open_in_app",NP.FEexplore="explore",NP.FEsubscriptions="subscriptions",NP.FEsfv_audio_pivot="sfv_audio_pivot",NP.FEplaylist_aggregation="playlist_aggregation",NP);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");_.$7("init");var VcD=function(){},a8d=_.K(function(O){var x=O.data;
var e=O.inlineMetadata;var l=O.aspectRatio;var C=O.scrimStyle;var Q=O.className;var L=O.useDefaultStyle;var k=O.titleStyle;var M=new VcD,G=_.t("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.aw(function(){return(L==null?0:L())?G==="SHORTS_LOCKUP_STYLE_SLIM":x().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),y=_.aw(function(){return _.vL(e)||X()||!1},void 0,"neizSe"),Z=function(){return(C==null?void 0:C())!==void 0?C==null?void 0:C():1},
E=_.aw(function(){return x().belowThumbnailMetadata||!y()},void 0,"HdmMMe");
O=_.F6({visibilityCallback:function(Xr){var Fr=x().onFirstVisible;Xr&&Fr&&_.me(Fr)},
showOption:{calledOnce:!0,state:"visible"}});var P=_.Y0(),U={},W=_.xz(function(){return X(),"shortsLockupViewModelHostThumbnailContainer"},(U.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.vL(l)===1},U.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.vL(l)===2},U.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.t("web_shorts_2_by_3_lockups_study")&&!_.t("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
U)),z=_.aw(function(){if(_.vL(l)===1)return 1;
_.vL(l);return 2},void 0,"ZRUa3c"),r,f=function(){if(M){var Xr;
(Xr=r)==null||KM(Xr);var Fr;if(M.hostElement&&((Fr=M.data)==null?0:Fr.inlinePlayerData)){Xr=Object.assign({},I8R);var mL,Zn;((mL=M.data)==null?void 0:(Zn=mL.inlinePlayerData)==null?void 0:Zn.maxPlaybackLengthSec)!==void 0&&(Xr.videoPreviewDurationMs=M.data.inlinePlayerData.maxPlaybackLengthSec*1E3);r=It({mediaRenderer:M,lockupElement:M.hostElement,thumbnailElement:P.value,videoPreviewOpts:Xr})}}};
_.uo(function(){M&&(M.data=x(),f())},"c4oj4d");
var u=_.aw(function(){return x().thumbnail},void 0,"CJHyHc");
U=_.aw(function(){return x().badge},void 0,"g31PIe");
var Y=_.aw(function(){return x().onTap},void 0,"CJCUBc"),J={},O8={};
return _.D("ytm-shorts-lockup-view-model",{el:_.Y0(function(Xr){M&&(M.hostElement=Xr)},f,O),
class:_.xz("shortsLockupViewModelHost",Q)},_.D(_.Xm,null,_.D(_.Pt,{command:Y,className:_.xz("shortsLockupViewModelHostEndpoint",(J.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!E()},J),"reel-item-endpoint",""),
ariaHidden:function(){return!y()},
tabIndex:function(){return y()?0:-1}},_.D("div",{el:P,
class:_.xz("shortsLockupViewModelHostThumbnailParentContainer",(O8.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!X()},O8))},_.D(_.F,{cond:u,
then:function(){return _.D("div",{class:W},_.D(_.n_,{data:function(){var Xr;return(Xr=u==null?void 0:u())!=null?Xr:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.D(_.MR,{data:function(){return x().thumbnailViewModel}},{thumbnailViewModel:function(Xr){return _.D(_.o4,{data:Xr.data,
aspectRatio:function(){return z()},
disableRounding:function(){return X()}})}}),null),_.D(_.F,{cond:y,
then:function(){return _.D(paL,{data:x,scrimStyle:Z,useDefaultStyle:L,titleStyle:k})}}),_.D(_.MR,{data:U},{badgeViewModel:function(Xr){return _.D(_.tX,{data:Xr.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.D(_.F,{cond:function(){return y()&&x().menuOnTap},
then:function(){return _.D(RBp,{data:x,inlineMetadata:!0})}}),_.D(_.F,{cond:E,
then:function(){return _.D(UET,{data:x,useDefaultStyle:L,inlineMetadata:y})}})))},"cc"),paL=_.K(function(O){var x=O.data;
var e=O.scrimStyle;var l=O.useDefaultStyle;var C=O.titleStyle;var Q=_.t("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",L=l&&_.t("web_hide_primary_text_for_pivot_panel"),k=_.aw(function(){return(l==null?0:l())?Q==="SHORTS_LOCKUP_STYLE_SLIM":x().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
O={};O=_.xz("shortsLockupViewModelHostInlineMetadata",(O.shortsLockupViewModelHostMetadataRounded=function(){return!k()},O.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(e==null?void 0:e())===3&&!_.t("enable_shorts_lockup_new_scrim")},O.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(e==null?void 0:e())===3&&_.t("enable_shorts_lockup_new_scrim")},O.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(e==null?void 0:e())===2||(e==null?void 0:
e())===4},O.shortsLockupViewModelHostShowOverPlayer=function(){return!0},O),"image-overlay-text");
var M={};return _.D("div",{class:O},_.D("h3",{class:_.xz("shortsLockupViewModelHostMetadataTitle",(M.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(e==null?void 0:e())===4},M.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return x().belowThumbnailMetadata},M.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(C==null?void 0:C())===1},M.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(C==null?void 0:C())===2},M)),
"aria-label":function(){return x().accessibilityText}},_.D(_.F,{cond:function(){var G;
return!((G=x().overlayMetadata)==null||!G.primaryText)&&!L},
then:function(){return _.D(_.TT,{text:function(){var G;return(G=x().overlayMetadata)==null?void 0:G.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.D(_.F,{cond:function(){var G;
return(G=x().overlayMetadata)==null?void 0:G.secondaryText},
then:function(){return _.D(mET,{data:x,scrimStyle:e,className:void 0})}}))},"dc"),UET=_.K(function(O){var x=O.data;
var e=O.useDefaultStyle;var l=O.inlineMetadata;var C=_.t("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Q=_.aw(function(){return(e==null?0:e())?C==="SHORTS_LOCKUP_STYLE_SLIM":x().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),L=_.Y0(),k;
O=_.lk(function(E){if(_.E9(_.Zc(E),L.value,["AVATAR-VIEW-MODEL"]))return!1;var P;(P=k)==null||P.click();return!1});
var M=_.aw(function(){return x().belowThumbnailMetadata||x().overlayMetadata},void 0,"yJVuMb"),G=function(){return x().menuOnTap&&!l()},X=function(){var E;
return(E=M())==null?void 0:E.avatar},y={},Z={};
return _.D("div",{class:_.xz(function(){return Q()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(y.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!X()},y.shortsLockupViewModelHostOutsideMetadataHasMenu=G,y)),
"on:click":O,el:L,role:"presentation"},_.D(_.MR,{data:X},{avatarViewModel:function(E){return _.D("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.D(_.jQ,{data:E.data}))}}),_.D("div",null,_.D("h3",{class:_.xz("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Z.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var E,P;
return!((E=M())==null?0:(P=E.primaryText)==null?0:P.content)},Z.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=l,Z)),
role:"presentation"},_.D(_.Pt,{ref:function(E){return void(k=E)},
command:function(){return x().onTap},
className:_.xz("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var E,P;return(E=M())==null?void 0:(P=E.primaryText)==null?void 0:P.content},
"aria-label":function(){return x().accessibilityText}},_.D(_.F,{cond:function(){var E;
return(E=M())==null?void 0:E.primaryText},
then:function(E){return _.D(_.TT,{text:E,noEndpoints:!0,noStyleRuns:!0})}}))),_.D(_.F,{cond:function(){var E;
return(E=M())==null?void 0:E.secondaryText},
then:function(E){return _.D("div",{class:_.xz("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.D(_.TT,{text:E,noStyleRuns:!0}))}})),_.D(_.F,{cond:G,
then:function(){return _.D(RBp,{data:x,inlineMetadata:!1})}}))},"ec"),mET=_.K(function(O){var x=O.data;
var e=O.scrimStyle;O=O.className;var l={};return _.D("div",{class:_.xz((l.shortsLockupViewModelHostMetadataSubhead=function(){return(e==null?void 0:e())!==4},l.shortsLockupViewModelHostMetadataSubheadNew=_.t("enable_shorts_lockup_new_scrim"),l.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(e==null?void 0:e())===4},l),O),
"aria-hidden":"true"},_.D(_.TT,{text:function(){var C;return(C=x().overlayMetadata)==null?void 0:C.secondaryText},
noStyleRuns:!0}))},"fc"),RBp=_.K(function(O){var x=O.data;
var e=O.inlineMetadata;O={};O=_.xz((O.shortsLockupViewModelHostInlineMetadataMenu=function(){return e()},O.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!e()},O.shortsLockupViewModelHostShowOverPlayer=function(){return!0},O),"image-overlay-text");
return _.D("div",{class:O},_.D(_.pd,{data:function(){return{style:e()?"overlay":"mono",accessibilityLabel:x().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(l){l.preventDefault();l.stopPropagation();var C=_.Ux({elementsCommand:x().menuOnTap,forceNewState:!0});if(C==null?0:C.onclick)C.onclick(l)}}},
iconName:"MORE_VERT"}))},"gc");var srd=_.K(function(O){var x=O.data;var e=O.inlineMetadata;var l=O.aspectRatio;var C=O.scrimStyle;var Q=O.className;var L=O.useDefaultStyle;O=_.aw(function(){var k=x().entityId;return k?k.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.D("ytm-shorts-lockup-view-model-v2",{class:_.xz("shortsLockupViewModelHost",Q)},_.D(_.I4,{contentId:O,aspectRatio:function(){return(l==null?void 0:l())===1?1:(l==null?void 0:l())===2?2:4}},function(){return _.D(a8d,{data:x,
inlineMetadata:e,aspectRatio:l,scrimStyle:C,className:Q,useDefaultStyle:L})}))},"hc");_.wP(srd,"ytm-shorts-lockup-view-model-v2",{props:{data:_.vs,inlineMetadata:_.vs,aspectRatio:_.vs,scrimStyle:_.vs,className:_.vs,useDefaultStyle:_.vs,titleStyle:_.vs}});var Wm3=16/9*210,gG=function(){var O=_.a.apply(this,arguments)||this;O.isExpandableContent=!1;O.hideShelfHeader=!1;O.engagementPanel=!1;O.buttonClasses=["arrow"];O.isSearch=!1;O.disableScrollEventListener=!1;O.containsLockup=!1;O.overrideArrowPositionForProductCard=!1;O.overrideArrowPositionForShoppingItemCard=!1;O.overrideArrowPositionForReelItems=!1;O.overrideArrowPositionForGridMovie=!1;O.overrideArrowPositionToCenter=!1;O.isSearchPostShelf=!1;O.overrideArrowPositionForMixedShelf=!1;O.overrideArrowPositionForMixedShelfShortsOnly=
!1;O.hasBigThumbsReelItems=!1;O.shouldUseMixedListHeight=!1;O.shouldUseShortsListHeight=!1;O.gridVideoWidth=0;O.isSearchVodShelf=!1;O.disableWheelScroll=!1;O.sizing="COMPACT";O.shortsLockupAspectRatio=0;return O};
_.c(gG,_.a);_.b=gG.prototype;
_.b.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]]"}}}}};
_.b.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.t("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.b.computeInitialCountNumber=function(O){if(!O)return 6;var x=O.items.some(function(Q){return!!Q.topicRecommendationsChipRenderer}),e=O.items.some(function(Q){return!!Q.displayAdRenderer}),l=this.computeShouldListItemsHaveEqualHeight(O),C=O.items.some(function(Q){return!!Q.gridPlaylistRenderer});
O=O.items.some(function(Q){return!!Q.shoppingItemCardViewModel});
return x?9:e?8:C||l?10:O?7:6};
_.b.computeContainsPost=function(O){return!!O&&!!O.items&&O.items.some(function(x){return!!x.postRenderer})};
_.b.computeContainsLockup=function(){if(_.t("web_horizontal_list_lockup_arrow_killswitch"))return!1;var O,x;return(O=this.data)==null?void 0:(x=O.items)==null?void 0:x.some(function(e){return!!e.lockupViewModel})};
_.b.maybeUpdateLockupAspectRatio=function(){var O,x;if(this.computeContainsLockup()&&((O=this.data)==null?0:(x=O.items)==null?0:x.length)){var e;O=dfW((e=this.data.items[0].lockupViewModel)==null?void 0:e.contentType,this.data.force16By9ThumbnailAspectRatio);e=fjr(O);e=this.computeLockupWidth()/e;_.lH(this.hostElement,{"--yt-horizontal-list-content-height":e+"px"})}};
_.b.computeOverrideArrowPositionForProductCard=function(O){if(this.isExpandableContent)return!1;var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){return!!e.verticalProductCardRenderer}))};
_.b.computeOverrideArrowPositionForShoppingItemCard=function(O){var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){return!!e.shoppingItemCardViewModel}))};
_.b.computeOverrideArrowPositionForReelItemRenderer=function(O){return this.containsReelItemRenderer(O)};
_.b.computeHasBigThumbsReelItems=function(O,x){return O&&this.containsReelItemRenderer(x)};
_.b.computeShouldListItemsHaveEqualHeight=function(O){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(O==null?void 0:O.itemSizeConstraint)};
_.b.computeShouldListItemsHaveShortsHeight=function(O){return this.computeShouldListItemsHaveEqualHeight(O)&&!this.containsGridVideoRenderer(O)};
_.b.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.b.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.b.containsReelItemRenderer=function(O){var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){return!(!e.reelItemRenderer&&!e.shortsLockupViewModel)}))};
_.b.containsGridVideoRenderer=function(O){var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){return!!e.gridVideoRenderer||!!e.lockupViewModel}))};
_.b.computeContainsGridMovieRenderer=function(O){var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){return!!e.gridMovieRenderer}))};
_.b.computeOverrideArrowPositionToCenter=function(O){return this.computeIsSearchPostShelf(O)};
_.b.computeIsSearchPostShelf=function(O){var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){var l,C;return((C=(l=e.postRenderer)==null?void 0:l.surface)!=null?C:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.b.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(O){var x;return!!(O==null?0:(x=O.items)==null?0:x.some(function(e){var l,C,Q;return((Q=(l=e.backgroundPromoRenderer)==null?void 0:(C=l.style)==null?void 0:C.value)!=null?Q:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.b.computeIsSearchVodShelf=function(O,x){return O&&this.containsGridVideoRenderer(x)};
_.b.computeDisableWheelScroll=function(O,x){return this.computeIsSearchVodShelf(O,x)};
_.b.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.b.computeShortsLockupAspectRatio=function(){return 1};
_.b.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.lH(this.hostElement,{"--ytd-reel-item-thumbnail-height":Wm3+"px"})};
gG.prototype.dataChanged=gG.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],gG.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gG.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],gG.prototype,"isExpandableContent",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"hideShelfHeader",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"engagementPanel",void 0);_.B([_.R(),_.v("design:type",Array)],gG.prototype,"buttonClasses",void 0);_.B([_.R(),_.v("design:type",Object)],gG.prototype,"isSearch",void 0);
_.B([_.R(),_.v("design:type",Object)],gG.prototype,"disableScrollEventListener",void 0);_.B([_.R({computed:"computeInitialCountNumber(data)"}),_.v("design:type",Number)],gG.prototype,"initialCount",void 0);_.B([_.R({computed:"computeContainsPost(data)"}),_.v("design:type",Boolean)],gG.prototype,"supportComponentResize",void 0);_.B([_.R({computed:"computeContainsPost(data)"}),_.v("design:type",Boolean)],gG.prototype,"containsPost",void 0);
_.B([_.R({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"containsLockup",void 0);_.B([_.R({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],gG.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.B([_.R({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionForProductCard",void 0);_.B([_.R({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.B([_.R({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionForReelItems",void 0);_.B([_.R({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionForGridMovie",void 0);
_.B([_.R({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionToCenter",void 0);_.B([_.R({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"isSearchPostShelf",void 0);_.B([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.B([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.B([_.R({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"hasBigThumbsReelItems",void 0);
_.B([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"shouldUseMixedListHeight",void 0);_.B([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"shouldUseShortsListHeight",void 0);_.B([_.R({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"gridVideoWidth",void 0);
_.B([_.R({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"isSearchVodShelf",void 0);_.B([_.R({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.v("design:type",Object)],gG.prototype,"disableWheelScroll",void 0);_.B([_.R({computed:"computeSizing(isSearch)"}),_.v("design:type",Object)],gG.prototype,"sizing",void 0);
_.B([_.R({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.v("design:type",Object)],gG.prototype,"shortsLockupAspectRatio",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gG.prototype,"dataChanged",null);
_.n(gG,"yt-horizontal-list-renderer",function(){if(hSD===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);hSD=O}O=hSD;return O},{mode:1});var hB3=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
hB3.prototype.subscribe=function(O,x){var e=this.subscriptions.get(O);if(!e)return function(){};
e.add(x);return function(){e.delete(x)}};
hB3.prototype.unsubscribe=function(O,x){(O=this.subscriptions.get(O))&&O.delete(x)};
hB3.prototype.publish=function(O,x){x=x===void 0?{}:x;(O=this.subscriptions.get(O))&&O.forEach(function(e){e(x)})};var zB2;var rF2=[10,12,14,16,18,20,24,28,32,36],H8N=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],$6=function(){var O=_.a.apply(this,arguments)||this;O.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";O.hideOverflow=!1;O.useRoboto=!1;O.fontClass="";O.overflown=!1;O.actionMap={"yt-window-resized":"resize"};return O};
_.c($6,_.a);_.b=$6.prototype;
_.b.attached=function(){var O=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();_.A_(this,function(){O.resize()});
if(!_.j1){var x,e,l;(x=document)==null||(e=x.fonts)==null||(l=e.ready)==null||l.then(function(){O.resize()})}};
_.b.dataChanged=function(){this.resize()};
_.b.guideIsExpandedChanged=function(){this.resize()};
_.b.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 O=this.getMaxNumLines(),x=this.getMinFont(),e=this.getMaxFont(),l=this.useRoboto?rF2:H8N;for(l=l.filter(function(Q){return Q<=e&&Q>=x});l.length>1;){var C=Math.floor(l.length/2);
this.updateFontSize(l[C]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=O)l=l.slice(C,l.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>O)l=l.slice(0,C);else break}this.updateFontSize(l[l.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(O)}};
_.b.handleOverflow=function(O){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>O&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",O.toString()))};
_.b.updateFontSize=function(O){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+O;this.textNode.classList.add(this.fontClass)};
_.b.getMaxFont=function(){var O=this.useRoboto?rF2:H8N;O=O[O.length-1];return this.maxFontSize&&this.maxFontSize<=O?this.maxFontSize:O};
_.b.getMinFont=function(){var O=(this.useRoboto?rF2:H8N)[0];return this.minFontSize&&this.minFontSize>=O?this.minFontSize:O};
_.b.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.b.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.b.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.db(this.text).split("\n").length-1:Infinity};
_.b.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Qh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
$6.prototype.guideIsExpandedChanged=$6.prototype.guideIsExpandedChanged;$6.prototype.dataChanged=$6.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],$6.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$6.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$6.prototype,"text",void 0);
_.B([_.R(),_.v("design:type",String)],$6.prototype,"fontFamily",void 0);_.B([_.R(),_.v("design:type",Number)],$6.prototype,"maxWidth",void 0);_.B([_.R(),_.v("design:type",Number)],$6.prototype,"maxHeight",void 0);_.B([_.R(),_.v("design:type",Number)],$6.prototype,"maxFontSize",void 0);_.B([_.R(),_.v("design:type",Number)],$6.prototype,"minFontSize",void 0);_.B([_.R(),_.v("design:type",Number)],$6.prototype,"maxLines",void 0);_.B([_.R(),_.v("design:type",Object)],$6.prototype,"hideOverflow",void 0);
_.B([_.R({selector:_.RVL}),_.v("design:type",Boolean)],$6.prototype,"guideIsExpanded",void 0);_.B([_.kX("#container"),_.v("design:type",HTMLElement)],$6.prototype,"containerNode",void 0);_.B([_.kX("#text"),_.v("design:type",HTMLElement)],$6.prototype,"textNode",void 0);_.B([_.G1("text"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$6.prototype,"dataChanged",null);
_.B([_.G1("guideIsExpanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$6.prototype,"guideIsExpandedChanged",null);_.B([_.H({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],$6);
_.n($6,"yt-dynamic-sizing-formatted-string",function(){if(zB2!==void 0)return zB2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return zB2=O},{mode:1});var KmD;_.dEd=function(O){_.ew.call(this,O)};
_.c(_.dEd,_.ew);var nlD=function(O){_.ew.call(this,O)};
_.c(nlD,_.dEd);var i6=function(){return _.a.apply(this,arguments)||this};
_.c(i6,_.a);i6.prototype.onTapSuspendedChannel=function(){var O;if((O=this.data)!=null&&O.serviceEndpoint){var x,e;(O=(e=_.q((x=this.data)==null?void 0:x.serviceEndpoint,_.$b))==null?void 0:e.url)?_.zu(O,void 0,void 0,window.top):(x=new nlD("Did not handle suspended account tap. No appealUrl."),_.BH(x))}else x=new nlD("Did not handle suspended account tap. No serviceEndpoint."),_.BH(x)};
i6.prototype.onTap=function(){var O=this,x=_.k0(),e,l=(e=_.L_(x,{veType:7116}))!=null?e:void 0;_.s1(x,{visualElement:l});_.WR();this.saveRoleText();var C;if((C=this.data)==null?0:C.youtubeSuspended)this.onTapSuspendedChannel();else{var Q=!1,L,k;(x=(k=_.q((L=this.data)==null?void 0:L.serviceEndpoint,_.PZ4))==null?void 0:k.supportedTokens)&&x.forEach(function(M){if(M.accountSigninToken)if(Q=!0,O.onAccountItemTap)O.onAccountItemTap(M.accountSigninToken.signinUrl);else _.zu(M.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!Q){if(L=this.get("serviceEndpoint",this.data))Q=!0,this.ytComponentBehavior.resolveCommand(L);Q||_.vH(new nlD("Did not handle account switch tap. No token."))}}};
i6.prototype.saveRoleText=function(){if(this.data){var O=this.data,x=O.channelDelegationRole;if(x){var e,l=(e=_.q(O==null?void 0:O.serviceEndpoint,_.PZ4))==null?void 0:e.supportedTokens;if(!l){var C,Q,L,k;l=(C=_.q(O==null?void 0:O.serviceEndpoint,_.aq))==null?void 0:(Q=C.popup)==null?void 0:(L=Q.confirmDialogRenderer)==null?void 0:(k=L.confirmButton)==null?void 0:k.buttonRenderer;var M;l=(M=_.q(l==null?void 0:l.command,_.ih))==null?void 0:M.commands;if(!l)return;var G;l=(G=_.q(l[1],_.PZ4))==null?
void 0:G.supportedTokens}if(l){M=void 0;G=_.T(l);for(l=G.next();!l.done;l=G.next())if(l=l.value,l.datasyncIdToken){M=l.datasyncIdToken.datasyncIdToken;break}if(M){var X;a:{if(_.CEs()&&(G=_.vmL(M+"::pom"))){G=new nL(G);break a}G=void 0}(X=G)==null||X.set("role_text",x);if((yH7?yH7:window.location).href.indexOf("studio")!==-1&&(X=Qb8())){G=X.src?(new URL(X.src)).origin:"*";var y;(y=X.contentWindow)==null||y.postMessage({action:"save_pom_role",datasyncId:M,roleText:x},G)}}}}}};
_.Dy.Object.defineProperties(i6.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.data)==null?void 0:(x=O.accountPhoto)==null?void 0:x.thumbnails;return e&&e.length>0&&(e[0].height===36||e[0].height===48)?e[0].height:40}}});
i6.prototype.onTap=i6.prototype.onTap;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],i6.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],i6.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Function)],i6.prototype,"onAccountItemTap",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],i6.prototype,"enableRingForActiveAccount",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],i6.prototype,"thumbnailSize",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],i6.prototype,"onTap",null);_.B([_.H({is:"ytd-account-item-renderer",disableElementRegistration:!0})],i6);
_.n(i6,"ytd-account-item-renderer",function(){if(KmD!==void 0)return KmD;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return KmD=O},{mode:1});var u02;var Oj=function(){return _.a.apply(this,arguments)||this};
_.c(Oj,_.a);Oj.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.GG().resolve(_.Xc).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Oj.prototype,"data",void 0);_.B([_.H({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Oj);
_.n(Oj,"ytd-identity-chip-renderer",function(){if(u02!==void 0)return u02;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return u02=O},{mode:1});var Yk3;var BmR;var vlN;var f8z;var xv=function(){var O=_.a.apply(this,arguments)||this;O.richItemMinWidth=_.yF("wn_grid_min_item_width",310);O.isShorts=!1;O.isWatchNext=!1;O.isExploreHub=!1;return O};
_.c(xv,_.a);_.Dy.Object.defineProperties(xv.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var O=[],x=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.lH(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var e;if(((e=this.data)==null?0:e.rows)&&x)for(x*=this.data.rows,e=0;e<x;e++)O.push({});return O}}});
_.B([_.V(_.$5),_.v("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xv.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.qc,value:3}),_.v("design:type",Number)],xv.prototype,"itemsPerRow",void 0);_.B([_.R({selector:_.ptW,value:6}),_.v("design:type",Number)],xv.prototype,"slimItemsPerRow",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Number)],xv.prototype,"richItemMinWidth",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],xv.prototype,"miniMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xv.prototype,"isShorts",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xv.prototype,"isWatchNext",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xv.prototype,"isExploreHub",void 0);
_.B([_.p("isExploreHub"),_.R({reflectToAttribute:!0}),_.v("design:type",Object),_.v("design:paramtypes",[])],xv.prototype,"shimmerAnimation",null);_.B([_.p("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.v("design:type",Array),_.v("design:paramtypes",[])],xv.prototype,"cardItems",null);_.B([_.H({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],xv);
_.JFd=_.NQ()(xv,"ytd-ghost-grid-renderer",function(){if(f8z===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);f8z=O}O=f8z;return O},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.wP(_.K(function(O){var x=_.YX(O,{numberOfComments:3}).numberOfComments,e=_.YX(O,{isInitialLoad:!1}).isInitialLoad,l=_.YX(O,{engagementPanel:!1}).engagementPanel,C=function(){return Math.min(Number(x==null?void 0:x())||20,20)};
return _.D("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.D(_.F,{cond:function(){return!(l==null?0:l())&&(e==null?void 0:e())},
then:function(){return _.D("div",{class:"ytGhostCommentsComments"},_.D("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.D("div",{class:_.xz("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.D("div",{class:_.xz("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.D("div",{class:"ytGhostCommentsGhostCard"},_.D("div",{class:"ytGhostCommentsAvatar"},_.D("div",{class:"ytGhostCommentsCircle"})),_.D("div",{class:"ytGhostCommentsComments"},_.D("div",{class:"ytGhostCommentsMeta"},
_.D("div",{class:_.xz("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.D("div",{class:_.xz("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.D("div",{class:"ytGhostCommentsComments"},_.D(_.HE,{each:function(){return Array((C==null?void 0:C())||3)}},function(){return _.D("div",{class:"ytGhostCommentsGhostCard"},_.D("div",{class:"ytGhostCommentsAvatar"},_.D("div",{class:"ytGhostCommentsCircle"})),_.D("div",{class:"ytGhostCommentsHost"},_.D("div",{class:"ytGhostCommentsMeta"},
_.D("div",{class:_.xz("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.D("div",{class:_.xz("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.D("div",{class:_.xz("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.D("div",{class:"ytGhostCommentsGhostLikeDislike"},_.D("div",{class:_.xz("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.D("div",{class:_.xz("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.Ld,
isInitialLoad:_.Ld,engagementPanel:_.Ld},unsafeExternallySettableAttributes:new Set(["hidden"])});_.tI("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var eI=function(){var O=_.a.apply(this,arguments)||this;O.isOverridable=!1;O.spinnerActive=!1;O.showButton=!1;O.isCommentsSection=!1;O.engagementPanel=!0;O.isShortsGrid=!1;O.isShortsPage=!1;O.isWatchPage=!1;O.ghostCardExperimentEnabled=_.t("show_ghost_comments_shorts_watch")||_.t("show_ghost_comments_desktop_watch");O.originalShowButton=!1;O.endOfList=!1;return O};
_.c(eI,_.a);_.b=eI.prototype;_.b.resetIntersectionObserver=function(){var O;(O=this.observer)==null||O.disconnect();this.observer=void 0};
_.b.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var O,x;((O=this.data)==null?void 0:O.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((x=this.data)==null?0:x.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.b.initializeIntersectionObserver=function(){var O=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(x){x=_.T(x);for(var e=x.next();!e.done;e=x.next())e.value.isIntersecting&&(O.triggerContinuation(),O.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.b.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]]"}}}}}};
_.b.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var O;((O=this.data)==null?0:O.continuationEndpoint)&&(O=_.q(this.data.continuationEndpoint,_.U1))&&this.ytdReduxBehavior.dispatch(_.j6({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:O}}))};
_.b.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.b.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.b.onServiceRequestCompleted=function(O,x){if(!_.t("kevlar_hide_spinner_on_empty_continuation_killswitch")){var e;(e=x.actions)!=null&&e.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.b.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.b.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.b.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.b.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var O=3;if(this.engagementPanel){var x,e,l;O=Math.floor(((((x=this.hostElement)==null?void 0:(e=x.parentElement)==null?void 0:(l=e.parentElement)==null?void 0:l.scrollHeight)||108)-108)/108);O=this.isInitialLoad?Math.max(O,3):3}x=[].concat(_.Kx(this.hostElement.querySelectorAll("yt-ghost-comments")));x=_.T(x);for(e=x.next();!e.done;e=x.next())e=e.value,e.numberOfComments=O,e.isInitialLoad=this.isInitialLoad,e.engagementPanel=
this.engagementPanel}};
_.b.detached=function(){this.resetIntersectionObserver()};
_.Dy.Object.defineProperties(eI.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.t("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.t("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
eI.prototype.numberOfGhostCommentsChanged=eI.prototype.numberOfGhostCommentsChanged;eI.prototype.continuationTriggerOffsetChanged=eI.prototype.continuationTriggerOffsetChanged;eI.prototype.showButtonChanged=eI.prototype.showButtonChanged;eI.prototype.onYtServiceRequestCompletedForButtonRenderer=eI.prototype.onYtServiceRequestCompletedForButtonRenderer;eI.prototype.onServiceRequestCompleted=eI.prototype.onServiceRequestCompleted;eI.prototype.onYtServiceRequestSentForButtonRenderer=eI.prototype.onYtServiceRequestSentForButtonRenderer;
eI.prototype.observeData=eI.prototype.observeData;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.l4.YtVisibilityBehavior),_.v("design:type",Object)],eI.prototype,"ytVisibilityBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],eI.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],eI.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"isOverridable",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"spinnerActive",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"showButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eI.prototype,"isCommentsSection",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eI.prototype,"engagementPanel",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"isShortsGrid",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.mLW}),_.v("design:type",Object)],eI.prototype,"isShortsPage",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.aXm}),_.v("design:type",Object)],eI.prototype,"isWatchPage",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eI.prototype,"ghostCardExperimentEnabled",void 0);
_.B([_.R(),_.v("design:type",Number)],eI.prototype,"continuationTriggerOffset",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"endOfList",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],eI.prototype,"isInitialLoad",void 0);_.B([_.kX("ytd-button-renderer"),_.v("design:type",_.oe)],eI.prototype,"buttonRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],eI.prototype,"buttonOverrides",void 0);
_.B([_.R(),_.p("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.v("design:type",Object),_.v("design:paramtypes",[])],eI.prototype,"isShortsCommentsSection",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eI.prototype,"observeData",null);
_.B([_.bH("yt-service-request-sent-button-renderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eI.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],eI.prototype,"onServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-completed-button-renderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eI.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.B([_.G1("showButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eI.prototype,"showButtonChanged",null);
_.B([_.G1("continuationTriggerOffset"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eI.prototype,"continuationTriggerOffsetChanged",null);_.B([_.T1("isInitialLoad","engagementPanel"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eI.prototype,"numberOfGhostCommentsChanged",null);_.B([_.H({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],eI);
_.n(eI,"ytd-continuation-item-renderer",function(){if(vlN!==void 0)return vlN;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vlN=O},{mode:1});var wa3;var lE=function(){var O=_.a.apply(this,arguments)||this;O.downloadProgress=0;O.transferState="TRANSFER_STATE_UNKNOWN";O.downloadState="DOWNLOAD_STATE_UNKNOWN";O.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";O.offlineVideoPolicyExpirationTimestamp=0;O.downloadedVideoPlaybackPosition=0;return O};
_.c(lE,_.a);lE.prototype.dataChanged=function(){var O;this.videoData=_.q((O=this.data)==null?void 0:O.renderer,NgT);this.transferStateChanged()};
lE.prototype.downloadProgressChanged=function(){if(this.entityInfo){var O=Object.assign({},this.videoData),x=LX7(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),e=x.publishedTimeText,l=x.badges;O.shortViewCountText=x.shortViewCountText;O.publishedTimeText=e;O.badges=l;this.set("videoData",O)}};
lE.prototype.transferStateChanged=function(){if(this.entityInfo){var O=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",x=_.Ah(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kE(this.entityInfo.policyEntity),e=Object.assign({},this.videoData),l=LX7(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),C=l.publishedTimeText,Q=l.badges;e.shortViewCountText=
l.shortViewCountText;e.publishedTimeText=C;e.badges=Q;e.isDisabled=x;e.isWatched=this.downloadedVideoPlaybackPosition>0;e.navigationEndpoint=x?void 0:s77(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var L;O&&((L=this.videoData)==null?0:L.videoId)&&!_.t("dl_resume_click_killswitch")&&(e.isDisabled=!1,e.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});e.thumbnailOverlays=bj7(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",e)}};
lE.prototype.transferStateChanged=lE.prototype.transferStateChanged;lE.prototype.downloadProgressChanged=lE.prototype.downloadProgressChanged;lE.prototype.dataChanged=lE.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],lE.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],lE.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],lE.prototype,"videoData",void 0);_.B([_.R({selector:Rx,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"downloadProgress",void 0);_.B([_.R(),_.v("design:type",Number)],lE.prototype,"relativeDateReference",void 0);_.B([_.R({selector:_.Vy,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"transferState",void 0);
_.B([_.R({selector:gaW,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"downloadState",void 0);_.B([_.R({selector:rcW,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"offlinePolicyAction",void 0);_.B([_.R({selector:Hdr,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.B([_.R({selector:UQ,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"downloadedVideoPlaybackPosition",void 0);_.B([_.R({selector:dLL,selectorArgs:["videoData.videoId"]}),_.v("design:type",Object)],lE.prototype,"entityInfo",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],lE.prototype,"isDownloading",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lE.prototype,"dataChanged",null);
_.B([_.G1("downloadProgress"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lE.prototype,"downloadProgressChanged",null);_.B([_.G1("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lE.prototype,"transferStateChanged",null);
_.B([_.H({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],lE);
_.n(lE,"ytd-downloaded-video-grid-video-renderer",function(){if(wa3!==void 0)return wa3;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wa3=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var Sk2;var CN=function(){};
CN.prototype.resolve=function(O,x){var e=this;return _.A(function(l){return l.yield(e.resolveCommand(O,x),0)})};var jrd,Q3;jrd=ZJ$(function(O){return O.targetId},{shouldPersist:!1});
Q3=jrd.updateData;_.Nm2=jrd.useUpdatableData;var gl4,$E2;gl4=ZJ$(function(O){return O.targetId});
$E2=gl4.updateData;_.i8$=gl4.useUpdatableData;var OXd=P78.bind(null,Q3),xWk=P78.bind(null,$E2);(function(O,x,e){var l=_.q(e==null?void 0:e.updatedRenderer,_.VON);return l?O({targetId:x},function(){return l}):!1}).bind(null,Q3);var bE=function(){};
_.c(bE,CN);bE.prototype.resolveCommand=function(O){var x;return _.A(function(e){x=_.q(O,_.WZs);if(!x)return e.return();OXd(x.targetId,x);_.Ra(e)})};var Tz=function(){var O=_.MQ.apply(this,arguments)||this;O.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return O};
_.c(Tz,_.MQ);_.b=Tz.prototype;_.b.configureContinuationPathMap=function(){return{}};
_.b.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.b.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.b.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.b.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.b.handleAppendContinuationItemsAction=function(O){var x=_.q(O,_.tP$);if(this.data&&this.data.targetId&&x&&this.continuationPathMap&&x.targetId===this.data.targetId){var e=TYL(O),l=e&&this.continuationPathMap[e];if(l&&e)if(O=this.get(l,this.data)){a:{for(e=0;e<O.length;e++){var C=O[e],Q=void 0,L=!!_.q((Q=_.q(C,T2N))==null?void 0:Q.content,_.Jcp);if(_.q(C,_.dj)||L)break a}e=O.length}l="data."+l;x.continuationItems?e===O.length-1?(this.pop(l),this.push.apply(this,[l].concat(_.Kx(x.continuationItems)))):
e===O.length?this.push.apply(this,[l].concat(_.Kx(x.continuationItems))):this.splice.apply(this,[l,e,1].concat(_.Kx(x.continuationItems))):this.splice(l,e,1);(_.t("web_enable_voting_animation")||_.t("enable_music_web_cairo_voting_animation"))&&_.wr(this.hostElement,"yt-append-continuation-items-action-finished");_.wr(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.ft(new _.ry("append continuation items does not exist",e));else _.ft(new _.ry("append continuation path does not exist",
e))}};
_.b.handleReloadContinuationItemsCommand=function(O){var x=_.q(O,_.WZs);if(this.data&&x){if(_.t("web_client_explore_hub")||_.t("web_explore_hub_on_hover")||_.t("web_client_explore_hub_on_hover"))try{_.GG().resolve(bE).resolveCommand(O)}catch(Q){}if(this.data.targetId&&this.continuationPathMap&&x.targetId===this.data.targetId&&(!_.t("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||x.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var e,l=(e=x.slot)==null?void 0:
e.replace("RELOAD_CONTINUATION_SLOT_","");e=(O=TYL(O)+"-"+(l==null?void 0:l.toLowerCase()))&&this.continuationPathMap[O];if(!e||!O||!l)_.ft(new _.ry("reload continuation path does not exist",O));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(x)){if(x.replaceWithFirstItem){var C;this.set("data."+e,((C=x.continuationItems)==null?0:C.length)?x.continuationItems[0]:{})}else this.set("data."+e,x.continuationItems?x.continuationItems:[]);this.continuationIsReloading=
!1;_.wr(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.b.handleShowReloadUiCommand=function(O){O=_.q(O,rP4);var x;((x=this.data)==null?0:x.targetId)&&(O==null?0:O.targetId)&&O.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Tz.prototype.observeData=Tz.prototype.observeData;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Tz.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Tz.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Tz.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Tz.prototype,"continuationIsReloading",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Tz.prototype,"observeData",null);_.B([_.DC()],Tz);_.LN=[_.OJ.YtComponentBehavior,_.Wt.YtActionHandlerBehavior,Tz.prototype];_.kv={};_.kv.YtNextContinuationBehavior=[_.GT.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",_.Qa(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Qa(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(O,x){O.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,x,{}):(O={locationRetrieved:function(e){this.makeNextContinuationRequest_(e,x,{})}.bind(this)},_.wr(this.hostElement,"yt-retrieve-location",O))},
makeNextContinuationRequest_:function(O,x,e){_.VO("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();O=x(O);var l;this.canUseContextualNetworkManager_()&&(l=this.getNetworkManager());l||(l=_.GG().resolve(_.cR));x=_.We.instance;if(_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&x){l=_.YE([O.startsWith("/")?O.substr(1):O]);var C,Q;e=_.NK(x,{},l,e==null?void 0:(C=e.context)==null?void 0:(Q=C.clickTracking)==null?void 0:Q.clickTrackingParams).then(function(L){return{response:L}})}else e=
this.nextContinuation.usePost?l.postData(O,e):l.fetchData(O);
e.then(this.updateNextContinuationData_.bind(this,O));this.pendingContinuationRequest_=e;this.startListeningForNavigate_()},
updateNextContinuationData_:function(O,x){var e=this;_.VO("ncl");this.pendingContinuationRequest_=void 0;if(x){var l={};this.nextContinuation&&(l=this.nextContinuation);if(x.response&&x.response.continuationContents&&x.response.continuationContents[l.continuationType]){O=x.response.continuationContents[l.continuationType];var C=l.header||"data.header",Q=O[l.responseHeaderKey||"header"];Q&&this.set(C,Q);C=l.contentsArray||"data.contents";Q=this.getContents_(O,l.responseContentsKey||"contents")||[];
this.pathExists_(C)?(Q.unshift(C),this.push.apply(this,Q)):this.set(C,Q);Q&&(cwi(_.k0(),x.response,this.hostElement,function(L){_.Sh(e.hostElement,"yt-store-grafted-ve-action",[L])}),_.wr(this.hostElement,"yt-next-continuation-data-updated",{continuationData:x,
page:this,contentsArray:C}));this.set(l.continuationsArray||"data.continuations",O[l.responseContinuationsKey||"continuations"]||[])}else x.reload?_.ft(new _.ry("Reloading from continuation is unsupported")):x.responseContext&&x.responseContext.errors||(delete x.xsrf_token,delete x.timing,delete x.endpoint,delete x.csn,x.responseContext&&delete x.responseContext.serviceTrackingParams,C={request:_.QF(O,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(x).sort()},x.response&&(C.responseContentKeys=
Object.keys(x.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(C.continuationType=this.nextContinuation.continuationType.substr(0,256)),x=new _.ry("Malformed continuation",C),O.indexOf("/comment_service_ajax")==0?_.ft(x):_.BH(x)),this.set(l.continuationsArray||"data.continuations",[])}else _.vH(new _.ry("Missing continuation response",O))},
getContents_:function(O,x){x=x.split(".");return _.HX.getValueByKeys(O,x)},
pathExists_:function(O){var x=this;O=O.toString().split(".");for(var e=0;e<O.length;e++)if(x=x[O[e]],x===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var eH4;var loR;var AH=function(){var O=_.a.apply(this,arguments)||this;O.triggered_=!1;return O};
_.c(AH,_.a);_.b=AH.prototype;_.b.attached=function(){this.maybeTriggerAutoload()};
_.b.detached=function(){this.hasBeenTriggered_=!1};
_.b.onPrescanVisible=function(){this.onShow()};
_.b.onShow=function(){this.showButton||this.trigger()};
_.b.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.wr(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.b.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.b.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.b.computeLabel_=function(O,x){return O===void 0?null:O.label||!x?O.label:this.showMoreText_};
_.b.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.b.getContinuationUrl=function(O){var x={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(x.itct=this.data.clickTrackingParams);return _.bu(O,x)};
_.b.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
AH.prototype.showButtonChanged_=AH.prototype.showButtonChanged_;AH.prototype.observeData_=AH.prototype.observeData_;_.B([_.V(_.l4.YtVisibilityBehavior),_.v("design:type",Object)],AH.prototype,"ytVisibilityBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],AH.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],AH.prototype,"showButton",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],AH.prototype,"showIcon",void 0);_.B([_.R({computed:"computeLabel_(data, showButton)"}),_.v("design:type",Object)],AH.prototype,"label",void 0);_.B([_.R({value:_.KA(_.CZ("SHOW_MORE",void 0,"Show More"))}),_.v("design:type",Object)],AH.prototype,"showMoreText_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],AH.prototype,"spinnerActive_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],AH.prototype,"hasBeenTriggered_",void 0);
_.B([_.R({value:void 0}),_.v("design:type",String)],AH.prototype,"observeVisibleOption",void 0);_.B([_.R({value:void 0}),_.v("design:type",String)],AH.prototype,"observeHiddenOption",void 0);_.B([_.R({value:"observe_once"}),_.v("design:type",Object)],AH.prototype,"observePrescanOption",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],AH.prototype,"observeData_",null);
_.B([_.T1("showButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],AH.prototype,"showButtonChanged_",null);_.B([_.Va({is:"yt-next-continuation",disableElementRegistration:!0})],AH);
_.n(AH,"yt-next-continuation",function(){if(loR===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;eH4===void 0&&(eH4=document.createElement("template"));var l=eH4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);loR=O}O=loR;return O},{mode:2});var CCL;var QJT;var Me=function(){return _.a.apply(this,arguments)||this};
_.c(Me,_.a);Me.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Me.prototype,"data",void 0);_.B([_.Va({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Me);
_.n(Me,"yt-music-pass-small-feature-info-renderer",function(){if(QJT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;CCL===void 0&&(CCL=document.createElement("template"));var l=CCL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);QJT=O}O=QJT;return O},{mode:2});_.tI("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var D_=function(){var O=_.a.apply(this,arguments)||this;O.isCollapsible=!1;O.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return O};
_.c(D_,_.a);_.b=D_.prototype;_.b.computeIsCollapsible=function(O){return!!(((O==null?0:O.showMoreText)||(O==null?0:O.visibleRowCount))&&(O==null?0:O.isCollapsible))};
_.b.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"}}}};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.b.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.b.onIronResize=function(){var O=this;_.hY(this,"updateGridInitItems",function(){O.maybeUpdateInitialItemsDisplayed()})};
_.b.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var O=this.getVisibleWidth();O!==0&&(O=Math.floor(O/214)*(this.data.visibleRowCount||2),O!==this.initialCount&&(this.initialCount=O,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.b.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.b.computeExpandVisible=function(O,x,e,l){return O&&x&&e&&!!l&&!!l.showMoreText};
_.b.computeShowMoreButton=function(O){return{text:O,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.b.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.b.initCollapsed=function(){var O=this;this.ytLazyListBehavior.canShowMore=!1;var x;(this.collapsed=!((x=this.data)==null||!x.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.A_(this,function(){_.jh(O.hostElement,"yt-refit-popups-action")})};
_.b.fillRestIfNotCollapsible=function(){var O=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!O||this.ytLazyListBehavior.fillRemainingListItems()};
_.b.computeViewAllHidden=function(O,x){return O||!x.viewAllEndpoint};
D_.prototype.fillRestIfNotCollapsible=D_.prototype.fillRestIfNotCollapsible;D_.prototype.initCollapsed=D_.prototype.initCollapsed;D_.prototype.onIronResize=D_.prototype.onIronResize;D_.prototype.persistentGuideChanged=D_.prototype.persistentGuideChanged;_.B([_.V(_.Wg),_.v("design:type",Object)],D_.prototype,"ironResizableBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],D_.prototype,"ytLazyListBehavior",void 0);_.B([_.V(_.kv.YtNextContinuationBehavior),_.v("design:type",Object)],D_.prototype,"ytNextContinuationBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],D_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.V(_.LN),_.v("design:type",Object)],D_.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],D_.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],D_.prototype,"collapsed",void 0);_.B([_.R(),_.v("design:type",Number)],D_.prototype,"initialCount",void 0);_.B([_.R({computed:"computeShowMoreButton(data.showMoreText)"}),_.v("design:type",Object)],D_.prototype,"showMoreButton",void 0);
_.B([_.R({computed:"computeIsCollapsible(data)"}),_.v("design:type",Object)],D_.prototype,"isCollapsible",void 0);_.B([_.kX("#items"),_.v("design:type",HTMLElement)],D_.prototype,"items",void 0);_.B([_.G1("guidePersistentAndVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D_.prototype,"persistentGuideChanged",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D_.prototype,"onIronResize",null);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D_.prototype,"initCollapsed",null);_.B([_.G1("canShowMore"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D_.prototype,"fillRestIfNotCollapsible",null);_.B([_.H({is:"ytd-grid-renderer",disableElementRegistration:!0})],D_);
_.n(D_,"ytd-grid-renderer",function(){if(Sk2!==void 0)return Sk2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Sk2=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var Gz=function(){return _.a.apply(this,arguments)||this};
_.c(Gz,_.a);
Gz.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"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Gz.prototype,"data",void 0);_.B([_.H({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Gz);
_.n(Gz,"ytd-carousel-ad-renderer",function(){if(BmR!==void 0)return BmR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return BmR=O},{mode:1});var bX2;var FV=function(){return _.a.apply(this,arguments)||this};
_.c(FV,_.a);_.b=FV.prototype;_.b.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"}}}};
_.b.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,FV.JSC$15534_CLICK_LOCATION_ID_MAP))};
_.b.onSitelinkTap=function(O){O.stopPropagation();var x,e,l=O==null?void 0:(x=O.model)==null?void 0:(e=x.item)==null?void 0:e.onTap;l&&this.ytSparklesClickLocationBehavior.handleClick(l,O,!1)};
_.b.onTap=function(O){var x=this.data&&this.data.content&&this.data.content.navigationEndpoint;x&&this.ytSparklesClickLocationBehavior.handleClick(x,O,!1)};
_.b.sendImpression=function(){if(this.data&&this.data.content)for(var O=_.T(this.data.content.impressionEndpoints||[]),x=O.next();!x.done;x=O.next()){x=_.T(x.value.loggingUrls||[]);for(var e=x.next();!e.done;e=x.next())e=e.value,e.baseUrl&&xb(e.baseUrl,e.attributionSrcMode)}};
FV.prototype.onTap=FV.prototype.onTap;FV.prototype.dataChanged=FV.prototype.dataChanged;FV.JSC$15534_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"]]);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],FV.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],FV.prototype,"data",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],FV.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],FV.prototype,"onTap",null);_.B([_.H({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],FV);
_.n(FV,"ytd-promoted-sparkles-text-search-renderer",function(){if(bX2!==void 0)return bX2;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return bX2=O},{mode:1});var TR2;var XV=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-mute-ad-action":"handleMuteAd"};return O};
_.c(XV,_.a);_.b=XV.prototype;
_.b.configureRendererStamper=function(){return{"data.menu":{id:_.t("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]]"}}}}}};
_.b.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.b.computeHasAdBadge=function(O){return!(O==null||!O.adBadge)};
_.b.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",XV.JSC$15543_DEFAULT_AD_BADGE_RENDERER),_.Ow(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,XV.JSC$15543_CLICK_LOCATION_ID_MAP))};
_.b.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var O;(((O=this.data)==null?void 0:O.impressionCommands)||[]).forEach(function(x){x=_.T(x.loggingUrls||[]);for(var e=x.next();!e.done;e=x.next())e=e.value,e.baseUrl&&xb(e.baseUrl,e.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.b.onTap=function(O){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint,l;(x=(l=this.data)==null?void 0:l.thumbnailNavigationEndpoint)&&_.Yz(_.n3(O),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(x,O,!1):e&&this.ytSparklesClickLocationBehavior.handleClick(e,O,!1)};
_.b.handleMuteAd=function(){this.collapsed=!0};
_.b.attached=function(){var O=this;_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.b.detached=function(){_.t("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Dy.Object.defineProperties(XV.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var O;return!(((O=this.data)==null?void 0:O.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var O;return!(((O=this.data)==null?void 0:O.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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}}});
XV.prototype.dataChanged=XV.prototype.dataChanged;
XV.JSC$15543_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"]]);
XV.JSC$15543_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CZ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.B([_.V(g_),_.v("design:type",Object)],XV.prototype,"ytdActiveViewBehavior",void 0);
_.B([_.V([_.Wt.YtActionHandlerBehavior]),_.v("design:type",Object)],XV.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],XV.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XV.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],XV.prototype,"collapsed",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],XV.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],XV.prototype,"biggerThumbsStyle",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.v("design:type",Boolean)],XV.prototype,"fixAlignmentSmallScreens",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs_square")}}),
_.v("design:type",Boolean)],XV.prototype,"useBiggerThumbsSquare",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.mediaHoverOverlay"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"hideHoverOverlay",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"webSearchLayout",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"webSearchLayoutLandscape",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"webSearchLayoutSquare",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"sparklesCtaNoBackground",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.actionButton"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"hideActionButton",null);_.B([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.v("design:type",Object)],XV.prototype,"buttonOverride",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.v("design:type",Boolean)],XV.prototype,"hasNewAdBadge",void 0);_.B([_.p("data.promotedSparklesWebStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XV.prototype,"useRoundedBadge",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XV.prototype,"dataChanged",null);_.B([_.H({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],XV);
_.n(XV,"ytd-promoted-sparkles-web-renderer",function(){if(TR2!==void 0)return TR2;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return TR2=O},{mode:1});var LJL;var ob=function(){var O=_.a.apply(this,arguments)||this;O.isInlinePreviewTriggered=!1;O.enableMonoStyle=_.t("enable_default_mono_cta_migration_web_client");return O};
_.c(ob,_.a);_.b=ob.prototype;_.b.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]]"}}}}}};
_.b.computeShowCta=function(O){return!(O==null||!O.ctaRenderer)};
_.b.onCtaClick=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.ctaRenderer)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.command;l&&this.ytComponentBehavior.resolveCommand(l)};
_.b.onWatchButtonClick=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.watchButtonRenderer)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.command;l&&this.ytComponentBehavior.resolveCommand(l)};
_.b.onTap=function(){};
_.b.dataChanged=function(){if(this.data){var O;_.t("enable_inline_muted_playback_on_web_search")&&((O=this.data)==null?0:O.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",ob.JSC$15547_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ob.JSC$15547_DEFAULT_CLICK_LOCATION_BEHAVIOR,ob.JSC$15547_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&O.removeAttribute("href"));var x;if(((x=this.data)==null?0:x.forceImpAutoplay)&&_.t("enable_force_imp_autoplay_on_desktop_search")){var e;(e=this.JSC$15548_inlinePreviewHoverListener)==null||bFN(e)}}};
_.b.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var O=_.T(this.data.impressionUrls),x=O.next();!x.done;x=O.next())x=x.value,fC8(x,wZm(x));this.data.impressionsFired=!0}};
_.b.maybeComputeHref=function(){return null};
_.b.computeIsShortDR=function(O){return!(O==null||!O.watchButtonRenderer)&&!(O==null||!O.ctaRenderer)&&!!this.enableShortDR};
_.b.computeIsNewUiOrShortDr=function(O){return!!this.enableUiUpdate||this.computeIsShortDR(O)};
_.b.computeIsNewUiAndNotShortDr=function(O){return!!this.enableUiUpdate&&!this.computeIsShortDR(O)};
_.b.computeHideAvatar=function(O){return!((O==null?0:O.channelThumbnail)&&this.computeIsNewUiOrShortDr(O))};
_.b.onClick=function(O){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint;if(this.enableShortDR&&e&&(_.q(e,_.Hq)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(e,O,!!_.q(e,_.Hq)),O.stopPropagation();else if(e&&_.q(e,_.Hq))this.ytSparklesClickLocationBehavior.handleClick(e,O,!0),O.stopPropagation();else if(e){var l,C;((l=this.data)==null?0:l.navigationEndpoint)&&((C=this.data)==null?0:C.adPlaybackContextParams)&&(x=this.data.navigationEndpoint,O=this.data.adPlaybackContextParams,
x.commandMetadata&&_.q(x.commandMetadata,_.e6)&&_.q(x.commandMetadata,_.e6).url&&(x=_.Cb(_.q(x.commandMetadata,_.e6).url).adurl)&&_.wqr(x)&&_.uh(_.sb(x),{encoded_ad_playback_context:O}));this.ytComponentBehavior.resolveCommand(e)}};
_.b.computeButtonOverride=function(O){if(this.computeIsNewUiOrShortDr(O))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.b.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.b.onThumbnailContainerClick=function(O){this.onClick(O)};
_.b.computeThumbnailWidth=function(O,x){return O?x==="MASSIVE"?600:x==="BIG"?500:x==="MEDIUM"?450:420:360};
_.b.attached=function(){var O=this,x;_.t("enable_inline_muted_playback_on_web_search")&&((x=this.data)==null?0:x.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.b.detached=function(){var O;_.t("enable_inline_muted_playback_on_web_search")&&((O=this.data)==null?0:O.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.t("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15548_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:qkN})};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15548_inlinePreviewHoverListener)==null||KM(O)};
ob.prototype.dataChanged=ob.prototype.dataChanged;ob.prototype.onTap=ob.prototype.onTap;ob.JSC$15547_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CZ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};ob.JSC$15547_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ob.JSC$15547_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"}];_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.B([_.V(g_),_.v("design:type",Object)],ob.prototype,"ytdActiveViewBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ob.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],ob.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.kX("#main-container"),_.v("design:type",HTMLElement)],ob.prototype,"mainContainer",void 0);_.B([_.R(),_.v("design:type",Object)],ob.prototype,"isInlinePreviewTriggered",void 0);_.B([_.R(),_.v("design:type",Object)],ob.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],ob.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_video_display_compact_button_group_for_desktop_search")}}),
_.v("design:type",Boolean)],ob.prototype,"enableShortDR",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_vac_ui_update_for_desktop_search")}}),
_.v("design:type",Boolean)],ob.prototype,"enableUiUpdate",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],ob.prototype,"biggerThumbsStyle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.v("design:type",Boolean)],ob.prototype,"showCta",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.v("design:type",Boolean)],ob.prototype,"isShortDr",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.v("design:type",Boolean)],ob.prototype,"isShortDrOrNewUi",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.v("design:type",Boolean)],ob.prototype,"isNewUiAndNotShortDr",void 0);_.B([_.R({computed:"computeButtonOverride(data)"}),_.v("design:type",Object)],ob.prototype,"buttonOverride",void 0);_.B([_.R({computed:"computeSecondaryButtonOverride(data)"}),_.v("design:type",Object)],ob.prototype,"secondaryButtonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ob.prototype,"enableMonoStyle",void 0);
_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],ob.prototype,"thumbnail",void 0);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ob.prototype,"onTap",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ob.prototype,"dataChanged",null);_.B([_.H({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],ob);
_.n(ob,"ytd-promoted-video-renderer",function(){if(LJL!==void 0)return LJL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return LJL=O},{mode:1});var kwT;var y3=function(){var O=_.a.apply(this,arguments)||this;O.useRoundedBadge=!0;O.sitelinkIds=[];return O};
_.c(y3,_.a);_.b=y3.prototype;
_.b.configureRendererStamper=function(){return{"data.menu":{id:_.t("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]]"}}}}}};
_.b.dataChanged=function(){var O;(O=this.data)!=null&&O.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,y3.JSC$15553_CLICK_LOCATION_ID_MAP)};
_.b.onTap=function(O){var x,e=(x=this.data)==null?void 0:x.navigationCommand;e&&!_.Yz(_.n3(O),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(e,O,!1)};
_.b.onSitelinkTap=function(O){var x,e,l=O==null?void 0:(x=O.model)==null?void 0:(e=x.item)==null?void 0:e.onTap;l&&this.ytSparklesClickLocationBehavior.handleClick(l,O,!1)};
_.b.configureSitelinkClickTargets=function(){var O=this,x,e,l=(x=this.data)==null?void 0:(e=x.clickLocationTargets)==null?void 0:e.find(function(C){return C.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
l&&_.$U(this.hostElement).querySelectorAll(".sitelink").forEach(function(C){_.Ow(C,"yt-simple-endpoint",!0);O.sitelinkIds.push(C.id);var Q,L;(Q=O.ytSparklesClickLocationBehavior)==null||(L=Q.clickTargetMap)==null||L.set(C.id,l)})};
_.b.sendImpression=function(){var O,x,e=((O=this.data)==null?void 0:(x=O.impressionCommand)==null?void 0:x.loggingUrls)||[];O=_.T(e);for(x=O.next();!x.done;x=O.next())x=x.value,x.baseUrl&&xb(x.baseUrl,x.attributionSrcMode)};
_.b.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Dy.Object.defineProperties(y3.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
y3.prototype.onTap=y3.prototype.onTap;y3.prototype.dataChanged=y3.prototype.dataChanged;y3.JSC$15553_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"]]);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],y3.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],y3.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],y3.prototype,"showFavicon",null);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],y3.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],y3.prototype,"biggerThumbsStyle",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.v("design:type",Boolean)],y3.prototype,"enableThumbnailScalingFix",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],y3.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],y3.prototype,"onTap",null);_.B([_.H({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],y3);
_.n(y3,"ytd-text-image-no-button-layout-renderer",function(){if(kwT!==void 0)return kwT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return kwT=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var AW4;var Z_=function(){var O=_.a.apply(this,arguments)||this;O.isInlinePlaybackState=!1;O.uiUpdate=_.t("web_modern_buttons");O.hideCta=_.t("hide_cta_for_home_web_video_ads");O.noBottomMargin=!1;O.animateInTimeStamp=_.yF("hide_cta_for_home_web_video_ads_animate_in_time");O.animateInCta=!1;O.isHovered=!1;O.enableMonoStyle=_.t("enable_default_mono_cta_migration_web_client");O.player=null;O.JSC$15560_playerEvents=new Map;O.JSC$15560_preventProgressSaveTimer=null;O.delayedCtaJobId=null;return O};
_.c(Z_,_.a);_.b=Z_.prototype;_.b.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]]"}}}}}};
_.b.attached=function(){this.JSC$15560_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15560_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.t("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.b.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15560_playerEvents)};
_.b.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Z_.JSC$15559_DEFAULT_CLICK_LOCATION_BEHAVIOR,Z_.JSC$15559_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.b.hoverChanged=function(){var O=this;this.delayedCtaJobId&&(_.vn.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.t("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.FQ(_.vn,function(){O.buttonContainer.classList.add("show-delayed-buttons")},_.yF("delayed_cta_on_web_delay_milliseconds")))};
_.b.setPlayer=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return(x=_.jh(O.hostElement,"yt-get-inline-preview-player-action"))&&x[0]?e.yield(x[0].getPlayerPromise(),3):e.jumpTo(0);O.player=e.yieldResult;O.ytPlayerListenerBehavior.listenToPlayerEvents(O.player,O.JSC$15560_playerEvents);_.Ra(e)})};
_.b.onPlaybackStart=function(){var O=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15560_preventProgressSaveTimer=_.$0(_.vn,function(){O.JSC$15560_preventProgressSaveTimer=null},1E4))};
_.b.onVideoProgress=function(O){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&O>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.b.resetPreventProgressSaveTimer=function(){_.vn.cancelJob(this.JSC$15560_preventProgressSaveTimer);this.JSC$15560_preventProgressSaveTimer=null};
_.b.getSimpleString=function(O){return _.db(O)};
_.b.onClick=function(O){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint,l;x=(l=this.data)==null?void 0:l.channelEndpoint;var C,Q;((Q=_.q((C=this.data)==null?void 0:C.adCtaButton,_.wf))==null?0:Q.command)&&_.Yz(_.n3(O),this.hostElement,["call-to-action"])||(x&&_.Yz(_.n3(O),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(x,O,!1):!_.Yz(_.n3(O),this.hostElement,
["secondary-button"])&&e&&(_.t("enable_short_dr_for_desktop_launchable")?(l=!!_.q(e,_.Hq),this.isInlinePlaybackState&&l&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(e,O,l)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(e,O,!0))))}};
_.b.updateWatchEndpointStartTime=function(){var O,x;this.player&&((O=this.data)==null?0:O.inlinePlaybackEndpoint)&&((x=this.data)==null?0:x.navigationEndpoint)&&!this.JSC$15560_preventProgressSaveTimer&&(O=Math.floor(this.player.getCurrentTime()),_.q(this.data.navigationEndpoint,_.Hq).startTimeSeconds=O,_.q(this.data.inlinePlaybackEndpoint,_.Hq).startTimeSeconds=O)};
_.b.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.b.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Dy.Object.defineProperties(Z_.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.t("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.watchButton)&&!((x=this.data)==null||!x.adCtaButton)}}});
Z_.prototype.hoverChanged=Z_.prototype.hoverChanged;Z_.prototype.dataChanged=Z_.prototype.dataChanged;
Z_.JSC$15559_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"]]);
Z_.JSC$15559_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"}];
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Z_.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],Z_.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],Z_.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Z_.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"isInlinePlaybackState",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Z_.prototype,"miniMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"uiUpdate",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"hideCta",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"noBottomMargin",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"animateInCta",void 0);_.B([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.v("design:type",Object)],Z_.prototype,"buttonOverride",void 0);
_.B([_.R({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.v("design:type",Object)],Z_.prototype,"secondaryButtonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"isHovered",void 0);_.B([_.kX("#button-container"),_.v("design:type",HTMLElement)],Z_.prototype,"buttonContainer",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Z_.prototype,"typographyBump",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("typographyBump"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Z_.prototype,"typographyBumpV2",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z_.prototype,"enableMonoStyle",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z_.prototype,"dataChanged",null);
_.B([_.T1("isHovered"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z_.prototype,"hoverChanged",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Z_.prototype,"isButtonGroup",null);_.B([_.H({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Z_);
_.n(Z_,"ytd-ad-inline-playback-meta-block",function(){if(AW4!==void 0)return AW4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return AW4=O},{mode:_.gq("kevlar_poly_si_batch_j065")?1:2});var MFF;var Ej=function(){var O=_.a.apply(this,arguments)||this;O.noBottomMargin=!1;O.isInlinePreviewTriggered=!1;O.JSC$15565_activeViewMeasurementDataResolver=_.He();return O};
_.c(Ej,_.a);_.b=Ej.prototype;_.b.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.b.attached=function(){var O=this;this.updateInlinePreviewHoverListeners();this.JSC$15565_activeViewMeasurementDataResolver.promise.then(function(x){O.ytdActiveViewBehavior.enableActiveViewMeasurement(x,15)});
_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.b.detached=function(){this.clearInlinePreviewHoverListeners();_.t("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15565_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.JSC$15565_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qkN})};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15565_inlinePreviewHoverListener)==null||KM(O)};
_.b.onDataChanged=function(){var O;((O=this.data)==null?0:O.activeView)&&this.JSC$15565_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Ej.JSC$15564_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ej.JSC$15564_CLICK_LOCATION_ID_MAP);this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&O.removeAttribute("href"));var x;if((x=this.data)==
null?0:x.forceImpAutoplay){var e;(e=this.JSC$15565_inlinePreviewHoverListener)==null||bFN(e)}};
_.b.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.b.onThumbnailContainerClick=function(O){if(this.data&&this.data.navigationEndpoint){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(e,O,!!_.q(e,_.Hq));O.stopPropagation()}};
_.b.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.b.impressionLog=function(){var O=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var x,e,l=(e=_.q((x=this.data)==null?void 0:x.onImpression,_.ih))==null?void 0:e.commands;l&&(l.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;O.ytComponentBehavior.resolveCommand(C)}),this.data.impressionsFired=!0)}};
_.Dy.Object.defineProperties(Ej.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15565_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ej.prototype.onTypographyBumpChanged=Ej.prototype.onTypographyBumpChanged;Ej.prototype.onDataChanged=Ej.prototype.onDataChanged;Ej.JSC$15564_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Ej.JSC$15564_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"}];
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.B([_.V(g_),_.v("design:type",Object)],Ej.prototype,"ytdActiveViewBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],Ej.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Lj),_.v("design:type",Object)],Ej.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Ej.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],Ej.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ej.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Ej.prototype,"noBottomMargin",void 0);
_.B([_.R(),_.v("design:type",Object)],Ej.prototype,"isInlinePreviewTriggered",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],Ej.prototype,"miniMode",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],Ej.prototype,"typographyBump",void 0);_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],Ej.prototype,"thumbnail",void 0);_.B([_.kX("#dismissible"),_.v("design:type",HTMLElement)],Ej.prototype,"JSC$15565_dismissibleMedia",void 0);
_.B([_.kX("ytd-ad-inline-playback-meta-block"),_.v("design:type",HTMLElement)],Ej.prototype,"adInlinePlaybackMetaBlock",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ej.prototype,"onDataChanged",null);_.B([_.G1("typographyBump"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ej.prototype,"onTypographyBumpChanged",null);
_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ej.prototype,"isHovered",null);_.B([_.H({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Ej);
_.n(Ej,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(MFF!==void 0)return MFF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return MFF=O},{mode:1});var DWp;var tH=function(){var O=_.a.apply(this,arguments)||this;O.isInlinePreviewTriggered=!1;O.JSC$15568_activeViewMeasurementDataResolver=_.He();return O};
_.c(tH,_.a);_.b=tH.prototype;_.b.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.b.attached=function(){var O=this;this.updateInlinePreviewHoverListeners();this.JSC$15568_activeViewMeasurementDataResolver.promise.then(function(x){O.ytdActiveViewBehavior.enableActiveViewMeasurement(x,15)})};
_.b.detached=function(){this.clearInlinePreviewHoverListeners()};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15568_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.JSC$15568_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qkN})};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15568_inlinePreviewHoverListener)==null||KM(O)};
_.b.onDataChanged=function(){var O;((O=this.data)==null?0:O.activeView)&&this.JSC$15568_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tH.JSC$15567_DEFAULT_CLICK_LOCATION_BEHAVIOR,tH.JSC$15567_CLICK_LOCATION_ID_MAP);this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&O.removeAttribute("href"))};
_.b.onThumbnailContainerClick=function(O){if(this.data&&this.data.navigationEndpoint){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(e,O,!0);O.stopPropagation()}};
_.b.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.b.impressionLog=function(){var O=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var x,e,l=(e=_.q((x=this.data)==null?void 0:x.onImpression,_.ih))==null?void 0:e.commands;l&&(l.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;_.GG().resolve(_.Xc).resolveCommand(C,{form:{element:O.hostElement}})}),this.data.impressionsFired=!0)}};
_.Dy.Object.defineProperties(tH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15568_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tH.prototype.onDataChanged=tH.prototype.onDataChanged;tH.JSC$15567_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tH.JSC$15567_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"}];_.B([_.V(g_),_.v("design:type",Object)],tH.prototype,"ytdActiveViewBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],tH.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],tH.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],tH.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],tH.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tH.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],tH.prototype,"isInlinePreviewTriggered",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],tH.prototype,"miniMode",void 0);_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],tH.prototype,"thumbnail",void 0);
_.B([_.kX("#dismissible"),_.v("design:type",HTMLElement)],tH.prototype,"JSC$15568_dismissibleMedia",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tH.prototype,"onDataChanged",null);_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],tH.prototype,"isHovered",null);_.B([_.H({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tH);
_.n(tH,"ytd-video-display-full-buttoned-renderer",function(){if(DWp!==void 0)return DWp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return DWp=O},{mode:1});var n5=function(O,x,e,l){l=l===void 0?!1:l;_.ew.call(this,O);this.adsClientErrorMessage=e;this.aggressivelySample=l;this.args=[];x&&this.args.push(x)};
_.c(n5,_.ew);var K5=function(O,x,e,l){l=l===void 0?!1:l;_.ew.call(this,O);this.adsClientErrorMessage=e;this.aggressivelySample=l;this.args=[];x&&this.args.push(x)};
_.c(K5,_.ew);var Gw$=function(O){_.h0.call(this);var x=this;this.initializationFunction=O;this.instance=null;this.addOnDisposeCallback(function(){_.Lf(x.instance);x.instance=null})};
_.c(Gw$,_.h0);Gw$.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.m8("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var sZr=function(){var O=new Map;[].forEach(function(x){O.set(x.JSC$30733_getType(),x)});
this.getters=O};new Promise(function(){});var pGn=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"]]),IIr=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"}]]),FJT=function(O){this.experimentApiProvider=O;O=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=O<.1};var qe=function(O,x,e,l){_.h0.call(this);this.adsControlFlowEventListeners=x;this.adEventLogger=e;this.experimentApiProvider=l;this.adsControlFlowManagerHelper=O(this,this,this,this,this);_.qq(this,this.adsControlFlowManagerHelper);O=_.T(x);for(x=O.next();!x.done;x=O.next())_.qq(this,x.value)};
_.c(qe,_.h0);var X9$=function(O,x,e,l){Pf(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",x,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l);O=_.T(O.adsControlFlowEventListeners);for(l=O.next();!l.done;l=O.next())X9$(l.value,x,e)};
_.b=qe.prototype;_.b.onOpportunityProcessedExternallyManaged=function(O,x,e,l){Pf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",O,e,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l)};
_.b.onSlotReceivedExternallyManaged=function(O,x){cf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",O,x)};
_.b.onSlotEntered=function(O){if(Ib(this.adsControlFlowManagerHelper,O)!=null){cf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",O);this.adsControlFlowManagerHelper.onSlotEntered(O);for(var x=_.T(this.adsControlFlowEventListeners),e=x.next();!e.done;e=x.next())e.value.onSlotEntered(O);if(Ib(this.adsControlFlowManagerHelper,O)!=null&&Ib(this.adsControlFlowManagerHelper,O).isOccupyingSlotType()&&V3(this.adsControlFlowManagerHelper,O)&&!o$$(this.adsControlFlowManagerHelper,O)){var l;pN(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",O,(l=V3(this.adsControlFlowManagerHelper,O))!=null?l:void 0);O=Ib(this.adsControlFlowManagerHelper,O);O.slotLifecycleStage!=="entered"&&Rb(O.slot,O.slotLifecycleStage,"enterLayoutForSlot");O.slotLifecycleStage="rendering";O.registeredLayoutRenderingAdapter.startRendering(O.layout)}}};
_.b.onSlotExited=function(O){if(Ib(this.adsControlFlowManagerHelper,O)!=null){cf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",O);this.adsControlFlowManagerHelper.onSlotExited(O);for(var x=_.T(this.adsControlFlowEventListeners),e=x.next();!e.done;e=x.next())e.value.onSlotExited(O);Ib(this.adsControlFlowManagerHelper,O)!=null&&Ib(this.adsControlFlowManagerHelper,O).markedForUnscheduleAfterOutboundAdapterRequests&&yWL(this,O)}};
_.b.onLayoutReceivedExternallyManaged=function(O,x,e){O.managerLayer!=="core"&&pN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",O,x,e)};
var ZX4=function(O,x,e){if(Ib(O.adsControlFlowManagerHelper,x)!=null){pN(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",x,e);O=_.T(O.adsControlFlowEventListeners);for(var l=O.next();!l.done;l=O.next())ZX4(l.value,x,e)}};
qe.prototype.onLayoutExited=function(O,x,e){if(Ib(this.adsControlFlowManagerHelper,O)!=null){pN(this.adEventLogger,Vyw(e),O,x);this.adsControlFlowManagerHelper.onLayoutExited(O,x);for(var l=_.T(this.adsControlFlowEventListeners),C=l.next();!C.done;C=l.next())C.value.onLayoutExited(O,x,e);(e=V3(this.adsControlFlowManagerHelper,O))&&x.layoutId===e.layoutId&&E$L(this,O)}};
qe.prototype.disposeInternal=function(){var O=tFF(this.adsControlFlowManagerHelper);O=_.T(O);for(var x=O.next();!x.done;x=O.next())yWL(this,x.value);_.h0.prototype.disposeInternal.call(this)};
var yWL=function(O,x){if(Ib(O.adsControlFlowManagerHelper,x)!=null)if(Ib(O.adsControlFlowManagerHelper,x).JSC$30763_isSlotExitRequested()||Ib(O.adsControlFlowManagerHelper,x).JSC$30763_isLayoutExitRequested())Ib(O.adsControlFlowManagerHelper,x).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Ib(O.adsControlFlowManagerHelper,x).isOccupyingSlotType())Ib(O.adsControlFlowManagerHelper,x).markedForUnscheduleAfterOutboundAdapterRequests=!0,E$L(O,x);else if(Ib(O.adsControlFlowManagerHelper,x).JSC$30763_isSlotFillRequested())Ib(O.adsControlFlowManagerHelper,
x).markedForUnscheduleAfterOutboundAdapterRequests=!0,Ib(O.adsControlFlowManagerHelper,x)!=null&&(cf(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",x),x=Ib(O.adsControlFlowManagerHelper,x),x.fulfillmentLifecycleStage="fill_cancel_requested",x.registeredFulfillmentAdapter.cancelSlotFilling());else{var e=V3(O.adsControlFlowManagerHelper,x),l;O.experimentApiProvider.get();(l=_.t("h5_enable_layout_unscheduling_events"))&&(e?qRN(O,x,e):_.m8(Error("Sh"),x,e,void 0,!1));cf(O.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",x);var C=Ib(O.adsControlFlowManagerHelper,x),Q=x.slotEntryTrigger,L=C.registeredSlotEntryTriggerAdapters.get(Q.triggerId);L&&(L.unregisterTrigger(Q),C.registeredSlotEntryTriggerAdapters.delete(Q.triggerId));Q=_.T(x.slotFulfillmentTriggers);for(L=Q.next();!L.done;L=Q.next()){L=L.value;var k=C.registeredFulfillmentTriggerAdapters.get(L.triggerId);k&&(k.unregisterTrigger(L),C.registeredFulfillmentTriggerAdapters.delete(L.triggerId))}Q=_.T(x.slotExpirationTriggers);
for(L=Q.next();!L.done;L=Q.next())if(L=L.value,k=C.registeredExpirationTriggerAdapters.get(L.triggerId))k.unregisterTrigger(L),C.registeredExpirationTriggerAdapters.delete(L.triggerId);C.hasLayout()&&(Q=C.layout,Uj(C,Q.layoutExitNormalTriggers),Uj(C,Q.layoutExitSkipTriggers),Uj(C,Q.layoutExitMuteTriggers),Uj(C,Q.layoutExitUserInputSubmittedTriggers),Uj(C,Q.layoutExitUserCancelledTriggers));C.registeredFulfillmentAdapter=void 0;C.registeredSlotAdapter!=null&&(C.registeredSlotAdapter.release(),C.registeredSlotAdapter=
void 0);C.registeredLayoutRenderingAdapter!=null&&(C.registeredLayoutRenderingAdapter.release(),C.registeredLayoutRenderingAdapter=void 0);C=O.adsControlFlowManagerHelper;Ib(C,x)&&(C=PCd(C,x.slotType+"_"+x.slotPhysicalPosition))&&C.delete(x.slotId);cf(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",x);O=_.T(O.adsControlFlowEventListeners);for(C=O.next();!C.done;C=O.next())C=C.value,C.onSlotUnscheduled(x),e&&!l&&qRN(C,x,e)}},qRN=function(O,x,e){pN(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
x,e);
pN(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",x,e);O=_.T(O.adsControlFlowEventListeners);for(var l=O.next();!l.done;l=O.next())l=l.value,e&&qRN(l,x,e)},E$L=function(O,x){if(Ib(O.adsControlFlowManagerHelper,x)!=null&&Ib(O.adsControlFlowManagerHelper,x).isOccupyingSlotType()){var e=V3(O.adsControlFlowManagerHelper,x);
if(e&&o$$(O.adsControlFlowManagerHelper,x)){if(Ib(O.adsControlFlowManagerHelper,x)!=null){var l=O.adEventLogger,C;var Q=((C=IIr.get("abandoned"))==null?void 0:C.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";pN(l,Q,x,e);O=Ib(O.adsControlFlowManagerHelper,x);O.slotLifecycleStage!=="rendering"&&Rb(O.slot,O.slotLifecycleStage,"exitLayout");O.slotLifecycleStage="rendering_stop_requested";O.registeredLayoutRenderingAdapter.stopRendering(e,"abandoned")}}else{cf(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
x);try{l=Ib(O.adsControlFlowManagerHelper,x);if(!l)throw new K5("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");l.slotLifecycleStage!=="enter_requested"&&l.slotLifecycleStage!=="entered"&&l.slotLifecycleStage!=="rendering"&&Rb(l.slot,l.slotLifecycleStage,"exitSlot");l.slotLifecycleStage="exit_requested";if(l.registeredSlotAdapter===void 0)throw l.slotLifecycleStage="scheduled",new K5("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
l.registeredSlotAdapter.exit()}catch(L){L instanceof K5&&L.adsClientErrorMessage?(cWR(O.adEventLogger,L.adsClientErrorMessage,x),_.m8(L,x,void 0,void 0,L.aggressivelySample)):(cWR(O.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",x),_.m8(L,x))}}}};var ab=function(O,x,e,l,C,Q){_.h0.call(this);this.registry=O;this.experimentApiProvider=Q;this.slotMap=new Map};
_.c(ab,_.h0);var PCd=function(O,x){return(O=O.slotMap.get(x))?O:new Map},Ib=function(O,x){return PCd(O,x.slotType+"_"+x.slotPhysicalPosition).get(x.slotId)},tFF=function(O){var x=[];
O.slotMap.forEach(function(e){e=_.T(e.values());for(var l=e.next();!l.done;l=e.next())x.push(l.value.slot)});
return x};
ab.prototype.onSlotEntered=function(O){O=Ib(this,O);O.slotLifecycleStage!=="enter_requested"&&Rb(O.slot,O.slotLifecycleStage,"onSlotEntered");O.slotLifecycleStage="entered"};
var o$$=function(O,x){O=Ib(O,x);return O.hasLayout()&&O.isRendering()},V3=function(O,x){(O=Ib(O,x))?O.hasLayout()&&!O.layout&&_.m8("Unexpected empty layout",x):_.m8("Unexpected undefined slotState",x);
return(O==null?void 0:O.layout)||null};
ab.prototype.onSlotExited=function(O){O=Ib(this,O);O.slotLifecycleStage!=="exit_requested"&&Rb(O.slot,O.slotLifecycleStage,"onSlotExited");O.slotLifecycleStage="scheduled"};
ab.prototype.onLayoutExited=function(O,x){O=Ib(this,O);O.isPrimaryLayout(x)&&(O.slotLifecycleStage!=="rendering_stop_requested"&&Rb(O.slot,O.slotLifecycleStage,"onLayoutExited"),O.slotLifecycleStage="entered")};
var Uj=function(O,x){x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=O.registeredLayoutExitTriggerAdapters.get(e.triggerId);l&&(l.unregisterTrigger(e),O.registeredLayoutExitTriggerAdapters.delete(e.triggerId))}},Rb=function(O,x,e){_.m8("Slot stage was "+x+" when calling method "+e,O)};var VF3=function(O){_.h0.call(this);this.deps=O;this.JSC$15618_adsControlFlowManager=Iop(this)};
_.c(VF3,_.h0);var Iop=function(O){var x=new qe(function(e,l,C,Q){return new ab(O.deps.registry,e,l,C,Q,O.deps.experimentApiProvider)},new Set(mGi(O.deps.registry).concat(O.deps.listeners)),O.deps.adEventLogger,O.deps.experimentApiProvider);
_.qq(O,x);return x};var $9N=function(){};var p9F=function(O,x){_.h0.call(this);this.experimentApiProvider=O;this.eventLoggingSettingsProvider=x;this.eventCount=0;this.premiumAdSeenEventLogger=i1L()()};
_.c(p9F,_.h0);p9F.prototype.logEvent=function(O){Pf(this,O)};
var cf=function(O,x,e,l){Pf(O,x,void 0,void 0,void 0,e,void 0,void 0,void 0,e.adSlotLoggingData,void 0,void 0,l)},pN=function(O,x,e,l,C){Pf(O,x,void 0,void 0,void 0,e,l?l:void 0,void 0,void 0,e.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,void 0,C);
e=_.GG().resolve(_.D0(rl))==null?void 0:HH();x=e==null?void 0:e.adsSeenHotConfig;e=e==null?void 0:e.adsHotConfig;(x==null?0:x.logOnAdsSeen)&&(e==null?0:e.webEnablePremiumAdsSeenLogging)&&RHJ(O,l?l:void 0,C)},cWR=function(O,x,e){Pf(O,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,e,void 0,void 0,void 0,e.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:x})},Pf=function(O,x,e,l,C,Q,L,k,M,G,X,y,Z){Z=Z===void 0?0:Z;
UW4(O.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+x,"slot:",Q,"layout:",L,"ping:",k,"Opportunity:",{opportunityType:e,associatedSlotId:l,slotsFromOpportunity:C,triggerBundle:M,adSlotLoggingData:G,adLayoutLoggingData:X});try{var E=function(){O.experimentApiProvider.get();if(x!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){x||_.m8("Empty PACF event type",Q,L);var P=O.eventLoggingSettingsProvider.get();var U;(U=P.alwaysIncludeDebugData)||(P.experimentApiProvider.get(),U=
!1);P=U;U={eventType:x,eventOrder:++O.eventCount};var W={};Q&&(W.slotData=UGm(P,Q));if(L){var z={type:L.layoutType,controlFlowManagerLayer:pGn.get(L.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};P&&(z.debugData={layoutId:L.layoutId});W.layoutData=z}k&&(W.pingData={pingDispatchStatus:k.dispatchStatus,serializedAdPingMetadata:k.ping.serializedAdPingMetadata,pingIndex:k.index});M&&(W.triggerData=RMr(M.trigger,M.category));e&&(W.opportunityData=aIi(P,e,l,C));U.adClientData=W;G&&(U.serializedSlotAdServingData=
G.serializedSlotAdServingDataEntry);X&&(U.serializedAdServingData=X.serializedAdServingDataEntry);y&&(U.errorInfo=y);_.uU("adsClientStateChange",{adsClientEvent:U})}};
Z&&Z>0?_.zl(_.Xu(),function(){return E()},Z):E()}catch(P){UW4(O.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.zl(_.Xu(),function(){_.m8(P instanceof Error?P:String(P),Q,L,{pacf_message:"exception during pacf logging"})})}},RHJ=function(O,x,e){if(x){var l=x.adLayoutLoggingData;
_.zl(_.Xu(),function(){O.premiumAdSeenEventLogger!=null&&l&&_.uU("adsSeenClientLogging",{serializedAdServingDataEntry:l.serializedAdServingDataEntry})},e!=null?e:0)}};var ao$=function(O,x){p9F.call(this,O,x)};
_.c(ao$,p9F);var mWR=function(){},UW4=function(O,x){return _.t(x)};var WJ3=function(){var O=new sJ4;this.JSC$15643_adsControlFlowManager=(new VF3(O)).JSC$15618_adsControlFlowManager},sJ4=function(){_.h0.call(this);
var O=this;this.experimentApiProvider=new Gw$(function(){return new mWR});
var x=new Gw$(function(){return new FJT(O.experimentApiProvider)});
this.adEventLogger=new ao$(this.experimentApiProvider,x);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.c(sJ4,_.h0);var hH3=function(){},zHJ,re=function(){zHJ||(zHJ=new hH3);
return zHJ},Hf=function(O){if(!O.JSC$15654_externallyManagedSlotAdapterCallback){var x=(new WJ3).JSC$15643_adsControlFlowManager;
O.JSC$15654_externallyManagedSlotAdapterCallback=x}return O.JSC$15654_externallyManagedSlotAdapterCallback},rW3=function(O,x,e){var l=x.opportunityType,C=Error("Th");
if(l!==void 0){var Q=Hf(O);X9$(Q,l,void 0,e)}else _.m8(C,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});Q=[];if(x.adSlotAndLayoutMetadata!==void 0){x=_.T(x.adSlotAndLayoutMetadata);for(var L=x.next();!L.done;L=x.next()){var k=L.value;if(L=k.adSlotMetadata)if(Q.push(L),O.onSlotReceivedExternallyManaged(L,e),k.adLayoutMetadata){k=_.T(k.adLayoutMetadata);for(var M=k.next();!M.done;M=k.next())O.onLayoutReceivedExternallyManaged(L,M.value,e)}else e>0&&_.m8("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
l,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else e>0&&_.m8("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+l,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else e>0&&_.m8("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+l,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(l!==void 0)O.onOpportunityProcessedExternallyManaged(l,Q,void 0,e);else _.m8(C,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
hH3.prototype.onSlotReceivedExternallyManaged=function(O,x){O=dY(O);if(O instanceof K5)_.m8(O,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Hf(this).onSlotReceivedExternallyManaged(O,x)};
hH3.prototype.onLayoutReceivedExternallyManaged=function(O,x,e){O=dY(O);x=W9i(x);if(O instanceof K5)_.m8(O,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(x instanceof n5)_.m8(x,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Hf(this).onLayoutReceivedExternallyManaged(O,x,e)};
hH3.prototype.onOpportunityProcessedExternallyManaged=function(O,x,e,l){var C=[];x=_.T(x);for(var Q=x.next();!Q.done;Q=x.next())Q=dY(Q.value),Q instanceof K5?_.m8(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):C.push(Q);Hf(this).onOpportunityProcessedExternallyManaged(O,C,e,l)};
var HXd=function(O,x){x=dY(x);if(x instanceof K5)_.m8(x,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var e=Hf(O);cf(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",x);e=_.T(e.adsControlFlowEventListeners);for(var l=e.next();!l.done;l=e.next())l=Ib(l.value,x),l.slotLifecycleStage!=="not_scheduled"&&Rb(l.slot,l.slotLifecycleStage,"onSlotScheduled"),l.slotLifecycleStage="scheduled";O=Hf(O);cf(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",x);O=_.T(O.adsControlFlowEventListeners);
for(e=O.next();!e.done;e=O.next())e.value.onSlotEntered(x)}},KJF=function(O,x){x=dY(x);
if(x instanceof K5)_.m8(x,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var e=Hf(O);cf(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",x);e=_.T(e.adsControlFlowEventListeners);for(var l=e.next();!l.done;l=e.next())l.value.onSlotExited(x);O=Hf(O);cf(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",x);O=_.T(O.adsControlFlowEventListeners);for(e=O.next();!e.done;e=O.next())e.value.onSlotUnscheduled(x)}},dWL=function(O,x,e){x=dY(x);
e=W9i(e);if(x instanceof K5)_.m8(x,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(e instanceof n5)_.m8(e,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var l=Hf(O);pN(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",x,e);l=_.T(l.adsControlFlowEventListeners);for(var C=l.next();!C.done;C=l.next())C.value.onLayoutScheduled(x,e);O=Hf(O);pN(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",x,e);O=_.T(O.adsControlFlowEventListeners);
for(l=O.next();!l.done;l=O.next())ZX4(l.value,x,e)}},KN=function(O,x,e){x=dY(x);
e=W9i(e);if(x instanceof K5)_.m8(x,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(e instanceof n5)_.m8(e,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var l=Hf(O);pN(l.adEventLogger,Vyw("normal"),x,e);l=_.T(l.adsControlFlowEventListeners);for(var C=l.next();!C.done;C=l.next())C.value.onLayoutExited(x,e,"normal");O=Hf(O);O=_.T(O.adsControlFlowEventListeners);for(l=O.next();!l.done;l=O.next())qRN(l.value,x,e)}};_.de=_.K(function(O){var x=_.YX(O,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});O=Object.assign({},x);var e=x.data;x=x.customCommandResolver;var l=(delete O.data,delete O.customCommandResolver,O);O=_.F6({visibilityCallback:function(k,M){var G,X=(G=e().interaction)==null?void 0:G.onFirstVisible;k&&(X&&_.me(X),l.setOnErrorHandler()&&hM$(M))},
showOption:_.yB});x=_.p5(function(){return e().interaction},x,function(){var k;
return(k=l.listenToTapEvent)==null?void 0:k.call(l)});
var C=_.T(_.Iw(!1,void 0,"wAC0Lc")),Q=C.next().value,L=C.next().value;C=_.lk(function(k){var M;((M=l.setTouchEndHandler)==null?0:M.call(l))&&!Q()&&(k.currentTarget.click(),L(!0),setTimeout(function(){L(!1)},100));
return!1});
return _.D("ad-image-view-model",{class:function(){var k,M=[((k=e().interaction)==null?0:k.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],G;((G=l.isGridViewEnabled)==null?0:G.call(l))&&M.push("ytwAdImageViewModelHostInGridView");return M.join(" ")},
el:_.Y0(O,x),"on:touchend":C},_.D("div",{class:"ytwAdImageViewModelHostImageContainer"},_.D(_.n_,{data:function(){var k;return{sources:e().imageSources,contentMode:(k=e().imageProperties)==null?void 0:k.contentMode}},
alt:function(){var k,M;return((k=e().interaction)==null?void 0:(M=k.accessibility)==null?void 0:M.label)||""},
targetHeight:l.targetHeight,targetWidth:l.targetWidth,preserveHeight:l.preserveHeight,preserveWidth:l.preserveWidth,useWidth:l.useWidth,style:function(){var k,M;return"vertical-align: bottom;"+(((k=e().background)==null?0:k.color)?"background-color:"+_.UA((M=e().background)==null?void 0:M.color)+";":"")},
className:function(){return l.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var k,M;return(M=(k=l.setDraggable)==null?void 0:k.call(l))!=null?M:void 0}})))},"jc");var n$L=_.K(function(O){var x=O.data,e=O.listenToTapEvent,l=function(){};
return _.D("ad-button-hover-overlay-view-model",{"on:click":_.lk(function(C){if(_.t("enable_web_home_top_landscape_image_layout_legacy_click_command")){var Q,L=(Q=x().interaction)==null?void 0:Q.onTap;L&&_.wr(C.currentTarget,"yt-navigate",{endpoint:_.p_(L)})}}),
class:function(){var C;return((C=x().interaction)==null?0:C.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(C){var Q,L=(Q=x().interaction)==null?void 0:Q.onFirstVisible;C&&L&&_.me(L)},
showOption:_.yB}),_.p5(function(){return x().interaction},void 0,function(){return!_.t("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(e==null?void 0:e())}))},function(){return _.t("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.D(_.MR,{data:function(){return x().button}},{adButtonViewModel:function(C){return _.D(_.EL,{data:C.data,
customCommandResolver:l})}}):_.D(_.MR,{data:function(){return x().button}},{adButtonViewModel:_.EL})}())},"kc");var uw;_.wP(_.K(function(O){var x=O.data;O=_.F6({visibilityCallback:function(k,M){if(k){var G;(k=(G=x().interaction)==null?void 0:G.onFirstVisible)&&_.me(k);var X;if(G=(X=x().adLayoutData)==null?void 0:X.activeViewData)Yp(M,G),_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B8(M)})}else _.t("stop_av_measurement_on_detach")&&B8(M)},
showOption:_.yB,hideOption:ZZ});var e=_.p5(function(){return x().interaction},void 0,function(){return!0}),l=_.T(_.Iw(!1,void 0,"VNDDT")),C=l.next().value,Q=l.next().value;
l=_.lk(function(){Q(!0)});
var L=_.lk(function(){Q(!1)});
return _.D("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Y0(O,uU$,e),"on:mouseenter":l,"on:mouseleave":L},_.D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.T7({"max-width":function(){return _.t("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.D("div",{class:function(){var k;
a:{var M;switch((k=_.q(x().thumbnailImage,VDL))==null?void 0:(M=k.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":k="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":k="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}k=void 0}return k}},_.D(_.MR,{data:function(){return x().thumbnailImage}},{adImageViewModel:function(k){return _.D(_.de,
{data:k.data,
listenToTapEvent:!0,setTouchEndHandler:_.t("enable_top_landscape_image_experiment_dom_id_web")})}})),_.D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.D(_.F,{cond:function(){var k,M,G;
return(k=_.q(x().thumbnailImage,VDL))==null?void 0:(M=k.imageProperties)==null?void 0:(G=M.overlayIcon)==null?void 0:G.iconImage},
then:function(k){return _.D(_.n_,{data:k,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.D("div",{class:function(){return C()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.D(_.MR,{data:function(){return x().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(k){return _.D(n$L,
{data:k.data,
listenToTapEvent:!0})}}))),_.D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.D(_.MR,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:function(k){return _.D(R4,{data:k.data,
listenToTapEvent:!0,setTouchEndHandler:_.t("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;O=_.F6({visibilityCallback:function(k,M){if(k){var G;(k=(G=x().interaction)==null?void 0:G.onFirstVisible)&&_.me(k);var X;if(G=(X=x().adLayoutData)==null?void 0:X.activeViewData)Yp(M,G),_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B8(M)})}else _.t("stop_av_measurement_on_detach")&&B8(M)},
showOption:_.yB,hideOption:ZZ});var e=_.Dl(_.p7),l=_.p5(function(){return x().interaction}),C={},Q={},L={};
return _.D("square-image-layout-view-model",{class:_.xz("ytwSquareImageLayoutViewModelHost",(C.ytwSquareImageLayoutViewModelHostColumn=e,C)),el:_.Y0(O,Yp8,l)},_.D("div",{class:_.xz("ytwSquareImageLayoutViewModelHostImage",(Q.ytwSquareImageLayoutViewModelHostColumnImage=e,Q))},function(){return _.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(k){return _.D(_.de,{data:k.data,
isGridViewEnabled:e,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.D("div",{class:_.xz("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(L.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=e,L))},_.D(_.MR,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:R4}),function(){return _.D(_.MR,{data:function(){return x().adButton}},{adButtonViewModel:function(k){var M={};
return _.D(_.EL,{data:k.data,className:_.xz((M.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,M.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=e,M))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=O.noBottomMargin;var l=O.typographyBump;O=_.F6({visibilityCallback:function(y,Z){if(y){var E;(y=(E=x().interaction)==null?void 0:E.onFirstVisible)&&_.me(y);var P;if(E=(P=x().adLayoutData)==null?void 0:P.activeViewData)Yp(Z,E),_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B8(Z)})}else _.t("stop_av_measurement_on_detach")&&B8(Z)},
showOption:_.yB,hideOption:ZZ});var C=_.p5(function(){return x().interaction},void 0,function(){return _.t("enable_web_home_top_landscape_image_layout_level_click")}),Q=function(){return x().interaction};
Q!==void 0&&Q!==null||_.OC(Error("Uh"));var L=function(){var y,Z,E;return(y=_.q(x().thumbnailImage,VDL))==null?void 0:(Z=y.background)==null?void 0:(E=Z.backgroundImageSource)==null?void 0:E.imageSources};
Q=_.T(_.Iw(!1,void 0,"NFjwje"));var k=Q.next().value,M=Q.next().value;Q=_.lk(function(){M(!0)});
var G=_.lk(function(){M(!1)}),X=function(){return k()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.D("top-landscape-image-layout-view-model",{class:function(){var y;return((y=x().interaction)==null?0:y.onTap)&&_.t("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Y0(O,BdV,C),"on:mouseenter":Q,"on:mouseleave":G},_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.D(_.F,{cond:function(){return L()&&L().length>0},
then:function(){return _.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.T7({top:"0","background-image":function(){return"url("+String(L()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.D(_.F,{cond:function(){return!!x().adButtonHoverOverlay},
then:function(){return _.D("div",{class:X},_.D(_.MR,{data:function(){return x().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:n$L}))}}),_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.D(_.MR,{data:function(){return x().thumbnailImage}},{adImageViewModel:function(y){return _.D(_.de,{data:y.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.t("enable_web_home_top_landscape_image_layout_level_click")})}})),_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.D(_.n_,{data:{sources:[{clientResource:{imageName:_.t("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.D(_.MR,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.D(R4,{data:y.data,
noBottomMargin:function(){return e==null?void 0:e()},
listenToTapEvent:function(){return _.t("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return l==null?void 0:l()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.Ld,
noBottomMargin:_.Ld,typographyBump:_.Ld}});var uh4=_.K(function(O){var x=O.data,e=_.F6({visibilityCallback:function(C){var Q,L=(Q=x().interaction)==null?void 0:Q.onFirstVisible;C&&L&&_.me(L)},
showOption:_.yB});O=_.p5(function(){return x().interaction},O.customCommandResolver);
var l={};return _.D("ad-text-image-view-model",{class:_.xz("ytwAdTextImageViewModelHost",(l.ytwAdTextImageViewModelHostDarkBackground=function(){return x().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},l)),
el:_.Y0(e,O),"aria-label":function(){var C,Q;return(C=x().interaction)==null?void 0:(Q=C.accessibility)==null?void 0:Q.label}},_.D("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.D(_.TT,{text:function(){return x().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.D(_.F,{cond:function(){return x().overlayIcon},
then:function(C){return _.D("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.D(_.n_,{data:C,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var YRT=_.K(function(O){var x=O.data;return _.D("feed-ad-sitelink-view-model",{class:function(){var e;return((e=x().interaction)==null?0:e.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Y0(_.p5(function(){return x().interaction},O.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var e,l;return(e=x().interaction)==null?void 0:(l=e.accessibility)==null?void 0:l.label},
role:"link",tabindex:0},_.D(_.TT,{text:function(){return x().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var BRk=_.K(function(O){var x=O.data;O={};return _.D("feed-ad-sitelinks-carousel-view-model",{el:_.Y0(_.F6({visibilityCallback:function(e){var l,C=(l=x().interaction)==null?void 0:l.onFirstVisible;e&&C&&_.me(C)},
showOption:_.yB})),class:_.xz("ytwFeedAdSitelinksCarouselViewModelHost",(O.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return x().style==="FEED_AD_SITELINKS_STYLE_NONE"},O))},_.D(_.MR,{data:function(){return x().sitelinks}},{feedAdSitelinkViewModel:YRT}))},"qc");_.wP(_.K(function(O){var x=O.data;O=_.F6({visibilityCallback:function(L,k){if(L){var M;(L=(M=x().interaction)==null?void 0:M.onFirstVisible)&&_.me(L);var G;(M=(G=x().adLayoutData)==null?void 0:G.activeViewData)&&Yp(k,M)}},
showOption:_.yB});var e=_.T(_.Iw(!1,void 0,"BzPhl")),l=e.next().value,C=e.next().value;e=_.lk(function(){C(!0)});
var Q=_.lk(function(){C(!1)});
return _.D("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Y0(O),"on:mouseenter":e,"on:mouseleave":Q},_.D("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.D("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.D(_.MR,{data:function(){return x().textImage}},{adTextImageViewModel:uh4})),_.D("div",{class:function(){return l()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.D(_.MR,{data:function(){return x().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(L){return _.D(n$L,{data:L.data,
listenToTapEvent:!0})}}))),_.D("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.D(_.MR,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:function(L){return _.D(R4,{data:L.data,
listenToTapEvent:!0})}}),_.D(_.MR,{data:function(){return x().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:BRk})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=O.typographyBump;return _.D("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Y0(_.F6({visibilityCallback:function(l,C){if(l){var Q;(l=(Q=x().interaction)==null?void 0:Q.onFirstVisible)&&_.me(l);var L;(Q=(L=x().adLayoutData)==null?void 0:L.activeViewData)&&Yp(C,Q)}},
showOption:_.yB,hideOption:ZZ}))},_.D("div",null,_.D(_.MR,{data:function(){return x().videoLockup}},{lockupViewModel:function(l){return _.D(_.UL,{data:l.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:e})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.Ld,
noBottomMargin:_.Ld,typographyBump:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=O.className;var l=O.typographyBump;return _.D("video-display-compact-button-group-layout-view-model",{el:_.Y0(_.F6({visibilityCallback:function(C,Q){if(C){var L;(C=(L=x().interaction)==null?void 0:L.onFirstVisible)&&_.me(C);var k;(L=(k=x().adLayoutData)==null?void 0:k.activeViewData)&&Yp(Q,L)}},
showOption:_.yB})),class:_.xz("videoDisplayCompactButtonGroupLayoutViewModelHost",e)},_.D(_.MR,{data:function(){return x().videoLockup}},{lockupViewModel:function(C){return _.D(_.UL,{data:C.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:l})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Ld,
className:_.Ld,typographyBump:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=O.className;var l=O.typographyBump;return _.D("video-display-compact-buttoned-layout-view-model",{el:_.Y0(_.F6({visibilityCallback:function(C,Q){if(C){var L;(C=(L=x().interaction)==null?void 0:L.onFirstVisible)&&_.me(C);var k;(L=(k=x().adLayoutData)==null?void 0:k.activeViewData)&&Yp(Q,L)}},
showOption:_.yB})),class:_.xz("videoDisplayCompactButtonedLayoutViewModelHost",e)},_.D(_.MR,{data:function(){return x().videoLockup}},{lockupViewModel:function(C){return _.D(_.UL,{data:C.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:l})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Ld,
className:_.Ld,typographyBump:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=O.className;var l=O.typographyBump;var C=function(){return x().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},Q=_.Dl(_.p7);
O=_.F6({visibilityCallback:function(G,X){if(G){var y=x();G=y.adLayoutData;var Z;(y=(Z=y.interaction)==null?void 0:Z.onFirstVisible)&&_.me(y);(Z=G==null?void 0:G.activeViewData)&&Yp(X,Z)}},
showOption:_.yB});var L=_.aw(function(){return{containerType:C()&&Q()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),k=_.aw(function(){return C()&&Q()?"":C()?"168px":"50%"},void 0,"qNDzkb"),M=_.aw(function(){return C()&&Q()?9999:void 0},void 0,"Ikn8Kb");
return _.D("video-display-compact-layout-view-model",{el:_.Y0(O),class:_.xz("videoDisplayCompactLayoutViewModelHost",e)},_.D(_.MR,{data:function(){return x().videoLockup}},{lockupViewModel:function(G){return _.D(_.UL,{data:G.data,
containerLayoutConfig:L,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:k,thumbnailTargetWidth:M,typographyBump:l})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.Ld,
className:_.Ld,typographyBump:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=O.typographyBump;return _.D("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Y0(_.F6({visibilityCallback:function(l,C){if(l){var Q;(l=(Q=x().interaction)==null?void 0:Q.onFirstVisible)&&_.me(l);var L;(Q=(L=x().adLayoutData)==null?void 0:L.activeViewData)&&Yp(C,Q)}},
showOption:_.yB,hideOption:ZZ}))},_.D("div",null,_.D(_.MR,{data:function(){return x().videoLockup}},{lockupViewModel:function(l){return _.D(_.UL,{data:l.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:e})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.Ld,
noBottomMargin:_.Ld,typographyBump:_.Ld}});_.v$4=_.K(function(O){var x=O.data;O=_.Q5("ad-card-badge-view-model");return _.D("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:O},_.D(_.F,{cond:function(){return x().imageBadge},
then:function(e){return _.D(_.n_,{data:e,alt:""})}}))},"xc");var foJ=_.K(function(O){var x=O.data;var e=O.customCommandResolver;return _.D("carousel-ad-card-image-view-model",{class:function(){var l;return((l=x().interaction)==null?0:l.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB}),_.p5(function(){return x().interaction},e)),
"aria-label":function(){var l,C;return(l=x().interaction)==null?void 0:(C=l.accessibility)==null?void 0:C.label}},_.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(l){return _.D(_.de,{data:l.data,
customCommandResolver:e})}}),_.D("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.D(_.MR,{data:function(){return x().badge}},{adCardBadgeViewModel:_.v$4})),_.D(_.ct,{model:{color:4}}))},"yc");var JWk=_.K(function(O){var x=_.T(_.Iw(0,void 0,"JJ0QQc")),e=x.next().value;x.next();var l=x.next().value,C=_.T(_.Iw(!1,void 0,"f6YICe"));x=C.next().value;var Q=C.next().value,L;_.YO(function(){clearTimeout(L)});
C=_.lk(function(){var G;((G=O.animate)==null?0:G.call(O))?(Q(!0),L=setTimeout(function(){Q(!1);k()},200)):k();
return!1});
var k=function(){l(function(G){return(G+O.numShownItems())%O.data().length})},M={};
return _.D("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.D("div",{class:_.xz("ytwHorizontalCarouselCarouselWrapper")},_.D("div",{class:_.xz("ytwHorizontalCarouselCarouselInnerWrapper",(M.ytwHorizontalCarouselAnimating=x,M))},_.D(_.HE,{each:O.data,keyBy:"INDEX"},function(G,X){return _.D("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.T7({"flex-basis":function(){return"calc((100% - (8px * "+(O.numShownItems()-1)+")) / "+O.numShownItems()+")"},
order:function(){var y=X-e();y<0&&(y+=O.data().length);return y}})},O.children(G,X))}))),_.D("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":C},O.nextButton()))},"zc");var w9R=_.K(function(O){var x=O.data;var e=O.customCommandResolver;var l=O.expansive;return _.D("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Y0(_.F6({visibilityCallback:function(C){var Q,L=(Q=x().interaction)==null?void 0:Q.onFirstVisible;C&&L&&_.me(L)},
showOption:_.yB}))},_.D(JWk,{data:function(){var C;return((C=x())==null?void 0:C.carouselAdCards)||[]},
nextButton:function(){return _.D(_.MR,{data:function(){return x().nextButton}},{buttonViewModel:function(C){var Q=C.data;
return _.D(_.RV,{data:function(){return(l==null?0:l())?Object.assign({},Q(),{style:"mono"}):Q()},
className:_.t("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(C){return _.D(_.MR,{data:C},{carouselAdCardImageViewModel:function(Q){return _.D(foJ,{data:Q.data,customCommandResolver:e})}})}))},"Ac");var SR2=_.K(function(O){var x=O.data;var e=O.customCommandResolver;var l=O.className;var C=O.buttonClassName;var Q=O.animationEntityKey;var L=O.expansive;return _.D("carousel-button-view-model",{class:_.xz("ytwCarouselButtonViewModelHost",l)},_.D(_.MR,{data:function(){return x().carousel}},{carouselAdCardCollectionViewModel:function(k){return _.D(w9R,{data:k.data,
customCommandResolver:e,expansive:L})}}),_.D(_.MR,{data:function(){return x().button}},{adButtonViewModel:function(k){var M=k.data;
return _.D(_.EL,{data:function(){return(L==null?0:L())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_TONAL"}):M()},
className:C,customCommandResolver:e,animationEntityKey:Q})}}))},"Bc");_.jJd=_.K(function(O){var x=O.data;O=O.className;var e=_.Q5("pivot-button-view-model");_.YK(function(){var l;((l=x())==null?0:l.backgroundColor)&&e.value.setAttribute("data-background-color",String(x().backgroundColor))});
return _.D("pivot-button-view-model",{el:e,class:_.xz("ytwPivotButtonViewModelHost",O)},_.D(_.Pt,{command:function(){var l=x();l=l.onClickCommand?_.p_(l.onClickCommand):l.contentDescription?_.v1(l.contentDescription):void 0;return l},
ariaLabel:function(){return x().contentDescription}},_.D(_.F,{cond:function(){return x().thumbnail},
then:function(l){return _.D(_.n_,{data:l,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.D(_.F,{cond:function(){return x().icon},
then:function(l){return _.D(_.L7,{icon:function(){return l().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.NRD=_.K(function(O){var x=O.data;var e=O.buttonShapeOverrideables;return _.D("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.D(_.MR,{data:function(){return x().buttonViewModels}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
buttonOverrides:e})},
likeButtonViewModel:function(l){return _.D(_.iZ,{data:l.data,buttonShapeOverrideables:e})},
dislikeButtonViewModel:function(l){return _.D(_.$w,{data:l.data,buttonShapeOverrideables:e})},
toggleButtonViewModel:function(l){return _.D(_.Jc,{data:l.data,buttonShapeOverrides:e})}}))},"Dc");var g$3=_.K(function(O){var x=O.avatar;var e=O.headline;var l=O.badge;var C=O.description;var Q=O.expansive;O={};return _.D("yt-ad-metadata-shape",{class:_.xz("ytAdMetadataShapeHost",(O.ytAdMetadataShapeHostLarge=Q,O))},_.D("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.D(_.F,{cond:x,then:function(L){return _.D(_.Bnd,{data:function(){return(Q==null?0:Q())?Object.assign({},L(),{size:"AD_AVATAR_SIZE_M"}):L()}})}}),_.D("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.D(_.TT,{text:e,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.D(_.F,{cond:l,then:function(L){return _.D(_.VB,{data:function(){return(Q==null?0:Q())?Object.assign({},L(),{style:"AD_BADGE_STYLE_STARK"}):L()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.D("h2",{class:"ytAdMetadataShapeHostDescription"},_.D(_.TT,{text:C,
linkInheritColor:!0,isHeadline:function(){return Q==null?void 0:Q()}})))},"Ec");var $WD=_.K(function(O){var x=O.data;var e=O.onShow;var l=O.expansive;O=_.p5(function(){return x().interaction});
_.YK(function(){var Q,L=(Q=x().animatedRenderingConfig)==null?void 0:Q.delayedSecondsToVisible;if(L){var k=setTimeout(e,L*1E3);_.YO(function(){clearTimeout(k)})}});
var C={};return _.D("reels-ad-card-buttoned-view-model",{class:_.xz(function(){var Q;return((Q=x().interaction)==null?0:Q.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(C.ytwReelsAdCardButtonedViewModelHostExpansive=l,C)),
el:_.Y0(O)},_.D(g$3,{avatar:function(){return _.q(x().avatar,PY$)},
headline:function(){return x().headline},
badge:function(){return _.q(x().adBadge,cnd)},
description:function(){return x().description},
expansive:l}),_.D(_.MR,{data:function(){return x().ctaButton}},{adButtonViewModel:function(Q){var L=Q.data;
return _.D(_.EL,{data:function(){return(l==null?0:l())?Object.assign({},L(),{style:"AD_BUTTON_STYLE_FILLED"}):L()}})}}))},"Fc");var iX3=_.K(function(O){var x=O.data;O=O.expansive;var e=_.t("web_ad_metadata_clickable")?_.p5(function(){return x().interaction},void 0,function(){return _.t("web_ad_metadata_clickable")}):void 0,l={};
l=_.yu("ytwReelsAdMetadataViewModelHost",(l.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.t("web_ad_metadata_clickable"),l));return _.D("reels-ad-metadata-view-model",{class:l,el:_.Y0(e)},_.D(g$3,{avatar:function(){return _.q(x().avatar,PY$)},
headline:function(){return x().headline},
badge:function(){return _.q(x().adBadge,cnd)},
description:function(){return x().description},
expansive:O}))},"Gc");var Ocp={iconPosition:"icon-with-label",size:"L"},xlL=_.K(function(O){var x=O.data;var e=O.overlayDensity;var l=O.extractOverlay;var C=O.extractActionBar;O=_.Q5("reels-player-overlay-layout-view-model");var Q=_.uH(e,0),L=function(){var E;return(E=x().reelsAdCardButtonedEntityKey)!=null?E:""},k=function(){return L()+"/ad_button"},M=_.L5(IjL,L),G=function(){var E,P;
return(P=(E=M())==null?void 0:E.value)!=null?P:!1},X=_.Dl(vZs),y=function(){var E;
return Object.assign({},Ocp,(X()||!((E=C==null?void 0:C())!=null&&E))&&{style:"overlay-dark"})};
e={};var Z={};return _.D("reels-player-overlay-layout-view-model",{class:_.xz("ytwReelsPlayerOverlayLayoutViewModelHost",(e.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!x().extension},e.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},e.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return Q()===1&&!(l==null?0:l())},e.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var E;
return(E=l==null?void 0:l())!=null?E:!1},e.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var E;
return(E=C==null?void 0:C())!=null?E:!1},e)),
"overlay-density":function(){return String(Q())},
el:O},_.D("div",{class:_.xz("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(Z.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},Z))},_.D("div",{"aria-hidden":function(){return G()},
class:_.xz("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return G()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.T7({"transition-duration":function(){return SpN(x())}})},_.D(_.MR,{data:function(){return x().adMetadata}},{reelsAdMetadataViewModel:function(E){return _.D(iX3,{data:E.data,
expansive:function(){return Q()===1}})}}),_.D(_.F,{cond:function(){return x().extension},
then:function(E){return _.D("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.D(_.MR,{data:E},{adButtonViewModel:function(P){return _.D(_.EL,{data:P.data,animationEntityKey:k,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(P){return _.D(SR2,{data:P.data,animationEntityKey:k,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return Q()===1}})}}))}})),_.D("div",{"aria-hidden":function(){return!G()},
class:_.xz("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return G()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.T7({"transition-duration":function(){return SpN(x())}})},_.D(_.MR,{data:function(){return x().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(E){return _.D($WD,{data:E.data,
onShow:function(){_.ns(_.Dc("booleanEntity",L(),{key:L(),value:!0}))},
expansive:function(){return Q()===1}})}}))),_.D("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.D(_.MR,{data:function(){return x().actions}},{reelActionBarViewModel:function(E){return _.D(_.NRD,{data:E.data,
buttonShapeOverrideables:y})}}),_.D(_.MR,{data:function(){return x().menu}},{buttonViewModel:function(E){return _.D(_.RV,{data:E.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},y(),{type:"tonal"})}})}}),_.D(_.MR,{data:function(){return x().pivotButton}},{pivotButtonViewModel:function(E){return _.D(_.jJd,{data:E.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.wP(xlL,"reels-player-overlay-layout-view-model",{props:{data:_.Ld,overlayDensity:_.Ld,extractOverlay:_.Ld,extractActionBar:_.Ld}});var nN=function(){var O=_.a.apply(this,arguments)||this;O.noBottomMargin=!1;O.overlayDensity=0;O.extractOverlay=!1;O.extractActionBar=!1;return O};
_.c(nN,_.a);_.b=nN.prototype;
_.b.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:_.t("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]]"}}}}}};
_.b.ready=function(){var O=this;TiW(function(){O.isAttached&&rY(O.JSC$15699_storedAdSlotMetadata,O.JSC$15699_storedAdLayoutMetadata,O.adSlotMetadata,O.adLayoutMetadata)&&KN(re(),O.JSC$15699_storedAdSlotMetadata,O.JSC$15699_storedAdLayoutMetadata)})};
_.b.attached=function(){rY(this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dWL(re(),this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata)};
_.b.detached=function(){rY(this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&KN(re(),this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata)};
_.b.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.b.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15699_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15699_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15699_storedAdLayoutMetadata!==void 0&&this.JSC$15699_storedAdSlotMetadata!==void 0&&KN(re(),this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata),dWL(re(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15699_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15699_storedAdSlotMetadata=this.adSlotMetadata)};
_.Dy.Object.defineProperties(nN.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.adLayoutMetadata}}});
nN.prototype.onAdMetadataChanged=nN.prototype.onAdMetadataChanged;nN.prototype.onTypographyBumpChanged=nN.prototype.onTypographyBumpChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nN.prototype,"rendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],nN.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],nN.prototype,"noBottomMargin",void 0);_.B([_.R(),_.v("design:type",Object)],nN.prototype,"overlayDensity",void 0);_.B([_.R(),_.v("design:type",Object)],nN.prototype,"extractOverlay",void 0);_.B([_.R(),_.v("design:type",Object)],nN.prototype,"extractActionBar",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],nN.prototype,"typographyBump",void 0);
_.B([_.p("data.adLayoutMetadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],nN.prototype,"adLayoutMetadata",null);_.B([_.R(),_.v("design:type",Object)],nN.prototype,"adSlotMetadata",void 0);_.B([_.kX("ytd-video-display-full-buttoned-and-button-group-renderer"),_.v("design:type",HTMLElement)],nN.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.B([_.T1("typographyBump"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],nN.prototype,"onTypographyBumpChanged",null);_.B([_.T1("adLayoutMetadata","adSlotMetadata"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],nN.prototype,"onAdMetadataChanged",null);_.B([_.H({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],nN);
_.n(nN,"ytd-in-feed-ad-layout-renderer",function(){if(Yk3!==void 0)return Yk3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Yk3=O},
{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var ea$;var lRz;_.wP(_.VB,"ad-badge-view-model",{props:{data:_.Ld,hasDot:_.Ld,customCommandResolver:_.vs,adRenderingContextType:_.vs,usedInMasthead:_.vs}});_.wP(_.EL,"ad-button-view-model",{props:{data:_.Ld,customCommandResolver:_.vs,className:_.vs,delayedClassName:_.vs,animationEntityKey:_.vs,isCompactWidth:_.vs,isContentWidth:_.vs}});var uE=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return O};
_.c(uE,_.a);_.b=uE.prototype;_.b.computeHasLiveDescription=function(O){return!(O==null||!O.liveDescription)};
_.b.computeHasByline=function(O){return!(O==null||!O.byline)};
_.b.computeUsesAdButtonViewModel=function(O){return!!_.q(O==null?void 0:O.cta,I7d)};
_.b.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"}}}}}};
_.b.onYtToggleButton=function(O){var x,e=(x=this.data)==null?void 0:x.videoReminderEntityKey;e&&this.ytdReduxBehavior.dispatch(_.Dc("upcomingEventReminderStateEntity",e,{key:e,state:O.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.b.attached=function(){this.updateChannelBanner()};
_.b.dataChanged=function(){this.updateChannelBanner()};
_.b.videoReminderStateChanged=function(){var O;this.videoReminderState&&_.q((O=this.data)==null?void 0:O.cta,_.Sm)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.b.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var O=_.Sf(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);O&&(O.startsWith("//")&&(O="https:"+O),this.hostElement.classList.add("channel-banner"),_.lH(this.hostElement,{"--ytvmh-channel-banner":"url("+O+")"}))}else _.t("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.b.onPlayerReady=function(){this.onIronResize()};
_.b.maybeFlushDebouncer=function(){_.t("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(O){var x;O=(x=O.getElementsByTagName("yt-attributed-string"))==null?void 0:x[0];p0r(O==null?void 0:O.polymerController)})};
_.b.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var O=_.$U(this.hostElement).querySelector("#live-description"),x;O&&((x=this.data)==null?0:x.shortLiveDescription)&&O.clientWidth<O.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
uE.prototype.onIronResize=uE.prototype.onIronResize;uE.prototype.videoReminderStateChanged=uE.prototype.videoReminderStateChanged;uE.prototype.dataChanged=uE.prototype.dataChanged;uE.prototype.onYtToggleButton=uE.prototype.onYtToggleButton;_.B([_.V(_.Wg),_.v("design:type",Object)],uE.prototype,"ironResizableBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],uE.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],uE.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],uE.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:x8N}),_.v("design:type",Object)],uE.prototype,"videoReminderState",void 0);
_.B([_.R({reflectToAttribute:!0,value:_.t("web_modern_buttons")}),_.v("design:type",Boolean)],uE.prototype,"rounded",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.v("design:type",Boolean)],uE.prototype,"hasLiveDescription",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.v("design:type",Boolean)],uE.prototype,"hasByline",void 0);
_.B([_.R({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.v("design:type",String)],uE.prototype,"adRenderingContextType",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],uE.prototype,"isMasthead",void 0);_.B([_.R({computed:"computeUsesAdButtonViewModel(data)"}),_.v("design:type",Boolean)],uE.prototype,"usesAdButtonViewModel",void 0);
_.B([_.R({reflectToAttribute:!0,value:_.t("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.v("design:type",Boolean)],uE.prototype,"resizableAdBannerSafariFix",void 0);_.B([_.AY("yt-formatted-string"),_.v("design:type",Array)],uE.prototype,"formattedStrings",void 0);_.B([_.kX("#cta-button"),_.v("design:type",HTMLElement)],uE.prototype,"ctaButton",void 0);
_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uE.prototype,"onYtToggleButton",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],uE.prototype,"dataChanged",null);_.B([_.T1("videoReminderState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],uE.prototype,"videoReminderStateChanged",null);
_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],uE.prototype,"onIronResize",null);_.B([_.H({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],uE);
_.n(uE,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(lRz!==void 0)return lRz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return lRz=O},{mode:1});var CdR;var Yv=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};O.isLocked=!1;return O};
_.c(Yv,_.a);_.b=Yv.prototype;_.b.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.b.onExpandedChanged=function(){this.expanded&&_.jh(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.b.onMouseOver=function(){this.maybeExpand()};
_.b.onTap=function(){this.maybeExpand()};
_.b.onExpandableTileExpanding=function(O){O!==this&&(this.expanded=!1)};
_.b.onExpandableTileLockAndCollapse=function(O){this.isLocked=!0;O!==this&&(this.expanded=!1)};
_.b.onExpandableTileUnlock=function(){this.isLocked=!1};
Yv.prototype.onTap=Yv.prototype.onTap;Yv.prototype.onMouseOver=Yv.prototype.onMouseOver;Yv.prototype.onExpandedChanged=Yv.prototype.onExpandedChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Yv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Yv.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Yv.prototype,"expanded",void 0);_.B([_.G1("expanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Yv.prototype,"onExpandedChanged",null);_.B([_.bH("mouseover"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Yv.prototype,"onMouseOver",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Yv.prototype,"onTap",null);
_.B([_.H({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Yv);
_.n(Yv,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(CdR!==void 0)return CdR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return CdR=O},{mode:1});var Q8F;var Bf=function(){var O=_.a.apply(this,arguments)||this;O.buttonOverrides={style:"overlay"};O.useYtdPlayer=_.t("use_ytd_player_for_desktop_masthead");O.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};O.playbackFinished=!1;O.JSC$15713_playerManager=null;O.JSC$15713_mastheadCounter=new ucz;return O};
_.c(Bf,_.a);_.b=Bf.prototype;_.b.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"}}}};
_.b.created=function(){this.JSC$15713_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15713_playerManager=new uX)};
_.b.ready=function(){var O=this;this.JSC$15713_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var x=_.$U(this.hostElement).querySelector("#player");this.useYtdPlayer?x.style.display="none":(this.ytdPlayer.style.display="none",lpd(this.JSC$15713_playerManager,x,function(){O.onPlaybackEnded()}),_.$U(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var e;
((e=O.data)==null?0:e.navigationEndpoint)&&_.wr(O.hostElement,"yt-navigate",{endpoint:O.data.navigationEndpoint})}))};
_.b.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15713_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.b.attached=function(){var O=this;_.WZ(function(){O.maybePlayVideo()})};
_.b.maybePlayVideo=function(){var O=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$15713_playerManager.playVideo(),this.getPlayerPromise().then(function(){O.JSC$15713_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.b.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15713_playerManager.stopVideo()};
_.b.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var O,x={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((O=this.data.playbackStartMs)!=null?O:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(x);this.setupYtdPlayer()}else QWL(this.JSC$15713_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(C3N(this.JSC$15713_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.b.getPlayerPromise=function(){return this.JSC$15713_playerManager.getPlayerPromise()};
_.b.onYtToggleButton=function(O){this.useYtdPlayer?this.toggleMute(O.detail.toggled):O.detail.toggled?this.JSC$15713_playerManager.mute():this.JSC$15713_playerManager.unMute()};
_.b.onYtNavigate=function(O){var x=Evm(O.detail.endpoint),e=tIV(this.data.clickthroughReportingData);x&&e&&(O.detail.endpoint.watchEndpoint?O.detail.tempData=e:_.uh(x,e,30))};
_.b.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.b.onExpandedChanged=function(){this.expanded?(_.jh(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.b.onMouseOver=function(){this.maybeExpand()};
_.b.onTap=function(){this.maybeExpand()};
_.b.onExpandableTileExpanding=function(O){O!==this&&(this.stopVideo(),this.expanded=!1)};
_.b.onExpandableTileLockAndCollapse=function(O){O!==this&&(this.isLocked=!0,this.expanded=!1)};
_.b.onExpandableTileUnlock=function(){this.isLocked=!1};
_.b.lockAndCollapseExpandableTiles=function(){_.Sh(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.b.unlockExpandableTiles=function(){_.Sh(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.b.setupYtdPlayer=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O.ytdPlayer.getPlayerPromise(),2);x=e.yieldResult;x.addEventListener("onStateChange",function(l){O.onPlayerStateChange(l)});
x.addEventListener("onCueRangeExit",function(l){O.onCueRangeExit(l)});
_.Ra(e)})};
_.b.onPlayerStateChange=function(O){if(O===1&&(O=this.ytdPlayer.getPlayer())){var x=O.getCurrentTime(),e,l,C=x+((l=(e=this.data)==null?void 0:e.playbackDurationMs)!=null?l:0)/1E3;O.addCueRange("playback",x,C);this.JSC$15713_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.b.onCueRangeExit=function(O){O==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.b.toggleMute=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.ytdPlayer.getPlayerPromise(),2);e=l.yieldResult;O?e.mute():e.unMute();_.Ra(l)})};
Bf.prototype.onTap=Bf.prototype.onTap;Bf.prototype.onMouseOver=Bf.prototype.onMouseOver;Bf.prototype.onExpandedChanged=Bf.prototype.onExpandedChanged;Bf.prototype.onYtNavigate=Bf.prototype.onYtNavigate;Bf.prototype.onYtToggleButton=Bf.prototype.onYtToggleButton;Bf.prototype.dataChanged=Bf.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Bf.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Bf.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bf.prototype,"expanded",void 0);_.B([_.R(),_.v("design:type",Object)],Bf.prototype,"buttonOverrides",void 0);
_.B([_.R(),_.v("design:type",Object)],Bf.prototype,"useYtdPlayer",void 0);_.B([_.kX("#ytd-player"),_.v("design:type",Object)],Bf.prototype,"ytdPlayer",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bf.prototype,"dataChanged",null);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Bf.prototype,"onYtToggleButton",null);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Bf.prototype,"onYtNavigate",null);_.B([_.G1("expanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bf.prototype,"onExpandedChanged",null);_.B([_.bH("mouseover"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bf.prototype,"onMouseOver",null);
_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bf.prototype,"onTap",null);_.B([_.H({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Bf);
_.n(Bf,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Q8F!==void 0)return Q8F;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Q8F=O},{mode:1});var bc3;var vf=function(){return _.a.apply(this,arguments)||this};
_.c(vf,_.a);vf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vf.prototype.onShow=function(){var O=_.$U(this.hostElement).querySelector("#live-description"),x;O&&((x=this.data)==null?0:x.shortLiveDescription)&&O.clientWidth<O.scrollWidth&&this.hostElement.classList.add("short-live-description")};
vf.prototype.onYtToggleButton=function(O){var x,e=(x=this.data)==null?void 0:x.videoReminderEntityKey;e&&this.ytdReduxBehavior.dispatch(_.Dc("upcomingEventReminderStateEntity",e,{key:e,state:O.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
vf.prototype.videoReminderStateChanged=function(){var O;this.videoReminderState&&_.q((O=this.data)==null?void 0:O.cta,_.Sm)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
vf.prototype.videoReminderStateChanged=vf.prototype.videoReminderStateChanged;vf.prototype.onYtToggleButton=vf.prototype.onYtToggleButton;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vf.prototype,"data",void 0);
_.B([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:x8N}),_.v("design:type",Object)],vf.prototype,"videoReminderState",void 0);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],vf.prototype,"onYtToggleButton",null);_.B([_.T1("videoReminderState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vf.prototype,"videoReminderStateChanged",null);
_.B([_.H({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],vf);
_.n(vf,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(bc3!==void 0)return bc3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return bc3=O},{mode:_.gq("kevlar_poly_si_batch_j065")?1:2});var T34;var fN=function(){var O=_.a.apply(this,arguments)||this;O.useYtdPlayer=_.t("use_ytd_player_for_desktop_masthead");O.buttonOverrides={style:"overlay"};O.JSC$15721_playerManager=null;O.JSC$15721_mastheadCounter=new ucz;O.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return O};
_.c(fN,_.a);_.b=fN.prototype;_.b.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"}}}};
_.b.created=function(){this.JSC$15721_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15721_playerManager=new uX)};
_.b.ready=function(){var O=this;this.JSC$15721_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var x;(x=this.embeddedPlayer)==null||x.remove()}else{var e;(e=this.ytdPlayer)==null||e.remove();lpd(this.JSC$15721_playerManager,this.embeddedPlayer,function(){O.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){O.data&&O.data.navigationEndpoint&&_.wr(O.hostElement,"yt-navigate",{endpoint:O.data.navigationEndpoint})})}};
_.b.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15721_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.b.dataChanged=function(){var O=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var x=!this.data.disableAutoPlayback,e,l={autoplay:x,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((e=this.data.playbackStartMs)!=null?e:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(x?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(l);this.setupYtdPlayer()}else QWL(this.JSC$15721_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(C3N(this.JSC$15721_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15721_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Sh(O.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");O.JSC$15721_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.b.getPlayerPromise=function(){return this.JSC$15721_playerManager.getPlayerPromise()};
_.b.onYtToggleButton=function(O){this.useYtdPlayer?this.toggleMute(O.detail.toggled):O.detail.toggled?this.JSC$15721_playerManager.mute():this.JSC$15721_playerManager.unMute()};
_.b.onYtNavigate=function(O){var x=Evm(O.detail.endpoint),e=tIV(this.data.clickthroughReportingData);x&&e&&(O.detail.endpoint.watchEndpoint?O.detail.tempData=e:_.uh(x,e,30))};
_.b.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15721_playerManager.stopVideo()};
_.b.setupYtdPlayer=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O.ytdPlayer.getPlayerPromise(),2);x=e.yieldResult;x.addEventListener("onStateChange",function(l){O.onPlayerStateChange(l)});
x.addEventListener("onCueRangeExit",function(l){O.onCueRangeExit(l)});
_.Ra(e)})};
_.b.onPlayerStateChange=function(O){if(O===1&&(O=this.ytdPlayer.getPlayer())){var x=O.getCurrentTime(),e,l,C=x+((l=(e=this.data)==null?void 0:e.playbackDurationMs)!=null?l:0)/1E3;O.addCueRange("playback",x,C);_.Sh(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15721_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.b.onCueRangeExit=function(O){O==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.b.toggleMute=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.ytdPlayer.getPlayerPromise(),2);e=l.yieldResult;O?e.mute():e.unMute();_.Ra(l)})};
_.Dy.Object.defineProperties(fN.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var O,x;if(!((O=this.data)==null?0:(x=O.accessibilityData)==null?0:x.label))return"Ad primary link";var e,l;return _.CZ("AD_TITLE",{title:(e=this.data)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label})}}});
fN.prototype.onYtMastheadHidden=fN.prototype.onYtMastheadHidden;fN.prototype.onYtNavigate=fN.prototype.onYtNavigate;fN.prototype.onYtToggleButton=fN.prototype.onYtToggleButton;fN.prototype.dataChanged=fN.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],fN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fN.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],fN.prototype,"useYtdPlayer",void 0);_.B([_.kX("ytd-toggle-button-renderer"),_.v("design:type",Object)],fN.prototype,"muteButton",void 0);_.B([_.R(),_.v("design:type",Object)],fN.prototype,"buttonOverrides",void 0);
_.B([_.p("data.accessibilityData.label"),_.v("design:type",String),_.v("design:paramtypes",[])],fN.prototype,"titleAriaLabel",null);_.B([_.kX("#replay-button"),_.v("design:type",Object)],fN.prototype,"replayButton",void 0);_.B([_.kX("#player-container"),_.v("design:type",Object)],fN.prototype,"playerContainer",void 0);_.B([_.kX("#player"),_.v("design:type",Object)],fN.prototype,"embeddedPlayer",void 0);_.B([_.kX("#ytd-player"),_.v("design:type",Object)],fN.prototype,"ytdPlayer",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fN.prototype,"dataChanged",null);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],fN.prototype,"onYtToggleButton",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],fN.prototype,"onYtNavigate",null);
_.B([_.bH("yt-masthead-hidden"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fN.prototype,"onYtMastheadHidden",null);_.B([_.H({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],fN);
_.n(fN,"ytd-video-masthead-ad-primary-video-renderer",function(){if(T34!==void 0)return T34;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return T34=O},{mode:2});var LaF;var JH=function(){var O=_.a.apply(this,arguments)||this;O.collapsed=!1;O.impressionResolver=_.He();O.JSC$15725_activeViewMeasurementDataResolver=_.He();O.actionMap={"yt-mute-ad-action":"handleMuteAd"};return O};
_.c(JH,_.a);_.b=JH.prototype;_.b.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"}}}};
_.b.ready=function(){var O=this;_.$U(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){O.expandAd()});
this.hostElement.addEventListener("yt-action",function(x){if(x.detail.actionName==="yt-service-request"){var e=x.detail.args[1];e.videoMastheadAdMuteCommand&&(O.collapseAd(e.videoMastheadAdMuteCommand.encryptedMastheadId),x.stopPropagation())}})};
_.b.attached=function(){var O=this;_.WZ(function(){O.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(x){if(!O.collapsed){x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,xb(e.baseUrl,e.attributionSrcMode);O.data.impressionCommand=void 0}});
this.JSC$15725_activeViewMeasurementDataResolver.promise.then(function(x){O.ytdActiveViewBehavior.enableActiveViewMeasurement(x,15)});
_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.b.dataChanged=function(){var O;((O=this.data.impressionCommand)==null?0:O.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var x;((x=this.data)==null?0:x.activeView)&&this.JSC$15725_activeViewMeasurementDataResolver.resolve(this.data.activeView);(O=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(O.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.b.computeWidescreen=function(O){var x;return!!(O&&((x=_.q(O,ynN))==null?0:x.isWidescreen))};
_.b.computeExpandable=function(O){return!!(O&&O.length>0)};
_.b.onIronResize=function(){if(this.expandable){var O=_.$U(this.hostElement).querySelector("#expandable-tile-container :first-child");O&&!O.expanded&&(O.expanded=!0)}};
_.b.handleMuteAd=function(){this.collapseAd(null)};
_.b.restoreCollapsedState=function(O){this.collapsed=_.TD().get("HIDDEN_MASTHEAD_ID")===O};
_.b.collapseAd=function(O){if(O){var x=_.TD();x.set("HIDDEN_MASTHEAD_ID",O);x.save()}(O=_.$U(this.hostElement).querySelector("#video"))&&_.wr(O,"yt-masthead-hidden");this.collapsed=!0};
_.b.expandAd=function(){var O=_.TD();O.set("HIDDEN_MASTHEAD_ID",!1);O.save();location.reload()};
_.b.detached=function(){_.t("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
JH.prototype.onIronResize=JH.prototype.onIronResize;JH.prototype.dataChanged=JH.prototype.dataChanged;_.B([_.V(_.Wg),_.v("design:type",Object)],JH.prototype,"ironResizableBehavior",void 0);_.B([_.V(g_),_.v("design:type",Object)],JH.prototype,"ytdActiveViewBehavior",void 0);_.B([_.V(_.lZ),_.v("design:type",Object)],JH.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],JH.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JH.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.v("design:type",Boolean)],JH.prototype,"widescreen",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.v("design:type",Boolean)],JH.prototype,"expandable",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],JH.prototype,"collapsed",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JH.prototype,"dataChanged",null);
_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JH.prototype,"onIronResize",null);_.B([_.H({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],JH);
_.n(JH,"ytd-video-masthead-ad-v3-renderer",function(){if(LaF!==void 0)return LaF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return LaF=O},{mode:2});var we=function(){return _.a.apply(this,arguments)||this};
_.c(we,_.a);_.b=we.prototype;_.b.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.b.ready=function(){var O=this;TiW(function(){O.isAttached&&rY(O.JSC$15730_storedAdSlotMetadata,O.JSC$15730_storedAdLayoutMetadata,O.adSlotMetadata,O.adLayoutMetadata)&&KN(re(),O.JSC$15730_storedAdSlotMetadata,O.JSC$15730_storedAdLayoutMetadata)})};
_.b.attached=function(){rY(this.JSC$15730_storedAdSlotMetadata,this.JSC$15730_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dWL(re(),this.JSC$15730_storedAdSlotMetadata,this.JSC$15730_storedAdLayoutMetadata)};
_.b.detached=function(){rY(this.JSC$15730_storedAdSlotMetadata,this.JSC$15730_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&KN(re(),this.JSC$15730_storedAdSlotMetadata,this.JSC$15730_storedAdLayoutMetadata)};
_.b.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15730_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15730_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15730_storedAdLayoutMetadata!==void 0&&this.JSC$15730_storedAdSlotMetadata!==void 0&&KN(re(),this.JSC$15730_storedAdSlotMetadata,this.JSC$15730_storedAdLayoutMetadata),dWL(re(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15730_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15730_storedAdSlotMetadata=this.adSlotMetadata)};
_.Dy.Object.defineProperties(we.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.adLayoutMetadata}}});
we.prototype.onAdMetadataChanged=we.prototype.onAdMetadataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],we.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],we.prototype,"data",void 0);_.B([_.p("data.adLayoutMetadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],we.prototype,"adLayoutMetadata",null);
_.B([_.R(),_.v("design:type",Object)],we.prototype,"adSlotMetadata",void 0);_.B([_.T1("adLayoutMetadata","adSlotMetadata"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],we.prototype,"onAdMetadataChanged",null);_.B([_.H({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],we);
_.n(we,"ytd-page-top-ad-layout-renderer",function(){if(ea$!==void 0)return ea$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ea$=
O},{mode:_.gq("kevlar_poly_si_batch_j070")?1:2});var kWD;var SI=function(){var O=_.a.apply(this,arguments)||this;O.noBottomMargin=!1;O.overlayDensity=0;O.typographyBump=!1;O.extractOverlay=!1;O.extractActionBar=!1;return O};
_.c(SI,_.a);_.b=SI.prototype;
_.b.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]]"}}}}}};
_.b.ready=function(){var O=this;TiW(function(){O.isAttached&&O.adSlotMetadata&&KJF(re(),O.adSlotMetadata)})};
_.b.attached=function(){if(this.adSlotMetadata){var O;if(this.adSlotMetadata===((O=this.data)==null?void 0:O.adSlotMetadata))HXd(re(),this.adSlotMetadata);else{var x;_.ft(Error("Vh`"+this.adSlotMetadata+"`"+((x=this.data)==null?void 0:x.adSlotMetadata)))}}};
_.b.detached=function(){this.adSlotMetadata&&KJF(re(),this.adSlotMetadata)};
_.b.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.b.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&KJF(re(),this.adSlotMetadata),HXd(re(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Dy.Object.defineProperties(SI.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var O,x,e=_.q((O=this.data)==null?void 0:(x=O.fulfillmentContent)==null?void 0:x.fulfilledLayout,_.Esd),l;return(O=(l=_.q(e==null?void 0:e.renderingContent,Zh2))==null?void 0:l.layout)?O.toLowerCase().replace(/_/g,"-"):""}}});
SI.prototype.onAdSlotMetadataChanged=SI.prototype.onAdSlotMetadataChanged;SI.prototype.onTypographyBumpChanged=SI.prototype.onTypographyBumpChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],SI.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SI.prototype,"rendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],SI.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],SI.prototype,"noBottomMargin",void 0);_.B([_.R(),_.v("design:type",Object)],SI.prototype,"overlayDensity",void 0);_.B([_.R(),_.v("design:type",Object)],SI.prototype,"typographyBump",void 0);_.B([_.R(),_.v("design:type",Object)],SI.prototype,"extractOverlay",void 0);_.B([_.R(),_.v("design:type",Object)],SI.prototype,"extractActionBar",void 0);
_.B([_.kX("ytd-in-feed-ad-layout-renderer"),_.v("design:type",HTMLElement)],SI.prototype,"inFeedAdLayoutRenderer",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],SI.prototype,"layout",null);_.B([_.T1("typographyBump"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SI.prototype,"onTypographyBumpChanged",null);
_.B([_.T1("data.adSlotMetadata"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SI.prototype,"onAdSlotMetadataChanged",null);_.B([_.H({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],SI);
_.n(SI,"ytd-ad-slot-renderer",function(){if(kWD!==void 0)return kWD;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return kWD=O},{mode:_.gq("kevlar_poly_si_batch_j077")?
1:2});var A1D;var jI=function(){return _.a.apply(this,arguments)||this};
_.c(jI,_.a);_.b=jI.prototype;_.b.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"}}}};
_.b.maybeComputeHref=function(){return null};
_.b.onTap=function(){};
_.b.onThumbnailContainerClick=function(O){this.onClick(O)};
_.b.onClick=function(O){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint;e&&_.q(e,_.Hq)&&(this.ytSparklesClickLocationBehavior.handleClick(e,O,!1),O.stopPropagation())};
_.b.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var O=_.T(this.data.impressionUrls),x=O.next();!x.done;x=O.next())x=x.value,fC8(x,wZm(x));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",jI.JSC$15738_DEFAULT_CLICK_LOCATION_BEHAVIOR,jI.JSC$15738_CLICK_LOCATION_ID_MAP);this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&
O.removeAttribute("href"))}};
_.b.attached=function(){var O=this;_.t("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.b.detached=function(){_.t("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Dy.Object.defineProperties(jI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.t("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.t("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
jI.prototype.dataChanged=jI.prototype.dataChanged;jI.prototype.onTap=jI.prototype.onTap;jI.JSC$15738_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
jI.JSC$15738_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"}];_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.B([_.V(g_),_.v("design:type",Object)],jI.prototype,"ytdActiveViewBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],jI.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],jI.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],jI.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.R({selector:_.p7}),_.v("design:type",Object)],jI.prototype,"isGridViewEnabled",void 0);_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],jI.prototype,"watchFeedBigThumbs",null);_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",String),_.v("design:paramtypes",[])],jI.prototype,"thumbnailWidth",null);_.B([_.R(),_.v("design:type",Object)],jI.prototype,"data",void 0);
_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],jI.prototype,"thumbnail",void 0);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jI.prototype,"onTap",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jI.prototype,"dataChanged",null);_.B([_.H({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],jI);
_.n(jI,"ytd-compact-promoted-video-renderer",function(){if(A1D!==void 0)return A1D;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return A1D=O},{mode:1});var MLp;_.tI("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Ne=function(){return _.a.apply(this,arguments)||this};
_.c(Ne,_.a);Ne.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ne.prototype,"data",void 0);_.B([_.H({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Ne);
_.n(Ne,"ytd-search-pyv-renderer",function(){if(MLp!==void 0)return MLp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return MLp=O},{mode:1});var Dl$;_.tI("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var ge=function(){var O=_.a.apply(this,arguments)||this;O.roundedContainer=!0;O.JSC$15746_handleOpenPostCommentDialogActionAfterStamp=!1;O.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return O};
_.c(ge,_.a);_.b=ge.prototype;
_.b.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}}};
_.b.onStampFinished=function(){this.JSC$15746_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.b.handleSignalActionOpenPostCommentDialogAction=function(){var O=_.$U(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");O?O.openDialog():this.JSC$15746_handleOpenPostCommentDialogActionAfterStamp=!0};
_.b.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.b.computeHideBorder=function(){return this.isInEngagementPanel};
_.b.computeIsCompact=function(){return this.isInEngagementPanel};
_.b.computeUsesCompactLockup=function(O){return O==="BACKSTAGE_SURFACE_TYPE_HOME"||O==="BACKSTAGE_SURFACE_TYPE_SEARCH"||O==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||O==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||O==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||O==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.b.computeUsesFullLockup=function(){var O,x=(O=this.data)==null?void 0:O.post,e;O=(e=_.q(x,sPd))==null?void 0:e.surface;var l;e=(l=_.q(x,zU4))==null?void 0:l.originalPost;var C;if(l=O||((C=_.q(e,sPd))==null?void 0:C.surface))return!this.computeUsesCompactLockup(l)&&this.useUpdatedRepostUi;var Q;return((Q=_.q(x,zU4))==null?void 0:Q.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Dy.Object.defineProperties(ge.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var O,x;return((x=_.q((O=this.data)==null?void 0:O.post,sPd))==null?void 0:x.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.useUpdatedRepostUi}}});
ge.prototype.onYtCommentModerationPanelEmpty=ge.prototype.onYtCommentModerationPanelEmpty;ge.prototype.onStampFinished=ge.prototype.onStampFinished;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ge.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],ge.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ge.prototype,"roundedContainer",void 0);_.B([_.R({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.v("design:type",Boolean)],ge.prototype,"hideBorder",void 0);_.B([_.R({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.v("design:type",Boolean)],ge.prototype,"isCompact",void 0);
_.B([_.R({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.v("design:type",Boolean)],ge.prototype,"usesFullLockup",void 0);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ge.prototype,"onStampFinished",null);
_.B([_.bH("ytd-comment-moderation-panel-empty"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],ge.prototype,"onYtCommentModerationPanelEmpty",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ge.prototype,"isInEngagementPanel",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ge.prototype,"useUpdatedRepostUi",null);
_.B([_.H({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],ge);
_.n(ge,"ytd-backstage-post-thread-renderer",function(){if(Dl$!==void 0)return Dl$;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Dl$=O},{mode:1});var GWp;var $v=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c($v,_.a);$v.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
$v.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var O=this.data.thumbnail.thumbnails;this.isDarkTheme&&(O=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(O=_.Sf(O,24,void 0,"height"))?O:void 0}};
$v.prototype.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
$v.prototype.computeHasText=function(){var O;return!((O=this.data)==null||!O.text)};
_.Dy.Object.defineProperties($v.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Yy(this.bannerImageUrl))+'");'}}});
$v.prototype.computeHasText=$v.prototype.computeHasText;$v.prototype.computeBannerImageUrl=$v.prototype.computeBannerImageUrl;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$v.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],$v.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],$v.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",String)],$v.prototype,"bannerImageUrl",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.v("design:type",Boolean)],$v.prototype,"hasText",void 0);_.B([_.T1("data","isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$v.prototype,"computeBannerImageUrl",null);
_.B([_.T1("data.text"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$v.prototype,"computeHasText",null);_.B([_.p("bannerImageUrl"),_.v("design:type",Object),_.v("design:paramtypes",[])],$v.prototype,"bannerStyle",null);_.B([_.H({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],$v);
_.n($v,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(GWp!==void 0)return GWp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return GWp=O},{mode:1});var FaL;var iE=function(){return _.a.apply(this,arguments)||this};
_.c(iE,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],iE.prototype,"data",void 0);_.B([_.H({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],iE);
_.n(iE,"ytd-backstage-zero-state-renderer",function(){if(FaL!==void 0)return FaL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return FaL=O},{mode:1});var XQF;var Ou=function(){return _.a.apply(this,arguments)||this};
_.c(Ou,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ou.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",String)],Ou.prototype,"icon",void 0);_.B([_.H({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Ou);
_.n(Ou,"ytd-post-filter-zero-state-renderer",function(){if(XQF!==void 0)return XQF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XQF=O},{mode:1});var oYL;var y14={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},x2=function(){return _.a.apply(this,arguments)||this};
_.c(x2,_.a);x2.prototype.configureRendererStamper=function(){return y14};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],x2.prototype,"rendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],x2.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",String)],x2.prototype,"icon",void 0);_.B([_.H({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],x2);
_.n(x2,"ytd-post-scheduling-zero-state-renderer",function(){if(oYL!==void 0)return oYL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return oYL=O},{mode:1});var ZcN;var eH=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return O};
_.c(eH,_.a);eH.prototype.onTabsActivate=function(O){this.data&&this.data.tabs&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[O.detail.selected].navigationEndpoint})};
eH.prototype.shouldShowTotalCount=function(O){return O&&O.totalCount!==void 0};
eH.prototype.handleUpdatePostsTotalCountAction=function(O){var x=this.get(["data.tabs",1,"totalCount"]),e=this.get("updatePostsTotalCountAction.updateType",O);O=this.get("updatePostsTotalCountAction.number",O);x!==void 0&&e!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&O&&(e==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(x)+O):e==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(x)-O))};
_.Dy.Object.defineProperties(eH.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var O=0,x=this.data.tabs.length;O<x;O++)if(this.data.tabs[O].selected)return O;return 0}}});
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],eH.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eH.prototype,"rendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eH.prototype,"data",void 0);_.B([_.p("data.tabs"),_.v("design:type",Number),_.v("design:paramtypes",[])],eH.prototype,"selected",null);_.B([_.H({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],eH);
_.n(eH,"ytd-post-stream-filter-renderer",function(){if(ZcN!==void 0)return ZcN;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ZcN=O},{mode:1});var EYD;var lp=function(){return _.a.apply(this,arguments)||this};
_.c(lp,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],lp.prototype,"kevlarBehaviors",void 0);_.B([_.R(),_.v("design:type",Object)],lp.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],lp);
_.n(lp,"ytd-channel-age-gate-renderer",function(){if(EYD!==void 0)return EYD;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return EYD=O},{mode:1});var tLF;_.tI("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var CB=function(){var O=_.a.apply(this,arguments)||this;O.data=null;return O};
_.c(CB,_.a);CB.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Dy.Object.defineProperties(CB.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?0:(x=O.title)==null?0:(e=x.runs)==null?0:e.length)?147:160}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],CB.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],CB.prototype,"imageSizePx",null);_.B([_.H({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],CB);
_.n(CB,"ytd-channel-owner-empty-state-renderer",function(){if(tLF!==void 0)return tLF;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return tLF=O},{mode:1});var qIT;var Pdd;var QT=function(){var O=_.a.apply(this,arguments)||this;O.boundSubmitSearch=function(){O.submitSearch()};
O.boundClearSearch=function(){O.clearSearch()};
return O};
_.c(QT,_.a);_.b=QT.prototype;_.b.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]]"}}}}}};
_.b.toggleClearButton=function(){this.hideClearButton=VwL||!this.input.value};
_.b.submitOnEnterKeyUp=function(O){O.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.b.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.b.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.b.submit=function(){_.wr(this.hostElement,"search-query-changed",this.input.value)};
QT.prototype.toggleClearButton=QT.prototype.toggleClearButton;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],QT.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],QT.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],QT.prototype,"hideClearButton",void 0);_.B([_.R(),_.v("design:type",Object)],QT.prototype,"boundSubmitSearch",void 0);_.B([_.R(),_.v("design:type",Object)],QT.prototype,"boundClearSearch",void 0);_.B([_.kX("#input"),_.v("design:type",Object)],QT.prototype,"input",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],QT.prototype,"toggleClearButton",null);
_.B([_.H({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],QT);
_.n(QT,"ytd-channel-switcher-search-box-renderer",function(){if(Pdd!==void 0)return Pdd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Pdd=O},{mode:1});var c1z;var bp=function(){var O=_.a.apply(this,arguments)||this;O.boundSubmit=function(){O.submit()};
return O};
_.c(bp,_.a);_.b=bp.prototype;_.b.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"}}}}};
_.b.ready=function(){var O=this;this.form.addEventListener("submit",function(x){return O.onSubmit(x)})};
_.b.onSubmit=function(O){O.preventDefault();return!1};
_.b.toggleClearButton=function(){this.hideClearButton=VwL||!this.input.value};
_.b.submitOnEnterKeyUp=function(O){O.keyCode===13&&this.submit()};
_.b.submit=function(){var O=this.data.endpoint,x=(0,_.HX.unsafeClone)(O);_.q(x,_.Q9)?_.q(x,_.Q9).query=this.input.value:_.q(x,_.bK)&&(_.q(x,_.bK).query=this.input.value);var e=_.q(x.commandMetadata,_.e6);(e==null?0:e.url)?(e.url=_.Sb(e.url,"query",this.input.value),_.wr(this.hostElement,"yt-navigate",{endpoint:x})):_.q(x,MDR)?(_.q(x,MDR).channelSwitcherQuery=this.input.value,_.GG().resolve(_.Xc).resolveCommand(x,{form:{element:this.hostElement}})):(O=Error("Wh`"+JSON.stringify(O)),_.BH(O))};
_.b.getUrl=function(O){return this.get("commandMetadata.webCommandMetadata.url",O)};
bp.prototype.toggleClearButton=bp.prototype.toggleClearButton;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],bp.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],bp.prototype,"hideClearButton",void 0);
_.B([_.R(),_.v("design:type",Object)],bp.prototype,"boundSubmit",void 0);_.B([_.kX("#form"),_.v("design:type",HTMLFormElement)],bp.prototype,"form",void 0);_.B([_.kX("#input"),_.v("design:type",Object)],bp.prototype,"input",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],bp.prototype,"toggleClearButton",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],bp);
_.n(bp,"ytd-search-box-renderer",function(){if(c1z!==void 0)return c1z;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return c1z=O},{mode:2});var Ti=function(){var O=_.a.apply(this,arguments)||this;O.showSearchBox=!0;return O};
_.c(Ti,_.a);Ti.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ti.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ti.prototype,"showSearchBox",void 0);_.B([_.H({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Ti);
_.n(Ti,"ytd-channel-switcher-header-renderer",function(){if(qIT!==void 0)return qIT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return qIT=O},{mode:1});var IRD;var VLL;var LB=function(){var O=_.a.apply(this,arguments)||this;O.isDisplayed=!0;return O};
_.c(LB,_.a);_.b=LB.prototype;_.b.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.dataChanged=function(){this.isDisplayed=!0};
_.b.computeType=function(O){return O||"UNKNOWN"};
_.b.onYtServiceRequestCompleted=function(O){O.stopPropagation();this.isDisplayed=!1};
_.b.onClose=function(){this.isDisplayed=!1};
LB.prototype.onYtServiceRequestCompleted=LB.prototype.onYtServiceRequestCompleted;LB.prototype.dataChanged=LB.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LB.prototype,"data",void 0);
_.B([_.R({computed:"computeType(data.type)",reflectToAttribute:!0}),_.v("design:type",String)],LB.prototype,"type",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LB.prototype,"isDisplayed",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LB.prototype,"dataChanged",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],LB.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],LB);
_.n(LB,"ytd-alert-with-button-renderer",function(){if(VLL!==void 0)return VLL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return VLL=O},{mode:1});var k2=function(){var O=_.a.apply(this,arguments)||this;O.noResult=!1;O.enableAlertBanner=!1;O.dismissedAlertBanner=!1;O.hideCreateChannelButton=!1;O.boundDismissAlertBanner=function(){O.dismissAlertBanner()};
O.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return O};
_.c(k2,_.a);_.b=k2.prototype;_.b.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.b.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.b.updateChannelSwitcherAction=function(O){var x;O=(x=_.q(O,b6d))==null?void 0:x.page;_.q(O,Q1T)!==void 0&&(this.data=_.q(O,Q1T))};
_.b.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]]"}}}}}};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.b.searchQueryChanged=function(O,x){if(this.data&&this.data.contents&&this.data.contents.length){O=[];var e=[];this.hideCreateChannelButton=this.noResult=!1;for(var l=document.querySelectorAll("ytd-account-item-renderer"),C=_.T(l),Q=C.next();!Q.done;Q=C.next())Q=Q.value,e.push(Q),Q.style.display="block";this.resetRightBorder(e);if(x){this.hideCreateChannelButton=!0;for(e=1;e<this.data.contents.length;e++)if(Q=this.data.contents[e],_.q(Q,LB$)){var L=void 0,k=void 0;C=(L=_.q(Q,LB$))==null?void 0:(k=
L.accountName)==null?void 0:k.simpleText;k=L=void 0;Q=(L=_.q(Q,LB$))==null?void 0:(k=L.channelHandle)==null?void 0:k.simpleText;(L=l[e-1])&&C&&_.Dn(C,x)?O.push(L):_.t("enable_handle_search_on_channel_switcher")&&L&&Q&&_.Dn(Q.toString(),x.toString())?O.push(L):L.style.display="none"}O.length===0&&(this.noResult=!0);this.resetRightBorder(O)}}};
_.b.resetRightBorder=function(O){for(var x=0;x<O.length;x++)O[x].style.borderRight=!this.hideCreateChannelButton&&(x+2)%3===0||this.hideCreateChannelButton&&(x+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.b.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.b.setShowSearchBox=function(O){if(O&&O.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var x=0;x<O.contents.length;x++)_.q(O.contents[x],_.dj)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.b.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Dy.Object.defineProperties(k2.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.contents)}}});
k2.prototype.onContinuationItemsUpdated=k2.prototype.onContinuationItemsUpdated;k2.prototype.searchQueryChanged=k2.prototype.searchQueryChanged;k2.prototype.onDataChanged=k2.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],k2.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],k2.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],k2.prototype,"data",void 0);_.B([_.kX("ytd-channel-switcher-header-renderer"),_.v("design:type",Object)],k2.prototype,"channelSwitcherHeaderRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],k2.prototype,"noResult",void 0);
_.B([_.R(),_.v("design:type",Object)],k2.prototype,"enableAlertBanner",void 0);_.B([_.R(),_.v("design:type",Object)],k2.prototype,"dismissedAlertBanner",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],k2.prototype,"hideCreateChannelButton",void 0);_.B([_.p("data.contents"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],k2.prototype,"isLoading",null);_.B([_.R(),_.v("design:type",Object)],k2.prototype,"boundDismissAlertBanner",void 0);
_.B([_.R({computed:"computeButtonOverride()"}),_.v("design:type",Object)],k2.prototype,"buttonOverride",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],k2.prototype,"onDataChanged",null);_.B([_.bH("search-query-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,String]),_.v("design:returntype")],k2.prototype,"searchQueryChanged",null);
_.B([_.bH("yt-next-continuation-data-updated"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],k2.prototype,"onContinuationItemsUpdated",null);_.B([_.H({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],k2);
_.n(k2,"ytd-channel-switcher-page-renderer",function(){if(IRD!==void 0)return IRD;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return IRD=O},{mode:1});var pQR;var Ra3;var Ab=function(){var O=_.a.apply(this,arguments)||this;O.images=[];O.selectedImageIndex=0;return O};
_.c(Ab,_.a);_.b=Ab.prototype;
_.b.ready=function(){_.ol(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.ol(this.JSC$15791_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.ol(this.JSC$15791_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.ol(this.JSC$15791_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.b.onThumbnailClick=function(O){if(O=O.event_.detail)this.selectedImageIndex=this.images.indexOf(O)};
_.b.updateImageThumbnails=function(O){O=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:O.event_.detail});this.images.splice(this.selectedImageIndex,1,O);this.images=[].concat(_.Kx(this.images))};
_.b.cancelImageRepositions=function(){this.selectedImageIndex=0;_.wr(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.b.saveImageRepositions=function(){this.selectedImageIndex=0;_.wr(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Dy.Object.defineProperties(Ab.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var O=this;return(this.images||[]).map(function(x,e){return{image:x,selected:e===O.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("ytd-backstage-image-preview-renderer"),_.v("design:type",Object)],Ab.prototype,"JSC$15791_imagePreviewContainer",void 0);_.B([_.kX(".thumbnail-images-container"),_.v("design:type",HTMLElement)],Ab.prototype,"thumbnailImagesContainer",void 0);_.B([_.R(),_.v("design:type",Array)],Ab.prototype,"images",void 0);
_.B([_.R(),_.v("design:type",Object)],Ab.prototype,"repositionInstructions",void 0);_.B([_.R(),_.v("design:type",Object)],Ab.prototype,"selectedImageIndex",void 0);_.B([_.p("images","selectedImageIndex"),_.v("design:type",Array),_.v("design:paramtypes",[])],Ab.prototype,"thumbnailRendererDatas",null);_.B([_.p("images","selectedImageIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ab.prototype,"selectedImageData",null);
_.B([_.H({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Ab);
_.n(Ab,"ytd-backstage-multi-image-reposition-renderer",function(){if(Ra3!==void 0)return Ra3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Ra3=O},{mode:1});var Mr=function(O,x){_.tf.call(this);this.uploadUrl=O;this.channelId=x;this.imagesUploadData=[]};
_.c(Mr,_.tf);Mr.prototype.getAllUploadStatuses=function(){var O=this,x,e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield(Ulz(O),2);x=C.yieldResult;e=x.get("succeed");l=x.get("failed");return C.return(e.concat(l))})};
var mlk=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(Ulz(O),2);x=l.yieldResult;e=x.get("failed");e.length>0&&aR3(O,e);return l.return(O.getAllUploadStatuses())})},Ulz=function(O){var x,e,l,C,Q,L,k;
return _.A(function(M){if(M.nextAddress==1)return x=new Map,M.yield(Promise.allSettled(O.imagesUploadData.map(function(G){return G.uploadPromise})),2);
e=M.yieldResult;l=[];C=_.T(e);for(Q=C.next();!Q.done;Q=C.next())L=Q.value,L.status==="fulfilled"&&l.push(L.value);k=O.imagesUploadData.map(function(G){return G.image}).filter(function(G){return l.every(function(X){return X.id!==G.id})});
x.set("succeed",l);x.set("failed",k);return M.return(x)})},aR3=function(O,x){x=_.T(x);
for(var e=x.next();!e.done;e=x.next()){var l=O;e=e.value;s8N(l,e.id)>=0&&l.cancel(e.id);var C=new WaT(e),Q=_.NVD(l.uploadUrl,{"X-YouTube-ChannelId":l.channelId},e.imageBlob);C.transfer=Q;C.uploadPromise=haT(Q,e);l.imagesUploadData.push(C);Q.run()}};
Mr.prototype.cancel=function(O){var x=s8N(this,O);x!==-1&&((x=this.imagesUploadData[x].transfer)&&x.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(e){return e.image.id!==O}))};
var s8N=function(O,x){return O.imagesUploadData.findIndex(function(e){return e.image.id===x})},haT=function(O,x){return new Promise(function(e,l){O.listen("l",function(){var C=O.getResponseText();
C?(C=JSON.parse(C).encryptedBlobId,x.encryptedBlobId=C,e(x)):l("upload failed")});
O.listen("n",function(){l("upload failed")})})},WaT=function(O){this.image=O};var jZN=function(O,x,e,l,C){this.id=O;this.imageBlob=x;this.localImageSrc=e;this.naturalWidth=l;this.naturalHeight=C;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 zaJ=[".jpeg",".jpg",".png"],Dx=function(){var O=_.a.apply(this,arguments)||this;O.showImagesPreview=!1;O.pollOptions=[];O.errorMessage="";O.optionPlaceholderText="";O.optionDefaultText="";O.JSC$15802_imageId=0;O.maxFileSizeMb=0;O.maxAspectRatio=0;O.invalidFileSizeError="";O.invalidAspectRatioError="";O.invalidFileTypeError="";O.imageSelector=new yq(null,"single_file",zaJ);return O};
_.c(Dx,_.a);_.b=Dx.prototype;_.b.ready=function(){_.ol(this.imageSelector,"j",this.onImageSelect,!1,this);_.ol(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.ol(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.b.dataChanged=function(){var O,x,e=_.q((O=this.data)==null?void 0:(x=O.cellTemplate)==null?void 0:x.onEmptyCellTap,dn3);if(e&&e.uploadUrl&&e.channelId){var l;this.maxFileSizeMb=((l=e.imageValidationInfo)==null?void 0:l.maxFileSizeMb)||0;var C;this.maxAspectRatio=((C=e.imageValidationInfo)==null?void 0:C.allowedMaxAspectRatio)||0;var Q;this.invalidFileSizeError=this.getSimpleString((Q=this.data)==null?void 0:Q.invalidFileSizeError);var L;this.invalidAspectRatioError=this.getSimpleString((L=this.data)==
null?void 0:L.invalidAspectRatioError);var k;this.invalidFileTypeError=this.getSimpleString((k=this.data)==null?void 0:k.invalidFileTypeError);this.uploadManager=new Mr(e.uploadUrl,e.channelId)}};
_.b.onEditorInfoChange=function(){this.optionPlaceholderText=_.db(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.db(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.b.observeAddImageError=function(){this.errorMessage!==""&&_.wr(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.b.onPollOptionsChange=function(){for(var O=!1,x=[],e=0;e<this.pollOptions.length;e++){var l=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(e+1);this.pollOptions[e].placeholderText!==l?(O=!0,x.push(Object.assign({},this.pollOptions[e],{placeholderText:l}))):x.push(this.pollOptions[e])}O&&(this.pollOptions=x);this.isValid()?_.wr(this.hostElement,"yt-commentbox-post-enable"):_.wr(this.hostElement,"yt-commentbox-post-disable")};
_.b.createPollOptions=function(O){var x=[],e;O=(e=O==null?void 0:O.minPollOptions)!=null?e:0;for(e=0;e<O;e++)x.push(this.createPollOption());return x};
_.b.onImageSelect=function(O){var x=this,e,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1){if(x.selectedImageIndex===void 0)return M.jumpTo(0);e=O.files[0];x.errorMessage="";l=x.validateImage(e);if(l!=="")return x.errorMessage=l,M.return();C=new QA(x.maxAspectRatio,!1,!0);return M.yield(C.transform(e),3)}if(M.nextAddress!=4)return Q=M.yieldResult,Q.transformedData?Q.invalidAspectRatio?(x.errorMessage=x.invalidAspectRatioError,M.return()):M.yield(NdL(x.JSC$15802_imageId,O.files[0],Q.transformedData),
4):(x.errorMessage=x.invalidFileTypeError,M.return());L=M.yieldResult;x.JSC$15802_imageId++;aR3(x.uploadManager,[L]);k=Object.assign({},x.pollOptions[x.selectedImageIndex],{image:L});x.pollOptions.splice(x.selectedImageIndex,1,k);x.refreshPollOptions();_.wr(x.hostElement,"yt-backstage-poll-image-select");_.Ra(M)})};
_.b.validateImage=function(O){return O.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.b.refreshPollOptions=function(){this.pollOptions=[].concat(_.Kx(this.pollOptions))};
_.b.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Kx(this.pollOptions),[this.createPollOption()]))};
_.b.onRemovePollOption=function(O){var x=this.pollOptions[O.model.index];x&&x.image&&this.uploadManager.cancel(x.image.id);this.pollOptions.splice(O.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.wr(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.b.onTextInput=function(){this.refreshPollOptions()};
_.b.onImageButtonClick=function(O){this.selectedImageIndex=O.model.index;this.imageSelector.click()};
_.b.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.b.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.b.saveImageRepositions=function(O){O=O.event_.detail;for(var x=0,e=[],l=_.T(this.pollOptions),C=l.next();!C.done;C=l.next())C=C.value,C.image!==void 0?(C=Object.assign({},C,{image:O[x]}),e.push(C),x++):e.push(C);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Kx(e))};
_.b.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 O=0,x=_.T(this.pollOptions),e=x.next();!e.done;e=x.next())if(e=e.value,e.optionText.trim()!==""||e.image!==void 0){if(!e.image||this.hasCustomOptionText&&e.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;O++}return O>=Number(this.editorInfo.minPollOptions)};
_.b.getAllUploadStatuses=function(){var O=this,x,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(O.uploadManager.getAllUploadStatuses(),2);x=Q.yieldResult;e=_.T(x);for(l=e.next();!l.done;l=e.next())if(C=l.value,C.encryptedBlobId===void 0)return Q.return(mlk(O.uploadManager));return Q.return(x)})};
_.b.getPostCreateOptions=function(){for(var O=[],x=_.T(this.pollOptions),e=x.next();!e.done;e=x.next())e=e.value,e.image!==void 0&&O.push({text:this.hasCustomOptionText?e.optionText:e.placeholderText,image:e.image});return O};
_.b.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.b.createButtonRenderer=function(O,x){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleString(O)}},isDisabled:x}};
_.b.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.b.computeThumbnailRendererData=function(O){return O?{image:O,selected:!1}:void 0};
_.b.getSimpleString=function(O){return _.db(O)};
_.b.updateOptionTextFromBinding=function(O){if(O.target){var x=Array.from(_.$U(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(O.target);if(x>=0){var e;this.pollOptions[x].optionText=(e=O.detail.value)!=null?e:""}}};
_.Dy.Object.defineProperties(Dx.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var O,x;return this.pollOptions.length<((x=(O=this.editorInfo)==null?void 0:O.maxPollOptions)!=null?x:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(O){return O.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(O){return O.image}).map(function(O){return O.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(O){return O.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var O,x=(O=this.data)==null?void 0:O.addOptionButtonText;return x?this.createButtonRenderer(x,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var O,x=(O=this.data)==null?void 0:O.repositionImagesButtonLabel;return x?this.createButtonRenderer(x,!this.hasImages):void 0}}});
Dx.prototype.onPollOptionsChange=Dx.prototype.onPollOptionsChange;Dx.prototype.observeAddImageError=Dx.prototype.observeAddImageError;Dx.prototype.onEditorInfoChange=Dx.prototype.onEditorInfoChange;Dx.prototype.dataChanged=Dx.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("ytd-backstage-multi-image-reposition-renderer"),_.v("design:type",Object)],Dx.prototype,"imageRepositionContainer",void 0);
_.B([_.R(),_.v("design:type",Object)],Dx.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Dx.prototype,"editorInfo",void 0);_.B([_.R(),_.v("design:type",Mr)],Dx.prototype,"uploadManager",void 0);_.B([_.R(),_.v("design:type",Object)],Dx.prototype,"showImagesPreview",void 0);_.B([_.R(),_.v("design:type",Array)],Dx.prototype,"pollOptions",void 0);_.B([_.R(),_.v("design:type",Object)],Dx.prototype,"errorMessage",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dx.prototype,"dataChanged",null);_.B([_.G1("editorInfo"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dx.prototype,"onEditorInfoChange",null);_.B([_.T1("errorMessage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dx.prototype,"observeAddImageError",null);
_.B([_.G1("pollOptions"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dx.prototype,"onPollOptionsChange",null);_.B([_.p("pollOptions","editorInfo"),_.v("design:type",Object),_.v("design:paramtypes",[])],Dx.prototype,"isAllowedToAddOption",null);_.B([_.p("pollOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],Dx.prototype,"hasImages",null);
_.B([_.p("pollOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],Dx.prototype,"imagesToReposition",null);_.B([_.p("pollOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],Dx.prototype,"hasCustomOptionText",null);_.B([_.p("data","isAllowedToAddOption"),_.v("design:type",Object),_.v("design:paramtypes",[])],Dx.prototype,"addOptionButton",null);_.B([_.p("data","hasImages"),_.v("design:type",Object),_.v("design:paramtypes",[])],Dx.prototype,"repositionImagesButton",null);
_.B([_.H({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Dx);
_.n(Dx,"ytd-backstage-image-poll-editor-renderer",function(){if(pQR!==void 0)return pQR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return pQR=O},{mode:2});var r1N={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 Hc2;var Gi=function(){var O=_.a.apply(this,arguments)||this;O.a11yConfig=r1N;O.imageDisplayOffsetTop=0;O.imageDisplayOffsetLeft=0;O.pickerDisplayOffsetTop=0;O.pickerDisplayOffsetLeft=0;O.showPreviewContainer=!0;O.startPicker=!1;O.repositionOptional=!1;O.editOnlyMode=!1;O.savedImageDisplayOffsetTop=0;O.savedImageDisplayOffsetLeft=0;return O};
_.c(Gi,_.a);_.b=Gi.prototype;_.b.created=function(){_.f6.requestAvailability()};
_.b.ready=function(){};
_.b.onArrowKeysDown=function(O){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){O.detail.keyboardEvent.preventDefault();var x=0,e=0,l="";switch(O.detail.keyboardEvent.key){case "ArrowUp":gZ7(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?l=this.a11yConfig.reachBottomOfImage:x=this.imageHeight*.05*-1;break;case "ArrowDown":gZ7(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?l=this.a11yConfig.reachTopOfImage:
x=this.imageHeight*.05;break;case "ArrowLeft":gZ7(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?l=this.a11yConfig.reachRightOfImage:e=this.imageWidth*.05*-1;break;case "ArrowRight":gZ7(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?l=this.a11yConfig.reachLeftOfImage:e=this.imageWidth*.05}l&&_.CZ(l)&&_.wr(this.hostElement,"iron-announce",{text:_.CZ(l)});if(e||x)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+x)),O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),O=_.CZ(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+e)),O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),O=_.CZ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})),O&&_.wr(this.hostElement,"iron-announce",{text:O})}};
_.b.getPreviewPosition=function(O,x,e,l){return Math.round(100*(O+x*.5-e)/l)};
_.b.calculateDisplayPosition=function(){var O=this.imageData.naturalWidth,x=this.imageData.naturalHeight;this.displayScale=Math.max(200/O,200/x);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var e=O*this.displayScale*this.imageData.previewCoordinates.left,l=x*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=x>O?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-e;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=O>x?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-l;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=O*this.displayScale;this.imageHeight=x*this.displayScale};
_.b.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.b.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.b.getSignedPosition=function(O,x,e){return x==="X"&&_.wz("HTML_DIR")==="rtl"?e==="-"?O+"px":O*-1+"px":e==="-"?O*-1+"px":O+"px"};
_.b.pickerMove=function(O){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var x=this.pickerOffsetX-O.clientX,e=this.pickerOffsetY-O.clientY;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
e)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-x))}};
_.b.pickerMoveStart=function(O){this.startPicker=!0;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY};
_.b.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var O=this.generateCropPreview();O&&_.wr(this.hostElement,"ytd-backstage-image-preview-coordinates-update",O)};
_.b.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.wr(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.b.deleteImage=function(){_.wr(this.hostElement,"ytd-backstage-image-preview-delete")};
_.b.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.b.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var O=this.generateCropPreview();O&&_.wr(this.hostElement,"ytd-backstage-image-preview-coordinates-save",O)};
_.b.getPreviewOffset=function(O,x,e){return x&&O?(e==="X"&&_.wz("HTML_DIR")==="rtl"?300/x*O:300/x*O*-1)+"px":"0px"};
_.b.getSimpleText=function(O){return O?_.db(O):""};
_.b.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}};
_.Dy.Object.defineProperties(Gi.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CZ(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.CZ(this.a11yConfig.verticalRepositionInstruction)}O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CZ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.CZ(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 O,x,e=(O=this.instruction)==null?void 0:(x=O.previewInstruction)==null?void 0:x.editButtonLabel;return e?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C=this.editOnlyMode?(O=this.instruction)==null?void 0:(x=O.editInstruction)==null?void 0:x.saveImagesButtonLabel:(e=this.instruction)==null?void 0:(l=e.editInstruction)==null?void 0:l.saveButtonLabel;return C?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.instruction)==null?void 0:(x=O.previewInstruction)==null?void 0:x.deleteButtonLabel;return e?{size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.instruction)==null?void 0:(x=O.editInstruction)==null?void 0:x.cancelButtonLabel;O=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return e?{style:O,size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}: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"}}});
Gi.prototype.onEditOnlyModeUpdate=Gi.prototype.onEditOnlyModeUpdate;Gi.prototype.onImageChange=Gi.prototype.onImageChange;_.B([_.R(),_.v("design:type",jZN)],Gi.prototype,"imageData",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"instruction",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"a11yConfig",void 0);_.B([_.R(),_.v("design:type",Number)],Gi.prototype,"imageWidth",void 0);_.B([_.R(),_.v("design:type",Number)],Gi.prototype,"imageHeight",void 0);
_.B([_.R(),_.v("design:type",Number)],Gi.prototype,"displayScale",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"imageDisplayOffsetTop",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"showPreviewContainer",void 0);
_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"startPicker",void 0);_.B([_.R(),_.v("design:type",Number)],Gi.prototype,"pickerOffsetX",void 0);_.B([_.R(),_.v("design:type",Number)],Gi.prototype,"pickerOffsetY",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"repositionOptional",void 0);_.B([_.R(),_.v("design:type",Object)],Gi.prototype,"editOnlyMode",void 0);_.B([_.kX("#picker-container"),_.v("design:type",HTMLElement)],Gi.prototype,"JSC$15815_pickerContainer",void 0);
_.B([_.kX("#picker"),_.v("design:type",HTMLElement)],Gi.prototype,"picker",void 0);_.B([_.kX("#preview-clipper"),_.v("design:type",HTMLElement)],Gi.prototype,"previewClipper",void 0);_.B([_.kX("#image-in-picker-background"),_.v("design:type",HTMLImageElement)],Gi.prototype,"JSC$15815_imageInBackground",void 0);_.B([_.kX("#image-in-picker"),_.v("design:type",HTMLImageElement)],Gi.prototype,"JSC$15815_imageInPicker",void 0);
_.B([_.kX("#image-in-preview-clipper"),_.v("design:type",HTMLImageElement)],Gi.prototype,"JSC$15815_imageInPreviewClipper",void 0);_.B([_.p("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],Gi.prototype,"altLabelForImage",null);_.B([_.p("imageHeight","imageWidth"),_.v("design:type",Number),_.v("design:paramtypes",[])],Gi.prototype,"pickerSize",null);
_.B([_.p("imageHeight","imageWidth"),_.v("design:type",Object),_.v("design:paramtypes",[])],Gi.prototype,"imageOrientationStyle",null);_.B([_.p("instruction"),_.v("design:type",Object),_.v("design:paramtypes",[])],Gi.prototype,"editButton",null);_.B([_.p("instruction","editOnlyMode"),_.v("design:type",Object),_.v("design:paramtypes",[])],Gi.prototype,"saveButton",null);_.B([_.p("instruction"),_.v("design:type",Object),_.v("design:paramtypes",[])],Gi.prototype,"deleteButton",null);
_.B([_.p("instruction","editOnlyMode"),_.v("design:type",Object),_.v("design:paramtypes",[])],Gi.prototype,"cancelButton",null);_.B([_.p("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.v("design:type",Number),_.v("design:paramtypes",[])],Gi.prototype,"cropOffsetTop",null);_.B([_.p("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.v("design:type",Number),_.v("design:paramtypes",[])],Gi.prototype,"cropOffsetLeft",null);
_.B([_.p("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],Gi.prototype,"pickerBackgroundStyle",null);_.B([_.p("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],Gi.prototype,"pickerDisplayStyle",null);_.B([_.p("cropOffsetLeft","cropOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],Gi.prototype,"imageInPickerStyle",null);
_.B([_.p("cropOffsetLeft","cropOffsetTop","pickerSize"),_.v("design:type",String),_.v("design:paramtypes",[])],Gi.prototype,"previewClipperStyle",null);_.B([_.G1("imageData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gi.prototype,"onImageChange",null);_.B([_.G1("editOnlyMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gi.prototype,"onEditOnlyModeUpdate",null);
_.B([_.p("showPreviewContainer"),_.v("design:type",String),_.v("design:paramtypes",[])],Gi.prototype,"pickerModeStyle",null);_.B([_.H({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Gi);
_.n(Gi,"ytd-backstage-image-preview-renderer",function(){if(Hc2!==void 0)return Hc2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Hc2=O},{mode:1});var Kad;var dld={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 nYz;var uiR;var FA=function(){var O=_.a.apply(this,arguments)||this;O.a11yConfig=dld;O.imageDisplayOffsetTop=0;O.imageDisplayOffsetLeft=0;O.pickerDisplayOffsetTop=0;O.pickerDisplayOffsetLeft=0;O.cropCoordinatesSaved=!1;O.previewSize=0;O.startPicker=!1;O.repositionOptional=!1;return O};
_.c(FA,_.a);_.b=FA.prototype;_.b.created=function(){_.f6.requestAvailability()};
_.b.ready=function(){};
_.b.onArrowKeysDown=function(O){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){O.detail.keyboardEvent.preventDefault();var x=0,e=0,l="";switch(O.detail.keyboardEvent.key){case "ArrowUp":$Gn(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?l=this.a11yConfig.reachBottomOfImage:x=this.imageHeight*.05*-1;break;case "ArrowDown":$Gn(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?l=this.a11yConfig.reachTopOfImage:
x=this.imageHeight*.05;break;case "ArrowLeft":$Gn(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?l=this.a11yConfig.reachRightOfImage:e=this.imageWidth*.05*-1;break;case "ArrowRight":$Gn(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?l=this.a11yConfig.reachLeftOfImage:e=this.imageWidth*.05}l&&_.CZ(l)&&_.wr(this.hostElement,"iron-announce",{text:_.CZ(l)});if(e||x)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+x)),O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),O=_.CZ(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+e)),O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),O=_.CZ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})),O&&_.wr(this.hostElement,"iron-announce",{text:O})}};
_.b.getPreviewPosition=function(O,x,e,l){return Math.round(100*(O+x*.5-e)/l)};
_.b.displayImage=function(){var O=this.JSC$15826_pickerContainer.getBoundingClientRect().width,x=this.JSC$15826_pickerContainer.getBoundingClientRect().height,e=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),l=this.JSC$15826_imageInBackground.naturalWidth,C=this.JSC$15826_imageInBackground.naturalHeight;this.displayScale=Math.max(e/l,e/C);this.imageWidth=l*this.displayScale;this.imageHeight=C*this.displayScale;this.pickerDisplayOffsetLeft=(O-e)/2;this.pickerDisplayOffsetTop=
(x-e)/2;this.imageDisplayOffsetLeft=C>l?this.pickerDisplayOffsetLeft:(O-this.imageWidth)/2;this.imageDisplayOffsetTop=l>C?this.pickerDisplayOffsetTop:(x-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.b.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15826_imageInBackground.src=this.imageData.toString(),this.JSC$15826_imageInPicker.src=this.imageData.toString(),this.JSC$15826_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.b.getSignedPosition=function(O,x,e){return x==="X"&&_.wz("HTML_DIR")==="rtl"?e==="-"?O+"px":O*-1+"px":e==="-"?O*-1+"px":O+"px"};
_.b.pickerMove=function(O){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var x=this.pickerOffsetX-O.clientX,e=this.pickerOffsetY-O.clientY;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
e)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-x))}};
_.b.pickerMoveStart=function(O){this.startPicker=!0;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY};
_.b.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.b.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.wr(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.b.getPreviewOffset=function(O,x,e,l){return x&&O&&e?(l==="X"&&_.wz("HTML_DIR")==="rtl"?e/x*O:e/x*O*-1)+"px":"0px"};
_.b.getSimpleText=function(O){return O?_.db(O):""};
_.b.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var O=this.cropOffsetTop/this.imageHeight,x=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,e=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,l=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.$U(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.wr(this.hostElement,"yt-img-crop-coordinates-update",{top:O,right:x,bottom:e,left:l})}};
_.Dy.Object.defineProperties(FA.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CZ(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.CZ(this.a11yConfig.verticalRepositionInstruction)}O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CZ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.CZ(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 O,x=(O=this.learnMore.runs[0])==null?void 0:O.navigationEndpoint,e;return((e=_.q(x,_.$b))==null?void 0:e.url)||void 0}}}});
FA.prototype.onImageDataChange=FA.prototype.onImageDataChange;_.B([_.R(),_.v("design:type",Object)],FA.prototype,"imageData",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"instruction",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"a11yConfig",void 0);_.B([_.R(),_.v("design:type",Number)],FA.prototype,"imageWidth",void 0);_.B([_.R(),_.v("design:type",Number)],FA.prototype,"imageHeight",void 0);_.B([_.R(),_.v("design:type",Number)],FA.prototype,"displayScale",void 0);
_.B([_.R(),_.v("design:type",Object)],FA.prototype,"imageDisplayOffsetTop",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"cropCoordinatesSaved",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"previewSize",void 0);
_.B([_.R(),_.v("design:type",Object)],FA.prototype,"startPicker",void 0);_.B([_.R(),_.v("design:type",Number)],FA.prototype,"pickerOffsetX",void 0);_.B([_.R(),_.v("design:type",Number)],FA.prototype,"pickerOffsetY",void 0);_.B([_.R(),_.v("design:type",Object)],FA.prototype,"repositionOptional",void 0);_.B([_.kX("#picker-container"),_.v("design:type",HTMLElement)],FA.prototype,"JSC$15826_pickerContainer",void 0);_.B([_.kX("#picker"),_.v("design:type",HTMLElement)],FA.prototype,"picker",void 0);
_.B([_.kX("#image-in-picker-background"),_.v("design:type",HTMLImageElement)],FA.prototype,"JSC$15826_imageInBackground",void 0);_.B([_.kX("#image-in-picker"),_.v("design:type",HTMLImageElement)],FA.prototype,"JSC$15826_imageInPicker",void 0);_.B([_.kX("#image-in-preview-clipper"),_.v("design:type",HTMLImageElement)],FA.prototype,"JSC$15826_imageInPreviewClipper",void 0);_.B([_.kX("#full-image-as-preview"),_.v("design:type",HTMLImageElement)],FA.prototype,"imageAsPreview",void 0);
_.B([_.p("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],FA.prototype,"altLabelForImage",null);_.B([_.p("imageHeight","imageWidth"),_.v("design:type",Number),_.v("design:paramtypes",[])],FA.prototype,"pickerSize",null);_.B([_.p("imageHeight","imageWidth"),_.v("design:type",Object),_.v("design:paramtypes",[])],FA.prototype,"imageOrientationStyle",null);
_.B([_.p("instruction.previewInstruction.editButtonLabel"),_.v("design:type",Object),_.v("design:paramtypes",[])],FA.prototype,"editButton",null);_.B([_.p("instruction.editInstruction.saveButtonLabel"),_.v("design:type",Object),_.v("design:paramtypes",[])],FA.prototype,"saveButton",null);_.B([_.p("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.v("design:type",Number),_.v("design:paramtypes",[])],FA.prototype,"cropOffsetTop",null);
_.B([_.p("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.v("design:type",Number),_.v("design:paramtypes",[])],FA.prototype,"cropOffsetLeft",null);_.B([_.p("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],FA.prototype,"pickerBackgroundStyle",null);_.B([_.p("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],FA.prototype,"pickerDisplayStyle",null);
_.B([_.p("cropOffsetLeft","cropOffsetTop"),_.v("design:type",String),_.v("design:paramtypes",[])],FA.prototype,"imageInPickerStyle",null);_.B([_.p("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.v("design:type",String),_.v("design:paramtypes",[])],FA.prototype,"previewClipperStyle",null);_.B([_.T1("imageData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],FA.prototype,"onImageDataChange",null);
_.B([_.p("cropCoordinatesSaved"),_.v("design:type",String),_.v("design:paramtypes",[])],FA.prototype,"pickerModeStyle",null);_.B([_.p("instruction.editInstruction.learnMore"),_.v("design:type",Object),_.v("design:paramtypes",[])],FA.prototype,"learnMore",null);_.B([_.p("learnMore"),_.v("design:type",Object),_.v("design:paramtypes",[])],FA.prototype,"learnMoreUrl",null);_.B([_.Va({is:"yt-img-crop-picker",disableElementRegistration:!0})],FA);
_.n(FA,"yt-img-crop-picker",function(){if(uiR===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;nYz===void 0&&(nYz=document.createElement("template"));var l=nYz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);uiR=O}O=uiR;return O},{mode:2});var XA=function(){var O=_.a.apply(this,arguments)||this;O.errorMessage="";O.hasPreview=!1;O.isBackstagePost=!1;O.dismissButtonOverrides={size:"XS"};return O};
_.c(XA,_.a);_.b=XA.prototype;_.b.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"}}}};
_.b.detached=function(){this.removeOverlay()};
_.b.setPreview=function(O){_.$U(this.hostElement).querySelector("#preview-picker").imageData=O;this.hasPreview=!0;_.wr(this.hostElement,"yt-backstage-image-select-preview")};
_.b.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var O=_.$U(this.hostElement).querySelector("#dropzone");O.classList.remove("dragover");O.classList.remove("error");_.wr(this.hostElement,"yt-backstage-image-select-cancel")};
_.b.setupOverlay=function(){var O=this.imageUploadEndpoint;this.removeOverlay();if(O&&O.imageValidationInfo){var x=_.$U(this.hostElement).querySelector("#dropzone"),e=_.$U(this.hostElement).querySelector("#select");this.overlay=new Tj(O.uploadUrl,O.channelId,O.imageValidationInfo.maxFileSizeMb,O.imageValidationInfo.allowedMaxAspectRatio,x,e,!0);_.ol(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.ol(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.ol(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.ol(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.ol(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.b.removeOverlay=function(){this.overlay&&(_.EK(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.EK(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.EK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.EK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.EK(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.b.onDragOver=function(O){var x=_.$U(this.hostElement).querySelector("#dropzone");_.Ow(x,"dragover",O.value)};
_.b.onPreview=function(O){this.setPreview(O.value)};
_.b.onImageError=function(O){if(O.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var x;O=(x=this.data)==null?void 0:x.fileSizeError}else if(O.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var e;O=(e=this.data)==null?void 0:e.invalidError}else if(O.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var l;O=(l=this.data)==null?void 0:l.invalidAspectRatioError}else return;this.errorMessage=_.db(O);_.$U(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.b.onImageAlert=function(O){this.onImageError(O)};
_.b.uploadPromise=function(){var O=this,x=this.overlay&&this.overlay.uploadPromise();if(x)return x.catch(function(){throw Error(O.data?_.db(O.data.uploadFailureError):"");})};
_.Dy.Object.defineProperties(XA.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var O,x;if((O=this.data)==null?0:(x=O.icon)==null?0:x.iconType)return _.x0(this.data.icon.iconType)}}});
XA.prototype.setupOverlay=XA.prototype.setupOverlay;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],XA.prototype,"rendererStamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XA.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],XA.prototype,"imageUploadEndpoint",void 0);_.B([_.R(),_.v("design:type",Object)],XA.prototype,"errorMessage",void 0);
_.B([_.R(),_.v("design:type",Tj)],XA.prototype,"overlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],XA.prototype,"hasPreview",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],XA.prototype,"isBackstagePost",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],XA.prototype,"selectionCancel",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],XA.prototype,"previewCancel",null);
_.B([_.p("data.icon.iconType"),_.v("design:type",Object),_.v("design:paramtypes",[])],XA.prototype,"icon",null);_.B([_.R(),_.v("design:type",Object)],XA.prototype,"dismissButtonOverrides",void 0);_.B([_.T1("imageUploadEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XA.prototype,"setupOverlay",null);_.B([_.H({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],XA);
_.n(XA,"ytd-backstage-image-select-renderer",function(){if(Kad!==void 0)return Kad;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Kad=O},{mode:1});var YID;var B3F;var oB=function(){var O=_.a.apply(this,arguments)||this;O.selected=!1;return O};
_.c(oB,_.a);_.b=oB.prototype;_.b.computeSelected=function(O){return O==null?void 0:O.selected};
_.b.computeTransform=function(O,x,e){var l,C,Q=(C=(l=this.imageContainer)==null?void 0:l.getBoundingClientRect())!=null?C:{width:0,height:0};l=Math.max(Q.width/x,Q.height/e);e=e*l*O.top;return"translateX("+this.getSignedPosition(x*l*O.left,"X","-")+") translateY("+this.getSignedPosition(e,"Y","-")+")"};
_.b.getSignedPosition=function(O,x,e){return x==="X"&&_.wz("HTML_DIR")==="rtl"?e==="-"?O+"px":O*-1+"px":e==="-"?O*-1+"px":O+"px"};
_.b.onClick=function(){var O;_.wr(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(O=this.data)==null?void 0:O.image)};
_.b.onKeyPress=function(O){if(O.keyCode===13)this.onClick()};
_.Dy.Object.defineProperties(oB.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:(x=O.image)==null?void 0:x.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)!=null&&O.image){var x;O=(x=this.data)==null?void 0:x.image;return O.previewCoordinates.top!==0||O.previewCoordinates.left!==0?(x=this.computeTransform(O.previewCoordinates,O.naturalWidth,O.naturalHeight),O.naturalHeight>=O.naturalWidth?"width:inherit;transform:"+x+";":"height:inherit;transform:"+x+";"):O.naturalHeight>=O.naturalWidth?"width:inherit;":"height:inherit;"}}}});
oB.prototype.onKeyPress=oB.prototype.onKeyPress;_.B([_.kX(".image-container"),_.v("design:type",HTMLElement)],oB.prototype,"imageContainer",void 0);_.B([_.R(),_.v("design:type",Object)],oB.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.v("design:type",Object)],oB.prototype,"selected",void 0);_.B([_.p("data.image"),_.v("design:type",Object),_.v("design:paramtypes",[])],oB.prototype,"thumbnailUrl",null);
_.B([_.p("data.image","data.image.previewCoordinates"),_.v("design:type",Object),_.v("design:paramtypes",[])],oB.prototype,"thumbnailStyle",null);_.B([_.bH("keypress"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],oB.prototype,"onKeyPress",null);_.B([_.H({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],oB);
_.n(oB,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(B3F!==void 0)return B3F;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return B3F=O},{mode:2});var yT=function(O,x,e){e=e===void 0?!1:e;_.tf.call(this);var l=this;this.dropZoneOverlay=new oq(O);this.selectOverlay=e?new yq(x,"multiple_file",["image/*"]):new yq(x,"single_file",["image/*"]);this.handler=new _.Ev(this);_.qq(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(x,"click",function(){l.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.c(yT,_.tf);yT.prototype.onChange=function(O){var x;(x=O.files)!=null&&x.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:O.files}))};var Zx=function(){var O=_.a.apply(this,arguments)||this;O.addImageErrorMessage="";O.errorMessage="";O.images=[];O.selectedImageIndex=0;O.modern=_.t("web_modern_buttons");O.maxNumImagesPerPost=_.yF("max_num_images_per_post_web_ui");O.JSC$15841_imageId=0;return O};
_.c(Zx,_.a);_.b=Zx.prototype;_.b.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.wr(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.b.observeDragToReorder=function(){var O=this;if(this.showImagesPreview){var x,e=jk4(_.Z5.getInstance(),(x=this.data)==null?void 0:x.dragToReorderTooltip);_.vn.addLowPriorityJob(function(){_.gr(O.hostElement,e,O.thumbnailDragDropArea)})}};
_.b.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}}};
_.b.computeThumbnail=function(O){return(O==null?void 0:O.localImageSrc)||void 0};
_.b.onRendererstamperFinished=function(){_.rrd(this.ytReorderableBehavior,_.$U(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.$U(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.b.handleDrop=function(O){var x=O.currDragItem;if(x!=null&&x.data){O=this.images[this.selectedImageIndex];var e=x.data.image,l=this.images.indexOf(e)||0;x=_.d7(x.parentNode.children,x);this.images.splice(l,1);this.images.splice(x,0,e);this.images=[].concat(_.Kx(this.images));this.selectedImageIndex=this.images.indexOf(O)}};
_.b.setUpImagePicker=function(){var O=this.imageUploadEndpoint;O&&O.imageValidationInfo&&(this.uploadManager=new Mr(O.uploadUrl,O.channelId),this.initialPicker||(this.initialPicker=new yT(this.dropzone,this.selectLink,!0),_.ol(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new yT(this.addImageButtonContainer,this.addImageSelectButton),_.ol(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.ol(this.JSC$15841_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.ol(this.JSC$15841_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.ol(_.$U(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.b.detached=function(){this.initialPicker&&(_.EK(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.EK(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.b.onInitialSelectImages=function(O){var x=this;return _.A(function(e){return e.yield(x.onSelectImages(O,!1),0)})};
_.b.onAddImage=function(O){var x=this;return _.A(function(e){return e.yield(x.onSelectImages(O,!0),0)})};
_.b.onSelectImages=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J;return _.A(function(O8){switch(O8.nextAddress){case 1:x?e.addImageErrorMessage="":(e.images=[],e.errorMessage="");l=O.detail;C=e.validateImages([].concat(_.Kx(l)));if(C!=="")return x?e.addImageErrorMessage=C:e.errorMessage=C,O8.return();Q=[].concat(_.Kx(l)).map(function(Xr){return(new QA(e.maxAspectRatio,!1,!0)).transform(Xr)});
return O8.yield(Promise.allSettled(Q),2);case 2:L=O8.yieldResult,k=_.T(L.entries()),M=k.next();case 3:if(M.done){O8.jumpTo(5);break}G=M.value;X=_.T(G);y=X.next().value;Z=X.next().value;E=y;P=Z;if(P.status!=="fulfilled"){z=W=U=void 0;x?e.addImageErrorMessage=_.db((U=e.data)==null?void 0:U.invalidError):e.errorMessage=e.errorMessage===""?_.db((W=e.data)==null?void 0:W.invalidError):_.db((z=e.data)==null?void 0:z.multiFileError);O8.jumpTo(4);break}r=P.value;r.cropped&&_.wr(e.hostElement,"yt-backstage-multi-image-cropped");
if(r.invalidAspectRatio){Y=u=f=void 0;x?e.addImageErrorMessage=_.db((f=e.data)==null?void 0:f.invalidAspectRatioError):e.errorMessage=e.errorMessage===""?_.db((u=e.data)==null?void 0:u.invalidAspectRatioError):_.db((Y=e.data)==null?void 0:Y.multiFileError);O8.jumpTo(4);break}return O8.yield(NdL(e.JSC$15841_imageId,O.detail[E],r.transformedData),8);case 8:J=O8.yieldResult,e.images.push(J),e.JSC$15841_imageId++;case 4:M=k.next();O8.jumpTo(3);break;case 5:if(e.errorMessage!==""||e.addImageErrorMessage!==
"")return O8.return();x?aR3(e.uploadManager,[e.images[e.images.length-1]]):aR3(e.uploadManager,e.images);e.images=[].concat(_.Kx(e.images));e.selectedImageIndex=x?Math.max(e.images.length-1,0):0;_.wr(e.hostElement,"yt-backstage-multi-image-select");_.Ra(O8)}})};
_.b.onThumbnailClick=function(O){if(O=O.event_.detail)this.selectedImageIndex=this.images.indexOf(O)};
_.b.validateImages=function(O){if(O.length>this.maxNumImagesPerPost){var x;return _.db((x=this.data)==null?void 0:x.multiImageExceedMaxImageCountError)}var e=1048576*this.maxFileSizeMb;O=O.filter(function(Q){return Q.size>e}).length;
if(O===0)return"";var l,C;O=O>1?(l=this.data)==null?void 0:l.multiFileError:(C=this.data)==null?void 0:C.fileSizeError;return _.db(O)};
_.b.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Kx(this.images));this.selectedImageIndex=0};
_.b.repositionImage=function(O){this.images[this.selectedImageIndex].previewCoordinates=O.event_.detail;this.images=[].concat(_.Kx(this.images))};
_.b.getAllUploadStatuses=function(){var O=this,x,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(O.uploadManager.getAllUploadStatuses(),2);x=Q.yieldResult;e=_.T(x);for(l=e.next();!l.done;l=e.next())if(C=l.value,C.encryptedBlobId===void 0)return Q.return(mlk(O.uploadManager));return Q.return(x)})};
_.b.hasImages=function(){return this.images.length>0};
_.b.cancel=function(){for(var O=this.uploadManager,x=_.T(O.imagesUploadData),e=x.next();!e.done;e=x.next())O.cancel(e.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.wr(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Dy.Object.defineProperties(Zx.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.imageUploadEndpoint)==null?void 0:(x=O.imageValidationInfo)==null?void 0:x.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.imageUploadEndpoint)==null?void 0:(x=O.imageValidationInfo)==null?void 0:x.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var O,x;if((O=this.data)==null?0:(x=O.icon)==null?0:x.iconType)return _.x0(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.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 O=this;return(this.images||[]).map(function(x,e){return{renderer:{image:x,selected:e===O.selectedImageIndex}}})}}});
Zx.prototype.setUpImagePicker=Zx.prototype.setUpImagePicker;Zx.prototype.onRendererstamperFinished=Zx.prototype.onRendererstamperFinished;Zx.prototype.observeDragToReorder=Zx.prototype.observeDragToReorder;Zx.prototype.observeAddImageError=Zx.prototype.observeAddImageError;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Zx.prototype,"rendererStamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.HJd),_.v("design:type",Object)],Zx.prototype,"ytReorderableBehavior",void 0);_.B([_.kX("#dropzone"),_.v("design:type",HTMLElement)],Zx.prototype,"dropzone",void 0);_.B([_.kX("#select-link"),_.v("design:type",HTMLElement)],Zx.prototype,"selectLink",void 0);_.B([_.kX("#thumbnail-drag-drop-area"),_.v("design:type",HTMLElement)],Zx.prototype,"thumbnailDragDropArea",void 0);_.B([_.kX("#add-image-button-container"),_.v("design:type",HTMLElement)],Zx.prototype,"addImageButtonContainer",void 0);
_.B([_.kX("#add-image-button"),_.v("design:type",HTMLElement)],Zx.prototype,"addImageSelectButton",void 0);_.B([_.kX("#image-preview-container"),_.v("design:type",Object)],Zx.prototype,"JSC$15841_imagePreviewContainer",void 0);_.B([_.R(),_.v("design:type",Object)],Zx.prototype,"addImageErrorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],Zx.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Zx.prototype,"errorMessage",void 0);
_.B([_.R(),_.v("design:type",Object)],Zx.prototype,"imageUploadEndpoint",void 0);_.B([_.R(),_.v("design:type",Array)],Zx.prototype,"images",void 0);_.B([_.R(),_.v("design:type",yT)],Zx.prototype,"initialPicker",void 0);_.B([_.R(),_.v("design:type",yT)],Zx.prototype,"addImagePicker",void 0);_.B([_.R(),_.v("design:type",Mr)],Zx.prototype,"uploadManager",void 0);_.B([_.R(),_.v("design:type",Object)],Zx.prototype,"selectedImageIndex",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Zx.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Zx.prototype,"maxNumImagesPerPost",void 0);_.B([_.p("imageUploadEndpoint"),_.v("design:type",Number),_.v("design:paramtypes",[])],Zx.prototype,"maxAspectRatio",null);_.B([_.p("imageUploadEndpoint"),_.v("design:type",Number),_.v("design:paramtypes",[])],Zx.prototype,"maxFileSizeMb",null);
_.B([_.p("data.icon.iconType"),_.v("design:type",Object),_.v("design:paramtypes",[])],Zx.prototype,"dropIcon",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Zx.prototype,"selectionCancel",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Zx.prototype,"previewCancel",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Zx.prototype,"dataForAddImageButton",null);
_.B([_.p("errorMessage"),_.v("design:type",String),_.v("design:paramtypes",[])],Zx.prototype,"dropzoneClass",null);_.B([_.p("images"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Zx.prototype,"showImagesPreview",null);_.B([_.p("images"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Zx.prototype,"containMaxImages",null);_.B([_.T1("addImageErrorMessage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Zx.prototype,"observeAddImageError",null);
_.B([_.T1("showImagesPreview"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Zx.prototype,"observeDragToReorder",null);_.B([_.p("images","selectedImageIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],Zx.prototype,"selectedImageData",null);_.B([_.p("images","selectedImageIndex"),_.v("design:type",Array),_.v("design:paramtypes",[])],Zx.prototype,"thumbnailRenderers",null);
_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Zx.prototype,"onRendererstamperFinished",null);_.B([_.T1("imageUploadEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Zx.prototype,"setUpImagePicker",null);_.B([_.H({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Zx);
_.n(Zx,"ytd-backstage-multi-image-select-renderer",function(){if(YID!==void 0)return YID;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return YID=O},{mode:1});var vYR;var fRd;var J1d;var Eu=function(){var O=_.a.apply(this,arguments)||this;O.boundCaptureFocus=function(x){O.onCaptureFocus(x)};
return O};
_.c(Eu,_.a);_.b=Eu.prototype;_.b.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.b.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.b.onCaptureFocus=function(O){_.n3(O).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.b.getIconType=function(O){return O?"yt-icons:"+O.toLowerCase():null};
_.b.onSelect=function(){var O;if((O=this.data)==null?0:O.onSelectCommand)if(_.t("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var x;((x=_.q(this.data.onSelectCommand.commandMetadata,_.e6))==null?0:x.url)?_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.GG().resolve(_.Xc).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Dy.Object.defineProperties(Eu.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.db(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}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Eu.prototype,"data",void 0);_.B([_.kX("#item"),_.v("design:type",HTMLElement)],Eu.prototype,"item",void 0);_.B([_.p("data.label"),_.v("design:type",String),_.v("design:paramtypes",[])],Eu.prototype,"label",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Eu.prototype,"value",null);_.B([_.H({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Eu);
_.n(Eu,"ytd-privacy-dropdown-item-renderer",function(){if(J1d!==void 0)return J1d;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return J1d=O},{mode:1});var tb=function(){var O=_.a.apply(this,arguments)||this;O.value="";O.label="";O.disabled=!1;return O};
_.c(tb,_.a);_.b=tb.prototype;_.b.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"}}}};
_.b.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.b.dataChanged=function(){this.reset()};
_.b.valueChanged=function(){var O;if(this.value&&(O=this.data)!=null&&O.entries){O=_.T(this.data.entries);for(var x=O.next();!x.done;x=O.next())if((x=this.getRendererForEntry(x.value))&&this.getItemRendererValue(x)===this.value){this.label=this.ytComponentBehavior.getSimpleString(x.label);break}}};
_.b.setInitialLabel=function(){if(this.data&&this.data.entries)for(var O=_.T(this.data.entries),x=O.next();!x.done;x=O.next())if(x=this.getRendererForEntry(x.value)){if(x.isSelected){this.label=this.ytComponentBehavior.getSimpleString(x.label);break}this.data.label&&(this.label=this.data.label)}};
_.b.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var O=_.T(this.data.entries),x=O.next();!x.done;x=O.next()){x=this.getRendererForEntry(x.value);var e=void 0;if((e=x)==null?0:e.isSelected)return this.getItemRendererValue(x)||-1}return-1};
_.b.getItemRendererValue=function(O){return"stringValue"in O||"int32Value"in O?O.stringValue||O.int32Value||null:null};
_.b.getRendererForEntry=function(O){return O.dropdownItemRenderer||O.privacyDropdownItemRenderer||O.navigationDropdownItemRenderer||null};
_.b.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("value-changed",this.value))};
_.b.updateValueFromBinding=function(O){this.value=O.detail.value};
tb.prototype.valueChangedForBinding=tb.prototype.valueChangedForBinding;tb.prototype.valueChanged=tb.prototype.valueChanged;tb.prototype.dataChanged=tb.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],tb.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],tb.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],tb.prototype,"value",void 0);_.B([_.R(),_.v("design:type",Object)],tb.prototype,"label",void 0);_.B([_.kX("#entries"),_.v("design:type",Object)],tb.prototype,"entries",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tb.prototype,"disabled",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tb.prototype,"dataChanged",null);
_.B([_.G1("value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tb.prototype,"valueChanged",null);_.B([_.T1("value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tb.prototype,"valueChangedForBinding",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],tb);
_.n(tb,"ytd-flat-dropdown-renderer",function(){if(fRd!==void 0)return fRd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fRd=O},{mode:1});var wQN;var qr=function(){var O=_.a.apply(this,arguments)||this;O.quizOptions=[];O.explanationPlaceholderText="";O.optionPlaceholderText="";O.correctAnswerIndex=-1;O.isMarkAnswerTooltipShown=!1;O.timer=0;return O};
_.c(qr,_.a);_.b=qr.prototype;_.b.dataChanged=function(){this.optionPlaceholderText=_.db(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.db(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.b.onMarkCorrectAnswer=function(O){var x,e=((x=this.quizOptions[this.correctAnswerIndex])==null?void 0:x.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[O.model.index]=Object.assign({},this.quizOptions[O.model.index],{explanationText:e,isCorrect:!0});this.correctAnswerIndex=O.model.index;this.quizOptions=[].concat(_.Kx(this.quizOptions))};
_.b.updatePlaceholderTexts=function(){for(var O=!1,x=[],e=0;e<this.quizOptions.length;e++){var l=this.optionPlaceholderText+" "+(e+1),C=void 0;((C=this.quizOptions[e])==null?void 0:C.placeholderText)!==l?(O=!0,x.push(Object.assign({},this.quizOptions[e],{placeholderText:l}))):x.push(this.quizOptions[e])}O&&(this.quizOptions=x);this.isValid()?_.wr(this.hostElement,"yt-commentbox-post-enable"):_.wr(this.hostElement,"yt-commentbox-post-disable")};
_.b.getSimpleString=function(O){return _.db(O)};
_.b.createQuizOptions=function(O){var x=[],e;O=(e=O==null?void 0:O.minQuizOptions)!=null?e:0;for(e=0;e<O;e++)x.push(this.createQuizOption());return x};
_.b.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Kx(this.quizOptions),[this.createQuizOption()]))};
_.b.onInput=function(){this.quizOptions=[].concat(_.Kx(this.quizOptions))};
_.b.onExplanationInput=function(){_.wr(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.b.onRemoveQuizOption=function(O){this.quizOptions.splice(O.model.index,1);O.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:O.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Kx(this.quizOptions));this.quizOptions.length===0&&_.wr(this.hostElement,"yt-quiz-attachment-dismiss")};
_.b.updateHintRenderer=function(){var O=this;clearTimeout(this.timer);this.timer=setTimeout(function(){O.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.b.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var O=0,x=0,e=_.T(this.quizOptions),l=e.next();!l.done;l=e.next()){l=l.value;var C=void 0;if(((C=l.optionText)==null?void 0:C.trim())!==""||l.isCorrect){l.isCorrect&&x++;C=void 0;if(this.hasCustomOptionText&&((C=l.optionText)==null?void 0:C.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;O++}}return O>=
Number(this.editorInfo.minQuizOptions)&&x===1};
_.b.getPostCreateOptions=function(){for(var O=[],x=_.T(this.quizOptions),e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0;((l=e.optionText)==null?void 0:l.trim())!==""&&O.push({pollOption:{text:e.optionText,explanation:e.explanationText},isCorrect:e.isCorrect})}return O};
_.b.getExplanationText=function(){var O;return((O=this.quizOptions[this.correctAnswerIndex])==null?void 0:O.explanationText)||""};
_.b.maybeDisplayMarkAnswerEduToolTip=function(){var O,x,e,l,C,Q,L;this.shouldShowMarkAnswerTooltip()&&((O=this.editorInfo)==null?0:(x=O.markAnswerButton)==null?0:(e=x.buttonRenderer)==null?0:(l=e.hint)==null?0:(C=l.hintRenderer)==null?0:(Q=C.content)==null?0:(L=Q.bubbleHintRenderer)==null?0:L.text)&&(_.Z5.getInstance(),O=E2(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,(O==null?void 0:O.length)>0&&this.optionSelectors&&_.C_(O[0],this.optionSelectors[0]))};
_.b.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var O=0,x=_.T(this.quizOptions),e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0;((l=e.optionText)==null?void 0:l.trim())!==""&&O++;if(e.isCorrect)return!1}return O<2?!1:!0};
_.b.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.b.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.b.updateOptionTextFromBinding=function(O){if(O.target){var x=Array.from(_.$U(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(O.target);if(x>=0){var e;this.quizOptions[x].optionText=(e=O.detail.value)!=null?e:""}}};
_.Dy.Object.defineProperties(qr.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.editorInfo)==null?void 0:(x=O.addOptionButton)==null?void 0:x.buttonRenderer;e&&(e.style="STYLE_SUGGESTIVE",e.size="SIZE_SMALL",e.isDisabled=!this.isAllowedToAddOption);return(e==null?0:e.text)?e:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var O,x;return this.quizOptions.length<((x=(O=this.editorInfo)==null?void 0:O.maxQuizOptions)!=null?x:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(O){var x;return(x=O.optionText)==null?void 0:x.trim()})}}});
qr.prototype.updatePlaceholderTexts=qr.prototype.updatePlaceholderTexts;qr.prototype.dataChanged=qr.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],qr.prototype,"editorInfo",void 0);_.B([_.R(),_.v("design:type",Array)],qr.prototype,"quizOptions",void 0);_.B([_.R(),_.v("design:type",Object)],qr.prototype,"explanationPlaceholderText",void 0);_.B([_.AY(".option-selector-button"),_.v("design:type",Array)],qr.prototype,"optionSelectors",void 0);
_.B([_.G1("editorInfo"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qr.prototype,"dataChanged",null);_.B([_.p("editorInfo","isAllowedToAddOption","quizOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],qr.prototype,"addAnswerButton",null);_.B([_.p("editorInfo","quizOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],qr.prototype,"isAllowedToAddOption",null);
_.B([_.G1("quizOptions"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qr.prototype,"updatePlaceholderTexts",null);_.B([_.p("quizOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],qr.prototype,"hasCustomOptionText",null);_.B([_.H({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],qr);
_.n(qr,"ytd-backstage-quiz-editor-renderer",function(){if(wQN!==void 0)return wQN;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wQN=O},{mode:2});var SId;var j8d=(xV.FIRSTDAYOFWEEK+1)%7;var N3z;var gYd=[],$lR=0,icN=0;$lR=0;icN=24;if(.25*(icN-$lR)<0)N3z=[];else{for(var OFz=$lR;OFz<icN;OFz+=.25)gYd.push(OFz);N3z=gYd}var x6T=N3z.map(function(O){O=O*60*60;return{secondsSinceMidnight:O,text:(new H1(7)).format(new Date(0,0,0,0,0,O))}});var eyR;var PC=function(){var O=_.a.apply(this,arguments)||this;O.skipNextOpenDialog=!1;O.errorMessage="";O.previousMonthLabel=_.CZ("PREVIOUS_MONTH_LABEL");O.nextMonthLabel=_.CZ("NEXT_MONTH_LABEL");return O};
_.c(PC,_.a);_.b=PC.prototype;_.b.attached=function(){var O=this,x=new MutationObserver(function(){O.JSC$15883_calendarMain.scrollHeight>0&&(x.disconnect(),O.calendarConfig&&O.calendarConfig.selectedDate&&O.scrollToDate())});
x.observe(this.JSC$15883_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){x.disconnect()},1E3)};
_.b.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.b.onDateTextChange=function(){if(this.calendarConfig){var O=this.validateDateText();O.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(O.details)):this.textbox.setAttribute("invalid","")}};
_.b.handleDayClick=function(O){O.model.day.date&&(this.commitDate(O.model.day.date),this.dialog.close())};
_.b.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var O=Tn$(this.calendarConfig.selectedDate,this.renderData);O!==void 0&&this.JSC$15883_calendarMain.scrollToIndex(O)}};
_.b.scrollToNextMonth=function(){this.JSC$15883_calendarMain.scrollToIndex(this.JSC$15883_calendarMain.firstVisibleIndex+1)};
_.b.scrollToPrevMonth=function(){this.JSC$15883_calendarMain.firstVisibleIndex===0&&this.JSC$15883_calendarMain.scrollTo(0,0);this.JSC$15883_calendarMain.scrollToIndex(this.JSC$15883_calendarMain.firstVisibleIndex-1)};
_.b.onFormSubmit=function(O){O.preventDefault();this.calendarConfig&&(O=this.validateDateText(),O.isValid&&(this.commitDate(O.details),this.dialog.close()))};
_.b.onEscOrClickingOutside=function(O){O=O.detail.path&&!!O.detail.path.length&&O.detail.path[0];if(O.classList.contains("ytd-calendar-date-picker")){O===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var x=0;x<this.dropdownButton.children.length;x++)this.dropdownButton.children[x]===O&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}O=this.textbox.value!==this.dateText;x=this.validateDateText();O&&x.isValid&&this.commitDate(x.details);this.dialog.close();this.textbox.value=
this.dateText};
_.b.commitDate=function(O){this.calendarConfig&&(this.set("calendarConfig.selectedDate",O),_.wr(this.hostElement,"ytd-calendar-date-selected",O))};
_.b.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var O=this.textbox.value;var x=new Date;O=(new p7W(2)).parse(O,x,{validate:!0})===O.length?QNm(x):void 0;if(!O)return this.errorMessage=_.CZ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};x=this.calendarConfig.start;var e=this.calendarConfig.end;if(ORw(O,x))return this.errorMessage=_.CZ("ENTER_DATE_OR_LATER",{allowed_date:Cyi(x)}),{isValid:!1,details:void 0};if(ORw(e,O))return this.errorMessage=
_.CZ("ENTER_DATE_OR_EARLIER",{allowed_date:Cyi(e)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:O}};
_.Dy.Object.defineProperties(PC.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Cyi(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var O=this.calendarConfig,x=[],e=0;e<7;e++)x.push(xV.NARROWWEEKDAYS[(e+j8d)%7]);e=[];for(var l=new Date(O.start.year,O.start.month);l.getFullYear()<O.end.year||l.getFullYear()===O.end.year&&l.getMonth()<=O.end.month;){var C=e,Q=C.push,L=l.getFullYear(),k=l.getMonth(),M=O,G=void 0,X=[],y=Object.freeze({extraCssClass:"invisible",debugClass:""}),Z=new Date(L,k),E=QNm(Z);Z=Z.getDay();for(var P=QNm(new Date);E.month===
k;){Z!==j8d&&G||(G=Array.from({length:7}).fill(y),X.push(G));var U={date:{year:L,month:k,day:E.day},extraCssClass:"",debugClass:""};M.selectedDate&&U.date&&im7(U.date,M.selectedDate)&&(U.extraCssClass+=" selected");if(ORw(E,M.start)||ORw(M.end,E))U.extraCssClass+=" disabled";im7(E,P)&&(U.extraCssClass+=" today");U.extraCssClass=U.extraCssClass.trim();G[(Z-j8d+7)%7]=U;E=eem(E);Z=(Z+1)%7}Q.call(C,{weeks:X,monthLabel:xV.SHORTMONTHS[k]+" "+L,year:L,month:k,monthLabelExtraCssClass:X[0][2]===y?"shift-down-label":
""});l.setMonth(l.getMonth()+1)}return{months:e,daysOfWeekLabel:x}}}}});
PC.prototype.onEscOrClickingOutside=PC.prototype.onEscOrClickingOutside;PC.prototype.scrollToDate=PC.prototype.scrollToDate;_.B([_.R(),_.v("design:type",Object)],PC.prototype,"calendarConfig",void 0);_.B([_.R(),_.v("design:type",Object)],PC.prototype,"skipNextOpenDialog",void 0);_.B([_.R(),_.v("design:type",Object)],PC.prototype,"errorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],PC.prototype,"previousMonthLabel",void 0);
_.B([_.R(),_.v("design:type",Object)],PC.prototype,"nextMonthLabel",void 0);_.B([_.kX("#textbox"),_.v("design:type",HTMLInputElement)],PC.prototype,"textbox",void 0);_.B([_.kX("#calendar-dialog"),_.v("design:type",Object)],PC.prototype,"dialog",void 0);_.B([_.kX("#calendar-main"),_.v("design:type",Object)],PC.prototype,"JSC$15883_calendarMain",void 0);_.B([_.kX("#date-picker"),_.v("design:type",HTMLElement)],PC.prototype,"dropdownButton",void 0);
_.B([_.p("calendarConfig.selectedDate"),_.v("design:type",String),_.v("design:paramtypes",[])],PC.prototype,"dateText",null);_.B([_.p("calendarConfig","calendarConfig.selectedDate"),_.v("design:type",Object),_.v("design:paramtypes",[])],PC.prototype,"renderData",null);_.B([_.T1("renderData","calendarConfig.selectedDate"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],PC.prototype,"scrollToDate",null);
_.B([_.bH("iron-overlay-canceled"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],PC.prototype,"onEscOrClickingOutside",null);_.B([_.Va({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],PC);
_.n(PC,"ytd-calendar-date-picker",function(){if(eyR!==void 0)return eyR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return eyR=O},{mode:2});var lkd=_.CZ("UTC_OFFSET_FORMAT",{utc_offset:(new H1("Z")).format(new Date)}),CWJ=(new Date).getTimezoneOffset()*-60,Q_D=new Date,bFR,T5R=rb(Q_D.getTimezoneOffset());bFR=U5d(m5R(T5R,Q_D));var L4d=_.CZ("LOCAL_TIME_GMT_LABEL",{gmt_text:bFR.replace("+0","+").replace("-0","-").replace(":00","")}),cC=function(){var O=_.a.apply(this,arguments)||this;O.selectedTimeIndex=0;O.selectedTimezoneIndex=0;O.timeOfDayOptions=x6T;return O};
_.c(cC,_.a);_.b=cC.prototype;_.b.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var O=lAV();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=O,this.selectedTimeIndex=0;else{var x=bR8(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},O,{selectedDate:x.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(e){return e.secondsSinceMidnight===x.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.b.onDatePicked=function(O){this.selectedDate=O.detail};
_.b.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.wr(this.hostElement,"ytd-date-time-selection-cancelled")};
_.b.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var O=this.selectedDate;O=new Date(O.year,O.month,O.day);_.wr(this.hostElement,"ytd-date-time-selection-update",Math.floor(O.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+O.getTimezoneOffset()*60))}};
_.b.getTimezoneFormat=function(O){return O.localizedDisplayText?O.localizedDisplayText:_.CZ("TIMEZONE_FORMAT",{utc_offset_text:""+O.localizedUtcOffset,city_name:""+O.localizedName})};
_.b.updateSelectedTimeIndexFromBinding=function(O){this.selectedTimeIndex=O.detail.value};
_.b.updateSelectedTimezoneIndexFromBinding=function(O){this.selectedTimezoneIndex=O.detail.value};
_.Dy.Object.defineProperties(cC.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=this.data.timezoneOptions;var x={name:"Etc/Unknown",localizedName:_.CZ("LOCAL_TIME_LABEL"),localizedUtcOffset:lkd,utcOffsetSec:""+CWJ,localizedDisplayText:L4d};O?O.length&&O[0].name!==x.name&&(O[0].localizedDisplayText||(x.localizedDisplayText=""),O.unshift(x)):O=[x];return O}}},
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]}}});
cC.prototype.onDateTimeTimezoneChange=cC.prototype.onDateTimeTimezoneChange;cC.prototype.onDatePicked=cC.prototype.onDatePicked;cC.prototype.updateDefaultSelectedValue=cC.prototype.updateDefaultSelectedValue;_.B([_.R(),_.v("design:type",Object)],cC.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],cC.prototype,"calendarConfig",void 0);_.B([_.R(),_.v("design:type",Object)],cC.prototype,"selectedDate",void 0);_.B([_.R(),_.v("design:type",Object)],cC.prototype,"selectedTimeIndex",void 0);
_.B([_.R(),_.v("design:type",Object)],cC.prototype,"selectedTimezoneIndex",void 0);_.B([_.kX("#time-listbox"),_.v("design:type",Object)],cC.prototype,"timeListBox",void 0);_.B([_.kX("#timezone-listbox"),_.v("design:type",Object)],cC.prototype,"timezoneListBox",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],cC.prototype,"rendererStamperBehavior",void 0);_.B([_.p("data.timezoneOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],cC.prototype,"timeZones",null);
_.B([_.G1("data","timeZones"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cC.prototype,"updateDefaultSelectedValue",null);_.B([_.p("selectedTimezoneIndex","timeZones"),_.v("design:type",Object),_.v("design:paramtypes",[])],cC.prototype,"selectedTimezone",null);_.B([_.p("selectedTimeIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],cC.prototype,"selectedTime",null);
_.B([_.bH("ytd-calendar-date-selected"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],cC.prototype,"onDatePicked",null);_.B([_.T1("selectedTimezone","selectedTime","selectedDate"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cC.prototype,"onDateTimeTimezoneChange",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],cC);
_.n(cC,"ytd-date-time-picker-renderer",function(){if(SId!==void 0)return SId;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return SId=O},{mode:1});var kFT;var IB=function(){var O=_.a.apply(this,arguments)||this;O.boundOnTapDismissButton=function(){O.dismissTapHandler()};
O.dismissButtonOverrides={size:"XS"};return O};
_.c(IB,_.a);IB.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}}}}}};
IB.prototype.dismissTapHandler=function(){_.wr(this.hostElement,"yt-backstage-attachment-dismissed")};
IB.prototype.computeAttachmentType=function(O){return O?O.backstageImageRenderer?"image":O.videoRenderer?"video":"none":"none"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],IB.prototype,"attachmentPreview",void 0);_.B([_.R(),_.v("design:type",Object)],IB.prototype,"dismissButton",void 0);_.B([_.R(),_.v("design:type",Object)],IB.prototype,"boundOnTapDismissButton",void 0);
_.B([_.R(),_.v("design:type",Object)],IB.prototype,"dismissButtonOverrides",void 0);_.B([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.v("design:type",String)],IB.prototype,"attachmentType",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],IB);
_.n(IB,"ytd-backstage-dismissable-attachment",function(){if(kFT!==void 0)return kFT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kFT=O},{mode:1});var Au3;var VT=function(){var O=_.a.apply(this,arguments)||this;O.selectedVideoId=void 0;O.picker=void 0;O.dismissButtonOverrides={size:"XS"};O.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return O};
_.c(VT,_.a);_.b=VT.prototype;_.b.onServiceRequestCompleted=function(O){O.stopPropagation()};
_.b.handleAddVideoPreviewAction=function(O){O=this.get("addVideoPreviewAction",O);this.onGetVideoPreviewSuccess(O)};
_.b.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}}}}}};
_.b.onLaunchVideoPicker=function(O){var x=this,e=_.db(this.get("addVideoLinkAction.title",O)),l=this.get("addVideoLinkAction.onePickHostId",O);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",O);l&&(this.picker||(e=_.Egp(_.cXm(l).setTitle(e).addView(XDk()).addView(F1T()),function(C){x.onPickVideo(C)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",O)||e.addView("youtube"),this.picker=e.build()),this.picker.setVisible(!0))};
_.b.onPickVideo=function(O){if(O)if(O.action==="cancel")_.wr(this.hostElement,"yt-video-link-button-cancel");else if(O.action==="picked"){O=O.docs;if(!O||O.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(O=(O==null?0:O.length)?O[0]:void 0)?O.id:void 0;this.setVideoPreview()}};
_.b.setVideoPreview=function(){var O=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){O.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.b.onGetVideoPreviewSuccess=function(O){if(O&&O.videoPreview&&O.cancelButton)this.videoPreview=O.videoPreview,this.cancelButton=O.cancelButton,_.wr(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.b.onGetVideoPreviewError=function(){this.cancel()};
_.b.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.wr(this.hostElement,"yt-video-link-cancel")};
_.b.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
VT.prototype.onServiceRequestCompleted=VT.prototype.onServiceRequestCompleted;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],VT.prototype,"videoPreview",void 0);_.B([_.R(),_.v("design:type",Object)],VT.prototype,"cancelButton",void 0);_.B([_.R(),_.v("design:type",Object)],VT.prototype,"getVideoPreviewCommand",void 0);_.B([_.R(),_.v("design:type",Object)],VT.prototype,"dismissButtonOverrides",void 0);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],VT.prototype,"onServiceRequestCompleted",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],VT);
_.n(VT,"ytd-backstage-video-link-attachment",function(){if(Au3!==void 0)return Au3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Au3=O},{mode:1});var M8T;var D6F;var GFz;var pB=function(){return _.a.apply(this,arguments)||this};
_.c(pB,_.a);pB.prototype.dataChanged=function(){this.active=!1};
pB.prototype.onTap=function(){_.wr(this.hostElement,"yt-select-emoji-suggestion",this.data)};
pB.prototype.identity=function(O){return O};
_.Dy.Object.defineProperties(pB.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;if((O=this.data)==null?0:(x=O.image)==null?0:(e=x.thumbnails)==null?0:(l=e[0])==null?0:l.url)return O=this.data.image.thumbnails[0].url,O.startsWith("data:image/svg+xml")?zH(O):_.Yy(O)}}});
pB.prototype.dataChanged=pB.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],pB.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],pB.prototype,"active",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pB.prototype,"dataChanged",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],pB.prototype,"imageSrc",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],pB);
_.n(pB,"ytd-emoji-suggestion",function(){if(GFz!==void 0)return GFz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GFz=O},{mode:1});var F4p=/.*([:@#].*?)$/,RB=function(){var O=_.a.apply(this,arguments)||this;O.suggestions=[];O.suggestionIndex=-1;O.JSC$15911_lastSuggestionRange=null;return O};
_.c(RB,_.a);_.b=RB.prototype;_.b.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.b.getSuggestions=function(O){var x=[],e=KE4(this.emojiManager,O.substr(0,3));if(e)for(var l in e)if(l.toLocaleLowerCase().indexOf(O)===0){var C=e[l];if(C&&C.emojiId){C=ln(this.emojiManager,C.emojiId);var Q=void 0,L=void 0,k=void 0,M=void 0,G=((Q=C)==null?0:Q.isCustomEmoji)?(L=C)==null?void 0:(k=L.shortcuts)==null?void 0:k[0]:(M=C)==null?void 0:M.emojiId;Q=void 0;x.push({suggestion:{image:(Q=C)==null?void 0:Q.image,alt:G,text:l}});if(x.length>=64)break}}return x?x.sort(function(X,y){return y.suggestion.text<
X.suggestion.text?-1:y.suggestion.text===X.suggestion.text?0:1}):null};
_.b.insertSuggestion=function(O){_.wr(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15911_lastSuggestionRange,text:O.alt});this.dropdown.opened=!1};
_.b.updateSuggestionsAtCaret=function(O){this.updateSuggestions(O,this.retrieveTextBeforeRange(O))};
_.b.offsetStartOfRangeBy=function(O,x){O.startOffset>=x&&O.setStart(O.startContainer,O.startOffset-x)};
_.b.updateSuggestions=function(O,x){var e=this;this.JSC$15911_lastSuggestionRange&&(this.JSC$15911_lastSuggestionRange.detach(),this.JSC$15911_lastSuggestionRange=null);if((x=F4p.exec(x))&&x.length&&(x=x[x.length-1].toLocaleLowerCase(),x.length>2||x===":_")&&(this.offsetStartOfRangeBy(O,x.length),this.JSC$15911_lastSuggestionRange=O,(O=this.getSuggestions(x))&&O.length)){this.suggestions=O;_.A_(this,function(){e.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(O.length-1);return}this.dropdown.opened=!1};
_.b.onKeyDown=function(O){if(this.dropdown.opened)switch(O.key){case "Escape":this.dropdown.opened=!1;O.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);O.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);O.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),O.preventDefault()}};
_.b.onKeyUp=function(O,x){switch(O.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(x);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(x)}};
_.b.onKeyPress=function(O){O.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),O.preventDefault())};
_.b.changeSuggestionIndex=function(O){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(O+this.suggestions.length)%this.suggestions.length,O=this.dropdownContent.children[this.suggestionIndex],O.active=!0,this.dropdownContent.scrollTop=O.offsetTop)};
_.b.retrieveTextBeforeRange=function(O){var x=O.startContainer;return x&&x.nodeType===Node.TEXT_NODE?x.textContent.substr(0,O.startOffset):""};
RB.prototype.onKeyPress=RB.prototype.onKeyPress;RB.prototype.onKeyUp=RB.prototype.onKeyUp;RB.prototype.onKeyDown=RB.prototype.onKeyDown;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Array)],RB.prototype,"suggestions",void 0);_.B([_.R(),_.v("design:type",_.x5)],RB.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",Number)],RB.prototype,"verticalSuggestionsOffset",void 0);
_.B([_.kX("#dropdown"),_.v("design:type",Object)],RB.prototype,"dropdown",void 0);_.B([_.kX("#dropdown-content"),_.v("design:type",HTMLDivElement)],RB.prototype,"dropdownContent",void 0);_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],RB.prototype,"onKeyDown",null);_.B([_.bH("keyup"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent,Range]),_.v("design:returntype")],RB.prototype,"onKeyUp",null);
_.B([_.bH("keypress"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],RB.prototype,"onKeyPress",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-emoji-input"})],RB);
_.n(RB,"ytd-emoji-input",function(){if(D6F!==void 0)return D6F;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return D6F=O},{mode:2});var XcL;var Uu=function(){var O=_.a.apply(this,arguments)||this;O.hasMaxOptions=!1;return O};
_.c(Uu,_.a);_.b=Uu.prototype;_.b.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.b.setPrefilledChoices=function(O){var x=this;this.set("pollOptions",[]);var e;for(e=0;e<Math.min(O.length,this.data.maxPollOptions);e++)this.push("pollOptions",O[e].substring(0,this.data.maxPollOptionChars));for(;e<this.data.minPollOptions;e++)this.push("pollOptions","");this.hasMaxOptions=e>=this.data.maxPollOptions;_.A_(this,function(){for(var l=x.pollOptions,C=_.$U(x.hostElement).querySelectorAll(".poll-option-input"),Q=0;Q<C.length;Q++)C[Q].value=l[Q]})};
_.b.focusChanged=function(){_.lH(this.hostElement)};
_.b.onInput=function(){var O=this;_.hY(this,"onInput",function(){O.isValid()?_.wr(O.hostElement,"yt-commentbox-post-enable"):_.wr(O.hostElement,"yt-commentbox-post-disable")},300)};
_.b.setPollOptions=function(){var O=[],x,e=((x=this.data)==null?0:x.minPollOptions)?this.data.minPollOptions:0;for(x=0;x<e;x++)O.push("");return O};
_.b.addPollOption=function(){var O=this;_.wr(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.vn.addLowPriorityJob(function(){var x;(x=_.$U(O.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||x.focus()})};
_.b.onRemovePollOption=function(O){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.wr(this.hostElement,"yt-poll-attachment-dismiss")):(O=this.repeat.indexForElement(O.target.parentNode),O!==null&&(this.splice("pollOptions",O,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.wr(this.hostElement,"yt-commentbox-post-enable"))))};
_.b.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.b.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var O=0,x=this.pollOptions.length;O<x;O++)if(this.pollOptions[O].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.b.getPollOptions=function(){return this.pollOptions};
_.b.setPollOptionsFromInputs=function(){for(var O=_.$U(this.hostElement).querySelectorAll(".poll-option-input"),x=0;x<O.length;x++)this.pollOptions[x]=O[x].value.trim()};
_.b.clearPollOptions=function(){var O=_.$U(this.hostElement).querySelectorAll(".poll-option-input");O=_.T(O);for(var x=O.next();!x.done;x=O.next())x.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.b.getSimpleString=function(O){return _.db(O)};
_.b.updateValueFromBinding=function(O){if(O.target&&this.pollOptions){var x=Array.from(_.$U(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(O.target);if(x>=0){var e;this.pollOptions[x]=(e=O.detail.value)!=null?e:"";this.notifyPath("pollOptions."+x)}}};
Uu.prototype.dataChanged=Uu.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Uu.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Array)],Uu.prototype,"pollOptions",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Uu.prototype,"hasMaxOptions",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Uu.prototype,"enableCreationBox",void 0);
_.B([_.kX("#repeat"),_.v("design:type",qQ)],Uu.prototype,"repeat",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Uu.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Uu);
_.n(Uu,"ytd-poll-attachment",function(){if(XcL!==void 0)return XcL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XcL=O},{mode:2});var o3p;var yuJ;var ZF2;var E32;var aB=function(){return _.a.apply(this,arguments)||this};
_.c(aB,_.a);_.Dy.Object.defineProperties(aB.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aB.prototype,"rendererBehaviors",void 0);_.B([_.R(),_.v("design:type",Object)],aB.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],aB.prototype,"focused",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("focused"),_.v("design:type",Object),_.v("design:paramtypes",[])],aB.prototype,"ariaSelected",null);_.B([_.Va({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],aB);
_.n(aB,"yt-user-mention-suggestion-renderer",function(){if(E32===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;ZF2===void 0&&(ZF2=document.createElement("template"));var l=ZF2;e.call(x,l.content.cloneNode(!0),O.content.firstChild);E32=O}O=E32;return O},{mode:2});var t84;var qG$;var mM=function(){var O=_.a.apply(this,arguments)||this;O.focusedSuggestionIndex=-1;return O};
_.c(mM,_.a);_.b=mM.prototype;_.b.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.b.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.b.setFocusedSuggestionIndex=function(O){!this.data||!this.data.suggestions||O<0||O>=this.data.suggestions.length||(this.focusedSuggestionIndex=O,O=this.getSuggestionId(O),this._setFocusedSuggestionId(O))};
_.b.advanceSuggestion=function(O){this.focusedSuggestionIndex===-1||O!==-1&&O!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+O),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.b.ensureSuggestionVisible=function(O){O=this.getSuggestionId(O);O=_.$U(this.hostElement).querySelector("[id="+O+"]");O!=null&&(O.offsetTop<this.hostElement.scrollTop?O.scrollIntoView(!0):O.offsetTop+O.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&O.scrollIntoView(!1))};
_.b.getSuggestionId=function(O){return"user-mention-suggestion-"+O};
_.b.onSuggestionTap=function(O){var x=_.q(O.model.item,zZR);this.ytRendererBehavior.logExplicitClick(x);_.wr(this.hostElement,"yt-user-mention-suggestion-selected",{data:x,index:O.model.index})};
_.b.onSuggestionMouseMove=function(O){O.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(O.model.index)};
_.b.isSuggestionFocused=function(O,x){return O===x};
_.b.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.b.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("focused-suggestion-id-changed",this.focusedSuggestionId))};
mM.prototype.focusedSuggestionIdChangedForBinding=mM.prototype.focusedSuggestionIdChangedForBinding;mM.prototype.onDomChange=mM.prototype.onDomChange;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mM.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],mM.prototype,"focusedSuggestionIndex",void 0);_.B([_.R({readOnly:!0}),_.v("design:type",String)],mM.prototype,"focusedSuggestionId",void 0);
_.B([_.bH("dom-change"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],mM.prototype,"onDomChange",null);_.B([_.T1("focusedSuggestionId"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mM.prototype,"focusedSuggestionIdChangedForBinding",null);_.B([_.Va({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],mM);
_.n(mM,"yt-user-mention-suggestions-dropdown",function(){if(qG$===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;t84===void 0&&(t84=document.createElement("template"));var l=t84;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qG$=O}O=qG$;return O},{mode:2});var su=function(){var O=_.a.apply(this,arguments)||this;O.suggestionsResponse=null;O.activeMention=null;O.selectionChangeListener=O.onSelectionChange.bind(O);O.handlesEnabled=_.t("enable_handles_in_mention_suggest_posts");O.handlesInMentionSuggestionsEnabled=_.t("handles_in_mention_suggest_posts");O.zeroPrefixMentionSuggestionEnabled=_.t("enable_zero_prefix_mention_suggestion_web");O.pendingQuery=null;O.flowNonce=null;return O};
_.c(su,_.a);_.b=su.prototype;_.b.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.b.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.b.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.b.hasSuggestions=function(O){return!!(O&&O.suggestions&&O.suggestions.length>0)};
_.b.onInput=function(){var O=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var x=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),e=this.activeMention.JSC$11343_getText().slice(-1)===" ",l=this.activeMention.JSC$11343_getText().slice(-2,-1)===" ",C="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11343_getText().slice(-2,
-1))>=0;C=this.zeroPrefixMentionSuggestionEnabled&&C;if(this.activeMention.isCollapsed()||(x||l||C)&&e)this.cancelActiveMention();else{var Q=this.activeMention.JSC$11343_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.hY(this,"requestSuggestions",function(){O.requestSuggestions(Q)},100)}}}};
_.b.onServiceRequestSent=function(O){O.stopPropagation()};
_.b.onServiceRequestCompleted=function(O){O.stopPropagation();O=O.detail.data;O.query&&(!this.pendingQuery||this.pendingQuery!==O.query)||!this.zeroPrefixMentionSuggestionEnabled&&O.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=O,this.hasSuggestions(O)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.b.onServiceRequestError=function(O){O.stopPropagation()};
_.b.onUserMentionSuggestionSelected=function(O){this.selectSuggestion(O.detail.data,O.detail.index)};
_.b.onSelectionChange=function(){if(this.activeMention){var O=_.NR(),x=this.activeMention.JSC$11343_containsRange(O);O=O&&this.containsHelper(this.dropdown,O.getContainer());x||O||this.cancelActiveMention()}};
_.b.containsHelper=function(O,x){var e;if(((e=window.ShadyDOM)==null?void 0:e.noPatch)===!0)return O.contains(x);for(;x;){if(x===O)return!0;x=x instanceof ShadowRoot?x.host:x.parentNode}return!1};
_.b.maybeStartSuggest=function(){var O=_.NR();if(O&&O.isCollapsed()){var x=O.JSC$11343_getStartNode(),e=O.JSC$11343_getStartOffset();if(x instanceof Text&&!(e<1)){var l=x.textContent;!(l=l&&l.charAt(e-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(l)<0||(this.activeMention=_.Kp(x,e-1,O.JSC$11343_getEndNode(),O.JSC$11343_getEndOffset()),this.flowNonce=Zf(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.b.updateActiveMention=function(){if(this.activeMention){var O=_.NR();O&&O.isCollapsed()&&(this.activeMention=_.Kp(this.activeMention.JSC$11343_getStartNode(),this.activeMention.JSC$11343_getStartOffset(),O.JSC$11343_getEndNode(),O.JSC$11343_getEndOffset()))}};
_.b.requestSuggestions=function(O){if(this.activeMention){var x={suggestions_query:O};this.pendingQuery=O;_.N9(this.hostElement,[this.suggestionsEndpoint,x])}};
_.b.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()};
_.b.focusPreviousSuggestion=function(O){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),O.preventDefault())};
_.b.focusNextSuggestion=function(O){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),O.preventDefault())};
_.b.selectFocusedSuggestion=function(O){if(this.hasSuggestions(this.suggestionsResponse)){var x=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.q(x,zZR)&&(this.selectSuggestion(_.q(x,zZR),this.dropdown.focusedSuggestionIndex),O.preventDefault())}};
_.b.selectSuggestion=function(O,x){if(O){var e=this.activeMention;if(e){var l=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&O.handle?_.mn(l,"\u00a0\u2068@"+O.handle+"\u2069\u00a0"):this.handlesEnabled?_.mn(l,"\u00a0"+O.displayName+"\u00a0"):_.mn(l,"\u00a0@"+O.displayName+"\u00a0");J7(l,"/channel/"+O.channelId);l.classList.add("yt-formatted-string","yt-simple-endpoint");l.setAttribute("spellcheck","false");e.isCollapsed()||e.JSC$11343_removeContents();e.insertNode(l,!0);O=document.createTextNode(" ");
l.parentNode.insertBefore(O,l.nextSibling);window.getSelection().collapse(O,1);x={suggestionSelected:{suggestionIndex:x}};if(this.zeroPrefixMentionSuggestionEnabled){var C;x.suggestionSelected.isZeroPrefix=((C=this.suggestionsResponse)==null?void 0:C.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",x);this.cancelActiveMention();_.wr(this.hostElement,"yt-mention-inserted")}}};
_.b.getPositionTarget=function(O){return O&&O.getBrowserRangeObject()};
_.b.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.b.onFocusedSuggestionIdChanged=function(O){var x=_.pCr(this.hostElement)[0];x&&(O.detail.value?x.setAttribute("aria-activedescendant",O.detail.value):x.removeAttribute("aria-activedescendant"))};
_.b.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.b.logGELEvent=function(O,x){O={eventType:O,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};x&&(O=Object.assign(O,x));_.uU("userMentionAutoCompleteBoxEvent",O)};
su.prototype.onDomChange=su.prototype.onDomChange;su.prototype.onUserMentionSuggestionSelected=su.prototype.onUserMentionSuggestionSelected;su.prototype.onServiceRequestError=su.prototype.onServiceRequestError;su.prototype.onServiceRequestCompleted=su.prototype.onServiceRequestCompleted;su.prototype.onServiceRequestSent=su.prototype.onServiceRequestSent;su.prototype.onInput=su.prototype.onInput;_.B([_.V(_.cg),_.v("design:type",Object)],su.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],su.prototype,"suggestionsEndpoint",void 0);_.B([_.R(),_.v("design:type",Object)],su.prototype,"suggestionsResponse",void 0);_.B([_.R(),_.v("design:type",Object)],su.prototype,"activeMention",void 0);_.B([_.kX("#dropdown"),_.v("design:type",Object)],su.prototype,"dropdown",void 0);_.B([_.kX("#iron-dropdown"),_.v("design:type",Object)],su.prototype,"ironDropdown",void 0);
_.B([_.bH("input"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],su.prototype,"onInput",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],su.prototype,"onServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],su.prototype,"onServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],su.prototype,"onServiceRequestError",null);_.B([_.bH("yt-user-mention-suggestion-selected"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],su.prototype,"onUserMentionSuggestionSelected",null);
_.B([_.bH("dom-change"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],su.prototype,"onDomChange",null);_.B([_.Va({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],su);
_.n(su,"yt-user-mention-autosuggest-input",function(){if(yuJ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;o3p===void 0&&(o3p=document.createElement("template"));var l=o3p;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yuJ=O}O=yuJ;return O},{mode:2});var WC=null;
_.tY({is:"ytd-commentbox",_template:function(){if(M8T!==void 0)return M8T;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return M8T=O},
behaviors:[_.Cqr.YtHostElementBehavior,_.cg,_.Wt.YtActionHandlerBehavior,_.OJ.YtComponentBehavior,_.ZX.YtRendererstamperBehavior,_.lW2.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(O,x){return _.xE(O.entities,"aadcGuidelinesStateEntityPayload",x)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(O,x){return _.xE(O.entities,"commentboxStateEntity",x)},
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 _.Cn}},
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:_.t("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.t("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",_.Qa(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(O){this.fire(O?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(O){this.set("submitButtonDisabled",void 0);this.clear();O&&this.computeIsEmojiButtonDisplayed_(O)&&(O=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&O.updateEmojiCategories()},
observePrefilledImage_:function(O,x,e){this.isValidPrefilledImage_(O,x,e)&&(this.prefilledAttachment_="image",this.prefilledImageData_=x,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(O,x){this.isValidPrefilledVideo_(O,x)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(O){O&&O.pollData&&O.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(O.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Gy();this.focus()},
detached:function(){document.removeEventListener("tap",_.Qa(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(O){O=O.detail;O=O.isCustomEmoji?O.shortcuts[0]:O.emojiId;var x=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(x,O);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var O=_.NR();if(O){O=O.getBrowserRangeObject();for(var x=O.commonAncestorContainer;x;){if(x===this.getEditableTextArea_())return O;x=x.parentNode}}O=this.getEditableTextArea_();O=_.HP(O,O.childNodes.length);O.select();return O.getBrowserRangeObject()},
insertTextWithEmojis_:function(O,x,e){(x=this.emojiManager.createDocumentFragment(x,!0,!1,e===void 0?!0:e))&&x.childNodes.length!==0&&(O.collapsed||O.deleteContents(),e=x.lastChild,O.insertNode(x),_.NPd(e).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var O=_.NR();if(O){var x=O.JSC$11343_getStartNode(),e=O.JSC$11343_getEndNode();if(Ljw(x)&&Ljw(e)){var l=O.JSC$11343_getStartOffset(),C;if(_.ig&&x.nodeType===Node.ELEMENT_NODE&&(C=_.Sr3(x)))_.HP(C,0).select();else{C=wY(x)?x:_.fu(x,wY);var Q=wY(e)?e:_.fu(e,wY);if(C||Q)if(O.isCollapsed()){if(x.nodeType===Node.TEXT_NODE){O=!0;l===x.length&&(O=!1);if(WC==="end"||WC==="right")O=!1;x=x.parentNode;O=[].concat(_.Kx(x.parentNode.childNodes)).indexOf(x)+(O?0:1);_.HP(x.parentNode,
O).select()}}else C?C.previousSibling&&C.previousSibling.length>0?_.Kp(e,O.JSC$11343_getEndOffset(),C.previousSibling,C.previousSibling.length-1).select():(x=document.createTextNode("\u200b"),C.parentNode.insertBefore(x,C),_.Kp(e,O.JSC$11343_getEndOffset(),x,0).select()):Q&&(Q.nextSibling&&Q.nextSibling.length>0?_.Kp(x,O.JSC$11343_getStartOffset(),Q.nextSibling,1).select():(e=document.createTextNode("\u200b"),Q.parentNode.insertBefore(e,Q.nextSibling),_.Kp(x,O.JSC$11343_getStartOffset(),e,e.length).select()));
WC=null}}else WC=null}else WC=null},
leftKeyPressed_:function(){WC="left"},
rightKeyPressed_:function(){WC="right"},
endKeyPressed_:function(){WC="end"},
maybeDeleteChip_:function(){var O=FjN(!0);if(O){var x=_.NR(),e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();_.sN(e,x,O,O.childNodes.length).select()}},
maybeBackspaceChip_:function(){var O=FjN(!1);if(O){var x=_.NR(),e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();_.sN(e,x,O,0).select()}},
maybeBackspaceChipWordMode_:function(O){var x=_.NR();if(x.isCollapsed()){var e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();var l=X7L(e,x,!0);l&&(_.sN(e,x,l,0).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(O){var x=_.NR();if(x.isCollapsed()){var e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();var l=X7L(e,x,!1);l&&(_.sN(e,x,l,l.childNodes.length).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
onTap_:function(O){if(!O.defaultPrevented&&(O.currentTarget.tagName==="YTD-COMMENTBOX"&&wY(O.target)&&O.preventDefault(),this.isEmojiPickerDisplayed)){var x=this.$$("#emojis"),e=this.$$("#emoji-button"),l=this.getEditableTextArea_();if((O=O.path?O.path:O.composedPath&&O.composedPath())&&!O.includes(x)&&!O.includes(l)&&!O.includes(e))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(O,x,e){return O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&x!==void 0&&x.encryptedBlobId!==null&&x.sourceExternalVideoId!==null&&e!==void 0&&e.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(O,x){return O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!x&&!!x.videoRenderer&&!!x.videoRenderer.videoId},
isValidPrefilledAttachment_:function(O,x,e){return this.isValidPrefilledImage_(O,x,e)||this.isValidPrefilledVideo_(O,e)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.t("enable_multi_image_post_creation")){var O=this.$$("ytd-backstage-multi-image-select-renderer");O&&O.hasImages()&&O.cancel()}else(O=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&O.cancel();(O=this.$["poll-attachment"])&&this.hasPoll_&&O.clearPollOptions();(O=this.$["image-poll-attachment"])&&this.hasImagePoll_&&O.resetPollOptions();(O=this.$["quiz-attachment"])&&this.hasQuiz_&&O.resetQuizOptions();
(O=this.$["video-link-attachment"])&&this.hasVideo_&&O.cancel();(O=this.$["access-restrictions-selector"].firstElementChild)&&O.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 _.$U(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.$U(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(O,x){O=AK7(O,this.emojiManager,x).cloneNode(!0);for(x=O.firstChild;x;)if(x.nodeType!==1)x=x.nextSibling;else switch(x.tagName){case "BR":var e=_.Is();_.eQR(e,x);x=e.nextSibling;break;case "DIV":(e=x.lastChild)&&x.nextSibling&&_.U5(_.Is(),e);x.previousSibling&&(x.previousSibling.nodeType===1||x.previousSibling.nodeType===3&&!x.previousSibling.textContent.endsWith("\n"))&&_.Rs(_.Is(),x);e&&e.nodeName==="BR"&&_.Um(e);e=x;x.hasChildNodes()?(x=x.firstChild,
_.luD(e)):(x=x.nextSibling,_.Um(e));break;default:x=x.nextSibling}return oMr(O)},
onAddImageError_:function(O){O.stopPropagation();this.errorMessage_=_.KA(O.detail)},
setTextAreaValue_:function(O){O||(O="");var x=this.getEditableFormattedString_();x.text="";this.getEditableTextArea_().innerText="";typeof O==="string"&&(O={runs:[{text:O}]});x.text=O},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();WC=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var O=this.getEditableTextArea_();O&&(_.HP(O,O.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.wz("HTML_DIR")==="rtl"){var O=this.getEditableTextArea_(),x=this.getTextAreaValue()!==""?"auto":"rtl";O.setAttribute("dir",x)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var O;return ip7((O=this.$["quiz-attachment"])==null?void 0:O.getExplanationText())||ip7(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var O=null;if(this.isEmojiButtonDisplayed){var x=this.getInputRange_();x&&(O=this.emojiInput.retrieveTextBeforeRange(x))}this.insertText_(O,!0);this.updateCharCount_();this.setSubmitButton_();O=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=O.scrollHeight>O.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var O=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:O})},
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(O){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(O)},
onPasteEmoji_:function(O){O.preventDefault();O.stopImmediatePropagation();O=O.clipboardData.getData("text/plain");this.insertText_(O,!1,!1)},
insertText_:function(O,x,e){x=x===void 0?!1:x;e=e===void 0?!0:e;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&O){var l=this.getInputRange_().cloneRange();this.emojiManager&&l&&(x&&this.emojiInput.offsetStartOfRangeBy(l,O.length),this.insertTextWithEmojis_(l,O,e),kZN(this.getEditableTextArea_().lastChild)||(l=this.getInputRange_().cloneRange()),l&&(this.emojiInput.updateSuggestions(l,O),this.updateSuggestionOffset_(l)))}},
setSubmitButton_:function(){if(this.data){var O=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",x=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(O||x){var e=this.getTextAreaValue().trim();x=e===this.previousText_;e=!e||this.aboveCharLimit_;O&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(e=this.aboveCharLimit_);this.submitButtonDisabled=
x||e||!this.getTextLength();O&&_.t("enable_post_scheduling")&&(this.submitButtonDisabled=x&&!this.scheduledPublishTimeSec_||e)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.db,computeCreationBoxClass_:function(O){return O?"focused":"not-focused"},
computeFooterMessageClass_:function(O,x){return x?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(O,x){return x?x:O},
computeFooterMessageHidden_:function(O,x){return!x&&!O},
computePlaceholderText_:function(O,x,e){return(e==="video"||e==="image")&&(O==null?0:O.prefilledPlaceholderText)?O==null?void 0:O.prefilledPlaceholderText:x==="poll"||x==="image-poll"?O==null?void 0:O.pollPostPlaceholderText:x==="quiz"?O==null?void 0:O.quizPostPlaceholderText:x==="image"?O==null?void 0:O.imagePostPlaceholderText:O==null?void 0:O.placeholderText},
computeHideAttachmentButtons_:function(O,x,e,l){return O===void 0?!1:l&&this.getSimpleString(l)===this.getSimpleString(O.rateLimitErrorMessage)?!0:x!=="none"||e!=="none"||!O.videoLinkButton&&!O.pollButton&&!O.imagePollButton&&!O.quizButton&&!O.imageButton},
computeHideDismissableAttachment_:function(O){return O!=="image"&&O!=="video"},
computeHasVideo_:function(O){return O==="video"},
computeHasImage_:function(O){return O==="image"},
computeHasPoll_:function(O){return O==="poll"},
computeHasImagePoll_:function(O){return O==="image-poll"},
computeHasQuiz_:function(O){return O==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(O){return O&&O.backstageAttachment?O.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!O.backstageAttachment.quizRenderer&&!O.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(O){if(this.isValidPrefilledAttachment_(O.purpose,O.prefilledImageData,O.backstageAttachment))return O.backstageAttachment},
computeEditAttachment_:function(O){if(this.computePrefilledContent_(O)===void 0)return O.backstageAttachment},
computeAuthorThumbnailDimension_:function(O,x){return O&&!x?24:40},
computeImageUploadEndpoint_:function(O){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",O)},
computeRateLimitErrorCommands_:function(O){var x,e;return O==null?void 0:(x=O.advancedTierFeatures)==null?void 0:(e=x.rateLimit)==null?void 0:e.rateLimitCommands},
computeIsBackstageComment_:function(O){return!(!O||O!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(O){return this.get("submitButton.buttonRenderer.serviceEndpoint",O)||this.get("replyButton.buttonRenderer.serviceEndpoint",O)||this.get("postButton.buttonRenderer.serviceEndpoint",O)},
computeSubmitButtonOverride:function(){if(_.t("web_modern_buttons")){var O,x;return{segmentedPosition:this.dropdownSchedulePanel_||!((O=this.data)==null?0:(x=O.postOptionsMenu)==null?0:x.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.t("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(O,x){O=this.get("submitButton.buttonRenderer",O)||this.get("replyButton.buttonRenderer",O)||this.get("postButton.buttonRenderer",O);x&&(O=x);O&&(O=Object.assign({},O),O.serviceEndpoint=void 0,O.isDisabled=this.submitButtonDisabled);return O},
computeHasExternalLinksAccess_:function(O){if(_.t("enable_rfa_external_links")){var x,e,l;return(l=O==null?void 0:(x=O.advancedTierFeatures)==null?void 0:(e=x.externalLinks)==null?void 0:e.allowExternalLinks)!=null?l:!0}return!0},
computeIsEmojiButtonDisplayed_:function(O){return O.emojiButton&&O.emojiPicker&&O.emojiPicker.emojiPickerRenderer&&O.emojiPicker.emojiPickerRenderer.categories?O.emojiPicker.emojiPickerRenderer.categories.find(function(x){return x.emojiPickerCategoryRenderer?x.emojiPickerCategoryRenderer.emojiIds&&x.emojiPickerCategoryRenderer.emojiIds.length>0:x.emojiPickerUpsellCategoryRenderer?x.emojiPickerUpsellCategoryRenderer.emojis&&x.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(O){return O.charLimit?O.charLimit:null},
computeDropdownSchedulingPanel_:function(O,x){if(O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&x)return x},
computeInlineSchedulingPanel_:function(O,x){if(O==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&x)return x},
computeHideAuthorThumbnail_:function(O,x){return O||this.computeUseIdentityChip_(x)},
computeHideIdentityChipRenderer_:function(O,x){return O||!this.computeUseIdentityChip_(x)},
computeUseIdentityChip_:function(O){return!!O&&!!O.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(O){var x,e,l,C;(O==null?0:(x=O.detail)==null?0:(e=x.endpoint)==null?0:e.ypcGetOffersEndpoint)||(O==null?0:(l=O.detail)==null?0:(C=l.endpoint)==null?0:C.ypcOffersEndpoint)?(O.stopPropagation(),_.N9(this,[O.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",O)&&(O.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(O){this.addedAttachment="video";this.selectedVideoId_=O.detail.videoId},
commentboxStateEntityChanged_:function(O){var x=this;(O==null?void 0:O.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(O==null?void 0:O.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){x.focus()})},
onYtServiceRequestSent_:function(O,x){if(x.actions)for(O=_.T(x.actions),x=O.next();!x.done;x=O.next())x.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(O){this.isLoading=!1;var x=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",O),e,l,C,Q=O==null?void 0:(e=O.detail)==null?void 0:(l=e.data)==null?void 0:(C=l.actionResult)==null?void 0:C.commentboxStateEntityKey;if(x)this.errorMessage_=x;else if(Q){var L;this.dismissData_=O==null?void 0:(L=O.detail)==null?void 0:L.data;this.commentboxStateKey_=Q}else{this.clear();var k;this.fire("yt-commentbox-dismiss",O==null?void 0:(k=O.detail)==
null?void 0:k.data)}},
onYtServiceRequestError_:function(O){O.stopPropagation();this.isLoading=!1;var x,e;if(((x=this.data)==null?void 0:x.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((e=this.data)==null?void 0:e.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(x=this.get("detail.error.args",O)||[],x.length>1&&x[1].message){this.handlePostsServiceRequestError_(x[1].message);return}(O=this.get("detail.error.message",O))?this.errorMessage_=this.data.errorMessage||_.KA(O):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(O){if(_.t("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var x=_.T(this.rateLimitErrorCommands),e=x.next();!e.done;e=x.next())if(e=e.value,e.errorLabel===O){_.C_(e.command,this.hostElement);return}this.errorMessage_=_.KA(O)},
submitIfNotBackstagePost_:function(O){if(!this.isBackstagePost)this.onSubmit_(O)},
onSubmit_:function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W;return _.A(function(z){switch(z.nextAddress){case 1:O.stopPropagation();if(!x.serviceEndpoint||!x.isValidInput_())return z.return();if(x.shouldShowPostAadcNotice_())return x.showPostAadcNotice_(),z.return();if(x.shouldShowCommentAadcNotice_())return x.showCommentAadcNotice_(),z.return();if(!(x.$$("ytd-backstage-multi-image-select-renderer")&&x.hasImage_&&_.t("enable_multi_image_post_creation"))){z.jumpTo(2);break}e=x.$$("ytd-backstage-multi-image-select-renderer");
return z.yield(e.getAllUploadStatuses(),3);case 3:l=z.yieldResult;if(!l)return z.return();C=_.T(l);for(Q=C.next();!Q.done;Q=C.next())if(L=Q.value,L.encryptedBlobId===void 0)return x.isLoading=!1,M=k=void 0,x.errorMessage_=(M=(k=x.imageUploadEndpoint_)==null?void 0:k.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?M:null,z.return();return z.return(x.submitForm_(void 0,void 0,void 0,void 0,e.images,x.taggedVideoId_));case 2:if(!x.hasImagePoll_||!x.$["image-poll-attachment"]){z.jumpTo(4);
break}return z.yield(x.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:G=z.yieldResult;if(!G)return z.return();X=_.T(G);for(y=X.next();!y.done;y=X.next())if(Z=y.value,!Z.encryptedBlobId)return x.isLoading=!1,E=void 0,x.errorMessage_=(E=x.data.errorMessage)!=null?E:null,z.return();case 4:U=(P=x.$$("ytd-backstage-image-select-renderer"))&&P.uploadPromise(),W=x.getSharedPostId_(),U?U.then(function(){x.submitForm_.apply(x,_.Kx(_.vw.apply(0,arguments)))}).catch(function(r){x.isLoading=!1;
x.errorMessage_=_.KA(r.message)}):x.selectedVideoId_?x.submitForm_(void 0,x.selectedVideoId_):x.prefilledAttachment_==="image"?x.submitForm_(x.prefilledImageData_.encryptedBlobId,void 0,void 0,x.prefilledImageData_.sourceExternalVideoId,void 0,x.taggedVideoId_):x.prefilledAttachment_==="video"?x.submitForm_(void 0,x.data.backstageAttachment.videoRenderer.videoId):W?x.submitForm_(void 0,void 0,W):x.taggedVideoId_!==void 0?x.submitForm_(void 0,void 0,void 0,void 0,void 0,x.taggedVideoId_):x.submitForm_(),
_.Ra(z)}})},
openSchedulingPanel:function(O){O&&O.scheduleButton&&O.scheduleButton.buttonRenderer&&(this.scheduleButton_=O.scheduleButton.buttonRenderer);O&&O.dateTimePicker&&this.set("data.schedulingDateTimePicker",O.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(O){O.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(O){O.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(O){O.stopPropagation();O.detail.alertMessage&&(this.alertMessage_=O.detail.alertMessage)},
onImageSelected_:function(O){O.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(O){O.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(O){O.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(O.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(O){O.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(O){var x=this.$["video-link-attachment"];x&&x.onLaunchVideoPicker(O)},
onAttachmentDismiss_:function(O){O.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"&&_.t("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.t("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 O;if(this.addedAttachment==="image-poll"&&((O=this.$["image-poll-attachment"])==null||!O.isValid()))return!1;var x;if(this.addedAttachment==="quiz"&&((x=this.$["quiz-attachment"])==null||!x.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;O=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(O=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")O=!0;return O||!!this.getTextAreaValue().trim()},
submitForm_:function(O,x,e,l,C,Q){var L=this.getTextAreaValue().trim(),k={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&L===this.previousText_&&(L=void 0);L!==void 0&&(k.comment_text=L);this.isLoading=!0;Q!=void 0&&(k.tagged_video_id=Q);O?(k.image_blob_id=O,this.imagePreviewCoordinates_&&(k.image_preview_coordinates=this.imagePreviewCoordinates_)):x?k.attached_video_id=x:e?k.shared_post_id=e:C&&C.length>0&&(k.images_data=C.map(function(M){return{encryptedBlobId:M.encryptedBlobId,
previewCoordinates:M.previewCoordinates}}));
l&&(k.source_video_id=l);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(k.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(k.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(k.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.t("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(k.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.t("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(k.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.N9(this,[this.serviceEndpoint,k])},
onIsInputFocusChanged_:function(O,x){O?this.fire("yt-autonav-pause-focus"):x!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(O){var x=this.getEditableTextArea_();[].concat(_.Kx(O.dataTransfer.items)).forEach(function(e){e.kind==="string"&&e.type.match("^text/plain")&&e.getAsString(function(l){x.appendChild(document.createTextNode(l))})});
O.preventDefault()},
preventDefault_:function(O){O.preventDefault()},
onSuggestionInsert_:function(O){this.insertTextWithEmojis_(O.detail.range,O.detail.text)},
onEmojiSuggestionClick_:function(O){this.emojiInput.insertSuggestion(O.detail)},
computeSubmitButtonClass_:function(O,x){return!x||O?"":"with-options"},
updateSuggestionOffset_:function(O){if(this.emojiInput&&_.$U(this.emojiInput).querySelector("#dropdown")){var x=this.getEditableTextArea_().getBoundingClientRect().bottom,e=O.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(x-e)+5;x=this.getEditableTextArea_().getBoundingClientRect().left;O=O.getBoundingClientRect().left-x;_.$U(this.emojiInput).querySelector("#dropdown").style.marginLeft=O+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(O){if(_.t("enable_post_scheduling")&&this.data&&this.data.purpose){O=O.detail;if(Math.floor(Date.now()/1E3)>=O)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var x=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(x)||x!==O?this.scheduledPublishTimeSec_=O:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=O;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var O=["image-button","image-poll-button","poll-button"];_.t("enable_quiz_creation")&&O.push("quiz-button");_.t("auto_convert_posts_video_tag")||O.push("video-link-button");return O},
getButtonRenderer:function(O,x){if(O)switch(x){case "video-link-button":var e;return((e=O.videoLinkButton)==null?void 0:e.buttonRenderer)||void 0;case "image-button":var l;return((l=O.imageButton)==null?void 0:l.buttonRenderer)||void 0;case "poll-button":var C;return((C=O.pollButton)==null?void 0:C.buttonRenderer)||void 0;case "image-poll-button":var Q;return((Q=O.imagePollButton)==null?void 0:Q.buttonRenderer)||void 0;case "quiz-button":var L;return((L=O.quizButton)==null?void 0:L.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var O;return(O=this.data)==null||!O.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var O,x;return!((O=this.data)==null||!O.openAadcDialog)&&!((x=this.aadcGuidelinesState_)==null||!x.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.wz("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var O;((O=this.data)==null?0:O.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.jC("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(O){O.clickTrackingParams&&_.k0().clickCommand(O);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Sh(this,"yt-close-popup-action")},
onHideIdentityChip:function(O){var x;this.set("data.placeholderText",(x=O.hideIdentityChipAction)==null?void 0:x.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var hb=function(){var O=_.a.apply(this,arguments)||this;O.isOpen=!1;O.modern=_.t("web_modern_buttons");O.roundedContainer=!0;O.dropdownButtonOverride=_.t("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;O.inPopupContainer=!1;O.isCommentboxLoading=!1;var x=["image-button","image-poll-button","poll-button"];_.t("enable_quiz_creation")&&x.push("quiz-button");_.t("auto_convert_posts_video_tag")||x.push("video-link-button");O.attachmentButtonIds=x;O.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 O};
_.c(hb,_.a);_.b=hb.prototype;_.b.computeButtonOverride=function(){var O;return((O=this.data)==null?0:O.postOptionsMenu)&&_.t("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.b.configureRendererStamper=function(){var O={"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]]"}}}}};_.t("auto_convert_posts_video_tag")||(O["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return O};
_.b.ready=function(){var O=this,x=_.$U(this.hostElement).querySelector("#placeholder-area"),e=function(l){O.onOpen(l)};
x.addEventListener("tap",e);x.addEventListener("keypress",e)};
_.b.showButtonEduTooltip=function(){var O,x,e,l,C,Q,L;if(_.t("enable_quiz_creation")&&((O=this.data)==null?0:(x=O.quizButton)==null?0:(e=x.buttonRenderer)==null?0:(l=e.hint)==null?0:(C=l.hintRenderer)==null?0:(Q=C.content)==null?0:(L=Q.bubbleHintRenderer)==null?0:L.text)&&(_.Z5.getInstance(),O=E2(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(O==null?void 0:
O.length)>0)){this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.quizButton}});return}var k;if((k=this.data)==null?0:k.imagePollButtonTooltip)if(_.Z5.getInstance(),k=E2(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(k==null?void 0:k.length)>0){this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.imagePollButton}});return}var M;_.t("enable_multi_image_post_creation")&&
((M=this.data)==null?0:M.multiImageButtonTooltip)&&(_.Z5.getInstance(),M=E2(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(M==null?void 0:M.length)>0&&this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.imageButton}}))};
_.b.onCreatePollAction=function(O){_.q(O,lid)&&(this.JSC$15966_commentbox.addedAttachment="poll",this.openDialog())};
_.b.onAddVideoLinkAction=function(O){if(_.q(O,ihz))this.JSC$15966_commentbox.onAddVideoLink(O)};
_.b.onShowSchedulingPanelCommand=function(O){(O=_.q(O,UC2))&&this.openSchedulingPanel(O)};
_.b.onCreateImagePollCommand=function(O){_.q(O,ptd)&&(this.JSC$15966_commentbox.openImagePollComponent(),this.openDialog())};
_.b.onCreateQuizCommand=function(O){_.q(O,RV3)&&(this.JSC$15966_commentbox.openQuizComponent(),this.openDialog())};
_.b.openSchedulingPanel=function(O){_.t("enable_post_scheduling")&&(this.openDialog(),this.JSC$15966_commentbox.openSchedulingPanel(O))};
_.b.onCreateCommentAction=function(O){this.get("createCommentAction.contents",O)&&(this.JSC$15966_commentbox.clear(),this.closeDialog())};
_.b.onOpen=function(O){O instanceof KeyboardEvent&&O.type==="keypress"&&O.keyCode!==13&&O.keyCode!==32||(this.data.prepareAccountEndpoint?_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.b.onYtCommentboxDismiss=function(){this.closeDialog()};
_.b.onYtCommentboxLoadingStart=function(O){O.stopPropagation();this.isCommentboxLoading=!0};
_.b.onYtCommentboxLoadingEnd=function(O){O.stopPropagation();this.isCommentboxLoading=!1};
_.b.onYtVideoLinkButtonCancel=function(O){O.stopPropagation();this.onOpen(O)};
_.b.onYtVideoLinkSelected=function(O){O.stopPropagation();this.onOpen(O)};
_.b.onIronSelect=function(O){O.stopPropagation();O.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=O.detail.item.value&&(this.accessRestriction?(this.accessRestriction=O.detail.item.value,this.onOpen(O)):this.accessRestriction=O.detail.item.value)};
_.b.onYtNavigate=function(O){this.get("detail.endpoint.backstageImageUploadEndpoint",O)&&(this.JSC$15966_commentbox.addedAttachment="image",this.JSC$15966_commentbox.submitButtonDisabled=!0,this.onOpen(O))};
_.b.onRequestSent=function(O){if(_.t("web_button_rework"))for(var x=_.T(O.detail),e=x.next();!e.done;e=x.next())_.q(e.value,dn3)&&(this.JSC$15966_commentbox.addedAttachment="image",this.JSC$15966_commentbox.submitButtonDisabled=!0,this.onOpen(O))};
_.b.openDialog=function(){var O;(O=this.data)!=null&&O.isIneligibleForCommunityPagePostCreation||(this.JSC$15966_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15966_commentbox.focus())};
_.b.onPopupClosed=function(){_.Z5.getInstance()};
_.b.computeCreationDisabled=function(O){return!!O};
_.b.computeIsCreationDialog=function(O){return!!O&&O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.b.computeDisabledPostButton=function(O){if(!O)return null;O.isDisabled=!0;return O};
_.b.computeIsCreationDialogWithHeader=function(O){return!this.inPopupContainer&&!!O&&!!O.authorText&&O.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.b.computeIsHeaderHidden=function(O,x){return!O||x};
_.b.computeDropdownRendererClasses=function(O){return O?["text-secondary-style"]:[]};
_.b.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var O=_.$U(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;O&&O.reset()};
hb.prototype.onPopupClosed=hb.prototype.onPopupClosed;hb.prototype.onRequestSent=hb.prototype.onRequestSent;hb.prototype.onYtNavigate=hb.prototype.onYtNavigate;hb.prototype.onIronSelect=hb.prototype.onIronSelect;hb.prototype.onYtVideoLinkSelected=hb.prototype.onYtVideoLinkSelected;hb.prototype.onYtVideoLinkButtonCancel=hb.prototype.onYtVideoLinkButtonCancel;hb.prototype.onYtCommentboxLoadingEnd=hb.prototype.onYtCommentboxLoadingEnd;hb.prototype.onYtCommentboxLoadingStart=hb.prototype.onYtCommentboxLoadingStart;
hb.prototype.onYtCommentboxDismiss=hb.prototype.onYtCommentboxDismiss;hb.prototype.showButtonEduTooltip=hb.prototype.showButtonEduTooltip;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],hb.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],hb.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hb.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hb.prototype,"isOpen",void 0);_.B([_.R({computed:"computeButtonOverride(data)"}),_.v("design:type",Object)],hb.prototype,"buttonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hb.prototype,"modern",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hb.prototype,"roundedContainer",void 0);_.B([_.R(),_.v("design:type",Object)],hb.prototype,"dropdownButtonOverride",void 0);_.B([_.R({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.v("design:type",Boolean)],hb.prototype,"creationDisabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],hb.prototype,"enableCreationBox",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.v("design:type",Boolean)],hb.prototype,"isCreationDialog",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hb.prototype,"inPopupContainer",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.v("design:type",Boolean)],hb.prototype,"isCreationDialogWithHeader",void 0);_.B([_.R(),_.v("design:type",Object)],hb.prototype,"accessRestriction",void 0);
_.B([_.R({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.v("design:type",Array)],hb.prototype,"dropdownRendererClasses",void 0);_.B([_.R(),_.v("design:type",Object)],hb.prototype,"isCommentboxLoading",void 0);_.B([_.R(),_.v("design:type",Array)],hb.prototype,"attachmentButtonIds",void 0);_.B([_.kX("#image-button"),_.v("design:type",HTMLElement)],hb.prototype,"imageButton",void 0);
_.B([_.kX("#image-poll-button"),_.v("design:type",HTMLElement)],hb.prototype,"imagePollButton",void 0);_.B([_.kX("#quiz-button"),_.v("design:type",HTMLElement)],hb.prototype,"quizButton",void 0);_.B([_.kX("#commentbox"),_.v("design:type",Object)],hb.prototype,"JSC$15966_commentbox",void 0);_.B([_.T1("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hb.prototype,"showButtonEduTooltip",null);
_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onYtCommentboxDismiss",null);_.B([_.bH("yt-commentbox-loading-start"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onYtCommentboxLoadingStart",null);
_.B([_.bH("yt-commentbox-loading-end"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onYtCommentboxLoadingEnd",null);_.B([_.bH("yt-video-link-button-cancel"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onYtVideoLinkButtonCancel",null);
_.B([_.bH("yt-video-link-selected"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onYtVideoLinkSelected",null);_.B([_.bH("iron-select"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onIronSelect",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onYtNavigate",null);
_.B([_.bH("yt-service-request-sent-button-renderer"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hb.prototype,"onRequestSent",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hb.prototype,"onPopupClosed",null);_.B([_.H({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],hb);
_.n(hb,"ytd-backstage-post-dialog-renderer",function(){if(vYR!==void 0)return vYR;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vYR=O},{mode:1});var PWD;var cuF;var zi=function(){return _.a.apply(this,arguments)||this};
_.c(zi,_.a);_.b=zi.prototype;_.b.computeHeartButtonStyle=function(O){return(O==null?0:O.styleType)?O.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.b.onYtButtonTap=function(){if(this.data.isEnabled){var O=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(O=this.getEndpoint(O))&&_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})}else(O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(O)};
_.b.toggle=function(O){this.set("data.isHearted",O!==void 0?O:!this.data.isHearted)};
_.b.getEndpoint=function(O){var x,e=(x=this.data)==null?void 0:x.heartEndpoint,l;x=(l=this.data)==null?void 0:l.unheartEndpoint;if(e&&x)return O?x:e};
_.b.computeButtonAccessibility=function(O,x){var e,l,C=O==null?void 0:(e=O.heartedAccessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label,Q,L;O=O==null?void 0:(Q=O.unheartedAccessibility)==null?void 0:(L=Q.accessibilityData)==null?void 0:L.label;return x?C:O};
_.Dy.Object.defineProperties(zi.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 O;return _.t("kevlar_system_icons")&&!((O=this.data)==null||!O.isHearted)}}});
zi.prototype.onYtButtonTap=zi.prototype.onYtButtonTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],zi.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zi.prototype,"data",void 0);_.B([_.p("data.isHearted"),_.v("design:type",Object),_.v("design:paramtypes",[])],zi.prototype,"heartTooltip",null);
_.B([_.p("data.isHearted"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],zi.prototype,"iconFilled",null);_.B([_.R({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.v("design:type",String)],zi.prototype,"buttonAccessibility",void 0);_.B([_.R({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.v("design:type",String)],zi.prototype,"heartButtonStyle",void 0);
_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zi.prototype,"onYtButtonTap",null);_.B([_.H({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],zi);
_.n(zi,"ytd-creator-heart-renderer",function(){if(cuF!==void 0)return cuF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return cuF=O},{mode:1});var rI=function(){var O=_.a.apply(this,arguments)||this;O.hasCreatorReply=!1;O.buttonOverrides={size:"S",iconPosition:"icon-only"};O.replyButtonOverrides={size:"S",type:"text"};O.forceIconButton=!_.t("web_modern_buttons");O.modern=_.t("web_modern_buttons");O.buttonTooltipPosition="bottom";O.systemIcons=_.t("kevlar_system_icons");O.replyDialog=null;return O};
_.c(rI,_.a);_.b=rI.prototype;
_.b.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]]"}}}}}};
_.b.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.b.dataChange=function(){this.replyDialog&&_.$U(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var O,x,e;this.isLiked=this.systemIcons&&!!((O=this.data)==null?0:(x=O.likeButton)==null?0:(e=x.toggleButtonRenderer)==null?0:e.isToggled)};
_.b.computeShowVoteCountBeginning=function(O,x){return O===void 0||x===void 0?!0:O.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!x&&this.ytRendererBehavior.getSimpleString(x)!=="0"};
_.b.computeShowVoteCountEnd=function(O,x){return O===void 0||x===void 0?!0:O.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!x&&this.ytRendererBehavior.getSimpleString(x)!=="0"};
_.b.computeShowCommentCount=function(O,x){return O===void 0||x===void 0?!0:O.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!x&&this.ytRendererBehavior.getSimpleString(x)!=="0"};
_.b.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.b.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.b.showReplyDialog=function(O){O&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.$U(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=O,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.b.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.b.onRequestSent=function(O){if(_.t("web_button_rework")){O=_.T(O.detail);for(var x=O.next();!x.done;x=O.next())(x=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",x.value))&&this.showReplyDialog(x)}};
_.b.onYtNavigate=function(O){var x,e;(O=(x=_.q(O.detail.endpoint,_.u8p))==null?void 0:(e=x.dialog)==null?void 0:e.commentReplyDialogRenderer)&&this.showReplyDialog(O)};
_.b.onYtServiceRequestSent=function(O,x){O.stopPropagation();if(x.actions)for(O=0;O<x.actions.length;O++){var e=_.q(x.actions[O],ky$);e&&this.handleUpdateCommentVoteAction(e)}};
_.b.handleUpdateCommentVoteAction=function(O){this.voteCount=O.voteCount||_.KA("0");O.voteStatus==="LIKE"?this.JSC$15978_ytdDislikeToggleButtonRenderer.toggle(!1):O.voteStatus==="DISLIKE"?this.JSC$15978_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15978_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15978_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.b.computeReplyButtonHidden=function(O){return O};
_.b.computeReplyButtonBeginning=function(O){return(O==null?0:O.replyButton)&&O.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?O.replyButton:void 0};
_.b.computeReplyButtonEnd=function(O){return(O==null?0:O.replyButton)&&O.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?O.replyButton:void 0};
_.b.computeActionButtonStyle=function(O){return(O==null?0:O.style)?O.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.b.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.b.onYtToggleButton=function(O){var x,e;this.isLiked=this.systemIcons&&!!((x=O.detail)==null?0:(e=x.actions)==null?0:e.like)};
rI.prototype.onYtToggleButton=rI.prototype.onYtToggleButton;rI.prototype.onButtonTooltipPositionChanged=rI.prototype.onButtonTooltipPositionChanged;rI.prototype.onYtServiceRequestSent=rI.prototype.onYtServiceRequestSent;rI.prototype.onYtNavigate=rI.prototype.onYtNavigate;rI.prototype.onRequestSent=rI.prototype.onRequestSent;rI.prototype.onYtCommentboxDismiss=rI.prototype.onYtCommentboxDismiss;rI.prototype.dataChange=rI.prototype.dataChange;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"voteCount",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"commentCount",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"replyThumbnail",void 0);
_.B([_.R(),_.v("design:type",Object)],rI.prototype,"hasCreatorReply",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],rI.prototype,"enableCreationBox",void 0);_.B([_.R({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.v("design:type",String)],rI.prototype,"actionButtonsStyle",void 0);_.B([_.R({computed:"computeReplyButtonBeginning(data)"}),_.v("design:type",Object)],rI.prototype,"replyButtonBeginning",void 0);
_.B([_.R({computed:"computeReplyButtonEnd(data)"}),_.v("design:type",Object)],rI.prototype,"replyButtonEnd",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"buttonOverrides",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"replyButtonOverrides",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"forceIconButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],rI.prototype,"useCommentIcon",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],rI.prototype,"modern",void 0);_.B([_.R(),_.v("design:type",Object)],rI.prototype,"buttonTooltipPosition",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],rI.prototype,"systemIcons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],rI.prototype,"isLiked",void 0);_.B([_.kX("ytd-button-renderer"),_.v("design:type",Object)],rI.prototype,"ytdReplyButtonRenderer",void 0);
_.B([_.kX("#like-button"),_.v("design:type",Object)],rI.prototype,"JSC$15978_ytdLikeToggleButtonRenderer",void 0);_.B([_.kX("#dislike-button"),_.v("design:type",Object)],rI.prototype,"JSC$15978_ytdDislikeToggleButtonRenderer",void 0);_.B([_.kX("#reply-dialog"),_.v("design:type",HTMLElement)],rI.prototype,"replyDialogElement",void 0);_.B([_.kX("#reply-button"),_.v("design:type",HTMLElement)],rI.prototype,"replyButtonElement",void 0);
_.B([_.kX("#reply-button-end"),_.v("design:type",HTMLElement)],rI.prototype,"replyButtonEndElement",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rI.prototype,"dataChange",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],rI.prototype,"onYtCommentboxDismiss",null);
_.B([_.bH("yt-service-request-sent-button-renderer"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],rI.prototype,"onRequestSent",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],rI.prototype,"onYtNavigate",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],rI.prototype,"onYtServiceRequestSent",null);_.B([_.T1("buttonTooltipPosition"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rI.prototype,"onButtonTooltipPositionChanged",null);
_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],rI.prototype,"onYtToggleButton",null);_.B([_.H({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],rI);
_.n(rI,"ytd-comment-action-buttons-renderer",function(){if(PWD!==void 0)return PWD;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return PWD=O},{mode:1});var Ikd;var HC=function(){return _.a.apply(this,arguments)||this};
_.c(HC,_.a);HC.prototype.focus=function(){_.$U(this.hostElement).querySelector("#commentbox").focus()};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],HC.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],HC.prototype,"zeroStepChannelCreationRenderer",void 0);_.B([_.H({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],HC);
_.n(HC,"ytd-comment-dialog-renderer",function(){if(Ikd!==void 0)return Ikd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Ikd=O},{mode:1});var V83;var KB=function(){var O=_.a.apply(this,arguments)||this;O.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.t("enable_web_delhi_icons")};O.replyButtonOverrides={size:"S",type:"text"};return O};
_.c(KB,_.a);_.b=KB.prototype;_.b.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.b.detached=function(){this.replyBox&&this.replyBox.remove()};
_.b.showReplyDialog=function(O){if(O){var x=this.replyBox;x||(x=document.createElement("ytd-comment-reply-dialog-renderer"),x.id="replybox",_.$U(this.replyDialogDiv).appendChild(x));x.data=O;this.replyDialogDiv.hidden=!1;x.openDialog()}};
_.b.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.b.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var O,x=_.q((O=this.toolbarSurface)==null?void 0:O.subscribersOnlyDisclaimerSnackbarCommand,_.VG);x&&_.wr(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:x})}};
_.b.onYtServiceRequestSent=function(O,x){O.stopPropagation();if(x.actions)for(var e=0;e<x.actions.length;e++){var l=_.q(x.actions[e],ky$);l?this.handleUpdateCommentVoteAction(l):O.target===this.heartButton&&this.toggleHeartState()}};
_.b.handleUpdateCommentVoteAction=function(O){var x;(x=this.toolbarState)!=null&&x.key&&this.ytdReduxBehavior.dispatch(_.Zw("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:O.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":O.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.b.toggleHeartState=function(){var O;(O=this.toolbarState)!=null&&O.key&&this.ytdReduxBehavior.dispatch(_.Zw("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Dy.Object.defineProperties(KB.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return(((O=this.toolbarState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(x=this.toolbarData)==null?void 0:x.likeCountLiked:(e=this.toolbarData)==null?void 0:e.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.prepareAccountCommand)!==void 0&&!_.t("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O,x=_.q((O=this.toolbarSurface)==null?void 0:O.prepareAccountCommand,_.VG),e,l,C,Q,L,k,M,G,X;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((e=this.toolbarSharedData)==null||!e.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((l=this.toolbarState)==null?void 0:l.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:x!=null?x:_.q((C=this.toolbarSurface)==null?void 0:C.likeCommand,_.VG),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:x!=null?x:_.q((Q=this.toolbarSurface)==null?void 0:Q.unlikeCommand,_.VG),defaultCommand:this.isVisiblyDisabled?_.q((L=this.toolbarSurface)==null?void 0:L.commentDisabledActionCommand,_.VG):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.likeInactiveTooltip,toggledTooltip:(M=this.toolbarData)==null?void 0:M.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(G=this.toolbarData)==null?void 0:G.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(X=this.toolbarSharedData)==null?void 0:X.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O,x=_.q((O=this.toolbarSurface)==null?void 0:O.prepareAccountCommand,_.VG),e,l,C,Q,L,k,M,G,X,y;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((e=this.toolbarSharedData)==null||!e.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((l=this.toolbarState)==null?void 0:l.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:x!=null?x:_.q((C=this.toolbarSurface)==null?void 0:C.dislikeCommand,_.VG),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:x!=null?x:_.q((Q=this.toolbarSurface)==null?void 0:Q.undislikeCommand,_.VG),defaultCommand:this.isVisiblyDisabled?_.q((L=this.toolbarSurface)==null?void 0:L.commentDisabledActionCommand,_.VG):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.dislikeInactiveTooltip,toggledTooltip:(M=this.toolbarData)==null?void 0:
M.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(G=this.toolbarSharedData)==null?void 0:G.dislikeReplyButtonA11y:(X=this.toolbarSharedData)==null?void 0:X.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(y=this.toolbarSharedData)==null?void 0:y.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var O,x,e;if(((O=this.toolbarState)==null?void 0:O.heartState)!==void 0&&((x=this.toolbarState)==null?void 0:x.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((e=this.toolbarState)==null?void 0:e.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var l,C,Q,L,k,M,G,X,y,Z,E,P,U,W;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(l=this.toolbarData)==null?void 0:l.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((L=this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.q((M=this.toolbarSurface)==null?void 0:M.heartCommand,
_.VG),unheartEndpoint:this.isVisiblyDisabled?void 0:_.q((G=this.toolbarSurface)==null?void 0:G.unheartCommand,_.VG),disabledEndpoint:this.isVisiblyDisabled?_.q((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.VG):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(y=this.toolbarData)==null?void 0:y.heartActiveTooltip,unheartedTooltip:(Z=this.toolbarData)==null?void 0:Z.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((E=
this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(P=this.toolbarSharedData)==null?void 0:P.unheartButtonA11y:(U=this.toolbarSharedData)==null?void 0:U.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.toolbarSurface)==null||!O.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.commentStrings)!=null&&O.replyButtonText){var x,e,l,C;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(x=this.commentStrings)==null?void 0:x.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.q((e=this.toolbarSurface)==null?void 0:e.replyCommand,_.VG),command:this.isVisiblyDisabled?
_.q((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.VG):this.isSubsOnlyCommentsIneligibleUser?_.q((C=this.toolbarSurface)==null?void 0:C.subscribersOnlySnackbarCommand,_.VG):void 0}}}}});
KB.prototype.onYtServiceRequestSent=KB.prototype.onYtServiceRequestSent;KB.prototype.hideReplyDialogDiv=KB.prototype.hideReplyDialogDiv;_.B([_.R(),_.v("design:type",Object)],KB.prototype,"commentStrings",void 0);_.B([_.R(),_.v("design:type",Boolean)],KB.prototype,"isReply",void 0);_.B([_.R(),_.v("design:type",Object)],KB.prototype,"toolbarData",void 0);_.B([_.R(),_.v("design:type",Object)],KB.prototype,"toolbarSharedData",void 0);
_.B([_.R(),_.v("design:type",String)],KB.prototype,"toolbarStateKey",void 0);_.B([_.R(),_.v("design:type",String)],KB.prototype,"toolbarSurfaceKey",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],KB.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.FY),_.v("design:type",Object)],KB.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.kX("#reply-dialog"),_.v("design:type",HTMLElement)],KB.prototype,"replyDialogDiv",void 0);_.B([_.kX("#replybox"),_.v("design:type",Object)],KB.prototype,"replyBox",void 0);_.B([_.kX("ytd-creator-heart-renderer"),_.v("design:type",Object)],KB.prototype,"heartButton",void 0);_.B([_.R({selector:function(O,x){return _.xE(O.entities,"engagementToolbarStateEntityPayload",x)},
selectorArgs:["toolbarStateKey"]}),_.v("design:type",Object)],KB.prototype,"toolbarState",void 0);_.B([_.R({selector:l$w,selectorArgs:["toolbarSurfaceKey"]}),_.v("design:type",Object)],KB.prototype,"toolbarSurface",void 0);_.B([_.R(),_.v("design:type",Object)],KB.prototype,"buttonOverrides",void 0);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],KB.prototype,"hideReplyDialogDiv",null);
_.B([_.p("toolbarData","toolbarState"),_.v("design:type",String),_.v("design:paramtypes",[])],KB.prototype,"likeCount",null);_.B([_.p("likeCount"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KB.prototype,"showLikeCount",null);_.B([_.p("toolbarSurface"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KB.prototype,"isVisiblyDisabled",null);_.B([_.p("toolbarSurface"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KB.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.B([_.p("toolbarSurface"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KB.prototype,"isSubsOnlyCommentsEligibleUser",null);_.B([_.p("toolbarSurface"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KB.prototype,"hasPrepareAccountCommand",null);_.B([_.p("toolbarData","toolbarState","toolbarSurface"),_.v("design:type",Object),_.v("design:paramtypes",[])],KB.prototype,"likeToggleButtonRenderer",null);
_.B([_.p("isReply","toolbarData","toolbarState","toolbarSurface"),_.v("design:type",Object),_.v("design:paramtypes",[])],KB.prototype,"dislikeToggleButtonRenderer",null);_.B([_.p("toolbarData","toolbarState","toolbarSurface"),_.v("design:type",Object),_.v("design:paramtypes",[])],KB.prototype,"creatorHeartSupportedRenderer",null);_.B([_.p("toolbarSurface"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KB.prototype,"hasReplyCommand",null);
_.B([_.p("toolbarSurface","commentStrings","isVisiblyDisabled"),_.v("design:type",Object),_.v("design:paramtypes",[])],KB.prototype,"replyButtonRenderer",null);_.B([_.R(),_.v("design:type",Object)],KB.prototype,"replyButtonOverrides",void 0);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],KB.prototype,"onYtServiceRequestSent",null);_.B([_.H({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],KB);
_.n(KB,"ytd-comment-engagement-bar",function(){if(V83!==void 0)return V83;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return V83=O},{mode:1});var pcN;var dI=function(){return _.a.apply(this,arguments)||this};
_.c(dI,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],dI.prototype,"data",void 0);_.B([_.H({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],dI);
_.n(dI,"ytd-comment-inline-thumbnail-renderer",function(){if(pcN!==void 0)return pcN;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return pcN=O},{mode:1});var RyJ;var nB=function(){return _.a.apply(this,arguments)||this};
_.c(nB,_.a);nB.prototype.onMessageTap=function(){if(this.onTapCommand){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);O&&this.ytdOpenPopupBehavior.openPopup(O)}};
_.Dy.Object.defineProperties(nB.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return(O=this.data)==null?void 0:(x=O.button)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.command}}});
_.B([_.V(_.FY),_.v("design:type",Object)],nB.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],nB.prototype,"data",void 0);_.B([_.p("data.button.buttonRenderer.command"),_.v("design:type",Object),_.v("design:paramtypes",[])],nB.prototype,"onTapCommand",null);_.B([_.H({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],nB);
_.n(nB,"ytd-comment-pause-composer-renderer",function(){if(RyJ!==void 0)return RyJ;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return RyJ=O},{mode:1});var U6z;var akN;var up=function(){var O=_.a.apply(this,arguments)||this;O.isOpen=!1;return O};
_.c(up,_.a);_.b=up.prototype;_.b.dataChanged=function(){this.isOpen=!1};
_.b.onTap=function(){this.data&&(this.data.navigationEndpoint?_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.b.focus=function(){this.JSC$16008_commentbox.focus()};
_.b.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.b.openDialog=function(){this.isOpen=!0;this.JSC$16008_commentbox.focus();this.JSC$16008_commentbox.maybeHeightChanged()};
up.prototype.onYtCommentboxDismiss=up.prototype.onYtCommentboxDismiss;up.prototype.dataChanged=up.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],up.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],up.prototype,"isOpen",void 0);_.B([_.kX("#commentbox"),_.v("design:type",Object)],up.prototype,"JSC$16008_commentbox",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],up.prototype,"dataChanged",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],up.prototype,"onYtCommentboxDismiss",null);_.B([_.H({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],up);
_.n(up,"ytd-comment-reply-dialog-renderer",function(){if(akN!==void 0)return akN;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return akN=O},{mode:1});var m6T;var Y2=function(){return _.a.apply(this,arguments)||this};
_.c(Y2,_.a);_.Dy.Object.defineProperties(Y2.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.data)==null?void 0:(x=O.icon)==null?void 0:x.iconType;return e?"yt-icons:"+e.toLowerCase():null}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Y2.prototype,"data",void 0);_.B([_.R(),_.p("data.icon"),_.v("design:type",Object),_.v("design:paramtypes",[])],Y2.prototype,"icon",null);_.B([_.H({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Y2);
_.n(Y2,"ytd-pinned-comment-badge-renderer",function(){if(m6T!==void 0)return m6T;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return m6T=O},{mode:1});var s_d;var W4$={},hyJ={input:!0,meta:!0,br:!0,link:!0,img:!0},BC=null;W4$.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(){BC==null&&(BC=document.createElement("tp-yt-paper-tooltip"),BC.offset=8,BC.fitToVisibleBounds=!0)},
onMouseOver_:function(O){if(O=_.fu(O.target,function(C){return C==this||C.getAttribute&&C.getAttribute("shared-tooltip-text")}.bind(this),!0)){var x=O.getAttribute("shared-tooltip-text");
if(x){var e=this,l=null;O!=this&&(O.tagName.toLowerCase()in hyJ?e=O.parentElement:e=O,O.id&&(l=O.id));this.polymerController.createTooltipIfRequired_();if(BC.parentElement!=e||BC.for!=l)(0,_.eU)(BC).textContent=x,_.$U(e).appendChild(BC),BC.for=l,BC.animationDelay=this.polymerController.sharedTooltipAnimationDelay,BC.position=this.polymerController.sharedTooltipPosition}}}};var vC=function(){return _.a.apply(this,arguments)||this};
_.c(vC,_.a);vC.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]]"}}}}}};
vC.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var O;((O=this.data)==null?0:O.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
vC.prototype.colorChanged=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.color)==null?void 0:(e=x.basicColorPaletteData)==null?void 0:e.foregroundBodyColor;l&&(this.rgbBadgeColor=_.UA(l));_.$U(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
vC.prototype.tooltipChanged=function(){var O;((O=this.data)==null?0:O.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
vC.prototype.tooltipChanged=vC.prototype.tooltipChanged;vC.prototype.colorChanged=vC.prototype.colorChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(W4$.YtSharedTooltipBehavior),_.v("design:type",Object)],vC.prototype,"ytSharedTooltipBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vC.prototype,"data",void 0);
_.B([_.R({value:"#4285F4"}),_.v("design:type",String)],vC.prototype,"rgbBadgeColor",void 0);_.B([_.T1("data.color"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vC.prototype,"colorChanged",null);_.B([_.T1("data.tooltip"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vC.prototype,"tooltipChanged",null);_.B([_.H({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],vC);
_.n(vC,"ytd-sponsor-comment-badge-renderer",function(){if(s_d!==void 0)return s_d;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return s_d=O},{mode:1});var zyD;var ruk;var fB=function(){return _.a.apply(this,arguments)||this};
_.c(fB,_.a);fB.prototype.computeState=function(O){switch(O==null?void 0:O.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"}};
fB.prototype.updateStateIdentifier=function(O){if(this.viewModel.triStateKey){var x=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Zw("triStateButtonStateEntityPayload",x,{key:x,stateIdentifier:O}))}};
fB.prototype.onClick=function(){var O=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(){O.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){O.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Dy.Object.defineProperties(fB.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 O;return((O=this.data)==null?void 0:O.buttonText)||""}}});
_.B([_.R(),_.v("design:type",Object)],fB.prototype,"viewModel",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],fB.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],fB.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.B([_.R({selector:CBL,selectorArgs:["viewModel.triStateKey"]}),_.v("design:type",Object)],fB.prototype,"triStateButtonStateEntity",void 0);
_.B([_.R({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.v("design:type",String)],fB.prototype,"state",void 0);_.B([_.p("viewModel","state"),_.v("design:type",Object),_.v("design:paramtypes",[])],fB.prototype,"data",null);_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],fB.prototype,"buttonText",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],fB);
_.n(fB,"ytd-tri-state-button-view-model",function(){if(ruk!==void 0)return ruk;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ruk=O},{mode:1});var HFd;var K4J;var Jb=function(){var O=_.a.apply(this,arguments)||this;O.defaultIconToFilled=!_.t("kevlar_fill_comment_chip_icon_killswitch");return O};
_.c(Jb,_.a);Jb.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Jb.prototype.dataChanged=function(){if(this.data){var O,x;((O=this.data.chipColorPalette)==null?0:O.backgroundColor)&&((x=this.data.chipColorPalette)==null?0:x.foregroundTitleColor)&&_.lH(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.aF(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.aF(this.data.chipColorPalette.foregroundTitleColor)});var e;((e=this.data)==null?0:e.command)?(_.lH(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.lH(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}};
Jb.prototype.onTap=function(){var O;if(this.data&&(O=this.data)!=null&&O.command){var x;this.ytComponentBehavior.resolveCommand((x=this.data)==null?void 0:x.command)}};
Jb.prototype.getIconSize=function(){return _.t("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Jb.prototype.onTap=Jb.prototype.onTap;Jb.prototype.dataChanged=Jb.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.cg),_.v("design:type",Object)],Jb.prototype,"ironA11yKeysBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Jb.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],Jb.prototype,"basePriceText",void 0);_.B([_.R(),_.v("design:type",Object)],Jb.prototype,"chipIcon",void 0);_.B([_.R(),_.v("design:type",Object)],Jb.prototype,"defaultIconToFilled",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jb.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jb.prototype,"onTap",null);
_.B([_.Va({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Jb);
_.n(Jb,"yt-pdg-comment-chip-renderer",function(){if(K4J===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;HFd===void 0&&(HFd=document.createElement("template"));var l=HFd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);K4J=O}O=K4J;return O},{mode:2});var wI=function(){var O=_.a.apply(this,arguments)||this;O.useSmallAvatars=_.t("small_avatars_for_comments");O.webWatchCompactComments=_.t("web_watch_compact_comments");O.editDialog=null;return O};
_.c(wI,_.a);_.b=wI.prototype;_.b.onShow=function(){_.VO("cmv",void 0,"wn_comments")};
_.b.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"}}}};
_.b.detached=function(){this.editDialog=null;this.expander.reset()};
_.b.updateBackgroundColor=function(){if(this.backgroundColor){var O={"--ytd-comment-paid-background-color":_.aF(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.lH(this.hostElement,O)}else _.lH(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.b.resetExpander=function(){var O;(O=this.expander)==null||O.reset()};
_.b.openEditDialog=function(O){O.dialog&&(this.editDialog=O.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.b.onYtNavigate=function(O){var x=O.detail.endpoint;if(x=_.q(x,_.Y23)||_.q(x,_.BH4))O.stopPropagation(),this.openEditDialog(x)};
_.b.onYtCommentboxDismiss=function(){this.editDialog=null;_.lH(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.b.onAuthorThumbnailClicked=function(){_.t("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.b.onYtCommentboxResize=function(O){var x;(O==null?0:(x=O.detail)==null?0:x.height)&&_.lH(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":O.detail.height+"px"})};
_.Dy.Object.defineProperties(wI.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 O,x=(O=this.commentEntity)==null?void 0:O.author;return x&&(x.isCreator||x.isVerified||x.isArtist)?{renderer:{authorEndpoint:x.channelPageEndpoint?_.q(x.channelPageEndpoint,_.VG):_.q(x.channelCommand,_.VG),authorText:{runs:[{text:x.displayName}]},color:x.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:x.isArtist?{iconType:"AUDIO_BADGE"}:
x.isVerified?{iconType:x.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:x.isArtist||x.isVerified?x.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var O,x=(O=this.commentEntity)==null?void 0:O.author;return x!=null&&x.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:x.sponsorBadgeUrl}]},tooltip:x.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var O;return _.q((O=this.commentSurfaceEntity)==null?void 0:O.pdgCommentChip,_.ycd)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var O;return this.voiceReplyContainerViewModel&&((O=this.voiceReplyContainerViewModel)==null?void 0:O.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return _.q((O=this.commentSurfaceEntity)==null?void 0:O.voiceReplyContainerViewModel,Zp2)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var O;return this.voiceReplyContainerViewModel&&(O=this.voiceReplyContainerViewModel)!=null&&O.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.commentSurfaceEntity)==null?void 0:O.commentBackgroundColor)!=null?x:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.t("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var O,x;return(((O=this.commentEntity)==null?void 0:(x=O.properties)==null?void 0:x.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var O,x;if(_.t("enable_profile_cards_on_comments")&&((O=this.commentEntity)==null?0:(x=O.author)==null?0:x.profileCardEndpoint)&&this.viewModel.allowProfileCard){var e,l;return _.q((e=this.commentEntity)==null?void 0:(l=e.author)==null?void 0:l.profileCardEndpoint,_.VG)}var C,Q;return _.q((C=this.commentEntity)==null?void 0:(Q=C.avatar)==null?void 0:Q.endpoint,_.VG)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var O,x;if(_.t("enable_profile_cards_on_comments")&&((O=this.commentEntity)==null?0:(x=O.author)==null?0:x.channelPageEndpoint)){var e,l;return _.q((e=this.commentEntity)==null?void 0:(l=e.author)==null?void 0:l.channelPageEndpoint,_.VG)}var C,Q;return _.q((C=this.commentEntity)==null?void 0:(Q=C.avatar)==null?void 0:Q.endpoint,_.VG)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C=(O=this.commentEntity)==null?void 0:(x=O.avatar)==null?void 0:(e=x.image)==null?void 0:(l=e.sources)==null?void 0:l[0];return C?{thumbnails:[{url:C.url,width:C.width,height:C.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.commentEntity)==null?0:(x=O.author)==null?0:x.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.commentEntity)==null?void 0:(x=O.author)==null?void 0:x.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.commentEntity)==null?void 0:(x=O.properties)==null?void 0:x.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var O;return _.q((O=this.commentSurfaceEntity)==null?void 0:O.publishedTimeCommand,_.VG)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var O,x;if(((O=this.commentEntity)==null?0:O.translatedContent)&&((x=this.translateButtonState)==null?void 0:x.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var e;if((e=this.voiceReplyContainerViewModel)==null?0:e.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var l,C;return((l=this.commentEntity)==null?void 0:(C=l.properties)==null?void 0:C.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.commentSharedEntity)==null?void 0:(x=O.strings)==null?void 0:x.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.commentSharedEntity)==null?void 0:(x=O.strings)==null?void 0:x.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.commentEntity)==null||!O.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var O,x,e=(x=_.q((O=this.viewModel)==null?void 0:O.translateButton,yPR))!=null?x:{},l,C,Q,L,k,M,G,X,y,Z,E;return Object.assign({},e,{untoggledStateData:Object.assign({},e.untoggledStateData,{buttonText:(l=this.commentEntity)==null?void 0:(C=l.translateData)==null?void 0:C.text}),togglingStateData:Object.assign({},e.togglingStateData,{buttonText:(Q=this.commentSharedEntity)==null?
void 0:(L=Q.strings)==null?void 0:L.translatingText}),toggledStateData:Object.assign({},e.toggledStateData,{buttonText:(k=this.commentSharedEntity)==null?void 0:(M=k.strings)==null?void 0:M.seeOriginalText}),transitionCommand:((G=this.commentEntity)==null?0:G.translatedContent)?void 0:_.q((X=this.commentEntity)==null?void 0:(y=X.translateData)==null?void 0:y.translateComment,_.VG),triStateKey:(Z=this.commentEntity)==null?void 0:(E=Z.properties)==null?void 0:E.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((x=_.q(_.q((O=this.toolbarSurface)==null?void 0:O.menuCommand,_.VG),vq2))==null?void 0:(e=x.menu)==null?void 0:e.menuRenderer)||null}}});
wI.prototype.onYtCommentboxResize=wI.prototype.onYtCommentboxResize;wI.prototype.onYtCommentboxDismiss=wI.prototype.onYtCommentboxDismiss;wI.prototype.onYtNavigate=wI.prototype.onYtNavigate;wI.prototype.resetExpander=wI.prototype.resetExpander;wI.prototype.updateBackgroundColor=wI.prototype.updateBackgroundColor;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],wI.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#author-thumbnail > button"),_.v("design:type",HTMLElement)],wI.prototype,"authorThumbnailAnchor",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("viewModel"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],wI.prototype,"linked",null);
_.B([_.p("viewModel","linked"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"linkedCommentBadge",null);_.B([_.R({reflectToAttribute:!0}),_.p("viewModel"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],wI.prototype,"pinned",null);_.B([_.p("viewModel","pinned"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"pinnedCommentBadge",null);
_.B([_.p("commentEntity","commentSharedEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"authorCommentBadge",null);_.B([_.R({reflectToAttribute:!0}),_.p("authorCommentBadge"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"hasAuthorBadge",null);_.B([_.p("commentEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"sponsorCommentBadge",null);
_.B([_.R({reflectToAttribute:!0}),_.p("sponsorCommentBadge"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"hasSponsorBadge",null);_.B([_.p("commentSurfaceEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"pdgCommentChipRenderer",null);_.B([_.R({reflectToAttribute:!0}),_.p("voiceReplyContainerViewModel"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"hasVoiceReply",null);
_.B([_.p("commentSurfaceEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"voiceReplyContainerViewModel",null);_.B([_.p("voiceReplyContainerViewModel"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"voiceReplyUnavailableText",null);_.B([_.R(),_.v("design:type",Object)],wI.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"viewModel",null);
_.B([_.R({selector:function(O,x){return _.xE(O.entities,"commentSharedEntityPayload",x)},
selectorArgs:["viewModel.sharedKey"]}),_.v("design:type",Object)],wI.prototype,"commentSharedEntity",void 0);_.B([_.R({selector:eSN,selectorArgs:["viewModel.commentKey"]}),_.v("design:type",Object)],wI.prototype,"commentEntity",void 0);_.B([_.R({selector:function(O,x){return _.xE(O.entities,"commentSurfaceEntityPayload",x)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.v("design:type",Object)],wI.prototype,"commentSurfaceEntity",void 0);_.B([_.R({selector:l$w,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.v("design:type",Object)],wI.prototype,"toolbarSurface",void 0);_.B([_.R({selector:CBL,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.v("design:type",Object)],wI.prototype,"translateButtonState",void 0);
_.B([_.p("commentSurfaceEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"backgroundColor",null);_.B([_.R({reflectToAttribute:!0}),_.p("viewModel"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],wI.prototype,"optimalReadingWidthComments",null);_.B([_.kX("ytd-expander"),_.v("design:type",Object)],wI.prototype,"expander",void 0);
_.B([_.T1("backgroundColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],wI.prototype,"updateBackgroundColor",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],wI.prototype,"useSmallAvatars",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],wI.prototype,"webWatchCompactComments",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("commentEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"isReply",null);
_.B([_.p("commentEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"authorThumbnailEndpoint",null);_.B([_.p("commentEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"authorNameEndpoint",null);_.B([_.p("commentEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"authorThumbnail",null);_.B([_.p("commentEntity"),_.v("design:type",String),_.v("design:paramtypes",[])],wI.prototype,"authorTextClass",null);
_.B([_.p("commentEntity"),_.v("design:type",String),_.v("design:paramtypes",[])],wI.prototype,"authorChannelName",null);_.B([_.p("commentEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"publishedTime",null);_.B([_.p("commentSurfaceEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"publishedTimeCommand",null);
_.B([_.p("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"contentText",null);_.B([_.T1("contentText"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],wI.prototype,"resetExpander",null);_.B([_.p("commentEntity"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],wI.prototype,"shouldShowReadMoreInitially",null);
_.B([_.p("commentSharedEntity"),_.v("design:type",String),_.v("design:paramtypes",[])],wI.prototype,"expandText",null);_.B([_.p("commentSharedEntity"),_.v("design:type",String),_.v("design:paramtypes",[])],wI.prototype,"collapseText",null);_.B([_.p("commentEntity"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],wI.prototype,"shouldShowTranslateButton",null);
_.B([_.p("commentEntity","commentSharedEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"translateButton",null);_.B([_.p("toolbarSurface"),_.v("design:type",Object),_.v("design:paramtypes",[])],wI.prototype,"overflowMenuRenderer",null);_.B([_.R(),_.v("design:type",Object)],wI.prototype,"editDialog",void 0);_.B([_.kX("ytd-comment-dialog-renderer"),_.v("design:type",Object)],wI.prototype,"editCommentDialogContainer",void 0);
_.B([_.kX("ytd-comment-reply-dialog-renderer"),_.v("design:type",Object)],wI.prototype,"editReplyDialogContainer",void 0);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],wI.prototype,"onYtNavigate",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],wI.prototype,"onYtCommentboxDismiss",null);
_.B([_.bH("yt-commentbox-resize"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],wI.prototype,"onYtCommentboxResize",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-comment-view-model"})],wI);
_.n(wI,"ytd-comment-view-model",function(){if(zyD!==void 0)return zyD;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return zyD=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});_.wP(_.K(function(O){var x={};return _.D("yt-sub-thread",{class:_.xz("ytSubThreadHost",(x.ytSubThreadHasButton=O.isButton,x))},_.D("div",{class:"ytSubThreadThreadline"},_.D("div",{class:"ytSubThreadConnection"}),_.D("div",{class:"ytSubThreadContinuation"}),_.D("div",{class:"ytSubThreadShadow"})),_.D("div",{class:"ytSubThreadSubThreadContent"},O.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.Ld}});var SH=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_modern_buttons");O.commentThreadingEnabled=_.t("web_delhi_comment_threads");O.isWatchGrid=_.t("kevlar_watch_grid");O.buttonOverrides=O.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};O.JSC$16054_spinnerEl=null;return O};
_.c(SH,_.a);_.b=SH.prototype;_.b.configureContinuationPathMap=function(){return _.t("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.b.shouldShowExpandedThreads=function(O,x){return this.commentThreadingEnabled&&x&&(O==null?void 0:O.length)>0};
_.b.shouldShowCollapsedThreads=function(O,x){return this.commentThreadingEnabled&&!x&&O};
_.b.computeThreadRenderer=function(O){return _.q(O,APd)};
_.b.computeIsContinuationItem=function(O){return!!this.computeContinuationItemRenderer(O)};
_.b.computeButtonRenderer=function(O){return _.q(O,_.wf)};
_.b.computeContinuationItemRenderer=function(O){return _.q(O,_.dj)};
_.b.computeShowButton=function(O){var x;return!((x=this.computeContinuationItemRenderer(O))==null||!x.button)};
_.b.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]]"}}}}}};
_.b.attached=function(){this.isShowRepliesVisible=!0};
_.b.dataChanged=function(){var O=this.expanderContents;O&&(O.hidden=!0);this.isLoading=!1};
_.b.endsInContinuation=function(O){return!!O&&O.length>0&&!!this.computeContinuationItemRenderer(O[O.length-1])};
_.b.computeShouldShowHideRepliesButton=function(O,x){return!O&&x};
_.b.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.b.isLoadingChanged=function(){this.isLoading&&!this.JSC$16054_spinnerEl&&(this.JSC$16054_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.$U(this.expanderContents).appendChild(this.JSC$16054_spinnerEl));this.JSC$16054_spinnerEl&&(this.JSC$16054_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var O;(O=this.contents)==null||O.classList.remove("reloading")}};
_.b.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var O=_.q(this.data.viewReplies,_.wf);O&&this.ytRendererBehavior.logExplicitClick(O);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.b.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var O=_.q(this.data.hideReplies,_.wf);O&&this.ytRendererBehavior.logExplicitClick(O);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.b.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var O=_.$U(this.hostElement).querySelector("#expander-contents");O&&(O.hidden=this.isShowRepliesVisible)}};
_.b.computeAlign=function(){if(this.modern){var O;return!((O=this.data)==null?0:O.viewRepliesCreatorThumbnail)}};
_.Dy.Object.defineProperties(SH.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var O,x;return this.endsInContinuation((O=this.data)==null?void 0:O.contents)||this.commentThreadingEnabled&&this.endsInContinuation((x=this.data)==null?void 0:x.subThreads)}}});
SH.prototype.isShowMoreChanged=SH.prototype.isShowMoreChanged;SH.prototype.isLoadingChanged=SH.prototype.isLoadingChanged;SH.prototype.triggerFirstContinuation=SH.prototype.triggerFirstContinuation;SH.prototype.dataChanged=SH.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.LN),_.v("design:type",Object)],SH.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],SH.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SH.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SH.prototype,"commentThreadingEnabled",void 0);_.B([_.R(),_.v("design:type",Boolean)],SH.prototype,"expanded",void 0);
_.B([_.R(),_.v("design:type",Function)],SH.prototype,"toggleExpanded",void 0);_.B([_.R(),_.v("design:type",Array)],SH.prototype,"teasers",void 0);_.B([_.R(),_.v("design:type",Boolean)],SH.prototype,"isLoading",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],SH.prototype,"isShowRepliesVisible",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],SH.prototype,"useNewFormatting",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SH.prototype,"isWatchGrid",void 0);
_.B([_.R(),_.v("design:type",Object)],SH.prototype,"buttonOverrides",void 0);_.B([_.kX("#expander-contents"),_.v("design:type",HTMLElement)],SH.prototype,"expanderContents",void 0);_.B([_.kX("ytd-continuation-item-renderer"),_.v("design:type",Object)],SH.prototype,"continuationItemRenderer",void 0);_.B([_.kX("#contents"),_.v("design:type",HTMLElement)],SH.prototype,"contents",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SH.prototype,"dataChanged",null);_.B([_.p("data.contents","data.subThreads.*"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],SH.prototype,"hasContinuation",null);_.B([_.bH("yt-expander-more-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SH.prototype,"triggerFirstContinuation",null);
_.B([_.T1("isLoading"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SH.prototype,"isLoadingChanged",null);_.B([_.T1("isShowRepliesVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SH.prototype,"isShowMoreChanged",null);_.B([_.H({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],SH);
_.n(SH,"ytd-comment-replies-renderer",function(){if(U6z!==void 0)return U6z;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return U6z=O},{mode:1});var d6N;var jH=function(){var O=_.a.apply(this,arguments)||this;O.isOpen=!1;O.commentDialog=null;O.useSmallAvatars=_.t("small_avatars_for_comments");O.useSmallAvatarsEngagementPanelOnly=_.t("small_avatars_for_comments_ep");O.placeholderFocusListener=null;O.hasOpenedDialog=!1;O.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return O};
_.c(jH,_.a);_.b=jH.prototype;_.b.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]]"}}}}}};
_.b.ready=function(){var O=this,x=_.$U(this.hostElement).querySelector("#placeholder-area"),e=_.$U(this.hostElement).querySelector("#simplebox-placeholder"),l=function(C){C.stopPropagation();C instanceof KeyboardEvent&&C.type==="keypress"&&C.keyCode!==13&&C.keyCode!==32||O.openDialog()};
this.placeholderFocusListener=l;e.addEventListener("focus",this.placeholderFocusListener);x.addEventListener("tap",l);x.addEventListener("keypress",l)};
_.b.maybeRemoveFocusEventListener=function(){var O;(O=this.data)!=null&&O.prepareAccountEndpoint&&!_.t("web_comments_simplebox_modal_focus_on_tap_ks")&&(O=_.$U(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(O.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.b.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.b.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.t("web_comment_simplebox_resolve_polymer_command_ks")?_.lV.instance.resolveCommand(this.data.prepareAccountEndpoint):_.C_(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);O&&this.ytdOpenPopupBehavior.openPopup(O);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.$U(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.b.onYtCommentboxDismiss=function(O){O.stopPropagation();this.isOpen=!1};
_.b.onCreateCommentAction=function(O){this.get("createCommentAction.contents",O)&&(this.isOpen=!1)};
_.b.computeCommentDialog=function(O){return{placeholderText:O.placeholderText,authorThumbnail:O.authorThumbnail,submitButton:O.submitButton,imageButton:O.imageButton,cancelButton:O.cancelButton,emojiButton:O.emojiButton,emojis:O.emojis,emojiPicker:O.emojiPicker,aadcGuidelinesStateEntityKey:O.aadcGuidelinesStateEntityKey,openAadcDialog:O.openAadcDialog,unicodeEmojisUrl:O.unicodeEmojisUrl}};
_.b.onHideIdentityChip=function(O){_.q(O,CGp)&&this.set("data.placeholderText",_.q(O,CGp).placeholderText)};
jH.prototype.onYtCommentboxDismiss=jH.prototype.onYtCommentboxDismiss;jH.prototype.dataChanged=jH.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],jH.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],jH.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],jH.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],jH.prototype,"isOpen",void 0);_.B([_.R(),_.v("design:type",Object)],jH.prototype,"commentDialog",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],jH.prototype,"engagementPanel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],jH.prototype,"useSmallAvatars",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],jH.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],jH.prototype,"enableCreationBox",void 0);_.B([_.R(),_.v("design:type",Boolean)],jH.prototype,"showCreateDialog",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jH.prototype,"dataChanged",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],jH.prototype,"onYtCommentboxDismiss",null);_.B([_.H({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],jH);
_.n(jH,"ytd-comment-simplebox-renderer",function(){if(d6N!==void 0)return d6N;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return d6N=O},{mode:1});var n3d;_.tI("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Nr=function(){var O=_.a.apply(this,arguments)||this;O.addHoverEffect=_.t("swatcheroo_comments_hover_effect");O.useSmallAvatars=_.t("small_avatars_for_comments");O.scrollingEnabled=_.t("web_comment_threading_scroll_on_collapse");O.threadHovered=!1;O.expanded=!1;O.removed=!1;O.teasers=[];O.actionMap=O.configureActionMap();O.toggleExpanded=function(){O.expanded=!O.expanded;!O.expanded&&O.scrollingEnabled&&_.Sh(O.hostElement,"yt-scroll-to-comment-element",[O.commentElement])};
return O};
_.c(Nr,_.a);_.b=Nr.prototype;_.b.configureActionMap=function(){return _.t("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"}:{}};
_.b.createCommentReplyAction=function(O){O=_.q(O,eC$);if(O!=null&&O.contents){var x=O.replyToCommentId,e=O.parentCommentId,l,C=(l=this.commentViewModel)==null?void 0:l.commentId;(C===x||C===e&&!x)&&this.maybeAttachReply(O.contents)}};
_.b.maybeAttachReply=function(O){var x,e;(((x=this.commentEntity)==null?void 0:(e=x.properties)==null?void 0:e.replyLevel)||0)>=3?_.wr(this.hostElement,"yt-pushed-create-comment-reply",O):this.attachReply(O)};
_.b.onPushedCreateCommentReply=function(O){var x,e;(((x=this.commentEntity)==null?void 0:(e=x.properties)==null?void 0:e.replyLevel)||0)>=3||(this.attachReply(O.detail),O.stopPropagation())};
_.b.attachReply=function(O){var x;((x=this.data)==null?0:x.replies)?(x=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+x+".continuationItemRenderer")?x===0?this.push("teasers",O):this.splice("data.replies.commentRepliesRenderer.subThreads",x,0,O):this.push("data.replies.commentRepliesRenderer.subThreads",O)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[O],viewReplies:{buttonRenderer:{text:_.J3(_.CZ("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.b.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.Kx(this.teasers))),this.set("teasers",[]))};
_.b.removeCommentAction=function(O){O=_.q(O,TvF);var x=O==null?void 0:O.commentId,e;x&&((e=this.commentViewModel)==null?void 0:e.commentId)===x&&this.maybeRemoveComment(O.actionResult)};
_.b.banAuthorAction=function(O){O=_.q(O,Opk);var x=O==null?void 0:O.commentId,e;x&&((e=this.commentViewModel)==null?void 0:e.commentId)===x&&this.maybeRemoveComment(O.actionResult)};
_.b.hideReportedCommentAction=function(O){O=_.q(O,PGF);var x=O==null?void 0:O.commentId,e;x&&((e=this.commentViewModel)==null?void 0:e.commentId)===x&&this.maybeRemoveComment(O.actionResult)};
_.b.maybeRemoveComment=function(O){O&&O.status==="STATUS_SUCCEEDED"&&(this.feedbackText=O.feedbackText||_.J3("Reply removed"),this.removed=!0)};
_.b.onTap=function(O){if(this.addHoverEffect&&!this.engagementPanel&&!_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;((x=window.getSelection())==null?0:x.toString().length)||_.C_({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.b.attached=function(){var O=this;this.isSubThread&&(this.expanded=!0);var x;(x=this.commentThreadHitbox)==null||x.addEventListener("mouseover",function(){O.threadHovered=!0});
var e;(e=this.commentThreadHitbox)==null||e.addEventListener("mouseout",function(){O.threadHovered=!1});
var l;(l=this.commentThreadHitbox)==null||l.addEventListener("click",function(){O.maybeToggleExpanded()})};
_.b.maybeToggleExpanded=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.replies)==null?void 0:(e=x.commentRepliesRenderer)==null?void 0:e.subThreads,C;(l==null?void 0:l.length)===1&&((C=_.q(l[0],_.dj))==null?0:C.button)&&this.expanded||this.toggleExpanded()};
_.Dy.Object.defineProperties(Nr.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return _.q((O=this.data)==null?void 0:O.commentViewModel,ohp)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return _.t("web_delhi_comment_threads")&&!!((O=this.data)==null?0:(x=O.replies)==null?0:(e=x.commentRepliesRenderer)==null?0:e.subThreads)}}});
Nr.prototype.onTap=Nr.prototype.onTap;Nr.prototype.onAppendContinuationItemsActionFinished=Nr.prototype.onAppendContinuationItemsActionFinished;Nr.prototype.onPushedCreateCommentReply=Nr.prototype.onPushedCreateCommentReply;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Nr.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Nr.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Nr.prototype,"addHoverEffect",void 0);_.B([_.R(),_.v("design:type",Object)],Nr.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Nr.prototype,"useSmallAvatars",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Nr.prototype,"scrollingEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Nr.prototype,"isSubThread",void 0);_.B([_.kX(".thread-hitbox"),_.v("design:type",HTMLElement)],Nr.prototype,"commentThreadHitbox",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Nr.prototype,"threadHovered",void 0);_.B([_.kX("#comment"),_.v("design:type",HTMLElement)],Nr.prototype,"commentElement",void 0);
_.B([_.R(),_.v("design:type",Object)],Nr.prototype,"expanded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Nr.prototype,"removed",void 0);_.B([_.R(),_.v("design:type",Object)],Nr.prototype,"feedbackText",void 0);_.B([_.R(),_.v("design:type",Array)],Nr.prototype,"teasers",void 0);_.B([_.R({selector:eSN,selectorArgs:["commentViewModel.commentKey"]}),_.v("design:type",Object)],Nr.prototype,"commentEntity",void 0);
_.B([_.bH("yt-pushed-create-comment-reply"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Nr.prototype,"onPushedCreateCommentReply",null);_.B([_.bH("yt-append-continuation-items-action-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Nr.prototype,"onAppendContinuationItemsActionFinished",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Nr.prototype,"commentViewModel",null);
_.B([_.p("data.replies"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Nr.prototype,"hasSubThreading",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Nr.prototype,"engagementPanel",void 0);_.B([_.bH("tap"),_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Nr.prototype,"onTap",null);_.B([_.H({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Nr);
_.n(Nr,"ytd-comment-thread-renderer",function(){if(n3d!==void 0)return n3d;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return n3d=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var uKJ;var gI=function(){var O=_.a.apply(this,arguments)||this;O.compactHeader=_.t("web_watch_compact_comments_header");O.hidePanelButton=!1;O.isPostSchedulingEnabled=_.t("enable_post_scheduling");O.hasFinishedStamping=!1;O.JSC$16077_handleOpenPostCommentDialogActionAfterStamp=!1;O.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return O};
_.c(gI,_.a);_.b=gI.prototype;
_.b.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"}}}};
_.b.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.b.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16077_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.b.onYtServiceRequestSent=function(O,x){if(!_.t("kevlar_command_handler")&&x.actions)for(O=0;O<x.actions.length;O++){var e=x.actions[O];_.q(e,UC2)&&_.$U(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.q(e,UC2))}};
_.b.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var O;if(this.getPrefilledBackstagePostDialog((O=this.data)==null?void 0:O.actions)){_.$U(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var x=_.$U(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;x&&_.A_(this,function(){x.focus();x.openDialog&&x.openDialog()})}}else this.hasActionsChange=!0};
_.b.computeIsBackstage=function(O){return O};
_.b.onYtCommentboxDismiss=function(){_.$U(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.b.removePrefilledDialog=function(O){if(O==null?0:O.actions){for(var x=O.actions.length-1;x>=0;x--){var e=void 0;((e=_.q(O.actions[x],nqL))==null?0:e.dialog)&&delete O.actions[x]}this.set("data",void 0);this.set("data",O)}};
_.b.getPrefilledBackstagePostDialog=function(O){if(O)for(var x=0;x<O.length;x++){var e=O[x],l=void 0;if((l=_.q(e,nqL))==null?0:l.dialog)return _.q(e,nqL).dialog}return null};
_.b.computeBackstagePostDialog=function(O){return O&&(this.getPrefilledBackstagePostDialog(O.actions)||O.createRenderer)};
_.b.dataChanged=function(){if(this.data){var O=this.data.customEmojis,x=this.data.unicodeEmojisUrl;_.Cn.clear();x&&_.WEk(_.Cn,x);O&&_.Cn.load(O)}};
_.b.handleSignalActionOpenPostCommentDialogAction=function(){var O=_.$U(this.hostElement).querySelector("ytd-comment-simplebox-renderer");O?O.openDialog():this.JSC$16077_handleOpenPostCommentDialogActionAfterStamp=!0};
_.b.onPostHeaderTap=function(){var O;((O=this.data)==null?0:O.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.Dy.Object.defineProperties(gI.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.t("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C,Q,L;return!this.hidePanelButton&&_.t("kevlar_watch_comments_panel_button")&&((L=_.q((O=this.data)==null?void 0:(x=O.sortMenu)==null?void 0:(e=x.sortFilterSubMenuRenderer)==null?void 0:(l=e.subMenuItems)==null?void 0:(C=l[0])==null?void 0:(Q=C.serviceEndpoint)==null?void 0:Q.commandMetadata,_.e6))==null?void 0:L.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.CZ("MINIPLAYER_EXPAND_LABEL"),text:_.KA(_.CZ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
gI.prototype.dataChanged=gI.prototype.dataChanged;gI.prototype.onYtCommentboxDismiss=gI.prototype.onYtCommentboxDismiss;gI.prototype.observePrefilledBackstagePostDialog=gI.prototype.observePrefilledBackstagePostDialog;gI.prototype.onYtServiceRequestSent=gI.prototype.onYtServiceRequestSent;gI.prototype.onStampFinished=gI.prototype.onStampFinished;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],gI.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],gI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gI.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gI.prototype,"compactHeader",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],gI.prototype,"engagementPanel",void 0);_.B([_.R(),_.v("design:type",Object)],gI.prototype,"hidePanelButton",void 0);_.B([_.R({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.v("design:type",Boolean)],gI.prototype,"isBackstage",void 0);_.B([_.R({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.v("design:type",Object)],gI.prototype,"backstagePostDialog",void 0);
_.B([_.R(),_.v("design:type",Object)],gI.prototype,"isPostSchedulingEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data","showCommentsPanelButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],gI.prototype,"useSpaceBetween",null);_.B([_.R({reflectToAttribute:!0}),_.p("data","hidePanelButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],gI.prototype,"showCommentsPanelButton",null);
_.B([_.p("data","showCommentsPanelButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],gI.prototype,"commentsPanelButtonData",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gI.prototype,"onStampFinished",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],gI.prototype,"onYtServiceRequestSent",null);
_.B([_.T1("data.actions"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gI.prototype,"observePrefilledBackstagePostDialog",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],gI.prototype,"onYtCommentboxDismiss",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gI.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],gI);
_.n(gI,"ytd-comments-header-renderer",function(){if(uKJ!==void 0)return uKJ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return uKJ=O},{mode:1});var YGd;var $2=function(){return _.a.apply(this,arguments)||this};
_.c($2,_.a);_.B([_.R(),_.v("design:type",Object)],$2.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.B([_.H({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],$2);
_.n($2,"ytd-destination-button-renderer",function(){if(YGd!==void 0)return YGd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YGd=O},{mode:1});var B53;var ip=function(){var O=_.a.apply(this,arguments)||this;O.isRichGrid=!1;O.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return O};
_.c(ip,_.a);_.b=ip.prototype;_.b.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.b.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.b.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.b.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var O;if((O=this.data)==null||!O.isExpanded){O=this.hostElement.clientWidth;var x;if(O&&(x=this.data)!=null&&x.destinationButtons){x=Math.floor((O+4)/214);O=this.data.destinationButtons.length;var e=Math.ceil(O/x);this.fullyVisibleRows=O%x===1&&e===2?1:Math.min(e,2);this.isShowMoreVisible=this.fullyVisibleRows<e}}}};
_.b.updateRichGridDestinationButtonsVisibility=function(){var O,x;if(this.isRichGrid&&((O=this.data)==null||!O.isExpanded)&&(x=this.data)!=null&&x.destinationButtons){O=this.richGridItemsPerRow+1;x=this.data.destinationButtons.length;var e=Math.ceil(x/O);this.fullyVisibleRows=x%O===1&&e===2?1:Math.min(e,2);this.isShowMoreVisible=this.fullyVisibleRows<e}};
_.b.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ip.prototype.updateRichGridDestinationButtonsVisibility=ip.prototype.updateRichGridDestinationButtonsVisibility;_.B([_.R(),_.v("design:type",Object)],ip.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Number)],ip.prototype,"fullyVisibleRows",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],ip.prototype,"isShowMoreVisible",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ip.prototype,"isRichGrid",void 0);
_.B([_.R({selector:_.qc,value:0}),_.v("design:type",Number)],ip.prototype,"richGridItemsPerRow",void 0);_.B([_.R(),_.v("design:type",Object)],ip.prototype,"gridStateActionMap",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ip.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],ip.prototype,"ytdReduxBehavior",void 0);_.B([_.T1("data","richGridItemsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ip.prototype,"updateRichGridDestinationButtonsVisibility",null);_.B([_.H({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ip);
_.n(ip,"ytd-destination-shelf-renderer",function(){if(B53!==void 0)return B53;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return B53=O},{mode:1});var v3J;var OX=function(){return _.a.apply(this,arguments)||this};
_.c(OX,_.a);OX.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],OX.prototype,"data",void 0);_.B([_.H({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],OX);
_.n(OX,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(v3J!==void 0)return v3J;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return v3J=O},{mode:1});var fkT;var xB=function(){var O=_.a.apply(this,arguments)||this;O.disableAnimation=!1;O.isSlimlineSurvey=!1;O.isSlimlineSurveyFollowUp=!1;O.isShortsStyle=!1;return O};
_.c(xB,_.a);xB.prototype.onTap=function(O){O.preventDefault();this.data&&_.wr(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Dy.Object.defineProperties(xB.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 O,x,e,l,C;return((O=this.data)==null?0:O.checked)?(x=this.data)==null?void 0:(e=x.onStateIcon)==null?void 0:e.iconType:(l=this.data)==null?void 0:(C=l.defaultStateIcon)==null?void 0:C.iconType}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xB.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],xB.prototype,"disableAnimation",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xB.prototype,"isSlimlineSurvey",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xB.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xB.prototype,"isShortsStyle",void 0);_.B([_.p("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],xB.prototype,"isAnimatedIcon",null);
_.B([_.p("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.v("design:type",Number),_.v("design:paramtypes",[])],xB.prototype,"iconSize",null);_.B([_.p("isShortsStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],xB.prototype,"isDarkTheme",null);_.B([_.p("data.checked"),_.v("design:type",Object),_.v("design:paramtypes",[])],xB.prototype,"icon",null);_.B([_.H({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],xB);
_.n(xB,"ytd-rating-survey-option-renderer",function(){if(fkT!==void 0)return fkT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return fkT=O},{mode:2});var JuF;var eX=function(){var O=_.a.apply(this,arguments)||this;O.firstResponseText=null;O.lastResponseText=null;O.selectedNonStarOption=null;O.hideOptions=!1;O.hideUndoButton=!0;O.disableAnimation=!1;O.showResponseRangeText=!1;O.selectedRatingIndex=-1;O.isSlimlineSurvey=!1;O.isSlimlineSurveyFollowUp=!1;O.isShortsStyle=!1;O.slimlineSurveyRatingSelectedIndex=-1;return O};
_.c(eX,_.a);_.b=eX.prototype;_.b.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.b.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.b.onOptionChange=function(O,x){var e=this;O=x.onStateIcon&&x.defaultStateIcon&&x.onStateIcon.iconType===x.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(L,k){L.responseText===x.responseText?e.isSlimlineSurvey?(e.selectedRatingIndex=k,e.ytdReduxBehavior.dispatch(rC3(k))):(e.setSurveyOptionValue(k,!0,"checked"),e.setSurveyOptionValue(k,!0,"selected")):(e.setSurveyOptionValue(k,!1,"checked"),e.setSurveyOptionValue(k,
!1,"selected"))});
else if(O)this.selectedNonStarOption=x,this.hideOptions=!0;else{var l=this.ytRendererBehavior.getSimpleString(x.responseText),C=!0;this.getOptionRenderers().forEach(function(L,k){e.setSurveyOptionValue(k,C,"checked");e.setSurveyOptionValue(k,!1,"selected");e.ytRendererBehavior.getSimpleString(L.responseText)===l&&(C=!1,e.setSurveyOptionValue(k,!0,"selected"))})}O=x.responseEndpoint;
var Q;x.followUpCommand&&(Q=_.q(x.followUpCommand,W_z));this.isSlimlineSurvey?(this.resetComponent(),_.Sh(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Sh(this.hostElement,"ytd-inline-survey-rating-select-action",[O,Q])};
_.b.showSelectedOption=function(){var O=this;_.vn.addJob(function(){var x=O.getOptionRenderers()[O.slimlineSurveyRatingSelectedIndex];O.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),x)},8,100)};
_.b.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(O){var x;return(x=_.q(O,zbN))!=null?x:{}}):[]};
_.b.onUndoClick=function(){this.resetComponent();_.Sh(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.b.setSurveyOptionValue=function(O,x,e){this.notifyPath("data.ratings."+O+".ratingSurveyOptionRenderer."+e);this.set("data.ratings."+O+".ratingSurveyOptionRenderer."+e,x)};
_.b.resetComponent=function(){var O=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var x=this.getOptionRenderers(),e,l;this.firstResponseText=(l=(e=x[0])==null?void 0:e.responseText)!=null?l:null;var C,Q;this.lastResponseText=(Q=(C=x[x.length-1])==null?void 0:C.responseText)!=null?Q:null;x.forEach(function(L,k){O.setSurveyOptionValue(k,!1,"checked");O.setSurveyOptionValue(k,!1,"selected")})};
_.Dy.Object.defineProperties(eX.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
eX.prototype.onOptionChange=eX.prototype.onOptionChange;eX.prototype.dataChanged=eX.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],eX.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],eX.prototype,"firstResponseText",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"lastResponseText",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"selectedNonStarOption",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"hideOptions",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"hideUndoButton",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"disableAnimation",void 0);
_.B([_.R(),_.v("design:type",Object)],eX.prototype,"showResponseRangeText",void 0);_.B([_.R(),_.v("design:type",Object)],eX.prototype,"selectedRatingIndex",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eX.prototype,"isSlimlineSurvey",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eX.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eX.prototype,"isShortsStyle",void 0);_.B([_.R({selector:function(O){return O.ui.slimlineSurveyRatingSelectedIndex}}),
_.v("design:type",Object)],eX.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.B([_.p("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],eX.prototype,"isSingleSelect",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],eX.prototype,"dataChanged",null);
_.B([_.bH("ytd-rating-survey-option-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],eX.prototype,"onOptionChange",null);_.B([_.H({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],eX);
_.n(eX,"ytd-rating-survey-renderer",function(){if(JuF!==void 0)return JuF;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return JuF=O},{mode:1});var wcz;var SGD;var j_$;var cKs=(xV.FIRSTDAYOFWEEK+1)%7,N5z=function(O,x,e,l){var C="";if(l.selection&&EMs(l.selection))$p(O,l.selection)&&(C+=" selected");else if(l.selection&&t0L(l.selection)){var Q=l.selection.selectionState||"START_DATE";$p(O,l.selection.start)&&(C+=" period-start ",Q==="START_DATE"&&(C+="selected"));$p(O,l.selection.end)&&(C+=" period-end ",Q==="END_DATE"&&(C+="selected"));iw(O,l.selection.start)||iw(l.selection.end,O)||(C+=" highlighted")}if(iw(x,l.start)||iw(l.end,x))C+=" disabled";l.circleToday&&
$p(x,e)&&(C+=" today");return C};var lq=function(){return _.a.apply(this,arguments)||this};
_.c(lq,_.a);_.b=lq.prototype;_.b.attached=function(){var O=this;_.A_(this,function(){O.JSC$16111_calendarMain.scrollHeight>0&&(O.calendarConfig.selection?O.scrollToDate(q3i(O.calendarConfig.selection)):O.scrollToDate(O.calendarConfig.end))})};
_.b.updateSelection=function(O){O=IAr(Object.assign({},this.calendarConfig,{selection:O}),N5z);this.splice.apply(this,["renderData.months",0,O.length].concat(_.Kx(O)))};
_.b.scrollToDate=function(O){this.renderData&&(O=V0w(O,this.renderData),O!==void 0&&this.JSC$16111_calendarMain.scrollToIndex(O))};
_.b.scrollToNextMonth=function(){this.JSC$16111_calendarMain.scrollToIndex(this.JSC$16111_calendarMain.firstVisibleIndex+1)};
_.b.scrollToPrevMonth=function(){this.JSC$16111_calendarMain.firstVisibleIndex===0&&this.JSC$16111_calendarMain.scrollTo(0,0);this.JSC$16111_calendarMain.scrollToIndex(this.JSC$16111_calendarMain.firstVisibleIndex-1)};
_.b.handleDayClick=function(O){_.Sh(this.hostElement,"ytd-calendar-date-clicked",[O.model.day.date])};
_.b.handleDayMouseDown=function(O){O.preventDefault();_.Sh(this.hostElement,"ytd-calendar-date-mousedown",[O.model.day.date])};
_.b.handleDayMouseUp=function(O){_.Sh(this.hostElement,"ytd-calendar-date-mouseup",[O.model.day.date])};
_.b.handleDayMouseEnter=function(O){O.preventDefault();_.Sh(this.hostElement,"ytd-calendar-date-mouseenter",[O.model.day.date])};
_.b.handleDayMouseLeave=function(O){_.Sh(this.hostElement,"ytd-calendar-date-mouseleave",[O.model.day.date])};
_.Dy.Object.defineProperties(lq.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var O=this.calendarConfig,x=N5z;x=x===void 0?N5z:x;for(var e=[],l=0;l<7;l++)e.push(xV.NARROWWEEKDAYS[(l+cKs)%7]);return{months:IAr(O,x),daysOfWeekLabel:e}}}});
_.B([_.R(),_.v("design:type",Object)],lq.prototype,"calendarConfig",void 0);_.B([_.kX("#calendar-main"),_.v("design:type",Object)],lq.prototype,"JSC$16111_calendarMain",void 0);_.B([_.p("calendarConfig"),_.v("design:type",Object),_.v("design:paramtypes",[])],lq.prototype,"renderData",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],lq);
_.n(lq,"ytd-scrollable-calendar",function(){if(j_$!==void 0)return j_$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return j_$=O},{mode:2});var g3$;var $64;var CC=function(){var O=_.a.apply(this,arguments)||this;O.hideCharCounter=!1;O.hideLabel=!1;O.noLabelFloat=!1;O.autoValidate=!0;O.invalid=!1;O.disabled=!1;O.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return O};
_.c(CC,_.a);_.b=CC.prototype;_.b.reset=function(O){this.value=O&&this.data?this.data.value=O:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.b.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.b.focusTextInput=function(){this.input.focus()};
_.b.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()};
_.b.valueChanged=function(){var O,x;if(((O=this.data)==null?0:O.value)||((x=this.data)==null?void 0:x.value)==="")this.value=this.data.value;else{var e;((e=this.data)==null?void 0:e.value)!==void 0||this.value||(this.value="")}};
_.b.computeLabel=function(O,x){return x?"":_.db(O)};
_.b.computeAriaLabel=function(O,x){return x?_.db(O):""};
_.b.computeErrorMessage=function(O,x,e,l){!O&&x?O=e||this.strings.REQUIRED_LABEL:(O=_.db(l),O=_.M$(O,"&")?"document"in _.CV?Yhk(O):BkT(O):O);return O};
_.b.computeType=function(O){return O==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.b.onTextValueChanged=function(O){this.value=O.detail.value;var x;(x=this.onValueChanged)==null||x.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.b.handleUpdateTextInputFormFieldRendererCommand=function(O){(O=_.q(O,x_z))&&this.data&&this.data.id===O.id&&(O.invalid!==void 0&&(this.invalid=O.invalid),O.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",O.invalidValueErrorMessage))};
_.b.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("value-changed",this.value))};
_.b.updateInvalidFromBinding=function(O){this.invalid=O.detail.value};
_.Dy.Object.defineProperties(CC.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var O;return!((O=this.data)==null||!O.isMultiline)}}});
CC.prototype.valueChangedForBinding=CC.prototype.valueChangedForBinding;CC.prototype.valueChanged=CC.prototype.valueChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],CC.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],CC.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],CC.prototype,"value",void 0);_.B([_.R(),_.v("design:type",String)],CC.prototype,"pattern",void 0);_.B([_.R(),_.v("design:type",String)],CC.prototype,"errorMessage",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],CC.prototype,"componentStyle",void 0);_.B([_.R(),_.v("design:type",Object)],CC.prototype,"hideCharCounter",void 0);
_.B([_.R(),_.v("design:type",Object)],CC.prototype,"hideLabel",void 0);_.B([_.R(),_.v("design:type",Object)],CC.prototype,"noLabelFloat",void 0);_.B([_.R(),_.v("design:type",Function)],CC.prototype,"onValueChanged",void 0);_.B([_.R(),_.v("design:type",Boolean)],CC.prototype,"isMultilineOverride",void 0);_.B([_.R(),_.v("design:type",Object)],CC.prototype,"autoValidate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],CC.prototype,"invalid",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],CC.prototype,"disabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],CC.prototype,"enableOverlayTheme",void 0);_.B([_.R({value:{REQUIRED_LABEL:_.CZ("REQUIRED_LABEL",void 0,"Required")}}),_.v("design:type",Object)],CC.prototype,"strings",void 0);_.B([_.kX("#input"),_.v("design:type",Object)],CC.prototype,"input",void 0);
_.B([_.p("data","isMultilineOverride"),_.v("design:type",Object),_.v("design:paramtypes",[])],CC.prototype,"isMultiline",null);_.B([_.G1("data.value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],CC.prototype,"valueChanged",null);_.B([_.T1("value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],CC.prototype,"valueChangedForBinding",null);_.B([_.Va({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],CC);
_.n(CC,"yt-text-input-form-field-renderer",function(){if($64===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;g3$===void 0&&(g3$=document.createElement("template"));var l=g3$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);$64=O}O=$64;return O},{mode:2});var Qz=function(){var O=_.a.apply(this,arguments)||this;O.data=void 0;O.selectionState="START_DATE";O.isStartDateInvalid=!1;O.isEndDateInvalid=!1;O.autoapply=!1;O.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 O};
_.c(Qz,_.a);_.b=Qz.prototype;_.b.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"}}}}};
_.b.focus=function(){this.startDateInput.focus()};
_.b.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:OM(this.data.selection.start),end:OM(this.data.selection.end)})};
_.b.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.b.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.vd(this.selectionState)}};
_.b.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.b.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.b.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.b.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var O=this.calendar.calendarConfig,x=O.end;O=Rer({start:O.start,end:this.endDate||x},this.startDateInput.value||"");this.isStartDateInvalid=!O.isValid;O.isValid&&(O=O.value,this.selection=this.endDate?{start:O,end:this.endDate}:O,this.calendar.scrollToDate(O));this.updateInvalidState()}};
_.b.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var O=this.calendar.calendarConfig,x=O.start;O=Rer({start:this.startDate||x,end:O.end},this.endDateInput.value||"");this.isEndDateInvalid=!O.isValid;O.isValid&&(O=O.value,this.selection={start:this.startDate,end:O},this.calendar.scrollToDate(O));this.updateInvalidState()}};
_.b.handleCalendarDateClicked=function(O){var x=this.selection&&q3i(this.selection),e=this.selection&&Pym(this.selection);x&&!iw(O,x)&&this.selectionState==="END_DATE"?(this.selection={start:x,end:O},this.selectionState="START_DATE"):(e&&!iw(e,O)?this.selection={start:O,end:e}:this.selection=O,this.selectionState="END_DATE")};
_.b.handleCalendarDateMouseDown=function(O){this.selection&&!EMs(this.selection)&&(this.dragPivot=$p(O,this.selection.start)?this.selection.end:$p(O,this.selection.end)?this.selection.start:O)};
_.b.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.b.handleCalendarDateMouseEnter=function(O){this.dragPivot&&(this.selection={start:function(x,e){return iw(x,e)?x:e}(this.dragPivot,O),
end:function(x,e){return iw(x,e)?e:x}(this.dragPivot,O)},this.dragPivot||(this.selectionState="START_DATE"))};
_.b.handleCalendarDateMouseLeave=function(){};
_.b.handleCalendarSubmitDateRange=function(){this.selection&&!EMs(this.selection)&&_.Sh(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.b.updateInvalidState=function(){var O=function(x,e){e?x.setAttribute("invalid",""):x.removeAttribute("invalid")};
O(this.startDateInput,this.isStartDateInvalid);O(this.endDateInput,this.isEndDateInvalid)};
_.b.updateDateStrings=function(){this.selection&&(EMs(this.selection)?ZRr(this.selection):(ZRr(this.selection.start),ZRr(this.selection.end)))};
_.b.updateCalendarSelection=function(O){this.calendar.updateSelection(Object.assign({},O,{selectionState:this.selectionState}))};
_.b.updateIsStartDateInvalidFromBinding=function(O){this.isStartDateInvalid=O.detail.value};
_.b.updateIsEndDateInvalidFromBinding=function(O){this.isEndDateInvalid=O.detail.value};
_.b.updateStartDateStringFromBinding=function(){};
_.b.updateEndDateStringFromBinding=function(){};
_.Dy.Object.defineProperties(Qz.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:OM(this.data.dateRangeStart),end:OM(this.data.dateRangeEnd),selection:{start:OM(this.data.selection.start),end:OM(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&q3i(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Pym(this.selection)}}});
Qz.prototype.resetTextboxes=Qz.prototype.resetTextboxes;Qz.prototype.observeSelection=Qz.prototype.observeSelection;Qz.prototype.dataChanged=Qz.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Qz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#calendar"),_.v("design:type",Object)],Qz.prototype,"calendar",void 0);
_.B([_.kX("#start-date"),_.v("design:type",Object)],Qz.prototype,"startDateInput",void 0);_.B([_.kX("#end-date"),_.v("design:type",Object)],Qz.prototype,"endDateInput",void 0);_.B([_.R(),_.v("design:type",Object)],Qz.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Qz.prototype,"selection",void 0);_.B([_.R(),_.v("design:type",String)],Qz.prototype,"selectionState",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qz.prototype,"calendarConfig",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qz.prototype,"errorMessage",null);_.B([_.p("selection"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qz.prototype,"startDate",null);_.B([_.p("selection"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qz.prototype,"endDate",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Qz.prototype,"dataChanged",null);
_.B([_.T1("selection","selectionState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Qz.prototype,"observeSelection",null);_.B([_.T1("selectionState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Qz.prototype,"resetTextboxes",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Qz);
_.n(Qz,"ytd-date-period-picker-renderer",function(){if(SGD!==void 0)return SGD;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return SGD=O},{mode:1});var bq=function(){var O=_.a.apply(this,arguments)||this;var x={};O.actionMap=(x["ytd-date-period-picker-apply"]="handleDateRangeUpdated",x);return O};
_.c(bq,_.a);bq.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
bq.prototype.handleDateRangeUpdated=function(){};
_.B([_.R(),_.v("design:type",Object)],bq.prototype,"data",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],bq.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],bq.prototype,"rendererstamperBehavior",void 0);_.B([_.H({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],bq);
_.n(bq,"ytd-report-history-section-header-renderer",function(){if(wcz!==void 0)return wcz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return wcz=O},{mode:1});var iF$;var OST;var x72;var Tb=function(){return _.a.apply(this,arguments)||this};
_.c(Tb,_.a);_.Dy.Object.defineProperties(Tb.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?0:(x=O.icon)==null?0:x.iconType)?_.x0(this.data.icon.iconType):""}}});
_.B([_.R(),_.v("design:type",Object)],Tb.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],Tb.prototype,"icon",null);_.B([_.H({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Tb);
_.n(Tb,"ytd-report-history-table-text-cell-renderer",function(){if(x72!==void 0)return x72;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return x72=O},{mode:1});var LC=function(){return _.a.apply(this,arguments)||this};
_.c(LC,_.a);LC.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LC.prototype,"data",void 0);_.B([_.H({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],LC);
_.n(LC,"ytd-report-history-table-reason-cell-renderer",function(){if(OST!==void 0)return OST;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return OST=O},{mode:1});var kB=function(){return _.a.apply(this,arguments)||this};
_.c(kB,_.a);kB.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"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],kB.prototype,"rendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kB.prototype,"data",void 0);_.B([_.H({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],kB);
_.n(kB,"ytd-report-history-table-cell-renderer",function(){if(iF$!==void 0)return iF$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return iF$=O},{mode:1});var e3N;var AC=function(){var O=_.a.apply(this,arguments)||this;O.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 O};
_.c(AC,_.a);AC.prototype.onDataChanged=function(){var O;if((O=this.data)==null?0:O.style)this.componentStyle=this.getStyleName(this.data.style)};
AC.prototype.getCellForColumn=function(O){return this.cells.find(function(x){var e;return((e=_.q(x==null?void 0:x.cell,K_d)||_.q(x==null?void 0:x.cell,H62))==null?void 0:e.columnId)===O.type})};
AC.prototype.getClassForColumn=function(O){switch(O){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
AC.prototype.getStyleName=function(O){switch(O){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Dy.Object.defineProperties(AC.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.cells)||[]).map(function(x){return _.q(x,r5F)})}}});
AC.prototype.onDataChanged=AC.prototype.onDataChanged;_.B([_.R(),_.v("design:type",Object)],AC.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Array)],AC.prototype,"columnRenderData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],AC.prototype,"componentStyle",void 0);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],AC.prototype,"cells",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],AC.prototype,"onDataChanged",null);_.B([_.H({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],AC);
_.n(AC,"ytd-report-history-table-row-renderer",function(){if(e3N!==void 0)return e3N;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return e3N=O},{mode:1});var lq2;var C5N;var UYr={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},aA8={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var MV=function(){return _.a.apply(this,arguments)||this};
_.c(MV,_.a);MV.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"}}}}}};
MV.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Dy.Object.defineProperties(MV.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.columns)?zer(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Wji(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var O=this.tableSpec,x=UYr;x=x===void 0?aA8:x;x=hem(O.columnDimensions,O.columnsToShow||[],x);O=0;x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,O+=e.minWidth+e.paddingLeft+e.paddingRight;return O}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.B([_.V(_.LN),_.v("design:type",Object)],MV.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],MV.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],MV.prototype,"tableSpec",null);_.B([_.p("tableSpec"),_.v("design:type",Array),_.v("design:paramtypes",[])],MV.prototype,"columnRenderData",null);
_.B([_.p("tableSpec"),_.v("design:type",Number),_.v("design:paramtypes",[])],MV.prototype,"totalMinWidth",null);_.B([_.p("totalMinWidth"),_.v("design:type",String),_.v("design:paramtypes",[])],MV.prototype,"tableWidthStyle",null);_.B([_.H({is:"ytd-table-renderer",disableElementRegistration:!0})],MV);
_.n(MV,"ytd-table-renderer",function(){if(C5N!==void 0)return C5N;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return C5N=O},{mode:1});var Dh=function(){return _.a.apply(this,arguments)||this};
_.c(Dh,_.a);Dh.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}}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Dh.prototype,"data",void 0);_.B([_.H({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Dh);
_.n(Dh,"ytd-report-reason-history-modal-renderer",function(){if(lq2!==void 0)return lq2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return lq2=O},{mode:1});var QvJ;var bS3;var T$p;var Gb=function(){return _.a.apply(this,arguments)||this};
_.c(Gb,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Gb.prototype,"data",void 0);_.B([_.H({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Gb);
_.n(Gb,"ytd-profile-column-stats-entry-renderer",function(){if(T$p!==void 0)return T$p;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return T$p=O},{mode:1});var Lld;var Fq=function(){return _.a.apply(this,arguments)||this};
_.c(Fq,_.a);Fq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Fq.prototype,"data",void 0);_.B([_.H({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Fq);
_.n(Fq,"ytd-profile-column-stats-renderer",function(){if(Lld!==void 0)return Lld;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Lld=O},{mode:1});var kmR;var Xq=function(){return _.a.apply(this,arguments)||this};
_.c(Xq,_.a);_.Dy.Object.defineProperties(Xq.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.useThumbnailSize)return 80;var x,e;O=(x=this.data)==null?void 0:(e=x.thumbnail)==null?void 0:e.thumbnails;var l;return O&&((l=O[0])==null?void 0:l.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.useThumbnailSize)return 80;var x,e;O=(x=this.data)==null?void 0:(e=x.thumbnail)==null?void 0:e.thumbnails;var l;return O&&((l=O[0])==null?void 0:l.height)||80}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Xq.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Xq.prototype,"componentStyle",void 0);_.B([_.p("data.useThumbnailSize"),_.v("design:type",Object),_.v("design:paramtypes",[])],Xq.prototype,"thumbnailWidth",null);
_.B([_.p("data.useThumbnailSize"),_.v("design:type",Object),_.v("design:paramtypes",[])],Xq.prototype,"thumbnailHeight",null);_.B([_.H({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Xq);
_.n(Xq,"ytd-profile-column-user-info-renderer",function(){if(kmR!==void 0)return kmR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kmR=O},{mode:1});var oM=function(){return _.a.apply(this,arguments)||this};
_.c(oM,_.a);oM.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]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oM.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],oM.prototype,"componentStyle",void 0);_.B([_.H({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],oM);
_.n(oM,"ytd-profile-column-renderer",function(){if(bS3!==void 0)return bS3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return bS3=O},{mode:1});var yz=function(){var O=_.a.apply(this,arguments)||this;O.componentStyle="NON_CENTERED_PROFILE";return O};
_.c(yz,_.a);yz.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
yz.prototype.getIcon=function(O){return O?"settings:"+O.toLowerCase():null};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yz.prototype,"data",void 0);_.B([_.H({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],yz);
_.n(yz,"ytd-page-introduction-renderer",function(){if(QvJ!==void 0)return QvJ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return QvJ=O},{mode:1});var A93;var Zh=function(){return _.a.apply(this,arguments)||this};
_.c(Zh,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Zh.prototype,"data",void 0);_.B([_.H({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Zh);
_.n(Zh,"ytd-report-description-renderer",function(){if(A93!==void 0)return A93;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return A93=O},{mode:1});var MYL;var D7k;var EX=function(){return _.a.apply(this,arguments)||this};
_.c(EX,_.a);EX.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],EX.prototype,"data",void 0);_.B([_.H({is:"ytd-video-report-renderer",disableElementRegistration:!0})],EX);
_.n(EX,"ytd-video-report-renderer",function(){if(D7k!==void 0)return D7k;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return D7k=O},{mode:1});var GmR;_.tI("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.tI("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var tC=function(){return _.a.apply(this,arguments)||this};
_.c(tC,_.a);tC.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]]"}}}}}};
tC.prototype.computeMessageStyle=function(O){return O};
tC.prototype.computeButtonOverride=function(O){var x;if((O==null?0:(x=O.style)==null?0:x.value)&&O.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tC.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],tC.prototype,"shelf",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],tC.prototype,"panel",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.v("design:type",Boolean)],tC.prototype,"componentStyle",void 0);_.B([_.R({computed:"computeButtonOverride(data)"}),_.v("design:type",Object)],tC.prototype,"buttonOverride",void 0);_.B([_.H({is:"ytd-message-renderer",disableElementRegistration:!0})],tC);
_.n(tC,"ytd-message-renderer",function(){if(GmR!==void 0)return GmR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GmR=O},{mode:1});var qV=function(){return _.a.apply(this,arguments)||this};
_.c(qV,_.a);qV.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"}}}};
qV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
qV.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Dy.Object.defineProperties(qV.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!(((O=this.data)==null?0:O.header)&&((x=this.data)==null?0:x.table))}}});
qV.prototype.onRequestError=qV.prototype.onRequestError;_.B([_.V(_.LN),_.v("design:type",Object)],qV.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qV.prototype,"data",void 0);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],qV.prototype,"isUnifiedReportHistory",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qV.prototype,"onRequestError",null);_.B([_.H({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],qV);
_.n(qV,"ytd-report-history-section-renderer",function(){if(MYL!==void 0)return MYL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return MYL=O},{mode:1});var FlF;var P4=function(){var O=_.a.apply(this,arguments)||this;O.answerExpanded=!1;return O};
_.c(P4,_.a);P4.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],P4.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],P4.prototype,"answerExpanded",void 0);_.B([_.H({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],P4);
_.n(P4,"ytd-handles-claiming-faq-renderer",function(){if(FlF!==void 0)return FlF;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return FlF=O},{mode:1});var Xh3;var o9R=function(){return _.a.apply(this,arguments)||this};
_.c(o9R,_.a);_.B([_.R(),_.v("design:type",Object)],o9R.prototype,"data",void 0);_.B([_.H({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],o9R);
_.n(o9R,"ytd-handles-claiming-faq-section-renderer",function(){if(Xh3!==void 0)return Xh3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Xh3=O},{mode:1});var y92;var c4=function(){var O=_.a.apply(this,arguments)||this;O.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";O.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";O.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";O.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";O.leftSquiggly=O.leftSquigglyLight;O.rightSquiggly=O.rightSquigglyLight;
O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};O.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return O};
_.c(c4,_.a);_.b=c4.prototype;_.b.updateLeftSquigglyStyle=function(){_.lH(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.b.updateRightSquigglyStyle=function(){_.lH(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.b.ready=function(){var O=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(O)};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.set("isDarkTheme",O),O?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.b.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
c4.prototype.updateRightSquigglyStyle=c4.prototype.updateRightSquigglyStyle;c4.prototype.updateLeftSquigglyStyle=c4.prototype.updateLeftSquigglyStyle;_.B([_.R(),_.v("design:type",Object)],c4.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],c4.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",String)],c4.prototype,"leftSquiggly",void 0);_.B([_.R(),_.v("design:type",String)],c4.prototype,"rightSquiggly",void 0);
_.B([_.T1("leftSquiggly"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],c4.prototype,"updateLeftSquigglyStyle",null);_.B([_.T1("rightSquiggly"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],c4.prototype,"updateRightSquigglyStyle",null);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],c4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c4.prototype,"actionButtonOverride",void 0);_.B([_.H({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],c4);
_.n(c4,"ytd-handles-claiming-header-renderer",function(){if(y92!==void 0)return y92;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return y92=O},{mode:1});var ZSp;var IM=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};O.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";O.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";O.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";O.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
O.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";O.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";O.image0SquigglyBackground=O.image0LightSquigglyBackground;O.image1SquigglyBackground=O.image1LightSquigglyBackground;O.image3SquigglyBackground=O.image3LightSquigglyBackground;return O};
_.c(IM,_.a);_.b=IM.prototype;_.b.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.b.onDataChanged=function(){this.updateTitleAndImages()};
_.b.onThemeChanged=function(){this.updateTitleAndImages()};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O)};
_.b.updateImage0SquigglyBackground=function(){_.lH(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.b.updateImage1SquigglyBackground=function(){_.lH(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.b.updateImage3SquigglyBackground=function(){_.lH(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.b.updateTitleAndImages=function(){var O,x;((O=this.data)==null?void 0:(x=O.titleImages)==null?void 0:x.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))};
IM.prototype.updateImage3SquigglyBackground=IM.prototype.updateImage3SquigglyBackground;IM.prototype.updateImage1SquigglyBackground=IM.prototype.updateImage1SquigglyBackground;IM.prototype.updateImage0SquigglyBackground=IM.prototype.updateImage0SquigglyBackground;IM.prototype.onThemeChanged=IM.prototype.onThemeChanged;IM.prototype.onDataChanged=IM.prototype.onDataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],IM.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],IM.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"title0",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"title1",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"title2",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"title3",void 0);
_.B([_.R(),_.v("design:type",Object)],IM.prototype,"title4",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"image0",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"image1",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"image2",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"image3",void 0);_.B([_.R(),_.v("design:type",Object)],IM.prototype,"image4",void 0);_.B([_.R(),_.v("design:type",String)],IM.prototype,"image0SquigglyBackground",void 0);
_.B([_.R(),_.v("design:type",String)],IM.prototype,"image1SquigglyBackground",void 0);_.B([_.R(),_.v("design:type",String)],IM.prototype,"image3SquigglyBackground",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IM.prototype,"onDataChanged",null);_.B([_.T1("isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IM.prototype,"onThemeChanged",null);
_.B([_.T1("image0SquigglyBackground"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IM.prototype,"updateImage0SquigglyBackground",null);_.B([_.T1("image1SquigglyBackground"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IM.prototype,"updateImage1SquigglyBackground",null);
_.B([_.T1("image3SquigglyBackground"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IM.prototype,"updateImage3SquigglyBackground",null);_.B([_.H({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],IM);
_.n(IM,"ytd-handles-claiming-title-images-section-renderer",function(){if(ZSp!==void 0)return ZSp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ZSp=O},{mode:1});var E9p;var Vz=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(Vz,_.a);Vz.prototype.ready=function(){var O=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(O)};
Vz.prototype.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O)};
Vz.prototype.onCopyButtonClick=function(){var O=this,x,e,l;return _.A(function(C){return(x=O.data)!=null&&x.primaryChannelUrl?C.yield(navigator.clipboard.writeText(((e=O.data)==null?0:e.encodedChannelUrl)?O.data.encodedChannelUrl:"https://"+_.db((l=O.data)==null?void 0:l.primaryChannelUrl)),0):C.jumpTo(0)})};
_.B([_.R(),_.v("design:type",Object)],Vz.prototype,"data",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Vz.prototype,"ytComponentBehavior",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Vz.prototype,"isDarkTheme",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Vz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Vz);
_.n(Vz,"ytd-handles-claiming-update-social-renderer",function(){if(E9p!==void 0)return E9p;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return E9p=O},{mode:1});var tYJ;var pC=function(){var O=_.a.apply(this,arguments)||this;O.JSC$16205_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";O.JSC$16205_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};O.squigglyBackground=O.JSC$16205_squigglyBackgroundLight;return O};
_.c(pC,_.a);pC.prototype.updateSquigglyBackgroundStyle=function(){_.lH(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
pC.prototype.ready=function(){var O=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",O);this.squigglyBackground=O?this.JSC$16205_squigglyBackgroundDark:this.JSC$16205_squigglyBackgroundLight};
pC.prototype.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.set("isDarkTheme",O),this.squigglyBackground=O?this.JSC$16205_squigglyBackgroundDark:this.JSC$16205_squigglyBackgroundLight)};
pC.prototype.updateSquigglyBackgroundStyle=pC.prototype.updateSquigglyBackgroundStyle;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],pC.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pC.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pC.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",String)],pC.prototype,"squigglyBackground",void 0);_.B([_.T1("squigglyBackground"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pC.prototype,"updateSquigglyBackgroundStyle",null);_.B([_.H({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],pC);
_.n(pC,"ytd-handles-claiming-vanity-info-renderer",function(){if(tYJ!==void 0)return tYJ;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return tYJ=O},{mode:1});var qod;var RM=function(){var O=_.a.apply(this,arguments)||this;O.JSC$16208_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";O.JSC$16208_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";O.squigglyBackground=O.JSC$16208_squigglyBackgroundLight;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(RM,_.a);_.b=RM.prototype;_.b.ready=function(){var O=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(O)};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.set("isDarkTheme",O),this.squigglyBackground=O?this.JSC$16208_squigglyBackgroundDark:this.JSC$16208_squigglyBackgroundLight)};
_.b.updateSquigglyBackgroundStyle=function(){_.lH(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.b.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.b.detached=function(){this.stop()};
_.b.stop=function(){this.playerElement.stop()};
_.b.setupVideoPlayer=function(){var O=this,x,e;return _.A(function(l){x=O.data.videoId;e="http://i1.ytimg.com/vi/"+x+"/maxresdefault.jpg";O.playerElement.loadVideoWithPlayerVars({video_id:x,iurlhq:e});_.Ra(l)})};
RM.prototype.onDataChanged=RM.prototype.onDataChanged;RM.prototype.updateSquigglyBackgroundStyle=RM.prototype.updateSquigglyBackgroundStyle;_.B([_.R({value:!1}),_.v("design:type",Boolean)],RM.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",String)],RM.prototype,"squigglyBackground",void 0);_.B([_.kX("#player"),_.v("design:type",Object)],RM.prototype,"playerElement",void 0);_.B([_.R(),_.v("design:type",Object)],RM.prototype,"data",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],RM.prototype,"ytActionHandlerBehavior",void 0);_.B([_.T1("squigglyBackground"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RM.prototype,"updateSquigglyBackgroundStyle",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RM.prototype,"onDataChanged",null);
_.B([_.H({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],RM);
_.n(RM,"ytd-handles-claiming-video-item-renderer",function(){if(qod!==void 0)return qod;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return qod=O},{mode:1});var P5F;var aM=function(){var O=_.MQ.apply(this,arguments)||this;O.dragging=!1;O.dragMouseStart=0;O.dragOffsetStart=0;O.containerWidthDiff=0;O.boundPrevClick=function(){O.set("offset",UX(O,O.offset-(O.scrollDistance||320)))};
O.boundNextClick=function(){O.set("offset",UX(O,O.offset+(O.scrollDistance||320)))};
O.boundScrollContainerMouseDown=function(x){O.dragMouseStart=x.clientX;O.dragOffsetStart=O.offset;O.dragging=!0};
O.boundScrollContainerDrag=function(x){O.dragging&&O.set("offset",UX(O,O.dragOffsetStart-(x.clientX-O.dragMouseStart)))};
O.boundMouseUp=function(){O.onMouseUp()};
O.boundWheelScroll=function(x){var e=0;Math.abs(x.deltaX)>=Math.abs(x.deltaY)?e=x.deltaX:x.shiftKey&&(e=x.deltaY);e!==0&&(O.offset+=e,x.stopPropagation(),x.preventDefault())};
O.boundChipCloudChipScrollIntoView=function(x){(x=x.detail)&&O.scrollChipIntoView(x)};
return O};
_.c(aM,_.MQ);aM.prototype.attached=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container");O.addEventListener("wheel",this.boundWheelScroll);O.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);O.style.touchAction="pan-y";O.addEventListener("pointerdown",this.boundScrollContainerMouseDown);O.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
aM.prototype.detached=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container");O.removeEventListener("wheel",this.boundWheelScroll);O.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);O.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);O.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
aM.prototype.reset=function(){this.set("offset",0);_.A_(this,this.setContainerWidthDiff);_.A_(this,this.setButtonsState)};
var UX=function(O,x){return Math.min(Math.max(x,0),O.containerWidthDiff)};
_.b=aM.prototype;_.b.onMouseUp=function(){this.dragging=!1};
_.b.transformContainer=function(){this.offset=UX(this,this.offset);var O=_.wz("HTML_DIR")==="rtl"?"":"-";_.$U(this.hostElement).querySelector("#chips").style.transform="translateX("+O+this.offset+"px)";_.A_(this,this.setButtonsState)};
_.b.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=UX(this,this.offset));this.atStart=this.offset<=0};
_.b.setContainerWidthDiff=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container"),x=_.$U(this.hostElement).querySelector("#chips");O&&x&&(this.containerWidthDiff=x.clientWidth-O.clientWidth)};
_.b.scrollChipIntoView=function(O){var x=_.$U(this.hostElement).querySelector("#scroll-container");if(x){var e=this.atStart?0:106,l=this.atEnd?0:106;O.offsetLeft<this.offset+e?this.offset=UX(this,O.offsetLeft-e):O.offsetLeft+O.clientWidth>this.offset+x.clientWidth-l&&(this.offset=UX(this,O.offsetLeft+O.clientWidth+l-x.clientWidth))}};
aM.prototype.transformContainer=aM.prototype.transformContainer;_.B([_.R({value:0}),_.v("design:type",Number)],aM.prototype,"offset",void 0);_.B([_.R({value:!0,reflectToAttribute:!0}),_.v("design:type",Boolean)],aM.prototype,"atStart",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],aM.prototype,"atEnd",void 0);_.B([_.R(),_.v("design:type",Number)],aM.prototype,"scrollDistance",void 0);
_.B([_.T1("offset"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aM.prototype,"transformContainer",null);_.B([_.DC()],aM);var c9L;var IqR;var R3p=_.K(function(O){var x=O.data;O=_.T(_.Iw(!1,void 0,"bob3J"));var e=O.next().value,l=O.next().value;O=function(Q){if((x==null?void 0:x().state)!==1){var L,k;(k=(L=x()).onTap)==null||k.call(L,Q)}};
var C={};return _.D("chip-shape",{class:"ytChipShapeHost","on:focusin":_.lk(function(){var Q=_.GG().resolve(_.D0(_.qL));if(Q){l(Q.isKeyBoardInUse());var L,k;(k=(L=x()).onFocusIn)==null||k.call(L)}return!1}),
"on:focusout":_.lk(function(){l(!1);return!1})},_.D(VYF,{shouldWrapInButton:function(){return x().type!==2},
selected:function(){return x().state===0},
onClick:O,isDropdown:function(){return x().type===1},
accessibilityLabel:function(){return x().type===1?void 0:x().accessibilityLabel}},_.D("div",{class:_.xz("ytChipShapeChip",function(){a:switch(x==null?void 0:x().state){case 0:var Q="ytChipShapeActive";
break a;case 1:Q="ytChipShapeDisabled";break a;default:Q="ytChipShapeInactive"}return Q},function(){var Q=x().type===1||x().type===2,L=x();
return Q||L!=null&&L.startIcon?L==null||!L.startIcon||L!=null&&L.text?Q?"ytChipShapeEndIconPadding":(L==null?0:L.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var Q=x();
if((Q==null?void 0:Q.style)===0&&(Q==null?void 0:Q.state)===0){var L;Q=((L=_.GG().resolve(_.D0(_.rP)))==null?0:L())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else Q="";return Q},(C.ytChipShapeFocused=function(){var Q;
return e()&&((Q=x())==null?void 0:Q.state)!==1},C))},_.D(_.F,{cond:function(){return x().startIcon},
then:function(){return _.D(_.L7,{icon:function(){var Q;return(Q=x())==null?void 0:Q.startIcon},
className:_.xz(function(){return x().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var Q=x(),L,k=(L=_.GG().resolve(_.D0(_.rP)))==null?void 0:L();
return(Q==null?void 0:Q.style)===0&&(Q==null?void 0:Q.state)===0&&k?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return x().text},_.D(ph2,{shape:x,
onClick:O}),_.D(_.ct,{model:{borderRadius:"8px"}}))))},"Jc");
R3p.idomCompat=!0;var VYF=_.K(function(O){var x=_.lk(function(e){O.onClick(e);return!1});
return _.D(_.F,{cond:O.shouldWrapInButton,then:function(){return _.D("button",{class:"ytChipShapeButtonReset","on:click":x,role:function(){return O.isDropdown()?"combobox":"tab"},
"aria-label":O.accessibilityLabel,"aria-selected":O.selected},O.children)},
else:function(){return O.children}})},"Kc"),ph2=_.K(function(O){var x=O.shape;
var e=O.onClick;var l=_.lk(function(C){e(C);return!1});
return _.D(_.KO,null,_.D(_.zn,{when:function(){return x().type===1}},function(){return _.D(_.L7,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.D(_.zn,{when:function(){return x().type===2}},function(){return _.D("button",{class:"ytChipShapeButtonReset",
"on:click":l},_.D(_.L7,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.D(_.zn,{when:function(){return x().type===0}},function(){return _.D(_.Xm,null)}))},"Lc");_.wP(R3p,"chip-shape",{props:{data:_.Ld}});var mD=function(){var O=_.a.apply(this,arguments)||this;O.disableDeselectEvent=!1;O.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return O};
_.c(mD,_.a);_.b=mD.prototype;_.b.onSelectChipCommand=function(O){if(!this.selected&&this.data&&(O=_.q(O,fiF),O.targetId&&O.targetId===this.data.targetId))this.onTap()};
_.b.onFilterChipTransformCommand=function(O){if(!this.selected&&this.data){var x;(O=(x=_.q(O,dCz))==null?void 0:x.chipUniqueId)&&O===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.b.dataChanged=function(){var O=this;_.A_(this,function(){O.data&&O.data.isSelected&&!O.selected&&(O.scrollChipIntoView(),O.onTap())})};
_.b.computeChipStyle=function(O){return O!=null?O:"STYLE_DEFAULT"};
_.b.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Sh(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Sh(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.b.onFocus=function(){var O=_.GG().resolve(_.D0(_.qL));O&&O.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.b.scrollChipIntoView=function(){_.wr(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Dy.Object.defineProperties(mD.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Y3m({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
mD.prototype.onFocus=mD.prototype.onFocus;mD.prototype.onTap=mD.prototype.onTap;mD.prototype.dataChanged=mD.prototype.dataChanged;_.B([_.V(_.p6),_.v("design:type",Object)],mD.prototype,"ironButtonState",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],mD.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],mD.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.cg),_.v("design:type",Object)],mD.prototype,"ironA11yKeysBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mD.prototype,"disableDeselectEvent",void 0);_.B([_.R(),_.v("design:type",Object)],mD.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.icon"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],mD.prototype,"hasIcon",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.uniqueId"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],mD.prototype,"isGnomeChip",null);_.B([_.R({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.v("design:type",String)],mD.prototype,"chipStyle",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],mD.prototype,"selected",void 0);
_.B([_.p("data","selected"),_.v("design:type",Object),_.v("design:paramtypes",[])],mD.prototype,"chipShapeData",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mD.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mD.prototype,"onTap",null);
_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mD.prototype,"onFocus",null);_.B([_.Va({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],mD);
_.n(mD,"yt-chip-cloud-chip-renderer",function(){if(IqR===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;c9L===void 0&&(c9L=document.createElement("template"));var l=c9L;e.call(x,l.content.cloneNode(!0),O.content.firstChild);IqR=O}O=IqR;return O},{mode:2});var U73=_.at.persistentPanelVisibleSelector,sX=function(){var O=_.a.apply(this,arguments)||this;O.isDarkTheme=!1;O.notSticky=!1;O.transparentBackground=!1;O.shouldHide=!1;O.disableSticky=!1;O.fluidWidth=!1;O.isClipList=!1;O.defaultChipIndex=0;O.isPlaylist=!1;O.playlistVotingAnimationEnabled=_.t("web_enable_voting_animation");O.toolbarHeight=0;O.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return O};
_.c(sX,_.a);_.b=sX.prototype;
_.b.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}}}}}};
_.b.attached=function(){var O=this;document.addEventListener("scroll",_.Qa(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var x;this.toolbarHeight=((x=document.querySelector("ytd-masthead"))==null?void 0:x.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(e){O.handleIntersect(e)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){O.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.b.detached=function(){var O;(O=this.intersectionObserver)==null||O.disconnect();var x;(x=this.resizeObserver)==null||x.disconnect();document.removeEventListener("scroll",_.Qa(this,this.updateChipBarWidthAndTop))};
_.b.dataChanged=function(){var O=this,x,e,l;((l=_.q((x=this.data)==null?void 0:(e=x.contents)==null?void 0:e[0],SJd))==null?void 0:l.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var C=this.findSelectedChipIndex();this.selectedIndex!==C&&(this.selectedIndex=-1);_.A_(this,function(){O.selectedIndex=C;O.updating=!1;O.ytScrollableChipCloudBehavior.reset()})};
_.b.findSelectedChipIndex=function(){var O;if((O=this.data)==null||!O.contents)return 0;O=this.data.contents;for(var x=0;x<O.length;x++){var e=void 0;if((e=_.q(O[x],SJd))==null?0:e.isSelected)return x}return 0};
_.b.computeStyle=function(O){return O};
_.b.handleChipCloudChipSelectAction=function(O){O=this.JSC$16229_chipsSelector.indexOf(O);O>-1&&this.JSC$16229_chipsSelector.selectIndex(O)};
_.b.handleChipCloudChipDeselectAction=function(){if(_.t("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],SJd))==null?void 0:e.navigationEndpoint;l&&_.Sh(this.hostElement,"yt-browse-section-list-reload-endpoint",[l]);this.JSC$16229_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.b.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.b.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.b.onResize=function(){this.updateLayout()};
_.b.updateLayout=function(){var O=this.ytScrollableChipCloudBehavior;_.A_(O,O.setContainerWidthDiff);O=this.ytScrollableChipCloudBehavior;_.A_(O,O.setButtonsState)};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.b.handleIntersect=function(O){this.notSticky=this.isChannelPageGrid||this.disableSticky||O[0].intersectionRatio===1};
_.b.updateDimensions=function(){var O=this.ytRendererBehavior.parentComponent;if(O){var x,e=(x=O.headerElement)!=null?x:O;_.lH(this.hostElement,{"--ytd-rich-grid-chips-bar-width":e.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.b.updateSelectedIndexFromBinding=function(O){this.selectedIndex=O.detail.value};
_.b.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var O;(O=this.sortFilterHeaderRendererElement)==null||O.setAttribute("is-playlist-page-with-filters","")}};
_.b.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(dV3(!this.notSticky))};
_.Dy.Object.defineProperties(sX.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 O,x,e=(O=this.data)==null?void 0:(x=O.contents)==null?void 0:x.find(function(l){return _.q(l,id2)});
return{sortFilterHeaderRenderer:_.q(e,id2)}}}});
sX.prototype.dispatchChipBarIsSticky=sX.prototype.dispatchChipBarIsSticky;sX.prototype.isPlaylistPageChanged=sX.prototype.isPlaylistPageChanged;sX.prototype.updateChipBarWidthAndTop=sX.prototype.updateChipBarWidthAndTop;sX.prototype.onResize=sX.prototype.onResize;sX.prototype.onPersistentPanelVisibleChanged=sX.prototype.onPersistentPanelVisibleChanged;sX.prototype.onGuideIsExpandedChanged=sX.prototype.onGuideIsExpandedChanged;sX.prototype.dataChanged=sX.prototype.dataChanged;
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],sX.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],sX.prototype,"ironResizableBehavior",void 0);_.B([_.V(),_.v("design:type",aM)],sX.prototype,"ytScrollableChipCloudBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],sX.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sX.prototype,"data",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],sX.prototype,"selectedIndex",void 0);_.B([_.R({value:320}),_.v("design:type",Number)],sX.prototype,"scrollDistance",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"isDarkTheme",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"notSticky",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"transparentBackground",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.v("design:type",String)],sX.prototype,"componentStyle",void 0);_.B([_.R({selector:_.RVL}),_.v("design:type",Boolean)],sX.prototype,"guideIsExpanded",void 0);
_.B([_.R({selector:U73}),_.v("design:type",Boolean)],sX.prototype,"persistentPanelVisible",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"shouldHide",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"disableSticky",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"fluidWidth",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"isClipList",void 0);
_.B([_.R(),_.v("design:type",Object)],sX.prototype,"defaultChipIndex",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sX.prototype,"isPlaylist",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],sX.prototype,"playlistVotingAnimationEnabled",void 0);_.B([_.kX("#chips"),_.v("design:type",Object)],sX.prototype,"JSC$16229_chipsSelector",void 0);
_.B([_.kX("ytd-sort-filter-header-renderer"),_.v("design:type",HTMLElement)],sX.prototype,"sortFilterHeaderRendererElement",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],sX.prototype,"updating",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"dataChanged",null);
_.B([_.T1("guideIsExpanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"onGuideIsExpandedChanged",null);_.B([_.T1("persistentPanelVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"onPersistentPanelVisibleChanged",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"onResize",null);
_.B([_.G1("isChannelPageGrid","disableSticky","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"updateChipBarWidthAndTop",null);_.B([_.p("componentStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sX.prototype,"isChannelPageGrid",null);_.B([_.p("componentStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sX.prototype,"isHashtagLandingPage",null);
_.B([_.T1("isPlaylistPage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"isPlaylistPageChanged",null);_.B([_.p("componentStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sX.prototype,"isPlaylistPage",null);_.B([_.p("componentStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sX.prototype,"isDisableDeselectEvent",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],sX.prototype,"sortFilterHeaderRendererData",null);_.B([_.R({reflectToAttribute:!0,selector:_.zV$}),_.v("design:type",String)],sX.prototype,"frostedGlassMode",void 0);_.B([_.T1("notSticky"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sX.prototype,"dispatchChipBarIsSticky",null);_.B([_.H({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],sX);
_.n(sX,"ytd-feed-filter-chip-bar-renderer",function(){if(P5F!==void 0)return P5F;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return P5F=O},{mode:1});var aqd;var m7z=_.K(function(O){var x=O.data;var e=O.buttonIndex;var l=O.selectedIndex;var C=O.onSelect;var Q=function(){return e()===l()},L=function(){var k,M;
return(M=(k=x().text)==null?void 0:k.content)!=null?M:""};
O=_.d8L();return _.D("yt-toggleable-image-button-view-model",{class:function(){var k={};k=(k.toggleableImageButtonViewModelHost=!0,k[""]=!0,k.toggleableImageButtonViewModelSemiTransparent=l()!==-1&&!Q(),k);return _.yu(k)},
tabindex:0,"aria-label":L,"aria-pressed":Q,role:"button","on:keydown":O,"on:click":_.lk(function(){C(x().onSubmitCommand);return!1})},_.D(_.F,{cond:function(){return x().logo},
then:function(k){return _.D(_.n_,{data:k,className:function(){var M={};M=(M.toggleableImageButtonViewModelImage=!0,M.toggleableImageButtonViewModelCircularRadius=!(!x().backgroundColor||!x().backgroundColorDarkMode),M.toggleableImageButtonViewModelGradientRing=!!(Q()&&x().backgroundColor&&x().backgroundColorDarkMode),M);return _.yu(M)},
alt:L,useWidth:!1,style:function(){if(Q()&&x().backgroundColor&&x().backgroundColorDarkMode){var M=mC(Number(x().backgroundColorDarkMode),"1");var G=mC(Number(x().backgroundColor),"1");M="background: linear-gradient(180deg,"+M+","+G+") border-box;"}else M="";return M}})}}),_.D(_.ct,{model:{borderRadius:"16px"}}),_.D("p",{class:function(){var k={};
k=(k.toggleableImageButtonViewModelLabel=!0,k.toggleableImageButtonViewModelBoldText=Q(),k);return _.yu(k)}},_.D(_.TT,{text:function(){return x().text}})))},"Mc");
m7z.idomCompat=!0;var Wl2=_.K(function(O){var x=O.data;O=_.T(_.Iw({index:-1,command:{}},void 0,"GM3umb"));var e=O.next().value,l=O.next().value;return _.D("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.D("div",{class:"nudgeFormViewModelFormOptions"},_.D(_.MR,{data:function(){return x().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(C,Q){return _.D(m7z,{data:C.data,buttonIndex:Q,selectedIndex:function(){return e().index},
onSelect:function(L){l({index:Q(),command:L})}})}})),_.D(_.TT,{text:function(){return x().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.D("div",{class:"nudgeFormViewModelSubmit"},_.D(_.MR,{data:function(){return x().submitButton}},{buttonViewModel:function(C){return _.D(svd,{data:C.data,
isDisabled:function(){return e().index===-1},
onClick:function(){_.me(e().command)}})}})))},"Nc");
Wl2.idomCompat=!0;var svd=_.K(function(O){var x=_.aw(function(){return Object.assign({},O.data(),{state:O.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.D(_.RV,{data:x,onClick:O.onClick})},"Oc");_.wP(Wl2,"yt-nudge-form-view-model",{props:{data:_.Ld}});var W4=function(){var O=_.a.apply(this,arguments)||this;O.roundedContainer=!0;O.buttonUpdate=_.t("web_modern_buttons");O.isDarkMode=!1;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return O};
_.c(W4,_.a);_.b=W4.prototype;_.b.computeNudgeStyle=function(O){return O?"modernized-nudge":""};
_.b.handleDarkModeToggledAction=function(O){this.isDarkMode=O};
_.b.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.b.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"}}}};
_.b.computeIsHorizontalButtons=function(O){return O?!!O.applyModernizedStyle&&!!O.enableHorizontalButtons&&!!O.secondaryButton:!1};
_.Dy.Object.defineProperties(W4.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.data)==null?void 0:O.backgroundStyle)!=null?x:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.data)==null?void 0:O.contentsLocation)!=null?x:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.lightIconImage)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],W4.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],W4.prototype,"actionHandlerBehavior",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("isHideEnclosingAction"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],W4.prototype,"isHidden",null);_.B([_.R(),_.v("design:type",Object)],W4.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],W4.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],W4.prototype,"buttonUpdate",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.v("design:type",String)],W4.prototype,"nudgeStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.trimStyle"),_.v("design:type",String),_.v("design:paramtypes",[])],W4.prototype,"trimStyle",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.backgroundStyle"),_.v("design:type",String),_.v("design:paramtypes",[])],W4.prototype,"backgroundStyle",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.contentsLocation"),_.v("design:type",String),_.v("design:paramtypes",[])],W4.prototype,"contentsLocation",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.disableDropShadow"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],W4.prototype,"noShadow",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.lightIconImage"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],W4.prototype,"noIcon",null);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.v("design:type",Boolean)],W4.prototype,"isHorizontalButtons",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Object)],W4.prototype,"isDarkMode",void 0);_.B([_.H({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],W4);
_.n(W4,"ytd-feed-nudge-renderer",function(){if(aqd!==void 0)return aqd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return aqd=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var h3R;var z32;var hC=function(){var O=_.a.apply(this,arguments)||this;O.collapsed=!1;O.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return O};
_.c(hC,_.a);hC.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"}}}};
hC.prototype.handleRatingSelect=function(){var O;((O=this.data)==null?0:O.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
hC.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],hC.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.xw),_.v("design:type",Object)],hC.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hC.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hC.prototype,"collapsed",void 0);_.B([_.H({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],hC);
_.n(hC,"ytd-slimline-survey-renderer",function(){if(z32!==void 0)return z32;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return z32=O},{mode:1});var r93;var zb=function(){return _.a.apply(this,arguments)||this};
_.c(zb,_.a);zb.prototype.maybeGetBackgroundColor=function(O){return this.isDarkMode?O.section2Color:O.section3Color};
zb.prototype.colorPaletteChanged=function(){var O=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;O&&(O==null?0:O.secondaryTitleColor)&&this.maybeGetBackgroundColor(O)?(this.hostElement.style.backgroundColor=_.UA(this.maybeGetBackgroundColor(O)),this.hostElement.style.color=_.UA(O.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
zb.prototype.colorPaletteChanged=zb.prototype.colorPaletteChanged;_.B([_.V(_.$5),_.v("design:type",Object)],zb.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zb.prototype,"data",void 0);_.B([_.R({selector:function(O){return O.ui.darkModeIsEnabled}}),
_.v("design:type",Boolean)],zb.prototype,"isDarkMode",void 0);_.B([_.R(),_.v("design:type",Object)],zb.prototype,"lightColorPalette",void 0);_.B([_.R(),_.v("design:type",Object)],zb.prototype,"darkColorPalette",void 0);_.B([_.T1("darkColorPalette","lightColorPalette","data","isDarkMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zb.prototype,"colorPaletteChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],zb);
_.n(zb,"ytd-endorsement-header-renderer",function(){if(r93!==void 0)return r93;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return r93=O},{mode:1});_.wP(_.Nz,"yt-decorated-avatar-view-model",{props:{data:_.Ld,className:_.Ld}});_.r9=new _.iR("VIEW_TRANSITION_MANAGER_TOKEN");var H4=function(){var O=_.a.apply(this,arguments)||this;O.fullHeight=_.t("web_rich_grid_media_full_height");O.showChannelAvatar=!0;O.hasPlaylistThumbnail=!1;O.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};O.registerThumbnailForPageTransition=function(){_.t("web_thumbnail_to_watch_transition")&&_.HSz(_.GG().resolve(_.r9),O.thumbnail)};
return O};
_.c(H4,_.a);_.b=H4.prototype;
_.b.configureRendererStamper=function(){return{lazyLoadMenu:zx,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"}}}};
_.b.attached=function(){this.updateInlinePreviewHoverListeners()};
_.b.detached=function(){this.clearInlinePreviewHoverListeners()};
_.b.shouldLazyLoadMenu=function(){var O=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.t("kevlar_modern_downloads_page")||!O};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16254_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.JSC$16254_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.b.getVideoPreviewOpts=function(){var O={},x;if((x=this.data)==null?0:x.multipleInlinePlaybackEndpoint)O=cFd;this.isRadio&&(O=PaF);return O};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$16254_inlinePreviewHoverListener)==null||KM(O)};
_.b.getOwner=function(){var O,x,e;return((O=this.data)==null?void 0:(x=O.channelThumbnailSupportedRenderers)==null?void 0:x.channelThumbnailWithLinkRenderer)||_.q((e=this.data)==null?void 0:e.showProviderChannelThumbnail,jPz)};
_.b.updateLockupSize=function(){var O;((O=this.getOwner())==null?0:O.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.b.getFeedbackEndpoint=function(O){if(_.q(O,_.Ee))return O;var x,e;O=(e=(x=_.q(O,_.ih))==null?void 0:x.commands)!=null?e:[];x=_.T(O);for(e=x.next();!e.done;e=x.next())if(e=this.getFeedbackEndpoint(e.value))return e;return null};
_.b.computeNavigationEndpoint=function(O){return hmL(O==null?void 0:O.navigationEndpoint)};
_.b.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var O=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(O)!==JSON.stringify(this.data)&&this.set("data",O)}};
_.b.onDataChanged=function(){var O=this,x=this.getOwner();if(x){this.set("data.owner",x);var e,l,C,Q,L,k=((e=this.data)==null?void 0:(l=e.shortBylineText)==null?void 0:(C=l.runs)==null?void 0:(Q=C[0])==null?void 0:Q.text)||((L=x.name)==null?void 0:L.simpleText);this.set("data.owner.title",k)}var M,G,X,y,Z,E;x=((M=this.data)==null?void 0:(G=M.thumbnailRenderer)==null?void 0:G.playlistVideoThumbnailRenderer)||((X=this.data)==null?void 0:(y=X.thumbnailRenderer)==null?void 0:y.playlistCustomThumbnailRenderer)||
((Z=this.data)==null?void 0:(E=Z.thumbnailRenderer)==null?void 0:E.showCustomThumbnailRenderer);var P;((P=this.data)==null?0:P.thumbnail)||!x||this.set("data.thumbnail",x.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){O.updateLockupSize()});
var U;if(M=((U=this.data)==null?void 0:U.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(M);var W;((W=this.dismissActionToReplayEntity)==null?0:W.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.b.onHiddenChanged=function(){this.updateLockupSize()};
_.b.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Sh(this.hostElement,"yt-terminate-video-preview-action");else{var O;(O=this.videoTitleLink)==null||O.focus()}};
_.b.metadataColorChanged=function(){var O;if(this.metadataColor&&((O=this.videoTitle)==null?0:O.style))this.videoTitle.style.color=_.UA(this.metadataColor);else{var x,e;!this.metadataColor&&((x=this.videoTitle)==null?0:(e=x.style)==null?0:e.color)&&(this.videoTitle.style.color="")}};
_.b.onDetailsClick=function(O){var x=this.computedNavigationEndpoint;x&&(_.uk(_.n3(O),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.wr(this.hostElement,"yt-navigate",{endpoint:x}))};
_.b.onRendererTap=function(){this.registerThumbnailForPageTransition();var O,x,e=((O=this.data)==null?void 0:O.serviceEndpoint)||this.getFeedbackEndpoint((x=this.data)==null?void 0:x.navigationEndpoint);e&&_.q(e,_.Ee)&&this.ytComponentBehavior.resolveCommand(e)};
_.b.onMouseDown=function(O){var x=O.target,e=this.computedNavigationEndpoint,l;O=x.href||((l=_.q(e==null?void 0:e.commandMetadata,_.e6))==null?void 0:l.url);l=x.data||e;O&&l&&si7(O,l)};
_.b.computeVideoTitleText=function(){var O;if((O=this.data)==null?0:O.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.b.computeHasPlaylistThumbnail=function(O){var x,e,l,C,Q;if((((x=O.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((e=O.thumbnailRenderer)==null?0:e.playlistCustomThumbnailRenderer)||((l=O.thumbnailRenderer)==null?0:l.showCustomThumbnailRenderer)||((C=O.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((Q=O.thumbnailRenderer)==null?0:Q.playlistCustomThumbnailRenderer))&&O.thumbnailOverlays)for(x=0;x<O.thumbnailOverlays.length;x++)if(e=void 0,(e=O.thumbnailOverlays[x])==
null?0:e.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Dy.Object.defineProperties(H4.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.t("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var O;return(O=this.data)==null?void 0:O.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var O;return(O=this.data)==null?void 0:O.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$16254_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.C6w(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.videoId)||((x=this.data)==null?void 0:x.playlistId)||""}}});
H4.prototype.onMouseDown=H4.prototype.onMouseDown;H4.prototype.metadataColorChanged=H4.prototype.metadataColorChanged;H4.prototype.onIsDismissedChanged=H4.prototype.onIsDismissedChanged;H4.prototype.onHiddenChanged=H4.prototype.onHiddenChanged;H4.prototype.onDataChanged=H4.prototype.onDataChanged;H4.prototype.handleReloadDownloadsInfo=H4.prototype.handleReloadDownloadsInfo;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],H4.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],H4.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],H4.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],H4.prototype,"ytdReduxBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],H4.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],H4.prototype,"entitySelectorType",void 0);_.B([_.R(),_.v("design:type",Boolean)],H4.prototype,"noEndpoints",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],H4.prototype,"isRadio",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],H4.prototype,"miniMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],H4.prototype,"fullHeight",void 0);
_.B([_.R(),_.v("design:type",Boolean)],H4.prototype,"showDarkVideoMetadata",void 0);_.B([_.R(),_.v("design:type",Boolean)],H4.prototype,"showLightVideoMetadata",void 0);_.B([_.R(),_.v("design:type",Number)],H4.prototype,"metadataColor",void 0);_.B([_.R(),_.v("design:type",Object)],H4.prototype,"showChannelAvatar",void 0);_.B([_.R(),_.v("design:type",Boolean)],H4.prototype,"hidden",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],H4.prototype,"showYtInteraction",void 0);
_.B([_.R(),_.v("design:type",String)],H4.prototype,"dismissedContentId",void 0);_.B([_.R({selectorArgs:["dismissedContentId"],selector:bDm}),_.v("design:type",Object)],H4.prototype,"dismissActionToReplayEntity",void 0);
_.B([_.R({selectorArgs:["entitySelectorType","mediaId"],selector:function(O,x,e){if(_.t("kevlar_modern_downloads_page")&&e&&x&&x!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(x){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var l=dLL(O,e);if(l){x=_.Vy(O,e);var C=Rx(O,e),Q=gaW(O,e);O=UQ(O,e);var L=LX7(l,x,C,Q);C=L.shortViewCountText;var k=L.publishedTimeText;L=L.badges;var M=O>0;Q=bj7(l,x,Q,O);l=_.Ah(x)||x==="TRANSFER_STATE_FAILED"||x==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kE(l.policyEntity)?
void 0:s77(e,O,l.videoEntity.lengthSeconds);x==="TRANSFER_STATE_PAUSED_BY_USER"&&e&&!_.t("dl_resume_click_killswitch")&&(l={offlineVideoEndpoint:{videoId:e,action:"ACTION_RESUME"}});e={shortViewCountText:C,publishedTimeText:k,badges:L,isWatched:M,navigationEndpoint:l,thumbnailOverlays:Q}}else e=void 0;return e;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(x=naN(O,e))if(l=_.pA(O,e),Q=_.u_V(O,e),l!=="TRANSFER_STATE_UNKNOWN"){e=T8r(x,l,Q,e,_.Ix(O));break a}e=void 0}return e;default:_.ft(new _.ry("Error: entitySelectorType defined but not matched in selector.",
O,x))}}}),
_.v("design:type",Object)],H4.prototype,"entityDrivenState",void 0);_.B([_.R({computed:"computeVideoTitleText(data)"}),_.v("design:type",Object)],H4.prototype,"videoTitleText",void 0);_.B([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.v("design:type",Object)],H4.prototype,"hasPlaylistThumbnail",void 0);_.B([_.R({computed:"computeNavigationEndpoint(data)"}),_.v("design:type",Object)],H4.prototype,"computedNavigationEndpoint",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],H4.prototype,"typographyBump",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("typographyBump"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],H4.prototype,"typographyBumpV2",null);_.B([_.kX("#video-title"),_.v("design:type",HTMLElement)],H4.prototype,"videoTitle",void 0);_.B([_.kX("#video-title-link"),_.v("design:type",HTMLElement)],H4.prototype,"videoTitleLink",void 0);
_.B([_.kX("#thumbnail"),_.v("design:type",HTMLElement)],H4.prototype,"thumbnail",void 0);_.B([_.kX("#dismissible"),_.v("design:type",HTMLElement)],H4.prototype,"JSC$16254_dismissibleMedia",void 0);_.B([_.p("data.menu"),_.v("design:type",Object),_.v("design:paramtypes",[])],H4.prototype,"lazyLoadMenu",null);_.B([_.p("data.menu"),_.v("design:type",Object),_.v("design:paramtypes",[])],H4.prototype,"immediateLoadMenu",null);
_.B([_.G1("entityDrivenState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H4.prototype,"handleReloadDownloadsInfo",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H4.prototype,"onDataChanged",null);_.B([_.G1("hidden"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H4.prototype,"onHiddenChanged",null);
_.B([_.T1("isDismissed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H4.prototype,"onIsDismissedChanged",null);_.B([_.T1("metadataColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H4.prototype,"metadataColorChanged",null);_.B([_.bH("mousedown"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],H4.prototype,"onMouseDown",null);
_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],H4.prototype,"isHovered",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],H4.prototype,"useAvatar",null);_.B([_.p("data","entitySelectorType"),_.v("design:type",String),_.v("design:paramtypes",[])],H4.prototype,"mediaId",null);_.B([_.H({is:"ytd-rich-grid-media",disableElementRegistration:!0})],H4);
var KlJ=_.NQ()(H4,"ytd-rich-grid-media",function(){if(h3R!==void 0)return h3R;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return h3R=O},{mode:_.gq("kevlar_poly_si_batch_j072")?1:2});var d7F;var KC=function(){var O=_.a.apply(this,arguments)||this;O.removeMaxWidth=!0;O.insetMetadata=!1;return O};
_.c(KC,_.a);_.b=KC.prototype;_.b.configureRendererStamper=function(){return{innerMenu:zx,outerMenu:Object.assign({},zx,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.b.onDataChanged=function(){var O,x=((O=this.data)==null?void 0:O.trackingParams)||"";x&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(x));var e;((e=this.dismissActionToReplayEntity)==null?0:e.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.b.attached=function(){this.updateInlinePreviewHoverListeners()};
_.b.detached=function(){this.clearInlinePreviewHoverListeners()};
_.b.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16259_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.JSC$16259_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:I8R})};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$16259_inlinePreviewHoverListener)==null||KM(O)};
_.b.onRendererTap=function(){var O,x,e=(O=this.data)==null?void 0:(x=O.serviceEndpoints)==null?void 0:x[0];_.q(e,_.Ee)&&this.componentBehavior.resolveCommand(e)};
_.b.onDetailsClick=function(O){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint;e&&(_.uk(_.n3(O),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(e))};
_.b.onShow=function(){var O=this.data;O.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(O.onFirstVisibleCommand),delete O.onFirstVisibleCommand)};
_.Dy.Object.defineProperties(KC.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var O;return this.insetMetadata?void 0:(O=this.data)==null?void 0:O.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var O;return this.insetMetadata?(O=this.data)==null?void 0:O.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var O=this.data;if(O!=null&&O.badge&&(O=_.q(O.badge,u_2))){var x,e,l;return[{metadataBadgeRenderer:{label:((x=O.label)==null?void 0:(e=x.runs)==null?void 0:e[0].text)||((l=O.label)==null?void 0:l.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var O=this.data;return Object.assign({},O.headline,{accessibility:O.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return this.isSlimShort?(O=this.computedTitle)==null?void 0:(x=O.accessibility)==null?void 0:(e=x.accessibilityData)==null?void 0:e.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.t("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$16259_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
KC.prototype.onDataChanged=KC.prototype.onDataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],KC.prototype,"componentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],KC.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.xw),_.v("design:type",Object)],KC.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],KC.prototype,"ytdReduxBehavior",void 0);_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],KC.prototype,"thumbnail",void 0);_.B([_.kX("#dismissible"),_.v("design:type",HTMLElement)],KC.prototype,"JSC$16259_dismissibleMedia",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],KC.prototype,"removeMaxWidth",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],KC.prototype,"insetMetadata",void 0);_.B([_.R(),_.v("design:type",String)],KC.prototype,"dismissedContentId",void 0);_.B([_.R({selectorArgs:["dismissedContentId"],selector:bDm}),_.v("design:type",Object)],KC.prototype,"dismissActionToReplayEntity",void 0);_.B([_.p("insetMetadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],KC.prototype,"thumbnailObjectFit",null);
_.B([_.p("data","insetMetadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],KC.prototype,"innerMenu",null);_.B([_.p("data","insetMetadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],KC.prototype,"outerMenu",null);_.B([_.R(),_.v("design:type",Object)],KC.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],KC.prototype,"miniMode",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],KC.prototype,"onDataChanged",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],KC.prototype,"shortsBadges",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KC.prototype,"isShort",null);
_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KC.prototype,"isSlimShort",null);_.B([_.p("data","isShort"),_.v("design:type",Object),_.v("design:paramtypes",[])],KC.prototype,"computedTitle",null);_.B([_.p("isSlimShort","computedTitle"),_.v("design:type",Object),_.v("design:paramtypes",[])],KC.prototype,"computedAccessibilityLabel",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KC.prototype,"shouldForce2By3",null);_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],KC.prototype,"isHovered",null);_.B([_.H({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],KC);
_.n(KC,"ytd-rich-grid-slim-media",function(){if(d7F!==void 0)return d7F;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return d7F=O},{mode:_.gq("kevlar_poly_si_batch_j063")?1:2});var n9T;var uTJ;var d9=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(d9,_.a);d9.prototype.computeIcon=function(O){return O&&O.iconType?"yt-sys-icons:"+O.iconType.toLowerCase():""};
d9.prototype.onMouseEnter=function(){this.isHovered=!0};
d9.prototype.onMouseLeave=function(){this.isHovered=!1};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],d9.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],d9.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d9.prototype,"isHovered",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],d9.prototype,"darkerDarkTheme",void 0);_.B([_.H({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],d9);
_.n(d9,"ytd-expand-on-hover-card-renderer",function(){if(uTJ!==void 0)return uTJ;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return uTJ=O},{mode:1});var Yoz,B$F=function(){if(Yoz!==void 0)return Yoz;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Yoz=O};_.tI("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var nC=function(){var O=_.a.apply(this,arguments)||this;O.compactStyle=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(nC,_.a);_.b=nC.prototype;_.b.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.b.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"}}}};
_.b.computeHideDot=function(O){return!(O&&O.subscriberCountText&&O.videoCountText)||this.compactStyle};
_.b.hasDualButtons=function(O){return O&&O.purchaseButton&&O.subscribeButton};
_.b.backgroundColorChanged=function(){if(this.data!==void 0){var O=this.data.backgroundColor;this.isDarkTheme&&(O=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=O!=null?_.UA(O):"transparent"}};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.onTap=function(O){var x,e,l=((x=this.data)==null?void 0:x.navigationEndpoint)||((e=this.data)==null?void 0:e.serviceEndpoint);_.q(l,_.zA)&&(l&&_.GG().resolve(_.Xc).resolveCommand(l,{form:{element:this.hostElement}}),O.preventDefault())};
_.b.computeChannelEndpoint=function(O){return _.q(O,_.zA)?null:O};
_.b.computeHrefEndpoint=function(O){return _.q(O,_.zA)?null:this.componentBehavior.computeHref_(O)};
_.b.computeChannelRendererStyle=function(O){return O};
_.b.computeIconSize=function(O){return O?108:136};
_.Dy.Object.defineProperties(nC,{template:{configurable:!0,enumerable:!0,get:function(){return B$F()}}});
nC.prototype.backgroundColorChanged=nC.prototype.backgroundColorChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],nC.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],nC.prototype,"componentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],nC.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],nC.prototype,"isDarkTheme",void 0);_.B([_.R({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.v("design:type",String)],nC.prototype,"channelRendererStyle",void 0);_.B([_.R({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],nC.prototype,"dualButtons",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],nC.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],nC.prototype,"biggerThumbStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],nC.prototype,"compactStyle",void 0);_.B([_.T1("data","isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],nC.prototype,"backgroundColorChanged",null);_.B([_.H({is:"ytd-channel-renderer",disableElementRegistration:!0})],nC);_.n(nC,"ytd-channel-renderer",function(){return B$F()},{mode:1});var v9d;var fqT;_.tI("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var uq=function(){var O=_.a.apply(this,arguments)||this;O.displayItemCount=2;O.collections=_.t("web_modern_collections_v2");O.hasPlaylistThumbnail=!1;O.stackThumbnailSize="large";return O};
_.c(uq,_.a);_.b=uq.prototype;_.b.attached=function(){this.updateInlinePreviewHoverListeners()};
_.b.detached=function(){this.clearInlinePreviewHoverListeners()};
_.b.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.b.computeFirstVideos=function(O,x){return O&&x?O.slice(0,x):[]};
_.b.computeThumbnailWidth=function(O,x){return O?x==="BIG"?500:x==="MASSIVE"?600:x==="MEDIUM"?450:420:360};
_.b.computeThumbnailHeight=function(O,x){return O?x==="BIG"?280:x==="MASSIVE"?337:234:202};
_.b.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$16272_inlinePreviewHoverListener)==null||KM(O)};
_.b.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16272_inlinePreviewHoverListener=It({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:cFd,thumbnailElement:this.thumbnail})};
_.b.computeHasPlaylistThumbnail=function(O){var x,e;if((((x=O.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((e=O.thumbnailRenderer)==null?0:e.playlistCustomThumbnailRenderer))&&O.thumbnailOverlays)for(x=0;x<O.thumbnailOverlays.length;x++)if(e=void 0,(e=O.thumbnailOverlays[x])==null?0:e.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Dy.Object.defineProperties(uq.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$16272_inlinePreviewHoverListener)==null?0:OL(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
uq.prototype.dataChanged=uq.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],uq.prototype,"ytdLockupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],uq.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],uq.prototype,"displayItemCount",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],uq.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],uq.prototype,"biggerThumbsStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],uq.prototype,"collections",void 0);_.B([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.v("design:type",Object)],uq.prototype,"hasPlaylistThumbnail",void 0);_.B([_.R(),_.v("design:type",String)],uq.prototype,"stackThumbnailSize",void 0);_.B([_.kX("ytd-thumbnail"),_.v("design:type",HTMLElement)],uq.prototype,"thumbnail",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],uq.prototype,"dataChanged",null);_.B([_.p("lockupIsHovered"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],uq.prototype,"isHovered",null);_.B([_.H({is:"ytd-radio-renderer",disableElementRegistration:!0})],uq);
_.n(uq,"ytd-radio-renderer",function(){if(fqT!==void 0)return fqT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fqT=O},{mode:_.gq("kevlar_poly_si_batch_j058")?1:2});var J9p;_.tI("itemSectionRenderer","showRenderer","ytd-show-renderer");var YB=function(){return _.a.apply(this,arguments)||this};
_.c(YB,_.a);YB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
YB.prototype.computeThumbnailWidth=function(O){return O?360:246};
YB.prototype.computeUseProminentThumbs=function(O){return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],YB.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],YB.prototype,"isSearch",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.v("design:type",Boolean)],YB.prototype,"useProminentThumbs",void 0);_.B([_.H({is:"ytd-show-renderer",disableElementRegistration:!0})],YB);
_.n(YB,"ytd-show-renderer",function(){if(J9p!==void 0)return J9p;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return J9p=O},{mode:1});_.tI("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var B4=function(){var O=_.a.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.c(B4,_.a);B4.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"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],B4.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],B4.prototype,"isRichGrid",void 0);_.B([_.H({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],B4);
_.n(B4,"ytd-feed-entry-renderer",function(){if(v9d!==void 0)return v9d;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return v9d=O},{mode:1});var wh$;var v4=function(){return _.a.apply(this,arguments)||this};
_.c(v4,_.a);v4.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.B([_.V(_.$5),_.v("design:type",Object)],v4.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],v4.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],v4.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.qc,value:3}),_.v("design:type",Number)],v4.prototype,"itemsPerRow",void 0);
_.B([_.H({is:"ytd-link-card-renderer",disableElementRegistration:!0})],v4);
_.n(v4,"ytd-link-card-renderer",function(){if(wh$!==void 0)return wh$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wh$=O},{mode:1});var So3;var fC=function(){return _.a.apply(this,arguments)||this};
_.c(fC,_.a);_.b=fC.prototype;_.b.configureRendererStamper=function(){return{"data.menu":zx,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.b.onRendererTap=function(O){if(!this.ytdDismissibleItemBehavior.isDismissed){var x,e=(x=this.data)==null?void 0:x.navigationEndpoint;e&&!_.uk(_.n3(O),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(e)?_.uk(_.n3(O),this.hostElement,["A"])||_.wr(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e,{}))}};
_.b.maybeComputeHref=function(O){return this.ytComponentBehavior.computeHref_(O,!0)};
_.b.getNavigationCommand=function(O){return this.isNavigationCommand(O)?O:null};
_.b.isNavigationCommand=function(O){return O?_.q(O,_.Q9)||_.q(O,_.Hq)||_.q(O,_.$b)?!0:!1:!1};
fC.prototype.onRendererTap=fC.prototype.onRendererTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],fC.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],fC.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],fC.prototype,"data",void 0);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],fC.prototype,"onRendererTap",null);_.B([_.H({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],fC);
_.n(fC,"ytd-lumiere-promo-item-image-renderer",function(){if(So3!==void 0)return So3;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return So3=O},{mode:1});var jvL;var JC=function(){return _.a.apply(this,arguments)||this};
_.c(JC,_.a);JC.prototype.computeLandscapeThumbnail=function(){var O;return((O=this.data)==null?void 0:O.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],JC.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JC.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],JC.prototype,"miniMode",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.qc}),_.v("design:type",Number)],JC.prototype,"itemsPerRow",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.v("design:type",Boolean)],JC.prototype,"landscapeThumbnail",void 0);_.B([_.H({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],JC);
_.n(JC,"ytd-lumiere-shelf-details-renderer",function(){if(jvL!==void 0)return jvL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jvL=O},{mode:_.gq("kevlar_poly_si_batch_j076")?1:2});var N$T;var w9=function(){return _.a.apply(this,arguments)||this};
_.c(w9,_.a);w9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],w9.prototype,"data",void 0);_.B([_.H({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],w9);
_.n(w9,"ytd-primetime-promo-details-renderer",function(){if(N$T!==void 0)return N$T;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return N$T=O},{mode:1});var g9J;var SX=function(){return _.a.apply(this,arguments)||this};
_.c(SX,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],SX.prototype,"data",void 0);_.B([_.H({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],SX);
_.n(SX,"ytd-panel-show-style-metadata-renderer",function(){if(g9J!==void 0)return g9J;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return g9J=O},{mode:1});var $7k;var jX=function(){return _.a.apply(this,arguments)||this};
_.c(jX,_.a);_.b=jX.prototype;_.b.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.b.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.b.computeThumbnail=function(O){if(O)return O.smallFormFactorBackgroundThumbnail||O.largeFormFactorBackgroundThumbnail};
_.b.maybeComputeHref=function(O){return this.ytComponentBehavior.computeHref_(O,!0)};
_.b.isNavigationCommand=function(O){return O?_.q(O,_.Q9)||_.q(O,_.Hq)||_.q(O,_.$b)?!0:!1:!1};
_.b.getNavigationCommand=function(O){return this.isNavigationCommand(O)?O:null};
jX.prototype.onPanelTap=jX.prototype.onPanelTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],jX.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],jX.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],jX.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0,value:_.t("web_modern_buttons")}),_.v("design:type",Boolean)],jX.prototype,"modernButtons",void 0);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jX.prototype,"onPanelTap",null);_.B([_.H({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],jX);
_.n(jX,"ytd-primetime-promo-panel-renderer",function(){if($7k!==void 0)return $7k;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return $7k=O},{mode:1});_.wP(_.K(function(O){O=_.YX(O,{data:{},useFullWidth:!1});var x=O.data,e=O.useFullWidth;O={};return _.D("teaser-card-view-model",{class:_.xz("ytTeaserCardViewModelHost",(O.ytTeaserCardViewModelUseFullWidth=function(){return e()},O))},_.D(_.F,{cond:function(){return x().onTap},
then:function(l){return _.D(_.Pt,{className:"ytTeaserCardViewModelLink",command:l},_.D("div",{class:"ytTeaserCardViewModelImageContainer"},_.D(_.F,{cond:function(){return x().image},
then:function(C){return _.D(_.n_,{data:C,className:"ytTeaserCardViewModelImage",alt:""})}})),_.D("p",{class:"ytTeaserCardViewModelCaption"},function(){return x().caption}))}}))},"Pc"),"teaser-card-view-model",{props:{data:_.Ld,
useFullWidth:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=function(){var l;return _.U9((l=x())==null?void 0:l.iconThemedImage)};
return _.D("yt-edu-card-view-model",null,_.D(_.I4,{contentId:function(){return x().nudgeId}},function(){return _.D("div",{class:_.xz("ytEduCardViewModelHost",function(){return x().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.D("div",{class:"ytEduCardViewModelTopCornerButton"},_.D(_.MR,{data:function(){return x().dismissButton}},{buttonViewModel:_.RV})),_.D("div",{class:"ytEduCardViewModelContentWrapper"},_.D("div",{class:"ytEduCardViewModelHeaderImage"},_.D(_.F,
{cond:e,
then:function(l){return _.D(_.n_,{data:l,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.D("div",{class:"ytEduCardViewModelTextContainer"},_.D("div",{class:"ytEduCardViewModelTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytEduCardViewModelSubtitle"},_.D(_.TT,{text:function(){return x().subtitle}}))),_.D("div",{class:"ytEduCardViewModelContent"},_.D(_.MR,{data:function(){return x().form}},{nudgeFormViewModel:Wl2}))),_.D("div",{class:_.xz("ytEduCardViewModelButtonWrapper",
function(){return x().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.D(_.MR,{data:function(){return x().primaryButton}},{buttonViewModel:function(l){return _.D("div",{class:"ytEduCardViewModelPrimaryButton"},_.D(_.RV,{data:l.data}))}}),_.D(_.MR,{data:function(){return x().secondaryButton}},{buttonViewModel:function(l){return _.D("div",{class:"ytEduCardViewModelSecondaryButton"},_.D(_.RV,{data:l.data}))}})))}))},"Qc"),"yt-edu-card-view-model",{props:{data:_.Ld}});var iSJ=new _.iR("RICH_GRID_VIDEO_RENDERER_TOKEN");_.wP(_.K(function(O){var x=O.data;var e=O.showYtInteractionInContent;var l=function(){return!!x().selectableFeedback};
O=_.T(_.Iw(!1,void 0,"qxtgaf"));var C=O.next().value,Q=O.next().value;_.YK(function(){var Z=_.q(x().primaryButton,_.iN);(Z==null?0:Z.isToggled)&&Q(Z.isToggled)});
O=_.lk(function(Z){if(!l())return!1;if(C()){var E;var P=(E=x().selectableFeedback)==null?void 0:E.onDeselect}else{var U;P=(U=x().selectableFeedback)==null?void 0:U.onSelect}P&&_.me(P,{form:{element:Z.target}});Q(!C());if(Z=_.q(x().primaryButton,_.iN))Z.isToggled=C();return!1});
var L=function(){if(!l()){var Z,E=(Z=x().loggingDirectives)==null?void 0:Z.trackingParams;E&&_.I7(_.GG().resolve(_.vt),E)}},k=_.nIw(),M=function(){var Z;
return l()?(Z=x().selectableFeedback)==null?void 0:Z.a11yLabel:void 0},G=function(){return l()?{toggled:C()}:{}},X=_.GG().resolve(_.D0(iSJ)),y={};
return _.D("yt-feedback-item-renderer",{class:_.xz("ytFeedbackItemRendererHost",(y.ytFeedbackItemRendererSelectableFeedback=l,y)),"on:click":O,"on:keydown":k,title:M,"aria-label":M,"aria-pressed":function(){return l()?C():void 0},
tabindex:function(){return l()?0:void 0},
role:function(){return l()?"button":void 0}},_.D("div",{class:"ytFeedbackItemRendererContentContainer"},_.D(_.MR,{data:function(){return x().content}},{videoRenderer:function(Z){return _.D(X,{data:Z.data,
showYtInteraction:e})},
lockupViewModel:function(Z){return _.D(_.UL,{data:Z.data,containerType:2})}})),_.D("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.D(_.MR,{data:function(){return x().primaryButton}},{toggleButtonViewModel:function(Z){return _.D(_.Jc,{data:Z.data,
buttonShapeOverrides:G,disableExplicitClickLogging:!0,onToggle:L})}})))},"Rc"),"yt-feedback-item-renderer",{props:{data:_.Ld,
showYtInteractionInContent:_.Ld}});var NV=function(){var O=_.a.apply(this,arguments)||this;O.isShortsGrid=!1;O.isCompactGrid=!1;O.isShortsPanelGrid=!1;O.renderedFromRichGrid=!1;O.isInFirstColumn=!1;O.noGutterMargins=!1;O.noBottomMargin=!1;O.halfBottomMargin=!1;O.isInlineGroupItem=!1;O.insetMetadata=!1;O.noBottomMarginInAds=!0;O.force16By9ThumbnailAspectRatio=!1;O.useCompactList=!1;O.containerType=2;O.thumbnailTargetWidth=9999;O.isResponsiveGrid=!1;O.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};O.hoverListener=
O.hover.bind(O);O.leaveListener=O.leave.bind(O);O.highlighted=!1;O.JSC$16308_unsubscribeFromInlinePreviewIsActive=function(){};
return O};
_.c(NV,_.a);_.b=NV.prototype;_.b.computeContainerType=function(){return this.useCompactList?3:2};
_.b.itemWidthChanged=function(){var O;this.thumbnailTargetWidth=(O=this.itemWidth)!=null?O:9999};
_.b.updateIsInFirstColumn=function(){var O;this.isInFirstColumn=((O=this.data)==null?void 0:O.colIndex)===0};
_.b.observerContainerType=function(){if(this.lockup){var O=this.lockup;O.containerType=this.containerType;O.sizing=this.sizing;O.typographyBump=this.typographyBump;O.itemWidth=this.itemWidth}this.richGridMedia&&_.t("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.t("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.b.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.b.leave=function(O){O=O.relatedTarget;var x=document.querySelector("ytd-video-preview");O&&x&&_.iK(x).contains(O)||this.removeAndCleanupHighlight()};
_.b.hover=function(){var O;!this.highlighted&&(O=this.data)!=null&&O.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(O=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:O,boxShadow:"0 0 0 10px "+O})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.b.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};
_.b.registerHoverHighlightListeners=function(){var O=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16308_unsubscribeFromInlinePreviewIsActive=_.mw(_.u9(),_.sVi,function(x){O.highlighted&&!x&&O.removeAndCleanupHighlight()})};
_.b.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16308_unsubscribeFromInlinePreviewIsActive()};
_.b.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.b.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.b.getBackgroundColor=function(){var O,x,e=(O=this.data)==null?void 0:(x=O.onFocusEffect)==null?void 0:x.onFocusColor;if(e){if(document.documentElement.hasAttribute("dark")&&(e==null?0:e.darkTheme))return sA(e==null?void 0:e.darkTheme);if(e==null?0:e.lightTheme)return sA(e==null?void 0:e.lightTheme)}};
_.b.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var O=_.Pq(),x,e,l;O&&((x=this.data)==null?0:x.trackingParams)&&((e=this.data)==null?void 0:e.colIndex)!=null&&((l=this.data)==null?void 0:l.rowIndex)!=null&&_.nZ(O,_.Fv(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.b.isSlimMediaRenderer=function(O){return!!_.q(O==null?void 0:O.content,_.Xrz)||!!_.q(O==null?void 0:O.content,FGF)||!!_.q(O==null?void 0:O.content,_.JE)||!!_.q(O==null?void 0:O.content,KPT)};
_.b.isPostRenderer=function(){var O,x;return!!_.q((O=this.data)==null?void 0:O.content,hUk)||!!_.q((x=this.data)==null?void 0:x.content,zU4)};
_.b.computeIsGameCardShelf=function(){var O;return!!_.q((O=this.data)==null?void 0:O.content,wgL)};
_.b.computeIsMiniGameCardShelf=function(){var O,x;return!!_.q((O=this.data)==null?void 0:O.content,Tfz)||!!_.q((x=this.data)==null?void 0:x.content,L53)};
_.b.computeIsTeaserCard=function(){var O;return!!_.q((O=this.data)==null?void 0:O.content,L53)};
_.b.computeIsSelectableFeedbackItem=function(){var O,x;return!((x=_.q((O=this.data)==null?void 0:O.content,AEk))==null||!x.selectableFeedback)};
_.b.computeContainsLumierePosters=function(){var O,x;return((x=_.q((O=this.data)==null?void 0:O.content,vsR))==null?void 0:x.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.b.computeIsExpandOnHoverCardShelf=function(){var O;return!!_.q((O=this.data)==null?void 0:O.content,B1d)};
_.b.computeIsLinkCardShelf=function(){var O;return!!_.q((O=this.data)==null?void 0:O.content,gRp)};
_.b.computeIsReelItemStyleAvatarCircle=function(O){var x;return((x=_.q(O==null?void 0:O.content,_.JE))==null?void 0:x.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.b.computeIsLinkCardFullWidth=function(O,x){var e;return((e=_.q(O==null?void 0:O.content,gRp))==null?void 0:e.useFullWidth)||x<=2};
_.Dy.Object.defineProperties(NV.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var O;return _.t("web_hover_effect_refactor")&&_.q((O=this.data)==null?void 0:O.content,_.xzN)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.t("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var O;if(_.t("web_hover_effect_refactor")&&_.q((O=this.data)==null?void 0:O.content,_.xzN))return!1;var x;return!((x=this.data)==null||!x.onFocusEffect)||_.t("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 O;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.t("web_hover_effect_refactor")?(O=this.data)==null?void 0:O.onFocusEffect:void 0}}}});
NV.prototype.richGridHoverHighlightChanged=NV.prototype.richGridHoverHighlightChanged;NV.prototype.observerContainerType=NV.prototype.observerContainerType;NV.prototype.updateIsInFirstColumn=NV.prototype.updateIsInFirstColumn;NV.prototype.itemWidthChanged=NV.prototype.itemWidthChanged;_.B([_.V(_.$5),_.v("design:type",Object)],NV.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],NV.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],NV.prototype,"ytdLockupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],NV.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.v("design:type",Boolean)],NV.prototype,"isPost",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.v("design:type",Boolean)],NV.prototype,"containsLumierePosters",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.v("design:type",Boolean)],NV.prototype,"isSlimMedia",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.v("design:type",Boolean)],NV.prototype,"isGameCardShelf",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.v("design:type",Boolean)],NV.prototype,"isMiniGameCardShelf",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.v("design:type",Boolean)],NV.prototype,"isTeaserCard",void 0);_.B([_.R({computed:"computeIsSelectableFeedbackItem(data)"}),_.v("design:type",Boolean)],NV.prototype,"isSelectableFeedbackItem",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"isShortsGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],NV.prototype,"isSlimGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"isCompactGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"isShortsPanelGrid",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.v("design:type",Boolean)],NV.prototype,"isExpandOnHoverCardShelf",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.v("design:type",Boolean)],NV.prototype,"isLinkCardShelf",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.qc,value:3}),_.v("design:type",Number)],NV.prototype,"itemsPerRow",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"renderedFromRichGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"isInFirstColumn",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"noGutterMargins",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"noBottomMargin",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"halfBottomMargin",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"isInlineGroupItem",void 0);_.B([_.R(),_.v("design:type",Object)],NV.prototype,"insetMetadata",void 0);_.B([_.R(),_.v("design:type",Object)],NV.prototype,"noBottomMarginInAds",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],NV.prototype,"isShelfItem",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.v("design:type",Boolean)],NV.prototype,"isReelItemStyleAvatarCircle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.v("design:type",Boolean)],NV.prototype,"isLinkCardFullWidth",void 0);_.B([_.R(),_.v("design:type",Object)],NV.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"useCompactList",void 0);_.B([_.R(),_.v("design:type",String)],NV.prototype,"sizing",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],NV.prototype,"typographyBump",void 0);_.B([_.R(),_.v("design:type",Number)],NV.prototype,"itemWidth",void 0);_.B([_.R(),_.v("design:type",Boolean)],NV.prototype,"isHomeShelf",void 0);_.B([_.R(),_.v("design:type",Boolean)],NV.prototype,"isHomeGrid",void 0);
_.B([_.kX("yt-lockup-view-model"),_.v("design:type",HTMLElement)],NV.prototype,"lockup",void 0);_.B([_.kX("ytd-rich-grid-media"),_.v("design:type",HTMLElement)],NV.prototype,"richGridMedia",void 0);_.B([_.kX("ytd-ad-slot-renderer"),_.v("design:type",HTMLElement)],NV.prototype,"adSlotRenderer",void 0);_.B([_.R({computed:"computeContainerType(useCompactList)"}),_.v("design:type",Object)],NV.prototype,"containerType",void 0);_.B([_.R(),_.v("design:type",Object)],NV.prototype,"thumbnailTargetWidth",void 0);
_.B([_.p("showYtInteractionOnRichItem"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NV.prototype,"showYtInteractionOnRichGridMedia",null);_.B([_.p("isSelectableFeedbackItem","richGridHoverHighlight"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NV.prototype,"showYtInteractionOnRichItem",null);_.B([_.p("typographyBump","isHomeGrid"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NV.prototype,"richTypographyBump",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data","isShortsGrid","isCompactGrid"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NV.prototype,"richGridHoverHighlight",null);_.B([_.p("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.v("design:type",Number),_.v("design:paramtypes",[])],NV.prototype,"shortsLockupViewModelAspectRatio",null);_.B([_.p("isInlineGroupItem"),_.v("design:type",Number),_.v("design:paramtypes",[])],NV.prototype,"shortsLockupViewModelScrimStyle",null);
_.B([_.T1("itemWidth"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NV.prototype,"itemWidthChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NV.prototype,"updateIsInFirstColumn",null);_.B([_.T1("containerType","sizing","typographyBump"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NV.prototype,"observerContainerType",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NV.prototype,"isResponsiveGrid",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],NV.prototype,"lockupExperiments",null);_.B([_.T1("richGridHoverHighlight"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NV.prototype,"richGridHoverHighlightChanged",null);_.B([_.H({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],NV);
_.OqF=_.NQ()(NV,"ytd-rich-item-renderer",function(){if(n9T===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);n9T=O}O=n9T;return O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var NnL={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var kVr=_.KA(_.CZ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var $YN={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},O8s={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},xE8={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var xHL;var g9=function(){var O=_.a.apply(this,arguments)||this;O.useResponsiveGrid=!1;O.hidden=!1;O.isShowMoreHidden=!1;O.isShowLessHidden=!0;O.hasExpansionButton=!1;O.isInnerShelf=!1;O.allVideosCount=0;O.allPlaylistCount=0;O.haveSmartDownloadsCompleted=!1;O.restrictContentsOverflow=!1;O.firstShownIndex=0;O.horizontalOffset=0;O.atEnd=!0;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
O.nextClick=function(){var x;(x=O.data)!=null&&x.contents&&(O.firstShownIndex+=O.currentElementsPerRow,O.updateHorizontalOffset(),O.updateHorizontalItemVisibility())};
O.previousClick=function(){var x;(x=O.data)!=null&&x.contents&&(O.firstShownIndex-=O.currentElementsPerRow,O.updateHorizontalOffset(),O.updateHorizontalItemVisibility())};
return O};
_.c(g9,_.a);_.b=g9.prototype;
_.b.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:_.wz("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.b.attached=function(){this.requestElementsPerRow()};
_.b.refreshGridLayoutNew=function(){var O;if((O=this.data)!=null&&O.contents&&this.containerWidth){var x;((x=this.data.responsiveContainerConfiguration)==null?0:x.responsiveSize)?(O=_.DEr(this.data.responsiveContainerConfiguration,this.containerWidth),O=_.Rt(Object.assign({},O,{standardUnitMinWidth:this.standardUnitMinWidth}))):O=_.Rt({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=O.typographyBump;if(this.elementsPerRow!==
O.numItems||this.gutter!==O.gutter)this.elementsPerRow=O.numItems,this.gutter=O.gutter,this.itemWidth=O.itemWidth,_.lH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":O.gutter+"px"})}};
_.b.computeSizing=function(){if(!this.isLumiere){var O=_.zdw(this.data);return O?O:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.b.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.b.computeButton=function(O){var x=_.q(O,_.wf);O=Object.assign({},_.q(O,_.wf));return x?(O.text||(O.text={simpleText:O.tooltip}),O.style="STYLE_MONO_OUTLINE",O.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",O):x};
_.b.onRowIndexChange=function(){var O=_.Pq(),x,e;((x=this.data)==null?0:x.trackingParams)&&((e=this.data)==null?void 0:e.rowIndex)!=null&&O&&_.nZ(O,_.Fv(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.b.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var O,x=((O=this.getRichItemRenderers()[0])==null?void 0:O.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*x;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
_.b.onUpdateElementsPerRowAction=function(O,x,e,l,C,Q){if(this.containerWidth!==Q&&(this.containerWidth=Q,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&O&&x&&e&&l&&C&&(this.elementsPerRow!==O||this.postsPerRow!==x||this.slimItemsPerRow!==e||this.gameCardsPerRow!==l||this.miniGameCardsPerRow!==C)&&(this.elementsPerRow=O,this.postsPerRow=x,this.slimItemsPerRow=e,this.gameCardsPerRow=l,this.miniGameCardsPerRow=C,this.updateItemVisibility())};
_.b.isExpandedChanged=function(){var O=this.getRichItemRenderers(),x=this.isExpanded;O.forEach(function(e){e.halfBottomMargin=x})};
_.b.isCollapsedChanged=function(){var O=this.getRichItemRenderers(),x=this.isCollapsed;O.forEach(function(e){e.noBottomMargin=x})};
_.b.getRichItemRenderers=function(){return _.$U(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.b.updateItemVisibility=function(){var O=this;if(this.data&&this.data.contents){var x=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(l,C){var Q;((Q=O.data)==null?0:Q.isExpanded)?(l.hidden=C>x-1,l.ytRendererBehavior.markDirty()):l.hidden=C>O.currentElementsPerRow-1||C>x-1});
var e=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||e||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||e||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.b.setHeightToSingleRow=function(){var O=this.getRichItemRenderers(),x=Number.parseInt(getComputedStyle(O[0]).marginBottom,10)||0;O=O.slice(0,this.currentElementsPerRow).reduce(function(e,l){return Math.max(e,l.getBoundingClientRect().height+x)},0);
this.contents.style.height=O+"px"};
_.b.focusNextExpandedItem=function(){var O;((O=this.data)==null?0:O.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.b.focusItem=function(O,x){var e=this.getRichItemRenderers();if(e[O]&&(O=e[O].querySelector(".focus-on-expand"))){if(x){var l;(l=e[this.currentElementsPerRow])==null||l.scrollIntoView({behavior:"smooth",block:"center"})}O.focus({preventScroll:!0})}};
_.b.onDataChange=function(){var O=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var x;if((x=this.data)==null?0:x.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.A_(this,function(){O.updateItemVisibility()});
var e;if((e=this.data)==null?0:e.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.lH(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),x=0;x<this.data.contents.length;x++)e=_.q(this.data.contents[x],_.sl)||{},e.colIndex=x,e.rowIndex=this.data.rowIndex};
_.b.handleRerenderDownloadsData=function(){_.t("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())};
_.b.blockInlinePreview=function(O){var x=this,e;return _.A(function(l){(e=x.inlinePreviewIsEnabled)&&x.ytdReduxBehavior.dispatch(_.KDD(!1));return l.return(new Promise(function(C){O(function(){e&&x.ytdReduxBehavior.dispatch(_.KDD(!0));C()})}))})};
_.b.expandShelf=function(){var O=this;if(this.data){var x,e=(x=_.q(this.data.showMoreButton,_.wf))==null?void 0:x.trackingParams;e&&_.I7(_.k0(),e);this.set("data.isExpanded",!0);this.blockInlinePreview(function(l){O.setHeightToSingleRow();O.updateItemVisibility();O.contents.style.height=O.contents.scrollHeight+"px";_.vn.addJob(function(){O.contents.style.height="auto";O.focusNextExpandedItem();l()},2,200)})}};
_.b.collapseShelf=function(){var O=this;return _.A(function(x){if(x.nextAddress==1){if(!O.data)return x.return();O.set("data.isExpanded",!1);return x.yield(O.blockInlinePreview(function(e){O.contents.style.height=O.contents.scrollHeight+"px";O.setHeightToSingleRow();_.vn.addJob(function(){O.updateItemVisibility();O.contents.style.height="auto";e()},2,200)}),2)}_.wr(O.hostElement,"yt-rich-shelf-renderer-collapse",O.data.trackingParams);
O.focusItem(0,!1);_.Ra(x)})};
_.b.updateArrowButtonStatus=function(){this.getRichItemRenderers();var O,x;var e=((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=e};
_.b.onChildElementFocus=function(O){this.hasChevronButtons&&(O=O.target.closest("#contents > *"),this.contents.contains(O)&&(O.offsetLeft<this.horizontalOffset?this.previousClick():O.offsetLeft+O.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.b.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.wz("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.b.updateHorizontalOffset=function(){var O=this.getRichItemRenderers(),x,e;var l=((x=this.data)==null?void 0:(e=x.contents)==null?void 0:e.length)||0;var C;O=((C=O[0])==null?void 0:C.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>l?this.firstShownIndex=l-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*O};
_.b.isSlimMediaShelfRenderer=function(){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl))==null?void 0:e.content;return!!(_.q(l,_.Xrz)||_.q(l,FGF)||_.q(l,_.JE)||_.q(l,KPT))};
_.b.isGameCardShelf=function(){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl))==null?void 0:e.content;return!!_.q(l,wgL)};
_.b.isMiniGameCardShelf=function(){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl))==null?void 0:e.content;return!!_.q(l,Tfz)||!!_.q(l,L53)};
_.b.hasGameBoxArtAvatarStyle=function(){var O;return((O=this.data)==null?void 0:O.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.b.hasRoundedGameBoxArtAvatarStyle=function(){var O;return((O=this.data)==null?void 0:O.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.b.isShortsShelf=function(){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl))==null?void 0:e.content;return!!_.q(l,_.JE)||!!_.q(l,KPT)};
_.b.isPostShelfRenderer=function(){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl))==null?void 0:e.content;return!(!_.q(l,hUk)&&!_.q(l,zU4))};
_.b.isLumiereShelf=function(){var O,x,e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl);return!!_.q(e==null?void 0:e.content,vsR)};
_.b.isLumiereShelfWithPosters=function(){var O,x,e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl),l;return((l=_.q(e==null?void 0:e.content,vsR))==null?void 0:l.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.b.isExpandOnHoverCardShelf=function(){var O,x,e,l=(e=_.q((O=this.data)==null?void 0:(x=O.contents)==null?void 0:x[0],_.sl))==null?void 0:e.content;return!!_.q(l,B1d)};
_.b.computeHasFeaturedBadge=function(){var O,x,e=_.q((O=this.data)==null?void 0:(x=O.badges)==null?void 0:x[0],_.kkT);return e?e.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.b.computeHasPaygatedFeaturedBadge=function(){var O,x,e=_.q((O=this.data)==null?void 0:(x=O.badges)==null?void 0:x[0],_.kkT);return e?(e==null?void 0:e.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.b.computeHeaderHidden=function(){var O,x,e,l,C,Q;return!((O=this.data)==null?0:O.icon)&&!((x=this.data)==null?0:x.title)&&!((e=this.data)==null?0:e.subtitle)&&!((l=this.data)==null?0:l.thumbnail)&&!((C=this.data)==null?0:C.badges)&&!((Q=this.data)==null?0:Q.menu)};
_.b.showCtaButton=function(){var O;return!((O=this.data)==null||!O.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.b.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.b.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.b.computeForce16By9ThumbnailAspectRatio=function(){var O,x;return((O=this.data)==null?void 0:(x=O.responsiveContainerConfiguration)==null?void 0:x.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.b.onSectionReactiveDismissal=function(O,x,e){var l,C;var Q=(l=this.data)==null?void 0:(C=l.targetingContext)==null?void 0:C.targetGroupId;this&&Q&&x.targetGroupId&&Q.includes(x.targetGroupId)?(l=this.rowIndex,O=l===void 0?!1:!(x.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&l<=O)):O=!1;O&&(this.hidden=e)};
_.Dy.Object.defineProperties(g9.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var O=this.elementsPerRow;this.isPostShelfRenderer()?O=this.postsPerRow:this.isSlimMediaShelfRenderer()?O=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?O=this.slimItemsPerRow-1:this.isGameCardShelf()?O=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(O=this.miniGameCardsPerRow);return O}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.previousButton)&&!((x=this.data)==null||!x.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 O;return((O=_.GG().resolve(_.Be).getCurrentPage())==null?void 0:O.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;return!((O=this.data)==null?0:(x=O.thumbnail)==null?0:(e=x.accessibility)==null?0:(l=e.accessibilityData)==null?0:l.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
g9.prototype.onChildElementFocus=g9.prototype.onChildElementFocus;g9.prototype.handleRerenderDownloadsData=g9.prototype.handleRerenderDownloadsData;g9.prototype.onDataChange=g9.prototype.onDataChange;g9.prototype.isCollapsedChanged=g9.prototype.isCollapsedChanged;g9.prototype.isExpandedChanged=g9.prototype.isExpandedChanged;g9.prototype.onRowIndexChange=g9.prototype.onRowIndexChange;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],g9.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],g9.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],g9.prototype,"ytdReduxBehavior",void 0);
_.B([_.R({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.v("design:type",Object)],g9.prototype,"useResponsiveGrid",void 0);_.B([_.R(),_.v("design:type",Object)],g9.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],g9.prototype,"standardUnitMinWidth",void 0);_.B([_.R({reflectToAttribute:!0,value:3}),_.v("design:type",Number)],g9.prototype,"elementsPerRow",void 0);_.B([_.R({value:3}),_.v("design:type",Number)],g9.prototype,"postsPerRow",void 0);
_.B([_.R({value:6}),_.v("design:type",Number)],g9.prototype,"slimItemsPerRow",void 0);_.B([_.R({value:6}),_.v("design:type",Number)],g9.prototype,"gameCardsPerRow",void 0);_.B([_.R({value:6}),_.v("design:type",Number)],g9.prototype,"miniGameCardsPerRow",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],g9.prototype,"hidden",void 0);_.B([_.R(),_.v("design:type",Object)],g9.prototype,"isShowMoreHidden",void 0);
_.B([_.R(),_.v("design:type",Object)],g9.prototype,"isShowLessHidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],g9.prototype,"hasExpansionButton",void 0);_.B([_.p("data.isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g9.prototype,"isExpanded",null);_.B([_.p("data.isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g9.prototype,"isCollapsed",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],g9.prototype,"isInnerShelf",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.v("design:type",Boolean)],g9.prototype,"isShorts",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.v("design:type",Boolean)],g9.prototype,"isLumiere",void 0);_.B([_.R({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.v("design:type",Boolean)],g9.prototype,"hasBoxArtThumbnailStyle",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.v("design:type",Boolean)],g9.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.v("design:type",Boolean)],g9.prototype,"hasFeaturedBadge",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.v("design:type",Boolean)],g9.prototype,"hasPaygatedFeaturedBadge",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.v("design:type",Boolean)],g9.prototype,"isHeaderHidden",void 0);_.B([_.R({selector:_.KP8}),_.v("design:type",Object)],g9.prototype,"allVideosCount",void 0);_.B([_.R({selector:Mcm}),_.v("design:type",Object)],g9.prototype,"allPlaylistCount",void 0);_.B([_.R({selector:SJi}),_.v("design:type",Object)],g9.prototype,"haveSmartDownloadsCompleted",void 0);
_.B([_.R({selectorArgs:["entitySelectorType"],selector:function(O,x){if(_.t("kevlar_modern_downloads_page")&&x&&x!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var e=O.entities;switch(x){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":x=_.yy(e);O=lc(x);var l=_.Mc(x);e=_.EQ(e);e=_.J3(l8V(l,e,x.length));return{contents:O,subtitle:e};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return e=_.yy(e),{contents:lc(e)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return e=
_.ZS(e),{contents:lc(e)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return e=_.FPi(e),{contents:lc(e)};default:_.ft(new _.ry("Error: entitySelectorType defined but not matched in selector.",O,x))}}}}),
_.v("design:type",Object)],g9.prototype,"entityDrivenRichShelfData",void 0);_.B([_.R({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.v("design:type",Boolean)],g9.prototype,"hasTopCtaButton",void 0);_.B([_.R({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.v("design:type",Boolean)],g9.prototype,"hasBottomCtaButton",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.v("design:type",Boolean)],g9.prototype,"force16By9ThumbnailAspectRatio",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],g9.prototype,"restrictContentsOverflow",void 0);_.B([_.R({selector:_.WPm}),_.v("design:type",Boolean)],g9.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.R({computed:"computeSizing(data)"}),_.v("design:type",String)],g9.prototype,"sizing",void 0);
_.B([_.R(),_.v("design:type",Boolean)],g9.prototype,"typographyBump",void 0);_.B([_.R(),_.v("design:type",Number)],g9.prototype,"itemWidth",void 0);_.B([_.R(),_.v("design:type",Object)],g9.prototype,"firstShownIndex",void 0);_.B([_.R(),_.v("design:type",Object)],g9.prototype,"horizontalOffset",void 0);_.B([_.R(),_.v("design:type",Object)],g9.prototype,"atEnd",void 0);_.B([_.kX("#contents"),_.v("design:type",HTMLElement)],g9.prototype,"contents",void 0);
_.B([_.T1("data.rowIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],g9.prototype,"onRowIndexChange",null);_.B([_.T1("isExpanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],g9.prototype,"isExpandedChanged",null);_.B([_.T1("isCollapsed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],g9.prototype,"isCollapsedChanged",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],g9.prototype,"onDataChange",null);_.B([_.T1("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],g9.prototype,"handleRerenderDownloadsData",null);_.B([_.bH("focusin"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],g9.prototype,"onChildElementFocus",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data","isHomePage"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g9.prototype,"isTruncated",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g9.prototype,"showBottomDivider",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],g9.prototype,"hasChevronButtons",null);
_.B([_.p("firstShownIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],g9.prototype,"previousButtonOverride",null);_.B([_.p("atEnd"),_.v("design:type",Object),_.v("design:paramtypes",[])],g9.prototype,"nextButtonOverride",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g9.prototype,"isHomePage",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g9.prototype,"thumbnailAriaHidden",null);
_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],g9.prototype,"entitySelectorType",null);_.B([_.H({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],g9);
_.eEk=_.NQ()(g9,"ytd-rich-shelf-renderer",function(){if(xHL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);xHL=O}O=xHL;return O},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var l4R;_.wP(_.tX,"yt-badge-view-model",{props:{data:_.Ld,class:_.Ld,workaroundShortsIsThumbnailBadge:_.Ld,modern:_.Ld}});_.wP(aAT,"yt-slimline-survey-view-model",{props:{data:_.Ld}});var $B=function(){var O=_.a.apply(this,arguments)||this;O.tileLottieAnimationRef={};O.backgroundLottieAnimationRef={};O.isOnHoverBehaviorForLottieEnabled=!0;O.useBiggerShowcaseImage=_.t("enable_desktop_search_bigger_thumbs");O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return O};
_.c($B,_.a);_.b=$B.prototype;_.b.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.b.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"}}}};
_.b.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var O=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);O!==this.hasTile&&this.set("hasTile",O);O=this.hasLogo(this.data)||!!this.data.badgeText;O!==this.hasMetadata&&this.set("hasMetadata",O);O=this.data.overflowButton?!1:O;O!==this.showLogoImage&&this.set("showLogoImage",O);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.b.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.b.currentColorChanged=function(){this.updateButtonPalette()};
_.b.computeBackgroundStyle=function(O){if(O&&this.data){var x=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var e=_.jf((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);e&&x.push('background-image: url("'+e+'");')}var l;((l=O.basicColorData)==null?void 0:l.backgroundColor)!==void 0&&x.push("background-color: "+_.aF(O.basicColorData.backgroundColor)+";");return x.join("")}};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O)};
_.b.getCurrentLogo=function(O,x){if(O)return x?O.darkLogoImage:O.lightLogoImage};
_.b.getCurrentStaticTileImage=function(O,x){if(this.hasStaticTile(O))return O.darkTileImage?x?O.darkTileImage:O.tileImage:O.tileImage};
_.b.computeTitleStyle=function(O){if(this.data&&this.data.title&&O&&O.basicColorData&&O.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.UA(O.basicColorData.foregroundTitleColor)+";"};
_.b.computeSubtitleStyle=function(O){if(this.data&&this.data.subtitle&&O&&O.basicColorData&&O.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.UA(O.basicColorData.foregroundBodyColor)+";"};
_.b.computeSupplementalStyle=function(O){if(this.data&&this.data.supplementalText&&O&&O.supplementalTextColor!==void 0)return O=_.UA(O.supplementalTextColor),"color:"+O+";--yt-endpoint-color:"+O+";--yt-endpoint-hover-color:"+O+";--yt-endpoint-visited-color:"+O+";--yt-formatted-string-bold-font-weight:700;"};
_.b.computeDismissIconStyle=function(O){var x,e;if((O==null?0:(x=O.dismissButtonColorData)==null?0:x.foregroundTitleColor)&&(O==null?0:(e=O.dismissButtonColorData)==null?0:e.backgroundColor))return"--yt-button-color:"+_.aF(O.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aF(O.dismissButtonColorData.backgroundColor)+";"};
_.b.computeOverflowIconStyle=function(O){var x,e;if((O==null?0:(x=O.dismissButtonColorData)==null?0:x.foregroundTitleColor)&&(O==null?0:(e=O.dismissButtonColorData)==null?0:e.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.aF(O.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aF(O.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.aF(O.dismissButtonColorData.foregroundTitleColor)+";"};
_.b.computeBannerStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeLocation=function(O){switch(O==null?void 0:O.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.b.shouldShowTileSection=function(O,x,e){return!this.shouldExpandLogo(O,x,e)&&x};
_.b.shouldShowExpandedLogoSection=function(O,x,e){return this.shouldExpandLogo(O,x,e)&&O!==void 0&&this.hasLogo(O)};
_.b.shouldExpandLogo=function(O,x,e){return O&&x?!1:e>=2};
_.b.hasStaticTile=function(O){return!(O==null||!O.tileImage)};
_.b.hasTileLottie=function(O){var x;return!!(O==null?0:(x=O.tileLottie)==null?0:x.url)};
_.b.hasLogo=function(O){return this.getCurrentLogo(O,this.isDarkTheme)!==void 0};
_.b.getLogoHeight=function(O){return this.logoWithPadding(O)?"26":"20"};
_.b.getExpandedLogoHeight=function(O){return this.logoWithPadding(O)?"31":"24"};
_.b.getLogoImageId=function(O){return this.logoWithPadding(O)?"logo-image-with-padding":"logo-image"};
_.b.getMaxTitleFontSize=function(O){return O.overrideTitleMaxFontSize?String(O.overrideTitleMaxFontSize):"36"};
_.b.hasBackgroundLottie=function(O){var x;return!!(O==null?0:(x=O.backgroundLottie)==null?0:x.url)};
_.b.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var O,x;(O=this.tileLottieAnimationRef)==null||(x=O.lottieEl)==null||x.play();var e,l;(e=this.backgroundLottieAnimationRef)==null||(l=e.lottieEl)==null||l.play()}};
_.b.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var O,x;(O=this.tileLottieAnimationRef)==null||(x=O.lottieEl)==null||x.pause();var e,l;(e=this.backgroundLottieAnimationRef)==null||(l=e.lottieEl)==null||l.pause()}};
_.b.pauseLottie=function(){var O,x;(O=this.tileLottieAnimationRef)==null||(x=O.lottieEl)==null||x.pause();var e,l;(e=this.backgroundLottieAnimationRef)==null||(l=e.lottieEl)==null||l.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.b.performPrimaryButtonAction=function(){var O,x,e;((O=this.data)==null?0:(x=O.primaryButton)==null?0:(e=x.buttonRenderer)==null?0:e.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
_.b.updateButtonPalette=function(){if(this.data&&this.currentColorData){var O;((O=this.data.dismissButton)==null?0:O.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 x;if((x=this.data.primaryButton)==null?0:x.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 e;if((e=this.data.secondaryButton)==
null?0:e.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 l;((l=this.data.primaryButton)==null?0:l.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var C;((C=this.data.secondaryButton)==null?0:C.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var Q;((Q=this.data.primaryButton)==null?0:Q.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.b.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var O=this.getTileLottieDataBasedOnTheme(),x,e;if(O.url!==((x=this.tileLottiePlayerProps)==null?void 0:(e=x.animationConfig)==null?void 0:e.path)){var l,C;(l=this.tileLottieAnimationRef)==null||(C=l.lottieEl)==null||C.destroy();var Q;this.isOnHoverBehaviorForLottieEnabled=!((Q=O.settings)==null?0:Q.autoplay);var L,k;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(k=(L=O.settings)==null?void 0:L.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(O.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof O.url==="string"?this.tileLottiePlayerProps.animationConfig.path=O.url:this.tileLottiePlayerProps.animationConfig.animationData=O.url}}};
_.b.getOverflowButton=function(O){return _.q(O.overflowButton,BgN)};
_.b.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var O=this.getBackgroundLottieDataBasedOnTheme(),x,e;if(O.url!==((x=this.backgroundLottiePlayerProps)==null?void 0:(e=x.animationConfig)==null?void 0:e.path)){var l,C;(l=this.backgroundLottieAnimationRef)==null||(C=l.lottieEl)==null||C.destroy();var Q;this.isOnHoverBehaviorForLottieEnabled=!((Q=O.settings)==null?0:Q.autoplay);var L,k;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(k=(L=O.settings)==null?void 0:L.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(O.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof O.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=O.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
O.url}}};
_.b.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var O;((O=this.tileLottieAnimationRef)==null?void 0:O.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var x;((x=this.backgroundLottieAnimationRef)==null?void 0:x.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.b.getTileLottieDataBasedOnTheme=function(){var O;if(this.isDarkTheme&&((O=this.data)==null?0:O.darkThemeTileLottie))return this.data.darkThemeTileLottie;var x;return((x=this.data)==null?0:x.tileLottie)?this.data.tileLottie:{}};
_.b.getBackgroundLottieDataBasedOnTheme=function(){var O;if(this.isDarkTheme&&((O=this.data)==null?0:O.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var x;return((x=this.data)==null?0:x.backgroundLottie)?this.data.backgroundLottie:{}};
_.b.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O)};
_.b.getLottieLoopValue=function(O){return O?O.loop!==void 0?O.loop:O.loopCount?O.loopCount-1:!0:!0};
_.b.logoWithPadding=function(O){var x,e,l;return(O=(x=this.getCurrentLogo(O,this.isDarkTheme))==null?void 0:(e=x.thumbnails)==null?void 0:(l=e[0])==null?void 0:l.height)&&O%31===0?!0:!1};
$B.prototype.currentColorChanged=$B.prototype.currentColorChanged;$B.prototype.themeChanged=$B.prototype.themeChanged;$B.prototype.dataChanged=$B.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],$B.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$B.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$B.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"primaryButton",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"secondaryButton",void 0);
_.B([_.R({reflectToAttribute:!0,value:3}),_.v("design:type",Number)],$B.prototype,"elementsPerRow",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],$B.prototype,"isDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],$B.prototype,"hasTile",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],$B.prototype,"hasMetadata",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],$B.prototype,"showLogoImage",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"currentColorData",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.v("design:type",String)],$B.prototype,"bannerStyle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.v("design:type",String)],$B.prototype,"location",void 0);
_.B([_.R(),_.v("design:type",Object)],$B.prototype,"tileLottiePlayerProps",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"tileLottieAnimationRef",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"backgroundLottiePlayerProps",void 0);_.B([_.R(),_.v("design:type",Object)],$B.prototype,"backgroundLottieAnimationRef",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$B.prototype,"useBiggerShowcaseImage",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],$B.prototype,"isHideEnclosingAction",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$B.prototype,"dataChanged",null);_.B([_.G1("isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$B.prototype,"themeChanged",null);
_.B([_.G1("currentColorData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$B.prototype,"currentColorChanged",null);_.B([_.H({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],$B);
_.n($B,"ytd-statement-banner-renderer",function(){if(l4R!==void 0)return l4R;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return l4R=O},{mode:1});var C0F;var iq=function(){var O=_.a.apply(this,arguments)||this;O.isSearch=!1;O.hideShelfHeader=!1;O.engagementPanel=!1;O.disableMouseScroll=!0;O.useFloorScrolling=!0;return O};
_.c(iq,_.a);iq.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.CZ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.CZ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
iq.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
iq.prototype.onDataChanged=iq.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],iq.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],iq.prototype,"hideShelfHeader",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],iq.prototype,"engagementPanel",void 0);_.B([_.R(),_.v("design:type",Object)],iq.prototype,"disableMouseScroll",void 0);_.B([_.R(),_.v("design:type",Object)],iq.prototype,"useFloorScrolling",void 0);_.B([_.R(),_.v("design:type",Object)],iq.prototype,"data",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],iq.prototype,"onDataChanged",null);
_.B([_.H({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],iq);
_.n(iq,"ytd-reel-shelf-renderer",function(){if(C0F!==void 0)return C0F;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return C0F=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var QhT;var bq$;bq$=_.zo(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.TJp=_.on(bq$);var Ls4=_.K(function(O){var x=O.data;O=O.useSmallFont;var e={},l={};return _.D("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.D(_.F,{cond:function(){return x().favicon},
then:function(C){return _.D(_.n_,{data:C,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.D("div",{class:"ytChannelExternalLinkViewModelContainer"},_.D(_.TT,{text:function(){return x().title},
className:_.xz("ytChannelExternalLinkViewModelTitle",(e.ytChannelExternalLinkViewModelTitleSmallFont=O,e)),ellipsisTruncate:!0,userInput:!0}),_.D(_.TT,{text:function(){return x().link},
className:_.xz("ytChannelExternalLinkViewModelLink",(l.ytChannelExternalLinkViewModelLinkSmallFont=O,l)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Sc");
Ls4.idomCompat=!0;_.wP(Ls4,"yt-channel-external-link-view-model",{props:{data:_.Ld,useSmallFont:_.Ld}});_.tI("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Oy=function(){var O=_.a.apply(this,arguments)||this;O.revealButtonClass="button";O.businessEmailDisplayState="HIDE_SECTION";return O};
_.c(Oy,_.a);_.b=Oy.prototype;_.b.refit=function(){var O=this;_.WZ(function(){_.jh(O.hostElement,"yt-refit-popups-action")});
_.A_(this,function(){_.jh(O.hostElement,"yt-refit-popups-action")})};
_.b.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ag(_.TJp),this.businessEmailDisplayState="CAPTCHA")};
_.b.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"};
_.b.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.b.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"}}}};
_.b.computeEmailHref=function(O){return"mailto:"+O};
_.b.computeSafeUrl=function(O){if(O)return _.Yy(O)};
_.b.linkEndpoint=function(O){return _.q(O.onTap,_.VG)};
_.b.linkEndpointToHref=function(O){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(O))};
_.b.onYtServiceRequestCompleted=function(O){var x;if((x=O.detail.data)==null?0:x.businessEmail)this.businessEmail=O.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var e;if((e=O.detail.data)==null?0:e.errorMessage)this.businessEmailErrorMessage=O.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.b.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var O=this.JSC$16422_captchaTextarea.value;if(O){O={recaptcha_response_token:O,channel_id:this.metadata.channelId};var x=_.q(this.metadata.onBusinessEmailRevealClickCommand,_.VG);x&&this.ytComponentBehavior.resolveCommand(x,{form:O})}}};
_.b.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Dy.Object.defineProperties(Oy.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var O;return _.q((O=this.data)==null?void 0:O.metadata,S_d)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.q(this.metadata.businessEmailRevealButton,_.gf)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var O=new URL(this.metadata.canonicalChannelUrl);return O.host+O.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.q(this.metadata.learnMoreOnTap,_.VG)}}});
Oy.prototype.onYtServiceRequestCompleted=Oy.prototype.onYtServiceRequestCompleted;Oy.prototype.businessEmailMetadataChanged=Oy.prototype.businessEmailMetadataChanged;Oy.prototype.refit=Oy.prototype.refit;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#g-recaptcha-response"),_.v("design:type",HTMLTextAreaElement)],Oy.prototype,"JSC$16422_captchaTextarea",void 0);_.B([_.R(),_.v("design:type",Object)],Oy.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Oy.prototype,"revealButtonClass",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oy.prototype,"metadata",null);
_.B([_.p("metadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oy.prototype,"revealButton",null);_.B([_.p("metadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oy.prototype,"channelDisplayUrl",null);_.B([_.G1("metadata"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oy.prototype,"refit",null);_.B([_.p("metadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oy.prototype,"formattedDescription",null);
_.B([_.p("metadata","learnMoreCommand"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Oy.prototype,"shouldRendereVerifiedPhoneStatus",null);_.B([_.p("metadata"),_.v("design:type",Object),_.v("design:paramtypes",[])],Oy.prototype,"learnMoreCommand",null);_.B([_.R(),_.v("design:type",String)],Oy.prototype,"businessEmailDisplayState",void 0);_.B([_.R(),_.v("design:type",String)],Oy.prototype,"businessEmail",void 0);
_.B([_.R(),_.v("design:type",String)],Oy.prototype,"businessEmailErrorMessage",void 0);_.B([_.G1("metadata"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oy.prototype,"businessEmailMetadataChanged",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Oy.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Oy);
_.n(Oy,"ytd-about-channel-renderer",function(){if(QhT!==void 0)return QhT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return QhT=O},{mode:1});var kR3;var xH=function(){return _.a.apply(this,arguments)||this};
_.c(xH,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xH.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],xH);
_.n(xH,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(kR3!==void 0)return kR3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kR3=O},{mode:1});var AvR;var ez=function(){return _.a.apply(this,arguments)||this};
_.c(ez,_.a);ez.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ez.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],ez.prototype,"aligment",void 0);_.B([_.H({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ez);
_.n(ez,"ytd-channel-list-sub-menu-renderer",function(){if(AvR!==void 0)return AvR;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return AvR=
O},{mode:1});var Mik;var lA=function(){return _.a.apply(this,arguments)||this};
_.c(lA,_.a);lA.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],lA.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],lA);
_.n(lA,"ytd-channel-sub-menu-renderer",function(){if(Mik!==void 0)return Mik;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Mik=O},{mode:1});var DH2;var GRz;var Ci=function(){var O=_.a.apply(this,arguments)||this;O.isCompact=!1;return O};
_.c(Ci,_.a);_.Dy.Object.defineProperties(Ci.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var O,x;return((x=_.q((O=this.data)==null?void 0:O.endpoint,_.$b))==null?void 0:x.target)==="TARGET_NEW_WINDOW"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ci.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ci.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ci.prototype,"isCompact",void 0);_.B([_.p("isCompact"),_.v("design:type",Number),_.v("design:paramtypes",[])],Ci.prototype,"thumbnailWidth",null);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ci.prototype,"openNewWindow",null);_.B([_.H({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Ci);
_.n(Ci,"ytd-media-lockup-renderer",function(){if(GRz!==void 0)return GRz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GRz=O},{mode:1});var Fs4;var Qg=function(){return _.a.apply(this,arguments)||this};
_.c(Qg,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Qg.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Qg.prototype,"data",void 0);_.B([_.H({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Qg);
_.n(Qg,"ytd-structured-description-channel-lockup-renderer",function(){if(Fs4!==void 0)return Fs4;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Fs4=O},{mode:1});var XJJ;var bA=function(){var O=_.a.apply(this,arguments)||this;O.isCompact=!1;O.collections=_.t("web_modern_collections_v2");O.collectionsStackColor=_.t("modernize_structured_description_playlist_lockups_v2");return O};
_.c(bA,_.a);bA.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:_.t("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Dy.Object.defineProperties(bA.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C,Q;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(O=this.data)==null?void 0:(x=O.thumbnail)==null?void 0:x.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(e=this.data)==null?void 0:(l=e.thumbnail)==null?void 0:l.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(C=this.data)==null?void 0:(Q=C.thumbnail)==
null?void 0:Q.vibrantColorPalette:void 0}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],bA.prototype,"componentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],bA.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],bA.prototype,"showSidePanelThumbnailOverlay",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],bA.prototype,"isCompact",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],bA.prototype,"collections",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],bA.prototype,"collectionsStackColor",void 0);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],bA.prototype,"twoLineTitle",null);
_.B([_.p("data","collections","collectionsStackColor"),_.v("design:type",Object),_.v("design:paramtypes",[])],bA.prototype,"collectionStack",null);_.B([_.H({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],bA);
_.n(bA,"ytd-structured-description-playlist-lockup-renderer",function(){if(XJJ!==void 0)return XJJ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XJJ=O},{mode:1});var o1R;var TM=function(){return _.a.apply(this,arguments)||this};
_.c(TM,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],TM.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],TM.prototype,"data",void 0);_.B([_.H({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],TM);
_.n(TM,"ytd-structured-description-video-lockup-renderer",function(){if(o1R!==void 0)return o1R;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return o1R=O},{mode:2});var Li=function(){return _.a.apply(this,arguments)||this};
_.c(Li,_.a);
Li.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Li.prototype,"data",void 0);_.B([_.H({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Li);
_.n(Li,"ytd-compact-infocard-renderer",function(){if(DH2!==void 0)return DH2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return DH2=O},{mode:1});var yv3;var kH=function(){var O=_.a.apply(this,arguments)||this;O.useModernCollectionsV2=_.t("web_modern_collections_v2");return O};
_.c(kH,_.a);kH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Dy.Object.defineProperties(kH.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.t("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.t("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.t("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],kH.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],kH.prototype,"ytdReduxBehavior",void 0);_.B([_.R({selector:_.p7}),_.v("design:type",Object)],kH.prototype,"isGridViewEnabled",void 0);
_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],kH.prototype,"watchFeedBigThumbs",null);_.B([_.p("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"168"}),_.v("design:type",String),_.v("design:paramtypes",[])],kH.prototype,"thumbnailWidth",null);_.B([_.p("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"94"}),_.v("design:type",String),_.v("design:paramtypes",[])],kH.prototype,"customThumbnailSize",null);
_.B([_.R(),_.v("design:type",Object)],kH.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kH.prototype,"useModernCollectionsV2",void 0);_.B([_.H({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],kH);
_.n(kH,"ytd-compact-playlist-renderer",function(){if(yv3!==void 0)return yv3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return yv3=O},{mode:1});var Zq3;var AQ=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.roundedContainer=!0;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return O};
_.c(AQ,_.a);_.b=AQ.prototype;_.b.attached=function(){this.requestElementsPerRow()};
_.b.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"}}}};
_.b.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.b.computeViewStyle=function(O){return O.style?O.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.b.onUpdateElementsPerRowAction=function(O){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&O===1};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
AQ.prototype.dataChanged=AQ.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],AQ.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],AQ.prototype,"actionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],AQ.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],AQ.prototype,"hideThumbnail",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.v("design:type",String)],AQ.prototype,"viewStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],AQ.prototype,"darkerDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],AQ.prototype,"roundedContainer",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],AQ.prototype,"dataChanged",null);_.B([_.H({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],AQ);
_.n(AQ,"ytd-compact-promoted-item-renderer",function(){if(Zq3!==void 0)return Zq3;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Zq3=O},{mode:1});var E1R;var Mm=function(){var O=_.a.apply(this,arguments)||this;O.collections=_.t("web_modern_collections_v2");return O};
_.c(Mm,_.a);Mm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Mm.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Mm.prototype.onYtNavigate=function(O,x){var e=this;if(x.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",x)){var l=this.get("watchEndpoint.videoId",x.endpoint),C=_.jh(this.hostElement,"yt-get-current-video-id-action")[0];_.t("kevlar_mix_handle_first_endpoint_different")&&l&&C&&l!==C||(O.stopPropagation(),_.JI().getPlayerPromise().then(function(Q){if(Q.getPlayerState()===0&&e.data.secondaryNavigationEndpoint)var L=e.data.secondaryNavigationEndpoint;else{L=
Object.assign({},x.endpoint);var k=_.q(L.commandMetadata,_.e6);k&&(Q=Math.floor(Q.getCurrentTime()),k.url=_.bu(k.url,{t:Q}),!_.t("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(k=_.q(L,_.Hq)))&&(k.startTimeSeconds=Q)}_.wr(e.hostElement,"yt-navigate",{endpoint:L})}))}};
_.Dy.Object.defineProperties(Mm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.t("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.t("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C,Q;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(O=this.data)==null?void 0:(x=O.thumbnail)==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:(e=this.data)==null?void 0:(l=e.thumbnail)==null?void 0:l.vibrantColorPalette,darkColorPalette:(C=this.data)==null?void 0:(Q=C.thumbnail)==null?void 0:Q.darkColorPalette,experimentEnabled:this.collections}}}});
Mm.prototype.onYtNavigate=Mm.prototype.onYtNavigate;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],Mm.prototype,"ytEndpointBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],Mm.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Lj),_.v("design:type",Object)],Mm.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Mm.prototype,"ytdReduxBehavior",void 0);_.B([_.R({selector:_.p7}),_.v("design:type",Object)],Mm.prototype,"isGridViewEnabled",void 0);_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Mm.prototype,"watchFeedBigThumbs",null);
_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",String),_.v("design:paramtypes",[])],Mm.prototype,"thumbnailWidth",null);_.B([_.R(),_.v("design:type",Object)],Mm.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Mm.prototype,"collections",void 0);_.B([_.p("data","collections"),_.v("design:type",Object),_.v("design:paramtypes",[])],Mm.prototype,"collectionStack",null);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Mm.prototype,"onYtNavigate",null);_.B([_.H({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Mm);
_.n(Mm,"ytd-compact-radio-renderer",function(){if(E1R!==void 0)return E1R;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return E1R=O},{mode:1});var ti3;var Db=function(){return _.a.apply(this,arguments)||this};
_.c(Db,_.a);Db.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Db.prototype.computeRendererStyle=function(O){return O.style?O.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.B([_.R(),_.v("design:type",Object)],Db.prototype,"data",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Db.prototype,"rendererBehavior",void 0);_.B([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.v("design:type",String)],Db.prototype,"rendererStyle",void 0);_.B([_.H({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Db);
_.n(Db,"ytd-compact-text-promo-renderer",function(){if(ti3!==void 0)return ti3;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ti3=O},{mode:1});var q6F;var GM=function(){var O=_.a.apply(this,arguments)||this;O.isShortsStyle=!1;return O};
_.c(GM,_.a);_.b=GM.prototype;_.b.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"}}}};
_.b.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.wr(this.hostElement,"yt-disable-lockup-interaction"):_.wr(this.hostElement,"yt-enable-lockup-interaction"))};
_.b.isMetaBlockEmpty=function(O){return!O||!O.longBylineText&&!O.shortBylineText&&!O.shortViewCountText&&!O.viewCountText};
_.b.computeHasOneLineTitle=function(O){return this.forceOneLineTitle||!(O==null||!O.buttons)};
_.b.computeDisableInteraction=function(){var O;return!((O=this.data)==null?0:O.navigationEndpoint)};
_.b.hasSingularTopStandaloneBadge=function(){var O;return!((O=this.data)==null||!O.topStandaloneBadge)};
_.Dy.Object.defineProperties(GM.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.t("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.t("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 O;return this.hasSingularTopStandaloneBadge()?[(O=this.data)==null?void 0:O.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var O;return this.shouldShowTopBadges?((O=this.data)==null?void 0:O.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
GM.prototype.disableInteractionChanged=GM.prototype.disableInteractionChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],GM.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],GM.prototype,"ytdLockupBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],GM.prototype,"ytdReduxBehavior",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.v("design:type",Boolean)],GM.prototype,"metaBlockEmpty",void 0);_.B([_.R({selector:_.p7}),_.v("design:type",Object)],GM.prototype,"isGridViewEnabled",void 0);_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],GM.prototype,"watchFeedBigThumbs",null);
_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",String),_.v("design:paramtypes",[])],GM.prototype,"thumbnailWidth",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],GM.prototype,"isShortsStyle",void 0);_.B([_.R(),_.v("design:type",Object)],GM.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.v("design:type",Boolean)],GM.prototype,"hasOneLineTitle",void 0);
_.B([_.R(),_.v("design:type",Boolean)],GM.prototype,"hideThumbnail",void 0);_.B([_.R(),_.v("design:type",Boolean)],GM.prototype,"forceOneLineTitle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.v("design:type",Boolean)],GM.prototype,"disableInteraction",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],GM.prototype,"musicMetadataVideoLockup",void 0);
_.B([_.T1("disableInteraction"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],GM.prototype,"disableInteractionChanged",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],GM.prototype,"shouldShowTopBadges",null);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],GM.prototype,"topBadges",null);
_.B([_.p("shouldShowTopBadges","data"),_.v("design:type",Array),_.v("design:paramtypes",[])],GM.prototype,"inlineMetadataBadges",null);_.B([_.p("shouldShowTopBadges"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],GM.prototype,"shouldShowBadgesBelowMetadata",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],GM.prototype,"compactTitleClass",null);_.B([_.H({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],GM);
_.n(GM,"ytd-compact-video-renderer",function(){if(q6F!==void 0)return q6F;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return q6F=O},{mode:_.gq("kevlar_poly_si_batch_j067")?1:2});var P02;_.tI("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Fy=function(){return _.a.apply(this,arguments)||this};
_.c(Fy,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Fy.prototype,"data",void 0);_.B([_.H({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Fy);
_.n(Fy,"ytd-counterfactual-renderer",function(){if(P02!==void 0)return P02;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return P02=O},{mode:1});var cv4;var Xy=function(){var O=_.a.apply(this,arguments)||this;O.hidden=!1;return O};
_.c(Xy,_.a);Xy.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.GG().resolve(_.Xc).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Xy.prototype.computeHidden=function(O){return!!O};
_.Dy.Object.defineProperties(Xy.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}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Xy.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.v("design:type",Object)],Xy.prototype,"hidden",void 0);_.B([_.p("data.label"),_.v("design:type",String),_.v("design:paramtypes",[])],Xy.prototype,"label",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Xy.prototype,"value",null);
_.B([_.H({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Xy);
_.n(Xy,"ytd-dropdown-item-renderer",function(){if(cv4!==void 0)return cv4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return cv4=O},{mode:1});var I43;var Vip;var ok=function(){return _.a.apply(this,arguments)||this};
_.c(ok,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ok.prototype,"data",void 0);_.B([_.R({computed:"getSimpleString(data.label)"}),_.v("design:type",String)],ok.prototype,"label",void 0);_.B([_.H({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ok);
_.n(ok,"ytd-navigation-dropdown-item-renderer",function(){if(Vip!==void 0)return Vip;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Vip=O},{mode:1});var yg=function(){var O=_.a.apply(this,arguments)||this;O.disabled=!1;O.value="";O.noLabelFloat=!1;O.noUnderline=!1;O.usePrimaryColor=!1;O.hasBackground=!1;O.verticalAlign="top";O.autosize=!1;O.minAutosizeWidth=100;O.autosizeFont="14px Roboto";return O};
_.c(yg,_.a);_.b=yg.prototype;_.b.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"}}}};
_.b.open=function(){this.inputEl.open()};
_.b.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.b.dataChanged=function(){this.reset()};
_.b.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("value-changed",this.value))};
_.b.stopPropagation=function(O){O.stopPropagation()};
_.b.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var O=this.canvas.getContext("2d");O&&(O.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(O.measureText(this.inputEl.value).width)+24)+"px")}};
_.b.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var O=0,x=this.data.entries.length;O<x;O++){var e=this.data.entries[O],l;for(l in e)if(e.hasOwnProperty(l)){var C=e[l];if("isSelected"in C&&C.isSelected)return"stringValue"in C?C.stringValue||"":"int32Value"in C?C.int32Value||0:0}}return null};
_.b.updateValueFromBinding=function(O){this.value=O.detail.value};
_.Dy.Object.defineProperties(yg.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 O=0,x=this.data.entries.length;O<x;O++){var e=this.data.entries[O],l;for(l in e)if(e.hasOwnProperty(l)){var C=e[l];if("isSelected"in C&&C.isSelected&&"label"in C)return this.ytRendererBehavior.getSimpleString(C.label)}}return null}}});
yg.prototype.autoSizeLabel=yg.prototype.autoSizeLabel;yg.prototype.stopPropagation=yg.prototype.stopPropagation;yg.prototype.valueChangedForBinding=yg.prototype.valueChangedForBinding;yg.prototype.dataChanged=yg.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yg.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],yg.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yg.prototype,"disabled",void 0);_.B([_.R(),_.v("design:type",Object)],yg.prototype,"value",void 0);_.B([_.R(),_.v("design:type",Object)],yg.prototype,"noLabelFloat",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yg.prototype,"noUnderline",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],yg.prototype,"theme",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yg.prototype,"usePrimaryColor",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yg.prototype,"hasBackground",void 0);_.B([_.R(),_.v("design:type",Object)],yg.prototype,"verticalAlign",void 0);_.B([_.R(),_.v("design:type",Object)],yg.prototype,"autosize",void 0);_.B([_.R(),_.v("design:type",Object)],yg.prototype,"minAutosizeWidth",void 0);_.B([_.R(),_.v("design:type",Object)],yg.prototype,"autosizeFont",void 0);
_.B([_.kX("#entries"),_.v("design:type",Object)],yg.prototype,"entries",void 0);_.B([_.kX("#input"),_.v("design:type",Object)],yg.prototype,"inputEl",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yg.prototype,"dataChanged",null);_.B([_.G1("value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yg.prototype,"valueChangedForBinding",null);
_.B([_.bH("iron-overlay-opened"),_.bH("iron-overlay-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],yg.prototype,"stopPropagation",null);_.B([_.bH("iron-select"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yg.prototype,"autoSizeLabel",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],yg.prototype,"label",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],yg);
_.n(yg,"ytd-dropdown-renderer",function(){if(I43!==void 0)return I43;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return I43=O},{mode:1});var pJp;var Zb=function(){var O=_.a.apply(this,arguments)||this;O.isConstrainedList=!1;return O};
_.c(Zb,_.a);Zb.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"}}}};
Zb.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Zb.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Zb.prototype.computeViewAllHidden=function(O,x){return O||!x.viewAllEndpoint};
Zb.prototype.fillRestIfNoShowMore=Zb.prototype.fillRestIfNoShowMore;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],Zb.prototype,"ytLazyListBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Zb.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Zb.prototype,"isConstrainedList",void 0);_.B([_.G1("data","canShowMore"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Zb.prototype,"fillRestIfNoShowMore",null);_.B([_.H({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Zb);
_.n(Zb,"ytd-expanded-shelf-contents-renderer",function(){if(pJp!==void 0)return pJp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return pJp=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var REJ;var Ey=function(){return _.a.apply(this,arguments)||this};
_.c(Ey,_.a);Ey.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ey.prototype,"data",void 0);_.B([_.H({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Ey);
_.n(Ey,"ytd-feed-channel-filter-header-renderer",function(){if(REJ!==void 0)return REJ;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return REJ=O},{mode:1});var UHL;var a4R;var mHD;var tQ=function(){return _.a.apply(this,arguments)||this};
_.c(tQ,_.a);_.b=tQ.prototype;_.b.onClick=function(O){var x,e=(x=this.data)==null?void 0:x.sectionEndpoint;!_.uk(_.n3(O),this.hostElement,["A".toString()])&&e&&_.wr(this.hostElement,"yt-navigate",{endpoint:e})};
_.b.computeHasSectionEndpoint=function(O){return(O==null?void 0:O.sectionEndpoint)!==void 0};
_.b.computeShowHeaderAsLink=function(O){return(O==null?void 0:O.header)!==void 0&&(O==null?void 0:O.sectionEndpoint)!==void 0};
_.b.computeShowSubheaderAsLink=function(O){return(O==null?void 0:O.subheader)!==void 0&&(O==null?void 0:O.sectionEndpoint)!==void 0&&(O==null?void 0:O.header)===void 0};
_.b.getHeaderAsLinkClass=function(O){var x=[],e;(O==null?0:(e=O.headerIcon)==null?0:e.iconType)&&x.push("header-link-active");return x.join(" ")};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],tQ.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tQ.prototype,"data",void 0);
_.B([_.R({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],tQ.prototype,"hasSectionEndpoint",void 0);_.B([_.R({computed:"computeShowHeaderAsLink(data)"}),_.v("design:type",Boolean)],tQ.prototype,"showHeaderAsLink",void 0);_.B([_.R({computed:"computeShowSubheaderAsLink(data)"}),_.v("design:type",Boolean)],tQ.prototype,"showSubheaderAsLink",void 0);_.B([_.H({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],tQ);
_.n(tQ,"ytd-medical-panel-section-renderer",function(){if(mHD!==void 0)return mHD;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return mHD=O},{mode:1});var qm=function(){var O=_.a.apply(this,arguments)||this;O.isExpanded=!1;O.roundedContainer=!0;O.skipRoundingTop=!1;O.toggleExpandableSection=function(){O.isExpanded=!O.isExpanded};
return O};
_.c(qm,_.a);
qm.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]]"}}}}}};
qm.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
qm.prototype.dataChanged=qm.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qm.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],qm.prototype,"isExpanded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],qm.prototype,"roundedContainer",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],qm.prototype,"skipRoundingTop",void 0);_.B([_.R(),_.v("design:type",Object)],qm.prototype,"toggleExpandableSection",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qm.prototype,"dataChanged",null);_.B([_.H({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],qm);
_.n(qm,"ytd-medical-panel-content-renderer",function(){if(a4R!==void 0)return a4R;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return a4R=O},{mode:1});_.tI("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var P0=function(){var O=_.a.apply(this,arguments)||this;O.roundedContainer=!0;O.extractOverlay=!1;O.amsterdamEnabled=_.t("enable_desktop_amsterdam_info_panels");O.hasTitle=!1;O.linkIcon="OPEN_IN_NEW";O.isDismissed=!1;return O};
_.c(P0,_.a);P0.prototype.onOverlayConditionsChange=function(){var O=_.$U(this.hostElement).querySelector("ytd-info-panel-content-renderer");O&&(O.set("extractOverlay",this.extractOverlay),O.set("roundedContainer",this.roundedContainer))};
P0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
P0.prototype.computeHasTitle=function(O){return!(O==null||!O.title)};
P0.prototype.onClick=function(O){var x,e=(x=this.data)==null?void 0:x.headerEndpoint;!_.uk(_.n3(O),this.hostElement,["BUTTON".toString()])&&e&&this.ytComponentBehavior.resolveCommand(e)};
_.Dy.Object.defineProperties(P0.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 O;return((O=this.data)==null?void 0:O.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.disableBottomDivider)||!((x=this.data)==null?0:x.title)}}});
P0.prototype.onOverlayConditionsChange=P0.prototype.onOverlayConditionsChange;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],P0.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],P0.prototype,"ytdReduxBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],P0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],P0.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],P0.prototype,"extractOverlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],P0.prototype,"amsterdamEnabled",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.v("design:type",Object)],P0.prototype,"hasTitle",void 0);
_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.background"),_.v("design:type",Object),_.v("design:paramtypes",[])],P0.prototype,"background",null);_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.titleStyle"),_.v("design:type",Object),_.v("design:paramtypes",[])],P0.prototype,"titleStyle",null);
_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.p("data.titleStyle"),_.v("design:type",Object),_.v("design:paramtypes",[])],P0.prototype,"showLinkIcon",null);_.B([_.R(),_.v("design:type",String)],P0.prototype,"linkIcon",void 0);_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],P0.prototype,"hideDivider",null);
_.B([_.R({selectorArgs:["data.dismissStateEntityKey"],selector:function(O,x){O=_.xE(O.entities,"dismissState",x);return(O==null?void 0:O.isDismissed)||(O==null?void 0:O.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(O==null?void 0:O.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.v("design:type",Object)],P0.prototype,"isDismissed",void 0);_.B([_.T1("roundedContainer","extractOverlay"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],P0.prototype,"onOverlayConditionsChange",null);_.B([_.H({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],P0);
_.n(P0,"ytd-info-panel-container-renderer",function(){if(UHL!==void 0)return UHL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return UHL=O},{mode:1});var shd;_.tI("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var c0=function(){return _.a.apply(this,arguments)||this};
_.c(c0,_.a);c0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
c0.prototype.computeStyle=function(O){return O?O:""};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.v("design:type",String)],c0.prototype,"titleStyle",void 0);
_.B([_.H({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],c0);
_.NQ()(c0,"ytd-item-section-header-renderer",function(){if(shd===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);shd=O}O=shd;return O},{allowedProps:["data"],
mode:1});var Ws3;var hE3,zEp=function(){return hE3!==void 0?hE3:hE3=document.createElement("template")};
document.head.appendChild(zEp().content);var rv4;_.Ik=new _.iR("VOTING_ANIMATION_CONTROLLER_TOKEN");var Ksp=_.K(function(O){var x=O.data;var e=_.Q5("div"),l=_.Q5("div");O=_.T(_.Iw("VOTE_STATUS_NONE",void 0,"YPH5mf"));var C=O.next().value,Q=O.next().value,L=_.L5(GV$,function(){var Z;return(Z=x())==null?void 0:Z.entityKey}),k=_.t("web_enable_voting_animation")||_.t("enable_music_web_cairo_voting_animation");
_.YK(function(){var Z;((Z=x().initialState)==null?0:Z.status)&&Q(x().initialState.status)});
var M=function(){var Z,E,P=(E=(Z=x().initialState)==null?void 0:Z.votes)!=null?E:0,U;Z=(U=x().initialState)==null?void 0:U.status;return Z==="VOTE_STATUS_UPVOTED"?P-1:Z==="VOTE_STATUS_DOWNVOTED"?P+1:P},G=function(){return C()==="VOTE_STATUS_UPVOTED"?M()+1:C()==="VOTE_STATUS_DOWNVOTED"?M()-1:M()},X=function(Z){var E=Z?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
Q(E);var P=G(),U=_.GG().resolve(_.D0(_.Ik)),W=L();W&&(Z&&(W==null?0:W.upvoteDefaultButtonOnTap)?_.me(W.upvoteDefaultButtonOnTap,{form:{element:e.value},disableClickTracking:!0}):(W==null?0:W.upvoteToggledButtonOnTap)&&_.me(W.upvoteToggledButtonOnTap,{form:{element:e.value},disableClickTracking:!0}));var z;Z=(z=W==null?void 0:W.enableOptimisticReordering)!=null?z:x().enableOptimisticReordering;k&&U&&x().itemId&&Z&&Hq4(U,x().itemId,P,E)},y=function(Z){var E=Z?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
Q(E);var P=G(),U=_.GG().resolve(_.D0(_.Ik)),W=L();W&&(Z&&(W==null?0:W.downvoteDefaultButtonOnTap)?_.me(W.downvoteDefaultButtonOnTap,{form:{element:l.value},disableClickTracking:!0}):(W==null?0:W.downvoteToggledButtonOnTap)&&_.me(W.downvoteToggledButtonOnTap,{form:{element:l.value},disableClickTracking:!0}));var z;Z=(z=W==null?void 0:W.enableOptimisticReordering)!=null?z:x().enableOptimisticReordering;k&&U&&x().itemId&&Z&&Hq4(U,x().itemId,P,E)};
O={};O=_.xz("ytVotingViewModelVoteCount",(O.ytVotingViewModelVoteCountDisabled=function(){return x().isDisabled},O));
return _.D("voting-view-model",{class:"ytVotingViewModelHost"},_.D("div",{el:e},_.D(_.MR,{data:function(){var Z=_.q(x().upvoteButton,_.iN);return{toggleButtonViewModel:Object.assign({},Z,{isToggled:C()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Z){return _.D(_.Jc,{data:Z.data,
onToggle:X})}})),_.D("div",{class:O},function(){var Z,E,P;
return C()==="VOTE_STATUS_UPVOTED"?(Z=x().initialState)==null?void 0:Z.compactVotesUpvoted:C()==="VOTE_STATUS_DOWNVOTED"?(E=x().initialState)==null?void 0:E.compactVotesDownvoted:(P=x().initialState)==null?void 0:P.compactVotes}),_.D("div",{el:l},_.D(_.MR,{data:function(){var Z=_.q(x().downvoteButton,_.iN);
return{toggleButtonViewModel:Object.assign({},Z,{isToggled:C()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Z){return _.D(_.Jc,{data:Z.data,
onToggle:y})}})))},"Tc");_.wP(_.K(function(O){var x=O.data;return _.D("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.D("div",{class:_.xz("ytEngagementBarViewModelEngagementBarWrapper",O.className)},_.D(_.MR,{data:function(){return x().actions}},{votingViewModel:Ksp})))},"Uc"),"engagement-bar-view-model",{props:{data:_.Ld,
className:_.Ld}});var Vg=function(){var O=_.a.apply(this,arguments)||this;O.playlistVotingAnimationEnabled=_.t("web_enable_voting_animation");O.downloadProgress=0;O.transferState="TRANSFER_STATE_UNKNOWN";O.downloadState="DOWNLOAD_STATE_UNKNOWN";O.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";O.offlineVideoPolicyExpirationTimestamp=0;return O};
_.c(Vg,_.a);_.b=Vg.prototype;_.b.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"}}}};
_.b.canReorderChanged=function(){this.persistentDragHandle=_.t("kevlar_playlist_drag_handles")&&this.canReorder};
_.b.onDrag=function(){if(this.thumbnail){var O=_.$U(this.thumbnail).querySelector("yt-image");O&&(O.shouldRenderLazy=!1)}};
_.b.onMenuOverlayChanged=function(O,x){this.menuOpened=x};
_.b.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.b.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.b.onContentsTap=function(O){var x,e=(x=this.data)==null?void 0:x.serviceEndpoints;if(e&&e.length===1&&_.q(e[0],EZN)&&!_.uk(_.n3(O),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(e[0]);else{var l;(x=(l=this.data)==null?void 0:l.navigationEndpoint)&&_.t("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?dHR(_.GG().resolve(_.Vs),x):(_.U7().playlistSuggestionsShelfActivation=
!0,_.n1d(_.GG().resolve(_.Vs),x)):x&&!_.uk(_.n3(O),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.t("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.wr(this.hostElement,"yt-navigate",{endpoint:x}):this.ytComponentBehavior.resolveCommand(x))}};
_.b.computeStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeThumbnailWidth=function(O){return O==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.b.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=LX7(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))}};
_.b.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.b.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.b.dataChanged=function(){if(this.data){var O,x,e,l=((O=this.downloadRenderData)==null?void 0:O.badges)&&((x=this.downloadRenderData)==null?void 0:x.badges)!==((e=this.data)==null?void 0:e.badges),C,Q,L;O=((C=this.downloadRenderData)==null?void 0:C.thumbnailOverlays)&&((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)!==((L=this.data)==null?void 0:L.thumbnailOverlays);(!this.downloadRenderData||l||O)&&this.downloadStateChanged()}};
_.b.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var O,x,e=(O=this.data.menu)==null?void 0:(x=O.menuRenderer)==null?void 0:x.items;if(e)for(O=_.T(e),x=O.next();!x.done;x=O.next())if(x=x.value,e=void 0,_.q((e=x.menuServiceItemRenderer)==null?void 0:e.serviceEndpoint,_.vj)){var l=e=void 0,C=void 0;x=(e=x)==null?void 0:(l=e.menuServiceItemRenderer)==null?void 0:(C=l.serviceEndpoint)==null?void 0:C.playlistEditEndpoint;C=l=void 0;if(e=(l=x)==null?void 0:(C=l.actions)==null?void 0:
C[0])l=void 0,e.setVideoId=(l=this.data)==null?void 0:l.setVideoId;C=l=e=void 0;if(x=(e=x)==null?void 0:(l=e.clientActions)==null?void 0:(C=l[0])==null?void 0:C.playlistRemoveVideosAction)e=void 0,x.setVideoIds=[(e=this.data)==null?void 0:e.setVideoId]}}};
_.Dy.Object.defineProperties(Vg.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Vg.prototype.setVideoIdChanged=Vg.prototype.setVideoIdChanged;Vg.prototype.dataChanged=Vg.prototype.dataChanged;Vg.prototype.downloadStateChanged=Vg.prototype.downloadStateChanged;Vg.prototype.onMenuOverlayChanged=Vg.prototype.onMenuOverlayChanged;Vg.prototype.canReorderChanged=Vg.prototype.canReorderChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Vg.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],Vg.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],Vg.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Vg.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Vg.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Vg.prototype,"canReorder",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Vg.prototype,"menuOpened",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Vg.prototype,"handleIsHovered",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Vg.prototype,"persistentDragHandle",void 0);_.B([_.R(),_.v("design:type",Object)],Vg.prototype,"downloadRenderData",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],Vg.prototype,"styleType",void 0);_.B([_.R({computed:"computeThumbnailWidth(data.style)"}),_.v("design:type",Number)],Vg.prototype,"thumbnailWidth",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Vg.prototype,"isDownloads",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Vg.prototype,"playlistVotingAnimationEnabled",void 0);
_.B([_.R({selector:Rx,selectorArgs:["data.videoId"]}),_.v("design:type",Object)],Vg.prototype,"downloadProgress",void 0);_.B([_.R(),_.v("design:type",Number)],Vg.prototype,"relativeDateReference",void 0);_.B([_.R({selector:_.Vy,selectorArgs:["data.videoId"]}),_.v("design:type",Object)],Vg.prototype,"transferState",void 0);_.B([_.R({selector:gaW,selectorArgs:["data.videoId"]}),_.v("design:type",Object)],Vg.prototype,"downloadState",void 0);
_.B([_.R({selector:rcW,selectorArgs:["data.videoId"]}),_.v("design:type",Object)],Vg.prototype,"offlinePolicyAction",void 0);_.B([_.R({selector:Hdr,selectorArgs:["data.videoId"]}),_.v("design:type",Object)],Vg.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.B([_.R({selector:dLL,selectorArgs:["data.videoId"]}),_.v("design:type",Object)],Vg.prototype,"entityInfo",void 0);_.B([_.R({selector:_.P1}),_.v("design:type",Boolean)],Vg.prototype,"miniplayerIsActive",void 0);
_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],Vg.prototype,"playlistVideoId",null);_.B([_.kX("#thumbnail"),_.v("design:type",Object)],Vg.prototype,"thumbnail",void 0);_.B([_.G1("canReorder"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Vg.prototype,"canReorderChanged",null);
_.B([_.bH("yt-menu-overlay-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Boolean]),_.v("design:returntype")],Vg.prototype,"onMenuOverlayChanged",null);_.B([_.G1("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Vg.prototype,"downloadStateChanged",null);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Vg.prototype,"dataChanged",null);_.B([_.G1("data.setVideoId"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Vg.prototype,"setVideoIdChanged",null);_.B([_.H({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Vg);
_.n(Vg,"ytd-playlist-video-renderer",function(){if(rv4!==void 0)return rv4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);O.content.insertBefore(zEp().content.cloneNode(!0),O.content.firstChild);return rv4=O},{mode:1});var ugL;var pi=function(){return _.a.apply(this,arguments)||this};
_.c(pi,_.a);_.B([_.R(),_.v("design:type",Object)],pi.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pi.prototype,"rendererBehavior",void 0);_.B([_.H({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],pi);
_.n(pi,"ytd-premium-browse-footer-renderer",function(){if(ugL!==void 0)return ugL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ugL=O},{mode:1});var Y6d;var Rk=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return O};
_.c(Rk,_.a);_.b=Rk.prototype;_.b.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.b.handleDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.computeHeaderLogoThumbnail=function(O,x){if(O)return x?O.darkLogo:O.lightLogo};
_.b.computeHeaderLogoHeight=function(O,x){var e,l,C;return(O=(e=this.computeHeaderLogoThumbnail(O,x))==null?void 0:(l=e.thumbnails)==null?void 0:(C=l[0])==null?void 0:C.height)&&O%31===0?"31":"24"};
_.b.computeHeaderLogoMarginBottom=function(O,x){return this.computeHeaderLogoHeight(O,x)==="24"?"0":"-7"};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Rk.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Rk.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],Rk.prototype,"isDarkTheme",void 0);_.B([_.R({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.v("design:type",Object)],Rk.prototype,"themeLogo",void 0);
_.B([_.R({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.v("design:type",String)],Rk.prototype,"logoHeight",void 0);_.B([_.R({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.v("design:type",String)],Rk.prototype,"logoMarginBottom",void 0);_.B([_.H({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Rk);
_.n(Rk,"ytd-primetime-promo-header-renderer",function(){if(Y6d!==void 0)return Y6d;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Y6d=O},{mode:1});var BJ2;_.Uy=_.K(function(O){var x=O.className;var e=O.data;var l=O.isOverlay;var C=O.maxLinesOverride;var Q=O.useMediumText;var L=function(){return e().alwaysShowTruncationText},k=function(){return e().truncationText},M=function(){return Q!==void 0&&Q()?"medium":"small"},G=function(){return l!==void 0&&l()?"overlay":"default"},X=function(){var P,U;
return(U=(P=_.q(e().rendererContext,_.LM))==null?void 0:P.label)!=null?U:""};
O=_.T(_.Iw(!1,void 0,"OKr1o"));var y=O.next().value,Z=O.next().value;O=_.lk(function(){e().expandOnTap&&Z(!y());return!1});
var E={};return _.D("yt-description-preview-view-model",{el:_.Y0(_.P8(function(){return e().rendererContext})),
class:_.xz("ytDescriptionPreviewViewModelHost",x,(E.ytDescriptionPreviewViewModelClickable=function(){var P;return!((P=_.q(e().rendererContext,NAW))==null||!P.onTap)},E.ytDescriptionPreviewViewModelIsOverlay=l,E)),
"on:click":O},_.D(_.F,{cond:function(){return e().description},
then:function(P){return _.D(_.F,{cond:y,then:function(){var U={};return _.D("div",{class:_.xz("ytDescriptionPreviewViewModelDescription",(U.ytDescriptionPreviewViewModelDescriptionMediumText=Q,U))},_.D(_.TT,{text:P}))},
else:function(){return _.D(jNR,{text:P,alwaysShowTruncationText:L,truncationText:k,maxLines:function(){var U;return(U=C==null?void 0:C())!=null?U:e().maxLines},
textStyle:G,accessibilityLabel:X,textSize:M})}})}}))},"Vc");
_.Uy.idomCompat=!0;var f4d=_.K(function(O){var x=_.lk(function(C){var Q;(Q=O.onClick)==null||Q.call(O,C)}),e={},l={};
return _.D("yt-shelf-header-layout",{class:_.xz("yt-shelf-header-layout",(e["yt-shelf-header-layout--disable-horizontal-padding"]=O.disableHorizontalPadding,e["yt-shelf-header-layout--disable-vertical-padding"]=O.disableVerticalPadding,e["yt-shelf-header-layout--responsive"]=O.useResponsiveLayout,e["yt-shelf-header-layout--narrow"]=function(){var C,Q;return((C=O.useResponsiveLayout)==null?void 0:C.call(O))&&((Q=O.forceSmallLayout)==null?void 0:Q.call(O))},e["yt-shelf-header-layout--is-overlay"]=O.isOverlay,
e["yt-shelf-header-layout--tappable"]=O.isInteractive,e)),
"on:click":x,tabindex:function(){var C;return((C=O.isInteractive)==null?0:C.call(O))?0:void 0}},_.D("div",{class:"yt-shelf-header-layout__header-row"},_.D(_.F,{cond:O.leadingIcon,
then:function(C){return _.D("div",{class:"yt-shelf-header-layout__leading-icon"},_.D(_.L7,{icon:C}))},
else:function(){return _.D(_.F,{cond:O.hasLeadingImage,then:function(){var C,Q={};return _.D("div",{class:_.xz("yt-shelf-header-layout__leading-image",(Q["yt-shelf-header-layout__leading-image--circular-image"]=O.circularImage,Q))},(C=O.leadingImage)==null?void 0:C.call(O))}})}}),_.D("div",{class:"yt-shelf-header-layout__label-container"},_.D(_.F,{cond:O.hasSuperlabel,
then:function(){var C;return _.D("div",{class:"yt-shelf-header-layout__superlabel"},(C=O.superlabel)==null?void 0:C.call(O))}}),_.D("div",{class:"yt-shelf-header-layout__title-row"},_.D(v13,{text:O.title,
className:_.xz("yt-shelf-header-layout__title",(l["yt-shelf-header-layout__title--small-title"]=O.forceSmallLayout,l)),tagLevel:O.tagLevel}),_.D(_.F,{cond:O.hasDetail,then:function(){var C;return _.D("div",{class:"yt-shelf-header-layout__detail"},(C=O.detail)==null?void 0:C.call(O))}})),_.D(_.F,{cond:O.hasSublabel,
then:function(){var C;return _.D("div",{class:"yt-shelf-header-layout__sublabel"},(C=O.sublabel)==null?void 0:C.call(O))}})),_.D(_.F,{cond:O.hasTrailingActions,
then:function(){var C;return _.D("div",{class:"yt-shelf-header-layout__trailing-actions"},(C=O.trailingActions)==null?void 0:C.call(O))}})),_.D(_.F,{cond:O.hasBottomAccessory,
then:function(){var C;return _.D("div",{class:"yt-shelf-header-layout__bottom-accessory"},(C=O.bottomAccessory)==null?void 0:C.call(O))}}))},"Wc");
f4d.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var v13=_.K(function(O){var x=O.text;var e=O.className;var l=O.tagLevel;return _.D(_.KO,null,_.D(_.zn,{when:function(){return(l==null?void 0:l())===0}},function(){return _.D("h2",{class:e},x())}),_.D(_.zn,{when:function(){return(l==null?void 0:l())===1}},function(){return _.D("h3",{class:e},x())}),_.D(_.zn,{when:function(){return(l==null?void 0:l())===2}},function(){return _.D("h4",{class:e},x())}),_.D(_.rz,null,function(){return _.D("h2",{class:e},x())}))},"Xc");var S6$,Jvd,wJF;_.ak=_.K(function(O){var x=O.className;var e=O.data;var l=O.disableHorizontalPadding;var C=O.disableVerticalPadding;var Q=O.forceSmallLayout;var L=O.useResponsiveLayout;O=O.isOverlay;return _.D("yt-section-header-view-model",{class:_.xz("ytSectionHeaderViewModelHost",x),style:_.T7({"background-color":function(){return CM(e().backgroundColor)?_.aF(CM(e().backgroundColor)):void 0}})},_.D(f4d,{hasDetail:!1,
title:function(){return _.D(_.TT,{text:function(){return e().headline}})},
hasTitle:!0,sublabel:function(){return _.D(Jvd,{data:e})},
hasSublabel:function(){return!!e().sublabel||!!e().bottomBadge},
superlabel:function(){return _.D(wJF,{data:e})},
hasSuperlabel:function(){return!!e().superlabel||!!e().topBadge},
leadingImage:function(){return _.D(S6$,{leadingAccessory:function(){return e().leadingAccessory}})},
hasLeadingImage:function(){return!!e().leadingAccessory},
trailingActions:function(){return _.D(_.MR,{data:function(){return e().trailingActions}},{flexibleActionsViewModel:_.g8})},
hasTrailingActions:function(){return!!e().trailingActions},
disableHorizontalPadding:l,disableVerticalPadding:C,forceSmallLayout:Q,useResponsiveLayout:L,isOverlay:O,isInteractive:function(){return!!_.tA(e().rendererContext)},
onClick:function(k){if(_.qR(e().rendererContext)){var M=_.tA(e().rendererContext);M&&_.Rl(M,{form:{element:k.target,event:k}})}},
bottomAccessory:function(){return _.D(_.MR,{data:function(){return e().bottomAccessory}},{descriptionPreviewViewModel:_.Uy})},
hasBottomAccessory:function(){return!!e().bottomAccessory}}))},"Yc");
S6$=_.K(function(O){var x=O.leadingAccessory;return _.D(_.Xm,null,_.D(_.F,{cond:function(){var e;return(e=x().image)!=null?e:_.U9(x().themedImage)},
then:function(e){return _.D(_.n_,{data:e,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.D(_.F,{cond:function(){return _.q(x().avatar,_.c8)},
then:function(e){return _.D(_.jQ,{data:e})}}))},"Zc");
Jvd=_.K(function(O){var x=O.data;return _.D(_.Xm,null,_.D(_.F,{cond:function(){return _.q(x().bottomBadge,jXz)},
then:function(e){var l={};return _.D(_.tX,{data:e,class:_.xz((l.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!e()&&!!x().sublabel},l))})}}),_.D(_.F,{cond:function(){return x().sublabel},
then:function(e){return _.D(_.TT,{text:e})}}))},"$c");
wJF=_.K(function(O){var x=O.data;return _.D(_.Xm,null,_.D(_.F,{cond:function(){return _.q(x().topBadge,jXz)},
then:function(e){var l={};return _.D(_.tX,{data:e,class:_.xz((l.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!e()&&!!x().superlabel},l))})}}),_.D(_.F,{cond:function(){return x().superlabel},
then:function(e){return _.D(_.TT,{text:e})}}))},"ad");_.wP(_.ak,"yt-section-header-view-model",{props:{data:_.Ld,className:_.Ld,disableHorizontalPadding:_.Ld,disableVerticalPadding:_.Ld,forceSmallLayout:_.Ld,useResponsiveLayout:_.Ld,isOverlay:_.Ld}});_.tI("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var mc=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return O};
_.c(mc,_.a);_.b=mc.prototype;_.b.attached=function(){this.requestElementsPerRow()};
_.b.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"}}}};
_.b.onDataChange=function(){var O=this;_.A_(this,function(){O.updateItemVisibility()})};
_.b.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O,this.updateItemVisibility())};
_.b.updateItemVisibility=function(){var O=this;this.data&&this.data.panels&&_.$U(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(x,e){x.hidden=e>O.elementsPerRow-1})};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
mc.prototype.onDataChange=mc.prototype.onDataChange;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],mc.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],mc.prototype,"actionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],mc.prototype,"data",void 0);_.B([_.R({value:3}),_.v("design:type",Number)],mc.prototype,"elementsPerRow",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mc.prototype,"onDataChange",null);_.B([_.H({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],mc);
_.n(mc,"ytd-primetime-promo-renderer",function(){if(BJ2!==void 0)return BJ2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return BJ2=O},{mode:1});var jhL;var sy=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return O};
_.c(sy,_.a);sy.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
sy.prototype.handleButtonRefreshAction=function(O){if(O=_.q(O,FB$))this.set("data.button",O.membershipButton),this.notifyPath("data.button")};
_.Dy.Object.defineProperties(sy.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:(x=O.avatars)==null?void 0:x.slice(0,8))||[]}}});
_.B([_.R(),_.v("design:type",Object)],sy.prototype,"data",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],sy.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sy.prototype,"rendererBehavior",void 0);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],sy.prototype,"avatars",null);
_.B([_.H({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],sy);
_.n(sy,"ytd-recognition-shelf-renderer",function(){if(jhL!==void 0)return jhL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jhL=O},{mode:1});var NJJ;var g1D;var W0=function(){var O=_.a.apply(this,arguments)||this;O.modernButtons=_.t("web_modern_buttons");return O};
_.c(W0,_.a);_.b=W0.prototype;
_.b.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]]"}}}}}};
_.b.dataChanged=function(){this.collapsed=!0};
_.b.computeVisibleItems=function(O,x){return O!==void 0&&O.items?x?O.items.slice(0,this.data.collapsedItemCount):O.items:[]};
_.b.computeHideShowMore=function(O,x,e){return O>=x||!e};
_.b.computeHideShowAll=function(O,x,e){return!(O&&x)||e};
_.b.onMoreClick=function(){this.collapsed=!1};
_.Dy.Object.defineProperties(W0.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.t("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Z0("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.t("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
W0.prototype.dataChanged=W0.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],W0.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],W0.prototype,"isSearch",void 0);
_.B([_.R({computed:"computeVisibleItems(data,collapsed)"}),_.v("design:type",Array)],W0.prototype,"visibleItems",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],W0.prototype,"collapsed",void 0);_.B([_.R({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.v("design:type",Boolean)],W0.prototype,"hideShowMore",void 0);
_.B([_.R({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.v("design:type",Boolean)],W0.prototype,"hideShowAll",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],W0.prototype,"modernButtons",void 0);_.B([_.p("isSearch"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],W0.prototype,"typographyBump",null);
_.B([_.p("isSearch"),_.v("design:type",Object),_.v("design:paramtypes",[])],W0.prototype,"lockupExperiments",null);_.B([_.p("isSearch"),_.v("design:type",String),_.v("design:paramtypes",[])],W0.prototype,"thumbnailWidth",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],W0.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],W0);
_.n(W0,"ytd-vertical-list-renderer",function(){if(g1D!==void 0)return g1D;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return g1D=O},{mode:1});var $H2=_.zo(["#"]);_.tI("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var hQ=function(){var O=_.a.apply(this,arguments)||this;O.isConstrainedList=!1;return O};
_.c(hQ,_.a);_.b=hQ.prototype;
_.b.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"}}}};
_.b.computeThumbnailStyle=function(O){return O||""};
_.b.computePlaceAnnotationUnderTitle=function(){var O;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((O=this.data)==null?void 0:O.thumbnailStyle)||"")};
_.b.computeHrefWithDefault=function(O){return this.ytComponentBehavior.computeHref_(O)||_.Lg8($H2)};
_.b.computeIsPromoShelf=function(O){var x;return(O=O==null?void 0:(x=O[0])==null?void 0:x.metadataBadgeRenderer)?O.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.b.computePlaceBadgeBesideTitle=function(O){var x;return(O==null?0:(x=O[0])==null?0:x.metadataBadgeRenderer)?!this.computeIsPromoShelf(O):!1};
_.b.computeMenuIcon=function(O){return this.computeIsPromoShelf(O)?"yt-icons:more_vert":"yt-icons:more"};
_.b.onDataChange=function(){var O,x;((O=this.data)==null?0:(x=O.content)==null?0:x.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.b.onLockupRequested=function(O){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&O.detail&&O.detail.videoIds){for(var x=this.data.content.gridRenderer.items,e=new Set,l=_.T(O.detail.videoIds),C=l.next();!C.done;C=l.next())e.add(C.value);O.detail.returnValue=x.filter(function(Q){return Q.gridVideoRenderer&&Q.gridVideoRenderer.videoId&&e.has(Q.gridVideoRenderer.videoId)}).map(function(Q){return Q.gridVideoRenderer})}};
_.b.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
hQ.prototype.onLockupRequested=hQ.prototype.onLockupRequested;hQ.prototype.onDataChange=hQ.prototype.onDataChange;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],hQ.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],hQ.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],hQ.prototype,"ironResizableBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hQ.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],hQ.prototype,"isSearch",void 0);_.B([_.R(),_.v("design:type",Object)],hQ.prototype,"isConstrainedList",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("kevlar_fluid_dismiss")}}),
_.v("design:type",Boolean)],hQ.prototype,"enableFluidDismiss",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.v("design:type",String)],hQ.prototype,"thumbnailStyle",void 0);_.B([_.R({computed:"computeMenuIcon(data.badges)"}),_.v("design:type",String)],hQ.prototype,"menuIcon",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.v("design:type",Boolean)],hQ.prototype,"featuredPromo",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hQ.prototype,"onDataChange",null);_.B([_.bH("yt-lockup-requested"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],hQ.prototype,"onLockupRequested",null);_.B([_.H({is:"ytd-shelf-renderer",disableElementRegistration:!0})],hQ);
_.n(hQ,"ytd-shelf-renderer",function(){if(NJJ!==void 0)return NJJ;var O=document.createElement("template");_.I(O,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return NJJ=O},{mode:1});var iq2;var zM=function(){return _.a.apply(this,arguments)||this};
_.c(zM,_.a);zM.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Dy.Object.defineProperties(zM.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zM.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],zM.prototype,"isPlaylist",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],zM.prototype,"isClipList",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],zM.prototype,"isPlaylistPageWithFilters",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zM.prototype,"hasTitle",null);_.B([_.R(),_.p("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.v("design:type",Object),_.v("design:paramtypes",[])],zM.prototype,"isRightAligned",null);
_.B([_.H({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],zM);
_.n(zM,"ytd-sort-filter-header-renderer",function(){if(iq2!==void 0)return iq2;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return iq2=O},{mode:1});var Oa2;var rE=function(){var O=_.a.apply(this,arguments)||this;O.enableRightArrowHidden=_.t("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return O};
_.c(rE,_.a);rE.prototype.attached=function(){var O=this;this.enableRightArrowHidden&&(this.JSC$16551_throttledOnResize=new _.QI(function(){var x;(x=O.ytdHorizontalListBehavior)==null||x.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var x;
(x=O.JSC$16551_throttledOnResize)==null||x.fire()}),this.resizeObserver.observe(this.hostElement))};
rE.prototype.detached=function(){if(this.enableRightArrowHidden){var O;(O=this.resizeObserver)==null||O.disconnect();var x;(x=this.JSC$16551_throttledOnResize)==null||x.dispose()}};
rE.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]]"}}}}}};
rE.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Dy.Object.defineProperties(rE.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.t("enable_creator_details_shelf_m2")){var O=[],x;((x=this.data)==null?0:x.creatorVideosButton)&&O.push(this.data.creatorVideosButton);var e;((e=this.data)==null?0:e.creatorAboutButton)&&O.push(this.data.creatorAboutButton);x=_.T(this.data.creatorCustomUrlButtons||[]);for(e=x.next();!e.done;e=x.next())O.push(e.value);return O}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.t("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],rE.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],rE.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],rE.prototype,"engagementPanel",void 0);
_.B([_.R(),_.v("design:type",Object)],rE.prototype,"enableRightArrowHidden",void 0);_.B([_.p("enableRightArrowHidden","atEnd"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],rE.prototype,"hideRightArrow",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],rE.prototype,"creatorCustomUrlButtons",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data","creatorCustomUrlButtons"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],rE.prototype,"showCreatorCustomUrlButtons",null);_.B([_.p("showCreatorCustomUrlButtons"),_.v("design:type",Number),_.v("design:paramtypes",[])],rE.prototype,"channelAvatarSize",null);_.B([_.H({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],rE);
_.n(rE,"ytd-video-description-infocards-section-renderer",function(){if(Oa2!==void 0)return Oa2;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Oa2=O},{mode:_.gq("kevlar_poly_si_batch_j067")?1:2});var xJp;var H0=function(){return _.a.apply(this,arguments)||this};
_.c(H0,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],H0.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.infoIcon)"}),_.v("design:type",Object)],H0.prototype,"infoIcon",void 0);_.B([_.H({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],H0);
_.n(H0,"ytd-eom-settings-disclaimer-renderer",function(){if(xJp!==void 0)return xJp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return xJp=O},{mode:1});var efJ;var Ki=function(){return _.a.apply(this,arguments)||this};
_.c(Ki,_.a);_.Dy.Object.defineProperties(Ki.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.suppressPaddingDisclaimer)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ki.prototype,"componentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ki.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ki.prototype,"suppressPaddingDisclaimer",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Ki);
_.n(Ki,"ytd-product-list-header-renderer",function(){if(efJ!==void 0)return efJ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return efJ=O},{mode:1});var lH4;var dE=function(){return _.a.apply(this,arguments)||this};
_.c(dE,_.a);dE.prototype.computeThumbnailStyle=function(O){if(O&&(O=_.UA(O)))return"background-color:"+O+";"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],dE.prototype,"rendererBehaviors",void 0);_.B([_.R(),_.v("design:type",Object)],dE.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],dE);
_.n(dE,"ytd-hashtag-tile-renderer",function(){if(lH4!==void 0)return lH4;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return lH4=O},{mode:1});var Cjd;var ni=function(){return _.a.apply(this,arguments)||this};
_.c(ni,_.a);ni.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ni.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ni);
_.n(ni,"ytd-sponsorships-alert-renderer",function(){if(Cjd!==void 0)return Cjd;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Cjd=O},{mode:1});var QI3;var uA=function(){return _.a.apply(this,arguments)||this};
_.c(uA,_.a);uA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Dy.Object.defineProperties(uA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.t("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.t("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.B([_.V(_.xw),_.v("design:type",Object)],uA.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],uA.prototype,"ytdLockupBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.B([_.R({selector:_.p7}),_.v("design:type",Object)],uA.prototype,"isGridViewEnabled",void 0);
_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],uA.prototype,"watchFeedBigThumbs",null);_.B([_.p("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.v("design:type",String),_.v("design:paramtypes",[])],uA.prototype,"thumbnailWidth",null);_.B([_.R(),_.v("design:type",Object)],uA.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],uA);
_.n(uA,"ytd-compact-movie-renderer",function(){if(QI3!==void 0)return QI3;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return QI3=O},{mode:1});var ba3;var TuD;var LpR=_.wz("HTML_DIR")==="rtl",YH=function(){var O=_.a.apply(this,arguments)||this;O.engagementPanel=!1;O.maxLines=2;O.expandButtonOffset=0;O.showExpandButton=!1;O.isTruncated=!1;O.isExpanded=!1;O.currentSnippetType=2;O.alwaysShowExpandButton=!1;O.JSC$16568_lastWidth=NaN;O.observer=null;O.left=0;O.right=0;O.mid=0;O.longestSnippetLength=0;O.isFinalSnippet=!1;O.isFirstMutation=!1;O.isResetMutation=!1;O.OVERFLOW_THRESHOLD=5;return O};
_.c(YH,_.a);_.b=YH.prototype;_.b.onClick=function(O){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;if((x=window.getSelection())==null||!x.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.b.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.b.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.b.updateTextOnSnippetTypeChange=function(){_.t("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.b.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.b.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.ft(new _.ry("AttributedSnippet is empty when the description is not empty",this.text))};
_.b.mutationCallback=function(){if(this.observer!=null){var O=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var x=Math.floor(O*this.maxLines/8);this.setSnippetText(this.text,x);x!==0||this.attributedTextIsEmpty()||_.ft(new _.ry("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;O=O*this.maxLines/8;this.left=0;var e;this.right=Math.min(O*2,(e=(x=this.simpleText)==null?void 0:x.length)!=null?e: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)}}};
_.b.mutationObserve=function(O){var x=this;this.observer||(this.observer=new MutationObserver(function(){x.mutationCallback()}));
this.observer.observe(O,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.b.attached=function(){var O=this;_.A_(this,function(){O.resize()})};
_.b.isExpandedChanged=function(){_.wr(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.b.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)};
_.b.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var O="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((LpR?"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",O);this.snippetContainer.style.setProperty("mask-image",
O)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(LpR?"right":"left",this.expandButtonOffset+"px")};
_.b.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.b.setSnippetText=function(O,x){O||(O={});if(_.Hs(O)){var e=zO(O,x);e.attachmentRuns||e.commandRuns||e.decorationRuns||e.styleRuns||e.alignment||e.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:zO(O,x),headerRuns:neL(x,this.headerRuns)},this.currentSnippetType=0):_.ft(new _.ry("Tried to set snippet text when HTML element was null",O)):(this.plainSnippetText.textContent=Ws(O.content||"",x),this.currentSnippetType=2)}else{a:{e=FmL(O,x);if(e.runs){e=_.T(e.runs);for(var l=
e.next();!l.done;l=e.next())if(l=l.value,l.bold||l.deemphasize||l.italics||l.strikethrough||l.textColor||l.navigationEndpoint||_.q(l,cs)){e=!0;break a}}e=!1}e?this.formattedSnippetText?(this.formattedSnippetText.text=FmL(O,x),this.currentSnippetType=1):_.ft(new _.ry("Tried to set snippet text when HTML element was null",O)):(this.plainSnippetText.textContent=Ws(_.db(O),x),this.currentSnippetType=2)}};
_.b.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.b.attributedTextIsEmpty=function(){var O=this.text;if(!_.Hs(O))return!0;var x;return((x=O.content)==null?void 0:x.length)===0?!0:!1};
_.b.resize=function(O){if(this.snippetText){if(O===void 0?0:O)this.JSC$16568_lastWidth=NaN;var x=this.hostElement.offsetWidth;if(x!==this.JSC$16568_lastWidth&&!this.isExpanded)if(this.JSC$16568_lastWidth=x,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;O=0;var e,l;x=Math.min(x*this.maxLines/8*2,(l=(e=this.simpleText)==null?void 0:e.length)!=null?l:0)-1;for(e=0;O<=x;)l=Math.floor(O+(x-O)/2),this.setSnippetText(this.text,l),this.isOverflowing()?x=l-1:(O=l+1,e=l);this.setSnippetText(this.text,e);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.b.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.b.onExpandClick=function(){var O=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.t("inline_expander_reset_focus_killswitch")||_.A_(this,function(){var x;((x=_.GG().resolve(_.D0(_.qL)))==null?0:x.isKeyBoardInUse())&&_.QQ(O.hostElement)});
_.wr(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.b.onCollapseClick=function(){this.collapse();_.wr(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.b.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.b.computeExpandButtonOffset=function(){var O=this.expandSizer;return O?LpR?O.offsetParent?O.offsetParent.offsetWidth-O.offsetWidth-O.offsetLeft:0:O.offsetLeft:0};
_.Dy.Object.defineProperties(YH.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Hs(this.text)?this.text.content||"":_.db(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 _.Hs(this.text)?!0:this.text&&_.t("web_replace_formatted_with_attributed_string")&&MAs(this.text)?(this.text=_.Ps(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}}});
YH.prototype.onTextChanged=YH.prototype.onTextChanged;YH.prototype.updateMaskAndExpandButtonOffset=YH.prototype.updateMaskAndExpandButtonOffset;YH.prototype.updateSnippetContainerMaxHeight=YH.prototype.updateSnippetContainerMaxHeight;YH.prototype.isExpandedChanged=YH.prototype.isExpandedChanged;YH.prototype.updateTextOnSnippetTypeChange=YH.prototype.updateTextOnSnippetTypeChange;YH.prototype.updateIsFormattedExpanded=YH.prototype.updateIsFormattedExpanded;YH.prototype.updateIsAttributedExpanded=YH.prototype.updateIsAttributedExpanded;
YH.prototype.onClick=YH.prototype.onClick;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],YH.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],YH.prototype,"text",void 0);_.B([_.R(),_.v("design:type",Array)],YH.prototype,"headerRuns",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],YH.prototype,"engagementPanel",void 0);_.B([_.R(),_.v("design:type",Object)],YH.prototype,"maxLines",void 0);
_.B([_.R(),_.v("design:type",String)],YH.prototype,"expandLabel",void 0);_.B([_.R(),_.v("design:type",String)],YH.prototype,"collapseLabel",void 0);_.B([_.R(),_.v("design:type",Object)],YH.prototype,"expandCommand",void 0);_.B([_.R(),_.v("design:type",Object)],YH.prototype,"expandButtonOffset",void 0);_.B([_.p("text"),_.v("design:type",String),_.v("design:paramtypes",[])],YH.prototype,"simpleText",null);
_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],YH.prototype,"onClick",null);_.B([_.p("text","isExpanded"),_.v("design:type",Object),_.v("design:paramtypes",[])],YH.prototype,"expandedText",null);_.B([_.p("headerRuns","isExpanded"),_.v("design:type",Object),_.v("design:paramtypes",[])],YH.prototype,"expandedHeaderRuns",null);
_.B([_.p("text"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],YH.prototype,"hasAttributedStringText",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],YH.prototype,"showExpandButton",void 0);_.B([_.p("collapseLabel","isExpanded"),_.v("design:type",Object),_.v("design:paramtypes",[])],YH.prototype,"showCollapseButton",null);_.B([_.R(),_.v("design:type",Object)],YH.prototype,"isTruncated",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],YH.prototype,"isExpanded",void 0);_.B([_.R(),_.v("design:type",Boolean)],YH.prototype,"isAttributedExpanded",void 0);_.B([_.T1("isExpanded","hasAttributedStringText"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"updateIsAttributedExpanded",null);_.B([_.R(),_.v("design:type",Boolean)],YH.prototype,"isFormattedExpanded",void 0);
_.B([_.T1("isExpanded","hasAttributedStringText"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"updateIsFormattedExpanded",null);_.B([_.R(),_.v("design:type",Number)],YH.prototype,"currentSnippetType",void 0);_.B([_.p("currentSnippetType"),_.v("design:type",Object),_.v("design:paramtypes",[])],YH.prototype,"useAttributedSnippet",null);
_.B([_.p("currentSnippetType"),_.v("design:type",Object),_.v("design:paramtypes",[])],YH.prototype,"useFormattedSnippet",null);_.B([_.p("currentSnippetType"),_.v("design:type",Object),_.v("design:paramtypes",[])],YH.prototype,"usePlainSnippet",null);_.B([_.R(),_.v("design:type",Object)],YH.prototype,"alwaysShowExpandButton",void 0);_.B([_.T1("currentSnippetType"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"updateTextOnSnippetTypeChange",null);
_.B([_.R(),_.v("design:type",Object)],YH.prototype,"attributedSnippetText",void 0);_.B([_.kX("#snippet"),_.v("design:type",HTMLElement)],YH.prototype,"snippetContainer",void 0);_.B([_.kX("#snippet-text"),_.v("design:type",HTMLElement)],YH.prototype,"snippetText",void 0);_.B([_.kX("#plain-snippet-text"),_.v("design:type",HTMLElement)],YH.prototype,"plainSnippetText",void 0);_.B([_.kX("#formatted-snippet-text"),_.v("design:type",Object)],YH.prototype,"formattedSnippetText",void 0);
_.B([_.kX("#attributed-snippet-text"),_.v("design:type",Object)],YH.prototype,"attributedSnippetTextEl",void 0);_.B([_.kX("#expand"),_.v("design:type",HTMLElement)],YH.prototype,"expandButton",void 0);_.B([_.kX("#expand-sizer"),_.v("design:type",HTMLElement)],YH.prototype,"expandSizer",void 0);_.B([_.G1("isExpanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"isExpandedChanged",null);
_.B([_.T1("isExpanded","maxLines"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"updateSnippetContainerMaxHeight",null);_.B([_.T1("isTruncated","showExpandButton","expandButtonOffset"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"updateMaskAndExpandButtonOffset",null);
_.B([_.G1("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YH.prototype,"onTextChanged",null);_.B([_.H({is:"ytd-text-inline-expander",disableElementRegistration:!0})],YH);
_.n(YH,"ytd-text-inline-expander",function(){if(TuD===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);TuD=O}O=TuD;return O},{mode:2});var B0=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return O};
_.c(B0,_.a);B0.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
B0.prototype.handleUpdateDescriptionAction=function(O){if(O=_.q(O,_.qqd))if(O.attributedDescription)this.set("data.attributedDescriptionBodyText",O.attributedDescription);else if(O.description){var x;((x=this.data)==null?0:x.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Ps(O.description)):this.set("data.descriptionBodyText",O.description)}};
_.Dy.Object.defineProperties(B0.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.attributedDescriptionBodyText)||!((x=this.data)==null||!x.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.collapsedLineCount){var x;return(x=this.data)==null?void 0:x.collapsedLineCount}O=_.yF("web_watch_description_collapsed_default_lines",12);if(_.t("ww_desc_line_page_size_ks"))return O;x=Math.round(_.L3().height*_.yF("web_watch_description_screen_height_percentage",.5)/20);return Math.max(x,O)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return(e=(O=this.data)==null?void 0:O.descriptionBodyText)!=null?e:(x=this.data)==null?void 0:x.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.sourceAttributions}}});
B0.prototype.panelContentVisibleChanged=B0.prototype.panelContentVisibleChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],B0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],B0.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],B0.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Boolean)],B0.prototype,"panelContentVisible",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B0.prototype,"engagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B0.prototype,"shortsPanel",void 0);_.B([_.kX("#inline-expander"),_.v("design:type",Object)],B0.prototype,"inlineExpander",void 0);
_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B0.prototype,"panelContentVisibleChanged",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],B0.prototype,"hasDescriptionText",null);_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],B0.prototype,"collapsedLines",null);
_.B([_.p("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.v("design:type",Object),_.v("design:paramtypes",[])],B0.prototype,"descriptionText",null);_.B([_.p("data","data.headerRuns"),_.v("design:type",Object),_.v("design:paramtypes",[])],B0.prototype,"headerRuns",null);_.B([_.p("data","data.sourceAttributions"),_.v("design:type",Object),_.v("design:paramtypes",[])],B0.prototype,"sourceAttributions",null);
_.B([_.H({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],B0);
_.n(B0,"ytd-expandable-video-description-body-renderer",function(){if(ba3!==void 0)return ba3;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ba3=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var kqL;var ApR=_.K(function(O){var x=O.data;return _.D("factoid-renderer",{class:"ytwFactoidRendererHost"},_.D("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return x().accessibilityText}},_.D("span",{class:"ytwFactoidRendererValue"},_.D(_.TT,{text:function(){return x().value}})),_.D("span",{class:"ytwFactoidRendererLabel"},_.D(_.TT,{text:function(){return x().label}}))))},"bd");_.wP(ApR,"factoid-renderer",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;return _.D("upload-time-factoid-renderer",null,_.D(_.MR,{data:function(){return x().factoid}},{factoidRenderer:ApR}))},"cd"),"upload-time-factoid-renderer",{props:{data:_.vs}});_.wP(_.K(function(O){var x=O.data;return _.D("view-count-factoid-renderer",null,_.D(_.MR,{data:function(){return x().factoid}},{factoidRenderer:ApR}))},"dd"),"view-count-factoid-renderer",{props:{data:_.vs}});var v0=function(){var O=_.a.apply(this,arguments)||this;O.shortsPanel=!1;O.engagementPanel=!1;O.watchWhileSdp=_.t("shorts_desktop_watch_while_sdp");return O};
_.c(v0,_.a);v0.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"}}}}};
_.Dy.Object.defineProperties(v0.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var O;return(O=this.data)==null?void 0:O.channel}}});
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],v0.prototype,"componentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],v0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],v0.prototype,"shortsPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],v0.prototype,"engagementPanel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],v0.prototype,"watchWhileSdp",void 0);_.B([_.p("shortsPanel","engagementPanel","data.channel"),_.v("design:type",Object),_.v("design:paramtypes",[])],v0.prototype,"showChannelInfo",null);_.B([_.H({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],v0);
_.n(v0,"ytd-video-description-header-renderer",function(){if(kqL!==void 0)return kqL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kqL=O},{mode:1});var M43;var fi=function(){return _.a.apply(this,arguments)||this};
_.c(fi,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],fi.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],fi.prototype,"noPadding",void 0);_.B([_.R(),_.v("design:type",Object)],fi.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],fi);
_.n(fi,"ytd-list-item-view-model",function(){if(M43!==void 0)return M43;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return M43=O},{mode:1});var DJT;var GqL;var Fp4;var Xz4;var JQ=function(){var O=_.a.apply(this,arguments)||this;O.adaptiveFullWidth=!1;O.modernButtons=_.t("web_modern_buttons");O.buttonOverrides={style:"call-to-action",type:"filled"};O.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return O};
_.c(JQ,_.a);JQ.prototype.handleSetTimestamp_=function(O){this.data&&this.data.shortUrl&&(_.$U(this.hostElement).querySelector("#share-url").value=O.isSet?_.dp(this.data.shortUrl,"t",O.timestamp):this.data.shortUrl)};
JQ.prototype.handleSignalActionCopyShareUrl_=function(O,x){(_.t("killswitch_copy_link_target_check")||_.$U(this.hostElement).querySelector("#copy-button")===x)&&this.copyUrlToClipboard()};
JQ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.$U(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
JQ.prototype.computeStyle_=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],JQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JQ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.v("design:type",String)],JQ.prototype,"rendererStyle",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],JQ.prototype,"adaptiveFullWidth",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],JQ.prototype,"modernButtons",void 0);_.B([_.R(),_.v("design:type",Object)],JQ.prototype,"buttonOverrides",void 0);_.B([_.Va({is:"yt-copy-link-renderer",disableElementRegistration:!0})],JQ);
_.n(JQ,"yt-copy-link-renderer",function(){if(Xz4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Fp4===void 0&&(Fp4=document.createElement("template"));var l=Fp4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Xz4=O}O=Xz4;return O},{mode:2});_.tI("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var wE=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return O};
_.c(wE,_.a);_.b=wE.prototype;_.b.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.b.attached=function(){this.keyboardFocused=!1};
_.b.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var O=_.GG().resolve(_.D0(_.qL));O&&(this.keyboardFocused=O.isKeyBoardInUse())}};
_.b.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.b.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}};
_.b.onChange_=function(){if(this.data){var O=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;O&&this.ytComponentBehavior.resolveCommand(O);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.b.handleUpdateToggleAction_=function(O){(O=_.q(O,nh$))&&this.data&&O.targetId==this.data.targetId&&this.set("data.toggled",O.toggled)};
_.b.toBoolean_=function(O){return!!O};
_.b.reset=function(){};
_.b.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("data-changed",this.data))};
_.b.updateDataToggledFromBinding=function(O){this.set("data.toggled",O.detail.value)};
wE.prototype.dataChangedForBinding=wE.prototype.dataChangedForBinding;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],wE.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],wE.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],wE.prototype,"data",void 0);_.B([_.R({computed:"computeDescription_(data.*)"}),_.v("design:type",Object)],wE.prototype,"description_",void 0);_.B([_.R({value:function(){return!!_.GG().resolve(_.D0(_.qL))&&_.t("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.v("design:type",Boolean)],wE.prototype,"useKeyboardFocused",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],wE.prototype,"keyboardFocused",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],wE.prototype,"dataChangedForBinding",null);_.B([_.Va({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],wE);
_.n(wE,"yt-toggle-form-field-renderer",function(){if(GqL===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;DJT===void 0&&(DJT=document.createElement("template"));var l=DJT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);GqL=O}O=GqL;return O},{mode:2});var oFd;var ypp;var Sz=function(){var O=_.a.apply(this,arguments)||this;O.isDarkTheme=!1;O.isSearch=!1;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.noTopMargin=_.t("kevlar_watch_no_top_margin");O.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 O};
_.c(Sz,_.a);_.b=Sz.prototype;_.b.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}}}}}};
_.b.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.b.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.b.dataChanged=function(){var O=this.getSelectedIndex();if(O>0)this.selected=O;else{this.selected=0;var x,e;(x=this.ytScrollableChipCloudBehavior)==null||(e=x.reset)==null||e.call(x)}};
_.b.getSelectedIndex=function(){var O;if((O=this.data)==null||!O.chips)return-1;O=-1;for(var x,e=0;e<((x=this.data)==null?void 0:x.chips.length);e++){var l=void 0,C=void 0;if((l=this.data)==null?0:(C=l.chips[e].chipCloudChipRenderer)==null?0:C.isSelected){O=e;break}}return O};
_.b.onResize=function(){var O=this.ytScrollableChipCloudBehavior;_.A_(O,O.setContainerWidthDiff);O=this.ytScrollableChipCloudBehavior;_.A_(O,O.setButtonsState)};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.handleRelatedChipCommand=function(O,x){O=this.JSC$16595_chipsSelector.indexOf(x);O!==-1&&this.JSC$16595_chipsSelector.selectIndex(O)};
_.b.handleChipCloudChipSelectAction=function(O){O=this.JSC$16595_chipsSelector.indexOf(O);O>-1&&this.JSC$16595_chipsSelector.selectIndex(O)};
_.b.handleChipCloudChipDeselectAction=function(){var O=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16595_chipsSelector&&((O==null?0:O.continuationCommand)?_.N9(this.hostElement,[O]):(O==null?0:O.searchEndpoint)?this.ytComponentBehavior.resolveCommand(O):O&&_.gr(this.hostElement,[O],this.hostElement),this.JSC$16595_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.b.updateSelectedFromBinding=function(O){this.selected=O.detail.value};
Sz.prototype.onResize=Sz.prototype.onResize;Sz.prototype.dataChanged=Sz.prototype.dataChanged;Sz.prototype.isSearchChanged=Sz.prototype.isSearchChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Sz.prototype,"actionHandlerBehavior",void 0);
_.B([_.V(_.Wg),_.v("design:type",Object)],Sz.prototype,"ironResizableBehavior",void 0);_.B([_.V(),_.v("design:type",aM)],Sz.prototype,"ytScrollableChipCloudBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Sz.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Sz.prototype,"data",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Sz.prototype,"selected",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Sz.prototype,"isDarkTheme",void 0);_.B([_.R({value:160}),_.v("design:type",Number)],Sz.prototype,"scrollDistance",void 0);_.B([_.R(),_.v("design:type",Object)],Sz.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Sz.prototype,"darkerDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Sz.prototype,"noTopMargin",void 0);
_.B([_.kX("#chips"),_.v("design:type",Object)],Sz.prototype,"JSC$16595_chipsSelector",void 0);_.B([_.T1("isSearch"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Sz.prototype,"isSearchChanged",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Sz.prototype,"dataChanged",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Sz.prototype,"onResize",null);
_.B([_.Va({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Sz);
_.n(Sz,"yt-chip-cloud-renderer",function(){if(ypp===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;oFd===void 0&&(oFd=document.createElement("template"));var l=oFd;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ypp=O}O=ypp;return O},{mode:2});var ZaN,EFp=function(){return ZaN!==void 0?ZaN:ZaN=document.createElement("template")};
document.head.appendChild(EFp().content);var t4L;var qHD=document.head,Pj$=qHD.appendChild,cp2;if(t4L===void 0){var IHJ=document.createElement("template");_.I(IHJ,"");IHJ.content.insertBefore(EFp().content.cloneNode(!0),IHJ.content.firstChild);t4L=IHJ}cp2=t4L;Pj$.call(qHD,cp2.content);var V4k=_.K(function(O){var x=O.data;return _.D("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.D("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.D("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.D(_.F,{cond:function(){return _.U9(x().image)},
then:function(e){return _.D("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.D(_.n_,{data:e,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.D("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.D(_.TT,{text:function(){return x().subtitle}})))),_.D(_.F,{cond:function(){var e;
return(e=x())==null?void 0:e.hasBottomDivider},
then:function(){return _.D("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ed");var pz4=_.K(function(O){var x=O.data;return _.D("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.D("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.D(_.MR,{data:function(){var e;return(e=x().offerPlanDetailsItem)!=null?e:[]}},{offerPlanDetailsItemViewModel:function(e){return _.D("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.D(V4k,{data:e.data}))}})),_.D("div",null,_.D(_.F,{cond:function(){return x().hasBottomDivider},
then:function(){return _.D("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.D("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.D("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.D("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.D("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fd");var Rfz=_.K(function(O){var x=O.data;O=_.T(_.Iw(!1,void 0,"MrXxy"));var e=O.next().value,l=O.next().value,C=_.lk(function(){l(!e());return!1}),Q=function(){var L;
return(L=x().offerPlanDetailsContainer)!=null?L:[]};
return _.D("lp-complex-offer-card-details-view-model",null,_.D("div",null,_.D(_.F,{cond:function(){return e()},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.D("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":C,"aria-expanded":e},_.D(_.TT,{text:function(){return x().expandedTitle}})),_.D("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.D(_.MR,{data:Q},{offerPlanDetailsContainerViewModel:function(L){return _.D("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.D(pz4,{data:L.data}))}})),_.D("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.D(_.TT,{text:function(){return x().legalText}})))},
else:function(){return _.D("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":C,"aria-expanded":e},_.D(_.TT,{text:function(){return x().collapsedTitle}}),_.D("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.D(_.L7,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gd");var UJk=_.K(function(O){var x=O.data;return _.D("lp-complex-offer-card-option-view-model",null,_.D("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.D(_.F,{cond:function(){return x().topDividerText},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.D("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.D(_.TT,{text:function(){return x().topDividerText}}))))}}),_.D(_.F,{cond:function(){return x().description},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.D(_.TT,{text:function(){return x().description}}))}}),_.D(_.F,{cond:function(){return x().planPricingPrimary},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.D(_.TT,{text:function(){return x().planPricingPrimary}}))}}),_.D(_.F,{cond:function(){return x().planPricingSecondary},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.D(_.TT,{text:function(){return x().planPricingSecondary}}))}}),_.D(_.F,{cond:function(){return x().primaryButton},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.D(_.MR,{data:function(){return x().primaryButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hd");var aH$=_.K(function(O){var x=O.data;var e=function(){var Q;return((Q=x())==null?void 0:Q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
O={};var l={},C={};return _.D("ytm-lp-complex-offer-card-view-model",null,_.D("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.D("div",{class:_.xz((O.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=e,O),"ytmLpComplexOfferCardViewModelCardContainer")},_.D(_.F,{cond:function(){var Q;return(Q=x())==null?void 0:Q.bannerText},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.D("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.D(_.TT,{text:function(){return x().bannerText}})))}}),_.D(_.F,{cond:function(){return _.U9(x().logo)},
then:function(Q){var L={};return _.D("div",{class:_.xz((L.ytmLpComplexOfferCardViewModelLogoAlignLeft=e,L),"ytmLpComplexOfferCardViewModelLogo")},_.D(_.n_,{data:Q,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.D("div",{class:_.xz((l.ytmLpComplexOfferCardViewModelTitleAlignLeft=e,l),"ytmLpComplexOfferCardViewModelTitle")},_.D(_.TT,{text:function(){return x().title}})),_.D(_.F,{cond:function(){var Q;
return(Q=x())==null?void 0:Q.subtitle},
then:function(){var Q={};return _.D("div",{class:_.xz((Q.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=e,Q),"ytmLpComplexOfferCardViewModelSubtitle")},_.D(_.TT,{text:function(){return x().subtitle}}))}}),_.D(_.F,{cond:function(){return x().planPricingPrimary},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.D(_.TT,{text:function(){return x().planPricingPrimary}}))}}),_.D(_.F,{cond:function(){return x().planPricingSecondary},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.D(_.TT,{text:function(){return x().planPricingSecondary}}))}}),_.D(_.F,{cond:function(){return x().purchaseButton},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.D(_.MR,{data:function(){return x().purchaseButton}},{buttonViewModel:function(Q){return _.D(_.RV,{data:Q.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.D(_.F,{cond:function(){var Q;
return(Q=x())==null?void 0:Q.offerOptions},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.D(_.MR,{data:function(){return x().offerOptions}},{lpComplexOfferCardOptionViewModel:UJk}))}}),_.D("div",{class:_.xz((C.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=e,C),"ytmLpComplexOfferCardViewModelLegalText")},_.D(_.TT,{text:function(){return x().legalText}})),_.D(_.F,{cond:function(){var Q;
return(Q=x())==null?void 0:Q.offerCardDetails},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.D(_.MR,{data:function(){return x().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Rfz}))}}))))},"id");var mJp=_.K(function(O){var x=O.data;var e=function(){var L;return((L=x())==null?void 0:L.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
O={};var l={},C={},Q={};return _.D("ytm-lp-complex-offer-card-section-view-model",null,_.D("div",{class:_.xz("ytmLpComplexOfferCardSectionViewModelHost")},_.D("div",{class:_.xz((O.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=e,O),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.D("div",{class:_.xz((l.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=e,l),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.D("h2",{class:_.xz((C.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
e,C),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.D(_.TT,{text:function(){return x().title}}))),_.D(_.F,{cond:function(){var L;
return(L=x())==null?void 0:L.subtitle},
then:function(){var L={},k={};return _.D("div",{class:_.xz((L.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=e,L),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.D("div",{class:_.xz((k.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=e,k),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.D(_.TT,{text:function(){return x().subtitle}})))}}),_.D("div",{class:_.xz((Q.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=e,Q),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.D(_.MR,{data:function(){var L;
return(L=x().offerPlans)!=null?L:[]}},{lpComplexOfferCardViewModel:function(L){return _.D("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.D(aH$,{data:L.data}))}})))))},"jd");var sIL=_.K(function(O){return _.D("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.D("div",{class:"ytLpCouponBannerViewModelIcon"},_.D(_.L7,{icon:function(){return"price_tag"}})),_.D("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.D("div",{class:"ytLpCouponBannerViewModelContent"},_.D("div",{class:"ytLpCouponBannerViewModelHeading"},_.D(_.TT,{text:function(){var x;
return(x=O.data())==null?void 0:x.title}})),_.D("div",{class:"ytLpCouponBannerViewModelBody"},_.D(_.TT,{text:function(){var x;
return(x=O.data())==null?void 0:x.subtitle}})))))},"kd");
sIL.idomCompat=!0;_.jz=LNz.getInstance();var WpF;WpF=_.K(function(O){return _.D("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":O.shouldAriaHideContent},_.D("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:O.questionId},_.D(_.TT,{text:O.question})))},"ld");
_.hfz=_.K(function(O){var x=O.data;var e=O.themeOverride;O=_.T(_.Iw(!1,void 0,"pNli2b"));var l=O.next().value,C=O.next().value;O=_.lk(function(){C(!l());return!1});
var Q=function(){return l()?"EXPAND_LESS":"EXPAND_MORE"},L=("faq-container"+_.sS(_.jz)).toString(),k="faq-question-and-answers-section-question"+_.sS(_.jz),M={},G={};
return _.D("faq-entry-view-model",null,_.D("div",{class:_.xz("ytLpFaqEntryViewModelHost",(M.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return e==null?void 0:e().useDarkTheme},M))},_.D("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":O,role:"button","aria-expanded":l,"aria-labelledby":k.toString(),"tab-index":"0"},_.D(WpF,{question:function(){return x().question},
questionId:k,shouldAriaHideContent:!0}),_.D(_.F,{cond:function(){return l()!==void 0},
then:function(){return _.D("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.D(_.L7,{icon:Q,ariaHidden:!0}),_.D("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.D("div",{class:_.xz("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(G.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!l()},G))},_.D("div",{id:L},_.D(_.HE,{each:function(){return x().answers||[]}},function(X){return _.D("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.D(_.TT,
{text:X}))})))))},"md");
_.hfz.idomCompat=!0;var zfJ=_.K(function(O){var x=O.data;var e=O.themeOverride;O={};return _.D("lp-faq-section-view-model",null,_.D("div",{class:_.xz("yt-lp-faq-section-view-model",(O["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},O["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(e==null||!e().useDarkTheme)},O))},_.D("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.D(_.F,{cond:function(){return x().header},
then:function(l){return _.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.D(_.TT,{text:l}))}}),_.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.D(_.MR,{data:function(){return x().faqs}},{faqEntryViewModel:function(l){return _.D(_.hfz,{data:l.data,
themeOverride:e})}})),_.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.D(_.HE,{each:function(){return x().footers||[]}},function(l){return _.D(_.TT,{text:l})})),_.D(_.F,{cond:function(){return x().legal},
then:function(l){return _.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.D(_.TT,{text:l}))}}))))},"nd");
zfJ.idomCompat=!0;var rp2=_.K(function(O){var x=O.data;var e=O.themeOverride;_.YK(function(){var L=x().gtmId;L&&_.Yq(L,_.wz("GL",""))});
var l={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var L,k,M;return(M=(L=x().logo)==null?void 0:(k=L.accessibilityData)==null?void 0:k.label)!=null?M:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},C=_.GG().resolve(_.D0(_.rP)),Q=function(){return C&&C()||(e==null?void 0:e().useDarkTheme)};
return _.D("lp-header-section-view-model",null,_.D("div",{class:function(){var L=x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",k=x().marginType==="LP_SECTION_MARGIN_TYPE_TOP",M=e==null?void 0:e().useDarkTheme,G=["lp-header-section-view-model"];L&&G.push("lp-header-section-view-model--ptc-layout-type");k&&G.push("lp-header-section-view-model__lp-header-section-margin");M&&G.push("lp-header-section-view-model--premium-force-dark-mode");return G.join(" ")}},_.D(_.F,{cond:function(){return x().logo},
then:function(){return _.D("div",null,_.D(_.F,{cond:Q,then:function(){return _.D(_.F,{cond:function(){var L;return(L=x().logo)==null?void 0:L.imageDark},
then:function(L){return _.D(_.n_,Object.assign({},{data:L},l))}})},
else:function(){return _.D(_.F,{cond:function(){var L;return(L=x().logo)==null?void 0:L.imageLight},
then:function(L){return _.D(_.n_,Object.assign({},{data:L},l))}})}}))}}),_.D(_.F,{cond:function(){return x().title},
then:function(L){return _.D("div",{class:"lp-header-section-view-model__lp-header-title"},_.D(_.TT,{text:L}))}}),_.D("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.D(_.F,{cond:function(){return x().subtitles},
then:function(L){return _.D(_.HE,{each:L},function(k){return _.D("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.D(_.TT,{text:k}))})}})),_.D(_.F,{cond:function(){return x().additionalInfo},
then:function(L){return _.D("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.D(_.TT,{text:L}))}}),_.D("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.D(_.F,{cond:function(){return x().primaryButton},
then:function(L){return _.D("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.D(_.MR,{data:L},{buttonViewModel:_.RV}))}}),_.D(_.F,{cond:function(){return x().secondaryButton},
then:function(L){return _.D("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.D(_.MR,{data:L},{buttonViewModel:_.RV}))}})),_.D(_.F,{cond:function(){return x().otherOffersInfo},
then:function(L){return _.D("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.D(_.TT,{text:L}))}}),_.D("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.D(_.F,{cond:function(){return x().billingInfo},
then:function(L){return _.D(_.HE,{each:L},function(k){return _.D("div",null,_.D(_.TT,{text:k}))})}}))))},"od");
rp2.idomCompat=!0;var HaF=_.K(function(O){var x=O.data;var e=_.uH(O.themeOverride,{useDarkTheme:!1});O={};O=_.xz("ytmLpHeadlineSectionViewModelHost",(O.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return e().useDarkTheme},O));
return _.D("lp-headline-section-view-model",null,_.D("div",{class:O},_.D(_.F,{cond:function(){return x().title},
then:function(l){return _.D("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.D(_.TT,{text:l}))}}),_.D(_.F,{cond:function(){return x().subtitle},
then:function(l){return _.D("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.D(_.TT,{text:l}))}})))},"pd");var KpJ=_.K(function(O){var x=O.data;var e=O.themeOverride;var l=_.GG().resolve(_.D0(_.rP)),C=function(){return l&&l()||(e==null?void 0:e().useDarkTheme)},Q=function(){var G,X;
var y=C()?(G=x().textBackgroundImage)==null?void 0:G.imageDark:(X=x().textBackgroundImage)==null?void 0:X.imageLight;return LIm((y==null?void 0:y.sources)||[])},L=function(){var G,X;
return C()?(G=x().featureImage)==null?void 0:G.imageDark:(X=x().featureImage)==null?void 0:X.imageLight},k=function(){return x().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},M=function(){var G,X;
return C()?(G=x().logo)==null?void 0:G.imageDark:(X=x().logo)==null?void 0:X.imageLight};
return _.D("ytm-lp-large-feature-section-view-model",null,_.D("div",{class:function(){var G=x().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",X=x().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",y=(x().index||0)%2===1,Z=e==null?void 0:e().useDarkTheme,E=["yt-lp-large-feature-section-view-model"];G?E.push("yt-lp-large-feature-section-view-model--music-feature-type"):X?E.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):y||E.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Z&&E.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return E.join(" ")}},_.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.D(_.F,{cond:L,
then:function(){return _.D(_.n_,{data:function(){return L()},
alt:function(){var G,X,y;return(y=(G=x().featureImage)==null?void 0:(X=G.accessibilityData)==null?void 0:X.label)!=null?y:""},
contentMode:k})}})),_.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var G;return((G=Q())==null?0:G.url)?"background-image: url("+_.Yy(Q().url)+");":""}},_.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.D(_.F,{cond:M,
then:function(){return _.D(_.n_,{data:function(){return M()},
alt:function(){var G,X,y;return(y=(G=x().logo)==null?void 0:(X=G.accessibilityData)==null?void 0:X.label)!=null?y:""},
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"})}}),_.D(_.F,{cond:function(){return x().eyebrowText},
then:function(){return _.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.D(_.TT,{text:function(){return x().eyebrowText}}))}}),_.D(_.F,{cond:function(){return x().title},
then:function(){return _.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.D(_.TT,{text:function(){return x().title}}))}}),_.D(_.F,{cond:function(){return x().subtitles},
then:function(){return _.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.D(_.HE,{each:function(){return x().subtitles||[]}},function(G){return _.D(_.TT,{text:G})}))}})))))},"qd");
KpJ.idomCompat=!0;var dJ$=_.K(function(O){return _.D("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.D("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.D(_.L7,{icon:function(){var x;return(x=O.data())==null?void 0:x.iconType},
className:function(){var x;switch((x=O.data())==null?void 0:x.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 x;return((x=O.data())==null?void 0:x.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.D("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.D(_.TT,{text:function(){var x;
return(x=O.data())==null?void 0:x.text},
className:function(){var x;return((x=O.data())==null?void 0:x.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"rd");var nF3=_.K(function(O){O=_.YX(O,{config:void 0,themeOverride:void 0});var x=O.data,e=O.config,l=O.themeOverride;O={};O=_.xz("ytmLpOfferCardOptionViewModelHost",(O.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var k;return(k=l())==null?void 0:k.useDarkTheme},O));
var C=_.lk(function(){var k,M;(k=e())==null||(M=k.handleRadioButtonClick)==null||M.call(k,x());return!1}),Q=function(){var k;
return(k=e())==null?void 0:k.shouldDisplayRadioButton},L=function(){var k;
return(k=x().featureListItems)!=null?k:[]};
return _.D("ytm-lp-offer-card-option-view-model",null,_.D("div",{class:O,"on:click":_.lk(function(){if(Q()){var k,M;(k=e())==null||(M=k.handleRadioButtonClick)==null||M.call(k,x())}return!1})},_.D(_.F,{cond:Q,
then:function(){return _.D("div",null,_.D("input",{type:"radio","on:click":C,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var k;return!((k=e())==null||!k.isOptionSelected)}}))}}),_.D("div",null,_.D("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.D(_.TT,{text:function(){return x().eyebrowText}})),_.D("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.D(_.TT,
{text:function(){return x().subtitle}})),_.D(_.F,{cond:function(){return L().length>0},
then:function(){return _.D("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.D(_.MR,{data:L},{lpFeatureListItemViewModel:dJ$}))}}),_.D("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.D(_.TT,{text:function(){return x().description}})))))},"sd");
nF3.idomCompat=!0;var u72=_.K(function(O){var x=O.data;var e=O.themeOverride;O=_.T(_.bk(function(){var Q,L=(Q=x().offerOptions)==null?void 0:Q[0];return _.q(L,sVd)||{}}));
var l=O.next().value,C=O.next().value;O={};return _.D("ytm-lp-offer-card-view-model",null,_.D("div",{class:_.xz("ytmLpOfferCardViewModelHost",(O.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(e==null||!e().useDarkTheme)},O))},_.D("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.D(_.F,{cond:function(){return x().titleIconType},
then:function(){return _.D("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.D(_.L7,{icon:function(){var Q;return((Q=x().titleIconType)==null?void 0:Q.toString())||""}}))}}),_.D("div",{class:"ytmLpOfferCardViewModelTitleText"},_.D(_.TT,{text:function(){return x().title}})),_.D(_.MR,{data:function(){return x().titleBadge}},{badgeViewModel:function(Q){return _.D("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.D(_.tX,{data:Q.data}))}})),_.D("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.D(_.MR,{data:function(){return x().offerOptions}},{lpOfferCardOptionViewModel:function(Q){var L=Q.data;
return _.D(_.Xm,null,_.D("div",{class:"ytmLpOfferCardViewModelDivider"}),_.D(nF3,{data:L,config:function(){var k;return{shouldDisplayRadioButton:(x().offerOptions||[]).length>1,isOptionSelected:L().id===((k=l())==null?void 0:k.id),handleRadioButtonClick:function(M){return void C(M)}}},
themeOverride:e}))}})),_.D("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.D(_.MR,{data:function(){var Q;
return(Q=l())==null?void 0:Q.purchaseButtonOverride}},{buttonViewModel:_.RV}))))},"td");
u72.idomCompat=!0;var YHk=_.K(function(O){var x=O.data;var e=O.themeOverride;O={};O=_.xz("ytmLpOfferCardSectionViewModelHost",(O.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var l;return e==null?void 0:(l=e())==null?void 0:l.useDarkTheme},O));
return _.D("ytm-lp-offer-card-section-view-model",null,_.D("div",{class:O},_.D(_.F,{cond:function(){return x().title!==void 0},
then:function(){return _.D("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.D("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.D(_.TT,{text:function(){return x().title}})),_.D(_.F,{cond:function(){return x().subtitle},
then:function(){return _.D("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.D(_.TT,{text:function(){return x().subtitle}}))}}))}}),_.D("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.D(_.MR,{data:function(){return x().offerCards}},{lpOfferCardViewModel:function(l){return _.D("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.D(u72,{data:l.data,
themeOverride:e}))}})),_.D(_.F,{cond:function(){return x().footer},
then:function(){return _.D("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.D(_.TT,{text:function(){return x().footer}}))}})))},"ud");var BuR=_.K(function(O){var x=O.data;return _.D("lp-offer-table-cell-content-view-model",null,_.D("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.D(_.KO,null,_.D(_.zn,{when:function(){return x().title}},function(){return _.D(_.TT,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return x().title}})}),_.D(_.zn,{when:function(){return x().subTitle}},function(){return _.D(_.TT,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return x().subTitle}})}),_.D(_.zn,{when:function(){return x().featureDescription}},function(){return _.D(_.TT,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return x().featureDescription}})}),_.D(_.zn,{when:function(){return x().description}},function(){return _.D(_.TT,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return x().description}})}),_.D(_.zn,{when:function(){return x().iconType}},function(){return _.D("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.D(_.L7,{icon:function(){return x().iconType.toString()}}))}),_.D(_.zn,{when:function(){return x().purchaseButton}},function(){return _.D(_.MR,{data:function(){return x().purchaseButton}},{buttonViewModel:function(e){return _.D("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.D(_.RV,
{data:e.data}))}})}),_.D(_.zn,{when:function(){return x().note}},function(){return _.D(_.TT,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return x().note}})}),_.D(_.zn,{when:function(){return x().featureDetail}},function(){return _.D(_.TT,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return x().featureDetail}})}),_.D(_.zn,{when:function(){return x().badge}},function(){return _.D(_.MR,{data:function(){return x().badge}},{badgeViewModel:_.tX})}))))},"vd");
BuR.idomCompat=!0;var vFL=_.K(function(O){var x=O.data;return _.D("lp-offer-table-cell-view-model",null,_.D("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(x().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;"}}},_.D(_.MR,{data:function(){return x().contents}},{lpOfferTableCellContentViewModel:BuR})))},
"wd");
vFL.idomCompat=!0;var fHp=_.K(function(O){var x=O.data;var e=O.lpTableIsFirstRow;var l=O.lpTableIsLastRow;var C=function(){return(e==null?0:e())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},Q=function(){return(e==null?0:e())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(l==null?0:l())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.D("ytm-lp-offer-table-row-view-model",null,_.D("div",{class:"ytLpOfferTableRowViewModelHost"},_.D(_.MR,{data:function(){return x().rowHeaderCell}},{lpOfferTableCellViewModel:function(L){return _.D("div",{class:C},_.D(vFL,{data:L.data}))}}),_.D(_.MR,{data:function(){return x().contentCells}},{lpOfferTableCellViewModel:function(L){return _.D("div",{class:Q},_.D(vFL,{data:L.data}))}})))},"xd");
fHp.idomCompat=!0;var Jp$=_.K(function(O){var x=O.data;var e=O.themeOverride;var l=_.GG().resolve(_.D0(_.rP)),C=function(){return _.q(x().logo,iz3)||{}};
O={};return _.D("ytm-lp-offer-table-section-view-model",null,_.D("div",{class:"ytLpOfferTableViewModelHost"},_.D(_.F,{cond:function(){var Q,L;return l&&l()||(e==null?0:e().useDarkTheme)?(Q=C())==null?void 0:Q.imageDark:(L=C())==null?void 0:L.imageLight},
then:function(Q){return _.D(_.n_,{data:Q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var L,k,M;return(M=(L=C())==null?void 0:(k=L.accessibilityData)==null?void 0:k.label)!=null?M:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.D(_.TT,{text:function(){return x().subtitle}})),_.D(_.F,{cond:function(){return x().disclaimers},
then:function(Q){return _.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.D(_.HE,{each:Q},function(L){return _.D("div",null,_.D(_.TT,{text:L}))}))}}),_.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.D(_.MR,{data:function(){return x().rows}},{lpOfferTableRowViewModel:function(Q,L){return _.D(fHp,{data:Q.data,
lpTableIsFirstRow:function(){return L()===0},
lpTableIsLastRow:function(){return L()===x().rows.length-1}})}})),_.D("div",{class:_.xz((O.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return x().hasFooterBackground},O))},_.D(_.F,{cond:function(){return x().footer},
then:function(){return _.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.D(_.TT,{text:function(){return x().footer}}))}}),_.D(_.F,{cond:function(){return x().footerTitle},
then:function(){return _.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.D(_.TT,{text:function(){return x().footerTitle}}))}}),_.D(_.F,{cond:function(){return x().footerDescription},
then:function(){return _.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.D(_.TT,{text:function(){return x().footerDescription}}))}}),_.D(_.F,{cond:function(){return x().footerDescriptions},
then:function(Q){return _.D("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.D(_.HE,{each:Q},function(L){return _.D("div",null,_.D(_.TT,{text:L}))}))}}))))},"yd");
Jp$.idomCompat=!0;var wzN=_.K(function(O){var x=O.data;var e=O.themeOverride;var l=_.GG().resolve(_.D0(_.rP)),C=function(){var k;return e==null?void 0:(k=e())==null?void 0:k.useDarkTheme},Q=function(){var k,M;
return l&&l()||C()?(k=x().image)==null?void 0:k.imageDark:(M=x().image)==null?void 0:M.imageLight};
O={};O=_.xz("ytmLpSmallFeatureSectionViewModelHost",(O.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=C,O));var L=function(){var k,M,G;return(G=(k=x().image)==null?void 0:(M=k.accessibilityData)==null?void 0:M.label)!=null?G:""};
return _.D("ytm-lp-small-feature-section-view-model",{class:O},_.D(_.F,{cond:function(){return Q()&&!QZr},
then:function(){return _.D("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.D(_.n_,{data:function(){return Q()},
alt:L,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.D("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.D("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.D(_.F,{cond:function(){return x().title},
then:function(k){return _.D(_.TT,{text:k})}})),_.D("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.D(_.TT,{text:function(){return x().description}}))))},"zd");
wzN.idomCompat=!0;var SHk=_.K(function(O){var x=O.data;var e=O.themeOverride;O={};return _.D("ytm-lp-small-feature-section-group-view-model",null,_.D("div",{class:_.xz("ytmLpSmallFeatureSectionGroupViewModelHost",(O.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(e==null||!e().useDarkTheme)},O))},_.D("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.D(_.MR,{data:function(){return x().smallFeatures}},{lpSmallFeatureSectionViewModel:function(l){return _.D("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.D(wzN,{data:l.data,
themeOverride:e}))}}))))},"Ad");
SHk.idomCompat=!0;_.wP(_.K(function(O){var x=O.data;var e=function(){return x().forcedTheme==="USER_INTERFACE_THEME_DARK"},l=function(){return x().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},C=function(){var L="",k,M;
var G=_.GG().resolve(_.D0(_.rP));G=e()||(G==null?0:G())?(k=x().themedImageViewModel)==null?void 0:k.imageDark:(M=x().themedImageViewModel)==null?void 0:M.imageLight;(k=LIm((G==null?void 0:G.sources)||[]))&&k.url&&(L=l()?"background-image: linear-gradient(to bottom, transparent, "+(x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Yy(k.url)+");":"background-image: url("+_.Yy(k.url)+");");return L},Q=function(){return{useDarkTheme:e()}};
O={};return _.D("yt-section-group-view-model",null,_.D("div",{class:_.xz("yt-lp-section-group-view-model",(O["yt-lp-section-group-view-model--premium-force-dark-mode"]=e,O["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},O))},_.D(_.F,{cond:function(){return C().length},
then:function(){var L={};return _.D("div",{class:_.xz("yt-lp-section-group-view-model__bg-image",(L["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=l,L)),style:C})}}),_.D("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.D(_.MR,{data:function(){return x().sections}},{lpFaqSectionViewModel:function(L){return _.D(zfJ,{data:L.data,
themeOverride:Q})},
lpHeaderSectionViewModel:function(L){return _.D(rp2,{data:L.data,themeOverride:Q})},
lpHeadlineSectionViewModel:function(L){return _.D(HaF,{data:L.data,themeOverride:Q})},
lpLargeFeatureSectionViewModel:function(L){return _.D(KpJ,{data:L.data,themeOverride:Q})},
lpOfferCardSectionViewModel:function(L){return _.D(YHk,{data:L.data,themeOverride:Q})},
lpComplexOfferCardSectionViewModel:function(L){return _.D(mJp,{data:L.data})},
lpOfferTableSectionViewModel:function(L){return _.D(Jp$,{data:L.data,themeOverride:Q})},
lpSmallFeatureSectionGroupViewModel:function(L){return _.D(SHk,{data:L.data,themeOverride:Q})},
lpCouponBannerViewModel:function(L){return _.D(sIL,{data:L.data})}}))))},"Bd"),"yt-section-group-view-model",{props:{data:_.Ld}});var yFi=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.jIR=_.K(function(O){function x(){if(yFi.has(O.data().displayType)){var G=!l(),X;if((X=O.disableDeselection)==null||!X.call(O)||G){O.data().selected=G;X=Object.assign({},L(),{selected:G});k(X);var y;(y=O.callback)==null||y.call(O,X,G)}}}
var e=_.Q5("chip-view-model"),l=function(){var G,X;return!!(((G=O.selected)==null?void 0:G.call(O))!==void 0?(X=O.selected)==null?0:X.call(O):L().selected)},C=_.T(_.bk(O.data)),Q=C.next().value;
C=C.next().value;var L=Q,k=C,M=_.L5(ol8,function(){return O.data().chipEntityKey||""});
return _.D("chip-view-model",{class:"ytChipViewModelHost",el:e},_.D(R3p,{data:function(){var G,X=Object.assign({},L(),{selected:l()}),y=M(),Z=(G=O.disableDeselection)==null?void 0:G.call(O);a:switch(X.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":G=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":G=3;break a;default:G=0}return{text:(y==null?void 0:y.text)||X.text,state:X.disabled?1:X.selected?0:2,type:G,onTap:Z8n(X,e,x,Z),
accessibilityLabel:X.accessibilityLabel||X.text}}}))},"Cd");
_.jIR.idomCompat={callbacks:{callback:!0}};_.Nuz=_.K(function(O){var x=_.L5(XaL,function(){var L;return(L=O.data())==null?void 0:L.chipBarStateEntityKey}),e=function(){return O.data().disableDeselection},l=_.T(_.bk(function(){var L;
if(((L=x())==null?void 0:L.selectedIndex)!=void 0)return x().selectedIndex;var k,M;L=_.T(((k=O.data())==null?void 0:(M=k.chips)==null?void 0:M.entries())||[]);for(k=L.next();!k.done;k=L.next()){k=_.T(k.value);M=k.next().value;k=k.next().value;var G=void 0;if((G=_.q(k,_.$o))==null?0:G.selected)return M}return-1})),C=l.next().value,Q=l.next().value;
return _.D("chip-bar-view-model",{class:_.xz("ytChipBarViewModelHost",O.className),role:"tablist"},_.D(_.MR,{data:function(){return O.data().chips}},{chipViewModel:function(L,k){return _.D("div",{class:"ytChipBarViewModelChipWrapper"},_.D(_.jIR,{data:L.data,
selected:function(){return k()===C()},
callback:function(M,G){M=!!G;G=k();Q(M?G:-1);var X,y=(X=O.data())==null?void 0:X.chipBarStateEntityKey;y&&M&&_.ns(_.Dc("chipBarStateEntity",y,{key:y,selectedIndex:G}))},
disableDeselection:O.disableDeselection||e}))}}))},"Dd");_.wP(_.Nuz,"chip-bar-view-model",{props:{data:_.vs,className:_.vs,disableDeselection:_.vs}});_.gFD=_.K(function(O){var x=O.data;O={};return _.D("divider-view-model",{class:_.xz("dividerViewModelHost",(O.dividerViewModelInsetThinPadding=function(){return x().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},O))},_.D("div",{class:_.xz("dividerViewModelBaseDivider",function(){return ElL(x().dividerStyle)}),
style:_.T7({"background-color":function(){return x().backgroundColor?_.UA(x().backgroundColor):void 0}})}))},"Ed");
_.gFD.idomCompat=!0;_.wP(_.gFD,"divider-view-model",{props:{data:_.Ld}});var bc=new Map,Qn=new Map,Par=0,T_;var a8W=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],WmL={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var $JJ,iaN;$JJ=function(O){return function(x){return function(){return(x==null?void 0:x())!==void 0?String(x())+O:void 0}}};
_.Nm=$JJ("px");iaN=$JJ("s");var OHT=ZJ$(function(O){return O.targetGroupId}).useUpdatableData;_.eAd=_.K(function(O){function x(O8){return function(){var Xr=U().numItemsPerGridRow,Fr=O8()*Xr;Xr=Fr+Xr;var mL,Zn;return(Zn=(mL=l().contents)==null?void 0:mL.slice(Fr,Xr))!=null?Zn:[]}}
var e=_.YX(O,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),l=e.data,C=e.layoutContainerWidth,Q=e.shouldUseOwnContainerSize,L=e.marginSettings,k=TQs(),M=_.T(OHT(function(){var O8,Xr;return{targetGroupId:(O8=l().targetingContext)==null?void 0:(Xr=O8.targetGroupId)==null?void 0:Xr[0]}})).next().value;
e=_.T(_.Iw(!0,void 0,"f25nob"));var G=e.next().value,X=e.next().value,y=function(){var O8,Xr=(O8=_.q(l().showMoreButton,_.gf))==null?void 0:O8.trackingParams;Xr&&_.I7(_.k0(),Xr);X(!1)},Z=function(){var O8,Xr=(O8=_.q(l().showLessButton,_.gf))==null?void 0:O8.trackingParams;
Xr&&_.I7(_.k0(),Xr);X(!0)};
e=_.Q5("grid-shelf-view-model");var E=_.zBV(e,{canHaveZeroSize:!1}),P=function(){var O8;return(O8=l().contentAspectRatio)!=null?O8:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},U=_.aw(function(){var O8=_.Rt({containerWidth:Q()&&E.width()>0?E.width()||C():C(),
sizing:"EXTRA_COMPACT",marginSettings:L(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:O8.maxContainerWidth,numItemsPerGridRow:O8.numItems,contentPadding:Q()?O8.margin:O8.contentMargin,itemWidth:O8.itemWidth,itemMargin:O8.gutter/2}},void 0,"b3gcJf"),W=function(){if(l().enableVerticalExpansion){if(G())return z();
var O8,Xr,Fr=(Xr=(O8=l().contents)==null?void 0:O8.length)!=null?Xr:0;return Math.ceil(Fr/U().numItemsPerGridRow)}return U().numItemsPerGridRow<=2?2:1},z=function(){var O8;
return Math.ceil(((O8=l().minCollapsedItemCount)!=null?O8:1)/U().numItemsPerGridRow)},r=function(){return l().enableVerticalExpansion&&l().showLessButton&&!G()&&W()>z()},f=function(){var O8,Xr;
return l().enableVerticalExpansion&&l().showMoreButton&&G()&&((Xr=(O8=l().contents)==null?void 0:O8.length)!=null?Xr:0)>U().numItemsPerGridRow*z()},u=function(){return!r()},Y=function(){return!f()},J={};
return _.D("grid-shelf-view-model",{class:_.xz("ytGridShelfViewModelHost",O.className,(J.ytGridShelfViewModelHostHasBottomButton=function(){return r()||f()},J.ytGridShelfViewModelHostIsDismissed=function(){var O8,Xr=(O8=M())!=null?O8:{};
O8=Xr.behavior;var Fr=Xr.isDismissed,mL=Xr.stamperContextTargetId;Xr=Xr.stamperIndex;if(!(_.t("mweb_see_fewer_shorts_group_dismissal")&&Fr&&O8&&mL))return!1;var Zn;Fr=k;for(var q$,KV,VN=((q$=Fr)==null?0:q$.targetId)?_.vL((KV=Fr)==null?void 0:KV.targetId):void 0;((Zn=Fr)==null?0:Zn.parent)&&VN!==mL;)Fr=Fr.parent,KV=q$=void 0,VN=((q$=Fr)==null?0:q$.targetId)?_.vL((KV=Fr)==null?void 0:KV.targetId):void 0;Zn=VN===mL?Fr:void 0;if(!Zn)return!1;var Pd;mL=Zn==null?void 0:(Pd=Zn.stamperIndex)==null?void 0:
Pd.call(Zn);return O8==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||O8==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&mL!=null&&Xr!=null&&mL>Xr},J)),
el:e,style:_.T7({"margin-left":(0,_.Nm)(function(){return U().contentPadding}),
"margin-right":(0,_.Nm)(function(){return U().contentPadding})})},_.D(_.F,{cond:function(){return _.q(l().header,kx4)},
then:function(O8){return _.D(_.ak,{data:O8,disableHorizontalPadding:!0})}}),_.D("div",null,_.D(_.HE,{each:function(){return Array(W())}},function(O8,Xr){return _.D(x1$,{className:O.className,
items:x(Xr),responsiveGridShelfLayout:U,contentAspectRatio:P})})),_.D("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.D(_.MR,{data:function(){return l().showMoreButton}},{buttonViewModel:function(O8){return _.D("div",{hidden:Y},_.D(_.RV,{data:O8.data,
onClick:y}))}}),_.D(_.MR,{data:function(){return l().showLessButton}},{buttonViewModel:function(O8){return _.D("div",{hidden:u},_.D(_.RV,{data:O8.data,
onClick:Z}))}})))},"Gd");
_.eAd.idomCompat=!0;var x1$=_.K(function(O){var x=O.items;var e=O.responsiveGridShelfLayout;var l=O.contentAspectRatio;O=O.className;var C=_.Q5("div");qk7(C,function(){a:{var L=C.value;for(var k=x(),M=[],G=0;G<k.length;G++){var X=_.q(k[G],KPT);if(!X||X==null||!X.inlinePlayerData){L=null;break a}var y=L.children.item(G);if(!y){L=null;break a}M.push({thumbnailElement:y,videoData:X})}L={gridVideoPreviewData:{gridItems:M}}}return L});
var Q=(0,_.Nm)(function(){return-e().itemMargin});
return _.D("div",{el:C,class:_.xz("ytGridShelfViewModelGridShelfRow",O),style:_.T7({"margin-left":Q,"margin-right":Q})},_.D(_.MR,{data:x,replacementWrapper:function(L){return _.D(l3d,{responsiveGridShelfLayout:e},L)}},{shortsLockupViewModel:function(L){return _.D(l3d,{responsiveGridShelfLayout:e},_.D(srd,{data:L.data,
aspectRatio:function(){return l()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.t("mweb_enable_one_line_title_on_shorts")?1:_.t("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(L){return _.D(l3d,{responsiveGridShelfLayout:e},_.D(_.UL,{data:L.data}))}}))},"Hd"),l3d=_.K(function(O){return _.D("div",{style:_.T7({width:(0,_.Nm)(function(){return O.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+O.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},O.children)},"Id");
_.eAd.idomCompat=!0;_.wP(_.eAd,"grid-shelf-view-model",{props:{data:_.Ld,layoutContainerWidth:_.Ld,shouldUseOwnContainerSize:_.Ld,marginSettings:_.Ld,className:_.Ld}});_.C$T=_.K(function(O){var x=_.T(_.Iw(!1,void 0,"FVl30c")),e=x.next().value,l=x.next().value;x={};return _.D("yt-alert-banner-view-model",{class:_.xz("ytAlertBannerViewModelHost",O.className,function(){var C;a:switch((C=O.data())==null?void 0:C.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":C="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":C="ytAlertBannerViewModelWarning";break a;default:C="ytAlertBannerViewModelInformational"}return C},(x.ytAlertBannerViewModelDismissed=
e,x.ytAlertBannerViewModelFullbleed=O.fullbleed,x.ytAlertBannerViewModelNarrow=O.narrow,x.ytAlertBannerViewModelIsInRichGrid=O.isInRichGrid,x))},_.D(_.F,{cond:function(){var C;
return!((C=O.data())==null?0:C.hideIcon)},
then:function(){return _.D("div",{class:"ytAlertBannerViewModelIcon"},_.D(_.L7,{icon:function(){return"info_circle"}}))}}),_.D("div",{class:"ytAlertBannerViewModelOuterContainer"},_.D("div",{class:"ytAlertBannerViewModelContainer"},_.D("div",{class:"ytAlertBannerViewModelContent"},_.D("div",{class:"ytAlertBannerViewModelHeading"},_.D(_.TT,{text:function(){var C;
return(C=O.data())==null?void 0:C.heading}})),_.D("div",{class:"ytAlertBannerViewModelBody"},_.D(_.TT,{text:function(){var C;
return(C=O.data())==null?void 0:C.body}})))),_.D(_.MR,{data:function(){var C;
return(C=O.data())==null?void 0:C.actionButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.D(_.MR,{data:function(){var C;
return(C=O.data())==null?void 0:C.dismissButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var Q;((Q=O.data())==null?0:Q.disableLocalDismissBehavior)||l(!0)}})}}))},"Jd");_.wP(_.C$T,"yt-alert-banner-view-model",{props:{data:_.Ld,fullbleed:_.Ld,narrow:_.Ld,isInRichGrid:_.Ld,className:_.Ld}});var QoL;_.bHJ=_.K(function(O){return _.D("basic-content-view-model",{class:_.xz("ytBasicContentViewModelHost",_.uH(O.className))},_.D(_.F,{cond:function(){return O.data().headline},
then:function(x){return _.D("div",{class:"ytBasicContentViewModelHeadline"},_.D(_.TT,{text:x}))}}),_.D(_.HE,{each:function(){return O.data().paragraphs||[]},
keyBy:"INDEX"},function(x){return _.D("div",{class:"ytBasicContentViewModelParagraph"},_.D(_.F,{cond:function(){var e=x();return!!(e.header||e.customHeader||e.headline)},
then:function(){return _.D(QoL,{paragraph:x})}}),_.D(_.F,{cond:function(){return x().asset||x().text},
then:function(){return _.D("div",{class:"ytBasicContentViewModelParagraphContent"},_.D(_.F,{cond:function(){return x().asset},
then:function(e){return _.D("div",{class:"ytBasicContentViewModelParagraphAsset"},_.D(_.MR,{data:e},{contentPreviewImageViewModel:_.qP}))}}),_.D(_.F,{cond:function(){return x().text},
then:function(e){return _.D("div",{class:"ytBasicContentViewModelParagraphText"},_.D(_.TT,{text:e}))}}))}}))}))},"Kd");
QoL=_.K(function(O){var x=O.paragraph;return _.D(_.Xm,null,_.D(_.F,{cond:function(){return x().headline},
then:function(e){return _.D(_.TT,{text:e,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.D(_.MR,{data:function(){return x().header||x().customHeader}},{sectionHeaderViewModel:function(e){return _.D(_.ak,{data:e.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ld");var TBF=_.K(function(O){function x(){var E,P;M((P=(E=C)==null?void 0:E.isKeyBoardInUse())!=null?P:!1)}
function e(){M(!1)}
function l(){var E;return k()?(E=O.focusedClassName)==null?void 0:E.call(O):""}
var C=_.GG().resolve(_.D0(_.qL)),Q=_.T(_.Iw(!1,void 0,"zbdw0d")),L=Q.next().value;Q=Q.next().value;var k=L,M=Q,G=function(){var E,P;return((E=O.toggleable)==null?0:E.call(O))?(P=O.toggled)==null?void 0:P.call(O):void 0},X=_.lk(function(E){var P,U=(P=O.command)==null?void 0:P.call(O);
U&&_.GG().resolve(_.Xc).resolveCommand(U);var W;(W=O.onClick)==null||W.call(O,E)}),y=_.lk(x),Z=_.lk(e);
return _.D(_.F,{cond:function(){var E;if(E=O.command){E=O.command();E=EeL(E);var P=E.href;E=!(!E.navigatingCommand||!P)}return E},
then:function(){return _.D(_.Pt,Object.assign({},{command:O.command,style:O.style,ariaDescribedby:O.ariaDescribedby,ariaHidden:O.ariaHidden,ariaLabel:O.ariaLabel,ariaLabelledby:O.ariaLabelledby,ariaSelected:O.ariaSelected,disabled:O.disabled,dir:O.dir,tabIndex:O.tabIndex,target:O.target,title:O.title,onClick:O.onClick},{className:_.xz("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",O.className,function(){return l()}),
onFocusin:x,onFocusout:e,ariaCurrent:function(){var E,P;return(P=(E=O.ariaCurrent)==null?void 0:E.call(O))!=null?P:G()}}),O.children)},
else:function(){return _.D("button",{"on:click":X,"on:focusin":y,"on:focusout":Z,class:_.xz("ytButtonOrAnchorHost","ytButtonOrAnchorButton",O.className,function(){return l()}),
style:O.style,"aria-describedby":O.ariaDescribedby,"aria-hidden":O.ariaHidden,"aria-label":O.ariaLabel,"aria-labelledby":O.ariaLabelledby,"aria-pressed":G,dir:O.dir,disabled:O.disabled,tabindex:O.tabIndex,title:O.title},O.children)}})},"Md");var Lkz=_.K(function(O){O=_.YX(O,{disabled:!1});var x=O.active,e=O.disabled;O={};O=_.xz("ytSwitchShapeTrack",(O.ytSwitchShapeTrackActive=function(){return x()},O.ytSwitchShapeTrackDisabled=function(){return e()},O));
var l={};l=_.xz("ytSwitchShapeKnob",(l.ytSwitchShapeKnobActive=function(){return x()},l));
return _.D("switch-shape",{class:"ytSwitchShapeHost"},_.D("div",{class:O}),_.D("div",{class:l}))},"Nd");var kgp=_.K(function(O){var x=_.YX(O,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),e=x.data;O=x.className;var l=x.handleOnTapEventInParent,C=x.parentActive,Q=x.onTap;x=_.T(_.bk(function(){var Z;return(Z=C())!=null?Z:e().switchedOnByDefault||!1}));
var L=x.next().value,k=x.next().value,M=function(){return e().isDisabled},G=_.Q5("button");
x=_.lk(function(Z){return Z.key==="Enter"?(Z.preventDefault(),G.value.click(),!1):!0});
var X=_.lk(function(Z){if(e().handleOnTapEventInParent||l())return!0;if(M())return!1;if(Q)return Q(Z),!0;H87(e(),L(),Z);k(!L());return!1}),y={};
y=_.xz("ytSwitchButtonViewModelButton",(y.ytSwitchButtonViewModelTappable=function(){return!M()},y));
return _.D("switch-button-view-model",{class:_.xz("ytSwitchButtonViewModelHost",O)},_.D("button",{el:G,class:y,"on:click":X,"on:keydown":x,"aria-label":function(){return L()?e().a11yLabelSwitchedOn:e().a11yLabelSwitchedOff},
"aria-checked":L,"aria-disabled":M,role:"switch"},_.D(Lkz,{active:L,disabled:M})))},"Od");var A2N=_.K(function(O){var x=O.data;var e=O.isLeading;var l=O.hideSelectionTextChevron;var C=O.isToggled;var Q=function(){return e()?x().leadingImage:x().trailingImage},L=function(){a:switch(x().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var X="expand_more";
break a;default:X="chevron_right"}return X};
O={};var k=_.xz("yt-list-item-view-model__image-container",(O["yt-list-item-view-model__leading"]=e,O["yt-list-item-view-model__trailing"]=function(){return!e()},O)),M=_.xz("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
O={};var G=_.xz("yt-list-item-view-model__accessory",(O["yt-list-item-view-model__leading"]=e,O["yt-list-item-view-model__trailing"]=function(){return!e()},O));
return _.D(_.F,{cond:function(){var X=x(),y=e();return!!(y&&(X.leadingImage||X.leadingAccessory)||!y&&(X.trailingImage||X.trailingButton||X.trailingButtons||X.selectionText))},
then:function(){return _.D(_.Xm,null,_.D(_.F,{cond:Q,then:function(X){return _.D("div",{class:k,"aria-hidden":"true"},_.D(_.n_,{data:X,alt:"",preserveWidth:!0,preserveHeight:!0,className:M,isToggled:C}))}}),_.D(_.F,{cond:function(){return e()&&x().leadingAccessory},
then:function(){return _.D("div",{class:k},_.D(_.MR,{data:function(){return x().leadingAccessory}},{avatarViewModel:function(X){return _.D(_.jQ,{data:X.data,
avatarButtonCustomClassName:M})},
collectionThumbnailViewModel:function(X){return _.D(V0$,{data:X.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.D(_.F,{cond:function(){return!e()&&x().trailingButton},
then:function(){return _.D("div",{class:"yt-list-item-view-model__button-container"},_.D(_.MR,{data:function(){return x().trailingButton}},{buttonViewModel:function(X){return _.D(_.RV,{data:X.data,
className:G})}}))}}),_.D(_.F,{cond:function(){var X;
return!e()&&((X=x().trailingButtons)==null?void 0:X.buttons)},
then:function(){return _.D("div",{class:"yt-list-item-view-model__button-container"},_.D(_.MR,{data:function(){var X;return(X=x().trailingButtons)==null?void 0:X.buttons}},{buttonViewModel:function(X){return _.D(_.RV,{data:X.data,
className:G})},
accountLinkButtonViewModel:function(X){return _.D(FV$,{data:X.data,className:G})},
switchButtonViewModel:function(X){return _.D(kgp,{data:X.data,className:G})},
subscribeButtonViewModel:function(X){return _.D(_.j7,{data:X.data,isOverlay:!1,animateWidth:!1,className:G})},
toggleButtonViewModel:function(X){return _.D(_.Jc,{data:X.data,className:G})}}))}}),_.D(_.F,{cond:function(){return!e()&&!!x().selectionText},
then:function(){return _.D(_.Xm,null,_.D(_.TT,{text:function(){return x().selectionText},
className:_.xz("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.D(_.F,{cond:function(){return!(l==null?0:l())},
then:function(){return _.D(_.L7,{icon:L,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Pd");var Msz=_.K(function(O){var x=O.data;return _.D(_.F,{cond:function(){return x().title||x().subtitle},
then:function(){return _.D("div",{class:"yt-list-item-view-model__text-wrapper"},_.D(_.F,{cond:function(){return x().title},
then:function(e){return _.D("div",{class:"yt-list-item-view-model__title-wrapper"},_.D(_.TT,{text:e,className:"yt-list-item-view-model__title"}))}}),_.D(_.F,{cond:function(){return x().subtitle},
then:function(e){return _.D(_.TT,{text:e,className:"yt-list-item-view-model__subtitle"})}}))}})},"Qd");var D12=_.K(function(O){var x=O.data;var e=O.hideSelectionTextChevron;var l=O.TrailingAccessory;var C=O.isToggled;var Q=O.disabled;var L=O.isSelectItem;var k=O.isCompact;var M=O.inPopup;var G=O.disableHorizontalPadding;var X=O.isTappableWithoutSelect;var y=O.useButtonOrAnchor;var Z=O.onTap;var E=function(){return _.D(Msz,{data:x,onTap:Z,useButtonOrAnchor:y,isTappableWithoutSelect:X,isToggled:C})};
O={};return _.D("div",{class:_.xz("yt-list-item-view-model__label",(O["yt-list-item-view-model__container"]=function(){return!(L==null?0:L())},O["yt-list-item-view-model__container--disabled"]=function(){return!!x().isDisabled||!(Q==null||!Q())},O["yt-list-item-view-model__container--has-subtitle"]=function(){return!!x().subtitle},O["yt-list-item-view-model__container--compact"]=k,O["yt-list-item-view-model__container--tappable"]=X,O["yt-list-item-view-model__container--in-popup"]=M,O["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(G==null?void 0:G())&&!(L==null?0:L())},O))},_.D(A2N,{data:x,
isLeading:!0,hideSelectionTextChevron:e,isToggled:C}),_.D(_.F,{cond:function(){return(y==null?void 0:y())&&(X==null?void 0:X())},
then:function(){return _.D(TBF,{command:function(){return _.tA(x().rendererContext)},
onClick:Z,className:"yt-list-item-view-model__button-or-anchor",toggleable:C!==void 0,toggled:C},_.D(E,null))},
else:function(){return _.D(E,null)}}),_.D(_.F,{cond:function(){return!!l},
then:function(){return _.D("div",{class:"yt-list-item-view-model__trailing"},l&&_.D(l,null))},
else:function(){return _.D(A2N,{data:x,isLeading:!1,hideSelectionTextChevron:e,isToggled:C})}}))},"Rd");var FkR=_.K(function(O){var x=_.YX(O,{checked:!1});O=x.name;var e=x.onChange,l=x.onClick,C=x.checked,Q=x.labelRenderable,L=x.hasLeadingLabel,k=x.labelClass,M=x.isCompact,G=x.selectElementClass;x=x.disableHorizontalPadding;var X="checkbox"+_.sS(_.jz),y=_.lk(function(P){l==null||l(P);return!1}),Z=_.lk(function(P){e==null||e(P);
return!1}),E={};
return _.D("checkbox-shape",null,_.D("label",{class:_.xz("ytCheckboxShapeHost",k,(E.ytCheckboxShapeHostCompact=M,E.ytCheckboxShapeDisableHorizontalPadding=x,E))},_.D("input",{class:"ytCheckboxShapeInput",id:X,checked:C,name:O,type:"checkbox","prop:checked":C,"on:change":Z,"on:click":y}),_.D(_.F,{cond:function(){return!(L==null?0:L())},
then:function(){return _.D(GgL,{isLeading:!0,selectElementClass:G})}}),_.D(_.F,{cond:function(){return!!Q},
then:function(){return _.D("div",{class:"ytCheckboxShapeLabel"},Q==null?void 0:Q())}}),_.D(_.F,{cond:L,
then:function(){return _.D(GgL,{isLeading:!1,selectElementClass:G})}})))},"Sd");
FkR.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var GgL=_.K(function(O){var x=O.selectElementClass;O={};return _.D("div",{class:_.xz("ytCheckboxShapeCheckbox",x,(O.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(x==null?0:x())},O)),
"aria-hidden":"true"},_.D(_.L7,{icon:_.t("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.D(_.L7,{icon:_.t("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Td");_.gE=_.K(function(O){var x=O.name;var e=O.onChange;var l=O.onClick;var C=O.checked;var Q=O.labelRenderable;var L=O.useCheckIcon;var k=O.hasLeadingLabel;var M=O.labelClass;var G=O.isCompact;var X=O.selectElementClass;var y=O.ariaLabel;O=O.className;var Z="radio"+_.sS(_.jz),E=_.Q5("input"),P=_.lk(function(J){E.value.checked=!(C==null||!C());e==null||e(J);return!1}),U=_.lk(function(J){l==null||l(J);
return!1}),W=_.lk(function(J){_.t("enable_ios_webview_radio_button_responsiveness")&&(J.preventDefault(),E.value.click())}),z=_.T(_.Iw(!1,void 0,"TcCZlf")),r=z.next().value,f=z.next().value;
z=_.lk(function(){var J;((J=_.GG().resolve(_.D0(_.qL)))==null?0:J.isKeyBoardInUse())&&f(!0)});
var u=_.lk(function(){f(!1)}),Y={};
return _.D("radio-shape",{class:_.xz("yt-radio-shape",O)},_.D("input",{el:E,class:"yt-radio-shape__input",id:Z,"prop:checked":C,name:x,type:"radio","on:change":P,"on:click":U,"aria-label":y,"on:focusin":z,"on:focusout":u}),_.D("label",{class:_.xz("yt-radio-shape__label-container",M,(Y["yt-radio-shape--compact"]=G,Y["yt-radio-shape__label-container--keyboard-focused"]=r,Y)),for:Z,"on:click":W},_.D(_.F,{cond:function(){return!(k==null?0:k())},
then:function(){return _.D(X6L,{checked:C,useCheckIcon:L,isLeading:!0,selectElementClass:X})}}),_.D(_.F,{cond:function(){return!!Q},
then:function(){return _.D("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(y==null?0:y())?"true":"false"}},Q==null?void 0:Q())}}),_.D(_.F,{cond:k,
then:function(){return _.D(X6L,{checked:C,useCheckIcon:L,isLeading:!1,selectElementClass:X})}})))},"Ud");
_.gE.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var X6L=_.K(function(O){var x=O.useCheckIcon;var e=O.selectElementClass;O=function(){return(x==null?0:x())?"CHECK":_.t("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var l={};return _.D("div",{class:_.xz("yt-radio-shape__radio",e,(l["yt-radio-shape__radio--check-icon"]=x,l["yt-radio-shape__radio--radio-default-style"]=function(){return!(e==null?0:e())},l)),
"aria-hidden":"true"},_.D(_.L7,{icon:O}),_.D(_.L7,{icon:O,active:function(){return!(x==null?0:x())}}))},"Vd");_.$H=_.K(function(O){var x=O.data;var e=O.isMenuItem;var l=O.isCompact;var C=O.onTap;var Q=O.trailingAccessory;var L=O.hideSelectionTextChevron;var k=O.disabled;var M=O.inPopup;var G=O.disableHorizontalPadding;var X=O.isOverlay;var y=O.isToggled;var Z=O.ariaLabel;O=O.ariaPressed;var E=!_.t("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),P=_.Dl(function(VN){return nln(x(),VN)}),U=function(){return _.t("enable_web_shorts_captions_language_command")||_.t("web_shorts_audio_track_picker")||
x().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},W=function(){return U()?Object.assign({},x(),P().data):x()},z=_.YkL(function(){return W().rendererContext}),r=function(){return!(W().isSelected===void 0||!W().selectionStyle||W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},f=function(){return(_.qR(W().rendererContext)||C)&&!r()},u={},Y=_.xz("yt-list-item-view-model__container",(u["yt-list-item-view-model__container--tappable"]=function(){return _.qR(W().rendererContext)||
r()},u["yt-list-item-view-model__container--compact"]=l,u["yt-list-item-view-model__container--in-popup"]=M,u["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(G==null?void 0:G())&&r()},u)),J=function(){return W().leadingImage||W().leadingAccessory},O8=_.xz("yt-list-item-view-model__image-container",function(){return J()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
u=_.lk(function(VN){var Pd;if(Pd=E)Pd=W().selectionStyle,Pd=Pd==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Pd==="LIST_ITEM_SELECTION_STYLE_RADIO"||Pd==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Pd||KV||C==null||C(VN)});
var Xr=_.d8L(),Fr=_.T(_.Iw(!1,void 0,"q9Dj4b")),mL=Fr.next().value,Zn=Fr.next().value,q$=function(){return _.D(D12,{data:W,hideSelectionTextChevron:L,TrailingAccessory:Q,isToggled:y,disabled:k,isSelectItem:r,isCompact:l,inPopup:M,disableHorizontalPadding:G,isTappableWithoutSelect:f,useButtonOrAnchor:KV,onTap:C})},KV=_.t("web_button_or_anchor_list_item");
Fr={};return _.D("yt-list-item-view-model",{el:_.Y0(_.P8(function(){return W().rendererContext},void 0,void 0,KV?["A".toString(),
"BUTTON".toString()]:[]),KV&&C?u0V(C):void 0,iDL(function(){return f==null?void 0:f()},{focusin:function(){var VN;
((VN=_.GG().resolve(_.D0(_.qL)))==null?0:VN.isKeyBoardInUse())&&Zn(!0)},
focusout:function(){Zn(!1)}})),
class:_.xz("yt-list-item-view-model",(Fr["yt-list-item-view-model--is-overlay"]=X,Fr["yt-list-item-view-model--keyboard-focused"]=mL,Fr["yt-list-item-view-model--hidden"]=function(){return U()?P().isHidden:!1},Fr)),
role:function(){return(e==null?0:e())?"menuitem":"listitem"},
tabindex:function(){var VN=f();VN=KV?void 0:C||VN?0:void 0;return VN},
"on:keydown":Xr,"on:click":u,"aria-label":function(){var VN;return(Z==null?void 0:Z())||((VN=z())==null?void 0:VN.label)},
"aria-pressed":O},_.D(_.F,{cond:r,then:function(){return _.D(_.KO,null,_.D(_.zn,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.D(FkR,{labelRenderable:q$,
isCompact:l,checked:function(){return W().isSelected},
hasLeadingLabel:function(){return!!J()},
labelClass:Y,selectElementClass:O8,disableHorizontalPadding:G,onClick:E?C:void 0})}),_.D(_.zn,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.D(_.gE,{labelRenderable:q$,
isCompact:l,checked:function(){return W().isSelected},
hasLeadingLabel:function(){return!!J()},
labelClass:Y,selectElementClass:O8,onClick:E?C:void 0})}),_.D(_.zn,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.D(_.gE,{labelRenderable:q$,
isCompact:l,checked:function(){return W().isSelected},
hasLeadingLabel:function(){return!!J()},
labelClass:Y,selectElementClass:O8,useCheckIcon:!0,onClick:E?C:void 0})}),_.D(_.rz,null,q$))},
else:q$}))},"Wd");
_.$H.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.iA=_.K(function(O){var x=function(){return O.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.D("yt-linear-layout-view-model",{class:_.xz("ytLinearLayoutViewModelHost",function(){a:switch(O.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var e="ytLinearLayoutViewModelHorizontal";break a;default:e="ytLinearLayoutViewModelVertical"}return e},function(){var e=O.data().linearLayoutContainerConfiguration;
return e?[BmN(e==null?void 0:e.flexDirection),vl7(e==null?void 0:e.justifyContent),f8m(e==null?void 0:e.alignItems)].join(" "):""})},_.D(_.MR,{data:function(){return O.data().items}},{lockupViewModel:function(e){return _.D("div",{style:_.T7({"margin-bottom":function(){return x()?void 0:"8px"},
"margin-right":function(){return x()?"8px":void 0}})},_.D(_.UL,{data:e.data,
containerType:function(){return x()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return x()?void 0:"33%"}}))},
basicContentViewModel:function(e){return _.D("div",{style:_.T7({"margin-bottom":function(){return x()?void 0:"8px"},
"margin-right":function(){return x()?"8px":void 0}})},_.D(_.bHJ,{data:e.data}))},
linearLayoutViewModel:function(e){return _.D("div",{style:_.T7({"margin-bottom":function(){return x()?void 0:"8px"},
"margin-right":function(){return x()?"8px":void 0}})},_.D(_.iA,{data:e.data}))},
thumbnailViewModel:function(e){return _.D("div",{style:_.T7({width:function(){return"100%"},
"margin-bottom":function(){return x()?void 0:"8px"},
"margin-right":function(){return x()?"8px":void 0}})},_.D(_.o4,{data:e.data}))},
descriptionPreviewViewModel:function(e){return _.D("div",{style:_.T7({"margin-bottom":function(){return x()?void 0:"8px"},
"margin-right":function(){return x()?"8px":void 0}})},_.D(_.Uy,{data:e.data}))},
listItemViewModel:function(e){return _.D("div",{style:_.T7({"margin-bottom":function(){return x()?void 0:"8px"},
"margin-right":function(){return x()?"8px":void 0}})},_.D(_.$H,{data:e.data}))}}))},"Xd");_.wP(_.iA,"yt-linear-layout-view-model",{props:{data:_.Ld}});_.Ot=_.K(function(O){var x=O.data;var e=O.callback;var l=O.selectionBehavior;var C=O.disableChipsScrollAnimation;var Q=_.bD("div");O=_.T(_.Iw(!0,void 0,"aUEsOc"));var L=O.next().value,k=O.next().value;O=_.T(_.Iw(!1,void 0,"V0aKld"));var M=O.next().value,G=O.next().value,X=!1,y=0;_.u8(function(){k(P());G(U())});
O=_.T(_.bk(function(){var O8={};return x().autoselectedChipIndex!=null?(O8[x().autoselectedChipIndex]=!0,O8):{}}));
var Z=O.next().value,E=O.next().value,P=function(){var O8=Q.value;return O8==null||O8.scrollLeft-1<=0},U=function(){var O8=Q.value;
return O8==null?!1:O8.scrollLeft+1>=(O8==null?NaN:O8.scrollWidth)-(O8==null?NaN:O8.clientWidth)},W=function(){return x().isHorizontallyScrollable},z=function(O8){Q.value!=null&&(_.wz("HTML_DIR")==="rtl"&&(O8=-O8),Q.value.scrollBy({left:O8,
behavior:(C==null?0:C())?"instant":"smooth"}))},r=function(){z(-320)},f=function(){z(320)},u=_.lk(function(O8){X=!0;
y=O8.clientX}),Y=_.lk(function(O8){if(X){O8=O8.clientX;
var Xr=O8-y;y=O8;var Fr;(Fr=Q.value)==null||Fr.scrollBy({left:-Xr})}}),J=_.lk(function(){var O8=P(),Xr=U();
O8!==L()&&k(O8);Xr!==M()&&G(Xr)});
_.D9("pointerup",function(){X&&(X=!1)});
return _.D("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.D(_.I4,{contentId:function(){return x().contentId},
useModernStyle:!0},function(){var O8={},Xr={};return _.D("div",null,_.D(_.F,{cond:function(){return x().title},
then:function(){return _.D("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.D("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return x().title}),_.D(_.MR,{data:function(){return x().overflowButton}},{buttonViewModel:_.RV}))}}),_.D("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.D(_.F,{cond:function(){return x().previousButton},
then:function(){var Fr={};return _.D("div",{class:_.xz("ytChipsShelfViewModelLeftArrowContainer",(Fr.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return L()},Fr))},_.D(_.MR,{data:function(){return x().previousButton}},{buttonViewModel:function(mL){return _.D(_.RV,{data:mL.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:r})}}))}}),_.D("div",{el:Q,
"on:pointerdown":u,"on:pointermove":Y,"on:scroll":J,class:_.xz("ytChipsShelfViewModelChipsScrollContainer",(O8.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=W,O8))},_.D("div",{class:_.xz("ytChipsShelfViewModelChipsContainer",(Xr.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=W,Xr.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Xr)),role:"tablist"},_.D(_.MR,{data:function(){return x().contents}},{chipViewModel:function(Fr,mL){return _.D("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.D(_.jIR,{data:Fr.data,
callback:function(Zn,q$){var KV=mL(),VN,Pd=(VN=l==null?void 0:l())!=null?VN:0;Pd===1||Pd===2?(VN={},E((VN[KV]=q$,VN))):(VN={},E(Object.assign({},Z(),(VN[KV]=q$,VN))));e==null||e(Zn,q$,KV)},
disableDeselection:function(){return(l==null?void 0:l())===1},
selected:function(){return!!Z()[mL()]}}))}}))),_.D(_.F,{cond:function(){return x().nextButton},
then:function(){var Fr={};return _.D("div",{class:_.xz("ytChipsShelfViewModelRightArrowContainer",(Fr.ytChipsShelfViewModelRightArrowContainerIsHidden=M,Fr))},_.D(_.MR,{data:function(){return x().nextButton}},{buttonViewModel:function(mL){return _.D(_.RV,{data:mL.data,
className:"ytChipsShelfViewModelRightArrow",onClick:f})}}))}})))}))},"Zd");
_.Ot.idomCompat={callbacks:{callback:!0}};_.wP(_.Ot,"chips-shelf-view-model",{props:{data:_.Ld,callback:_.vs,selectionBehavior:_.Ld,disableChipsScrollAnimation:_.Ld}});_.wP(_.K(function(O){return _.D("yt-comment-filter-context-view-model",{class:_.xz("ytCommentFilterContextHost",O.className)},_.D(_.TT,{text:function(){return O.data().text}}))},"$d"),"yt-comment-filter-context-view-model",{props:{data:_.Ld,
className:_.vs}});_.oDp=_.K(function(O){var x=O.data;var e=O.onTap;var l=O.onSwitch;var C=O.overrideDisabled;O=O.disableHorizontalPadding;var Q=_.T(_.bk(function(){var E;return((E=dEW(y()))==null?void 0:E.switchedOnByDefault)||!1})),L=Q.next().value,k=Q.next().value;
Q=_.T(_.Iw(!1,void 0,"ZHBkbb"));var M=Q.next().value,G=Q.next().value,X=_.t("web_button_or_anchor_list_item"),y=function(){var E;if(!(E=x().switchButton)){var P=x();E=C==null?void 0:C();P={switchOnCommand:P.switchOnCommand,switchOffCommand:P.switchOffCommand,switchedOnByDefault:P.switchedOnByDefault,isDisabled:P.isDisabled,handleOnTapEventInParent:!X,a11yLabelSwitchedOn:P.a11yLabelSwitchedOn,a11yLabelSwitchedOff:P.a11yLabelSwitchedOff};E!==void 0&&(P.isDisabled=E);E={switchButtonViewModel:P}}return E},
Z=function(E){var P=dEW(y());
!P||P.isDisabled||x().ignoreTapUntilCommandCompletes&&M()||(e==null||e(E),H87(P,L(),E,x().ignoreTapUntilCommandCompletes,G),k(!L()),l==null||l(L()))};
return _.D("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.D(_.$H,{data:function(){return{title:x().title,subtitle:x().attributedSubtitle,leadingImage:x().leadingImage,leadingAccessory:x().leadingAccessory,isDisabled:x().isDisabled}},
onTap:Z,isToggled:X?L:void 0,trailingAccessory:function(){return _.D(_.MR,{data:y},{switchButtonViewModel:function(E){return _.D(kgp,{data:E.data,parentActive:L,handleOnTapEventInParent:!!e&&!X,onTap:X?Z:void 0})}})},
disableHorizontalPadding:O}))},"ae");var y2p=_.K(function(O){var x=_.T(_.bk(function(){var C,Q;return!!((C=O.data())==null?0:(Q=C.initialState)==null?0:Q.isToggled)})),e=x.next().value,l=x.next().value;
x=_.lk(function(){l(!e())});
return _.D("toggleable-list-item-view-model",{el:_.Y0(_.P8(function(){return O.data().rendererContext})),
class:_.xz("toggleableListItemViewModelHost",O.className),"on:click":x},_.D(_.F,{cond:function(){if(e()){var C=O.data().toggledListItem;C=_.q(C,_.GA)}else C=O.data().defaultListItem,C=_.q(C,_.GA);return C},
then:function(C){return _.D(_.$H,{data:C,isToggled:e,ariaLabel:function(){var Q=e()?O.data().toggledListItem:O.data().defaultListItem,L;Q=(L=_.q(Q,_.GA))==null?void 0:L.rendererContext;var k;return(k=_.q(Q,_.LM))==null?void 0:k.label},
ariaPressed:function(){return e()}})}}))},"be");var ZHp=_.CZ("DOWNLOAD",{},"Download"),EDR=_.CZ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),tsL=_.CZ("RETRY",{},"Retry"),q$d=_.CZ("PAUSE_DOWNLOADING",{},"Pause downloading"),P$z=_.CZ("RESUME_DOWNLOAD",{},"Resume download"),JFi={text:ZHp,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},kV={text:EDR,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},jrW={text:tsL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
waL={text:q$d,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},SkV={text:P$z,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var c2$=_.K(function(O){var x=function(){var k=O.data();k=_.tA(k.rendererContext);var M;return(M=_.q(k,_.bw))==null?void 0:M.videoId},e=_.Dl(function(k){var M=x(),G=$EV(O.data());
return M?_.Vy(k,M):G?_.pA(k,G):"TRANSFER_STATE_UNKNOWN"}),l=_.L5(_.Ng8,x),C=_.Dl(function(k){return _.Bg7(k,x(),$EV(O.data()))}),Q=function(){return glr(e(),l(),_.tA(O.data().rendererContext),!!$EV(O.data()))},L=function(){return C()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.D("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:L},_.D(_.F,{cond:function(){return!L()},
then:function(){return _.D(_.F,{cond:Q,then:function(k){return _.D(_.HE,{each:k},function(M){return _.D(_.$H,{data:M,isCompact:O.isCompact,isMenuItem:O.isMenuItem,inPopup:O.inPopup,disableHorizontalPadding:O.disableHorizontalPadding})})}})}}))},"ce");
c2$.idomCompat=!0;_.I3N=_.K(function(O){var x=O.data;var e=O.isCompact;var l=O.hideSelectionTextChevron;var C=O.inPopup;var Q=O.isOverlay;var L=O.disableHorizontalPadding;var k=function(){return i8w(x())&&(C==null?void 0:C())};
O=_.lk(function(G){if(C!=null&&C()&&_.t("web_enable_arrow_key_navigation_in_dropdown")){var X=_.T7r(G.currentTarget),y=X.length;if(y!==0){var Z=Array.prototype.indexOf.call(X,document.activeElement);switch(G.key){case "ArrowDown":G.preventDefault();var E;(E=X[(Z+1)%y])==null||E.focus();break;case "ArrowUp":G.preventDefault();var P;(P=X[Z===-1?y-1:(Z-1+y)%y])==null||P.focus()}}}});
var M={};return _.D("yt-list-view-model",{class:_.xz("ytListViewModelHost",(M.ytListViewModelHostKaiosSpatNav=QZr&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",M.ytListViewModelCollectionThumbnailClass=function(){return eHr(x())},M)),
role:function(){return k()?"menu":"list"},
style:_.T7({"max-height":function(){var G,X=(G=x())==null?void 0:G.visibleElementCount;if(X)return eHr(x())?(X+.5)*48+"px":(X+.5)*40+"px"}}),
"on:keydown":O},_.D(_.MR,{data:function(){return x().listItems}},{listItemViewModel:function(G){return _.D(_.$H,{data:G.data,
isMenuItem:k,isCompact:e,hideSelectionTextChevron:l,inPopup:C,isOverlay:Q,disableHorizontalPadding:L})},
toggleableListItemViewModel:function(G){return _.D(y2p,{data:G.data})},
downloadListItemViewModel:function(G){return _.D(c2$,{data:G.data,isMenuItem:k,isCompact:e,inPopup:C,disableHorizontalPadding:L})},
switchListItemViewModel:function(G){return _.D(_.oDp,{data:G.data,disableHorizontalPadding:L})}}))},"de");
_.I3N.idomCompat=!0;var Vsz=_.K(function(O){var x=O.data;var e=O.isOverlay;O={};return _.D("yt-course-perks-view-model",{class:_.xz("ytwCoursePerksViewModelHost",(O.ytwCoursePerksViewModelHostOverlay=e,O))},_.D("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",null,_.D(_.F,{cond:function(){return x().perks},
then:function(l){return _.D(_.I3N,{data:function(){return{listItems:l()}},
isCompact:!0,isOverlay:e})}})))},"ee");_.wP(Vsz,"yt-course-perks-view-model",{props:{data:_.vs,isOverlay:_.vs}});_.wP(_.K(function(O){var x=O.data;return _.D("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.D("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.D(_.TT,{text:function(){return x().progressSummary}})),_.D("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.D("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.T7({width:function(){return x().progressPercentage*100+"%"}})})))},"fe"),"yt-course-progress-view-model",{props:{data:_.Ld}});var p6L=_.K(function(O){var x={};return _.D("yt-progress-view-model",{class:_.xz("ytwProgressViewModelHost",(x.ytwProgressViewModelHostOverlay=_.uH(O.isOverlay,!1),x))},_.D(_.F,{cond:function(){return O.data().progressSummary},
then:function(e){return _.D("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.D(_.TT,{text:e}))}}),_.D("div",{class:"ytwProgressViewModelHostProgressContainer"},_.D(_.F,{cond:function(){return O.data().leadingLabel},
then:function(e){return _.D("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.D(_.TT,{text:e}))}}),_.D("div",{class:"ytwProgressViewModelHostProgressBar"},_.D("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(O.data().progressPercentage||0)*100+"%"}}))))},"ge");var xP=_.K(function(O){var x=O.starNumber;var e=O.data;var l=function(){var C;return((C=e())==null?void 0:C.rating)||0};
return _.D(_.F,{cond:function(){return x()},
then:function(C){return _.D(_.KO,null,_.D(_.zn,{when:function(){return l()>=C()-.25}},function(){return _.D("div",{class:"ytStarRatingViewModelHostStar"},_.D(_.L7,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.D(_.zn,{when:function(){return l()>=C()-.75}},function(){return _.D("div",{class:"ytStarRatingViewModelHostStar"},_.D(_.L7,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.D(_.rz,null,function(){return _.D("div",{class:"ytStarRatingViewModelHostStar"},_.D(_.L7,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"he"),RA3=_.K(function(O){O=O.data;
return _.D("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.D(xP,{starNumber:1,data:O}),_.D(xP,{starNumber:2,data:O}),_.D(xP,{starNumber:3,data:O}),_.D(xP,{starNumber:4,data:O}),_.D(xP,{starNumber:5,data:O}))},"ie");_.wP(_.K(function(O){var x=_.YX(O,{}).data;return _.D("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.D("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.D(_.TT,{text:function(){var e;return(e=x())==null?void 0:e.title}})),_.D("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.D(_.F,{cond:function(){return x().starProgressViewModels},
then:function(e){return _.D("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.D(_.MR,{data:e},{progressViewModel:p6L}))}}),_.D("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.D("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.D(_.TT,{text:function(){var e;
return(e=x())==null?void 0:e.averageRatingLabel}})),_.D(_.F,{cond:function(){return x().zeroStateText},
then:function(e){return _.D("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.D(_.TT,{text:e}))}}),_.D(_.F,{cond:function(){return x().starRatingViewModel},
then:function(e){return _.D("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.D(_.MR,{data:e},{starRatingViewModel:RA3}))}}),_.D("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.D(_.TT,{text:function(){var e;
return(e=x())==null?void 0:e.totalRatingsCountLabel}})))))},"je"),"yt-course-ratings-view-model",{props:{data:_.vs}});var U1k;U1k={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"}};_.a3T=_.K(function(O){var x=_.Q5("yt-learning-journey-loader-view-model"),e=_.C5();_.u8(function(){requestAnimationFrame(function(){var C;(C=e.lottieEl)==null||C.addEventListener("DOMLoaded",function(){var Q;(Q=O.onLottieLoaded)==null||Q.call(O)})});
var l=O.data().browseEndpoint;l&&_.me(l)});
return _.D("yt-learning-journey-loader-view-model",{class:_.xz("learningJourneyLoaderViewModelHost",O.className),"data-target-id":function(){var l;return((l=O.data)==null?void 0:l.call(O).targetId)||""},
el:x},_.D(_.hc,{className:_.xz("learningJourneyLoaderViewModelLoader",O.className),animationName:function(){return U1k.animationConfig.name},
data:U1k,animationRef:e}))},"le");_.wP(_.a3T,"yt-learning-journey-loader-view-model",{props:{data:_.Ld,className:_.vs,onLottieLoaded:_.vs}});var CCs=new Set,loN=null;var m1$=_.K(function(O){var x=void 0,e=function(){return O.data()},l=function(){return!!G_(MS(e())).optionColor},C=_.T(_.Iw(-1,void 0,"Oxve9b")),Q=C.next().value,L=C.next().value,k=function(y){return e().correctAnswerIndex===y},M=function(){return Q()!==-1};
C=_.T(_.Iw("",void 0,"DZG7ze"));var G=C.next().value,X=C.next().value;return _.D("learning-journey-quiz-view-model",{class:_.xz("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",O.className),style:_.T7({background:function(){return G_(MS(e())).backgroundColor}})},_.D("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},G),_.D(_.F,{cond:function(){return!!e().video},
then:function(){return _.D("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.T7({background:function(){return G_(MS(e())).videoBackgroundColor}})},_.D(_.MR,{data:function(){return e().video}},{lockupViewModel:function(y){return _.D(_.UL,{data:y.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.D("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.D("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.D("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.D(_.F,{cond:function(){return!!e().aiGeneratedQuizLabel},
then:function(){return _.D("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.D(_.TT,{text:function(){return e().aiGeneratedQuizLabel}}))}}),_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.T7({"align-items":function(){return e().overflowMenu?"start":"center"}})},_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.T7({"min-height":function(){return e().overflowMenu?"48px":"26px"}})},_.D("div",{class:"learningJourneyQuizYoututorText",
style:_.T7({color:function(){return G_(MS(e())).primaryTextColor}})},_.D(_.TT,{text:function(){return e().questionHeaderText}})))),_.D("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.T7({color:function(){return G_(MS(e())).secondaryTextColor}})},_.D(_.TT,{text:function(){var y=e();
return M()?y.explanationText:y.questionSubheaderText}}))),_.D("div",{role:"group",
class:_.xz("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.D(_.HE,{each:function(){return e().optionsData||[]}},function(y,Z){var E={};
return _.D("button",{class:_.xz("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(E.learningJourneyQuizViewModelHostQuizHover=function(){return!M()},E.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=l,E.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return M()&&k(Z())},E.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var P;
if(P=Q()!==e().correctAnswerIndex)P=Z(),P=Q()===P;return P},E)),
"on:click":_.lk(function(){if(M())return!1;L(Z());var P,U;X(k(Z())?((P=e().successTitle)==null?void 0:P.content)||"":((U=e().failureTitle)==null?void 0:U.content)||"");return!1}),
style:_.T7({background:"transparent"}),"aria-description":function(){var P,U;return M()?k(Z())?(P=e().successTitle)==null?void 0:P.content:(U=e().failureTitle)==null?void 0:U.content:""},
"aria-disabled":M,el:_.Y0(function(P){_.Ai(271905,P,x,function(U){x=U})}),
"client-ve-type":271905},_.D("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.D(_.TT,{text:y.optionText}),_.D(_.F,{cond:function(){var P=Z(),U;if(U=M())U=Q()===P||k(P);return U},
then:function(){var P={};return _.D(_.L7,{className:_.xz("learningJourneyQuizYoututorOptionIcon",(P.learningJourneyQuizViewModelHostQuizPulse=function(){return Q()===e().correctAnswerIndex&&k(Z())},P)),
size:24,icon:function(){return k(Z())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.D(_.F,{cond:M,
then:function(){return _.D("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.D("div",{class:"learningJourneyQuizYoututorExplanationText"},_.D(_.TT,{text:function(){return e().explanationHeaderText}})),_.D(_.TT,{text:function(){return e().optionsData[Q()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"me");
m1$.idomCompat=!0;var sop;_.Wk2=_.K(function(O){var x=null,e=null,l=null,C=function(){return O.data()},Q=function(){var u=C();
var Y=_.GG().resolve(_.D0(_.rP));u=Y!=null&&Y()?u.darkThemeColorPalette:u.lightThemeColorPalette;return{primaryTextColor:FG(u,0),secondaryTextColor:FG(u,1),optionColor:FG(u,2),backgroundColor:FG(u,3),videoBackgroundColor:FG(u,4)}},L=function(){return!!Q().optionColor},k=_.T(_.Iw(-1,void 0,"QDu8Oe")),M=k.next().value,G=k.next().value,X=function(u){return M()===u},y=function(u){return C().correctAnswerIndex===u},Z=function(){return M()!==-1},E=function(){return M()===C().correctAnswerIndex},P=function(){var u=
C(),Y=Z(),J=E();
return Y?J?u.successTitle:u.failureTitle:u.questionHeaderText},U=function(){var u=Z(),Y=E();
return u?Y?264685:264684:264683},W=function(){var u=C();
return Z()?u.explanationText:u.questionSubheaderText},z=function(){return!!C().video},r=function(u){return E()&&y(u)},f=_.lk(function(){G(-1);
return!1});
return _.D(_.F,{cond:function(){return C().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.D(m1$,{data:function(){return C()}})},
else:function(){return _.D("learning-journey-quiz-view-model",{class:_.xz("learningJourneyQuizViewModelHost",O.className),style:_.T7({background:function(){return Q().backgroundColor}})},_.D(_.F,{cond:z,
then:function(){return _.D("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.T7({background:function(){return Q().videoBackgroundColor}})},_.D(_.MR,{data:function(){return C().video}},{lockupViewModel:function(u){return _.D(_.UL,{data:u.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.D("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.D("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.D("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.D(_.F,{cond:function(){return!!C().aiGeneratedQuizLabel},
then:function(){return _.D("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.D(_.TT,{text:function(){return C().aiGeneratedQuizLabel}}))}}),_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.T7({"align-items":function(){return C().overflowMenu?"start":"center"}})},_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.T7({"min-height":function(){return C().overflowMenu?"48px":"26px"}})},_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Y0(function(u){_.Ai(U(),u,x,function(Y){x=Y})}),
style:_.T7({color:function(){return Q().primaryTextColor}}),
"client-ve-type":U},_.D(_.TT,{text:P}))),_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.D(_.F,{cond:Z,then:function(){return _.D("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Y0(function(u){_.Ai(264687,u,e,function(Y){e=Y})}),
"on:click":f,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.D("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.T7({fill:function(){return Q().primaryTextColor}})},_.D("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"})))}}),
_.D(_.MR,{data:function(){return C().overflowMenu}},{buttonViewModel:function(u){return _.D(_.RV,{data:u.data})}}))),_.D("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Y0(function(u){_.Ai(264688,u,l,function(Y){l=Y})}),
style:_.T7({color:function(){return Q().secondaryTextColor}}),
"client-ve-type":264688},_.D(_.TT,{text:W}))),_.D("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.D(_.HE,{each:function(){return C().optionsData||[]}},function(u,Y){var J={};
return _.D("button",{class:_.xz("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(J.learningJourneyQuizViewModelHostQuizHover=function(){return!Z()},J.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=L,J.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return r(Y())},J.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!E()&&X(Y())},J.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Z()&&
!X(Y())},J)),
"on:click":_.lk(function(){if(Z())return!1;G(Y());return!1}),
style:_.T7({background:function(){var O8=Y();return Z()&&X(O8)?"":L()?Q().optionColor:"transparent"}}),
"aria-disabled":Z,"client-ve-type":264686},_.D("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.D(_.F,{cond:Z,then:function(){return _.D(sop,{isOptionCorrect:y,optionIndex:Y,isOptionSelectedAndCorrect:r,colors:Q})}}),_.D(_.TT,{text:u.optionText})))})))))}})},"ne");
sop=_.K(function(O){var x={};return _.D("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var e=O.optionIndex();return O.isOptionCorrect(e)?"0 0 24 24":"0 -960 960 960"},
class:_.xz("learningJourneyQuizViewModelHostQuizOptionIconLeading",(x.learningJourneyQuizViewModelHostQuizPulse=function(){return O.isOptionSelectedAndCorrect(O.optionIndex())},x)),
style:_.T7({fill:function(){return O.colors().primaryTextColor}})},_.D("path",{d:function(){var e=O.optionIndex();
return O.isOptionCorrect(e)?"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"}}))},"oe");
_.Wk2.idomCompat=!0;_.wP(_.Wk2,"learning-journey-quiz-view-model",{props:{data:_.Ld,className:_.Ld}});var hAk=_.K(function(O){var x=_.T((0,_.Nm2)(function(){var L;return{targetId:(L=O.data().config)==null?void 0:L.suspenseKey,contents:[O.data()]}})).next().value,e=_.GG().resolve(_.Xc),l=function(){var L=x().contents.length>0?x().contents[0]:void 0;
return L==null?void 0:L.config},C=function(){var L;
return(L=l())==null?void 0:L.entityTriggerConfig},Q=_.L5(AVr,function(){var L,k;
return(k=(L=C())==null?void 0:L.entityKey)!=null?k:""});
_.uo(function(){var L,k,M,G=(M=Number((L=C())==null?void 0:(k=L.invalidationTimestamp)==null?void 0:k.seconds))!=null?M:0,X,y,Z;if(((Z=Number((X=Q())==null?void 0:(y=X.lastUpdated)==null?void 0:y.seconds))!=null?Z:0)>G){var E;(L=(E=l())==null?void 0:E.continuationCommand)&&e.resolveCommand(L)}},"FaC8z");
return _.D("yt-suspense-view-model",{class:_.xz("ytSuspenseViewModelHost")},_.D(_.MR,{data:function(){var L;return(L=l())==null?void 0:L.contents}},{lockupViewModel:_.UL}))},"qe");var zAd=_.K(function(O){var x=_.YX(O,{palette:void 0,isLastItem:!1}),e=x.palette,l=x.isLastItem,C=function(){return O.data().isHighlighted},Q=function(){var M;
return bXV((M=e())==null?void 0:M.iconDisabledColor)},L=function(){var M;
return bXV((M=e())==null?void 0:M.primaryTitleColor)},k=function(){var M;
return bXV((M=e())==null?void 0:M.secondaryTitleColor)};
x={};return _.D("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Y0(_.P8(function(){return O.data().rendererContext}))},_.D(_.MR,{data:function(){return O.data().thumbnail}},{thumbnailViewModel:_.o4}),_.D("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.D("div",{class:_.xz("ytMacroMarkerListItemViewModelTimeDescription",(x.ytMacroMarkerListItemViewModelHighlighted=C,x)),
style:_.T7({"background-color":function(){return C()?L():Q()},
color:function(){return C()?"":k()}})},_.D(_.TT,{text:function(){return O.data().timestamp}})),_.D("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.T7({"background-color":function(){return l()?"transparent":Q()}})}),_.D("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(C()?L():k())}},_.D(_.TT,{text:function(){return O.data().title}}))))},"re");_.eB=_.K(function(O){function x(Tr){r("transform:translateX("+(_.wz("HTML_DIR")==="rtl"?"":"-")+Tr+"px)")}
function e(Tr){return Math.min(Math.max(Tr,0),z()-O8())}
function l(){var Tr=Y()+Zn();return C()?(Math.round(O8()/Tr)||1)*Tr:0}
var C=function(){return O.data().items||[]},Q=function(){return O.data().previousButton},L=function(){return O.data().nextButton},k=function(){var Tr,QR;
return(QR=(Tr=O.disableArrows)==null?void 0:Tr.call(O))!=null?QR:!1},M=function(){var Tr;
return!((Tr=O.forceNarrowLayout)==null||!Tr.call(O))},G=_.aw(function(){var Tr;
return!((Tr=O.centerAlignItems)==null||!Tr.call(O))&&z()<=O8()},void 0,"Uto0kc"),X=_.Q5("horizontal-shelf-view-model"),y=_.Q5("div"),Z=_.T(_.Iw(0,void 0,"G0xZB")),E=Z.next().value,P=Z.next().value;
Z=_.T(_.Iw(0,void 0,"kqCYFf"));var U=Z.next().value,W=Z.next().value,z=U;U=_.T(_.Iw("",void 0,"Hh6Uye"));Z=U.next().value;var r=U.next().value;U=_.T(_.Iw(0,void 0,"yMGBKb"));var f=U.next().value,u=U.next().value,Y=f;U=_.T(_.Iw(0,void 0,"VChthd"));f=U.next().value;var J=U.next().value,O8=f;U=_.T(_.Iw(!1,void 0,"qJlhhe"));var Xr=U.next().value,Fr=U.next().value;U=_.T(_.Iw(0,void 0,"x7H94"));f=U.next().value;var mL=U.next().value,Zn=f;U=_.T(_.Iw(0,void 0,"ksuUee"));var q$=U.next().value,KV=U.next().value;
U=_.T(_.Iw("50%",void 0,"uxCxde"));var VN=U.next().value,Pd=U.next().value,f2=function(){var Tr,QR=(Tr=O.data())==null?void 0:Tr.responsiveContainerConfiguration,ET,Q$;return QR?hdn(QR==null?void 0:QR.responsiveSize):(Q$=(ET=O.sizing)==null?void 0:ET.call(O))!=null?Q$:"STANDARD"};
U=_.aw(function(){return!k()&&E()>0},void 0,"XK60w");
f=_.aw(function(){return!k()&&E()<z()-O8()},void 0,"D22LVd");
var p2=function(){P(e(E()-l()));x(E())},OT=function(){P(e(E()+l()));
x(E())},Gp=function(){X.value!==null&&m3()},zp;
_.YK(function(){m3();window.ResizeObserver?(zp=new ResizeObserver(_.yf(Gp,0)),zp.observe(X.value)):window.addEventListener("resize",Gp)});
_.YO(function(){if(window.ResizeObserver){var Tr;(Tr=zp)==null||Tr.disconnect()}else window.removeEventListener("resize",Gp)});
var m3=function(){var Tr=X.value.clientWidth,QR=O.includeMargin!==void 0?O.includeMargin():!1,ET;var Q$=O.hasPeek!==void 0?O.hasPeek():!((ET=O.data())==null||!ET.hasPeek);Tr=_.Rt({containerWidth:Tr,hasPeek:Q$,sizing:f2(),marginSettings:QR?M()?4:1:0});mL(Tr.gutter);KV(Tr.margin);u(Tr.itemWidth);Fr(Tr.maxContainerWidth<528||M());J(Tr.maxContainerWidth);C()&&W((Tr.itemWidth+Tr.gutter)*C().length-Tr.gutter);if(C()){var tJ;if(((tJ=O.thumbnailAspectRatio)==null?void 0:tJ.call(O))!==void 0){var CQ;Pd(Y()/
BZr((CQ=O.thumbnailAspectRatio)==null?void 0:CQ.call(O))/2+"px")}else Pd("50%")}},E4={},Xw={};
return _.D("horizontal-shelf-view-model",{class:_.xz("ytwHorizontalShelfViewModelHost",O.className),el:X},_.D(_.F,{cond:function(){var Tr;return O.data().header&&!((Tr=O.horizontalShelfExperiments)==null?0:Tr.call(O).hideHeader)},
then:function(){return _.D("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.T7({width:function(){return O8()+"px"},
padding:function(){return"0 "+q$()+"px"}})},_.D(_.MR,{data:function(){return O.data().header}},{sectionHeaderViewModel:function(Tr){return _.D(_.ak,{data:Tr.data,
disableHorizontalPadding:!0,forceSmallLayout:Xr,useResponsiveLayout:!0})}}))}}),_.D("div",{class:_.xz("ytwHorizontalShelfViewModelOuterContainer",(E4.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return G()},E4)),
style:_.T7({"margin-top":function(){var Tr,QR=O.data().header&&!((Tr=O.horizontalShelfExperiments)==null?0:Tr.call(O).hideHeader),ET;return(((ET=O.ensureMarginTop)==null?0:ET.call(O))&&!QR?12:0)+"px"}})},_.D("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.T7({width:function(){return O8()+"px"},
padding:function(){return"0 "+q$()+"px"},
overflow:function(){return k()?"auto":"hidden"}})},_.D("div",{class:_.xz("ytwHorizontalShelfViewModelItems",(Xw.ytwHorizontalShelfViewModelCenterAlignItems=function(){return G()},Xw)),
el:y,style:Z},_.D(_.MR,{data:C},{macroMarkerListItemViewModel:function(Tr,QR){return _.D("div",{style:_.T7({width:function(){return Y()+"px"},
"margin-right":function(){return(QR()===C().length-1?0:Zn())+"px"}})},_.D(zAd,{data:Tr.data,
palette:_.uH(O.palette),isLastItem:function(){return QR()===C().length-1}}))},
lockupViewModel:function(Tr,QR){var ET=Tr.data;return _.D("div",{style:_.T7({width:function(){return Y()+"px"},
"margin-right":function(){return(QR()===C().length-1?0:Zn())+"px"}})},_.D(_.UL,{data:ET,
containerType:4,sizing:f2,protectBackground:O.protectBackground,thumbnailFixedWidth:function(){return TRV(ET())+"px"},
thumbnailTargetWidth:function(){return TRV(ET())}}))},
suspenseViewModel:function(Tr,QR){return _.D("div",{style:_.T7({width:function(){return Y()+"px"},
"margin-right":function(){return(QR()===C().length-1?0:Zn())+"px"}})},_.D(hAk,{data:Tr.data}))}}))),_.D(_.F,{cond:U,
then:function(){return _.D("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.T7({top:function(){return VN()}})},_.D(_.MR,{data:Q},{buttonViewModel:function(Tr){return _.D(_.RV,{data:Tr.data,
onClick:p2})}}))}}),_.D(_.F,{cond:f,
then:function(){return _.D("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.T7({top:function(){return VN()}})},_.D(_.MR,{data:L},{buttonViewModel:function(Tr){return _.D(_.RV,{data:Tr.data,
onClick:OT})}}))}})))},"se");
_.eB.idomCompat=!0;var r2F=_.K(function(O){var x=function(){return O.data().targetId||""},e=function(){var U;
return((U=O.data())==null?void 0:U.expansionEntityKey)||""},l=_.L5(_.k9L,e),C=!0,Q=function(){var U;
return((U=l())==null?void 0:U.value)===x()},L=function(U){_.ns(_.Dc("stringEntity",e(),{key:e(),
value:U?x():""}))};
_.u8(function(){C=!1;O.data().isExpanded&&L(!0)});
var k=function(){if(Q()){var U=!0;O.onCollapse!==void 0&&(U=O.onCollapse());U&&L(!1)}else L(!0)},M=_.lk(k),G=function(){var U;
return(((U=O.accordionStyle)==null?void 0:U.call(O))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},X=_.Q5("div"),y=function(){var U,W;
return(W=(U=_.q(O.data().rendererContext,_.LM))==null?void 0:U.label)!=null?W:""},Z=function(){var U,W;
return{disabled:(U=O.hideIfNotExpanded)==null?void 0:U.call(O),ariaHidden:(W=O.hideIfNotExpanded)==null?void 0:W.call(O)}},E={},P={};
return _.D("yt-accordion-item-view-model",{class:_.xz("ytAccordionItemViewModelHost",O.className,(E.ytAccordionItemViewModelExpanded=function(){return Q()},E.ytAccordionItemViewModelHidden=function(){var U;
return(U=O.hideIfNotExpanded)==null?void 0:U.call(O)},E.ytAccordionItemViewModelMini=G,E)),
"data-target-id":x},_.D("div",{class:"ytAccordionItemViewModelContainer"},_.D("div",{class:"ytAccordionItemViewModelLeftSection","on:click":M,title:y,"aria-hidden":function(){var U;return(U=O.hideIfNotExpanded)==null?void 0:U.call(O)}},_.D(_.TT,{text:function(){return O.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:y})),_.D("div",{class:"ytAccordionItemViewModelRightSection"},_.D(_.MR,{data:function(){return Q()?O.data().expandButton:O.data().collapseButton}},{buttonViewModel:function(U){return _.D(_.RV,{data:U.data,
className:"ytAccordionItemViewModelToggleButton",onClick:k,buttonOverrides:Z})}}))),_.D("div",{class:"ytAccordionItemViewModelContainer"},_.D("div",{class:_.xz("ytAccordionItemViewModelContent",(P.ytAccordionItemViewModelExpandedSubtitle=function(){return Q()},P)),
el:X,style:_.T7({"max-height":function(){return C?"auto":Q()?X.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!Q()}},_.D(_.F,{cond:function(){return!G()},
then:function(){return _.D(_.TT,{text:function(){return O.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.D(_.MR,{data:function(){return O.data().content}},{horizontalShelfViewModel:function(U){return _.D(_.eB,{data:U.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ue");_.HHp=_.K(function(O){var x=_.T((0,_.Nm2)(O.data)).next().value,e=function(){return O.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},l=function(){return e()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},C=_.T(_.Iw(!0,void 0,"AbejLb")),Q=C.next().value,L=C.next().value,k=function(){return l()&&Q()},M=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){L(!Q())}}},G=_.lk(function(){x().onTitleTap&&_.me(x().onTitleTap||{})});
C={};return _.D("yt-accordion-view-model",{class:_.xz("ytAccordionViewModelHost",(C.ytAccordionViewModelMinimized=function(){return k()},C)),
"data-target-id":function(){return O.data().targetId||""}},_.D(_.F,{cond:function(){return l()||!!x().title},
then:function(){return _.D("div",{class:"ytAccordionViewModelHeader"},_.D("div",{class:"ytAccordionViewModelTitleSection"},_.D("div",{class:"ytAccordionViewModelTitleWrapper"},_.D(_.F,{cond:function(){return!!O.data().headerIcon},
then:function(){return _.D(_.L7,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var X;return(X=O.data().headerIcon)==null?void 0:X.iconType}})}}),_.D("div",{class:"ytAccordionViewModelTitle",
"on:click":G},_.D(_.TT,{className:"ytAccordionViewModelTitleText",text:function(){return x().title}})))),_.D("div",{class:"ytAccordionViewModelButtonSection"},_.D(_.F,{cond:l,
then:function(){return _.D(_.pd,{data:M,iconName:function(){return k()?"chevron_down":"chevron_collapse"}})}})))}}),_.D("div",{class:"ytAccordionViewModelContent"},_.D(_.MR,{data:function(){return x().contents}},{accordionItemViewModel:function(X){return _.D(r2F,{data:X.data,
className:"ytAccordionViewModelRow",accordionStyle:e,hideIfNotExpanded:k,onCollapse:function(){return l()?(L(!0),!1):!0}})}})),_.D("div",null,_.D(_.F,{cond:function(){return!l()&&(!!x().disclaimerFooter||!!x().footer)},
then:function(){return _.D("div",{class:"ytAccordionViewModelFooter"},_.D(_.TT,{text:function(){return x().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.D(_.MR,{data:function(){return O.data().footer}},{flexibleActionsViewModel:function(X){return _.D(_.g8,{data:X.data,
layout:0})}}))}})))},"ve");_.wP(_.HHp,"yt-accordion-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=null,e=null,l,C=(l=_.GG().resolve(_.D0(_.rP)))==null?void 0:l(),Q=_.T(_.Iw(!1,void 0,"h3atzd"));l=Q.next().value;var L=Q.next().value;Q=_.T(_.Iw(!0,void 0,"UTh8db"));var k=Q.next().value,M=Q.next().value,G=_.Q5("textarea",function(W){_.Ai(264503,W,x,function(z){x=z})}),X=function(W){L(!0);
W={learningJourneyFormData:{query:W}};_.me(O.data().searchEndpoint||{},{form:{formData:W}});return!1},y=_.lk(function(W){W.target.closest("button-view-model")&&L(!0)});
Q=_.lk(function(){M(G.value.value.length===0)});
var Z=_.lk(function(W){if(W.key==="Enter"&&!W.shiftKey&&!k()){var z=W.target;W.preventDefault();X(z.value)}}),E={},P={},U={};
return _.D("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.D("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.D(_.n_,{data:function(){return O.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.D("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.D("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.D("div",{class:_.xz("ytLearningJourneyZeroStateSearchBar",(E.ytLearningJourneyZeroStateSearchBarDark=C,E))},_.D("textarea",{class:_.xz("ytLearningJourneyZeroStateTextInput",(P.ytLearningJourneyZeroStateTextInputDark=C,P)),el:G,"on:keyup":Q,"on:keydown":Z,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.D("div",{class:_.xz("ytLearningJourneyZeroStateSearchButtonContainer",(U.ytLearningJourneyZeroStateSearchButtonContainerDark=C,U))},_.D(_.RV,{data:function(){return _.q(O.data().searchButton,_.gf)},
className:"search-button",onClick:function(){return X(G.value.value)},
buttonOverrides:function(){return{disabled:k(),style:C?"mono-inverse":"mono",size:"XL"}}}))),_.D(_.F,{cond:function(){return!!O.data().errorBanner},
then:function(){return _.D("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Y0(function(W){_.Ai(264617,W,e,function(z){e=z})})},_.D(_.MR,{data:function(){return O.data().errorBanner}},{alertBannerViewModel:function(W){return _.D(_.C$T,{data:W.data,
"client-ve-type":264617})}}))}})),_.D(_.F,{cond:l,
then:function(){return _.D("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.D(_.MR,{data:function(){return O.data().loader}},{learningJourneyLoaderViewModel:function(W){return _.D(_.a3T,{data:W.data})}}))},
else:function(){return _.D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.D(_.F,{cond:function(){return!!O.data().learningJourneyShelf},
then:function(){return _.D("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.D("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return O.data().learningJourneySectionTitle}),_.D(_.MR,{data:function(){return O.data().learningJourneyShelf}},{horizontalShelfViewModel:function(W){return _.D(_.eB,{data:W.data,
centerAlignItems:!0})}}))}}),_.D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.D("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return O.data().suggestedJourneySectionTitle}),_.D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":y},_.D(_.MR,{data:function(){return O.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(W){return _.D(_.g8,{data:W.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"we"),"yt-learning-journey-zero-state",{props:{data:_.Ld}});var KkJ=_.K(function(O){var x=O.data;return _.D("ytvl-live-leaderboard-item-action-content-view-model",{class:_.xz("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.D(_.TT,{text:function(){var e;return(e=x())==null?void 0:e.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.D(_.MR,{data:function(){return x().actionButton}},{buttonViewModel:function(e){return _.D(_.RV,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:e.data})}}))},"xe");var d1d=_.K(function(O){var x=O.data;return _.D("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.xz("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.D(_.TT,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var e;return(e=x())==null?void 0:e.displayName},
ellipsisTruncate:!0}),_.D(_.MR,{data:function(){return x().badge}},{buttonViewModel:function(e){return _.D(_.RV,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:e.data})}}))},"ye");_.wP(_.K(function(O){var x=O.data;return _.D("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.D("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.D(_.TT,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var e;return(e=x())==null?void 0:e.rank}})),_.D("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ})),_.D("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.D(_.MR,{data:function(){return x().content}},{liveLeaderboardItemChannelContentViewModel:d1d,
liveLeaderboardItemActionContentViewModel:KkJ})),_.D(_.TT,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var e;return(e=x())==null?void 0:e.points}}))},"ze"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;return _.D("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.D(_.TT,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var e,l;return(e=x())==null?void 0:(l=e.ranking)==null?void 0:l.rank}}),_.D("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ})),_.D(_.TT,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var e,l;return(e=x())==null?void 0:(l=e.channelContent)==null?void 0:l.channelName}}),_.D(_.TT,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var e;return(e=x())==null?void 0:e.points}}))},"Ae"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Ld}});var nDR=_.K(function(O){O=_.YX(O,{wrapper:!1}).wrapper;return _.D(_.F,{cond:O,then:function(){return _.D("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.D("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.D("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Be");
nDR.idomCompat=!0;var uPN=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Y$z=_.K(function(O){var x=O.data;var e=_.Y0(),l=_.aw(function(){return x().command},void 0,"fyYsT");
_.uo(function(){l()&&_.Rl(l(),{form:{element:e.value}})},"B0nxdb");
return _.D("div",{el:e,class:"YtQrCodeRendererHostContainer"},_.D(_.F,{cond:function(){return x().qrCodeImage},
then:function(C){return _.D(_.n_,{data:C,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.D(_.F,{cond:function(){return x().spinner},
then:function(){return _.D(nDR,null)}})}}),_.D(_.F,{cond:function(){return x().label},
then:function(C){return _.D(_.TT,{text:C,className:"YtQrCodeRendererHostLabel"})}}),_.D(_.F,{cond:function(){return x().labels},
then:function(C){return _.D("div",{class:"YtQrCodeRendererHostLabels"},_.D(_.HE,{each:C},function(Q){return _.D(_.TT,{text:Q})}))}}))},"Ee");_.wP(_.K(function(O){var x=O.data;var e=_.aw(function(){return x().qrEntityKey},void 0,"M0PrY"),l=_.aw(function(){return x().deleteEntityOnDismiss},void 0,"QZa4g"),C=_.aw(function(){return x().command},void 0,"wEOxUe"),Q=_.L5(VrL,e);
O=_.aw(function(){return x().qrCodeImage},void 0,"UO5oub");
var L=_.aw(function(){return x().style&&uPN.includes(x().style)},void 0,"Op9kZd"),k=_.F6({visibilityCallback:function(M){M&&C()&&_.Rl(C())},
showOption:{calledOnce:!0,state:"visible"}});_.YK(function(){_.YO(function(){l()&&e()&&_.dq().dispatch(_.Dc("qrCodeEntity",e()))})});
return _.D("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Y0(k)},_.D(_.F,{cond:L,then:function(){return _.D(_.F,{cond:Q,then:function(M){return _.D(Y$z,{data:M})}})}}),_.D(_.F,{cond:O,
then:function(M){return _.D(_.n_,{data:M,alt:""})}}))},"Ce"),"yt-qr-code-renderer",{props:{data:_.Ld}});var vDD=_.K(function(O){var x=function(){return _.aF(1728053247&(O.barColor!==void 0?CM(O.barColor()):4278190080))};
return _.D("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.D(BB2,{animationDelay:0,percentWidth:100,barColor:function(){return x()}}),_.D("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.D("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+x()}})),_.D(BB2,{animationDelay:0,
percentWidth:100,barColor:function(){return x()}}),_.D(BB2,{animationDelay:600,
percentWidth:60,barColor:function(){return x()}}))},"Fe"),BB2=_.K(function(O){return _.D("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+O.percentWidth()+"%"}},_.D("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var x=O.animationDelay(),e=O.barColor();return"animation-delay:"+x+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+e+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ge");var f3T;_.J2T=_.K(function(O){function x(W){L(W)}
var e=O.data;var l=_.Q5("yt-video-overview-view-model"),C=_.bD("div");O=_.T(_.Iw(-1,void 0,"qaDSu"));var Q=O.next().value,L=O.next().value;O=_.T(_.Iw(0,void 0,"Vz681c"));var k=O.next().value,M=O.next().value,G={},X=_.L5(LJs,function(){return e().asyncDataEntityKey}),y=function(){var W;
if((W=X())==null?0:W.videoOverviewViewModel){var z;return _.q((z=X())==null?void 0:z.videoOverviewViewModel,Cnk)}return e()};
_.YK(function(){M(Math.min((l.value.clientWidth-24)/4-8,72))});
var Z=function(W){L(W);(C==null?0:C.value)&&C.value.children[W]&&C.value.children[W].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
qk7(l,function(){var W;if((W=y())==null||!W.inlinePlaybackEndpoint)return null;var z;W=G==null?void 0:(z=G.thumbnailElRef)==null?void 0:z.value;if(!W)return null;var r;z=(r=y())==null?void 0:r.inlinePlaybackEndpoint;r=_.q(z,qFk);return{multipleVideoPreviewData:{data:(r==null?0:r.playerDescriptors)&&(r==null?0:r.playerDescriptors.length)?r.playerDescriptors:[],thumbnailElement:W,trackingParams:"test",callbacks:{onPlaybackStarted:Z},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var E=function(){var W;return((W=y())==null?void 0:W.headerSubtext)!==void 0?!0:!1},P=function(){var W,z=CM((W=y())==null?void 0:W.titleColor);
return z?"color: "+_.aF(z)+";":void 0},U=function(){var W,z=CM((W=y())==null?void 0:W.subtextColor);
return z?"color: "+_.aF(z)+";":void 0};
return _.D("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:l,style:function(){var W,z=CM((W=y())==null?void 0:W.backgroundColor);return z?"background-color: "+_.aF(z)+";":void 0}},_.D(_.F,{cond:function(){var W;
return(W=y())==null?void 0:W.isLoading},
then:function(){return _.D(vDD,{barColor:function(){var W;return(W=y())==null?void 0:W.titleColor}})},
else:function(){return _.D(_.Xm,null,_.D("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.D("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return P()}},_.D(_.TT,{text:function(){var W;
return(W=y())==null?void 0:W.headerText}})),_.D(_.F,{cond:E,
then:function(){return _.D("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.D("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return U()}},_.D(_.L7,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.D("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return U()}},_.D(_.TT,{text:function(){var W;
return(W=y())==null?void 0:W.headerSubtext}})))}})),_.D("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.D(_.MR,{data:function(){var W;
return(W=y())==null?void 0:W.thumbnail}},{thumbnailViewModel:function(W){return _.D(_.o4,{data:W.data,
aspectRatio:0,playbackRef:ZPN(G)})}})),_.D(_.F,{cond:function(){var W,z,r,f;
return((W=y())==null?void 0:(z=W.listItems)==null?void 0:z.length)!==void 0&&((r=y())==null?void 0:(f=r.listItems)==null?void 0:f.length)>0?!0:!1},
then:function(){return _.D("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:C},_.D(_.HE,{each:function(){var W;return(W=y())==null?void 0:W.listItems}},function(W,z){return _.D(f3T,{image:W.image,
index:z,isSelected:function(){return z()===Q()},
onClick:x,itemWidth:k})}))}}),_.D("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.D("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return P()}},_.D(_.TT,{text:function(){var W,z,r,f,u,Y,J;
return(J=(W=y())==null?void 0:(z=W.listItems)==null?void 0:(r=z[Q()])==null?void 0:r.headline)!=null?J:(f=y())==null?void 0:(u=f.listItems)==null?void 0:(Y=u[0])==null?void 0:Y.headline}})),_.D("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return U()}},_.D(_.TT,{text:function(){var W,z,r,f,u,Y,J;
return(J=(W=y())==null?void 0:(z=W.listItems)==null?void 0:(r=z[Q()])==null?void 0:r.subtext)!=null?J:(f=y())==null?void 0:(u=f.listItems)==null?void 0:(Y=u[0])==null?void 0:Y.subtext}}))))}}))},"He");
f3T=_.K(function(O){var x=O.image;var e=O.itemWidth;var l=O.index;var C=O.isSelected;var Q=O.onClick;O=_.lk(function(){l!==void 0&&Q!==void 0&&Q(l());return!1});
var L={};return _.D("div",{class:_.xz("ytGenAiVideoOverviewViewModelCarouselItem",(L.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return C==null?void 0:C()},L)),
style:function(){return"width: "+e()+"px;"},
"on:click":O},_.D(_.n_,{data:x,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.D(_.F,{cond:function(){return C==null?void 0:C()},
then:function(){return _.D("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.D("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ie");
_.J2T.idomCompat=!0;_.wP(_.J2T,"yt-video-overview-view-model",{props:{data:_.Ld}});_.w62=_.K(function(O){var x=O.data;var e=O.topbarOffset;var l,C=((l=_.GG().resolve(_.D0(_.rP)))==null?void 0:l())||!1;return _.D("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var Q=x();var L,k,M=C?(L=Q.config)==null?void 0:L.darkThemeBackgroundColor:(k=Q.config)==null?void 0:k.lightThemeBackgroundColor;Q=M?_.UA(M):void 0;Q="background-color: "+Q+";";e!==void 0&&(Q+="top: -"+e()+"px;");return Q},
"aria-hidden":!0},_.D(_.F,{cond:function(){var Q,L,k;return!!((Q=x().backgroundImageConfig)==null?0:(L=Q.image)==null?0:(k=L.sources)==null?0:k.length)},
then:function(){return _.D(_.n_,{data:function(){var Q;return(Q=x().backgroundImageConfig)==null?void 0:Q.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.D("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+kw8(C,x().gradientColorConfig)+";"}}))},"Je");
_.w62.idomCompat=!0;var S$4=_.K(function(O){var x=O.data;var e=O.isOverlay;return _.D("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.D("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.D(_.MR,{data:function(){return x().header}},{sectionHeaderViewModel:function(l){return _.D(_.ak,{data:l.data,
isOverlay:e})}})),_.D("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.D(_.MR,{data:function(){return x().channelInfoButtons}},{flexibleActionsViewModel:_.g8})),_.D("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.D(_.MR,{data:function(){return x().description}},{descriptionPreviewViewModel:function(l){return _.D(_.Uy,{data:l.data,
isOverlay:e})}})))},"Ke");
S$4.idomCompat=!0;var joJ=_.K(function(O){var x=O.data;var e={};return _.D("factoid-view-model",{class:_.xz("ytwFactoidViewModelHost",(e.ytwFactoidViewModelHostOverlay=O.isOverlay,e))},_.D(_.TT,{text:function(){return x().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.D(_.TT,{text:function(){return x().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Le");
joJ.idomCompat=!0;var NB4=_.K(function(O){var x=O.data;var e=O.isOverlay;return _.D("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.D(_.MR,{data:function(){return x().factoids}},{factoidViewModel:function(l){return _.D(joJ,{data:l.data,
isOverlay:e})}}))},"Me");
NB4.idomCompat=!0;_.gDF=_.K(function(O){var x=O.data;var e=O.isOverlay;return _.D("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.D(_.MR,{data:function(){return x().items}},{channelInfoViewModel:function(l){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(S$4,{data:l.data,
isOverlay:e}))},
coursePerksViewModel:function(l){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(Vsz,{data:l.data,isOverlay:e}))},
descriptionPreviewViewModel:function(l){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(_.Uy,{data:l.data,isOverlay:e}))},
factoidsRowViewModel:function(l){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(NB4,{data:l.data,isOverlay:e}))},
progressViewModel:function(l){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(p6L,{data:l.data,isOverlay:e}))}}))},"Ne");var $1z=_.K(function(O){return _.D("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.D(_.MR,{data:function(){return O.data().content}},{courseMetadataViewModel:function(x){return _.D(_.gDF,{data:x.data,
isOverlay:O.isOverlay})},
progressViewModel:function(x){return _.D(p6L,{data:x.data})}}))},"Oe");var iHJ=_.K(function(O){var x=O.data;O=O.className;var e=function(){var C;return _.qR((C=x())==null?void 0:C.rendererContext)},l={};
l=(l.dynamicTextViewModelHost=!0,l.dynamicTextViewModelHostTappable=function(){return e()},l);
return _.D("yt-dynamic-text-view-model",{el:_.Y0(_.P8(function(){var C;return(C=x())==null?void 0:C.rendererContext})),
role:function(){return e()?"link":void 0},
tabindex:function(){return e()?0:void 0},
class:_.xz(O,l)},_.D("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var C,Q,L;return(L=(Q=_.q((C=x())==null?void 0:C.rendererContext,_.LM))==null?void 0:Q.label)!=null?L:""}},_.D(_.TT,{text:function(){return x().text},
userInput:!0})))},"Pe");
iHJ.idomCompat=!0;_.li=_.K(function(O){var x=O.data;var e=O.isPositionRelative;var l=_.MFr("(max-width: 527.9px)"),C=function(){var Q,L;return(L=(Q=x())==null?void 0:Q.style)!=null?L:"IMAGE_BANNER_STYLE_FULL_BLEED"};
O={};return _.D("yt-image-banner-view-model",{el:_.Y0(_.P8(function(){var Q;return(Q=x())==null?void 0:Q.rendererContext})),
class:_.xz((O.ytImageBannerViewModelHost=!0,O.ytImageBannerViewModelInset=function(){return DWr(C())},O.ytImageBannerViewModelPositionAbsolute=function(){return _.vL(!0)&&!(e==null?0:e())},O.ytImageBannerViewModelSmallInset=function(){return DWr(C())&&l()},O.ytImageBannerViewModelTappable=function(){var Q;
return _.qR((Q=x())==null?void 0:Q.rendererContext)},O))},_.D(_.F,{cond:function(){var Q;
return(Q=x())==null?void 0:Q.image},
then:function(){return _.D(_.n_,{data:function(){return x().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.D(_.MR,{data:function(){var Q;
return(Q=x())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:SQ}))},"Qe");
_.li.idomCompat=!0;var OVL;OVL=_.K(function(O){var x=O.condition;var e=O.content;return _.D(_.F,{cond:x,then:function(){return _.D("div",{class:"yt-page-header-view-model__scroll-container"},e())},
else:function(){return e()}})},"Re");
_.x$T=_.K(function(O){var x=O.data;var e=O.noPadding;var l=O.enableBanner;var C=O.cinematicContainerTopbarOffset;var Q=O.allowCinematicContainerOverflow;var L=O.displayAsSidebar;var k=O.displayAsPanel;var M=O.alwaysUseMediumTextDescription;var G=Gww(),X=function(){return!!x().image||!!x().animatedImage},y=function(){return!!x().background},Z=function(){return(L==null?0:L())||(k==null?0:k())?1:G()},E=function(){return Z()===1},P=function(){return E()||Z()===2},U=function(){return Z()===4},W=function(){var q$=
x();
var KV=!!x().heroImage;var VN=Z(),Pd=FJ8(x()),f2=L==null?void 0:L(),p2=!q$.metadata,OT;if(OT=KV?_.q(q$.heroImage,N8d):_.q(q$.animatedImage||q$.image,N8d)){q$=OT.style;var Gp=OT.layoutMode;if(Gp!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(OT=Ssi(w5L(OT)),KV)KV=AWr(VN,q$,Gp,OT,f2);else b:if(p2)KV=VN===1?{size:48}:{size:72};else switch(VN){case 1:KV={size:72};break b;case 2:KV={size:120};break b;default:KV=Pd<4?{size:120}:{size:160}}else KV=void 0}else KV={size:0};return KV};
O={};O=_.xz((O["yt-page-header-view-model"]=!0,O["yt-page-header-view-model--no-padding"]=function(){return!(e==null||!e())},O["yt-page-header-view-model--small-top-padding"]=function(){return E()&&!x().actions&&!(k==null?0:k())||Z()===2&&!(X()||x().heroImage)},O["yt-page-header-view-model--small-bottom-padding"]=function(){return P()&&!x().actions&&!(k==null?0:k())},O["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(Q==null?0:Q())},O["yt-page-header-view-model--display-as-sidebar"]=
L,O));
var z={},r=_.xz((z["yt-page-header-view-model__page-header-headline"]=!0,z["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var q$;return(q$=W())==null?void 0:q$.allowFullWidth},z)),f=function(){var q$;
return P()&&!((q$=W())==null?0:q$.allowFullWidth)},u=function(){return E()&&(!!x().heroImage||X())&&FJ8(x())>0},Y=function(){return u()&&(k==null?void 0:k())};
z={};var J=_.xz((z["yt-page-header-view-model__page-header-title"]=!0,z["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!u()},z["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return u()&&!Y()},z["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=Y,z["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=y,z));
z={};var O8=_.xz((z["yt-page-header-view-model__page-header-headline-image"]=!0,z["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!x().heroImage&&P()},z));
z={};var Xr=_.xz((z["yt-page-header-view-model__page-header-banner-container"]=l,z["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var q$;return(l==null?void 0:l())&&((q$=_.q(x().banner,_.$A2))==null?void 0:q$.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},z));
z={};var Fr=_.xz((z["yt-page-header-view-model__page-header-content-metadata"]=!0,z["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=y,z));z={};var mL=_.xz((z["yt-page-header-view-model__page-header-flexible-actions"]=!0,z["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!x().metadata||P()},z["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!P()},z));
z={};var Zn=_.xz((z["yt-page-header-view-model__page-header-attribution"]=!0,z["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=y,z));return _.D("yt-page-header-view-model",{class:O},_.D(_.F,{cond:y,then:function(){return _.D("div",{class:"yt-page-header-view-model__page-header-background"},_.D(_.MR,{data:function(){return x().background}},{cinematicContainerViewModel:function(q$){return _.D(_.w62,{data:q$.data,
topbarOffset:C})}}))}}),_.D(OVL,{condition:function(){return!(L==null||!L())},
content:function(){return _.D("div",{class:"yt-page-header-view-model__page-header-content"},_.D(_.F,{cond:function(){return(l==null?void 0:l())&&x().banner},
then:function(){return _.D("div",{class:Xr},_.D(_.MR,{data:function(){return x().banner}},{imageBannerViewModel:_.li}))}}),_.D("div",{class:r},_.D(_.F,{cond:X,
then:function(){return _.D(_.MR,{data:function(){var q$;if(!(q$=x().animatedImage)){q$=x();if(X()){var KV=q$=Object.assign({},q$),VN=Z(),Pd=FJ8(x()),f2=KV.image,p2=_.q(f2,gw$),OT=p2==null?void 0:p2.avatar,Gp=_.q(OT,_.c8);if(f2&&OT&&Gp){switch(VN){case 1:Gp.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Gp.avatarImageSize="AVATAR_SIZE_XXL";break;default:Pd<4?Gp.avatarImageSize="AVATAR_SIZE_XXL":Gp.avatarImageSize="AVATAR_SIZE_XXXL"}_.qj(OT,_.c8,Object.assign({},Gp));p2.avatar=Object.assign({},OT);_.qj(f2,
gw$,Object.assign({},p2));KV.image=Object.assign({},f2)}}q$=q$.image}return q$}},{contentPreviewImageViewModel:function(q$){return _.D(_.qP,{data:q$.data,
className:O8,imageSizeConfig:W})},
decoratedAvatarViewModel:function(q$){return _.D(_.Nz,{data:q$.data,className:O8})}})}}),_.D(_.F,{cond:function(){return!!x().heroImage&&!f()},
then:function(){return _.D(_.MR,{data:function(){return x().heroImage}},{contentPreviewImageViewModel:function(q$){return _.D(_.qP,{data:q$.data,
className:O8,imageSizeConfig:W})}})}}),_.D("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.D(_.F,{cond:function(){return!!x().heroImage&&f()},
then:function(){return _.D("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.D(_.MR,{data:function(){return x().heroImage}},{contentPreviewImageViewModel:function(q$){return _.D(_.qP,{data:q$.data,
className:O8,imageSizeConfig:W})}}))}}),_.D(_.MR,{data:function(){return x().title}},{dynamicTextViewModel:function(q$){return _.D(iHJ,{data:q$.data,
className:J})}}),_.D(_.MR,{data:function(){return x().metadata}},{contentMetadataViewModel:function(q$){return _.D(_.c$,{data:q$.data,
layout:function(){return E()?1:0},
className:Fr,isOverlay:y,useMediumText:U})}}),_.D(_.F,{cond:function(){return x().description&&!E()},
then:function(){return _.D(_.MR,{data:function(){return x().description}},{descriptionPreviewViewModel:function(q$){return _.D(_.Uy,{data:q$.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:y,maxLinesOverride:function(){return E()?void 0:1},
useMediumText:function(){return(M==null?void 0:M())||U()}})}})}}),_.D(_.F,{cond:function(){return x().attribution&&!P()},
then:function(){return _.D(_.MR,{data:function(){return x().attribution}},{attributionViewModel:function(q$){return _.D(P$,{data:q$.data,
className:Zn,useMediumText:U})}})}}),_.D(_.F,{cond:function(){return x().actions&&!P()},
then:function(){return _.D(_.MR,{data:function(){return x().actions}},{flexibleActionsViewModel:function(q$){return _.D(_.g8,{data:q$.data,
layout:function(){return X9w(Z())},
className:mL})}})}}))),_.D("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.D(_.F,{cond:function(){return x().description&&E()},
then:function(){return _.D(_.MR,{data:function(){return x().description}},{descriptionPreviewViewModel:function(q$){return _.D(_.Uy,{data:q$.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:y,maxLinesOverride:function(){return E()?void 0:1},
useMediumText:function(){return(M==null?void 0:M())||U()}})}})}}),_.D(_.F,{cond:function(){return x().attribution&&P()},
then:function(){return _.D(_.MR,{data:function(){return x().attribution}},{attributionViewModel:function(q$){return _.D(P$,{data:q$.data,
className:Zn,useMediumText:U})}})}}),_.D(_.F,{cond:function(){return x().actions&&P()},
then:function(){return _.D(_.MR,{data:function(){return x().actions}},{flexibleActionsViewModel:function(q$){return _.D(_.g8,{data:q$.data,
layout:function(){return X9w(Z())},
className:mL})}})}})),_.D("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.D(_.MR,{data:function(){return x().bottomMetadataFlexibleContainer}},{flexibleContainer:function(q$){return _.D($1z,{data:q$.data,
isOverlay:y})}})))}}))},"Se");
_.x$T.idomCompat=!0;_.wP(_.K(function(O){var x=_.T(_.Iw(!1,void 0,"vvzTj")),e=x.next().value,l=x.next().value;return _.D("yt-official-card-view-model",{class:_.xz("ytOfficialCardViewModelHost",O.className),style:_.T7({"background-color":function(){var C,Q=CM((C=O.data())==null?void 0:C.backgroundColor);return Q?_.aF(Q):void 0}})},_.D(_.MR,{data:function(){return O.data().header}},{pageHeaderViewModel:function(C){return _.D(_.x$T,{data:C.data,
noPadding:!0})}}),_.D(_.MR,{data:function(){return O.data().contents}},{horizontalShelfViewModel:function(C){return _.D(_.eB,{data:C.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.D(_.F,{cond:e,
then:function(){return _.D("div",{class:"ytOfficialCardViewModelExpandedContent"},_.D(_.MR,{data:function(){return O.data().expandedContents}},{horizontalShelfViewModel:function(C){return _.D(_.eB,{data:C.data,
sizing:"MINI"})}}),_.D("div",{class:"ytOfficialCardViewModelCollapseButton"},_.D(_.MR,{data:function(){return O.data().collapseButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
onClick:function(){l(!e())}})}})))},
else:function(){return _.D("div",{class:"ytOfficialCardViewModelExpandButton"},_.D(_.MR,{data:function(){return O.data().expandButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
onClick:function(){l(!e())}})}}))}}))},"Te"),"yt-official-card-view-model",{props:{data:_.Ld,
className:_.Ld}});var es$=_.K(function(O){var x,e=(x=_.GG().resolve(_.D0(_.rP)))==null?void 0:x();return _.D("ytw-search-friction-view-model",{class:_.xz("ytwSearchFrictionViewModelHost",O.className)},_.D("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.D("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.D(_.F,{cond:function(){return e&&O.data().darkThemeImage?O.data().darkThemeImage:O.data().image},
then:function(l){return _.D(_.n_,{data:l,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.D(_.MR,{data:function(){return O.data().overflowMenuButton}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.D(_.TT,{text:function(){return O.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.D(_.HE,{each:function(){return O.data().bodyText||[]}},function(l){return _.D(_.TT,{text:l,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.D(_.MR,{data:function(){return O.data().actions}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.D(_.TT,{text:function(){return O.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.D(_.TT,{text:function(){return O.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ue");
es$.idomCompat=!0;_.wP(es$,"ytw-search-friction-view-model",{props:{data:_.Ld,className:_.Ld}});_.CK=_.K(function(O){var x=_.Q5("markdown-div"),e,l=(e=_.GG().resolve(_.D0(_.rP)))==null?void 0:e();_.uo(function(){var C=x.value;var Q=new dxk,L=new Map(Q.JSC$9293_sanitizerTable.globalAttributePolicies);L.set("style",{policyAction:4});Q.JSC$9293_sanitizerTable=new Zg(Q.JSC$9293_sanitizerTable.allowedElements,Q.JSC$9293_sanitizerTable.elementPolicies,Q.JSC$9293_sanitizerTable.allowedGlobalAttributes,L,Q.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes);var k=["data-time"];if(k===void 0)L=
new Set(Q.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes),L.add("data-"),Q.JSC$9293_sanitizerTable=new Zg(Q.JSC$9293_sanitizerTable.allowedElements,Q.JSC$9293_sanitizerTable.elementPolicies,Q.JSC$9293_sanitizerTable.allowedGlobalAttributes,Q.JSC$9293_sanitizerTable.globalAttributePolicies,L);else{L=new Set(Q.JSC$9293_sanitizerTable.allowedGlobalAttributes);k=_.T(k);for(var M=k.next();!M.done;M=k.next()){M=M.value;if(M.indexOf("data-")!==0)throw Error("ka`"+M);L.add(M)}Q.JSC$9293_sanitizerTable=
new Zg(Q.JSC$9293_sanitizerTable.allowedElements,Q.JSC$9293_sanitizerTable.elementPolicies,L,Q.JSC$9293_sanitizerTable.globalAttributePolicies,Q.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes)}L=new Set(Q.JSC$9293_sanitizerTable.allowedGlobalAttributes);L.add("class");Q.JSC$9293_sanitizerTable=new Zg(Q.JSC$9293_sanitizerTable.allowedElements,Q.JSC$9293_sanitizerTable.elementPolicies,L,Q.JSC$9293_sanitizerTable.globalAttributePolicies,Q.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes);
_.bx(C,_.hiN(Q.build(),yWs(O.text())));ZXr(x.value)},"OZ439c");
e={};return _.D("div",null,_.D("markdown-div",{class:_.xz("ytwMarkdownDivHost",(e.ytwMarkdownDivDark=l,e.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var C;return((C=O.isSmallText)==null?void 0:C.call(O))||!1},e.ytwMarkdownDivHostWrapCodeBlocks=function(){var C;
return((C=O.wrapCodeBlocks)==null?void 0:C.call(O))||!1},e.ytwMarkdownDivHostEnableDefaultStyling=function(){var C;
return!((C=O.disableDefaultStyling)==null?0:C.call(O))},e)),
el:x}))},"We");
_.CK.idomCompat=!0;var lnQ=_.K(function(O){var x=O.imageData;var e=_.uH(O.isInList,!1),l=function(){return e()?{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 _.D("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.D(_.F,{cond:function(){return x().image},
then:function(C){return _.D(_.n_,{data:C,alt:function(){return l().alt},
contentMode:function(){return l().contentMode},
targetWidth:function(){return l().targetWidth},
targetHeight:function(){return l().targetHeight},
className:function(){return l().className}})}}),_.D("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.D("div",{class:_.xz("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.D(_.TT,{text:function(){return x().title}})),_.D(_.HE,{each:function(){var C;
return(C=x().description)!=null?C:[]}},function(C){return _.D("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.D(Qh,{content:C}))})))},"Xe"),CrX=_.K(function(O){var x=O.list;
var e=function(){var l;return(l=x().items)!=null?l:[]};
return _.D("div",{class:"ytwGenAiRichTextViewModelListContent"},_.D(_.F,{cond:function(){return x().title},
then:function(l){return _.D("div",{class:_.xz("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.D(_.TT,{text:l}))}}),_.D(_.F,{cond:function(){return x().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.D("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.D(_.HE,{each:e},function(l){return _.D("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.D(Qh,{content:l,isInList:!0}))}))}}),_.D(_.F,{cond:function(){return x().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.D("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.D(_.HE,{each:e},function(l){return _.D("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.D(Qh,{content:l,isInList:!0}))}))}}),_.D(_.F,{cond:function(){return x().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.D("div",{class:"ytwGenAiRichTextViewModelImageList"},_.D(_.HE,{each:e},function(l){return _.D("div",{class:"ytwGenAiRichTextViewModelListItem"},_.D(Qh,{content:l,isInList:!0}))}))}}))},"Ye"),QmO=_.K(function(O){var x=O.table;
return _.D("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.D("thead",null,_.D("tr",null,_.D(_.HE,{each:function(){var e,l;return(l=(e=x().header)==null?void 0:e.cells)!=null?l:[]}},function(e){return _.D("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.D(_.HE,{each:function(){return e.contents}},function(l){return _.D(Qh,{content:l})}))}))),_.D("tbody",null,_.D(_.HE,{each:function(){var e;
return(e=x().rows)!=null?e:[]}},function(e){return _.D("tr",null,_.D(_.HE,{each:function(){return e.cells}},function(l){return _.D("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.D(_.HE,{each:function(){return l.contents}},function(C){return _.D(Qh,{content:C})}))}))})))},"Ze"),Qh=_.K(function(O){var x=O.content;
var e=_.uH(O.isInList,!1),l=function(){var C,Q;return(Q=(C=x().contentBlock)==null?void 0:C.contents)!=null?Q:[]};
return _.D("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.D(_.F,{cond:function(){return x().text},
then:function(C){return _.D(_.TT,{className:"ytwGenAiRichTextViewModelText",text:C})}}),_.D(_.F,{cond:function(){return x().image},
then:function(C){return _.D(lnQ,{imageData:C,isInList:e})}}),_.D(_.F,{cond:function(){return x().list},
then:function(C){return _.D(CrX,{list:C})}}),_.D(_.F,{cond:function(){return x().contentBlock},
then:function(){return _.D("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.D(_.HE,{each:l},function(C){return _.D(Qh,{content:C,isInList:!1})}))}}),_.D(_.F,{cond:function(){return x().table},
then:function(C){return _.D(QmO,{table:C})}}))},"$e"),bVh=_.K(function(O){var x={};
x=_.yu("ytwGenAiRichTextViewModelHost",(x.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Z0("search_overview_link_style")),x));return _.D("gen-ai-rich-text-view-model",{class:x},_.D(Qh,{content:function(){return O.data().content}}))},"af");_.T7X=_.K(function(O){var x=O.data;var e=function(){var U;return((U=x().loadingUi)!=null?U:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},l=function(){return x().isLoading&&(e()==="UNSPECIFIED"||e()==="GHOST_CARD")},C=function(){return!x().isLoading},Q=function(){return!!x().content&&!x().contents},L=function(){return!!x().contents},k=function(){return!!x().nextQueryButtons},M=function(){return x().isLoading&&e()==="INVISIBLE"},G=function(){var U,W;
return(W=(U=x().headerIcon)==null?void 0:U.iconType)!=null?W:""},X=function(){var U;
return(U=x().content)!=null?U:""},y=function(){return!!x().sourcesSection},Z,E=!((Z=_.GG().resolve(_.D0(_.rP)))==null||!Z()),P=_.aw(function(){var U=[],W=x().contents;
if(W)for(var z=0;z<W.length;z++){var r=_.q(W&&W[z],l1d);r&&U.push(r)}return U},void 0,"gcCsZb");
_.YK(function(){x().isLoading||_.IR("so_re",void 0,"search_overview_answer")});
return _.D("ytd-overview-answer-view-model",{class:function(){var U={};U=(U.ytdOverviewAnswerViewModelHost=!0,U.ytdOverviewAnswerViewModelDarkBackground=E&&!M(),U.ytdOverviewAnswerViewModelLightBackground=!E&&!M(),U);return _.yu(U)}},_.D(_.F,{cond:function(){return!M()},
then:function(){return _.D(_.Xm,null,_.D("h2",null,_.D("div",{class:"ytdOverviewAnswerViewModelHeader"},_.D(_.F,{cond:G,then:function(U){return _.D("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.D(_.L7,{icon:U}))}}),_.D("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.D("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return x().headerText}),_.D("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.D(_.TT,{text:function(){return x().headerSubtext}}))))),_.D(_.F,{cond:l,
then:function(){return _.D(E$s,null)}}),_.D(_.F,{cond:C,
then:function(){return _.D(_.Xm,null,_.D(_.F,{cond:Q,then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelText"},_.D(_.CK,{text:X,isSmallText:!0}))}}),_.D(_.F,{cond:L,
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelRichText"},_.D(_.HE,{each:P},function(U){return _.D(bVh,{data:U})}))}}),_.D(_.F,{cond:k,
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.D(_.MR,{data:function(){return x().nextQueryButtons}},{buttonViewModel:function(U){return _.D(_.RV,{data:U.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.eB}))}}),_.D("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.D("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.D(_.F,{cond:function(){return!!_.q(x().likeButtonViewModel,_.Yo)&&!!_.q(x().dislikeButtonViewModel,_.uN)},
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.D(_.iZ,{data:function(){return _.q(x().likeButtonViewModel,_.Yo)},
disableIconAnimation:!0}),_.D(_.$w,{data:function(){return _.q(x().dislikeButtonViewModel,_.uN)}}))}})),_.D(_.F,{cond:function(){var U;
return(U=x().sourcesSection)==null?void 0:U.headerText},
then:function(U){return _.D("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.D(_.TT,{text:U}))}})),_.D(_.F,{cond:y,
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelSources"},_.D(_.MR,{data:function(){var U;return(U=x().sourcesSection)==null?void 0:U.sourcesShelf}},{buttonViewModel:_.RV,
horizontalShelfViewModel:function(U){return _.D(_.eB,{data:U.data,includeMargin:!0,hasPeek:!0})}}))}}),_.D(_.F,{cond:function(){return x().disclaimerText},
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.D(_.TT,{text:function(){return x().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"bf");var LLL=_.K(function(O){var x=_.YX(O,{}).data;return _.D("yt-shopping-content-line-item-view-model",{class:_.xz("ytShoppingContentLineItemViewModelHost")},_.D(_.TT,{text:function(){var e;return(e=x().text)==null?void 0:e.attributedString}}))},"cf");_.bi=_.K(function(O){O=_.YX(O,{});var x=O.data,e={};return _.D("yt-shopping-content-line-view-model",{class:_.xz("ytShoppingContentLineViewModelHost",O.className,(e.ytShoppingContentLineViewModelTruncateText=function(){return!x().wrapContent},e)),
style:_.T7({"--shopping-content-line-gap":function(){return x().itemGap?x().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return x().lineHeight?x().lineHeight+"px":void 0}})},_.D(_.HE,{each:function(){return(x().items||[]).map(function(l){return _.q(l,GK2)}).filter(function(l){return!!l})}},function(l){return _.D(LLL,{data:l})}))},"df");var krT=_.K(function(O){var x=O.data;var e=function(){var Q;return((Q=x().image)==null?void 0:Q.height)||48},l=function(){var Q;
return((Q=x().image)==null?void 0:Q.width)||48},C=function(){return"width: "+l()+"px; height: "+e()+"px;"};
return _.D("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var Q,L,k,M=((Q=_.GG().resolve(_.D0(_.rP)))==null?0:Q())?(L=x())==null?void 0:L.darkThemeBackgroundColor:(k=x())==null?void 0:k.lightThemeBackgroundColor;return"background-color: "+(M?_.aF(M):"")+";"},
el:_.Y0(_.P8(function(){var Q;return(Q=x())==null?void 0:Q.rendererContext}))},_.D(_.F,{cond:function(){var Q,L;
return(L=(Q=x().image)==null?void 0:Q.image)!=null?L:x().thumbnail},
then:function(Q){return _.D("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var L;return"background-color: "+(((L=x().image)==null?0:L.backgroundColor)?_.aF(x().image.backgroundColor):"")+";"+C()}},_.D(_.n_,{data:Q,
height:e,width:l,style:C,alt:""}))}}),_.D("div",{class:"ytShoppingDescriptionItemViewModelText"},_.D(_.MR,{data:function(){return x().line1}},{shoppingContentLineViewModel:function(Q){return _.D(_.bi,{data:Q.data})}}),_.D(_.MR,{data:function(){return x().line2}},{shoppingContentLineViewModel:function(Q){return _.D(_.bi,{data:Q.data})}}),_.D(_.MR,{data:function(){return x().line3}},{shoppingContentLineViewModel:function(Q){return _.D(_.bi,{data:Q.data})}})))},"ef");var ALu=_.K(function(O){var x=O.data;var e=O.active;var l=_.Q5("transcript-segment-view-model");_.uo(function(){var C,Q,L,k=((C=_.GG().resolve(_.D0(_.rP)))==null?0:C())?(Q=x())==null?void 0:Q.darkThemeColorPalette:(L=x())==null?void 0:L.lightThemeColorPalette;k&&(k.additiveBackground&&l.value.style.setProperty("--timestamp-active-background-color",_.aF(k.additiveBackground)),k.textSecondary&&l.value.style.setProperty("--timestamp-active-color",_.UA(k.textSecondary)))},"TnVCnb");
O={};return _.D("transcript-segment-view-model",{class:_.xz("ytwTranscriptSegmentViewModelHost",(O.ytwTranscriptSegmentViewModelHostActive=e,O.ytwTranscriptSegmentViewModelHostModern=_.t("enable_timeline_view_modern_transcript")||_.t("enable_timeline_view_modern_transcript_fe"),O)),el:l},_.D(_.F,{cond:function(){var C;return(C=x())==null?void 0:C.timestamp},
then:function(C){var Q={};return _.D(_.Xm,null,_.D("div",{class:_.xz("ytwTranscriptSegmentViewModelTimestamp",(Q.ytwTranscriptSegmentViewModelTimestampActive=e,Q)),"aria-hidden":!0},C),_.D("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var L=C().split(":").map(Number),k=_.T(L.reverse());L=k.next().value;var M=k.next().value;k=k.next().value;return _.hYi({hours:k,minutes:M,seconds:L})}))}}),_.D(_.TT,{text:function(){var C,Q,L;
return(L=(C=x())==null?void 0:C.attributedText)!=null?L:{content:(Q=x())==null?void 0:Q.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"gf");var Mww=_.K(function(O){var x=O.data;return _.D("div",{class:"videoAttributesSectionViewModelHeader"},_.D("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.D("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return x().headerTitle}),_.D(_.F,{cond:function(){return x().headerInfoButton},
then:function(){return _.D(_.MR,{data:function(){return x().headerInfoButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.D(_.F,{cond:function(){return x().headerSubtitle},
then:function(){return _.D("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return x().headerSubtitle})}}))},"hf"),D$L=_.K(function(O){function x(U){return Math.max(Math.min(U,0),G()-k())}
var e=O.data;var l;O=_.Q5("div",function(U){var W=function(){X(U.clientWidth)};
W();window.ResizeObserver&&(l=new ResizeObserver(W),l.observe(U))});
var C=_.Q5("div",function(U){M(U.scrollWidth)}),Q=_.T(_.Iw(0,void 0,"C3XQAe")),L=Q.next().value;
Q=Q.next().value;var k=L,M=Q;Q=_.T(_.Iw(0,void 0,"db7y3"));L=Q.next().value;Q=Q.next().value;var G=L,X=Q;L=_.T(_.Iw(0,void 0,"RchC7"));var y=L.next().value,Z=L.next().value;_.YO(function(){var U;(U=l)==null||U.disconnect()});
var E=function(){Z(x(y()+G()))},P=function(){Z(x(y()-G()))};
return _.D("yt-video-attributes-section-view-model",null,_.D("div",{class:"videoAttributesSectionViewModelHost"},_.D(_.F,{cond:function(){return e().headerTitle},
then:function(){return _.D(Mww,{data:e})}}),_.D("div",{class:_.xz("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:O},_.D("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.T7({transform:function(){var U=y();_.wz("HTML_DIR")==="rtl"&&(U*=-1);return"translateX("+U+"px)"}}),
el:C},_.D(_.MR,{data:function(){return e().videoAttributeViewModels}},{videoAttributeViewModel:$YR}))),_.D(_.MR,{data:function(){return e().footerButton}},{buttonViewModel:function(U){return _.D(_.RV,{data:U.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.D(_.F,{cond:function(){return y()<0&&e().previousButton},
then:function(){return _.D("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.D(_.MR,{data:function(){return e().previousButton}},{buttonViewModel:function(U){return _.D(_.RV,{data:U.data,
onClick:E})}}))}}),_.D(_.F,{cond:function(){return y()>G()-k()&&e().nextButton},
then:function(){return _.D("div",{class:"videoAttributesSectionViewModelRightArrow"},_.D(_.MR,{data:function(){return e().nextButton}},{buttonViewModel:function(U){return _.D(_.RV,{data:U.data,
onClick:P})}}))}})))},"jf");
D$L.idomCompat=!0;var GrQ=_.K(function(O){var x=O.data;var e=O.active;var l={},C={};return _.D("timeline-item-view-model",{class:_.xz("ytwTimelineItemViewModelHost",(l.ytwTimelineItemViewModelHostChapterChild=O.chapterChild,l.ytwTimelineItemViewModelModern=_.t("enable_timeline_view_modern_transcript")||_.t("enable_timeline_view_modern_transcript_fe"),l))},_.D("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.D("div",{class:_.xz("ytwTimelineItemViewModelTimestamp",(C.ytwTimelineItemViewModelTimestampActive=
e,C))},function(){return x().timestamp})),_.D("div",{class:"ytwTimelineItemViewModelContentItems"},_.D(_.MR,{data:function(){return x().contentItems}},{transcriptSegmentViewModel:function(Q){return _.D(ALu,{data:Q.data,
active:e})},
videoAttributesSectionViewModel:D$L})))},"kf");var FLp=_.K(function(O){var x=O.data;O={};return _.D("timeline-chapter-view-model",{class:_.xz("ytwTimelineChapterViewModelHost")},_.D("div",{class:_.xz("ytwTimelineChapterViewModelTitle",(O.ytwTimelineChapterViewModelModern=_.t("enable_timeline_view_modern_transcript")||_.t("enable_timeline_view_modern_transcript_fe"),O))},function(){return x().title}),_.D(_.MR,{data:function(){return x().contents}},{timelineItemViewModel:function(e){return _.D(GrQ,{data:e.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(e){return _.D(D$L,{data:e.data})}}))},"lf");var Xie=_.K(function(O){var x=O.data;var e=_.Q5("macro-markers-panel-item-view-model"),l=_.L5(_.trm,function(){var Q;return(Q=x().markersEngagementPanelSyncEntityKey)!=null?Q:""}),C=function(){var Q;
return((Q=l())==null?void 0:Q.activeItemIndex)===x().index};
O=_.lk(function(Q){var L,k,M,G,X;return _.A(function(y){if(y.nextAddress==1)return Q.stopPropagation(),_.E9(_.Zc(Q),e.value,["A".toString(),"BUTTON".toString()])?y.return():(L=_.p_(x().onTap))?y.yield(_.xp(),2):y.return();k=y.yieldResult;G=(M=_.q(L,_.Hq))==null?void 0:M.startTimeSeconds;G===void 0||(X=k)!=null&&X.seekTo(G,!0);_.Ra(y)})});
return _.D("macro-markers-panel-item-view-model",{class:_.xz("ytwMacroMarkersPanelItemViewModelHost",{"is-active":C}),el:e,"on:click":O,tabindex:0,role:"button"},_.D(_.MR,{data:function(){var Q;return(Q=x())==null?void 0:Q.item}},{timelineChapterViewModel:function(Q){return _.D(FLp,{data:Q.data,
active:C})},
timelineItemViewModel:function(Q){return _.D(GrQ,{data:Q.data,active:C})},
videoAttributeViewModel:$YR,shoppingDescriptionItemViewModel:krT}))},"mf");
Xie.idomCompat=!0;_.wP(Xie,"macro-markers-panel-item-view-model",{props:{data:_.Ld}});_.wP(D$L,"yt-video-attributes-section-view-model",{props:{data:_.Ld}});var oWL=_.K(function(O){var x=function(){var e,l,C;return(C=(e=O.data().leadingLogoAccessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label)!=null?C:""};
return _.D("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.D(_.F,{cond:function(){return O.data().leadingLogo},
then:function(e){return _.D(_.n_,{className:"ytwFantasySectionHeaderViewModelLogo",data:e,alt:x})}}),_.D("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.D(_.TT,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return O.data().title}}),_.D(_.TT,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return O.data().subtitle}})),_.D(_.MR,{data:function(){return O.data().trailingButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"nf");var yLQ=_.K(function(O){var x={};x=_.xz("ytwFantasyTeamViewModelHost",(x.ytwFantasyTeamViewModelCompact=function(){var C;return!((C=O.compact)==null||!C.call(O))},x.ytwFantasyTeamViewModelUser=function(){return O.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},x.ytwFantasyTeamViewModelOpponent=function(){return O.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},x));
var e=function(){var C,Q,L;return(L=(C=O.data().teamLogoAccessibility)==null?void 0:(Q=C.accessibilityData)==null?void 0:Q.label)!=null?L:""},l=_.L5(PSW,function(){return O.data().teamEntityKey});
return _.D("ytw-fantasy-team-view-model",{class:x},_.D(_.F,{cond:function(){return O.data().teamLogo},
then:function(C){return _.D(_.n_,{className:"ytwFantasyTeamViewModelLogo",data:C,alt:e})}}),_.D("div",{class:"ytwFantasyTeamViewModelMetadata"},_.D("div",{class:"ytwFantasyTeamViewModelHeader"},_.D(_.TT,{className:"ytwFantasyTeamViewModelScore",
text:function(){var C;return(C=l())==null?void 0:C.score}}),_.D(_.L7,{icon:function(){var C;
return(C=l())==null?void 0:C.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.D(_.TT,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var C;return(C=l())==null?void 0:C.projectedScore}})),_.D(_.TT,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return O.data().primaryText}}),_.D(_.TT,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return O.data().secondaryText}}),_.D(_.TT,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return O.data().tertiaryText}})),_.D(_.TT,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var C;return(C=l())==null?void 0:C.score}}))},"of");_.wP(_.K(function(O){return _.D("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.D("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.D(_.MR,{data:function(){return O.data().summaryHeader}},{fantasySectionHeaderViewModel:oWL})),_.D(_.MR,{data:function(){return O.data().userTeam}},{fantasyTeamViewModel:yLQ}),_.D(_.MR,{data:function(){return O.data().opponentTeam}},{fantasyTeamViewModel:yLQ}))},"pf"),"fantasy-league-summary-view-model",{props:{data:_.Ld}});var ZVe=_.K(function(O){var x=_.YX(O,{shape:{},useCustomTabRenderable:!1}),e=x.shape;x=x.useCustomTabRenderable;var l=O.customTabRenderable,C=function(){return e().disabled},Q=function(){return e().selected},L=function(){return e().title},k=function(){return e().icon},M=_.Q5("yt-tab-shape");
O=_.lk(function(y){var Z;if(!C()&&((Z=e().aTagConfig)==null?0:Z.onclick))e().aTagConfig.onclick(y);return!1});
var G=_.lk(function(y){if(y.key==="Enter"||y.key==="ArrowUp"||y.key==="ArrowDown")y.preventDefault(),M.value.click();return!1}),X={};
return _.D("yt-tab-shape",{class:_.xz("yt-tab-shape",function(){return e().className},(X["yt-tab-shape__tab--last-tab"]=function(){return e().isLastTab},X["yt-tab-shape--host-disabled"]=C,X["yt-tab-shape--host-clickable"]=!l,X)),
role:l?void 0:"tab","aria-selected":Q!=null?Q:!1,"aria-disabled":C,tabindex:l?void 0:0,"on:click":O,"on:keydown":G,el:M,"tab-identifier":function(){return e().identifier},
"tab-title":L},_.D(_.F,{cond:x,then:function(){return l()},
else:function(){var y={},Z={};return _.D(_.Xm,null,_.D("div",{class:_.xz("yt-tab-shape__tab",(y["yt-tab-shape__tab--tab-selected"]=Q,y))},_.D(_.F,{cond:k,then:function(E){return _.D(_.L7,{className:"yt-tab-shape__tab-icon",icon:function(){return E().iconType}})}}),L),_.D("div",{class:_.xz("yt-tab-shape__tab-bar",(Z["yt-tab-shape__tab-bar--tab-bar-selected"]=Q,Z))}))}}))},"qf");
ZVe.idomCompat={callbacks:{customTabRenderable:!0}};_.twO=_.K(function(O){var x=O.shape;O=_.T(_.Iw(48,void 0,"rCewuf"));var e=O.next().value,l=O.next().value;O=_.T(_.Iw(0,void 0,"aUUTWe"));var C=O.next().value,Q=O.next().value,L=function(){return x().tabs},k=_.Q5("yt-tab-group-shape"),M=function(){var G,X;
return(X=(G=L())==null?void 0:G.findIndex(function(y){return y.selected}))!=null?X:-1};
_.YK(function(){var G=k.value.querySelectorAll("yt-tab-shape"),X=M()>-1?G[M()]:void 0;_.vn.addJob(function(){l((X==null?void 0:X.getBoundingClientRect().width)||0)},8,0)});
_.uo(function(){var G=M(),X=_.vn.addJob(function(){var y,Z=((y=k.value)==null?void 0:y.querySelectorAll("yt-tab-shape"))||[],E;l(((E=G>-1?Z[G]:void 0)==null?void 0:E.getBoundingClientRect().width)||0);for(E=y=0;E<G;E++)y+=Z[E].offsetWidth+24;_.wz("HTML_DIR")==="rtl"&&(y=-y);Q(y)},8,0);
_.YO(function(){_.vn.cancelJob(X)})},"DAb5Qb");
O={};return _.D("yt-tab-group-shape",{class:_.xz("tabGroupShapeHost",(O.tabGroupShapeOverflowHidden=function(){return x().isOverflowHidden},O)),
el:k},_.D(_.F,{cond:L,then:function(G){return _.D(_.Xm,null,_.D("div",{class:"tabGroupShapeTabs",role:"tablist"},_.D(_.HE,{each:G},function(X,y){return _.D(ZVe,{shape:function(){return Object.assign({},X,{isLastTab:y()===G().length-1})},
customTabRenderable:X.customTabRenderable,useCustomTabRenderable:!!X.customTabRenderable})})),_.D(EWT,{width:e,
sliderOffset:C}))}}))},"sf");
_.twO.idomCompat=!0;var EWT=_.K(function(O){var x=_.uH(O.sliderOffset,0),e=O.width;return _.D("div",{class:"tabGroupShapeSlider",style:_.T7({width:function(){return e()+"px"},
transform:function(){return"translateX("+x()+"px)"}})})},"tf");var q8u=_.K(function(O){var x=function(){var Q,L,k;return(k=(Q=O.data().playerLogoAccessibility)==null?void 0:(L=Q.accessibilityData)==null?void 0:L.label)!=null?k:""},e=_.L5(cRr,function(){return O.data().playerEntityKey}),l={};
l=_.xz("ytwFantasyPlayerViewModelHost",(l.ytwFantasyPlayerViewModelPlaying=function(){var Q;return!((Q=e())==null||!Q.isPlayerPlaying)},l.ytwFantasyPlayerViewModelOnField=function(){var Q;
return((Q=e())==null?void 0:Q.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},l.ytwFantasyPlayerViewModelRedZone=function(){var Q;
return((Q=e())==null?void 0:Q.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},l));
var C=function(){var Q,L,k,M=((Q=_.GG().resolve(_.D0(_.rP)))==null?0:Q())?(L=O.data().playerLogoBackgroundColor)==null?void 0:L.darkTheme:(k=O.data().playerLogoBackgroundColor)==null?void 0:k.lightTheme;return M===void 0?"":_.aF(M)};
return _.D("ytw-fantasy-player-view-model",{class:l},_.D(_.F,{cond:function(){return O.data().playerLogo},
then:function(Q){return _.D("div",{class:"ytwFantasyPlayerViewModelLogo"},_.D("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.D(_.n_,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.T7({"background-color":C}),data:Q,alt:x})),_.D("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.D(_.L7,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.D("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.D("div",{class:"ytwFantasyPlayerViewModelHeader"},_.D(_.TT,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var Q;return(Q=O.data())==null?void 0:Q.playerNameText}}),_.D(_.TT,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var Q;return(Q=O.data())==null?void 0:Q.playerDescriptionText}})),_.D("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.D(_.TT,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Q;return(Q=e())==null?void 0:Q.gamePeriodText}}),_.D(_.TT,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Q;return(Q=O.data())==null?void 0:Q.opponentTeamText}}),_.D(_.TT,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Q;return(Q=e())==null?void 0:Q.gameStatusText}}),_.D(_.TT,{className:_.xz("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var Q;return(Q=e())==null?void 0:Q.playerStatusText}})),_.D("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.D(_.TT,{text:function(){var Q;
return(Q=e())==null?void 0:Q.playerStatsText}}))),_.D(_.TT,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var Q;return(Q=e())==null?void 0:Q.fantasyScore}}))},"uf");var Pre=_.K(function(O){return _.D("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.D(_.F,{cond:function(){return O.data().players},
then:function(x){return _.D(_.MR,{data:x},{fantasyPlayerViewModel:q8u})}}))},"vf");var cLh=_.K(function(O){var x=_.T(_.bk(function(){var C;return(C=O.data().selectedTabIdentifierKey)!=null?C:""})),e=x.next().value,l=x.next().value;
_.u8(function(){var C;(C=O.setSelectedTabSignal)==null||C.call(O,e)});
return _.D("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.D("div",{class:"ytTabbedViewModelTabGroup"},_.D(_.twO,{shape:function(){var C=O.data(),Q=[],L={tabs:Q};if(!C.tabs)return L;C=_.T(C.tabs);for(var k=C.next(),M={};!k.done;M={tabViewModel:void 0},k=C.next())if(M.tabViewModel=_.q(k.value,Zzk),M.tabViewModel){var G=k=void 0;Q.push({aTagConfig:{onclick:function(X){return function(){var y;l((y=X.tabViewModel.tabIdentifier)!=null?y:"")}}(M)},
identifier:M.tabViewModel.tabIdentifier,selected:e()===M.tabViewModel.tabIdentifier,title:(G=(k=M.tabViewModel.title)==null?void 0:k.content)!=null?G:""})}return L}})),_.D(_.MR,{data:function(){var C,Q=_.T((C=O.data().tabs)!=null?C:[]);
for(C=Q.next();!C.done;C=Q.next())if((C=_.q(C.value,Zzk))&&C.tabIdentifier===e())return C.content}},{fantasyRosterViewModel:Pre}))},"xf");_.wP(_.K(function(O){var x=_.T(tFr()),e=x.next().value,l=x.next().value;return _.D("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.D(_.TT,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return O.data().title}}),_.D(_.F,{cond:function(){return O.data().tabbedViewModel},
then:function(C){return _.D(_.MR,{data:C},{tabbedViewModel:function(Q){return _.D(cLh,{data:Q.data,setSelectedTabSignal:l})}})}}),_.D(_.F,{cond:function(){var C,Q=(C=_.q(O.data().tabbedViewModel,ER3))==null?void 0:C.tabs;
C=_.q(Q==null?void 0:Q[0],Zzk);Q=_.q(Q==null?void 0:Q[1],Zzk);var L=C==null?void 0:C.tabIdentifier;if(e()===L){var k,M;if(!((k=_.q(C==null?void 0:C.content,s1N))==null?0:(M=k.players)==null?0:M.length))return O.data().noUserTeamPlayersText}else{var G,X;if(!((G=_.q(Q==null?void 0:Q.content,s1N))==null?0:(X=G.players)==null?0:X.length))return O.data().noOpponentTeamPlayersText}},
then:function(C){return _.D(_.TT,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:C})}}))},"yf"),"ytw-fantasy-matchup-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){return _.D("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.D(_.TT,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return O.data().title}}),_.D(_.F,{cond:function(){return O.data().matchupTeamPairs},
then:function(x){return _.D(_.HE,{each:x,keyBy:"INDEX"},function(e){return _.D("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.D(_.MR,{data:function(){return[e().firstTeam,e().secondTeam]}},{fantasyTeamViewModel:function(l){return _.D(yLQ,{data:l.data,
compact:!0})}}))})}}))},"zf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=function(){var C,Q,L;return(L=(C=O.data().userLogoAccessibility)==null?void 0:(Q=C.accessibilityData)==null?void 0:Q.label)!=null?L:""},e=function(){var C,Q,L;
return(L=(C=O.data().opponentLogoAccessibility)==null?void 0:(Q=C.accessibilityData)==null?void 0:Q.label)!=null?L:""},l=_.L5(qDL,function(){return O.data().entityKey});
return _.D("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.D("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.D(_.F,{cond:function(){return O.data().userLogo},
then:function(C){return _.D(_.n_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:C,alt:x})}}),_.D("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.D(_.TT,{text:function(){return O.data().title}})),_.D(_.F,{cond:function(){return O.data().opponentLogo},
then:function(C){return _.D(_.n_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:C,alt:e})}})),_.D("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.D("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.D(_.TT,{text:function(){var C;
return(C=l())==null?void 0:C.userWinNumberLabel}})),_.D("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.D("div",{class:_.xz("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.T7({flex:function(){var C,Q;return(Q=(C=l())==null?void 0:C.userWinNumber)!=null?Q:50}})}),_.D("div",{class:_.xz("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.T7({flex:function(){var C,Q;return(Q=(C=l())==null?void 0:C.opponentWinNumber)!=null?Q:50}})})),_.D("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.D(_.TT,{text:function(){var C;
return(C=l())==null?void 0:C.opponentWinNumberLabel}}))))},"Af"),"fantasy-win-probability-view-model",{props:{data:_.Ld}});var Inu={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},VwO=_.K(function(O){return _.D(_.MR,{data:O.button},{buttonViewModel:function(x){return _.D(_.RV,{data:x.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Bf"),piT=_.K(function(O){return _.D("ytd-backstage-locked-post-view-model",{class:_.xz("ytdBackstageLockedPostViewModelHost",O.className)},_.D("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.D("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.D(_.MR,
{data:function(){return O.data().authorAvatar}},{decoratedAvatarViewModel:_.Nz})),_.D("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.D("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.D(_.TT,{text:function(){return O.data().authorText}})),_.D("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.D(_.TT,{text:function(){return O.data().publishedTimeText}}),_.D(_.MR,{data:function(){return O.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(x){return _.D(sDJ,
{data:x.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.D("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.D(_.TT,{text:function(){return O.data().contentText}})),_.D(_.KO,null,_.D(_.zn,{when:function(){return O.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.D("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.D(_.n_,{data:Inu,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.D(_.TT,{text:function(){return O.data().lockedText}}))}),_.D(_.zn,{when:function(){return O.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.D("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.D("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.D(_.n_,{data:Inu,
alt:""})),_.D(_.TT,{text:function(){return O.data().lockedText}}))})),_.D("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.D(VwO,{button:function(){return O.data().likeButton}}),_.D("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return O.data().voteCountA11y}},_.D(_.TT,{text:function(){return O.data().voteCount}})),_.D(VwO,{button:function(){return O.data().dislikeButton}}),_.D(VwO,{button:function(){return O.data().commentButton}}),_.D("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return O.data().commentCountA11y}},_.D(_.TT,{text:function(){return O.data().commentCount}}))))},"Cf");
piT.idomCompat=!0;_.wP(piT,"ytd-backstage-locked-post-view-model",{props:{data:_.Ld,className:_.Ld}});_.tI("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Te=function(){var O=_.a.apply(this,arguments)||this;O.darkerPanels=_.t("web_watch_darker_panels");O.commentsHidePanelButton=!1;O.isWatchGrid=!1;O.continuationShowButton=!1;O.isSearch=!1;O.isConstrainedList=!1;O.isWatch=!1;O.eligibleToSwitchToGrid=!1;O.useBigThumbs=!1;O.notSticky=!1;O.epRestyle=!1;O.isCarouselInFeed=!0;O.topSpacingZero=!1;O.continuationIsInitialLoad=!0;O.enableSqueezebackPanels=_.t("web_shorts_enable_squeezeback_panels");O.enableAnchoredPanel=_.t("desktop_shorts_v2_anchored_panel");
O.mastheadHeight=0;O.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};O.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return O};
_.c(Te,_.a);_.b=Te.prototype;_.b.updateLockupContainerTypes=function(O){if(this.eligibleToSwitchToGrid){var x;(x=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||x.forEach(function(e){e.containerType=O})}};
_.b.getItemsPath=function(){return"data.contents"};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.b.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.t("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.t("kevlar_low_priority_continuation")}}};
_.b.created=function(){};
_.b.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.b.handleIntersect=function(O){this.notSticky=O[0].intersectionRatio===1};
_.b.attached=function(){var O=this,x=_.t("web_item_section_sticky_header_use_scroll_as_fallback");x||document.addEventListener("scroll",_.Qa(this,this.updateHeaderState));var e;this.mastheadHeight=((e=document.querySelector("ytd-masthead"))==null?void 0:e.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(l){O.handleIntersect(l)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):x&&document.addEventListener("scroll",_.Qa(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){O.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.b.detached=function(){document.removeEventListener("scroll",_.Qa(this,this.updateHeaderState));var O;(O=this.intersectionObserver)==null||O.disconnect();var x;(x=this.resizeObserver)==null||x.disconnect()};
_.b.updated=function(O){O.has("data")&&this.updateHeaderState()};
_.b.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(dV3(!this.notSticky))};
_.b.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var O=_.$U(this.hostElement).querySelector("ytd-comments-header-renderer");O&&(O.hidePanelButton=this.commentsHidePanelButton)}};
_.b.onRetrieveLocation=function(O,x){this.containsComments()&&(this.firstCommentsLoaded=x.hasComments=!0)};
_.b.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.b.onLoadReloadContinuation=function(O,x){var e=this;O.stopPropagation();this.isReloading=!0;_.wr(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(l){var C=_.GG().resolve(_.cR);l=x(l);C.postData(l).then(function(Q){e.onReloadContinuationData(Q)})}})};
_.b.onReloadContinuationData=function(O){if(O=this.get("response.continuationContents.itemSectionContinuation",O)||this.get("response.contents.itemSectionRenderer",O)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",O)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",O))this.set("data.contents",O.contents||O.results),O.header&&this.set("data.header",O.header),this.set("data.continuations",
O.continuations||[]);this.isReloading=!1};
_.b.computeContentsClass=function(O){return O?"reloading":""};
_.b.computeSectionIdentifier=function(O){return O==null?void 0:O.sectionIdentifier};
_.b.computeFitContainer=function(O){return(O==null?void 0:O.sectionIdentifier)==="youchat-item-section"};
_.b.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.t("kevlar_disable_comments_auto_load")};
_.b.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.b.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.b.computeHasDestinationShelfRenderer=function(O){var x,e;return!!(O==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:e.destinationShelfRenderer)};
_.b.computeHasSectionGroupViewModel=function(O){var x,e;return!!(O==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:e.sectionGroupViewModel)};
_.b.computeHasQrCodeRenderer=function(O){var x,e;return!!(O==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:e.qrCodeRenderer)};
_.b.computeStaticCommentsHeader=function(O){return O&&this.containsComments()};
_.b.computeEpRestyle=function(O){return _.t("web_ep_restyling")&&O&&this.containsComments()};
_.b.computeIsContinuationCommentSection=function(O){return(O==null?void 0:O.targetId)==="shorts-engagement-panel-comments-section"||(O==null?void 0:O.targetId)==="comments-section"||(O==null?void 0:O.targetId)==="engagement-panel-comments-section"};
_.b.computeSuppressPaddingDisclaimer=function(){var O,x,e,l;return!!((O=this.data)==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:(l=e.productListHeaderRenderer)==null?0:l.suppressPaddingDisclaimer)};
_.b.computeHeaderStyle=function(O){switch(O==null?void 0:O.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.b.dataChanged=function(){this.firstCommentsLoaded=!1};
_.b.observeDataContentsLength=function(){var O,x;((O=this.data)==null?0:(x=O.contents)==null?0:x.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.b.onYtDismissibleItemDismissedChange=function(O){this._setItemDismissed(O.type==="yt-dismissible-item-dismissed")};
_.b.triggerContinuations=function(){for(var O=_.$U(this.hostElement).querySelector("#continuations").children,x=0;x<O.length;x++)O[x].trigger()};
_.b.triggerInitialContinuations=function(){for(var O=_.$U(this.hostElement).querySelector("#continuations").children,x=0;x<O.length;x++)O[x].triggerIfNotPreviouslyTriggered()};
_.b.handleYtItemSectionContinuation=function(O,x){var e;x&&((e=this.data)==null?void 0:e.sectionIdentifier)!==x||(this.set("data.continuations",[O]),this.triggerContinuations())};
_.b.handleYtItemSectionReplace=function(O,x){var e;x&&((e=this.data)==null?void 0:e.sectionIdentifier)!==x||(this.set("data.contents",O),this.set("data.continuations",[]))};
_.b.computeUseHeightHack=function(O){return O&&!_.t("kevlar_disable_height_hack")};
_.b.computeTopSpacingZero=function(O){return O};
_.b.continuationShowButtonChanged=function(){var O=_.$U(this.hostElement).querySelector("ytd-continuation-item-renderer");O&&(O.showButton=this.continuationShowButton)};
_.b.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("data-changed",this.data))};
_.Dy.Object.defineProperties(Te.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.t("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 O;return!((O=this.data)==null||!O.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.t("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:e.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l,C,Q,L;return!!((O=this.data)==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:(l=e.shelfRenderer)==null?0:(C=l.content)==null?0:(Q=C.gridRenderer)==null?0:(L=Q.targetId)==null?0:L.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:e.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.contents)==null?0:(e=x[0])==null?0:e.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Z0("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.t("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.t("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Te.prototype.dataChangedForBinding=Te.prototype.dataChangedForBinding;Te.prototype.continuationShowButtonChanged=Te.prototype.continuationShowButtonChanged;Te.prototype.onYtDismissibleItemDismissedChange=Te.prototype.onYtDismissibleItemDismissedChange;Te.prototype.observeDataContentsLength=Te.prototype.observeDataContentsLength;Te.prototype.dataChanged=Te.prototype.dataChanged;Te.prototype.onServiceRequestCompleted=Te.prototype.onServiceRequestCompleted;Te.prototype.onLoadReloadContinuation=Te.prototype.onLoadReloadContinuation;
Te.prototype.onRetrieveLocation=Te.prototype.onRetrieveLocation;Te.prototype.commentsHidePanelButtonChanged=Te.prototype.commentsHidePanelButtonChanged;Te.prototype.dispatchChipBarIsSticky=Te.prototype.dispatchChipBarIsSticky;Te.prototype.updateLockupContainerTypes=Te.prototype.updateLockupContainerTypes;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Te.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],Te.prototype,"ytLazyListBehavior",void 0);_.B([_.V(_.kv.YtNextContinuationBehavior),_.v("design:type",Object)],Te.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.V(_.LN),_.v("design:type",Object)],Te.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Te.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Te.prototype,"ytdReduxBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Te.prototype,"darkerPanels",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Boolean)],Te.prototype,"engagementPanel",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"commentsHidePanelButton",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"isWatchGrid",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"continuationShowButton",void 0);_.B([_.R({computed:"computeIsContinuationCommentSection(data)"}),_.v("design:type",Boolean)],Te.prototype,"continuationIsCommentsSection",void 0);
_.B([_.R({value:!0}),_.v("design:type",Boolean)],Te.prototype,"autoFill",void 0);_.B([_.R(),_.v("design:type",Boolean)],Te.prototype,"continuationDisablePrescanVisibility",void 0);_.B([_.R(),_.v("design:type",Boolean)],Te.prototype,"isReloading",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"isSearch",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"isConstrainedList",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"isWatch",void 0);
_.B([_.R(),_.v("design:type",Object)],Te.prototype,"eligibleToSwitchToGrid",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"useBigThumbs",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Te.prototype,"notSticky",void 0);_.B([_.R({selector:_.p7,reflectToAttribute:!0}),_.v("design:type",Object)],Te.prototype,"isGridViewEnabled",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.v("design:type",Object)],Te.prototype,"epRestyle",void 0);_.B([_.p("isWatch"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"hideShortsShelfHeader",null);_.B([_.p("isSearch","isWatch"),_.v("design:type",String),_.v("design:paramtypes",[])],Te.prototype,"thumbnailWidth",null);
_.B([_.p("isSearch","containerWidth"),_.v("design:type",Object),_.v("design:paramtypes",[])],Te.prototype,"thumbnailTargetWidth",null);_.B([_.p("isSearch","isWatch"),_.v("design:type",String),_.v("design:paramtypes",[])],Te.prototype,"sizing",null);_.B([_.p("isWatch","isGridViewEnabled","useBigThumbs","data"),_.R({reflectToAttribute:!0}),_.v("design:type",Number),_.v("design:paramtypes",[])],Te.prototype,"lockupContainerType",null);
_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"hasHeader",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"expFixPlaylistHeader",null);_.B([_.T1("lockupContainerType","data"),_.v("design:type",Function),_.v("design:paramtypes",[Number]),_.v("design:returntype")],Te.prototype,"updateLockupContainerTypes",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Te.prototype,"pageSubtype",void 0);_.B([_.R(),_.v("design:type",Number)],Te.prototype,"containerWidth",void 0);_.B([_.R(),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"isPlaylist",null);_.B([_.R(),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"isClipList",null);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"isCarouselInFeed",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"isPlaylistVideoContainer",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"isSearchFrictionPage",null);_.B([_.R({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.v("design:type",Boolean)],Te.prototype,"useHeightHack",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.v("design:type",Object)],Te.prototype,"topSpacingZero",void 0);_.B([_.R({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.v("design:type",Boolean)],Te.prototype,"showButton",void 0);_.B([_.R(),_.v("design:type",Boolean)],Te.prototype,"firstCommentsLoaded",void 0);_.B([_.R(),_.v("design:type",Object)],Te.prototype,"continuationIsInitialLoad",void 0);
_.B([_.R({reflectToAttribute:!0,readOnly:!0}),_.v("design:type",Boolean)],Te.prototype,"itemDismissed",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.v("design:type",String)],Te.prototype,"sectionIdentifier",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.v("design:type",String)],Te.prototype,"fitContainer",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.v("design:type",Boolean)],Te.prototype,"hasDestinationShelfRenderer",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.v("design:type",Boolean)],Te.prototype,"staticCommentsHeader",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Te.prototype,"enableSqueezebackPanels",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Te.prototype,"enableAnchoredPanel",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.v("design:type",Boolean)],Te.prototype,"hasSectionGroupViewModel",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.v("design:type",Boolean)],Te.prototype,"hasQrCodeRenderer",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.v("design:type",Boolean)],Te.prototype,"suppressDisclaimerSeparator",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.v("design:type",String)],Te.prototype,"headerStyle",void 0);_.B([_.p("isSearch"),_.v("design:type",Object),_.v("design:paramtypes",[])],Te.prototype,"lockupExperiments",null);
_.B([_.p("isSearch"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Te.prototype,"typographyBump",null);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],Te.prototype,"header",void 0);_.B([_.T1("notSticky"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"dispatchChipBarIsSticky",null);
_.B([_.T1("commentsHidePanelButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"commentsHidePanelButtonChanged",null);_.B([_.bH("yt-retrieve-location"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Te.prototype,"onRetrieveLocation",null);
_.B([_.bH("yt-load-reload-continuation"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Function]),_.v("design:returntype")],Te.prototype,"onLoadReloadContinuation",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"onServiceRequestCompleted",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"dataChanged",null);
_.B([_.G1("data.contents.length"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"observeDataContentsLength",null);_.B([_.bH("yt-dismissible-item-dismissed"),_.bH("yt-dismissible-item-undismissed"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Te.prototype,"onYtDismissibleItemDismissedChange",null);
_.B([_.T1("continuationShowButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"continuationShowButtonChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Te.prototype,"dataChangedForBinding",null);_.B([_.H({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Te);
_.n(Te,"ytd-item-section-renderer",function(){if(Ws3!==void 0)return Ws3;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Ws3=O},{mode:1});var RsL;var cWN=_.KA(_.CZ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var U$p={},PCW=(U$p[0]={title:_.J3(_.CZ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.J3(_.CZ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.vU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},U$p[1]={title:_.J3(_.CZ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.vU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},U$p);_.tI("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var LK=function(){var O=_.a.apply(this,arguments)||this;O.allVideosCount=0;O.allPlaylistCount=0;O.isOnline=!1;O.shouldRenderDownloadsBanner=!1;O.shouldRenderDownloadsBannerUpsell=!1;O.hasOptedIntoSmartDownloads=!1;O.areAllSmartDownloadsDeleted=!1;O.smartDownloadsCompleted=!1;return O};
_.c(LK,_.a);LK.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
LK.prototype.attached=function(){this.downloadsToRenderChanged()};
LK.prototype.detached=function(){this.set("renderableData",{})};
LK.prototype.downloadsToRenderChanged=function(){var O=_.u9().getState().entities,x=_.yy(O),e=_.t("kevlar_playlist_dl_page_killswitch")?IXn(O):_.ZS(O),l=_.ycW(O),C=_.qJW(O),Q=_.Mc(x);O=_.EQ(O);this.set("renderableData",VFL(e,x,l,C,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,Q,O))};
LK.prototype.downloadsToRenderChanged=LK.prototype.downloadsToRenderChanged;_.B([_.V(_.$5),_.v("design:type",Object)],LK.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],LK.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],LK.prototype,"renderableData",void 0);_.B([_.R({selector:_.KP8}),_.v("design:type",Object)],LK.prototype,"allVideosCount",void 0);_.B([_.R({selector:Mcm}),_.v("design:type",Object)],LK.prototype,"allPlaylistCount",void 0);_.B([_.R({selector:_.Ix}),_.v("design:type",Object)],LK.prototype,"isOnline",void 0);_.B([_.R({selector:_.fXW}),_.v("design:type",Object)],LK.prototype,"shouldRenderDownloadsBanner",void 0);
_.B([_.R({selector:_.jVn}),_.v("design:type",Object)],LK.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.B([_.R({selector:_.Jcr}),_.v("design:type",Object)],LK.prototype,"hasOptedIntoSmartDownloads",void 0);_.B([_.R({selector:_.wtr}),_.v("design:type",Object)],LK.prototype,"areAllSmartDownloadsDeleted",void 0);_.B([_.R({selector:SJi}),_.v("design:type",Object)],LK.prototype,"smartDownloadsCompleted",void 0);
_.B([_.G1("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LK.prototype,"downloadsToRenderChanged",null);_.B([_.H({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],LK);
_.n(LK,"ytd-offline-item-section-renderer",function(){if(RsL!==void 0)return RsL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return RsL=O},
{mode:1});var anh;var m$Y;var kP=function(){return _.a.apply(this,arguments)||this};
_.c(kP,_.a);
kP.prototype.onDataChanged=function(){if(this.JSC$16864_lastData){var O=this.getFilterClass(this.JSC$16864_lastData.status);O&&this.hostElement.classList.remove(O)}var x;(O=this.getFilterClass((x=this.data)==null?void 0:x.status))&&this.hostElement.classList.add(O);O==="selected"?_.$U(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.$U(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");O==="disabled"?_.$U(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.$U(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16864_lastData=this.data};
kP.prototype.getFilterClass=function(O){switch(O){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
kP.prototype.onDataChanged=kP.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kP.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],kP.prototype,"onDataChanged",null);_.B([_.H({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],kP);
_.n(kP,"ytd-search-filter-renderer",function(){if(m$Y!==void 0)return m$Y;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return m$Y=O},{mode:_.gq("kevlar_poly_si_batch_j075")?1:2});var Ay=function(){return _.a.apply(this,arguments)||this};
_.c(Ay,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ay.prototype,"data",void 0);_.B([_.H({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Ay);
_.n(Ay,"ytd-search-filter-group-renderer",function(){if(anh!==void 0)return anh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return anh=O},{mode:_.gq("kevlar_poly_si_batch_j075")?1:2});var smL;var Mt=function(){return _.a.apply(this,arguments)||this};
_.c(Mt,_.a);Mt.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Gy());this.isCollapsed=!this.isCollapsed};
Mt.prototype.navigateToAboutTheseResultsPage=function(){var O=_.nU("https://www.youtube.com/howyoutubeworks/product-features/search/");O?_.$y(window,O,"_blank"):_.jS(Error("ai"))};
Mt.prototype.dataChanged=function(){this.isCollapsed=!0};
Mt.prototype.computeShowBottomBorder=function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.button)==null?0:x.toggleButtonRenderer)||!((e=this.data)==null||!e.aboutTheseResultsButton)};
Mt.prototype.dataChanged=Mt.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Mt.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.v("design:type",Boolean)],Mt.prototype,"showBottomBorder",void 0);_.B([_.R(),_.v("design:type",Boolean)],Mt.prototype,"renderCollapsibleMenu",void 0);
_.B([_.R(),_.v("design:type",Boolean)],Mt.prototype,"isCollapsed",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Mt.prototype,"dataChanged",null);_.B([_.H({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Mt);
_.n(Mt,"ytd-search-sub-menu-renderer",function(){if(smL!==void 0)return smL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return smL=O},{mode:1});var WLL;var hs4=new _.iR("SECTION_LIST_RENDERER_TOKEN");var zsQ;var DY=function(){return _.a.apply(this,arguments)||this};
_.c(DY,_.a);DY.prototype.computeStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],DY.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],DY.prototype,"headerStyle",void 0);_.B([_.H({is:"ytd-text-header-renderer",disableElementRegistration:!0})],DY);
_.n(DY,"ytd-text-header-renderer",function(){if(zsQ!==void 0)return zsQ;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return zsQ=O},{mode:1});var rL4;var Ge=function(){return _.a.apply(this,arguments)||this};
_.c(Ge,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ge.prototype,"data",void 0);_.B([_.H({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Ge);
_.n(Ge,"ytd-minor-moment-header-renderer",function(){if(rL4!==void 0)return rL4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return rL4=O},{mode:1});var HVL;var F3=function(){return _.a.apply(this,arguments)||this};
_.c(F3,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],F3.prototype,"data",void 0);_.B([_.H({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],F3);
_.n(F3,"ytd-minor-moment-setting-alert-renderer",function(){if(HVL!==void 0)return HVL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return HVL=O},{mode:1});var KLT;var d$Y;var X3=function(){var O=_.a.apply(this,arguments)||this;O.booleanSettingById=!1;O.smartDownloadsEnabledVE=_.O9(128287);O.smartDownloadsDisabledVE=_.O9(128286);O.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return O};
_.c(X3,_.a);_.b=X3.prototype;_.b.attachSmartDownloadsSettingVes=function(){var O;this.activeVeForLogging||((O=this.data)==null?void 0:O.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.qK(_.k0(),this.smartDownloadsEnabledVE),_.qK(_.k0(),this.smartDownloadsDisabledVE))};
_.b.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.wr(this.hostElement,"yt-settings-switch-ready")};
_.b.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.b.onSwitchChange=function(O){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(O=_.uK(O).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.t("kevlar_settings_switch_resolve_command_killswitch")?_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(O)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.b.handleUpdateSettingsSwitch=function(O){(O=_.q(O,$XD))&&this.data&&this.data.id===O.id&&this.set("data.enabled",!!O.enabled)};
_.b.onToggleSettingsSwitch=function(O,x){this.data&&this.data.id===O&&this.set("data.enabled",x!=null?x:!this.data.enabled)};
_.b.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Ax.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.b.maybeLogSmartDownloadsSettingVisibility=function(){var O=_.Pq(),x;O&&((x=this.data)==null?void 0:x.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.rT(O,[this.smartDownloadsEnabledVE]),_.HU(O,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.rT(O,[this.smartDownloadsDisabledVE]),_.HU(O,[this.smartDownloadsEnabledVE])))};
_.b.maybeLogSmartDownloadsSettingClick=function(){var O;((O=this.data)==null?void 0:O.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.cu(_.k0(),this.activeVeForLogging)};
_.b.updateDataEnabledFromBinding=function(O){this.set("data.enabled",O.detail.value)};
_.Dy.Object.defineProperties(X3.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var O=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!O&&(O=this.ytRendererBehavior.getSimpleString(this.data.title));return O}}});
X3.prototype.dataChanged=X3.prototype.dataChanged;_.B([_.V(_.$5),_.v("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],X3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],X3.prototype,"data",void 0);_.B([_.R({selector:function(O,x){if(Object.keys(O==null?void 0:O.entities).length)switch(x){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return VO7(O.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.v("design:type",Object)],X3.prototype,"booleanSettingById",void 0);_.B([_.R(),_.v("design:type",ts)],X3.prototype,"activeVeForLogging",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],X3.prototype,"toggleAriaLabel",null);_.B([_.G1("data"),_.G1("booleanSettingById"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],X3.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],X3);
_.n(X3,"ytd-settings-switch-renderer",function(){if(d$Y!==void 0)return d$Y;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return d$Y=O},{mode:1});var oY=function(){return _.a.apply(this,arguments)||this};
_.c(oY,_.a);oY.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}}}}};
_.Dy.Object.defineProperties(oY.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var O=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(O+=" remove-left-margin");this.data.extraBottomSpace&&(O+=" extra-bottom-space");return O}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oY.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],oY.prototype,"contentsClassName",null);_.B([_.H({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],oY);
_.n(oY,"ytd-minor-moment-setting-section-renderer",function(){if(KLT!==void 0)return KLT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return KLT=O},{mode:1});var nWL;var yh=function(){return _.a.apply(this,arguments)||this};
_.c(yh,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],yh.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yh.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],yh);
_.n(yh,"ytd-empty-product-details-renderer",function(){if(nWL!==void 0)return nWL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return nWL=O},{mode:1});var ur$;var Y8L;var ZY=function(){var O=_.a.apply(this,arguments)||this;O.expanded=!0;return O};
_.c(ZY,_.a);ZY.prototype.getBadgeRowClass=function(O,x,e){for(var l=_.T(this.hostElement.querySelectorAll("yt-img-shadow")),C=l.next();!C.done;C=l.next())C.value.onShow();O=O.selected;return e?O!==-1?O===x?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(O!==void 0?O:0)===x?"badge-line":"badge-hidden"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ZY.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ZY.prototype,"expanded",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],ZY);
_.n(ZY,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Y8L!==void 0)return Y8L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Y8L=O},{mode:1});var B7X;var Et=function(){var O=_.a.apply(this,arguments)||this;O.expanded=!0;return O};
_.c(Et,_.a);Et.prototype.getContainerClasses=function(O,x){O=O?"expanded":"collapsed";x&&(O+=" item");return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Et.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Et.prototype,"expanded",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Et);
_.n(Et,"ytd-sponsorships-perk-renderer",function(){if(B7X!==void 0)return B7X;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return B7X=O},{mode:1});var vWQ;var ty=function(){var O=_.a.apply(this,arguments)||this;O.expanded=!0;return O};
_.c(ty,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ty.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ty.prototype,"expanded",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],ty);
_.n(ty,"ytd-sponsorships-perks-renderer",function(){if(vWQ!==void 0)return vWQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return vWQ=O},{mode:1});var qt=function(){var O=_.a.apply(this,arguments)||this;O.isCollapsed=!1;return O};
_.c(qt,_.a);qt.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
qt.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
qt.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var O;this.expandCollapseButton=_.q((O=this.data)==null?void 0:O.expandButton,_.wf)}else{var x;this.expandCollapseButton=_.q((x=this.data)==null?void 0:x.collapseButton,_.wf)}};
qt.prototype.updateExpandCollapseButton=qt.prototype.updateExpandCollapseButton;qt.prototype.onDataChanged=qt.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qt.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],qt.prototype,"isCollapsed",void 0);_.B([_.R(),_.v("design:type",Object)],qt.prototype,"expandCollapseButton",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qt.prototype,"onDataChanged",null);_.B([_.G1("data","isCollapsed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qt.prototype,"updateExpandCollapseButton",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],qt);
_.n(qt,"ytd-sponsorships-expandable-perks-renderer",function(){if(ur$!==void 0)return ur$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ur$=O},{mode:1});var fn$;var Pp=function(){return _.a.apply(this,arguments)||this};
_.c(Pp,_.a);Pp.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Pp.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Pp.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Pp);
_.n(Pp,"ytd-sponsorships-actionable-message-renderer",function(){if(fn$!==void 0)return fn$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return fn$=O},{mode:1});var JL4;var cp=function(){return _.a.apply(this,arguments)||this};
_.c(cp,_.a);_.b=cp.prototype;_.b.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.b.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
_.b.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.b.computeMessageContainerStyle=function(O){var x=O.expandableItems?" style-clickable":"";return O.messageContainerStyle?O.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+x:"style-unspecified"+x};
_.b.isSinglePerk=function(O){return!!O.messageContainerStyle&&(O.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||O.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.b.onExpandedChanged=function(){var O=this;if(this.expanded)for(var x=_.T(this.hostElement.querySelectorAll("yt-img-shadow")),e=x.next();!e.done;e=x.next())e.value.onShow();_.A_(this,function(){_.wr(O.hostElement,"yt-refit")})};
_.b.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
cp.prototype.onDataChanged=cp.prototype.onDataChanged;cp.prototype.onExpandedChanged=cp.prototype.onExpandedChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cp.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],cp.prototype,"expanded",void 0);
_.B([_.T1("expanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cp.prototype,"onExpandedChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cp.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],cp);
_.n(cp,"ytd-sponsorships-expandable-message-renderer",function(){if(JL4!==void 0)return JL4;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return JL4=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var wiL;var IY=function(){return _.a.apply(this,arguments)||this};
_.c(IY,_.a);IY.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"}}}}};
IY.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.q(this.data.endButton,_.wf).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
IY.prototype.onDataChanged=IY.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],IY.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IY.prototype,"onDataChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],IY);
_.n(IY,"ytd-sponsorships-heading-renderer",function(){if(wiL!==void 0)return wiL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wiL=O},{mode:1});var S8h;var Vh=function(){return _.a.apply(this,arguments)||this};
_.c(Vh,_.a);_.B([_.R(),_.v("design:type",Object)],Vh.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Vh);
_.n(Vh,"ytd-sponsorships-links-renderer",function(){if(S8h!==void 0)return S8h;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return S8h=O},{mode:1});var jmw;var pK=function(){return _.a.apply(this,arguments)||this};
_.c(pK,_.a);_.b=pK.prototype;_.b.onDataChanged=function(){if(this.data&&this.data.expandableItems){var O;(O=_.$U(this.hostElement).querySelector("tp-yt-paper-button"))==null||O.setAttribute("role","button")}else{var x;(x=_.$U(this.hostElement).querySelector("tp-yt-paper-button"))==null||x.removeAttribute("role")}};
_.b.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.b.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
_.b.getTileClasses=function(O){return O?"tile expandable-tile":"tile"};
_.b.getButtonDisabled=function(O){return O?void 0:""};
pK.prototype.onDataChanged=pK.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pK.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],pK.prototype,"expanded",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pK.prototype,"onDataChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],pK);
_.n(pK,"ytd-sponsorships-list-tile-renderer",function(){if(jmw!==void 0)return jmw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jmw=O},{mode:1});var N7Y;var gWQ;var RY=function(){return _.a.apply(this,arguments)||this};
_.c(RY,_.a);RY.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],RY.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],RY);
_.n(RY,"ytd-sponsorships-promotion-renderer",function(){if(gWQ!==void 0)return gWQ;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gWQ=O},{mode:1});var $$L;var Ut=function(){return _.a.apply(this,arguments)||this};
_.c(Ut,_.a);Ut.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ut.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Ut);
_.n(Ut,"ytd-sponsorships-purchase-option-renderer",function(){if($$L!==void 0)return $$L;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return $$L=O},{mode:1});var iVL;var O2Q;var xkQ=function(){return _.a.apply(this,arguments)||this};
_.c(xkQ,_.a);_.B([_.R(),_.v("design:type",Object)],xkQ.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],xkQ);
_.n(xkQ,"ytd-ypc-offer-promo-renderer",function(){if(O2Q!==void 0)return O2Q;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return O2Q=O},{mode:1});var aY=function(){return _.a.apply(this,arguments)||this};
_.c(aY,_.a);_.b=aY.prototype;
_.b.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"}}}}};
_.b.expansionCTA=function(O,x){return O&&(x?O.collapseCallToAction:O.expansionCallToAction)};
_.b.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
_.b.expansionCallToActionTap=function(){var O=this;this.expanded=!this.expanded;_.A_(this,function(){_.wr(O.hostElement,"yt-refit")})};
_.b.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var O,x=(O=this.data)==null?void 0:O.onVisible;x&&this.ytComponentBehavior.resolveCommand(x)};
_.b.computeDisplayTitle=function(O){return!(!O||this.titledisplaystatus!=="show")};
_.b.computeDisplaySeparator=function(){return!1};
_.b.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
aY.prototype.onDataChanged=aY.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],aY.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],aY.prototype,"data",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],aY.prototype,"expanded",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],aY.prototype,"purchaseButtonClicked",void 0);_.B([_.R({reflectToAttribute:!0,value:"show"}),_.v("design:type",String)],aY.prototype,"titledisplaystatus",void 0);_.B([_.R({computed:"computeDisplayTitle(data.title)"}),_.v("design:type",Boolean)],aY.prototype,"displayTitle",void 0);
_.B([_.R({computed:"computeDisplaySeparator(data)"}),_.v("design:type",Boolean)],aY.prototype,"displaySeparator",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aY.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],aY);
_.n(aY,"ytd-sponsorships-tier-renderer",function(){if(iVL!==void 0)return iVL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return iVL=O},{mode:2});var mU=function(){return _.a.apply(this,arguments)||this};
_.c(mU,_.a);
mU.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mU.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],mU);
_.n(mU,"ytd-sponsorships-management-renderer",function(){if(N7Y!==void 0)return N7Y;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return N7Y=O},{mode:1});var eLw;var st=function(){return _.a.apply(this,arguments)||this};
_.c(st,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],st.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],st);
_.n(st,"ytd-open-in-native-app-view-model",function(){if(eLw!==void 0)return eLw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return eLw=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var lDL;var CFT;var QzQ=_.zo(["top-"]),b2e=_.zo(["bottom-"]),TNu=_.zo(["left-"]),L3L=_.zo(["right-"]),kph={},AJe=function(O,x,e){O.removeAttribute("top-"+e);O.removeAttribute("bottom-"+e);O.removeAttribute("left-"+e);O.removeAttribute("right-"+e);x&&(x.top&&_.Tt([_.GJ(QzQ)],O,"top-"+e,x.top),x.bottom&&_.Tt([_.GJ(b2e)],O,"bottom-"+e,x.bottom),x.left&&_.Tt([_.GJ(TNu)],O,"left-"+e,x.left),x.right&&_.Tt([_.GJ(L3L)],O,"right-"+e,x.right))};
kph.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(O){var x,e=_.$U((x=this.hostElement)!=null?x:this),l;x=this.cardItemBoxBehaviorMarginTargetId&&e?e.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(l=this.hostElement)!=null?l:this;AJe(x,O,"margin")},
cardItemContainerPaddingChanged_:function(O){var x,e=_.$U((x=this.hostElement)!=null?x:this),l;x=this.cardItemBoxBehaviorPaddingTargetId&&e?e.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(l=this.hostElement)!=null?l:this;AJe(x,O,"padding")}}];var Wp={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 M$T;var DkT;var hy=function(){return _.a.apply(this,arguments)||this};
_.c(hy,_.a);hy.prototype.textColorChanged_=function(){this.hostElement.style.color=Wp[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
hy.prototype.textColorChanged_=hy.prototype.textColorChanged_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.B([_.V(kph.YtCardItemBoxBehavior),_.v("design:type",Object)],hy.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hy.prototype,"data",void 0);_.B([_.T1("data.textColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hy.prototype,"textColorChanged_",null);
_.B([_.Va({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],hy);
_.n(hy,"yt-card-item-text-renderer",function(){if(DkT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;M$T===void 0&&(M$T=document.createElement("template"));var l=M$T;e.call(x,l.content.cloneNode(!0),O.content.firstChild);DkT=O}O=DkT;return O},{mode:2});var GpX;var F3X;var ze=function(){return _.a.apply(this,arguments)||this};
_.c(ze,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ze.prototype,"data",void 0);_.B([_.Va({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],ze);
_.n(ze,"yt-card-item-badge-renderer",function(){if(F3X===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;GpX===void 0&&(GpX=document.createElement("template"));var l=GpX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);F3X=O}O=F3X;return O},{mode:2});var XdL;var odT;var rU=function(){return _.a.apply(this,arguments)||this};
_.c(rU,_.a);rU.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],rU.prototype,"data",void 0);_.B([_.Va({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],rU);
_.n(rU,"yt-card-item-text-collection-renderer",function(){if(odT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;XdL===void 0&&(XdL=document.createElement("template"));var l=XdL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);odT=O}O=odT;return O},{mode:2});var yJY;var Z24;var Hp=function(){return _.a.apply(this,arguments)||this};
_.c(Hp,_.a);Hp.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]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Hp.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Number)],Hp.prototype,"iconSize",void 0);_.B([_.Va({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Hp);
_.n(Hp,"yt-card-item-text-with-button-renderer",function(){if(Z24===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;yJY===void 0&&(yJY=document.createElement("template"));var l=yJY;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Z24=O}O=Z24;return O},{mode:2});var KK=function(){return _.a.apply(this,arguments)||this};
_.c(KK,_.a);KK.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],KK.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],KK.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],KK);
_.n(KK,"ytd-commerce-cart-summary-line-item-renderer",function(){if(CFT!==void 0)return CFT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return CFT=O},{mode:1});_.tI("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var dU=function(){var O=_.a.apply(this,arguments)||this;O.hidden=!1;return O};
_.c(dU,_.a);_.b=dU.prototype;_.b.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"}}}}};
_.b.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.b.updateSummary=function(){var O=this.commerceCartCheckoutButtonEntity,x;if(((x=this.data)==null?0:x.cartButton)&&O.checkoutSummaryText){var e,l=o$((e=this.data)==null?void 0:e.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+l+".cardItemTextRenderer.text",yn(O.checkoutSummaryText));if(O.checkoutDetailText){var C;e=o$((C=this.data)==null?void 0:C.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",yn(O.checkoutDetailText))}if(O.checkoutAdditionalMetadataText){var Q;
C=o$((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",yn(O.checkoutAdditionalMetadataText))}}else O.estimatedTotalPrice&&(Q=o$((l=this.data)==null?void 0:l.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",yn(O.estimatedTotalPrice)))};
_.b.updateIsHidden=function(){var O,x=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.isHidden;x!==void 0&&(this.hidden=x)};
_.b.updateCheckoutButton=function(){var O,x=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.isDisabled;x!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",x);var e;O=(e=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:e.innertubeCommand;O!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",O);var l;e=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.checkoutButtonText;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:e})};
dU.prototype.entityChanged=dU.prototype.entityChanged;_.B([_.V(_.$5),_.v("design:type",Object)],dU.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],dU.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],dU.prototype,"fullWidth",void 0);_.B([_.R(),_.v("design:type",Object)],dU.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],dU.prototype,"compact",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],dU.prototype,"hidden",void 0);
_.B([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Q57}),_.v("design:type",Object)],dU.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.T1("commerceCartCheckoutButtonEntity","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],dU.prototype,"entityChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],dU);
_.n(dU,"ytd-commerce-cart-checkout-button-renderer",function(){if(lDL!==void 0)return lDL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return lDL=O},{mode:2});var Ede;_.t$X={};
_.t$X.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",_.Qa(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Qa(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(O){!this.tappableItemBehaviorTapEnabled||O.keyCode!==13&&O.keyCode!==32||O.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var O=this.data.onTap;O.ypcGetCartEndpoint?(_.N9(this.hostElement,[O]),this.tappableItemBehaviorTapEnabled=!1):O.ypcOffersEndpoint?_.N9(this.hostElement,[O]):_.gr(this.hostElement,[O],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(O){this.tappableItemBehaviorTapEnabled=!!O},
tappableItemBehaviorOnTapEnabledChanged_:function(){var O=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(O.setAttribute("tabIndex",0),O.setAttribute("role","button")):(O.removeAttribute("tabIndex"),O.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(O){O.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var qTY;var PFw;var nK=function(){return _.a.apply(this,arguments)||this};
_.c(nK,_.a);nK.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.q5("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.q5("sharingToggleButtonAndDefaultButton")}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],nK.prototype,"data",void 0);_.B([_.Va({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],nK);
_.n(nK,"yt-card-item-actions-renderer",function(){if(PFw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;qTY===void 0&&(qTY=document.createElement("template"));var l=qTY;e.call(x,l.content.cloneNode(!0),O.content.firstChild);PFw=O}O=PFw;return O},{mode:2});var cJT;var IDw;var V$$;var pd4;var RLQ;var UkL;var ui=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return O};
_.c(ui,_.a);ui.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ui.prototype.handleDarkModeToggledAction_=function(O){this.isDarkTheme_=O};
ui.prototype.computeThemeImage_=function(O,x){if(!O||!O.imageLight)return!1;this.isCircular_=O.isCircular;O.imageWidth&&(this.hostElement.style.width=O.imageWidth+"px");O.imageHeight&&(this.hostElement.style.height=O.imageHeight+"px");O.borderWidth&&(this.image.style.borderWidth=O.borderWidth+"px",this.image.style.borderStyle="solid");O.borderColor&&(this.image.style.borderColor=_.aF(O.borderColor));return x&&O.imageDark?O.imageDark:O.imageLight};
ui.prototype.computeThemeIcon_=function(O){var x,e;if(!(O==null?0:(x=O.themedIcon)==null?0:(e=x.icon)==null?0:e.iconType))return!1;this.icon.style.color=Wp[O.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(O.imageWidth||18)+"px";this.icon.style.height=(O.imageHeight||18)+"px";return _.x0(O.themedIcon.icon.iconType)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(kph.YtCardItemBoxBehavior),_.v("design:type",Object)],ui.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ui.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ui.prototype,"data",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],ui.prototype,"fit",void 0);_.B([_.R(),_.v("design:type",Boolean)],ui.prototype,"isDarkTheme_",void 0);_.B([_.R({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.v("design:type",Object)],ui.prototype,"themeImage_",void 0);_.B([_.R({computed:"computeThemeIcon_(data)"}),_.v("design:type",Object)],ui.prototype,"themeIcon_",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Object)],ui.prototype,"isCircular_",void 0);
_.B([_.kX("#image"),_.v("design:type",Object)],ui.prototype,"image",void 0);_.B([_.kX("#icon"),_.v("design:type",Object)],ui.prototype,"icon",void 0);_.B([_.Va({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ui);
_.n(ui,"yt-themed-image-renderer",function(){if(UkL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;RLQ===void 0&&(RLQ=document.createElement("template"));var l=RLQ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);UkL=O}O=UkL;return O},{mode:2});var YP=function(){return _.a.apply(this,arguments)||this};
_.c(YP,_.a);YP.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"}}}}};
YP.prototype.computeImagePlacement_=function(O){return O||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],YP.prototype,"data",void 0);_.B([_.R({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.v("design:type",String)],YP.prototype,"imagePlacement",void 0);
_.B([_.Va({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],YP);
_.n(YP,"yt-card-item-text-with-image-renderer",function(){if(pd4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;V$$===void 0&&(V$$=document.createElement("template"));var l=V$$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);pd4=O}O=pd4;return O},{mode:2});var Bp=function(){return _.a.apply(this,arguments)||this};
_.c(Bp,_.a);Bp.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"}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Bp.prototype,"data",void 0);_.B([_.Va({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Bp);
_.n(Bp,"yt-card-item-error-renderer",function(){if(IDw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;cJT===void 0&&(cJT=document.createElement("template"));var l=cJT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);IDw=O}O=IDw;return O},{mode:2});var aDp;var mkw;_.tI("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var vp=function(){return _.a.apply(this,arguments)||this};
_.c(vp,_.a);_.b=vp.prototype;
_.b.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"}}}}};
_.b.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.b.backgroundColorChanged_=function(){var O,x=(O=this.data)==null?void 0:O.backgroundColor;O=Wp[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.$U(this.hostElement).querySelector("#main-content").style.backgroundColor=O};
_.b.headerPromoBackgroundColorChanged_=function(){var O,x=(O=this.data)==null?void 0:O.headerPromoBackgroundColor;O=Wp[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.$U(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=O};
_.b.errorRendererVisibilityChanged_=function(){var O=this.isExpanded_,x;this.isErrorRendererVisible_=!((x=this.data)==null||!x.errorRenderer)&&!O};
_.b.onYtToggleButton_=function(O,x){this.isExpanded_=x.toggled};
vp.prototype.onYtToggleButton_=vp.prototype.onYtToggleButton_;vp.prototype.errorRendererVisibilityChanged_=vp.prototype.errorRendererVisibilityChanged_;vp.prototype.headerPromoBackgroundColorChanged_=vp.prototype.headerPromoBackgroundColorChanged_;vp.prototype.backgroundColorChanged_=vp.prototype.backgroundColorChanged_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(kph.YtCardItemBoxBehavior),_.v("design:type",Object)],vp.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.V(_.t$X.YtTappableItemBehavior),_.v("design:type",Object)],vp.prototype,"ytTappableItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vp.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],vp.prototype,"isExpanded_",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],vp.prototype,"isErrorRendererVisible_",void 0);_.B([_.T1("data.backgroundColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vp.prototype,"backgroundColorChanged_",null);_.B([_.T1("data.headerPromoBackgroundColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vp.prototype,"headerPromoBackgroundColorChanged_",null);
_.B([_.T1("data.errorRenderer","isExpanded_"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vp.prototype,"errorRendererVisibilityChanged_",null);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[Event,Object]),_.v("design:returntype")],vp.prototype,"onYtToggleButton_",null);_.B([_.Va({is:"yt-card-item-renderer",disableElementRegistration:!0})],vp);
_.n(vp,"yt-card-item-renderer",function(){if(mkw===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;aDp===void 0&&(aDp=document.createElement("template"));var l=aDp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);mkw=O}O=mkw;return O},{mode:2});_.tI("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var fK=function(){var O=_.a.apply(this,arguments)||this;O.hidden=!1;return O};
_.c(fK,_.a);_.b=fK.prototype;_.b.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.b.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.b.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var O,x=(O=this.commerceCartHeaderEntity)==null?void 0:O.isHidden;x!==void 0&&(this.hidden=x)}};
_.b.updateTitle=function(){var O=this.commerceCartHeaderEntity.isDisabled,x,e,l=(e=_.q((x=this.data)==null?void 0:x.item,SqL))==null?void 0:e.headingRenderer;l&&(x=o$(l,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+x+".0.cardItemTextRenderer.textColor",O?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.b.updateSummaryText=function(){var O=this.commerceCartHeaderEntity;if(this.compact){var x,e,l=(e=_.q((x=this.data)==null?void 0:x.item,SqL))==null?void 0:e.headingRenderer;l&&(x=o$(l,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+x+".1.cardItemTextRenderer.text",O.shortHeaderSummaryText?yn(O.shortHeaderSummaryText):O.headerSummaryText?yn(O.headerSummaryText):""))}else{var C;if(x=(C=_.q((l=this.data)==null?void 0:l.item,SqL))==null?void 0:C.additionalInfoRenderer)x=o$(x,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+x+".text",O.headerSummaryText?yn(O.headerSummaryText):"")}};
_.b.updateCheckoutButton=function(){var O=this.commerceCartHeaderEntity,x,e,l=(e=_.q((x=this.data)==null?void 0:x.item,SqL))==null?void 0:e.additionalInfoRenderer;x=o$(l,"buttonRenderer");var C;e=(C=this.commerceCartHeaderEntity)==null?void 0:C.isButtonDisabled;var Q;C=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonHidden;e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+x+".buttonRenderer.isDisabled",e);C!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
C);var L;O=(L=O.checkoutButtonCommand)==null?void 0:L.innertubeCommand;O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+x+".buttonRenderer.command",O)};
fK.prototype.entityChanged=fK.prototype.entityChanged;_.B([_.V(_.$5),_.v("design:type",Object)],fK.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fK.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],fK.prototype,"compact",void 0);_.B([_.R({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(O,x){return _.xE(O.entities,"commerceCartHeaderEntity",x)}}),
_.v("design:type",Object)],fK.prototype,"commerceCartHeaderEntity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],fK.prototype,"hidden",void 0);_.B([_.T1("commerceCartHeaderEntity","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fK.prototype,"entityChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],fK);
_.n(fK,"ytd-commerce-cart-header-renderer",function(){if(Ede!==void 0)return Ede;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Ede=O},{mode:1});var szY;var W3T=_.yf(function(O,x){var e;return(e=O.onChangeCallback)==null?void 0:e.call(O,x)},1E3),hLT=_.K(function(O){var x=O.data;
var e=O.iconMinus;O=O.iconPlus;var l=function(){return!!x().disabled},C=_.T(_.Iw(0,void 0,"mKh0af")),Q=C.next().value,L=C.next().value;
C=_.lk(function(){if(Q()===1){var y,Z;(Z=(y=x()).onRemoveCommand)==null||Z.call(y)}y=Q()>x().maxValue?x().maxValue:Q()-1;L(y);W3T(x(),y);return!1});
var k=_.lk(function(){if(Q()===x().maxValue)return!1;var y=Q()+1;L(y);W3T(x(),y);return!1});
_.u8(function(){L(x().value)});
var M={},G={},X={};return _.D("quantity-incrementer-shape",null,_.D("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.D("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return Q()===(x().onRemoveCommand?0:1)||l()},
"aria-label":function(){return Q()!==1?x().minusLabel:x().minimumReachedLabel},
"on:click":C},_.D(_.ct,{model:{circular:!0}}),_.D("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.D("div",{class:_.xz("ytSpecQuantityIncrementerShapeIcon",(M.ytSpecQuantityIncrementerShapeIconDisabled=function(){return l()||Q()===(x().onRemoveCommand?0:1)},M))},e()))),_.D("div",{class:_.xz("ytSpecQuantityIncrementerShapeText",(G.ytSpecQuantityIncrementerShapeTextInvalid=function(){return Q()>x().maxValue},G.ytSpecQuantityIncrementerShapeTextDisabled=l,G))},Q),_.D("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return Q()>=x().maxValue||l()},
"aria-label":function(){return Q()!==x().maxValue?x().plusLabel:x().maximumReachedLabel},
"on:click":k},_.D(_.ct,{model:{circular:!0}}),_.D("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.D("div",{class:_.xz("ytSpecQuantityIncrementerShapeIcon",(X.ytSpecQuantityIncrementerShapeIconDisabled=function(){return Q()>=x().maxValue||l()},X))},O())))))},"Ef");_.wP(_.K(function(O){function x(){e().onRemoveCommand&&_.me(e().onRemoveCommand)}
var e=O.data;var l=_.L5(t9r,function(){return e().quantityIncrementerEntityKey});
return _.D("yt-quantity-incrementer-view-model",null,_.D(hLT,{data:function(){var C=e(),Q;var L=l()?!((Q=l())==null||!Q.disabled):!1;var k;Q=l()?(k=l())==null?void 0:k.quantity:e().quantity;return UWr(C,L,x,Q)},
iconMinus:function(){return _.D(_.L7,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.D(_.L7,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Ff"),"yt-quantity-incrementer-view-model",{props:{data:_.Ld}});var Jy=function(){var O=_.a.apply(this,arguments)||this;O.compact=!1;O.hasQuantityIncrementer=!1;return O};
_.c(Jy,_.a);Jy.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"}}}};
Jy.prototype.computeHasQuantityIncrementer=function(){var O;return!!_.q((O=this.data)==null?void 0:O.picker,$zd)};
Jy.prototype.onLabelClick=function(){var O;(O=this.dropdownEl)==null||O.open()};
_.B([_.kX("ytd-dropdown-renderer"),_.v("design:type",Object)],Jy.prototype,"dropdownEl",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Jy.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Jy.prototype,"quantityColor",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Jy.prototype,"compact",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.v("design:type",Object)],Jy.prototype,"hasQuantityIncrementer",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Jy);
_.n(Jy,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(szY!==void 0)return szY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return szY=O},{mode:1});var zLT;var rJX;var wU=function(){return _.a.apply(this,arguments)||this};
_.c(wU,_.a);wU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
wU.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
wU.prototype.updateTitle=function(){var O=this.disabledCartItemEntity;O.disableActionName&&this.set("data.title",yn(O.disableActionName))};
wU.prototype.updateButton=function(){var O,x=(O=this.disabledCartItemEntity.undoCommand)==null?void 0:O.innertubeCommand;x!==void 0&&(this.set("data.actionButton.buttonRenderer.command",x),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
wU.prototype.entityChanged=wU.prototype.entityChanged;_.B([_.V(_.$5),_.v("design:type",Object)],wU.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(O,x){return _.xE(O.entities,"disabledCartItemEntity",x)}}),
_.v("design:type",Object)],wU.prototype,"disabledCartItemEntity",void 0);_.B([_.R(),_.v("design:type",Object)],wU.prototype,"data",void 0);_.B([_.T1("disabledCartItemEntity","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],wU.prototype,"entityChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],wU);
_.n(wU,"ytd-disabled-cart-item-renderer",function(){if(rJX!==void 0)return rJX;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return rJX=O},{mode:1});_.tI("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var SB=function(){var O=_.a.apply(this,arguments)||this;O.compact=!1;O.hidden=!1;O.errorHidden=!1;O.noOnTap=!1;return O};
_.c(SB,_.a);_.b=SB.prototype;
_.b.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"}}}};
_.b.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.b.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var O=this.firstButtonElement;O.alignByText=!0;O.iconAlignByText=!0}};
_.b.computeNoOnTap=function(O){return!O};
_.b.updateQuantityColor=function(){if(this.pickerElement){var O,x=(O=this.commerceCartItemEntity)==null?void 0:O.quantityColor;this.pickerElement.quantityColor=x}};
_.b.updateTotalPriceColor=function(){var O,x=(O=this.commerceCartItemEntity)==null?void 0:O.totalPriceColor;if(x){var e;O=_.q((e=this.data)==null?void 0:e.quantityPicker,N6T);if(e=_.q(O==null?void 0:O.price,j0F))e.textColor=x}};
_.b.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var O,x=(O=this.commerceCartItemEntity)==null?void 0:O.isHidden;x!==void 0&&(this.hidden=x)}};
_.b.updateHideErrorMessage=function(){var O,x=(O=this.commerceCartItemEntity)==null?void 0:O.hideErrorMessage;x!==void 0&&(this.errorHidden=x)};
_.b.updateQuantity=function(){var O=this,x,e=(x=this.commerceCartItemEntity)==null?void 0:x.quantity,l;x=(l=this.commerceCartItemEntity)==null?void 0:l.totalPrice;if(e){this.updateTotalPriceColor();this.updateQuantityColor();var C;l=_.q((C=this.data)==null?void 0:C.quantityPicker,N6T);if(C=_.q(l==null?void 0:l.price,j0F))C.text=x?{simpleText:x.content}:void 0;if(x=_.q(l==null?void 0:l.picker,$zd))x.quantity=e;var Q;if(C=(Q=_.q(l==null?void 0:l.picker,jVD))==null?void 0:Q.entries){Q=!1;x=void 0;C=
_.T(C);for(l=C.next();!l.done;l=C.next())l=l.value,l.dropdownItemRenderer&&(x||(x=l.dropdownItemRenderer),l.dropdownItemRenderer.isSelected=!1,e===l.dropdownItemRenderer.int32Value&&(Q=!0,l.dropdownItemRenderer.isSelected=!0));!Q&&x&&(x.isSelected=!0)}_.A_(this,function(){var L;O.set("data.quantityPicker",_.HX.unsafeClone((L=O.data)==null?void 0:L.quantityPicker))})}};
SB.prototype.onYtRendererstamperFinished=SB.prototype.onYtRendererstamperFinished;SB.prototype.entityChanged=SB.prototype.entityChanged;_.B([_.R(),_.v("design:type",Object)],SB.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SB.prototype,"compact",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],SB.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],SB.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(O,x){return _.xE(O.entities,"commerceCartItemEntity",x)}}),
_.v("design:type",Object)],SB.prototype,"commerceCartItemEntity",void 0);_.B([_.R(),_.v("design:type",Object)],SB.prototype,"quantityPicker",void 0);_.B([_.R(),_.v("design:type",Object)],SB.prototype,"compactQuantityPicker",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SB.prototype,"hidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SB.prototype,"errorHidden",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.v("design:type",Object)],SB.prototype,"noOnTap",void 0);_.B([_.kX("ytd-commerce-cart-item-quantity-picker-renderer"),_.v("design:type",Object)],SB.prototype,"pickerElement",void 0);_.B([_.kX("yt-button-renderer"),_.v("design:type",Element)],SB.prototype,"firstButtonElement",void 0);
_.B([_.T1("commerceCartItemEntity","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SB.prototype,"entityChanged",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SB.prototype,"onYtRendererstamperFinished",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],SB);
_.n(SB,"ytd-commerce-cart-item-renderer",function(){if(zLT!==void 0)return zLT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return zLT=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var H2L;var K3p;var jB=function(){return _.a.apply(this,arguments)||this};
_.c(jB,_.a);jB.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}}}}}};
jB.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
jB.prototype.updateCheckoutLineItems=function(){var O,x=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.checkoutLineItems;x&&(O=x.map(function(e){a:{var l=e.price,C=e.description;switch(e.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":e={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:yn(C),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:yn(l),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:e={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:yn(C),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:yn(l),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 e}),this.set("data.summaryLineItems",O))};
jB.prototype.updateIsHidden=function(){var O,x=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.isHidden;x!==void 0&&(this.hostElement.hidden=x)};
jB.prototype.entityChanged=jB.prototype.entityChanged;_.B([_.V(_.$5),_.v("design:type",Object)],jB.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],jB.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],jB.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Q57}),_.v("design:type",Object)],jB.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.T1("commerceCartCheckoutButtonEntity","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jB.prototype,"entityChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],jB);
_.n(jB,"ytd-commerce-cart-summary-renderer",function(){if(K3p!==void 0)return K3p;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return K3p=O},{mode:1});var dkQ={};dkQ.InjectBehavior=[xVL.InjectBehavior];var ndO;var u4X;var Nt=function(){return _.a.apply(this,arguments)||this};
_.c(Nt,_.a);
Nt.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:_.q5("menuRenderer")}}};
Nt.prototype.onMenuTap=function(O){O.stopPropagation()};
_.Dy.Object.defineProperties(Nt.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 O,x;return!(((O=this.data)==null||!O.sectionHeading)&&((x=this.data)==null?void 0:x.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var O,x;return!(((O=this.data)==null||!O.image)&&((x=this.data)==null?void 0:x.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var O,x;return!(((O=this.data)==null||!O.menu)&&((x=this.data)==null?void 0:x.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.t$X.YtTappableItemBehavior),_.v("design:type",Object)],Nt.prototype,"ytTappableItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Nt.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data.accessibilityData"),_.v("design:type",String),_.v("design:paramtypes",[])],Nt.prototype,"ariaLabel",null);_.B([_.p("data.sectionHeading","data.layout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Nt.prototype,"sectionHeadingVisible",null);_.B([_.p("data.image","data.layout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Nt.prototype,"imageVisible",null);
_.B([_.p("data.menu","data.layout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Nt.prototype,"menuVisible",null);_.B([_.Va({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Nt);
_.n(Nt,"yt-activity-item-renderer",function(){if(u4X===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ndO===void 0&&(ndO=document.createElement("template"));var l=ndO;e.call(x,l.content.cloneNode(!0),O.content.firstChild);u4X=O}O=u4X;return O},{mode:2});var YTp;var BNX;var vdX;var fD4;var gU=function(){return _.a.apply(this,arguments)||this};
_.c(gU,_.a);
gU.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"}}}}};
gU.prototype.backgroundColorChanged_=function(){var O,x=(O=this.data)==null?void 0:O.backgroundColor;this.hostElement.style.backgroundColor=Wp[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
gU.prototype.backgroundColorChanged_=gU.prototype.backgroundColorChanged_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gU.prototype,"data",void 0);
_.B([_.T1("data.backgroundColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gU.prototype,"backgroundColorChanged_",null);_.B([_.Va({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],gU);
_.n(gU,"yt-offer-item-upsell-renderer",function(){if(fD4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;vdX===void 0&&(vdX=document.createElement("template"));var l=vdX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);fD4=O}O=fD4;return O},{mode:2});_.tI("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var $P=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};O.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return O};
_.c($P,_.a);_.b=$P.prototype;
_.b.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:_.q5("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.b.computeContainerStyle_=function(O){return O};
_.b.computeContainerIsHidden_=function(O){return O&&!!O.isHidden};
_.b.computeShowSpinner_=function(O,x){return O&&x==="in-progress"};
_.b.computeShowMoreContentsButton_=function(O,x,e,l,C){return!(!(l&&l.length||C&&C.length&&e)||!O||x)};
_.b.onToggleButton_=function(O){var x=this;O.stopPropagation();this.isExpanded_=O.detail&&O.detail.toggled;var e,l;this.isExpanded_&&!this.data.continuationSection.length&&((e=this.data)==null?0:(l=e.continuation)==null?0:l.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.wr(this.hostElement,"yt-load-next-continuation",function(C){return x.getContinuationUrl_(x.data.continuation.onClickContinuationData,C)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.N9(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.b.onShowMoreContentsButtonClicked_=function(O){var x=this;O.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.wr(this.hostElement,"yt-load-next-continuation",function(e){return x.getContinuationUrl_(x.data.continuations[0].nextContinuationData,e)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.N9(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.b.getContinuationUrl_=function(O,x){var e=O.continuation;O=O.clickTrackingParams;var l=_.Pq();O&&l&&_.KZ(l,_.Fv(O));return _.bu(x,{continuation:e})};
_.b.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var O=_.$U(this.hostElement).querySelector("#continuation-section");O&&(O=O.querySelectorAll("ytmusic-item-section-renderer"))&&O.forEach(function(x){return x.classList.add("memberships-and-purchases")})};
_.b.dataChanged_=function(){var O;this.isExpanded_=!((O=this.data)==null||!O.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.b.updateCardOnClickCommand_=function(O){O=_.q(O,nR2);var x,e;this.data&&((x=this.data)==null?0:x.targetId)&&O&&O.targetId===((e=this.data)==null?void 0:e.targetId)&&O.onClickCommand&&(this.data.onClickCommand=O.onClickCommand,this.isOnClickCommand_=!0)};
_.b.backgroundColorChanged_=function(){var O,x=(O=this.data)==null?void 0:O.backgroundColor;this.hostElement.style.backgroundColor=Wp[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
$P.prototype.backgroundColorChanged_=$P.prototype.backgroundColorChanged_;$P.prototype.dataChanged_=$P.prototype.dataChanged_;$P.prototype.nextContinuationDataUpdated_=$P.prototype.nextContinuationDataUpdated_;$P.prototype.onToggleButton_=$P.prototype.onToggleButton_;_.B([_.V(_.LN),_.v("design:type",Object)],$P.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$P.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.kv.YtNextContinuationBehavior),_.v("design:type",Object)],$P.prototype,"ytNextContinuationBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.B([_.V(dkQ.InjectBehavior),_.v("design:type",Object)],$P.prototype,"injectBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$P.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],$P.prototype,"compact",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],$P.prototype,"isExpanded_",void 0);_.B([_.R({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.v("design:type",String)],$P.prototype,"containerStyle_",void 0);_.B([_.R({value:"not-started"}),_.v("design:type",String)],$P.prototype,"continuationStatus_",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.v("design:type",Boolean)],$P.prototype,"showSpinner_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],$P.prototype,"isOnClickCommand_",void 0);_.B([_.R({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.v("design:type",Boolean)],$P.prototype,"showMoreContentsButton_",void 0);
_.B([_.R({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(O,x){return!x||O.entities?null:_.xE(O.entities,"cardItemContainerEntity",x)}}),
_.v("design:type",Object)],$P.prototype,"cardItemContainerEntity_",void 0);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],$P.prototype,"onToggleButton_",null);_.B([_.bH("yt-next-continuation-data-updated"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$P.prototype,"nextContinuationDataUpdated_",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$P.prototype,"dataChanged_",null);_.B([_.T1("data.backgroundColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$P.prototype,"backgroundColorChanged_",null);_.B([_.Va({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],$P);
_.n($P,"yt-card-item-container-renderer",function(){if(BNX===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;YTp===void 0&&(YTp=document.createElement("template"));var l=YTp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);BNX=O}O=BNX;return O},{mode:2});var ii=function(){return _.a.apply(this,arguments)||this};
_.c(ii,_.a);ii.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"}}}};
ii.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
ii.prototype.computeLoadingHidden=function(){var O;return!((O=this.commerceCartPageStateEntity)==null?0:O.cartActionInProgress)};
ii.prototype.updateNotification=function(){var O,x=(O=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:O.summaryText;x&&this.set("data.cartNotification",yn(x))};
ii.prototype.notificationEntityChanged=ii.prototype.notificationEntityChanged;_.B([_.V(_.$5),_.v("design:type",Object)],ii.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],ii.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(O,x){return _.xE(O.entities,"commerceCartExpandableNotificationEntity",x)}}),
_.v("design:type",Object)],ii.prototype,"commerceCartExpandableNotificationEntity",void 0);_.B([_.R({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(O,x){return _.xE(O.entities,"commerceCartPageStateEntity",x)}}),
_.v("design:type",Object)],ii.prototype,"commerceCartPageStateEntity",void 0);_.B([_.kX("#spinner"),_.v("design:type",HTMLElement)],ii.prototype,"spinner",void 0);_.B([_.T1("commerceCartExpandableNotificationEntity","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ii.prototype,"notificationEntityChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],ii);
_.n(ii,"ytd-commerce-cart-renderer",function(){if(H2L!==void 0)return H2L;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return H2L=O},{mode:1});var JJQ;var OU=function(){var O=_.a.apply(this,arguments)||this;O.bigImage=!1;return O};
_.c(OU,_.a);_.Dy.Object.defineProperties(OU.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.placeholderImageUrl}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],OU.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],OU.prototype,"bigImage",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],OU.prototype,"placeholderImageUrl",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],OU);
_.n(OU,"ytd-empty-product-shelf-renderer",function(){if(JJQ!==void 0)return JJQ;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return JJQ=O},{mode:1});var wdQ;var xN=function(){var O=_.a.apply(this,arguments)||this;O.itemStyle="link-item";O.watchMetadataRefresh=!1;O.skinnyMode=!1;O.metaPanel=!1;O.inStructuredDescription=!1;O.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};O.updateOnResizeDebouncer=null;return O};
_.c(xN,_.a);_.b=xN.prototype;_.b.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.b.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"}}}}};
_.b.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.b.attachVEs=function(O){O.trackingParams&&_.k0().graftServerVe(O.trackingParams)};
_.b.handleUpdateMerchShelfAction=function(O){var x=this,e=_.q(O.updateMerchandiseShelfAction.merchandiseShelf,_.DnL);e&&(e.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){x.attachVEs(e);x.data=e},Number(e.renderDelayMs))):(this.attachVEs(e),this.data=e))};
_.b.updateOnResize=function(){if(this.JSC$17032_scrollContainer!==void 0&&this.JSC$17032_scrollContainer.clientWidth!==0&&this.items!==void 0){var O=this.JSC$17032_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-O));this.ytdHorizontalListBehavior.reposition_();var x;switch((x=this.data)==null?void 0:x.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var e,
l;((e=this.data)==null?void 0:(l=e.items)==null?void 0:l.length)===1?this.itemStyle="cta-item":this.itemStyle=O>=740?"large-item":"small-item"}}};
_.b.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Lp(this.updateOnResizeDebouncer,_.NC.after(100),this.updateOnResize)};
xN.prototype.debouncedUpdateOnResize=xN.prototype.debouncedUpdateOnResize;xN.prototype.dataChanged=xN.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],xN.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],xN.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],xN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xN.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xN.prototype,"itemStyle",void 0);_.B([_.R({value:6}),_.v("design:type",Number)],xN.prototype,"initialCount",void 0);
_.B([_.R({value:"data.items"}),_.v("design:type",String)],xN.prototype,"itemsPath",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xN.prototype,"watchMetadataRefresh",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xN.prototype,"skinnyMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xN.prototype,"metaPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xN.prototype,"inStructuredDescription",void 0);
_.B([_.kX("#items"),_.v("design:type",HTMLDivElement)],xN.prototype,"items",void 0);_.B([_.kX("#scroll-container"),_.v("design:type",HTMLDivElement)],xN.prototype,"JSC$17032_scrollContainer",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xN.prototype,"dataChanged",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xN.prototype,"debouncedUpdateOnResize",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],xN);
_.n(xN,"ytd-merch-shelf-renderer",function(){if(wdQ!==void 0)return wdQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wdQ=O},{mode:2});var STL;var eT=function(){var O=_.a.apply(this,arguments)||this;O.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 O};
_.c(eT,_.a);_.b=eT.prototype;
_.b.addBackstagePostAction=function(O){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(O=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",O))&&(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:O}):this.set("data.contents",[{backstagePostThreadRenderer:O}]))};
_.b.addBackstageCommentAction=function(O){var x=this.get("addBackstageCommentAction.parentId",O);O=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",O);if(x&&O){x=this.postIdToIndices(x);for(var e=0;e<x.length;e++){var l=x[e];if(l<0)break;l="data.contents."+l+".backstagePostThreadRenderer.comments";this.get(l)&&(this.get(l+".backstageCommentsRenderer.contents")&&this.push(l+".backstageCommentsRenderer.contents",{commentThreadRenderer:O}),this.get(l+".backstageCommentsRenderer.teaserContents")?
this.push(l+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:O}):this.set(l+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:O}]))}}};
_.b.addBackstageReplyAction=function(O){var x=this.get("addBackstageReplyAction.parentId",O);O=this.get("addBackstageReplyAction.renderer.commentRenderer",O);x&&O&&this.setCreatorReply(x,O)};
_.b.banAuthorAction=function(O){var x=this.get("banAuthorAction.commentId",O);x&&(O=this.get("banAuthorAction.parentCommentId",O)||this.getParentPostId(x),this.removeFromStream(x,O))};
_.b.hideReportedCommentAction=function(O){var x=this.get("hideReportedCommentAction.commentId",O);x&&((O=this.get("hideReportedCommentAction.parentCommentId",O))||(O=this.getParentPostId(x)),this.removeFromStream(x,O))};
_.b.replaceBackstageCommentAction=function(O){var x=this.get("replaceBackstageCommentAction.commentId",O),e=this.get("replaceBackstageCommentAction.parentId",O);O=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",O);if(x&&e&&O){e=this.postIdToIndices(e);for(var l=0;l<e.length;l++){var C=e[l];if(C<0)break;var Q=this.commentIdToIndex(x,C,!1);if(Q>=0){var L=this.get("data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+Q+".commentThreadRenderer.replies.commentRepliesRenderer");
L&&(O.replies={commentRepliesRenderer:L});this.splice("data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1,{commentThreadRenderer:O})}Q=this.commentIdToIndex(x,C,!0);if(Q>=0){if(L=this.get("data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(Q+".commentThreadRenderer.replies.commentRepliesRenderer")))O.replies={commentRepliesRenderer:L};this.splice("data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
Q,1,{commentThreadRenderer:O})}}}};
_.b.replaceBackstagePostAction=function(O){var x=this.get("replaceBackstagePostAction.itemId",O);if(x){x=this.postIdToIndices(x);for(var e=0;e<x.length;e++){var l=x[e];if(l<0)break;var C=this.getPostRendererType(l),Q=this.get("replaceBackstagePostAction.renderer."+C,O);if(!Q&&C!=="sharedPostRenderer")break;var L=!1;Q||(L=!0,Q=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",O));if(!Q)break;var k={};L?(_.qj(k,sPd,Q),this.set("data.contents."+l+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
k)):(_.qj(k,new _.$x(C),Q),this.set("data.contents."+l+".backstagePostThreadRenderer.post",k))}}};
_.b.replaceBackstageReplyAction=function(O){var x=this.get("replaceBackstageReplyAction.replyId",O),e=this.get("replaceBackstageReplyAction.parentId",O);O=this.get("replaceBackstageReplyAction.renderer.commentRenderer",O);x&&O&&e&&this.setCreatorReply(e,O)};
_.b.removeCommentAction=function(O){var x=this.get("removeCommentAction.commentId",O);if(x){var e=this.get("removeCommentAction.parentCommentId",O);e&&this.get("removeCommentAction.isCreatorReply",O)?this.setCreatorReply(e,void 0):(e||(e=this.getParentPostId(x)),this.removeFromStream(x,e))}};
_.b.setCreatorReply=function(O,x){var e=this.getParentPostId(O);if(e){e=this.postIdToIndices(e);for(var l=0;l<e.length;l++){var C=e[l];if(C<0)break;var Q=this.commentIdToIndex(O,C,!1);if(Q>=0){var L="data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+Q;Q=L+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";L+=".commentThreadRenderer.replies";x==void 0?(this.set(L,{}),this.set(Q,!1)):(this.set(L,{commentRepliesRenderer:{teaserContents:[{commentRenderer:x}]}}),
this.set(L+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(Q,!0))}Q=this.commentIdToIndex(O,C,!0);Q>=0&&(Q="data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+Q,C=Q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",Q+=".commentThreadRenderer.replies",x==void 0?(this.set(Q,{}),this.set(C,!1)):(this.set(Q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:x}]}}),this.set(C,!0)))}}};
_.b.removeFromStream=function(O,x){if(x){x=this.postIdToIndices(x);for(var e=0;e<x.length;e++){var l=x[e];if(l<0)break;var C=this.commentIdToIndex(O,l,!1);C>=0&&this.splice("data.contents."+l+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",C,1);C=this.commentIdToIndex(O,l,!0);C>=0&&this.splice("data.contents."+l+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",C,1);l="data.contents."+l+".backstagePostThreadRenderer.post.backstagePostRenderer";
C=l+".backstageAttachment.pollRenderer.votedCommentId";this.get(C)===O&&(this.set(C,null),this.set(l+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(x=this.postIdToIndices(O).reverse(),e=0;e<x.length;e++){l=x[e];if(l<0)break;C=this.getPostRendererType(l);var Q=this.get("backstagePostThreadRenderer.post."+C,this.data.contents[l]);Q.postId===O?this.splice("data.contents",l,1):C==="sharedPostRenderer"&&this.set("data.contents."+l+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);Q.scheduledPublishTimeSec&&_.Sh(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.b.postIdToIndices=function(O){for(var x=[],e=0;e<this.data.contents.length;e++){var l=this.getPostRendererType(e);this.get("backstagePostThreadRenderer.post."+l+".postId",this.data.contents[e])===O&&x.push(e);if(l==="sharedPostRenderer"){var C=this.get("backstagePostThreadRenderer.post."+l+".originalPost.backstagePostRenderer.postId",this.data.contents[e]);l=this.get("backstagePostThreadRenderer.post."+l+".originalPost.postRenderer.postId",this.data.contents[e]);C!==O&&l!==O||x.push(e)}}return x};
_.b.commentIdToIndex=function(O,x,e){if(x<0)return-1;var l,C,Q,L,k=_.q((l=this.data)==null?void 0:(C=l.contents)==null?void 0:(Q=C[x])==null?void 0:(L=Q.backstagePostThreadRenderer)==null?void 0:L.comments,a72);return(x=e?k==null?void 0:k.teaserContents:k==null?void 0:k.contents)&&x.length?x.findIndex(function(M){return _.q(M,APd).comment.commentRenderer.commentId===O}):-1};
_.b.getParentPostId=function(O){O=O.split(".");if(O[1])return O[0]};
_.b.getPostRendererType=function(O){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[O])?"sharedPostRenderer":"backstagePostRenderer"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],eT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eT.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:_.t("enable_community_page_on_desktop")}),_.v("design:type",Boolean)],eT.prototype,"useSmallerPostContainer",void 0);
_.B([_.H({disableElementRegistration:!0,is:"ytd-backstage-items"})],eT);
_.n(eT,"ytd-backstage-items",function(){if(STL!==void 0)return STL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return STL=
O},{mode:1});var jzT;var NN4={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},l3=function(){var O=_.a.apply(this,arguments)||this;O.disablePrescanVisibility=!0;O.canScheduleJobs=!0;O.engagementPanel=!1;O.hidePanelButton=!1;O.isWatchGrid=
!1;O.hasShownSubscribersOnlyDisclaimer=!1;O.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_"};O.TEST_ONLY=void 0;return O};
_.c(l3,_.a);_.b=l3.prototype;_.b.created=function(){this.initCommentsCsi_();_.t("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.t("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.b.contentsChanged_=function(){var O;(O=this.data)!=null&&O.contents&&this.tickForCommentsTimer_("cml")};
_.b.headerChanged_=function(){var O;(O=this.data)!=null&&O.header&&this.tickForCommentsTimer_("cmhl")};
_.b.initCommentsCsi_=function(){_.cU("wn_comments");var O=_.Pq();O&&_.EO({clientScreenNonce:O},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.b.createCommentAction_=function(O){O=_.HX.unsafeClone(O);var x,e;if(O=(x=_.q(O,xXz))==null?void 0:(e=x.contents)==null?void 0:e.commentThreadRenderer){var l,C,Q,L,k,M;!this.isBackstage&&((l=this.data)==null?0:(C=l.header)==null?0:(Q=C.commentsHeaderRenderer)==null?0:(L=Q.createRenderer)==null?0:(k=L.commentSimpleboxRenderer)==null?0:(M=k.zeroStep)==null?0:M.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var G,
X,y;this.isBackstage&&_.q((G=this.data)==null?void 0:(X=G.header)==null?void 0:(y=X.commentsHeaderRenderer)==null?void 0:y.zeroStateMessage,WBR)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(O)}};
_.b.doReplyInsert_=function(O,x,e,l){l?this.splice(O,l,0,x):this.push(O,x)};
_.b.getRepliesPath_=function(O){return"data.contents."+O+".commentThreadRenderer.replies"};
_.b.getRepliesContentsPath_=function(O,x){O=this.getRepliesPath_(O);return x?O+".commentRepliesRenderer.teaserContents":O+".commentRepliesRenderer.contents"};
_.b.showSubscribersOnlyDisclaimer_=function(O){(O=O.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(O))&&(_.Sh(this.hostElement,"yt-open-popup-action",[O,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.b.createCommentReplyAction_=function(O){O=_.HX.unsafeClone(O);var x=_.q(O,eC$);if(O=x==null?void 0:x.contents){var e=this.commentIdToIndex_(x==null?void 0:x.parentCommentId);if(!(e<0)){var l=this.getRepliesPath_(e);if(this.get(l)){x=x.replyToCommentId;l=this.getRepliesContentsPath_(e,!1);if(this.get(l)){var C=this.get(l).length,Q=l+"."+(C-1)+".continuationItemRenderer";this.get(Q+".button")?(Q=this.replyIdToIndex_(x,e,!1),this.doReplyInsert_(l,O,Q,C-1)):this.get(Q)||(C=this.replyIdToIndex_(x,e,
!1),this.doReplyInsert_(l,O,C,null))}l=this.getRepliesContentsPath_(e,!0);this.get(l)?(e=this.replyIdToIndex_(x,e,!0),(!x||e>=0)&&this.doReplyInsert_(l,O,e,null)):this.set(l,[O])}else this.set(l,{commentRepliesRenderer:{teaserContents:[O]}})}}};
_.b.hideReportedCommentAction_=function(O){var x=_.q(O,PGF);if(O=x==null?void 0:x.commentId)(x=this.get("parentCommentId",x))||(x=this.getParentCommentId_(O)),this.remove_(O,x)};
_.b.getParentCommentId_=function(O){O=O.split(".");if(O[1])return O[0]};
_.b.removeCommentAction_=function(O){var x=_.q(O,TvF);if(O=x==null?void 0:x.commentId)x=(x==null?void 0:x.parentCommentId)||this.getParentCommentId_(O),this.remove_(O,x)};
_.b.pinCommentAction_=function(O){O=_.HX.unsafeClone(O);var x=_.q(O,bpL);x!=null&&x.commentId&&(O=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",O))&&(this.remove_(x.commentId),this.insert_(O,!0))};
_.b.unpinCommentAction_=function(O){O=_.HX.unsafeClone(O);O=_.q(O,Li$);if(O!=null&&O.commentId){var x,e,l=(x=O.actionResult)==null?void 0:(e=x.update)==null?void 0:e.commentThreadRenderer;l&&(this.remove_(O.commentId),this.insert_(l))}};
_.b.banAuthorAction_=function(O){var x=_.q(O,Opk);x!=null&&x.commentId&&(O=x.commentId,x=x.parentCommentId||this.getParentCommentId_(O),this.remove_(O,x))};
_.b.handleScrollToCommentElement_=function(O){this.nearestScrollParent||(this.nearestScrollParent=aow(O));this.isCommentVisibleInScrollParent(O)||O.scrollIntoView({behavior:"smooth",block:"start"})};
_.b.isCommentVisibleInScrollParent=function(O){if(!this.nearestScrollParent)return!1;O=O.getBoundingClientRect();var x=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return O.top>=x.top&&O.bottom<=x.bottom};
_.b.commentIdToIndex_=function(O){var x;return O&&(x=this.data)!=null&&x.contents?this.data.contents.findIndex(function(e){e=e.commentThreadRenderer;var l;return O===((e==null?void 0:e.commentViewModel)&&((l=_.q(e.commentViewModel,ohp))==null?void 0:l.commentId))}):-1};
_.b.insert_=function(O,x){x=x===void 0?!1:x;var e,l;if((e=this.data)==null?0:(l=e.contents)==null?0:l.some(function(Q){return!!Q.commentThreadRenderer}))for(e=0,l=this.data.contents.length;e<l;e++){var C=this.data.contents[e].commentThreadRenderer;
if(NN4[O.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=NN4[C.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){x&&NN4[O.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===NN4[C.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",e,1,{commentThreadRenderer:O}):this.splice("data.contents",e,0,{commentThreadRenderer:O});break}}else this.set("data.contents",[{commentThreadRenderer:O}])};
_.b.doReplyRemove_=function(O,x,e){O=this.replyIdToIndex_(O,x,e);O<0||(x=this.getRepliesContentsPath_(x,e),this.splice(x,O,1))};
_.b.remove_=function(O,x){x=this.commentIdToIndex_(x);x<0?(x=this.commentIdToIndex_(O),x<0||this.splice("data.contents",x,1)):_.t("web_delhi_comment_threads")||(this.doReplyRemove_(O,x,!1),this.doReplyRemove_(O,x,!0))};
_.b.replyIdToIndex_=function(O,x,e){if(x<0)return-1;x=this.getRepliesContentsPath_(x,e);x=this.get(x);if(!x||!x.length)return-1;e=0;for(var l=x.length;e<l;e++){var C=void 0,Q=void 0;if(((C=x[e])==null?void 0:(Q=C.commentViewModel)==null?void 0:Q.commentId)===O)return e}return-1};
_.b.tickForCommentsTimer_=function(O){_.VO(O,void 0,"wn_comments")};
_.b.reloadComments_=function(O){O=_.q(O,FiR);_.q(O==null?void 0:O.command,_.U1)&&_.N9(this.hostElement,[O==null?void 0:O.command])};
_.Dy.Object.defineProperties(l3.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.data)==null?0:(x=O.header)==null?0:(e=x.commentsHeaderRenderer)==null?0:e.isBackstageContent)}}});
_.Dy.Object.defineProperties(l3,{template:{configurable:!0,enumerable:!0,get:function(){if(jzT===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);jzT=O}O=jzT;return O}}});
l3.prototype.showSubscribersOnlyDisclaimer_=l3.prototype.showSubscribersOnlyDisclaimer_;l3.prototype.headerChanged_=l3.prototype.headerChanged_;l3.prototype.contentsChanged_=l3.prototype.contentsChanged_;_.B([_.V(_.FY),_.v("design:type",Object)],l3.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.Cqr.YtHostElementBehavior),_.v("design:type",Object)],l3.prototype,"ytHostElementBehavior",void 0);
_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",Function)],l3.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],l3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],l3.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data.header.commentsHeaderRenderer.isBackstageContent"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],l3.prototype,"isBackstage",null);_.B([_.R(),_.v("design:type",Object)],l3.prototype,"disablePrescanVisibility",void 0);_.B([_.R(),_.v("design:type",Object)],l3.prototype,"canScheduleJobs",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],l3.prototype,"engagementPanel",void 0);
_.B([_.R(),_.v("design:type",Object)],l3.prototype,"hidePanelButton",void 0);_.B([_.R(),_.v("design:type",Object)],l3.prototype,"isWatchGrid",void 0);_.B([_.R(),_.v("design:type",Object)],l3.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.B([_.T1("data.contents"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],l3.prototype,"contentsChanged_",null);
_.B([_.T1("data.header"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],l3.prototype,"headerChanged_",null);_.B([_.bH("yt-show-subscribers-only-disclaimer"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],l3.prototype,"showSubscribersOnlyDisclaimer_",null);_.B([_.H({is:"ytd-comments"})],l3);var CW=function(){return _.MQ.apply(this,arguments)||this};
_.c(CW,_.MQ);_.b=CW.prototype;_.b.bindIf=function(O,x,e){return O?x:e};
_.b.bindIfDefined=function(O,x){return O!==void 0?O:x};
_.b.booleanString=function(O){return(!!O).toString()};
_.b.equals=function(){for(var O=_.vw.apply(0,arguments),x=O[0],e=1;e<O.length;e++)if(x!=O[e])return!1;return!0};
_.b.isGreaterThan=function(O,x){return O>x};
_.b.isLessThan=function(O,x){return O<x};
_.b.logicalAND=function(){for(var O=_.vw.apply(0,arguments),x=!!O[0],e=1;e<O.length;e++)x=x&&!!O[e];return x};
_.b.logicalOR=function(){for(var O=_.vw.apply(0,arguments),x=!!O[0],e=1;e<O.length;e++)x=x||!!O[e];return x};
_.b.toBool=function(O){return!!O};
CW.prototype.toBool=CW.prototype.toBool;CW.prototype.logicalOR=CW.prototype.logicalOR;CW.prototype.logicalAND=CW.prototype.logicalAND;CW.prototype.isLessThan=CW.prototype.isLessThan;CW.prototype.isGreaterThan=CW.prototype.isGreaterThan;CW.prototype.equals=CW.prototype.equals;CW.prototype.booleanString=CW.prototype.booleanString;CW.prototype.bindIfDefined=CW.prototype.bindIfDefined;CW.prototype.bindIf=CW.prototype.bindIf;_.B([_.DC()],CW);_.gdQ=[CW.prototype];var $kX;var i2w;var QV=function(){return _.a.apply(this,arguments)||this};
_.c(QV,_.a);QV.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
QV.prototype.onBackIconTap_=function(){window.history.back()};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],QV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],QV.prototype,"data",void 0);_.B([_.Va({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],QV);
_.n(QV,"yt-header-with-back-renderer",function(){if(i2w===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;$kX===void 0&&($kX=document.createElement("template"));var l=$kX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);i2w=O}O=i2w;return O},{mode:2});var OQu;var xhX;var b3=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(b3,_.a);_.b=b3.prototype;_.b.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O,this.setUrl())};
_.b.dataChanged=function(){var O=this;if(this.data){var x=this.setUrl();x&&_.Ni({destination:window,iframe:this.iframe,origin:_.YdT(x.toString()),channelName:"yt-iframe",onMessage:function(e){(e=O.getCommunicationCommand(e.data))&&O.ytComponentBehavior.resolveCommand(e)},
onEstablished:function(){}})}};
_.b.setUrl=function(){if(this.data&&this.data.iframeUrl){var O=_.f$(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(O)return _.gk(this.iframe,O),O}};
_.b.getCommunicationCommand=function(O){var x;if((x=this.data)!=null&&x.onCommunicationCommandsMap){x=this.data.onCommunicationCommandsMap.find(function(C){return C.key===O});
if(x==null?0:x.value)return x==null?void 0:x.value;try{var e=mzp(_.ir(O)),l=this.data.onCommunicationCommandsMap.find(function(C){return C.key===(e==null?void 0:e.getMethodName())});
if(l==null?0:l.value)return l==null?void 0:l.value}catch(C){}}};
b3.prototype.dataChanged=b3.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],b3.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],b3.prototype,"data",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],b3.prototype,"isDarkTheme",void 0);_.B([_.kX("#iframe"),_.v("design:type",HTMLIFrameElement)],b3.prototype,"iframe",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],b3.prototype,"dataChanged",null);_.B([_.Va({is:"yt-iframe-renderer",disableElementRegistration:!0})],b3);
_.n(b3,"yt-iframe-renderer",function(){if(xhX===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;OQu===void 0&&(OQu=document.createElement("template"));var l=OQu;e.call(x,l.content.cloneNode(!0),O.content.firstChild);xhX=O}O=xhX;return O},{mode:2});_.TE=function(O){_.h0.call(this);this.callback=O;this.bezier=new npd(0,0,.4,0,.2,1,1,1);this.delay=new _.Xp(this.next,window,this);this.JSC$17073_animating=!1;_.qq(this,this.delay)};
_.c(_.TE,_.h0);_.TE.prototype.isAnimating=function(){return this.JSC$17073_animating};
_.TE.prototype.start=function(O,x,e){this.config={from:O,to:x,duration:e,startTime:(0,_.F2)()};this.JSC$17073_animating=!0;this.next()};
_.TE.prototype.stop=function(){this.delay.stop();this.JSC$17073_animating=!1;this.config=void 0};
_.TE.prototype.next=function(){if(this.config){var O=this.config,x=O.from,e=O.to,l=O.duration;O=O.startTime;var C=(0,_.F2)()-O;O=this.bezier;l=Y93(O,C/l);if(l==0)O=O.y0;else if(l==1)O=O.y3;else{C=E5(O.y0,O.y1,l);var Q=E5(O.y1,O.y2,l);O=E5(O.y2,O.y3,l);C=E5(C,Q,l);Q=E5(Q,O,l);O=E5(C,Q,l)}O=_.qo(O,0,1);this.callback(x+(e-x)*O);O<1?this.delay.start():this.JSC$17073_animating=!1}};_.LW=new _.iR("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var eOL={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},CLh=function(O,x,e,l){_.h0.call(this);this.JSC$17084_miniAppId=O;this.localReleaseId=x;this.derivedDeviceInterface=e;this.isForeground=l;this.JSC$17084_playNonceResolver=new _.OA;this.playPingTimerId=NaN;this.playPingIntervalMs=_.yF("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.yF("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.t("enable_displaying_ppn");this.JSC$17084_miniAppClientDataProvider=_.GG().resolve(_.LW);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;lQw(this);var C=setTimeout(function(){_.ft(new _.ry("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17084_playNonceResolver.promise.then(function(){clearTimeout(C)})};
_.c(CLh,_.h0);var bQh=function(O,x){O.JSC$17084_playNonceResolver.resolve(x!=null?x:Zf(8));O.enableDisplayingPpn&&Qu$(O).then(function(e){O.JSC$17084_miniAppClientDataProvider.clientData.set("post_play_nonce",e)})},Qu$=function(O){return _.A(function(x){return x.nextAddress==1?x.yield(O.JSC$17084_playNonceResolver.promise,2):x.return(x.yieldResult)})},lQw=function(O){var x,e;
_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$17084_playNonceResolver.promise,2);x=l.yieldResult;e={miniAppInfo:{externalPostId:O.JSC$17084_miniAppId,localReleaseId:O.localReleaseId,postPlayNonce:x,derivedDeviceInterface:O.derivedDeviceInterface}};_.EO(e);_.Ra(l)})},LYL=function(O){O.state!==0?_.ft(new _.ry("[MiniAppPlayLogger] recordPlayStart failed with state "+eOL[O.state])):(O.state=1,kN(O,"ma_cl"),A$(O,"PLAY_EVENT_TYPE_PLAY_START"),TL4(O))},kXT=function(O){O.isForeground=!1;
A$(O,"PLAY_EVENT_TYPE_PLAY_PAUSE")},AeQ=function(O){O.state!==1&&O.state!==2?_.ft(new _.ry("[MiniAppPlayLogger] recordPlayEnd failed with state "+eOL[O.state])):(O.state=3,window.clearInterval(O.playPingTimerId),O.playPingTimerId=NaN,wjs(),A$(O,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Mpu=function(O,x){O.state===2&&O.gameReady&&(O.firstClickRecorded?Date.now()-O.clickRecordedMs<O.playClickIntervalMs||(O.clickRecordedMs=Date.now(),A$(O,"PLAY_EVENT_TYPE_PLAY_CLICK")):x&&(kN(O,"ma_fua"),A$(O,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),O.firstClickRecorded=!0,O.clickRecordedMs=Date.now()))};
CLh.prototype.logError=function(O){var x=this,e;_.A(function(l){if(l.nextAddress==1)return O.metadata.externalPostId=x.JSC$17084_miniAppId,e=O.metadata,l.yield(Promise.race([x.JSC$17084_playNonceResolver.promise,new Promise(function(C){setTimeout(function(){C("")},3E4)})]),2);
e.postPlayNonce=l.yieldResult;O.metadata.localReleaseId=x.localReleaseId;O.loggingError.level="WARNING";_.BH(O.loggingError,O.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:O.metadata});_.Ra(l)})};
var DhL=function(O,x,e,l){var C,Q,L,k,M,G;_.A(function(X){if(X.nextAddress==1)return X.yield(O.JSC$17084_playNonceResolver.promise,2);C=X.yieldResult;Q={externalPostId:O.JSC$17084_miniAppId,localReleaseId:O.localReleaseId,postPlayNonce:C,sdkVersion:e,api:x};l!==void 0&&(Q.networkRequestsMeasurement={networkRequests:_.G8(l,1),cachedRequests:_.G8(l,2),transferredBytes:_.G8(l,3)},(L=l)==null?0:_.Q7(L,em,6))&&(Q.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((k=_.y4(l,
em,6))==null?void 0:ZO(k,1))||"0",cacheHits:((M=_.y4(l,em,6))==null?void 0:ZO(M,2))||"0",cachedBytes:((G=_.y4(l,em,6))==null?void 0:ZO(G,3))||"0"});_.uU("miniAppSdkUsage",Q);_.Ra(X)})},FYu=function(O,x,e){var l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r;
_.A(function(f){if(f.nextAddress==1)return f.yield(O.JSC$17084_playNonceResolver.promise,2);l=f.yieldResult;C={externalPostId:O.JSC$17084_miniAppId,localReleaseId:O.localReleaseId,postPlayNonce:l,sdkVersion:e,measurementWindow:{startTimestampMs:String(Fl(x,1)),endTimestampMs:String(Fl(x,2))},frameRate:{averageFrameTimeDeltaMs:Xl(x,3),averageFrameIdleTimeMs:Xl(x,4)}};_.Q7(x,lN,5)&&(C.networkRequests={networkRequests:(Q=AE(x))==null?void 0:_.G8(Q,1),cachedRequests:(L=AE(x))==null?void 0:_.G8(L,2),transferredBytes:(k=
AE(x))==null?void 0:_.G8(k,3),sameOriginStatusCodeToCounts:GXp((M=AE(x))==null?void 0:zO8(M,4)),crossOriginStatusCodeToCounts:GXp((G=AE(x))==null?void 0:zO8(G,5))},(X=AE(x))==null?0:_.Q7(X,em,6))&&(C.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((y=AE(x))==null?void 0:(Z=_.y4(y,em,6))==null?void 0:ZO(Z,1))||"0",cacheHits:((E=AE(x))==null?void 0:(P=_.y4(E,em,6))==null?void 0:ZO(P,2))||"0",cachedBytes:((U=AE(x))==null?void 0:(W=_.y4(U,em,6))==null?void 0:ZO(W,3))||"0"});_.Q7(x,
cDT,7)&&(C.gameCapture={averageFrameTimeDeltaMs:(z=_.y4(x,cDT,7))==null?void 0:Xl(z,1),averageFrameIdleTimeMs:(r=_.y4(x,cDT,7))==null?void 0:Xl(r,2)});_.uU("miniAppPerformanceMetrics",C);_.Ra(f)})},XTL=function(O,x){var e,l;
return _.A(function(C){if(C.nextAddress==1)return C.yield(O.JSC$17084_playNonceResolver.promise,2);e=C.yieldResult;l={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:O.JSC$17084_miniAppId,postPlayNonce:e,miniAppReleaseId:O.localReleaseId},derivedDeviceInterface:O.derivedDeviceInterface,adTriggerType:x,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.uU("miniAppAdEvent",l);_.Ra(C)})};
CLh.prototype.disposeInternal=function(){_.h0.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var A$=function(O,x,e,l){e=e===void 0?{}:e;l=l===void 0?!1:l;var C,Q,L,k;_.A(function(M){if(M.nextAddress==1)return C=O.isForeground,Q=O.beforeReady,M.yield(O.JSC$17084_playNonceResolver.promise,2);L=M.yieldResult;k={externalPostId:O.JSC$17084_miniAppId,localReleaseId:O.localReleaseId,derivedDeviceInterface:O.derivedDeviceInterface,postPlayNonce:L,type:x};e.sequenceGroup=L;k.playState=Q?"PLAY_STATE_NOT_READY":C?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.uU("miniAppPlayEvent",k,
e);l&&_.Yb();_.Ra(M)})},kN=function(O,x){var e;
_.A(function(l){if(l.nextAddress==1)return e=(0,_.F2)(),l.yield(O.JSC$17084_playNonceResolver.promise,2);_.IR(x,e);_.Ra(l)})},TL4=function(O){isNaN(O.playPingTimerId)&&(O.playPingTimerId=_.cK(function(){O.state!==1&&O.state!==2?_.ft(new _.ry("[MiniAppPlayLogger] reportPlayPing failed with state "+eOL[O.state])):A$(O,"PLAY_EVENT_TYPE_PLAY_PING")},O.playPingIntervalMs))},GXp=function(O){return Array.from(O.entries()).map(function(x){var e=_.T(x);
x=e.next().value;e=e.next().value;return{key:x,value:e}})};var oLu=function(){},yee=function(O,x){O.showMiniAppAdCommand=x.showMiniAppAdCommand;
O.isEmbeddedInWebview=x.isEmbeddedInWebview;O.playLogger=x.playLogger},ELw=function(O,x){var e;
return _.A(function(l){if(l.nextAddress==1){if(!O.showMiniAppAdCommand||!O.isEmbeddedInWebview)return l.return(ZQQ(O,x));O.adResolver=new _.OA;var C=new zU;e=_.ZG(C,3,x);qS(O.showMiniAppAdCommand,QqL(e));return l.yield(O.adResolver.promise,2)}return l.return(l.yieldResult)})};
oLu.prototype.onAdFinished=function(O){O=x0z(O);var x;(x=this.adResolver)==null||x.resolve(O)};
var ZQQ=function(O,x){var e;return _.A(function(l){if(l.nextAddress==1)l=l.yield((e=O.playLogger)==null?void 0:XTL(e,HXW(x)),2);else{var C=l.return;var Q=new Oyd;Q=_.ZG(Q,1,2);l=C.call(l,Q)}return l})};var tpX=new _.iR("INNERTUBE_MANAGER_TOKEN");var q4L=function(){this.callbacks={}};
q4L.prototype.initialize=function(O){var x=this;this.callbacks=O;window.youtubewebview?window.youtubewebview.onmessage=function(e){PLL(x,e)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(e){PLL(x,e)})};
var PLL=function(O,x){if(x.data)try{var e=mzp(x.data);if(_.PT(_.C0(e,1))!=null){var l=i64(_.oK(e,2));switch(e.getMethodName()){case "yt-mini-app-load-audio-state":var C,Q;(Q=(C=O.callbacks).onAudioStateLoaded)==null||Q.call(C,_.GB(l,mv(l,hE,1)));break;case "yt-mute-mini-app":var L,k;(k=(L=O.callbacks).onMuteMiniApp)==null||k.call(L);break;case "yt-unmute-mini-app":var M,G;(G=(M=O.callbacks).onUnmuteMiniApp)==null||G.call(M);break;case "yt-playable-exit":var X,y;(y=(X=O.callbacks).onExit)==null||y.call(X);
break;case "yt-post-play-nonce":var Z,E;(E=(Z=O.callbacks).onPostPlayNonceReceived)==null||E.call(Z,Ea(l,2,hE));break;case "yt-confirm-exit-mini-app":var P,U;(U=(P=O.callbacks).confirmExitMiniApp)==null||U.call(P);break;case "yt-confirm-exit-mini-app-edu":var W,z;(z=(W=O.callbacks).confirmExitMiniAppEdu)==null||z.call(W);break;case "yt-benchmarking-response":var r,f;(f=(r=O.callbacks).onNativeBenchmarkingMessageReceived)==null||f.call(r,Ea(l,2,hE));break;case "yt-mini-app-load-3p-consent-state":var u,
Y;(Y=(u=O.callbacks).multiplayer3pAckStateLoaded)==null||Y.call(u,_.GB(l,mv(l,hE,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var J,O8;(O8=(J=O.callbacks).exitMiniAppSeenStateLoaded)==null||O8.call(J,_.GB(l,mv(l,hE,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Xr,Fr;(Fr=(Xr=O.callbacks).onNavigateToNewMiniApp)==null||Fr.call(Xr);break;case "yt-game-data-available":var mL,Zn;(Zn=(mL=O.callbacks).onGameDataAvailable)==null||Zn.call(mL,Ea(l,2,hE));break;case "yt-pause-mini-app":var q$,
KV;(KV=(q$=O.callbacks).onPauseMiniApp)==null||KV.call(q$);break;case "yt-resume-mini-app":var VN,Pd;(Pd=(VN=O.callbacks).onResumeMiniApp)==null||Pd.call(VN);break;case "yt-playable-ad-finished":var f2,p2;(p2=(f2=O.callbacks).onAdFinished)==null||p2.call(f2,Ea(l,2,hE))}}else _.ft(Error("bi"))}catch(OT){_.BH(Error("ci"))}else _.ft(Error("di"))};var dWs=function(O){this.rpcErrorCode=O};var M2=function(O,x,e){this.intervalMs=O;this.apiFunc=x;this.type=e;this.schedulerReady=!0};
M2.prototype.call=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1){if(x.type!==1&&O===x.cachedValue)return l.return();x.pendingApiRequestResolver||(x.pendingApiRequestResolver=new _.OA);e=x.pendingApiRequestResolver.promise;x.cachedValue=O;return l.yield(ceX(x),2)}return l.return(e)})};
M2.prototype.flush=function(O){O=O===void 0?!1:O;var x=this;return _.A(function(e){return x.cachedValue===void 0?e.return():e.yield(x.apiFunc(x.cachedValue,O),0)})};
var ceX=function(O){var x,e,l;return _.A(function(C){switch(C.nextAddress){case 1:if(!O.schedulerReady||!O.pendingApiRequestResolver)return C.return();O.schedulerReady=!1;x=O.pendingApiRequestResolver;O.pendingApiRequestResolver=void 0;_.tS(C,2);if(O.cachedValue===void 0){C.jumpTo(4);break}return C.yield(O.apiFunc(O.cachedValue),5);case 5:e=C.yieldResult,x.resolve(e);case 4:_.lb(C,3);break;case 2:l=_.VP(C),x.reject(l);case 3:setTimeout(function(){return _.A(function(Q){O.schedulerReady=!0;return Q.yield(ceX(O),
0)})},O.intervalMs),_.Ra(C)}})};var YR8=window.location.origin+"/miniapp_cloudsaves",n$s=[400,401],IQQ=_.yF("cloud_save_game_data_rate_limit_ms",3E3),ROQ=function(O){var x=this;this.JSC$17128_miniAppId=O;this.loadAttempts=0;this.cloudSaveIntervalMs=IQQ;this.initialDownloadDataSucceeded=!1;this.JSC$17128_playNonceResolver=new _.OA;this.scottyUploadRateLimiter=new M2(this.cloudSaveIntervalMs,function(e,l){return Vpu(x,e,l)},2);
this.downloadDataPromise=pTw(this);this.downloadDataPromise.then(function(){x.initialDownloadDataSucceeded=!0}).catch(function(){})},Uh$=function(O,x){x.then(function(e){return O.JSC$17128_playNonceResolver.resolve(e)})},aQY=function(O){return _.A(function(x){return O.cachedData===void 0?x.return(O.downloadDataPromise):x.return(O.cachedData)})},mh4=function(O,x){return _.A(function(e){O.cachedData=x;
if(!O.initialDownloadDataSucceeded)throw Error("ei");return e.yield(O.scottyUploadRateLimiter.call(x),0)})},suu=function(){return new Promise(function(O){setTimeout(O,1E3,"")})},WYw=function(O,x){var e,l;
return _.A(function(C){if(C.nextAddress==1)return e=O.JSC$17128_miniAppId,C.yield(Promise.race([O.JSC$17128_playNonceResolver.promise,suu()]),2);l={"X-YouTube-MiniAppId":e,"X-YouTube-PostPlayNonce":C.yieldResult};"DELEGATED_SESSION_ID"in _.fO&&M6w(x,l);return C.return(l)})},Vpu=function(O,x,e){e=e===void 0?!1:e;
return _.A(function(l){return KJr()?_.t("enable_cloud_save_error_popup_after_retry")?l.return(new Promise(function(C,Q){var L,k,M,G,X;return _.A(function(y){switch(y.nextAddress){case 1:L=0,k=!0,G=M=null;case 2:if(!(k&&L++<2)){y.jumpTo(4);break}_.tS(y,5);return y.yield(hOQ(O,x,e),7);case 7:M=y.yieldResult;k=M.ok?!1:!n$s.includes(M.status);_.lb(y,2);break;case 5:G=X=_.VP(y);k=uhr(G);y.jumpTo(2);break;case 4:M?M.ok?(Dp(O,IQQ),C()):(Dp(O,O.cloudSaveIntervalMs*2),Q(Error("fi`"+String(M.status),{cause:{rpcErrorCode:M.status}}))):
(Dp(O,O.cloudSaveIntervalMs*2),Q(G||Error("gi"))),_.Ra(y)}})})):l.return(new Promise(function(C,Q){var L,k;
return _.A(function(M){if(M.nextAddress==1){if(O.JSC$17128_miniAppId==="")return Q(Error("hi")),M.return();_.tS(M,2);return M.yield(hOQ(O,x,e),4)}if(M.nextAddress!=2)return L=M.yieldResult,L.ok?(Dp(O,IQQ),C()):(Dp(O,O.cloudSaveIntervalMs*2),Q(Error("fi`"+String(L.status),{cause:{rpcErrorCode:L.status}}))),_.lb(M,0);k=_.VP(M);Dp(O,O.cloudSaveIntervalMs*2);Q(k);_.Ra(M)})})):l.return()})},hOQ=function(O,x,e){e=e===void 0?!1:e;
var l,C,Q;return _.A(function(L){if(L.nextAddress==1)return l=_.zX((new TextEncoder).encode(x)),C=BR$(),L.yield(WYw(O,C),2);Q=L.yieldResult;return L.return(fetch(C,{method:"POST",body:new Blob([l]),headers:Q,keepalive:e}))})},pTw=function(O){var x,e;
return _.A(function(l){if(l.nextAddress==1){if(!KJr())return l.return("");if(O.JSC$17128_miniAppId==="")throw Error("hi");if(O.loadAttempts>2)return l.return(O.downloadDataPromise);_.tS(l,2);return l.yield(zO4(O),4)}if(l.nextAddress!=2)return x=l.yieldResult,l.return(x);e=_.VP(l);if(uhr(e)&&++O.loadAttempts<2)return l.return(pTw(O));throw e;})},zO4=function(O){var x,e,l,C,Q;
return _.A(function(L){switch(L.nextAddress){case 1:return _.tS(L,2),x=BR$(),L.yield(WYw(O,x),4);case 4:return e=L.yieldResult,L.yield(fetch(x,{method:"GET",headers:e}),5);case 5:return l=L.yieldResult,l.ok?L.yield(l.text(),6):L.return(Promise.reject(Error("ii`"+String(l.status),{cause:new dWs(l.status)})));case 6:return C=L.yieldResult,L.return((new TextDecoder).decode(_.ir(C)));case 2:return Q=_.VP(L),L.return(Promise.reject(Q))}})},Dp=function(O,x){O.cloudSaveIntervalMs=x;
O.scottyUploadRateLimiter.intervalMs=O.cloudSaveIntervalMs};
ROQ.prototype.flush=function(){var O=this;return _.A(function(x){return O.initialDownloadDataSucceeded?x.yield(O.scottyUploadRateLimiter.flush(!0),0):x.return()})};var reY=LY(TU(1),Qq(1)),HQ4=LY(TU(1),Qq(3)),GE=function(O){this.callbacks=O};
_.b=GE.prototype;_.b.onAudioToggled=function(O,x){(x===void 0||x)&&_.EA("yt-mini-app-is-audio-enabled",O,2592E3)};
_.b.onPause=function(){this.onAudioToggled(!1,!1)};
_.b.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.b.returnNativeBenchmarkingMessage=function(){};
_.b.sendGameData=function(){};
_.b.sendStartGameFrameCapture=function(){};
var v$r=function(O,x,e){this.callbacks=O;var l=this;this.sdkVersion=new _.OA;this.channel=new S4z(_.Ni({destination:window,iframe:x,origin:(new URL(e.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var C=FS;var Q=TU(5);var L=new ADz;L=_.qi(L,1,1E4);Q=_.Vc(Q,4,Zy3,L);C(l,Q);l.onAudioToggled(l.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){l.sdkVersion.resolve("")},1E4)};
_.c(v$r,GE);_.b=v$r.prototype;_.b.onAudioToggled=function(O,x){GE.prototype.onAudioToggled.call(this,O,x===void 0?!0:x);x=FS;var e=TU(2),l=new Lh2;O=_.yW(l,1,O);O=_.Vc(e,3,Zy3,O);x(this,O)};
_.b.onPause=function(){GE.prototype.onPause.call(this);FS(this,TU(3))};
_.b.onResume=function(){GE.prototype.onResume.call(this);FS(this,TU(4))};
_.b.returnNativeBenchmarkingMessage=function(O){var x=FS,e=TU(6);var l=Qq(_.Q7(O,BS,1)?1:2);O=_.Q7(O,BS,1)?O:null;l=_.Vc(l,5,bN,O);x(this,LY(e,l))};
_.b.sendGameData=function(O){var x=FS,e=TU(7);O=_.Vc(e,5,Zy3,O);x(this,O)};
_.b.sendStartGameFrameCapture=function(){FS(this,TU(9))};
var XS=function(O,x,e){var l,C,Q;return _.A(function(L){if(L.nextAddress==1)return l=O.callbacks,C=l.onSdkCalled,Q=x,L.yield(O.sdkVersion.promise,2);C.call(l,Q,L.yieldResult,e);_.Ra(L)})};
v$r.prototype.onMessage=function(){var O=this;return gLd(Ms,function(x){var e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr,mL,Zn,q$,KV,VN,Pd,f2,p2,OT,Gp,zp,m3,E4,Xw,Tr,QR,ET,Q$,tJ,CQ,hS,JJ;return _.A(function(F4){switch(F4.nextAddress){case 1:if(!R_L(x.data))return _.ft(Error("ji")),F4.return();e=_.y7(x.data,1);_.t("enable_iframe_message_get_type_via_fields")&&(l=x.data,e=C=_.y7(l,1));switch(e){case 8:if(x.data.hasMetadata()){var DD=O.sdkVersion,lL=DD.resolve;var Sw=x.data.getMetadata();Sw=_.oK(Sw,
1);lL.call(DD,Sw);clearTimeout(O.sdkVersionTimeoutId)}break;case 6:return F4.jumpTo(2);case 16:if(!_.bm(x.data,qST,14,DM))return F4.return();Q=_.tO(x.data,qST,14,DM);(k=(L=O.callbacks).onGameFrameReceived)==null||k.call(L,Q);return F4.return();case 17:if(!_.bm(x.data,tvJ,15,DM))return F4.return();(G=(M=O.callbacks).onGameAudioReceived)==null||G.call(M,_.tO(x.data,tvJ,15,DM));return F4.return();case 1:if(DD=_.tO(x.data,G54,2,DM))switch(_.y7(DD,1)){case 1:O.callbacks.onFirstFrameReady();if(_.t("enable_network_request_logging_on_game_events")&&
_.Q7(DD,lN,4)){XS(O,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.y4(DD,lN,4));break}XS(O,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Sw=(lL=O.callbacks).onGameReady)==null||Sw.call(lL);if(_.t("enable_network_request_logging_on_game_events")&&_.Q7(DD,lN,4)){XS(O,"MINI_APP_SDK_API_GAME_READY",_.y4(DD,lN,4));break}XS(O,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.bm(DD,CY,3,Fhk))O.callbacks.onResourceLoaded(_.tO(DD,CY,3,Fhk))}return F4.return();case 3:return F4.jumpTo(3);case 4:return F4.jumpTo(4);
case 2:return F4.jumpTo(5);case 9:return F4.jumpTo(6);case 10:return O.callbacks.onClick(),F4.return();case 5:return F4.jumpTo(7);case 11:if(!_.bm(x.data,Ol,9,DM))return F4.return();X=_.tO(x.data,Ol,9,DM);(Z=(y=O.callbacks).onBenchmarkingMessageReceived)==null||Z.call(y,X);DD=x.reply;lL=TU(1);Sw=Qq(1);var ZD=new Ol;var qh=new Uint8Array(Gpp(X,mv(X,lVT,6))|0);ZD=VQ(ZD,5,lVT,_.az(qh,!1));Sw=_.Vc(Sw,5,bN,ZD);DD.call(x,LY(lL,Sw));return F4.return();case 12:return F4.jumpTo(8);case 13:return F4.jumpTo(9);
case 15:if(!_.t("enable_open_yt_content"))return x.reply(HQ4),F4.return();if(!_.bm(x.data,ExJ,12,DM))return x.reply(LY(TU(1),Qq(2))),F4.return();DD=_.tO(x.data,ExJ,12,DM);E=_.oK(DD,1);O.callbacks.onOpenYTContent(E);x.reply(reY);return F4.return();case 14:return F4.jumpTo(10);default:return F4.return()}F4.jumpTo(0);break;case 2:if(!_.bm(x.data,ko,5,DM))return F4.return();lL=x.data;DD=mv(lL,DM,5);lL=lL.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;P=dhi(lL,lL[_.C2]|0,ko,DD)||ko[u4r]||(ko[u4r]=
YTw(ko));DD=_.Mq(P,xo,1,_.Dd());U=_.T(DD);W=U.next();case 12:if(W.done){F4.jumpTo(14);break}z=W.value;r=new _.ry;r.level=_.y7(z,2)===1?"WARNING":"ERROR";f=JW$(z.getSource());return F4.yield(O.sdkVersion.promise,15);case 15:u={source:f,sdkVersion:F4.yieldResult};_.xL(_.C0(z,6))!=null?(r.message=z.getMessage(),r.stack=_.oK(z,5),u.sdkErrorType=w9N(_.y7(z,6)),_.xL(_.C0(z,7))!=null&&(u.sdkApi=SRV(_.y7(z,7)))):r.stack=void 0;J=Y=void 0;(J=(Y=O.callbacks).onError)==null||J.call(Y,{loggingError:r,metadata:u});
W=U.next();F4.jumpTo(12);break;case 14:return F4.return();case 3:return _.tS(F4,16),DD=F4.yield,lL=O.callbacks,Sw=lL.onSave,ZD=_.tO(x.data,k5d,4,DM),ZD=_.oK(ZD,1),DD.call(F4,Sw.call(lL,ZD),18);case 18:x.reply(reY);_.lb(F4,17);break;case 16:return O8=_.VP(F4),Xr=Pb,Fr=O8,mL=O.callbacks,Zn="MINI_APP_SDK_API_SAVE_DATA",F4.yield(O.sdkVersion.promise,19);case 19:Xr(Fr,mL,Zn,F4.yieldResult),x.reply(HQ4);case 17:return F4.yield(XS(O,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return F4.return();case 4:return _.tS(F4,
21),F4.yield(O.callbacks.onLoad(),23);case 23:q$=F4.yieldResult;DD=x.reply;lL=TU(1);Sw=Qq(1);ZD=new k5d;ZD=_.mO(ZD,1,q$);Sw=_.Vc(Sw,3,bN,ZD);DD.call(x,LY(lL,Sw));_.lb(F4,22);break;case 21:return KV=_.VP(F4),VN=Pb,Pd=KV,f2=O.callbacks,p2="MINI_APP_SDK_API_LOAD_DATA",F4.yield(O.sdkVersion.promise,24);case 24:VN(Pd,f2,p2,F4.yieldResult),x.reply(HQ4);case 22:return F4.yield(XS(O,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return F4.return();case 5:_.tS(F4,26);O.callbacks.onSendHighScore(vv(_.tO(x.data,
Vv2,3,DM).getValue()));x.reply(LY(TU(1),Qq(1)));_.lb(F4,27);break;case 26:return OT=_.VP(F4),Gp=Pb,zp=OT,m3=O.callbacks,E4="MINI_APP_SDK_API_SEND_SCORE",F4.yield(O.sdkVersion.promise,28);case 28:Gp(zp,m3,E4,F4.yieldResult),x.reply(HQ4);case 27:return F4.yield(XS(O,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return F4.return();case 6:if(!_.bm(x.data,pxk,8,DM)){F4.jumpTo(30);break}DD=F4.yield;lL=_.tO(x.data,pxk,8,DM);lL=_.y7(lL,1);return DD.call(F4,XS(O,SRV(lL)),30);case 30:return F4.return();case 7:return DD=
x.reply,lL=TU(1),Sw=Qq(1),ZD=O.callbacks.getLanguage(),Sw=VQ(Sw,4,bN,te(ZD)),DD.call(x,LY(lL,Sw)),F4.yield(XS(O,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return F4.return();case 8:if(!_.bm(x.data,IVT,10,DM))return F4.return();Xw=_.tO(x.data,IVT,10,DM);Tr=O.callbacks;QR=Tr.onSdkPerformanceUpdate;return F4.yield(O.sdkVersion.promise,33);case 33:return QR.call(Tr,Xw,F4.yieldResult),F4.return();case 9:DD=x.data;lL=mv(DD,DM,11);if(_.PT(_.C0(DD,lL))==null)return x.reply(LY(TU(1),Qq(2))),F4.return();
ET=Ea(x.data,11,DM);O.callbacks.onShareInviteCode(ET);x.reply(reY);return F4.yield(XS(O,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return F4.return();case 10:if(_.bm(x.data,TV4,13,DM)){F4.jumpTo(35);break}return F4.yield(O.callbacks.onShowMiniAppAd(2),36);case 36:return Q$=F4.yieldResult,x.reply(LY(TU(1),ox4(Q$))),F4.yield(XS(O,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return F4.return();case 35:DD=_.tO(x.data,TV4,13,DM);a:switch(_.y7(DD,1)){case 1:DD={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:DD={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:DD={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}tJ=DD;CQ=tJ.adType;hS=tJ.sdkApi;DD=F4.yield;lL=O.callbacks;Sw=lL.onShowMiniAppAd;ZD=_.tO(x.data,TV4,13,DM);ZD=_.oK(ZD,2);return DD.call(F4,Sw.call(lL,CQ,ZD||void 0),38);case 38:return JJ=F4.yieldResult,x.reply(LY(TU(1),ox4(JJ))),F4.yield(XS(O,hS),39);case 39:return F4.return()}})})};
var FS=function(O,x){_.A(function(e){O.channel.send(x);_.Ra(e)})},cb=function(O,x,e){this.callbacks=O;
var l=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;O=iUV(x,(new URL(e.toString())).origin);this.gameSnacks=new A7F(O);this.gameSnacks.page.onReady(function(){l.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){l.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var C,Q;(Q=(C=l.callbacks).onGameReady)==null||Q.call(C)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(C,Q){try{l.callbacks.onSendHighScore(Q)}catch(L){Pb(L,l.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(C,Q){var L;return _.A(function(k){if(k.nextAddress==1)return _.tS(k,2),k.yield(l.callbacks.onSave(l.decoder.decode(Q)),4);if(k.nextAddress!=2)return _.lb(k,0);L=_.VP(k);Pb(L,l.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return k.return()})});
this.gameSnacks.storage.onLoad(function(){var C,Q;return _.A(function(L){if(L.nextAddress==1)return _.tS(L,2),L.yield(l.callbacks.onLoad(),4);if(L.nextAddress!=2)return C=L.yieldResult,L.return(l.encoder.encode(C));Q=_.VP(L);Pb(Q,l.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return L.return(l.encoder.encode(""))})});
this.gameSnacks.init()};
_.c(cb,GE);cb.prototype.onAudioToggled=function(O,x){GE.prototype.onAudioToggled.call(this,O,x===void 0?!0:x);var e;(e=this.gameSnacks)==null||e.audio.update(O)};
cb.prototype.onPause=function(){GE.prototype.onPause.call(this);var O;(O=this.gameSnacks)==null||O.game.pause()};
cb.prototype.onResume=function(){GE.prototype.onResume.call(this);var O;(O=this.gameSnacks)==null||O.game.resume()};var KYL=jJi,dhT=_.K(function(O){var x=O.data;var e=O.loadingProgress;var l=O.forPaused;O=_.T(_.Iw("",void 0,"LYYTdd"));var C=O.next().value,Q=O.next().value;O=_.T(_.Iw(!1,void 0,"K0waae"));var L=O.next().value,k=O.next().value,M=[],G=function(){return"transform: scaleX("+(_.vL(e)||0)+")"},X=null,y=function(){return x()&&X!==null&&X!==void 0?X:X=x().showAnniversaryAnimation?6:KYL()};
_.uo(function(){var U;if(x().timeOutMessages&&((U=x().timeOutMessages)==null?0:U.length)){X=null;U=_.T(M);for(var W=U.next();!W.done;W=U.next())clearTimeout(W.value);M.length=0;NRn(x().timeOutMessages,M,Q,k)}},"BNu9j");
var Z=function(){return!!x().persistentErrorMessageTitle},E=function(){return e!==void 0},P=function(){return x().title};
return _.D("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.D("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.D("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.D("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var U,W=(U=x().backgroundImage)==null?void 0:U.sources,z;return(W==null?0:W.length)?"background-image: url("+((z=W[0])==null?void 0:z.url)+")":""}}),_.D("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.D(_.F,{cond:function(){return!Z()&&!(l==null?0:l())},
then:function(){var U={};return _.D("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.D("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.D(_.hc,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+y()},
data:function(){var W="loading_animation_"+y();return{animationConfig:{name:W,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+W+".json",loop:!0,autoplay:!0}}}})),_.D("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.D(_.F,{cond:P,
then:function(){return _.D("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},P)}}),_.D("p",{class:_.xz("miniAppSplashScreenViewModelTimeoutMessage",(U.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return L()},U)),
"aria-live":"polite"},C),_.D(_.F,{cond:E,then:function(){return _.D("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.D("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:G}))}})))}}),_.D(_.F,{cond:Z,
then:function(){return _.D("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.D("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return x().persistentErrorMessageTitle}),_.D(_.F,{cond:function(){return!!x().persistentErrorMessageDescription},
then:function(){return _.D("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return x().persistentErrorMessageDescription})}}))}}),_.D(_.F,{cond:l,
then:function(){return _.D("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.D("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.D("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},P))}})))},"Hf");var nLe=new _.iR("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var uwO=kK;kK=function(O){function x(e){if(e){var l,C;(l=e.__spec)==null||(C=l.didUnmount)==null||C.call(l);for(l=0;l<e.childNodes.length;l++)x(e.childNodes[l])}}
uwO==null||uwO(O);Ex(function(){for(var e=0;e<O.length;e++)x(O[e])})};var Y4u=_.K(function(O){var x=O.data;var e=O.score;var l=O.formattedScore;var C=O.onScoreChanged;var Q=O.isEmbeddedInWebview;var L=_.bD("yt-mini-app-score-button-view-model"),k=function(){var E;return _.q(x==null?void 0:(E=x())==null?void 0:E.buttonViewModel,_.gf)},M=function(){var E;
return(e==null?void 0:e())||Number(x==null?void 0:(E=x())==null?void 0:E.lastScore)||0},G=function(){var E;
return(l==null?void 0:l())||((E=k())==null?void 0:E.title)||""},X,y=1;
if(O=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))O=Number(O),y=isNaN(O)?1:O/100;_.uo(function(){C==null||C(M());var E;var P=_.p_((E=k())==null?void 0:E.onTap);if(P){E=_.q(P,fB$);var U,W,z;E=_.q(E==null?void 0:(U=E.panelLoadingStrategy)==null?void 0:(W=U.inlineContent)==null?void 0:(z=W.dialogViewModel)==null?void 0:z.customContent,bYN)}else E=void 0;if(U=E)U.score=G()},"Aekez");
O=_.lk(function(){var E,P,U=x==null?void 0:(E=x())==null?void 0:(P=E.loggingDirectives)==null?void 0:P.trackingParams;U&&_.I7(_.GG().resolve(_.vt),U);return!1});
_.YK(function(){if(L.value){var E=L.value.querySelector("button"),P=k();E&&P&&g$L(E,P);_.D9("yt-share-playable-with-high-score",function(){var U=M().toString(),W=x==null?void 0:x().onShareHighScoreCommand,z=x==null?void 0:x().highScoreShareClientParamIdentifier,r=Q==null?void 0:Q();W&&(r?(z=new sXT,U=_.mO(z,2,U),qS(W,U.JSC$12523_serializeBinary())):z&&(_.GG().resolve(nLe).clientParams.set(z,{miniAppClientParams:{highScore:U}}),WJL(W,!1)))})}});
var Z=function(){var E=k();E&&(e==null?0:e())&&E.accessibilityText&&(E.accessibilityText=E.accessibilityText.replace(X,G()));X=G();return{numberValue:M(),numberText:G(),heightPx:36,fontSizeMultiplier:y,shouldAnimate:!(e==null||!e())&&!0}};
return _.D("yt-mini-app-score-button-view-model",{class:function(){var E={};return _.yu("miniAppScoreButtonViewModelHost",(E.miniAppScoreButtonViewModelIsVisible=M()!==0,E))},
el:L,"on:click":O},oCW(!1,function(){return _.D("span",{style:"display:none;"},M)}),_.D(_.MR,{data:function(){var E;
return x==null?void 0:(E=x())==null?void 0:E.buttonViewModel}},{buttonViewModel:function(E){return _.D(_.RV,{data:E.data,
animatedTextProps:Z})}}))},"Jf");var wTL=_.K(function(O){var x,e=(x=_.tU("yt-mini-app-is-theater-mode-enabled"))!=null?x:!1,l=_.t("enable_playable_container_save_button"),C=_.t("enable_play_next_destination_page_in_toolbar");x={};return _.D("ytm-mini-app-top-bar-view-model",null,_.D("div",{class:_.xz("yt-mini-app-top-bar-view-model",(x["yt-mini-app-top-bar-view-model--mobile"]=!1,x["yt-mini-app-top-bar-view-model--desktop"]=!0,x))},_.D("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.D(_.F,{cond:function(){var Q;return!!O.data().backButtonEdu&&
!((Q=O.isExitMiniAppSeen)==null?0:Q.call(O))},
then:function(){return _.D(_.MR,{data:function(){return O.data().backButtonEdu}},{buttonViewModel:_.RV})},
else:function(){return _.D(_.MR,{data:function(){return O.data().backButton}},{buttonViewModel:_.RV})}}),_.D(_.F,{cond:function(){return O.data().viewAllButton&&!0},
then:function(){return _.D(_.MR,{data:function(){return O.data().viewAllButton}},{buttonViewModel:_.RV})}}),_.D(_.F,{cond:function(){return O.data().title&&!0},
then:function(){return _.D("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return O.data().title})}})),_.D("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.D(_.F,{cond:function(){var Q;
return(Q=O.isDesktopPlayPage)==null?void 0:Q.call(O)},
then:function(){return _.D(_.Xm,null,_.D(BLT,{highScoreButton:function(){return O.data().highScoreButton},
score:O.score,formattedScore:O.formattedScore,onScoreChanged:O.onScoreChanged,isEmbeddedInWebview:O.isEmbeddedInWebview}),_.D(vLY,{enableSaveButton:function(){return _.vL(l)},
saveButton:function(){return O.data().saveButton},
isSaved:O.isSaved,onSaveToggled:function(){return O.onSaveToggled}}),_.D(fQw,{menuButton:function(){return O.data().menuButton}}))},
else:function(){return _.D(_.F,{cond:function(){return!1},
then:function(){return _.D(_.MR,{data:function(){return O.data().playPageButton}},{buttonViewModel:function(Q){return _.D(_.RV,{data:Q.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.D(BLT,{highScoreButton:function(){return O.data().highScoreButton},
score:O.score,formattedScore:O.formattedScore,onScoreChanged:O.onScoreChanged,isEmbeddedInWebview:O.isEmbeddedInWebview})}})}})),_.D("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.D(_.MR,{data:function(){return O.data().muteButton}},{toggleButtonViewModel:function(Q){var L=Q.data;
return _.D(_.Jc,{data:function(){var k,M;return Object.assign({},L(),{isToggled:(M=(k=O.isAudioEnabled)==null?void 0:k.call(O))!=null?M:!0})},
onToggle:O.onAudioToggled,useOutlinedIcon:!0})}}),_.D(_.MR,{data:function(){return O.data().theatreModeButton}},{toggleButtonViewModel:function(Q){var L=Q.data;
return _.D("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.D(_.Jc,{data:function(){return Object.assign({},L(),{isToggled:e})},
useOutlinedIcon:!0}))}}),_.D(JeQ,{fullscreenButton:function(){return O.data().fullscreenButton}}),_.D(_.F,{cond:function(){return _.vL(C)&&O.data().viewAllButton&&!1},
then:function(){return _.D(_.MR,{data:function(){return O.data().viewAllButton}},{buttonViewModel:_.RV})}}),_.D(_.F,{cond:function(){var Q;
return!((Q=O.isDesktopPlayPage)==null?0:Q.call(O))},
then:function(){return _.D(_.Xm,null,_.D(vLY,{enableSaveButton:function(){return _.vL(l)},
saveButton:function(){return O.data().saveButton},
isSaved:O.isSaved,onSaveToggled:function(){return O.onSaveToggled}}),_.D(fQw,{menuButton:function(){return O.data().menuButton}}))}}))))},"Kf");
wTL.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var fQw=_.K(function(O){return _.D(_.MR,{data:O.menuButton},{buttonViewModel:_.RV})},"Lf"),vLY=_.K(function(O){var x=O.enableSaveButton;
var e=O.saveButton;var l=O.isSaved;var C=O.onSaveToggled;return _.D(_.F,{cond:function(){return x()&&!(e==null||!e())},
then:function(){return _.D(_.MR,{data:function(){var Q=_.q(e==null?void 0:e(),_.iN),L;return{toggleButtonViewModel:Object.assign({},Q,{isToggled:(L=l==null?void 0:l())!=null?L:!(Q==null||!Q.isToggled)})}}},{toggleButtonViewModel:function(Q){return _.D(_.Jc,{data:Q.data,
onToggle:C})}})}})},"Mf"),BLT=_.K(function(O){var x=O.highScoreButton;
var e=O.score;var l=O.formattedScore;var C=O.onScoreChanged;var Q=O.isEmbeddedInWebview;return _.D(_.MR,{data:x},{miniAppScoreButtonViewModel:function(L){return _.D(Y4u,{data:L.data,score:e,formattedScore:l,onScoreChanged:C,isEmbeddedInWebview:Q})}})},"Nf"),JeQ=_.K(function(O){O=O.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.D(_.Xm,null):_.D(_.MR,{data:O},{buttonViewModel:_.RV})},"Of");_.S4u=new _.iR("DESKTOP_CURRENT_PAGE");var OUw=_.K(function(O){var x=O.data;var e=_.t("force_active_time_logging_webview"),l=!1,C=new q4L,Q=void 0,L=void 0,k=_.GG().resolve(tpX),M=new oLu,G=void 0,X=void 0,y=[],Z=void 0,E=void 0,P=!1,U=!1,W=!1,z=!1,r=new _.OA,f=_.GG().resolve(nLe),u=_.GG().resolve(_.LW),Y=_.GG().resolve(_.D0(zY)),J,O8=(J=_.GG().resolve(_.D0(_.S4u)))==null?void 0:J.getCurrentPage(),Xr=!1,Fr=0,mL=function(jw){jw.preventDefault();return jw.returnValue=""},Zn;
O=_.T(_.Iw(!((Zn=_.tU("yt-mini-app-is-audio-enabled"))!=null&&!Zn),void 0,"WhYQTd"));var q$=O.next().value,KV=O.next().value,VN;Zn=_.T(_.Iw(!((VN=_.tU("exit-mini-app-seen-state"))==null||!VN),void 0,"jxhCJb"));var Pd=Zn.next().value,f2=Zn.next().value;VN=_.T(_.Iw(!1,void 0,"MuvDfe"));var p2=VN.next().value,OT=VN.next().value;VN=_.T(_.Iw(void 0,void 0,"u9DLoc"));var Gp=VN.next().value,zp=VN.next().value;VN=_.T(_.Iw(void 0,void 0,"rykyJb"));var m3=VN.next().value,E4=VN.next().value;VN=_.T(_.Iw(!0,void 0,
"d8FUvf"));var Xw=VN.next().value,Tr=VN.next().value;VN=_.T(_.Iw(!1,void 0,"x9XwUb"));var QR=VN.next().value,ET=VN.next().value;VN=_.T(_.Iw(!1,void 0,"bcquyc"));var Q$=VN.next().value,tJ=VN.next().value;VN=_.T(_.Iw(void 0,void 0,"FMAC5b"));var CQ=VN.next().value,hS=VN.next().value;VN=_.T(_.Iw(0,void 0,"HUGJEb"));var JJ=VN.next().value,F4=VN.next().value,DD=_.Q5("mini-app-container-view-model"),lL=function(){return x().isEmbeddedInWebview},Sw=function(){return x().hasPlayNextShelf};
_.D9("yt-page-type-changed",function(jw){if(_.t("enable_is_mini_app_page_active_bugfix"))jw.detail.newPageSubtype==="mini_app"&&jw.detail.newPageType==="ytd-browse"||!Xw()||Or();else if(jw=_.tyW()==="mini_app",jw!==Xw())if(Tr(jw),jw){var V$;jw=(V$=x().playableId)==null?void 0:V$.toString();jw!==void 0&&window.location.href.includes(jw)&&!U&&(z=!0,ZD(),Zs.value&&Vi(Zs.value))}else jw||Or()});
_.D9("yt-action",function(jw){jw.detail.actionName==="yt-engagement-panel-visible-changed"&&jw.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&jw.detail.args[2]==="PAmini_app_panel"&&Or();_.t("enable_is_mini_app_page_active_bugfix")?jw.detail.actionName==="yt-history-load"&&!Xw()&&(O8==null?0:O8.active)?(Tr(!0),ZD(),Zs.value&&Vi(Zs.value)):jw.detail.actionName==="yt-history-load"&&Xw()&&!x().isEmbeddedInWebview&&TJ():Xw()&&jw.detail.actionName==="yt-history-load"&&(z?z=!1:x().isEmbeddedInWebview||
TJ())});
_.YO(function(){qh()});
_.uo(function(){ZD()},"bLMzme");
var ZD=function(){var jw=x().playableId,V$=x().localReleaseId,he=x().derivedDeviceInterface;if(U)_.ft(new _.ry("[MiniAppContainerViewModel] onEnter was called more than once"));else{U=!0;Q=new CLh(jw,V$,he,document.visibilityState==="visible");LYL(Q);L=new ROQ(jw);juY(k,jw);yee(M,{showMiniAppAdCommand:x().showMiniAppAdCommand,isEmbeddedInWebview:x().isEmbeddedInWebview,playLogger:Q});gmW()&&(E=document.body.style.backgroundColor,_.WS(document.body,"background-color","black"));xg();KQ();r=new _.OA;
if(x().isEmbeddedInWebview){if(jw=(new URLSearchParams(window.location.search)).get("postPlayNonce"))bQh(Q,jw),Xr=!0;C.initialize({onAudioStateLoaded:function(Ae){OZ(Ae)},
onMuteMiniApp:function(){OZ(!1)},
onUnmuteMiniApp:function(){OZ(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Ae){Xr||(bQh(Q,Ae),Xr=!0)},
confirmExitMiniApp:function(){var Ae,Du,SN;return _.A(function(jZ){if(jZ.nextAddress==1)return x().confirmExitMiniAppCommand?jZ.yield(Promise.race([r.promise,Promise.resolve(!1)]),2):jZ.return();(Ae=jZ.yieldResult)?!x().confirmExitMiniAppCommandEdu||(SN=(Du=Pd)==null?void 0:Du())!=null&&SN?YG(x().confirmExitMiniAppCommand):(YG(x().confirmExitMiniAppCommandEdu),_.EA("exit-mini-app-seen-state","true",2592E6)):YG(x().closeMiniAppCommand);_.Ra(jZ)})},
onNativeBenchmarkingMessageReceived:function(Ae){Ae=QET(_.s87(Ae));if(_.bm(Ae,_.EM,3,e_T)){var Du=_.tO(Ae,_.EM,3,e_T),SN=hHL();var jZ=vv(SN.getSeconds())-vv(Du.getSeconds());Du=_.G8(SN,2)-_.G8(Du,2);jZ<0&&Du>0?(jZ+=1,Du-=1E9):jZ>0&&Du<0&&(--jZ,Du+=1E9);jZ=(new BS).setSeconds(jZ);jZ=_.Oh(jZ,2,_.bL(Du),0);_.IS(Ae,1,jZ)}var QG;(QG=X)==null||QG.returnNativeBenchmarkingMessage(Ae)},
multiplayer3pAckStateLoaded:function(Ae){TJ(Ae)},
exitMiniAppSeenStateLoaded:function(Ae){x().confirmExitMiniAppCommandEdu&&f2(Ae)},
onNavigateToNewMiniApp:function(){YG(x().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Ae){Ae=new URLSearchParams(Ae);var Du=void 0;Ae.has("invite_code")&&(Du=new D0N,Ae=Ae.get("invite_code"),Du=_.mO(Du,1,Ae));if(Ae=Du){var SN;(SN=X)==null||SN.sendGameData(Ae)}},
onPauseMiniApp:function(){l=!0;au()},
onResumeMiniApp:function(){l=!0;BO()},
onAdFinished:function(Ae){M.onAdFinished(Ae)}});
x().showMultiplayer3pConsentDialogCommand||r.resolve(!0);YG(x().onContainerReadyCommand)}else bQh(Q),r.resolve(!0);Uh$(L,Qu$(Q));Qu$(Q).then(function(Ae){Ae={miniAppPlayData:{postPlayNonce:Ae}};var Du,SN=(Du=x().loggingDirectives)==null?void 0:Du.trackingParams;SN&&_.k0().stateChanged(SN,Ae)});
jw=x().showSignInDialogCommand;!KJr()&&jw&&(_.EA("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),YG(jw));x().confirmExitMiniAppCommand&&Y&&(jw=mWN(x().confirmExitMiniAppCommand))&&(Y.customConfirmationCommand=jw)}},qh=function(){E&&_.WS(document.body,"background-color",E);
P=!1;Z&&Z.release();L.flush().catch(function(jw){_.ft(jw)});
k.flush().catch(function(jw){_.ft(jw)});
AeQ(Q);D2();X=void 0;NLQ(f)},Or=function(){Tr(!1);
qh();OT(!1);hS(void 0);zp(void 0);E4(void 0);Fr=0;F4(0);U=!1},au=function(){var jw;
(jw=X)==null||jw.onPause();Z&&Z.release();L.flush().catch(function(V$){_.ft(V$)});
k.flush().catch(function(V$){_.ft(V$)});
kXT(Q);ET(!0)},BO=function(){var jw;
(jw=X)==null||jw.onResume();KQ();jw=Q;jw.isForeground=!0;A$(jw,"PLAY_EVENT_TYPE_PLAY_RESUME");ET(!1)},OZ=function(jw){var V$;
(V$=X)==null||V$.onAudioToggled(jw);KV(jw)},TJ=function(jw){x().showMultiplayer3pConsentDialogCommand&&(x().isEmbeddedInWebview&&jw!==void 0&&r.resolve(jw),!jw&&_.tyW()==="mini_app"&&YG(x().showMultiplayer3pConsentDialogCommand))},ep=function(){var jw,V$,he,Ae;
return _.A(function(Du){if(Du.nextAddress==1){!x().isLivestream||x().disableVideoCapture||(jw=X)!=null&&jw.sendStartGameFrameCapture();V$=(new URL(window.location.href)).searchParams;if(V$.has("invite_code")){var SN=new D0N,jZ=V$.get("invite_code");he=_.mO(SN,1,jZ);(Ae=X)==null||Ae.sendGameData(he)}p2()||(OT(!0),SN=Q,SN.state!==1?_.ft(new _.ry("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+eOL[SN.state])):(_.EC("mini_app_ids_without_game_ready").includes(SN.JSC$17084_miniAppId)&&(SN.gameReady=
!0),SN.state=2,SN.beforeReady=!1,kN(SN,"ma_ffr"),A$(SN,"PLAY_EVENT_TYPE_PLAY_READY")));return Du.yield(r.promise,2)}YG(x().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();x().isEmbeddedInWebview||TJ();_.Ra(Du)})},Iu=function(){var jw=Q;
jw.gameReady=!0;kN(jw,"ma_gr")},$d=function(jw){var V$;
return _.A(function(he){if(he.nextAddress==1)return _.tS(he,2),he.yield(mh4(L,jw),4);if(he.nextAddress!=2)return _.lb(he,0);V$=_.VP(he);YG(x().showSavingErrorPopupCommand);throw V$;})},wo=function(){var jw,V$;
return _.A(function(he){if(he.nextAddress==1)return _.tS(he,2),he.yield(aQY(L),4);if(he.nextAddress!=2)return jw=he.yieldResult,he.return(jw);V$=_.VP(he);YG(x().showLoadingErrorDialogCommand);throw V$;})},ut=function(jw){Q.logError(jw)},Pv=function(jw,V$,he){DhL(Q,jw,V$,he)},SZ=function(jw,V$){FYu(Q,jw,V$)},zt=function(){!e&&x().isEmbeddedInWebview||_.DP();
Mpu(Q,!0);P||(window.addEventListener("beforeunload",mL,{capture:!0}),P=!0)},t_=function(jw){var V$,he,Ae,Du,SN,jZ,QG;
return _.A(function(rS){if(rS.nextAddress==1)return k&&(!G||G<jw)&&jw>0?rS.yield(gLT(k,jw),3):rS.jumpTo(0);V$=rS.yieldResult;he=_.T(V$);Ae=he.next().value;Du=he.next().value;SN=Ae;jZ=Du;((QG=SN)==null?0:QG.displayString)&&jZ&&(zp(jZ),E4(SN.displayString));_.Ra(rS)})},Rm=function(jw){var V$=x().onBenchmarkingMessageReceivedCommand;
if(V$){var he=hHL();_.Vc(jw,3,e_T,he);qS(V$,byd(jw))}},nV=function(jw){var V$=x().onGameFrameReceivedCommand;
if(V$){var he=new zU;var Ae=new xs4;var Du=Fl(jw,1);Ae=_.WH(Ae,1,Du);jw=_.oK(jw,2);jw=_.mO(Ae,2,jw);he=_.IS(he,2,jw);qS(V$,QqL(he))}},JL=function(jw){var V$=x().onGameAudioDataReceivedCommand;
if(V$){var he=new zU;var Ae=new lM$;jw=_.oK(jw,1);Ae=_.mO(Ae,1,jw);he=_.IS(he,4,Ae);qS(V$,QqL(he))}},Iz=function(){var jw=new URLSearchParams(window.location.search);
if(x().isEmbeddedInWebview&&jw&&jw.get("override_hl")==="true"&&jw.get("hl"))return jw.get("hl");jw=document.documentElement.lang;return jw!==""?jw:ax},ou=function(jw){var V$=x().onShareInviteCodeCommand;
if(V$)if(x().isEmbeddedInWebview){var he=new sXT;jw=_.mO(he,1,jw);qS(V$,hZN(jw))}else he=x().inviteCodeShareClientParamIdentifier,f.clientParams.set(he,{miniAppClientParams:{inviteCode:jw}}),YG(V$)},mo=function(jw){var V$,he,Ae;
return _.A(function(Du){if(Du.nextAddress==1)return V$=x().onMiniAppOpenYtContentRequested,k&&_.t("enable_open_yt_content")&&V$?Du.yield($hw(k,jw),3):Du.jumpTo(0);he=Du.yieldResult;if(he==="OK")if(x().isEmbeddedInWebview){var SN=new gTz;Ae=VQ(SN,2,hE,te(jw));qS(V$,OYR(Ae))}else u.clientData.set("video_id",jw),YG(V$);_.Ra(Du)})},mY=function(jw){Fr+=_.G8(jw,3);
jw=Math.min(Math.log(1+Fr/15E6*9)/Math.log(10),.99);F4(jw);VR(jw)},VR=_.yf(function(jw){var V$=x().updateLoadingProgressCommand;
if(V$){var he=new gTz;jw=VQ(he,3,hE,_.wN(jw));qS(V$,OYR(jw))}},100),cd=function(jw){return ELw(M,jw)},KQ=function(){var jw,V$;
((jw=_.kmN())==null?void 0:(V$=jw.wakeLock)==null?void 0:V$.request)!=null&&_.kmN().wakeLock.request("screen").then(function(he){Z=he}).catch(function(){})},Zs=_.bD("iframe");
_.uo(function(){x().isSupportedCountry&&(KJr()||_.t("enable_sign_in_promo")||!x().showSignInDialogCommand?Zs.value&&Vi(Zs.value):YG(x().onMiniAppReadyCommand))},"ASuFde");
var yR=function(){return _.D("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return p2()?0:-1},
el:Zs})},Vi=function(jw,V$){V$=V$===void 0?!1:V$;
var he=fb();he&&(V$||he.toString()!==jw.getAttribute("src"))&&(X=foL(x().source,{isAudioEnabled:q$,onFirstFrameReady:ep,onGameReady:Iu,onSave:$d,onLoad:wo,onError:ut,onSdkCalled:Pv,onSdkPerformanceUpdate:SZ,onClick:zt,onSendHighScore:t_,onBenchmarkingMessageReceived:Rm,getLanguage:Iz,onShareInviteCode:ou,onResourceLoaded:mY,onOpenYTContent:mo,onShowMiniAppAd:cd,onGameFrameReceived:nV,onGameAudioReceived:JL},jw,he),Da(jw,"load",function(){kN(Q,"ma_il");Da(jw,"load",function(){Vi(jw,!0)})}),_.gk(jw,
he))},fb=function(){var jw=x().url;
if(jw&&(jw=_.f$(jw),jw!==null)){if(x().source&&x().source==="MINI_APP_SOURCE_GAMESNACKS")jw=_.yi(jw,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.t("enable_origin_query_parameter_bugfix")){var V$=_.Fu(_.Fqs(jw.toString()));V$=new URLSearchParams(V$||"");V$.set("origin",window.location.origin);V$=V$.toString();jw=_.sh(jw).toString();jw=_.aS(nSN.exec(jw)[0]+(V$.trim()?"#"+V$:""))}return jw}},dk=function(){var jw={};
jw=_.xz("yt-mini-app-container-view-model__loading-screen",(jw["yt-mini-app-container-view-model__loading-screen--fade-out"]=p2,jw));var V$=function(){return p2()?1:JJ()};
return _.D("div",{class:jw},_.D(_.MR,{data:function(){return x().splashScreen}},{miniAppSplashScreenViewModel:function(he){return _.D(dhT,{data:he.data,
loadingProgress:V$})}}))},gw=function(){var jw={};
return _.D("div",{class:_.xz("yt-mini-app-container-view-model__pause-interstitial",(jw["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!QR()},jw["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=QR,jw))},_.D(_.MR,{data:function(){return x().splashScreen}},{miniAppSplashScreenViewModel:function(V$){return _.D(dhT,{data:V$.data,
forPaused:!0})}}))},xg=function(){y=[];
y.push(_.ol(window,"visibilitychange",function(){W||l&&lL()||(document.visibilityState==="visible"?BO():au())}));
y.push(_.ol(window,"pagehide",function(){qh()}));
y.push(_.ol(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&DD.value.dispatchEvent(new Event("tap"))},0)}));
y.push(_.ol(DD.value,"pointerdown",function(){Mpu(Q,!1)},!0));
y.push(_.ol(DD.value,"pause",function(){W=!0;au()}));
y.push(_.ol(DD.value,"play",function(){W=!1;BO()}));
y.push(_.ol(DD.value,"exit",function(){qh()}));
var jw=navigator.keyboard,V$=jw&&jw.lock;y.push(_.ol(window,i_p,function(){tJ(x5N());x5N()?(x().hasPlayNextShelf&&lJ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Wb("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),V$&&jw.lock(["Escape"])):(x().hasPlayNextShelf&&Wb("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),lJ("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),V$&&jw.unlock())}));
x().showMultiplayer3pConsentDialogCommand&&y.push(_.ol(window,"yt-playables-ack-3p-data-usage",function(){iQL(k)}));
x().confirmExitMiniAppCommandEdu&&y.push(_.ol(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.EA("exit-mini-app-seen-state","true",2592E6)}));
x().onGameAudioDataReceivedCommand&&y.push(_.ol(window,"message",function(he){he=he.event_;var Ae,Du=(Ae=Zs.value)==null?void 0:Ae.src;if(Du&&he.origin===(new URL(Du)).origin&&he.data&&he.data.type==="GAME_AUDIO"&&he.data.audio&&he.data.audio.length>0)if(_.t("enable_sending_unwrapped_game_audio_as_serialized_metadata"))rWL(x().onGameAudioDataReceivedCommand,he.data.audio);else{var SN=new FileReader;SN.onload=function(){var jZ=new zU;var QG=new lM$;QG=_.mO(QG,1,SN.result);jZ=_.IS(jZ,4,QG);qS(x().onGameAudioDataReceivedCommand,
QqL(jZ))};
SN.readAsDataURL(new Blob([he.data.audio]))}}))},D2=function(){y.forEach(function(jw){GO(jw)});
window.removeEventListener("beforeunload",mL,{capture:!0})},YG=function(jw){jw&&WJL(jw,x().isEmbeddedInWebview||!1)},Wb=function(jw,V$){jw=_.T(DD.value.getElementsByClassName(jw));
for(var he=jw.next();!he.done;he=jw.next())he.value.classList.add(V$)},lJ=function(jw,V$){jw=_.T(DD.value.getElementsByClassName(jw));
for(var he=jw.next();!he.done;he=jw.next())he.value.classList.remove(V$)};
return function(){var jw={};jw=_.xz("yt-mini-app-container-view-model",(jw["yt-mini-app-container-view-model--desktop"]=!0,jw["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return x().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},jw["yt-mini-app-container-view-model--ios-web-view"]=gmW(),jw["yt-mini-app-container-view-model--no-top-bar"]=function(){return!x().topBar},jw["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return x().hasPlayNextShelf},jw["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return x().hasPlayNextShelf},jw["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Q$()&&x().hasPlayNextShelf},jw));
var V$={};V$=_.xz("yt-mini-app-container-view-model__content",(V$["yt-mini-app-container-view-model__content--desktop-content"]=!0,V$["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return x().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},V$["yt-mini-app-container-view-model--desktop-play-page"]=function(){return x().hasPlayNextShelf},V$));
return _.D("mini-app-container-view-model",{el:DD},_.D("div",{class:jw},_.D(_.F,{cond:function(){return x().topBar&&!Q$()},
then:function(){return _.D(_.MR,{data:function(){return x().topBar}},{miniAppTopBarViewModel:function(he){return _.D(wTL,{data:he.data,
isAudioEnabled:q$,onAudioToggled:function(Ae){OZ(Ae)},
score:Gp,formattedScore:m3,onScoreChanged:function(Ae){G=Ae},
isEmbeddedInWebview:lL,isSaved:CQ,onSaveToggled:function(Ae){hS(Ae)},
isExitMiniAppSeen:Pd,isDesktopPlayPage:Sw})}})}}),_.D("div",{class:V$},_.D(_.F,{cond:Xw,
then:function(){return yR()}}),_.D(_.F,{cond:function(){return x().isLivestream},
then:function(){return gw()}}),_.D(_.F,{cond:function(){return!x().isEmbeddedInWebview},
then:function(){return dk()}}))))}()},"Rf");
OUw.idomCompat=!0;_.wP(OUw,"mini-app-container-view-model",{props:{data:_.Ld}});var xTL=_.K(function(O){var x=O.data;return _.D("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.D("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.lk(function(){var e=x().onTap;e&&_.me(e)})},_.D(_.F,{cond:function(){return x().icon},
then:function(e){return _.D(_.L7,{icon:function(){return e().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.D("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return x().title})))},"Sf");
xTL.idomCompat=!0;var ez4=_.K(function(O){var x=_.Q5("div"),e=_.T(_.Iw(void 0,void 0,"dg3xff")),l=e.next().value,C=e.next().value;e=_.T(_.Iw(void 0,void 0,"AgHNfc"));var Q=e.next().value,L=e.next().value;e=_.T(_.Iw(void 0,void 0,"fuTKCc"));var k=e.next().value,M=e.next().value,G=function(){var z=l();return z!==void 0?Math.abs(z):void 0},X=function(){var z=G();
return z===void 0||z<=3},y=function(){var z=G();
var r=Q(),f=k();z=z!==void 0&&r!==void 0&&f!==void 0?r-f-z:void 0;return z===void 0||z<=3},Z=function(z){x.value&&x.value.scrollBy({top:0,
left:(_.wz("HTML_DIR")==="rtl"?-1:1)*z*x.value.clientWidth,behavior:"smooth"})},E=function(){var z;
C((z=x.value)==null?void 0:z.scrollLeft);var r;L((r=x.value)==null?void 0:r.scrollWidth);var f;M((f=x.value)==null?void 0:f.clientWidth)},P=function(){Z(-.5)},U=function(){Z(.5)};
e=_.lk(function(){E()});
_.u8(function(){E();if(x.value&&window.ResizeObserver){var z=new ResizeObserver(E);z.observe(x.value);_.YO(function(){z.disconnect()})}});
var W={};return _.D("yt-sponsorships-scrollable-shelf",{class:_.xz("ytdSponsorshipsScrollableShelfHost",O.className)},_.D("div",{class:_.xz("ytdSponsorshipsScrollableShelfContent",(W.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return O.data().previousButton&&O.data().nextButton&&!X()&&!y()},W.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return O.data().previousButton&&!X()&&y()},W.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return O.data().nextButton&&
X()&&!y()},W)),
el:x,"on:scroll":e},O.children),_.D(_.F,{cond:function(){return!X()},
then:function(){return _.D(_.MR,{data:function(){return O.data().previousButton}},{buttonViewModel:function(z){return _.D(_.RV,{data:z.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:P})}})}}),_.D(_.F,{cond:function(){return!y()},
then:function(){return _.D(_.MR,{data:function(){return O.data().nextButton}},{buttonViewModel:function(z){return _.D(_.RV,{data:z.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:U})}})}}))},"Uf");
ez4.idomCompat=!0;var CIT=_.K(function(O){var x=O.data;O={};return _.D("yt-sponsorships-hub",{class:_.xz("ytdSponsorshipsHubHost",(O.ytdSponsorshipsHubHostIndented=function(){return x().indented},O))},_.D("div",{class:"ytdSponsorshipsHubHeader"},_.D("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.D("div",{class:"ytdSponsorshipsHubAvatar"},_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ})),_.D(_.F,{cond:function(){return x().badgeImage},
then:function(e){return _.D("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.D("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.D("div",{class:"ytdSponsorshipsHubBadge"},_.D(_.n_,{data:e,targetWidth:24,targetHeight:24,alt:""}))))}})),_.D("div",{class:"ytdSponsorshipsHubDetails"},_.D("div",{class:"ytdSponsorshipsHubTierName"},function(){return x().tierName}),_.D("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return x().membershipType}),_.D("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return x().membershipDurationOrExpiry})),_.D("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.D(_.MR,{data:function(){return x().manageButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.D(_.MR,{data:function(){return x().actionMenuButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.D("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return x().perksTitle}),_.D(ez4,{data:function(){return{previousButton:x().previousPerkButton,
nextButton:x().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.D("div",{class:"ytdSponsorshipsHubPerkCards"},_.D(_.MR,{data:function(){return x().perkCards}},{sponsorshipsHubPerkCardViewModel:xTL}),_.D(_.F,{cond:function(){return x().viewAllPerksButton},
then:function(e){return _.D(lsQ,{data:e})}}))))},"Vf");
CIT.idomCompat=!0;var lsQ=_.K(function(O){var x=O.data;return _.D("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.D(_.MR,{data:function(){return x().button}},{buttonViewModel:_.RV}),_.D("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.D("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return x().title}),_.D("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return x().subtitle})))},"Wf");
lsQ.idomCompat=!0;_.wP(CIT,"yt-sponsorships-hub",{props:{data:_.Ld}});_.QSL=_.K(function(O){var x=O.data;return _.D("yt-dual-avatar-view-model",{class:_.xz("ytDualAvatarViewModelHost",O.className),style:_.T7({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var e;return((e=x().badgeCutoutRadius)!=null?e:14)+"px"}})},_.D("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.D(_.MR,{data:function(){return x().startAvatar}},{avatarViewModel:_.jQ}),_.D(_.MR,{data:function(){return x().endAvatar}},{avatarViewModel:_.jQ})),_.D(_.MR,{data:function(){return x().badge}},
{contentPreviewImageViewModel:function(e){return _.D("div",{class:"ytDualAvatarViewModelBadge"},_.D(_.qP,{data:e.data}))}}))},"Xf");
_.QSL.idomCompat=!0;var Tk4=_.K(function(O){var x=O.data;var e,l=!((e=_.GG().resolve(_.D0(_.rP)))==null||!e());O=_.aw(function(){var X,y,Z=l?(X=x().header)==null?void 0:X.backgroundColorDarkMode:(y=x().header)==null?void 0:y.backgroundColorLightMode;if(Z!==void 0)return _.aF(Z)},void 0,"TDdh7d");
e=_.aw(function(){var X,y;return l?(X=x().header)==null?void 0:X.backgroundImagePart1Dark:(y=x().header)==null?void 0:y.backgroundImagePart1Light},void 0,"X0peMe");
var C=_.aw(function(){var X,y;return l?(X=x().header)==null?void 0:X.backgroundImagePart2Dark:(y=x().header)==null?void 0:y.backgroundImagePart2Light},void 0,"an0Hzd"),Q=_.aw(function(){return _.wz("HTML_DIR")==="rtl"},void 0,"BltEgb"),L=_.Q5("yt-sponsorships-perks-list"),k=!1,M=function(){var X=L.value;
if(X&&!k){var y,Z=(y=X.parentElement)==null?void 0:y.parentElement;if(Z)for(X=X.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),y=0;y<X.length;++y){var E=X[y];if(E instanceof HTMLElement){Z.scrollTo({top:E.offsetTop+E.clientHeight/2-Z.clientHeight/2,behavior:"smooth"});k=!0;break}}}};
_.YK(function(){var X=L.value;if(X&&window.ResizeObserver){var y=new ResizeObserver(M);y.observe(X);_.YO(function(){y.disconnect()})}});
var G={};return _.D("yt-sponsorships-perks-list",{el:L,class:_.xz("ytdSponsorshipsPerksListHost",(G.ytdSponsorshipsPerksListHorizontalPadding=function(){return x().horizontalPaddingEnabled},G))},_.D("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.D("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.T7({"background-color":O})},_.D("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.D(_.F,{cond:e,then:function(X){var y={};return _.D("div",{class:_.xz((y.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=l,y.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!l,y.ytdSponsorshipsPerksListFlipped=Q,y))},_.D(_.n_,{data:X,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.D("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.D(_.F,{cond:C,
then:function(X){var y={};return _.D("div",{class:_.xz((y.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=l,y.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!l,y.ytdSponsorshipsPerksListFlipped=Q,y))},_.D(_.n_,{data:X,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.D("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.D(_.MR,{data:function(){var X;
return(X=x().header)==null?void 0:X.dualAvatar}},{dualAvatarViewModel:_.QSL})))),_.D("div",{class:"ytdSponsorshipsPerksListBody"},_.D("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return x().title}),_.D(_.F,{cond:function(){return x().perks},
then:function(X){return _.D(_.HE,{each:X},function(y,Z){var E={};return _.D("div",{class:_.xz("ytdSponsorshipsPerksListPerkContainer",(E.ytdSponsorshipsPerksListSelectedPerk=function(){var P=Z(),U=x().selectedPerkIndex;return P===U},E))},_.D(_.F,{cond:function(){return Z()>0},
then:function(){return _.D("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.D("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.D(_.F,{cond:function(){return y.icon},
then:function(P){return _.D(_.L7,{icon:function(){return P().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.D("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.D("div",{class:"ytdSponsorshipsPerksListPerkTitle"},y.title),_.D("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.D(_.TT,{text:y.description})),_.D(_.F,{cond:function(){return y.instructions},
then:function(){var P,U;return _.D("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.D("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(P=y.instructions)==null?void 0:P.title),_.D("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.D(_.TT,{text:(U=y.instructions)==null?void 0:U.text})))}}))),_.D(_.F,{cond:function(){return y.emoji},
then:function(P){return _.D("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.D(_.HE,{each:function(){return P()}},function(U){return _.D(_.n_,{data:U,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.D(bUp,{data:y}))})}})))},"Yf");
Tk4.idomCompat=!0;var bUp=_.K(function(O){var x=O.data;var e=function(L,k){return L===k},l=function(){var L=x();
L=_.q(L==null?void 0:L.badgesShelf,KXd);return L!==void 0&&L!==null?L:{previousButton:{},nextButton:{}}},C=_.bD("div"),Q=function(){var L=C.value;
if(L){var k=L.parentElement;if(k){L=L.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var M=0;M<L.length;++M){var G=L[M];if(G instanceof HTMLElement){k.scrollTo({left:G.offsetLeft+G.clientWidth/2-k.clientWidth/2,behavior:"instant"});break}}}}};
_.YK(function(){var L=C.value;if(L){var k=new ResizeObserver(Q);k.observe(L);_.YO(function(){k.disconnect()})}});
return _.D("div",null,_.D(_.F,{cond:function(){return x().badges},
then:function(L){return _.D(ez4,{data:l},_.D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:C},_.D(_.HE,{each:function(){return L()}},function(k,M){var G={},X={},y={};
return _.D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.D(_.F,{cond:function(){return M()>0},
then:function(){return _.D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.D("div",{class:_.xz("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(G.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return e(M(),x().currentBadgeIndex)},G.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!e(M(),x().currentBadgeIndex)},G))},_.D("div",{class:_.xz("ytdSponsorshipsPerksListLoyaltyBadge",(X.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return e(M(),
x().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!e(M(),x().currentBadgeIndex)},X))},_.D(_.F,{cond:function(){return k.image},
then:function(Z){var E={};return _.D("div",{class:_.xz((E.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return e(M(),x().currentBadgeIndex)},E.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!e(M(),x().currentBadgeIndex)},E))},_.D(_.n_,{data:Z,
alt:""}))}})),_.D("div",{class:_.xz("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(y.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return e(M(),x().currentBadgeIndex)},y))},k.title)))})))}}))},"Zf");
bUp.idomCompat=!0;_.wP(Tk4,"yt-sponsorships-perks-list",{props:{data:_.Ld}});_.wP(_.K(function(O){return _.D("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.D(_.F,{cond:function(){return O.data().image},
then:function(x){return _.D(_.n_,{className:"ytwFantasyEmptyStateViewModelImage",data:x,ariaHidden:!0,alt:""})}}),_.D(_.TT,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return O.data().title}}),_.D(_.TT,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return O.data().subtitle}}),_.D(_.MR,{data:function(){return O.data().primaryButton}},{buttonViewModel:function(x){return _.D(_.RV,{data:x.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$f"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Ld}});var LoY;var kHL=_.K(function(O){var x=O.data;var e=O.uniqueId;var l=O.overrides;O=_.aw(function(){var C,Q=((C=x().timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:e(),timings:Q,experimentEnabled:Q.length>0,enabled:Q.length>0}},void 0,"hiuXI");
return _.D("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.D(j5k,{settings:O},_.D(_.MR,{data:function(){return x().buttonRenderer}},{buttonRenderer:function(C){return _.D(_.MP,{data:C.data,
buttonOverrides:l})}})))},"ag");
kHL.idomCompat=!0;_.wP(kHL,"timed-animation-button-renderer",{props:{data:_.Ld,uniqueId:_.Ld,overrides:_.Ld}});var oW=function(){var O=_.a.apply(this,arguments)||this;O.hideJoinButtonBeforeSubscribed=_.t("hide_join_button_before_subscribed");O.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return O};
_.c(oW,_.a);_.b=oW.prototype;_.b.hasShowDialogCommand=function(O){return!!_.q(O,fB$)};
_.b.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"}}}};
_.b.updateJoinButtonOverrides=function(){var O,x;(O=_.$U(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(x=O.polymerController)==null||x.set("overrides",this.joinButtonOverrides);if(O=_.$U(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))O.overrides=this.joinButtonOverrides};
_.b.handleButtonRefreshAction=function(O){if(O=_.q(O,FB$))this.set("data.membershipButton",O.membershipButton),this.notifyPath("data.membershipButton")};
_.b.onYtServiceRequestError=function(O){_.s9(this.hostElement,O.detail.error.message)};
_.b.onKeydown=function(O){if(O.key==="Enter"){var x;(x=this.data)!=null&&x.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.b.handleUnsubscribeAction=function(){var O,x,e;((O=this.data)==null?void 0:(x=O.membershipButton)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.style)==="STYLE_PRIMARY"&&_.$U(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Dy.Object.defineProperties(oW.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.subscriptionStateEntity)==null||!O.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var O,x=(O=this.data)==null?void 0:O.membershipButton,e;O=(x==null?void 0:x.buttonRenderer)||_.q(x==null?void 0:(e=x.timedAnimationButtonRenderer)==null?void 0:e.buttonRenderer,_.wf);return(O==null?void 0:O.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(O==null?void 0:O.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(O==null?void 0:O.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var O;if(this.hasShowDialogCommand((O=this.data)==null?void 0:O.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var O;if(this.hasShowDialogCommand((O=this.data)==null?void 0:O.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.attributedTitle)}}});
oW.prototype.onYtServiceRequestError=oW.prototype.onYtServiceRequestError;oW.prototype.updateJoinButtonOverrides=oW.prototype.updateJoinButtonOverrides;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],oW.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],oW.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],oW.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.zk),_.v("design:type",Object)],oW.prototype,"ironButtonState",void 0);_.B([_.R(),_.v("design:type",Object)],oW.prototype,"data",void 0);_.B([_.p("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.v("design:type",Object),_.v("design:paramtypes",[])],oW.prototype,"hideJoin",null);
_.B([_.R(),_.v("design:type",String)],oW.prototype,"subscribeKey",void 0);_.B([_.R({selectorArgs:["subscribeKey"],selector:iJm}),_.v("design:type",Object)],oW.prototype,"subscriptionStateEntity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],oW.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.B([_.p("subscriptionStateEntity"),_.R({reflectToAttribute:!0}),_.v("design:type",Object),_.v("design:paramtypes",[])],oW.prototype,"subscribed",null);
_.B([_.p("subscribed","data.membershipButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],oW.prototype,"joinButtonOverrides",null);_.B([_.p("data.navigationEndpoint"),_.v("design:type",Object),_.v("design:paramtypes",[])],oW.prototype,"channelNameTabIndex",null);_.B([_.p("data.navigationEndpoint"),_.v("design:type",Object),_.v("design:paramtypes",[])],oW.prototype,"channelNameRole",null);
_.B([_.p("data.attributedTitle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],oW.prototype,"hasAttributedTitle",null);_.B([_.T1("joinButtonOverrides"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oW.prototype,"updateJoinButtonOverrides",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],oW.prototype,"onYtServiceRequestError",null);
_.B([_.H({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],oW);
var A7L=_.NQ()(oW,"ytd-video-owner-renderer",function(){if(LoY===void 0){var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);LoY=O}O=LoY;return O},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.wP(_.K(function(O){var x=O.data;var e;O=_.T(_.Iw(!((e=_.tU("yt-mini-app-is-theater-mode-enabled"))==null||!e),void 0,"i2pjVd"));var l=O.next().value,C=O.next().value;e=_.T(_.Iw(!1,void 0,"ga7V5c"));var Q=e.next().value,L=e.next().value;_.YK(function(){var G=_.ol(window,i_p,function(){L(x5N())});
_.YO(function(){GO(G)})});
var k;e=(k=_.GG().resolve(_.D0(hs4)))!=null?k:function(){return _.D("div",null)};
_.Cw("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){C(!0);_.EA("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Cw("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){C(!1);_.EA("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
k={};O={};var M={};return _.D("mini-app-play-page-renderer",{class:_.xz("miniAppPlayPageRendererHost",(k.miniAppPlayPageRendererHostDetailsView=function(){return!l()},k))},_.D("div",{class:_.xz("miniAppPlayPageRendererGameContainer",(O.miniAppPlayPageRendererGameContainerDetailsView=function(){return!l()},O))},_.D(_.MR,{data:function(){return x().containerViewModel}},{miniAppContainerViewModel:OUw}),_.D(_.F,{cond:function(){return x().channel&&x().subscribeButton},
then:function(){var G={};return _.D("div",{class:_.xz("miniAppPlayPageRendererChannelContainer",(G.miniAppPlayPageRendererHideVisibility=function(){return Q()},G))},_.D(_.MR,{data:function(){return x().channel}},{videoOwnerRenderer:function(X){return _.D(A7L,{data:X.data})}}),_.D(_.MR,{data:function(){return x().subscribeButton}},{subscribeButtonViewModel:function(X){return _.D(_.j7,{data:X.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.D(_.F,{cond:function(){return!l()&&x().description},
then:function(){var G={};return _.D("div",{class:_.xz("miniAppPlayPageRendererMiniAppDescriptionWrapper",(G.miniAppPlayPageRendererHideVisibility=function(){return Q()},G))},_.D("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return x().description}))}})),_.D("div",{class:_.xz("miniAppPlayPageRendererPlayNextContainer",(M.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!l()},M.miniAppPlayPageRendererHideVisibility=function(){return Q()},M))},_.D(_.MR,{data:function(){return x().sectionList}},
{sectionListRenderer:e})))},"bg"),"mini-app-play-page-renderer",{props:{data:_.Ld}});var yV=function(){var O=_.a.apply(this,arguments)||this;O.isSearch=!1;O.isConstrainedList=!1;O.hasChipsBar=!1;O.inReplyPanel=!1;O.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"}};O.monitorScroll=!0;O.SCROLL_ANIMATION_DURATION_MS=300;O.nextContinuation={continuationType:"sectionListContinuation"};return O};
_.c(yV,_.a);_.b=yV.prototype;
_.b.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(O){switch(O.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:_.t("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.t("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.b.created=function(){var O=this;this.JSC$17223_scrollAnimation=new _.TE(function(x){O.hostElement.scrollTop=x})};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.b.getItemsPath=function(){return"data.contents"};
_.b.replacePrimaryContent=function(O){this.set("data.contents",O)};
_.b.computeHasSortFilter=function(O){return!!O&&!!O.sortFilterSubMenuRenderer};
_.b.computeShouldScrollInPanel=function(O){var x;return!!(O==null?0:(x=O.scrollPaneStyle)==null?0:x.scrollable)};
_.b.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Ow(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.b.scrollToTop=function(){this.hostElement.scrollTop=0};
_.b.scrollToItemSection=function(O){if(O=this.getItemByIdentifier(O))O=this.getScrollPositionForItem(O),this.hostElement.scrollTop!==O&&this.JSC$17223_scrollAnimation.start(this.hostElement.scrollTop,O,this.SCROLL_ANIMATION_DURATION_MS)};
_.b.getItemByIdentifier=function(O){var x=this.contents.querySelectorAll("ytd-item-section-renderer");if(x&&x.length!==0){var e=Array.from(x).findIndex(function(l){return l.sectionIdentifier===O});
return x[e===-1?0:e]}};
_.b.getScrollPositionForItem=function(O){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===O)return 0;O=_.vX(O).y+this.hostElement.scrollTop-_.vX(this.hostElement).y;return Math.min(O,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Dy.Object.defineProperties(yV.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.targetId)==="browse-feedFEclips"}}});
yV.prototype.onScroll=yV.prototype.onScroll;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],yV.prototype,"ytLazyListBehavior",void 0);_.B([_.V(_.kv.YtNextContinuationBehavior),_.v("design:type",Object)],yV.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.V(_.gdQ),_.v("design:type",Object)],yV.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],yV.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yV.prototype,"data",void 0);_.B([_.R({value:2}),_.v("design:type",Number)],yV.prototype,"initialCount",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],yV.prototype,"autoFill",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.v("design:type",Boolean)],yV.prototype,"hasSortFilter",void 0);_.B([_.R({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.v("design:type",Boolean)],yV.prototype,"hideBottomSeparator",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.v("design:type",Boolean)],yV.prototype,"shouldScrollInPanel",void 0);
_.B([_.R(),_.v("design:type",Object)],yV.prototype,"isSearch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yV.prototype,"isConstrainedList",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],yV.prototype,"responsiveSizing",void 0);_.B([_.R(),_.v("design:type",Object)],yV.prototype,"hasChipsBar",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],yV.prototype,"pageSubtype",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yV.prototype,"engagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yV.prototype,"liveChatEngagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yV.prototype,"inReplyPanel",void 0);_.B([_.kX("#action-button"),_.v("design:type",HTMLElement)],yV.prototype,"actionButton",void 0);_.B([_.R(),_.v("design:type",Object)],yV.prototype,"scrollUpButtonData",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yV.prototype,"engagementPanelDropdown",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yV.prototype,"engagementPanelDialog",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],yV.prototype,"isClipList",null);_.B([_.kX("#contents"),_.v("design:type",HTMLElement)],yV.prototype,"monitorScrollElement",void 0);_.B([_.kX("#contents"),_.v("design:type",HTMLElement)],yV.prototype,"contents",void 0);
_.B([_.bH("scroll"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yV.prototype,"onScroll",null);_.B([_.H({is:"ytd-section-list-renderer",disableElementRegistration:!0})],yV);
var ME4=_.NQ()(yV,"ytd-section-list-renderer",function(){if(WLL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);WLL=O}O=WLL;return O},{mode:1});var DTL;var GHQ;var FoL;var Xwp;var Zp=function(){return _.a.apply(this,arguments)||this};
_.c(Zp,_.a);Zp.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Zp.prototype.onLikeButtonClick=function(O){O.stopPropagation();O.preventDefault()};
_.Dy.Object.defineProperties(Zp.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)!=null&&O.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)})}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Zp.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Zp.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Zp.prototype,"ytRendererStamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Zp.prototype,"data",void 0);
_.B([_.R({selectorArgs:["data.likeStatusEntityKey"],selector:R2}),_.v("design:type",Object)],Zp.prototype,"likeStatusEntity",void 0);_.B([_.p("data","likeStatusEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],Zp.prototype,"likeButtonRenderer",null);_.B([_.H({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Zp);
_.n(Zp,"ytd-slim-metadata-toggle-button-renderer",function(){if(Xwp!==void 0)return Xwp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return Xwp=O},{mode:1});var EU=function(){var O=_.a.apply(this,arguments)||this;O.minimizePipBreakages=_.t("web_pip_minimize_breakages");O.showEqualizer=_.t("web_enable_playlist_video_lockup_equalizer");O.watchColorUpdate=_.t("kevlar_watch_color_update");O.actionMap={};return O};
_.c(EU,_.a);_.b=EU.prototype;_.b.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"}}}};
_.b.computeEditableClass=function(O){return O&&O.menu?"editable":""};
_.b.computeSelected=function(O){return!(O==null||!O.selected)};
_.b.computeUseColorPalette=function(O){return!!((O==null?0:O.lightColorPalette)&&(O==null?0:O.darkColorPalette))};
_.b.computeLargerPlaylistThumbs=function(O,x){return _.t("web_enable_playlist_bigger_thumbnails")&&!x};
_.b.computeShowPlayIcon=function(O){return!!O&&_.t("web_use_play_icon_for_playlist_panel_video_renderer")};
_.b.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.b.onYtServiceRequestSent=function(O,x){x.endpoint&&this.isHideEnclosingAction(x.endpoint)&&!this.selected&&X02(_.lX(),this.data.videoId)};
_.b.isHideEnclosingAction=function(O){var x=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",O);O=this.get("likeEndpoint.status",O)==="INDIFFERENT";return x||O};
_.b.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.b.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Dy.Object.defineProperties(EU.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.t("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.t("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 O;return!!(this.withinMiniplayer&&((O=this.data)==null?0:O.actionButtons))}}});
EU.prototype.onYtServiceRequestSent=EU.prototype.onYtServiceRequestSent;EU.prototype.canReorderChanged=EU.prototype.canReorderChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],EU.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Lj),_.v("design:type",Object)],EU.prototype,"ytdLockupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],EU.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"withinMiniplayer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],EU.prototype,"minimizePipBreakages",void 0);_.B([_.R({computed:"computeSelected(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"selected",void 0);
_.B([_.R({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"useColorPalette",void 0);_.B([_.R({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"largerPlaylistThumbs",void 0);_.B([_.R(),_.v("design:type",Object)],EU.prototype,"showEqualizer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"canReorder",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"touchPersistentDragHandle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"handleIsHovered",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],EU.prototype,"watchColorUpdate",void 0);_.B([_.R(),_.v("design:type",String),_.v("design:paramtypes",[])],EU.prototype,"reorderIcon",null);
_.B([_.R({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.v("design:type",Boolean)],EU.prototype,"showPlayIcon",void 0);_.B([_.R(),_.v("design:type",String),_.v("design:paramtypes",[])],EU.prototype,"playIcon",null);_.B([_.p("largerPlaylistThumbs"),_.v("design:type",Number),_.v("design:paramtypes",[])],EU.prototype,"thumbnailWidth",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],EU.prototype,"showActionButtons",null);
_.B([_.G1("canReorder"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],EU.prototype,"canReorderChanged",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],EU.prototype,"onYtServiceRequestSent",null);_.B([_.H({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],EU);
_.n(EU,"ytd-playlist-panel-video-renderer",function(){if(FoL!==void 0)return FoL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return FoL=O},{mode:2});var t$=function(){return _.a.apply(this,arguments)||this};
_.c(t$,_.a);t$.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],t$.prototype,"data",void 0);_.B([_.H({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],t$);
_.n(t$,"ytd-playlist-panel-supported-items",function(){if(GHQ!==void 0)return GHQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return GHQ=
O},{mode:1});lcN=!0;viN("\\P{N}");var iXL;var oyw=_.CZ("END_OF_PLAYLIST",void 0,"End of playlist"),y7e=_.CZ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),q2=function(){var O=_.a.apply(this,arguments)||this;O.minimizePipBreakages=_.t("web_pip_minimize_breakages");O.hideHeaderText=!1;O.useColorPalette=!1;O.collapsed=!1;O.collapsedPreServerOverride="not_tracked";O.isHovered=!1;O.modernPanels=_.t("kevlar_watch_modern_panels");O.expandLabel=_.CZ("MINIPLAYER_EXPAND_LABEL");O.collapseLabel=_.CZ("MINIPLAYER_COLLAPSE_LABEL");
O.isFloating=!1;O.metaPanel=!1;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};O.currentIndex=void 0;return O};
_.c(q2,_.a);_.b=q2.prototype;
_.b.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"}}}};
_.b.created=function(){this.scrollThrottle=new _.QI(this.onThrottledScroll,1E3,this)};
_.b.onMouseEnter=function(){this.isHovered=!0};
_.b.onMouseLeave=function(){this.isHovered=!1};
_.b.computeOverflowMenuData=function(O){return O&&O.menu?O.menu:null};
_.b.computeCollapsible=function(O){return!O};
_.b.computeHasPlaylistButtons=function(O){return!(!O||!O.playlistButtons)};
_.b.computeHasSeparateSaveButton=function(O){return!(!O||!O.saveButton)};
_.b.computeHasToolbarButton=function(O,x){return!(!O||!(x||O.saveButton||O.menu))};
_.b.computePlaylistType=function(O){if(O&&O.playlistId)return O.playlistId.substring(0,4)};
_.b.computeCanReorder=function(O){return O?O.playlistId&&O.playlistId.startsWith("TLPQ")?!0:!!O.isEditable&&!O.isInfinite:!1};
_.b.attached=function(){var O=this;try{_.GG().resolve(_.gx).setPlaylistComponent(this.hostElement)}catch(x){if(_.t("kevlar_park_on_playlist_token_killswitch"))throw x;_.O2().parkOrScheduleJob(function(){_.GG().resolve(_.gx).setPlaylistComponent(O.hostElement)},2,"ci")}_.f1(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.b.detached=function(){_.Js(this.hostElement)};
_.b.computeTrailingIcon=function(O,x,e){return e?x?"yt-icons:collapse":"yt-icons:close":x?"yt-icons:expand":_.t("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.b.computeIndexMessage=function(O,x){return eaw(O+1)+" / "+eaw(x)};
_.b.onRenderStamperFinished=function(){if(this.scrollForStampDom){var O=!0;this.isHovered&&(O=!1);if(this.collapsed||this.hidden)O=!1;O&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.b.collapseChanged=function(){var O=this;this.collapsed||(_.e1(this.ytTaskEmitterBehavior.getTaskManager(),function(){O.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.b.hiddenChanged=function(){var O=this;this.hidden||_.e1(this.ytTaskEmitterBehavior.getTaskManager(),function(){O.scrollToCurrentVideo()})};
_.b.setupReordering=function(){var O=_.$U(this.hostElement).querySelector("#items");vPR?_.rrd(this.ytReorderableBehavior,O,O,"playlist-drag-handle"):_.rrd(this.ytReorderableBehavior,O,O)};
_.b.scrollToCurrentVideo=function(){var O=this;_.vn.addJob(function(){var x=_.$U(O.hostElement).querySelector("#items");if(x){x.style.setProperty("padding-bottom","");var e=_.$U(O.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(e){x=e.parentElement||_.PS(document);var l=x||_.PS(document);var C=_.vX(e),Q=_.vX(l),L=_.UMT(l);if(l==_.PS(document)){var k=C.x-l.scrollLeft;C=C.y-l.scrollTop}else k=C.x-Q.x-L.left,C=C.y-Q.y-L.top;e=Iuz(e);Q=l.clientHeight-
e.height;L=l.scrollLeft;var M=l.scrollTop;L+=k-(l.clientWidth-e.width)/2;l=new _.dc(L,M+(C-Q/2));x.scrollLeft=l.x;x.scrollTop=l.y}}},8)};
_.b.dataChanged=function(){var O=this;_.zuF(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.A_(this,function(){_.zl(O.ytTaskEmitterBehavior.getTaskManager(),function(){O.ytRendererBehavior.markDirty();O.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.b.onFullBleedPlayerChanged=function(){_.t("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.b.onFullscreenChanged=function(){_.t("web_watch_imax_theater_mode")||_.t("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.b.updateNowPlayingOverlay=function(){_.t("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.b.onPlaylistLockupNowPlaying=function(O,x){x&&(this.activeNowPlayingRenderer=x);this.updateNowPlayingOverlay()};
_.b.onScroll=function(){this.scrollThrottle.fire()};
_.b.onThrottledScroll=function(){var O=this;_.zl(this.ytTaskEmitterBehavior.getTaskManager(),function(){O.ytRendererBehavior.markDirty()})};
_.b.onToggleExpanded=function(O){!this.collapsible||O&&(_.uK(O).tagName==="A"||_.uk(_.n3(O),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.b.setCollapsed=function(O){this.collapsible&&(this.collapsed=O,_.jh(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.b.handleCollapsedFromData=function(O){if(O){var x=O.playlistPanelCollapseState;x==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||x==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),x=x==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==x&&this.setCollapsed(x)):this.currentPlaylistId!==O.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(x=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==x&&this.setCollapsed(x),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=O.playlistId}};
_.b.handleDrop=function(O){var x=O.currDragItem;O=x.data.playlistSetVideoId;var e=_.d7(x.parentNode.childNodes,x),l=void 0;e>0&&(l=x.parentNode.childNodes[e-1].data.playlistSetVideoId);x=_.lX();if(x.responsePlaylistData&&x.responsePlaylistData.contents){var C=gww(O,x.responsePlaylistData);x.responsePlaylistData=(0,_.HX.unsafeClone)(x.responsePlaylistData);d$L(x.responsePlaylistData.contents,C,e);x.queueProxy?fhd(x.queueProxy,C,e,O,l):x.playlistProxy&&fhd(x.playlistProxy,C,e,O,l);_.CL(x,_.Qp(x,x.response?
x.response.autoplayRenderer:void 0))}};
_.b.handleDarkModeChange=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O)};
_.b.colorPaletteChanged=function(){var O,x=((O=this.data)==null?void 0:O.contents)||[],e;O=_.T(x);for(x=O.next();!x.done;x=O.next()){x=x.value;var l=void 0;if((l=x.playlistPanelVideoRenderer)==null?0:l.selected){O=x.playlistPanelVideoRenderer;l=x=void 0;(e=this.isDarkTheme?(x=O)==null?void 0:x.darkColorPalette:(l=O)==null?void 0:l.lightColorPalette)&&_.Zl(this.hostElement,e);break}}this.useColorPalette=!!e};
_.Dy.Object.defineProperties(q2.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.moveThreeDotsMenuToMainHeader)&&_.t("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var O=_.GG().resolve(_.D0(_.gx)),x;if(((x=this.data)==null?0:x.contents)&&(O==null?0:O.hasAutoplayData())){var e;if(((e=this.playlistLoopStateEntity)==null?void 0:e.state)==="PLAYLIST_LOOP_STATE_ONE"){if(O=this.data.currentIndex,O!==void 0){var l,C;var Q=(l=this.data.contents[O])==null?void 0:(C=l.playlistPanelVideoRenderer)==null?void 0:C.title}}else{var L,k=(L=_.q(O.getAutoplayEndpoint(),_.Hq))==null?void 0:L.videoId,M,G;Q=(M=this.data.contents.find(function(X){var y;
return((y=X.playlistPanelVideoRenderer)==null?void 0:y.videoId)===k}))==null?void 0:(G=M.playlistPanelVideoRenderer)==null?void 0:G.title}return Q}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)!=null&&O.nextVideoLabel?this.nextVideoTitle?_.db(this.data.nextVideoLabel)+":":oyw:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.data)==null?0:O.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.t("web_mix_long_byline_from_data"))return _.KA(y7e);var x;return(x=this.data)==null?void 0:x.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.playlistButtons)==null?void 0:(e=x.menuRenderer)==null?void 0:e.topLevelButtons;if(l)for(O=_.T(l),x=O.next();!x.done;x=O.next())if(x=x.value,x.playlistLoopButtonRenderer)return x.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var O;return!!(this.collapsed&&((O=this.data)==null?0:O.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.t("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
q2.prototype.colorPaletteChanged=q2.prototype.colorPaletteChanged;q2.prototype.onPlaylistLockupNowPlaying=q2.prototype.onPlaylistLockupNowPlaying;q2.prototype.updateNowPlayingOverlay=q2.prototype.updateNowPlayingOverlay;q2.prototype.onFullscreenChanged=q2.prototype.onFullscreenChanged;q2.prototype.onFullBleedPlayerChanged=q2.prototype.onFullBleedPlayerChanged;q2.prototype.dataChanged=q2.prototype.dataChanged;q2.prototype.hiddenChanged=q2.prototype.hiddenChanged;q2.prototype.collapseChanged=q2.prototype.collapseChanged;
q2.prototype.onRenderStamperFinished=q2.prototype.onRenderStamperFinished;q2.prototype.onMouseLeave=q2.prototype.onMouseLeave;q2.prototype.onMouseEnter=q2.prototype.onMouseEnter;_.B([_.V(_.Wg),_.v("design:type",Object)],q2.prototype,"ironResizableBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(W$R.YtPlaylistPanelBehavior),_.v("design:type",Object)],q2.prototype,"ytPlaylistPanelBehavior",void 0);_.B([_.V(_.GT.YtTaskEmitterBehavior),_.v("design:type",Object)],q2.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.V(_.HJd),_.v("design:type",Object)],q2.prototype,"ytReorderableBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],q2.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],q2.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],q2.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],q2.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],q2.prototype,"autoplayData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],q2.prototype,"withinMiniplayer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"minimizePipBreakages",void 0);
_.B([_.R({computed:"setMenuData_(data)"}),_.v("design:type",Object)],q2.prototype,"menuRendererData",void 0);_.B([_.R({computed:"computeOverflowMenuData(data)"}),_.v("design:type",Object)],q2.prototype,"overflowMenuDataTopRow",void 0);_.B([_.R({computed:"computeOverflowMenuData(data)"}),_.v("design:type",Object)],q2.prototype,"overflowMenuData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"hideHeaderText",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"useColorPalette",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.v("design:type",Boolean)],q2.prototype,"collapsible",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"collapsed",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],q2.prototype,"hidden",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.v("design:type",Boolean)],q2.prototype,"hasPlaylistButtons",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.v("design:type",Boolean)],q2.prototype,"hasSeparateSaveButton",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.v("design:type",Boolean)],q2.prototype,"hasToolbar",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.v("design:type",String)],q2.prototype,"playlistType",void 0);_.B([_.R(),_.v("design:type",Object)],q2.prototype,"isHovered",void 0);_.B([_.R({selectorArgs:["playlistLoopStateEntityKey"],selector:_.fd.playlistLoopStateEntitySelector}),_.v("design:type",Object)],q2.prototype,"playlistLoopStateEntity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"modernPanels",void 0);
_.B([_.R({value:56}),_.v("design:type",Number)],q2.prototype,"scrollMargin",void 0);_.B([_.R({computed:"computeCanReorder(data)"}),_.v("design:type",Boolean)],q2.prototype,"canReorder",void 0);_.B([_.R(),_.v("design:type",Object)],q2.prototype,"expandLabel",void 0);_.B([_.R(),_.v("design:type",Object)],q2.prototype,"collapseLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"isFloating",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q2.prototype,"metaPanel",void 0);_.B([_.R({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.v("design:type",String)],q2.prototype,"trailingIcon",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],q2.prototype,"isDarkTheme",void 0);_.B([_.R({selector:_.P1}),_.v("design:type",Boolean)],q2.prototype,"miniplayerIsActive",void 0);_.B([_.R({selector:function(O){return O.watch.playerState}}),
_.v("design:type",Number)],q2.prototype,"playerState",void 0);_.B([_.R({selector:_.VI}),_.v("design:type",Boolean)],q2.prototype,"isFullscreen",void 0);_.B([_.R({selector:_.I2}),_.v("design:type",Boolean)],q2.prototype,"isTheaterMode",void 0);_.B([_.R(),_.v("design:type",Object)],q2.prototype,"activeNowPlayingRenderer",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],q2.prototype,"moveThreeDotMenuToTopRow",null);
_.B([_.p("data","autoplayData","playlistLoopStateEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],q2.prototype,"nextVideoTitle",null);_.B([_.p("data","nextVideoTitle"),_.v("design:type",String),_.v("design:paramtypes",[])],q2.prototype,"nextVideoLabel",null);_.B([_.p("collapsed"),_.v("design:type",String),_.v("design:paramtypes",[])],q2.prototype,"buttonAriaLabel",null);
_.B([_.p("data","playlistId","longBylineText"),_.v("design:type",Object),_.v("design:paramtypes",[])],q2.prototype,"mixLongByLine",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],q2.prototype,"playlistLoopStateEntityKey",null);_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"onMouseEnter",null);
_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"onMouseLeave",null);_.B([_.R({reflectToAttribute:!0}),_.p("data","collapsed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],q2.prototype,"showNextVideoHeader",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"onRenderStamperFinished",null);
_.B([_.T1("collapsed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"collapseChanged",null);_.B([_.T1("hidden"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"hiddenChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"dataChanged",null);
_.B([_.p("isTheaterMode","isFullscreen"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],q2.prototype,"isFullBleedPlayer",null);_.B([_.T1("isTheaterMode","isFullscreen"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"onFullBleedPlayerChanged",null);_.B([_.T1("isFullscreen"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"onFullscreenChanged",null);
_.B([_.T1("playerState","miniplayerIsActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"updateNowPlayingOverlay",null);_.B([_.bH("yt-playlist-lockup-now-playing-active"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],q2.prototype,"onPlaylistLockupNowPlaying",null);
_.B([_.T1("data","isDarkTheme"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q2.prototype,"colorPaletteChanged",null);_.B([_.H({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],q2);
_.ZUL=_.NQ()(q2,"ytd-playlist-panel-renderer",function(){if(DTL===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);DTL=O}O=DTL;return O},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var EyL;var P3=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_button_rework");return O};
_.c(P3,_.a);P3.prototype.computeShouldButtonBeVertical=function(O,x){return O||x};
P3.prototype.onYtServiceRequestSent=function(O,x){(O=_.q(x.endpoint,_.I$))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Dc("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:O.status})):this.handleLikeEndpoint(O))};
P3.prototype.computelikeStatusEntityKey=function(O){return O==null?void 0:O.likeStatusEntityKey};
P3.prototype.handleLikeEndpoint=function(O){O.status==="LIKE"?this.JSC$17249_ytdDislikeToggleButtonRenderer.toggle(!1):O.status==="DISLIKE"?this.JSC$17249_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17249_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17249_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Dy.Object.defineProperties(P3.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var O;return bcL(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(O=this.likeStatusEntity)==null?void 0:O.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var O;if(this.data&&((O=this.data)==null||!O.hideDislikeButton)){var x;return bcL(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(x=this.likeStatusEntity)==null?void 0:x.likeStatus)}}}});
P3.prototype.onYtServiceRequestSent=P3.prototype.onYtServiceRequestSent;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],P3.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],P3.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],P3.prototype,"vertical",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],P3.prototype,"textTransform",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],P3.prototype,"useShortsIcon",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],P3.prototype,"underIconLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],P3.prototype,"modern",void 0);_.B([_.R({value:"left"}),_.v("design:type",String)],P3.prototype,"buttonTooltipPosition",void 0);
_.B([_.R(),_.v("design:type",Object)],P3.prototype,"overrides",void 0);_.B([_.kX("#like-button"),_.v("design:type",Object)],P3.prototype,"JSC$17249_ytdLikeToggleButtonRenderer",void 0);_.B([_.kX("#dislike-button"),_.v("design:type",Object)],P3.prototype,"JSC$17249_ytdDislikeToggleButtonRenderer",void 0);_.B([_.p("data","likeStatusEntity.likeStatus","useShortsIcon"),_.v("design:type",Object),_.v("design:paramtypes",[])],P3.prototype,"likeButton",null);
_.B([_.p("data","likeStatusEntity.likeStatus","useShortsIcon"),_.v("design:type",Object),_.v("design:paramtypes",[])],P3.prototype,"dislikeButton",null);_.B([_.R({computed:"computelikeStatusEntityKey(data)"}),_.v("design:type",String)],P3.prototype,"likeStatusEntityKey",void 0);_.B([_.R({selectorArgs:["likeStatusEntityKey"],selector:R2}),_.v("design:type",Object)],P3.prototype,"likeStatusEntity",void 0);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],P3.prototype,"onYtServiceRequestSent",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],P3);
var tEL=_.NQ()(P3,"ytd-like-button-renderer",function(){if(EyL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);EyL=O}O=EyL;return O},{mode:1});_.qhY={};
_.qhY.YtConditionalRendererBehavior=[_.S.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(O,x){var e=this,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:if(!x)return e.hidden=!0,e.showSpinner=!1,Q.return();if((l=O)==null?0:(C=l.visibilityCondition)==null?0:C.mode)switch(O.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return Q.jumpTo(5);default:return Q.jumpTo(6)}e.showSpinner=
!1;e.hidden=!0;return Q.yield(e.shouldShow_(O),4);case 4:e.hidden=!Q.yieldResult;Q.jumpTo(0);break;case 5:return Q.yield(e.shouldShow_(O),8);case 8:e.showSpinner=Q.yieldResult;e.hidden=!1;Q.jumpTo(0);break;case 6:return e.showSpinner=!1,Q.yield(e.shouldShow_(O),9);case 9:e.hidden=!Q.yieldResult,_.Ra(Q)}})},
shouldShow_:function(O){return O&&O.supportedDatas&&O.supportedDatas.rendererVisibilityConditionData&&O.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(O.supportedDatas.rendererVisibilityConditionData.showIf):O&&O.visibilityCondition&&O.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(O.visibilityCondition.showIf):O&&O.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(O.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(O){switch(O){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(O){switch(O){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var O=_.Sh(this.hostElement,"yt-get-mdx-status");return O.length==1&&O[0].connected},
isLocationPermissionGranted_:function(){var O;return _.A(function(x){return x.nextAddress==1?navigator.permissions?x.yield(navigator.permissions.query({name:"geolocation"}),3):x.jumpTo(2):x.nextAddress!=2?(O=x.yieldResult,x.return(Promise.resolve(O.state==="granted"))):x.return(Promise.resolve(!1))})}}];var PIu=Sts("yt-icon",{callbackProps:["onKeydown"]}),c7L=_.t("kevlar_use_wil_icons")?_.K(function(O){var x=O.icon;var e=O.active;var l=O.className;var C=O.style;var Q=O.dataSelected;var L=O.dataDisabled;var k=O.role;var M=O.themeOverride;var G=O.animateIcon;var X=O.ariaHidden;var y=O.ariaExpanded;var Z=O.ariaLabel;var E=O.tabindex;var P=O.id;var U=O.iconFilter;var W=O.gradientColor;var z=O.onKeydown;var r=function(){var Y=x==null?void 0:x(),J=null,O8=void 0;Y&&(Y=DFF(Y),Y=qUr(Y),Y.length&&(J=Y[1],
O8=Y[0]));return{iconName:J,iconSetName:O8}},f=function(){return Gv$(r().iconName,e==null?void 0:e(),void 0,void 0,r().iconSetName,_.GG().resolve(_.ef))},u=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:U==null?void 0:U(),iconColor:W==null?void 0:W()}};
return _.D(_.F,{cond:G,then:function(){return _.D(PIu,{icon:x,active:e,className:l,style:C,dataSelected:Q,dataDisabled:L,role:k,themeOverride:M,ariaHidden:X,ariaExpanded:y,ariaLabel:Z,tabindex:E,id:P,iconFilter:U,gradientColor:W,onKeydown:z})},
else:function(){return _.D(_.F,{cond:f,then:function(Y){return _.D("span",{class:_.xz("ytIconWrapperHost",l),role:k,"aria-label":Z,"aria-hidden":X,tabindex:function(){return isNaN(Number(E==null?void 0:E()))?void 0:Number(E==null?void 0:E())},
id:P,style:C,"on:keydown":_.lk(function(J){return void(z==null?void 0:z(J))})},_.D(fF$,{data:Y,
options:u}))}})}})},"cg"):PIu;var IsL=function(O){var x=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];E0r();_.MB("ytglobal.ytUtilActivityCallback_",function(){_.jh(O,"yt-user-activity")});
new Mu(function(){return x.JSC$17265_onMouseMove});
document.addEventListener("scroll",function(){return x.onScroll});
window.addEventListener("resize",function(){return x.onResize})},VEL=function(O,x,e){x in O.eventJobIds||(e=_.Xu().addLowPriorityJob(function(){_.DP();
delete O.eventJobIds[x]},e),O.eventJobIds[x]=e)};
IsL.prototype.onScroll=function(O){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):O.target===document&&VEL(this,"scroll",200)};
IsL.prototype.onResize=function(){VEL(this,"resize",200)};
IsL.prototype.JSC$17265_onMouseMove=function(){VEL(this,"mousemove",100)};
_.yl=function(O){O.scrollEventsToIgnore+=1;O.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){O.scrollEventsToIgnore--},500))};var pwu=function(O){this.element=O;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
pwu.prototype.showFeedbackDialog=function(O,x,e,l){var C=Rz4();if(!C)return!1;var Q=y1r();Q.productId=C;x&&(Q.flow="submit",Q.report={description:x});e&&(Rz4()==="59"?Q.callback=_.$K(function(){_.uU("userFeedbackEvent",{});e()}):Q.callback=_.$K(e));
Q.bucket=l||_.wz("GOOGLE_FEEDBACK_BUCKET","Other");UT4(Q);O=asT(this,"GFEEDBACK",O);try{_.eU$(Q,O)}catch(L){return _.jS(L),!1}return!0};
pwu.prototype.showHelpDialog=function(O,x,e){var l=this,C=Rz4();if(!C)return!1;var Q={helpCenterPath:"/youtube",productData:asT(this,"GUIDED_HELP",e)};UT4(Q);var L=y1r();L.context=O||Q.productData.context||"default";L.defaultHelpArticleId=x;L.enableSendFeedback=!0;(_.i8("gapi.load")||function(k,M){return M()})("client",function(){try{var k=lGT(C,Q);
if(_.t("web_always_load_chat_support")&&!l.chatSupportLoaded)try{k.JSC$9970_loadChatSupport(L),l.chatSupportLoaded=!0}catch(M){}k.startHelp(L)}catch(M){_.jS(M)}})};
var Rz4=function(){var O=_.wz("GOOGLE_FEEDBACK_PRODUCT_ID");O||_.jS(Error("ni"));return O},UT4=function(O){O&&(O.locale=_.t("kevlar_help_use_locale")?_.wz("INNERTUBE_CONTEXT_HL","en"):_.wz("HTML_LANG","en"))},asT=function(O,x,e){var l=O.productData;
delete l.origin;l.device=_.E8();var C;a:{if(C=document.createElement("canvas")){var Q=C.getContext("experimental-webgl",{stencil:!0});if(Q){var L=Q.getExtension("WEBGL_debug_renderer_info");if(L){C=Q.getParameter(L.UNMASKED_RENDERER_WEBGL);break a}}if(Q=C.getContext("webgl")){C=Q.getParameter(Q.RENDERER);break a}}C=null}l.gpu=C;l.isSDC=!!_.wz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(C=_.wz("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.HX.extend(l,C);_.XQr(x,l);_.oYs(l);(O=_.jh(O.element,"yt-get-autonav-pause-debug-state"))&&
O.length&&(l.autonav_pause_state=O[0]);O=_.Rn();l.browser_resolution=O.width+"\u00d7"+O.height+"@"+(window.devicePixelRatio||1)+"x";e&&_.HX.extend(l,e);return l};
pwu.prototype.resetProductData=function(){this.productData={}};var mTu=function(O){this.feedbackManager=new pwu(O)};
mTu.prototype.showFeedbackDialog=function(O,x,e,l){return this.feedbackManager.showFeedbackDialog(O,x,e,l)};
mTu.prototype.showHelpDialog=function(O,x,e){return this.feedbackManager.showHelpDialog(O,x,e)};var sS4=function(){this.baseUrl="";this.aTag=document.createElement("a")},nfF=function(O,x,e){e=e===void 0?{}:e;
e.pbj||(e.pbj=1);e=_.lc7(x,e);O.baseUrl&&e&&!_.TG(e)[1]&&!_.Lb(e)&&(x=O.baseUrl,LV(x,"/")&&(x=x.slice(0,-1)),_.br(e,"/")&&(e=e.slice(1)),e=x+"/"+e);J7(O.aTag,_.nU(e||""));return O.aTag.href};
sS4.prototype.fetchData=function(O){return _.kWn(O)};
sS4.prototype.postData=function(O,x){var e={method:"POST"};if(x){for(var l=_.T(Object.keys(x)),C=l.next();!C.done;C=l.next()){C=C.value;var Q=x[C];_.w7(Q)&&(x[C]=JSON.stringify(Q))}e.postParams=x}return _.kWn(O,e)};
_.uXp=function(O,x,e,l,C){O=nfF(O,x,e);if(!O)throw l=Error("oi"),Object.assign(l,{params:x}),l;return _.kWn(O,C,l)};
sS4.prototype.requestDataForServiceEndpoint=function(O,x){if(_.q(O,_.p_7))return this.fetchData("/getAccountSwitcherEndpoint");x=x||{};var e=_.q(O,LrD);e?x.se=e.base64EncodedServiceEndpoint:x.sej=JSON.stringify(O);(e=_.Pq())&&_.t("enable_service_ajax_csn")&&(x.csn=e);x.theme=_.Fo();_.q(O,ITV)&&_.wz("DELEGATION_CONTEXT")&&(x.delegation_context=JSON.stringify(_.wz("DELEGATION_CONTEXT")));e=null;for(var l in O)if(LV(l,"Endpoint")||LV(l,"Command")){e=l;break}if(!e){var C=Error("pi");Object.assign(C,{params:O});
_.O5V(C,"WARNING");return new _.If(function(L,k){k(C)})}l={name:e};
var Q;(e=(Q=_.q(O,_.xm))==null?void 0:Q.signal)&&(l.signal=e);(Q=_.Cb(window.location.href))&&Q.internalcountrycode&&(l.internalcountrycode=Q.internalcountrycode);Q="/service_ajax";_.t("debug_forward_web_query_parameters")&&(Q=_.XUL(Q,window.location.search));Q=_.bu(Q,l);O.clickTrackingParams&&_.uh(Q,{itct:O.clickTrackingParams});return this.postData(Q,x)};_.Wow=new _.iR("GFEEDBACK_TOKEN");var hz$;var zze;var r7w;var HUe;var c3=function(){var O=_.a.apply(this,arguments)||this;O.compact=!1;O.dismissButtonDisabled=!1;return O};
_.c(c3,_.a);c3.prototype.computeHasIcon_=function(O){return!!O};
c3.prototype.isSignInIcon_=function(O){return O=="yt-icons:prompted_sign_in"};
c3.prototype.onDismissButtonClick=function(){var O=this,x=this.data.disableOnClick,e,l=(e=this.data.dismissButton)==null?void 0:e.buttonRenderer;x&&!this.dismissButtonDisabled&&l&&setTimeout(function(){O.dismissButtonDisabled=!0},0)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.qhY.YtConditionalRendererBehavior),_.v("design:type",Object)],c3.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c3.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",Object)],c3.prototype,"icon_",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.v("design:type",Boolean)],c3.prototype,"hasIcon_",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.v("design:type",Boolean)],c3.prototype,"signInIcon_",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],c3.prototype,"compact",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],c3.prototype,"dismissButtonDisabled",void 0);
_.B([_.Va({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],c3);
_.n(c3,"yt-player-error-message-renderer",function(){if(HUe===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;r7w===void 0&&(r7w=document.createElement("template"));var l=r7w;e.call(x,l.content.cloneNode(!0),O.content.firstChild);HUe=O}O=HUe;return O},{mode:2});var Kop;var dTL;var IW=function(){return _.a.apply(this,arguments)||this};
_.c(IW,_.a);IW.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IW.prototype.computeIcon_=function(O){return O?"yt-icons:"+O.iconType.toLowerCase():"error_outline"};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],IW.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",Object)],IW.prototype,"icon_",void 0);_.B([_.Va({is:"yt-player-kav-renderer",disableElementRegistration:!0})],IW);
_.n(IW,"yt-player-kav-renderer",function(){if(dTL===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;Kop===void 0&&(Kop=document.createElement("template"));var l=Kop;e.call(x,l.content.cloneNode(!0),O.content.firstChild);dTL=O}O=dTL;return O},{mode:2});var tLr=_.zo(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.wP(_.K(function(O){var x=_.Q5("div"),e=_.T(_.Iw(0,void 0,"jxh75d")),l=e.next().value,C=e.next().value;e=_.T(_.Iw(null,void 0,"F5Zm8"));var Q=e.next().value,L=e.next().value;_.YK(function(){qI8(x.value,C,L);x.value.scrollIntoView()});
e=Pdi.bind(null,O.data,l);_.D9("resize",function(){var k=Q();if(l()===1&&k!==null){var M;(M=window.grecaptcha)==null||M.reset(k)}});
return _.D("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.D("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.D("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var k,M;return(k=O.data().accessibility)==null?void 0:(M=k.accessibilityData)==null?void 0:M.label}),_.D(_.TT,{text:e,
className:_.xz("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.D("div",{el:x,class:"ytwPlayerCaptchaViewModelGridItem"})))},"dg"),"yt-player-captcha-view-model",{props:{data:_.vs}});var c1m=!1;_.ny4=_.K(function(O){var x=O.data;return _.D("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.D(_.F,{cond:function(){return x().icon},
then:function(e){return _.D("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.D(_.n_,{data:e,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.D(_.F,{cond:function(){return x().title},
then:function(e){return _.D("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.D(_.TT,{text:e}))}}),_.D(_.F,{cond:function(){return x().description},
then:function(e){return _.D("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.D(_.TT,{text:e}))}}),_.D(_.MR,{data:function(){return x().primaryButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"interstitialViewModelFlexItem"})}}),_.D(_.MR,{data:function(){return x().secondaryButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"interstitialViewModelFlexItem"})}}))},"eg");
_.ny4.idomCompat=!0;var uap=_.K(function(O){var x=O.data;_.UM();return _.D("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.D("div",{class:"playerInterstitialRendererScrim"},_.D(_.MR,{data:function(){return x().content}},{interstitialViewModel:_.ny4})))},"fg");
uap.idomCompat=!0;_.wP(uap,"yt-player-interstitial-renderer",{props:{data:_.Ld}});var VV=function(){var O=_.a.apply(this,arguments)||this;O.noBackground=!1;O.compact=!1;O.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return O};
_.c(VV,_.a);VV.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"}}}};
VV.prototype.onUpdatePlayerErrorMessageCommand_=function(O){if(_.q(O,qJd)){var x;if(O=(x=_.q(O,qJd))==null?void 0:x.newPlayerErrorMessageRenderer)this.data=O}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],VV.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],VV.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],VV.prototype,"status",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VV.prototype,"noBackground",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VV.prototype,"compact",void 0);_.B([_.Va({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],VV);
var Yhh=_.NQ()(VV,"yt-playability-error-supported-renderers",function(){if(zze===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;hz$===void 0&&(hz$=document.createElement("template"));var l=hz$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);zze=O}O=zze;return O},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Bk4=Sts("ytd-button-renderer");var IRn=void 0,pQN=void 0;var aRL=new YCT;var vyO=function(O){this.store=O;this.y5n=new _.f0L},Ggs=function(O,x,e){var l,C;
if(!(C=((l=x.playabilityStatus)==null?void 0:l.status)!=="OK")){O=O.store;var Q;C=x.offlineState&&((Q=x.videoDetails)==null?0:Q.videoId)?_.t("enable_pl_r_c_cd")?Y2L(O.getState().entities,x.videoDetails.videoId):!!Xtw(O.getState().entities,x.videoDetails.videoId):!1}if(C)return!0;C=zaL(x);if(C===1){if(_.t("ab_v_vid_sig")){var L,k=(L=x.videoDetails)==null?void 0:L.videoId;if(!k||!e||k!==e){var M;x=new _.ry("282054944_vid",{rl1:e,nZl:(M=x.videoDetails)==null?void 0:M.videoId});_.BH(x)}}return!0}h4N=
0;var G,X;M=(k=x.auxiliaryUi)==null?void 0:(G=k.messageRenderers)==null?void 0:(X=G.bkaEnforcementMessageViewModel)==null?void 0:X.displayType;if(C!==3&&(M==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||M==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;M={reason:_.J3(_.CZ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.t("ks_something_wrong_learn_more")?JKN("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.J3(_.CZ("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:_.J3("282054944")};fs4(x,{playerErrorMessageRenderer:M});return!1},FkN=function(O,x){if(gRr(x)){_.lK(1,!0);
var e=(e=gRr(x))&&_.VLs()?e:void 0;e?(fs4(x,{enforcementMessageViewModel:e}),O.y5n.increment("IN_PLAYER"),_.lK(5)):(O.y5n.increment("SKIP_DISPLAY"),_.lK(2))}},fs4=function(O,x){O.playabilityStatus=Object.assign({},O.playabilityStatus,{status:"ERROR",
errorScreen:x});O.videoDetails=void 0};
vyO.prototype.handleResponse=function(O,x){if(O.playabilityStatus){var e,l,C,Q=(x==null?void 0:(e=x.innerTubeRequest)==null?void 0:e.videoId)||(x==null?void 0:(l=x.innerTubeRequest)==null?void 0:(C=l.playerRequest)==null?void 0:C.videoId);Ggs(this,O,Q)&&FkN(this,O)}};
vyO[Fc]=[fM];var Msm=new _.iR("ADBLOCK_DETECTION_SERVICE_TOKEN");var hi=function(O){this.vtw=O};
hi.prototype.bindInnertubeChallengeFetcher=function(O){this.vtw.bicf(O)};
hi.prototype.registerChallengeFetchedCallback=function(O){this.vtw.bcr(O)};
hi.prototype.getLatestChallengeResponse=function(){return this.vtw.blc()};var J7h;J7h=_.zo(["https://static.doubleclick.net/instream/ad_status.js"]);_.wwY=_.on(J7h);var gyQ;_.pW=function(O,x,e){var l=this;this.network=O;this.options=x;this.networkStatusManager=e;this.dN=null;if(x.useBotguardEverywhere){var C=new _.OA;this.dN=C.promise;_.CV.ytAtRC&&_.FQ(_.vn,function(){var Q,L;return _.A(function(k){if(k.nextAddress==1){if(!_.CV.ytAtRC)return k.return();Q=Shp(null);return k.yield(l.ev(Q),2)}L=k.yieldResult;_.CV.ytAtRC&&_.CV.ytAtRC(JSON.stringify(L));_.Ra(k)})});
nYm().then(function(Q){var L,k,M,G;return _.A(function(X){if(X.nextAddress==1)return Q.bindInnertubeChallengeFetcher(function(y){return l.ev(Shp(y))}),X.yield(fK$(),2);
L=X.yieldResult;k=Q.getLatestChallengeResponse();M=k.challenge;if(!M)throw Error("qi");G={challenge:M,kr:sM(M),vm:L,bgChallenge:new a$};C.resolve(G);Q.registerChallengeFetchedCallback(function(y){y=y.challenge;if(!y)throw Error("ri");y={challenge:y,kr:sM(y),vm:L,bgChallenge:new a$};l.dN=Promise.resolve(y)});
_.Ra(X)})})}else x.preload&&jST(this,new Promise(function(Q){_.zl(_.vn,function(){Q(NkY(l))},0)}))};
gyQ=function(O){var x={preload:!0,useBotguardEverywhere:!0},e=!1;if(typeof x==="boolean")var l={preload:x};else typeof x==="undefined"?l={preload:!0}:(l=x,e=!!x.xF3);x=e?void 0:new _.eb;_.pW.instance=new _.pW(O,l,x);return _.pW.instance};
_.pW.prototype.voU=function(){var O=this;return _.A(function(x){return x.nextAddress==1?x.yield(Promise.race([O.dN,null]),2):x.return(!!x.yieldResult)})};
_.pW.prototype.xUy=function(O,x,e){var l=this,C,Q,L;return _.A(function(k){l.dN===null&&jST(l,NkY(l));C=!1;Q={};L=function(){var M,G,X;return _.A(function(y){switch(y.nextAddress){case 1:return y.yield(l.dN,2);case 2:M=y.yieldResult;Q.challenge=M.challenge;if(!M.vm){"c1a"in M.kr&&(Q.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");y.jumpTo(3);break}G=Object.assign({},{c:M.challenge,e:O},x);_.tS(y,4);C=!0;return y.yield(M.vm.snapshot({hk:G}),6);case 6:(X=y.yieldResult)?Q.webResponse=X:Q.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.lb(y,3);break;case 4:_.VP(y),Q.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(O==="ENGAGEMENT_TYPE_PLAYBACK"){var Z=M.kr,E={};if(Z.c6a){var P=Number(_.wz("DCLKSTAT",0));E.reportingStatus=String(Number(Z.c)^(isNaN(P)?0:P))}Z.c6b&&(E.broadSpectrumDetectionResult=String(Number(Z.c)^Number(_.wz("CATSTAT",0))));Q.adblockReporting=E}return y.return(Q)}})};
return k.return(Promise.race([L(),$TX(e,function(){var M=Object.assign({},Q);C&&(M.error="ATTESTATION_ERROR_VM_TIMEOUT");return M})]))})};
var Shp=function(O){var x={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};O&&(x.interpreterHash=O);return x},NkY=function(O,x){x=x===void 0?0:x;
var e,l,C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){switch(P.nextAddress){case 1:e=Shp(JZN().zem);if(_.t("att_fet_ks"))return _.tS(P,7),P.yield(O.ev(e),9);_.tS(P,4);return P.yield(iUQ(O,e),6);case 6:L=P.yieldResult;C=L.xLo;Q=L.vgD;l=L;_.lb(P,3);break;case 4:return _.VP(P),_.ft(Error("si`"+x)),OxX(O,864E5),P.return({challenge:"",kr:{},vm:void 0,bgChallenge:void 0});case 9:l=P.yieldResult;if(!l)throw Error("ti");if(!l.challenge)throw Error("ui");C=l.challenge;Q=sM(C);if("c1a"in Q&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("vi");
_.lb(P,3);break;case 7:k=_.VP(P);_.ft(k);x++;if(x>=5)return _.ft(Error("si`"+x)),OxX(O,864E5),P.return({challenge:"",kr:{},vm:void 0,bgChallenge:void 0});M=1E3*Math.pow(2,x-1)+Math.random()*1E3;return P.return(new Promise(function(U){_.zl(_.vn,function(){U(NkY(O,x))},M)}));
case 3:G=dli(Q);OxX(O,G*1E3);X=void 0;if(!("c1a"in Q&&l.bgChallenge)){P.jumpTo(10);break}y=KaW(l.bgChallenge);_.tS(P,11);return P.yield(S0T(JZN(),y),13);case 13:_.lb(P,12);break;case 11:return Z=_.VP(P),_.ft(Z),P.return({challenge:C,kr:Q,vm:X,bgChallenge:y});case 12:return _.tS(P,14),X=new _.WF({challenge:y,ikX:{sj:"aGIf"}}),P.yield(X.sIv,16);case 16:_.lb(P,10);break;case 14:E=_.VP(P),_.ft(E),X=void 0;case 10:return P.return({challenge:C,kr:Q,vm:X,bgChallenge:y})}})};
_.pW.prototype.ev=function(O){var x=this,e;return _.A(function(l){e=x.networkStatusManager;if(!e||e.isNetworkAvailable())return l.return(x.network.ev(O));_.pZ("att_pna",void 0,"attestation_challenge_fetch");return l.return(new Promise(function(C){e.listenOnce("publicytnetworkstatus-online",function(){x.network.ev(O).then(C)})}))})};
var xx$=function(O){if(!O)throw Error("ti");if(!O.challenge)throw Error("ui");var x=O.challenge,e=sM(x);if("c1a"in e&&(!O.bgChallenge||!O.bgChallenge.program))throw Error("vi");return Object.assign({},O,{xLo:x,vgD:e})},iUQ=function(O,x){var e,l,C,Q,L;
return _.A(function(k){switch(k.nextAddress){case 1:e=void 0,l=0,C={};case 2:if(!(l<5)){k.jumpTo(4);break}if(!(l>0)){k.jumpTo(5);break}C.nuE=1E3*Math.pow(2,l-1)+Math.random()*1E3;return k.yield(new Promise(function(M){return function(G){_.zl(_.vn,function(){G(void 0)},M.nuE)}}(C)),5);
case 5:return _.tS(k,7),k.yield(O.ev(x),9);case 9:return Q=k.yieldResult,k.return(xx$(Q));case 7:e=L=_.VP(k),L instanceof Error&&_.ft(L);case 8:l++;C={nuE:void 0};k.jumpTo(2);break;case 4:throw e;}})},jST=function(O,x){O.dN=x},eiQ=function(O){var x,e,l;
return _.A(function(C){if(C.nextAddress==1)return C.yield(Promise.race([O.dN,null]),2);x=C.yieldResult;var Q=NkY(O);O.dN=Q;(e=x)==null||(l=e.vm)==null||l.dispose();_.Ra(C)})},OxX=function(O,x){var e=Date.now()+x,l=function(){var C;
return _.A(function(Q){C=e-Date.now();return C<1E3?Q.yield(eiQ(O),0):(_.zl(_.vn,l,Math.min(C,6E4)),Q.jumpTo(0))})};
l()},$TX=function(O,x){return new Promise(function(e){_.zl(_.vn,function(){e(x())},O)})};var ltX=function(){};
ltX.prototype.processContext=function(O){var x=_.pW.instance;if(!x)return _.Co();var e=J1i(O);return e?new lQ(x.xUy(e,B3r(O),500).then(function(l){var C;(O==null?0:(C=O.innerTubeRequest)==null?0:C.context)||(O.innerTubeRequest.context={});C=O.innerTubeRequest.context;C.request||(C.request={});C.request.attestationResponseData=l})):_.Co()};var CxO=function(O){this.innertubeTransportService=O};
CxO.prototype.ev=function(O){_.pZ("att_fsr",void 0,"attestation_challenge_fetch");return _.NK(this.innertubeTransportService,O,_.YE(_.p$$)).then(function(x){_.pZ("att_frr",void 0,"attestation_challenge_fetch");return x})};_.QaL=function(O){this.innertubeTransportService=O};var bxY=new _.iR("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var TXO=function(){},ktp=function(O,x,e,l,C){var Q=_.wz("YPC_MB_URL");
_.m68(Q).then(function(){Lg4(Q,O,x,e,l,C)})},Lg4=function(O,x,e,l,C,Q){try{var L=_.nM.payments.business.integration,k=_.nM.payments.business.integration.Style.create().withMaterialDesignStyle(),M=L.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.t("enable_window_constrained_buy_flow_dialog")&&(M=M.usingPopupStyle("windowConstrained"));Q&&(M=M.usingCloseCallback(Q));var G=e?e:_.wz("YPC_GB_LANGUAGE"),X=_.wz("SESSION_INDEX");L.bootstrap.fromPaymentsUrl(O);L.bootstrap.asMashupMode(M).usingGaiaIndex(X).usingLocale(G).usingStyle(k).usingDefaultActivityStatusChangeHandler().inStandaloneContext(L.standaloneContextAuthId.forGaia()).purchaseManager(x,function(y){l&&l(y)}).load(void 0,C)}catch(y){throw C&&C(y),_.BH(y),y;
}};var ASL=new _.iR("PURCHASE_MANAGER_TOKEN");var M5h=function(){var O=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return O.videos},
getContinuationsPresent:function(){return O.continuationsPresent},
setVideos:function(x){O.videos=x},
getRecommendedVideos:function(){return O.recommendedVideos},
setRecommendedVideos:function(x){O.recommendedVideos=x}}};
M5h.prototype.addVideos=function(O){O&&(this.videos=O.filter(function(x){return!!_.SIi(x)}).map(function(x){var e=_.SIi(x);
a:{var l;if(x.playlistVideoRenderer&&((l=x.playlistVideoRenderer)==null?0:l.voteSortTiebreaker))var C=x.playlistVideoRenderer.voteSortTiebreaker;else{if(_.q(x,rj)){var Q;if(l=(C=_.q(x,rj))==null?void 0:(Q=C.playlistItemData)==null?void 0:Q.voteSortTiebreaker){C=l;break a}}C=""}}return{itemId:e,videoId:_.gYi(x),voteCount:_.$lN(x),voteSortTiebreaker:C}}),this.continuationsPresent=!!_.q(O[O.length-1],_.dj))};
var DxY=function(O,x){return O.videos.findIndex(function(e){return e.itemId===x})},Gth=function(O,x){return O.recommendedVideos.findIndex(function(e){return e.itemId===x})},FgX=function(O){O={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:O}}}}};_.GG().resolve(_.Xc).resolveCommand(O)};var XOX=function(){M5h.apply(this,arguments)};
_.c(XOX,M5h);
var Hq4=function(O,x,e,l){if(!O.parentElem)throw Error("Ai");var C=DxY(O,x);C===-1&&(C=Gth(O,x),C=C!==-1?C+O.videos.length:-1);if(C===-1)throw Error("Bi");var Q=C>=O.videos.length?O.recommendedVideos[C-O.videos.length]:O.videos[C];Q.voteCount=e;Q.voteSortTiebreaker=Date.now().toString();C>=O.videos.length?O.recommendedVideos.splice(C-O.videos.length,1):O.videos.splice(C,1);var L=O.videos;for(var k=0,M=L.length-1;k<=M;){var G=Math.floor((k+M)/2);if(L[G].voteCount<Q.voteCount)M=G-1;else if(L[G].voteCount>Q.voteCount)k=
G+1;else{a:{var X=Q.voteSortTiebreaker;var y=L[G].voteSortTiebreaker;if(X.length!==y.length)X=X.length>y.length;else{for(var Z=0;Z<X.length;Z++){var E=X.charCodeAt(Z),P=y.charCodeAt(Z);if(E>P){X=!0;break a}if(E<P)break}X=!1}}X?M=G-1:k=G+1}}L=k;if(L===-1)throw Error("Ci");O.videos.splice(L,0,Q);C!==L&&oSw(O,C,L,x,e,l)},oSw=function(O,x,e,l,C,Q){var L,k=(L=O.parentElem)==null?void 0:L.children,M=Math.min(x,e),G=Math.max(x,e);
if(k)for(L=M;L<=G;L++)k[L].style.viewTransitionName="item-"+String(L);document.startViewTransition(function(){if(O.parentElem){var X=O.parentElem.children;if(!(!X||x<0||x>=X.length||e<0||e>=X.length)){var y=X[x];if(y){y.remove();O.showRefreshPill=e>=O.videos.length-1&&O.continuationsPresent;if(!O.showRefreshPill){X=X[e]||null;var Z;(Z=O.parentElem)==null||Z.insertBefore(y,X)}_.wr(O.parentElem,"yt-update-video-data-voting-animation",{toIdx:e,itemId:l,newVoteCount:C,voteStatus:Q,hideItem:O.showRefreshPill})}}}}).finished.then(function(){if(k)for(var X=
M;X<=G;X++)k[X].style.viewTransitionName="";
if(O.showRefreshPill)FgX(_.CZ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var y;if(y=X=(y=O.parentElem)==null?void 0:y.children[e])y=X.getBoundingClientRect(),X=y.bottom,y=!(y.top>=0&&X<=O.clientHeight);y&&(y=_.QO(x>e?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(x-e)),FgX(y))}})};var ES$=function(O,x){var e=this;O?this.innertubeTransportServicePromise=Promise.resolve(O):x&&(this.innertubeTransportServicePromise=x(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new M2(3E3,function(l){return ySw(e,l)},0);
this.validateMiniAppVideoIdRateLimiter=new M2(3E3,function(l){return Zx$(e,l)},1)},juY=function(O,x){O.JSC$17375_miniAppId=x;
O.reportMiniAppValueRateLimiter=new M2(3E3,function(e){return ySw(O,e)},0);
O.validateMiniAppVideoIdRateLimiter=new M2(3E3,function(e){return Zx$(O,e)},1)},gLT=function(O,x){var e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(O.reportMiniAppValueRateLimiter.call(x),2);e=l.yieldResult;return l.return([e,x])})},ySw=function(O,x){var e,l,C,Q,L,k,M;
return _.A(function(G){switch(G.nextAddress){case 1:return G.yield(O.innertubeTransportServicePromise,2);case 2:return e=G.yieldResult,l=_.YE(WT4),C=Date.now(),Q={externalPostId:O.JSC$17375_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(C/1E3),nanos:Math.round(C%1E3*1E6)},intValue:""+x}},_.tS(G,3),G.yield(_.NK(e,Q,l),5);case 5:L=G.yieldResult;_.lb(G,4);break;case 3:throw k=_.VP(G),k;case 4:if(L){if("error"in L&&L.error)throw L.error;if(L.errorMetadata)throw Error("Di`"+
L.errorMetadata.status);if(M=L.userStatResult)return G.return(M);throw Error("Ei");}throw Error("Fi");}})},iQL=function(O){var x,e,l,C,Q;
_.A(function(L){switch(L.nextAddress){case 1:return L.yield(O.innertubeTransportServicePromise,2);case 2:return x=L.yieldResult,e=_.YE(WT4),l={externalPostId:O.JSC$17375_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.tS(L,3),L.yield(_.NK(x,l,e),5);case 5:C=L.yieldResult;_.lb(L,4);break;case 3:throw Q=_.VP(L),Q;case 4:if(C==null)throw Error("Fi");if("error"in C&&C.error)throw C.error;if(C.errorMetadata)throw Error("Di`"+C.errorMetadata.status);_.Ra(L)}})};
ES$.prototype.flush=function(){var O=this;return _.A(function(x){return x.nextAddress==1?x.yield(O.reportMiniAppValueRateLimiter.flush(),2):x.yield(O.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var $hw=function(O,x){return _.A(function(e){return e.nextAddress==1?e.yield(O.validateMiniAppVideoIdRateLimiter.call(x),2):e.return(e.yieldResult)})},Zx$=function(O,x){var e,l,C,Q,L,k;
return _.A(function(M){switch(M.nextAddress){case 1:return M.yield(O.innertubeTransportServicePromise,2);case 2:return e=M.yieldResult,l=_.YE(I_T),C={videoId:x},_.tS(M,3),M.yield(_.NK(e,C,l),5);case 5:Q=M.yieldResult;_.lb(M,4);break;case 3:throw L=_.VP(M),L;case 4:if(Q){if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("Di`"+Q.errorMetadata.status);if(k=Q.playabilityStatus)return M.return(k.status);throw Error("Gi");}throw Error("Fi");}})};
ES$[Fc]=[_.D0(_.IF),_.D0(bi$)];var t5h=function(){this.clientData=new Map};
t5h.prototype.getData=function(O){return this.clientData.get(O)};var qr4=function(O){this.store=O};
qr4.prototype.handleResponse=function(O){(O=_.q(O.frameworkUpdates,dS))&&_.b9(O,this.store)};
qr4[Fc]=[_.gH];var PxY=new _.iR("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var cSL,Ith;_.RW=new _.iR("FLOW_STATE_MANAGER_TOKEN");cSL=function(){this.flowStates=new Map};
Ith=function(O,x){O=_.T(O.flowStates.values());for(var e=O.next();!e.done;e=O.next())if(e=e.value,e.flowRenderer.targetId===x)return e};var V5w=function(O,x){this.JSC$17400_reduxStore=O;this.JSC$17400_flowStateManager=x};
_.c(V5w,CN);
V5w.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E,P;return _.A(function(U){e=_.q(O,_.nTT);l=e.stepId;C=e.targetId;Q=Ith(x.JSC$17400_flowStateManager,C);k=(L=Q)==null?void 0:L.flowRenderer;M=k.flowStateEntityKey;G=_.Hb(x.JSC$17400_reduxStore.getState(),M);if(!G)return U.return();X=G.currentStepId;E=(Z=(y=G)==null?void 0:y.stepIdStack)!=null?Z:[];P=X===E[E.length-1]?l:X;x.JSC$17400_reduxStore.dispatch(_.Zw("flowStateEntity",M,{currentStepId:l,stepIdStack:[P]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Ra(U)})};
var pOh=function(){V5w.apply(this,arguments)};
_.c(pOh,V5w);pOh[Fc]=[_.gH,_.RW];var Rip=function(O,x,e){this.JSC$17407_reduxStore=O;this.JSC$17407_flowStateManager=x;this.JSC$17407_commandHandler=e};
_.c(Rip,CN);
Rip.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U;return _.A(function(W){l=_.q(O,_.uI4);C=l.targetId;Q=Ith(e.JSC$17407_flowStateManager,C);k=(L=Q)==null?void 0:L.flowRenderer;M=k.flowStateEntityKey;G=_.Hb(e.JSC$17407_reduxStore.getState(),M);Z=[].concat(_.Kx((y=(X=G)==null?void 0:X.stepIdStack)!=null?y:[]));E=Z.pop();((P=G)==null?void 0:P.currentStepId)===E&&(E=Z[Z.length-1]);if(!E)return(U=l.onFirstStepCommand)&&e.JSC$17407_commandHandler.resolveCommand(U,x),W.return();
e.JSC$17407_reduxStore.dispatch(_.Zw("flowStateEntity",M,{currentStepId:E,stepIdStack:Z}));_.Ra(W)})};
var Ux$=function(){Rip.apply(this,arguments)};
_.c(Ux$,Rip);Ux$[Fc]=[_.gH,_.RW,_.Xc];var atQ=function(O,x){this.innertubeTransportService=O;this.JSC$17412_commandHandler=x};
_.c(atQ,CN);atQ.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1){l=_.q(O,YF$);if(!l)return M.return();_.tS(M,2);return M.yield(_.z7(e.innertubeTransportService,O),4)}if(M.nextAddress!=2){C=M.yieldResult;if(!C)return M.return();(Q=C.updateFlowCommand)&&e.JSC$17412_commandHandler.resolveCommand(Q,x);return _.lb(M,0)}_.VP(M);(k=(L=l)==null?void 0:L.onFailureCommand)&&e.JSC$17412_commandHandler.resolveCommand(k,x);_.Ra(M)})};
var mx$=function(){atQ.apply(this,arguments)};
_.c(mx$,atQ);mx$[Fc]=[_.IF,_.Xc];var sae=function(O,x){this.JSC$17418_flowStateManager=O;this.JSC$17418_commandHandler=x};
_.c(sae,CN);
sae.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L;return _.A(function(k){l=_.q(O,_.vTd);C=l.targetId;Q=Ith(e.JSC$17418_flowStateManager,C);if(!Q)return k.return(Promise.resolve());var M=Q,G=(L=l.steps)!=null?L:[],X,y=(X=M.flowRenderer.steps)!=null?X:[];G=[].concat(_.Kx(y),_.Kx(G));M.flowRenderer.steps=G;l.flowContinuationCommand&&(Q.flowRenderer.flowContinuationCommand=l.flowContinuationCommand);l.entityUpdateCommand&&e.JSC$17418_commandHandler.resolveCommand(l.entityUpdateCommand,x);
return k.return(Promise.resolve())})};
var UU=function(){sae.apply(this,arguments)};
_.c(UU,sae);UU[Fc]=[_.RW,_.Xc];var WgL={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 hiL=new _.iR("ICON_SET_TOKEN"),ziu=new _.iR("ICON_URL_PROVIDER_TOKEN"),rSw=new _.iR("PREFETCH_ICONS_TOKEN"),HxL=new _.iR("ICON_MAP_FN_TOKEN");var aW={},KgL=(aW.ACCESS_TIME="clock",aW.ACCOUNT_BOX=_.wz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",aW.ACCOUNT_BOX_CAIRO="person_account_cairo",aW.ACCOUNT_CIRCLE="person_circle",aW.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",aW.ACCOUNT_LINKED="account_link_success",aW.ACCOUNT_UNLINKED="account_link",aW.ADD_FRIEND="people",aW.ADD_MODERATOR="shield_add",aW.ADD_TO_LIBRARY="bookmark",aW.ADD_TO_PLAYLIST="add",aW.ADD_TO_QUEUE_TAIL="list_queue",aW.ADD_TO_REMOTE_QUEUE="list_music",
aW.ADD_TO_WATCH_LATER="clock",aW.ADD_VIDEO_LINK="film_strip_add",aW.ALERT_WARN_RED="alert_triangle",aW.ARROW_BACK="arrow_left",aW.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",aW.ARROW_DROP_DOWN="chevron_down",aW.ARROW_DROP_UP="chevron_up",aW.ARROW_FORWARD="arrow_right",aW.ARTIST="person_music",aW.AUDIOTRACK="audio",aW.AUTO_AWESOME="sparkle",aW.AVATAR_ANONYMOUS="person_circle",aW.AVATAR_LOGGED_OUT="person_circle",aW.BACK="arrow_left",aW.BAR_CHART="bar_graph",aW.BLOCK="slash_circle_left",
aW.BLOCK_USER="slash_circle_left",aW.BOOKMARK_BORDER="bookmark",aW.BREAKING_NEWS_ALT_1="article_alert",aW.BROADCAST_CAIRO="podcast_cairo",aW.BUG_REPORT="bug",aW.CAMERA_ALT="camera",aW.CAMPAIGN="megaphone",aW.CANCEL="x_circle",aW.CAPTIONS="closed_caption",aW.CAST_OUTLINE="chromecast",aW.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",aW.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",aW.CHAT="message_bubble_left",aW.CHAT_BUBBLE="message_bubble_empty",aW.CHAT_SPARK="spark_message_bubble_left",aW.CHECK_BOX_OUTLINE_BLANK=
"box_empty",aW.CHECK_CIRCLE_OUTLINE="check_circle",aW.CHECK_CIRCLE_THICK="check_circle",aW.CLARIFY="article_clarify",aW.CLOSED_CAPTION_SELECTED="closed_caption",aW.CLOSE="x_mark",aW.CLOUD_UPLOAD="cloud_arrow_up",aW.COLLAPSE="chevron_up",aW.COLLAPSE_CAIRO="chevron_up_cairo",aW.COLLECTION="layers",aW.COLOR_LENS="palette",aW.COMMENT="message_bubble_right",aW.CONSENT_SHIELD="person_shield",aW.CONTENT_CUT="scissors",aW.CONTENT_CUT_CAIRO="scissors_cairo",aW.COURSE=_.t("web_enable_course_icon_update")?"creator_academy":
"lightbulb",aW.COURSE_CAIRO=_.t("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",aW.CREATION_LIVE="radar_live",aW.CREATION_POST="box_pencil",aW.CREATION_UPLOAD="my_videos",aW.CREATION_UPLOAD_RED="upload",aW.CREATOR_METADATA_MONETIZATION="dollar_sign",aW.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",aW.CREATOR_STUDIO="youtube_studio",aW.DASHBOARD="grid_asymmetrical",aW.DELETE="trash_can",aW.DELETE_SWEEP="trash_can",aW.DESKTOP="laptop",aW.DISLIKE="thumb_down",aW.DISLIKE_SELECTED=
"thumb_down",aW.DISMISSAL="x_mark",aW.DISMISS_QUEUE="list_remove",aW.DONE_ALL="check_double",aW.DOWN_ARROW="arrow_down",aW.DO_NOT_DISTURB="slash_circle_left",aW.DRAFT="paper_corner_folded",aW.DRAG_HANDLE="bars_2",aW.EDIT="pencil",aW.EMOJI="face_very_happy",aW.EMOJI_FLAGS="flag",aW.EMOJI_OBJECTS="lightbulb",aW.EMOJI_PEOPLE="face_very_happy",aW.EMOJI_RECENT="clock",aW.EMPTY_HEART="heart",aW.EMPTY_LIKE="thumb_up",aW.ERROR_BLACK="alert_circle",aW.ERROR_OUTLINE="alert_circle",aW.EXIT_APP="arrow_in",aW.EXIT_TO_APP=
"arrow_in",aW.EXPAND="chevron_down",aW.EXPAND_ALL="chevron_expand",aW.EXPAND_CAIRO="chevron_down_cairo",aW.EXPAND_LESS="chevron_up",aW.EXPAND_MORE="chevron_down",aW.EXPLORE="compass",aW.EXPLORE_DESTINATION="compass",aW.EXTERNAL_LINK="open_new",aW.FAB_UPLOAD="upload",aW.FACE_HAPPY_OUTLINE="face_happy",aW.FACT_CHECK="article_check",aW.FASHION_LOGO="fashion",aW.FASHION_LOGO_CAIRO="fashion_cairo",aW.FAVORITE="heart",aW.FEEDBACK="message_bubble_alert",aW.FEEDBACK_CAIRO="message_bubble_alert_cairo",aW.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",aW.FILL_ARROW_SOLID_UP_16="arrow_solid_up",aW.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",aW.FILTER="menu_filter",aW.FIRST_PAGE="chevron_first",aW.FLAG="flag",aW.FULL_HEART="heart",aW.GAME_CONSOLE_DPAD="game_console_dpad",aW.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",aW.GAMING_LOGO="gaming",aW.GAMING_LOGO_CAIRO="gaming_cairo",aW.GO_TO_PAGE="arrow_right",aW.GROUPS="people_group",aW.HAPPY="face_happy",aW.HEALTH_AND_SAFETY="shield_plus",aW.HELP="question_circle",aW.HELP_CAIRO=
"question_circle_cairo",aW.HELP_OUTLINE="question_circle",aW.HIDE="slash_circle_left",aW.IMAGE="image",aW.INFINITY_ICON="infinity",aW.INFO="info_circle",aW.INFO_OUTLINE="info_circle",aW.INSERT_CHART="bar_graph_box_vertical",aW.INSERT_CHART_OUTLINED="bar_graph_box_vertical",aW.INSERT_PHOTO="image",aW.KEEP="pin",aW.KEEP_OFF="pin_off",aW.KEYBOARD="keyboard",aW.KEYBOARD_ARROW_DOWN="chevron_down",aW.KEYBOARD_ARROW_UP="chevron_up",aW.KIDS_BLOCK="slash_circle_left",aW.LANGUAGE="globe",aW.LAST_PAGE="chevron_last",
aW.LAUNCH="open_new",aW.LEARNING="lightbulb",aW.LEARNING_CAIRO="lightbulb_cairo",aW.LIBRARY_ADD=eyN("library_add"),aW.LIBRARY_OUTLINE="library",aW.LIBRARY_REMOVE=eyN(),aW.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",aW.LIKES_PLAYLIST="thumb_up",aW.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",aW.LIKE="thumb_up",aW.LIKE_SELECTED="thumb_up",aW.LIVE="radar_live",aW.LIVE_CAIRO="radar_live_cairo",aW.LIVE_UNLISTED="link",aW.LOCATION_ON="location_point",aW.LOCATION_PIN="location_point",aW.LOOP="arrow_repeat",aW.LOOP_ACTIVE=
"arrow_repeat",aW.LOOP_ONE="arrow_repeat_1",aW.LOOP_ONE_ACTIVE="arrow_repeat_1",aW.MEH="face_meh",aW.MEMBERS_ONLY_MODE_OFF="message_bubble_left",aW.MESSAGE="message_bubble_left",aW.MICROPHONE_ON="mic",aW.MIX="youtube_mix",aW.MONETIZATION_ON="dollar_sign_circle",aW.MONEY_FILL="dollar_sign_container",aW.MONEY_FILL_JPY="yen_sign_container",aW.MONEY_HEART="dollar_sign_heart",aW.MORE_HORIZ="overflow_horizontal",aW.MORE_VERT="overflow_vertical",aW.MUSIC="audio",aW.MUSIC_CAIRO="audio_cairo",aW.MUSIC_NOTE_SYMBOL=
"music",aW.MUSIC_SHUFFLE="arrow_shuffle",aW.MY_CHANNEL="person_circle",aW.MY_LOCATION="location_point",aW.NEWS_STORY="news",aW.NEXT="chevron_right",aW.NOTIFICATIONS="bell",aW.NOTIFICATIONS_ACTIVE="bell_on",aW.NOTIFICATIONS_CAIRO="bell_cairo",aW.NOTIFICATIONS_DONE_CHECKMARK="check",aW.NOTIFICATIONS_INBOX="bell",aW.NOTIFICATIONS_NONE="bell",aW.NOTIFICATIONS_OFF="bell_off",aW.NOT_INTERESTED="slash_circle_left",aW.OFFICIAL_ARTIST_BADGE="audio",aW.OFFLINE_CLOUD="cloud_off",aW.OFFLINE_DOWNLOAD="download",
aW.OFFLINE_DOWNLOAD_CAIRO="download_cairo",aW.OFFLINE_PAUSE="pause",aW.OPEN_IN_NEW="open_new",aW.OUTLINE_ADJUST="adjust",aW.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",aW.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",aW.OUTLINE_BAG="bag",aW.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",aW.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",aW.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",aW.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",aW.PAID="dollar_sign",aW.PAUSE_OUTLINED="pause",aW.PAYMENT=
"credit_card",aW.PERSON_RADAR_FILLED="person_radar",aW.PHONE_DOWNLOAD="mobile_download",aW.PLAYABLES_LOGO="tic_tac_toe",aW.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",aW.PLAYLISTS="list_play_arrow",aW.PLAYLISTS_CAIRO="list_play_arrow_cairo",aW.PLAYLIST_ADD=eyN("list_add"),aW.PLAYLIST_ADD_CHECK=eyN("list_check"),aW.PLAYLIST_PLAY="list_play_arrow",aW.PLAY_ALL="play_arrow",aW.PLAY_CIRCLE="play_arrow_circle",aW.PLAY_OUTLINED="play_arrow_circle",aW.PRIVACY_INFO="shield",aW.PRIVACY_PRIVATE="lock",aW.PRIVACY_PUBLIC=
"earth",aW.PRIVACY_UNLISTED="link",aW.PROMOTE="megaphone",aW.PURCHASES="price_tag",aW.PURCHASE_SUPER_CHAT="super_chat",aW.PURCHASE_SUPER_STICKER="super_sticker",aW.QUESTION_ANSWER="message_bubble_question",aW.QUEUE_PLAY_LAST="list_queue_last",aW.QUEUE_PLAY_NEXT="list_play_arrow",aW.REMIX_FILLED="youtube_shorts_remix",aW.REMOVE="bar_circle",aW.REMOVE_CIRCLE="bar_circle",aW.REMOVE_CIRCLE_OUTLINE="bar_circle",aW.REMOVE_DONE="check_double_off",aW.REMOVE_FROM_HISTORY="bar_circle",aW.REMOVE_FROM_PLAYLIST=
"bar_circle",aW.REMOVE_MODERATOR="shield_off",aW.REPLAY="arrow_circle",aW.REPLAY_10="skip_back_10",aW.REPORT_PROBLEM="alert_triangle",aW.SAD="face_sad",aW.SAVE_PLAYLIST="bookmark",aW.SCHEDULE="clock",aW.SCHOOL="creator_academy",aW.SCREEN_FULLSCREEN="screen_full",aW.SEARCH_HISTORY="arrow_time",aW.SELL="price_tag",aW.SETTINGS="gear",aW.SETTINGS_CAIRO="gear_cairo",aW.SETTINGS_LIGHT="gear",aW.SETTINGS_MATERIAL="gear",aW.SHARE_ARROW="share",aW.SHIELD_WITH_AVATAR="person_shield",aW.SHOPPING_BAG="bag",aW.SHOPPING_BAG_CAIRO=
"bag_cairo",aW.SHOPPING_CART="cart",aW.SHORTS_COMMENT="youtube_shorts_message_bubble_right",aW.SHORTS_DISLIKE="youtube_shorts_thumb_down",aW.SHORTS_LIKE="youtube_shorts_thumb_up",aW.SHORTS_SHARE="youtube_shorts_share",aW.SHUFFLE="arrow_shuffle",aW.SLOW_MODE_OFF="message_bubble_left",aW.SOCIAL="people",aW.SORT="menu_sort",aW.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",aW.SPEED_1X="1x",aW.SPEED_1_POINT_2X="1_point_2x",aW.SPEED_1_POINT_5X="1_point_5x",aW.SPEED_1_POINT_8X="1_point_8x",aW.SPEED_2X="2x",
aW.SPEED_POINT_2X="point_2x",aW.SPEED_POINT_8X="point_8x",aW.SPONSORSHIP_STAR="star_circle",aW.STAFF_PICK="spotlight",aW.START_DVR="add",aW.STAR_BORDER="star",aW.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",aW.STICKER_EMOTICON="face_happy",aW.STOP_DVR="stop",aW.SUBSCRIBE="youtube_logo_icon",aW.SUBSCRIBE_PLUS="add_cairo",aW.SUBSCRIPTION_MANAGER="gear",aW.SUPERVISOR_ACCOUNT="people",aW.SUPER_CHAT_FOR_GOOD="hands_heart",aW.SWAP_HORIZ="arrow_swap_horizontal",aW.SWITCH_ACCOUNTS="person_account",aW.TAB_ACCOUNT=
"person",aW.TAB_ACTIVITY="bell",aW.TAB_BOOKMARK="bookmark",aW.TAB_EXPLORE="compass",aW.TAB_HOME="home",aW.TAB_HOME_CAIRO="home_cairo",aW.TAB_INBOX="mail",aW.TAB_LIKED="thumb_up",aW.TAB_MUSIC_PREMIUM="youtube_music",aW.TAB_SHORTS="youtube_shorts",aW.TAB_SHORTS_CAIRO="youtube_shorts_cairo",aW.TAB_SUBSCRIPTIONS="subscriptions",aW.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",aW.TAB_TRENDING="fire",aW.TIMER="stopwatch",aW.TRAILER="youtube_originals",aW.TRENDING="fire",aW.TRENDING_CAIRO="fire_cairo",aW.TRENDING_DOWN=
"rating_down",aW.TRENDING_UP="rating_up",aW.TROPHY="trophy",aW.TROPHY_CELEBRATIONS="fireworks",aW.TUNE="adjust",aW.UNBLOCK_USER="bar_circle",aW.UNLIMITED="youtube_logo_icon",aW.UNPLUGGED_LIVE_GUIDE="radar_live",aW.UNPLUGGED_SPORTS="eye_off",aW.UPLOADS="library",aW.UP_ARROW="arrow_up",aW.VERTICAL_ALIGN_BOTTOM="download",aW.VERY_HAPPY="face_very_happy",aW.VERY_SAD="face_very_sad",aW.VIDEOGAME_ASSET="gaming",aW.VIDEOS="play_arrow_circle",aW.VIDEO_CALL="video_camera_add",aW.VIDEO_LIBRARY_WHITE="library",
aW.VIDEO_YOUTUBE="youtube_logo_icon",aW.VIEW_LIST="list_view",aW.VIEW_LIST_CAIRO="list_view_cairo",aW.VISIBILITY="eye",aW.VISIBILITY_OFF="eye_off",aW.VOLUME_MUTE="volume_off",aW.VOLUME_UP="volume_on",aW.WALLPAPER="image",aW.WARNING="alert_triangle",aW.WATCH_HISTORY="arrow_time",aW.WATCH_HISTORY_CAIRO="arrow_time_cairo",aW.WATCH_LATER="clock",aW.WATCH_LATER_CAIRO="clock_cairo",aW.WATCH_RELATED_MIX="youtube_mix",aW.WHAT_TO_WATCH="home",aW.YOUTUBE_MUSIC_MONOCHROME="youtube_music",aW.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",aW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",aW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",aW.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",aW.YT_OUTLINE_MUSIC_24="music",aW);var m2={},dxh=(m2.ACCESS_TIME="clock",m2.ACCOUNT_BOX="person_square",m2.ACCOUNT_BOX_CAIRO="person_square",m2.ACCOUNT_CIRCLE="person_circle",m2.ACCOUNT_CIRCLE_CAIRO="person_circle",m2.ACCOUNT_LINKED="account_link",m2.ACCOUNT_UNLINKED="account_link",m2.ADD_CIRCLE="add_circle",m2.ADD_CIRCLE_OUTLINE="add_circle",m2.ADD_FRIEND="person_child",m2.ADD_MODERATOR="shield_add",m2.ADD_TO_LIBRARY="bookmark",m2.ADD_TO_PLAYLIST="add",m2.ADD_TO_QUEUE_TAIL="queue",m2.ADD_TO_REMOTE_QUEUE="playlist_audio",m2.ADD_TO_WATCH_LATER=
"clock",m2.ADD_VIDEO_LINK="film_strip_add",m2.ADMIN_PANEL_SETTINGS="person_gear",m2.ALERT_WARN_RED="alert_triangle",m2.ALIGN_LEFT="text_align_left",m2.ARROWS_ALERT="arrow_split_alert",m2.ARROW_BACK="arrow_left",m2.ARROW_CIRCLE="arrow_counterclockwise",m2.ARROW_CIRCLE_PLAY="replay",m2.ARROW_CIRCLE_RIGHT="arrow_clockwise",m2.ARROW_DIAGONAL="arrow_up_left",m2.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",m2.ARROW_DROP_DOWN="triangle_down",m2.ARROW_DROP_UP="triangle_up",m2.ARROW_FORWARD="arrow_right",m2.ARROW_PAUSE=
"pause_history",m2.ARROW_UNDO="undo",m2.ARTICLE="text_page",m2.ARTICLE_ALERT="text_page_alert",m2.ARTICLE_CHECK="text_page_check",m2.ARTICLE_CLARIFY="text_page_info",m2.ARTIST="person_audio",m2.AUDIOTRACK="audio",m2.AUDIO_BADGE="audio_badge",m2.AUDIO_SURROUND="surround_sound",m2.AUTO_AWESOME="sparkles",m2.AVATAR_ANONYMOUS="person_circle",m2.AVATAR_LOGGED_OUT="person_circle",m2.BACK="arrow_left",m2.BAR_CHART="chart_bar",m2.BAR_CIRCLE="minus_circle",m2.BAR_HORIZONTAL="minus",m2.BLOCK="circle_slash",
m2.BLOCK_USER="circle_slash",m2.BOOKMARK_BORDER="bookmark",m2.BOX_OPEN_CHECK="quiz",m2.BOX_PENCIL="square_pencil",m2.BOX_STACK_3="square3_stack",m2.BREAKING_NEWS_ALT_1="text_page_alert",m2.BROADCAST="podcast",m2.BROADCAST_CAIRO="podcast",m2.BUG_REPORT="bug",m2.CAMERA_ALT="camera",m2.CAMPAIGN="megaphone",m2.CANCEL="x_circle",m2.CAPTIONS="closed_captions",m2.CAST_ICON="chromecast",m2.CAST_OUTLINE="chromecast",m2.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",m2.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
m2.CHAT="text_bubble",m2.CHAT_BUBBLE="bubble",m2.CHECK_BOX="check_square",m2.CHECK_BOX_OUTLINE_BLANK="square",m2.CHECK_CIRCLE_FILLED="check_circle",m2.CHECK_CIRCLE_OUTLINE="check_circle",m2.CHECK_CIRCLE_THICK="check_circle",m2.CHECK_DOUBLE="check_done",m2.CHECK_DOUBLE_OFF="check_done_slash",m2.CHEVRON_LEFT="chevron_left",m2.CHEVRON_RIGHT="chevron_right",m2.CHEVRON_RIGHT_CAIRO="chevron_right",m2.CIRCLES_OVERLAP="account_link",m2.CLAPPERBOARD_CAIRO="clapperboard",m2.CLARIFY="text_page_info",m2.CLOCK_ARROWS=
"clock_split",m2.CLOCK_ARROWS_ALERT="clock_split_alert",m2.CLOSED_CAPTION="closed_captions",m2.CLOSED_CAPTION_SELECTED="closed_captions",m2.CLOSE="x",m2.CLOUD_UPLOAD="cloud_arrow_up",m2.COLLAPSE="chevron_up",m2.COLLAPSE_CAIRO="chevron_up",m2.COLLECTION="square3d_stack",m2.COLOR_LENS="paint_palette",m2.COMMENT="text_bubble",m2.CONSENT_SHIELD="person_shield",m2.CONTENT_CUT="scissors",m2.CONTENT_CUT_CAIRO="scissors",m2.COURSE="graduation_cap",m2.COURSE_CAIRO="graduation_cap",m2.CREATION_LIVE="live",
m2.CREATION_POST="square_pencil",m2.CREATION_UPLOAD="video",m2.CREATION_UPLOAD_RED="upload",m2.CREATOR_ACADEMY="graduation_cap",m2.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",m2.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",m2.CREATOR_STUDIO="youtube_studio",m2.DARK_THEME="theme",m2.DELETE="trash_can",m2.DELETE_SWEEP="trash_can",m2.DESKTOP="laptop",m2.DISLIKE="thumb_down",m2.DISLIKE_SELECTED="thumb_down",m2.DISMISSAL="x",m2.DISMISS_QUEUE="playlist_x",m2.DOGFOOD="pawprint",m2.DOLLAR_SIGN=
"dollar_sign_circle",m2.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",m2.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",m2.DOWN_ARROW="arrow_down",m2.DO_NOT_DISTURB="circle_slash",m2.DRAFT="document",m2.DRAG_HANDLE="equal",m2.EARTH="globe",m2.EDIT="pencil",m2.EMOJI="face_very_happy",m2.EMOJI_FLAGS="flag",m2.EMOJI_OBJECTS="lightbulb",m2.EMOJI_PEOPLE="face_very_happy",m2.EMOJI_RECENT="clock",m2.EMPTY_HEART="heart",m2.EMPTY_LIKE="thumb_up",m2.ERROR_BLACK="alert_circle",m2.ERROR_OUTLINE="alert_circle",m2.ERROR_WHITE=
"alert_circle",m2.EXIT_APP="arrow_in",m2.EXIT_TO_APP="arrow_in",m2.EXPAND="chevron_down",m2.EXPAND_ALL="chevron_expand",m2.EXPAND_CAIRO="chevron_down",m2.EXPAND_LESS="chevron_up",m2.EXPAND_MORE="chevron_down",m2.EXPLORE="compass",m2.EXPLORE_DESTINATION="compass",m2.EXTERNAL_LINK="arrow_up_right",m2.EYE_OFF="eye_slash",m2.FAB_UPLOAD="upload",m2.FACE_HAPPY_OUTLINE="face_happy",m2.FACE_MEH="face_neutral",m2.FACT_CHECK="text_page_check",m2.FASHION_LOGO="fashion",m2.FASHION_LOGO_CAIRO="fashion",m2.FAVORITE=
"thumb_up",m2.FEEDBACK="alert_bubble",m2.FEEDBACK_CAIRO="alert_bubble",m2.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",m2.FILL_ARROW_SOLID_UP_16="arrow_solid_up",m2.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",m2.FIRST_PAGE="chevron_left_end",m2.FLAG_CAIRO="flag",m2.FLASH_OFF="flash_slash",m2.FLASH_ON="flash",m2.FULL_HEART="heart",m2.GAMING_LOGO="gaming",m2.GAMING_LOGO_CAIRO="gaming",m2.GO_TO_PAGE="arrow_right",m2.GRID_ASYMMETRICAL="dashboard",m2.GROUPS="person3",m2.HAND_SWIPE_LEFT="gesture_swipe_left",
m2.HAND_SWIPE_RIGHT="gesture_swipe_right",m2.HAPPY="face_happy",m2.HEALTH_AND_SAFETY="shield_health",m2.HEART_BOX="heart_cube",m2.HELP="help_circle",m2.HELP_CAIRO="help_circle",m2.HELP_OUTLINE="help_circle",m2.HIDE="circle_slash",m2.INCOGNITO_CAIRO="incognito",m2.INFINITY_ICON="infinity",m2.INFO="info_circle",m2.INFO_OUTLINE="info_circle",m2.INSERT_CHART="chart_bar_square",m2.INSERT_CHART_OUTLINED="chart_bar_square",m2.INSERT_PHOTO="image",m2.KEEP="pin",m2.KEEP_OFF="pin_slash",m2.KEYBOARD="keyboard",
m2.KEYBOARD_ARROW_DOWN="chevron_down",m2.KEYBOARD_ARROW_UP="chevron_up",m2.KIDS_BLOCK="circle_slash",m2.LANGUAGE="globe",m2.LAST_PAGE="chevron_right_end",m2.LAUNCH="arrow_up_right",m2.LEARNING="lightbulb",m2.LEARNING_CAIRO="lightbulb",m2.LIBRARY_ADD="bookmark",m2.LIBRARY_IMAGE="image_stack",m2.LIBRARY_MUSIC="audio_square_stack",m2.LIBRARY_OUTLINE="play_square_stack",m2.LIBRARY_REMOVE="bookmark",m2.LIBRARY_SAVED="check_square_stack",m2.LIKES_PLAYLIST="thumb_up",m2.LIKES_PLAYLIST_CAIRO="thumb_up",m2.LIKE=
"thumb_up",m2.LIKE_SELECTED="thumb_up",m2.LIST_QUEUE="queue",m2.LIVE_CAIRO="live",m2.LIVE_UNLISTED="link",m2.LOCATION_ON="location_pin",m2.LOCATION_PIN="location_pin",m2.LOCATION_POINT="location_pin",m2.LOOP="repeat",m2.LOOP_ACTIVE="repeat",m2.LOOP_ONE="repeat1",m2.LOOP_ONE_ACTIVE="repeat1",m2.MEET="google_meet",m2.MEH="face_neutral",m2.MEMBERSHIPS="memberships",m2.MEMBERS_ONLY_MODE_OFF="text_bubble",m2.MENU_FILTER="filter",m2.MESSAGE="text_bubble",m2.MESSAGE_BUBBLE_GEAR="bubble_gear",m2.MESSAGE_BUBBLE_LEFT=
"text_bubble",m2.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",m2.MESSAGE_BUBBLE_OVERLAP="bubble_stack",m2.MESSAGE_BUBBLE_QUESTION="help_bubble",m2.MICROPHONE_ON="mic",m2.MONETIZATION_ON="dollar_sign_circle",m2.MONEY_FILL="dollar_sign_rectangle",m2.MONEY_FILL_JPY="yen_sign_rectangle",m2.MONEY_HAND="dollar_sign_circle_hand",m2.MONEY_HEART="dollar_sign_heart",m2.MOON_Z="sleep_timer",m2.MORE_HORIZ="overflow_horizontal",m2.MORE_VERT="overflow_vertical",m2.MUSIC="audio",m2.MUSIC_CAIRO="audio",m2.MUSIC_EXPLICIT_BADGE=
"explicit",m2.MUSIC_NEW_RELEASE="audio_badge",m2.MUSIC_NOTE_SYMBOL="audio",m2.MUSIC_SCISSORS="audio_scissors",m2.MUSIC_SHUFFLE="shuffle",m2.MY_CHANNEL="person_circle",m2.MY_LOCATION="location_pin",m2.MY_VIDEOS="video",m2.MY_VIDEOS_CAIRO="video",m2.NEWS_CAIRO="news",m2.NEWS_STORY="news",m2.NEXT="chevron_right",m2.NOTE_ADD="bubble_pencil",m2.NOTIFICATIONS="bell",m2.NOTIFICATIONS_ACTIVE="bell_waves",m2.NOTIFICATIONS_CAIRO="bell",m2.NOTIFICATIONS_DONE_CHECKMARK="check",m2.NOTIFICATIONS_INBOX="bell",m2.NOTIFICATIONS_NONE=
"bell",m2.NOTIFICATIONS_OFF="bell_slash",m2.NOT_INTERESTED="circle_slash",m2.OFFICIAL_ARTIST_BADGE="audio",m2.OFFLINE_CLOUD="cloud_slash",m2.OFFLINE_DOWNLOAD="download",m2.OFFLINE_DOWNLOAD_CAIRO="download",m2.OFFLINE_PAUSE="pause",m2.OPEN_IN_NEW="arrow_up_right",m2.OUTLINE_ADJUST="adjust",m2.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",m2.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",m2.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",m2.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",m2.OUTLINE_BAG="bag",m2.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",m2.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",m2.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",m2.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",m2.PAID="dollar_sign_circle",m2.PAUSE_OUTLINED="pause",m2.PAYMENT="credit_card",m2.PEOPLE="person_child",m2.PEOPLE_2="person2_rectangle",m2.PEOPLE_GROUP="person3",m2.PEOPLE_NOTE="bubble_asterisk",m2.PERSON_2="person2",m2.PERSON_ACCOUNT="person_square_stack",m2.PERSON_MINUS="person_x",m2.PERSON_MUSIC="person_audio",m2.PERSON_RADAR="person_waves",
m2.PERSON_RADAR_FILLED="person_waves",m2.PERSON_SETTING="person_gear",m2.PHONE="phone",m2.PHONE_DOWNLOAD="mobile_arrow_down",m2.PICTURE_IN_PICTURE="picture_in_picture",m2.PLAYABLES_LOGO="playables",m2.PLAYABLES_LOGO_CAIRO="playables",m2.PLAYLISTS="playlist",m2.PLAYLISTS_CAIRO="playlist",m2.PLAYLIST_ADD_CHECK="bookmark",m2.PLAY_ALL="play",m2.PLAY_ARROW="play",m2.PLAY_ARROW_CIRCLE="play_circle",m2.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",m2.PLAY_CIRCLE="play_circle",m2.PLAY_OUTLINED="play_circle",
m2.PODCAST_ADD="podcast_add",m2.PODCAST_CHECK="podcast_check",m2.PRIVACY_INFO="shield_x",m2.PRIVACY_PRIVATE="lock",m2.PRIVACY_PUBLIC="globe",m2.PRIVACY_UNLISTED="link",m2.PROMOTE="megaphone",m2.PURCHASES="price_tag",m2.PURCHASE_SUPER_CHAT="super_chat",m2.PURCHASE_SUPER_STICKER="super_sticker",m2.QUESTION_ANSWER="help_bubble",m2.QUESTION_CIRCLE="help_circle",m2.QUEUE_PLAY_LAST="queue_last",m2.QUEUE_PLAY_NEXT="queue_next",m2.QUOTATION_MARK="quote",m2.RADAR_LIVE="live",m2.REMOVE="minus_circle",m2.REMOVE_CIRCLE=
"minus_circle",m2.REMOVE_CIRCLE_OUTLINE="minus_circle",m2.REMOVE_FROM_HISTORY="minus_circle",m2.REMOVE_FROM_PLAYLIST="minus_circle",m2.REMOVE_MODERATOR="shield_slash",m2.REPLAY="arrow_counterclockwise",m2.REPLAY_10="skip10_back",m2.REPLAY_ARROW="replay",m2.REPORT_PROBLEM="alert_triangle",m2.RSS_OFF="rss_slash",m2.SAD="face_sad",m2.SAVE_PLAYLIST="bookmark",m2.SCHEDULE="clock",m2.SCHOOL="graduation_cap",m2.SCREEN_DEFAULT="player_default",m2.SCREEN_FULLSCREEN="player_full_enter",m2.SCREEN_LIGHT="ambient_mode",
m2.SCREEN_ROTATION="rotate_portrait",m2.SCREEN_SWITCH="player_switch",m2.SCREEN_THEATRE="player_theater",m2.SEARCH_CAIRO="search",m2.SEARCH_HISTORY="history",m2.SELL="price_tag",m2.SETTINGS="gear",m2.SETTINGS_CAIRO="gear",m2.SETTINGS_LIGHT="gear",m2.SETTINGS_MATERIAL="gear",m2.SETTINGS_REMOTE="remote_waves",m2.SHARE="share",m2.SHARE_ARROW="share",m2.SHARE_CAIRO="share",m2.SHIELD="shield_x",m2.SHIELD_OFF="shield_slash",m2.SHIELD_WITH_AVATAR="person_shield",m2.SHOPPING_BAG="bag",m2.SHOPPING_BAG_CAIRO=
"bag",m2.SHOPPING_CART="cart",m2.SHORTS_COMMENT="text_bubble",m2.SHORTS_DISLIKE="thumb_down",m2.SHORTS_LIKE="thumb_up",m2.SHORTS_SHARE="share",m2.SKIP_FORWARD_30="skip30_forward",m2.SLASH_CIRCLE_LEFT="circle_slash",m2.SLASH_CIRCLE_RIGHT="circle_slash",m2.SLOW_MODE="bubble_slow",m2.SLOW_MODE_OFF="text_bubble",m2.SOCIAL="person_child",m2.SPARKLE="sparkles",m2.SPARK_IMAGE="image_spark",m2.SPARK_RADAR="spark_waves",m2.SPARK_VIDEO="video_spark",m2.SPEAKER_GROUP="speaker_stack",m2.SPEAKER_OFF="speaker_slash",
m2.SPEED_1X="n1x",m2.SPEED_1_POINT_2X="n1point2x",m2.SPEED_1_POINT_5X="n1point5x",m2.SPEED_1_POINT_8X="n1point8x",m2.SPEED_2X="n2x",m2.SPONSORSHIP_STAR="star_circle",m2.SPORTS="basketball",m2.SPOTLIGHT="spotlight",m2.STAFF_PICK="spotlight",m2.START_DVR="add",m2.STAR_BORDER="star",m2.STAR_CIRCLE_RIBBON="memberships_gift",m2.STAR_HALF="star_half_filled",m2.STAR_SHOOTING="hype",m2.STICKER="sticker",m2.STICKER_EMOTICON="face_happy",m2.STOP_DVR="stop",m2.SUBSCRIBE="youtube",m2.SUBSCRIBE_PLUS="add",m2.SUBSCRIPTION_MANAGER=
"gear",m2.SUPERSTAR="super_star",m2.SUPERVISOR_ACCOUNT="person_child",m2.SUPER_CHAT_FOR_GOOD="hands_heart",m2.SWAP_HORIZ="arrow_swap_horizontal",m2.SWITCH_ACCOUNTS="person_square_stack",m2.TAB_ACCOUNT="person",m2.TAB_ACTIVITY="bell",m2.TAB_BOOKMARK="bookmark",m2.TAB_EXPLORE="compass",m2.TAB_HOME="home",m2.TAB_HOME_CAIRO="home",m2.TAB_INBOX="mail",m2.TAB_LIKED="thumb_up",m2.TAB_MUSIC_PREMIUM="youtube_music",m2.TAB_SHORTS="shorts",m2.TAB_SHORTS_CAIRO="shorts",m2.TAB_SUBSCRIPTIONS="subscriptions",m2.TAB_SUBSCRIPTIONS_CAIRO=
"subscriptions",m2.TAB_TRENDING="trending",m2.TARGET="target",m2.TARGET_ADD="target_add",m2.TEMPLATE_ADD="template_add",m2.TEXT="font",m2.TICKET_STAR="star_ticket",m2.TIMER="stopwatch",m2.TRENDING_CAIRO="trending",m2.TRENDING_DOWN="arrow_trend_down",m2.TRENDING_UP="arrow_trend_up",m2.TROPHY_CAIRO="trophy",m2.TROPHY_CELEBRATIONS="fireworks",m2.TROPHY_STAR="star_trophy",m2.TUNE="adjust",m2.TV_OFF="tv_slash",m2.UNBLOCK_USER="minus_circle",m2.UNFAVORITE="thumb_down",m2.UNLIMITED="youtube",m2.UNPLUGGED_LIVE_GUIDE=
"live",m2.UNPLUGGED_SPORTS="eye_slash",m2.UPLOADS="play_square_stack",m2.UP_ARROW="arrow_up",m2.VERTICAL_ALIGN_BOTTOM="chevron_down_end",m2.VERTICAL_ALIGN_TOP="chevron_up_end",m2.VERY_HAPPY="face_very_happy",m2.VERY_SAD="face_very_sad",m2.VIDEOS="play_circle",m2.VIDEO_CALL="video_camera_add",m2.VIDEO_LIBRARY_WHITE="play_square_stack",m2.VIDEO_QUALITY_4K="n4k",m2.VIDEO_QUALITY_8K="n8k",m2.VIDEO_YOUTUBE="youtube",m2.VIEW_LIST_CAIRO="view_list",m2.VIEW_MODULE="view_column3_row2",m2.VISIBILITY="eye",
m2.VISIBILITY_OFF="eye_slash",m2.VOLUME_DOWN="volume_min",m2.VOLUME_MUTE="volume_mute",m2.VOLUME_OFF="volume_mute",m2.VOLUME_STABLE="stable_volume",m2.VOLUME_UP="volume_max",m2.WALLPAPER="image",m2.WARNING="alert_triangle",m2.WATCH_HISTORY="history",m2.WATCH_HISTORY_CAIRO="history",m2.WATCH_LATER="clock",m2.WATCH_LATER_CAIRO="clock",m2.WATCH_RELATED_MIX="mix",m2.WHAT_TO_WATCH="home",m2.YOUTUBE_LINKED_TV="tv_mobile",m2.YOUTUBE_MUSIC_MONOCHROME="youtube_music",m2.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",
m2.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",m2.YOUTUBE_SHORTS_ARROW_UP="arrow_up",m2.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",m2.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",m2.YOUTUBE_SHORTS_OUTLINE_24="shorts",m2);var nSL={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,
9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],
[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,
4,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,
3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,
2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],
library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,
3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,
3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,
1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,
13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,
3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,1,
24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var uWL={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,
1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,
1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,
2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,
4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,
1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,
13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,
1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,
6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,
7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],
[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],
playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,
2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,
24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,
24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,
2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,
2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,
8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],
text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,
5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,
48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],
[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,
8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var YrL={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"},sU=function(O){this.iconUrlProvider=O};
sU.prototype.resolveIcon=function(O,x){var e=YrL[O.iconName.toUpperCase()];e&&(O.iconName=e);var l=O.iconName;l=l.replace(/-/g,"_");O=Object.assign({},O,{iconName:this.mapIconTypeToStandardName(l,!!e)||l.toLowerCase()});if(_.t("enable_web_delhi_icons")||e){var C;return OFm(uWL,O,((C=this.iconUrlProvider)==null?void 0:C.getYtStandardUrl)||CWL,x)}var Q;return OFm(nSL,O,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||lkW,x)};
sU.prototype.mapIconTypeToStandardName=function(O,x){return _.t("enable_web_delhi_icons")||x?dxh[O.toUpperCase()]:KgL[O.toUpperCase()]};
sU[Fc]=[_.D0(ziu)];var BXQ=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),vSQ=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),ftT=function(O){this.urlProvider=this.iconUrlProvider=O};
_.c(ftT,sU);
ftT.prototype.resolveIcon=function(O,x){O.iconName==="youtube_logo"&&(O.iconName="yt-logo-updated");if(O.iconName==="youtube_premium_logo"||O.iconName==="youtube_red_logo")O.iconName="yt-logo-red-updated";var e=Object.assign({},O);O.iconName==="menu"&&(_.t("enable_web_delhi_icons")||(e.iconName="bars_3"),e.iconStyle="youtube_outline");O.iconSetName==="socialNetworksRound"&&(O.iconName==="mail"&&(e.iconName="email"),O.iconName==="embed"&&(e.iconSize=60));O.iconName==="more"&&(e.iconName="overflow_horizontal");
O.iconName==="fullscreen"&&(e.iconName="screen_full");O.iconName==="premium_standalone"&&(e.iconName="premium_standalone_cairo");_.t("enable_connect_icon_update_web")&&O.iconName==="account_linked"&&(e.iconName="circles_overlap_check",e.iconStyle="youtube_fill");_.t("enable_connect_icon_update_web")&&O.iconName==="account_unlinked"&&(e.iconName="circles_overlap",e.iconStyle="youtube_outline");BXQ.has(O.iconName)&&(e.iconStyle="youtube_fill");_.t("enable_web_delhi_icons")&&(O.iconName==="playlist_add"&&
(e.iconName="bookmark"),O.iconName==="offline_pin"&&(e.iconName="arrow_down_circle",e.iconStyle="youtube_fill"),vSQ.has(O.iconName)&&(e.iconName+="_updated"));O=Object.assign({},e,{iconName:(sU.prototype.mapIconTypeToStandardName.call(this,e.iconName)||e.iconName).toLowerCase()});var l;return(O=OFm(WgL,O,((l=this.urlProvider)==null?void 0:l.getUrl)||Q_n,x))?O:sU.prototype.resolveIcon.call(this,e,x)};
ftT[Fc]=[_.D0(ziu)];_.JSL=1;var W3=function(O,x){this.JSC$17439_commandHandler=O;this.innertubeTransportService=x};
_.c(W3,CN);W3.prototype.resolveCommand=function(O,x){var e=this,l,C,Q;return _.A(function(L){return(l=_.q(O,bhD))?L.return(wOT(e,l,(C=x)==null?void 0:(Q=C.form)==null?void 0:Q.element)):L.return()})};
var wOT=function(O,x,e){x={profileCardContext:x.profileCardContext,profileOwnerExternalChannelId:x.profileOwnerExternalChannelId};var l=_.YE(LTp);return _.NK(O.innertubeTransportService,x,l).then(function(C){if(!C)throw new _.ry("GetProfileCard failed");if(C=C.popupCommand){O.JSC$17439_commandHandler.resolveCommand(C,{form:{element:e}});_.tx(_.k0(),66557);C=C==null?void 0:C.clickTrackingParams;var Q=_.q9();C&&Q&&_.k0().graftServerVe(C,Q)}})};
W3[Fc]=[_.Xc,_.IF];var h$=function(){};
_.c(h$,CN);h$.prototype.resolveCommand=function(O){var x,e;return _.A(function(l){x=_.q(O,XY4);if(!x)return l.return();e=Number(x.enableDelayedPacfLoggingTvMs);if(isNaN(e)){var C=re();rW3(C,x,0)}else rW3(re(),x,e);_.Ra(l)})};_.zE=function(){};
_.c(_.zE,CN);
_.zE.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G;return _.A(function(X){l=_.q(O,osJ);Q=(C=x.form)==null?void 0:C.element;k=(L=Q)==null?void 0:L.closest("ytd-enforcement-message-view-model");if(!l||!k)return X.return();e.allowAdsAction||(M=l.fundingChoiceInstructionPageUrl,e.allowAdsAction=new TlJ(window,_.f$(M)));var y=e.allowAdsAction;y.wallElement=k;y.allowAdsPopup.style.setProperty("display","flex","important");var Z=y.scrollManager;Z.originalBodyOverflow=Z.JSC$9995_domHelper.JSC$9321_document_.body.style.overflow;Z.JSC$9995_domHelper.JSC$9321_document_.body.style.overflow=
"hidden";y.wallElement.style.setProperty("display","none","important");Z$J(y.accessibilityManager,y.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((G=e.allowAdsAction.allowAdsPopup)&&G instanceof HTMLElement)for(y=_.T(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Z=y.next();!Z.done;Z=y.next()){var E=_.T(Z.value);Z=E.next().value;E=E.next().value;G.style.setProperty(Z,E)}_.Ra(X)})};
_.zE.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var rW=function(){};
_.c(rW,CN);rW.prototype.resolveCommand=function(O){var x;return _.A(function(e){x=_.q(O,qgT);if(!x)return e.return();UvW(O);_.Ra(e)})};var SrY=new _.iR("SESSION_STORAGE");var H3=function(O){this.sessionStorage=O("conversations")};
_.c(H3,CN);H3.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){e=_.q(O,RUJ);if(!e)return l.return();e.conversationId?x.sessionStorage.set("conversation_id",e.conversationId):x.sessionStorage.remove("conversation_id");_.Ra(l)})};
H3[Fc]=[SrY];var KW=function(O){this.JSC$17459_commandHandler=O};
_.c(KW,CN);
KW.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1){e=_.q(O,Jdp);if((l=e)==null||!l.text||!navigator.clipboard)return X.return();_.tS(X,2);return X.yield(navigator.clipboard.writeText(e.text),4)}if(X.nextAddress!=2){if(!e.successActions||e.successActions.length===0)return X.return();C=_.T(e.successActions);for(Q=C.next();!Q.done;Q=C.next())L=Q.value,x.JSC$17459_commandHandler.resolveCommand(L);return _.lb(X,0)}_.VP(X);if(!e.failureActions||e.failureActions.length===
0)return X.return();k=_.T(e.failureActions);for(M=k.next();!M.done;M=k.next())G=M.value,x.JSC$17459_commandHandler.resolveCommand(G);_.Ra(X)})};
KW[Fc]=[_.Xc];var dW=function(O){this.JSC$17463_commandHandler=O};
_.c(dW,CN);
dW.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){switch(E.nextAddress){case 1:l=_.q(O,UA4);if(!l)return E.return();_.tS(E,2);if(!l.imageBytes&&!l.imageUrl)throw Error("Hi");if(!l.imageUrl){if(l.imageBytes){Q=l.imageBytes;L=Q.replace(/-/g,"+").replace(/_/g,"/");var P=L4i(L);C=_.Bw(P)}E.jumpTo(4);break}return E.yield(fetch(l.imageUrl),5);case 5:return k=E.yieldResult,E.yield(k.blob(),6);case 6:M=E.yieldResult,C=_.Bw(M);case 4:y=(G=x)==null?void 0:(X=G.form)==
null?void 0:X.element;Z=document.createElement("a");J7(Z,C);y.appendChild(Z);Z.download="";Z.click();y.removeChild(Z);URL.revokeObjectURL(_.Hw(C));l.successCommand&&e.JSC$17463_commandHandler.resolveCommand(l.successCommand);_.lb(E,0);break;case 2:_.VP(E),l.errorCommand&&e.JSC$17463_commandHandler.resolveCommand(l.errorCommand),_.Ra(E)}})};
dW[Fc]=[_.Xc];var nW=function(O){this.store=O};
_.c(nW,CN);nW.prototype.resolveCommand=function(O){var x=this,e,l,C;return _.A(function(Q){l=(e=_.q(O,_.iqV))==null?void 0:e.entityBatchUpdate;if(!l)return Q.jumpTo(0);C=Object.assign({},l,{mutations:[].concat(_.Kx(l.mutations||[]))});return Q.yield(_.b9(C,x.store),0)})};var jaQ=function(O){this.JSC$17470_commandHandler=O;this.feedbackDialogMap=new Map};
jaQ.prototype.openDialog=function(O,x){(O=this.feedbackDialogMap.get(O))&&this.JSC$17470_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:O}},x)};
jaQ[Fc]=[_.Xc];var u3=new _.iR("FEEDBACK_CONTROLLER_TOKEN");var YN=new _.iR("APP_STORE_TOKEN");var B3=function(O,x){this.store=O;this.controller=x};
_.c(B3,CN);B3.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u;return _.A(function(Y){if(Y.nextAddress==1){l=_.q(O,_.Ee);if(Q=(C=l)==null?void 0:C.contentId)for(k=_.T(((L=l)==null?void 0:L.actions)||[]),M=k.next();!M.done;M=k.next())G=M.value,NXw(e,G,Q);Z=(X=x)==null?void 0:(y=X.form)==null?void 0:y.element;return Y.yield(_.N9(Z,[O,{impression:(E=x)==null?void 0:E.disableClickTracking}]).catch(function(){}),2)}P=Y.yieldResult;
((U=P)==null?0:(W=U.data)==null?0:(z=W.feedbackResponses)==null?0:z.length)&&(f=(r=P.data.feedbackResponses[0])==null?void 0:r.followUpDialog)&&Q&&(u=e.controller)!=null&&u.feedbackDialogMap.set(Q,f);_.Ra(Y)})};
var NXw=function(O,x,e){var l=_.q(x,_.ih);if(l){l=_.T(l.commands||[]);for(var C=l.next();!C.done;C=l.next())NXw(O,C.value,e)}_.q(x,_.Vq)&&O.store.dispatch(_.Dc("commandEntity",$fL(e),{key:e,command:x}));_.q(x,G6d)&&O.store.dispatch(_.Dc("commandEntity",$fL(e),{key:e,command:x}))};
B3[Fc]=[YN,u3];var v3=function(O){this.controller=O};
_.c(v3,CN);v3.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L;return _.A(function(k){l=_.q(O,_.Nu);Q=(C=l)==null?void 0:C.targetId;if(((L=l)==null?void 0:L.signal)!=="TELL_US_WHY"||!Q)return k.return();e.controller.openDialog(Q,x);_.Ra(k)})};
v3[Fc]=[u3];var fW=function(O){this.store=O};
_.c(fW,CN);fW.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G;return _.A(function(X){l=_.q(O,$HV);Q=(C=l)==null?void 0:C.contentId;M=(L=x)==null?void 0:(k=L.form)==null?void 0:k.element;G=_.N9(M,[O]);Q&&e.undo(Q);return X.yield(G,0)})};
fW.prototype.undo=function(O){this.store.dispatch(_.Dc("commandEntity",$fL(O),{key:O,command:void 0}))};
fW[Fc]=[YN];var J$=function(O){this.JSC$17485_commandHandler=O};
_.c(J$,CN);J$.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G;return _.A(function(X){e=_.q(O,B2R);l=e.flowStateKey;C=e.validationFailureCommand;Q=e.submitValidFormCommand;L=Cir(_.Hb,[l||""]);k=_.q(L,J5p);((M=k)==null?0:M.isValid)&&Q&&x.JSC$17485_commandHandler.resolveCommand(Q);((G=k)==null?0:G.isValid)||!C||x.JSC$17485_commandHandler.resolveCommand(C);_.Ra(X)})};
J$[Fc]=[_.Xc];var wW=function(O){this.innertubeTransportService=O};
_.c(wW,CN);wW.prototype.resolveCommand=function(O,x){var e=this,l;return _.A(function(C){return C.yield(_.z7(e.innertubeTransportService,O,(l=x)==null?void 0:l.form).then(function(Q){var L,k;x==null||(L=x.commandController)==null||(k=L.onSuccess)==null||k.call(L,O,Q)},function(Q){var L,k;
x==null||(L=x.commandController)==null||(k=L.onServerError)==null||k.call(L,O,Q)}),0)})};
wW[Fc]=[_.IF];var ST=function(){};
_.c(ST,CN);ST.prototype.resolveCommand=function(O){var x,e,l,C;return _.A(function(Q){if(x=_.q(O,_.dzJ)){if(e=x.gtmId)l=_.wz("GL",""),_.Yq(e,l);(C=x.gtmData)&&_.Br(C)}_.Ra(Q)})};var jT=function(O,x,e){this.innertubeTransportService=O;this.JSC$17496_actionRouter=x;this.JSC$17496_screenManager=e};
_.c(jT,CN);jT.prototype.resolveCommand=function(O){var x=this,e,l;return _.A(function(C){e=_.q(O,nsp);if(!e)return C.return();l=e.command;if(!l)return C.return();x.JSC$17496_actionRouter.triggerAction("yt-insert-rich-section-action",e);return C.yield(_.z7(x.innertubeTransportService,l,{disableCache:!0}).then(function(Q){O.clickTrackingParams&&(Q==null?0:Q.trackingParams)&&x.JSC$17496_screenManager.graftServerVe(Q.trackingParams,_.Fv(O.clickTrackingParams))}),0)})};
jT[Fc]=[_.IF,kj,_.vt];AuL.bind(null,Q3);var gS4=AuL.bind(null,$E2);D6r.bind(null,Q3);var $xw=D6r.bind(null,$E2);F4r.bind(null,Q3);var ixL=F4r.bind(null,$E2);var N2=function(){};
_.c(N2,CN);
N2.prototype.resolveCommand=function(O){var x,e,l,C,Q,L,k,M,G,X;return _.A(function(y){x=_.q(O,cPp);if(!x)return y.return();l=((e=x.operations)==null?void 0:e.operations)||[];C=_.T(l);for(Q=C.next();!Q.done;Q=C.next())if(L=Q.value,L.insertItemSectionContent){var Z=L.insertItemSectionContent,E=Z.contents||[];Z.insertByPositionInSection?gS4(Z.insertByPositionInSection.sectionTargetId,E,Z.insertByPositionInSection.position):Z.insertByRelativePositionInSection&&Z.insertByRelativePositionInSection.sectionTargetId&&Z.insertByRelativePositionInSection.itemTargetId&&
$xw(Z.insertByRelativePositionInSection.sectionTargetId,Z.insertByRelativePositionInSection.itemTargetId,E,Z.insertByRelativePositionInSection.relativePosition)}else L.replaceSection?(Z=L.replaceSection,E={},Z.replaceByTargetId?E=Z.replaceByTargetId:Z.replaceByGroupId&&(E={targetId:Z.replaceByGroupId.groupId,newContent:Z.replaceByGroupId.newContent,undoKey:""}),E.newContent&&xWk(E.targetId,{continuationItems:[E.newContent]})):L.removeItem?(Z=L.removeItem,Z.removeByTargetId&&Z.sectionTargetId&&ixL(Z.sectionTargetId,
Z.removeByTargetId.targetIds||[])):L.removeSection&&(L.removeSection.removeByTargetId?(k=void 0,OuL(((k=L.removeSection)==null?void 0:k.removeByTargetId.targetIds)||[])):L.removeSection.removeByGroupId&&(M=void 0,OuL(((M=L.removeSection)==null?void 0:M.removeByGroupId.groupIds)||[])));X=((G=x.operations)==null?void 0:G.scrollConfig)||{};xMp(X);_.Ra(y)})};
var OuL=function(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next())xWk(x.value,{continuationItems:[]})},xMp=function(O){if(O.scrollToItem){var x=O.scrollToItem.item||{},e=x.itemTargetId;
x=x.sectionTargetId;if(e&&x){var l=document.querySelector("[data-target-id="+x+"]"),C=l==null?void 0:l.querySelector("[data-target-id="+e+"]");l&&C&&setTimeout(function(){var Q=C.offsetTop-l.offsetTop,L;if(((L=O.scrollToItem)==null?void 0:L.scrollPosition)==="SCROLL_POSITION_CENTER")Q-=l.offsetHeight/2,Q+=C.offsetHeight/2;else{var k;((k=O.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_END"&&(Q-=l.offsetHeight,Q+=C.offsetHeight)}l.scroll({top:Q,behavior:"smooth"})},100)}}};var gW=new _.iR("CLIENT_NAME_TOKEN");var eQ$=new _.iR("DEFAULT_STORE_EXPIRATION_TOKEN");var D1V=new _.iR("CLIENT_LOCATION_SERVICE_TOKEN");var $N=function(O,x,e){this.clientName=O||_.wz("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=x||_.y9.getInstance();this.JSC$17524_commandHandler=e||_.lV.instance};
_.c($N,CN);$N.prototype.resolveCommand=function(O){var x=this,e,l;return _.A(function(C){l=(e=_.q(O,CQz))==null?void 0:e.onComplete;x.clientLocationService.clearLocationPlayabilityToken(x.clientName);l&&x.JSC$17524_commandHandler.resolveCommand(l);_.Ra(C)})};
$N[Fc]=[gW,D1V,_.Xc];var i3=function(O){this.innertubeTransportService=O};
_.c(i3,CN);i3.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L;return _.A(function(k){Q=(l=x)==null?void 0:(C=l.form)==null?void 0:C.element;return k.yield(_.z7(e.innertubeTransportService,O,(L=x)==null?void 0:L.form).then(function(M){PTr(Q,new CustomEvent("yt-service-request-completed"),{data:M},_.wz("openPopupConfig"))}),0)})};
i3[Fc]=[_.IF];var OW=function(){};
_.c(OW,CN);OW.prototype.resolveCommand=function(O){var x,e;return _.A(function(l){x=_.q(O,N23);e=document.querySelector("mini-app-container-view-model");if(!x||!e)return l.return();x.isPlaying?e.dispatchEvent(new Event("play")):e.dispatchEvent(new Event("pause"));_.Ra(l)})};var xe=function(){};
_.c(xe,CN);xe.prototype.resolveCommand=function(O){var x,e,l,C,Q,L,k;return _.A(function(M){x=_.q(O,WAp);if((e=x)==null||!e.paramKeys)return M.return();l=x.paramKeys;C=_.xO(window.location.href);Q=_.T(l);for(L=Q.next();!L.done;L=Q.next())k=L.value,C.JSC$10027_queryData_.remove(k);window.history.replaceState(window.history.state,document.title,C.toString());_.Ra(M)})};var luQ=function(){this.dropdownMap=new Map};_.Ct$=new _.iR("DROPDOWN_CONTROLLER_TOKEN");var eA=function(O){this.controller=O};
_.c(eA,CN);eA.prototype.resolveCommand=function(O){var x=this,e,l,C,Q;return _.A(function(L){e=_.q(O,AMF);if(!e)return L.return();l=e;C=l.dropdownId;Q=l.selectedOptionIndex;if(C===void 0||Q===void 0)return L.return();var k=x.controller.dropdownMap.get(C);k&&k(Q);_.Ra(L)})};
eA[Fc]=[_.Ct$];var C9=function(O){this.controller=O};
_.c(C9,CN);C9.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){return(e=_.q(O,Zo4))?l.yield(x.controller.closeDialog(),0):l.return()})};
C9[Fc]=[_.JT];var Qj=function(O){this.controller=O};
_.c(Qj,CN);Qj.prototype.resolveCommand=function(O){var x=this,e,l;return _.A(function(C){e=_.q(O,xnR);if(!e)return C.return();var Q,L=e.panelIdentifier||((Q=e.identifier)==null?void 0:Q.tag);if(!L)throw Error("Ii");return(l=L)?C.yield(x.controller.hidePanel(l),0):C.jumpTo(0)})};
Qj[Fc]=[_.Bm];var bJ=function(O){this.controller=O};
_.c(bJ,CN);bJ.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){return(e=_.q(O,B8k))?l.yield(x.controller.closeSheet(),0):l.return()})};
bJ[Fc]=[_.fj];var TI=function(O,x){this.innertubeTransportService=O;this.controller=x};
_.c(TI,CN);TI.prototype.resolveCommand=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return e=_.q(O,eqD),(l=e)!=null&&l.panelId?L.yield(x.controller.getReloadContinuation(e.panelId),2):L.return();if(L.nextAddress!=3)return(C=L.yieldResult)?L.yield(_.z7(x.innertubeTransportService,O,{continuation:C}),3):L.return();Q=L.yieldResult;return L.yield(x.controller.updatePanel({identifier:e.panelId,panelContents:Q.content,shouldFocus:!1}),0)})};
TI[Fc]=[_.IF,_.Bm];var L9=function(O,x,e){this.innertubeTransportService=O;this.JSC$17565_screenManager=x;this.JSC$17565_commandHandler=e};
_.c(L9,CN);
L9.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1){e=_.q(O,_.jdF);if(!e)return M.return();if(e.commands)for(l=_.T(e.commands),C=l.next();!C.done;C=l.next())Q=C.value,x.JSC$17565_commandHandler.resolveCommand(Q,{disableClickTracking:!0});L=_.Fv(O.clickTrackingParams);_.tx(x.JSC$17565_screenManager,21760,L,{layer:7,parentLayer:0});return M.yield(_.z7(x.innertubeTransportService,O),2)}k=M.yieldResult;if(!k)return M.return();x.JSC$17565_screenManager.graftServerVe(k.trackingParams,L,
7);_.Ra(M)})};
L9[Fc]=[_.IF,_.vt,_.Xc];var ke=new _.iR("PANEL_LOADING_STRATEGY_TOKEN");var A4=function(O,x){this.controller=O;this.panelLoadingStrategy=x};
_.c(A4,CN);
A4.prototype.resolveCommand=function(O,x){var e=this,l,C,Q;return _.A(function(L){l=_.q(O,fB$);if((C=l)==null||!C.panelLoadingStrategy)return L.return();Q=function(k){var M,G,X,y,Z,E,P,U,W,z;return _.A(function(r){G=_.q((M=k.dialogViewModel)==null?void 0:M.header,MQT);X={viewModel:k.dialogViewModel};y={};if(P=_.t("web_enable_dialog_header_label")?(Z=G)==null?void 0:(E=Z.headline)==null?void 0:E.content:void 0)y.ariaLabel=P;l.dismissOnBackgroundTap===!1&&(y.isModal=!0);return k.dialogViewModel?r.yield(e.controller.openDialog(X,
(z=(U=x)==null?void 0:(W=U.form)==null?void 0:W.element)!=null?z:document.body,y),0):r.return()})};
return L.yield(e.panelLoadingStrategy.execute({command:O,data:l.panelLoadingStrategy,renderFn:Q,createScreenConfig:{layer:4}}),0)})};
A4[Fc]=[_.JT,ke];var Mv=function(O,x,e){this.innertubeTransportService=O;this.controller=x;this.JSC$17585_screenManager=e};
_.c(Mv,CN);
Mv.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z;return _.A(function(r){switch(r.nextAddress){case 1:l=_.q(O,_.Zr);if(!l)return r.return();var f,u=l.panelIdentifier||((f=l.identifier)==null?void 0:f.tag);if(!u)throw Error("Ii");C=u;return r.yield(e.controller.isVisible(C,!0),2);case 2:if((Q=r.yieldResult)&&l.blockIfPanelOpen)return r.return();M=(k=(L=e.controller).getPanelContent)==null?void 0:k.call(L,C);if(!(f=M))if(l){var Y;f=((Y=l.globalConfiguration)==null?void 0:
Y.initialState)||l.engagementPanel;if(Y=!f)Y=!!(l==null?0:(u=l.engagementPanelPresentationConfigs)==null?0:u.engagementPanelPopupPresentationConfig);Y&&(f=_.Xcs(l.panelIdentifier,l.identifier))}else f=void 0;G=f;X=l.engagementPanelPresentationConfigs;y=l.engagementPanelExtras;return r.yield(e.controller.showPanel({identifier:C,panelContents:G,config:X,extras:y,target:(Z=x)==null?void 0:(E=Z.form)==null?void 0:E.element}),3);case 3:if(!l.globalConfiguration){r.jumpTo(0);break}if(l.globalConfiguration.reuseModelAndState&&
_.t("enable_ai_companion")&&(W=(U=(P=e.controller).getPanelContent)==null?void 0:U.call(P,C)))return r.return();_.tx(e.JSC$17585_screenManager,32633);return r.yield(_.z7(e.innertubeTransportService,O),5);case 5:return z=r.yieldResult,e.JSC$17585_screenManager.graftServerVe(z.trackingParams),r.yield(e.controller.updatePanel({identifier:C,panelContents:z.content,shouldFocus:!0,extras:y,updatePanelContinuationData:z.updatePanelContinuationData}),0)}})};
Mv[Fc]=[_.IF,_.Bm,_.vt];var DJ=function(O,x){this.controller=O;this.panelLoadingStrategy=x};
_.c(DJ,CN);DJ.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X;return _.A(function(y){l=_.q(O,_.k4W);if((C=l)==null||!C.panelLoadingStrategy)return y.return();k=Qnw(e.controller,(Q=x)==null?void 0:(L=Q.form)==null?void 0:L.element);G=(M=l.contextualSheetPresentationConfig)==null?void 0:M.position;X=function(Z){return _.A(function(E){return Z.sheetViewModel?E.yield(e.controller.openSheet({viewModel:Z.sheetViewModel,sheetPosition:G},k),0):E.return()})};
return y.yield(e.panelLoadingStrategy.execute({command:O,data:l.panelLoadingStrategy,renderFn:X,createScreenConfig:{layer:0}}),0)})};
DJ[Fc]=[_.fj,ke];var GI=function(O,x){this.controller=O;this.JSC$17596_commandHandler=x};
_.c(GI,CN);GI.prototype.resolveCommand=function(O,x){var e=this,l,C,Q;return _.A(function(L){if(L.nextAddress==1){l=_.q(O,bL3);var k=_.q(l.showCommand,_.Zr),M,G,X=(G=k==null?void 0:k.panelIdentifier)!=null?G:k==null?void 0:(M=k.identifier)==null?void 0:M.tag;if(!X)throw Error("Ji");C=X;return L.yield(e.controller.isVisible(C),2)}return(Q=L.yieldResult)?L.yield(e.controller.hidePanel(C),0):L.yield(e.JSC$17596_commandHandler.resolveCommand(l.showCommand,x),0)})};
GI[Fc]=[_.Bm,_.Xc];var FE=function(O,x,e){this.innertubeTransportService=O;this.controller=x;this.JSC$17599_screenManager=e};
_.c(FE,CN);
FE.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8;return _.A(function(Xr){switch(Xr.nextAddress){case 1:return l=e=_.q(O,Acd),C=l.targetPanelIdentifier,Q=l.contentSourcePanelIdentifier,L=l.globalConfiguration,((k=C)==null?0:k.tag)&&((M=Q)==null?0:M.tag)?L?Xr.yield(x.controller.showPanel({identifier:C.tag,panelContents:_.Xcs(C.tag,C)}),5):Xr.yield((Z=(y=x.controller).getPanel)==null?void 0:Z.call(y,Q.tag),4):Xr.return();case 4:E=Xr.yieldResult;G=(P=E)==
null?void 0:(W=(U=P).getPanelContent)==null?void 0:W.call(U);Xr.jumpTo(3);break;case 5:return Xr.yield(_.z7(x.innertubeTransportService,O),6);case 6:z=Xr.yieldResult,((r=z)==null?0:r.trackingParams)&&x.JSC$17599_screenManager.graftServerVe(z.trackingParams),G=(f=z)==null?void 0:f.content,X=(u=z)==null?void 0:u.updatePanelContinuationData;case 3:if(J=(Y=G)==null?void 0:Y.engagementPanelSectionListRenderer)return Xr.yield(x.controller.showPanel({identifier:C.tag,panelUpdatableFields:{content:J.content,
secondaryHeaderContent:(O8=J.header)!=null?O8:{},targetId:J.targetId},updatePanelContinuationData:X}),0);Xr.jumpTo(0)}})};
FE[Fc]=[_.IF,_.Bm,_.vt];var XE=function(){};
_.c(XE,CN);XE.prototype.resolveCommand=function(O){var x,e,l;return _.A(function(C){if(C.nextAddress==1)return(x=_.q(O,Fw$))?C.yield(_.xp(),2):C.return();e=C.yieldResult;if(!e)return C.return();var Q=e,L=(l=x)==null?void 0:l.languageCode,k;(Q==null?0:(k=Q.isReady)==null?0:k.call(Q))&&(L=o3r(Q,L))&&Q.setAudioTrack(L);_.Ra(C)})};var oc=function(){};
_.c(oc,CN);var bu$=function(O){var x;return _.A(function(e){x=_.wz("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;O.JSC$17610_mainAppPlayer=new DB(x);document.addEventListener("yt-page-data-updated",O.JSC$17610_pauseOnNavigation.bind(O));_.Ra(e)})};
oc.prototype.JSC$17610_pauseOnNavigation=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1)return x=O.JSC$17610_mainAppPlayer,l.yield(x.api,2);e=l.yieldResult;e.pauseVideo();_.Ra(l)})};
var Tce=function(O,x,e){var l;return _.A(function(C){l=O.JSC$17610_mainAppPlayer;return C.yield(l.loadVideoWithPlayerVars({videoId:x,audio_only:"1",player_params:e}),0)})};
oc.prototype.pauseVideo=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1)return x=O.JSC$17610_mainAppPlayer,l.yield(x.api,2);e=l.yieldResult;e.pauseVideo();_.Ra(l)})};
oc.prototype.playVideo=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1)return x=O.JSC$17610_mainAppPlayer,l.yield(x.api,2);e=l.yieldResult;e.playVideo();_.Ra(l)})};
var LOp=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return x=O.JSC$17610_mainAppPlayer,l.yield(x.api,2);e=l.yieldResult;e.mute();_.Ra(l)})},kJh=function(O){var x,e;
return _.A(function(l){if(l.nextAddress==1)return x=O.JSC$17610_mainAppPlayer,l.yield(x.api,2);e=l.yieldResult;e.unMute();_.Ra(l)})},AjO=function(O,x){return _.A(function(e){switch(e.nextAddress){case 1:switch(x){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return e.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return e.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return e.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return e.jumpTo(5)}e.jumpTo(0);break;case 2:return e.yield(O.playVideo(),7);case 7:e.jumpTo(0);break;case 3:return e.yield(O.pauseVideo(),8);case 8:e.jumpTo(0);break;case 4:return e.yield(LOp(O),9);case 9:e.jumpTo(0);break;case 5:return e.yield(kJh(O),10);case 10:e.jumpTo(0)}})};
oc.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){return E.nextAddress==1?(e=_.q(O,YNd),((l=e)==null?0:l.newPlaybackParams)||((C=e)==null?0:C.controlAction)?x.JSC$17610_mainAppPlayer?E.jumpTo(2):E.yield(bu$(x),2):E.return()):((Q=e)==null?0:Q.newPlaybackParams)?(M=(L=e)==null?void 0:(k=L.newPlaybackParams)==null?void 0:k.externalVideoId,Z=(y=(G=e)==null?void 0:(X=G.newPlaybackParams)==null?void 0:X.playerParams)!=null?y:"",M?E.yield(Tce(x,M,Z),0):E.return()):
E.yield(AjO(x,e.controlAction),0)})};var yj=function(O){this.JSC$17617_commandHandler=O};
_.c(yj,CN);
yj.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return(e=_.q(O,XuR))?M.yield(_.xp(),2):M.return();l=M.yieldResult;if(!l)return M.return();var G=l,X=(C=e)==null?void 0:C.languageCode,y=(Q=e)==null?void 0:Q.isAutoTranslated;G.getVideoData&&_.ZFV(G).length&&((X=t8r(G,X,y))?G.setOption("captions","track",X):(G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{})));L=l.isSubtitlesOn()?_.CZ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.CZ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");k=_.v1(L,5E3);x.JSC$17617_commandHandler.resolveCommand(k);_.Ra(M)})};
yj[Fc]=[_.Xc];var ZJ=function(O,x){this.shortsPlayerPromise=O;this.JSC$17621_commandHandler=x};
_.c(ZJ,CN);
ZJ.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1)return(e=_.q(O,HLT))?X.yield(x.shortsPlayerPromise,2):X.return();l=X.yieldResult;var y=qGw(l);y!=null&&y.length||(l.loadModule("captions"),y=qGw(l));C=y;if((Q=C)==null||!Q.length)return L=_.CZ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.v1(L),x.JSC$17621_commandHandler.resolveCommand(k),X.return();l.toggleSubtitles();M=l.isSubtitlesOn()?_.CZ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.CZ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");G=_.v1(M);x.JSC$17621_commandHandler.resolveCommand(G);_.Ra(X)})};
ZJ[Fc]=[_.mV3,_.Xc];var EW=function(O){this.JSC$17624_actionRouter=O;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(x,e){x.triggerAction("yt-dismiss-shopping-timely-shelf-action",e)}]])};
_.c(EW,CN);EW.prototype.resolveCommand=function(O){var x=this,e,l,C;return _.A(function(Q){e=_.q(O,Ejd);if((l=e)==null||!l.overlayId)return Q.return();C=x.dismissPlayerOverlayActions.get(e.overlayId);if(!C)throw Error("Ki`"+e.overlayId);C(x.JSC$17624_actionRouter,e);_.Ra(Q)})};
EW[Fc]=[kj];var t4=function(O){this.JSC$17628_playerPromise=O};
_.c(t4,CN);t4.prototype.resolveCommand=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return(e=_.q(O,CX4))?L.yield(x.JSC$17628_playerPromise,2):L.return();l=L.yieldResult;C=l.getVideoData().video_id;e.videoId===C&&(Q=Number(e.offsetFromVideoStartMilliseconds),Q>=0&&l.seekTo(Q/1E3));_.Ra(L)})};
t4[Fc]=[_.N5];var MNh=_.OQ("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),qv=function(O){this.store=O};
_.c(qv,CN);
var DML=function(O){var x,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return x=_.wz("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,e=_.wz("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,l=x||e,O.JSC$17632_mainAppPlayer=new DB(l),Q.yield(O.JSC$17632_mainAppPlayer.api,2);C=Q.yieldResult;C.addEventListener("onStateChange",O.JSC$17632_playerStateChangeListener.bind(O));document.addEventListener("yt-page-data-updated",O.JSC$17632_pauseOnNavigation.bind(O));window.addEventListener("state-navigatestart",
O.JSC$17632_pauseOnNavigation.bind(O));_.Ra(Q)})};
qv.prototype.JSC$17632_playerStateChangeListener=function(O){switch(O){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"}GJh(this)};
var GJh=function(O){O.store.dispatch(_.Dc("sfvAudioItemCurrentlyPlayingEntity",MNh,{key:MNh,externalVideoId:O.externalVideoId,sfvAudioItemPlaybackState:O.playbackState,nowPlayingEntityValue:O.nowPlayingEntityValue}))};
qv.prototype.JSC$17632_pauseOnNavigation=function(){var O=this,x,e,l,C;return _.A(function(Q){if(Q.nextAddress==1){if(!O.JSC$17632_mainAppPlayer){var L=new _.ry("Error: mainAppPlayer is unavailable",O.JSC$17632_mainAppPlayer);_.BH(L);return Q.return()}return Q.yield(O.JSC$17632_mainAppPlayer.api,2)}x=Q.yieldResult;l=(e=x)==null?void 0:e.getPlayerState();l!==1||(C=x)!=null&&C.pauseVideo();_.Ra(Q)})};
qv.prototype.playVideo=function(O,x,e){var l=this,C,Q;return _.A(function(L){if(L.nextAddress==1)return L.yield((C=l.JSC$17632_mainAppPlayer)==null?void 0:C.api,2);Q=L.yieldResult;if(!l.JSC$17632_mainAppPlayer||!Q){var k=new _.ry("Error: mainAppPlayer is unavailable",l.JSC$17632_mainAppPlayer);_.BH(k);return L.return()}return L.yield(l.JSC$17632_mainAppPlayer.loadVideoWithPlayerVars({videoId:l.externalVideoId,audio_only:"1",start:O/1E3,end:O/1E3+x,player_params:e}),0)})};
qv.prototype.pauseVideo=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1){if(!O.JSC$17632_mainAppPlayer){var C=new _.ry("Error: mainAppPlayer is unavailable",O.JSC$17632_mainAppPlayer);_.BH(C);return l.return()}return l.yield(O.JSC$17632_mainAppPlayer.api,2)}x=l.yieldResult;(e=x)==null||e.pauseVideo();_.Ra(l)})};
qv.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u;return _.A(function(Y){if(Y.nextAddress==1)return e=_.q(O,WPz),C=(l=e)==null?void 0:l.nowPlayingEntityValue,L=(Q=e)==null?void 0:Q.externalVideoId,y=Number((X=(k=e)==null?void 0:(M=k.defaultStartPoints)==null?void 0:(G=M[0])==null?void 0:G.offsetMs)!=null?X:"0"),z=Number((W=(Z=e)==null?void 0:(E=Z.defaultStartPoints)==null?void 0:(P=E[0])==null?void 0:(U=P.duration)==null?void 0:U.seconds)!=null?W:"15"),u=(f=
(r=e)==null?void 0:r.playerParams)!=null?f:"",C&&L?x.JSC$17632_mainAppPlayer?Y.jumpTo(2):Y.yield(DML(x),2):Y.return();if(Y.nextAddress!=6){if(x.nowPlayingEntityValue&&C===x.nowPlayingEntityValue)return x.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?Y.yield(x.pauseVideo(),0):Y.yield(x.playVideo(y,z,u),0);x.externalVideoId=L;x.nowPlayingEntityValue=C;x.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return Y.yield(x.playVideo(y,z,u),6)}GJh(x);return Y.jumpTo(0)})};
qv[Fc]=[fM];var Pl=function(O){this.JSC$17650_commandHandler=O};
_.c(Pl,CN);Pl.prototype.resolveCommand=function(O,x){var e=this,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return(l=_.q(O,ojT))?L.yield(_.xp(),2):L.return();C=L.yieldResult;if(!C)return L.return();(Q=PWn(C))&&e.JSC$17650_commandHandler.resolveCommand(Q,x);_.Ra(L)})};
Pl[Fc]=[_.Xc];var cl=function(O){this.JSC$17656_commandHandler=O};
_.c(cl,CN);cl.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return(l=_.q(O,yx4))?M.yield(_.xp(),2):M.return();C=M.yieldResult;if(!C)return M.return();(Q=RyL(C))?e.JSC$17656_commandHandler.resolveCommand(Q,x):(L=_.CZ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.v1(L),e.JSC$17656_commandHandler.resolveCommand(k));_.Ra(M)})};
cl[Fc]=[_.Xc];var Ic=function(O){this.JSC$17659_playerPromise=O};
_.c(Ic,CN);Ic.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){e=_.q(O,Qd3);if(!e)return k.return();l=e.overlayRenderer;return l?(C=_.q(l,R4k))?k.yield(x.JSC$17659_playerPromise,3):k.jumpTo(0):k.return()}Q=k.yieldResult;Q.renderChapterSeekingAnimation(1,_.db(C.text),(L=C.icon)==null?void 0:L.iconType);_.Ra(k)})};
Ic[Fc]=[_.N5];var Vj=function(O){this.store=O};
_.c(Vj,CN);
Vj.prototype.resolveCommand=function(O){var x=this,e,l,C;return _.A(function(Q){if(Q.nextAddress==1){e=_.q(O,Bv2);if(!e)return Q.return();l="";(C=x.store.getState().collabInviteLink)&&e.id===C.playlistId?l=C.inviteLinkURL:e.shortUrl&&(l=e.shortUrl);return l?Q.yield(navigator.clipboard.writeText(l),3):Q.jumpTo(0)}var L={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CZ("COPY_LINK_SUCCESS_TOAST")}}}}};_.GG().resolve(_.Xc).resolveCommand(L);_.Ra(Q)})};
Vj[Fc]=[YN];var p9=function(O,x){this.innertubeTransportService=O;this.JSC$17669_commandHandler=x};
_.c(p9,CN);p9.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){if(E.nextAddress==1)return(l=_.q(O,_.Ns))?E.yield(_.z7(e.innertubeTransportService,O,(C=x)==null?void 0:C.form),2):E.return();(Q=E.yieldResult)&&Q.errorMetadata&&(L=Q,k=_.v1(L.error.message),e.JSC$17669_commandHandler.resolveCommand(k));M=Q;if((G=M)==null?0:G.actions)for(X=_.T(M.actions),y=X.next();!y.done;y=X.next())Z=y.value,e.JSC$17669_commandHandler.resolveCommand(Z);_.Ra(E)})};
p9[Fc]=[_.IF,_.Xc];var Rc=function(){};
_.c(Rc,CN);Rc.prototype.resolveCommand=function(O){var x;return _.A(function(e){x=_.q(O,Wid);if(!x)return e.return();(new RKT(x)).show();_.Ra(e)})};_.UW=new _.iR("PLAYLIST_EDIT_CONTROLLER_TOKEN");var ac=function(O,x,e,l){this.store=O;this.innertubeTransportService=x;this.controller=e;this.JSC$17677_commandHandler=l};
_.c(ac,CN);
ac.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr,mL,Zn,q$;return _.A(function(KV){if(KV.nextAddress==1){l=_.q(O,_.vj);if(!l)return KV.return();if(l.clientActions){C=_.T(l.clientActions);for(Q=C.next();!Q.done;Q=C.next())L=Q.value,e.JSC$17677_commandHandler.resolveCommand(L);var VN,Pd=x==null?void 0:(VN=x.form)==null?void 0:VN.element;Pd&&_.wr(Pd,"yt-dismissible-item-action",l.clientActions)}return KV.yield(_.z7(e.innertubeTransportService,O,(k=
x)==null?void 0:k.form),2)}if(M=KV.yieldResult)M.errorMetadata?(G=M,X=_.v1(G.error.message),e.JSC$17677_commandHandler.resolveCommand(X),"error"in M&&((y=x)==null?0:(Z=y.commandController)==null?0:Z.onServerError)&&((E=x)==null||(P=E.commandController)==null||P.onServerError(O,M))):(U=x)==null||(W=U.commandController)==null||(r=(z=W).onSuccess)==null||r.call(z,O,M);f=M;((u=f)==null?0:u.collaborationInviteLink)&&l.playlistId&&(_.t("web_enable_invite_collaborators_link")||_.t("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
e.store.dispatch(_.j6({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:l.playlistId,inviteLinkUrl:f.collaborationInviteLink}}));((Y=f)==null?0:Y.redirectEndpoint)&&e.JSC$17677_commandHandler.resolveCommand(f.redirectEndpoint);((J=f)==null?0:(O8=J.newHeader)==null?0:O8.playlistHeaderRenderer)?FOQ(e.controller,f.newHeader.playlistHeaderRenderer):((Xr=f)==null?0:(Fr=Xr.newHeader)==null?0:Fr.musicEditablePlaylistDetailHeaderRenderer)&&FOQ(e.controller,f.newHeader.musicEditablePlaylistDetailHeaderRenderer);
e.controller.playlistVideoListElement&&((mL=f)==null?0:(Zn=mL.playlistEditResults)==null?0:(q$=Zn[0])==null?0:q$.playlistEditVideoAddedResultData)&&((Pd=e.controller.playlistVideoListElement)==null||Pd.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:f.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Ra(KV)})};
ac[Fc]=[YN,_.IF,_.UW,_.Xc];var mf=function(O,x){this.controller=O;this.JSC$17687_commandHandler=x};
_.c(mf,CN);mf.prototype.resolveCommand=function(O,x){var e=this,l,C,Q;return _.A(function(L){l=_.q(O,vhp);e.controller.showRefreshPill&&((C=l)==null?0:C.command)&&(e.JSC$17687_commandHandler.resolveCommand((Q=l)==null?void 0:Q.command,x),e.controller.showRefreshPill=!1);_.Ra(L)})};
mf[Fc]=[_.Ik,_.Xc];var sW=function(O,x){this.store=O;this.JSC$17691_commandHandler=x||_.lV.instance};
_.c(sW,CN);sW.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){l=_.q(O,Czd);C=e.store.getState().radioButtonGroup;if((Q=l)==null?0:Q.command)e.JSC$17691_commandHandler.resolveCommand((L=l)==null?void 0:L.command,x);else if(C&&((k=l)==null?void 0:k.formId)===C.currentFormId)for(M=Object.values(C.commandsMap),G=_.T(M),X=G.next();!X.done;X=G.next())y=X.value,(Z=_.p_(y))&&e.JSC$17691_commandHandler.resolveCommand(Z,x);_.Ra(E)})};
sW[Fc]=[_.gH];var Wl=new _.iR("USER_PREFS");var h4=function(O){this.JSC$17696_prefCookie=O};
_.c(h4,CN);h4.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){(e=_.q(O,Iip))&&typeof e.useListView==="boolean"&&(_.LZ(0,155,e.useListView),x.JSC$17696_prefCookie.save());_.Ra(l)})};
h4[Fc]=[Wl];var zI=function(O){this.JSC$17700_prefCookie=O};
_.c(zI,CN);zI.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L;return _.A(function(k){e=_.q(O,zCT);if((l=e)==null||!l.gl)return k.return();C=e.gl;Q={persist_gl:"1",gl:C};x.JSC$17700_prefCookie.set("gl",C);x.JSC$17700_prefCookie.save();L=jnN(Q);_.zu(L);_.Ra(k)})};
zI[Fc]=[Wl];var r0=function(O){this.JSC$17704_prefCookie=O};
_.c(r0,CN);r0.prototype.resolveCommand=function(O){var x=this,e,l;return _.A(function(C){e=_.q(O,JPL);if(!e)return C.return();l=!1;e.flagNum&&typeof e.value==="boolean"?(_.LZ(0,e.flagNum,e.value),l=!0):e.key&&typeof e.stringValue==="string"&&(x.JSC$17704_prefCookie.set(e.key,e.stringValue),l=!0);l&&x.JSC$17704_prefCookie.save();_.Ra(C)})};
r0[Fc]=[Wl];var Hl=new _.iR("PREF_STORAGE_PROMISE_TOKEN");var K9=function(O){this.JSC$17708_prefStoragePromise=O};
_.c(K9,CN);K9.prototype.resolveCommand=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1)return(e=_.q(O,SNF))?C.yield(x.JSC$17708_prefStoragePromise,2):C.return();l=C.yieldResult;return l===void 0||e.key===void 0||e.value===void 0?C.return():C.yield(l.set(e.key,e.value),0)})};
K9[Fc]=[Hl];var XXw=function(O){this.innertubeTransportService=O};
_.c(XXw,CN);XXw.prototype.resolveCommand=function(O,x){var e=this,l,C;return _.A(function(Q){(l=_.q(O,_.eYk))&&l&&l.isFirstRequest&&(_.cU("search_overview_answer"),_.IR("so_rq",void 0,"search_overview_answer"));return Q.yield(_.z7(e.innertubeTransportService,O,(C=x)==null?void 0:C.form),0)})};
XXw[Fc]=[_.IF];var oG4=function(){};
_.c(oG4,CN);
oG4.prototype.resolveCommand=function(O){var x,e,l,C,Q,L,k,M,G;return _.A(function(X){x=_.q(O,l5$);if((e=x)==null?0:e.sectionIdentifier){if(x.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(C=(l=document.getElementsByTagName(x.sectionIdentifier))==null?void 0:l.item(0))C.scrollIntoView({behavior:"smooth"}),(Q=ABr(C))&&Q.focus({preventScroll:!0});return X.return()}L=document.querySelector("[section-identifier="+x.sectionIdentifier+"]");k=document.querySelector("[section-identifier="+x.referenceSectionIdentifier+
"]");if(!L)return X.return();M=x.verticalScrollOffsetDp?x.verticalScrollOffsetDp:0;k&&(M-=k.offsetTop);window.scrollTo({top:L.offsetTop+M,behavior:"smooth"});(G=ABr(L))&&G.focus({preventScroll:!0})}_.Ra(X)})};var d0=function(O){this.JSC$17720_commandHandler=O};
_.c(d0,CN);
d0.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M;return _.A(function(G){if(G.nextAddress==1){e=_.q(O,aB3);if(!e||!e.imageBytes||!navigator.clipboard)return G.return();if(e.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.BH(Error("Mi")),G.return();_.tS(G,2);C=(l=e)==null?void 0:l.imageBytes;Q=C.replace(/-/g,"+").replace(/_/g,"/");L=L4i(Q);k={};M=[new ClipboardItem((k[L.type]=L,k))];return G.yield(navigator.clipboard.write(M),4)}if(G.nextAddress!=2)return e.successCommand&&
x.JSC$17720_commandHandler.resolveCommand(e.successCommand),_.lb(G,0);_.VP(G);e.errorCommand&&x.JSC$17720_commandHandler.resolveCommand(e.errorCommand);_.Ra(G)})};
d0[Fc]=[_.Xc];var n9=function(O,x){this.innertubeTransportService=O;this.JSC$17724_commandHandler=x};
_.c(n9,CN);n9.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return(l=_.q(O,mA3))?M.yield(_.z7(e.innertubeTransportService,O,(C=x)==null?void 0:C.form),2):M.return();(Q=M.yieldResult)&&Q.errorMetadata&&l.onFailureCommand&&e.JSC$17724_commandHandler.resolveCommand(l.onFailureCommand);L=Q;((k=L)==null?0:k.shareCommand)&&e.JSC$17724_commandHandler.resolveCommand(L.shareCommand,x);_.Ra(M)})};
n9[Fc]=[_.IF,_.Xc];var uJ=function(){};
_.c(uJ,CN);uJ.prototype.resolveCommand=function(O){var x,e;return _.A(function(l){x=_.q(O,uJN);if(!x||!navigator.share)return l.return();e={url:x.url};try{return l.return(navigator.share(e))}catch(C){}_.Ra(l)})};var Ye=function(){};
_.c(Ye,CN);Ye.prototype.resolveCommand=function(){return _.A(function(O){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Ra(O)})};var Bl=function(O){this.JSC$17734_navigationConfirmationService=O};
_.c(Bl,CN);Bl.prototype.resolveCommand=function(){var O=this;return _.A(function(x){O.JSC$17734_navigationConfirmationService.cancelPendingNavigation();_.Ra(x)})};
Bl[Fc]=[zY];var vl=function(O){this.JSC$17737_screenManager=O};
_.c(vl,CN);vl.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G;return _.A(function(X){C=(l=x.form)==null?void 0:l.event;L=(Q=x.form)==null?void 0:Q.element;if(!C)throw new _.ry("Event not passed in when resolving command");k=_.T(C.composedPath());for(M=k.next();!M.done;M=k.next())if(G=M.value,G.tagName==="YT-COPY-LINK-RENDERER")return G.copyUrlToClipboard(),L&&_.s1(e.JSC$17737_screenManager,L),X.return();_.Ra(X)})};
vl[Fc]=[_.vt];var f9=function(){this.JSC$17741_miniAppClientDataProvider=_.GG().resolve(_.LW)};
_.c(f9,CN);f9.prototype.resolveCommand=function(){var O=this,x,e;return _.A(function(l){if(O.JSC$17741_miniAppClientDataProvider.clientData.has("video_id")){var C=O.JSC$17741_miniAppClientDataProvider,Q=C.clientData.get("video_id");Q&&C.clientData.delete("video_id");x="https://youtube.com/watch?v="+Q;e=_.nU(x);if(e===void 0)throw Error("Ni`"+x);_.$y(window,e)}_.Ra(l)})};var J4=function(){};
_.c(J4,CN);J4.prototype.resolveCommand=function(){return _.A(function(O){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Ra(O)})};var w0=function(){};
_.c(w0,CN);w0.prototype.resolveCommand=function(){var O;return _.A(function(x){if(x.nextAddress==1)return x.yield(_.$_s(window.document.documentElement),2);(O=document.querySelector("mini-app-container-view-model iframe"))&&O.focus();_.Ra(x)})};var SA=function(O){this.JSC$17748_navigationConfirmationService=O};
_.c(SA,CN);
SA.prototype.resolveCommand=function(){var O=this;return _.A(function(x){var e=O.JSC$17748_navigationConfirmationService,l=_.GG().resolve(_.Hr),C;if(((C=e.navigateParams)==null?void 0:C.data)!==void 0){var Q;_.m82(l,e.navigateParams.endpoint,e.navigateParams.data,(Q=e.navigateParams.navigationType)!=null?Q:1,e.navigateParams.tempData,e.navigateParams.isMiniplayer,void 0,!0);e.navigateParams=void 0;e.customConfirmationCommand=void 0}else e.navigateParams&&(l.navigate(e.navigateParams.endpoint,e.navigateParams.reload,
e.navigateParams.params,e.navigateParams.tempData,e.navigateParams.requestType,e.navigateParams.createScreenConfig,!0),e.navigateParams=void 0,e.customConfirmationCommand=void 0);_.Ra(x)})};
SA[Fc]=[zY];var jA=function(){};
_.c(jA,CN);jA.prototype.resolveCommand=function(){return _.A(function(O){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Ra(O)})};var Nv=function(O){this.JSC$17753_prefStorage=O};
_.c(Nv,CN);Nv.prototype.resolveCommand=function(){var O=this,x,e;return _.A(function(l){switch(l.nextAddress){case 1:return l.yield(O.JSC$17753_prefStorage,2);case 2:return(x=l.yieldResult)?l.yield(x.set("sfvle",!1),3):l.return();case 3:return l.yield(x.set("sfvles",!0),4);case 4:e=_.TD(),_.LZ(0,203,!1),_.LZ(0,204,!0),e.save(),_.Ra(l)}})};
Nv[Fc]=[Hl];var g0=function(O){this.JSC$17756_prefStorage=O};
_.c(g0,CN);g0.prototype.resolveCommand=function(){var O=this,x,e;return _.A(function(l){switch(l.nextAddress){case 1:return l.yield(O.JSC$17756_prefStorage,2);case 2:return(x=l.yieldResult)?l.yield(x.set("sfvle",!0),3):l.return();case 3:return l.yield(x.set("sfvles",!0),4);case 4:e=_.TD(),_.LZ(0,203,!0),_.LZ(0,204,!0),e.save(),_.Ra(l)}})};
g0[Fc]=[Hl];_.yj$=new _.iR("SNACKBAR_CONTROLLER_TOKEN");_.ZuQ=new _.iR("SHOULD_SHOW_PIVOT_BAR_TOKEN");var $e=function(O){this.controller=O};
_.c($e,CN);$e.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){e=_.q(O,vwL);if(!e)return l.return();var C=x.controller;C.closeSnackbarFn&&C.closeSnackbarFn();_.Ra(l)})};
$e[Fc]=[_.yj$];var iJ=function(O,x){this.controller=O;this.sheetController=x};
_.c(iJ,CN);iJ.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M;return _.A(function(G){l=_.q(O,JTF);if(!l)return G.return();L=Qnw(e.sheetController,(C=x)==null?void 0:(Q=C.form)==null?void 0:Q.element);k=_.q(l.content,bz2);if(!k)return G.return();var X=e.controller,y=k,Z=(M=l.animationStyle)!=null?M:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(X.showSnackbarFn)X.showSnackbarFn({snackbarViewModel:y,animationStyle:Z,durationMs:l.durationSeconds*1E3,target:L});else throw Error("wj");_.Ra(G)})};
iJ[Fc]=[_.yj$,_.fj];var OE=function(){};
_.c(OE,CN);OE.prototype.resolveCommand=function(O){var x;return _.A(function(e){x=_.q(O,wPD);if(!x||typeof x.key!=="string"||typeof x.value!=="string")return e.return();window.localStorage.setItem(x.key,x.value);_.Ra(e)})};var xr=function(O){this.store=O};
_.c(xr,CN);xr.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){e=_.q(O,g1n);if(!e||!e.stepId||!e.token)return l.return();x.store.dispatch(hg3({stepId:e.stepId,token:e.token,isSelected:!1}));_.Ra(l)})};
xr[Fc]=[YN];var et=function(O,x,e){this.innertubeTransportService=O;this.store=x;this.JSC$17775_screenManager=e};
_.c(et,CN);
et.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr;return _.A(function(mL){e=_.q(O,OaV);if(!e||(l=e.stepIds)==null||!l.length)return mL.return();C=x.store.getState().talkToRecs;Q=[];L=[];k=_.T(e.stepIds);for(M=k.next();!M.done;M=k.next())for(G=M.value,X=void 0,(y=(X=C.stepStates[G])==null?void 0:X.userQuery)&&L.push({userQuery:y.userQuery,userQueryToken:y.token}),E=Z=void 0,P=(E=(Z=C.stepStates[G])==null?void 0:Z.selectionStates)!=null?E:{},U=_.T(Object.entries(P)),
W=U.next();!W.done;W=U.next())z=W.value,r=_.T(z),f=r.next().value,u=r.next().value,Y=f,J=u,J.isSelected&&Q.push(Y);O8={selectedChipTokens:Q,userQueries:L,submittedStepIds:e.stepIds};Xr={browseTalk2recsFormData:O8};e.browseEndpoint?(Fr=O,_.qj(Fr,_.Q9,e.browseEndpoint)):e.command&&(Fr=e.command);return Fr?mL.yield(_.z7(x.innertubeTransportService,Fr,{formData:Xr,disableCache:!0}).then(function(Zn){(Zn==null?0:Zn.trackingParams)&&x.JSC$17775_screenManager.graftServerVe(Zn==null?void 0:Zn.trackingParams)}),
0):mL.return()})};
et[Fc]=[_.IF,YN,_.vt];var l2=function(O){this.store=O};
_.c(l2,CN);l2.prototype.resolveCommand=function(O){var x=this,e;return _.A(function(l){e=_.q(O,NJL);if(!e||!e.stepId||!e.token)return l.return();x.store.dispatch(hg3({stepId:e.stepId,token:e.token,isSelected:!0}));_.Ra(l)})};
l2[Fc]=[YN];var C4=function(O){this.store=O};
_.c(C4,CN);C4.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k;return _.A(function(M){l=_.q(O,uNp);if(!l||!l.stepId||!l.userQueryToken)return M.return();k=(L=(C=x)==null?void 0:(Q=C.form)==null?void 0:Q.userQuery)!=null?L:"";e.store.dispatch(_.j6({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:l.stepId,userQueryToken:l.userQueryToken,userQuery:k}}));_.Ra(M)})};
C4[Fc]=[YN];_.EGu=new _.iR("TIMELY_ACTIONS_CONTROLLER_TOKEN");var QY=function(O){this.controller=O};
_.c(QY,CN);QY.prototype.resolveCommand=function(O){var x=this,e,l,C,Q;return _.A(function(L){e=_.q(O,OL2);if(!e)return L.return();l=e;C=l.id;Q=l.isVisible;if(C===void 0||Q===void 0)return L.return();var k;(k=x.controller.timelyActionsMap.get(C))==null||k(C,Q);_.Ra(L)})};
QY[Fc]=[_.EGu];var tN$=function(){this.timelyActionsMap=new Map};var b2=function(O){this.JSC$17801_commandHandler=O};
_.c(b2,CN);b2.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L;return _.A(function(k){e=_.q(O,_.DC4);if(!e)return k.return();Q=(l=e.item)==null?void 0:(C=l.notificationTextRenderer)==null?void 0:C.successResponseText;if(!Q)return k.return();L=_.B1(Q);x.JSC$17801_commandHandler.resolveCommand(L);_.Ra(k)})};
b2[Fc]=[_.Xc];var Ts=function(O,x){this.innertubeTransportService=O;this.JSC$17806_playerApiPromise=x};
_.c(Ts,CN);
Ts.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X;return _.A(function(y){if(y.nextAddress==1)return y.yield(x.JSC$17806_playerApiPromise,2);e=y.yieldResult;l=e.getOption("captions","track");C=Object.assign({},_.q(O,_.Xg4));(L=(Q=e.getVideoData())==null?void 0:Q.video_id)?C.externalVideoId=L:_.OC(Error("Oi"));if((k=l)==null?0:k.languageCode)C.languageCode=l.languageCode;if((M=l)==null?0:M.kind)C.kind=l.kind;if((G=l)==null?0:G.name)C.name=l.name;X=Object.assign({},O,{getTranscriptEndpoint:C});return y.yield(_.z7(x.innertubeTransportService,
X),0)})};
Ts[Fc]=[_.IF,_.N5];var L4=function(){};
_.c(L4,CN);L4.prototype.resolveCommand=function(O){var x,e,l,C,Q,L,k,M;return _.A(function(G){x=_.q(O,lm$);if((e=x)==null||!e.paramKeyValuePairs)return G.return();l=window.location.href;C=_.T(x.paramKeyValuePairs);for(Q=C.next();!Q.done;Q=C.next())L=Q.value,L.key&&L.value&&(k={},l=_.QF(l,(k[L.key]=L.value,k)));M=_.GG().resolve(_.sg);_.mX(M,l);_.Ra(G)})};_.kr=new _.iR("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Ao=function(O,x,e){this.controller=O;this.JSC$17813_playerApiPromise=x;this.innertubeTransportService=e};
_.c(Ao,CN);
Ao.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z;return _.A(function(r){if(r.nextAddress==1){e=_.q(O,cMD);if((l=e)==null||!l.watchEndpoint)return r.return();C=new ad;Q=C.JSC$13266_getRequest(e.watchEndpoint);if(!Q)return r.return();L=e.watchEndpoint.clickTrackingParams;return r.yield(_.NK(x.innertubeTransportService,Q.innerTubeRequest,Q.input,L,Q.config),2)}if(r.nextAddress!=3)return k=r.yieldResult,r.yield(x.JSC$17813_playerApiPromise,3);M=r.yieldResult;M.updateVideoData({raw_watch_next_response:k});
if(P=(G=k)==null?void 0:(X=G.contents)==null?void 0:(y=X.twoColumnWatchNextResults)==null?void 0:(Z=y.results)==null?void 0:(E=Z.results)==null?void 0:E.contents)W=(U=P.find(function(f){return f.videoPrimaryInfoRenderer}))==null?void 0:U.videoPrimaryInfoRenderer,((z=W)==null?0:z.subtitle)&&qdu(x.controller,W.subtitle);
_.Ra(r)})};
Ao[Fc]=[_.kr,_.N5,_.IF];var PtY=function(){this.subtitleChangeCallbackMap=new Map},qdu=function(O,x){O=_.T(O.subtitleChangeCallbackMap.values());
for(var e=O.next();!e.done;e=O.next())e=e.value,e(x)};var Md=function(O,x){this.JSC$17823_commandHandler=O;this.innertubeTransportService=x};
_.c(Md,CN);
Md.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f;return _.A(function(u){switch(u.nextAddress){case 1:return(Q=(l=x)==null?void 0:(C=l.form)==null?void 0:C.element)&&_.pM(Q),L=_.TD().get("hl"),k="",_.tS(u,2),u.yield(s_W(L),4);case 4:k=u.yieldResult;_.lb(u,3);break;case 2:return _.VP(u),Q&&_.R$(Q),_.BH(Error("Qi"),"ERROR"),u.return();case 3:M=_.q(O,rMD);if(!M)return Q&&_.R$(Q),u.return();(y=(G=M.commerceActionConfig)==null?void 0:(X=G.commandLifeCycleConfig)==null?
void 0:X.onStartCommand)&&e.JSC$17823_commandHandler.resolveCommand(y);return u.yield(_.z7(e.innertubeTransportService,O,{client_data:{paymentsClientToken:{token:k}}}),5);case 5:(Z=u.yieldResult)?(Q&&_.R$(Q),((W=Z)==null?0:W.command)&&e.JSC$17823_commandHandler.resolveCommand(Z.command),(f=(z=M.commerceActionConfig)==null?void 0:(r=z.commandLifeCycleConfig)==null?void 0:r.onSuccessCommand)&&e.JSC$17823_commandHandler.resolveCommand(f)):(Q&&_.R$(Q),_.BH(Error("Ri")),(U=(E=M.commerceActionConfig)==
null?void 0:(P=E.commandLifeCycleConfig)==null?void 0:P.onFailureCommand)&&e.JSC$17823_commandHandler.resolveCommand(U)),_.Ra(u)}})};
Md[Fc]=[_.Xc,_.IF];var D6=function(O,x,e){this.store=O;this.JSC$17839_commandHandler=x;this.innertubeTransportService=e};
_.c(D6,CN);
D6.prototype.resolveCommand=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y;return _.A(function(Z){l=_.q(O,HzJ);C=l.googlePaymentPayload;l.onStartCommand&&e.JSC$17839_commandHandler.resolveCommand(l.onStartCommand);Q=C.encryptedPurchaseParams;L=C.ypcLogWalletAnalyticDataEndpoint;k=l.serializedTransactionFlowLoggingParams;M=C.serializedPaymentsClientParams;G=l.ypcCujContext;y=zyn(e.innertubeTransportService,(X=x)==null?void 0:X.form,Q,L,k,M,G);return Z.return(y.then(function(E){W4w(x==null?void 0:x.form,
!1);var P=e.store,U=e.JSC$17839_commandHandler,W=E.integratorData;W==null||W===""||E.error!=null?(String(E.error)==="-1"&&l.onDismissCommand?U.resolveCommand(l.onDismissCommand):String(E.error)!=="-1"&&l.onFailureCommand&&U.resolveCommand(l.onFailureCommand),String(E.error)!=="-1"&&String(E.error)!=="132"&&_.BH(Error("Si"),"ERROR")):(l.googlePaymentEntityKey&&P.dispatch(_.Dc("commerceAcquisitionClientPayloadEntity",l.googlePaymentEntityKey,{key:l.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:W,
fundsGuaranteeCallbackClientData:E.integratorClientCallbackData}}})),l.onSuccessCommand&&U.resolveCommand(l.onSuccessCommand));_.$7()},function(E){W4w(x==null?void 0:x.form,!1);
_.BH(E,"ERROR");l.onFailureCommand&&e.JSC$17839_commandHandler.resolveCommand(l.onFailureCommand)}))})};
D6[Fc]=[fM,_.Xc,_.IF];var Gs=function(O,x){this.JSC$17843_commandHandler=O;this.purchaseManager=x};
_.c(Gs,CN);
Gs.prototype.resolveCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X;return _.A(function(y){e=_.q(O,KAk);((l=e)==null?0:(C=l.commandLifeCycleConfig)==null?0:C.onStartCommand)&&x.JSC$17843_commandHandler.resolveCommand(e.commandLifeCycleConfig.onStartCommand);if(!((Q=e)==null?0:(L=Q.googlePaymentPurchaseManagerPayload)==null?0:L.securePayloadBytes))return _.BH(Error("Ti"),"ERROR"),y.return();k=VfJ(_.ir(e.googlePaymentPurchaseManagerPayload.securePayloadBytes));M=_.TD().get("hl");G=_.He();ktp(k.serialize(),
M,function(Z){G.resolve(Z)},function(Z){G.reject(Z)},G.resolve);
X=G.promise;return y.return(X.then(function(Z){if(Z)if(Z==null?0:Z.errorCode){_.BH(Error("Ui`"+Z.errorCode),"ERROR");var E,P;((E=e)==null?0:(P=E.commandLifeCycleConfig)==null?0:P.onFailureCommand)&&x.JSC$17843_commandHandler.resolveCommand(e.commandLifeCycleConfig.onFailureCommand)}else if(Z==null?0:Z.isCancelled){var U,W;((U=e)==null?0:(W=U.commandLifeCycleConfig)==null?0:W.onCancelCommand)&&x.JSC$17843_commandHandler.resolveCommand(e.commandLifeCycleConfig.onCancelCommand)}else{var z,r;((z=e)==
null?0:(r=z.commandLifeCycleConfig)==null?0:r.onSuccessCommand)&&x.JSC$17843_commandHandler.resolveCommand(e.commandLifeCycleConfig.onSuccessCommand)}},function(Z){_.BH(Z,"ERROR");
var E,P;((E=e)==null?0:(P=E.commandLifeCycleConfig)==null?0:P.onFailureCommand)&&x.JSC$17843_commandHandler.resolveCommand(e.commandLifeCycleConfig.onFailureCommand)}))})};
Gs[Fc]=[_.Xc,ASL];var cjL=function(O,x){this.JSC$17851_commandHandler=O;this.commandAllowlistOverride=x;var e;this.commandAllowlist=(e=this.commandAllowlistOverride)!=null?e:K7};
cjL.prototype.handleResponse=function(O,x,e){var l,C=x==null?void 0:(l=x.config)==null?void 0:l.command;if(!C||this.commandAllowlist.some(function(Q){return!!_.q(C,Q)})){x=void 0;
e!==void 0&&(x={form:{element:e}});O.onResponseReceivedCommand&&this.JSC$17851_commandHandler.resolveCommand(O.onResponseReceivedCommand,x);O.onResponseReceivedAction&&this.JSC$17851_commandHandler.resolveCommand(O.onResponseReceivedAction,x);O.onResponseReceivedEndpoint&&this.JSC$17851_commandHandler.resolveCommand(O.onResponseReceivedEndpoint,x);O.command&&this.JSC$17851_commandHandler.resolveCommand(O.command,x);if(O.onResponseReceivedCommands)for(e=_.T(O.onResponseReceivedCommands),l=e.next();!l.done;l=
e.next())this.JSC$17851_commandHandler.resolveCommand(l.value,x);if(O.onResponseReceivedActions)for(e=_.T(O.onResponseReceivedActions),l=e.next();!l.done;l=e.next())this.JSC$17851_commandHandler.resolveCommand(l.value,x);if(O.onResponseReceivedEndpoints)for(e=_.T(O.onResponseReceivedEndpoints),l=e.next();!l.done;l=e.next())this.JSC$17851_commandHandler.resolveCommand(l.value,x);if(O.actions)for(O=_.T(O.actions),e=O.next();!e.done;e=O.next())this.JSC$17851_commandHandler.resolveCommand(e.value,x)}};
cjL[Fc]=[_.Xc,_.D0(mIr)];var Iuu=new _.iR("INNERTUBE_TOKEN_SERVICE");var VNT=new _.iR("SCHEDULER_TOKEN");var pXL=function(O){this.scheduler=O;O={};this.tokenMap=(O.app={},O.user={},O)};
pXL.prototype.handleResponse=function(O,x){if(!x)throw Error("Vi");var e;if(O=(e=O.responseContext)==null?void 0:e.innertubeTokenJar){if(O.appTokens){var l,C,Q;e=(l=x.innerTubeRequest.context)==null?void 0:(C=l.request)==null?void 0:(Q=C.innertubeTokenJar)==null?void 0:Q.appTokens;RQp(this,O.appTokens,this.tokenMap.app,e)}if(O.userTokens){var L,k,M;x=(L=x.innerTubeRequest.context)==null?void 0:(k=L.request)==null?void 0:(M=k.innertubeTokenJar)==null?void 0:M.userTokens;RQp(this,O.userTokens,this.tokenMap.user,
x)}}};
pXL.prototype.processContext=function(O){O.request||(O.request={});var x=Object.keys(this.tokenMap.app).length,e=Object.keys(this.tokenMap.user).length;if(x||e)O.request.innertubeTokenJar={},x&&(O.request.innertubeTokenJar.appTokens=[].concat(_.Kx(Object.values(this.tokenMap.app).flat()))),e&&(O.request.innertubeTokenJar.userTokens=[].concat(_.Kx(Object.values(this.tokenMap.user).flat())))};
var RQp=function(O,x,e,l){x=_.T(x);for(var C=x.next(),Q={};!C.done;Q={token$jscomp$139:void 0},C=x.next()){Q.token$jscomp$139=C.value;if(Q.token$jscomp$139.type===void 0)throw new _.ry("InnerTube token has no type",Q.token$jscomp$139);if(Q.token$jscomp$139.clearTokens)e[Q.token$jscomp$139.type]=[];else if(Q.token$jscomp$139.value!==void 0){e[Q.token$jscomp$139.type]||(e[Q.token$jscomp$139.type]=[]);if(l!==void 0&&l.length){C=_.T(l);for(var L=C.next(),k={};!L.done;k={requestToken:void 0},L=C.next())k.requestToken=
L.value,L=e[Q.token$jscomp$139.type].findIndex(function(M){return function(G){return G===M.requestToken||(0,_.HX.equals)(G,M.requestToken)}}(k)),L>-1&&e[Q.token$jscomp$139.type].splice(L,1)}e[Q.token$jscomp$139.type].push(Q.token$jscomp$139);
Q.token$jscomp$139.maxAgeSeconds&&Number(Q.token$jscomp$139.maxAgeSeconds)>0&&O.scheduler.addLowPriorityJob(function(M){return function(){var G=e[M.token$jscomp$139.type].indexOf(M.token$jscomp$139);G>-1&&e[M.token$jscomp$139.type].splice(G,1)}}(Q),Number(Q.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.ry("InnerTube token has no value",Q.token$jscomp$139);
}};
pXL[Fc]=[VNT];var UM4=new _.iR("LOCAL_INNERTUBE_ROUTER_TOKEN"),aup=new _.iR("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Fk=function(O){this.serviceMap=O};
Fk.prototype.shouldPreferLocalResponse=function(O,x){return(O=mMe(this,O))?O.shouldPreferLocalResponse(x):!1};
Fk.prototype.localInnertubeResponse=function(O,x){var e=this,l;return _.A(function(C){return(l=mMe(e,O))?C.return(l.localInnertubeResponse(x)):C.return(Promise.reject(Error("Wi")))})};
Fk.prototype.canProvideFallbackResponse=function(O,x){return(O=mMe(this,O))?O.canProvideFallbackResponse(x):!1};
Fk.prototype.localFallbackInnertubeResponse=function(O,x){var e=this,l;return _.A(function(C){return(l=mMe(e,O))?C.return(l.localFallbackInnertubeResponse(x)):C.return(Promise.reject(Error("Wi")))})};
var mMe=function(O,x){x=_.VF(x);return x?(O=O.serviceMap[x])?O:null:null};
Fk[Fc]=[aup];var At=function(){};
At.prototype.shouldPreferLocalResponse=function(){return!1};
At.prototype.localInnertubeResponse=function(){return _.A(function(O){return O.return(Promise.reject(Error("Xi")))})};
At.prototype.canProvideFallbackResponse=function(){return!0};
At.prototype.localFallbackInnertubeResponse=function(){var O,x,e;return _.A(function(l){O=eK("CLOSE_POPUP");x={openPopupAction:HFi()};e={actions:[O,x]};return l.return(e)})};var ugs=function(O,x){this.JSC$17900_upliftPromise=O;this.store=x};
_.b=ugs.prototype;_.b.shouldPreferLocalResponse=function(O){var x=O.videoId,e;if(e=x)e=Y2L(this.store.getState().entities,O.videoId);return e&&BHr(this.store.getState().entities,x)?d67(this.store.getState().entities,O.playlistId):!1};
_.b.localInnertubeResponse=function(O){var x=this,e;return _.A(function(l){return(e=x.getPlayerResponse(O))?l.return(Promise.resolve(e)):l.return(Promise.reject(Error("Yi")))})};
_.b.canProvideFallbackResponse=function(O){return!!O.videoId};
_.b.localFallbackInnertubeResponse=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.JSC$17900_upliftPromise,2);e=x.getPlayerResponse(O);var C;e?C=l.return(Promise.resolve(e)):C=GL(x.store.getState().entities,O.videoId)?l.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.J3(_.CZ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:w77()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
l.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.J3(_.CZ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:JKN()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return C})};
_.b.getPlayerResponse=function(O){return Xtw(this.store.getState().entities,O.videoId)};var kQ=function(O,x){this.localPlayerService=O;this.localWatchNextService=x};
kQ.prototype.shouldPreferLocalResponse=function(O){var x=O.playerRequest;O=O.watchNextRequest;return!!(x&&this.localPlayerService.shouldPreferLocalResponse(x)&&O&&this.localWatchNextService.shouldPreferLocalResponse(O))};
kQ.prototype.localInnertubeResponse=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1){e=O.playerRequest;l=O.watchNextRequest;if(!e||!l)throw new _.ry("Missing streaming request",O);return L.yield(x.localPlayerService.localInnertubeResponse(e),2)}if(L.nextAddress!=3)return C=L.yieldResult,L.yield(x.localWatchNextService.localInnertubeResponse(l),3);Q=L.yieldResult;return L.return({playerResponse:C,watchNextResponse:Q})})};
kQ.prototype.canProvideFallbackResponse=function(O){var x=O.playerRequest;O=O.watchNextRequest;return!!(x&&this.localPlayerService.canProvideFallbackResponse(x)&&O&&this.localWatchNextService.canProvideFallbackResponse(O))};
kQ.prototype.localFallbackInnertubeResponse=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return e=O.playerRequest,l=O.watchNextRequest,e&&l?L.yield(x.localPlayerService.localFallbackInnertubeResponse(e),2):L.return(Promise.reject(new _.ry("Missing streaming request",O)));if(L.nextAddress!=3)return C=L.yieldResult,L.yield(x.localWatchNextService.localFallbackInnertubeResponse(l),3);Q=L.yieldResult;return L.return({playerResponse:C,watchNextResponse:Q})})};var bg=function(O){this.JSC$17910_persistentStorePromiseAccessor=O};
bg.prototype.shouldPreferLocalResponse=function(){return!1};
bg.prototype.localInnertubeResponse=function(){return _.A(function(O){return O.return(Promise.reject(Error("Zi")))})};
bg.prototype.canProvideFallbackResponse=function(){return!0};
bg.prototype.localFallbackInnertubeResponse=function(){var O=this,x,e;return _.A(function(l){return l.nextAddress==1?l.yield(O.JSC$17910_persistentStorePromiseAccessor(),2):l.nextAddress!=3?(x=l.yieldResult)?l.yield(x.get("service:guide:fallback"),3):l.return(Promise.reject(Error("$i"))):(e=l.yieldResult)&&_.Bb(e)?l.return(n3W(_.Bb(e))):l.return(Promise.reject(Error("aj")))})};var Mo=function(){};
Mo.prototype.shouldPreferLocalResponse=function(){return!1};
Mo.prototype.localInnertubeResponse=function(){return _.A(function(O){return O.return(Promise.reject(Error("bj")))})};
Mo.prototype.canProvideFallbackResponse=function(){return!0};
Mo.prototype.localFallbackInnertubeResponse=function(){var O,x,e;return _.A(function(l){O=eK("CLOSE_POPUP");x={openPopupAction:HFi()};e={actions:[O,x]};return l.return(e)})};var Qs=function(){this.urlMap=snu;this.fallbackCommand=_.a7};
Qs.prototype.shouldPreferLocalResponse=function(O){return(O=O.url)?!!WOO(this,O):!1};
Qs.prototype.localInnertubeResponse=function(O){var x=this,e;return _.A(function(l){return(e=O.url)?l.return(hQL(O,WOO(x,e))):l.return(Promise.reject(Error("cj")))})};
Qs.prototype.canProvideFallbackResponse=function(){return!0};
Qs.prototype.localFallbackInnertubeResponse=function(O){var x=this,e,l,C,Q,L,k,M;return _.A(function(G){e=O.url;if(!e)return G.return(hQL(O,x.fallbackCommand));if(l=WOO(x,e))return G.return(hQL(O,l));C=void 0;Q=_.VF(e);Q==="/watch"&&(L=_.iP(e,"v"))&&(M=(k=_.iP(e,"list"))!=null?k:void 0,C=_.fZ(L,M));C||(C=x.fallbackCommand);return G.return(hQL(O,C))})};
var WOO=function(O,x){if(x)return O.urlMap[_.sb(x)]},hQL=function(O,x){x&&O.parentTrackingParams&&(x.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:O.parentTrackingParams}},x.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:x})};var To=function(O,x,e){this.JSC$17920_upliftPromise=O;this.store=x;this.JSC$17920_persistentStorePromiseAccessor=e};
To.prototype.shouldPreferLocalResponse=function(){return!1};
To.prototype.localInnertubeResponse=function(){return _.A(function(O){return O.return(Promise.reject(Error("dj")))})};
To.prototype.canProvideFallbackResponse=function(){return!0};
To.prototype.localFallbackInnertubeResponse=function(){var O=this;return _.A(function(x){return x.return(zQY(O))})};
var zQY=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(YV(O.JSC$17920_upliftPromise,O.store),2);x=l.yieldResult;e={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[K4L(x)]}}}};return l.return(rj$(O,e))})},rj$=function(O,x){var e,l;
return _.A(function(C){if(C.nextAddress==1)return C.yield(O.JSC$17920_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return e=C.yieldResult,C.yield(vb(e),3);l=C.yieldResult;return C.return({responseContext:{},contents:x,topbar:l})})};var lg=function(O,x,e){this.JSC$17927_upliftPromise=O;this.store=x;this.JSC$17927_persistentStorePromiseAccessor=e};
lg.prototype.shouldPreferLocalResponse=function(O){var x=O.videoId;return x&&Y2L(this.store.getState().entities,x)&&BHr(this.store.getState().entities,x)?d67(this.store.getState().entities,O.playlistId):!1};
lg.prototype.localInnertubeResponse=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1)return(e=O.videoId)?C.yield(x.JSC$17927_upliftPromise,2):C.return(Promise.reject(Error("ej")));if(C.nextAddress!=3)return C.yield(HuX(x,O,e),3);l=C.yieldResult;return C.return(KOT(x,l,e))})};
lg.prototype.canProvideFallbackResponse=function(O){return O.videoId?!0:!1};
lg.prototype.localFallbackInnertubeResponse=function(O){var x=this,e,l,C,Q;return _.A(function(L){switch(L.nextAddress){case 1:return(e=O.videoId)?L.yield(x.JSC$17927_upliftPromise,2):L.return(Promise.reject(Error("ej")));case 2:return L.yield(HuX(x,O,e),3);case 3:l=L.yieldResult;if(GL(x.store.getState().entities,e)){L.jumpTo(4);break}return L.yield(YV(x.JSC$17927_upliftPromise,x.store),5);case 5:return C=L.yieldResult,L.return(dMQ(l,C));case 4:return Y2L(x.store.getState().entities,e)&&BHr(x.store.getState().entities,
e)?L.return(KOT(x,l,e)):(Q={title:_.J3(_.CZ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:w77()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},L.return(dMQ(l,Q)))}})};
var HuX=function(O,x,e){var l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return l=x.playlistId,C=_.fZ(e,l),M.yield(O.JSC$17927_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return Q=M.yieldResult,M.yield(vb(Q),3);L=M.yieldResult;k={responseContext:{},currentVideoEndpoint:C,topbar:L};return M.return(k)})},KOT=function(O,x,e){if(O=GL(O.store.getState().entities,e)){var l;
e=O.videoEntity;var C,Q={title:wT(e.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.S6((l=e.localizedStrings)==null?void 0:l.viewCount),viewCount:_.S6((C=e.localizedStrings)==null?void 0:C.viewCount)}}};e.publishedTimestampMillis&&(Q.dateText=_.S6(uYr(new Date(Number(e.publishedTimestampMillis)))));l={videoPrimaryInfoRenderer:Q};C=O.videoEntity;O=O.channelEntity;O={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:wT(_.CZ("SHOW_MORE",void 0,"Show more")),
showLessText:wT(_.CZ("SHOW_LESS",void 0,"Show less")),description:C.formattedDescription,owner:{videoOwnerRenderer:{title:wT(O.title),thumbnail:O.avatar}}}};x.contents={twoColumnWatchNextResults:{results:{results:{contents:[l,O]}}}}}return x},dMQ=function(O,x){O.contents={singleColumnWatchNextResults:{results:{results:{contents:[K4L(x)]}}}};
return O};var LI=function(O,x,e){this.JSC$17932_upliftPromise=O;this.store=x;this.JSC$17932_persistentStorePromiseAccessor=e};
LI.prototype.shouldPreferLocalResponse=function(){return!1};
LI.prototype.localInnertubeResponse=function(){return _.A(function(O){return O.return(Promise.reject(Error("fj")))})};
LI.prototype.canProvideFallbackResponse=function(){return!0};
LI.prototype.localFallbackInnertubeResponse=function(){var O=this,x,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return Q.yield(O.JSC$17932_persistentStorePromiseAccessor(),2);case 2:return x=Q.yieldResult,Q.yield(vb(x),3);case 3:return e=Q.yieldResult,l={responseContext:{},topbar:e},Q.yield(O.JSC$17932_upliftPromise,4);case 4:return Q.yield(YV(O.JSC$17932_upliftPromise,O.store),5);case 5:return C=Q.yieldResult,l.watchStatus={backgroundPromoRenderer:C},Q.return(l)}})};_.nGY=new _.iR("ENDPOINT_MAP");var u5Q=function(){var O=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return O.sequenceMap}}},Vnk=function(O,x,e){var l,C=(l=x.config)==null?void 0:l.sequenceStrategy;
if(!C)return e();O.sequenceMap.has(C.sequenceKey)||O.sequenceMap.set(C.sequenceKey,[]);O=O.sequenceMap.get(C.sequenceKey);switch(C.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Yd4(O,x,e);case "REQUEST_SEQUENCE_TYPE_REPLACE":return BcQ(O,x,e);default:throw new _.ry("Request could not be sequenced",x);}},Yd4=function(O,x,e){var l,C,Q;
return _.A(function(L){O.length>0?(C=O[O.length-1],l=C.responsePromise.then(function(){return e()})):l=e();
Q={request:x,responsePromise:l};O.push(Q);vGp(O,Q);return L.return(Q.responsePromise)})},BcQ=function(O,x,e){e=e();
if(O.length>0)for(var l=_.T(O),C=l.next();!C.done;C=l.next())C.value.responsePromise=e;var Q={request:x,responsePromise:e};O.push(Q);vGp(O,Q);return Promise.resolve().then(function(){return O.indexOf(Q)>0?Q.responsePromise.then(function(L){return Object.assign({},L,{sequenceMetaData:{skipProcessing:!0}})}):Q.responsePromise})},vGp=function(O,x){x.responsePromise.then(function(){var e=O.indexOf(x);
e>-1&&O.splice(e,1)})};var fuL=new _.iR("REQUEST_SEQUENCING");var Xk=function(){};
_.c(Xk,pL);Xk.prototype.getApiPaths=function(){return[]};
Xk.prototype.getExtension=function(O){return _.q(O,CYJ)};
Xk.prototype.JSC$13266_buildRequest=function(O,x){O.recaptchaToken=x.recaptchaToken};
Xk.prototype.getApiUrl=function(){return"/das_captcha"};var o6=function(){};
_.c(o6,pL);o6.prototype.getApiPaths=function(){return hXT};
o6.prototype.getExtension=function(O){return _.q(O,rnT)};
o6.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.createBackstagePostParams&&(O.createBackstagePostParams=x.createBackstagePostParams);e.comment_text&&(O.commentText=e.comment_text);if(e.attached_video_id)O.videoAttachment={videoId:e.attached_video_id};else if(e.image_poll_options)O.pollAttachmentData={options:e.image_poll_options};else if(e.poll_options)O.pollAttachment={choices:e.poll_options};else if(e.quiz_options)O.quizAttachmentData={options:e.quiz_options};else if(e.image_blob_id)O.imageAttachment=
{encryptedBlobId:e.image_blob_id},e.source_video_id&&(O.imageAttachment.sourceExternalVideoId=e.source_video_id),e.image_preview_coordinates&&(O.imageAttachment.previewCoordinates=JSON.parse(e.image_preview_coordinates));else if(e.images_data)O.imagesAttachment={imagesData:e.images_data};else if(e.clip_external_video_id!==void 0||e.clip_offset_ms!==void 0||e.clip_duration_ms!==void 0){var l,C,Q,L,k;O.clipAttachment={externalVideoId:(Q=e.clip_external_video_id)!=null?Q:"",offsetMs:(L=(l=e.clip_offset_ms)==
null?void 0:l.toString())!=null?L:"",durationMs:(k=(C=e.clip_duration_ms)==null?void 0:C.toString())!=null?k:""}}else e.shared_post_id&&(O.sharedPostAttachment={postId:e.shared_post_id});e.tagged_video_id&&(O.postCreationData={taggedVideoId:e.tagged_video_id});e.access_restrictions&&(typeof e.access_restrictions==="number"&&(x=e.access_restrictions,O.accessRestrictions={restriction:x!==1&&x===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof e.access_restrictions==="string"&&
(O.accessRestrictionsParams=e.access_restrictions));e.scheduled_publish_time_sec&&(O.scheduledPublishTimeSec=e.scheduled_publish_time_sec.toString())};var yY=function(){};
_.c(yY,pL);yY.prototype.getApiPaths=function(){return uMd};
yY.prototype.getExtension=function(O){return _.q(O,mLd)};
yY.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.decorateMessageParams&&(O.params=x.decorateMessageParams);e.text&&(O.text=e.text)};var Z6=function(){};
_.c(Z6,pL);Z6.prototype.getApiPaths=function(){return Tep};
Z6.prototype.getExtension=function(O){return _.q(O,HhT)};
Z6.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;e.video_id&&(O.videoId=e.video_id)};var EE=function(){};
_.c(EE,pL);EE.prototype.getApiPaths=function(){return Dep};
EE.prototype.getExtension=function(O){return _.q(O,_.xm)};
EE.prototype.JSC$13266_buildRequest=function(O,x,e){e.suggestions_query&&(O.input=e.suggestions_query)};var to=function(){};
_.c(to,pL);to.prototype.getApiPaths=function(){return JHN};
to.prototype.getExtension=function(O){return _.q(O,KBL)};
to.prototype.JSC$13266_buildRequest=function(O,x,e){e.comment_text!==void 0&&(O.commentText=e.comment_text);e.scheduled_publish_time_sec&&(O.scheduledPublishTimeSec=e.scheduled_publish_time_sec.toString());O.updateBackstagePostParams=x.updateBackstagePostParams};var qd=function(){};
_.c(qd,pL);qd.prototype.getApiPaths=function(){return z_};
qd.prototype.getExtension=function(O){return _.q(O,_.U1)};
qd.prototype.JSC$13266_buildRequest=function(O,x,e){e.formData&&(O.formData=e.formData);x.token?O.continuation=x.token:x.continuationTokenKey&&(e=_.u9().getState(),x=_.xE(e.entities,"continuationTokenEntity",x.continuationTokenKey))&&(O.continuation=String(x.continuationToken))};
var JjL=function(){};
_.c(JjL,pL);_.b=JjL.prototype;_.b.getApiPaths=function(){return z_};
_.b.getExtension=function(O){return _.q(O,_.Q9)};
_.b.isNavigationCommand=function(){return!0};
_.b.JSC$13273_getStoreKey=function(O){if((O=this.getExtension(O))&&O.browseId){var x={browseId:O.browseId};O.browseEndpointContextSupportedConfigs&&(x.browseEndpointContextSupportedConfigs=JSON.stringify(O.browseEndpointContextSupportedConfigs));O.params&&(x.params=O.params);O.query&&(x.query=O.query);return _.rr("browse",x)}};
_.b.JSC$13266_buildRequest=function(O,x,e){x.browseId&&(O.browseId=x.browseId);x.params&&(O.params=x.params);x.query&&(O.query=x.query);e.formData?O.formData=e.formData:x.formData&&(O.formData=x.formData);x.browseId==="FEsubscriptions"&&_.TD().getFlag(155)&&(O.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");x.browseId==="SPaccount_playback"&&(e=_.TD(),O.formData||(O.formData={}),O.formData.accountSettingsFormData={flagCaptionsDefaultOff:e.getFlag(65),flagAutoCaptionsDefaultOn:e.getFlag(66),
flagDisableInlinePreview:e.getFlag(186),flagAudioDescriptionDefaultOn:e.getFlag(198)});if(x.browseId==="FEwhat_to_watch"){e=_.TD();var l=e.getFlag(196);e.getFlag(197)&&(O.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:l}}})}x.browseId==="FEwhat_to_watch"&&(x=_.TD().getFlag(186),O.inlineSettingStatus=x?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.b.getRequestConfig=function(O,x){x=x===void 0?{}:x;var e={};if(O=this.JSC$13273_getStoreKey(O,x))e.storeStrategy={storeKey:O,disableCache:x.disableCache};_.t("web_log_browse_ticks_ks")||(e.requestTick="br_s",e.responseTick="br_r");return e};var PW=function(){};
_.c(PW,pL);PW.prototype.getApiPaths=function(){return RXN};
PW.prototype.getExtension=function(O){return _.q(O,D_T)};
PW.prototype.JSC$13266_buildRequest=function(O,x,e){O.legacyYoutubeChannelUsername=e.legacyYouTubeChannelUsername||"";O.legacyYoutubeChannelPassword=e.legacyYouTubeChannelPassword||""};var cW=function(){};
_.c(cW,pL);cW.prototype.getApiPaths=function(){return z$3};
cW.prototype.getExtension=function(O){return _.q(O,f7F)};
cW.prototype.JSC$13266_buildRequest=function(O,x,e){e.recaptcha_response_token&&(O.recaptchaResponseToken=e.recaptcha_response_token);e.channel_id&&(O.channelId=e.channel_id)};var I6=function(){};
_.c(I6,pL);I6.prototype.getApiPaths=function(){return wfd};
I6.prototype.getExtension=function(O){return _.q(O,gs3)};
I6.prototype.JSC$13266_buildRequest=function(O,x,e){x.externalChannelId&&(O.externalChannelId=x.externalChannelId);e.handle&&(O.handleUpdate={handle:e.handle},x.handleEditSource&&(O.handleUpdate.handleEditSource=x.handleEditSource))};var VY=function(){};
_.c(VY,pL);VY.prototype.getApiPaths=function(){return gvT};
VY.prototype.getExtension=function(O){return _.q(O,EhL)};
VY.prototype.JSC$13266_buildRequest=function(O,x,e){x.request&&(O.channelId=x.request.channelId);var l;if(e==null?0:(l=e.uploadDefaults)==null?0:l.emojiReactionSet)O.uploadDefaultsRequest||(O.uploadDefaultsRequest={}),O.uploadDefaultsRequest.emojiReactionSet=e.uploadDefaults.emojiReactionSet};var p4=function(){};
_.c(p4,pL);p4.prototype.getApiPaths=function(){return OBL};
p4.prototype.getExtension=function(O){return _.q(O,Jn3)};
p4.prototype.JSC$13266_buildRequest=function(O,x,e){x.externalChannelId&&(O.externalChannelId=x.externalChannelId);x.channelHandleEntityKey&&(O.channelHandleEntityKey=x.channelHandleEntityKey);x.handleEditSource&&(O.handleEditSource=x.handleEditSource);e.handle?O.handle=e.handle:e.name&&(O.name=e.name)};var R6=function(){};
_.c(R6,pL);R6.prototype.getApiPaths=function(){return mPd};
R6.prototype.getExtension=function(O){return _.q(O,MgL)};
R6.prototype.JSC$13266_buildRequest=function(O,x){x.actions?O.actions=x.actions:x.action&&(O.actions=[x.action])};var UE=function(){};
_.c(UE,pL);UE.prototype.getApiPaths=function(){return s42};
UE.prototype.getExtension=function(O){return _.q(O,_.U1)};
UE.prototype.JSC$13266_buildRequest=function(O,x){x.token&&(O.continuation=x.token)};var a6=function(){};
_.c(a6,pL);a6.prototype.getApiPaths=function(){return QbT};
a6.prototype.getExtension=function(O){return _.q(O,_.U1)};
a6.prototype.JSC$13266_buildRequest=function(O,x){O.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";x.token&&(O.fetchCommentsParams={continuation:x.token})};var mI=function(){};
_.c(mI,pL);mI.prototype.getApiPaths=function(){return Hgd};
mI.prototype.getExtension=function(O){return _.q(O,A8$)};
mI.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.createReplyParams&&(O.createReplyParams=x.createReplyParams);x.commentText&&(O.commentText=_.db(x.commentText));e.comment_text&&(O.commentText=e.comment_text);e.image_blob_id&&(O.imageAttachment={encryptedBlobId:e.image_blob_id});e.botguard_response&&(O.botguardResponse=e.botguard_response)};
_.Dy.Object.defineProperties(mI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sE=function(){};
_.c(sE,pL);sE.prototype.getApiPaths=function(){return K0N};
sE.prototype.getExtension=function(O){return _.q(O,_.k$p)};
sE.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.createCommentParams&&(O.createCommentParams=x.createCommentParams);x.commentText&&(O.commentText=_.db(x.commentText));x.videoPositionMention&&(O.videoPositionMention=x.videoPositionMention);x.sources&&(O.sources=x.sources);e.comment_text&&(O.commentText=e.comment_text);e.attached_video_id?O.videoAttachment={videoId:e.attached_video_id}:e.poll_options?O.pollAttachment={choices:e.poll_options}:e.image_blob_id?O.imageAttachment=
{encryptedBlobId:e.image_blob_id}:e.shared_post_id&&(O.sharedPostAttachment={postId:e.shared_post_id});e.access_restrictions&&typeof e.access_restrictions==="number"&&(x=e.access_restrictions,O.accessRestrictions={restriction:x!==1&&x===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});e.botguard_response&&(O.botguardResponse=e.botguard_response)};
_.Dy.Object.defineProperties(sE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WW=function(){};
_.c(WW,pL);WW.prototype.getApiPaths=function(){return Sj$};
WW.prototype.getExtension=function(O){return _.q(O,G$R)};
WW.prototype.JSC$13266_buildRequest=function(O,x,e){x.commentText&&(O.replyText=_.db(x.commentText));e.comment_text&&(O.replyText=e.comment_text);O.updateReplyParams=x.updateReplyParams};
_.Dy.Object.defineProperties(WW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ho=function(){};
_.c(ho,pL);ho.prototype.getApiPaths=function(){return jbd};
ho.prototype.getExtension=function(O){return _.q(O,DOk)};
ho.prototype.JSC$13266_buildRequest=function(O,x,e){x.commentText&&(O.commentText=_.db(x.commentText));e.comment_text&&(O.commentText=e.comment_text);O.updateCommentParams=x.updateCommentParams};
_.Dy.Object.defineProperties(ho.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zs=function(){};
_.c(zs,pL);zs.prototype.getApiPaths=function(){return Ned};
zs.prototype.getExtension=function(O){return _.q(O,XPJ)};
zs.prototype.JSC$13266_buildRequest=function(O,x){x.settings&&(O.settings=x.settings)};var rh=function(){};
_.c(rh,pL);rh.prototype.getApiPaths=function(){return $PN};
rh.prototype.getExtension=function(O){return _.q(O,wYd)};
rh.prototype.JSC$13266_buildRequest=function(O,x){x.channelCreationToken&&(O.channelCreationToken=x.channelCreationToken);x.source&&(O.source=x.source)};var HW=function(){};
_.c(HW,pL);HW.prototype.getApiPaths=function(){return rXz};
HW.prototype.getExtension=function(O){return _.q(O,N1p)};
HW.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;if(e.name&&(e.given_name||e.family_name))O=new _.ry("channel creation cannot set both GAIA and YouTube names",x),_.BH(O);else{if(x.zeroStepChannelCreationParams){if(!e.comment_text){O=new _.ry("zero_step_create_comment_params but no zero_step_texts",x);_.BH(O);return}O.zeroStepChannelCreationParams=x.zeroStepChannelCreationParams;O.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(O.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
e.comment_text,e.botguard_response&&(O.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=e.botguard_response))}O.channelCreationToken=x.channelCreationToken;e.given_name&&(O.givenName=e.given_name);e.family_name&&(O.familyName=e.family_name);x.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(O.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(e.name||e.handle||e.avatar_url||e.encryptedBlobId||e.isNameChanged!==void 0||e.isHandleChanged!==void 0||e.isDefaultProfilePhoto!==
void 0||e.obakeImageSource)O.overrideChannelCreationParams={},e.name&&(O.overrideChannelCreationParams.name=e.name),e.handle&&(O.overrideChannelCreationParams.handle=e.handle),e.avatar_url&&(O.overrideChannelCreationParams.avatarUrl=e.avatar_url),e.encryptedBlobId&&(O.overrideChannelCreationParams.blobEncryptionId=e.encryptedBlobId),e.enableIdentityForAllChannelCreationDialog&&(e.encryptedBlobId?O.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
e.isDefaultProfilePhoto!==void 0&&(O.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=e.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),e.isNameChanged!==void 0&&(O.overrideChannelCreationParams.identityForAllChannelCreationNameTag=e.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),e.isHandleChanged!==
void 0&&(O.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=e.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),e.obakeImageSource&&(O.overrideChannelCreationParams.obakeImageSourceType=e.obakeImageSource))}};var K4=function(){};
_.c(K4,pL);K4.prototype.getApiPaths=function(O){return(O=this.getExtension(O))&&O.status==="DISLIKE"?fZp:O&&O.status==="INDIFFERENT"?a_R:yHN};
K4.prototype.getExtension=function(O){return _.q(O,_.I$)};
K4.prototype.JSC$13266_buildRequest=function(O,x){x.target&&(O.target=x.target);if(x=this.getParams(x))O.params=x};
K4.prototype.getParams=function(O){switch(O==null?void 0:O.status){case "DISLIKE":return O.dislikeParams;case "INDIFFERENT":return O.removeLikeParams;default:return O==null?void 0:O.likeParams}};var dh=function(){};
_.c(dh,pL);dh.prototype.getApiPaths=function(){return nvd};
dh.prototype.getExtension=function(O){return _.q(O,cTd)};
dh.prototype.JSC$13266_buildRequest=function(O,x){x.settingItemId&&(O.settingItemId=x.settingItemId);x.stringValue!=null&&x.stringValue!==void 0?O.newValue={stringValue:x.stringValue}:x.intValue?O.newValue={intValue:x.intValue}:x.boolValue!==null&&x.boolValue!==void 0?O.newValue={boolValue:x.boolValue}:(O=new _.ry("Unknown value type for SetSettingEndpoint.",x),_.BH(O))};var n4=function(){};
_.c(n4,pL);n4.prototype.getApiPaths=function(){return Be3};
n4.prototype.getExtension=function(O){return _.q(O,uZp)||void 0};
n4.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.channelIds&&(O.channelIds=x.channelIds);x.siloName&&(O.siloName=x.siloName);x.params&&(O.params=x.params);e.botguardResponse&&(O.botguardResponse=e.botguardResponse);e.feature&&(O.clientFeature=e.feature)};
_.Dy.Object.defineProperties(n4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u2=function(){};
_.c(u2,pL);u2.prototype.getApiPaths=function(){return f_F};
u2.prototype.getExtension=function(O){return _.q(O,IBk)||void 0};
u2.prototype.JSC$13266_buildRequest=function(O,x){x.channelIds&&(O.channelIds=x.channelIds);x.siloName&&(O.siloName=x.siloName);x.params&&(O.params=x.params)};
_.Dy.Object.defineProperties(u2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Yr=function(O){this.shareClientParamsProvider=O};
_.c(Yr,pL);Yr.prototype.getApiPaths=function(){return vYN};
Yr.prototype.getExtension=function(O){return _.q(O,S2p)||_.q(O,_.jdF)||_.q(O,wr3)};
Yr.prototype.JSC$13266_buildRequest=function(O,x){x.serializedShareEntity&&(O.serializedSharedEntity=x.serializedShareEntity);if(x.clientParamIdentifier){var e;if((e=this.shareClientParamsProvider)==null?0:e.clientParams.has(x.clientParamIdentifier)){e=this.shareClientParamsProvider;x=x.clientParamIdentifier;var l=e.clientParams.get(x);l&&e.clientParams.delete(x);O.clientParams=l}}};
Yr[Fc]=[nLe];var BW=function(){};
_.c(BW,pL);BW.prototype.getApiPaths=function(){return IZp};
BW.prototype.getExtension=function(O){return _.q(O,Pz3)};
BW.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var vW=function(){};
_.c(vW,pL);vW.prototype.getApiPaths=function(){return JX3};
vW.prototype.getExtension=function(O){return _.q(O,ETR)};
vW.prototype.JSC$13266_buildRequest=function(O,x){x.dismissal&&(O.items=[x.dismissal])};
_.Dy.Object.defineProperties(vW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f4=function(){};
_.c(f4,pL);f4.prototype.getApiPaths=function(){return Xf3};
f4.prototype.getExtension=function(O){return _.q(O,_.Ee)||void 0};
f4.prototype.JSC$13266_buildRequest=function(O,x,e){O.feedbackTokens=[];x.feedbackToken&&O.feedbackTokens.push(x.feedbackToken);if(x=x.cpn||e.cpn)O.feedbackContext={cpn:x};O.isFeedbackTokenUnencrypted=!!e.is_feedback_token_unencrypted;O.shouldMerge=!1;e.extra_feedback_tokens&&(O.shouldMerge=!0,O.feedbackTokens=O.feedbackTokens.concat(e.extra_feedback_tokens))};
_.Dy.Object.defineProperties(f4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jo=function(){};
_.c(Jo,pL);Jo.prototype.getApiPaths=function(){return Xf3};
Jo.prototype.getExtension=function(O){return _.q(O,_.xm)};
Jo.prototype.JSC$13266_buildRequest=function(O,x,e){e.feedback_tokens&&(O.feedbackTokens=e.feedback_tokens,O.shouldMerge=!0)};
_.Dy.Object.defineProperties(Jo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wh=function(){};
_.c(wh,pL);wh.prototype.getApiPaths=function(){return Xf3};
wh.prototype.getExtension=function(O){return _.q(O,$HV)};
wh.prototype.JSC$13266_buildRequest=function(O,x){x.undoToken&&(O.feedbackTokens=[x.undoToken]);x.isUndoTokenUnencrypted&&(O.isFeedbackTokenUnencrypted=x.isUndoTokenUnencrypted)};
_.Dy.Object.defineProperties(wh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var St=function(){};
_.c(St,pL);St.prototype.getApiPaths=function(){return xr2};
St.prototype.getExtension=function(O){return _.q(O,oTR)};
St.prototype.JSC$13266_buildRequest=function(O,x){x.nextEndpoint&&_.q(x.nextEndpoint,_.$b)?O.nextEndpoint={urlEndpoint:_.q(x.nextEndpoint,_.$b)}:x.nextEndpoint&&_.q(x.nextEndpoint,_.Hq)&&(O.nextEndpoint={watchEndpoint:_.q(x.nextEndpoint,_.Hq)});x.setRacy&&(O.setRacy=x.setRacy);x.setControvercy&&(O.setControvercy=x.setControvercy)};var jt=function(O){this.JSC$18113_storeWithEntities=O};
_.c(jt,pL);jt.prototype.getApiPaths=function(){return SLR};
jt.prototype.getExtension=function(O){return _.q(O,YF$)};
jt.prototype.JSC$13266_buildRequest=function(O,x){x.flowId&&(O.flowId=x.flowId);x.targetId&&(O.targetId=x.targetId);x.continuation&&(O.continuation=x.continuation);var e=x.flowStateEntityKey;if(x.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&e&&this.JSC$18113_storeWithEntities){var l;if(x=(l=this.JSC$18113_storeWithEntities.getState())==null?void 0:l.entities)if(l=_.gT(e).entityType,l=_.xE(x,l,e))O.flowState=l,O.flowStateEntityKey=e}};
_.Dy.Object.defineProperties(jt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
jt[Fc]=[fM];var wXO=function(){};
_.c(wXO,pL);_.b=wXO.prototype;_.b.getApiPaths=function(){return FT2};
_.b.JSC$13273_getStoreKey=function(){return _.rr("guide")};
_.b.getRequestConfig=function(){var O=this.JSC$13273_getStoreKey(),x;O&&(x={storeStrategy:{storeKey:O}});return x};
_.b.isNavigationCommand=function(){return!0};
_.b.getExtension=function(O){return _.q(O,_.xm)};
_.b.JSC$13266_buildRequest=function(O){O.fetchLiveState=!0};var Nd=function(){};
_.c(Nd,pL);Nd.prototype.getApiPaths=function(){return UPd};
Nd.prototype.getExtension=function(O){return _.q(O,bnd)};
Nd.prototype.JSC$13266_buildRequest=function(){};var gh=function(){};
_.c(gh,pL);gh.prototype.getApiPaths=function(){return aZF};
gh.prototype.getExtension=function(O){return _.q(O,T_z)};
gh.prototype.JSC$13266_buildRequest=function(){};var $r=function(){};
_.c($r,pL);$r.prototype.getApiPaths=function(){return cXz};
$r.prototype.getExtension=function(O){return _.q(O,_.U1)};
$r.prototype.JSC$13266_buildRequest=function(O,x){x.token&&(O.continuation=x.token);var e,l;O==null||(e=O.context)==null||(l=e.user)==null||delete l.onBehalfOfUser};
$r.prototype.getRequestConfig=function(O){var x={},e;if(((e=this.getExtension(O))==null?void 0:e.sessionIndex)!==void 0){var l;x={authStrategy:{sessionIndex:(l=this.getExtension(O))==null?void 0:l.sessionIndex}}}return x};var i2=function(){};
_.c(i2,pL);i2.prototype.JSC$13266_getRequest=function(O){var x=this.getExtension(O),e=O="";if(x==null?0:x.popup)O="true";if(x==null?0:x.disableSignout)e="true";x={};return{input:"/getAccountSwitcherEndpoint",requestShell:z0("/getAccountSwitcherEndpoint","GET",(x["X-YouTube-Delegation-Context"]=_.wz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),x["X-YouTube-Account-Switcher-Popup"]=O,x["X-YouTube-Account-Switcher-Disable-Signout"]=e,x)),innerTubeRequest:{}}};
i2.prototype.getApiPaths=function(){return[]};
i2.prototype.getExtension=function(O){return _.q(O,_.p_7)};
i2.prototype.JSC$13266_buildRequest=function(){};var OD=function(){};
_.c(OD,pL);OD.prototype.JSC$13266_getRequest=function(O){var x="/cross_account_channel_transfer";(O=this.getExtension(O))&&(x=ffw(x,{target_session:O.targetSessionIndex,source_rapt:O.sourceRapt,rapt:O.targetRapt}));return{input:x,requestShell:z0(x,"GET"),innerTubeRequest:{}}};
OD.prototype.getApiPaths=function(){return[]};
OD.prototype.getExtension=function(O){return _.q(O,AnR)};
OD.prototype.JSC$13266_buildRequest=function(){};var LE=function(){};
_.c(LE,pL);LE.prototype.getApiPaths=function(){return j4d};
LE.prototype.isNavigationCommand=function(){return!0};
LE.prototype.getExtension=function(O){return _.q(O,_.xm)};
LE.prototype.JSC$13266_buildRequest=function(O){var x=_.TD().get("gsml","");x&&(O.safetyModeLockerObfuscatedGaiaId=x);O.userInterfaceTheme=_.Fo(!0);_.Xo()?O.deviceTheme="DEVICE_THEME_SELECTED":_.yXs()?O.deviceTheme="DEVICE_THEME_SUPPORTED":O.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var kk=function(){};
_.c(kk,pL);kk.prototype.getApiPaths=function(){return cXz};
kk.prototype.getExtension=function(O){return _.q(O,MDR)};
kk.prototype.JSC$13266_buildRequest=function(O,x){if(x&&x.requestType&&(O.requestType=x.requestType,x.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||x.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var e=x.nextUrl;e&&(_.wqr(e)||Aq(e))&&(O.nextNavendpoint={urlEndpoint:{url:e}})}x&&x.channelSwitcherQuery&&(O.channelSwitcherQuery=x.channelSwitcherQuery);x&&x.triggerChannelCreation&&(O.triggerChannelCreation=x.triggerChannelCreation);var l;if(x==null?0:(l=x.contentOwnerConfig)==
null?0:l.externalContentOwnerId)O.contentOwnerConfig=x.contentOwnerConfig;O.callCircumstance=x&&x.requestType&&x.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var C,Q;x=O==null?void 0:(C=O.context)==null?void 0:(Q=C.user)==null?void 0:Q.onBehalfOfUser;if(x!==void 0){O.obfuscatedSelectedGaiaId=x;var L,k;O==null||(L=O.context)==null||(k=L.user)==null||delete k.onBehalfOfUser}var M,G;if(C=O==null?void 0:(M=O.context)==null?void 0:(G=M.user)==null?
void 0:G.serializedDelegationContext)O.selectedSerializedDelegationContext=C};var AR=function(){};
_.c(AR,pL);AR.prototype.getApiPaths=function(){return VV4};
AR.prototype.getExtension=function(O){return _.q(O,NHz)};
AR.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var MF=function(){};
_.c(MF,pL);MF.prototype.getApiPaths=function(){return zX4};
MF.prototype.getExtension=function(O){return _.q(O,_.THD)};
MF.prototype.JSC$13266_buildRequest=function(O,x){if(x=x.createBroadcastRequest)O.useMasks=x.useMasks,O.broadcastType=x.broadcastType,O.broadcastSource=x.broadcastSource,O.broadcastMetadata=x.broadcastMetadata,O.broadcastMetadataMask=x.broadcastMetadataMask,O.videoMetadata=x.videoMetadata,O.videoMetadataMask=x.videoMetadataMask,O.liveChatSettingsUpdate=x.liveChatSettingsUpdate,O.liveChatSettingsUpdateMask=x.liveChatSettingsUpdateMask,O.cloneVideoId=x.cloneVideoId,O.cloneWithOverrides=x.cloneWithOverrides,
O.targetEntity=x.targetEntity,O.scheduledRedirectMetadata=x.scheduledRedirectMetadata};var Dj=function(){};
_.c(Dj,pL);Dj.prototype.getApiPaths=function(){return dPF};
Dj.prototype.getExtension=function(O){return _.q(O,iYd)};
Dj.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.params&&(O.params=x.params);e.questionText&&(O.questionText=e.questionText);e.optionText&&e.optionText.length>0&&(O.optionText=e.optionText)};var Gv=function(){};
_.c(Gv,pL);Gv.prototype.getApiPaths=function(){return YLR};
Gv.prototype.getExtension=function(O){return _.q(O,go4)};
Gv.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var FL=function(){};
_.c(FL,pL);FL.prototype.getApiPaths=function(){return ON$};
FL.prototype.getExtension=function(O){return _.q(O,wjL)};
FL.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var XL=function(){};
_.c(XL,pL);XL.prototype.getApiPaths=function(){return e$F};
XL.prototype.getExtension=function(O){return _.q(O,SlL)};
XL.prototype.JSC$13266_buildRequest=function(O,x,e){x.params&&(O.params=x.params);x.continuation&&(O.continuation=x.continuation);e.currentPlayerState&&e.currentPlayerState.playerOffsetMs&&(O.currentPlayerState={playerOffsetMs:e.currentPlayerState.playerOffsetMs.toString()})};var oT=function(){};
_.c(oT,pL);oT.prototype.getApiPaths=function(){return l_d};
oT.prototype.getExtension=function(O){return _.q(O,JEp)};
oT.prototype.JSC$13266_buildRequest=function(O,x,e){x.params&&(O.params=x.params);e.continuation&&(O.continuation=e.continuation);"hidden"in e&&(O.webClientInfo={isDocumentHidden:e.hidden});e.isInvalidationTimeoutRequest&&(O.isInvalidationTimeoutRequest=e.isInvalidationTimeoutRequest);e.invalidationPayload&&(x=fMD(_.ir(Mb(e.invalidationPayload))),O.invalidationPayloadLastPublishAtUsec=ZO(x,2));e.reloadActionPanel&&(O.reloadActionPanel=e.reloadActionPanel);e.fullReload&&(O.fullReload=e.fullReload);
e.currentPlayerState&&(O.currentPlayerState=e.currentPlayerState)};var ye=function(){};
_.c(ye,pL);ye.prototype.getApiPaths=function(){return ZN$};
ye.prototype.getExtension=function(O){return _.q(O,$sz)};
ye.prototype.JSC$13266_buildRequest=function(O,x){O.params=x.params};var Zj=function(){};
_.c(Zj,pL);Zj.prototype.getApiPaths=function(){return xeN};
Zj.prototype.getExtension=function(O){return _.q(O,DLp)};
Zj.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var ED=function(){};
_.c(ED,pL);ED.prototype.getApiPaths=function(){return CEL};
ED.prototype.getExtension=function(O){return _.q(O,GT3)};
ED.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var tR=function(){};
_.c(tR,pL);tR.prototype.getApiPaths=function(){return Evz};
tR.prototype.getExtension=function(O){return _.q(O,Ooz)};
tR.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var qF=function(){};
_.c(qF,pL);qF.prototype.getApiPaths=function(){return qj4};
qF.prototype.getExtension=function(O){return _.q(O,xKD)};
qF.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var Pk=function(){};
_.c(Pk,pL);Pk.prototype.getApiPaths=function(){return me$};
Pk.prototype.getExtension=function(O){return _.q(O,iLF)};
Pk.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var ck=function(){};
_.c(ck,pL);ck.prototype.getApiPaths=function(){return KTk};
ck.prototype.getExtension=function(O){return _.q(O,_.em3)};
ck.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.params&&(O.params=x.params);e.client_message_id&&(O.clientMessageId=e.client_message_id);e.recaptcha_token&&(O.recaptchaToken=e.recaptcha_token);e.rich_message&&e.rich_message.text_segments?(x=e.rich_message.text_segments.map(function(l){var C={};l.text&&(C.text=l.text);l.emoji_id&&(C.emojiId=l.emoji_id);return C}),O.richMessage={textSegments:x}):e.message&&(O.message=e.message);
e.currentPlayerState&&(O.currentPlayerState=e.currentPlayerState)};var IT=function(){};
_.c(IT,pL);IT.prototype.getApiPaths=function(){return deF};
IT.prototype.getExtension=function(O){return _.q(O,lvT)};
IT.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var Ve=function(){};
_.c(Ve,pL);Ve.prototype.getApiPaths=function(){return vvJ};
Ve.prototype.getExtension=function(O){return _.q(O,Q7d)};
Ve.prototype.JSC$13266_buildRequest=function(O,x,e){x.isUserInitiated&&(O.isUserInitiated=x.isUserInitiated);x.initiationSource&&(O.initiationSource=x.initiationSource);e.locationInfo&&(O.context.client.locationInfo=e.locationInfo)};var pE=function(){};
_.c(pE,pL);pE.prototype.getApiPaths=function(){return tI2};
pE.prototype.getExtension=function(O){return _.q(O,LGD)};
pE.prototype.JSC$13266_buildRequest=function(O,x,e){x.metadataUpdateRequest&&(x=x.metadataUpdateRequest,O.encryptedVideoId=x.encryptedVideoId,x.liveChat&&(x=x.liveChat,O.liveChat||(O.liveChat={}),x.performAsExternalChannelId&&(O.liveChat.performAsExternalChannelId=x.performAsExternalChannelId),x.source&&(O.liveChat.source=x.source)));var l;if(e==null?0:(l=e.liveChat)==null?0:l.liveChatSettings)O.liveChat||(O.liveChat={}),e=e.liveChat.liveChatSettings,O.liveChat.newLiveChatSettings=e,O.liveChat.newLiveChatSettingsMask||
(O.liveChat.newLiveChatSettingsMask={}),e.emojiReactionSet&&(O.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var RT=function(){};
_.c(RT,pL);RT.prototype.getApiPaths=function(){return iNF};
RT.prototype.getExtension=function(O){return _.q(O,_.V73)};
RT.prototype.JSC$13266_buildRequest=function(O,x,e){e.continuation?O.continuation=e.continuation:x.videoId&&(O.videoId=x.videoId);e.clientParams&&(O.clientParams=e.clientParams)};var UD=function(){};
_.c(UD,pL);UD.prototype.getApiPaths=function(){return QbT};
UD.prototype.getExtension=function(O){return _.q(O,_.Bj)};
UD.prototype.JSC$13266_buildRequest=function(O,x){O.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";O.fetchCommentsParams={};x.videoId&&(O.fetchCommentsParams.encryptedVideoId=x.videoId);x.postId&&(O.fetchCommentsParams.postId=x.postId);x.externalChannelId&&(O.fetchCommentsParams.externalChannelId=x.externalChannelId);x.linkedCommentId&&(O.fetchCommentsParams.linkedCommentId=x.linkedCommentId);(0,_.HX.isEmpty)(O.fetchCommentsParams)&&delete O.fetchCommentsParams};var aT=function(){};
_.c(aT,pL);aT.prototype.getApiPaths=function(){return z_};
aT.prototype.JSC$13266_buildRequest=function(O){O.browseId="FEnotifications_inbox"};
aT.prototype.getExtension=function(O){return _.q(O,_.xm)};var m7=function(){};
_.c(m7,pL);m7.prototype.getApiPaths=function(){return QbT};
m7.prototype.JSC$13266_buildRequest=function(O,x){x.signal==="GET_NOTIFICATIONS_MENU"&&(O.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");x.ctoken&&(O.ctoken=x.ctoken)};
var SdL=function(){};
_.c(SdL,m7);SdL.prototype.getExtension=function(O){return _.q(O,_.xm)};
var jnL=function(){};
_.c(jnL,m7);jnL.prototype.getExtension=function(O){return _.q(O,Gkk)};var sD=function(){};
_.c(sD,pL);sD.prototype.getApiPaths=function(){return MIF};
sD.prototype.getExtension=function(O){return _.q(O,_.xm)};
sD.prototype.JSC$13266_buildRequest=function(){};var Wk=function(){};
_.c(Wk,pL);Wk.prototype.getApiPaths=function(){return PE2};
Wk.prototype.getExtension=function(O){return _.q(O,t73)||void 0};
Wk.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params);x.secondaryParams&&(O.secondaryParams=x.secondaryParams)};var hR=function(){};
_.c(hR,pL);hR.prototype.getApiPaths=function(){return cHR};
hR.prototype.getExtension=function(O){return _.q(O,gqd)};
hR.prototype.JSC$13266_buildRequest=function(O,x){x.undo&&(O.undo=x.undo);x.serializedOptOut&&(O.serializedOptOut=x.serializedOptOut);x.serializedRecordInteractionsRequest&&(O.serializedRecordInteractionsRequest=x.serializedRecordInteractionsRequest)};var zv=function(){};
_.c(zv,pL);zv.prototype.getApiPaths=function(){return pfz};
zv.prototype.getExtension=function(O){return _.q(O,$np)};
zv.prototype.JSC$13266_buildRequest=function(O,x){x.serializedInteractionsRequest&&(O.serializedRecordNotificationInteractionsRequest=x.serializedInteractionsRequest)};var rZ=function(){};
_.c(rZ,pL);rZ.prototype.getApiPaths=function(){return fRW};
rZ.prototype.getExtension=function(O){return _.q(O,z8W)};
rZ.prototype.JSC$13266_buildRequest=function(O,x,e){x=x===void 0?{}:x;e=e===void 0?{}:e;x.videoId?O.videoId=x.videoId:x.playlistId&&(O.playlistId=x.playlistId);var l,C=(l=x.offlineWebClientEligibility)!=null?l:e.offlineWebClientEligibility;C&&(O.offlineWebClientEligibility=C);var Q;if(l=(Q=x.preferredFormatType)!=null?Q:e.preferredFormatType)O.preferredFormatType=l;var L;if(Q=(L=x.lastOfflineQualitySettingsSavedMs)!=null?L:e.lastOfflineQualitySettingsSavedMs)O.lastOfflineQualitySettingsSavedMs=Q;
x.params&&(O.params=x.params)};var Hk=function(){};
_.c(Hk,pL);Hk.prototype.getApiPaths=function(){return Lo};
Hk.prototype.getExtension=function(O){return _.q(O,_.U1)};
Hk.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.token&&(O.continuation=x.token);e.formData&&(O.formData=e.formData)};var KE=function(){};
_.c(KE,pL);KE.prototype.getApiPaths=function(){return Lo};
KE.prototype.getExtension=function(O){return _.q(O,eqD)};
KE.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;O.continuation=e.continuation};var dZ=function(){};
_.c(dZ,pL);dZ.prototype.getApiPaths=function(){return Lo};
dZ.prototype.getExtension=function(O){return _.q(O,_.Zr)};
dZ.prototype.JSC$13266_buildRequest=function(O,x){var e,l=x.panelIdentifier||((e=x.identifier)==null?void 0:e.tag);l&&(O.panelId=l);var C;if((C=x.globalConfiguration)==null?0:C.params){var Q;O.params=(Q=x.globalConfiguration)==null?void 0:Q.params}};
_.Dy.Object.defineProperties(dZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nE=function(){};
_.c(nE,pL);nE.prototype.getApiPaths=function(){return Lo};
nE.prototype.getExtension=function(O){return _.q(O,fB$)};
nE.prototype.JSC$13266_buildRequest=function(O,x){x.panelLoadingStrategy&&v3L(O,x.panelLoadingStrategy)};var uS=function(){};
_.c(uS,pL);uS.prototype.getApiPaths=function(){return Lo};
uS.prototype.getExtension=function(O){return _.q(O,kTp)};
uS.prototype.JSC$13266_buildRequest=function(O,x){x.loadingStrategy&&v3L(O,x.loadingStrategy)};var Yk=function(){};
_.c(Yk,pL);Yk.prototype.getApiPaths=function(){return Lo};
Yk.prototype.getExtension=function(O){return _.q(O,_.k4W)};
Yk.prototype.JSC$13266_buildRequest=function(O,x){x.panelLoadingStrategy&&v3L(O,x.panelLoadingStrategy)};var Bk=function(){};
_.c(Bk,pL);Bk.prototype.getApiPaths=function(){return Lo};
Bk.prototype.getExtension=function(O){return _.q(O,Acd)};
Bk.prototype.JSC$13266_buildRequest=function(O,x){var e,l=(e=x.contentSourcePanelIdentifier)==null?void 0:e.tag;l&&(O.panelId=l);var C;if((C=x.globalConfiguration)==null?0:C.params){var Q;O.params=(Q=x.globalConfiguration)==null?void 0:Q.params}};var vk=function(){};
_.c(vk,pL);vk.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
vk.prototype.getExtension=function(O){return _.q(O,MOk)};
vk.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var fE=function(){};
_.c(fE,pL);fE.prototype.getApiPaths=function(){return $e$};
fE.prototype.getExtension=function(O){return _.q(O,FPd)};
fE.prototype.JSC$13266_buildRequest=function(O,x){x.externalChannelId&&(O.externalChannelId=x.externalChannelId);x.superChatAction&&(O.superChatAction=x.superChatAction);x.superStickersAction&&(O.superStickersAction=x.superStickersAction)};var JR=function(){};
_.c(JR,pL);JR.prototype.getApiPaths=function(){return NGT};
JR.prototype.getExtension=function(O){return _.q(O,Qek)||_.q(O,Hvn)};
JR.prototype.JSC$13266_buildRequest=function(O,x){x.videoIds?O.videoIds=x.videoIds:x.videoId&&(O.videoIds=[x.videoId]);x.playlistId&&(O.playlistId=x.playlistId);x.params&&(O.params=x.params);O.excludeWatchLater=!1};var wZ=function(){};
_.c(wZ,pL);wZ.prototype.getApiPaths=function(){return n64};
wZ.prototype.getExtension=function(O){return _.q(O,_.Ns)};
wZ.prototype.JSC$13266_buildRequest=function(O,x,e){e.create_playlist_title?O.title=e.create_playlist_title:x.title&&(O.title=x.title);if(e.create_playlist_privacy_status&&typeof e.create_playlist_privacy_status==="number"){a:{var l=e.create_playlist_privacy_status;if(l!==0){if(l===1){l="PUBLIC";break a}if(l===2){l="UNLISTED";break a}}l="PRIVATE"}O.privacyStatus=l}else x.privacyStatus&&(O.privacyStatus=x.privacyStatus);e.create_playlist_description&&(O.description=e.create_playlist_description);x.videoIds&&
(O.videoIds=x.videoIds);x.params&&(O.params=x.params);x.sourcePlaylistId&&(O.sourcePlaylistId=x.sourcePlaylistId)};var Sr=function(){};
_.c(Sr,pL);Sr.prototype.getApiPaths=function(){return BGL};
Sr.prototype.getExtension=function(O){return _.q(O,FrL)};
Sr.prototype.JSC$13266_buildRequest=function(O,x){O.playlistId=x.playlistId};var jr=function(){};
_.c(jr,pL);jr.prototype.getApiPaths=function(){return bN$};
jr.prototype.getExtension=function(O){return _.q(O,f5F)};
jr.prototype.JSC$13266_buildRequest=function(O,x){x.playlistId&&(O.playlistId=x.playlistId);x.params&&(O.params=x.params)};var NF=function(){};
_.c(NF,pL);NF.prototype.getApiPaths=function(){return VIR};
NF.prototype.getExtension=function(O){return _.q(O,_.vj)||void 0};
NF.prototype.JSC$13266_buildRequest=function(O,x){x.actions&&(O.actions=x.actions);x.params&&(O.params=x.params);x.playlistId&&(O.playlistId=x.playlistId)};var gZ=function(){};
_.c(gZ,pL);_.b=gZ.prototype;_.b.getApiPaths=function(){return R$z};
_.b.getExtension=function(O){return _.q(O,_.kU)};
_.b.JSC$13266_buildRequest=function(O,x){x.videoId&&(O.playerRequest={videoId:x.videoId},x.playerParams&&(O.playerRequest.params=x.playerParams),x.racyCheckOk&&(O.playerRequest.racyCheckOk=!!x.racyCheckOk),x.contentCheckOk&&(O.playerRequest.contentCheckOk=!!x.contentCheckOk));x.params&&(O.params=x.params);x.inputType&&(O.inputType=x.inputType);O.disablePlayerResponse=!0};
_.b.getRequestConfig=function(O){var x;(O=this.JSC$13273_getStoreKey(O))&&(x={storeStrategy:{storeKey:O}});_.t("web_log_reels_ticks")&&(x=x||{},x.requestTick="r_wrs",x.responseTick="r_wrr");return x};
_.b.JSC$13273_getStoreKey=function(O){O=this.getExtension(O);if(O!=null&&O.videoId){var x={videoId:O.videoId};O.params&&(x.params=O.params);return _.rr("reel_item_watch",x)}};var $k=function(){};
_.c($k,pL);_.b=$k.prototype;_.b.getApiPaths=function(){return UeR};
_.b.getExtension=function(O){return _.q(O,_.kU)};
_.b.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;O.sequenceParams=x.sequenceParams;var l;((l=e)==null?0:l.contentPlaybackContext)&&_.t("web_shorts_prefetch_service_enabled")&&(O.playbackContext={contentPlaybackContext:e.contentPlaybackContext})};
_.b.JSC$13273_getStoreKey=function(O){if(_.t("web_enable_delay_shorts_sequence_call")||_.t("shorts_controller_retrieve_seedless_sequence_v2"))if(O=this.getExtension(O),O==null?0:O.sequenceParams)return _.rr("reel_watch_sequence",{sequenceParams:O.sequenceParams})};
_.b.getRequestConfig=function(O){O=this.JSC$13273_getStoreKey(O);var x;O&&(x={storeStrategy:{storeKey:O}});x=x||{};x.requestTick="r_wsrs";x.responseTick="r_wsrr";x.processorTick="r_wsrp";return x};
var iS=function(){};
_.c(iS,pL);iS.prototype.getApiPaths=function(){return UeR};
iS.prototype.getExtension=function(O){return _.q(O,_.U1)};
iS.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.token&&(O.continuation=x.token);var l;((l=e)==null?0:l.contentPlaybackContext)&&_.t("web_shorts_prefetch_service_enabled")&&(O.playbackContext={contentPlaybackContext:e.contentPlaybackContext})};
iS.prototype.getRequestConfig=function(O){O=this.JSC$13273_getStoreKey(O);var x;O&&(x={storeStrategy:{storeKey:O}});x=x||{};x.requestTick="r_wsrs";x.responseTick="r_wsrr";x.processorTick="r_wsrp";return x};var Oz=function(){};
_.c(Oz,pL);Oz.prototype.getApiPaths=function(){return w$p};
Oz.prototype.getExtension=function(O){return _.q(O,_.d_L)};
Oz.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.flagAction&&(O.action=x.flagAction);x.flagRequestType&&(O.flagRequestType=x.flagRequestType);x.additionalDetailCheckboxChecked&&(O.additionalDetailCheckboxChecked=x.additionalDetailCheckboxChecked);x.legalCheckboxChecked&&(O.legalCheckboxChecked=x.legalCheckboxChecked);x={};e.flag_issue_type!==void 0&&(x.issue=e.flag_issue_type);e.flag_affiliation!==void 0&&(x.affiliation=e.flag_affiliation);e.flag_full_name&&(x.fullName=e.flag_full_name);
Object.keys(x).length&&(O.legalReportDetails=x);if(e.flag_description||e.text)O.userComments=e.flag_description||e.text;x={};e.minutes!==void 0&&e.seconds!==void 0&&(x.minutes=e.minutes,x.seconds=e.seconds);e.vss_id&&(x.vssId=e.vss_id);Object.keys(x).length&&(O.videoReportDetails=x);x={};e.video_ids&&(x.videoIds=e.video_ids);e.impersonated_channel_url&&(x.impersonatedChannelUrl=e.impersonated_channel_url);Object.keys(x).length&&(O.channelAbuseReportDetails=x)};
_.Dy.Object.defineProperties(Oz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xf=function(){};
_.c(xf,pL);xf.prototype.getApiPaths=function(){return ig2};
xf.prototype.getExtension=function(O){return _.q(O,GUD)};
xf.prototype.JSC$13266_buildRequest=function(O,x){x.blockedForKidsContent&&(O.blockedForKidsContent=x.blockedForKidsContent)};var en=function(){};
_.c(en,pL);en.prototype.getApiPaths=function(){return sbN};
en.prototype.getExtension=function(O){return _.q(O,rV8)};
en.prototype.JSC$13266_buildRequest=function(O,x,e){O.params=x.params;e.impersonated_channel_url&&(O.impersonatedChannelUrl=e.impersonated_channel_url)};var lT=function(){};
_.c(lT,pL);lT.prototype.getApiPaths=function(){return ov2};
lT.prototype.getExtension=function(O){return _.q(O,_.F5J)};
lT.prototype.JSC$13266_buildRequest=function(O,x){x.items&&(O.items=x.items);x.kidGaiaId&&(O.kidGaiaId=x.kidGaiaId)};var CT=function(){};
_.c(CT,pL);CT.prototype.getApiPaths=function(){return g6$};
CT.prototype.getExtension=function(O){return _.q(O,_.eYk)};
CT.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params);x.targetId&&(O.targetId=x.targetId)};var Q1=function(){};
_.c(Q1,pL);Q1.prototype.getApiPaths=function(){return rHJ};
Q1.prototype.getExtension=function(O){return _.q(O,F_$)};
Q1.prototype.JSC$13266_buildRequest=function(O,x){x.externalVideoId&&(O.externalVideoId=x.externalVideoId);x.query&&(O.query=x.query);x.sourceTimelines&&(O.sourceTimelines=x.sourceTimelines)};var bT=function(){};
_.c(bT,pL);bT.prototype.getApiPaths=function(){return HNd};
bT.prototype.getExtension=function(O){return _.q(O,_.U1)||void 0};
bT.prototype.JSC$13266_buildRequest=function(O,x){x.token&&(O.continuation=x.token)};
_.NcO=function(){};
_.c(_.NcO,pL);_.b=_.NcO.prototype;_.b.getApiPaths=function(){return HNd};
_.b.getExtension=function(O){return _.q(O,_.bK)||void 0};
_.b.isNavigationCommand=function(){return!0};
_.b.JSC$13273_getStoreKey=function(O,x){x=x===void 0?{}:x;if(!x.disableCache&&(O=this.getExtension(O))&&O.query)return x={query:O.query},O.params&&(x.params=O.params),_.rr("search",x)};
_.b.JSC$13266_buildRequest=function(O,x,e){x.query&&(O.query=x.query);x.params&&(O.params=x.params);if(!_.t("web_forward_suggest_stats_killswitch")){var l=_.q(x,KG2);l&&(O.suggestStats=l)}var C;!_.t("kevlar_searchbox_stats_killswitch")&&((C=e.tempData)==null?0:C.gs_l)&&!_.q(x,KG2)&&(O.webSearchboxStatsUrl="/search?oq="+(e.tempData.oq||"")+"&gs_l="+e.tempData.gs_l);var Q;if((Q=e.tempData)==null?0:Q.entityMid)x=O.suggestionSearchParams||{},x.entityMid=e.tempData.entityMid,O.suggestionSearchParams=x;
if(_.t("enable_desktop_vdcbg_components")||_.t("enable_inline_muted_playback_on_web_search"))x=_.TD().getFlag(186),O.inlineSettingStatus=x?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var L;((L=e.tempData)==null?0:L.isFromShorts)&&_.t("web_pass_shorts_context_to_search")&&(O.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.b.getRequestConfig=function(O,x){x=x===void 0?{}:x;O=this.JSC$13273_getStoreKey(O,x);var e;O&&(e={storeStrategy:{storeKey:O}});_.t("web_log_search_ticks_ks")||(e=e||{},e.requestTick="sr_s",e.responseTick="sr_r");return e};var Tf=function(){};
_.c(Tf,pL);Tf.prototype.getApiPaths=function(){return kzJ};
Tf.prototype.getExtension=function(O){return _.q(O,mA3)};
Tf.prototype.JSC$13266_buildRequest=function(O,x){x.serializedGetSharingProviderDataParams&&(O.serializedGetSharingProviderDataParams=x.serializedGetSharingProviderDataParams)};var LT=function(){};
_.c(LT,pL);LT.prototype.getApiPaths=function(){return AH3};
LT.prototype.getExtension=function(O){return _.q(O,hbR)};
LT.prototype.JSC$13266_buildRequest=function(O,x){x.endpoint&&(O.endpoint=x.endpoint);x.action&&(O.action=x.action)};var kf=function(){};
_.c(kf,pL);kf.prototype.getApiPaths=function(){return v63};
kf.prototype.getExtension=function(O){return _.q(O,Xy$)};
kf.prototype.JSC$13266_buildRequest=function(O,x){O.videoId=x.videoId;x.scheduledRedirectMetadataSourceVideoId&&(O.scheduledRedirectMetadata={sourceVideoId:x.scheduledRedirectMetadataSourceVideoId})};var Ag=function(){};
_.c(Ag,pL);Ag.prototype.getApiPaths=function(){return uVN};
Ag.prototype.getExtension=function(O){return _.q(O,_.oR2)};
Ag.prototype.JSC$13266_buildRequest=function(O,x){O.params=x.params;O.correctionText=x.correctionText};var MU=function(){};
_.c(MU,pL);MU.prototype.getApiPaths=function(){return YIn};
MU.prototype.getExtension=function(O){return _.q(O,_.Xg4)};
MU.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params);O.searchQuery=x.searchQuery;O.languageCode=x.languageCode;O.kind=x.kind;O.name=x.name;O.externalVideoId=x.externalVideoId};var DF=function(){};
_.c(DF,pL);DF.prototype.getApiPaths=function(){return lxR};
DF.prototype.getExtension=function(O){return _.q(O,s0N)};
DF.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.params=x.params)};var Gf=function(O){this.JSC$18384_storeWithEntities=O};
_.c(Gf,pL);Gf.prototype.getApiPaths=function(){return W0D};
Gf.prototype.getExtension=function(O){return _.q(O,h4R)||_.q(O,rMD)};
Gf.prototype.JSC$13266_buildRequest=function(O,x,e){e.client_data&&(O.clientData=e.client_data);if(x.commerceActionConfig){var l=x.commerceActionConfig;x=l.actionId;l=l.commerceActionParams;x&&(O.actionId=x);l&&(O.commerceActionParams=l)}else{var C=x.actionId,Q=x.commerceActionParams;e=x.entityKeys;C&&(O.actionId=C);Q&&(O.commerceActionParams=Q);var L;x=(l=this.JSC$18384_storeWithEntities)==null?void 0:(L=l.getState())==null?void 0:L.entities;if(e&&x){l=[];L=_.T(e);for(e=L.next();!e.done;e=L.next())if(C=
e.value,e=_.gT(C).entityType,C=_.xE(x,e,C))Q={},l.push((Q[e]=C,Q));O.entityMutationPayloads=l}}};
Gf.prototype.getRequestConfig=function(O){var x,e=(x=_.q(O,h4R))==null?void 0:x.requestSequenceType;if(e&&O.clickTrackingParams&&e!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:O.clickTrackingParams,sequenceType:e}}};
Gf[Fc]=[fM];var FX=function(){};
_.c(FX,pL);FX.prototype.getApiPaths=function(){return CpL};
FX.prototype.getExtension=function(O){return _.q(O,_.Ogd)};
FX.prototype.JSC$13266_buildRequest=function(O,x){x.feedbackData&&(O.feedbackData=x.feedbackData);x.params&&(O.itemParams=x.params)};
_.Dy.Object.defineProperties(FX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var XX=function(){};
_.c(XX,pL);XX.prototype.getApiPaths=function(){return QBN};
XX.prototype.getExtension=function(O){return _.q(O,xPd)};
XX.prototype.JSC$13266_buildRequest=function(O,x,e){e.payments_payload&&(O.paymentsPayload=e.payments_payload);e.offer_params&&(O.offerParams=e.offer_params);x.transactionParams&&(O.transactionParams=x.transactionParams)};var oi=function(){};
_.c(oi,pL);oi.prototype.getApiPaths=function(){return bBF};
oi.prototype.getExtension=function(O){return _.q(O,_.eXd)};
oi.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.buybucketParams&&(O.buybucketData={params:x.buybucketParams},x.stickerParams?O.buybucketData.stickerParams=x.stickerParams:(e.rich_chat_message?O.buybucketData.richChatMessage=e.rich_chat_message:e.chat_message_text&&(O.buybucketData.chatMessageText=e.chat_message_text),e.purchase_price_micros&&(O.buybucketData.purchasePriceMicros=e.purchase_price_micros.toString())));x.donationAmountMicros&&(O.tipAmountMicros=x.donationAmountMicros,
x.tipParams&&(O.tipParams=x.tipParams));x.offerParams&&(O.offerParams=x.offerParams);x.productData&&(O.productData=x.productData);x.transactionParams&&(O.transactionParams=x.transactionParams)};var y1=function(){};
_.c(y1,pL);y1.prototype.getApiPaths=function(){return TI4};
y1.prototype.getExtension=function(O){return _.q(O,Q4N)};
y1.prototype.JSC$13266_buildRequest=function(O,x){x.updateFopParams&&(O.updateFopParams=x.updateFopParams)};var ZF=function(){};
_.c(ZF,pL);ZF.prototype.getApiPaths=function(){return LMT};
ZF.prototype.getExtension=function(O){return _.q(O,_.zA)};
ZF.prototype.JSC$13266_buildRequest=function(O,x){x.couponCode&&(O.couponCode=x.couponCode);x.params&&(O.itemParams=x.params)};var Ez=function(){};
_.c(Ez,pL);Ez.prototype.getApiPaths=function(){return kiT};
Ez.prototype.getExtension=function(O){return _.q(O,_.z4T)};
Ez.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;x.params&&(O.params=x.params);e.ctk&&(O.clientToken=e.ctk)};var tg=function(O){this.JSC$18419_storeWithEntities=O};
_.c(tg,pL);tg.prototype.getApiPaths=function(){return Ab3};
tg.prototype.getExtension=function(O){return _.q(O,_.O7)};
tg.prototype.JSC$13266_buildRequest=function(O,x,e){e.purchase_price_micros&&(O.productData={pdgData:{purchasePriceMicros:e.purchase_price_micros.toString()}},e.rich_chat_message&&(O.productData.pdgData.richChatMessage=e.rich_chat_message),e.currency_code&&(O.productData.pdgData.currencyCode=e.currency_code));x.transactionParams&&(O.transactionParams=x.transactionParams);x.clientLocationContext&&(O.clientLocationContext=x.clientLocationContext);e.payments_payload&&(O.paymentsPayload=e.payments_payload);
e.funds_guarantee_callback_client_data&&(O.fundsGuaranteeCallbackClientData=e.funds_guarantee_callback_client_data);var l,C;e=(l=this.JSC$18419_storeWithEntities)==null?void 0:(C=l.getState())==null?void 0:C.entities;if(x.entityKeys&&e){l=[];x=_.T(x.entityKeys);for(C=x.next();!C.done;C=x.next()){var Q=C.value;C=_.gT(Q).entityType;if(Q=_.xE(e,C,Q)){var L={};l.push((L[C]=Q,L))}}O.entityMutationPayloads=l}};
tg[Fc]=[fM];var qU=function(){};
_.c(qU,pL);qU.prototype.getApiPaths=function(){return MHd};
qU.prototype.getExtension=function(O){return _.q(O,lZJ)};
qU.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;e.backend_analytics&&(O.serializedBackendAnalyticsEvent=e.backend_analytics);x.offerParams&&(O.offerParams=x.offerParams)};var PB=function(){};
_.c(PB,pL);PB.prototype.getApiPaths=function(){return LMT};
PB.prototype.getExtension=function(O){return _.q(O,EZN)};
PB.prototype.JSC$13266_buildRequest=function(O,x){x.params&&(O.itemParams=x.params)};var cB=function(){};
_.c(cB,pL);cB.prototype.getApiPaths=function(){return Drd};
cB.prototype.getExtension=function(O){return _.q(O,_.us3)};
cB.prototype.JSC$13266_buildRequest=function(O,x,e){e.resume_time_ms&&(O.resumeTimeMs=e.resume_time_ms);x.pauseParams&&(O.pauseParams=x.pauseParams)};var Ii=function(){};
_.c(Ii,pL);Ii.prototype.getApiPaths=function(){return GiL};
Ii.prototype.getExtension=function(O){return _.q(O,_.C6$)};
Ii.prototype.JSC$13266_buildRequest=function(O,x,e){e=e===void 0?{}:e;e.c&&(O.redeemCode=e.c);e.rd&&(O.riskData=e.rd);e.ctk&&(O.clientToken=e.ctk)};var V1=function(){};
_.c(V1,pL);V1.prototype.getApiPaths=function(){return FMT};
V1.prototype.getExtension=function(O){return _.q(O,_.YqR)};
V1.prototype.JSC$13266_buildRequest=function(O,x){x.resumeParams&&(O.resumeParams=x.resumeParams)};var pT=function(O,x){this.clientName=O;this.defaultExpirationDelayMs=x};
pT.prototype.put=function(O,x){var e=this,l;return _.A(function(C){l=Object.assign({},x.data);l.key=O;l.clientName=e.clientName;l.expireTimestampMs===void 0&&(l.expireTimestampMs=(Math.round((0,_.F2)())+e.defaultExpirationDelayMs).toString());return C.return(e.putInternal(O,l))})};
pT[Fc]=[gW,eQ$];var gGL=function(){pT.apply(this,arguments);this.JSC$18449_responseStore=new Map};
_.c(gGL,pT);_.b=gGL.prototype;_.b.get=function(O){var x=this;return _.A(function(e){return e.return(Ug(x,O))})};
_.b.putInternal=function(O,x){var e=this,l,C,Q;return _.A(function(L){l=e.defaultExpirationDelayMs;x.expireTimestampMs&&(l=Number(x.expireTimestampMs)-Math.round((0,_.F2)()),C=_.yF("mweb_override_response_store_expiration_ms"),C>0&&C<l&&(l=C));Q=setTimeout(function(){e.remove(O)},l);
e.JSC$18449_responseStore.set(O,{entryData:x,timer:Q});_.Ra(L)})};
_.b.remove=function(O){var x=this;return _.A(function(e){$MX(x,O);_.Ra(e)})};
_.b.removeAll=function(){var O=this;return _.A(function(x){O.JSC$18449_responseStore.forEach(function(e){clearTimeout(e.timer)});
O.JSC$18449_responseStore.clear();_.Ra(x)})};
_.b.has=function(O){return!!this.JSC$18449_responseStore.get(O)};
_.b.getKeys=function(){return this.JSC$18449_responseStore.keys()};
var Ug=function(O,x){if(O=O.JSC$18449_responseStore.get(x))return new _.RX(O.entryData)},$MX=function(O,x){var e=O.JSC$18449_responseStore.get(x);
e&&(clearTimeout(e.timer),O.JSC$18449_responseStore.delete(x))};var fk8;var SGn=function(O,x,e){pT.call(this,O,x);this.token=e};
_.c(SGn,pT);_.b=SGn.prototype;_.b.get=function(O){var x=this,e,l;return _.A(function(C){return C.nextAddress==1?C.yield(wcm(x.token),2):C.nextAddress!=3?(e=C.yieldResult,C.yield(e.get("ResponseStore",[O,x.clientName]),3)):(l=C.yieldResult)?C.return(new _.RX(l)):C.return(void 0)})};
_.b.putInternal=function(O,x){var e=this,l;return _.A(function(C){if(C.nextAddress==1)return C.yield(wcm(e.token),2);l=C.yieldResult;return C.yield(l.put("ResponseStore",x),0)})};
_.b.remove=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(wcm(x.token),2);e=l.yieldResult;return l.return(e.delete("ResponseStore",[O,x.clientName]))})};
_.b.removeAll=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return e.yield(wcm(O.token),2);x=e.yieldResult;return e.yield(qOk(x,IDBKeyRange.only(O.clientName)),0)})};
_.b.has=function(){throw Error("gj");};_.Ri=new _.iR("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var iuX=function(O){var x;this.stateTagsData=(x=O.responseContext)==null?void 0:x.stateTags},OfQ=function(O){var x;
return((x=O.stateTagsData)==null?void 0:x.stateTagsModified)||[]};var xqe;xqe=function(O){this.JSC$18462_responseStore=O};
_.aL=function(O,x,e){if(!_.t("state_tags_killswitch")){var l=new iuX(x);if(OfQ(l).length>0){var C=O.JSC$18462_responseStore.getKeys();C=_.T(C);for(var Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var L=Ug(O.JSC$18462_responseStore,Q);if(L){var k=_.Bb(L);a:{var M=void 0;L=OfQ(l);k=((M=(new iuX(k)).stateTagsData)==null?void 0:M.relevantStateTags)||[];M=_.T(k);for(k=M.next();!k.done;k=M.next())if(k=k.value,k.stateTag!=null&&L.includes(k.stateTag)&&k.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){L=
!0;break a}L=!1}L&&$MX(O.JSC$18462_responseStore,Q)}}}}var G;l=(G=x.responseContext)==null?void 0:G.maxAgeSeconds;e&&l&&Number(l)>0&&(x=$z(x,l),O.JSC$18462_responseStore.put(e,new _.RX(x)))};
xqe.prototype.handleResponse=function(O,x){if(!x)throw Error("hj");var e,l;x=(e=x.config)==null?void 0:(l=e.storeStrategy)==null?void 0:l.storeKey;_.aL(this,O,x)};
xqe[Fc]=[_.pj];_.Lkm=new _.iR("STORE_RESPONSE_PROCESSOR_TOKEN");var eW4=function(O){this.JSC$18465_responseStore=O};
eW4.prototype.handleResponse=function(O,x){if(x.input.match(_.YE(UeR))){var e;if(O==null?0:(e=O.entries)==null?0:e.length)for(O=_.T(O.entries),x=O.next();!x.done;x=O.next()){e=x.value.command;var l=void 0;x=(l=_.q(e,_.kU))==null?void 0:l.unserializedPrefetchData;if(!e||!x)break;l=(new gZ).JSC$13273_getStoreKey(e);var C=_.q(x,naR),Q=void 0,L=void 0,k=void 0,M=void 0,G=void 0,X=void 0,y=((Q=C)==null?0:(L=Q.responseContext)==null?0:L.maxAgeSeconds)&&Number((k=C)==null?void 0:(M=k.responseContext)==null?
void 0:M.maxAgeSeconds)>0?Number((G=C)==null?void 0:(X=G.responseContext)==null?void 0:X.maxAgeSeconds):600;l&&y>0&&(C=$z(C,y),this.JSC$18465_responseStore.put(l,new _.RX(C)));e=(new U2).JSC$13273_getStoreKey(e);x=_.q(x,ccd);M=k=L=Q=C=l=void 0;G=((l=x)==null?0:(C=l.responseContext)==null?0:C.maxAgeSeconds)&&Number((Q=x)==null?void 0:(L=Q.responseContext)==null?void 0:L.maxAgeSeconds)>0?Number((k=x)==null?void 0:(M=k.responseContext)==null?void 0:M.maxAgeSeconds):600;e&&G>0&&(x=$z(x,G),this.JSC$18465_responseStore.put(e,
new _.RX(x)))}}};
eW4[Fc]=[_.pj];var ldX=function(O,x){this.innertubeTransportService=O;this.JSC$18468_commandHandler=x};
ldX.prototype.submitForm=function(O,x,e,l,C){var Q=this,L,k,M,G,X,y;return _.A(function(Z){if(Z.nextAddress==1)return L={submitId:O,formData:x,submitBehavior:e,params:l},k=_.YE(Yjd),Z.yield(_.NK(Q.innertubeTransportService,L,k,C),2);M=Z.yieldResult;if(!M)return Z.return(Promise.reject(new _.ry("Submit API returned an undefined response. Submit ID: "+O)));G=M;(y=(X=G)==null?void 0:X.onResponseReceived)&&Q.JSC$18468_commandHandler.resolveCommand(y);return Z.return(G)})};
ldX[Fc]=[_.IF,_.Xc];var Uz=function(){this.scheduler=_.Xu()},CP4;
Uz.prototype.pause=function(){throw Error("ij");};
Uz.prototype.resume=function(){throw Error("ij");};
Uz.prototype.queue=function(O){var x=this,e=_.He(),l=_.zl(this.scheduler,function(){try{var C;if(_.lV.instance)var Q=_.lV.instance;else{var L=new _.ry("Error: Unexpected uninitialized CommandHandler.");_.BH(L);Q=void 0}(C=Q)==null||C.resolveCommand(O.command);e.resolve()}catch(k){e.reject(k)}});
e.promise.thenCatch(function(C){C instanceof _.Vn&&x.scheduler.cancelJob(l)});
return e.promise};
Uz.prototype.queueAll=function(O){var x=new Map;O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,x.set(e.id,this.queue(e));return x};var bfL=function(O,x){var e=this;this.taskModel=O;this.onTaskCancelledCallback=x;this.resolver=_.He();O=O.proto.prefetchConfig;if(!O)throw Error("jj");if(!O.prefetchAction)throw Error("kj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(l){l instanceof _.Vn&&(Q9X(e,e.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),e.onTaskCancelledCallback(e.taskModel.id,e.jobId),e.tick("pcc"));
throw l;});
this.timerName=this.taskModel.id;_.cU(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
bfL.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 Q9X=function(O,x){_.EO({prefetchInfo:{cancellationReason:x}},O.timerName)};
bfL.prototype.tick=function(O){_.IR(O,void 0,this.timerName)};var mE=function(){var O=this;this.scheduler=_.Xu();this.maxInflightTasks=_.yF("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.yF("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new e2F;this.onTaskCancelled=function(x,e){e&&O.scheduler.cancelJob(e);Toe(O,x);ai(O,3)}},Lye=function(){mE.instance||(mE.instance=new mE);
return mE.instance};
mE.prototype.pause=function(){this.prefetchCoordinatorState=0};
mE.prototype.resume=function(){ai(this,0)};
mE.prototype.queue=function(O){O=k8h(this,O);ai(this,1);return O};
mE.prototype.queueAll=function(O){var x=new Map;O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,x.set(e.id,k8h(this,e));ai(this,1);return x};
var k8h=function(O,x){var e=O.allPrefetchTasks.get(x.id);if(e)return e.cancellablePromise;try{var l=new bfL(x,O.onTaskCancelled)}catch(Q){return _.Za(Q)}e=l;e.tick("pcq");var C={prefetchInfo:{taskId:e.taskModel.id,isPrefetch:!0,fetchAction:e.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:e.taskModel.command.clickTrackingParams}};e.taskModel.csn&&(C.clientScreenNonce=e.taskModel.csn);_.EO(C,e.timerName);O.allPrefetchTasks.set(x.id,l);O.drainingHeap.insert(-l.getPriority(),l);return l.cancellablePromise},
ai=function(O,x){O.prefetchCoordinatorState===x&&(O.prefetchCoordinatorState=2,A0$(O))},A0$=function(O){for(var x={};O.prefetchCoordinatorState!==0;x={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(O.inflightPrefetchTasks.size>=O.maxInflightTasks){O.prefetchCoordinatorState=3;break}x.prefetchTask$jscomp$1=O.drainingHeap.remove();if(!x.prefetchTask$jscomp$1){O.prefetchCoordinatorState=1;break}x.taskId$jscomp$3=x.prefetchTask$jscomp$1.taskModel.id;if(O.allPrefetchTasks.has(x.taskId$jscomp$3)){var e=-1;O.coordinatorTimeoutMs>0&&(e=_.zl(O.scheduler,function(l){return function(){sz(O,l.taskId$jscomp$3,Error("lj"))}}(x),O.coordinatorTimeoutMs));
O.inflightPrefetchTasks.set(x.taskId$jscomp$3,e);if(!O.JSC$18485_commandHandler){if(!_.lV.instance){sz(O,x.taskId$jscomp$3,Error("mj"));continue}O.JSC$18485_commandHandler=_.lV.instance}a:switch(x.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":e=1;break a;default:e=0}x.prefetchTask$jscomp$1.jobId=O.scheduler.addJob(function(l){return function(){l.prefetchTask$jscomp$1.tick("pcr");try{O.JSC$18485_commandHandler.resolveCommand(l.prefetchTask$jscomp$1.taskModel.command)||
sz(O,l.taskId$jscomp$3,Error("nj"))}catch(C){sz(O,l.taskId$jscomp$3,C)}}}(x),e,0)}}},MZQ=function(O,x){(x=Toe(O,x))!=null&&(x.resolver.resolve(),x.tick("pce"));
ai(O,3)},sz=function(O,x,e){(x=Toe(O,x,e))!=null&&(x.resolver.reject(e),x.tick("pcc"),Q9X(x,"CANCELLATION_REASON_ERROR"),Math.random()<=_.yF("prefetch_coordinator_error_logging_sampling_rate")&&(e=new _.ry("Prefetch Command failed.",x.taskModel.id,e.message),_.BH(e)));
ai(O,3)},Toe=function(O,x,e){var l=O.allPrefetchTasks.get(x);
l?((e=O.inflightPrefetchTasks.get(x))&&e!==-1&&O.scheduler.cancelJob(e),O.inflightPrefetchTasks.delete(x),O.allPrefetchTasks.delete(x)):_.ft(new _.ry("Unexpected missing prefetch task when deleting task.",x,e==null?void 0:e.message));return l};var Dqu=function(O,x,e,l,C){this.id=O;this.triggerOn=x;this.cancelOn=e;this.command=l;this.proto=C};
_.Dy.Object.defineProperties(Dqu.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var G8w=function(){this.JSC$18490_prefetchCoordinator=Lye();CP4||(CP4=new Uz);this.defaultCoordinator=CP4},Fyw;
G8w.getInstance=function(){Fyw||(Fyw=new G8w);return Fyw};
G8w.prototype.get=function(O){switch(O){case 0:return this.JSC$18490_prefetchCoordinator;default:return this.defaultCoordinator}};var WB=function(){this.coordinatorSupplier=G8w.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},y0w=function(O){var x=_.Pq()||void 0,e=Object.keys(XvO)[0];
if(e){var l=O.taskIdByTriggerId.get(e);if(l!=null){O.taskIdByTriggerId.delete(e);e=[];l=_.T(l);for(var C=l.next();!C.done;C=l.next())if(C=O.tasks.get(C.value))x!=="UNDEFINED_CSN"&&(C.csn=x),e.push(C);e=g3w(e);x=[];e=_.T(e);for(l=e.next();!l.done;l=e.next()){C=_.T(l.value);l=C.next().value;C=C.next().value;l=O.coordinatorSupplier.get(l).queueAll(C);l=_.T(l);var Q=l.next();for(C={};!Q.done;C={taskId$jscomp$9:void 0},Q=l.next()){var L=_.T(Q.value);Q=L.next().value;L=L.next().value;C.taskId$jscomp$9=
Q;Q=L;x.push(C.taskId$jscomp$9);O.queuedPromisesByTask.set(C.taskId$jscomp$9,_.Ij(Q,function(k){return function(){o8L(O,k.taskId$jscomp$9)}}(C)))}}}}else _.ft(new _.ry("Unexpected malformed TriggerEvent."))};
WB.prototype.trigger=function(O,x){var e=this,l=this.tasks.get(O);if(!l||this.queuedPromisesByTask.has(O))return!1;Zf4(this,O,l.triggerOn);x!=="UNDEFINED_CSN"&&(l.csn=x);x=this.coordinatorSupplier.get(l.taskType).queue(l);this.queuedPromisesByTask.set(O,_.Ij(x,function(){o8L(e,O)}));
return!0};
WB.prototype.cancel=function(O){var x=this.queuedPromisesByTask.get(O);if(x)x.cancel();else return o8L(this,O)};
var o8L=function(O,x){O.queuedPromisesByTask.delete(x);var e=O.tasks.get(x);if(!e)return!1;O.tasks.delete(x);Zf4(O,x,e.triggerOn);(e=N5m(e.cancelOn))&&(O=O.taskIdByCancelId.get(e))&&O.delete(x);return!0},Zf4=function(O,x,e){(e=Object.keys(e)[0])&&(O=O.taskIdByTriggerId.get(e))&&O.delete(x)};var XvO={taskRegistered:{}},hg=function(){WB.instance||(WB.instance=new WB);this.JSC$18499_taskManager=WB.instance};
_.c(hg,CN);
hg.prototype.resolveCommand=function(O){var x=this,e,l;return _.A(function(C){e=_.q(O,YgR);if((l=e)==null||!l.tasks){var Q=new _.ry("RegisterTasksCommand is missing tasks.");_.BH(Q);return C.return()}Q=x.JSC$18499_taskManager;for(var L=_.T(e.tasks),k=L.next();!k.done;k=L.next())if(k=k.value,k=k.id&&k.triggerOn&&k.cancelOn&&k.command?new Dqu(k.id,k.triggerOn,k.cancelOn,k.command,k):void 0,k){var M=Object.keys(k.triggerOn)[0];if(M){var G=N5m(k.cancelOn);G?(Q.tasks.set(k.id,k),Q.taskIdByTriggerId.has(M)||Q.taskIdByTriggerId.set(M,
new Set),Q.taskIdByTriggerId.get(M).add(k.id),Q.taskIdByCancelId.has(G)||Q.taskIdByCancelId.set(G,new Set),Q.taskIdByCancelId.get(G).add(k.id)):_.ft(new _.ry("Unexpected malformed cancelOn field."))}else _.ft(new _.ry("Unexpected malformed triggerOn field."))}else _.ft(new _.ry("Unexpected malformed Task proto."));y0w(x.JSC$18499_taskManager);_.Ra(C)})};var E8X={},tZO=(E8X.rendered={priority:_.t("web_adaptive_early_init")?8:0,callback:function(){var O={};O.numCpu=navigator.hardwareConcurrency;var x={};x.ramGb=_.CV.navigator.deviceMemory;var e={staticContext:{}};x.ramGb&&yzr(x.ramGb)&&(e.staticContext.memoryTotalKbytes=(x.ramGb*1048576).toString());O.numCpu&&yzr(O.numCpu)&&(e.staticContext.cpuCores=O.numCpu);if(_.t("web_enable_adaptive_appl_signal")){O={};x=ZYm();x=x.length>0?x[0]:void 0;var l,C=(l=_.RR("rses_dpj"))!=null?l:x==null?void 0:x.tick.rses_dpj,
Q;l=(Q=_.RR("rsef_dpj"))!=null?Q:x==null?void 0:x.tick.rsef_dpj;C&&Number(C)>0&&l&&Number(l)>0&&(Q=Math.ceil(Number(l)-Number(C)),Q>0&&(O.loadLatency=Q));O.loadLatency&&yzr(O.loadLatency)&&(e.appL=O.loadLatency.toString())}_.uU("applicationStarted",e);Zkr=e;_.t("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",EnW)}},E8X);var qm$=new _.iR("WINDOW_ON_ERROR"),PPQ=new _.iR("ERROR_WEIGHT_MAPS"),c0X=new _.iR("INIT_ERROR");var IdL={},VZe=(IdL.initialized={priority:10,callback:function(O){O.injector.resolve(c0X)()}},IdL);var pvh=function(){},RWL=function(){var O=_.i8("meta_logger_impl");
O||(O=new pvh,_.MB("meta_logger_impl",O));return O},Uqe=function(){RWL().csiSubscriptionKey=uoi("meta_logging_csi_event",function(O){var x=O.timerName;
if(O=O.timelineData){_.cU(x,{startTime:O.startTime},x);O.infos&&_.EO(O.infos,x);for(var e=_.T(Object.keys(O.ticks)),l=e.next();!l.done;l=e.next())l=l.value,_.IR(l,O.ticks[l],x)}})};
pvh.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&vUn(this.csiSubscriptionKey)};var adQ={},mqL=(adQ.initialized={priority:10,callback:function(){Uqe()}},adQ);var s9u=function(O,x){this.innertubeClientName=O;this.JSC$18510_prefCookie=x};
s9u.prototype.record=function(){if(_.t("web_li_record_binary_eval_tick")){var O=_.RR("rsef_dpj");var x=_.RR("rses_dpj");O=O!==void 0&&x!==void 0?Math.round(O-x):void 0;if(O!==void 0&&O>0){x=_.tU(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var e=this.poolSize;if(!(x.valuesSeen>=1E9)){if(x.valuesSample.length<e)x.valuesSample.push(O);else{var l=Math.floor(Math.random()*(x.valuesSeen+1));l<e&&(x.valuesSample[l]=O)}x.valuesSeen+=1}_.EA(this.storagePrefix+"-"+this.innertubeClientName,
x,2592E3);O=x.valuesSample;x=$6r(O);O=O.length<this.poolSize?void 0:x<400?1:x<1700?2:3;O!==void 0&&(this.JSC$18510_prefCookie.set(this.cookiePrefix+this.innertubeClientName,O),this.JSC$18510_prefCookie.save())}}else _.qw(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18510_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18510_prefCookie.save()};
s9u[Fc]=[gW,Wl];var Wy$=function(){s9u.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.c(Wy$,s9u);var hWX=new _.iR("PAGE_LOAD_TIME_TOKEN");var zWQ=function(O){this.signal=O;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;O.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.zl(_.vn,this.disableLoggingAndSendPayload,1E4)};
zWQ.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.vn.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),r0L(this))};
var r0L=function(O){var x=_.q9();if(x){var e={webClientComponentsData:{components:Array.from(O.ids,function(l){return{id:l}})}};
O.ids.clear();_.k0().visualElementStateChanged(x,e)}};var HfL=_.Pe({a11y:_.Pq4});_.KyL=_.ce(HfL)(HfL.a11y,{ephemeralActionSelector:function(O){return O.ephemeralAction||null}});var dqQ=_.Pe({continuation:_.VXd});var n8L=_.ce(dqQ)(dqQ.continuation,{continuationCommandSelector:function(O){return O.continuationCommand}});var uFL=new _.iR("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var zf=function(O,x){this.JSC$18539_storeWithEntities=O;this.JSC$18539_commandHandler=x;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
zf.prototype.start=function(){this.JSC$18539_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
zf.prototype.observeDownloadingEntities=function(){var O=_.HL8(this.JSC$18539_storeWithEntities.getState().entities).map(function(l){return KGV(l)});
if(O.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var x={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:S3n()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.J3(_.CZ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18539_commandHandler.resolveCommand(x)}this.downloadingEntities=O}else if(this.downloadingEntities.length){var e=rd7(this.JSC$18539_storeWithEntities.getState().entities).map(function(l){return KGV(l)});
this.downloadingEntities.filter(function(l){return e.includes(l)}).length&&(O={openPopupAction:ru$()},this.JSC$18539_commandHandler.resolveCommand(O));
this.downloadingEntities=[]}};
zf[Fc]=[fM,_.Xc];var Ymu;_.rQ=function(O,x,e,l,C,Q,L,k){this.JSC$18542_playerApiPromise=O;this.JSC$18542_commandHandler=x;this.JSC$18542_screenManager=e;this.offlineWebClientEligibility=l;this.JSC$18542_prefStorage=C;this.JSC$18542_actionRouter=Q;this.entityTypeMap=L;this.JSC$18542_persistentStorePromiseAccessor=k;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Ymu=function(){var O=_.GG().resolve(_.rQ),x;_.A(function(e){if(e.nextAddress==1)return O.downloadFailureListenerBound?e.return():e.yield(O.JSC$18542_playerApiPromise,2);x=e.yieldResult;x.addEventListener("onOfflineOperationFailure",function(l){if(l.failureReason&&l.entityKey&&l.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(l.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var C=_.gT(l.entityKey).entityId;C&&O.JSC$18542_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
C)}else if(_.t("kevlar_woffle")){C=O.JSC$18542_commandHandler;var Q=C.resolveCommand;l=l.failureReason;var L=_.CZ("TRANSFER_FAILED",void 0,"Download failed");l==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(L=_.CZ("STORAGE_FULL",void 0,"Storage full"));Q.call(C,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.J3(L),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
O.downloadFailureListenerBound=!0;_.Ra(e)})};
_.rQ.prototype.deleteVideo=function(O,x){var e=this,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return L.yield(e.JSC$18542_playerApiPromise,2);l=L.yieldResult;Q={offlineLoggingData:{offlineDeleteReason:(C=x)!=null?C:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return L.yield(l.queueOfflineAction(O,e.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",Q),0)})};
_.rQ.prototype.pauseVideoDownload=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.JSC$18542_playerApiPromise,2);e=l.yieldResult;e.pauseVideoDownload(O);_.Ra(l)})};
_.rQ.prototype.resumeVideoDownload=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.JSC$18542_playerApiPromise,2);e=l.yieldResult;return l.yield(e.resumeVideoDownload(O),0)})};
_.rQ[Fc]=[_.N5,_.Xc,_.vt,uFL,Hl,kj,EBz,Rd];var BoQ=new _.iR("DOWNLOAD_STATE_STORE_TOKEN");var v8T=function(O,x){this.JSC$18562_persistentStorePromiseAccessor=O;this.store=x;this.upliftCompletionResolver=new _.OA},wvw=function(){var O=_.GG().resolve(fdX),x;
_.A(function(e){switch(e.nextAddress){case 1:if(O.upliftImplPromise)return e.return(O.upliftImplPromise);_.tS(e,2);O.upliftImplPromise=J0u(O);return e.yield(O.upliftImplPromise,4);case 4:O.upliftCompletionResolver.resolve();_.lb(e,3);break;case 2:throw x=_.VP(e),O.upliftCompletionResolver.reject(x),x;case 3:return e.return(O.upliftImplPromise)}})},J0u=function(O){var x,e,l;
return _.A(function(C){switch(C.nextAddress){case 1:return _.SS("LOGGED_IN")?C.yield(O.JSC$18562_persistentStorePromiseAccessor(),2):C.return();case 2:x=C.yieldResult;if(!x)return _.IR("vdeur"),C.return();_.IR("vdeus");_.tS(C,3);return C.yield(SmO(x),5);case 5:e=C.yieldResult;O.store.dispatch(q2m(e));x.observe(function(Q){PX8(O.store,Q)});
_.lb(C,4);break;case 3:throw l=_.VP(C),_.IR("vdeur"),l;case 4:_.IR("vdeuc"),_.Ra(C)}})},SmO=function(O){var x;
return _.A(function(e){if(e.nextAddress==1)return e.yield(C57(O),2);x=e.yieldResult;return e.return(x.reduce(function(l,C){if(!C.data||!C.key||!C.entityType)return l;l[C.entityType]||(l[C.entityType]={});l[C.entityType][C.key]=C.data;return l},{}))})};
v8T[Fc]=[Rd,_.gH];var fdX;fdX=new _.iR("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.HB=new _.iR("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var KT=function(O,x){this.JSC$18565_persistentStorePromiseAccessor=O;this.transportService=x};
KT.prototype.refresh=function(){var O=this,x,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return _.SS("LOGGED_IN")?Q.yield(O.JSC$18565_persistentStorePromiseAccessor(),2):Q.return();if(Q.nextAddress!=3)return(x=Q.yieldResult)?Q.yield(YGW(x),3):Q.return();if((e=Q.yieldResult)&&!(Number(e.data.refreshTimestampMs||0)<(0,_.F2)()))return Q.return();l={browseId:"SPaccount_downloads"};C=_.YE(z_);_.NK(O.transportService,l,C).then(function(L){var k;if(x&&(L==null?void 0:(k=L.responseContext)==null?void 0:
k.maxAgeSeconds)!==0){var M;k=(L==null?void 0:(M=L.responseContext)==null?void 0:M.maxAgeSeconds)||604800;M=String(Math.floor((0,_.F2)())+k*1E3);x.put("service:downloads_settings:fallback",new _.RX({innertubeResponse:L,refreshTimestampMs:M}))}});
_.Ra(Q)})};
KT[Fc]=[_.Ri,_.IF];var dQ=function(O,x){this.JSC$18569_playerPromise=O;this.store=x;this.started=!1};
dQ.prototype.start=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return O.started?e.return():e.yield(O.JSC$18569_playerPromise,2);x=e.yieldResult;x.addEventListener("onOrchestrationBecameLeader",O.updateIsLeader.bind(O,!0));x.addEventListener("onOrchestrationLostLeader",O.updateIsLeader.bind(O,!1));if(x.isOrchestrationLeader)O.updateIsLeader(x.isOrchestrationLeader());else{var l=new _.ry("Function isOrchestrationLeader is undefined",{"player.isReady":x.isReady(),"player.playVideo":x.playVideo?
"defined":"undefined"});_.BH(l);O.updateIsLeader(!1)}O.started=!0;_.Ra(e)})};
dQ.prototype.updateIsLeader=function(O){this.store.dispatch(_.j6({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:O}}))};
dQ[Fc]=[_.N5,_.gH];var j9u=function(O,x){this.networkStatusManager=O;this.JSC$18572_prefStoragePromise=x;this.redirectsToPreload=["https://youtube.com"]},Nou=function(){var O=_.GG().resolve(j9u),x,e,l,C,Q,L;
_.A(function(k){switch(k.nextAddress){case 1:return k.yield(O.JSC$18572_prefStoragePromise,2);case 2:x=k.yieldResult;if(!(e=x)){k.jumpTo(3);break}return k.yield(x.get("yt-redirect-prefetch-id"),4);case 4:e=k.yieldResult;case 3:if(e||!O.networkStatusManager.isNetworkAvailable())return k.return();l={cache:"reload",redirect:"manual"};C=_.T(O.redirectsToPreload);Q=C.next();case 5:if(Q.done){if(!x){k.jumpTo(0);break}return k.yield(x.set("yt-redirect-prefetch-id",!0,86400),0)}L=Q.value;_.tS(k,8);return k.yield(_.CV.fetch(L,
l),10);case 10:_.lb(k,6);break;case 8:_.VP(k);case 6:Q=C.next(),k.jumpTo(5)}})};var g8p=function(O){this.JSC$18578_pageManager=O};
g8p[Fc]=[_.Be];_.$qp=new _.iR("PAGE_CONTENT_EXTRACTOR_TOKEN");var nT=function(O){O?(this.container=O,this.containerWasInjected=!0):this.containerWasInjected=!1};
nT.prototype.openDialog=function(O,x,e){var l=this,C;return _.A(function(Q){(C=l.container)==null||C.openDialog(O,x,e);_.Ra(Q)})};
nT.prototype.closeDialog=function(){var O=this,x;return _.A(function(e){(x=O.container)==null||x.closeDialog();_.Ra(e)})};
nT.prototype.isDialogOpen=function(){var O=this,x,e;return _.A(function(l){return l.return((e=(x=O.container)==null?void 0:x.isDialogOpen())!=null?e:!1)})};
nT[Fc]=[_.D0(OPd)];_.ifu=new _.iR("POPUP_CONTROLLER_TOKEN");var Oeh=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Oeh.prototype.registerPanel=function(O,x){if(O){this.panelMap.set(O,x);var e=this.pendingPanelResolvers.get(O);e&&(e.resolve(x),this.pendingPanelResolvers.delete(O))}};
Oeh.prototype.getPanel=function(O){var x=this,e;return _.A(function(l){return(e=x.panelMap.get(O))?l.return(e):l.return(x4$(x,O))})};
var x4$=function(O,x){var e,l;return _.A(function(C){if(e=O.pendingPanelResolvers.get(x))return C.return(e.promise);l=new _.OA;O.pendingPanelResolvers.set(x,l);return C.return(l.promise)})},ec$=function(O,x){Oeh.call(this);
var e=this;this.popupController=O;this.persistentPanelController=x;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return e.panelMap.size}}};
_.c(ec$,Oeh);_.b=ec$.prototype;_.b.getReloadContinuation=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.getPanel(O),2);e=l.yieldResult;return l.return(e.getReloadContinuation())})};
_.b.showPanel=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){if(P.nextAddress==1){e=O;l=e.identifier;C=e.panelContents;Q=e.config;L=e.extras;k=e.panelUpdatableFields;M=e.updatePanelContinuationData;G=O.target;M&&x.updatePanelContinuationDatas.set(l,M);if((X=Q)==null?0:(y=X.engagementPanelPopupPresentationConfig)==null?0:y.popupType)if(Z=Q.engagementPanelPopupPresentationConfig.popupType,G===void 0&&(G=document.body),Z==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!x.persistentPanelController)return _.ft(new _.ry("Persistent panel controller is not available.")),
P.return();var U=x.persistentPanelController;U.persistentPanelIdentifiers.has(l)||(U.persistentPanelWrapper.appendChild(U.engagementPanelElement({panelIdentifier:l},{isPersistentPanel:!0})),U.persistentPanelIdentifiers.add(l));a:switch(_.at.currentPageSubTypeSelector(U.store.getState())){case "watch":var W="WATCH";break a;default:W="APP"}_.leY(U,W);U.store.dispatch(cC3(!0))}else{if(Z==="PANEL_POPUP_TYPE_DIALOG"||Z==="PANEL_POPUP_TYPE_DROPDOWN"){U=P.return;W=x.popupController;var z=W.openPopup;a:switch(Z){case "PANEL_POPUP_TYPE_DIALOG":var r=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":r="DROPDOWN";break a;default:throw Error("pj`"+Z);}return U.call(P,z.call(W,l,C,r,G))}_.ft(new _.ry("Popup type "+Z+" not supported in PanelController."))}return P.yield(x.getPanel(l),2)}E=P.yieldResult;(C||k)&&E.updatePanel(C,!1,L,k);E.showPanel(L);_.Ra(P)})};
_.b.hidePanel=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield(x.getPanel(O),2);e=C.yieldResult;e.hidePanel();x.popupController.closePopup(O);(l=x.persistentPanelController)!=null&&l.persistentPanelIdentifiers.has(O)&&l.store.dispatch(cC3(!1));_.Ra(C)})};
_.b.isVisible=function(O,x){var e=this,l;return _.A(function(C){if(C.nextAddress==1)return x&&!e.panelMap.has(O)?C.return(!1):C.yield(e.getPanel(O),2);l=C.yieldResult;return C.return(l.isVisible())})};
_.b.updatePanel=function(O){var x=this,e,l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1){e=O;l=e.identifier;C=e.panelContents;Q=e.shouldFocus===void 0?!1:e.shouldFocus;L=e.extras;k=e.panelUpdatableFields;M=e.updatePanelContinuationData;if(!C&&!k)return X.return();M&&x.updatePanelContinuationDatas.set(l,M);return X.yield(x.getPanel(l),2)}G=X.yieldResult;G.updatePanel(C,Q,L,k);C&&_.t("enable_ai_companion")&&x.registerPanelContent(l,C);_.Ra(X)})};
_.b.registerPanelContent=function(O,x){O&&this.panelContentMap.set(O,x)};
_.b.unregisterPanelContent=function(O){this.panelContentMap.delete(O)};
_.b.getPanelContent=function(O){return this.panelContentMap.get(O)};
_.b.getUpdatePanelContinuationData=function(O){return this.updatePanelContinuationDatas.get(O)};
ec$[Fc]=[_.ifu,_.D0(_.w8)];var uT=function(O,x){this.innertubeTransportService=O;this.JSC$18596_screenManager=x},Coe=function(O){var x;
return!((x=O.panelLoadingStrategy)==null||!x.requestTemplate)};
uT.prototype.makeRequest=function(O){var x=this,e,l;return _.A(function(C){switch(C.nextAddress){case 1:if(!Coe(x)){C.jumpTo(2);break}_.tS(C,3);return C.yield(_.z7(x.innertubeTransportService,O),5);case 5:return e=C.yieldResult,e?C.return(e.content):(_.BH(Error("qj")),C.return(void 0));case 3:l=_.VP(C),_.BH(l);case 2:return C.return(void 0)}})};
uT.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
uT.prototype.execute=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y;return _.A(function(Z){if(Z.nextAddress==1){e=O;l=e.data;C=e.fallbackVe;Q=e.parentVe;L=e.createScreenConfig;k=e.renderFn;M=e.command;x.panelLoadingStrategy=l;var E,P,U=((E=x.panelLoadingStrategy)==null?0:E.screenVe)?(P=x.panelLoadingStrategy)==null?void 0:P.screenVe:C;U&&_.tx(x.JSC$18596_screenManager,U,Q,L);return(G=x.getContent())?Z.yield(k(G),2):Z.jumpTo(2)}return Z.nextAddress!=4?Coe(x)?Z.yield(x.makeRequest(M),4):Z.return():(y=X=
Z.yieldResult)?Z.yield(k(y),0):Z.return()})};
uT[Fc]=[_.IF,_.vt];var Qwh;Qwh=function(O,x){this.engagementPanelElement=O;this.store=x;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%"};
_.leY=function(O,x){var e=O.persistentPanelContainerMap.get(x);e?e.contains(O.persistentPanelWrapper)||(O=O.persistentPanelWrapper,_.f_=!0,_.JB.set(O,!0),e.insertBefore(O,null),_.JB.delete(O),_.f_=!1):_.ft(new _.ry("Persistent panel container not found for surface "+x+"."))};
Qwh[Fc]=[xf3,_.gH];var Yf=function(){};
Yf.prototype.getContainer=function(){return _.Bq()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Yf.prototype.openSheet=function(O,x){var e=this,l,C,Q,L,k,M;return _.A(function(G){switch(G.nextAddress){case 1:return l={stack:[],error:void 0,hasError:!1},_.tS(G,2,3),C=Le,G.yield(e.isSheetOpen(),5);case 5:Q=G.yieldResult;gDr(l,Pbw(C));if(Q){if(_.t("web_close_sheet_if_same_target_killswitch")&&x&&e.currentTarget===x)return(L=e.getContainer())==null||L.closeSheet(),G.return();e.pendingData={data:O,target:Qnw(e,x)};return G.return()}O.viewModel&&(O={viewModel:O.viewModel,sheetPosition:O.sheetPosition});
(k=e.getContainer())==null||k.openSheet(O,x);e.currentTarget=x;case 3:_.PO(G);$1m(l);_.Ia(G,0);break;case 2:M=_.VP(G),l.error=M,l.hasError=!0,G.jumpTo(3)}})};
Yf.prototype.closeSheet=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return e.yield((x=O.getContainer())==null?void 0:x.closeSheet(),2);if(e.nextAddress!=4)return O.currentTarget=void 0,O.pendingData?e.yield(O.openSheet(O.pendingData.data,O.pendingData.target),4):e.jumpTo(0);O.pendingData=void 0;_.Ra(e)})};
Yf.prototype.isSheetOpen=function(){var O=this,x,e;return _.A(function(l){return l.return((e=(x=O.getContainer())==null?void 0:x.isSheetOpen())!=null?e:!1)})};
var Qnw=function(O,x){if(!_.t("web_parent_target_for_sheets"))return x;var e,l;return(l=(e=O.getContainer())==null?void 0:e.getParentTarget(x))!=null?l:x};var Ji=window.documentPictureInPicture;var o9N=_.zo(["dark"]),y9V=_.zo(["system-icons"]),ZSr=_.zo(["typography"]),E9r=_.zo(["lang"]),tYL=_.zo(["style"]),D7$=_.zo(["dir"]),GmN=_.zo(["rounded-container"]),Flr=_.zo(["style"]),P5r=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],BB=function(O){this.JSC$18613_clientRoot=O;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
BB.prototype.openWindow=function(O){var x=this,e,l;return _.A(function(C){switch(C.nextAddress){case 1:if(!window.documentPictureInPicture||!_.am()||x.currentPipWindow)return C.return(!1);_.tS(C,2);return C.yield((l=Ji?Ji:null)==null?void 0:l.requestWindow(O),4);case 4:e=C.yieldResult;_.lb(C,3);break;case 2:return _.VP(C),C.return(!1);case 3:if(!e)return C.return(!1);e.addEventListener("pagehide",function(){beL(x)});
e.addEventListener("resize",x.handlePipWindowResize);qoW(e);IqN(e);yBN(e);return C.yield(MYs(e),5);case 5:if(!LlW())return C.return(!1);x.currentPipWindow=e;x.JSC$18613_eventForwarder=c9s(e,x.JSC$18613_clientRoot);x.pipWindowResizeDelay=new _.Xp(function(){x.currentPipWindow&&_.Sh(x.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.pu(x.currentPipWindow.innerWidth,x.currentPipWindow.innerHeight)])},e);
x.pipWindowResizeDelay.start();return C.return(!0)}})};
BB.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var beL=function(O){if(O.currentPipWindow){var x,e;(x=Ji?Ji:null)==null||(e=x.window)==null||e.close();O.currentPipWindow.removeEventListener("resize",O.handlePipWindowResize);var l;(l=O.pipWindowResizeDelay)==null||l.dispose();O.pipWindowResizeDelay=void 0;var C;(C=O.JSC$18613_eventForwarder)==null||C.stop();O.JSC$18613_eventForwarder=void 0;x=_.T(O.onCloseCallbacks);for(e=x.next();!e.done;e=x.next())e=e.value,e();O.onCloseCallbacks=[];O.currentPipWindow=null}};
BB.prototype.getWindow=function(){return this.currentPipWindow};
var Twh=function(O,x){var e;(e=O.onCloseCallbacks)==null||e.push(x)};
BB.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.am()};
_.Dy.Object.defineProperties(BB.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
BB[Fc]=[ykN];var LFh=new _.iR("PICTURE_IN_PICTURE_CONTROLLER");var VYr=function(O,x){this.lengthY=this.lengthX=0;this.lengthX=x.x-O.x;this.lengthY=x.y-O.y};var kcw=function(){},FOQ=function(O,x){var e;
(e=O.headerElement)==null||e.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:x}))};var A6$=function(){};
A6$.prototype.openPopup=function(O,x,e,l){var C=this,Q;return _.A(function(L){if(!C.container)return L.return();Q={openPopupAction:{popup:x,popupType:e,uniqueId:O}};return L.return(C.container.handleOpenPopupAction(Q,l))})};
A6$.prototype.closePopup=function(O){this.container&&this.container.closePopup(O)};var MjT=function(){this.openTunnels=new Map},czr=function(O,x,e){if(svW(e)){var l=_.iP(e,"gclid");
e={handleEvent:function(k){x&&!x.closed&&typeof x.postMessage==="function"&&k&&k.origin&&k.source===x&&k.data&&k.data.action==="gcl_setup"&&x.postMessage(Object.assign({},{action:"gcl_transfer"},l&&{gclid:l},{gadSource:2}),k.origin)}};
for(var C=_.T(O.openTunnels),Q=C.next();!Q.done;Q=C.next()){var L=_.T(Q.value);Q=L.next().value;L=L.next().value;if(Q.closed)try{window.removeEventListener("message",L),O.openTunnels.delete(Q)}catch(k){_.BH(k)}}x&&O.openTunnels.size<15&&(O.openTunnels.set(x,e),window.addEventListener("message",e))}};var D4e=function(){this.clientParams=new Map},NLQ=function(O){for(var x=_.T(O.clientParams.keys()),e=x.next();!e.done;e=x.next())e=e.value,e.startsWith("yt-mini-app-share")&&O.clientParams.delete(e)};var Gcu=function(O,x){_.h0.call(this);var e=this;this.shortsController=O;this.storeWithShorts=x;O=_.mw(this.storeWithShorts,_.Jw$,function(l){if(l){var C,Q=(C=e.shortsController.getRoot())==null?void 0:C.getPlayer(),L;(C=(L=e.shortsController.alternativePlayerContainerElement)==null?void 0:L.getPlayerContainer())&&(Q==null||Q.appendTo(C))}else{var k;L=(k=e.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer().querySelector("#player");C=e.shortsController.activeIndex;
(k=(Q=e.shortsController.getRoot())==null?void 0:Q.querySelector('ytd-reel-video-renderer[id="'+C+'"] #player-container'))&&(L==null||L.appendTo(k,void 0,!0))}});
this.addOnDisposeCallback(O)};
_.c(Gcu,_.h0);var vB=function(O,x,e,l){var C=this;this.storeWithShorts=O;this.ephemeralResponseStore=x;this.innertubeTransportService=e;this.innertubeTransportLoader=l;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Dl(_.f5);this.isShortsPipActive=_.Dl(_.JA);this.nextReelVe=_.O9(56921);this.prevReelVe=_.O9(56922);this.backButtonVe=_.O9(22156);this.TEST_ONLY={getActiveModules:function(){return C.activeModules}}},FFh=function(O){O.unsubscribeFromStore=
_.mw(O.storeWithShorts,_.fIV,function(x){O.initOrDisposeActiveModules(x);
!x&&O.storeWithShorts.getState().shorts.isFullscreen&&(_.vq(document.documentElement),O.storeWithShorts.dispatch(_.p4J(!1)))});
O.initOrDisposeActiveModules(_.fIV(O.storeWithShorts.getState()))},cyd,IYJ,XLY;
vB.prototype.initOrDisposeActiveModules=function(O){O?this.activeModules.push(new Gcu(this,this.storeWithShorts)):(_.k8(this.activeModules),this.activeModules.length=0)};
vB.prototype.registerRootElement=function(O){this.rootElement=O;FFh(this)};
vB.prototype.getRoot=function(){return this.rootElement};
vB.prototype.setActiveIndex=function(O){this.activeIndex=O};
_.yyF=function(O,x){var e,l,C,Q,L,k,M;return _.A(function(G){switch(G.nextAddress){case 1:return e=new gZ,(l=e.JSC$13273_getStoreKey(x))&&O.ephemeralResponseStore.has(l)?G.yield(O.ephemeralResponseStore.get(l),7):G.yield(XLY(O,x),4);case 4:C=G.yieldResult;if(!l){G.jumpTo(3);break}Q=$z(C,3600);return G.yield(O.ephemeralResponseStore.put(l,new _.RX(Q)),3);case 7:C=(L=G.yieldResult)==null?void 0:_.Bb(L);case 3:return((k=C)==null?0:k.replacementEndpoint)&&(M=_.q(C.replacementEndpoint,_.kU))&&C.sequenceContinuation&&
(M.sequenceParams=C.sequenceContinuation),G.return(C)}})};
cyd=function(O,x){x=(new $k).JSC$13273_getStoreKey(x);return!!x&&O.ephemeralResponseStore.has(x)};
IYJ=function(O,x,e){var l,C,Q,L,k;_.A(function(M){if(M.nextAddress==1){l=new $k;C=l.JSC$13273_getStoreKey(x);if(!C)return M.return();if(e.reelWatchSequenceResponse)return Q=$z(e.reelWatchSequenceResponse,3600),O.ephemeralResponseStore.put(C,new _.RX(Q)),M.jumpTo(0);if(!O.ephemeralResponseStore.has(C))return M.jumpTo(0);k=e;return M.yield(O.ephemeralResponseStore.get(C),4)}k.reelWatchSequenceResponse=(L=M.yieldResult)==null?void 0:_.Bb(L);_.Ra(M)})};
XLY=function(O,x){var e=e===void 0?{}:e;var l,C,Q;return _.A(function(L){switch(L.nextAddress){case 1:if(O.innertubeTransportService){l=O.innertubeTransportService;L.jumpTo(2);break}if(!O.innertubeTransportLoader){_.jS(Error("sj"));L.jumpTo(2);break}return L.yield(O.innertubeTransportLoader(),4);case 4:l=L.yieldResult;case 2:return L.yield((C=l)==null?void 0:_.z7(C,x,e),5);case 5:return Q=L.yieldResult,L.return(Q)}})};
_.Dy.Object.defineProperties(vB.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
vB[Fc]=[LUN,_.pj,_.D0(_.IF),_.D0(bi$)];_.oOL=new _.iR("STORAGE_MANAGER_TOKEN");var fq8=["touchmove","scroll"];var y6T=!1;var KlL=!1;var J9r={onSpanEnd:function(O){O.parentId==null&&(y6T||(r9L(),setInterval(r9L,6E5),y6T=!0),d7r(O,"web_tracing_action"))}};var whw=URL.createObjectURL;var SoL=console.log;var Ze4=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},EOw;
Ze4.prototype.enqueue=function(O,x){x===1?this.currentPersistentToast=O:this.queue.push(O);this.openToast()};
Ze4.prototype.openToast=function(){var O;(O=this.currentToast)!=null&&O.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.fT=new _.iR("TOAST_MANAGER_TOKEN");var tjp=new _.iR("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var qfY=new _.iR("VIEW_TRANSITION_COORDINATOR_TOKEN");var Pow=function(O){this.config=O;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;O=_.T(O.transitionConfigs);for(var x=O.next();!x.done;x=O.next())x=_.T(x.value).next().value,this.transitionTasksMap.set(x,[])};
Pow.prototype.registerElement=function(O,x,e){e=e===void 0?!1:e;for(var l=_.T(Object.keys(x)),C=l.next(),Q={};!C.done;Q={viewTransitionName:void 0},C=l.next()){C=C.value;Q.viewTransitionName=x[C];var L=this.elementTasksMap.get(O),k=void 0;if((k=L)==null?0:k.has(C)){_.vH(new _.ry("Element already registered for transition",O.tagName,C));break}L=L||new Map;L.set(C,{beforeTransition:function(M){return function(){O.style.viewTransitionName=M.viewTransitionName}}(Q),
afterTransition:function(){O.style.viewTransitionName&&(O.style.viewTransitionName="")},
runOnce:e});this.elementTasksMap.set(O,L)}};
_.Vu=function(O,x){var e=O.elementTasksMap.get(x);e&&(e.clear(),e.size===0&&O.elementTasksMap.delete(x))};
Pow[Fc]=[tjp];var Ie4=_.K(function(O){var x=_.Q5("yt-expandable-metadata-header-view-model"),e=_.lk(function(l){if(!_.E9(_.Zc(l),x.value,["A".toString(),"BUTTON".toString()])){var C;(C=O.expandedCallback)==null||C.call(O,!1)}});
return _.D("yt-expandable-metadata-header-view-model",{el:x,class:"ytExpandableMetadataHeaderViewModelHost"},_.D(_.F,{cond:function(){return O.expanded()},
then:function(){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":e},_.D("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.D(_.F,{cond:function(){return O.data().expandedTitleImage},
then:function(l){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.D(_.n_,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:l}))}}),_.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.D(_.TT,{text:function(){return O.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.D(_.TT,{text:function(){return O.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.D(_.TT,{text:function(){return O.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.D("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.D(_.MR,{data:function(){return O.data().infoButton}},{buttonViewModel:_.RV}),_.D(_.MR,{data:function(){return O.data().collapseButton}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
onClick:function(){var C;(C=O.expandedCallback)==null||C.call(O,!1)}})}})))},
else:function(){return _.D(c6T,Object.assign({},O))}}))},"hg"),VjQ=_.K(function(O){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.D(_.F,{cond:function(){return O.data().collapsedLabelImage},
then:function(x){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.D(_.n_,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:x,alt:""}))}}),_.D(_.TT,{text:function(){return O.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ig"),c6T=_.K(function(O){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.lk(function(){var x;return void((x=O.expandedCallback)==null?void 0:x.call(O,!0))})},_.D("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.D(_.F,{cond:function(){return O.data().collapsedImage},
then:function(x){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.D(_.n_,{height:20,preserveHeight:!0,preserveWidth:!0,data:x,alt:""}))}}),_.D(_.F,{cond:function(){return O.data().showLeadingCollapsedLabel},
then:function(){return _.D(VjQ,Object.assign({},O))}}),_.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.D(_.TT,{text:function(){return O.data().collapsedTitle}}))),_.D("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.D(_.F,{cond:function(){return!O.data().showLeadingCollapsedLabel},
then:function(){return _.D(VjQ,Object.assign({},O))}}),_.D(_.MR,{data:function(){return O.data().infoButton}},{buttonViewModel:_.RV}),_.D(_.MR,{data:function(){return O.data().expandButton}},{buttonViewModel:function(x){return _.D(_.RV,{data:x.data,
onClick:function(){var e;(e=O.expandedCallback)==null||e.call(O,!0)}})}})))},"jg");_.pL$=_.K(function(O){var x=_.T(_.bk(function(){return O.data().initiallyExpanded})),e=x.next().value,l=x.next().value,C,Q=(C=_.GG().resolve(_.D0(_.rP)))==null?void 0:C(),L=function(){var k=O.data().colorData;
if(k)return Q?k==null?void 0:k.darkColorPalette:k==null?void 0:k.lightColorPalette};
return _.D("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.T7({"background-color":function(){var k=L();return(k==null?0:k.section2Color)?_.aF(k.section2Color):""}})},_.D(_.MR,{data:function(){return O.data().header}},{expandableMetadataHeaderViewModel:function(k){return _.D(Ie4,{data:k.data,
expanded:function(){return!!e()},
expandedCallback:function(M){l(M)}})}}),_.D(_.F,{cond:function(){return e()},
then:function(){return _.D("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.D(_.MR,{data:function(){return O.data().expandedContent}},{horizontalShelfViewModel:function(k){return _.D(_.eB,{data:k.data,
includeMargin:!0,forceNarrowLayout:!0,palette:L})},
videoSummaryContentViewModel:function(k){return _.D(iRd,{data:k.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(k){return _.D(_.UL,{data:k.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(k){return _.D(_.bHJ,{data:k.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.D(_.MR,{data:function(){return O.data().expandedBottomButtons}},{buttonViewModel:function(k){return _.D("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.D(_.RV,{data:k.data}))}}))}}))},"kg");var Rce=_.K(function(O){var x=O.text;var e=O.marqueeSpacing;var l=O.scrollDelay;var C=O.scrollDuration;var Q=O.enableMarqueeScroll;O=O.large;var L=_.T(_.Iw(!1,void 0,"WyNYFf")),k=L.next().value,M=L.next().value,G=_.T(_.Iw(0,void 0,"OoTdhe"));L=G.next().value;var X=G.next().value,y=_.Q5("marquee-scroll");G=_.Q5("div");var Z=_.Q5("span"),E=_.GG().resolve(_.K_);_.uo(function(){if(Q()){var W=Z.value.getBoundingClientRect().width,z=y.value.getBoundingClientRect().width;if(W>z){var r=(E==="ltr"?-1:1)*(W+
(e?e():16));Promise.resolve().then(function(){M(!0);X(r)})}}},"dv0Anf");
var P={},U={};return _.D("marquee-scroll",{class:_.xz("ytMarqueeScrollHost",(P.ytMarqueeScrollHostLarge=O,P)),el:y},_.D("div",{id:"marquee-scroll-inner-container",class:_.xz("ytMarqueeScrollInnerContainer",(U.ytMarqueeScrollAnimationEnabled=function(){return k()},U)),
el:G,style:_.T7({gap:e?(0,_.Nm)(e):"16px","animation-duration":C?iaN(C):"16s","animation-delay":l?iaN(l):"3s","--marquee-translate":(0,_.Nm)(L)})},_.D("span",{el:Z,dir:"auto"},_.D(_.TT,{text:x,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.D(_.F,{cond:k,then:function(){return _.D("span",{"aria-hidden":"true",dir:"auto"},_.D(_.TT,{text:x,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"mg");_.U4L=_.K(function(O){var x=O.data;var e=O.overlayDensity;O=_.lk(function(){x().onTapCommand&&_.me(x().onTapCommand);return!1});
var l=_.d8L(),C=function(){return(e==null?void 0:e())===1?22:16},Q={};
return _.D("reel-sound-metadata-view-model",{class:_.xz("ytReelSoundMetadataViewModelHost",(Q.ytReelSoundMetadataViewModelHostLarge=function(){return(e==null?void 0:e())===1},Q)),
"on:click":O,tabindex:0,role:"button","on:keydown":l},_.D("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.D(_.F,{cond:function(){return x().musicIcon},
then:function(L){return _.D(_.n_,{data:L,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:C})}}),_.D("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.D(Rce,{text:function(){return x().soundMetadata},
enableMarqueeScroll:function(){return!!x().enableMarqueeScroll},
large:function(){return(e==null?void 0:e())===1}}))))},"ng");var aew,m4T,Jg,zcO,Hep,hcX,nOO,d4w;aew=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];m4T=_.yF("wil_icon_max_concurrent_fetches",Infinity);
Jg=function(O,x,e){var l=this;this.iconSet=O;this.appDirection=x;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.CV.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.t("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.t("wil_icon_network_first");this.renderWhenIdle=_.t("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.t("wil_icon_load_immediately");this.isPurging=!1;O=function(){l.cacheStorageAvailable&&(l.cacheStorageAsync=_.CV.caches.open("yt-icons").then(function(Q){return l.cacheStorageSync=Q}).catch(function(){l.cacheStorageAvailable=!1}))};
e=(e==null?void 0:e())||{};e=_.T(Object.entries(e));for(x=e.next();!x.done;x=e.next()){var C=_.T(x.value);x=C.next().value;C=C.next().value;C=U0(C);swh(C);this.iconCache[x]=C.cloneNode(!0)}this.isPurging=WFY(this);this.isPurging instanceof Promise?this.isPurging.then(O):O()};
_.BQ8=function(O,x){var e=O.resolveIcon(x);return e?O.renderingMode===1?hcX(O,e,O.renderingMode):(x=O.iconCache[e.url])?(x=x.cloneNode(!0),zcO(O,x),hcX(O,e,O.renderingMode,x)):_.r64(O,e).then(function(l){var C=l?0:1;zcO(O,l);return hcX(O,e,C,l)}):(_.vH(new _.ry("Icon not found",{iconShape:x})),function(){})};
zcO=function(O,x){if(x){O.counter+=1;O="_yt"+O.counter;x=[x].concat(_.Kx(x.getElementsByTagName("*")));x=_.T(x);for(var e=x.next();!e.done;e=x.next())if(e=e.value,e.tagName==="style"&&e.textContent)e.textContent=Hep(e.textContent,O,!0);else for(var l=_.T(e.attributes),C=l.next();!C.done;C=l.next()){C=C.value;C.name==="id"&&(C.value+=O);["mask","fill","clip-path"].includes(C.name)&&(C.value=Hep(C.value,O));if(C.name==="style"){var Q=e.style;try{Q.cssText=Hep(Q.cssText,O,!0)}catch(X){var L=void 0,k=
void 0,M=void 0,G=void 0;wQ({error:((L=X)==null?void 0:(M=(k=L).toString)==null?void 0:M.call(k))||"",el:e.outerHTML,style:!!Q,cssText:(G=Q)==null?void 0:G.cssText})}}C.name==="xlink:href"&&(C.value=C.value.replace(/#(.*)/,"#$1"+O))}}};
Hep=function(O,x,e){var l=/url\(["']?#(.*?)["']?\)/;(e===void 0?0:e)&&(l=/url\(["']?#(.*?)["']?\)/g);return O.replace(l,"url(#$1"+x+")")};
hcX=function(O,x,e,l){return function(C,Q){var L;var k=Object.assign({},{iconWidth:x.size+"px",iconHeight:x.size+"px",iconDisplay:"block"},Q,{iconColor:(L=Q==null?void 0:Q.iconColor)!=null?L:"currentcolor"});L=_.R9("DIV");Q=k.iconColor;var M=k.iconFilter;k="width: "+k.iconWidth+"; height: "+k.iconHeight+"; display: "+k.iconDisplay+";";M&&(k+=" filter: "+M+";");e===0&&(k+=" fill: "+Q+";");e===1&&(M=x.url,k+=" -webkit-mask: url("+M+") no-repeat center / cover; mask: url("+(M+") no-repeat center / cover; background-color: ")+
Q);x.allowMirroring&&O.appDirection==="rtl"&&(k+=" transform: scale(-1, 1); transform-origin: center center;");L.setAttribute("style",k);e===0&&l&&L.appendChild(l);C.appendChild(L)}};
_.r64=function(O,x){var e,l,C;return _.A(function(Q){e=function(L){return SE(L)};
l=x.url;if(!KFL(l))throw Error("uj");C=d4w(O,l);return Q.return(C.then(function(L){return L.clone().text()}).then(function(L){var k=e(L);
L=x.size;var M=_.R9("DIV");_.bx(M,k);k=_.Um(M.firstElementChild!==void 0?M.firstElementChild:_.CtR(M.firstChild,!0));L=swh(k,L);O.iconCache[l]=L.cloneNode(!0);delete O.responsePromises[l];return L}).catch(function(){}))})};
nOO=function(O){var x,e=(x=O.requestAninmationFrameResolver)==null?void 0:x.promise;e||(O.requestAninmationFrameResolver=new _.OA,e=O.requestAninmationFrameResolver.promise,_.CV.requestAnimationFrame(function(){var l;(l=O.requestAninmationFrameResolver)==null||l.resolve();O.requestAninmationFrameResolver=null}));
return e};
d4w=function(O,x){var e,l;return _.A(function(C){if(C.nextAddress==1)return O.waitForAnimationFrame?C.yield(nOO(O),2):C.jumpTo(2);e=O.responsePromises[x];e||(l=function(){var Q,L,k;return _.A(function(M){switch(M.nextAddress){case 1:if(!O.cacheStorageAvailable){Q=void 0;M.jumpTo(2);break}if(L=O.cacheStorageSync){M.jumpTo(3);break}return M.yield(O.cacheStorageAsync,4);case 4:L=M.yieldResult;case 3:Q=L;case 2:return k=Q,O.isNetworkFirstStrategy?M.return(O.fetchAndUpdateCache(x,k).catch(O.getCacheStorageResponse.bind(O,
x,k))):M.return(O.getCacheStorageResponse(x,k).catch(O.fetchAndUpdateCache.bind(O,x,k)))}})},e=O.renderWhenIdle?new Promise(function(Q,L){_.zl(_.vn,function(){l().then(Q).catch(L)},10)}):l(),O.responsePromises[x]=e);
return C.return(e.catch(function(Q){delete O.responsePromises[x];wQ({error:(Q==null?0:Q.toString)?Q.toString():"",url:x});throw Q;}))})};
Jg.prototype.fetchAndUpdateCache=function(O,x){var e=this;return _.A(function(l){return l.return(u1L(e,O).then(function(C){Yfe(e,O,C,x);return C}))})};
var u1L=function(O,x){var e;return _.A(function(l){if(O.numFetches<m4T)return O.numFetches+=1,l.return(Bwu(O,x).finally(function(){--O.numFetches;if(Object.keys(O.queuedResponseResolvers).length){var C=Object.keys(O.queuedResponseResolvers)[0],Q=O.queuedResponseResolvers[C];delete O.queuedResponseResolvers[C];Q.resolve(u1L(O,C))}}));
e=new _.OA;O.queuedResponseResolvers[x]=e;return l.return(e.promise)})},Bwu=function(O,x,e){e=e===void 0?2:e;
var l;return _.A(function(C){l={credentials:"same-origin",priority:"low"};return C.return(_.CV.fetch(x,l).then(function(Q){return Q.ok?Q:Promise.reject(Error("vj`"+Q.status+"`"+Q.statusText))}).catch(function(Q){if(e>0)return Bwu(O,x,e-1);
throw Q;}))})},Yfe=function(O,x,e,l){_.A(function(C){return l?C.return(new Promise(function(Q){_.zl(_.vn,function(){var L,k;
return _.A(function(M){switch(M.nextAddress){case 1:if(!O.isNetworkFirstStrategy){L=void 0;M.jumpTo(2);break}return M.yield(l.match(x).catch(function(){}),3);
case 3:L=M.yieldResult;case 2:if(k=L){M.jumpTo(4);break}return M.yield(l.put(x,e.clone()).catch(function(G){wQ({error:(G==null?0:G.toString)?G.toString():"",url:x})}),4);
case 4:Q(),_.Ra(M)}})},50)})):C.return()})};
Jg.prototype.getCacheStorageResponse=function(O,x){return _.A(function(e){return x?e.return(x.match(O).then(function(l){return l&&l.ok?l:Promise.reject()})):e.return(Promise.reject())})};
var swh=function(O,x){x===void 0||O.getAttribute("viewBox")||O.setAttribute("viewBox","0 0 "+x+" "+x);O.setAttribute("focusable","false");O.setAttribute("aria-hidden","true");try{O.style.pointerEvents="none",O.style.display="inherit",O.style.width="100%",O.style.height="100%"}catch(C){var e;wQ({error:((e=C)==null?0:e.toString)?C.toString():""});try{O.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(Q){var l;wQ({error:((l=Q)==null?0:l.toString)?Q.toString():
""})}}return O},KFL=function(O){for(var x=_.T(aew),e=x.next();!e.done;e=x.next())if(O.startsWith(e.value)&&O.endsWith(".svg"))return!0;
return!1};
Jg.prototype.resolveIcon=function(O){return this.iconSet.resolveIcon(O)};
var wQ=function(O){_.ft(new _.ry("Error in IconManager",O))},WFY=function(O){if(_.t("wil_icons_cache_purge_killswitch"))return!1;
try{var x=_.CV.localStorage}catch(Q){return!1}if(!x||!O.cacheStorageAvailable)return!1;var e=function(Q){try{var L;(L=x)==null||L.setItem("yt-icons-last-purged",Q.toString())}catch(M){var k;wQ({error:((k=M)==null?0:k.toString)?M.toString():""})}},l=Number(x.getItem("yt-icons-last-purged"));
if(!l)return l=new Date,l=l.setDate(l.getDate()-Math.floor(Math.random()*90+1)),e(l),!1;if(function(Q,L){Q=new Date(Q);L=new Date(L);return L.getMonth()-Q.getMonth()+12*(L.getFullYear()-Q.getFullYear())}(l,Date.now())<3)return!1;
try{return _.CV.caches.delete("yt-icons").then(function(Q){Q&&e(Date.now());return Q}).catch(function(){return!1}).finally(function(){O.isPurging=!1})}catch(Q){var C;
wQ({error:((C=Q)==null?0:C.toString)?Q.toString():""});return!1}};
Jg[Fc]=[hiL,_.K_,_.D0(HxL)];_.Sn=function(O,x){this.iconManager=O;this.iconsToFetch=x};
_.Sn[Fc]=[_.ef,_.D0(rSw)];var vOL=function(){};var feX=function(O,x,e){this.requestKey=O;this.bdU=x;this.kUq=e;this.dT3=function(){return new XMLHttpRequest};
this.f4O=void 0;this.oKY=[]};
feX.prototype.getLatestChallengeResponse=function(){return this.kUq};
var TyT=function(O,x,e){var l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){_.cU("attestation_challenge_fetch");_.IR("att_fs",void 0,"attestation_challenge_fetch");if(!O.f4O)throw new _.pr(9,"Missing fetcher");return k.yield(O.f4O(x,e),2)}l=k.yieldResult;Q=(C=l)==null?void 0:C.bgChallenge;if(!Q)throw new _.pr(15,"Missing field");O.kUq=l;O.oKY.forEach(function(M){M(l)});
L=KaW(Q);_.IR("att_fc",void 0,"attestation_challenge_fetch");t3("attestation_challenge_fetch");return k.return(L)})},a0T=function(O,x){var e,l,C,Q,L;
return _.A(function(k){switch(k.nextAddress){case 1:e=new Zd(100,3E5,.25,2),l=void 0;case 2:if(!(e.currBackoffCount_<10)){k.jumpTo(4);break}_.tS(k,5);if(!(e.currBackoffCount_>0)){k.jumpTo(7);break}return k.yield(N$8(e.getValue()),7);case 7:return k.yield(J6L(O,x),9);case 9:return C=k.yieldResult,k.return(C);case 5:Q=_.VP(k);Q instanceof _.pr?l=Q:(L=Q instanceof Error?Q.message:"Unknown",l=new _.pr(9,L));y6d(e);k.jumpTo(2);break;case 4:if(l)throw l;throw new _.pr(9,"Unknown error");}})},J6L=function(O,
x){x=NzN(gK2(new jU$,x),O.requestKey);
var e=new _.OA,l=O.dT3();l.open("POST",O.bdU);l.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");l.setRequestHeader("Content-Type","application/json+protobuf");l.onload=function(){if(_.TT7(l)){var C=QCk(l.responseText);e.resolve(C)}else e.reject(new _.pr(_.M3r(_.tq(l)),l.statusText))};
l.onerror=function(){e.reject(new _.pr(_.M3r(_.tq(l)),l.statusText))};
l.send(x.serialize());return e.promise};var Sf$=function(O){this.networkStatusManager=O;this.isDownloaded=B5L===void 0?function(){return!1}:B5L;
this.isReady=!1;this.wyl=wLp(this)},wLp=function(O){var x;
return _.A(function(e){if(e.nextAddress==1)return e.yield(fK$(),2);if(e.nextAddress!=3)return x=e.yieldResult,e.yield(tZL(x),3);O.og=e.yieldResult;$7$(O.og).then(function(){O.isReady=!0});
return e.return(O.og)})},jw$=function(O,x,e){O.og?(O=O.og.g9l({hk:e,
i1q:!0,gQl:!0}),x.serviceIntegrityDimensions={poToken:O}):_.BH(Error("xj"))};
Sf$.prototype.processContext=function(O){var x=this;if(!O.input.match(_.YE(I_T)))return _.Co();var e=O.innerTubeRequest,l=e.videoId;return!l||this.isDownloaded(e)||this.networkStatusManager&&!this.og&&!this.networkStatusManager.isNetworkAvailable()?_.Co():this.og?this.isReady?(jw$(this,e,l),_.Co()):new lQ($7$(this.og).then(function(){jw$(x,e,l)})):new lQ(this.wyl.then(function(C){return _.A(function(Q){if(Q.nextAddress==1)return Q.yield($7$(C),2);
jw$(x,e,l);_.Ra(Q)})}))};var Nw$=new _.iR("WEB_PO_CONTEXT_PROCESSOR");var gOu=function(O,x){var e=this;this.svO=0;var l;this.xva=(l=x==null?void 0:x.xva)!=null?l:window;this.networkStatusManagerPromise=x==null?void 0:x.networkStatusManagerPromise;var C;this.requestKey=(C=x==null?void 0:x.requestKey)!=null?C:_.Z0("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var Q;this.aoq=(Q=x==null?void 0:x.aoq)!=null?Q:function(M){return new hf(M)};
var L;l=(L=x==null?void 0:x.bJ9)!=null?L:function(M,G,X){return new feX(M,G,X)};
this.bgChallenge=KaW(O.bgChallenge);this.ttlSeconds=dli(sM(O.challenge||""));this.ox=l(this.requestKey,_.t("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.CV.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",O);this.loU=x==null?void 0:x.loU;g9L(this.ox);var k;this.aFV=(k=x==null?void 0:x.aFV)!=null?k:function(M){_.ol(e.xva.document,"visibilitychange",
function(){e.xva.document.visibilityState==="visible"&&M()})}},ieh=function(O){if(!O.vm){var x={maxAttempts:5,
wRs:O.ttlSeconds*1E3};iSL(O.xva);O.vm=O.aoq({ox:O.ox,ikX:{disable:_.t("html5_web_po_disable_remote_logging"),sj:"aGIf",qnt:eh$("html5_web_po_experiment_ids"),uz3:_.t("wpo_dis_lfdms")?0:1E3,wCl:function(l){var C=p0p.get(l);C||(C=new Vz3(l),C=new I9(C),p0p.set(l,C));return C}},
x3n:x,j1t:O.bgChallenge,o83:Oqr});O.svO=Date.now();e5z(O.vm,function(){O.svO=Date.now()});
jUw(O.vm,function(){return _.A(function(l){return l.return($4h(O))})});
var e=O.huD.bind(O);O.networkStatusManagerPromise&&O.ttlSeconds>0&&O.networkStatusManagerPromise.then(function(l){l.listen("publicytnetworkstatus-online",e)});
O.aFV(e)}};
gOu.prototype.huD=function(){if(Date.now()>this.svO+this.ttlSeconds*1E3){var O;(O=this.vm)==null||xbR(O)}};
var $4h=function(O){if(O.js4)return O.js4;if(!O.vm)throw Error("yj");O.js4=new Kr({vm:O.vm,ox:O.ox,oxb:!0,onError:Oqr,x3n:O.loU});return O.js4},eE$=function(O,x){O=new gOu(O,x);
ieh(O);(x==null?0:x.hKT)||$4h(O)};var OOQ=_.KyL.ephemeralActionSelector,jn=function(O,x){this.store=O;this.queue=[];x==null||x.addEventListener("yt-navigate-start",this.reset.bind(this))};
jn.prototype.enqueue=function(O){var x=O.command,e=O.durationMs,l=O.elementToFocus;var C=O.label;var Q=O.elementToFocus;O.command?C=_.CZ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:C,shortcut:_.CZ("SHIFT_PLUS_ENTER")}):Q&&(O=C+". "+_.CZ("SHIFT_PLUS_ENTER")+" for more information.",C=_.CZ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:C,shortcut:_.CZ("SHIFT_PLUS_ENTER")},O));e={announcement:C,durationMs:e!=null?e:8E3};x?e.command=x:l&&(l.classList.add("ephemeral-action-focusable-element"),e.selector=l.tagName+
".ephemeral-action-focusable-element");this.queue.push(e);xDT(this)};
jn.prototype.activate=function(O){var x=OOQ(this.store.getState());if(x){if(x==null?0:x.command)_.Rl(x.command),this.store.dispatch(qX3(null));if(x==null?0:x.selector)x=document.querySelector(x.selector),_.wKN(x);O.preventDefault()}};
var xDT=function(O){if(!OOQ(O.store.getState())&&O.queue.length){var x=O.queue.shift();x&&(O.previousAnnouncement===x.announcement&&(x.announcement+="\u00a0"),O.store.dispatch(qX3(x)),O.previousAnnouncement=x.announcement,O.timeoutId=setTimeout(function(){if(x.selector){var e;(e=document.querySelector(x.selector))==null||e.classList.remove("ephemeral-action-focusable-element")}O.store.dispatch(qX3(null));xDT(O)},x.durationMs))}};
jn.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(qX3(null));this.queue.length=0;this.timeoutId=void 0};
jn[Fc]=[_.gH,_.D0(_.Hr)];_.NU=new _.iR("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var ene=new _.iR("AUTH_SERVICE_TOKEN");var Qh8=_.zo(["about:blank"]),C0r;var lKL=new _.iR("API_IFRAME_TOKEN"),C8X=new _.iR("FETCH_FN_TOKEN"),QUT=new _.iR("PARSE_FN_TOKEN"),bOu=new _.iR("WINDOW_REQUEST_TOKEN"),TzL=new _.iR("TEXT_DECODER_TOKEN");var LQd;LQd=new _.iR("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Lxh=new _.iR("MISC_UI_SHARED_FLAGS_TOKEN");var knL=function(){};
knL.prototype.getFlag=function(O){if(O.configType!==2)throw Error("zj");return AZT(O)};
var AZT=function(O){switch(O.flagType){case "bool":return _.t(O.flagName);case "int":return _.rN(_.yF(O.flagName));case "double":return _.yF(O.flagName);case "string":return _.Z0(O.flagName);case "int32_list":return eh$(O.flagName);case "int64_list":return eh$(O.flagName).map(function(x){return _.rN(x)});
case "string_list":return _.EC(O.flagName);default:throw Error("Aj");}};var gQ=function(O,x,e){x=x===void 0?{}:x;WY.call(this,e===void 0?"uninitialized":e);this.env=O;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}];x.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=x.shouldWaitOnAsyncImmediate)};
_.c(gQ,WY);gQ.prototype.init=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return x.processPluginOptions.shouldWaitOnAsyncImmediate?l.yield(O(x.env),2):(O(x.env),l.jumpTo(2));if(l.nextAddress!=4)return x.jobSet?l.yield(x.jobSet.completedResolver.promise,4):l.jumpTo(4);e=_.O2();e.parkOrScheduleJob(function(){x.transition("rendering")},10,"ci");
_.Ra(l)})};
gQ.prototype.initialRender=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return x.processPluginOptions.shouldWaitOnAsyncImmediate?l.yield(O(x.env),2):(O(x.env),l.jumpTo(2));if(l.nextAddress!=4)return x.jobSet?l.yield(x.jobSet.completedResolver.promise,4):l.jumpTo(4);e=_.O2();e.parkOrScheduleJob(function(){x.transition("rendered")},10,"cr");
_.Ra(l)})};
gQ.prototype.afterRenderImmediate=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return x.processPluginOptions.shouldWaitOnAsyncImmediate?l.yield(O(x.env),2):(O(x.env),l.jumpTo(2));if(l.nextAddress!=4)return x.jobSet?l.yield(x.jobSet.completedResolver.promise,4):l.jumpTo(4);e=_.O2();e.parkOrScheduleJob(function(){x.transition("after-render-deferred")},10,"carml");
_.Ra(l)})};
gQ.prototype.afterRenderDeferred=function(O){var x=this;return _.A(function(e){O(x.env);_.Ra(e)})};_.JZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var MSO={},DDT=(MSO.rendered={priority:0,callback:function(O){YOF(O.injector.resolve(rl))}},MSO);var C$8=new _.iR("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),Gn4=new _.iR("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var FxQ=function(O){this.callbackFnMap=O;this.configMap={}};
FxQ.prototype.handleResponse=function(O){var x;if(O=(x=O.responseContext)==null?void 0:x.serviceTrackingParams)for(x=_.T(O),O=x.next();!O.done;O=x.next()){O=O.value;var e=O.params,l=O.service;if(e&&l){this.configMap[l]||(this.configMap[l]=new iiF);O=this.configMap[l];var C=void 0,Q=(C=this.callbackFnMap)==null?void 0:C[l];e=_.T(e);for(l=e.next();!l.done;l=e.next())C=l.value,l=C.key,C=C.value,l&&C&&(O.set(l,C),Q&&Q(l,C))}}};
FxQ.prototype.getConfig=function(O){return this.configMap[O]||void 0};
FxQ[Fc]=[_.D0(Gn4)];var XEX=!1,o1N=0,DHV=null,XJL=null;var oKh=new _.iR("NETWORK_SLI_TOKEN");var yZw=function(O,x,e,l,C){this.networkSli=O;this.fetchFn=x;this.parseFn=e;this.requestFn=l;this.JSC$18742_textDecoder=C};
yZw.prototype.fetch=function(O,x,e){var l=this,C,Q,L;return _.A(function(k){C=ZOQ(l,O,x);L=(Q=l.fetchFn)!=null?Q:fetch;return k.return(L(C).then(function(M){return l.handleResponse(M,e)}).catch(function(M){_.ft(M);
if((e==null?0:e.expectJsonStrict)&&M instanceof hd&&M.errorType===1)return Promise.reject(M)}))})};
var IFT=function(O,x,e,l){var C,Q,L,k,M,G,X;return _.A(function(y){switch(y.nextAddress){case 1:return C=ZOQ(O,x,e),_.tS(y,2),y.yield(fetch(C),4);case 4:Q=y.yieldResult;_.lb(y,3);break;case 2:throw _.VP(y),new hd(2,"Failed to parse streaming response",C.url);case 3:if(!Q.redirected&&!Q.ok)throw(L=O.networkSli)==null||L.failure(),new _.ry("Streaming fetch request not ok",C.url);if(!Q.body)throw new _.ry("No response body in streaming response",C.url);k={};if(_.t("web_streaming_fast"))return M=Q.body.getReader(),
y.return(EKu(O,M,k,l));G=Q.body.pipeThrough(new TextDecoderStream).getReader();X=new _.Tk;return y.return(tSL(O,G,X,X_L,k,l))}})},ZOQ=function(O,x,e){if(O.networkSli){var l=_.VF(_.Y7(x,"key"))||"/UNKNOWN_PATH";
O.networkSli.start(l)}l=e;_.t("wug_networking_gzip_request")&&(l=FSW(e));var C;return new ((C=O.requestFn)!=null?C:window.Request)(x,l)},EKu=function(O,x,e,l){var C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y,J,O8,Xr,Fr,mL,Zn,q$,KV,VN,Pd,f2,p2,OT;
return _.A(function(Gp){switch(Gp.nextAddress){case 1:C=O.JSC$18742_textDecoder?new O.JSC$18742_textDecoder("utf-8"):new TextDecoder("utf-8"),Q=[],k=L=0,_.tS(Gp,2,3);case 5:return Gp.yield(x.read(),8);case 8:M=Gp.yieldResult;G=M.value;if(X=M.done){y=0;if(Q.length>L)for(y=Q[L].length-k,Z=L+1;Z<Q.length;Z++)y+=Q[Z].length;y>0&&(E=yvL(Q,y,L,k),P=E.indexOf(123),U=E.lastIndexOf(125),P!==-1&&U!==-1&&U>P&&(W=E.subarray(P,U+1),z=JSON.parse(C.decode(W)),X_L(e,z),r=void 0,(r=l)==null||r(e,z)));f=void 0;(f=
O.networkSli)==null||f.success();return Gp.return(e)}Q.push(G);u=L;for(Y=k;u<Q.length;)if(J=Q[u],O8=J.indexOf(10,Y),O8===-1){if(u===Q.length-1)break;u++;Y=0}else{Xr=u;Fr=O8+1;mL=0;if(L===Xr)mL=Fr-k;else{mL=Q[L].length-k;for(Zn=L+1;Zn<Xr;Zn++)mL+=Q[Zn].length;mL+=Fr}q$=yvL(Q,mL,L,k,Xr,Fr);KV=q$.indexOf(123);VN=q$.lastIndexOf(125);if(KV!==-1&&VN!==-1&&VN>KV){Pd=q$.subarray(KV,VN+1);try{f2=JSON.parse(C.decode(Pd)),X_L(e,f2),p2=void 0,(p2=l)==null||p2(e,f2)}catch(zp){throw new hd(1,"Failed to parse streaming response object",
C.decode(Pd));}}L=u;Y=k=O8+1;k===J.length&&(L++,k=0,u=L,Y=0)}Gp.jumpTo(5);break;case 3:_.PO(Gp);x.releaseLock();_.Ia(Gp,0);break;case 2:OT=_.VP(Gp);if(OT instanceof hd)throw OT;throw new hd(1,"Failed to process streaming response");}})},tSL=function(O,x,e,l,C,Q){var L,k,M,G,X,y,Z,E,P;
return _.A(function(U){if(U.nextAddress==1)return U.yield(x.read(),2);L=U.yieldResult;k=L.value;if(M=L.done)return(G=O.networkSli)==null||G.success(),U.return(C);try{X=e.parse(k)}catch(W){throw new hd(1,"Failed to parse streaming response",k);}if(X!=null)for(y=_.T(X),Z=y.next();!Z.done;Z=y.next())E=Z.value,l(C,E),P=void 0,(P=Q)==null||P(C,E);return U.return(tSL(O,x,e,l,C,Q))})};
yZw.prototype.handleResponse=function(O,x){var e,l=(e=this.parseFn)!=null?e:JSON.parse;e=O.text().then(function(C){if((x==null?0:x.jspbResponseCtor)&&O.ok)return jSi(x.jspbResponseCtor,C);C=C.replace(")]}'","");if((x==null?0:x.expectJsonStrict)&&C)try{var Q=l(C)}catch(k){throw new hd(1,"JSON parsing failed after fetch");}var L;return(L=Q)!=null?L:l(C)});
O.redirected||O.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),e=e.then(function(C){_.ft(new _.ry("Error: API fetch failed",O.status,O.url,C));return Object.assign({},C,{errorMetadata:{status:O.status}})}));
return e};
yZw[Fc]=[_.D0(oKh),_.D0(C8X),_.D0(QUT),_.D0(bOu),_.D0(TzL)];var q0X=new _.iR("NETWORK_MANAGER_TOKEN");var P84=[1,2,4,8,16,30],IKL=function(O){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=O.maxTimeMs;this.maxFrameCount=O.maxFrameCount===void 0?Math.ceil(60*O.maxTimeMs/1E3):O.maxFrameCount;O=_.T(P84);for(var x=O.next();!x.done;x=O.next())this.brokenFrameSummarizers.push(new cZY(x.value/60*1E3))},VSw=function(O){var x=O.frameCountInternal>=O.maxFrameCount;
return O.elapsedTimeMs>=O.maxTimeMs||x};
IKL.prototype.summarize=function(){for(var O=[],x=_.T(this.brokenFrameSummarizers),e=x.next();!e.done;e=x.next())e=e.value,e=e.brokenFrameCount!==0?{severityMs:Math.round(e.targetFrameTimeMs),eventCount:e.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(e.averageDurationBetweenEventsMs)}:void 0,e&&O.push(e);return{summaries:O,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Dy.Object.defineProperties(IKL.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 cZY=function(O){this.targetFrameTimeMs=O;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Dy.Object.defineProperties(cZY.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var pEu=function(){};
pEu.prototype.start=function(O,x){var e=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var l=new IKL({maxTimeMs:O});this.monitor=l;this.lastSummaryInternal=void 0;this.metadataToLog=x;return new Promise(function(C){var Q=function(L){if(L===void 0)e.stop(),C(void 0);else if(e.monitor!==l)L=Object.assign({},l.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),C(L);else{var k=e.monitor;if(!VSw(k)){k.frameCountInternal++;if(k.prevTime===
void 0)k.startTime=L;else for(var M=L-k.prevTime,G=_.T(k.brokenFrameSummarizers),X=G.next();!X.done;X=G.next()){X=X.value;var y=X.currTimeMs;X.currTimeMs+=M;M>X.targetFrameTimeMs+2&&(X.brokenFrameCount++,X.timeOfFirstBrokenFrameMs===void 0&&(X.timeOfFirstBrokenFrameMs=y),X.timeOfLastBrokenFrameMs=y)}k.prevTime=L}VSw(e.monitor)?C(e.stop()):_.vn.addJob(Q,5,0)}};
_.vn.addJob(Q,5,0)})};
pEu.prototype.stop=function(O){if(!this.monitor)return this.lastSummaryInternal;var x=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(x.monitoringDurationMs){O=O!=null?O:this.metadataToLog;var e={droppedFramesSummary:x,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};O&&(e[O.type]=O.data);_.uU("manualSmoothnessMeasurement",e)}this.monitor=void 0;this.lastSummaryInternal=x;this.metadataToLog=void 0;return x};_.Rne=new _.iR("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var UDL;UDL=function(O){this.JSC$18764_expiringStorage=new Kb(O)};
_.aKp=function(O){if(_.ZqL()&&(O=_.f2N(_.hq()+"::"+O)))return new UDL(O)};
UDL.prototype.set=function(O,x,e){e=e!==void 0?Date.now()+e:void 0;this.JSC$18764_expiringStorage.set(O,x,e)};
UDL.prototype.get=function(O){return this.JSC$18764_expiringStorage.get(O)};
UDL.prototype.remove=function(O){this.JSC$18764_expiringStorage.remove(O)};_.$f=function(){};
_.$f.getInstance=function(){var O=_.i8("ytglobal.storage_");O||(O=new _.$f,_.MB("ytglobal.storage_",O));return O};
_.$f.prototype.estimate=function(){var O,x,e;return _.A(function(l){O=navigator;return((x=O.storage)==null?0:x.estimate)?l.return(O.storage.estimate()):((e=O.webkitTemporaryStorage)==null?0:e.queryUsageAndQuota)?l.return(E1N()):l.return()})};
_.MB("ytglobal.storageClass_",_.$f);var pJr=0;var hEL=!1;var mDw=_.zo(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),sUY=_.zo(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var snu={"/":_.a7,"/?feature=ytca":_.a7,"/feed/downloads":_.vML};var Wxw=n8L.continuationCommandSelector,CI=function(O,x,e){this.JSC$18780_upliftPromise=O;this.store=x;this.JSC$18780_persistentStorePromiseAccessor=e};
CI.prototype.shouldPreferLocalResponse=function(O){return O.browseId==="FEdownloads"||O.browseId==="FEsmart_downloads"&&_.t("kevlar_modern_downloads_page")?!0:!1};
CI.prototype.localInnertubeResponse=function(O){var x=this;return _.A(function(e){return O.browseId==="FEdownloads"?_.t("kevlar_modern_downloads_page")?e.return(hnp(x)):e.return(znQ(x)):O.browseId==="FEsmart_downloads"&&_.t("kevlar_modern_downloads_page")?e.return(rZw(x)):e.return(Promise.reject(Error("Cj")))})};
CI.prototype.canProvideFallbackResponse=function(){return!0};
CI.prototype.localFallbackInnertubeResponse=function(O){var x=this,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return Q.yield(x.JSC$18780_persistentStorePromiseAccessor(),2);case 2:e=Q.yieldResult;if(O.browseId!=="SPaccount_downloads"||!e){Q.jumpTo(3);break}return Q.yield(YGW(e),4);case 4:if(l=Q.yieldResult)return Q.return(_.Bb(l));case 3:return O.browseId==="FEwhat_to_watch"?Q.return(HOL(x)):(C=_.t("web_offline_continuation_automatic_retry")||_.t("web_offline_continuation_retry_button"))&&
O.continuation?Q.return(Kxp(x)):Q.return(dDX(x))}})};
var HOL=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$18780_upliftPromise,2);x=_.FPi(O.store.getState().entities);return x.length?e.return(nKh(O,x)):e.return(dDX(O))})},znQ=function(O){var x,e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$18780_upliftPromise,2);if(l.nextAddress!=3)return x=umQ([{offlineItemSectionRenderer:{}}]),l.yield(Y0p(O,x),3);e=l.yieldResult;e.onResponseReceivedActions=[eK("REFRESH_DOWNLOADS")];return l.return(e)})},hnp=function(O){var x,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W;
return _.A(function(z){if(z.nextAddress==1)return z.yield(O.JSC$18780_upliftPromise,2);if(z.nextAddress!=3)return x=O.store.getState(),e=x.entities,l=_.yy(e),C=_.ZS(e),Q=_.Jcr(x),L=_.fXW(x),k=_.wtr(x),M=_.ycW(e),G=_.Mc(l),X=_.EQ(e),y=_.qJW(e),Z=_.jVn(x),E=_.Ix(x),P={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Qrr(l,C,M,y,Q,L,G,X,k,Z,E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},U="",_.t("kevlar_modern_downloads_skip_downloads_title")||
(U=_.CZ("DOWNLOADS",void 0,"Downloads")),z.yield(Bze(O,P,U),3);W=z.yieldResult;W.onResponseReceivedActions=[eK("REFRESH_DOWNLOADS")];return z.return(W)})},rZw=function(O){var x,e,l,C,Q,L,k,M,G;
return _.A(function(X){if(X.nextAddress==1)return X.yield(O.JSC$18780_upliftPromise,2);if(X.nextAddress!=3)return x=O.store.getState(),e=x.entities,l=_.yy(e),C=_.Mc(l),Q=_.EQ(e),L={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Tm7(l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},k=_.CZ("SMART_DOWNLOADS",void 0,"Smart downloads"),M=l8V(C,Q),X.yield(Bze(O,L,k,M),3);G=X.yieldResult;G.onResponseReceivedActions=
[eK("REFRESH_DOWNLOADS")];return X.return(G)})},dDX=function(O){var x,e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(YV(O.JSC$18780_upliftPromise,O.store),2);x=l.yieldResult;e=umQ([K4L(x)]);return l.return(Y0p(O,e))})},Kxp=function(O){var x,e,l,C;
return _.A(function(Q){if(Q.nextAddress==1)return x={},e=Wxw(O.store.getState()),_.qj(x,_.U1,e),Q.yield(YV(O.JSC$18780_upliftPromise,O.store,x,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);l=Q.yieldResult;C={};_.qj(C,_.tP$,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:l}}}],targetId:"browse-feedFEwhat_to_watch"});return Q.return({responseContext:{},onResponseReceivedActions:[C]})})},umQ=function(O){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:O}}}}]}}},nKh=function(O,x){var e,l;
return _.A(function(C){var Q={contents:lc(x)};e=Q&&Q.contents?Q:{};_.t("kevlar_modern_downloads_page")&&(e=Object.assign({},_.Lms(x),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));l={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:e}}}]}};return C.return(Y0p(O,l))})},Y0p=function(O,x){var e,l;
return _.A(function(C){if(C.nextAddress==1)return C.yield(O.JSC$18780_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return e=C.yieldResult,C.yield(vb(e),3);l=C.yieldResult;return C.return({responseContext:{},contents:x,topbar:l})})},Bze=function(O,x,e,l){var C,Q;
return _.A(function(L){if(L.nextAddress==1)return L.yield(O.JSC$18780_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return C=L.yieldResult,L.yield(vb(C),3);Q=L.yieldResult;var k=L.return;var M=e;var G=l;M=M===void 0?"":M;G=G===void 0?"":G;M={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:M}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.CZ("SETTINGS",void 0,"Settings"),accessibilityText:_.CZ("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:_.vU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:G}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:M};
return k.call(L,{responseContext:{},contents:x,topbar:Q,header:{pageHeaderRenderer:M}})})};var vKX=function(){this.moduleRegistry={};this.fetchCount=0};
vKX.prototype.isFetching=function(){return this.fetchCount>0};
var pI=function(O,x){O.moduleRegistry[x.toString()]={asyncId:x,isFetching:!1};return O};
vKX.prototype.JSC$18791_loadModules=function(){for(var O=this,x=new Map,e=[],l=_.T(_.vw.apply(0,arguments)),C=l.next();!C.done;C=l.next()){C=C.value;var Q=this.moduleRegistry[C];Q?Q.resolver?x.set(C,Q.resolver):(Q.resolver=new _.OA,x.set(C,Q.resolver),e.push(Q.asyncId),Q.isFetching=!0):(Q=new _.OA,x.set(C,Q),Q.resolve(void 0))}e.length&&(this.fetchCount+=1,_.Ij(_.cr.getMultipleAsync.apply(_.cr,_.Kx(e)).then(function(L){for(var k=0;k<e.length;k++){var M=L[k],G=O.moduleRegistry[e[k].toString()];G.isFetching=
!1;G.resolver.resolve(M)}}).catch(function(L){for(var k=_.T(e),M=k.next();!M.done;M=k.next()){M=M.value;
var G=O.moduleRegistry[M.toString()];G.resolver=void 0;G.isFetching=!1;x.get(M.toString()).reject(L)}}),function(){--O.fetchCount}));
return Promise.all([].concat(_.Kx(x.values())).map(function(L){return L.promise}))};_.RL=new _.iR("MODULE_REGISTRY_TOKEN");var fKh={},JZL=(fKh.rendered={priority:0,callback:function(O){a:{var x=void 0;try{var e;b:{if(_.CEs()){var l=_.vmL(_.hq()+"::pom");if(l){var C=new nL(l);break b}}C=void 0}var Q=(e=C)==null?void 0:e.get("role_text");if(!Q)break a;x={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:Q}]}}}}}}catch(M){}x&&O.injector.resolve(_.Xc).resolveCommand(x)}try{var L=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(L){var k=JSON.parse(L);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
k&&O.injector.resolve(_.Xc).resolveCommand(k)}}catch(M){}}},fKh);var wEO,S04={},jUp=(S04.initialized={priority:10,callback:function(){wEO=Go()}},S04.rendering={callback:function(O){var x;
return _.A(function(e){if(e.nextAddress==1)return e.yield(wEO,2);x=e.yieldResult;if(!x.endpoint)throw Error("Ej`"+_.CV.location.href);ys(O,x);_.Ra(e)})}},S04);var NzL={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Kx(_.t("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(O){var x=O.stack;if(x.includes("chrome://")||x.includes("chrome-extension://")||O.message.includes("chrome-extension://")||x.includes("moz-extension://")||x.includes("local.adguard.org")||x.includes("auctioneer3.50million.club")||x.includes("youtubedownloader")||
x.includes("youtube_home_page")||x.includes("is_youtube_video_no_longer_available")||x.includes("switchScreenSizeHack")||x.includes("yt_main_big_banner.js")||x.includes("YouTubeCenter.js")||x.includes("/mytube.js")||x.includes("JSON.parseWrapper")||x.includes("/inj_js/common.js")||x.includes("firebug-lite")||x.includes(".repl.co/")||x.includes("linkfix")||x.includes("playAfterAd")||O.message.includes("Access is denied for this document")&&x.includes("<anonymous>")||O.fileName==="user-script"||O.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
x.includes("<anonymous>"))return!0;if(x.includes("https://www.youtube.com"))return!1;O=x.split("\n");if(!O.length)return!1;if(O.length<=3&&x.includes("s.onloadeddata"))return!0;x=0;for(var e=_.T(O),l=e.next();!l.done;l=e.next())l=l.value,(l.includes("https://")||l.includes("http://"))&&x++;return x/O.length>.95},
weight:0},{callback:function(O){return O.message==="Unknown Error"&&O.name.indexOf("NS_")===0},
weight:100},{callback:function(O){if(!_.j1)return!1;var x=O.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||O.message.includes("available to complete this operation"),e=O.stack.includes("webcomponents")&&O.message==="Object doesn't support this action";O=O.message.includes("object that does not implement interface Element");return x||e||O},
weight:0},{callback:function(O){return O.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(O){return O.message==="Operation is not supported"&&(O.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(O){return O.stack.includes("eval code (eval (code:1:1)")||O.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(O){return O.message.includes("Permission denied")&&O.stack.includes("this.domHandler")?!0:O.name.includes("TypeError")&&O.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(O){if(!O.stack)return!1;var x=O.stack.trim().split("\n");x.length&&x[0].endsWith("Error: "+O.message)&&x.shift();x.length&&x[x.length-1].includes("at window.onerror (")&&x.pop();if(!x.length)return!0;if(O.message==="Script error.")return x[0].includes("www.youtube.com")||x.length>=2&&x[0].startsWith("at new")&&x[1].startsWith("at window.onerror");if(O.message==="Unexpected token")return!0;O=_.T(x);for(x=O.next();!x.done;x=O.next())if(x=x.value,!(x.includes("<anonymous>")||
x.startsWith("load@")||x.startsWith("global code@")||x.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(O){return O.message==="Cannot read property 'experiments'"&&O.stack.includes("/s/player/")},
weight:500},{callback:function(O){return O.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(O){return O.stack.includes("/embed.js")?(O.params&&O.params&&(O.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.t("use_error_suppression"))var O=_.wz("SUPPRESS_CLIENT_ERRORS",!1);else{if(O=_.Oa)O=/Chrome\/(\d+)/.exec(_.E8()),O=(O?parseFloat(O[1]):NaN)>=66;O=!(O||_.ig&&_.$Q(65)||_.Nb&&_.$Q(12.1)||kC&&_.$Q(79))}return O},
weight:500}]};var gKQ={},$DQ=(gKQ.initialized={priority:10,callback:function(O){O.injector.addProvider({provide:ykN,useValue:O.root});O.injector.addProvider({provide:qm$,useValue:nzr});O.injector.addProvider({provide:PPQ,useValue:NzL});var x={};O.injector.addProvider((x.provide=c0X,x.useFactory=function(e,l){return function(){x7V(e,l)}},x[Fc]=[qm$,
PPQ],x));O.injector.addProvider({provide:Wm,useClass:Wm})}},gKQ);var iOQ={},ObQ=(iOQ.initialized={priority:3,callback:function(){var O;if(O=HZr()){O=O.replace("/",".");var x=_.TD();x.set("tz",O);x.save();O=!0}else O=!1;O||(O=_.TD(),O.set("utco",-Math.floor((new Date).getTimezoneOffset())),O.save())}},iOQ);var xb$={},e5u=(xb$.initialized={priority:10,callback:function(O){O.injector.resolve(Wm).start();O=_.rO();var x=_.SS("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.SS("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.SS("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.SS("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.ic(_.Im$(),{mainAppWeb:Object.assign({},O,{pageType:x})});_.ic(pgm(),{mainAppWeb:Object.assign({},O,{pageType:x})});
_.ic(Rbr(),{mainAppWeb:O});_.ic(U_r(),{mainAppWeb:O});OZR(function(){_.Oe(Rbr(),"FAILURE");_.Oe(U_r(),"FAILURE")});
S6w();jhs();SLN()}},xb$);var l0w={},Cu4=(l0w.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.IR("dl"),_.O2().processSignal("pcl");else{var O=function(){_.IR("dl");_.O2().processSignal("pcl");window.removeEventListener("load",O)};
window.addEventListener("load",O)}}},l0w);var QOL={},bbT=(QOL.rendering={priority:0,callback:function(){var O=_.O2();O.parkOrScheduleJob(function(){O.processSignal("eocs")},10,"eor",5E3)}},QOL);var Ty4=function(){};
_.c(Ty4,CN);
Ty4.prototype.resolveCommand=function(O,x){var e,l,C,Q,L,k,M,G;return _.A(function(X){C=(e=_.q(O,_.u8p))==null?void 0:(l=e.dialog)==null?void 0:l.commentReplyDialogRenderer;if(!C)throw new _.ry("No dialog in createCommentReplyDialogEndpoint");L=(Q=x.form)==null?void 0:Q.event;if(!L)throw new _.ry("Event not passed in when resolving command");k=_.T(L.composedPath());for(M=k.next();!M.done;M=k.next())if(G=M.value,G.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||G.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return G.showReplyDialog(C),X.return();
_.Ra(X)})};var iT=function(){};
_.c(iT,CN);iT.prototype.resolveCommand=function(O){var x,e,l;return _.A(function(C){if(C.nextAddress==1)return x=_.q(O,O6F),(e=x)!=null&&e.externalChannelId?C.yield((0,_.Ccr)("NSzT5"),2):C.return();l=_.LKp;return C.yield(l(x.externalChannelId),0)})};var Oi=function(O){this.pageRequestService=O;this.JSC$18809_prefetchCoordinator=Lye()};
_.c(Oi,CN);Oi.prototype.resolveCommand=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1){e=_.q(O,tOd);if((l=e)==null||!l.taskId)throw Error("Fj");C=e.taskId;_.tS(L,2);return L.yield(_.qtp(x.pageRequestService,O,{},"").then(function(k){if(!k)throw Error("Gj");},function(k){throw Error("Hj`"+k);
}),4)}if(L.nextAddress!=2)return MZQ(x.JSC$18809_prefetchCoordinator,C),_.lb(L,0);
Q=_.VP(L);sz(x.JSC$18809_prefetchCoordinator,C,Q);_.Ra(L)})};
Oi[Fc]=[Dr];var xA=function(O,x){this.innertubeTransportService=O;this.JSC$18813_commandHandler=x};
_.c(xA,CN);xA.prototype.resolveCommand=function(O){var x=this,e,l,C;return _.A(function(Q){if(Q.nextAddress==1){e=_.q(O,cTd);if(e.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||e.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")l=e.boolValue?2:1,_.Ax.getInstance().setState(l,!0,!0);return Q.yield(_.z7(x.innertubeTransportService,O),2)}C=Q.yieldResult;kGw(x,C);_.Ra(Q)})};
var kGw=function(O,x){x.actions&&x.actions.forEach(function(e){O.JSC$18813_commandHandler.resolveCommand(e)})};
xA[Fc]=[_.IF,_.Xc];var eq={},ls=(eq.addToPlaylistEndpoint=BU(i3),eq.addToToastAction=BU(b2),eq.adsControlFlowOpportunityReceivedCommand=BU(h$),eq.audioTrackSelectActionCommand=BU(XE),eq.backgroundAudioPlaybackCommand=BU(oc),eq.captionLanguageSelectActionCommand=BU(yj),eq.captionPickerEndpoint=BU(ZJ),eq.changeMiniAppPlayStateCommand=BU(OW),eq.changeTimelyActionVisibilityCommand=BU(QY),eq.channelCreationFormEndpoint=BU(wW),eq.clearLocationCommand=BU($N),eq.clearUrlParamCommand=BU(xe),eq.copyLinkCommand=BU(Vj),eq.copyTextEndpoint=
BU(KW),eq.createCommentReplyDialogEndpoint=avi(Ty4),eq.createPlaylistServiceEndpoint=BU(p9),eq.dismissDialogEndpoint=BU(C9),eq.dismissPlayerOverlayCommand=BU(EW),eq.entityUpdateCommand=BU(nW),eq.feedbackEndpoint=BU(B3),eq.getAnswerCommand=BU(XXw),eq.getPaymentsClientTokenCommand=BU(Md),eq.getTranscriptEndpoint=BU(Ts),eq.googlePaymentBillingCommand=BU(D6),eq.googlePaymentPurchaseManagerCommand=BU(Gs),eq.hideEngagementPanelEndpoint=BU(Qj),eq.hideSheetCommand=BU(bJ),eq.hideSnackbarCommand=BU($e),eq.insertRichSectionCommand=
BU(jT),eq.listMutationCommand=BU(N2),eq.logGtmCommand=BU(ST),eq.notifyDropdownOptionSelectedCommand=BU(eA),eq.openAdAllowlistInstructionCommand=BU(_.zE),eq.openOnePickAddVideoModalCommand=BU(Rc),eq.persistSubscriptionsDisplayPreferencesCommand=BU(h4),eq.pingingEndpoint=BU(rW),eq.playlistEditEndpoint=BU(ac),eq.playlistVotingRefreshPopupCommand=BU(mf),eq.profileCardCommand=BU(W3),eq.refreshPanelEndpoint=BU(TI),eq.saveImageToDeviceEndpoint=BU(dW),eq.scrollToSectionEndpoint=avi(oG4),eq.seekToVideoTimestampCommand=
BU(t4),eq.selectCountryCommand=BU(zI),eq.setCookieCommand=BU(r0),eq.setLocalStorageCommand=BU(OE),eq.setPrefStorageEntryCommand=BU(K9),eq.setSettingEndpoint=BU(xA),eq.sfvAudioItemPlaybackCommand=BU(qv),eq.shareImageCommand=BU(d0),eq.sharingProviderDataCommand=BU(n9),eq.showAudioTrackPickerActionCommand=BU(Pl),eq.showCaptionLanguageSelectActionCommand=BU(cl),eq.showCreatorChatbotEngagementPanelCommand=BU(iT),eq.showDialogCommand=BU(A4),eq.showEngagementPanelEndpoint=BU(Mv),eq.showSheetCommand=BU(DJ),
eq.showSnackbarCommand=BU(iJ),eq.showTransientPlayerScrimOverlayCommand=BU(Ic),eq.submitFormWithValidationFlowCommand=BU(J$),eq.talkToRecsDeselectCommand=BU(xr),eq.talkToRecsNextCommand=BU(et),eq.talkToRecsSelectCommand=BU(l2),eq.talkToRecsUpdateTextCommand=BU(C4),eq.toggleEngagementPanelCommand=BU(GI),eq.undoFeedbackEndpoint=BU(fW),eq.updateEngagementPanelContentCommand=BU(FE),eq.updateUrlParamCommand=BU(L4),eq.updateVideoMetadataCommand=BU(Ao),eq.verifyCommand=BU(wW),eq.webNativeShareCommand=BU(uJ),
eq.webSubmitFormCommand=BU(sW),eq.ACK_PLAYABLES_3P_DATA_CONSENT=BU(Ye),eq.CANCEL_NAVIGATION=BU(Bl),eq.COPY_SHARE_URL=BU(vl),eq.MINI_APP_EXIT_DIALOG_SEEN=BU(J4),eq.MINI_APP_OPEN_URL=BU(f9),eq.REQUEST_MINI_APP_FULLSCREEN=BU(w0),eq.RESUME_NAVIGATION=BU(SA),eq.SHARE_PLAYABLE_WITH_HIGH_SCORE=BU(jA),eq.TELL_US_WHY=BU(v3),eq);_.t("web_enable_prefetching_videos_on_home")&&(ls.prefetchWatchCommand=BU(Oi),ls.registerTasksCommand=BU(hg));
_.t("enable_share_panel_navigation_logging_fix_on_web")&&(ls.shareEntityServiceEndpoint=BU(L9));_.t("web_use_flow_state_manager")&&(ls.flowNextStepCommand=BU(pOh),ls.flowPrevStepCommand=BU(Ux$),ls.getFlowCommand=BU(mx$),ls.updateFlowCommand=BU(UU));_.t("enable_ai_companion")&&(ls.updateConversationIdCommand=BU(H3));var sBF=Object.assign({},ls);var AqQ={},M3L=(AqQ.initialized={priority:10,callback:efL},AqQ);var Db$={},GGL=(Db$.initialized={callback:function(O){var x={},e={};bkL().install((x.document_disposed={callback:function(){_.t("finalize_all_timelines")?wjs():Z2();GRm("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.tun();var l=O.injector.resolve(Wm);l.intervalId!==void 0&&(l.intervalId&&_.vn.cancelJob(l.intervalId),l.intervalId=void 0,--l.currentPartitionIndex,l=bDz(l),l>0&&X$d({mainAppWeb:_.rO(),survivalSli:{partitionMinute:l,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));TG4(xj);eo!=null&&
eo.flush();j_&&j_.snapshotAndFlush();l=_.T(p0p.values());for(var C=l.next();!C.done;C=l.next())C.value.snapshotAndFlush()}},x),(e.flush_logs={callback:function(){_.Yb()}},e))}},Db$);var FKu={},XKL=(FKu.rendered={priority:0,callback:function(){var O=new ncR;O.increment("STARTED");if(_.wz("LOGGED_IN")&&!_.wz("IS_DBSC",!1)&&_.wz("SERVER_VERSION")!=="test"&&_.wz("SERVER_VERSION")!=="dev"&&!cSd()&&!Px3()){O.increment("EXECUTING");var x=document.createElement("iframe");x.style.display="none";_.Fgr(x,2,_.Yy("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.wz("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(x);O.increment("DONE")}}},
FKu);var ocp={},yqQ=(ocp.rendered={callback:function(){Lye().resume()}},ocp);var Zbw={acknowledgeChannelTouStrikeCommand:AU(BW),addToPlaylistServiceEndpoint:AU(JR),addToPlaylistEndpoint:AU(JR),addUpcomingEventReminderEndpoint:AU(AR),browseEndpoint:AU(JjL),channelCreationFormEndpoint:AU(rh),channelCreationServiceEndpoint:AU(HW),claimLegacyYoutubeChannelEndpoint:AU(PW),clearSearchHistoryEndpoint:AU(Nd),clearWatchHistoryEndpoint:AU(gh),commerceActionCommand:Mw(Gf),createBackstagePostEndpoint:AU(o6),createBroadcastCommand:AU(MF),createCommentEndpoint:AU(sE),createCommentReplyEndpoint:AU(mI),
createLiveChatPollEndpoint:AU(Dj),createPlaylistServiceEndpoint:AU(wZ),crossAccountChannelTransferEndpoint:AU(OD),deleteLiveChatMessageCommand:AU(Gv),deletePlaylistEndpoint:AU(Sr),deleteVideoEndpoint:AU(kf),dismissalEndpoint:AU(vW),feedbackEndpoint:AU(f4),flagEndpoint:AU(Oz),getAccountSwitcherEndpoint:AU(i2),verifyCommand:AU(Xk),getAccountsListInnertubeEndpoint:AU(kk),getCommentsFromInboxCommand:AU(UD),getDownloadActionCommand:AU(rZ),getFlowCommand:Mw(jt),getKidsBlocklistPickerCommand:AU(xf),getNotificationMenuEndpoint:AU(jnL),
getPaymentInstrumentsParamsCommand:AU(Ez),getPaymentsClientTokenCommand:Mw(Gf),getPdgBuyFlowCommand:AU(vk),getReportFormEndpoint:AU(en),getSearchInVideoCommand:AU(Q1),getAnswerCommand:AU(CT),getSurveyCommand:AU(LT),getTranscriptEndpoint:AU(MU),getPostVideoPreviewEndpoint:AU(Z6),decorateMessageEndpoint:AU(yY),likeEndpoint:AU(K4),liveChatActionEndpoint:AU(ye),liveChatEndpoint:AU(oT),liveChatItemContextMenuEndpoint:AU(FL),liveChatPurchaseMessageEndpoint:AU(Zj),liveChatReplayEndpoint:AU(XL),manageLiveChatUserEndpoint:AU(tR),
metadataUpdateCommand:AU(pE),moderateLiveChatEndpoint:AU(qF),modifyChannelNotificationPreferenceEndpoint:AU(Wk),notificationOptOutEndpoint:AU(hR),openSuperStickerBuyFlowCommand:AU(ED),performCommentActionEndpoint:AU(R6),playlistEditEndpoint:AU(NF),playlistEditorEndpoint:AU(jr),recordNotificationInteractionsEndpoint:AU(zv),reelWatchEndpoint:AU(gZ),refreshPanelEndpoint:AU(KE),removeUpcomingEventReminderEndpoint:AU(Pk),resolveLocationCommand:AU(Ve),revealBusinessEmailCommand:AU(cW),searchEndpoint:AU(_.NcO),
sendLiveChatMessageEndpoint:AU(ck),sendLiveChatVoteEndpoint:AU(IT),setSettingEndpoint:AU(dh),shareEntityServiceEndpoint:Mw(Yr),sharingProviderDataCommand:AU(Tf),showEngagementPanelEndpoint:AU(dZ),showMoreDrawerCommand:AU(uS),showSheetCommand:AU(Yk),showDialogCommand:AU(nE),subscribeEndpoint:AU(n4),transcriptSubmitCaptionCorrectionCommand:AU(Ag),undoFeedbackEndpoint:AU(wh),unsubscribeEndpoint:AU(u2),updateBackstagePostEndpoint:AU(to),updateCommentEndpoint:AU(ho),updateCommentReplyEndpoint:AU(WW),updateCommentsSettingsEndpoint:AU(zs),
updateCreatorChannelInnertubeCommand:AU(VY),updateKidsBlacklistEndpoint:AU(lT),updateEngagementPanelContentCommand:AU(Bk),updatePdgFeatureEnablementCommand:AU(fE),updatedMetadataEndpoint:AU(RT),validateChannelHandleCommand:AU(p4),updateChannelPageSettingsEndpoint:AU(I6),verifyAgeEndpoint:AU(St),watchEndpoint:Mw(U2),whitelistEditEndpoint:AU(DF),ypcCancelRecurrenceEndpoint:AU(FX),ypcCompleteTransactionEndpoint:AU(XX),ypcFixInstrumentEndpoint:AU(y1),ypcGetCartEndpoint:AU(oi),ypcGetOffersEndpoint:AU(ZF),
ypcHandleTransactionEndpoint:Mw(tg),ypcLogWalletAnalyticDataEndpoint:AU(qU),ypcOffersEndpoint:AU(PB),ypcPauseSubscriptionCommand:AU(cB),ypcRedeemCodeEndpoint:AU(Ii),ypcResumeSubscriptionCommand:AU(V1),ypcUpdateFopEndpoint:AU(y1)},Cv={},EcO=(Cv.GET_ACCOUNT_MENU=AU(LE),Cv.GET_NOTIFICATIONS_MENU=AU(SdL),Cv.GET_NOTIFICATIONS_INBOX=AU(aT),Cv.GET_UNSEEN_NOTIFICATION_COUNT=AU(sD),Cv.GET_USER_MENTION_SUGGESTIONS=AU(EE),Cv.LOAD_GUIDE=AU(wXO),Cv.SUBMIT_FEEDBACK=AU(Jo),Cv),Qw={},t3u=(Qw.CONTINUATION_REQUEST_TYPE_BROWSE=
AU(qd),Qw.CONTINUATION_REQUEST_TYPE_SEARCH=AU(bT),Qw.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=AU(mG),Qw.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=AU($r),Qw.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=AU(a6),Qw.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=AU(UE),Qw.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=AU(iS),Qw.CONTINUATION_REQUEST_TYPE_GET_PANEL=AU(Hk),Qw),qCL={player:Mw(U2),watchNext:AU(ad)},Puu={player:Mw(U2),reelItemWatch:AU(gZ),reelWatchSequence:AU($k)},cqL={watchEndpoint:Mw(s2)},I0p=
{commandEndpointMap:Zbw,signalEndpointMap:EcO,continuationEndpointMap:t3u,watchEndpointMap:qCL,reelWatchEndpointMap:Puu,streamingEndpointMap:cqL};var V3$,pKL,R5$;_.UbY=((pKL=(V3$=window).matchMedia)==null?void 0:(R5$=pKL.call(V3$,"(prefers-reduced-motion: reduce)"))==null?void 0:R5$.matches)||!document.startViewTransition;var a04={},mbO={disableAllTransitions:_.UbY,ignoredErrors:(a04.DOCUMENT_HIDDEN=!0,a04.WINDOW_SIZE_CHANGED=!0,a04.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,a04),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 sOO=_.zo("\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            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),WK4=function(O){this.viewTransitionCoordinator=
O;this.isBrowseTransitionEnabled=_.Z0("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.t("web_thumbnail_to_watch_transition");this.isLockupThumbnailRegistrationEnabled=_.t("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.t("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.Z0("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.t("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=
this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;O=_.CV.navigator.deviceMemory;this.isUltraHighBucketDevice=O>=8||O===void 0?!0:!1;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){O=_.yF("web_page_transition_exit_ms");var x=_.yF("web_page_transition_wait_ms"),e=_.yF("web_page_transition_enter_fast_ms"),l=_.yF("web_page_transition_watch_exit_ms"),C=_.yF("web_page_transition_watch_wait_ms"),
Q=_.yF("web_page_transition_watch_enter_ms"),L=_.yF("web_page_transition_watch_next_exit_ms"),k=_.yF("web_page_transition_watch_next_wait_ms"),M=_.yF("web_page_transition_watch_next_enter_fast_ms"),G=_.yF("web_page_transition_enter_ms"),X=_.yF("web_page_transition_watch_next_enter_ms");this.enableFasterTransitions&&this.isUltraHighBucketDevice&&(G=e,X=M);isNaN(O)&&isNaN(x)&&isNaN(G)&&isNaN(l)&&isNaN(C)&&isNaN(Q)&&isNaN(L)&&isNaN(k)&&isNaN(X)||!(O=dMV(sOO,O,x,G,l,C,Q,L,k,X))||(x=document.createElement("style"),
x.textContent=ZxN(O),document.head.appendChild(x))}};
WK4.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var O={};this.viewTransitionCoordinator.registerElement(document.documentElement,(O.slide="root-slide",O["lockup-to-watch"]="root-lockup-to-watch",O["learning-journey"]="root-learning-journey",O))}};
_.HSz=function(O,x){O.isLockupToWatchTransitionEnabled&&O.isLockupThumbnailRegistrationEnabled&&(O.registeredLockupThumbnail?O.lockupThumbnailRegisteredFromWatchEndpoint?_.ft(new _.ry("Lockup thumbnail registration order is incorrect.")):_.ft(new _.ry("Lockup thumbnail already registered.")):(O.registeredLockupThumbnail=x,_.h5$(O,x)))};
_.h5$=function(O,x){var e={};O.viewTransitionCoordinator.registerElement(x,(e["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",e),!0)};
WK4[Fc]=[qfY];var lHr={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 QIL=["videoPrimaryInfoRenderer","title"],baL=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var z5L;z5L=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.rqT=_.K(function(O){O=_.YX(O,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var x=O.data,e=O.playlistData,l=O.expanded,C=O.onExpandClick,Q=O.isReadyToResume,L=function(){var X;return!((X=e())==null||!X.contents)},k=function(){var X=e();
return X&&X.totalVideos&&X.currentIndex!==void 0?X.currentIndex+1+" / "+X.totalVideos:""};
O=_.lk(function(){_.bs(_.GG().resolve(_.Vs));return!1});
var M=_.lk(function(){L()&&C&&C()}),G={};
return _.D("ytd-miniplayer-info-bar",{class:_.xz("ytdMiniplayerInfoBarHost",(G.ytdMiniplayerInfoBarHasPlaylistData=L,G)),"on:click":M},_.D("div",{class:"ytdMiniplayerInfoBarContent"},_.D("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":O},_.D(_.TT,{text:function(){var X=x();var y=e();if(y==null?0:y.contents){var Z;X=(Z=_.OzL(y))==null?void 0:Z.title}else X=X==null?void 0:X.miniplayerTitle;return Tun(X)},
noEndpoints:!0,ellipsisTruncate:!0})),_.D("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.D(_.F,{cond:Q,then:function(){return _.D(EJL,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:z5L})}}),_.D("h1",null,_.D(_.TT,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var X=x();var y=e();X=Q()?{simpleText:_.CZ("CONTINUE_WATCHING",void 0,"Continue watching")}:(y==null?0:y.contents)?y.titleText:X==null?void 0:X.miniplayerSubtitle;return Tun(X)},
noEndpoints:!0,ellipsisTruncate:!0})),_.D(_.F,{cond:function(){return!!k()&&!Q()},
then:function(){return _.D("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.D("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.D("span",null,k))}}))),_.D(_.F,{cond:L,
then:function(){return _.D("div",{class:"ytdMiniplayerInfoBarExpand"},_.D(_.pd,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(X){C&&(C(),X.stopPropagation())}}},
iconName:function(){return l()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"pg");var HbY;HbY=_.K(function(O){return _.D("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.D(_.pd,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:O.onTap}},
iconName:"yt-icons:close"}))},"qg");
_.KKQ=_.K(function(O){O=_.YX(O,{playabilityStatus:void 0,isDisabled:!1});var x=O.size,e=O.playabilityStatus,l=O.isDisabled,C=_.Q5("div");O=_.T(_.Iw(void 0,void 0,"y6THVb"));var Q=O.next().value,L=O.next().value;O=_.Dl(_.JA);var k=!1,M=function(){return x().height<=0};
_.uo(function(){var Z=x(),E=M(),P=Q();P&&!E&&P.setInternalSize(Z.width,Z.height)},"qu2eI");
_.u8(function(){var Z,E,P;return _.A(function(U){if(U.nextAddress==1){Z=_.GG().resolve(_.Vs);E=Z.getPlayerElement();if(!Z.isMiniplayerActive()||!E||!C.value)return U.return();E.appendTo(C.value);return U.yield(E.getPlayerPromise(),2)}P=U.yieldResult;P.setSizeStyle(!1,!0);L(P);_.Ra(U)})});
_.YO(function(){G()});
_.uo(function(){var Z=Q();if(Z)if(l()){var E=Z.getPlayerState();(k=E===-1||E===1||E===3)&&Z.pauseVideo()}else G()},"mCtQKc");
var G=function(){if(k){k=!1;var Z;(Z=Q())==null||Z.playVideo()}},X=_.lk(function(){_.bs(_.GG().resolve(_.Vs))}),y={};
return _.D("ytd-miniplayer-player-container",{class:_.xz("ytdMiniplayerPlayerContainerHost",(y.ytdMiniplayerPlayerContainerHidden=M,y.ytdMiniplayerPlayerContainerHostShortsPip=O,y)),style:_.T7({width:function(){return x().width+"px"},
height:function(){return x().height+"px"}})},_.D("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:C}),_.D(_.F,{cond:function(){return!!e()&&!_.U7L(e())},
then:function(){return _.D(Yhh,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var Z;return((Z=e())==null?void 0:Z.errorScreen)||null},
status:function(){var Z;return((Z=e())==null?void 0:Z.status)||null}})}}),_.D(_.F,{cond:l,
then:function(){return _.D("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":X},_.D(HbY,{onTap:function(){_.GG().resolve(_.Vs).close()}}))}}))},"ug");_.dbY=_.K(function(O){var x=O.toastData;var e=_.Q5("ytd-miniplayer-toast");O=_.T(_.bk(function(){return!!x()}));
var l=O.next().value,C=O.next().value;O=_.T(_.Iw(!1,void 0,"BvfNQe"));var Q=O.next().value,L=O.next().value,k=function(){var X;return _.db((X=x())==null?void 0:X.data.title)};
_.YK(function(){_.f6.requestAvailability();x()&&C(!1)});
var M,G;_.uo(function(){l()&&(_.wr(e.value,"iron-announce",{text:x().label+" "+k()}),M&&_.vn.cancelJob(M),M=_.vn.addLowPriorityJob(function(){L(!0)},2500))},"no1dZb");
_.uo(function(){Q()&&(G&&_.vn.cancelJob(G),G=_.vn.addLowPriorityJob(function(){C(!1);L(!1)},300))},"G3yPNe");
O={};return _.D("ytd-miniplayer-toast",{el:e,class:_.xz("ytdMiniplayerToastHost",(O.ytdMiniplayerToastOpening=function(){return l()},O.ytdMiniplayerToastClosing=function(){return Q()},O))},_.D(_.F,{cond:function(){var X;
return(X=x())==null?void 0:X.data},
then:function(X){return _.D(UGz,{className:"ytdMiniplayerToastThumbnail",data:X,width:78})}}),_.D("div",{class:"ytdMiniplayerToastInfo"},_.D("div",{class:"ytdMiniplayerToastLabel"},function(){var X;
return(X=x())==null?void 0:X.label}),_.D("div",{class:"ytdMiniplayerToastTitle"},k)))},"xg");var ypr;var t4s=null;var ucu=_.K(function(O){var x=O.progressState;var e=O.multiMarkersPlayerBarRenderer;var l=O.progressBarWidth;var C=function(){return IHL(e())},Q=function(){return Rfm(x())},L=function(){return l()*(x().playedTime/x().videoDuration)};
return _.D("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.D(_.HE,{each:C},function(k,M){return _.D(nc$,{modifiedProps:Q,chapters:C,index:M,playedProgressWidth:L,backgroundGradientPosition:function(){var G=Q(),X=C(),y=M(),Z=L();return(G.playedTime-cN(_.q(X[y],PN)))/G.playedTime*Z}})}))},"yg"),nc$=_.K(function(O){var x=O.modifiedProps;
var e=O.chapters;var l=O.index;var C=O.playedProgressWidth;var Q=O.backgroundGradientPosition;O={};O=_.xz("ytChapteredProgressBarChapteredPlayerBarChapter",(O.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return L().isScrubbing},O.ytChapteredProgressBarHoveredMacroMarker=function(){return L().scrubberHovering},O.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return L().videoPosition==="seen"},O));
var L=function(){return UJ$(x(),e(),l())},k=function(){var M=x();
var G=e(),X=l();if(UJ$(M,G,X).videoPosition!=="active")M=0;else{var y=cN(_.q(G[X],PN));M=(M.playedTime-y)/((cN(_.q(G[X+1],PN))||M.videoDuration)-y)}return M};
return _.D("div",{class:O,style:_.T7({width:function(){var M=x(),G=e(),X=l(),y=_.q(G[X],PN);G=_.q(G[X+1],PN);return(G?cN(G)-cN(y):M.videoDuration-cN(y))/M.videoDuration*100+"%"},
"background-color":function(){a:{var M=L();switch(M.videoPosition){case "pending":M=M.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":M=M.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:M=""}}return M},
"background-size":function(){return(aHw(L())?C():"")+"px"},
"background-position-x":function(){return(aHw(L())?Q():"")+"px"}})},_.D("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var M=x(),G=e(),X=l();if(UJ$(M,G,X).videoPosition==="seen")var y=0;else y=cN(_.q(G[X],PN)),G=cN(_.q(G[X+1],PN))||M.videoDuration,M=M.videoDuration*M.percentLoaded,y=G<=M?1:y>=M?0:(M-y)/(G-y);return"width: "+y*100+"%"}}),_.D("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.T7({width:function(){return k()*100+"%"},
"background-size":function(){return(aHw(L(),k())?C():"")+"px"},
"background-position-x":function(){return(aHw(L(),k())?Q():"")+"px"}})}))},"zg");var YC4=function(O,x){x=x===void 0?t1$:x;var e,l=[],C,Q=!1;return function(){var L=_.vw.apply(0,arguments);if(Q&&e===this&&x(L,l))return C;C=O.apply(this,L);Q=!0;e=this;l=L;return C}}(function(O){var x=O.heatMarkers,e=O.minHeightDp===void 0?0:O.minHeightDp,l=O.maxHeightDp===void 0?60:O.maxHeightDp;
var C=C===void 0?!1:C;var Q=1E3/x.length;O=[];O.push({x:0,y:100});for(var L=0;L<x.length;L++){var k=void 0,M=((k=_.q(x[L],pId))==null?void 0:k.heatMarkerIntensityScoreNormalized)||0;k=(L+.5)*Q;M=100-_.qo(M*100,e/321*100,l/321*100);L!==0||C||O.push({x:0,y:M});O.push({x:k,y:M});L===x.length-1&&O.push({x:1E3,y:M})}O.push({x:1E3,y:100});x="";for(e=0;e<O.length;e++)C=O[e],e===0?C="M "+C.x.toFixed(1)+","+C.y.toFixed(1):(l=phV(O[e-1],O[e-2],C),Q=phV(C,O[e-1],O[e+1],!0),C=" C "+(l.x.toFixed(1)+","+l.y.toFixed(1)+
" "+Q.x.toFixed(1)+","+Q.y.toFixed(1)+" "+C.x.toFixed(1)+","+C.y.toFixed(1))),x+=C;return x});var Bye=_.K(function(O){var x=O.progressBarProps;var e=O.config;var l={};O=_.xz("ytHeatSeekerHost",(l.ytHeatSeekerHighContrast=O.highContrast,l));var C=function(){return DJ8(e().chapterData)};
return _.D("yt-progress-bar-heatseeker",{class:O,style:function(){var Q;return"height: 320px; display: "+(x().isDragging&&((Q=C())==null?0:Q.heatMarkers)?"block":"none")}},_.D(_.F,{cond:C,
then:function(Q){return _.D(_.F,{cond:function(){return Q().heatMarkers},
then:function(){return _.D("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.D("path",{d:function(){return YC4(Q())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ag");var vcY=_.K(function(O){var x=O.progressBarProps;var e=O.config;O={};O=_.xz("ytProgressBarLineProgressBarLine",(O.ytProgressBarLineProgressBarLineRounded=function(){return e().rounded},O.ytProgressBarLineProgressBarLineBottomInset=function(){return e().position===2},O));
return _.D("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.D("div",{class:O},_.D("div",{class:"ytProgressBarLineProgressBarBackground"}),_.D("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+x().percentLoaded*100+"%"}}),_.D("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var l=x();return"width: "+(l.videoDuration?_.qo(l.hoveredTime/l.videoDuration,0,1):0)*100+"%"}}),_.D("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+kqs(x())*100+"%"}})))},"Bg");
vcY.idomCompat=!0;var f0O=_.K(function(O){var x=O.progressBarProps;var e=O.playheadData;var l=O.interpolateDotPosition;var C=O.hidePlayhead;O={};var Q=_.xz("ytProgressBarPlayheadProgressBarPlayheadDot",(O.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return x().isDragging},O.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!x().isDragging&&C()},O));
return _.D("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.T7({"margin-left":function(){return ApN(x())*100+"%"},
transform:function(){return"translateX(-"+(l()?ApN(x())*12:6)+"px)"}})},_.D(_.F,{cond:function(){var L;
return(L=_.uH(e)())==null?void 0:L.playheadImage},
then:function(L){var k={};return _.D("div",{class:_.xz("ytProgressBarPlayheadProgressBarPlayheadCustom",(k.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return x().isDragging},k.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!x().isDragging&&C()},k)),
style:_.T7({"transform-origin":function(){return(l()?ApN(x())*20:10)+"px center"}})},_.D(_.n_,{data:L,
alt:"","aria-hidden":"true"}))},
else:function(){return _.D("div",{class:Q,style:_.T7({"transform-origin":function(){return(l()?ApN(x())*12:6)+"px center"}})})}}))},"Cg");
f0O.idomCompat=!0;var T9=function(O,x,e,l,C,Q){this.getProgressBarRect=O;this.updateProgressBarRect=x;this.getFilmstripYPosition=e;this.setFineScrubbingDraggedTime=l;this.updateFilmStripDraggedYDistance=C;this.resetFilmStripYOffset=Q;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.QI(this.onThrottledSeek,100,this)},JqT=function(O,x,e){return function(l){O.handleClick(l,x(),e())}},jOe=function(O,x){return function(e){wK$(O,
e,SCp(e),x())}},NyQ=function(O,x){return function(e){wK$(O,e,{x:e.clientX,
y:e.clientY},x())}},$bT=function(O,x,e){return function(l){var C=x(),Q=e();
gcQ(O,l,SCp(l),C,Q,!0);if(Q.onTouchMove)Q.onTouchMove(C)}},O$h=function(O,x,e){return function(l){ibp(O,l,x(),e())}},xBw=function(O,x){return function(){O.handleMouseLeave(x())}},exL=function(O,x,e){return function(){var l=x(),C=e();
Lv(O,l,C);if(C.onTouchEnd)C.onTouchEnd(l)}},lG4=function(O,x,e){return function(){var l=x(),C=e();
Lv(O,l,C);if(C.onTouchEnd)C.onTouchEnd(l)}},CbQ=function(O,x,e){return function(){Lv(O,x(),e())}},QCh=function(O){return function(x){if(x.keyCode===39||x.keyCode===38){var e,l;
(e=O())==null||(l=e.playerApi)==null||l.seekBy(5,void 0,void 0,72)}else if(x.keyCode===37||x.keyCode===40){var C,Q;(C=O())==null||(Q=C.playerApi)==null||Q.seekBy(-5,void 0,void 0,71)}}},b$u=function(O,x,e){return function(l){!e().disableScrubbing&&O.startPosition&&ibp(O,l,x(),e())}},TDQ=function(O,x,e){return function(){if(!e().disableScrubbing)if(O.startPosition){var l=x(),C=e();
Lv(O,x(),e());if(C.onTouchEnd)C.onTouchEnd(l)}else x().setState({isDragging:!1})}},SCp=function(O){O=O.touches[0];
return{x:O.clientX,y:O.clientY}},ibp=function(O,x,e,l){if(x.buttons!==1){if(x.movementX||x.movementY)x.preventDefault(),x.stopPropagation(),O=LQL(O,e,x.clientX),e.setState({isHovering:!0,
hoveredTime:O*e.videoDuration})}else kCL(e),gcQ(O,x,{x:x.clientX,y:x.clientY},e,l,!1)};
T9.prototype.handleMouseLeave=function(O){kCL(O)};
var kCL=function(O){O.isHovering&&O.setState({isHovering:!1,hoveredTime:0})},wK$=function(O,x,e,l){O.startPosition||(O.startPosition=e,O.updateProgressBarRect(),O.controlsWereVisibleBeforeDragging=l.controlsVisible,x.stopPropagation(),_.t("medium_progress_bar_modification")||x.preventDefault())},gcQ=function(O,x,e,l,C,Q){if(O.startPosition)if(Q&&C.isInlinePlayback&&O.startPosition&&!O.hasDraggedTheMinimumDistance&&Math.abs(e.y-O.startPosition.y)>Math.abs(e.x-O.startPosition.x))Lv(O,l,C);
else if(x.preventDefault(),x.stopPropagation(),l.videoDuration&&(O.startPosition&&!O.hasDraggedTheMinimumDistance&&(O.hasDraggedTheMinimumDistance=Math.abs(e.x-O.startPosition.x)>=1),C.enableFineScrubbing&&(O.startPosition&&(O.isDraggedForFineScrubbing=-(e.y-O.startPosition.y)>=60),!O.startPosition||e.y>=O.startPosition.y||(l.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:mJr(l.draggedTime,l,C.chapterData)}),O.setFineScrubbingDraggedTime(l.draggedTime),O.updateFilmStripDraggedYDistance(O.startPosition.y,
e.y,l))),O.hasDraggedTheMinimumDistance)){x=LQL(O,l,e.x);if(O.isDraggedForFineScrubbing){var L;(L=l.playerApi)==null||L.pauseVideo();l.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:l.draggedTime,filmStripXDistance:mJr(x*l.videoDuration,l,C.chapterData)})}C.enableFineScrubbing&&(!C.enableFineScrubbing||O.getFilmstripYPosition(l)<68)||l.setState({draggedTime:x*l.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:O.controlsWereVisibleBeforeDragging});var k;(k=
C.cancelAutohideControlsFn)==null||k.call(C)}},Lv=function(O,x,e){var l=e.enableFineScrubbing&&x.fineScrubbingActiveState!=="off";
if(x.isDragging||l){l={isDragging:!1,playedTime:x.draggedTime,controlsVisible:O.controlsWereVisibleBeforeDragging};e.enableFineScrubbing&&x.fineScrubbingActiveState!=="on"&&(O.resetFilmStripYOffset(),l.fineScrubbingActiveState="off");var C=C===void 0?t4s:C;var Q=_.Pq(0);if(Q&&C){var L=Math.round(x.playedTime*1E3),k=Math.round(x.draggedTime*1E3);L>2147483647||k>2147483647||_.dT(Q,C,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(L),endMediaTimeMs:String(k),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}x.setState(l);
O.seekThrottle.fire(x.draggedTime,x,7);_.t("mweb_new_progress_bar_play_on_seek")&&O.resumeVideo(x);e.unmuteOnSeek&&(e=x.playerApi,x.volumeMuted&&(e==null||e.unMute()))}else x.setState({controlsVisible:!x.controlsVisible}),(Q=e.triggerAutohideControlsAfterDelayFn)==null||Q.call(e);O.startPosition=null;O.hasDraggedTheMinimumDistance=!1;O.isDraggedForFineScrubbing=!1;O.controlsWereVisibleBeforeDragging=!1};
T9.prototype.handleClick=function(O,x,e){this.updateProgressBarRect();O.stopPropagation();O=LQL(this,x,O.clientX)*x.videoDuration;x.setState({playedTime:O});if(x.playerState!==2){var l;(l=e.triggerAutohideControlsAfterDelayFn)==null||l.call(e)}this.seekThrottle.fire(O,x,7)};
var LQL=function(O,x,e){O=O.getProgressBarRect(x);return _.qo(0,(e-O.left)/O.width,1)};
T9.prototype.resumeVideo=function(O){if(O.draggedTime<O.videoDuration){var x;(x=O.playerApi)==null||x.playVideo()}};
T9.prototype.onThrottledSeek=function(O,x,e){if(x=x.playerApi){var l;if((l=x.getVideoData())==null?0:l.isLive)l=this.getProgressState(x),O+=(l==null?void 0:l.seekableStart)||0;x.seekTo(O,void 0,void 0,void 0,e)}};
T9.prototype.getProgressState=function(O){var x=O==null?void 0:O.getPresentingPlayerType();return O==null?void 0:O.getProgressState(x)};var DBh,MCX,GCL,Xnu,ANu,oCL,yNp,Z$e,ECL;DBh=_.K(function(O){var x=O.progressBarProps;var e=O.config;var l=O.progressBarWidthPx;var C=O.chapterData;var Q=rpV(x,function(){return e().isShortsPage}),L=function(){return!x().isHovering&&!e().isShortsPage};
O={};var k=_.xz("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(O.ytPlayerStoryboardHostMwebShorts=function(){return e().isShortsPage&&!1},O));
return _.D("yt-player-storyboard",null,_.D(_.F,{cond:function(){return x().isDragging||x().isHovering},
then:function(){return _.D(_.F,{cond:Q,then:function(M){return _.D(_.F,{cond:L,then:function(){return _.D("div",{class:k,"aria-hidden":"true"},_.D(ANu,{props:x,config:e,isBigboard:!0,chapterData:C}))},
else:function(){return _.D(MCX,{props:x,frame:M,config:e,progressBarWidthPx:l,chapterData:C})}})}})}}))},"Dg");
_.FQX=_.K(function(O){var x=O.progressBarProps;var e=rpV(x,O.isShortsPage);return _.D("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.D(_.F,{cond:function(){return x().isDragging||x().isHovering},
then:function(){return _.D(_.F,{cond:e,then:function(l){return _.D(GCL,{frame:l,props:x,isBigboard:!0})}})}}))},"Eg");
MCX=_.K(function(O){var x=O.props;var e=O.frame;var l=O.config;var C=O.progressBarWidthPx;O=O.chapterData;var Q={};Q=_.xz("ytPlayerStoryboardHost",(Q.ytPlayerStoryboardHostMwebShorts=function(){return l().isShortsPage&&!1},Q.ytPlayerStoryboardHostInlinePlayer=function(){return l().isInlinePlayer},Q.ytPlayerStoryboardHostFadeIn=function(){return l().useFadeInAnimation},Q));
return _.D("div",{class:Q,"aria-hidden":"true",style:function(){var L=x(),k=sIs(e()),M=C();L=Wpr(L)/L.videoDuration;var G=M*L,X=k/2+6;k=M-(k/2+6);return"left: "+(G<=X?X/M*100:G>=k?k/M*100:L*100)+"%"}},_.D(_.F,{cond:function(){var L=x();
return!(l().isShortsPage&&L.videoDuration<15)},
then:function(){return _.D(GCL,{frame:e,props:x,isBigboard:!1})}}),_.D(ANu,{props:x,
config:l,isBigboard:!1,chapterData:O}))},"Fg");
GCL=_.K(function(O){var x=O.frame;var e=O.props;var l=O.isBigboard;var C=function(){var k,M;return(M=(k=e().playerApi)==null?void 0:k.getVideoContentRect())!=null?M:{width:0,height:0}},Q=function(){return sIs(x())},L=function(){var k=x();
return k?k.height/k.rows:0};
O={};O=_.xz((O.ytPlayerStoryboardBigboardImageWrapper=l,O.ytPlayerStoryboardStoryboardImageWrapper=function(){return!l()},O));
return _.D("div",{class:O,style:function(){return"width: "+(l()?C().width:Q())+"px; height: "+(l()?C().height:L())+"px;"}},_.D(Xnu,{frame:x,
storyboardWidth:Q,storyboardHeight:L,storyboardScale:function(){return(l()?C().width:Q())/Q()}}))},"Gg");
Xnu=_.K(function(O){var x=O.frame;var e=O.storyboardWidth;var l=O.storyboardHeight;var C=O.storyboardScale;var Q=function(){var L=x().row,k=x().column,M=e(),G=l(),X=C();return{left:-k*M*X,top:-L*G*X}};
return _.D("img",{src:function(){return x().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+Q().left+"px; top: "+Q().top+"px; width: "+x().width*C()+"px; height: "+x().height*C()+"px;"}})},"Hg");
ANu=_.K(function(O){var x=O.props;var e=O.config;var l=O.isBigboard;var C=O.chapterData;O={};O=_.xz("ytPlayerStoryboardMetadata",(O.ytPlayerStoryboardMetadataBigboard=l,O));return _.D("div",{class:O},_.D(_.F,{cond:l,then:function(){return _.D(_.Xm,null,_.D(oCL,{props:x,config:e}),_.D(_.F,{cond:function(){a:{var Q=x();var L=e(),k=C(),M;if((L==null?0:L.activeChapter)&&((M=_.q(L==null?void 0:L.activeChapter,PN))==null?0:M.title))Q=!0;else{L=_.T(Gqs(k));for(L=L.next();!L.done;L=L.next()){Q=(L=_.q(L.value,
UzF))&&hfm(Q,L);break a}Q=!1}}return Q},
then:function(){return _.D(yNp,{props:x,config:e,isBigboard:!0,chapterData:C})}}))},
else:function(){return _.D(_.Xm,null,_.D(yNp,{props:x,config:e,isBigboard:!0,chapterData:C}),_.D(oCL,{props:x,config:e}))}}))},"Ig");
oCL=_.K(function(O){var x=O.props;var e=O.config;O={};O=_.xz("ytPlayerStoryboardTimestamp",(O.ytPlayerStoryboardTimestampShorts=function(){return e().isShortsPage},O.ytPlayerStoryboardTimestampIsHovering=function(){return x().isHovering||e().isShortsPage&&!0},O));
return _.D("div",{class:O},_.D(_.Xm,null,function(){return _.zfL(Wpr(x()))}))},"Jg");
yNp=_.K(function(O){var x=O.props;var e=O.config;var l=O.isBigboard;var C=O.chapterData;O={};l=_.xz("ytPlayerStoryboardTitle",(O.ytPlayerStoryboardTitleBigboard=l,O));return _.D("div",{class:l},_.D(_.F,{cond:function(){return!e().isShortsPage},
then:function(){return _.D(Z$e,{props:x,activeChapter:function(){return e().activeChapter},
chapterData:C})}}))},"Kg");
Z$e=_.K(function(O){var x=O.props;var e=O.activeChapter;var l=O.chapterData;return _.D(_.Xm,null,_.D(_.HE,{each:function(){return Gqs(l())},
keyBy:"INDEX"},function(C){return _.D(_.Xm,null,_.D(_.F,{cond:function(){return _.q(C(),UzF)&&hfm(x(),_.q(C(),UzF))},
then:function(){return _.D(ECL,{timedMarker:function(){return _.q(C(),UzF)}})}}))}),_.D(_.F,{cond:function(){var C;
return e()&&((C=_.q(e(),PN))==null?void 0:C.title)},
then:function(C){return _.D(_.TT,{text:C,noPreWrap:!0})}}))},"Lg");
ECL=_.K(function(O){var x=O.timedMarker;return _.D(_.Xm,null,_.D("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.D(_.L7,{icon:function(){return x().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.D(_.TT,{text:function(){return x().label},
noPreWrap:!0}))},"Mg");_.tCw=_.K(function(O){var x=O.progressBarProps;var e=O.playheadData;var l=O.config;O=_.Q5("yt-progress-bar");var C=_.Q5("div"),Q=_.Q5("div"),L=_.T(_.Iw({width:0,left:0},void 0,"WloVn")),k=L.next().value,M=L.next().value,G=function(){Q.value&&M(Q.value.getBoundingClientRect())},X=function(){k().width<=0&&G();
return k()};
_.D9("resize",G);var y=new T9(X,function(){},function(){return 0},function(){},function(){},function(){}),Z=function(){return x()};
L=_.T(_.Iw(!1,void 0,"u8BZZb"));var E=L.next().value,P=L.next().value;L=_.lk(function(){P(!0);l().position===2?setTimeout(function(){G()},100):G()});
var U=_.lk(function(){P(!1);xBw(y,Z)()}),W=_.lk(function(VN){l().doSeekOnClick&&JqT(y,Z,l)(VN);
return!1}),z=_.lk(function(VN){jOe(y,Z)(VN);
return!1}),r=_.lk(function(VN){NyQ(y,Z)(VN);
return!1}),f=_.lk(function(VN){$bT(y,Z,l)(VN);
return!1}),u=_.lk(function(VN){O$h(y,Z,l)(VN);
return!1}),Y=_.lk(function(){exL(y,Z,l)();
return!1}),J=_.lk(function(){lG4(y,Z,l)();
return!1}),O8=_.lk(function(){CbQ(y,Z,l)();
return!1}),Xr=_.lk(function(VN){QCh(Z)(VN);
return!1});
_.D9("mousemove",b$u(y,Z,l));_.D9("mouseup",TDQ(y,Z,l));_.YK(function(){qHn(C.value);P(!1);G();TDQ(y,Z,l)()});
var Fr={};Fr=_.xz("ytPlayerProgressBarHost",function(){return l().className},(Fr.ytPlayerProgressBarHostReadOnly=function(){return l().disableScrubbing},Fr.ytPlayerProgressBarHostHidden=function(){return l().hideProgressBar&&!E()},Fr.ytPlayerProgressBarHostLowerPlayer=function(){return l().position===0},Fr.ytPlayerProgressBarHostBottomEdge=function(){return l().position===1},Fr.ytPlayerProgressBarHostBottomInset=function(){return l().position===2},Fr.ytPlayerProgressBarHostCustom=function(){return l().position===
3},Fr));
var mL={},Zn=_.xz("ytPlayerProgressBarBackground",(mL.ytPlayerProgressBarBackgroundHide=function(){return l().position===2&&!E()&&!x().isDragging},mL));
mL={};mL=_.xz("ytPlayerProgressBarDragContainer",(mL.ytPlayerProgressBarDragContainerBottomEdge=function(){return l().position===1},mL));
var q$={};q$=_.xz("ytPlayerProgressBarProgressBar",(q$.ytPlayerProgressBarProgressBarInset=function(){return l().position===2},q$.ytPlayerProgressBarProgressBarInsetMinimized=function(){return l().position===2&&!E()&&!x().isDragging},q$));
var KV=function(){return Math.floor(kqs(x())*100)};
return _.D("yt-progress-bar",{el:O,class:Fr},_.D(_.F,{cond:function(){return l().position===2},
then:function(){return _.D("div",{class:Zn})}}),_.D("div",{el:C,
"on:click":W,"on:touchstart":z,"on:touchmove":f,"on:mouseenter":L,"on:mousedown":r,"on:mouseleave":U,"on:mousemove":u,"on:mouseup":J,"on:touchend":Y,"on:touchcancel":O8,"on:keydown":Xr,class:mL,role:"slider","aria-valuenow":KV,"aria-valuetext":function(){return KV()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return x().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.CZ("SEEK_SLIDER")},_.D("div",{el:Q,class:q$},_.D(Bye,{progressBarProps:x,config:l,highContrast:function(){return!!l().isInlinePlayback}}),_.D(_.F,{cond:function(){return l().chapterData&&Fpr(l().chapterData)},
then:function(){return _.D(ucu,{progressState:x,multiMarkersPlayerBarRenderer:function(){return l().chapterData},
progressBarWidth:function(){return k().width}})},
else:function(){return _.D(vcY,{progressBarProps:x,config:l})}}),_.D(f0O,{progressBarProps:x,
playheadData:e,interpolateDotPosition:function(){return l().position!==2},
hidePlayhead:function(){return l().playheadDotBehavior===1&&!E()}}))),_.D(DBh,{progressBarProps:x,
config:function(){return{activeChapter:pzr(x(),l().chapterData),getProgressBarWidthPx:function(){return X().width},
isShortsPage:!!l().isShortsPage,isInlinePlayer:!!l().isInlinePlayback,useFadeInAnimation:!!l().isInlinePlayback}},
progressBarWidthPx:function(){return k().width},
chapterData:function(){return l().chapterData}}))},"Ng");
_.tCw.idomCompat=!0;Object.assign({},_.Xzr(),{setState:function(){},
domMeasurements:{},appApi:_.LpN(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var qYY;
_.Pbp=_.K(function(){var O,x=(O=_.IL(Har().playerApi))!=null?O:void 0;O=_.T(_.Iw(!1,void 0,"Z9NQ1b"));var e=O.next().value,l=O.next().value;O=_.T(_.Iw(!1,void 0,"HoVJXe"));var C=O.next().value,Q=O.next().value;O=_.T(_.Iw(!1,void 0,"DWCY3"));var L=O.next().value,k=O.next().value;O=_.T(_.Iw(!1,void 0,"g4C2Zd"));var M=O.next().value,G=O.next().value;O=_.T(_.Iw(0,void 0,"lmVfFb"));var X=O.next().value,y=O.next().value;O=_.T(_.Iw(0,void 0,"mFLbzb"));var Z=O.next().value,E=O.next().value;O=_.T(_.Iw(!1,void 0,
"hQN4Wb"));var P=O.next().value,U=O.next().value;O=_.T(_.Iw(0,void 0,"WWU0fb"));var W=O.next().value,z=O.next().value;O=_.T(_.Iw(0,void 0,"MJ7LMd"));var r=O.next().value,f=O.next().value;O=_.T(_.Iw("",void 0,"hnomOe"));var u=O.next().value,Y=O.next().value;O=_.T(_.Iw(-1,void 0,"ARe3pf"));var J=O.next().value,O8=O.next().value,Xr=_.aw(function(){var Fr={controlsVisible:e(),isOverlayHidden:C(),shouldWaitToHideControls:L(),isDragging:M(),isHovering:P(),videoDuration:W(),playedTime:r(),videoId:u(),draggedTime:Z(),
hoveredTime:X(),playerState:J()};return Object.assign({},_.Xzr(),Fr,{domMeasurements:{},setState:function(mL){mL.controlsVisible!==void 0&&l(mL.controlsVisible);mL.isOverlayHidden!==void 0&&Q(mL.isOverlayHidden);mL.shouldWaitToHideControls!==void 0&&k(mL.shouldWaitToHideControls);mL.isDragging!==void 0&&G(mL.isDragging);mL.isHovering!==void 0&&U(mL.isHovering);mL.draggedTime!==void 0&&E(mL.draggedTime);mL.hoveredTime!==void 0&&y(mL.hoveredTime);mL.videoDuration!==void 0&&z(mL.videoDuration);mL.playedTime!==
void 0&&f(mL.playedTime);mL.videoId!==void 0&&Y(mL.videoId);mL.playerState!==void 0&&O8(mL.playerState)},
appApi:_.LpN(),playerApi:x})},void 0,"Au4PIf");
_.u8(function(){x==null||x.addEventListener("onVideoProgress",EFr(Xr));x==null||x.addEventListener("onVideoDataChange",Za7(Xr));x==null||x.addEventListener("onStateChange",oFi(Xr))});
_.YO(function(){if(x==null?0:x.isReady())x==null||x.removeEventListener("onVideoProgress",EFr(Xr)),x==null||x.removeEventListener("onVideoDataChange",Za7(Xr)),x==null||x.removeEventListener("onStateChange",oFi(Xr))});
return _.D("desktop-shorts-player-controls",null,_.D(qYY,{playerControlsProps:Xr}))},"Pg");
qYY=_.K(function(O){var x=O.playerControlsProps;return _.D("div",{class:"desktopShortsPlayerControlsHost"},_.D(_.tCw,{progressBarProps:x,config:function(){return{isShortsPage:!0,hideProgressBar:x().videoDuration<30&&x().playerState!==2&&!x().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Qg");_.cNX=_.K(function(O){function x(Fr){Fr!==0||y()?Fr>50&&(y()||!E())?(Z(!1),P(!0)):Fr<=50&&(y()||E())&&(Z(!1),P(!1)):Z(!0)}
function e(Fr,mL){var Zn;return _.A(function(q$){if(q$.nextAddress==1)return q$.yield(_.xp(),2);Zn=q$.yieldResult;mL&&Zn?(Zn.unMute(!0),Fr&&(dJw(Fr,Zn.getVolume()),W(Zn.getVolume()))):Zn&&(Zn.mute(!0),Fr&&dJw(Fr,0));_.Ra(q$)})}
function l(Fr){var mL,Zn;return _.A(function(q$){if(q$.nextAddress==1)return q$.yield(_.xp(),2);mL=q$.yieldResult;Zn=50;mL&&(Zn=mL.getVolume(),mL.isMuted()?dJw(Fr,0):dJw(Fr,Zn));W(Zn);_.Ra(q$)})}
var C=O.orientation;O=_.Q5("desktop-shorts-volume-controls");var Q=_.Q5("button"),L=_.bD("input"),k=_.T(_.Iw(!1,void 0,"MvN0Tc")),M=k.next().value,G=k.next().value,X=_.T(_.Iw(!1,void 0,"aSjsEb"));k=X.next().value;X=X.next().value;var y=k,Z=X;X=_.T(_.Iw(!0,void 0,"FUh46d"));k=X.next().value;X=X.next().value;var E=k,P=X;k=_.T(_.Iw(50,void 0,"yPke4d"));var U=k.next().value,W=k.next().value;k=_.aw(function(){var Fr=y();return _.t("web_shorts_keyboard_enable_mute_shortcut")?Fr?_.CZ("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.CZ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Fr?_.CZ("UNMUTE_VOLUME",void 0,"Unmute"):_.CZ("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
X=_.aw(function(){var Fr=y(),mL=E();return{sources:[{clientResource:{imageName:Fr?_.t("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":mL?_.t("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.t("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var z=_.aw(function(){var Fr=U();return y()?Fr+"% volume muted":Fr+"% volume"},void 0,"xZsRmc"),r=_.aw(function(){return C()==="vertical_down"},void 0,"FVqYmb");
_.YK(function(){function Fr(){G(!0)}
function mL(){G(!1)}
L&&L.value&&(L.value.addEventListener("focus",Fr),L.value.addEventListener("focusout",mL),l(L.value).then(function(){x(Number(nFL(L.value)))}));
Q&&Q.value&&(Q.value.addEventListener("focus",Fr),Q.value.addEventListener("focusout",mL));_.YO(function(){var Zn;L==null||(Zn=L.value)==null||Zn.removeEventListener("focus",Fr);var q$;L==null||(q$=L.value)==null||q$.removeEventListener("focusout",mL);var KV;Q==null||(KV=Q.value)==null||KV.removeEventListener("focus",Fr);var VN;Q==null||(VN=Q.value)==null||VN.removeEventListener("focusout",mL)})});
var f=_.lk(function(){if(L&&L.value){var Fr=Number(nFL(L.value));KpL(Fr);W(Fr);L.value.style.setProperty("--gradient-percent",Fr+"%");x(Fr)}return!1}),u=_.lk(function(){L&&L.value&&(e(L.value,y()),Z(!y()));
return!1}),Y={},J={},O8={},Xr={};
return _.D("desktop-shorts-volume-controls",{"on:pointerleave":_.lk(function(){G(!1)}),
"on:pointerenter":_.lk(function(){G(!0)}),
class:_.xz("ytdDesktopShortsVolumeControlsHost",(Y.ytdDesktopShortsVolumeControlsHostVertical=r,Y.ytdDesktopShortsVolumeControlsHostModern=_.t("web_shorts_modern_controls"),Y.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.t("web_shorts_modern_controls")&&M()},Y)),
el:O},_.D(_.F,{cond:function(){return!r()},
then:function(){var Fr={};return _.D("div",{class:_.xz("ytdDesktopShortsVolumeControlsBackgroundScrim",(Fr.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=M,Fr.ytdDesktopShortsVolumeControlsBackgroundScrimModern=_.t("web_shorts_modern_controls"),Fr))})}}),_.D("div",{class:_.xz((J.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=r,J))},_.D("button",{"aria-label":k,
title:k,el:Q,"on:click":u,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},X?_.D(_.n_,{data:X,alt:k,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.D("div",{class:_.xz("ytdDesktopShortsVolumeControlsSliderContainer",(O8.ytdDesktopShortsVolumeControlsSliderContainerExpanded=M,O8.ytdDesktopShortsVolumeControlsSliderContainerVertical=r,O8.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=r,O8.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return M()&&
r()},O8))},_.D("input",{"aria-label":_.CZ("VOLUME"),
title:_.CZ("VOLUME"),el:L,"on:input":f,type:"range",class:_.xz("ytdDesktopShortsVolumeControlsNativeSlider",(Xr.ytdDesktopShortsVolumeControlsNativeSliderModern=_.t("web_shorts_modern_controls"),Xr)),id:"volume-input",role:"slider","aria-valuenow":U,"aria-valuetext":z,"aria-valuemin":0,"aria-valuemax":100})))},"Rg");_.IG4=_.K(function(O){var x=O.data;var e=O.extractOverlay;O={};return _.D("player-disclosure-view-model",{class:_.xz("ytwPlayerDisclosureViewModelHost",(O.ytwPlayerDisclosureViewModelExtractOverlay=function(){return e==null?void 0:e()},O))},_.D(_.Pt,{command:function(){return x().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.D(_.F,{cond:function(){return x().iconName},
then:function(l){return _.D(_.L7,{icon:l})}}),_.D("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return x().text}),_.D(_.F,{cond:function(){return x().showEndChevron},
then:function(){return _.D(_.L7,{icon:"CHEVRON_RIGHT"})}})))},"Sg");var VCL=_.K(function(O){var x=O.data;var e=O.overlayDensity;O={};return _.D("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.D(_.MR,{data:function(){return x().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(l){var C=l.data;
return _.D(_.Nz,{data:function(){return(e==null?void 0:e())===1?Object.assign({},C(),{avatar:{avatarViewModel:Object.assign({},_.q(C().avatar,_.c8),{avatarImageSize:"AVATAR_SIZE_M"})}}):C()}})}}),_.D(_.MR,{data:function(){return x().avatarStackViewModel}},{avatarStackViewModel:function(l){return _.D(_.g6,{data:l.data})}}),_.D(_.TT,{className:_.xz("ytReelChannelBarViewModelChannelName",(O.ytReelChannelBarViewModelChannelNameLarge=function(){return(e==null?void 0:e())===1},O)),
text:function(){return x().channelName},
linkInheritColor:!0,userInput:!0}),_.D("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.D(_.MR,{data:function(){return x().subscribeButtonViewModel}},{subscribeButtonViewModel:function(l){var C=l.data;
return _.D(_.j7,{data:function(){return(e==null?void 0:e())===1?Object.assign({},C(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},C().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):C()},
isOverlay:!1})},
buttonViewModel:_.RV})),_.D("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.D(_.MR,{data:function(){var l,C;return(C=_.q((l=x())==null?void 0:l.sponsorButtonViewModel,dLJ))==null?void 0:C.sponsorButton}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Tg");var pnL=_.K(function(O){var x=function(){var C;return((C=O.overlayDensity)==null?void 0:C.call(O))===1},e=function(){return x()?22:16},l={};
return _.D("yt-reel-multi-format-link-view-model",{class:_.xz("ytReelMultiFormatLinkViewModelHost",(l.ytReelMultiFormatLinkViewModelHostTall=!0,l.ytReelMultiFormatLinkViewModelHostLarge=function(){return x()},l))},_.D(_.Pt,{ariaLabel:function(){return O.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return O.data().command}},_.D("h3",{class:function(){return x()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.D(_.F,{cond:function(){return O.data().icon},
then:function(C){return _.D(_.n_,{data:C,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:e})}}),_.D(_.TT,{text:function(){return O.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ug");
pnL.idomCompat=!0;var Rx$=_.K(function(O){var x=O.data;var e=O.overlayDensity;var l=O.extractOverlay;var C=_.Q5("yt-shorts-suggested-action-view-model");O=_.T(_.Iw(!1,void 0,"S60Hzc"));var Q=O.next().value,L=O.next().value;O=_.T(_.Iw(!1,void 0,"O76chf"));var k=O.next().value,M=O.next().value,G=function(){return x().isMultiLineSa},X=_.L5(IjL,function(){var Y,J;
return(J=(Y=x().toggleableContent)==null?void 0:Y.entityKey)!=null?J:""}),y=function(){var Y,J,O8;
return(O8=x().toggleableContent)!=null&&O8.entityKey?(J=(Y=X())==null?void 0:Y.value)!=null?J:!1:!1},Z=function(){var Y,J,O8,Xr,Fr,mL,Zn,q$,KV,VN,Pd;
return x().toggleableContent?y()?(Y=x().toggleableContent)==null?void 0:Y.toggledData:(J=x().toggleableContent)==null?void 0:J.untoggledData:{primaryText:(q$=(O8=x().defaultContent)==null?void 0:O8.primaryText)!=null?q$:x().text,secondaryText:(Xr=x().defaultContent)==null?void 0:Xr.secondaryText,onTapCommand:(KV=(Fr=x().defaultContent)==null?void 0:Fr.onTapCommand)!=null?KV:x().onTapCommand,icon:(VN=(mL=x().defaultContent)==null?void 0:mL.icon)!=null?VN:x().icon,image:(Pd=(Zn=x().defaultContent)==
null?void 0:Zn.image)!=null?Pd:x().image}},E=function(){return G()?x().trailingTapTarget:void 0},P=function(Y,J){return function(){return Q()?J:Y}},U=function(){return{leadingSection:P("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(e==null?void 0:e())===1?P("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):P("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:P("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:P("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:P("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
O={};O=_.xz((O.ytShortsSuggestedActionViewModelStaticHost=function(){return!G()},O.ytShortsSuggestedActionViewModelDynamicHost=G,O.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return G()&&k()},O.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return G()&&!k()},O.ytShortsSuggestedActionViewModelExtractOverlay=function(){return l==null?void 0:l()},O));
_.YK(function(){if(G()){var Y=0,J;if((J=x().animationParams)==null?0:J.shouldExpand){var O8,Xr;Y=((Xr=(O8=x().animationParams)==null?void 0:O8.expansionDelaySecs)!=null?Xr:0)*1E3}var Fr,mL=((Fr=x().animationParams)==null?0:Fr.shouldExpand)?setTimeout(function(){L(!0)},Y):void 0,Zn,q$;
Y=((Zn=x().animationParams)==null?0:Zn.visibilityDelaySecs)?((q$=x().animationParams)==null?NaN:q$.visibilityDelaySecs)*1E3:0;var KV=setTimeout(function(){M(!0)},Y);
_.YO(function(){mL&&clearTimeout(mL);clearTimeout(KV)})}});
var W=function(Y){_.me(Y,Object.assign({},{form:{element:C.value}}))},z=_.lk(function(){var Y,J=(Y=Z())==null?void 0:Y.onTapCommand;
J&&W(J)}),r=_.lk(function(){var Y,J;
if(Y=(J=E())==null?void 0:J.onTapCommand)return W(Y),!1}),f=_.T7({"vertical-align":"bottom",
"border-radius":function(){var Y;return G()?((Y=x().defaultContent)==null?0:Y.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Y,J,O8;return G()&&((Y=x().defaultContent)==null?0:Y.imageSize)?((O8=(J=x().defaultContent)==null?void 0:J.imageSize)!=null?O8:24)+"px":null},
height:function(){var Y,J,O8;return G()&&((Y=x().defaultContent)==null?0:Y.imageSize)?((O8=(J=x().defaultContent)==null?void 0:J.imageSize)!=null?O8:24)+"px":null}}),u={};
return _.D("yt-shorts-suggested-action-view-model",{class:O,el:C},_.D("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.D("button",{class:_.xz(function(){return G()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Y;
return(Y=x().useFullRoundedBorder)!=null&&Y?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!E()&&G()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":G()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Y;
return(Y=x().disableFixedHeight)!=null&&Y?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(u.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(e==null?void 0:e())===1},u.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return l==null?void 0:l()},u)),
"on:click":z},_.D(_.ct,{model:{color:4}}),_.D("div",{class:_.xz(function(){return G()?U().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.D(_.F,{cond:function(){var Y;
return(Y=Z())==null?void 0:Y.image},
then:function(Y){return _.D(_.n_,{data:Y,alt:"",className:function(){return G()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:f})}}),_.D(_.F,{cond:function(){var Y,J;
return(Y=Z())==null?void 0:(J=Y.icon)==null?void 0:J.iconType},
then:function(Y){return _.D(_.L7,{icon:Y,active:y,className:function(){return G()?Q()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.D("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.D(_.F,{cond:function(){var Y;
return(Y=Z())==null?void 0:Y.primaryText},
then:function(Y){var J={};return _.D("div",{class:_.xz("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(J.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(e==null?void 0:e())===1},J))},_.D(_.TT,{text:Y}))}}),_.D(_.F,{cond:function(){var Y;
return(Y=Z())==null?void 0:Y.secondaryText},
then:function(Y){return _.D("div",{class:function(){return U().secondaryText()}},_.D(_.TT,{text:Y}))}}))),_.D(_.F,{cond:E,
then:function(Y){return _.D("div",{class:_.xz(function(){return U().trailingSection()},function(){var J,O8;
return(l==null?void 0:l())&&((O8=(J=U()).trailingSectionExtractOverlay)==null?void 0:O8.call(J))||""}),
"aria-label":function(){var J;return(J=Y().a11yLabel)!=null?J:""},
"on:click":r,role:"button",tabindex:0},_.D(_.ct,{model:{color:4}}),_.D(_.L7,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Vg");var UBX=_.K(function(O){var x=O.data;var e=O.overlayDensity;var l=_.Q5("yt-shorts-video-title-view-model");O=_.lk(function(L){if(_.E9(_.Zc(L),l.value,["A".toString()]))return!1;(L=x().truncatedTextOnTapCommand)&&_.me(L);return!1});
var C={},Q={};return _.D("yt-shorts-video-title-view-model",{el:l,class:_.xz("ytShortsVideoTitleViewModelHost",(C.ytShortsVideoTitleViewModelHostClickable=function(){return!!x().truncatedTextOnTapCommand},C)),
"on:click":O},_.D("h2",{class:_.xz("ytShortsVideoTitleViewModelShortsVideoTitle",(Q.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(e==null?void 0:e())===1},Q))},_.D(_.TT,{text:function(){return x().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(e==null?void 0:e())===1}})))},"Wg");_.aGQ=_.K(function(O){var x=O.data;var e=O.overlayDensity;var l=O.extractOverlay;var C=function(){return(e==null?void 0:e())===1};
return _.D("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.D(_.MR,{data:function(){return x().metadataItems}},{badgeViewModel:function(Q){Q=Q.data;
return _.D("div",{class:_.xz(function(){return C()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.D(_.tX,{data:Q}))},
playerDisclosureViewModel:function(Q){Q=Q.data;return _.D("div",{class:_.xz(function(){return C()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.D(_.IG4,{data:Q,
extractOverlay:l}))},
shortsSuggestedActionViewModel:function(Q){Q=Q.data;return _.D("div",{class:_.xz(function(){return C()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.D(Rx$,{data:Q,
overlayDensity:e,extractOverlay:l}))},
reelChannelBarViewModel:function(Q){Q=Q.data;var L={};return _.D("div",{class:_.xz("ytReelMetapanelViewModelMetapanelItem",(L.ytReelMetapanelViewModelExpansive=function(){return C()},L))},_.D(VCL,{data:Q,
overlayDensity:e}))},
reelMultiFormatLinkViewModel:function(Q){Q=Q.data;var L={};return _.D("div",{class:_.xz("ytReelMetapanelViewModelMetapanelItem",(L.ytReelMetapanelViewModelExpansive=function(){return C()},L))},_.D(pnL,{data:Q,
overlayDensity:e}))},
shortsVideoTitleViewModel:function(Q){Q=Q.data;var L={};return _.D("div",{class:_.xz("ytReelMetapanelViewModelMetapanelItem",(L.ytReelMetapanelViewModelExpansive=function(){return C()},L))},_.D(UBX,{data:Q,
overlayDensity:e}))},
reelSoundMetadataViewModel:function(Q){Q=Q.data;var L={};return _.D("div",{class:_.xz("ytReelMetapanelViewModelMetapanelItem",(L.ytReelMetapanelViewModelExpansive=function(){return C()},L))},_.D(_.U4L,{data:Q,
overlayDensity:e}))},
toggleButtonViewModel:function(Q){Q=Q.data;var L={};return _.D("div",{class:_.xz("ytReelMetapanelViewModelMetapanelItem",(L.ytReelMetapanelViewModelExpansive=function(){return C()},L))},_.D(_.Jc,{data:Q}))}}))},"Xg");var mBX=_.K(function(O){var x=_.YX(O,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),e=x.size,l=x.onTap,C=x.disabled,Q=x.tooltipText;return _.D("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.D(_.pd,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:e(),disabled:C(),tooltipText:Q(),onTap:l}},
iconName:O.iconType}))},"Yg"),sCw=_.K(function(O){function x(X){X.stopPropagation();
X.code==="ArrowUp"?(X.preventDefault(),BuN(k.value)):X.code==="ArrowDown"?(X.preventDefault(),vFs(k.value)):X.code==="KeyM"?u7V():(X.code==="KeyK"||X.code==="Space")&&YH$(M())}
var e=_.YX(O,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});O=e.previousButtonDisabled;var l=e.nextButtonDisabled,C=e.data,Q=e.playabilityStatus,L=e.previewThumbnail,k=_.Q5("ytd-shorts-miniplayer-overlay"),M=_.Dl(_.hVm),G;_.u8(function(){(G=_.BX(k.value))&&G.addEventListener("keydown",x)});
_.YO(function(){var X;(X=G)==null||X.removeEventListener("keydown",x)});
e=function(){var X,y,Z;return(X=C())==null?void 0:(y=X.reelPlayerOverlayRenderer)==null?void 0:(Z=y.likeButton)==null?void 0:Z.likeButtonRenderer};
return _.D("ytd-shorts-miniplayer-overlay",{el:k,class:"ytdShortsMiniplayerOverlayHost"},_.D("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.T7({"background-image":function(){var X=L();return X?'url("'+_.jf(X.thumbnails)+'")':""}})}),_.D("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.D("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.D(mBX,{iconType:function(){var X=M();
return X===2||X===-1||X===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){YH$(M())},
tooltipText:function(){var X=M();return X===1||X===3?_.CZ("PLAYER_LABEL_PAUSE"):_.CZ("PLAYER_LABEL_PLAY")}}),_.D(_.cNX,{orientation:"horizontal_right"})),_.D("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.D(mBX,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:O,onTap:function(){BuN(k.value)},
tooltipText:_.CZ("PREVIOUS_VIDEO_LABEL")}),_.D(mBX,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:l,onTap:function(){vFs(k.value)},
tooltipText:_.CZ("NEXT_VIDEO_LABEL")}),_.t("web_shorts_pip_like_button")?_.D("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.D(tEL,{buttonTooltipPosition:"left",data:e,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.D("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.D(_.F,{cond:function(){var X,y;return _.q((X=C())==null?void 0:(y=X.reelPlayerOverlayRenderer)==null?void 0:y.metapanel,
_.zVk)},
then:function(X){return _.D("div",{class:_.xz("ytdShortsMiniplayerOverlayInteractive")},_.D(_.aGQ,{data:X}))}})),_.D("div",{class:_.xz("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var X;return!((X=C())==null||!X.adsOverlay)||Q()&&!R3r(Q())}},_.D("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.D(_.Pbp,null)))),_.D(_.F,{cond:function(){var X=C(),y,Z;
X=_.q(X==null?void 0:(y=X.adsOverlay)==null?void 0:(Z=y.fulfillmentContent)==null?void 0:Z.fulfilledLayout,tDL);return _.q(X==null?void 0:X.renderingContent,pYd)},
then:function(X){return _.D("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.D(xlL,{data:X}))}}))},"$g");var fHr=_.K(function(){var O=_.T(_.Iw(new _.pu(NaN,NaN),void 0,"hq9Bjf")),x=O.next().value,e=O.next().value;O=_.T(_.Iw(!1,void 0,"Mu3aZc"));var l=O.next().value,C=O.next().value,Q=_.T(_.Iw(!1,void 0,"LGtoFb"));O=Q.next().value;var L=Q.next().value,k=_.GG().resolve(_.Vs).miniplayerPropSignalMap[0],M=k.data,G=k.shortsData,X=k.nextButtonDisabled,y=k.shortsPreviewThumbnail,Z=k.previousButtonDisabled,E=k.externalPlaylistData;Q=k.toastData;var P=k.playabilityStatus,U=k.isDisabled,W=k.playerVe,z=k.closeVe;
k=_.Dl(_.JA);_.Cw("yt-pip-window-resized",function(Y){e(Y)});
_.Cw("yt-activate-pip-miniplayer",function(){return _.A(function(Y){L(!0);_.Ra(Y)})});
var r=function(){var Y;return!((Y=E())==null||!Y.contents)&&l()},f=function(){var Y=x(),J=!!M(),O8=r();
Y=Y.clone();J&&(Y.height-=76);O8&&(Y.height-=285);return Y},u=function(){C(!l())};
_.uo(function(){var Y=W(),J=_.Pq(11),O8=_.q9(11);J&&O8&&Y&&(_.WU(J,O8,Y),O8=z())&&(_.h3(J,Y,[O8]),_.rT(J,[O8]))},"fHkmfb");
return _.D("ytd-pip-container",{class:"ytdPipContainerHost"},_.D(_.F,{cond:O,then:function(){return _.D(_.KKQ,{isDisabled:U,playabilityStatus:P,size:f})}}),_.D(_.F,{cond:M,
then:function(){return _.D(_.rqT,{data:M,expanded:l,onExpandClick:u,playlistData:E})}}),_.D(_.F,{cond:r,
then:function(){return _.D("div",{class:"ytdPipContainerPlaylistPanel"},_.D(_.ZUL,{data:E,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.D(_.F,{cond:k,
then:function(){return _.D(sCw,{data:G,nextButtonDisabled:X,previousButtonDisabled:Z,playabilityStatus:P,previewThumbnail:y})}}),_.D("div",{class:"ytdPipContainerToast"},_.D(_.dbY,{toastData:Q})))},"bh");var kA=function(O,x){var e=this;this.pipController=O;this.JSC$18948_clientRoot=x;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=CjW();this.watchPipEnabled=_.t("web_watch_pip");this.shortsPipEnabled=_.t("web_shorts_pip");this.JSC$18948_watchWhileEnabled=_.t("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;_.mw(_.u9(),ULW,function(l){e.isSingleOptionSurveyActive=l});
this.JSC$18948_onPlayerPlayVideo=this.JSC$18948_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);_.e2(_.iU.getInstance(),this.miniplayerServiceActionMap,this.JSC$18948_clientRoot);O.pictureInPictureSupported()&&_.uU("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},PB3,YYL,KQL,BD$,vCY,dHR;
kA.prototype.handleMediaSessionPipActivation=function(){var O=this,x;return _.A(function(e){_.U7().mediaSessionPipActivation=!0;x=_.GG().resolve(_.Be);return x.isOnWatch()&&O.watchPipEnabled?(_.U7().watchPipActivation=!0,_.WQQ(O,x.data),e.jumpTo(0)):x.isOnShorts()&&O.shortsPipEnabled?(_.U7().shortsPipActivation=!0,_.hx4(O),e.jumpTo(0)):O.isMiniplayerActive()&&O.watchPipEnabled&&!O.watchWhileMode?e.yield(zxY(O),0):e.jumpTo(0)})};
var zxY=function(O){var x,e,l,C;return _.A(function(Q){if(Q.nextAddress==1)return x=!O.miniplayerToPipMode,e=O.playerElement,l=O.miniplayerData,C=O.watchResponse,Q.yield(O.deactivate(),2);if(Q.nextAddress!=3)return x?(_.U7().mediaSessionPipActivation=!0,_.U7().watchPipActivation=!0):_.U7().miniplayerButtonActivation=!0,Q.yield(O.activate(e,l,C),3);O.miniplayerToPipMode=x;_.Ra(Q)})};
kA.prototype.onDownloadedVideoDeleted=function(O){var x,e=_.q((x=this.miniplayerData)==null?void 0:x.watchEndpoint,_.Hq),l,C;e&&((l=this.watchResponse)==null?void 0:(C=l.playerResponse)==null?void 0:C.offlineState)!==void 0&&(x=e.videoId)&&O&&x===O&&this.close()};
kA.prototype.onShowMiniplayerCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){switch(E.nextAddress){case 1:return e=_.q(O,q7p),C=(l=e)==null?void 0:l.miniplayerCommand,Q=_.q(C,_.Hq),C&&Q&&!x.active?E.yield(_.Ko.getInstance(),2):E.return();case 2:return L=E.yieldResult,E.yield((k=L)==null?void 0:k.get("yt-miniplayer-shown-video-id"),3);case 3:M=E.yieldResult;G=Q.videoId;if(!G||M===G)return E.return();X=_.GG().resolve(_.Be);if(X.isOnWatch())return _.ft(Error("Qj")),E.return();
y={channelItem:{externalId:btoa(G)}};x.readyToResumeVe=_.O9(121253,void 0,void 0,y);_.U7().showMiniplayerCommandActivation=!0;return E.yield(_.n1d(x,C,!0),4);case 4:return x.active&&(_.AV(x,{readyToResumeVe:x.readyToResumeVe,isReadyToResume:!0}),x.isReadyToResume=!0),E.yield((Z=L)==null?void 0:Z.set("yt-miniplayer-shown-video-id",Q.videoId),5);case 5:x.readyToResumeVe=void 0,_.Ra(E)}})};
kA.prototype.init=function(O){this.miniplayerEl?_.ft(new _.ry("MiniplayerService already initialized.")):this.miniplayerEl=O};
kA.prototype.isInitialized=function(){var O=!!this.miniplayerEl;O||_.ft(new _.ry("MiniplayerService used before initialized."));return O};
_.WQQ=function(O,x){if(O.isInitialized()){var e=_.tt(x.response,!1,x.playerResponse),l=_.GG().resolve(_.Be).getPlayerFromWatch();_.U7().currentEndpoint=e.watchEndpoint||null;O.activate(l,e,x)}};
_.hx4=function(O){if(O.isInitialized()){var x=_.GG().resolve(_.Be).getPlayerFromShorts();O.activate(x)}};
PB3=function(O,x){var e;(e=!O.isInitialized())||(e=_.GG().resolve(_.Be).isOnWatch()&&O.watchPipMode,e=!(O.isMiniplayerActive()&&(_.U7().userActivation||_.U7().lockupActivation||e)));if(e)return!1;rNL(O,x)?_.bs(O):dHR(O,x);return O.watchPipMode?!_.GG().resolve(_.Be).isOnWatch():!0};
kA.prototype.isMiniplayerActive=function(){return this.active};
var rNL=function(O,x){var e;x=(e=_.q(x,_.Hq))==null?void 0:e.videoId;var l,C;O=(C=_.q((l=O.miniplayerData)==null?void 0:l.watchEndpoint,_.Hq))==null?void 0:C.videoId;return x!=null&&x===O};
kA.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.wr(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Sh(this.miniplayerEl,"yt-navigate-home-action"))};
_.n1d=function(O,x,e,l){e=e===void 0?!1:e;var C,Q,L;return _.A(function(k){switch(k.nextAddress){case 1:if(O.active){k.jumpTo(2);break}C=_.GG().resolve(_.Be);if(L=(Q=O.playerElement)!=null?Q:C.getPlayerFromWatch()){k.jumpTo(3);break}return k.yield(_.GG().resolve(_.N5),4);case 4:L=C.getPlayerFromWatch();case 3:if(!L){_.ft(Error("Sj"));k.jumpTo(2);break}return k.yield(O.activate(L,l),2);case 2:return O.active?k.yield(dHR(O,x,e),0):k.return()}})};
kA.prototype.activate=function(O,x,e){var l=this,C,Q,L,k,M,G,X,y,Z;return _.A(function(E){switch(E.nextAddress){case 1:if(!l.isInitialized())return E.return();if(!O)return _.ft(Error("Sj")),E.return();if(_.Yu4()||l.isMiniplayerActive())var P=!0;else P=_.U7().watchPipActivation||_.U7().watchWhileActivation,_.GG().resolve(_.Be).isOnWatch()&&!P?(_.ft(new _.ry("miniplayer activated on watch page")),P=!0):P=_.U7().watchWhileActivation?l.userDeactivatedWatchWhile||!!document.pictureInPictureElement||LlW():
!1;if(P)return uA2(),E.return();C=_.U7().mediaSessionPipActivation;Q=_.U7().shortsPipActivation;L=_.U7().watchPipActivation;M=(k=_.U7().watchWhileActivation)||L;G=L||Q;if(!l.pictureInPictureEnabled()||!G){E.jumpTo(2);break}return E.yield(H$w(l,C),3);case 3:if(!E.yieldResult)return _.ft(Error("Rj")),uA2(),E.return();case 2:return l.setActive(!0),l.watchResponse=e,l.playerElement=O,l.updateMiniplayerData(x),E.yield(KQL(l,O),4);case 4:if(!l.active)return _.ft(new _.ry("miniplayer deactivated during activation")),
l.removePlayerListeners(),E.return();P=_.GG().resolve(_.gx);P.addEventListener("yt-navigate",_.Qa(l,l.onPlaylistNavigate));P.addEventListener("yt-playlist-data-updated",_.Qa(l,l.JSC$18948_onPlaylistDataUpdated));l.JSC$18948_onPlaylistDataUpdated();uA2();l.JSC$18948_watchWhileEnabled&&_.dBw(l,k);l.pictureInPictureEnabled()&&l.shortsPipEnabled&&(l.shortsPipMode=Q,_.u9().dispatch(Rg$(l.shortsPipMode)));l.pictureInPictureEnabled()&&l.watchPipEnabled&&(l.watchPipMode=L,_.A9L(l.handleMediaSessionPipActivation));
l.player&&(X=l.player.getPlayerState(),y=X===1,_.u9().dispatch(HCd(X)),_.jh(l.miniplayerEl,"yt-miniplayer-play-state-changed",[y]),_.U7().isVideoPlaying=y);_.jh(l.miniplayerEl,"yt-miniplayer-endpoint-changed");nC4(l);_.u2T(l);if(l.shortsPipMode||l.watchPipMode)E=E.yield(_.Sh(l.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{P=E.yield;var U=_.Sh(l.miniplayerEl,"yt-activate-miniplayer",[M])[0];E=P.call(E,U,6)}return E;case 6:if(l.watchResponse){P=l.getScreenLayer();U=_.Pq(0);var W=A5r(0);U&&W&&
(_.Ig(U,W,P),P===0&&L_$(void 0,0))}YYL(l);BD$(l,!0);(Z=l.getPlayerElement())==null||Z.focusOnPlayer();_.Ra(E)}})};
kA.prototype.updateMiniplayerData=function(O){this.miniplayerData=O;_.AV(this,{data:O})};
_.u2T=function(O){var x,e,l=((x=O.miniplayerData)==null?void 0:(e=x.miniplayerRenderer)==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";x=O.watchWhileMode||O.watchPipMode?l&&!_.GG().resolve(_.Be).isOnWatch():l;_.AV(O,{isDisabled:x});var C,Q;e=_.q((C=O.miniplayerData)==null?void 0:(Q=C.miniplayerRenderer)==null?void 0:Q.minimizedEndpoint,_.aq);x&&e&&_.GG().resolve(_.fj).openSheet({openPopupActionCommand:{openPopupAction:e}},O.miniplayerEl)};
YYL=function(O){if(O.watchResponse&&!vCY(O)){var x,e=(x=O.watchResponse.playerResponse)==null?void 0:x.trackingParams;e&&(_.AV(O,{expandVe:_.O9(35989),closeVe:_.O9(34699),readyToResumeCloseVe:_.O9(131070),repositionVe:_.O9(226204),resizeVe:_.O9(226205)}),_.AV(O,{playerVe:_.Fv(e)}))}};
KQL=function(O,x){return _.A(function(e){if(e.nextAddress==1)return x.preparePlayer(),e.yield(x.getPlayerPromise(),2);O.player=e.yieldResult;O.player&&(O.player.addEventListener("onPlayVideo",O.JSC$18948_onPlayerPlayVideo),O.player.addEventListener("onCloseMiniplayer",O.onPlayerCloseMiniplayer),O.player.addEventListener("onExpandMiniplayer",O.onPlayerExpandMiniplayer),O.player.addEventListener("onStateChange",O.onPlayerStateChange));_.Ra(e)})};
_.b=kA.prototype;_.b.JSC$18948_onPlayerPlayVideo=function(O){var x=O.sessionData&&"autonav"in O.sessionData,e;O.sessionData&&O.sessionData.itct&&(e=O.sessionData.itct);var l=O.watchEndpoint;x=l&&x?_.vAN(l,e):_.fZ(O.videoId,O.listId||void 0,e);O.sessionData&&_.uh(_.q(x.commandMetadata,_.e6).url,O.sessionData);dHR(this,x)};
_.b.onPlayerExpandMiniplayer=function(){_.bs(this)};
_.b.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.b.onPlayerStateChange=function(){if(this.player){var O=this.player.getPlayerState(),x=O===1;_.u9().dispatch(HCd(O));_.u9().dispatch(_.nBz(O));_.jh(this.miniplayerEl,"yt-miniplayer-play-state-changed",[x]);_.U7().isVideoPlaying=x;if(O===0){x=!_.Ax.getInstance().isAutoplaySetExplicitly();var e,l,C,Q,L,k,M=(e=this.watchResponse.response)==null?void 0:(l=e.contents)==null?void 0:(C=l.twoColumnWatchNextResults)==null?void 0:(Q=C.autoplay)==null?void 0:(L=Q.autoplay)==null?void 0:(k=L.autoplayExplicitChoiceDialogRenderer)==
null?void 0:k.confirmDialogRenderer;x&&M&&this.player.setAutonavState(1)}O===0&&this.watchWhileMode&&this.deactivate()}};
_.b.onPlaylistNavigate=function(O,x){var e=this,l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1){if(!_.q(x.endpoint,_.Hq))return X.return();_.U7().currentEndpoint=x.endpoint;_.jh(e.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.GG().resolve(_.Be).isOnWatch()&&(e.watchWhileMode||e.watchPipMode))return X.return();O.stopPropagation();(Q=(C=_.q((l=x.endpoint)==null?void 0:l.commandMetadata,_.e6))==null?void 0:C.url)&&x.tempData&&!_.HX.isEmpty(x.tempData)&&_.uh(Q,x.tempData);L={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};k=new nHF(function(){return e.getPlayerElement()},L,{layer:e.getScreenLayer()});
M=function(y){k.processChunk({endpoint:x.endpoint,data:y})};
fGY(e);e.miniplayerFetchRequest=JNL(e,x.endpoint,M);_.tS(X,2);return X.yield(e.miniplayerFetchRequest,4)}if(X.nextAddress!=2)return G=X.yieldResult,wnL(e,G),_.lb(X,0);_.VP(X);_.Ra(X)})};
_.b.JSC$18948_onPlaylistDataUpdated=function(){var O=_.GG().resolve(_.gx).getPlaylistData();this.hasPlaylistData=!!O;_.AV(this,{externalPlaylistData:O||{}})};
_.b.close=function(O){if(this.isInitialized())if(O){if(!((this.watchWhileMode||this.watchPipMode)&&_.GG().resolve(_.Be).isOnWatch()||this.shortsPipMode)){var x;(x=this.getPlayerElement())==null||x.stop()}this.deactivate()}else _.lX().closeMiniplayer(this.miniplayerEl)};
_.b.deactivate=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1){if(!x.isInitialized()||!x.active)return L.return();x.setActive(!1);fGY(x);(e=!!O&&rNL(x,O))&&x.isSingleOptionSurveyActive&&_.Sh(x.miniplayerEl,"yt-show-watch-page-survey",[x.isSingleOptionSurveyActive]);return L.yield(SY4(x),2)}if(L.nextAddress!=3){BD$(x,!1);x.isReadyToResume=!1;x.watchResponse=void 0;x.updateMiniplayerData(void 0);x.shortsPipMode&&(x.shortsPipMode=!1,_.u9().dispatch(Rg$(x.shortsPipMode)),beL(x.pipController),
(l=x.player)==null||l.setInternalSize(NaN,NaN));x.watchPipMode&&(x.watchPipMode=!1,beL(x.pipController));(C=x.watchWhileMode)&&_.dBw(x,!1);x.removePlayerListeners();var k=_.GG().resolve(_.gx);k.removeEventListener("yt-navigate",_.Qa(x,x.onPlaylistNavigate));k.removeEventListener("yt-playlist-data-updated",_.Qa(x,x.JSC$18948_onPlaylistDataUpdated));_.U7().currentEndpoint=null;_.jh(x.miniplayerEl,"yt-miniplayer-endpoint-changed");x.playerElement=null;uA2();if(x.shortsPipMode||x.watchPipMode)L=L.jumpTo(3);
else{k=L.yield;var M=_.Sh(x.miniplayerEl,"yt-deactivate-miniplayer",[e,C])[0];L=k.call(L,M,3)}return L}(Q=x.player)==null||Q.setInternalSize(NaN,NaN);x.player=null;_.Ra(L)})};
var SY4=function(O){var x;return _.A(function(e){x=_.GG().resolve(_.Be);return O.shortsPipMode?e.yield(x.movePlayerToShorts(O.playerElement),0):e.yield(x.movePlayerToWatch(O.playerElement),0)})};
kA.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18948_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
kA.prototype.setActive=function(O){this.active=O;this.isSingleOptionSurveyActive?_.Sh(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Sh(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.u9().dispatch(_.j6({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.dBw=function(O,x){O.watchWhileMode=x;_.AV(O,{watchWhile:x})};
BD$=function(O,x){if(!vCY(O))if(O.shortsPipMode||O.watchPipMode){var e;(e=O.player)==null||e.setDocumentPictureInPicture(x)}else{var l;(l=O.player)==null||l.setMinimized(x)}};
vCY=function(O){return O.watchWhileMode&&_.t("kevlar_watch_while_counterfactual")};
_.bs=function(O){var x;return _.A(function(e){switch(e.nextAddress){case 1:if(!O.isInitialized())return e.return();_.tS(e,2);return e.yield(O.miniplayerFetchRequest,4);case 4:_.lb(e,3);break;case 2:_.VP(e);case 3:O.watchResponse&&O.miniplayerData&&O.miniplayerData.watchEndpoint?(x={url:O.watchResponse.url,endpoint:O.miniplayerData.watchEndpoint,data:O.watchResponse,miniplayer:!0},_.wr(O.miniplayerEl,"yt-navigate-cache",x)):O.miniplayerData&&O.miniplayerData.watchEndpoint&&_.wr(O.miniplayerEl,"yt-navigate",
{endpoint:O.miniplayerData.watchEndpoint}),_.Ra(e)}})};
dHR=function(O,x,e){var l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){if(rNL(O,x))return k.return();_.U7().currentEndpoint=x;_.jh(O.miniplayerEl,"yt-miniplayer-endpoint-changed");_.jh(O.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.U7().isVideoPlaying=!1;l={clientParams:{miniplayer:!0,autoSaveToQueue:!e}};C=new nHF(function(){return O.getPlayerElement()},l,{layer:O.getScreenLayer(),
parentLayer:0},void 0,O.readyToResumeVe);Q=function(M){var G,X,y=Object.assign({},(G=M.playerResponse)==null?void 0:(X=G.playerConfig)==null?void 0:X.playbackStartConfig,{startPaused:!0}),Z;e&&((Z=M.playerResponse)==null?0:Z.playerConfig)&&(M.playerResponse.playerConfig.playbackStartConfig=y);C.processChunk({endpoint:x,data:M})};
fGY(O);O.miniplayerFetchRequest=JNL(O,x,Q);_.tS(k,2);return k.yield(O.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return L=k.yieldResult,wnL(O,L),_.lb(k,0);_.VP(k);_.Ra(k)})};
kA.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var fGY=function(O){O.miniplayerFetchRequest&&(O.miniplayerFetchRequest.cancel&&O.miniplayerFetchRequest.cancel("Active request obsolete"),O.miniplayerFetchRequest=null)},JNL=function(O,x,e){var l=_.zK.instance,C,Q=(C=_.q(x.commandMetadata,_.e6))==null?void 0:C.url,L;
C=!Q||_.t("disable_miniplayer_tempdata")?{}:(L=N2L(Q))!=null?L:{};return Ue(l,x,C,window.location.href,"watch",function(k,M){e(M)},function(k){return k!==O.miniplayerFetchRequest})},wnL=function(O,x){var e;
_.A(function(l){if(!x)return l.return();O.watchResponse=x;YYL(O);nC4(O);e=_.tt(x.response,!1,x.playerResponse);if(O.isMiniplayerActive()){x.response&&(O.playerElement.watchNextData=x.response);var C=_.HX.getValueByKeys.apply(_.HX,[x].concat(_.Kx(N9z)));_.HX.getValueByKeys.apply(_.HX,[x].concat(_.Kx(xmd)))&&C&&_.GG().resolve(_.gx).setAutoplayRenderer(C);if(C)if(_.t("kevlar_is_pupi_enabled")){var Q,L,k,M,G,X=((Q=x.response)==null?0:(L=Q.playerOverlays)==null?0:(k=L.playerOverlayRenderer)==null?0:(M=
k.autonavToggle)==null?0:(G=M.autoplaySwitchButtonRenderer)==null?0:G.enabled)?2:1;_.Ax.getInstance().setState(X,!1,!1)}else Q=kUL()?2:1,(X=O.player)==null||X.setAutonavState(Q);O.updateMiniplayerData(e);_.u2T(O)}_.Ra(l)})},nC4=function(O){var x,e,l=(x=O.watchResponse)==null?void 0:(e=x.playerResponse)==null?void 0:e.playabilityStatus,C;
x=l==null?void 0:(C=l.miniplayer)==null?void 0:C.miniplayerRenderer;(x==null?void 0:x.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&x.minimizedEndpoint&&_.N9(O.miniplayerEl,[x.minimizedEndpoint]);_.AV(O,{playabilityStatus:l})};
kA.prototype.openToast=function(O,x){_.AV(this,{toastData:{data:O,label:x}})};
_.AV=function(O,x){(0,O.miniplayerPropSignalMap[1])(x)};
kA.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var O;return this.playerElement?this.playerElement:(O=_.$U(this.miniplayerEl).querySelector("#player-container"))==null?void 0:O.firstElementChild};
kA.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var H$w=function(O,x){x=x===void 0?!1:x;var e,l,C,Q,L,k,M;return _.A(function(G){if(G.nextAddress==1){e=navigator.userActivation.isActive||x;if(!e||!O.pictureInPictureSupported())return G.return(!1);l=jCw(O);C=l.width;Q=l.height;return G.yield(O.pipController.openWindow({width:C,height:Q}),2)}L=G.yieldResult;k=O.pipController.getWindow();if(!k||!L)return G.return(!1);k.document.body.style.overflow="hidden";M=Jpw(k);Twh(O.pipController,function(){NDY(O);M()});
return G.return(!0)})},jCw=function(O){var x=_.U7().shortsPipActivation,e,l;
O=x?.5625:(l=(e=O.player)==null?void 0:e.getVideoAspectRatio())!=null?l:16/9;e=Math.min(window.innerWidth,window.innerHeight)/2;x=x?0:76;return O>1?new _.pu(e,x+e/O):new _.pu(e*O,x+e)},NDY=function(O){var x;
_.A(function(e){x=_.GG().resolve(_.Be);return x.isOnWatch()&&O.watchPipMode||x.isOnShorts()&&O.shortsPipMode?e.yield(O.deactivate(),0):O.miniplayerToPipMode?e.yield(zxY(O),0):O.watchPipMode?e.yield(_.bs(O),0):e.jumpTo(0)})};
kA.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Dy.Object.defineProperties(kA.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
kA[Fc]=[LFh,ykN];var gCe="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(" "),
$Be="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(" "),i$Y="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Oth="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");_.xuh=_.K(function(O){return _.D("yt-channel-attribution-view-model",{class:_.xz("ytChannelAttributionViewModelHost",O.className)},_.D("div",{class:"ytChannelAttributionViewModelUpper"},_.D(_.MR,{data:function(){return O.data().avatar}},{decoratedAvatarViewModel:_.Nz}),_.D("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.D(_.TT,{text:function(){return O.data().title}}))),_.D("div",{class:"ytChannelAttributionViewModelBottom"},_.D(_.TT,{text:function(){return O.data().subtitle}})))},"dh");var ewQ=_.K(function(O){var x=_.T(_.Iw(!1,void 0,"MFRKRb")),e=x.next().value,l=x.next().value,C=function(){return O.data().activeRenderer},Q=function(){return O.data().inactiveRenderer};
return _.D("yt-channel-disclosure-view-model",{"on:mouseleave":_.lk(function(){l(!1)}),
"on:mouseover":_.lk(function(){l(!0)}),
class:_.xz("ytChannelDisclosureViewModelHost",O.className)},_.D(_.F,{cond:function(){return e()},
then:function(){return _.D(_.MR,{data:C},{channelAttributionViewModel:_.xuh})},
else:function(){return _.D(_.MR,{data:Q},{decoratedAvatarViewModel:_.Nz})}}))},"eh");var lPu=null;var CUL={},QfQ=(CUL.initialized={priority:10,callback:function(O){var x=_.GG();x.addProvider({provide:LQd,useClass:knL});x.addProvider({provide:_.Lxh,useFactory:function(){return new kCF}});
x.addProvider({provide:gW,useValue:_.wz("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});x.addProvider({provide:eQ$,useValue:5184E6});x.addProvider({provide:VNT,useValue:_.Xu()});x.addProvider({provide:hWX,useClass:ttT});x.addProvider({provide:bE,useClass:bE});x.addProvider({provide:_.N5,useFactory:function(){return UVz.promise}});
x.addProvider({provide:_.mV3,useFactory:function(){return _.ahd.promise}});
x.addProvider({provide:rz8,useValue:function(){var M;return((M=_.f7())==null?void 0:M.getPlayer())||null}});
var e={};x.addProvider((e.provide=_.Ri,e.useFactory=function(M,G){return function(){return j_w(M,G)}},e[Fc]=[gW,
eQ$],e));e={};x.addProvider((e.provide=_.pj,e.useClass=gGL,e[Fc]=[gW,eQ$],e));e={};x.addProvider((e.provide=_.Lkm,e.useClass=xqe,e[Fc]=[_.pj],e));x.addProvider({provide:YN,useFactory:_.u9});x.addProvider({provide:fM,useFactory:_.u9});x.addProvider({provide:BoQ,useFactory:_.u9});x.addProvider({provide:LUN,useFactory:_.u9});x.addProvider({provide:_.gH,useFactory:_.u9});x.addProvider({provide:Rd,useValue:_.CA});x.addProvider({provide:ene,useClass:SQs});x.addProvider({provide:PxY,useClass:qr4});x.addProvider({provide:Gf,
useClass:Gf});x.addProvider({provide:U2,useClass:U2});x.addProvider({provide:ad,useClass:ad});x.addProvider({provide:s2,useClass:s2});x.addProvider({provide:tg,useClass:tg});x.addProvider({provide:jt,useClass:jt});x.addProvider({provide:Yr,useClass:Yr});x.addProvider({provide:_.nGY,useValue:I0p});x.addProvider({provide:_.vt,useFactory:_.k0});x.addProvider({provide:Wl,useFactory:_.TD});e={};x.addProvider((e.provide=f4W,e.useFactory=function(M){return function(G){var X=X===void 0?{}:X;var y,Z,E=(Z=
_.q((y=G.endpoint)==null?void 0:y.commandMetadata,_.e6))==null?void 0:Z.rootVe;if(E){var P,U;if(y=G.previousCsn||((U=_.q((P=G.endpoint)==null?void 0:P.commandMetadata,On2))==null?void 0:U.parentCsn)){var W=W===void 0?{}:W;if(y!==_.Pq(W.layer)||E!==A5r(W.layer))Xgr(y,W.cttAuthInfo,W.layer||0),L_$(y,W.layer||0),P=W.layer||0,_.JZ(kk8(P===void 0?0:P),E);X.parentCsn=y}G.endpoint&&y?PpD(M,G.endpoint,X):_.tx(M,E,void 0,X);var z;((z=G.response)==null?0:z.trackingParams)&&M.graftServerVe(G.response.trackingParams);
var r;((r=G.playerResponse)==null?0:r.trackingParams)&&M.graftServerVe(G.playerResponse.trackingParams);var f;((f=G.reelWatchSequenceResponse)==null?0:f.trackingParams)&&M.graftServerVe(G.reelWatchSequenceResponse.trackingParams)}}},e[Fc]=[_.vt],e));
e={};x.addProvider((e.provide=fdX,e.useClass=v8T,e[Fc]=[Rd,_.gH],e));e={};x.addProvider((e.provide=dQ,e.useClass=dQ,e[Fc]=[_.N5,_.gH],e));e={};x.addProvider((e.provide=zf,e.useClass=zf,e[Fc]=[fM,_.Xc],e));x.addProvider({provide:_.ifu,useClass:A6$});e={};x.addProvider((e.provide=_.Bm,e.useClass=ec$,e[Fc]=[_.ifu,_.D0(_.w8)],e));x.addProvider({provide:_.kr,useClass:PtY});e={};x.addProvider((e.provide=Ao,e.useClass=Ao,e[Fc]=[_.kr,_.N5,_.IF],e));x.addProvider({provide:_.fj,useClass:Yf});x.addProvider({provide:_.yj$,
useClass:vOL});x.addProvider({provide:_.JT,useClass:nT});_.t("enable_ai_companion")&&(x.addProvider({provide:_.w8,useClass:Qwh}),x.addProvider({provide:_.X2N,useClass:hB3}),x.addProvider({provide:_.$qp,useClass:g8p}),x.addProvider({provide:H3,useClass:H3}),x.addProvider({provide:oM4,useValue:ewQ}));e={};x.addProvider((e.provide=_.UW,e.useClass=kcw,e[Fc]=[_.UW],e));x.addProvider({provide:_.Ik,useClass:XOX});x.addProvider({provide:wW,useClass:wW});x.addProvider({provide:oc,useClass:oc});x.addProvider({provide:i3,
useClass:i3});e={};x.addProvider((e.provide=W3,e.useClass=W3,e[Fc]=[_.Xc,_.IF],e));x.addProvider({provide:ke,useClass:uT});e={};x.addProvider((e.provide=DJ,e.useClass=DJ,e[Fc]=[_.fj,ke],e));e={};x.addProvider((e.provide=bJ,e.useClass=bJ,e[Fc]=[_.fj],e));_.t("web_enable_feedback_endpoint_resolver")&&(e={},x.addProvider((e.provide=B3,e.useClass=B3,e[Fc]=[YN,u3],e)),x.addProvider({provide:u3,useClass:jaQ}));_.t("web_enable_feedback_endpoint_resolver_batch_2")&&(e={},x.addProvider((e.provide=fW,e.useClass=
fW,e[Fc]=[YN],e)),e={},x.addProvider((e.provide=v3,e.useClass=v3,e[Fc]=[u3],e)));e={};x.addProvider((e.provide=A4,e.useClass=A4,e[Fc]=[_.JT,ke],e));e={};x.addProvider((e.provide=C9,e.useClass=C9,e[Fc]=[_.JT],e));e={};x.addProvider((e.provide=Mv,e.useClass=Mv,e[Fc]=[_.IF,_.Bm],e));e={};x.addProvider((e.provide=L9,e.useClass=L9,e[Fc]=[_.IF,_.vt],e));x.addProvider({provide:d0,useClass:d0});e={};x.addProvider((e.provide=sW,e.useClass=sW,e[Fc]=[YN],e));x.addProvider({provide:iJ,useClass:iJ});x.addProvider({provide:$e,
useClass:$e});e={};x.addProvider((e.provide=xr,e.useClass=xr,e[Fc]=[YN],e));e={};x.addProvider((e.provide=et,e.useClass=et,e[Fc]=[_.IF,YN],e));e={};x.addProvider((e.provide=l2,e.useClass=l2,e[Fc]=[YN],e));e={};x.addProvider((e.provide=C4,e.useClass=C4,e[Fc]=[YN],e));e={};x.addProvider((e.provide=Qj,e.useClass=Qj,e[Fc]=[_.Bm],e));e={};x.addProvider((e.provide=vl,e.useClass=vl,e[Fc]=[_.vt],e));e={};x.addProvider((e.provide=Nv,e.useClass=Nv,e[Fc]=[Hl],e));e={};x.addProvider((e.provide=g0,e.useClass=
g0,e[Fc]=[Hl],e));x.addProvider({provide:w0,useClass:w0});x.addProvider({provide:SA,useClass:SA});x.addProvider({provide:Bl,useClass:Bl});e={};x.addProvider((e.provide=GI,e.useClass=GI,e[Fc]=[_.Bm,_.Xc],e));x.addProvider({provide:N2,useClass:N2});e={};x.addProvider((e.provide=TI,e.useClass=TI,e[Fc]=[_.IF,_.Bm],e));x.addProvider({provide:OW,useClass:OW});e={};x.addProvider((e.provide=ac,e.useClass=ac,e[Fc]=[YN,_.IF,_.UW],e));e={};x.addProvider((e.provide=p9,e.useClass=p9,e[Fc]=[_.IF,_.Xc],e));x.addProvider({provide:AKN,
useValue:T5N});x.addProvider({provide:yKz,useValue:eDr});x.addProvider({provide:Rc,useClass:Rc});e={};x.addProvider((e.provide=Vj,e.useClass=Vj,e[Fc]=[YN],e));e={};x.addProvider((e.provide=mf,e.useClass=mf,e[Fc]=[_.Ik,_.Xc],e));e={};x.addProvider((e.provide=J$,e.useClass=J$,e[Fc]=[_.Xc],e));x.addProvider({provide:nW,useFactory:function(){return new nW(_.u9())}});
x.addProvider({provide:D1V,useFactory:_.y9.getInstance});e={};x.addProvider((e.provide=$N,e.useClass=$N,e[Fc]=[gW,D1V,_.Xc],e));x.addProvider({provide:ST,useClass:ST});x.addProvider({provide:h$,useClass:h$});x.addProvider({provide:rW,useClass:rW});x.addProvider({provide:_.zE,useClass:_.zE});x.addProvider({provide:Ts,useClass:Ts});e={};x.addProvider((e.provide=qv,e.useClass=qv,e[Fc]=[fM],e));e={};x.addProvider((e.provide=XE,e.useClass=XE,e[Fc]=[_.Xc],e));e={};x.addProvider((e.provide=Pl,e.useClass=
Pl,e[Fc]=[_.Xc],e));e={};x.addProvider((e.provide=cl,e.useClass=cl,e[Fc]=[_.Xc],e));_.t("web_enable_prefetching_videos_on_home")&&(x.addProvider({provide:hg,useClass:hg}),x.addProvider({provide:Oi,useClass:Oi}));e={};x.addProvider((e.provide=b2,e.useClass=b2,e[Fc]=[_.Xc],e));x.addProvider({provide:KW,useClass:KW});e={};x.addProvider((e.provide=n9,e.useClass=n9,e[Fc]=[_.IF,_.Xc],e));e={};x.addProvider((e.provide=dW,e.useClass=dW,e[Fc]=[_.Xc],e));e={};x.addProvider((e.provide=xA,e.useClass=xA,e[Fc]=
[_.IF,_.Xc],e));x.addProvider({provide:iT,useClass:iT});x.addProvider({provide:ZJ,useClass:ZJ});e={};x.addProvider((e.provide=yj,e.useClass=yj,e[Fc]=[fM,_.Xc],e));x.addProvider({provide:EW,useClass:EW});e={};x.addProvider((e.provide=D6,e.useClass=D6,e[Fc]=[fM,_.Xc,_.IF],e));e={};x.addProvider((e.provide=Gs,e.useClass=Gs,e[Fc]=[_.Xc],e));e={};x.addProvider((e.provide=Md,e.useClass=Md,e[Fc]=[_.Xc,_.IF],e));e={};x.addProvider((e.provide=Ic,e.useClass=Ic,e[Fc]=[_.N5],e));e={};x.addProvider((e.provide=
t4,e.useClass=t4,e[Fc]=[_.N5],e));x.addProvider({provide:r0,useClass:r0});x.addProvider({provide:K9,useClass:K9});x.addProvider({provide:OE,useClass:OE});x.addProvider({provide:uJ,useClass:uJ});x.addProvider({provide:zI,useClass:zI});x.addProvider({provide:xe,useClass:xe});x.addProvider({provide:h4,useClass:h4});_.t("kevlar_enable_mss_lazy_load")&&x.addProvider({provide:_.RL,useClass:vKX});x.addProvider({provide:_.Wr,useClass:vB});x.addProvider({provide:kj,useFactory:function(){return _.iU.getInstance()}});
x.addProvider({provide:uFL,useFactory:T$r});x.addProvider({provide:Hl,useFactory:function(){return _.Ko.getInstance()}});
x.addProvider({provide:EBz,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});e={};x.addProvider((e.provide=_.rQ,e.useClass=_.rQ,e[Fc]=[_.N5,_.Xc,_.vt,uFL,Hl,kj,EBz,Rd],e));x.addProvider({provide:_.sg,useClass:eSR});x.addProvider({provide:_.Ct$,useClass:luQ});e={};x.addProvider((e.provide=eA,e.useClass=eA,e[Fc]=[_.Ct$],e));e={};x.addProvider((e.provide=_.HB,e.useFactory=function(M){return M.upliftCompletionResolver.promise},e[Fc]=[fdX],e));
e=_.SS("IS_SHELL_LOAD")?"aa":"eocs";var l=_.SS("IS_SHELL_LOAD")?3:2;_.O2().parkOrScheduleJob(function(){wvw()},l,e);
_.O2().parkOrScheduleJob(function(){_.GG().resolve(dQ).start()},2,"eocs");
_.O2().parkOrScheduleJob(function(){Ymu()},2,"eocs");
_.O2().parkOrScheduleJob(function(){_.GG().resolve(zf).start()},2,"eocs");
_.t("kevlar_debug_data_app_registration_ks")||DNn();x.addProvider({provide:_.Fn,useValue:new IsL(O.root)});x.addProvider({provide:gl,useValue:new DRi});x.addProvider({provide:_.Wow,useValue:new mTu(O.root)});x.addProvider({provide:_.cR,useValue:new sS4});x.addProvider({provide:_.Hr,useClass:r8});x.addProvider({provide:LFh,useClass:BB});_.t("kevlar_network_sli_killswitch")||x.addProvider({provide:oKh,useValue:TWd});x.addProvider({provide:lKL,useFactory:bqw});_.t("web_bind_fetch")&&(e={},x.addProvider((e.provide=
C8X,e.useFactory=TJr,e[Fc]=[_.D0(lKL)],e)));_.t("web_bind_window_request")&&(e={},x.addProvider((e.provide=bOu,e.useFactory=Lsr,e[Fc]=[_.D0(lKL)],e)));_.t("web_bind_text_decoder")&&(e={},x.addProvider((e.provide=TzL,e.useFactory=kRL,e[Fc]=[_.D0(lKL)],e)));e={};x.addProvider((e.provide=aup,e.useFactory=Y6W,e[Fc]=[_.HB,YN,_.Ri],e));e={};x.addProvider((e.provide=UM4,e.useClass=Fk,e[Fc]=[aup],e));x.addProvider({provide:fuL,useClass:u5Q});x.addProvider({provide:Iuu,useClass:pXL});e=[].concat(_.Kx(K7));
_.t("web_continuation_response_processing")&&e.push(_.U1);e.push(h4R);_.t("enable_share_panel_navigation_logging_fix_on_web")&&e.push(_.jdF);x.addProvider({provide:mIr,useValue:e});x.addProvider({provide:X6s,useClass:cjL});x.addProvider({provide:q0X,useClass:yZw});e={};x.addProvider((e.provide=Msm,e.useClass=vyO,e[Fc]=[fM],e));_.vn.addLowPriorityJob(function(){Ulm()});
e={};x.addProvider((e.provide=MBT,e.useFactory=function(M){return function(G){var X,y=(X=_.q(G.commandMetadata,_.e6))==null?void 0:X.url;if(!y)throw new _.ry("No URL for PBJ Command",G);y=ffw(y,{pbj:"1"});X=M6w(y,{})||{};X=Object.assign({},X,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.wz("STS").toString()});G=_.RO({command:JSON.stringify(G),session_token:_.wz("XSRF_TOKEN")});return M.fetch(y,{method:"POST",headers:X,body:G})}},e[Fc]=[q0X],e));
x.addProvider({provide:Gn4,useFactory:function(){var M={};return M.CSI=Mi$(),M.ECATCHER=AvN(),M}});
x.addProvider({provide:C$8,useClass:FxQ});e=[];e.push(x.resolve(Iuu));l={};l=(l.client_location=_.y9.getInstance(),l.consistency=_.qL8(),l.entities=x.resolve(PxY),l.response_received_commands=x.resolve(X6s),l.store=x.resolve(_.Lkm),l.tokens=x.resolve(Iuu),l.service_params=x.resolve(C$8),l);if(_.t("web_shorts_prefetch_service_enabled")){var C=new eW4(x.resolve(_.pj));l.shorts_prefetch=C}l.adblock_detection=x.resolve(Msm);x.addProvider({provide:_.eb,useClass:_.eb});C=x.resolve(_.nGY);var Q=[];_.t("PremiumClientSharedConfig__enable_att_context_processor")&&
(x.addProvider({provide:bxY,useClass:ltX}),Q.push(x.resolve(bxY)));if(_.t("owl_pl_await")){var L={};x.addProvider((L.provide=Nw$,L.useFactory=function(M){return new Sf$(M)},L[Fc]=[_.eb],L));
Q.push(x.resolve(Nw$))}tnN(C,x.resolve(q0X),x.resolve(ene),l,x.resolve(_.pj),e,Q,x.resolve(UM4),x.resolve(fuL));x.addProvider({provide:_.IF,useValue:_.We.instance});_.t("start_client_gcf")&&x.addProvider({provide:rl,useValue:dgT()});x.addProvider({provide:j9u,useFactory:function(){return new j9u(_.GG().resolve(_.eb),_.Ko.getInstance())}});
_.O2().parkOrScheduleJob(function(){Nou()},1,"eocs");
e={};x.addProvider((e.provide=KT,e.useClass=KT,e[Fc]=[_.Ri,_.IF],e));x.addProvider({provide:_.oOL,useFactory:_.$f.getInstance});_.O2().parkOrScheduleJob(function(){_.GG().resolve(KT).refresh()},0,"eocs");
Dtz(I0p.watchEndpointMap||{},C.reelWatchEndpointMap||{},O.injector.resolve(_.IF));x.addProvider({provide:Dr,useValue:_.zK.instance});_.t("kevlar_signal_collection_killswitch")||(e={},x.addProvider((e.provide=Wy$,e.useClass=Wy$,e[Fc]=[gW,Wl],e)),_.O2().parkOrScheduleJob(function(){_.GG().resolve(Wy$).record()},1,"eocs"));
_.t("web_debug_handler_registration_killswitch")||_.O2().parkOrScheduleJob(function(){AzL("DOWNLOAD_PES",bSL);_.t("offline_client_state_export_ks")||AzL("OFFLINE_CLIENT_STATE",lqV)},0,"eocs");
_.t("kevlar_prevent_polymer_dynamic_font_load")&&_.O2().parkOrScheduleJob(function(){var M=[_.on(mDw),_.on(sUY)];M=_.T(M);for(var G=M.next();!G.done;G=M.next()){G=G.value;var X=document.createElement("link");_.Lx(X,G,"stylesheet");document.head.appendChild(X)}},1,"eocs");
e=O.injector.resolve(_.IF);_.QaL.instance=new _.QaL(e);uiN(gyQ(new CxO(e)));e={};O.injector.addProvider((e.provide=GQ,e.useFactory=function(M){(M=M==null?void 0:M.getCurrentPage())?M=M.visibilityObserver:(lPu||(lPu=RX7()),M=lPu);return M},e[Fc]=[_.D0(_.Be)],e.skipCache=!0,e));
x.addProvider({provide:_.Vs,useClass:kA});x.addProvider({provide:zY,useClass:k4d});O.injector.addProvider({provide:b42,useValue:c7L});x.addProvider({provide:jZR,useValue:lRm});_.t("web_cow_button_renderer_wiz_token")&&x.addProvider({provide:SpR,useValue:Bk4});x.addProvider({provide:xf3,useValue:$Wn});x.addProvider({provide:_.rP,useValue:Fas});O=x.addProvider;EOw||(EOw=new Ze4);O.call(x,{provide:_.fT,useValue:EOw});x.addProvider({provide:_.K_,useValue:_.wz("HTML_DIR")==="rtl"?"rtl":"ltr"});x.addProvider({provide:hiL,
useClass:ftT});x.addProvider({provide:_.ef,useClass:Jg});_.GG().addProvider({provide:rSw,useValue:_.t("enable_web_delhi_icons")?$Be.concat(Oth):gCe.concat(i$Y)});x.addProvider({provide:_.Sn,useClass:_.Sn});x.addProvider({provide:_.Rne,useValue:new pEu});x.addProvider({provide:tpX,useClass:ES$});x.addProvider({provide:Ye,useClass:Ye});x.addProvider({provide:f9,useClass:f9});O={};x.addProvider((O.provide=FE,O.useClass=FE,O[Fc]=[_.IF,_.Bm],O));x.addProvider({provide:L4,useClass:L4});x.addProvider({provide:nLe,
useClass:D4e});x.addProvider({provide:jA,useClass:jA});x.addProvider({provide:iSJ,useValue:KlJ});x.addProvider({provide:_.LW,useClass:t5h});_.t("enable_payments_purchase_manager")&&x.addProvider({provide:ASL,useClass:TXO});x.addProvider({provide:SrY,useFactory:function(){return function(M){return _.aKp(M)}}});
x.addProvider({provide:_.EGu,useClass:tN$});O={};x.addProvider((O.provide=QY,O.useClass=QY,O[Fc]=[_.EGu],O));x.addProvider({provide:J4,useClass:J4});x.addProvider({provide:hs4,useValue:ME4});x.addProvider({provide:p7d,useValue:_.pL$});x.addProvider({provide:Izr,useClass:MjT});x.addProvider({provide:tjp,useValue:mbO});O={};x.addProvider((O.provide=qfY,O.useClass=Pow,O[Fc]=[tjp],O));O={};x.addProvider((O.provide=_.r9,O.useClass=WK4,O[Fc]=[qfY],O));O={};x.addProvider((O.provide=_.NU,O.useClass=jn,O[Fc]=
[_.gH,_.Hr],O));if(_.t("web_explore_hub_on_hover")||_.t("web_client_explore_hub_on_hover"))O={},x.addProvider((O.provide=jT,O.useClass=jT,O[Fc]=[_.IF,kj],O));if(_.t("web_enable_renderer_logger")){var k=new fcV;xsr(function(){k.abort()});
x.addProvider({provide:sQs,useValue:new zWQ(k.signal)})}x.addProvider({provide:L7J,useValue:zTN});x.addProvider({provide:XVn,useClass:ldX});_.t("web_use_flow_state_manager")&&(x.addProvider({provide:_.RW,useClass:cSL}),O={},x.addProvider((O.provide=UU,O.useClass=UU,O[Fc]=[_.RW,_.Xc],O)))}},CUL);var btY={},Tle=(btY.initialized={priority:10,callback:function(){if(!XEX){E0r();GRm("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.cK(_.b_(GRm,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.t("log_heartbeat_with_lifecycles")){var O={};XZ.instance||(XZ.instance=new XZ);XZ.instance.install((O.document_visible={callback:Fsr,priority:10},O.document_hidden={callback:Fsr,priority:10},O))}else _.AG(document,"visibilitychange",Fsr);XEX=!0}(O=_.Pq())&&O!=="UNDEFINED_CSN"&&b6i(O)}},btY);var LvO={},klX=(LvO.initialized={callback:function(O){var x=_.O9(232091),e=O.injector.resolve(_.vt);_.qK(e,x);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?wz7()&&_.cu(e,x):(O=O.injector.resolve(SrY)("refresh_detector"))&&(O.get("first_tab_load")?_.cu(e,x):O.set("first_tab_load","1"))}},LvO);var AGw={},Mbp=(AGw.initialized={priority:10,callback:x1w},AGw);var Duw={},GlQ=(Duw.initialized={priority:0,callback:function(){var O=new db3,x="other";_.Oa?x="chrome":_.ig?x="firefox":_.Nb?x="safari":kC&&(x="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(e){O.increment(_.WK(),e,x)}).catch(function(){O.increment(_.WK(),!1,x)}):O.increment(_.WK(),!1,x)}},Duw);var FvL={},XH4=(FvL.rendering={priority:8,callback:eAi},FvL);var obL={},yGu=(obL.rendering={priority:10,callback:y2r},obL.rendered={callback:oDr},obL),ZtT={},EbL=(ZtT.rendering={callback:y2r},ZtT.rendered={callback:oDr},ZtT);var tbT=!1,qne={},PUe=(qne.initialized={priority:10,callback:function(){tbT||(fyw({didPatch:function(O){O.el&&Vir(O.el,O.props)},
didUnmount:function(O){cvr(O.el)}}),tbT=!0)}},qne);var cGO=/^\/shorts\/?$/;_.JZ("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:{}}}}}}});_.t("kevlar_enable_mss")&&(_.Nyn(new Uwp),Q$W());
(function(){var O=document.querySelector("ytd-app");if(!O)throw Error("Tj");O=new gQ({root:O,injector:_.GG()});O.install(Tle);var x={};O.install((x.initialized={priority:10,callback:ZNw},x));_.t("wp_lat_b")&&(x={},O.install((x.initialized={priority:10,callback:function(){l4N()}},x)));
x={};O.install((x.rendered={priority:0,callback:XfL},x));x={};O.install((x.rendered={priority:0,callback:function(){_.vn.addLowPriorityJob(function(){_.JSL>1&&(LTr(),Gzr())},4E4)}},x));
O.install(Cu4);O.install(klX);O.install(PUe);Hqr();O.install(GGL);O.install($DQ);O.install(e5u);O.install(VZe);O.install(mqL);O.install(M3L);O.install(QfQ);_.t("kevlar_enable_mss_lazy_load")&&O.install(Mbp);O.install(ObQ);O.install(GlQ);if(!_.SS("IS_SHELL_LOAD")||_.t("kevlar_fetch_initial_data_promise_client")||_.t("sw_nav_preload_pbj")){var e=_.VF(window.location.href);x=e&&e==="/watch";e=e&&e.match(cGO);x?O.install(EbL):e?O.install(XH4):O.install(yGu)}else O.install(jUp);O.install(bbT);_.t("web_enable_prefetching_videos_on_home")&&
O.install(yqQ);_.t("start_client_gcf")&&O.install(DDT);O.install(tZO);(new ncR).increment("INSTALLED");O.install(XKL);O.install(JZL);O.transition("initialized");jvs()})();
_.i9=[[["cXM3b3FjZHJraW5kI3JkbXc=","N3FzdmFsdWUjaTUxYzNrNHRo"],"RU5UX0tJTkRfRU5EI2hncjU5aWxrNnZ1b0FEX1BMQUNFTQ=="]];_.$E=["aGRndTl6bDV2Z2xvYmFsQ2FsbGJhY2tzI2RvcA==","bGl0eURldGVjdGVkIzQ4OHJicXB5M2NtNG9uQWJub3JtYQ==","b3V1eDRzam45b25BZFNraXAjcjI3","X3BsYXllcl9yZXNwb25zZSN6ZG9zZ3l0ZG9haHRyYXc=","d25jYWRQbGFjZW1lbnRDb25maWcjcjFmbmF5aWF2"];_.bX="aGRndTl6bDV2Z2xvYmFsQ2FsbGJhY2tzI2RvcA== bGl0eURldGVjdGVkIzQ4OHJicXB5M2NtNG9uQWJub3JtYQ== b3V1eDRzam45b25BZFNraXAjcjI3 X3BsYXllcl9yZXNwb25zZSN6ZG9zZ3l0ZG9haHRyYXc= bGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNsanZkNTM3enZpcWF3ZWJfcA== bDU5aWxnbXd6YWJfc2FfZWYjZDc0 d25jYWRQbGFjZW1lbnRDb25maWcjcjFmbmF5aWF2".split(" ");
_._ModuleManager_initialize=function(O,x){if(!_.Kf){if(!_.nf)return;_.Nyn(_.nf())}_.Kf.setAllModuleInfoString(O,x)};
_._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:1,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','syl','sy7','sy6','syn','sym','syi','syh','syf','syo','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.FB=function(O,x,e,l,C){var Q={};x&&(Q[x]=e);l?Q.errorType=l:C&&(Q.errorReason=C);_.uU(O,Q);_.Yb()};
_.XB=function(O){var x=_.O2();return _.Lc2(x,O,1)};
_.tY({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 O=this.query;O&&(this.full||O[0]==="("||(O="("+O+")"),this._mq=window.matchMedia(O),this._add(),this.queryHandler(this._mq))},
queryHandler:function(O){this._setQueryMatches(O.matches)}});var Htp;var KvL;var duL=function(){};
_.b=duL.prototype;_.b.addOwnKeyBinding=function(){};
_.b.removeOwnKeyBindings=function(){};
_.b.keyboardEventMatchesKeys=function(){};
_.b._collectKeyBindings=function(){};
_.b._prepKeyBindings=function(){};
_.b._addKeyBinding=function(){};
_.b._resetKeyEventListeners=function(){};
_.b._listenKeyEventListeners=function(){};
_.b._unlistenKeyEventListeners=function(){};
_.b._onKeyBindingEvent=function(){};
_.b._triggerKeyHandler=function(){};
_.b._tapHandler=function(){};
_.b._focusChanged=function(){};
_.b._detectKeyboardFocus=function(){};
_.b._userActivate=function(){};
_.b._upHandler=function(){};
_.b._spaceKeyDownHandler=function(){};
_.b._spaceKeyUpHandler=function(){};
_.b._asyncClick=function(){};
_.b._pressedChanged=function(){};
_.b._ariaActiveAttributeChanged=function(){};
_.b._activeChanged=function(){};
_.b._controlStateChanged=function(){};
_.b._changedButtonState=function(){};
_.b._focusBlurHandler=function(){};
_.b._disabledChanged=function(){};
_.b._changedControlState=function(){};
_.b._downHandler=function(){};
_.b.ensureRipple=function(){};
_.b.getRipple=function(){};
_.b.hasRipple=function(){};
_.b._noinkChanged=function(){};
_.b._focusedChanged=function(){};
_.b._createRipple=function(){};
_.b.registered=function(){};
_.b._invalidChanged=function(){};
_.b.hasValidator=function(){};
_.b.validate=function(){};
_.b._getValidity=function(){};
_.b._requiredChanged=function(){};
_.b._valueChanged=function(){};
_.b._checkedChanged=function(){};
_.b._buttonStateChanged=function(){};
_.b._setPressed=function(){};
_.b._setPointerDown=function(){};
_.b._setReceivedFocusFromKeyboard=function(){};
_.b._setFocused=function(){};
duL=_.tY({is:"tp-yt-paper-radio-button",_template:function(){if(KvL!==void 0)return KvL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;Htp===void 0&&(Htp=document.createElement("template"));var l=Htp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return KvL=O},
behaviors:[_.v4F],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(){_.A_(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var O=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),x=Math.floor(3*O);x%2!==O%2&&x++;this.updateStyles({"--paper-radio-button-ink-size":x+"px"})}})}});var nbL;var uDL;_.tY({_template:function(){if(uDL!==void 0)return uDL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;nbL===void 0&&(nbL=document.createElement("template"));var l=nbL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return uDL=O},
is:"tp-yt-paper-radio-group",behaviors:[_.zJp],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(O){var x=this._valueToItem(O);if(!x||!x.hasAttribute("disabled")){if(this.selected){x=this._valueToItem(this.selected);if(this.selected==O)if(this.allowEmptySelection)O="";else{x&&(x.checked=!0);return}x&&
(x.checked=!1)}_.rq.select.apply(this,[O]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(O){this._focusPrevious();O.preventDefault();this._activateFocusedItem()},
_onDownKey:function(O){this._focusNext();O.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(O){_.hJ2._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(O){_.hJ2._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.rq._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.sF._resetTabindices.apply(this,arguments);this.items.forEach(function(O){O.removeAttribute("aria-selected")},this)}});var YnO;_.tI("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var oG=function(){return _.a.apply(this,arguments)||this};
_.c(oG,_.a);_.b=oG.prototype;_.b.computeHasPrimaryIcon=function(O){return!(!O.icon&&!O.thumbnail)};
_.b.computeHasSecondary=function(O){return!(!O.secondaryIcon&&!O.secondaryNotificationText)};
_.b.computeHideSecondaryString=function(O){return!_.t("disable_hide_empty_secondary_string")&&!O.secondaryNotificationText};
_.b.computeCompactLinkStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeHasFitHeight=function(O){return O==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.b.isActiveEndpoint=function(O){return(O=this.get("commandMetadata.webCommandMetadata.url",O))?_.VF(window.location.href)!=="/account_transfer_channel"&&_.VF(window.location.href)!=="/gaia_link"&&_.VF(window.location.href)!=="/channel_switcher"||O!=="/account"?_.VF(window.location.href)===O:!0:!1};
_.b.onTap=function(){var O;((O=this.data)==null?0:O.serviceEndpoint)&&_.N9(this.hostElement,[this.data.serviceEndpoint])};
oG.prototype.onTap=oG.prototype.onTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oG.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.v("design:type",Boolean)],oG.prototype,"active",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.v("design:type",String)],oG.prototype,"compactLinkStyle",void 0);
_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",Object)],oG.prototype,"icon",void 0);_.B([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.v("design:type",Object)],oG.prototype,"secondaryIcon",void 0);_.B([_.R({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],oG.prototype,"hasSecondary",void 0);_.B([_.R({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],oG.prototype,"hideSecondaryString",void 0);
_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oG.prototype,"onTap",null);_.B([_.H({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],oG);
_.n(oG,"ytd-compact-link-renderer",function(){if(YnO!==void 0)return YnO;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YnO=O},{mode:1});var BlQ;_.tI("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var yw=function(){var O=_.a.apply(this,arguments)||this;O.role="link";O.tabindex="0";O.actionMap=_.t("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 O};
_.c(yw,_.a);_.b=yw.prototype;_.b.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Fo()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.b.getCurrentTheme=function(){return _.Xo()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Fo()};
_.b.onThemeSelected=function(O,x){var e=O||x?O:_.Gu(),l=(e&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!e&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Zgs(_.VF(window.location.href));_.LZ(0,165,O);_.LZ(0,174,x);this.prefs.save();l&&_.Sh(this.hostElement,"yt-dark-mode-toggled-action",[e]);_.Sh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.b.onTap=function(){this.data.serviceEndpoint&&_.N9(this.hostElement,[this.data.serviceEndpoint])};
_.b.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.b.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.b.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
yw.prototype.onTap=yw.prototype.onTap;yw.prototype.dataChanged=yw.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],yw.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.iz),_.v("design:type",Object)],yw.prototype,"paperItemBehaviors",void 0);_.B([_.R(),_.v("design:type",Object)],yw.prototype,"data",void 0);_.B([_.R({value:function(){return _.TD()}}),
_.v("design:type",_.xs)],yw.prototype,"prefs",void 0);_.B([_.R(),_.v("design:type",Object)],yw.prototype,"label",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yw.prototype,"role",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yw.prototype,"tabindex",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yw.prototype,"dataChanged",null);
_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yw.prototype,"onTap",null);_.B([_.H({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],yw);
_.NQ()(yw,"ytd-toggle-theme-compact-link-renderer",function(){if(BlQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);BlQ=O}O=BlQ;return O},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var fPO,JGL;_.ZT=function(O){return!!O.getOptions("captions")};
_.vbe=function(O){return(O=O.getOption("captions","track"))?!!O.displayName:!1};
_.Ei=function(O,x){_.Ai(x,O,function(){return fPO[x]},function(e){fPO[x]=e;
if(!_.t("mweb_player_ve_show_ks")){var l=_.Pq(0);l&&e&&_.zD(l,e)}})};
_.tV=function(O){(O=fPO[O])&&_.cu(_.k0(),O)};
fPO={};var wHu;/*

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
*/
_.tY({_template:function(){if(wHu!==void 0)return wHu;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;JGL===void 0&&(JGL=document.createElement("template"));var l=JGL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return wHu=O},
is:"tp-yt-paper-checkbox",behaviors:[_.v4F],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.A_(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var O=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),x="px",e=O.match(/[A-Za-z]+$/);e!==null&&(x=e[0]);O=parseFloat(O);e=8/3*O;x==="px"&&(e=Math.floor(e),e%2!==O%2&&e++);this.updateStyles({"--paper-checkbox-ink-size":e+
x})}})},
_computeCheckboxClass:function(O,x){var e="";O&&(e+="checked ");x&&(e+="invalid");return e},
_computeCheckmarkClass:function(O){return O?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Y5d._createRipple.call(this)}});var Sn$=new _.$x("radioButtonSurveyOptionRenderer"),jf4=new _.$x("checkboxSurveyOptionRenderer");var Nlw;var gbp;var $uw=0,qI=function(){var O=_.a.call(this)||this;O.selected=!1;O.isOverlay=!1;O.inputId="toggle-option-"+$uw;$uw++;return O};
_.c(qI,_.a);qI.prototype.onTap=function(){_.wr(this.hostElement,"ytd-toggle-option-clicked")};
_.B([_.R(),_.v("design:type",String)],qI.prototype,"label",void 0);_.B([_.R(),_.v("design:type",String)],qI.prototype,"inputId",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],qI.prototype,"selected",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],qI.prototype,"isOverlay",void 0);_.B([_.H({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.v("design:paramtypes",[])],qI);
_.n(qI,"ytd-toggle-option-renderer",function(){if(gbp!==void 0)return gbp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gbp=O},{mode:1});var P_=function(){var O=_.a.apply(this,arguments)||this;O.isToggleOption=!1;O.isOverlay=!1;return O};
_.c(P_,_.a);P_.prototype.onTap=function(O){O.preventDefault();this.data&&(O=!this.data.checked,this.set("data.checked",O),_.wr(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:O,value:this.data.value}))};
_.Dy.Object.defineProperties(P_.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
P_.prototype.onTap=P_.prototype.onTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],P_.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],P_.prototype,"isToggleOption",void 0);_.B([_.R(),_.v("design:type",Object)],P_.prototype,"isOverlay",void 0);_.B([_.p("data.responseText"),_.v("design:type",String),_.v("design:paramtypes",[])],P_.prototype,"label",null);
_.B([_.bH("ytd-toggle-option-clicked"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],P_.prototype,"onTap",null);_.B([_.H({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],P_);
_.n(P_,"ytd-checkbox-survey-option-renderer",function(){if(Nlw!==void 0)return Nlw;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Nlw=O},{mode:1});var itL;var OwL;var c_=function(){var O=_.a.apply(this,arguments)||this;O.checked=!1;O.isToggleOption=!1;return O};
_.c(c_,_.a);c_.prototype.onTap=function(){this.data&&(this.checked?_.Sh(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Sh(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
c_.prototype.onTap=c_.prototype.onTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c_.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],c_.prototype,"checked",void 0);_.B([_.R(),_.v("design:type",Object)],c_.prototype,"isToggleOption",void 0);_.B([_.bH("ytd-toggle-option-clicked"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],c_.prototype,"onTap",null);
_.B([_.H({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],c_);
_.n(c_,"ytd-radio-button-survey-option-renderer",function(){if(OwL!==void 0)return OwL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return OwL=O},{mode:1});var IG=function(){var O=_.a.apply(this,arguments)||this;O.disableAnimation=!1;O.isToggleOption=!0;O.followUpSurveyCommand=null;O.selectedRatingEndpoint=null;O.isSlimlineSurveyFollowUp=!1;O.isShortsStyle=!1;O.styleOverrideAttribute=!0;O.isDarkMode=!1;O.isSubmitted=!1;O.roundedContainer=!0;O.improveShortsResponseRate=_.t("web_improve_shorts_response_rate");O.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 O};
_.c(IG,_.a);_.b=IG.prototype;
_.b.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"}}}}};
_.b.attached=function(){var O=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(e){var l;if((l=e[0])!=null&&l.isIntersecting){_.TO().reportShown(O.hostElement);var C;(C=O.intersectionObserver)==null||C.unobserve(O.hostElement)}},{rootMargin:"0px",
threshold:.6});var x;(x=this.intersectionObserver)==null||x.observe(this.hostElement)};
_.b.onDarkModeToggledAction=function(O){this.isDarkMode=O};
_.b.dataChanged=function(){var O;if(((O=this.data)==null?void 0:O.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var x;((x=this.data)==null?void 0:x.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var e,l,C,Q;this.darkColorPalette=(e=this.data)==null?void 0:(l=e.inlineContent)==null?void 0:(C=l.compactVideoRenderer)==null?void 0:(Q=C.thumbnail)==null?
void 0:Q.darkColorPalette;var L,k,M,G;this.lightColorPalette=(L=this.data)==null?void 0:(k=L.inlineContent)==null?void 0:(M=k.compactVideoRenderer)==null?void 0:(G=M.thumbnail)==null?void 0:G.lightColorPalette;var X,y;if(((X=this.data)==null?0:(y=X.inlineContent)==null?0:y.compactVideoRenderer)&&this.isShortsStyle){var Z,E,P,U;O=_.jf((Z=this.data)==null?void 0:(E=Z.inlineContent)==null?void 0:(P=E.compactVideoRenderer)==null?void 0:(U=P.thumbnail)==null?void 0:U.thumbnails);_.lH(this.hostElement,
{"--yt-background-url":"url("+O+")"})}};
_.b.handleRequestCompletion=function(){this.hostElement.hidden&&_.wr(this.hostElement,"yt-dismissible-item-dismissed")};
_.b.onPopupClosed=function(O){var x;((x=O.detail)==null?void 0:x.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Sh(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.b.handleInlineSurveyRatingSelect=function(O,x){var e=this;this.selectedRatingEndpoint=O;this.followUpSurveyCommand=x;this.expanded=!!O;this.getOptionRenderers().forEach(function(l,C){e.notifyPath("followUpSurveyCommand.followUpOptions."+C+".checkboxSurveyOptionRenderer.checked");e.set("followUpSurveyCommand.followUpOptions."+C+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),O=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Sh(this.hostElement,"yt-reel-non-video-content-dismissal-command",[O]))};
_.b.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Sh(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var O,x=(O=this.data)==null?void 0:O.dismissalEndpoint;x&&this.ytComponentBehavior.resolveCommand(x)}};
_.b.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Sh(this.hostElement,"yt-close-popup-action"))};
_.b.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var O=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{O=this.getOptionRenderers().filter(function(l){return l.checked});
if(O.length===0)return;O=O.map(function(l){return l.responseEndpoint})}var x=[];
O.forEach(function(l,C){C!==0&&(l=_.q(l,_.Ee))&&l.feedbackToken&&x.push(l.feedbackToken)});
if(O=O[0]){var e={};x.length>0&&(e.extra_feedback_tokens=x);this.ytComponentBehavior.resolveCommand(O,{form:e})}}};
_.b.getOptionRenderers=function(){var O=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(x){O.isSingleSelect=!!_.q(x,Sn$);return O.isSingleSelect?_.q(x,Sn$):_.q(x,jf4)}):[]};
_.b.handleInlineSurveyOptionSelect=function(O){O=this.optionSelector.indexOf(O);O!==-1&&this.optionSelector.selectIndex(O)};
_.b.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.b.maybeGetBackgroundColor=function(O){return this.isDarkMode?O.section2Color:O.section3Color};
_.b.colorPaletteChanged=function(){var O=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;O=O&&this.maybeGetBackgroundColor(O);this.dismissibleEl.style.backgroundColor=!O||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.UA(O)};
_.Dy.Object.defineProperties(IG.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
IG.prototype.colorPaletteChanged=IG.prototype.colorPaletteChanged;IG.prototype.onPopupClosed=IG.prototype.onPopupClosed;IG.prototype.handleRequestCompletion=IG.prototype.handleRequestCompletion;IG.prototype.dataChanged=IG.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],IG.prototype,"actionHandlerBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],IG.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],IG.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.kX("#follow-up-survey-options"),_.v("design:type",Object)],IG.prototype,"optionSelector",void 0);_.B([_.R(),_.v("design:type",Object)],IG.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],IG.prototype,"disableAnimation",void 0);_.B([_.R(),_.v("design:type",Object)],IG.prototype,"isToggleOption",void 0);_.B([_.R(),_.v("design:type",Object)],IG.prototype,"followUpSurveyCommand",void 0);_.B([_.R(),_.v("design:type",Object)],IG.prototype,"selectedRatingEndpoint",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],IG.prototype,"expanded",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],IG.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],IG.prototype,"isShortsStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],IG.prototype,"styleOverrideAttribute",void 0);_.B([_.R(),_.v("design:type",Boolean)],IG.prototype,"isSingleSelect",void 0);_.B([_.R(),_.v("design:type",Object)],IG.prototype,"isDarkMode",void 0);
_.B([_.R(),_.v("design:type",Object)],IG.prototype,"lightColorPalette",void 0);_.B([_.R(),_.v("design:type",Object)],IG.prototype,"darkColorPalette",void 0);_.B([_.p("selectedRatingEndpoint","isShortsStyle"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],IG.prototype,"isOptionSelected",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],IG.prototype,"roundedContainer",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],IG.prototype,"improveShortsResponseRate",void 0);_.B([_.kX("#dismissible"),_.v("design:type",HTMLElement)],IG.prototype,"dismissibleEl",void 0);_.B([_.kX("#dismiss-button yt-icon-button"),_.v("design:type",HTMLElement)],IG.prototype,"dismissButtonEl",void 0);_.B([_.kX("#inline-survey-header yt-icon-button"),_.v("design:type",HTMLElement)],IG.prototype,"inlineHeaderDismissButtonEl",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IG.prototype,"dataChanged",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IG.prototype,"handleRequestCompletion",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],IG.prototype,"onPopupClosed",null);
_.B([_.T1("darkColorPalette","lightColorPalette","isDarkMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IG.prototype,"colorPaletteChanged",null);_.B([_.H({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],IG);
_.n(IG,"ytd-inline-survey-renderer",function(){if(itL!==void 0)return itL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return itL=O},{mode:1});var x3X=["en-CA","en","es-MX","fr-CA"];_.eRT=_.K(function(O){var x=_.YX(O,{isOverlay:!1,isModern:!1}),e=x.captionIconType,l=x.onClick;O=x.ariaLabel;var C=x.ariaPressed,Q=x.isOverlay,L=x.isModern;x=_.Q5("button",function(G){_.Ei(G,127299)});
var k=_.lk(function(G){_.tV(127299);l==null||l(G);return!1}),M={};
return _.D("ytm-closed-captioning-button",{class:_.xz("ytmClosedCaptioningButtonHost",(M.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return e()===-1&&Q()},M.ytmClosedCaptioningButtonIconDisabled=function(){return e()===-1&&!Q()},M))},_.D("button",{el:x,
class:"ytmClosedCaptioningButtonButton",title:O,"aria-label":O,"aria-pressed":C,"on:click":k},_.D(_.L7,{icon:function(){var G="",X=L();var y=X?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";X=X?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Z=_.TD().get("hl");y=!Z||x3X.includes(Z)?y:X;X=e();switch(X){case -1:case 0:G=y;break;case 1:G=y+"_FILLED";break;default:_.vd(X)}return G}})))},"fh");
_.eRT.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.ri=function(O){return function(x,e){var l=O||e.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(x,e,{get:function(){var C;return this.$?this.$[l]:(C=_.Ls(this))==null?void 0:C.querySelector("#"+l)},
enumerable:!0,configurable:!0})}};_.HA=function(O){O=O===void 0?!1:O;_.h0.call(this);this.pubSub_=new _.UC(O);_.qq(this,this.pubSub_)};
_.fI(_.HA,_.h0);_.HA.prototype.subscribe=function(O,x,e){return this.isDisposed()?0:this.pubSub_.subscribe(O,x,e)};
_.HA.prototype.unsubscribe=function(O,x,e){return this.isDisposed()?!1:this.pubSub_.unsubscribe(O,x,e)};
_.HA.prototype.unsubscribeByKey=function(O){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(O)};
_.HA.prototype.publish=function(O,x){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var BBQ=function(){_.FB("ypcRedeemFlowStarted")},vDQ=function(O){_.FB("ypcRedeemFlowFailed",void 0,void 0,void 0,O)},f34=function(O,x,e){x&&e&&(O.videos.forEach(function(l){l.videoId===x&&(l.itemId=e)}),O.recommendedVideos.forEach(function(l){l.videoId===x&&(l.itemId=e)}))};var J24;var w6Q;/*

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
*/
_.tY({_template:function(){if(w6Q!==void 0)return w6Q;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;J24===void 0&&(J24=document.createElement("template"));var l=J24;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return w6Q=O},
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(O,x){var e=this._resolveSrc(O);e!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",O===""||x?this._setLoading(!1):(this._resolvedSrc=e,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 O=this.$.sizedImgDiv.style,x=this.$.placeholder.style;O.backgroundSize=x.backgroundSize=this.sizing;O.backgroundPosition=x.backgroundPosition=this.sizing?this.position:"";O.backgroundRepeat=x.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(O){O=_.EZ(O,this.$.baseURIAnchor.href);O.length>=2&&O[0]==="/"&&O[1]!=="/"&&(O=(location.origin||location.protocol+"//"+location.host)+O);return O}});var S$w;var joe;_.tY({_template:function(){if(joe!==void 0)return joe;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;S$w===void 0&&(S$w=document.createElement("template"));var l=S$w;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return joe=O},
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(O){return O?"false":"true"},
_headingChanged:function(O){var x=this.getAttribute("heading"),e=this.getAttribute("aria-label");typeof e==="string"&&e!==x||this.setAttribute("aria-label",O)},
_computeHeadingClass:function(O){return O?" over-image":""},
_computeAnimated:function(O){return O}});var NBw=new _.$x("addRendererToItemSectionAction");var gDL;var $Y=function(){return _.a.apply(this,arguments)||this};
_.c($Y,_.a);$Y.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$Y.prototype,"rendererBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],$Y.prototype,"dismissibleItemBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$Y.prototype,"rendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$Y.prototype,"data",void 0);_.B([_.H({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],$Y);
_.n($Y,"ytd-comment-history-entry-renderer",function(){if(gDL!==void 0)return gDL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gDL=O},{mode:1});var $1u;_.tI("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.tI("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var id=function(){return _.a.apply(this,arguments)||this};
_.c(id,_.a);_.b=id.prototype;_.b.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.onKeyUp=function(O){if(O.keyCode===13)this.onTap()};
_.b.onTap=function(){this.data.recordClickEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var O=this.data.navigationEndpoint;O&&_.q(O,_.Bj)&&_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})};
_.b.readChanged=function(){var O;_.Ow(this.hostElement,"unread",!((O=this.data)==null?0:O.read))};
_.b.dataChanged=function(){this.data&&_.Ow(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.b.computeThumbnailSize=function(){var O;return((O=this.data)==null?0:O.highPriorityNotification)?32:48};
_.b.getEndpointURL=function(O){return O&&!_.q(O,_.Bj)?this.componentBehavior.computeHref_(O):null};
_.b.getEndpointData=function(O){return O&&!_.q(O,_.Bj)?O:null};
id.prototype.computeThumbnailSize=id.prototype.computeThumbnailSize;id.prototype.dataChanged=id.prototype.dataChanged;id.prototype.readChanged=id.prototype.readChanged;id.prototype.onKeyUp=id.prototype.onKeyUp;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],id.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],id.prototype,"data",void 0);_.B([_.R({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.v("design:type",Number)],id.prototype,"thumbnailSize",void 0);_.B([_.bH("keyup"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],id.prototype,"onKeyUp",null);
_.B([_.T1("data.read"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],id.prototype,"readChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],id.prototype,"dataChanged",null);_.B([_.T1("data.highPriorityNotification"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],id.prototype,"computeThumbnailSize",null);
_.B([_.H({is:"ytd-notification-renderer",disableElementRegistration:!0})],id);
_.n(id,"ytd-notification-renderer",function(){if($1u!==void 0)return $1u;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $1u=O},{mode:1});var iHe;var OG=function(){return _.a.apply(this,arguments)||this};
_.c(OG,_.a);OG.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"}}}};
OG.prototype.computeActionButtonClass=function(O){return!O.actionButtons||O.actionButtons.length<=1?"single-button":O.description?"vertical-buttons":"horizontal-buttons"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],OG.prototype,"data",void 0);_.B([_.H({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],OG);
_.n(OG,"ytd-playlist-show-metadata-renderer",function(){if(iHe!==void 0)return iHe;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return iHe=O},{mode:1});var OVI;_.tI("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var x3=function(){return _.a.apply(this,arguments)||this};
_.c(x3,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],x3.prototype,"data",void 0);_.B([_.H({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],x3);
_.n(x3,"ytd-purchase-item-renderer",function(){if(OVI!==void 0)return OVI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return OVI=O},{mode:1});var x$w;var esc={};esc.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(O){if(O)return O.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(O){if(O==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.tI("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var e8=function(){return _.a.apply(this,arguments)||this};
_.c(e8,_.a);e8.prototype.onYtNavigate=function(O){var x=this.openPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);x&&(O.stopPropagation(),this.openPopupBehavior.openPopup(x))};
e8.prototype.onYtNavigate=e8.prototype.onYtNavigate;_.B([_.V(esc.YtSimpleTextSectionBehavior),_.v("design:type",Object)],e8.prototype,"ytSimpleTextSectionBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],e8.prototype,"openPopupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],e8.prototype,"data",void 0);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],e8.prototype,"onYtNavigate",null);_.B([_.H({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],e8);
_.n(e8,"ytd-simple-text-section-renderer",function(){if(x$w!==void 0)return x$w;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return x$w=O},{mode:1});var lnU;_.tI("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var CrH=function(){return _.a.apply(this,arguments)||this};
_.c(CrH,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],CrH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],CrH.prototype,"data",void 0);_.B([_.H({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],CrH);
_.n(CrH,"ytd-unlimited-page-feature-info-renderer",function(){if(lnU!==void 0)return lnU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return lnU=O},{mode:1});var Qmz;var bVT;var lW=function(){return _.a.apply(this,arguments)||this};
_.c(lW,_.a);lW.prototype.dataChanged=function(){if(this.data){var O=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);O&&(O=_.Sf(O,screen.width),this.hostElement.style.backgroundImage="url("+O+")")}};
lW.prototype.dataChanged=lW.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],lW.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lW.prototype,"dataChanged",null);_.B([_.H({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],lW);
_.n(lW,"ytd-post-redemption-section-renderer",function(){if(bVT!==void 0)return bVT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return bVT=O},{mode:1});var T7H;var CF=function(){return _.a.apply(this,arguments)||this};
_.c(CF,_.a);CF.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],CF.prototype,"data",void 0);_.B([_.H({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],CF);
_.n(CF,"ytd-ypc-post-redemption-renderer",function(){if(T7H!==void 0)return T7H;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return T7H=O},{mode:1});_.tI("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Q0=function(){var O=_.a.apply(this,arguments)||this;O.MIN_CODE_LENGTH=12;O.MAX_CODE_LENGTH=24;return O};
_.c(Q0,_.a);_.b=Q0.prototype;_.b.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.b.created=function(){this.riskService=new _.U6m;this.loadPaymentThenable=_.m68(_.wz("YPC_MB_URL"))};
_.b.ready=function(){var O=this;this.code.addEventListener("keypress",function(x){O.onCodeInputKeypress(x)})};
_.b.dataChanged=function(){var O=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(x){x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,e.type==="attributes"&&e.attributeName==="dark"&&O.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.b.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var O=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+O+")")}};
_.b.computeRedeemButton=function(O){(O=this.get("redeemButton.buttonRenderer",O))&&(O=Object.assign({},O,{serviceEndpoint:void 0}));return O};
_.b.onRedeemButtonTap=function(O){O.stopPropagation();BBQ();this.redeemCode()};
_.b.redeemCode=function(){var O=this;this.isLoading=!0;var x=this.riskService.init();_.cF([x,this.loadPaymentThenable]).then(function(){var e=O.data.redeemButton.buttonRenderer.serviceEndpoint,l=_.ak7(),C=_.nM.payments.business.integration.ClientTokenFactory.createClientToken(_.q(e,_.C6$).countryCode,l);l={c:O.code.value.trim(),rd:window.btoa(l),ctk:C};e&&_.GG().resolve(_.Xc).resolveCommand(e,{form:Object.assign({},l,{element:O.hostElement})})},function(){O.showGenericError();
vDQ("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.jS(Error("Go"))})};
_.b.onYtServiceRequestCompleted=function(O){O.stopPropagation();this.isLoading=!1;var x,e;this.errorMessage=(x=O.detail)==null?void 0:(e=x.data)==null?void 0:e.errorMessage;var l,C;this.postRedemptionRenderer=(l=O.detail)==null?void 0:(C=l.data)==null?void 0:C.renderer;var Q,L;if(O=(Q=O.detail)==null?void 0:(L=Q.data)==null?void 0:L.redirectEndpoint)this.isLoading=!0,_.wr(this.hostElement,"yt-navigate",{endpoint:O});this.errorMessage?vDQ("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
O)&&_.FB("ypcRedeemFlowSucceeded")};
_.b.onYtServiceRequestError=function(O){O.stopPropagation();this.isLoading=!1;if(O=this.get("detail.error.message",O))this.errorMessage=_.KA(O);vDQ("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.b.onInvokeInstrumentManagerActionCompleted=function(O){O.stopPropagation();this.redeemCode()};
_.b.onInvokeInstrumentManagerActionError=function(O){O.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",O)){case "instrumentManagerLoadError":this.showGenericError();vDQ("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();vDQ("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.FB("ypcRedeemFlowCancelled")}};
_.b.onInput=function(){var O=this;_.hY(this,"onInput",function(){var x=O.code.value.trim();O.redeemButtonDisabled=x.length<O.MIN_CODE_LENGTH||x.length>O.MAX_CODE_LENGTH},200)};
_.b.onCodeInputKeypress=function(O){O.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(BBQ(),this.redeemCode())};
_.b.computeImageUrl=function(O){return O?_.Sf(O.thumbnails,600):null};
_.b.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Q0.prototype.onInvokeInstrumentManagerActionError=Q0.prototype.onInvokeInstrumentManagerActionError;Q0.prototype.onInvokeInstrumentManagerActionCompleted=Q0.prototype.onInvokeInstrumentManagerActionCompleted;Q0.prototype.onYtServiceRequestError=Q0.prototype.onYtServiceRequestError;Q0.prototype.onYtServiceRequestCompleted=Q0.prototype.onYtServiceRequestCompleted;Q0.prototype.dataChanged=Q0.prototype.dataChanged;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Q0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Q0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Q0.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Boolean)],Q0.prototype,"redeemButtonDisabled",void 0);
_.B([_.R(),_.v("design:type",Object)],Q0.prototype,"errorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],Q0.prototype,"postRedemptionRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],Q0.prototype,"observer",void 0);_.B([_.kX("#code"),_.v("design:type",HTMLInputElement)],Q0.prototype,"code",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Q0.prototype,"dataChanged",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Q0.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Q0.prototype,"onYtServiceRequestError",null);
_.B([_.bH("yt-invoke-instrument-manager-action-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Q0.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.B([_.bH("yt-invoke-instrument-manager-action-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Q0.prototype,"onInvokeInstrumentManagerActionError",null);_.B([_.H({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Q0);
_.n(Q0,"ytd-redeem-code-renderer",function(){if(Qmz!==void 0)return Qmz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Qmz=O},{mode:1});var LLy;_.tI("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var bW=function(){var O=_.a.apply(this,arguments)||this;O.businessEmailDisplayState="HIDE_SECTION";return O};
_.c(bW,_.a);_.b=bW.prototype;_.b.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}}}}}};
_.b.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"};
_.b.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.b.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ag(_.TJp),this.businessEmailDisplayState="CAPTCHA"))};
_.b.onYtServiceRequestCompleted=function(O){var x;if((x=O.detail.data)==null?0:x.businessEmail)this.businessEmail=O.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var e;if((e=O.detail.data)==null?0:e.errorMessage)this.businessEmailErrorMessage=O.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.b.computeEmailHref=function(O){return"mailto:"+O};
_.b.computeSafeUrl=function(O){if(O)return _.Yy(O)};
_.b.onBusinessEmailCaptchaSubmit=function(){var O;(O=this.data)!=null&&O.onBusinessEmailRevealClickCommand&&(O=this.JSC$21952_captchaTextarea.value)&&(O={recaptcha_response_token:O,channel_id:this.data.channelId},_.GG().resolve(_.Xc).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},O,{element:this.hostElement})}))};
_.b.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Dy.Object.defineProperties(bW.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 O,x;return!((O=this.data)==null||!O.primaryLinks)&&!((x=this.data)==null?0:x.links)&&this.data.primaryLinks.every(function(e){return e.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.primaryLinks)&&!((x=this.data)==null?0:x.links)&&!this.shouldShowNewLinks}}});
bW.prototype.onYtServiceRequestCompleted=bW.prototype.onYtServiceRequestCompleted;bW.prototype.dataChanged=bW.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.kX("#g-recaptcha-response"),_.v("design:type",HTMLTextAreaElement)],bW.prototype,"JSC$21952_captchaTextarea",void 0);_.B([_.R(),_.v("design:type",Object)],bW.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],bW.prototype,"businessEmailDisplayState",void 0);_.B([_.R(),_.v("design:type",String)],bW.prototype,"businessEmail",void 0);_.B([_.R(),_.v("design:type",String)],bW.prototype,"businessEmailErrorMessage",void 0);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],bW.prototype,"hideDetailsSection",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],bW.prototype,"dataChanged",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],bW.prototype,"shouldShowNewLinks",null);_.B([_.p("data","shouldShowLinks"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],bW.prototype,"shouldShowLegacyLinks",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],bW.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],bW);
_.n(bW,"ytd-channel-about-metadata-renderer",function(){if(LLy!==void 0)return LLy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return LLy=O},{mode:1});var krw;_.tI("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var TF=function(){return _.a.apply(this,arguments)||this};
_.c(TF,_.a);TF.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]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],TF.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],TF.prototype,"lockupContainerType",void 0);_.B([_.R(),_.v("design:type",String)],TF.prototype,"thumbnailFixedWidth",void 0);
_.B([_.H({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],TF);
_.n(TF,"ytd-channel-featured-content-renderer",function(){if(krw!==void 0)return krw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return krw=O},{mode:1});var ALS;_.tI("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var LF=function(){var O=_.a.apply(this,arguments)||this;O.roundContainer=!0;O.amsterdamEnabled=_.t("enable_desktop_amsterdam_info_panels");return O};
_.c(LF,_.a);_.b=LF.prototype;_.b.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.b.dataChanged=function(){this.imageWidth=this.imageHeight=24;var O=this.data;O.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!O.style&&O.image&&O.image.thumbnails.length&&(O=O.image.thumbnails[0],this.imageWidth=O.width||0,this.imageHeight=O.height||0)};
_.b.computeSource=function(O){return O.secondarySource?_.db(O.secondarySource):_.db(O.source)};
_.b.computeClarifyStyle=function(O){return O?O.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.b.isLargeStyle=function(O){return O==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.b.computeBackgroundStyle=function(O){return O?O.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.b.computeHasActionButton=function(O){return!!O.actionButton};
_.b.computeHasBottomSection=function(O){return!!O.ctaHasBottomSection};
_.b.computeIsSourceMissing=function(O){return O.ctaHasBottomSection===!1?!0:O&&this.computeSource(O)?!1:!0};
_.b.computeSecondaryEndpoint=function(O){return O.secondaryEndpoint||O.endpoint};
LF.prototype.dataChanged=LF.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LF.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],LF.prototype,"imageWidth",void 0);_.B([_.R(),_.v("design:type",Number)],LF.prototype,"imageHeight",void 0);
_.B([_.R({computed:"computeSecondaryEndpoint(data)"}),_.v("design:type",Object)],LF.prototype,"secondaryEndpoint",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.v("design:type",Boolean)],LF.prototype,"hasActionButton",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.v("design:type",Boolean)],LF.prototype,"hasBottomSection",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.v("design:type",Boolean)],LF.prototype,"missingSource",void 0);_.B([_.R({computed:"computeIcon_(data.icon)"}),_.v("design:type",String)],LF.prototype,"icon",void 0);_.B([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.v("design:type",String)],LF.prototype,"secondaryIcon",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.v("design:type",String)],LF.prototype,"clarifyStyle",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.v("design:type",String)],LF.prototype,"backgroundStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LF.prototype,"roundContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],LF.prototype,"amsterdamEnabled",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LF.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-clarification-renderer",disableElementRegistration:!0})],LF);
_.n(LF,"ytd-clarification-renderer",function(){if(ALS!==void 0)return ALS;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ALS=O},{mode:1});var Mwa;var D$k;var k3=function(){var O=_.a.apply(this,arguments)||this;O.amsterdamEnabled=_.t("enable_desktop_amsterdam_info_panels");return O};
_.c(k3,_.a);_.b=k3.prototype;_.b.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.b.computeIcon=function(O){return O?"yt-icons:"+O.toLowerCase():null};
_.b.computeUseContacts=function(O){return!!O.contacts&&O.contacts.length>0};
_.b.computePhoneContact=function(O){var x,e;return(x=O.contacts)==null?void 0:(e=x.find(function(l){var C;return(l==null?void 0:(C=l.icon)==null?void 0:C.iconType)==="PHONE"}))==null?void 0:e.actionText};
_.b.computeSmsContact=function(O){var x,e;return(x=O.contacts)==null?void 0:(e=x.find(function(l){var C;return(l==null?void 0:(C=l.icon)==null?void 0:C.iconType)==="SMS"}))==null?void 0:e.actionText};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],k3.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],k3.prototype,"amsterdamEnabled",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.v("design:type",Boolean)],k3.prototype,"useContacts",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.v("design:type",String)],k3.prototype,"phoneContact",void 0);_.B([_.H({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],k3);
_.n(k3,"ytd-single-action-emergency-support-renderer",function(){if(D$k!==void 0)return D$k;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return D$k=O},{mode:1});_.tI("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Au=function(){var O=_.a.apply(this,arguments)||this;O.roundedContainer=!0;O.amsterdamEnabled=_.t("enable_desktop_amsterdam_info_panels");return O};
_.c(Au,_.a);Au.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Au.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Au.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Au.prototype,"amsterdamEnabled",void 0);
_.B([_.H({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Au);
_.n(Au,"ytd-emergency-onebox-renderer",function(){if(Mwa!==void 0)return Mwa;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Mwa=O},{mode:1});var Grs;_.tI("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var M6=function(){return _.a.apply(this,arguments)||this};
_.c(M6,_.a);M6.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],M6.prototype,"data",void 0);_.B([_.H({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],M6);
_.n(M6,"ytd-exploratory-results-renderer",function(){if(Grs!==void 0)return Grs;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Grs=O},{mode:1});var FLE;_.tI("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Dk=function(){var O=_.a.apply(this,arguments)||this;O.messageData=null;return O};
_.c(Dk,_.a);_.b=Dk.prototype;_.b.onServiceRequestCompleted=function(O,x){O=x.actions||[];x=0;for(var e=O.length;x<e;x++){var l=O[x],C=void 0,Q=void 0;if((C=_.q(l,_.Vq))==null?0:(Q=C.item)==null?0:Q.messageRenderer)this.messageData=_.q(l,_.Vq).item.messageRenderer}};
_.b.dataChanged=function(){var O=this.data;this.hostElement.hidden=!1;_.Ow(this.hostElement,"is-channel",O&&!O.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.b.computeThumbnailWidth=function(O){return O?126:56};
_.b.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.b.onSubmitTap=function(){var O=this.data,x=this.selectedResponseIndex;O!==void 0&&x!==void 0&&(O=O.responses[x],O.responseData&&_.GG().resolve(_.Xc).resolveCommand(O.responseData,{form:{element:this.hostElement}}))};
_.b.onDismissTap=function(){this.hostElement.hidden=!0;var O=this.data;O!==void 0&&O.dismissalEndpoint&&_.GG().resolve(_.Xc).resolveCommand(O.dismissalEndpoint,{form:{element:this.hostElement}})};
_.b.updateSelectedResponseIndexFromBinding=function(O){this.selectedResponseIndex=O.detail.value};
Dk.prototype.onSelectedResponseIndexChange=Dk.prototype.onSelectedResponseIndexChange;Dk.prototype.dataChanged=Dk.prototype.dataChanged;Dk.prototype.onServiceRequestCompleted=Dk.prototype.onServiceRequestCompleted;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Dk.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Dk.prototype,"messageData",void 0);
_.B([_.R(),_.v("design:type",Number)],Dk.prototype,"selectedResponseIndex",void 0);_.B([_.kX("#submit-button"),_.v("design:type",HTMLButtonElement)],Dk.prototype,"submitButton",void 0);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],Dk.prototype,"onServiceRequestCompleted",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dk.prototype,"dataChanged",null);
_.B([_.T1("selectedResponseIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dk.prototype,"onSelectedResponseIndexChange",null);_.B([_.H({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Dk);
_.n(Dk,"ytd-feedback-elicitation-single-question-renderer",function(){if(FLE!==void 0)return FLE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return FLE=O},{mode:1});var Xi7;var GF=function(){return _.a.apply(this,arguments)||this};
_.c(GF,_.a);GF.prototype.computeThumbnailWidth=function(O){return O?602:428};
GF.prototype.updateWideFromBinding=function(O){this.wide=O.detail.value};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],GF.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],GF.prototype,"wide",void 0);_.B([_.H({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],GF);
_.n(GF,"ytd-newspaper-hero-video-renderer",function(){if(Xi7!==void 0)return Xi7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Xi7=O},{mode:1});var oWy;var yLs=function(){return _.a.apply(this,arguments)||this};
_.c(yLs,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yLs.prototype,"rendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yLs.prototype,"data",void 0);_.B([_.H({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],yLs);
_.n(yLs,"ytd-newspaper-mini-video-renderer",function(){if(oWy!==void 0)return oWy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return oWy=O},{mode:1});var ZV7;_.tI("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var FK=function(){return _.a.apply(this,arguments)||this};
_.c(FK,_.a);FK.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"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],FK.prototype,"data",void 0);_.B([_.H({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],FK);
_.n(FK,"ytd-newspaper-renderer",function(){if(ZV7!==void 0)return ZV7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ZV7=O},{mode:1});var EWw;_.tI("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var XK=function(){var O=_.a.apply(this,arguments)||this;O.isSegment=!1;O.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};O.nextContinuation={continuationType:"playlistVideoListContinuation"};return O};
_.c(XK,_.a);_.b=XK.prototype;_.b.attached=function(){_.GG();var O;(O=_.GG().resolve(_.D0(_.UW)))!=null&&(O.playlistVideoListElement=this.hostElement)};
_.b.detached=function(){var O;(O=_.GG().resolve(_.D0(_.UW)))!=null&&(O.playlistVideoListElement=void 0);O=_.GG().resolve(_.D0(_.Ik));_.t("web_enable_voting_animation")&&O&&(O.parentElem=void 0,O.videos=[],O.continuationsPresent=!1,O.showRefreshPill=!1)};
_.b.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"}}}}}};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.b.dataChanged=function(){var O=_.GG().resolve(_.D0(_.Ik));if(_.t("web_enable_voting_animation")&&this.data&&O){var x=_.$U(this.hostElement).querySelector("#contents");x&&(O.parentElem=x);O.addVideos(this.data.contents)}_.zuF(this.ytReorderableBehavior)};
_.b.onRendererstamperFinished=function(){this.canReorder&&_.rrd(this.ytReorderableBehavior,_.$U(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.b.onPlaylistReloading=function(){this.isReloading=!0};
_.b.onUpdateSetVideoId=function(O){if(O.detail&&this.data&&this.data.contents){var x=O.detail;O=this.data.contents.findIndex(function(C){var Q;return((Q=C.playlistVideoRenderer)==null?void 0:Q.videoId)===x.videoId});
if(!(O<0)&&x.setVideoId&&(this.set("data.contents."+O+".playlistVideoRenderer.setVideoId",x.setVideoId),_.t("web_enable_voting_animation"))){var e;if(O=_.q((e=this.data.contents[O].playlistVideoRenderer)==null?void 0:e.engagementBar,_.j8W)){var l;(l=O.actions)==null||l.forEach(function(C){if(C=_.q(C,_.N3m))C.itemId=x.setVideoId})}(e=_.GG().resolve(_.D0(_.Ik)))&&f34(e,x.videoId,x.setVideoId)}}};
_.b.computeContentsClass=function(O){return O?"reloading":""};
_.b.computeIsSortable=function(O,x){return O&&x>0&&!this.isSegment&&!_.t("shorts_in_playlists_web")};
_.b.computeIsEditable=function(O){return O};
_.b.computeCanReorder=function(O){return O};
_.b.handlePlaylistRemoveVideosAction=function(O){if(this.get("playlistRemoveVideosAction.setVideoIds",O)&&this.data&&this.data.contents){O=_.q(O,_.VP$).setVideoIds;for(var x=this.data.contents.length-1;x>=0;){var e=this.data.contents[x].playlistVideoRenderer;e&&e.setVideoId&&O.includes(e.setVideoId)&&this.splice("data.contents",x,1);x--}_.Sh(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.b.updateIndices=function(){if(this.data&&this.data.contents)for(var O=0;O<this.data.contents.length;O++)this.set("data.contents."+O+".playlistVideoRenderer.index",_.KA(String(O+1)))};
_.b.handleDrop=function(O){O=O.currDragItem;var x=_.d7(O.parentNode.childNodes,O),e=this.data.contents.splice(Number(_.db(O.data.index))-1,1)[0];this.data.contents.splice(x,0,e);x=x?this.get("contents."+(x-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();O=this.buildReorderServiceEndpoint(O.data.setVideoId,x);this.ytComponentBehavior.resolveCommand(O)};
_.b.buildReorderServiceEndpoint=function(O,x){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",O),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",x),this.data.onReorderEndpoint):null};
_.b.handleUpdatePlaylistAction=function(O){var x;(O=_.q((x=_.q(O,_.pPR))==null?void 0:x.updatedRenderer,_.VON))&&this.canReorder!==O.canReorder&&this.set("data.canReorder",O.canReorder);O&&O.contents&&(this.set("data.contents",O.contents),this.isReloading=!1);O&&O.continuations&&this.set("data.continuations",O.continuations)};
_.b.handleAddRendererToItemSectionAction=function(O){var x,e=(x=_.q(O,NBw))==null?void 0:x.renderer,l;e&&((l=_.q(O,NBw))==null?void 0:l.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,e),O=_.GG().resolve(_.D0(_.Ik)),_.t("web_enable_voting_animation")&&O&&(e&&(x=_.SIi(e))&&O.recommendedVideos.push({itemId:x,videoId:_.gYi(e),voteCount:_.$lN(e),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.b.isVotingEnabledOnPlaylist=function(O){if(!O)return!1;O=_.T(O);for(O=O.next();!O.done;O=O.next()){var x=void 0;return!!_.q((x=O.value.playlistVideoRenderer)==null?void 0:x.engagementBar,_.j8W)}return!1};
_.b.onAppendContinuationItemsActionFinished=function(){var O;this.isVotingEnabledOnPlaylist((O=this.data)==null?void 0:O.contents)&&(this.updateIndices(),O=_.GG().resolve(_.D0(_.Ik)),_.t("web_enable_voting_animation")&&O&&this.data&&O.addVideos(this.data.contents))};
_.b.updateVideoData=function(O){if(O.detail&&this.data&&this.data.contents){var x=O.detail;O=x.toIdx;var e=x.itemId,l=x.newVoteCount,C=x.voteStatus;x=x.hideItem;var Q,L,k=(Q=this.data)==null?void 0:(L=Q.contents)==null?void 0:L.findIndex(function(y){return _.SIi(y)===e});
if(!(k<0)){Q=this.data.contents[k];var M;if((M=Q.playlistVideoRenderer)==null?0:M.voteCount)Q.playlistVideoRenderer.voteCount=l;var G;if(M=_.q((G=Q.playlistVideoRenderer)==null?void 0:G.engagementBar,_.j8W)){var X;(X=M.actions)==null||X.forEach(function(y){(y=_.q(y,_.N3m))&&y.initialState&&(y.initialState.votes=l,y.initialState.status=C)})}this.data.contents.splice(k,1);
x||this.data.contents.splice(O,0,Q);this.updateIndices()}}};
XK.prototype.updateVideoData=XK.prototype.updateVideoData;XK.prototype.onAppendContinuationItemsActionFinished=XK.prototype.onAppendContinuationItemsActionFinished;XK.prototype.onUpdateSetVideoId=XK.prototype.onUpdateSetVideoId;XK.prototype.onPlaylistReloading=XK.prototype.onPlaylistReloading;XK.prototype.onRendererstamperFinished=XK.prototype.onRendererstamperFinished;XK.prototype.dataChanged=XK.prototype.dataChanged;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],XK.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.kv.YtNextContinuationBehavior),_.v("design:type",Object)],XK.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.V(_.HJd),_.v("design:type",Object)],XK.prototype,"ytReorderableBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],XK.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],XK.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XK.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],XK.prototype,"isReloading",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],XK.prototype,"isSegment",void 0);_.B([_.R({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.v("design:type",Boolean)],XK.prototype,"isSortable",void 0);_.B([_.R({computed:"computeIsEditable(data.isEditable)"}),_.v("design:type",Boolean)],XK.prototype,"isEditable",void 0);_.B([_.R({computed:"computeCanReorder(data.canReorder)"}),_.v("design:type",Boolean)],XK.prototype,"canReorder",void 0);
_.B([_.R({value:101}),_.v("design:type",Number)],XK.prototype,"scrollMargin",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XK.prototype,"dataChanged",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XK.prototype,"onRendererstamperFinished",null);
_.B([_.bH("yt-playlist-reloading"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XK.prototype,"onPlaylistReloading",null);_.B([_.bH("yt-update-set-video-id"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],XK.prototype,"onUpdateSetVideoId",null);
_.B([_.bH("yt-append-continuation-items-action-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XK.prototype,"onAppendContinuationItemsActionFinished",null);_.B([_.bH("yt-update-video-data-voting-animation"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],XK.prototype,"updateVideoData",null);_.B([_.H({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],XK);
_.n(XK,"ytd-playlist-video-list-renderer",function(){if(EWw!==void 0)return EWw;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return EWw=O},{mode:_.gq("kevlar_poly_si_batch_j047")?1:2});var twz;var o_=function(){return _.a.apply(this,arguments)||this};
_.c(o_,_.a);o_.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"}}}}};
o_.prototype.onTextWrapperTap=function(O){var x=this.data&&this.data.navigationEndpoint;x&&!_.uk(_.n3(O),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.wr(this.hostElement,"yt-navigate",{endpoint:x})};
o_.prototype.dataChanged=function(){var O=this.get("data.offerButton.buttonRenderer.serviceEndpoint");O&&O.commandMetadata&&_.q(O.commandMetadata,_.m5)&&_.q(O.commandMetadata,_.m5).fireAutomatically&&_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})};
o_.prototype.dataChanged=o_.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Lj),_.v("design:type",Object)],o_.prototype,"ytdLockupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],o_.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],o_.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],o_.prototype,"biggerThumbsStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],o_.prototype,"leftAligned",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],o_.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-movie-renderer"})],o_);
_.n(o_,"ytd-movie-renderer",function(){if(twz!==void 0)return twz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return twz=O},{mode:1});var q8S;var y0=function(){var O=_.a.apply(this,arguments)||this;O.rounded=!0;O.pageAttachedTo=void 0;O.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return O};
_.c(y0,_.a);y0.prototype.attached=function(){this.pageAttachedTo=_.GG().resolve(_.Be).getCurrentPage();_.wr(this.hostElement,"yt-player-attached",this.player)};
y0.prototype.detached=function(){var O;if((O=this.pageAttachedTo)==null?0:O.hostElement)_.wr(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
y0.prototype.dataChanged=function(){var O;if((O=this.data)==null?0:O.videoId)O={video_id:this.data.videoId,autoplay:!0},!_.t("miniplayer_stop_channel_video_autoplay_killswitch")&&_.GG().resolve(_.Vs).isMiniplayerActive()&&(O.pause_at_start=!0,O.autoplay=!1),this.player.loadVideoWithPlayerVars(O)};
y0.prototype.handleSignalActionPausePlayer=function(){_.JI().pause()};
y0.prototype.dataChanged=y0.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],y0.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],y0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],y0.prototype,"rounded",void 0);_.B([_.kX("#player"),_.v("design:type",Object)],y0.prototype,"player",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],y0.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],y0);
_.n(y0,"ytd-channel-video-player-renderer",function(){if(q8S!==void 0)return q8S;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return q8S=O},{mode:1});var Pr7;var cLT;var InS;var Zk=function(){var O=_.a.apply(this,arguments)||this;O.playing=!1;O.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.N$(O);O.active=!1;return O};
_.c(Zk,_.a);_.b=Zk.prototype;_.b.detached=function(){this.stop()};
_.b.play=function(){var O=this,x,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return O.active=!0,x=O.get("data.inlinePlaybackEndpoint.watchEndpoint"),e=x.videoId||O.data.videoId,l=x.startTimeSeconds||0,C=x.playerParams||null,_.t("kevlar_player_update_killswitch")?L.yield(O.playerEl.update({args:{video_id:e,startSeconds:l,player_params:C}}),2):(O.playerEl.loadVideoWithPlayerVars({video_id:e,startSeconds:l,player_params:C,autoplay:!0}),L.jumpTo(2));if(L.nextAddress!=4)return L.yield(O.playerEl.getPlayerPromise(),
4);Q=L.yieldResult;Q.unloadModule("annotations_module");Q.addEventListener("onStateChange",function(k){O.onPlayerStateChange(k)});
_.Ra(L)})};
_.b.onPlayerStateChange=function(O){if(this.active)switch(this.playing=O===1,O){case 1:_.wr(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.wr(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.b.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.b.resize=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O.playerEl.getPlayerPromise(),2);x=e.yieldResult;x.setSize(NaN,NaN);_.Ra(e)})};
_.B([_.R(),_.v("design:type",Object)],Zk.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Zk.prototype,"playing",void 0);_.B([_.R(),_.v("design:type",Object)],Zk.prototype,"playerId",void 0);_.B([_.kX("#player"),_.v("design:type",Object)],Zk.prototype,"playerEl",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Zk);
_.n(Zk,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(InS!==void 0)return InS;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return InS=O},{mode:1});var Vwz;var piw;var EG=function(){var O=_.a.apply(this,arguments)||this;O.width=0;return O};
_.c(EG,_.a);_.b=EG.prototype;_.b.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Qa(this,this.onEnded));this.mp4El.addEventListener("error",_.Qa(this,this.onError))};
_.b.detached=function(){this.videoEl.removeEventListener("ended",_.Qa(this,this.onEnded));this.mp4El.removeEventListener("error",_.Qa(this,this.onError))};
_.b.play=function(){var O=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var x=this.videoEl.play();x?x.then(function(){O.handleVideoStartPlaying()}).catch(function(){_.wr(O.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.wr(this.hostElement,"yt-video-thumbnail-not-playing")};
_.b.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.b.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.b.dataChanged=function(){var O;if((O=this.data)==null?0:O.thumbnailPlaceholder)O=_.Sf(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+O+")";this.stop();this.autoplay&&this.play()};
_.b.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.b.onEnded=function(){this.stop();_.wr(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.b.onError=function(){_.wr(this.hostElement,"yt-video-thumbnail-error")};
_.b.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.b.getVideoThumbnail=function(O){if(O&&O.length)return O[0]};
EG.prototype.dataChanged=EG.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],EG.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],EG.prototype,"animatePlaceholderOnEntrance",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],EG.prototype,"autoplay",void 0);_.B([_.R({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.v("design:type",Object)],EG.prototype,"videoThumbnail",void 0);
_.B([_.R(),_.v("design:type",Boolean)],EG.prototype,"loop",void 0);_.B([_.R(),_.v("design:type",Boolean)],EG.prototype,"isVideoPlaying",void 0);_.B([_.R(),_.v("design:type",Object)],EG.prototype,"width",void 0);_.B([_.kX("#mp4"),_.v("design:type",HTMLElement)],EG.prototype,"mp4El",void 0);_.B([_.kX("#placeholder"),_.v("design:type",HTMLElement)],EG.prototype,"placeholderEl",void 0);_.B([_.kX("#video"),_.v("design:type",HTMLVideoElement)],EG.prototype,"videoEl",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],EG.prototype,"dataChanged",null);_.B([_.Va({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],EG);
_.n(EG,"yt-video-as-thumbnail-details",function(){if(piw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Vwz===void 0&&(Vwz=document.createElement("template"));var l=Vwz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);piw=O}O=piw;return O},{mode:2});var tu=function(){var O=_.a.apply(this,arguments)||this;O.disableGridStateAware=!1;O.animationEnabled=_.t("enable_web_ketchup_hero_animation");O.transitioningOut=!1;O.narrow=!1;O.narrower=!1;O.isCarouselInFeed=!1;O.videoTimeoutJobId=0;O.panelTimeoutJobId=0;O.panelTimeoutJobStartMs=0;O.actionMap={"yt-window-resized":"onWindowResized"};return O};
_.c(tu,_.a);_.b=tu.prototype;_.b.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.b.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var O;this.player&&((O=this.data)==null?0:O.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.b.attached=function(){this.onWindowResized()};
_.b.detached=function(){this.clearTimeouts()};
_.b.onWindowResized=function(){this.updateSize()};
_.b.computePanelLayout=function(O){return O&&O.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.b.playVideo=function(){var O;this.video&&((O=this.data)==null?0:O.videoThumbnail)&&this.video.play();var x;this.player&&((x=this.data)==null?0:x.inlinePlaybackRenderer)&&this.player.play()};
_.b.stopVideo=function(){var O;this.video&&((O=this.data)==null?0:O.videoThumbnail)&&this.video.stop();var x;this.player&&((x=this.data)==null?0:x.inlinePlaybackRenderer)&&this.player.stop()};
_.b.transitionOut=function(){var O=this;this.transitioningOut=!0;return new Promise(function(x){var e=function(){_.$U(O.hostElement).querySelector("#action-button").removeEventListener("animationend",e);_.vn.cancelJob(l);x();O.transitioningOut=!1};
var l=_.zl(_.vn,e,1E3);_.$U(O.hostElement).querySelector("#action-button").addEventListener("animationend",e);O.player&&(O.player.playing=!1)})};
_.b.computeMetadataOrder=function(O){return O&&O.metadataOrder&&O.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?O.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.b.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.b.computeAvatarSize=function(O){return O&&O.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.b.onContentClick=function(O){if(!_.uk(_.n3(O),this.hostElement,["A".toString(),"BUTTON".toString()])){var x;if((x=this.data)==null?0:x.navigationEndpoint){var e;this.componentBehavior.resolveCommand((e=this.data)==null?void 0:e.navigationEndpoint)}}};
_.b.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.b.setBackgroundImage=function(O){if(O=this.getBackgroundImageUrl(O))_.$U(this.hostElement).querySelector("#hero").style.backgroundImage="url("+O+")"};
_.b.setScrimLayer=function(O){var x=this.getScrimLayerColorStops(O);O=((O==null?void 0:O.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(O=180);_.wz("HTML_DIR")==="rtl"&&(O=-O);x&&(_.$U(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+O+"deg, "+x+")")};
_.b.isNarrower=function(){return this.hostElement.clientWidth<tu.NARROW_VERSION_SIZE};
_.b.getScrimLayerColorStops=function(){var O,x=(O=this.data)==null?void 0:O.scrimColorValues;if(!x)return null;if(x.length===1)return O=_.aF(x[0]),O+" 0%, "+O+" 100%";if(x.length===3){var e=[0,72,98];return x.map(function(l,C){return _.aF(l)+" "+e[C]+"%"}).join(",")}return null};
_.b.getBackgroundImageUrl=function(O){return O&&O.largeFormFactorBackgroundThumbnail?_.Sf((O.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||O.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.b.onPlaying=function(){this.startVideoTimeout()};
_.b.onEnded=function(){this.rotate()};
_.b.startPanelTimeout=function(){var O=this;if(!this.panelTimeoutJobId){var x=this.get("data.minPanelDisplayDurationMs");x&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.zl(_.vn,function(){O.rotate()},x))}};
_.b.startVideoTimeout=function(){var O=this;if(!this.videoTimeoutJobId){_.vn.cancelJob(this.panelTimeoutJobId);var x=Date.now()-this.panelTimeoutJobStartMs;x=Math.max(0,this.get("data.minPanelDisplayDurationMs")-x);x=Math.max(this.get("data.minVideoPlayDurationMs")||0,x);this.videoTimeoutJobId=_.zl(_.vn,function(){O.rotate()},x)}};
_.b.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.vn.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.vn.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.b.rotate=function(){this.clearTimeouts();_.wr(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Dy.Object.defineProperties(tu.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.$U(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.$U(this.hostElement).querySelector("#video")}}});
_.Dy.Object.defineProperties(tu,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
tu.prototype.onEnded=tu.prototype.onEnded;tu.prototype.onPlaying=tu.prototype.onPlaying;tu.prototype.dataChanged=tu.prototype.dataChanged;_.B([_.V(_.lZ),_.v("design:type",Object)],tu.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],tu.prototype,"componentBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],tu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.V(_.gdQ),_.v("design:type",Object)],tu.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],tu.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"disableGridStateAware",void 0);_.B([_.R(),_.v("design:type",Object)],tu.prototype,"data",void 0);_.B([_.R({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.v("design:type",String)],tu.prototype,"panelLayout",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"animationEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"transitioningOut",void 0);
_.B([_.R({computed:"computeMetadataOrder(data)"}),_.v("design:type",Boolean)],tu.prototype,"metadataOrder",void 0);_.B([_.R({computed:"computeByline(data)"}),_.v("design:type",Object)],tu.prototype,"byline",void 0);_.B([_.R({computed:"computeAvatarSize(data)"}),_.v("design:type",Number)],tu.prototype,"avatarSize",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"narrow",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"narrower",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"layoutStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tu.prototype,"isCarouselInFeed",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tu.prototype,"dataChanged",null);_.B([_.bH("yt-default-promo-panel-renderer-playing"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tu.prototype,"onPlaying",null);
_.B([_.bH("yt-default-promo-panel-renderer-ended"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tu.prototype,"onEnded",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],tu);
_.n(tu,"ytd-default-promo-panel-renderer",function(){if(cLT!==void 0)return cLT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return cLT=O},{mode:1});_.tI("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var q6=function(){var O=_.a.apply(this,arguments)||this;O.narrower=!1;O.dotMenuVisible=!1;O.paginationThumbnailsVisible=!1;O.active=!0;O.disableGridStateAware=!1;O.actionMap={"yt-window-resized":"onWindowResized"};return O};
_.c(q6,_.a);_.b=q6.prototype;_.b.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]]"}}}}}};
_.b.attached=function(){document.addEventListener("yt-page-type-changed",_.Qa(this,this.onPageTypeChange));this.currentPageSubtype=_.C6w(location.pathname);this.onWindowResized()};
_.b.detached=function(){this.jobId&&_.vn.cancelJob(this.jobId);this.updateSizeJobId&&_.vn.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Qa(this,this.onPageTypeChange))};
_.b.onPageTypeChange=function(O){this.active=O.detail.newPageSubtype===this.currentPageSubtype};
_.b.onWindowResized=function(){this.updateSize()};
_.b.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.b.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.b.setCarouselItem=function(O){O>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.vn.cancelJob(this.jobId);var x=this.getCurrentPanelElement();x&&x.stopVideo();this.currentItemIndex=O%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(x||(x=this.getCurrentPanelElement()),x.playVideo()):this.startRotationJob()};
_.b.scrollThumbnails=function(O){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var x=this.getCurrentPaginationElement();if(x){var e=_.$U(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?e.style.transform="translateX(0)":(x=x.offsetWidth+8,e.style.transform="translateX(-"+x*(O-Math.ceil(Math.floor(this.overlay.offsetWidth/x)/2)+1)+"px)")}}};
_.b.onDataChanged=function(){var O=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.e1(_.vn,function(){var x;(x=O.getCurrentPanelElement())==null||x.updateSize();O.updateSize()}))};
_.b.getCurrentPanelElement=function(){return _.$U(_.$U(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.b.getCurrentPaginationElement=function(){return _.$U(_.$U(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.b.getNavigationClass=function(O,x){return O===x?"selected":""};
_.b.getNavigationDurationStyle=function(O){return"animation-duration:"+(this.get("data.carouselItems."+O+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.b.onNavigationTap=function(O){var x=this,e=O.model.index;e!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){x.setCarouselItem(e)}),this.autorotateActive=!1)};
_.b.onVideoThumbnailEnded=function(){var O=this;if(this.shouldRotate()){var x=this.getCurrentPaginationElement();x&&(x.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){x.classList.remove("finished");O.setNextCarouselItem()}))}};
_.b.onVideoThumbnailError=function(){this.startRotationJob()};
_.b.onVideoNotPlaying=function(){this.startRotationJob()};
_.b.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.b.startRotationJob=function(){var O=this;_.vn.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.vn.addLowPriorityJob(function(){O.getCurrentPanelElement().transitionOut().then(function(){O.setNextCarouselItem()})},this.rotationTimeout))};
_.b.computeDotMenuVisible=function(O,x){return!!O&&!!O.carouselItems&&O.carouselItems.length>1&&!O.paginationThumbnails||!!x};
_.b.computePaginationThumbnailsVisible=function(O,x){var e,l;return((l=O==null?void 0:(e=O.paginationThumbnails)==null?void 0:e.length)!=null?l:0)>1&&!x};
_.b.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.b.computePaginatorAlignment=function(O){return(O==null?void 0:O.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.b.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.b.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.b.isNarrower=function(O){return(O!=null?O:0)<tu.NARROW_VERSION_SIZE};
q6.prototype.activeChanged=q6.prototype.activeChanged;q6.prototype.onVideoNotPlaying=q6.prototype.onVideoNotPlaying;q6.prototype.onVideoThumbnailError=q6.prototype.onVideoThumbnailError;q6.prototype.onVideoThumbnailEnded=q6.prototype.onVideoThumbnailEnded;q6.prototype.onDataChanged=q6.prototype.onDataChanged;_.B([_.V(_.lZ),_.v("design:type",Object)],q6.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],q6.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],q6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],q6.prototype,"currentItem",void 0);
_.B([_.R(),_.v("design:type",Number)],q6.prototype,"currentItemIndex",void 0);_.B([_.R(),_.v("design:type",Number)],q6.prototype,"rotationTimeout",void 0);_.B([_.R(),_.v("design:type",Number)],q6.prototype,"loopCount",void 0);_.B([_.R({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.v("design:type",String)],q6.prototype,"paginatorAlignment",void 0);_.B([_.R(),_.v("design:type",Number)],q6.prototype,"jobId",void 0);
_.B([_.R(),_.v("design:type",Number)],q6.prototype,"updateSizeJobId",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],q6.prototype,"isCarouselInFeed",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q6.prototype,"narrower",void 0);_.B([_.R({computed:"computeDotMenuVisible(data, narrower)"}),_.v("design:type",Object)],q6.prototype,"dotMenuVisible",void 0);
_.B([_.R({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.v("design:type",Object)],q6.prototype,"paginationThumbnailsVisible",void 0);_.B([_.R({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.v("design:type",String)],q6.prototype,"layoutType",void 0);_.B([_.R({value:!0,reflectToAttribute:!0}),_.v("design:type",Boolean)],q6.prototype,"autorotateActive",void 0);_.B([_.R(),_.v("design:type",Object)],q6.prototype,"active",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q6.prototype,"disableGridStateAware",void 0);_.B([_.kX("#overlay"),_.v("design:type",HTMLElement)],q6.prototype,"overlay",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q6.prototype,"onDataChanged",null);
_.B([_.bH("yt-video-thumbnail-ended"),_.bH("yt-default-promo-panel-renderer-rotate"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q6.prototype,"onVideoThumbnailEnded",null);_.B([_.bH("yt-video-thumbnail-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q6.prototype,"onVideoThumbnailError",null);
_.B([_.bH("yt-video-thumbnail-not-playing"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q6.prototype,"onVideoNotPlaying",null);_.B([_.G1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q6.prototype,"activeChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],q6);
_.n(q6,"ytd-carousel-item-renderer",function(){if(Pr7!==void 0)return Pr7;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Pr7=O},{mode:2});var RsI;var U$E;var anT;var m$o;var Pc=function(){var O=_.a.apply(this,arguments)||this;O.originalQuery=null;O.originalEndpoint=null;return O};
_.c(Pc,_.a);Pc.prototype.computeShowOriginalQueryWithoutEndpoint_=function(O,x){return!(!O||x)};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Pc.prototype,"correctedText",void 0);_.B([_.R(),_.v("design:type",Object)],Pc.prototype,"correctedQuery",void 0);_.B([_.R(),_.v("design:type",Object)],Pc.prototype,"correctedEndpoint",void 0);_.B([_.R(),_.v("design:type",Object)],Pc.prototype,"originalText",void 0);_.B([_.R(),_.v("design:type",Object)],Pc.prototype,"originalQuery",void 0);
_.B([_.R(),_.v("design:type",Object)],Pc.prototype,"originalEndpoint",void 0);_.B([_.R({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.v("design:type",Boolean)],Pc.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.B([_.Va({is:"yt-search-query-correction",disableElementRegistration:!0})],Pc);
_.n(Pc,"yt-search-query-correction",function(){if(m$o===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;anT===void 0&&(anT=document.createElement("template"));var l=anT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);m$o=O}O=m$o;return O},{mode:2});_.tI("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var smI=function(){return _.a.apply(this,arguments)||this};
_.c(smI,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],smI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],smI.prototype,"data",void 0);_.B([_.Va({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],smI);
_.n(smI,"yt-did-you-mean-renderer",function(){if(U$E===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;RsI===void 0&&(RsI=document.createElement("template"));var l=RsI;e.call(x,l.content.cloneNode(!0),O.content.firstChild);U$E=O}O=U$E;return O},{mode:2});var WLk;var hsh;_.tI("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var zss=function(){return _.a.apply(this,arguments)||this};
_.c(zss,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zss.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zss.prototype,"data",void 0);_.B([_.Va({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],zss);
_.n(zss,"yt-including-results-for-renderer",function(){if(hsh===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;WLk===void 0&&(WLk=document.createElement("template"));var l=WLk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);hsh=O}O=hsh;return O},{mode:2});var rLh;var HVI;_.tI("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var cc=function(){return _.a.apply(this,arguments)||this};
_.c(cc,_.a);cc.prototype.computeExtraClasses_=function(O,x){var e="";O&&(e+=" "+O.toLowerCase().replace(/_/g,"-"));x&&(e+=" "+x.toLowerCase().replace(/_/g,"-"));return e};
cc.prototype.computeUrlImg_=function(){var O=this.data;O.image&&(_.$U(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Sf(O.image.thumbnails,Number.MAX_VALUE)+")")};
cc.prototype.computeUrlImg_=cc.prototype.computeUrlImg_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cc.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],cc.prototype,"computeUrlImg_",null);_.B([_.Va({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],cc);
_.n(cc,"yt-music-pass-feature-info-renderer",function(){if(HVI===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;rLh===void 0&&(rLh=document.createElement("template"));var l=rLh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);HVI=O}O=HVI;return O},{mode:2});var KLw;var d$o;_.tI("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var nWy=function(){return _.a.apply(this,arguments)||this};
_.c(nWy,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nWy.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],nWy.prototype,"data",void 0);_.B([_.Va({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],nWy);
_.n(nWy,"yt-no-results-found-showing-results-for-renderer",function(){if(d$o===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;KLw===void 0&&(KLw=document.createElement("template"));var l=KLw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);d$o=O}O=d$o;return O},{mode:2});var urc;var Y8y;_.tI("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var B7H=function(){return _.a.apply(this,arguments)||this};
_.c(B7H,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],B7H.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],B7H.prototype,"data",void 0);_.B([_.Va({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],B7H);
_.n(B7H,"yt-results-without-quotes-renderer",function(){if(Y8y===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;urc===void 0&&(urc=document.createElement("template"));var l=urc;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Y8y=O}O=Y8y;return O},{mode:2});var vWs;var fnc;_.tI("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var JLh=function(){return _.a.apply(this,arguments)||this};
_.c(JLh,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JLh.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JLh.prototype,"data",void 0);_.B([_.Va({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],JLh);
_.n(JLh,"yt-search-no-results-renderer",function(){if(fnc===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;vWs===void 0&&(vWs=document.createElement("template"));var l=vWs;e.call(x,l.content.cloneNode(!0),O.content.firstChild);fnc=O}O=fnc;return O},{mode:2});var wiy;var S8T;_.tI("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var jma=function(){return _.a.apply(this,arguments)||this};
_.c(jma,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jma.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],jma.prototype,"data",void 0);_.B([_.Va({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],jma);
_.n(jma,"yt-showing-results-for-renderer",function(){if(S8T===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;wiy===void 0&&(wiy=document.createElement("template"));var l=wiy;e.call(x,l.content.cloneNode(!0),O.content.firstChild);S8T=O}O=S8T;return O},{mode:2});var N7o;var gWU;var $$y;var iVy;var I_=function(){var O=_.a.apply(this,arguments)||this;O.answerExpanded=!1;return O};
_.c(I_,_.a);I_.prototype.toggleAnswer_=function(O){var x=_.uK(O);x&&x.classList.contains("yt-simple-endpoint")||(O.preventDefault(),O.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
I_.prototype.toggleAnswer_=I_.prototype.toggleAnswer_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],I_.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],I_.prototype,"answerExpanded",void 0);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],I_.prototype,"toggleAnswer_",null);
_.B([_.Va({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],I_);
_.n(I_,"yt-generic-faq-question-renderer",function(){if(iVy===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;$$y===void 0&&($$y=document.createElement("template"));var l=$$y;e.call(x,l.content.cloneNode(!0),O.content.firstChild);iVy=O}O=iVy;return O},{mode:2});_.tI("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var V0=function(){return _.a.apply(this,arguments)||this};
_.c(V0,_.a);V0.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],V0.prototype,"data",void 0);_.B([_.Va({is:"yt-faq-section-renderer",disableElementRegistration:!0})],V0);
_.n(V0,"yt-faq-section-renderer",function(){if(gWU===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;N7o===void 0&&(N7o=document.createElement("template"));var l=N7o;e.call(x,l.content.cloneNode(!0),O.content.firstChild);gWU=O}O=gWU;return O},{mode:2});var O2U;var xkU;_.tI("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var pF=function(){return _.a.apply(this,arguments)||this};
_.c(pF,_.a);
pF.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pF.prototype,"data",void 0);_.B([_.Va({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],pF);
_.n(pF,"yt-offer-item-expanded-renderer",function(){if(xkU===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;O2U===void 0&&(O2U=document.createElement("template"));var l=O2U;e.call(x,l.content.cloneNode(!0),O.content.firstChild);xkU=O}O=xkU;return O},{mode:2});var eLa;var lDI;_.tI("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var R_=function(){return _.a.apply(this,arguments)||this};
_.c(R_,_.a);
R_.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"}}}}};
R_.prototype.computeFullWidthMode=function(O){return!(!O||!O.fullWidthMode)};
R_.prototype.computeBorderlessMode=function(O){return!(!O||!O.borderlessMode)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],R_.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.v("design:type",Boolean)],R_.prototype,"fullWidthMode",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.v("design:type",Boolean)],R_.prototype,"borderlessMode",void 0);_.B([_.Va({is:"yt-offer-item-renderer",disableElementRegistration:!0})],R_);
_.n(R_,"yt-offer-item-renderer",function(){if(lDI===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;eLa===void 0&&(eLa=document.createElement("template"));var l=eLa;e.call(x,l.content.cloneNode(!0),O.content.firstChild);lDI=O}O=lDI;return O},{mode:2});var CFw;var Qzs;_.tI("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var UG=function(){return _.a.apply(this,arguments)||this};
_.c(UG,_.a);UG.prototype.computeAriaLevel_=function(O){return this.getLevelID_(O)};
UG.prototype.getLevelID_=function(O){return(O=O.match(/[0-9]+$/))&&O.length==1?O[0]:"1"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],UG.prototype,"data",void 0);_.B([_.R({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.v("design:type",String)],UG.prototype,"ariaLevel",void 0);_.B([_.R({value:"heading",reflectToAttribute:!0}),_.v("design:type",String)],UG.prototype,"role",void 0);
_.B([_.R({value:-1,reflectToAttribute:!0}),_.v("design:type",Number)],UG.prototype,"tabindex",void 0);_.B([_.Va({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],UG);
_.n(UG,"yt-subscription-product-header-renderer",function(){if(Qzs===void 0){var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;CFw===void 0&&(CFw=document.createElement("template"));var l=CFw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Qzs=O}O=Qzs;return O},{mode:2});var b27;var TNS;_.tI("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var a_=function(){return _.a.apply(this,arguments)||this};
_.c(a_,_.a);a_.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:_.q5("menuRenderer"),events:!0}}};
a_.prototype.onStampFinished_=function(){_.$U(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
a_.prototype.onStampFinished_=a_.prototype.onStampFinished_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],a_.prototype,"data",void 0);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],a_.prototype,"onStampFinished_",null);
_.B([_.Va({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],a_);
_.n(a_,"yt-subscription-product-renderer",function(){if(TNS===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;b27===void 0&&(b27=document.createElement("template"));var l=b27;e.call(x,l.content.cloneNode(!0),O.content.firstChild);TNS=O}O=TNS;return O},{mode:2});var L3I;var kpT;_.tI("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var m4=function(){return _.a.apply(this,arguments)||this};
_.c(m4,_.a);m4.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
m4.prototype.imageScrimColorValuesChanged_=function(){var O,x=(O=this.data)==null?void 0:O.imageScrimColorValues;_.$U(this.hostElement).querySelector("#scrim").style.backgroundColor=x?_.aF(x[0]):"transparent"};
m4.prototype.imageScrimColorValuesChanged_=m4.prototype.imageScrimColorValuesChanged_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],m4.prototype,"data",void 0);
_.B([_.T1("data.imageScrimColorValues"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],m4.prototype,"imageScrimColorValuesChanged_",null);_.B([_.Va({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],m4);
_.n(m4,"yt-subscription-product-upsell-offer-renderer",function(){if(kpT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;L3I===void 0&&(L3I=document.createElement("template"));var l=L3I;e.call(x,l.content.cloneNode(!0),O.content.firstChild);kpT=O}O=kpT;return O},{mode:2});var AJ7;var M$w;var Dkw;var GpH;var F3H;var Xdy;var sG=function(){return _.a.apply(this,arguments)||this};
_.c(sG,_.a);sG.prototype.onYtServiceRequestError_=function(O){_.s9(this.hostElement,O.detail.error.message)};
sG.prototype.onYtServiceRequestError_=sG.prototype.onYtServiceRequestError_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sG.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],sG.prototype,"collapsible",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],sG.prototype,"isManageRed",void 0);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],sG.prototype,"onYtServiceRequestError_",null);_.B([_.Va({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],sG);
_.n(sG,"yt-single-ypc-offer-renderer",function(){if(Xdy===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;F3H===void 0&&(F3H=document.createElement("template"));var l=F3H;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Xdy=O}O=Xdy;return O},{mode:2});var Wc=function(){return _.a.apply(this,arguments)||this};
_.c(Wc,_.a);Wc.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Wc.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Wc.prototype,"isManageRed",void 0);_.B([_.Va({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Wc);
_.n(Wc,"yt-single-ypc-offer-list-renderer",function(){if(GpH===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;Dkw===void 0&&(Dkw=document.createElement("template"));var l=Dkw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);GpH=O}O=GpH;return O},{mode:2});var odw;var yJo;_.tI("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var hu=function(){return _.a.apply(this,arguments)||this};
_.c(hu,_.a);hu.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hu.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],hu.prototype,"isManageRed",void 0);_.B([_.Va({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],hu);
_.n(hu,"yt-ypc-offers-list-renderer",function(){if(yJo===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;odw===void 0&&(odw=document.createElement("template"));var l=odw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yJo=O}O=yJo;return O},{mode:2});_.tI("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var zF=function(){return _.a.apply(this,arguments)||this};
_.c(zF,_.a);
zF.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zF.prototype,"data",void 0);_.B([_.Va({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],zF);
_.n(zF,"yt-unlimited-manage-subscription-page-renderer",function(){if(M$w===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;AJ7===void 0&&(AJ7=document.createElement("template"));var l=AJ7;e.call(x,l.content.cloneNode(!0),O.content.firstChild);M$w=O}O=M$w;return O},{mode:2});var Z2h;var Ed7;var r5=function(){return _.a.apply(this,arguments)||this};
_.c(r5,_.a);_.b=r5.prototype;_.b.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.b.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.b.onKeypress_=function(O){O.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.b.handleHeaderTap_=function(O){O.preventDefault();O.stopPropagation();this.expandOffers_()};
_.b.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.b.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
r5.prototype.dataChanged_=r5.prototype.dataChanged_;_.B([_.V(_.cg),_.v("design:type",Object)],r5.prototype,"ironA11yKeysBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],r5.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],r5.prototype,"offersVisible_",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],r5.prototype,"dataChanged_",null);_.B([_.Va({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],r5);
_.n(r5,"yt-collapsible-ypc-offer-renderer",function(){if(Ed7===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Z2h===void 0&&(Z2h=document.createElement("template"));var l=Z2h;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Ed7=O}O=Ed7;return O},{mode:2});var t$H;var qTo;_.tI("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Hc=function(){return _.a.apply(this,arguments)||this};
_.c(Hc,_.a);_.b=Hc.prototype;_.b.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.b.dataChanged_=function(){if(this.data.backgroundImage){var O=_.Sf(this.data.backgroundImage.thumbnails,screen.width),x=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=x?"linear-gradient(180deg, "+x+"), url("+O+")":"url("+O+")";this.data.gtmId&&_.Yq(this.data.gtmId,_.wz("GL",""))}};
_.b.onYtServiceRequestError_=function(O){_.s9(this.hostElement,O.detail.error.message)};
_.b.getScrimLayerColorStops_=function(){var O,x,e=(O=this.data.unlimitedHeaderV2Data)==null?void 0:(x=O.unlimitedHeaderV2Data)==null?void 0:x.scrimLayerColors;if(!e)return null;var l=100/e.length;return e.map(function(C,Q){Q*=l;return _.aF(C)+" "+Q+"%"}).join(",")};
_.b.computeLogoWithPadding=function(O){var x,e,l;return(O=(x=O.unlimitedLogoImage)==null?void 0:(e=x.thumbnails)==null?void 0:(l=e[0])==null?void 0:l.height)&&O%31===0?!0:!1};
Hc.prototype.onYtServiceRequestError_=Hc.prototype.onYtServiceRequestError_;Hc.prototype.dataChanged_=Hc.prototype.dataChanged_;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.B([_.R({computed:"computeLogoWithPadding(data)"}),_.v("design:type",Boolean)],Hc.prototype,"logoWithPadding",void 0);
_.B([_.R(),_.v("design:type",Object)],Hc.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Hc.prototype,"dataChanged_",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Hc.prototype,"onYtServiceRequestError_",null);_.B([_.Va({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Hc);
_.n(Hc,"yt-unlimited-page-header-renderer",function(){if(qTo===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;t$H===void 0&&(t$H=document.createElement("template"));var l=t$H;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qTo=O}O=qTo;return O},{mode:2});var PFa;var cJw;_.tI("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var KF=function(){return _.a.apply(this,arguments)||this};
_.c(KF,_.a);KF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],KF.prototype,"data",void 0);_.B([_.Va({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],KF);
_.n(KF,"yt-unlimited-user-notification-renderer",function(){if(cJw===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;PFa===void 0&&(PFa=document.createElement("template"));var l=PFa;e.call(x,l.content.cloneNode(!0),O.content.firstChild);cJw=O}O=cJw;return O},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.$w$=_.K(function(O){var x=_.YX(O,{numberOfChips:5}).numberOfChips;return _.D("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.D(_.HE,{each:function(){return Array(x==null?void 0:x())}},function(){return _.D("div",{class:"ytGhostChipShelfChip"})}))},"Ti");_.i3T=_.K(function(O){var x=function(){var L;return((L=O.data)==null?void 0:L.call(O).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},e=_.C5(),l=_.GG().resolve(_.K_);
_.u8(function(){requestAnimationFrame(function(){var L;(L=e.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var k;(k=O.onLottieLoaded)==null||k.call(O)})})});
var C=function(){var L;return(L=O.data)==null?void 0:L.call(O).loadingAnimationA11yLabel},Q={};
return _.D("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var L;return((L=O.data)==null?void 0:L.call(O).targetId)||""},
"aria-label":function(){return C()||""},
role:function(){return C()?"progressbar":void 0}},_.D(_.hc,{"aria-hidden":"true",
className:_.xz((Q.ytChatLoadingViewModelRtl=l==="rtl",Q)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:x()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||x()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:x()}}},
animationRef:e}))},"Vi");
}catch(e){_._DumpException(e)}
try{
var syL,W1e,hR$,rap,HwX,K1p,d3$,ngw,u6Y,YZQ,jyX,Kv,SZ4,vg4,wDh,Jae,f9e,Bah,NaX,ggQ,$3L,iwY,dt,OGL,xyu,CO$,us,e6h,v_,nv,YA,lyL,B_,Qpp,bGu,TMu,LNu,kS$,A_L,Mlw,GS4,FNL,XoX,o_w,y_L,ZGT,E_p,tlQ,qvu,c_T,Iy4,Vlp,R6L,ayT,spp,WNp,h6L,z64,HGQ,KNQ,dyh,n_$,upL,YvQ,BMT,fyp,jpe,SvT,J_L,NMp,woL,g_w,x9$,O1e,$yY,iG$,JV,eoQ,ChQ,Qgh,b1X,D94,G0$,FH4,XqL,o7w,ysL,Z1$,E7u,thO,qbu,csL,Ifp,Vhp,pqQ,RoY,U9Y,afQ,m9L,WHY,k0$;
_.rt=function(O){var x=new _.ry("Error accessing DB");return _.W0n().then(function(e){return new Promise(function(l,C){try{var Q=e.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(O);Q.onsuccess=function(){var L=Q.result;l(L?L.value:null)};
Q.onerror=function(){x.params={key:O,source:"onerror"};C(x)}}catch(L){x.params={key:O,
thrownError:String(L)},C(x)}})},function(){return null})};
syL=function(O,x){return _.xE(O.entities,"inlineExpansionEntity",x)};
W1e=function(O,x){return _.xE(O.entities,"flowStateEntity",x)};
hR$=function(O,x){if(O&&x){var e=_.kp();e().set(O,x);_.F$r(e())}};
_.zRL=function(O,x){if(O&&x){var e=_.kp();e().set(O,x);_.F$r(e())}};
rap=function(O,x){return _.xE(O.entities,"contextNoteUserRatingEntityPayload",x)};
HwX=function(O){return _.r7(O,function(x){return x.languageCode==="en"})};
K1p=function(O){var x=H_;if(_.vbe(O))O.setOption("captions","stickyLoading",{}),O.setOption("captions","track",{});else{var e=_.r7(_.ZFV(O),function(l){return l.displayName===x});
O.setOption("captions","track",e)}};
d3$=function(O){if(!O)return 0;var x=O.getPresentingPlayerType(),e=O.getVideoData();return e&&e.isLive?(O=O.getProgressState(x),O.seekableEnd-O.seekableStart):O.getDuration(x)};
ngw=function(O,x){for(var e=_.T(Object.keys(O)),l=e.next();!l.done;l=e.next())if(l=l.value,O[l]!==x[l])return!1;return!0};
u6Y=function(){return document.getElementById("player-control-overlay")};
YZQ=function(O){O!==-1&&!_.t("player_controls_log_creation_killswitch")&&u6Y()&&(_.IR("pcu_cs",O),_.IR("pcu_ce"))};
jyX=function(O,x){var e=_.uH(O,{}),l=Bah("top",x),C=Bah("bottom",x),Q=Bah("left",x),L=Bah("right",x);return _.T7({top:function(){return Kv(e().position,l)},
bottom:function(){return Kv(e().position,C)},
left:function(){return Kv(e().position,Q)},
right:function(){return Kv(e().position,L)},
position:function(){return Kv(e().positionType,vg4)},
height:function(){return Kv(e().height,dt)},
width:function(){return Kv(e().width,dt)},
"min-width":function(){return Kv(e().minWidth,dt)},
"min-height":function(){return Kv(e().minHeight,dt)},
"max-width":function(){return Kv(e().maxWidth,dt)},
"max-height":function(){return Kv(e().maxHeight,dt)},
"aspect-ratio":function(){return Kv(e().aspectRatio,String)},
"margin-top":function(){return Kv(e().margin,l)},
"margin-bottom":function(){return Kv(e().margin,C)},
"margin-left":function(){return Kv(e().margin,Q)},
"margin-right":function(){return Kv(e().margin,L)},
"padding-top":function(){return Kv(e().padding,l)},
"padding-bottom":function(){return Kv(e().padding,C)},
"padding-left":function(){return Kv(e().padding,Q)},
"padding-right":function(){return Kv(e().padding,L)},
"flex-direction":function(){return Kv(e().flexDirection,f9e)},
"justify-content":function(){return Kv(e().justifyContent,Jae)},
"align-items":function(){return Kv(e().alignItems,wDh)},
"flex-grow":function(){return Kv(e().flexGrow,String)},
"flex-shrink":function(){return Kv(e().flexShrink,String)},
"flex-basis":function(){return Kv(e().flexBasis,dt)},
"align-self":function(){return Kv(e().alignSelf,wDh)},
"flex-wrap":function(){return Kv(e().flexWrap,SZ4)},
"align-content":function(){return Kv(e().alignContent,wDh)}})};
Kv=function(O,x){return O!==void 0?x(O):void 0};
SZ4=function(O){switch(O){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
vg4=function(O){switch(O){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
wDh=function(O){switch(O){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"}};
Jae=function(O){switch(O){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"}};
f9e=function(O){switch(O){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"}};
Bah=function(O,x){var e=x==="rtl";switch(O){case "top":var l=NaX;break;case "bottom":l=ggQ;break;case "left":l=$3L;break;default:l=iwY}return function(C){return Kv(l(C,e),dt)}};
NaX=function(O){var x=O.top;var e=O.vertical;O=O.all;var l;return(l=x!=null?x:e)!=null?l:O};
ggQ=function(O){var x=O.bottom;var e=O.vertical;O=O.all;var l;return(l=x!=null?x:e)!=null?l:O};
$3L=function(O,x){var e=O.left;var l=O.end;var C=O.start;var Q=O.horizontal;O=O.all;var L,k;return(k=(L=e!=null?e:x?l:C)!=null?L:Q)!=null?k:O};
iwY=function(O,x){var e=O.right;var l=O.end;var C=O.start;var Q=O.horizontal;O=O.all;var L,k;return(k=(L=e!=null?e:x?C:l)!=null?L:Q)!=null?k:O};
dt=function(O){var x=O.value;switch(O.unit){case "YPC_DIMENSION_UNIT_POINT":return x+"px";case "YPC_DIMENSION_UNIT_FRACTION":return x+"%";default:return""+x}};
OGL=function(O){switch(O){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"}};
xyu=function(O){var x=O!=null?O:{};O=x.fontRole;var e=x.fontSize;x=x.fontWeight;if(O!==null&&e!==null)switch(O){case "YPC_FONT_ROLE_DISPLAY":switch(e){case "YPC_FONT_SIZE_L":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(e){case "YPC_FONT_SIZE_L":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return x===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(e){case "YPC_FONT_SIZE_XL":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
CO$=function(O,x,e){function l(y){return Object.values(y).map(function(Z){var E=Z.productId;Z=Z.pricingOptionIndex;return nv(C(E).pricingOptions,Z).pricingOptionId})}
function C(y){return M().get(y)}
function Q(y){y=l(y);e(y)}
function L(y,Z){return Array.from(us(y.pricingOptions)).filter(function(E){E=_.T(E);E.next();E=E.next().value;return YA(E.pricingGroupAttributes,Z)}).map(function(E){return _.T(E).next().value})}
var k=B_([O,x],function(y,Z){var E=y==null?void 0:y.selectedPricingOptions;y={};var P=!0;if(E&&Z.length)for(var U=_.T(Z),W=U.next();!W.done;W=U.next()){W=W.value;var z=e6h(W.pricingOptions,function(u){a:{u=u.pricingOptionId;for(var Y=_.T(E),J=Y.next();!J.done;J=Y.next())if(J.value===u){u=!0;break a}u=!1}return u});
if(z>=0){P=!1;var r=nv(W.pricingOptions,z),f=void 0;y[W.groupId]={productId:W.productId,pricingOptionIndex:z,pricingGroupAttributes:(f=r)==null?void 0:f.pricingGroupAttributes}}}P&&Z.length&&(P=nv(Z[0].pricingOptions,0),y[Z[0].groupId]={productId:Z[0].productId,pricingOptionIndex:0,pricingGroupAttributes:P==null?void 0:P.pricingGroupAttributes});return y}),M=B_([x],function(y){return new Map(y.map(function(Z){return[Z.productId,
Z]}))}),G=B_([x],function(y){var Z=new Map;
y=_.T(y);for(var E=y.next();!E.done;E=y.next()){var P=E.value;E=P.groupId;var U=P.productId;P=_.T(us(P.pricingOptions));for(var W=P.next();!W.done;W=P.next()){var z=_.T(W.value);W=z.next().value;z=z.next().value;Z.set(z.pricingOptionId,{groupId:E,productId:U,index:W,pricingOption:z,pricingGroupAttributes:z.pricingGroupAttributes})}}return Z}),X=B_([x],function(y){var Z=new Map;
y=_.T(y);for(var E=y.next();!E.done;E=y.next()){var P=E.value;E=P.groupId;var U=P.productId,W=void 0;P=_.T(us((W=P.pricingGroups)!=null?W:[]));for(W=P.next();!W.done;W=P.next()){var z=_.T(W.value);W=z.next().value;z=z.next().value;Z.set(z.pricingGroupId,{groupId:E,productId:U,index:W,pricingGroup:z,pricingGroupAttributes:z.pricingGroupAttributes})}}return Z});
return{getProductById:C,isProductSelected:function(y){var Z=C(y);if(!Z)return!1;var E;return((E=k()[Z.groupId])==null?void 0:E.productId)===y},
getSelectedPricingOptions:function(){return Object.values(k()).map(function(y){var Z=y.productId;y=y.pricingOptionIndex;return nv(C(Z).pricingOptions,y)})},
getSelectedPricingGroupAttributesByGroupId:function(y){var Z;return(y=(Z=k()[y])==null?void 0:Z.pricingGroupAttributes)?Array.from(y):void 0},
getSelectedProductByGroupId:function(y){var Z;return(y=(Z=k()[y])==null?void 0:Z.productId)?C(y):void 0},
onProductSelected:function(y){var Z=C(y);if(Z){var E=k(),P;if(((P=E[Z.groupId])==null?void 0:P.productId)!==y){var U=(P=(U=E[Z.groupId])==null?void 0:U.productId)?C(P):void 0;var W;P=(W=E[Z.groupId])==null?void 0:W.pricingGroupAttributes;var z;W=(z=E[Z.groupId])==null?void 0:z.pricingOptionIndex;if(U&&W!==void 0)if(P){z=L(U,P).indexOf(W);if(z===-1)throw Error("Uj`"+W+"`"+U.productId);W=L(Z,P);z=z<W.length?W[z]:W.length>0?W[0]:0}else z=W<v_(Z.pricingOptions)?W:0;else z=0;v_(Z.pricingOptions)<=z&&(z=
0);W=nv(Z.pricingOptions,z);var r;U={};Q(Object.assign({},E,(U[Z.groupId]={productId:y,pricingOptionIndex:z,pricingGroupAttributes:(r=W==null?void 0:W.pricingGroupAttributes)!=null?r:[]},U)))}}},
onPricingOptionSelected:function(y){var Z=G().get(y);if(Z){y=Z.groupId;var E=Z.productId;Z=Z.index;var P=k(),U,W;if(((U=P[y])==null?void 0:U.productId)!==E||((W=P[y])==null?void 0:W.pricingOptionIndex)!==Z){var z,r;U={};Q(Object.assign({},P,(U[y]={productId:E,pricingOptionIndex:Z,pricingGroupAttributes:(r=(z=P[y])==null?void 0:z.pricingGroupAttributes)!=null?r:[]},U)))}}},
onPricingGroupSelected:function(y){var Z=X().get(y);if(Z){y=Z.groupId;var E=Z.productId,P=Z.pricingGroup.pricingGroupAttributes,U=C(E);if(U){Z=k();var W=Z[y].pricingGroupAttributes,z;if(((z=Z[y])==null?void 0:z.productId)!==E||!YA(lyL(W,v_(P)),P)){z=Array.from(P);for(P=v_(P);P<v_(W);P++){var r="",f=!1,u=Array.from(z);u.push(nv(W,P));for(var Y=_.T(U.pricingGroups),J=Y.next();!J.done;J=Y.next())if(J=J.value,YA(J.pricingGroupAttributes,u)){z.push(nv(W,P));f=!0;break}else r===""&&v_(J.pricingGroupAttributes)===
u.length&&YA(lyL(J.pricingGroupAttributes,z.length),z)&&(r=nv(J.pricingGroupAttributes,P));f||z.push(r)}r=Z[y].pricingOptionIndex;P=[];f=new Map;u=0;U=_.T(us(U.pricingOptions));for(Y=U.next();!Y.done;Y=U.next())J=_.T(Y.value),Y=J.next().value,J=J.next().value,YA(J.pricingGroupAttributes,z)&&P.push(Y),YA(J.pricingGroupAttributes,W)&&f.set(Y,u++);P.length===0?W=0:(W=f.get(r),W=W!==void 0&&W<P.length?P[W]:P[0]);U={};Q(Object.assign({},Z,(U[y]={productId:E,pricingOptionIndex:W,pricingGroupAttributes:z},
U)))}}}},
onClearGroupSelected:function(y){var Z=k();Z[y]&&(Z=Object.fromEntries(Object.entries(Z).filter(function(E){return _.T(E).next().value!==y})),Q(Z))}}};
us=function(O){return function e(){var l,C,Q,L,k;return _.SK(e,function(M){switch(M.nextAddress){case 1:_.cO(M,2),l=0,C=_.T(O),Q=C.next();case 4:if(Q.done){M.jumpTo(2);break}L=Q.value;k=_.jK;return M.yield([l++,L],7);case 7:k(M.yieldResult);Q=C.next();M.jumpTo(4);break;case 2:_.PO(M),_.Ia(M,0)}})}()};
e6h=function(O,x){O=_.T(us(O));for(var e=O.next();!e.done;e=O.next()){var l=_.T(e.value);e=l.next().value;l=l.next().value;if(x(l))return e}return-1};
v_=function(O){var x=0;for(O=O[Symbol.iterator]();!O.next().done;)++x;return x};
nv=function(O,x){O=_.T(us(O));for(var e=O.next();!e.done;e=O.next()){var l=_.T(e.value);e=l.next().value;l=l.next().value;if(e===x)return l}};
YA=function(O,x){if(!O&&!x)return!0;if(!O||!x)return!1;O=Array.from(O);x=Array.from(x);if(O.length!==x.length)return!1;for(var e=0;e<O.length;e++)if(O[e]!==x[e])return!1;return!0};
lyL=function(O,x){x=x===void 0?Infinity:x;var e=[];O=_.T(us(O));for(var l=O.next();!l.done;l=O.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;if(l>=x)break;l>=0&&e.push(C)}return e};
B_=function(O,x){var e,l;return function(){for(var C=O.map(function(L){return L()}),Q=0;Q<C.length;Q++)if(!e||C[Q]!==e[Q]){e=C;
l=x.apply(null,_.Kx(C));break}return l}};
Qpp=function(O,x,e){var l=[];O=_.T(O);for(var C=O.next();!C.done;C=O.next()){C=C.value;var Q=void 0;((Q=x)==null?0:Q.length)&&!YA(C.pricingGroupAttributes,x)||l.push({pricingOption:C,isSelected:e.includes(C.pricingOptionId)})}return l};
bGu=function(O,x){return _.xE(O.entities,"pdpStateEntity",x)};
TMu=function(O){var x,e;return!!(O.productId&&O.groupId&&((x=O.pricingOptions)==null?0:x.length)&&O.pricingOptions.every(function(l){return l.pricingOptionId})&&((e=O.pricingGroups)==null||!e.length||Array.isArray(O.pricingGroups)&&O.pricingGroups.every(function(l){return l.pricingGroupId&&l.pricingGroupAttributes&&l.pricingGroupAttributes.length>0})))};
LNu=function(O,x,e){return CO$(O,B_([x],function(l){return l.filter(TMu)}),e)};
kS$=function(O){var x=void 0,e;for(e in O)if(O.hasOwnProperty(e)){x=e;break}return x};
A_L=function(O,x){return x.length===0?[O]:[O.slice(0,x[0]),O.slice(x[0])].filter(function(e){return e.length>0})};
Mlw=function(O){switch(O){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""}};
GS4=function(O,x,e,l){l=Object.assign({},l);_.qj(l,Dye,{selectedOptionId:O,primaryButtonOverride:e});_.dq().dispatch(_.Dc("flowStateEntity",x,l))};
FNL=function(O){switch(O){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"}};
XoX=function(O){switch(O){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"}};
o_w=function(O,x){if(x)return"ytCardViewModelCardSelected";switch(O){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
y_L=function(O,x){x.includes(O)?x=x.filter(function(e){return e!==O}):x.push(O);
return[].concat(_.Kx(x))};
ZGT=function(O,x){return _.xE(O.entities,"contextNoteFeedEntityPayload",x)};
E_p=function(O,x){switch(O){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return x==null?void 0:x.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return x==null?void 0:x.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return x==null?void 0:x.ratingNotHelpfulText}};
tlQ=function(O,x){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:O.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:O.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:O.deleteDialogTitle}]},dialogMessages:[{runs:[{text:O.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:O.deleteActionText}]},command:{performCommentActionEndpoint:{action:x}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:O.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
qvu=function(O,x,e){var l;if(O&&((l=x())==null?0:l.includes(O))){var C;e((C=x())==null?void 0:C.filter(function(Q){return Q!==O}))}else e([].concat(_.Kx(x()||[]),[O]))};
c_T=function(O,x){if(O){var e=[];x=_.T((x==null?void 0:x.checkboxes)||[]);for(var l=x.next();!l.done;l=x.next()){l=_.q(l.value,POQ);var C=void 0;((C=l)==null?0:C.value)&&O.includes(l.key||"")&&e.push(l.value)}return e}};
Iy4=function(O){O.style.height="auto";O.style.height=O.scrollHeight+"px"};
Vlp=function(O){return[O.syncStep,O.asyncStep].filter(function(x){return x!==void 0})};
R6L=function(O){var x,e,l;if(O=(x=O.structuredContextNoteFormSchema)==null?void 0:(e=x.fieldSchemas)==null?void 0:(l=e.noteBody)==null?void 0:l.validationSchema)for(x=_.T(Vlp(O)),e=x.next();!e.done;e=x.next()){e=e.value.rules;if(!e)break;e=_.T(e);for(e=e.next();!e.done;e=e.next())return _.q(e.value,_.poh)}};
ayT=function(O){if(O){O=_.T(Vlp(O));for(var x=O.next();!x.done;x=O.next()){x=x.value.rules;if(!x)break;x=_.T(x);for(x=x.next();!x.done;x=x.next())return _.q(x.value,UyX)}}};
spp=function(O){if(O){O=_.T(Vlp(O));for(var x=O.next();!x.done;x=O.next()){x=x.value.rules;if(!x)break;x=_.T(x);for(x=x.next();!x.done;x=x.next())return _.q(x.value,myO)}}};
WNp=function(O){O=/^https?:\/\//.test(O)?O:"http://"+O;try{var x=_.xO(O)}catch(e){return!1}if(x.toString()!==O)return!1;O=x.JSC$10027_domain_.split(".");return O.length>1&&O.every(function(e){return!!e})};
h6L=function(O,x,e,l){var C;l=(C=l.structuredContextNoteData)==null?void 0:C.createCommentEndpoint;if(C=_.q(l,_.k$p))return C.commentText=_.KA(O),C.videoPositionMention=x,C.sources=e,l};
z64=function(O){return O==null?void 0:O.stringValue};
HGQ=function(O,x,e){O=O.map(function(l,C){return{listItemViewModel:{title:l.title,subtitle:l.subtitle,leadingImage:l.leadingImage,trailingImage:C===x?r_$:void 0,rendererContext:{commandContext:{onTap:l.onTap}}}}});
return Object.assign({},e&&{header:{panelHeaderViewModel:{title:e}}},{content:{listViewModel:{listItems:O}}})};
KNQ=function(O,x){if(O&&x)switch(x){case "SELECTION_TYPE_BOOL":return O.boolValue;case "SELECTION_TYPE_INT":return O.intValue;case "SELECTION_TYPE_STRING":return O.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return O.privacyStatusValue}};
dyh=function(O){var x;O=(x=O.options)==null?void 0:x.findIndex(function(e){return e.isSelected});
return O===void 0?-1:O};
n_$=function(O,x,e){var l=function(){return O().label},C={},Q=_.xz("ytDropdownViewModelLabel",(C.ytDropdownViewModelLabelError=x,C));
return _.D(_.F,{cond:function(){return O().label&&!(e()===-1&&O().label&&!O().placeholderText)},
then:function(){return _.D("div",{class:Q},_.D(_.TT,{text:l}))}})};
upL=function(O,x){var e={};e=_.xz("ytDropdownViewModelTitle",(e.ytDropdownViewModelTitlePlaceholder=function(){return x()===-1},e));
return _.D("div",{class:e},_.D(_.TT,{text:function(){var l=O();var C=x();if(C===-1)l=l.placeholderText?l.placeholderText:l.label;else{var Q,L;l=(Q=l.options)==null?void 0:(L=Q[C])==null?void 0:L.title}return l}}))};
YvQ=function(O,x){var e=function(){return O().hint};
return _.D(_.Xm,null,_.D(_.F,{cond:function(){return e()&&!x()},
then:function(){return _.D("div",{class:_.xz("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.D(_.TT,{text:e,className:"ytDropdownViewModelSupportText"}))}}),_.D(_.F,{cond:x,
then:function(){return _.D("div",{id:"dropdown-view-model-error",role:"alert",class:_.xz("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.D(_.L7,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.D(_.TT,{text:x,className:"ytDropdownViewModelSupportText"}))}}))};
BMT=function(O,x){var e=_.GG().resolve(_.Ct$);_.YK(function(){var l=O().id;l&&e!=null&&e.dropdownMap.set(l,x)})};
fyp=function(O){O=_.q(O.scheduleButton,v_Q);O=_.q(O==null?void 0:O.primaryButton,_.gf);O=_.q(O==null?void 0:O.onTap,_.VG);var x,e,l=((e=_.q(O,_.ih))==null?void 0:e.commands)||[O];e=_.T(l);for(O=e.next();!O.done&&!(x=_.q(O.value,_.THD));O=e.next());var C;x=(C=x)==null?void 0:C.createBroadcastRequest;if(!x)throw Error("ak");return x};
jpe=function(O,x,e){e=e===void 0?{}:e;var l,C;return _.A(function(Q){if(l=J_L(x))return Q.return(l);(C=woL(O,x,e))&&SvT(x,C);return Q.return(C)})};
SvT=function(O,x){var e=NMp(O);e&&x.then(function(l){_.GG().resolve(_.pj).put(e,new _.RX({innertubeResponse:l}))})};
J_L=function(O){if(O=NMp(O)){var x=_.GG().resolve(_.pj);if(x.has(O))return x.get(O).then(function(e){return e==null?void 0:_.Bb(e)})}return null};
NMp=function(O){var x=_.q(O.endpoint,_.Hq);if(x!=null&&x.videoId)return x={videoId:x.videoId},_.t("web_imp_player_mute_params")&&(x.mutedAtStart=O.startPlaybackInMutedState),_.rr("inline_playback",x)};
woL=function(O,x,e){O=_.z7(O,x.endpoint,g_w(x,e)).then(function(l){return l});
return Promise.resolve(O)};
g_w=function(O,x){x=_.t("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!O.startPlaybackInMutedState},x):Object.assign({},{vis:5,autonav:"1"},x);var e;x={contentPlaybackContext:_.DE(x,(e=_.q(O.endpoint.commandMetadata,_.e6))==null?void 0:e.url,window.location.href)};_.t("web_imp_player_mute_params")&&(x.overrideMutedAtStart=!O.startPlaybackInMutedState);return x};
x9$=function(O,x){var e=window.MutationObserver;e&&(fv=new e(function(l,C){l=_.T(l);for(var Q=l.next();!Q.done;Q=l.next()){Q=Q.value;var L;if(L=Q.type==="childList"&&Q.target)a:{L=O;Q=$yY(Q.target);L=$yY(L);for(var k=null,M=0;M<Q.length;M++)if(L.includes(Q[M])){if(M===0){L=!1;break a}k=Q[M];break}k?(Q=iG$(Q,k),L=iG$(L,k),L=Q<L):L=!1}if(L){x();C.disconnect();break}}}),(e=O1e())&&fv.observe(e,{childList:!0,
subtree:!0}))};
O1e=function(){var O=document.getElementsByTagName("ytd-rich-grid-renderer");if(O.length>0)return O[0];O=document.getElementsByTagName("ytd-section-list-renderer");return O.length>0?O[0]:null};
$yY=function(O){for(var x=[];O;)x.push(O),O=O.parentElement;return x};
iG$=function(O,x){var e=Array.from(x.children);x=O.indexOf(x);return x>0?e.indexOf(O[x-1]):-1};
JV=function(O,x,e){e=e===void 0?{}:e;return _.CZ(O,e,x)};
eoQ=function(O){switch(O){case "MUSIC":return!0;default:return!1}};
ChQ=function(O){if(O=O==null?void 0:O.find(function(l){var C,Q;return((C=_.q(l,lfL))==null?void 0:(Q=C.inlinePlaybackBadgeData)==null?void 0:Q.replicateAsTimestamp)===!0}))if(O=_.q(O,lfL),O==null?0:O.icon){var x,e;
if((O=(x=_.AoV(O.icon))==null?void 0:(e=x.clientResource)==null?void 0:e.imageName)&&eoQ(O))return O}};
Qgh=function(O){return O==null?void 0:O.filter(function(x){return x.premiereTrailerBadgeRenderer})};
b1X=function(O){var x,e=O==null?void 0:(x=O.find(function(M){return M.thumbnailOverlayTimeStatusRenderer}))==null?void 0:x.thumbnailOverlayTimeStatusRenderer,l,C;
if((e==null?0:(l=e.icon)==null?0:l.iconType)&&eoQ(e==null?void 0:(C=e.icon)==null?void 0:C.iconType)){var Q;return{icon:e==null?void 0:(Q=e.icon)==null?void 0:Q.iconType}}var L;if(x=O==null?void 0:(L=O.find(function(M){return M.thumbnailOverlayBadgeViewModel}))==null?void 0:L.thumbnailOverlayBadgeViewModel)if(L=ChQ(x.thumbnailBadges))return{icon:L};
var k;if(O=O==null?void 0:(k=O.find(function(M){return M.thumbnailBottomOverlayViewModel}))==null?void 0:k.thumbnailBottomOverlayViewModel)if(k=ChQ(O.badges))return{icon:k};
return{}};
D94=function(O,x){var e=Tr4,l=_.T(_.Iw(LHL(new k0$(function(){},e,x)),void 0,"PAnyd")),C=l.next().value,Q=l.next().value,L=new k0$(function(k){Q(k)},e,x);
_.uo(function(){Promise.resolve().then(function(){var k,M=(k=O())!=null?k:{};L.playerControlsData=M;_.t("player_controls_skip_double_signal_old")&&(L.lastSeenPlayerApi=_.IL(M.playerApi));_.t("player_controls_skip_double_signal_old")||(L.lastSeenPlayerApi=_.IL(M.playerApi));Asp(L)});
_.YO(function(){Mhu(L)})},"HikUP");
_.YO(function(){Mhu(L)});
return function(){return C()}};
G0$=function(O){return function(x){var e=O(),l={playerState:x};if(x===1){var C;(C=e.playerApi)==null||C.loadModule("captions")}if(x===0){var Q;(Q=e.playerApi)==null||Q.unloadModule("captions")}x!==-1&&e.setState(l)}};
FH4=function(O){return function(x){O().setState({playbackRate:x})}};
XqL=function(O){return function(x){var e=O(),l=e.playerApi,C=l==null?void 0:l.getVideoData(),Q=(C==null?void 0:C.isLive)||!1;C=C==null?void 0:C.video_id;Q={videoDuration:d3$(l||void 0),isLive:Q,videoId:C};Q.videoId!==e.videoId&&(Q=Object.assign({},_.Xzr(l),Q));if(x==null?0:x.playertype)Q.playerType=x.playertype;if(l){Q.captionsAvailable=_.ZT(l);x=Q;var L;C=(L=l.getStoryboardLevel(l.getNumberOfStoryboardLevels()-1))==null?void 0:L.intervalMs;x.storyboardInterval=C?C/1E3:void 0;Q.captionsAvailable&&
(Q.captionsEnabled=_.vbe(l))}Q.volumeMuted=!(l==null||!l.isMuted());e.setState(Q)}};
o7w=function(O){return function(x){var e=O(),l=e.playerApi;if(l){var C=l.getPresentingPlayerType();x={playedTime:x||0,percentLoaded:l.getVideoLoadedFraction(),playerType:C};e.playerState===0&&(x.playedTime=e.videoDuration);e.isLive&&(C=l.getProgressState(C),x.playedTime-=C.seekableStart,x.videoDuration=d3$(l));if(e.playerType===1)l=!1;else{var Q;if((Q=e.uxConfig)==null?0:Q.showCuedOverlay){var L;l=!((L=e.playerApi)==null?0:L.getPlayerStateObject(e.playerType).isDomPaused)}else l=!0}l&&delete x.playedTime;
e.setState(x)}}};
ysL=function(O){return function(){var x=O(),e,l,C,Q={volume:(C=(e=x.playerApi)==null?void 0:e.getVolume())!=null?C:0,volumeMuted:!((l=x.playerApi)==null||!l.isMuted())};x.setState(Q)}};
Z1$=function(O){return function(){var x=O(),e=x.playerApi;if(e){var l={captionsAvailable:_.ZT(e)};l.captionsAvailable&&(l.captionsEnabled=_.vbe(e));x.setState(l)}}};
E7u=function(O){return function(){var x=O();if(x.playerApi&&!(x.volumeMuted||x.controlsVisible&&x.isProbablyAScreenreaderUser)){x.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var e;(e=document.querySelector(".player-control-play-pause-icon"))==null||e.focus()}}};
thO=function(O){return{appApi:Object.assign({},_.LpN(),{showCaptionsToggleToast:function(x){var e,l;(l=(e=O()).showCaptionsToggleToast)==null||l.call(e,x)},
openInMiniplayer:function(){var x,e;(e=(x=O()).openInMiniplayer)==null||e.call(x)}})}};
qbu=function(O,x){var e,l,C;return!!(O==null?0:(e=O.playerResponse)==null?0:(l=e.playerConfig)==null?0:(C=l.inlinePlaybackConfig)==null?0:C.showScrubbingControls)&&!(x==null?0:x.hideScrubbingControls)};
_.Ph$=function(O){var x=!O.miniplayerIsActive;return[5,2,0].includes(O.miniplayerPlaybackState)||x};
csL={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Ifp=function(O){this.onStepChangeCallback=function(){};
this.flowRenderer=O};
Ifp.prototype.getCurrentStep=function(){var O=this,x;return((x=this.flowRenderer.steps)!=null?x:[]).map(function(e){return _.q(e,_.Wj)}).find(function(e){return e&&e.stepId===O.currentStepId})};
Vhp=function(O,x){var e=x.flowStateEntityKey,l=O.flowStates.get(e);if(l)return l;x=new Ifp(x);O.flowStates.set(e,x);return x};
pqQ=function(O,x){for(var e=_.T(O.flowStates.entries()),l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;if(C.flowRenderer.targetId===x){O.flowStates.delete(l);break}}};
RoY=function(O,x){O.onStepChangeCallback=x;O.onStepChangeCallback(O.getCurrentStep())};
U9Y=function(O,x){var e=O.getCurrentStep();if(!e||e.stepId!==x){var l;((l=O.flowRenderer.steps)!=null?l:[]).map(function(C){return _.q(C,_.Wj)}).find(function(C){return C&&C.stepId===x})&&(O.currentStepId=x,O.onStepChangeCallback(O.getCurrentStep()))}};
afQ=function(O,x){var e,l,C,Q,L;_.A(function(k){if(!x.length)return k.return([]);e=[];l=_.T(x);for(C=l.next();!C.done;C=l.next())Q=C.value,(L=O.resolveIcon(Q))&&!O.iconCache[L.url]&&e.push(_.r64(O,L).then(function(){}).catch(function(){}));
return k.return(Promise.all(e))})};
m9L=function(O,x){var e=[];x=(new Set(x)).values();x=_.T(x);for(var l=x.next();!l.done;l=x.next()){l=l.value;for(var C=_.T(Object.values(csL)),Q=C.next();!Q.done;Q=C.next())e.push({iconName:l,iconStyle:Q.value})}afQ(O.iconManager,e)};
_.sg4=function(O,x,e){var l=e!=null?e:O.iconsToFetch;l!=null&&l.length?x!==void 0&&x>=0?_.zl(_.vn,function(){m9L(O,l)},x):m9L(O,l):Promise.resolve()};
WHY={sharedUi:_.Ih3,a11y:_.Pq4,entities:{}};_.hoX=function(){return _.j6({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
k0$=function(O,x,e){var l=this;this.renderFn=O;this.listeners=x;this.context=e;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var C;this.lastSeenPlayerApi=_.IL((C=this.playerControlsData)==null?void 0:C.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Xzr(),void 0);_.t("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){LHL(l).setState({playerState:-1});l.resetRecentlyNavigatedJobId&&_.vn.cancelJob(l.resetRecentlyNavigatedJobId);
l.recentlyNavigated=!0;l.resetRecentlyNavigatedJobId=_.vn.addJob(function(){l.recentlyNavigated=!1},8,1E4)})};
k0$.prototype.setState=function(O){if(!_.t("mweb_player_skip_no_op_state_changes")||!ngw(O,this.state))if(this.state=Object.assign({},this.state,O),!_.t("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)O=-1,_.t("player_controls_log_creation_killswitch")||u6Y()||(O=(0,_.F2)()),_.IR("pcu_s"),_.IR("pcu_se"),_.IR("pcu_rs"),this.renderFn(LHL(this)),_.IR("pcu_re"),YZQ(O),_.vn.addJob(function(){_.IR("pcu_ap")},8)};
var LHL=function(O){var x;var e=_.IL((x=O.playerControlsData)==null?void 0:x.playerApi);return Object.assign({},O.state,{setState:O.boundSetState,domMeasurements:{progressBarLineRect:O.progressBarLineRect},playerApi:e,appApi:O.context.appApi,playerContainer:O.context.playerContainer,playerControlContainer:O.context.playerControlContainer,uxConfig:O.context.uxConfig})},Asp=function(O){O.listeners.forEach(function(x){O.eventListenerCleanupFunctions.push(x.register(function(){return LHL(O)},function(){return O.getData()}))})},
Mhu=function(O){O.eventListenerCleanupFunctions.forEach(function(x){x()});
O.eventListenerCleanupFunctions.length=0};
k0$.prototype.getData=function(){return this.playerControlsData};
var zop=new _.$x("crowdsourcedContextUserRatingFormFlowState");var rs4=new _.$x("noteViewModel");var wt=new _.$x("abuseReportFlowState");var H1u=new _.$x("feedbackFormFlowState");var KHY=new _.$x("inputBoxViewModel");_.poh=new _.$x("lengthValidationRule");var UyX=new _.$x("regexValidationRule");var myO=new _.$x("selectedValidationRule");var d9Q=new _.$x("talkToRecsViewModel");var n7Y=new _.$x("creatorGoalSetUpFlowDropdownItemViewModel");var ueu=new _.$x("creatorGoalSetUpFlowDropdownViewModel");var lfL=new _.$x("thumbnailBadgeViewModel");var YbL=new _.$x("checkboxGroupViewModel");var POQ=new _.$x("checkboxItemViewModel");_.Sq=new _.$x("radioButtonGroupViewModel");var Brw=new _.$x("radioButtonItemViewModel");var v_Q=new _.$x("panelFooterViewModel");var v7p=new _.$x("ypcCancelRecurrenceCommand");var ffp=new _.$x("cancellationFlowState");var Dye=new _.$x("premiumPurchaseFlowState");var Js$=new _.$x("surveyAnswerCardRenderer");var wqL=new _.$x("showMoreButtonRenderer");var SbQ;var jgw,Nrw=function(){if(jgw!==void 0)return jgw;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;SbQ===void 0&&(SbQ=document.createElement("template"));var l=SbQ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return jgw=O};var jq=function(){var O=_.a.apply(this,arguments)||this;O.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";O.goalDescription="";O.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";O.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";O.startButtonId="start-button";O.exampleButtonId="example-button";return O};
_.c(jq,_.a);_.b=jq.prototype;_.b.getGoalDropdownItems=function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.purchaseTargetDropdown,ueu))==null?void 0:x.dropdownItems};
_.b.getTimerDropdownItems=function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.timerDropdown,ueu))==null?void 0:x.dropdownItems};
_.b.getColorDropdownItems=function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.colorDropdown,ueu))==null?void 0:x.dropdownItems};
_.b.getDropdownItemText=function(O){var x;return(x=_.q(O,n7Y))==null?void 0:x.itemLabel};
_.b.getDropdownItemValue=function(O){O=_.q(O,n7Y);return(O==null?void 0:O.timeLimit)||(O==null?void 0:O.purchaseTarget)||(O==null?void 0:O.eligiblePurchaseType)};
_.b.updateFlowState=function(O){_.Sh(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:O}])};
_.b.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.b.updateGoalValue=function(O){this.goal=O.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.b.onTextValueChanged=function(O){this.goalDescription=O.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.b.updateTimerValue=function(O){this.timer=O.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.b.updateTierValue=function(O){this.tier=O.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.b.getButtonViewModel=function(O){O=(O==null?void 0:O.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var x,e=_.q((x=this.data)==null?void 0:x.startGoalButton,_.gf);return Object.assign({},e,{state:O})};
_.Dy.Object.defineProperties(jq,{template:{configurable:!0,enumerable:!0,get:function(){return Nrw()}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],jq.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],jq.prototype,"goal",void 0);_.B([_.R(),_.v("design:type",Object)],jq.prototype,"goalDescription",void 0);_.B([_.R(),_.v("design:type",Object)],jq.prototype,"timer",void 0);_.B([_.R(),_.v("design:type",Object)],jq.prototype,"tier",void 0);
_.B([_.R(),_.v("design:type",Object)],jq.prototype,"startButtonId",void 0);_.B([_.R(),_.v("design:type",Object)],jq.prototype,"exampleButtonId",void 0);_.B([_.Va({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],jq);_.n(jq,"yt-creator-goal-set-up-flow-view-model",function(){return Nrw()},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var g7L;g7L=Object.assign({},{continuation:_.VXd,download:_.tX$,canvas:_.GYn,reportChannelAbuse:_.sMd,ui:_.XmV,share:_.WDz,talkToRecs:_.zgd,watch:_.fo,ypc:_.uq2,radioButtonGroup:_.M7V,collabInviteLink:_.kYN},WHY,{voiceSearch:_.Zjr,shorts:_.vu});_.NI=_.Pe(g7L);_.$9$=_.ce(_.NI);var i1e;var OZ$;var xgT;var ehh=function(){return _.a.apply(this,arguments)||this};
_.c(ehh,_.a);_.B([_.R(),_.v("design:type",Object)],ehh.prototype,"data",void 0);_.B([_.Va({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],ehh);
_.n(ehh,"yt-survey-answer-card-renderer",function(){if(xgT===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;OZ$===void 0&&(OZ$=document.createElement("template"));var l=OZ$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);xgT=O}O=xgT;return O},{mode:2});var l2$;var C_Q;var gt=function(){return _.a.apply(this,arguments)||this};
_.c(gt,_.a);_.b=gt.prototype;_.b.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.b.selectedItemChanged=function(O){_.Sh(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[O.feedbackToken||""]}])};
_.b.surveyAnswerCardRendererClicked=function(O){if(O.target&&_.q(O.model.item,Js$)){var x=O.target;O=_.q(O.model.item,Js$);O.onTapCommand?_.gr(x,[O.onTapCommand],x):this.data.onTapCommand&&_.gr(x,[this.data.onTapCommand],x);this.selectedItemChanged(O)}};
_.b.checkIsCancellationStyle=function(O){return O==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.b.updateSelectedItemFromBinding=function(O){this.selectedItem=O.detail.value};
gt.prototype.onSelectedItemChanged=gt.prototype.onSelectedItemChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gt.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],gt.prototype,"selectedItem",void 0);_.B([_.R({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.v("design:type",Boolean)],gt.prototype,"isCancellationStyle",void 0);
_.B([_.T1("selectedItem"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gt.prototype,"onSelectedItemChanged",null);_.B([_.Va({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],gt);
_.n(gt,"yt-survey-flow-step-renderer",function(){if(C_Q===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;l2$===void 0&&(l2$=document.createElement("template"));var l=l2$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);C_Q=O}O=C_Q;return O},{mode:2});var $A=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return O};
_.c($A,_.a);$A.prototype.handleSurveyFlowStepOptionChanged=function(O){this.ytdReduxBehavior.dispatch(_.j6({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:O}));_.Sh(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:O}}])};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$A.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],$A.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$A.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],$A);
_.n($A,"ytd-survey-flow-step-renderer",function(){if(i1e!==void 0)return i1e;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return i1e=O},{mode:1});_.LRL=_.K(function(O){var x=O.data;var e=O.hideDivider;var l=O.isChannelInfoCard;O={};return _.D("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.D("div",{class:_.xz("yt-profile-identity-info-view-model__frame",(O["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!x().channelBanner},O))},_.D(QRO,{profileIdentityInfoData:x}),_.D("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.D("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ})),_.D(bZ4,{profileIdentityInfoData:x})),_.D(_.F,{cond:function(){return x().channelDescription},
then:function(C){var Q={};return _.D("div",{class:_.xz((Q["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(l==null||!l())},Q["yt-profile-identity-info-view-model__channel-description"]=function(){return!(l==null?0:l())},Q))},C)}}),_.D(TTL,{profileIdentityInfoData:x}),_.D(_.F,{cond:function(){return!(e==null?0:e())},
then:function(){return _.D("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"gh");
_.LRL.idomCompat=!0;var TTL=_.K(function(O){var x=O.profileIdentityInfoData;return _.D("div",{class:"yt-profile-identity-info-view-model__buttons"},_.D(_.HE,{each:function(){return x().subscribeButton?[x().subscribeButton,x().channelAccess]:[x().channelAccess]}},function(e){return _.D("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.D("div",{class:"yt-profile-identity-info-view-model--button"},_.D(_.MR,{data:function(){return e}},{buttonViewModel:_.RV,
subscribeButtonViewModel:_.j7})))}))},"hh"),bZ4=_.K(function(O){var x=O.profileIdentityInfoData;
return _.D("div",{class:"yt-profile-identity-info-view-model__trio"},_.D("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.D(kDh,{profileIdentityInfoData:x}),_.D(_.MR,{data:function(){return x().threeDotMenu}},{buttonViewModel:_.RV})),_.D(A3$,{profileIdentityInfoData:x}))},"ih"),kDh=_.K(function(O){var x=O.profileIdentityInfoData;
return _.D("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.D("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return x().channelDisplayName}),_.D(_.F,{cond:function(){return x().verifiedOrOacBadge},
then:function(e){return _.D("div",{class:"yt-profile-identity-info-view-model__badge"},_.D(_.n_,{data:function(){return{thumbnails:[{url:e().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"jh"),QRO=_.K(function(O){var x=O.profileIdentityInfoData;
return _.D("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.D(_.MR,{data:function(){var e=x().channelBanner;if(e)return{imageBannerViewModel:{image:e.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(e){return _.D("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.D(_.li,{data:e.data,
isPositionRelative:!0}))}}))},"kh"),A3$=_.K(function(O){var x=O.profileIdentityInfoData;
return _.D("div",{class:"yt-profile-identity-info-view-model__metadata"},_.D("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.D("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return x().channelHandle}),_.D(_.F,{cond:function(){return x().channelPronouns&&x().channelHandle},
then:function(){return _.D("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.D("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return x().channelPronouns})),_.D("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.D("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return x().leftOfBulletInfo}),_.D(_.F,{cond:function(){return x().leftOfBulletInfo&&x().rightOfBulletInfo},
then:function(){return _.D("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.D("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return x().rightOfBulletInfo})))},"lh");var M6p;var is=function(){return _.a.apply(this,arguments)||this};
_.c(is,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],is.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],is.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],is);
_.n(is,"ytd-channel-history-renderer",function(){if(M6p!==void 0)return M6p;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return M6p=O},{mode:1});var Dgu;var GDX=function(){return _.a.apply(this,arguments)||this};
_.c(GDX,_.a);_.B([_.R(),_.v("design:type",Object)],GDX.prototype,"data",void 0);_.B([_.H({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],GDX);
_.n(GDX,"ytd-feature-enablement-info-renderer",function(){if(Dgu!==void 0)return Dgu;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Dgu=O},{mode:1});var FRh;var XUY;var Oc=function(){var O=_.a.apply(this,arguments)||this;O.textBoxMaxLength=_.t("enable_tvod_campaign_code_integration")?15:12;return O};
_.c(Oc,_.a);_.b=Oc.prototype;_.b.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.b.onSubmit=function(){var O=this.data.serviceEndpoint,x=_.q(O,_.zA);x&&O&&(x.couponCode=this.userInput,_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}}))};
_.b.validate=function(){var O=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=O&&!this.data.errorMessage;this.showErrorMessage=O&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.t("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.b.computeStyle=function(O){return O};
_.b.computeShowValidationBelowInput=function(O){return O!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.b.updateUserInputFromBinding=function(O){this.userInput=O.currentTarget.value};
_.b.updateShowErrorMessageFromBinding=function(O){this.showErrorMessage=O.detail.value};
_.Dy.Object.defineProperties(Oc.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Oc.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],Oc.prototype,"userInput",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oc.prototype,"disableApplyButton",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oc.prototype,"hideApplyButton",void 0);
_.B([_.R(),_.v("design:type",Boolean)],Oc.prototype,"hideErrorMessage",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oc.prototype,"showTick",void 0);_.B([_.R(),_.v("design:type",Boolean)],Oc.prototype,"showErrorMessage",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],Oc.prototype,"couponStyle",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.v("design:type",Boolean)],Oc.prototype,"showValidationBelowInput",void 0);_.B([_.R(),_.v("design:type",Object)],Oc.prototype,"textBoxMaxLength",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Oc.prototype,"dataChanged",null);
_.B([_.p("showTick","showErrorMessage","userInput"),_.v("design:type",String),_.v("design:paramtypes",[])],Oc.prototype,"validationState",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Oc);
_.n(Oc,"ytd-ypc-coupon-renderer",function(){if(XUY!==void 0)return XUY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XUY=O},{mode:1});var xn=function(){return _.a.apply(this,arguments)||this};
_.c(xn,_.a);xn.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"}}}};
xn.prototype.computeStyle=function(O){return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xn.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],xn.prototype,"buttonStyle",void 0);_.B([_.H({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],xn);
_.n(xn,"ytd-flow-bottom-bar-renderer",function(){if(FRh!==void 0)return FRh;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return FRh=O},{mode:1});var omO;var y3L;var ZZL;var eu=function(){return _.a.apply(this,arguments)||this};
_.c(eu,_.a);eu.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eu.prototype.focus=function(O){this.title&&_.QQ(this.title,O)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eu.prototype,"data",void 0);_.B([_.kX("#title"),_.v("design:type",HTMLElement)],eu.prototype,"title",void 0);_.B([_.H({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],eu);
_.n(eu,"ytd-flow-top-bar-renderer",function(){if(ZZL!==void 0)return ZZL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ZZL=O},{mode:1});var EmL;var t6u;var qOh;var lv=function(){return _.a.apply(this,arguments)||this};
_.c(lv,_.a);lv.prototype.freeTextValueChanged=function(){_.Sh(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
lv.prototype.updateFreeTextValueFromBinding=function(O){this.freeTextValue=O.detail.value};
_.Dy.Object.defineProperties(lv.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(x=(O=this.data)==null?void 0:O.responseMaxLength)!=null?x:500,l;return((l=this.freeTextValue)!=null?l:"").length>=e?"maxed-out":""}}});
lv.prototype.freeTextValueChanged=lv.prototype.freeTextValueChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],lv.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],lv.prototype,"freeTextValue",void 0);_.B([_.kX("#user-input"),_.v("design:type",HTMLTextAreaElement)],lv.prototype,"input",void 0);
_.B([_.p("freeTextValue"),_.v("design:type",Object),_.v("design:paramtypes",[])],lv.prototype,"characterLimitClass",null);_.B([_.T1("freeTextValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lv.prototype,"freeTextValueChanged",null);_.B([_.Va({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],lv);
_.n(lv,"yt-free-text-input-flow-step-renderer",function(){if(qOh===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;t6u===void 0&&(t6u=document.createElement("template"));var l=t6u;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qOh=O}O=qOh;return O},{mode:2});var Ck=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return O};
_.c(Ck,_.a);Ck.prototype.handleFreeTextFlowStepInputChanged=function(O){_.Sh(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:O}}])};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Ck.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Ck.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ck.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Ck);
_.n(Ck,"ytd-free-text-input-flow-step-renderer",function(){if(EmL!==void 0)return EmL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return EmL=O},{mode:1});var P_e;var c3w;var I2T=function(){return _.a.apply(this,arguments)||this};
_.c(I2T,_.a);_.B([_.R(),_.v("design:type",Object)],I2T.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],I2T);
_.n(I2T,"ytd-metadata-line-renderer",function(){if(c3w!==void 0)return c3w;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return c3w=O},{mode:1});var QH=function(){return _.a.apply(this,arguments)||this};
_.c(QH,_.a);QH.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],QH.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],QH.prototype,"isMasthead",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],QH);
_.n(QH,"ytd-media-product-renderer",function(){if(P_e!==void 0)return P_e;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return P_e=O},{mode:1});var V6L;var bv=function(){return _.a.apply(this,arguments)||this};
_.c(bv,_.a);bv.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
bv.prototype.onBillboardImageLoaded=function(){_.wr(this.hostElement,"yt-refit")};
bv.prototype.onBillboardImageLoaded=bv.prototype.onBillboardImageLoaded;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],bv.prototype,"data",void 0);_.B([_.kX("#billboardImage"),_.v("design:type",Object)],bv.prototype,"billboardImage",void 0);_.B([_.bH("yt-img-shadow-loaded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],bv.prototype,"onBillboardImageLoaded",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],bv);
_.n(bv,"ytd-billboard-masthead-renderer",function(){if(V6L!==void 0)return V6L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return V6L=O},{mode:1});var pU$;var T2=function(){var O=_.a.apply(this,arguments)||this;O.smallSize=!1;return O};
_.c(T2,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],T2.prototype,"ytComponentBehaviorType",void 0);_.B([_.R(),_.v("design:type",Object)],T2.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],T2.prototype,"smallSize",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],T2);
_.n(T2,"ytd-bullet-formatted-string",function(){if(pU$!==void 0)return pU$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return pU$=O},{mode:1});var RhO;var Lk=function(){return _.a.apply(this,arguments)||this};
_.c(Lk,_.a);Lk.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Lk.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Lk);
_.n(Lk,"ytd-offer-detail-renderer",function(){if(RhO!==void 0)return RhO;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return RhO=O},{mode:1});var UgL;var kn=function(){return _.a.apply(this,arguments)||this};
_.c(kn,_.a);kn.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kn.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],kn);
_.n(kn,"ytd-offer-detail-step-renderer",function(){if(UgL!==void 0)return UgL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return UgL=O},{mode:1});var a2L;var Az=function(){var O=_.a.apply(this,arguments)||this;O.isInOfferModule=!1;return O};
_.c(Az,_.a);_.b=Az.prototype;_.b.computeHasEndpoint=function(){var O;return!((O=this.data)==null||!O.onClickCommand)};
_.b.dataChanged=function(){var O;if((O=this.data)==null?0:O.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")};
_.b.detached=function(){var O;if((O=this.data)==null?0:O.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.b.handleClickEvent=function(){var O;if((O=this.data)==null?0:O.onClickCommand){var x;this.componentBehavior.resolveCommand((x=this.data)==null?void 0:x.onClickCommand)}};
_.b.onContentKeyDown=function(O){O.key==="Enter"?this.handleClickEvent(O):O.key===" "&&O.preventDefault()};
_.b.onContentKeyUp=function(O){O.key===" "&&this.handleClickEvent(O)};
Az.prototype.dataChanged=Az.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Az.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Az.prototype,"data",void 0);_.B([_.R({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Az.prototype,"hasEndpoint",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Az.prototype,"isInOfferModule",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Az.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Az);
_.n(Az,"ytd-channel-masthead-renderer",function(){if(a2L!==void 0)return a2L;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return a2L=O},{mode:1});var mgw;var MN=function(){var O=_.a.apply(this,arguments)||this;O.thumbnailObjectFit="CONTAIN";O.thumbnailObjectPosition="LEFT";O.isExpanded=!1;return O};
_.c(MN,_.a);_.b=MN.prototype;_.b.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.b.dataChanged=function(){this.resetStates()};
_.b.computeisTapOnOfferInfoContainerEnabled=function(){var O;return((O=this.data)==null?void 0:O.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.b.onExpandBtnClick=function(){var O,x=_.q((O=this.data)==null?void 0:O.showMoreButtonRenderer,wqL);x&&_.I7(_.k0(),x.trackingParams);this.isExpanded=!this.isExpanded};
_.b.onOfferInfoClick=function(O){this.isTapOnOfferInfoContainerEnabled&&(_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Yz(_.n3(O)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.b.onBottomBarClick=function(){this.executeTapCommand()};
_.b.executeTapCommand=function(){var O,x=(O=this.data)==null?void 0:O.tapCommand;x&&this.ytComponentBehavior.resolveCommand(x)};
_.b.resetStates=function(){this.isExpanded=!1};
_.Dy.Object.defineProperties(MN.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var O=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),x,e,l;return((x=this.data)==null?void 0:x.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&O&&!!((e=this.data)==null?0:(l=e.benefits)==null?0:l.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((x=_.q((O=this.data)==null?void 0:O.showMoreButtonRenderer,wqL))==null?void 0:x.showMoreButtonTitle)||((e=this.data)==null?void 0:e.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((x=_.q((O=this.data)==null?void 0:O.showMoreButtonRenderer,wqL))==null?void 0:x.showLessButtonTitle)||((e=this.data)==null?void 0:e.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var O;return(O=this.showLessButtonTitle)!=null?O:""}var x;return(x=this.showMoreButtonTitle)!=null?x:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?void 0:O.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((x=this.data)==null?0:x.footerTitle)||((e=this.data)==null?0:e.footerSubtitle))}}});
MN.prototype.dataChanged=MN.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],MN.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",String)],MN.prototype,"thumbnailObjectFit",void 0);
_.B([_.R(),_.v("design:type",String)],MN.prototype,"thumbnailObjectPosition",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.v("design:type",Boolean)],MN.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.B([_.R(),_.v("design:type",Object)],MN.prototype,"isExpanded",void 0);_.B([_.R(),_.v("design:type",Object)],MN.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.footerIcon)"}),_.v("design:type",String)],MN.prototype,"icon",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MN.prototype,"dataChanged",null);_.B([_.p("data.thumbnail"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],MN.prototype,"hasThumbnail",null);_.B([_.p("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],MN.prototype,"enableExpandButton",null);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],MN.prototype,"enableOfferContentIcon",null);_.B([_.p("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.v("design:type",Object),_.v("design:paramtypes",[])],MN.prototype,"showMoreButtonTitle",null);_.B([_.p("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.v("design:type",Object),_.v("design:paramtypes",[])],MN.prototype,"showLessButtonTitle",null);
_.B([_.p("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.v("design:type",String),_.v("design:paramtypes",[])],MN.prototype,"expandedBtnText",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],MN.prototype,"enableBottomBar",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],MN);
_.n(MN,"ytd-offer-card-renderer",function(){if(mgw!==void 0)return mgw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return mgw=O},{mode:1});var sRp;var Dz=function(){return _.a.apply(this,arguments)||this};
_.c(Dz,_.a);Dz.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"}}}};
Dz.prototype.onClick=function(O){if(!_.uk(O.composedPath()||[],this.hostElement,["A".toString()])){var x,e;if((O=(e=_.q((x=this.data)==null?void 0:x.actionButton,_.wf))==null?void 0:e.command)&&!this.ytComponentBehavior.resolveCommand(O)){var l;(l=_.k0())==null||l.clickCommand(O);_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})}}};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Dz.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Dz.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Dz);
_.n(Dz,"ytd-offer-content-renderer",function(){if(sRp!==void 0)return sRp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return sRp=O},{mode:1});var WRL;var G2=function(){return _.a.apply(this,arguments)||this};
_.c(G2,_.a);G2.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Dy.Object.defineProperties(G2.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.title)||!((x=this.data)==null||!x.description)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],G2.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],G2.prototype,"hasHeaderData",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],G2);
_.n(G2,"ytd-offer-section-renderer",function(){if(WRL!==void 0)return WRL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return WRL=O},{mode:1});var hhX;var FH=function(){return _.a.apply(this,arguments)||this};
_.c(FH,_.a);
FH.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],FH.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],FH);
_.n(FH,"ytd-offer-selection-step-renderer",function(){if(hhX!==void 0)return hhX;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return hhX=O},{mode:1});var zhe;var XH=function(){return _.a.apply(this,arguments)||this};
_.c(XH,_.a);XH.prototype.computeStyle=function(O){return O};
XH.prototype.computeImageWidth=function(O){return O==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.B([_.R({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.v("design:type",String)],XH.prototype,"containerStyle",void 0);_.B([_.R({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.v("design:type",String)],XH.prototype,"imageWidth",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XH.prototype,"data",void 0);
_.B([_.H({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],XH);
_.n(XH,"ytd-confirmation-masthead-renderer",function(){if(zhe!==void 0)return zhe;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return zhe=O},{mode:1});var r3T;var oA=function(){return _.a.apply(this,arguments)||this};
_.c(oA,_.a);oA.prototype.computeStyle=function(O){return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oA.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.v("design:type",String)],oA.prototype,"containerStyle",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],oA);
_.n(oA,"ytd-purchase-complete-detail-renderer",function(){if(r3T!==void 0)return r3T;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return r3T=O},{mode:1});var HZw;var yH=function(){var O=_.a.apply(this,arguments)||this;O.scriptsAppended=!1;return O};
_.c(yH,_.a);yH.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"}}}};
yH.prototype.onDataChanged=function(){var O=this.get("data.gtmId");O&&(_.Yq(O,_.wz("GL","")),this.setupConversionTracking())};
yH.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var O=document.createElement("noscript");O.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(O);this.scriptsAppended=!0}};
yH.prototype.onDataChanged=yH.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yH.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],yH.prototype,"scriptsAppended",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yH.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],yH);
_.n(yH,"ytd-purchase-complete-step-renderer",function(){if(HZw!==void 0)return HZw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return HZw=O},{mode:1});var KRu;var Zz=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(Zz,_.a);Zz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Zz.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Zz.prototype,"darkerDarkTheme",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Zz);
_.n(Zz,"ytd-ypc-transaction-error-message-renderer",function(){if(KRu!==void 0)return KRu;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return KRu=O},{mode:1});var dg4;var nmw;var Ec=function(){var O=_.a.apply(this,arguments)||this;O.handlePhoneVerificationSuccess=function(x){if(O.isValidPhoneVerificationCompletionMessageEvent(x)){var e;((e=O.data)==null?0:e.nextStepCommand)&&O.ytComponentBehavior.resolveCommand(O.data.nextStepCommand)}};
return O};
_.c(Ec,_.a);Ec.prototype.isValidPhoneVerificationCompletionMessageEvent=function(O){if(O.data!=="yt-phone-verification-complete")return!1;O=_.Lb(O.origin);return O!==null&&O.includes("youtube.com")};
Ec.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Ec.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ec.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ec.prototype,"data",void 0);_.B([_.Va({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Ec);
_.n(Ec,"yt-feature-enablement-soft-entry-renderer",function(){if(nmw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;dg4===void 0&&(dg4=document.createElement("template"));var l=dg4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);nmw=O}O=nmw;return O},{mode:1});var uCY;var YOL;var BTQ;var vme;var f2$=function(){return _.a.apply(this,arguments)||this};
_.c(f2$,_.a);_.B([_.R(),_.v("design:type",Object)],f2$.prototype,"data",void 0);_.B([_.Va({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],f2$);
_.n(f2$,"yt-benefits-item-renderer",function(){if(vme===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;BTQ===void 0&&(BTQ=document.createElement("template"));var l=BTQ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);vme=O}O=vme;return O},{mode:2});var J3e;var wUO;var tz=function(){return _.a.apply(this,arguments)||this};
_.c(tz,_.a);tz.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
tz.prototype.computeisWithoutPadding=function(){var O;return((O=this.data)==null?void 0:O.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tz.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.v("design:type",Boolean)],tz.prototype,"isWithoutPadding",void 0);_.B([_.Va({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],tz);
_.n(tz,"yt-benefits-section-renderer",function(){if(wUO===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;J3e===void 0&&(J3e=document.createElement("template"));var l=J3e;e.call(x,l.content.cloneNode(!0),O.content.firstChild);wUO=O}O=wUO;return O},{mode:2});var qN=function(){return _.a.apply(this,arguments)||this};
_.c(qN,_.a);qN.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
qN.prototype.computeisUsingLargeWidth=function(){var O;return((O=this.data)==null?void 0:O.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qN.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.v("design:type",Boolean)],qN.prototype,"isUsingLargeWidth",void 0);_.B([_.Va({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],qN);
_.n(qN,"yt-benefits-flow-step-renderer",function(){if(YOL===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;uCY===void 0&&(uCY=document.createElement("template"));var l=uCY;e.call(x,l.content.cloneNode(!0),O.content.firstChild);YOL=O}O=YOL;return O},{mode:2});var SOL;var jRT;var PA=function(){return _.a.apply(this,arguments)||this};
_.c(PA,_.a);PA.prototype.checkIsUsingLargeWidth=function(){var O;return((O=this.data)==null?void 0:O.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.B([_.R(),_.v("design:type",Object)],PA.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.B([_.R({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.v("design:type",Boolean)],PA.prototype,"isUsingLargeWidth",void 0);_.B([_.Va({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],PA);
_.n(PA,"yt-confirmation-flow-step-renderer",function(){if(jRT===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;SOL===void 0&&(SOL=document.createElement("template"));var l=SOL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);jRT=O}O=jRT;return O},{mode:2});var NTQ;var gmL;var $gu=function(){return _.a.apply(this,arguments)||this};
_.c($gu,_.a);_.B([_.R(),_.v("design:type",Object)],$gu.prototype,"data",void 0);_.B([_.Va({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],$gu);
_.n($gu,"yt-info-flow-step-renderer",function(){if(gmL===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;NTQ===void 0&&(NTQ=document.createElement("template"));var l=NTQ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);gmL=O}O=gmL;return O},{mode:2});var iZL;var OA$;var xcX=function(){return _.a.apply(this,arguments)||this};
_.c(xcX,_.a);_.B([_.R(),_.v("design:type",Object)],xcX.prototype,"data",void 0);_.B([_.Va({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],xcX);
_.n(xcX,"yt-info-list-flow-step-renderer",function(){if(OA$===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;iZL===void 0&&(iZL=document.createElement("template"));var l=iZL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);OA$=O}O=OA$;return O},{mode:2});var e1u=_.K(function(O){var x=O.data;return _.D("styled-text-view-model",{class:_.xz("ytStyledTextViewModelHost",function(){return xyu(x().fontAttributes)},function(){return OGL(x().color)})},_.D(_.TT,{text:function(){return x().text},
ariaLabel:function(){var e,l,C;return(C=(e=x().accessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label)!=null?C:""}}))},"mh");
e1u.idomCompat=!0;var lSe=_.K(function(O){var x=function(){var C,Q,L,k;return(k=(L=(C=O.alt)==null?void 0:C.call(O))!=null?L:(Q=O.data().accessibilityData)==null?void 0:Q.label)!=null?k:""},e=function(){return O.data().imageWidth},l=function(){return O.data().imageHeight};
return _.D("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.D(_.F,{cond:function(){var C=O.data();if(C){var Q,L,k;var M=((Q=_.GG().resolve(_.D0(_.rP)))==null?0:Q())?(L=C.imageDark)!=null?L:C.imageLight:(k=C.imageLight)!=null?k:C.imageDark}else M=void 0;return M},
then:function(C){return _.D(_.n_,Object.assign({},O,{data:C,alt:x,targetWidth:e,targetHeight:l,preserveHeight:!0,preserveWidth:!0}))}}))},"nh");
lSe.idomCompat=!0;var cA=_.K(function(O){var x=O.data;O=_.uH(function(){return x().slots},[]);
var e=_.uH(function(){return x().layoutProperties},{}),l=_.GG().resolve(_.K_);
return _.D("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:jyX(e,l)},_.D(_.HE,{each:O,keyBy:"INDEX"},function(C){return _.D("div",{class:"ytContainerLayoutViewModelSlot",style:jyX(function(){return C().layoutProperties},l)},_.D(_.MR,{data:function(){return C().contents}},{containerLayoutViewModel:cA,
badgeViewModel:_.tX,buttonViewModel:_.RV,styledTextViewModel:e1u,contentPreviewImageViewModel:function(Q){return _.D(_.qP,{data:Q.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(Q){return _.D(lSe,{data:Q.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"oh");
cA.idomCompat=!0;var C9L=_.K(function(O){var x=O.data;var e=O.stateFns;var l=function(){var G=x(),X=G.productId;return!(!G.clearGroupId&&!X)},C=function(){var G=x(),X=G.clearGroupId;
return(G=G.productId)?e().isProductSelected(G):X?e().getSelectedProductByGroupId(X)==null:!1},Q=function(G){var X=x(),y=X.clearGroupId;
if(X=X.productId)e().onProductSelected(X),G==null||G.forEach(function(Z){_.me(Z)});
else if(y)e().onClearGroupSelected(y)},L=function(){var G=x(),X=G.clearGroupId;
if(G=G.productId){var y;return"group:"+(((y=e().getProductById(G))==null?void 0:y.groupId)||"")}return X?"group:"+X:""},k=_.uH(function(){return x().header},[]),M=_.uH(function(){return x().body},[]);
return _.D("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.D(_.F,{cond:function(){return k().length>0||l()},
then:function(){return _.D("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.D("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.D(_.MR,{data:k},{containerLayoutViewModel:function(G){return _.D("div",{class:"ytPdpCardSectionViewModelContentItem"},_.D(cA,{data:G.data}))},
styledTextViewModel:function(G){return _.D("div",{class:"ytPdpCardSectionViewModelContentItem"},_.D(e1u,{data:G.data}))}})),_.D(_.F,{cond:l,
then:function(){return _.D("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.D(_.gE,{checked:C,name:L,onChange:function(){Q(x().onSelect)}}))}}))}}),_.D(_.F,{cond:function(){return M().length>0},
then:function(){return _.D("div",null,_.D(_.MR,{data:M},{containerLayoutViewModel:function(G){return _.D("div",{class:"ytPdpCardSectionViewModelContentItem"},_.D(cA,{data:G.data}))}}))}}))},"ph");
C9L.idomCompat=!0;var QxO=_.K(function(O){var x=O.data;var e=O.stateFns;return _.D("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.D(_.F,{cond:function(){return x().banner},
then:function(l){return _.D("div",{class:"ytPdpCardViewModelBanner"},_.D(_.TT,{text:l}))}}),_.D(_.MR,{data:function(){return x().sections}},{pdpCardSectionViewModel:function(l){l=l.data;
var C={};return _.D("div",{class:_.xz("ytPdpCardViewModelSectionContainer",(C.ytPdpCardViewModelShowDividers=function(){return x().showDividers},C))},_.D(C9L,{data:l,
stateFns:e}))}}))},"qh");
QxO.idomCompat=!0;var bAu=_.K(function(O){var x=O.data;var e=O.isOverlay;O={};return _.D("pdp-masthead-view-model",{class:_.xz("ytPdpMastheadViewModelHost",(O.ytPdpMastheadViewModelIsOverlay=e,O))},_.D(_.MR,{data:function(){return x().image}},{contentPreviewImageViewModel:_.qP,
themedImageViewModel:function(l){return _.D(lSe,{data:l.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.D(_.F,{cond:function(){return x().title},
then:function(l){return _.D("h1",{class:"ytPdpMastheadViewModelHeading"},_.D(_.TT,{text:l,isOverlay:e}))}}),_.D(_.HE,{each:function(){var l;
return(l=x().finePrint)!=null?l:[]}},function(l){return _.D("div",{class:"ytPdpMastheadViewModelFinePrint"},_.D(_.TT,{text:l,
isOverlay:e}))}))},"rh");
bAu.idomCompat=!0;var Tbh=_.K(function(O){var x=O.data;var e=O.stateFns;var l=function(){return"pdp-pricing-group-selector-"+x().pricingGroupAttributeIds},C=_.uH(function(){return x().pricingGroupSelectorSectionHeader});
return _.D("pdp-pricing-group-selector-view-model",null,_.D(_.F,{cond:function(){return!!C()},
then:function(){return _.D(_.MR,{data:C},{sectionHeaderViewModel:function(Q){Q=Q.data;var L={};return _.D("div",{class:_.xz("ytPdpPricingGroupSelectorViewModelSectionHeader",(L.ytPdpPricingGroupSelectorViewModelFullBleed=!0,L.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,L))},_.D(_.ak,{data:Q}))}})}}),_.D("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.D(_.HE,{each:function(){var Q=e().getSelectedProductByGroupId(x().groupId);
if(!Q)return _.vH(Error("Vj`"+x().groupId)),[];var L,k=(L=x().pricingGroupAttributeIds)!=null?L:[],M;if((M=Q.pricingGroups)==null||!M.length||!k.length)return[];L=Q.pricingGroups.filter(function(Z){return k.length?Z.pricingGroupAttributes.every(function(E){return k.includes(E)}):!1});
Q=[];if(k.length>0){L=[].concat(_.Kx(L));M=_.T(k);for(var G=M.next(),X={};!G.done;X={targetAttrId:void 0},G=M.next())X.targetAttrId=G.value,G=L.findIndex(function(Z){return function(E){return E.pricingGroupAttributes.includes(Z.targetAttrId)}}(X)),G!==-1&&(Q.push(L[G]),L.splice(G,1))}var y=e().getSelectedPricingGroupAttributesByGroupId(x().groupId);
return Q.map(function(Z){var E=!1;y&&Z.pricingGroupAttributes&&(E=YA(Z.pricingGroupAttributes,y));return{pricingGroup:Z,isSelected:E}})},
keyBy:function(Q){return Q.pricingGroup.pricingGroupId}},function(Q){return _.D("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.D("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.D(_.MR,{data:function(){return Q().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:cA})),_.D("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.D(_.gE,{checked:function(){return Q().isSelected},
name:l,onClick:function(){var L=Q().pricingGroup;e().onPricingGroupSelected(L.pricingGroupId);if(L=_.p_(L.onSelectPricingGroup)){var k;(k=_.GG().resolve(_.Xc))==null||k.resolveCommand(L)}}})))})))},"sh");
Tbh.idomCompat=!0;var LWL=_.K(function(O){var x=O.data;var e=O.stateFns;var l=function(){var L=e().getSelectedPricingOptions().map(function(G){return G.pricingOptionId}),k=e().getSelectedProductByGroupId(x().groupId);
if(!k)return _.vH(Error("Wj`"+x().groupId)),[];var M=e().getSelectedPricingGroupAttributesByGroupId(x().groupId);return Qpp(k.pricingOptions,M,L)},C=_.uH(function(){return x().pricingOptionSelectorSectionHeader}),Q=function(){return l().length>1};
return _.D("pdp-pricing-option-selector-view-model",null,_.D(_.F,{cond:function(){return!!C()&&Q()},
then:function(){return _.D(_.MR,{data:C},{sectionHeaderViewModel:function(L){L=L.data;var k={};return _.D("div",{class:_.xz("ytPdpPricingOptionSelectorViewModelSectionHeader",(k.ytPdpPricingOptionSelectorViewModelFullBleed=!0,k.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,k))},_.D(_.ak,{data:L}))}})}}),_.D(_.F,{cond:Q,
then:function(){return _.D("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.D(_.HE,{each:l,keyBy:"INDEX"},function(L){return _.D("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.D("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.D(_.MR,{data:function(){return L().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:cA})),_.D("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.D(_.gE,{checked:function(){return L().isSelected},
onClick:function(){e().onPricingOptionSelected(L().pricingOption.pricingOptionId);var k=L().pricingOption.onSelectPricingOption;if(k=_.p_(k)){var M;(M=_.GG().resolve(_.Xc))==null||M.resolveCommand(k)}}})))}))}}))},"th");
LWL.idomCompat=!0;var kLu=_.K(function(O){var x=O.data;var e=O.stateFns;return _.D("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.D(_.MR,{data:function(){var l,C;return(C=(l=e().getSelectedPricingOptions()[0])==null?void 0:l.primaryButton)!=null?C:x().emptyStateButton}},{buttonViewModel:_.RV}))},"uh");
kLu.idomCompat=!0;var Ah$=_.K(function(O){var x=O.stateFns;return _.D("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.D(_.MR,{data:function(){return x().getSelectedPricingOptions().flatMap(function(e){return e.summaryLines}).filter(function(e){return!!e})}},{containerLayoutViewModel:function(e){return _.D("div",{class:"ytPdpSummaryViewModelLineItem"},_.D(cA,{data:e.data}))}}))},"vh");
Ah$.idomCompat=!0;var M_4=_.K(function(O){function x(W){var z=L();_.ns(_.Zw("pdpStateEntity",z,{key:z,selectedPricingOptions:W}))}
var e=O.data;var l=O.internalScrolling;var C=O.stateFnsForTesting;var Q=_.uH(function(){return e().allProducts},[]),L=_.uH(function(){return e().pdpStateEntityKey},""),k=_.L5(bGu,L),M=_.aw(function(){_.vL(!0);
var W;return(W=C==null?void 0:C())!=null?W:LNu(k,Q,x)},void 0,"ryrrHe"),G=_.uH(function(){return e().body},[]),X=_.uH(function(){return e().columnBreakHints},[]),y=function(){return e().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Z=function(){return y()||e().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},E=_.aw(function(){var W=_.U9(e().background),z;
if(W==null?0:(z=W.sources)==null?0:z.length){var r=r===void 0?!0:r;W=_.Gsw(void 0,W.sources,void 0,r,r?1E3:void 0,r?void 0:1E3)}else W=null;return W},void 0,"UVFJic");
O=_.T7({"--pdp-view-model-background":function(){return E()?"url("+E()+")":void 0}});
var P={};l=_.xz("ytPdpViewModelHost",(P.ytPdpViewModelHasBackground=function(){return Z()||!!E()},P.ytPdpViewModelHasDarkBackground=Z,P.ytPdpViewModelHasScrim=y,P.ytPdpViewModelInternalScrolling=_.uH(l,!1),P));
var U=function(W){var z={};return _.xz("ytPdpViewModelItem",(z.ytPdpViewModelFullBleed=function(){return kS$(W())==="dividerViewModel"||kS$(W())==="sectionHeaderViewModel"},z.ytPdpViewModelNoVerticalPadding=function(){return kS$(W())==="sectionHeaderViewModel"},z))};
_.YK(function(){var W=e().onStartCommand;if(W&&(W=_.p_(W))){var z;(z=_.GG().resolve(_.Xc))==null||z.resolveCommand(W)}});
return _.D("pdp-view-model",{class:l,style:O},_.D("div",{class:"ytPdpViewModelColumnContainer"},_.D(_.HE,{each:function(){return A_L(G(),X())},
keyBy:"INDEX"},function(W){return _.D("div",{class:"ytPdpViewModelColumn"},_.D(_.MR,{data:W},{containerLayoutViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(cA,{data:z}))},
dividerViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(_.gFD,{data:z}))},
pdpCardViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(QxO,{data:z,
stateFns:M}))},
pdpMastheadViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(bAu,{data:z,
isOverlay:Z}))},
pdpPricingGroupSelectorViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(Tbh,{data:z,
stateFns:M}))},
pdpPricingOptionSelectorViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(LWL,{data:z,
stateFns:M}))},
pdpPrimaryButtonViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(kLu,{data:z,
stateFns:M}))},
pdpSummaryViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(Ah$,{data:z,
stateFns:M}))},
sectionHeaderViewModel:function(z,r){z=z.data;return _.D("div",{class:U(function(){return W()[r()]})},_.D(_.ak,{data:z}))}}))})))},"wh");
M_4.idomCompat=!0;_.wP(M_4,"pdp-view-model",{props:{data:_.Ld,stateFnsForTesting:_.vs,internalScrolling:_.vs}});var DcQ=_.K(function(O){var x=O.data;var e=O.className;var l=_.L5(_.Hb,function(){return x().flowStateEntityKey});
return _.D("ytm-premium-purchase-button-renderer",{class:_.xz("ytPremiumPurchaseButtonRendererHost",e)},_.D(_.MR,{data:function(){var C;return(C=_.q(l(),Dye))==null?void 0:C.primaryButtonOverride}},{buttonRenderer:function(C){return _.D(_.MP,{data:C.data,
className:e})},
buttonViewModel:function(C){return _.D(_.RV,{data:C.data,className:e})}}))},"xh");
DcQ.idomCompat=!0;var GLQ=_.K(function(O){var x=O.data;O=O.className;var e=function(){return Mlw(x().style)},l=_.xz("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",e),C=_.xz("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",e);
return _.D("yt-flow-bottom-bar-renderer",{class:_.xz("yt-flow-bottom-bar-renderer",O,e)},_.D(_.MR,{data:function(){return x().secondaryButton}},{buttonRenderer:function(Q){return _.D(_.MP,{data:Q.data,
className:C})},
buttonViewModel:function(Q){return _.D(_.RV,{data:Q.data,className:C})},
premiumPurchaseButtonRenderer:function(Q){return _.D(DcQ,{data:Q.data,className:C})}}),_.D(_.MR,{data:function(){return x().primaryButton}},{buttonRenderer:function(Q){return _.D(_.MP,{data:Q.data,
className:l})},
buttonViewModel:function(Q){return _.D(_.RV,{data:Q.data,className:l})},
premiumPurchaseButtonRenderer:function(Q){return _.D(DcQ,{data:Q.data,className:l})}}))},"yh");
GLQ.idomCompat=!0;_.wP(GLQ,"yt-flow-bottom-bar-renderer",{props:{data:_.Ld,className:_.Ld}});var FWT=_.K(function(O){var x=_.xz(O.className,"ytOfferSummaryRendererHost");return _.D("yt-offer-summary-renderer",{class:x},_.D("div",{class:"ytOfferSummaryRendererTextContainer"},_.D("div",{class:"ytOfferSummaryRendererEyebrowText"},_.D(_.TT,{text:function(){return O.data().eyebrowText}})),_.D("div",{class:"ytOfferSummaryRendererTitle"},_.D(_.TT,{text:function(){return O.data().title}})),_.D("div",{class:"ytOfferSummaryRendererSubtitle"},_.D(_.TT,{text:function(){return O.data().subtitle}})),_.D("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.D(_.HE,{each:function(){var e;
return(e=O.data().featureListData)!=null?e:[]}},function(e){var l;
return _.D("div",{class:"ytOfferSummaryRendererFeatureList"},_.D(_.L7,{icon:(l=e.icon)==null?void 0:l.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"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.D("div",{class:"ytOfferSummaryRendererFeatureListText"},_.D(_.TT,{text:e.text,
className:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.D("div",{class:"ytOfferSummaryRendererDescription"},_.D(_.TT,{text:function(){return O.data().description}}))))},"zh");_.wP(_.K(function(O){var x={};x=_.xz("ytOfferSummaryFlowStepRendererHost",(x.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=O.shouldDisableHeaderTopMargin,x));return _.D("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:x},_.D("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.D("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.D(_.TT,{text:function(){return O.data().header}})),_.D("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.D(_.TT,{text:function(){return O.data().subtitle}}))),_.D("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.D(_.MR,{data:function(){return O.data().offerSummary}},{offerSummaryRenderer:function(e){return _.D(FWT,{data:e.data,
className:O.flowClassName})}})))},"Ah"),"yt-offer-summary-flow-step-renderer",{props:{data:_.vs,
flowClassName:_.vs,flowStateEntityKey:_.vs,shouldDisableHeaderTopMargin:_.vs}});var X1h=_.K(function(O){var x=O.data;var e=O.className;var l=O.flowStateEntityKey;var C=O.selectionStepStyle;O=_.lk(function(M){var G=x(),X=l==null?void 0:l();M.target&&(M.stopPropagation(),M=X||"",X=_.Hb(_.dq().getState(),M),G=Object.assign({},X,{premiumPurchaseFlowState:{selectedOptionId:G.optionId,primaryButtonOverride:G.primaryButtonOverride}}),_.dq().dispatch(_.Dc("flowStateEntity",M,G)));return!1});
var Q=function(){return(l==null?void 0:l())||""},L=_.L5(_.Hb,Q);
_.YK(function(){var M=x(),G=Q(),X=L();M.defaultSelected&&G!==""&&M.primaryButtonOverride&&GS4(M.optionId||"",G,M.primaryButtonOverride,X)});
var k={};return _.D("ytm-option-item-renderer",{"on:click":O,class:_.xz(e,"ytm-option-item-renderer",(k["ytm-option-item-renderer--lp2-style"]=function(){return(C==null?void 0:C())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},k))},_.D("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.D("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var M=x(),G=Q(),X=L();X=_.q(X,Dye);return(X?(X==null?void 0:X.selectedOptionId)||"":M.defaultSelected&&G!==""?(M==null?void 0:M.optionId)||"":"")===x().optionId},
name:("input"+_.sS(_.jz)).toString()})),_.D("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.D(_.MR,{data:function(){return x().titleBadge}},{badgeViewModel:function(M){return _.D(_.tX,{data:M.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.D(_.F,{cond:function(){return x().eyebrowText},
then:function(){return _.D("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.D(_.TT,{text:function(){return x().eyebrowText}}))}}),_.D("div",{class:"ytm-option-item-renderer__option-item-title"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.D(_.TT,{text:function(){return x().subtitle}})),_.D(_.F,{cond:function(){return x().featureListData},
then:function(){return _.D("div",{class:"ytm-option-item-renderer__feature-list-data"},_.D(_.HE,{each:function(){return x().featureListData||[]}},function(M){var G,X=(G=M.icon)==null?void 0:G.iconType;
a:switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":G="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":G="ytm-option-item-renderer__feature-list-icon-small";break a;default:G="ytm-option-item-renderer__feature-list-icon-default"}return _.D("div",{class:"ytm-option-item-renderer__feature-list"},_.D(_.L7,{icon:X,className:G,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.D("div",{class:"ytm-option-item-renderer__feature-list-text"},_.D(_.TT,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.D("div",{class:"ytm-option-item-renderer__option-item-description"},_.D(_.TT,{text:function(){return x().description}}))))},"Bh");var oEe=_.K(function(O){var x=O.data;var e=O.flowClassName;var l=O.flowStateEntityKey;var C=O.selectionStepStyle;return _.D("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.D("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.D("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.D(_.TT,{text:function(){return x().title}}),_.D(_.MR,{data:function(){return x().titleBadge}},{badgeViewModel:function(Q){return _.D(_.tX,{data:Q.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.D(_.F,{cond:function(){return x().subtitle},
then:function(){return _.D("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.D(_.TT,{text:function(){return x().subtitle}}))}}),_.D(_.F,{cond:function(){return x().featureListData},
then:function(Q){return _.D("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.D(_.HE,{each:Q},function(L){var k;return _.D("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.D(_.L7,{icon:(k=L.icon)==null?void 0:k.iconType,active:function(){return L.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(L.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"}}}),_.D("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.D(_.TT,{text:L.text,
className:function(){return L.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.D(_.F,{cond:function(){return x().secondaryTitle},
then:function(){return _.D("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.D(_.TT,{text:function(){return x().secondaryTitle}}))}}),_.D(_.HE,{each:function(){return x().sectionDisclaimers||[]}},function(Q){return _.D("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.D(_.TT,{text:Q}))})),_.D(_.MR,{data:function(){return x().optionItems}},{optionItemRenderer:function(Q){return _.D("div",{class:"ytOptionSectionRendererOptionItem"},_.D(X1h,{data:Q.data,
className:e,flowStateEntityKey:l,selectionStepStyle:C}))}}),_.D(_.F,{cond:function(){return x().offerText},
then:function(){return _.D("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.D(_.TT,{text:function(){return x().offerText}}))}}))},"Ch");
oEe.idomCompat=!0;var yhe=_.K(function(O){var x=O.data;var e=O.flowClassName;var l=O.flowStateEntityKey;O=O.isDesktop;var C=function(){var G;return(G=x().flowStateEntityKey)!=null?G:l==null?void 0:l()},Q=function(){return(C==null?void 0:C())||""},L=function(){return x().style},k=_.L5(_.Hb,Q);
_.YK(function(){var G=x(),X=Q(),y=k();!_.q(y,Dye)&&G.noPreselect&&X!==""&&G.defaultButtonOverride&&GS4("default",X,G.defaultButtonOverride,y)});
var M={};return _.D("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.xz("ytm-option-selection-flow-step-renderer",(M["ytm-option-selection-flow-step-renderer--desktop"]=O,M["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return x().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},M))},_.D("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"},
_.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.D(_.TT,{text:function(){return x().header}})),_.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.D(_.TT,{text:function(){return x().subtitle}}))),_.D(_.MR,{data:function(){return x().optionItems||[]}},{optionItemRenderer:function(G){return _.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.D(X1h,{data:G.data,
className:e,flowStateEntityKey:C,selectionStepStyle:L}))},
optionSectionRenderer:function(G){return _.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.D(oEe,{data:G.data,flowClassName:e,flowStateEntityKey:C,selectionStepStyle:L}))}}))},"Dh");
yhe.idomCompat=!0;_.wP(yhe,"yt-option-selection-flow-step-renderer",{props:{data:_.Ld,flowClassName:_.Ld,flowStateEntityKey:_.Ld,isDesktop:_.Ld}});_.IA=_.K(function(O){var x=_.YX(O,{type:1,disablePadding:!1,disablePrimaryButton:!1}),e=x.data,l=x.type;O=x.disablePadding;var C=x.disablePrimaryButton,Q=x.onClickPrimaryButton,L=function(){return e().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},k=function(){return{disabled:C(),
state:C()?"disabled":"active"}},M=function(){return e().leadingLabel||e().trailingLabel};
x={};return _.D("yt-panel-footer-view-model",{class:_.xz("yt-panel-footer-view-model",(x["yt-panel-footer-view-model--hide-divider"]=function(){return e().shouldHideDivider},x["yt-panel-footer-view-model--disable-padding"]=O,x))},_.D(_.F,{cond:M,
then:function(){var G={},X={};return _.D("div",{class:_.xz("yt-panel-footer-view-model__text-row",(G["yt-panel-footer-view-model--row-bottom-padding"]=function(){var y=e();return!(!y.leadingLabel&&!y.trailingLabel||!y.primaryButton&&!y.secondaryButton)},G))},_.D(_.TT,{text:function(){return e().leadingLabel},
className:_.xz((X["yt-panel-footer-view-model--text-padding"]=M,X))}),_.D(_.TT,{text:function(){return e().trailingLabel}}))}}),_.D(_.F,{cond:L,
then:function(){var G={};return _.D("div",{class:"yt-panel-footer-view-model__button-stack"},_.D("div",{class:_.xz("yt-panel-footer-view-model__primary-button",(G["yt-panel-footer-view-model__button-stack--top-button"]=function(){return e().secondaryButton},G))},_.D(_.MR,{data:function(){return e().primaryButton}},{buttonViewModel:function(X){return _.D(_.RV,{data:X.data,
buttonOverrides:k,onClick:Q})}})),_.D(_.MR,{data:function(){return e().secondaryButton}},{buttonViewModel:_.RV}))}}),_.D(_.F,{cond:function(){return!L()},
then:function(){var G={},X={},y={};return _.D("div",{class:_.xz("yt-panel-footer-view-model__button-row",(G["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===l()},G))},_.D("div",{class:_.xz("yt-panel-footer-view-model__button-row--left-button",(X["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===l()},X["yt-panel-footer-view-model__button-row--hidden"]=function(){return!e().secondaryButton||0===l()},X["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===l()},X))},_.D(_.MR,{data:function(){return e().secondaryButton}},{buttonViewModel:_.RV})),_.D("div",{class:_.xz("yt-panel-footer-view-model__primary-button",(y["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===l()||1===l()},y["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===l()},y))},_.D(_.MR,{data:function(){return e().primaryButton}},{buttonViewModel:function(Z){return _.D(_.RV,{data:Z.data,
buttonOverrides:k,onClick:Q})}})))}}))},"Eh");
_.IA.idomCompat=!0;_.ZAw=_.K(function(O){O=_.YX(O,{disablePadding:!1});var x=O.data,e=O.disablePadding;O=_.MM7(function(){return x().formId});
var l=O.submitForm,C=O.isValid,Q=O.isSubmitting;return _.D("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.D(_.MR,{data:function(){return x().panelFooter}},{panelFooterViewModel:function(L){return _.D(_.IA,{data:L.data,
onClickPrimaryButton:function(){l()},
disablePrimaryButton:function(){return!C()||Q()},
disablePadding:e})}}))},"Fh");_.wP(_.ZAw,"yt-form-footer-view-model",{props:{data:_.Ld,disablePadding:_.Ld}});var EET=_.K(function(O){var x=_.t("enable_user_rating_web");return _.D("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.D(_.F,{cond:function(){var e;return(e=O.data())==null?void 0:e.image},
then:function(e){return _.D(_.n_,{data:e,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.D(_.TT,{text:function(){var e;
return(e=O.data())==null?void 0:e.title}})),_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.D(_.TT,{text:function(){var e;
return(e=O.data())==null?void 0:e.subtitle}})),_.D(_.F,{cond:function(){return!x},
then:function(){return _.D(_.MR,{data:function(){var e;return(e=O.data())==null?void 0:e.viewTipsButton}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Gh");_.wP(EET,"yt-contributor-zero-state-view-model",{props:{data:_.Ld}});var t_w=_.K(function(O){var x=function(){var e;return(e=O.data())==null?void 0:e.image};
return _.D("yt-featured-content-item-view-model",{class:_.xz("ytFeaturedContentItemViewModelHost")},_.D("div",{class:_.xz(function(){return x()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.D("div",{class:function(){return x()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.D(_.F,{cond:x,
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelImage"},_.D(_.MR,{data:function(){return O.data().image}},{themedImageViewModel:function(e){return _.D(lSe,{data:e.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.D(_.F,{cond:function(){var e;
return!x()&&((e=O.data())==null?void 0:e.iconName)},
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelIcon"},_.D(_.L7,{icon:function(){return O.data().iconName}}))}}),_.D("div",{class:"ytFeaturedContentItemViewModelContent"},_.D(_.F,{cond:function(){var e;
return(e=O.data())==null?void 0:e.title},
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.D(_.TT,{text:function(){return O.data().title}}))}}),_.D(_.F,{cond:function(){var e;
return(e=O.data())==null?void 0:e.body},
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.D(_.TT,{text:function(){return O.data().body}}))}})))))},"Hh");var qQ$=_.K(function(O){var x=function(){var C;return FNL((C=O.data())==null?void 0:C.titleFontSize)},e=function(){var C;
return XoX((C=O.data())==null?void 0:C.descriptionFontSize)},l=function(){var C;
return((C=O.data())==null?void 0:C.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.D("yt-landing-page-view-model",{class:_.xz("ytLandingPageViewModelHost",O.className)},_.D("div",{class:"ytLandingPageViewModelHeader"},_.D(_.F,{cond:function(){var C;return(C=O.data())==null?void 0:C.bannerImage},
then:function(C){return _.D("div",{class:"ytLandingPageViewModelHeaderImage"},_.D(_.MR,{data:function(){return C()}},{imageBannerViewModel:function(Q){return _.D(_.li,{data:Q.data,
isPositionRelative:!0})}}))}}),_.D(_.F,{cond:function(){var C;
return(C=O.data())==null?void 0:C.bannerAnimation},
then:function(C){return _.D(_.hc,{data:function(){var Q=C();if(Q==null?0:Q.url){var L;Q={path:(L=Q==null?void 0:Q.url)!=null?L:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(Q==null?0:Q.payload){var k;Q={animationData:JSON.parse((k=Q==null?void 0:Q.payload)!=null?k:""),autoplay:!0,loop:!0,renderer:"svg"}}else Q=void 0;return{animationConfig:Q}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.D("div",{class:"ytLandingPageViewModelHeaderTitle"},_.D(_.F,{cond:function(){var C;
return(C=O.data())==null?void 0:C.title},
then:function(C){return _.D("div",{class:_.xz("ytLandingPageViewModelHeaderTitleContent",x)},_.D(_.TT,{text:function(){return C()}}))}}),_.D(_.F,{cond:function(){var C;
return(C=O.data())==null?void 0:C.description},
then:function(C){var Q={};return _.D(_.TT,{className:_.xz("ytLandingPageViewModelHeaderTitleDescription",e,(Q.ytLandingPageViewModelHeaderTitleDescriptionMargin=l,Q)),text:function(){return C()}})}}))),_.D(_.F,{cond:function(){var C,Q;
return(C=O.data())==null?void 0:(Q=C.featuredContentList)==null?void 0:Q.length},
then:function(){return _.D("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.D(_.MR,{data:function(){return O.data().featuredContentList}},{featuredContentItemViewModel:function(C){return _.D(t_w,{data:C.data})}}))}}),_.D(_.F,{cond:function(){var C,Q;
return(C=O.data())==null?void 0:(Q=C.expandableContentList)==null?void 0:Q.length},
then:function(){return _.D("div",{class:"ytLandingPageViewModelFaqSection"},_.D(_.MR,{data:function(){return O.data().expandableContentList}},{faqEntryViewModel:function(C){return _.D("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.D(_.hfz,{data:C.data}))}}))}}),_.D("div",{class:"ytLandingPageViewModelFooter"},_.D(_.F,{cond:function(){var C;
return(C=O.data())==null?void 0:C.legalCopy},
then:function(C){return _.D("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.D(_.TT,{text:function(){return C()}}))}}),_.D(_.F,{cond:function(){var C;
return(C=O.data())==null?void 0:C.actions},
then:function(C){return _.D("div",null,_.D(_.MR,{data:function(){return C()}},{flexibleActionsViewModel:function(Q){return _.D(_.g8,{data:Q.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Ih");_.wP(_.K(function(O){return _.D("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.D("div",{class:"ytLpSectionGroupViewModelContainer"},_.D(_.MR,{data:function(){return O.data().sections}},{landingPageViewModel:function(x){return _.D(qQ$,{data:x.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Jh"),"yt-lp-section-group-view-model",{props:{data:_.Ld}});var P9p=_.K(function(O){var x=O.data;var e=O.selectedKey;var l=O.onSelected;var C=O.groupName;var Q=function(){return x().text},L=function(){return x().attributedText},k=function(){return x().subtext},M=function(){return x().attributedSubtext},G=_.D("div",{class:"ytRadioButtonItemViewModelLabel"},_.D(_.F,{cond:Q,
then:function(){return _.D("div",null,Q)}}),_.D(_.F,{cond:L,
then:function(){return _.D(_.TT,{text:L})}}),_.D(_.F,{cond:k,
then:function(){return _.D("div",{class:"ytRadioButtonItemViewModelSubText"},k)}}),_.D(_.F,{cond:M,
then:function(){return _.D("div",{class:"ytRadioButtonItemViewModelSubText"},_.D(_.TT,{text:M}))}})),X=function(){if(L()){var Z;
return(Z=L())==null?void 0:Z.content}return Q()},y=function(){if(M()){var Z;
return(Z=M())==null?void 0:Z.content}return k()};
O={};return _.D("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.D(_.gE,{name:C,checked:function(){return!(e==null||!e()||x().key!==(e==null?void 0:e()))},
onChange:function(Z){l==null||l(Z.target,x(),C==null?void 0:C())},
labelRenderable:function(){return G},
ariaLabel:function(){return y()?X()+", "+y():X()},
className:_.xz((O.ytRadioButtonItemViewModelSubTitle=function(){return!!x().subtext},O))}))},"Kh");_.che=_.K(function(O){var x=O.data;var e=function(){var l;return _.qR((l=x())==null?void 0:l.rendererContext)};
O={};return _.D("content-list-item-view-model",{el:_.Y0(_.P8(function(){return x().rendererContext})),
class:_.xz("ytContentListItemViewModelHost",(O.ytContentListItemViewModelTappable=e,O)),role:function(){return e()?"listitem":void 0},
tabindex:function(){return e()?0:void 0}},_.D("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.D("div",{class:"ytContentListItemViewModelImageContainer"},_.D(_.F,{cond:function(){return x().image},
then:function(l){return _.D(_.n_,{data:l,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.D(_.MR,{data:function(){var l;
return(l=x())==null?void 0:l.avatar}},{avatarViewModel:_.jQ})),_.D("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.D("div",{class:_.xz("ytContentListItemViewModelTitle",function(){a:{switch(x().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var l="ytContentListItemViewModelProminentTitle";
break a}l=void 0}return l})},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytContentListItemViewModelMetadata"},_.D(_.MR,{data:function(){return x().metadata}},{contentMetadataViewModel:function(l){return _.D(_.c$,{data:l.data,
layout:1})}})))),_.D("div",{class:"ytContentListItemViewModelActionButton"},_.D(_.MR,{data:function(){var l;
return(l=x())==null?void 0:l.actionButton}},{buttonViewModel:_.RV,
toggleButtonViewModel:_.Jc})))},"Lh");var ISL=_.K(function(O){var x=O.data,e=function(){var C;return(C=x())==null?void 0:C.description},l=function(){var C;
return(C=x())==null?void 0:C.title};
return _.D("ytfc-youth-basic-section-header-view-model",{class:_.xz("ytfcYouthBasicSectionHeaderViewModelHost",O.className)},_.D("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.D(_.MR,{data:function(){var C;return(C=x())==null?void 0:C.avatar}},{avatarViewModel:_.jQ}),_.D(_.F,{cond:function(){var C;
return _.U9((C=x())==null?void 0:C.themedImage)},
then:function(C){return _.D(_.n_,{data:C,alt:function(){var Q,L;return(L=(Q=l())==null?void 0:Q.content)!=null?L:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.D("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.D(_.F,{cond:l,
then:function(){return _.D(_.TT,{text:l,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.D("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.D(_.MR,{data:function(){var C;
return(C=x())==null?void 0:C.bottomBadge}},{badgeViewModel:function(C){return _.D("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.D(_.tX,{data:C.data}))}}),_.D(_.F,{cond:e,
then:function(){return _.D(_.TT,{text:e,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Mh");var V_L=_.K(function(O){var x=O.data;return _.D("ytfc-youth-section-body-view-model",{class:_.xz("ytfcYouthSectionBodyViewModelHost",O.className)},_.D(_.MR,{data:function(){var e;return(e=x())==null?void 0:e.topContent}},{avatarStackViewModel:function(e){return _.D(_.g6,{data:e.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.D(_.TT,{text:function(){var e;
return(e=x())==null?void 0:e.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Nh");var p1h=_.K(function(O){var x=_.T(_.Iw(!1,void 0,"i2FDU")),e=x.next().value,l=x.next().value,C=function(){return O.data().inlineExpansionEntityKey},Q=_.L5(syL,C),L=function(){if(O.isSelected!==void 0)return O.isSelected();
if(C()){var M;return(M=Q())==null?void 0:M.expanded}return e()};
x={};var k={};return _.D("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.lk(function(){O.isSelected!==void 0||C()||l(!e())})},_.D("div",{class:"ytInlineExpanderViewModelHeader"},_.D(_.MR,{data:function(){return O.data().headerContent}},{youthBasicSectionHeaderViewModel:ISL}),_.D("div",{class:_.xz("ytInlineExpanderViewModelButton",(x.ytInlineExpanderViewModelButtonExpanded=L,x))},_.D(_.pd,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:L(),accessibilityLabel:L()?_.CZ("SHOW_LESS",void 0,"Show Less"):_.CZ("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.D("div",{class:_.xz("ytInlineExpanderViewModelBody",(k.ytInlineExpanderViewModelBodyExpanded=L,k)),"aria-hidden":function(){return!L()}},_.D("div",{class:"ytInlineExpanderViewModelBodyContent"},_.D(_.MR,{data:function(){return O.data().bodyContent}},{youthSectionBodyViewModel:V_L}))))},"Oh");var R1T=new _.iR("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.Uce=_.K(function(O){var x=function(){return O.data().background},e=function(){return O.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},l=function(){return O.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},C=_.GG().resolve(_.D0(R1T));
return _.D("yt-card-view-model",{el:_.Y0(_.P8(function(){return O.data().rendererContext})),
class:_.xz("ytCardViewModelHost",O.className)},_.D(_.I4,{contentId:function(){return O.data().contentId}},function(){return _.D("div",{class:_.xz("ytCardViewModelCardViewModelInner",function(){var Q;
return o_w(O.data().cardStyle,(Q=O.isSelected)==null?void 0:Q.call(O))},function(){if(O.isSelected===void 0){var Q;
a:{switch((Q=O.data().cardState)==null?void 0:Q.selectionState){case "CARD_SELECTION_STATE_SELECTED":Q="ytCardViewModelSelected";break a}Q=void 0}return Q}})},_.D(_.MR,{data:x},{cinematicContainerViewModel:function(Q){return _.D(_.w62,{data:Q.data})}}),_.D("div",{class:"ytCardViewModelContentWrapper"},_.D(_.F,{cond:function(){return!e()},
then:function(){var Q={};return _.D("div",{class:"ytCardViewModelTopContentContainer"},_.D("div",{class:"ytCardViewModelTopContent"},_.D(_.MR,{data:function(){return O.data().topContent}},{contentListItemViewModel:function(L){return _.D(_.che,{data:L.data})},
linearLayoutViewModel:_.iA})),_.D("div",{class:_.xz("ytCardViewModelInlineTrailingAction",(Q.ytCardViewModelInlineCenterTrailingAction=l,Q))},_.D(_.MR,{data:function(){return O.data().trailingAction}},{buttonViewModel:function(L){return _.D(_.RV,{data:L.data})}})))}}),_.D("div",{class:"ytCardViewModelBodyContent"},_.D(_.MR,{data:function(){return O.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.xuh,
contentListItemViewModel:_.che,descriptionPreviewViewModel:_.Uy,inlineExpanderViewModel:function(Q){return _.D(p1h,{data:Q.data,isSelected:O.isSelected})},
linearLayoutViewModel:_.iA,listItemViewModel:_.$H},C&&{contentSectionViewModel:C})))),_.D(_.F,{cond:function(){return e()},
then:function(){return _.D("div",{class:"ytCardViewModelOverlayTrailingAction"},_.D(_.MR,{data:function(){return O.data().trailingAction}},{buttonViewModel:function(Q){return _.D(_.RV,{data:Q.data})}}))}}))}))},"Ph");var aSO=_.K(function(O){var x=O.data,e=O.className,l=O.onSelected,C=O.selectedKey,Q=O.groupName;O=_.T(_.Iw(!1,void 0,"zyw1Be"));var L=O.next().value,k=O.next().value,M=function(){if(C!==void 0){var G=C();return!(!G||x().key!==G)}return L()};
O=_.lk(function(G){l?l(G.currentTarget,x(),Q==null?void 0:Q()):k(!L())});
return _.D("yt-selectable-item-view-model",{class:_.xz("ytSelectableItemViewModelHost",e),"on:click":O,"prop:checked":M},_.D(_.MR,{data:function(){return x().content}},{cardViewModel:function(G){return _.D(_.Uce,{data:G.data,
isSelected:M})}}))},"Qh");_.mcL=_.K(function(O){var x=O.data;var e=O.onSelected;var l=O.selectedKey;var C=O.groupName;var Q=function(){return(C==null?void 0:C())||x().key};
return _.D("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.D("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.D(_.MR,{data:function(){return x().radioButtons}},{radioButtonItemViewModel:function(L){return _.D(P9p,{data:L.data,
onSelected:e,selectedKey:l,groupName:Q})},
selectableItemViewModel:function(L){return _.D("div",{class:"ytRadioButtonGroupViewModelSelectableItem"},_.D(aSO,{data:L.data,onSelected:e,selectedKey:l,groupName:Q}))}})))},"Rh");var sxL=_.K(function(O){_.YK(function(){if(O.controlledMode()&&O.data().defaultSelected)_.BH(Error("Xj"));else{var Q;!O.controlledMode()&&((Q=O.selected)==null?0:Q.call(O))&&_.BH(Error("Yj"))}});
var x=_.T(_.bk(function(){if(!O.controlledMode())return O.data().defaultSelected})),e=x.next().value,l=x.next().value,C=function(){if(!O.controlledMode())return e();
var Q;return(Q=O.selected)==null?void 0:Q.call(O)};
return _.D("yt-checkbox-item-view-model",{class:_.xz("ytCheckboxItemViewModelHost",O.className)},_.D(_.$H,{data:function(){var Q=O.data(),L=C();return{title:Q.text,subtitle:Q.subtext,superlabel:Q.superlabel,isSelected:!!L,isDisabled:Q.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!O.controlledMode()&&l(!e());var Q,L;(L=O.onTap)==null||L.call(O,!!C(),O.data(),(Q=O.groupName)==null?void 0:Q.call(O))},
isCompact:O.isCompact}))},"Sh");var WWL=_.K(function(O){var x=O.data;var e=O.controlledMode;var l=O.selectedKeys;var C=O.onItemTap;var Q=O.groupName;var L=function(){return(Q==null?void 0:Q())||x().key};
_.YK(function(){e()&&x().defaultSelectedKeys?_.BH(Error("Zj")):!e()&&(l==null?0:l())&&_.BH(Error("$j"))});
O=_.T(_.bk(function(){if(!e())return x().defaultSelectedKeys}));
var k=O.next().value,M=O.next().value,G=function(X,y,Z){X=[];!e()&&y.key&&(X=y_L(y.key,k()||[]),M(X));C==null||C(y,X,Z)};
return _.D("yt-checkbox-group-view-model",{class:_.xz("ytCheckboxGroupViewModelHost")},_.D("fieldset",{class:_.xz("ytCheckboxGroupViewModelFieldset")},_.D(_.MR,{data:function(){return x().checkboxes}},{checkboxItemViewModel:function(X){var y=X.data;
return _.D(sxL,{data:y,controlledMode:!0,selected:function(){var Z=e()?(l==null?void 0:l())||[]:k()||[],E=y().key;return E?Z.includes(E):!1},
onTap:G,groupName:L})}})))},"Th");var VH=_.K(function(O){var x=_.L5(ZGT,_.uH(function(){var k;return(k=O.data())==null?void 0:k.noteFeedEntityKey},"")),e=_.L5(rap,_.uH(function(){var k;
return(k=O.data())==null?void 0:k.userRatingEntityKey},"")),l=_.t("enable_user_rating_web"),C=function(){var k,M,G;
return((k=x())==null?0:k.contributorNote)?(M=x())==null?void 0:M.contributorNote:(G=O.data())==null?void 0:G.existingNote},Q=function(){var k,M;
return!!e()&&!!E_p((k=e())==null?void 0:k.helpfulnessValue,(M=O.data())==null?void 0:M.noteData)};
if(l){var L={};return _.D("yt-note-view-model",{class:_.xz("ytNoteViewModelHostUserRating",(L.ytNoteViewModelHostUserRatingPublishedNote=function(){var k,M,G,X;return((k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.isPublished)&&!((G=O.data())==null?0:(X=G.noteData)==null?0:X.isUserRatingForm)},L))},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.D(_.F,{cond:function(){var k,M;
return(k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.isPinned},
then:function(){return _.D(_.L7,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.D(_.F,{cond:function(){var k,M;return(k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.isPublished},
then:function(){return _.D(_.L7,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.D(_.MR,{data:function(){var k;
return(k=O.data())==null?void 0:k.metadata}},{contentMetadataViewModel:_.c$}),_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var k,M;
return(M=_.q((k=O.data())==null?void 0:k.metadata,_.lL4))==null?void 0:M.delimiter}),_.D(_.TT,{text:function(){var k;
return(k=C())==null?void 0:k.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.D(_.F,{cond:function(){var k,M;return!((k=O.data())==null?0:(M=k.noteData)==null?0:M.isUserRatingForm)},
then:function(){return _.D(_.MR,{data:function(){var k,M,G,X,y,Z,E,P=!!((k=O.data())==null?0:(M=k.noteData)==null?0:M.isPinned);k=Q();M=(G=O.data())==null?void 0:G.noteData;G=(X=x())==null?void 0:(y=X.contributorNote)==null?void 0:y.deleteAction;X=(Z=O.data())==null?void 0:Z.overflowButtonNoteWithRatingOnTapOverride;Z=(E=O.data())==null?void 0:E.overflowButton;return P?tlQ(M,G):k?{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:X}}:Z}},{buttonViewModel:function(k){return _.D(_.RV,{data:k.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.D("div",{class:"ytNoteViewModelNoteContent"},_.D(_.TT,{text:function(){var k;
return(k=C())==null?void 0:k.text}})),_.D(_.F,{cond:function(){var k,M,G,X;
return!((k=O.data())==null?0:(M=k.noteData)==null?0:M.isPinned)&&!((G=O.data())==null?0:(X=G.noteData)==null?0:X.isUserRatingForm)},
then:function(){return _.D(_.F,{cond:Q,then:function(){return _.D("div",{class:"ytNoteViewModelUserRatingContainer"},_.D(_.TT,{text:function(){var k,M;return E_p((k=e())==null?void 0:k.helpfulnessValue,(M=O.data())==null?void 0:M.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.D(_.MR,{data:function(){var k;return(k=O.data())==null?void 0:k.userRatingButton}},{buttonViewModel:function(k){return _.D(_.RV,{data:k.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.D(_.F,{cond:function(){var k,M,G,X;
return!((k=O.data())==null?0:(M=k.noteData)==null?0:M.ignoreDivider)&&!((G=O.data())==null?0:(X=G.noteData)==null?0:X.isUserRatingForm)},
then:function(){return _.D("div",{class:"ytNoteViewModelDivider"},_.D(_.MR,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(k){return _.D(_.gFD,{data:k.data})}}))}}))}return _.D("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.D(_.F,{cond:function(){var k,M;return(k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.isPinned},
then:function(){return _.D(_.L7,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.D(_.F,{cond:function(){var k,M;return(k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.isPublished},
then:function(){return _.D(_.L7,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.D(_.F,{cond:function(){return l},
then:function(){return _.D(_.MR,{data:function(){var k;return(k=O.data())==null?void 0:k.metadata}},{contentMetadataViewModel:function(k){return _.D(_.c$,{data:k.data})}})}}),_.D(_.TT,{text:function(){var k,M;
return(k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.headerText}}),_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.D(_.TT,{text:function(){var k,M;
return(k=O.data())==null?void 0:(M=k.noteData)==null?void 0:M.delimiter}})),_.D(_.TT,{text:function(){var k,M;
return(k=x())==null?void 0:(M=k.contributorNote)==null?void 0:M.publishedTimeText}})),_.D(_.MR,{data:function(){var k,M,G;
return tlQ((k=O.data())==null?void 0:k.noteData,(M=x())==null?void 0:(G=M.contributorNote)==null?void 0:G.deleteAction)}},{buttonViewModel:function(k){return _.D(_.RV,{data:k.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.D("div",{class:"ytNoteViewModelNoteContent"},_.D(_.TT,{text:function(){var k,M;
return(k=x())==null?void 0:(M=k.contributorNote)==null?void 0:M.text}})))},"Uh");
VH.idomCompat=!0;_.wP(_.K(function(O){var x=_.uH(function(){var r;return(r=O.data())==null?void 0:r.flowStateEntityKey},""),e=_.L5(_.Hb,x),l=_.L5(ZGT,_.uH(function(){var r;
return(r=O.data())==null?void 0:r.noteFeedEntityKey},"")),C=_.T(_.bk(function(){var r;
return(r=_.q(O.data().helpfulnessValue,_.Sq))==null?void 0:r.defaultSelectedKey})),Q=C.next().value,L=C.next().value;
C=_.T(_.bk(function(){var r,f,u;return(u=_.q((r=_.q(O.data().helpfulnessValue,_.Sq))==null?void 0:(f=r.radioButtons)==null?void 0:f.find(function(Y){var J;return((J=_.q(Y,Brw))==null?void 0:J.key)===Q()}),Brw))==null?void 0:u.value}));
var k=C.next().value,M=C.next().value;C=_.T(_.bk(function(){var r;return(r=_.q(O.data().helpfulReasons,YbL))==null?void 0:r.defaultSelectedKeys}));
var G=C.next().value,X=C.next().value;C=_.T(_.bk(function(){var r;return(r=_.q(O.data().notHelpfulReasons,YbL))==null?void 0:r.defaultSelectedKeys}));
var y=C.next().value,Z=C.next().value,E=function(r,f){L(f.key);M(f.value);X([]);Z([])},P=function(){var r,f;
return((r=k())==null?void 0:r.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((f=k())==null?void 0:f.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},U=function(){var r,f;
return((r=k())==null?void 0:r.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((f=k())==null?void 0:f.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},W=function(r){qvu(r.key,G,X)},z=function(r){qvu(r.key,y,Z)};
_.YK(function(){var r,f,u;hR$((r=O.data())==null?void 0:(f=r.userRatingFormSchema)==null?void 0:f.id,{isValid:function(){return!!Q()},
formData:function(){var Y=k(),J=c_T(G(),_.q(O.data().helpfulReasons,YbL)),O8=c_T(y(),_.q(O.data().notHelpfulReasons,YbL));Y={helpfulnessValue:Y==null?void 0:Y.noteHelpfulnessValue};if(J){Y.helpfulReasons=[];J=_.T(J);for(var Xr=J.next();!Xr.done;Xr=J.next()){Xr=Xr.value;var Fr=void 0;if((Fr=Xr)==null?0:Fr.noteHelpfulReason)Fr=void 0,Y.helpfulReasons.push((Fr=Xr)==null?void 0:Fr.noteHelpfulReason)}}if(O8)for(Y.notHelpfulReasons=[],O8=_.T(O8),J=O8.next();!J.done;J=O8.next())if(J=J.value,Xr=void 0,(Xr=
J)==null?0:Xr.noteNotHelpfulReason)Xr=void 0,Y.notHelpfulReasons.push((Xr=J)==null?void 0:Xr.noteNotHelpfulReason);return{userRatingFormData:Y}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(u=_.q(e(),zop))==null?void 0:u.submitFormParams},onSubmitResult:function(){var Y,J=(Y=_.q(e(),zop))==null?void 0:Y.userRatingEntityKey,O8;Y={key:J,helpfulnessValue:(O8=k())==null?void 0:O8.noteHelpfulnessValue};J&&_.ns(_.Dc("contextNoteUserRatingEntityPayload",J,Y));var Xr;J=(Xr=O.data())==null?void 0:Xr.viewNoteFlowStepId;var Fr;if((Fr=l())==null||!Fr.contributorNote){var mL;J=(mL=O.data())==null?void 0:mL.zeroStateFlowStepId}(Xr=
Object.assign({},e()))&&J&&(Xr.currentStepId=J,Xr.stepIdStack=[J],_.ns(_.Dc("flowStateEntity",x(),Xr)));Xr=_.GG().resolve(_.Xc);var Zn;(Fr=(Zn=O.data())==null?void 0:Zn.ratingSubmittedSnackbarCommand)&&Xr&&Xr.resolveCommand(Fr)},
disableDuringSubmission:!0})});
return _.D("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.D(_.MR,{data:function(){var r=_.q(e(),zop);if(r){var f;var u={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:r==null?void 0:(f=r.note)==null?void 0:f.headerText}]}],delimiter:"\u2022"}},existingNote:r.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else u=void 0;return u}},{noteViewModel:function(r){return _.D("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.D(VH,{data:r.data}))}}),_.D(_.MR,{data:function(){var r;
return(r=O.data())==null?void 0:r.helpfulnessValue}},{radioButtonGroupViewModel:function(r){return _.D("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.D(_.mcL,{data:r.data,
onSelected:E,selectedKey:Q}))}}),_.D(_.F,{cond:P,
then:function(){return _.D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.D(_.TT,{text:function(){var r;return(r=O.data())==null?void 0:r.helpfulReasonQuestion}})),_.D(_.MR,{data:function(){var r;
return(r=O.data())==null?void 0:r.helpfulReasons}},{checkboxGroupViewModel:function(r){return _.D(WWL,{data:r.data,
onItemTap:W,selectedKeys:G,controlledMode:!0})}}))}}),_.D(_.F,{cond:U,
then:function(){return _.D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.D("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.D(_.TT,{text:function(){var r;return(r=O.data())==null?void 0:r.notHelpfulReasonQuestion}})),_.D(_.MR,{data:function(){var r;
return(r=O.data())==null?void 0:r.notHelpfulReasons}},{checkboxGroupViewModel:function(r){return _.D(WWL,{data:r.data,
onItemTap:z,selectedKeys:y,controlledMode:!0})}}))}}),_.D(_.F,{cond:function(){return!P()&&!U()},
then:function(){return _.D(_.MR,{data:function(){var r;return(r=O.data())==null?void 0:r.helpfulNoteFeatures}},{alertBannerViewModel:function(r){return _.D("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.D(_.C$T,{data:r.data}))}})}}))},"Vh"),"yt-note-user-rating-view-model",{props:{data:_.Ld}});_.wP(VH,"yt-note-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=_.L5(ZGT,_.uH(function(){var e;return(e=O.data())==null?void 0:e.noteFeedEntityKey},""));
return _.D("yt-notes-wrapper-view-model",{class:_.xz("ytNotesWrapperViewModelHost")},_.D(_.F,{cond:function(){var e,l,C;return!((e=O.data())==null||!e.existingNotes)||!((l=O.data())==null||!l.currentNote)&&!((C=x())==null||!C.contributorNote)},
then:function(){return _.D(_.Xm,null,_.D(_.MR,{data:function(){var e,l,C,Q;return((l=_.q((e=O.data())==null?void 0:e.currentNote,rs4))==null?0:(C=l.noteData)==null?0:C.isPublished)?(Q=O.data())==null?void 0:Q.currentNote:void 0}},{noteViewModel:function(e){return _.D(VH,{data:e.data})}}),_.D(_.MR,{data:function(){var e;
return(e=O.data())==null?void 0:e.existingNotes}},{noteViewModel:function(e){var l=e.data;
return _.D(_.F,{cond:function(){var C,Q;return(C=l())==null?void 0:(Q=C.noteData)==null?void 0:Q.isPublished},
then:function(){return _.D(VH,{data:l})}})}}),_.D(_.MR,{data:function(){var e,l,C,Q,L;
return((l=_.q((e=O.data())==null?void 0:e.currentNote,rs4))==null?0:(C=l.noteData)==null?0:C.isPublished)||(Q=x())==null||!Q.contributorNote?void 0:(L=O.data())==null?void 0:L.currentNote}},{noteViewModel:function(e){return _.D(VH,{data:e.data})}}),_.D(_.MR,{data:function(){var e;
return(e=O.data())==null?void 0:e.existingNotes}},{noteViewModel:function(e){var l=e.data;
return _.D(_.F,{cond:function(){var C,Q;return!((C=l())==null?0:(Q=C.noteData)==null?0:Q.isPublished)},
then:function(){return _.D(VH,{data:l})}})}}))},
else:function(){return _.D(_.MR,{data:function(){var e;return(e=O.data())==null?void 0:e.zeroStateData}},{contributorZeroStateViewModel:EET})}}))},"Wh"),"yt-notes-wrapper-view-model",{props:{data:_.Ld}});var pk=_.K(function(O){var x=_.YX(O,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),e=x.label,l=x.text,C=x.placeholder,Q=x.hint;O=x.rows;var L=x.overflowStyle,k=x.outline,M=x.disabled,G=x.disableNewLines,X=x.characterLimit,y=x.validation,Z=x.onInput,E=_.Q5("textarea");x=_.T(_.bk(function(){return l()}));
var P=x.next().value,U=x.next().value;x=_.T(_.Iw(!1,void 0,"u9PDq"));var W=x.next().value,z=x.next().value,r=function(){z(!0)},f=function(){z(!1)};
_.YK(function(){var KV=E.value,VN=L(),Pd=P();VN==="expand-vertically"&&Pd&&Iy4(KV);E.value.addEventListener("focusin",r);E.value.addEventListener("focusout",f)});
_.YO(function(){E.value.removeEventListener("focusin",r);E.value.removeEventListener("focusout",f)});
var u=function(){var KV;return(KV=y())==null?void 0:KV.validate(P())},Y=function(){return X()&&!u()&&P().length>X().maxChars},J=function(){return!!u()||Y()};
x=_.lk(function(KV){if(!KV.currentTarget)return!1;KV=KV.currentTarget;U(KV.value);L()==="expand-vertically"&&Iy4(KV);Z==null||Z(KV.value);return!0});
var O8=_.lk(function(KV){G()&&KV.key==="Enter"&&KV.preventDefault();return!1}),Xr=_.lk(function(){E.value.focus()}),Fr=function(){return C()||e()},mL={},Zn={},q$={};
return _.D("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.D("div",{class:_.xz("ytStandardsTextareaShapeTextareaContainer",(mL.ytStandardsTextareaShapeTextareaContainerOutline=k,mL.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=M,mL.ytStandardsTextareaShapeTextareaContainerOutlineError=J,mL)),"on:click":Xr},_.D("label",{class:_.xz("ytStandardsTextareaShapeLabel",(Zn.ytStandardsTextareaShapeLabelFocused=W,Zn.ytStandardsTextareaShapeLabelDisabled=M,Zn.ytStandardsTextareaShapeLabelError=
function(){return J()&&!M()},Zn.ytStandardsTextareaShapeLabelHidden=function(){return!W()&&!P()&&!!Fr()},Zn))},e),_.D("div",{class:_.xz("ytStandardsTextareaShapePlaceholder",(q$.ytStandardsTextareaShapePlaceholderVisible=function(){return!W()&&!P()},q$)),
"aria-hidden":"true"},Fr),_.D("textarea",{el:E,class:"ytStandardsTextareaShapeTextarea",rows:O,disabled:M,placeholder:Fr,"on:input":x,"on:keydown":O8},P)),_.D(_.F,{cond:function(){return Q()&&!J()},
then:function(){var KV={};return _.D("div",{class:_.xz("ytStandardsTextareaShapeHint",(KV.ytStandardsTextareaShapeHintDisabled=M,KV))},_.D("div",{class:"ytStandardsTextareaShapeHintHintMessage"},Q))}}),_.D(_.F,{cond:u,
then:function(){return _.D(h1L,{disabled:M},_.D("div",{class:"ytStandardsTextareaShapeErrorMessage"},u))}}),_.D(_.F,{cond:X,
then:function(KV){return _.D(_.F,{cond:Y,then:function(){return _.D(h1L,{disabled:M},_.D("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return KV().errorMessage}),_.D("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return P().length+"/"+KV().maxChars}))}})}}))},"Xh");
pk.idomCompat={callbacks:{onInput:!0}};var h1L=_.K(function(O){var x={};return _.D("div",{class:_.xz("ytStandardsTextareaShapeError",(x.ytStandardsTextareaShapeErrorDisabled=O.disabled,x)),role:"alert"},_.D(_.L7,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),O.children)},"Yh");_.z1Q=_.K(function(O){var x=O.data;return _.D("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.D(pk,{text:O.text,label:function(){var e;return(e=x().contentProperties)==null?void 0:e.labelText},
placeholder:function(){var e;return(e=x().contentProperties)==null?void 0:e.placeholderText},
hint:function(){var e;return(e=x().contentProperties)==null?void 0:e.hintText},
outline:function(){var e;return!((e=x().displayProperties)==null?0:e.hideBorder)},
overflowStyle:function(){var e;return((e=x().displayProperties)==null?0:e.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:O.disabled,disableNewLines:function(){var e;return(e=x().displayProperties)==null?void 0:e.disableNewLines},
onInput:O.onInput,characterLimit:O.characterLimit,validation:O.validation,rows:function(){var e;return(e=x().displayProperties)==null?void 0:e.rows}}))},"Zh");_.rhO=_.K(function(O){var x=O.data;return _.D("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.D(pk,{text:O.text,label:function(){var e;return(e=x().contentProperties)==null?void 0:e.labelText},
placeholder:function(){var e;return(e=x().contentProperties)==null?void 0:e.placeholderText},
hint:function(){var e;return(e=x().contentProperties)==null?void 0:e.hintText},
outline:function(){var e;return!((e=x().displayProperties)==null?0:e.hideBorder)},
overflowStyle:function(){var e;return((e=x().displayProperties)==null?0:e.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var e;return(e=x().displayProperties)==null?void 0:e.disableNewLines},
onInput:O.onInput,characterLimit:O.characterLimit,validation:O.validation,rows:function(){var e;return(e=x().displayProperties)==null?void 0:e.rows}}))},"$h");var HAQ=_.K(function(O){var x=_.T(_.bk(function(){var Fr,mL;return((Fr=O.data().structuredContextNoteFormSchema)==null?0:(mL=Fr.initialValues)==null?0:mL.noteBody)?O.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),e=x.next().value,l=x.next().value;
x=_.T(_.bk(function(){O.data();return!1}));
var C=x.next().value,Q=x.next().value;x=_.T(_.bk(function(){O.data();return!1}));
var L=x.next().value,k=x.next().value;x=_.T(_.bk(function(){var Fr,mL;return((Fr=O.data().structuredContextNoteFormSchema)==null?0:(mL=Fr.initialValues)==null?0:mL.timestamp)?O.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var M=x.next().value,G=x.next().value;x=_.T(_.bk(function(){O.data();return!1}));
var X=x.next().value,y=x.next().value;x=_.T(_.bk(function(){var Fr,mL;return((Fr=O.data().structuredContextNoteFormSchema)==null?0:(mL=Fr.initialValues)==null?0:mL.sources)?[O.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Z=x.next().value,E=x.next().value;x=_.T(_.bk(function(){O.data();return!1}));
var P=x.next().value,U=x.next().value;x=_.T(_.bk(function(){return!1}));
var W=x.next().value,z=x.next().value;_.YK(function(){var Fr;_.zRL((Fr=O.data().structuredContextNoteFormSchema)==null?void 0:Fr.id,{isSubmitting:W,onSubmit:function(){z(!0);var mL=h6L(e(),M(),Z(),O.data()),Zn=_.GG().resolve(_.Xc);mL&&Zn&&Zn.resolveCommand(mL,{commandController:{onSuccess:function(){z(!1)}}})},
isValid:function(){return C()&&!L()&&!X()&&!P()}})});
var r=function(Fr){if(Fr!==void 0&&(l(Fr),!C()&&Fr.length>0&&Q(!0),C())){var mL=R6L(O.data());if(mL){var Zn=mL.minLength;mL=mL.maxLength;Zn&&Fr.length<Zn?k(!0):mL&&Fr.length>mL?k(!0):k(!1)}}},f=function(Fr){if(Fr!==void 0){G(Fr);
if(Fr.length>0){var mL,Zn,q$,KV,VN=ayT((mL=O.data())==null?void 0:(Zn=mL.structuredContextNoteFormSchema)==null?void 0:(q$=Zn.fieldSchemas)==null?void 0:(KV=q$.timestamp)==null?void 0:KV.validationSchema);if(VN&&(mL=VN.regex)&&!(new RegExp(mL)).test(Fr)){y(!0);return}}y(!1)}},u=function(Fr){if(Fr!==void 0){var mL=Fr.split(/[ \n]/).map(function(Zn){return Zn.trim()});
E(mL);if(Fr.length>0)for(Fr=_.T(mL),mL=Fr.next();!mL.done;mL=Fr.next())if(!WNp(mL.value)){U(!0);return}U(!1)}},Y=function(){return{validate:function(Fr){if(C()){var mL=R6L(O.data());
if(mL){var Zn=mL.minLength;mL=mL.translations;if(Zn&&Fr.length<Zn)return mL==null?void 0:mL.minLengthErrorMessage}}}}},J=function(){var Fr=R6L(O.data()),mL=Fr==null?void 0:Fr.maxLength,Zn;
Fr=Fr==null?void 0:(Zn=Fr.translations)==null?void 0:Zn.maxLengthErrorMessage;if(mL&&Fr)return{maxChars:mL,errorMessage:Fr}},O8=function(){return{validate:function(Fr){if(Fr){var mL,Zn,q$,KV,VN=ayT((mL=O.data())==null?void 0:(Zn=mL.structuredContextNoteFormSchema)==null?void 0:(q$=Zn.fieldSchemas)==null?void 0:(KV=q$.timestamp)==null?void 0:KV.validationSchema);
if(VN&&(mL=VN.regex,VN=VN.translations,mL&&!(new RegExp(mL)).test(Fr)))return VN==null?void 0:VN.regexErrorMessage}}}},Xr=function(){return{validate:function(Fr){if(Fr){var mL,Zn,q$,KV,VN=spp((mL=O.data())==null?void 0:(Zn=mL.structuredContextNoteFormSchema)==null?void 0:(q$=Zn.fieldSchemas)==null?void 0:(KV=q$.sources)==null?void 0:KV.validationSchema);
if(VN&&(mL=VN.translations,mL==null?0:mL.selectedErrorMessage))for(Fr=Fr.split(/[ \n]/).map(function(Pd){return Pd.trim()}),Fr=_.T(Fr),Zn=Fr.next();!Zn.done;Zn=Fr.next())if(!WNp(Zn.value))return Fr=void 0,(Fr=mL)==null?void 0:Fr.selectedErrorMessage}}}};
return _.D("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.D("div",{class:"ytStructuredContextNoteViewModelTextField"},_.D(_.MR,{data:function(){var Fr;return(Fr=O.data())==null?void 0:Fr.noteContents}},{textFormFieldViewModel:function(Fr){return _.D(_.rhO,{data:Fr.data,
onInput:r,validation:Y,characterLimit:J})},
textFieldViewModel:function(Fr){return _.D(_.z1Q,{data:Fr.data,onInput:r,validation:Y,characterLimit:J})}})),_.D("div",{class:"ytStructuredContextNoteViewModelTextField"},_.D(_.MR,{data:function(){var Fr;
return(Fr=O.data())==null?void 0:Fr.noteTimestamp}},{textFormFieldViewModel:function(Fr){return _.D(_.rhO,{data:Fr.data,
onInput:f,validation:O8})},
textFieldViewModel:function(Fr){return _.D(_.z1Q,{data:Fr.data,onInput:f,validation:O8})}})),_.D("div",{class:"ytStructuredContextNoteViewModelTextField"},_.D(_.MR,{data:function(){var Fr;
return(Fr=O.data())==null?void 0:Fr.noteSources}},{textFormFieldViewModel:function(Fr){return _.D(_.rhO,{data:Fr.data,
onInput:u,validation:Xr})},
textFieldViewModel:function(Fr){return _.D(_.z1Q,{data:Fr.data,onInput:u,validation:Xr})}})))},"ai");
HAQ.idomCompat=!0;_.wP(HAQ,"yt-structured-context-note-view-model",{props:{data:_.Ld}});var KWp=_.K(function(O){var x=_.T(_.bk(function(){var Q;if((Q=O.controlled)==null?0:Q.call(O))return[];var L;return(((L=O.data())==null?void 0:L.chips)||[]).map(function(k){k=_.q(k,_.$o);if(k==null?0:k.selected)return z64(k.chipValue)}).filter(function(k){return k!==void 0})})),e=x.next().value,l=x.next().value,C=function(Q){var L=z64(Q.chipValue);
if(L!==void 0){var k;if((k=O.controlled)==null?0:k.call(O))return void O.controlled().onTap(L);Q=e().includes(L)?[].concat(_.Kx(e().filter(function(G){return G!==L}))):[].concat(_.Kx(e()),[L]);
l(Q);var M;if((M=O.uncontrolled)==null?0:M.call(O))O.uncontrolled().onUpdate(Q)}};
return _.D("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.D(_.HE,{each:function(){return O.data().chips||[]}},function(Q){return _.D("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.D(_.jIR,{data:function(){return _.q(Q,_.$o)},
selected:function(){var L;if(L=_.q(Q,_.$o)){var k=z64(L.chipValue);if(k!==void 0){var M;L=((M=O.controlled)==null?0:M.call(O))?O.controlled().selectedValues.includes(k):e().includes(k)}else L=void 0}else L=!1;return L},
callback:C}))}))},"bi");var dcQ=_.K(function(O){var x=O.data;var e=function(){var k;return((k=x())==null?void 0:k.flowStateKey)||""},l=_.L5(_.Hb,e),C=function(){var k;
return(k=_.q(l(),H1u))==null?void 0:k.chips},Q=function(k){if(k!==void 0){var M=C()||[];
M=M.find(function(G){return G===k})?M.filter(function(G){return G!==k}):[].concat(_.Kx(M),[k]);
M=Object.assign({},l(),{feedbackFormFlowState:Object.assign({},_.q(l(),H1u),{chips:M})});_.ns(_.Dc("flowStateEntity",e(),M))}},L=function(){var k;
return _.q((k=x())==null?void 0:k.inputBox,KHY)};
O=_.yf(function(k){var M=L();M=!(M==null?0:M.maxChars)||k.length<=M.maxChars;k=Object.assign({},l(),{feedbackFormFlowState:Object.assign({},_.q(l(),H1u),{detail:k}),abuseReportFlowState:Object.assign({},_.q(l(),wt),{navigationEnabled:M})});_.ns(_.Dc("flowStateEntity",e(),k))},150);
return _.D("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.D("div",{class:"ytFeedbackFormViewModelChips"},_.D(_.MR,{data:function(){var k;return(k=x())==null?void 0:k.chipSelection}},{chipSelectionFormFieldViewModel:function(k){return _.D(KWp,{data:k.data,
controlled:function(){return{selectedValues:C()||[],onTap:Q}}})}})),_.D("div",{class:"ytFeedbackFormViewModelInputBox"},_.D(pk,{text:function(){var k;
return(k=_.q(l(),H1u))==null?void 0:k.detail},
placeholder:function(){var k;return((k=L())==null?void 0:k.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var k=L();if(k&&k.maxChars)return{maxChars:k.maxChars,errorMessage:k.maxCharsExceededErrorMessage||""}},
onInput:O})),_.D("div",{class:"ytFeedbackFormViewModelFooterText"},_.D(_.TT,{text:function(){return x().footerText}})))},"ci");
dcQ.idomCompat=!0;_.wP(dcQ,"yt-feedback-form-view-model",{props:{data:_.Ld}});var nE4=_.K(function(O){var x=O.data;var e=_.L5(W1e,function(){return x().flowStateKey||""}),l=function(){var C;
_.me((C=_.q(e(),wt))==null?void 0:C.navigationCommand)};
return _.D("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.D("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.D(_.MR,{data:function(){return x().cancelButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:l})}}),_.D(_.MR,{data:function(){var C;
if(x().navButton){var Q=Object;var L=Q.assign,k=_.q(x().navButton,_.gf),M=((C=_.q(e(),wt))==null?0:C.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",G,X;C=_.q((G=_.q(e(),wt))==null?void 0:G.navigationCommand,_.VG);G=(X=_.q(C,_.$b))==null?void 0:X.url;Q={buttonViewModel:L.call(Q,{},k,{state:M,iconName:G?"OPEN_IN_NEW":""})}}else Q=void 0;return Q}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:l})}})))},"di");
nE4.idomCompat=!0;_.wP(nE4,"yt-report-form-bottom-bar-view-model",{props:{data:_.Ld}});var uxu=_.K(function(O){var x=O.nextStep;return _.D("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.D("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.D(_.L7,{icon:function(){return x().iconName||""}})),_.D("div",null,_.D(_.TT,{text:function(){return x().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ei"),YQ$=_.K(function(O){var x=O.data;
var e,l=(e=_.GG().resolve(_.D0(_.rP)))==null?void 0:e(),C=_.L5(_.Hb,function(){return x().flowStateKey||""});
return _.D("yt-report-form-confirmation-page-view-model",{class:function(){var Q;return((Q=_.q(C(),wt))==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.D("div",{class:function(){var Q;
return((Q=_.q(C(),wt))==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.D(_.n_,{data:function(){return l&&x().imageDark?x().imageDark:x().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.D("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.D("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return x().confirmationHeader}),_.D("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.D(_.TT,{text:function(){return x().confirmationText}})),_.D("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.D(_.TT,{text:function(){return x().lawEnforcementText}})),
_.D("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return x().whatToExpectHeader}),_.D(_.F,{cond:function(){return x().nextSteps},
then:function(Q){return _.D("div",null,_.D(_.HE,{each:Q},function(L){return _.D(uxu,{nextStep:L})}))}}),_.D(_.F,{cond:function(){return x().legalReportText},
then:function(Q){return _.D("div",null,_.D(_.TT,{text:Q,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"fi");
YQ$.idomCompat=!0;_.wP(YQ$,"yt-report-form-confirmation-page-view-model",{props:{data:_.Ld}});var Bbw=_.K(function(O){var x=O.data;var e=function(){var Q;return((Q=_.q(x().inputBox,KHY))==null?void 0:Q.maxChars)||500},l=function(){return x().flowStateKey||""},C=_.L5(_.Hb,l);
O=_.yf(function(Q){Q=Object.assign({},C(),{flowFormState:{isValid:Q.length<=e()},abuseReportFlowState:{userComments:Q,navigationEnabled:!(Q.length>e()),isReportFormDirty:!0}});_.dq().dispatch(_.Zw("flowStateEntity",l(),Q))},150);
_.YK(function(){var Q=Object.assign({},C(),{flowFormState:{isValid:!0}});_.dq().dispatch(_.Zw("flowStateEntity",l(),Q))});
return _.D("yt-report-form-details-page-view-model",{class:function(){var Q;return((Q=_.q(C(),wt))==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.D("h1",{class:function(){var Q;
return((Q=_.q(C(),wt))==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return x().detailsPageHeader}),_.D("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.D(_.TT,{text:function(){return x().bodyText}})),_.D("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.D(pk,{label:function(){var Q;
return((Q=_.q(x().inputBox,KHY))==null?void 0:Q.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var Q;return{errorMessage:((Q=_.q(x().inputBox,KHY))==null?void 0:Q.maxCharsExceededErrorMessage)||"",maxChars:e()}},
onInput:O})))},"gi");
Bbw.idomCompat=!0;_.wP(Bbw,"yt-report-form-details-page-view-model",{props:{data:_.Ld}});var vEw=_.K(function(O){var x=O.data;var e=function(){return x().flowStateKey||""},l=_.L5(_.Hb,e),C=function(){return _.q(l(),wt)};
return _.D("yt-report-form-reason-select-page-view-model",{class:function(){var Q;return((Q=C())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.D("h1",{class:function(){var Q;
return((Q=C())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return x().pageHeader}),_.D("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.D(_.TT,{text:function(){return x().bodyText}})),_.D("div",{class:function(){var Q;
return((Q=C())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.D(_.mcL,{data:function(){return _.q(x().radioButtonGroup,_.Sq)},
onSelected:function(Q,L){Q=Object.assign({},l(),{abuseReportFlowState:Object.assign({},C(),{reasonKey:L.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:L.command})});_.ns(_.Dc("flowStateEntity",e(),Q))},
selectedKey:function(){var Q;return(Q=C())==null?void 0:Q.reasonKey},
groupName:"report-form-reason-select-page"})))},"hi");
vEw.idomCompat=!0;_.wP(vEw,"yt-report-form-reason-select-page-view-model",{props:{data:_.Ld}});var fSQ=_.K(function(O){var x=O.data;var e,l=(e=_.GG().resolve(_.D0(_.rP)))==null?void 0:e();return _.D("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.D("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.D(_.n_,{data:function(){return l&&x().imageDark?x().imageDark:x().image},
alt:""})),_.D("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.D("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return x().header}),_.D(_.TT,{text:function(){return x().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ii");
fSQ.idomCompat=!0;_.wP(fSQ,"yt-report-form-sign-in-page-view-model",{props:{data:_.Ld}});_.JhL=(0,_.$9$)(_.NI.talkToRecs,{talkToRecsStateSelector:function(O){return O}});_.wP(_.K(function(O){var x=O.data;var e=_.Dl(_.JhL.talkToRecsStateSelector),l=function(){return x().titleSuperscript},C=function(){return x().answersShelf},Q=function(){return x().videoShelf},L=function(){var Xr;
return(Xr=x().textInputPlaceholder)==null?void 0:Xr.content},k=function(){return x().showOpenTextInput},M=function(){var Xr;
return(Xr=x().textInputValue)==null?void 0:Xr.content},G=function(){return x().isMultiTurnFlow?x().resetButtonViewModel:void 0},X="",y=function(){return x().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
O=_.T(_.Iw("",void 0,"EFTZDb"));var Z=O.next().value,E=O.next().value;O=_.T(_.Iw(!1,void 0,"OgB5Cc"));var P=O.next().value,U=O.next().value,W=function(){return{state:P()||Z()?"active":"disabled",disabled:!(P()||Z())}};
_.u8(function(){if(k()){M()&&E(M());var Xr;if(!G()&&((Xr=e())==null?0:Xr.stepStates)){var Fr;Xr=Object.keys((Fr=e())==null?void 0:Fr.stepStates);Fr=Xr[Xr.length-1];var mL,Zn;(Fr=(mL=e().stepStates[Fr])==null?void 0:(Zn=mL.userQuery)==null?void 0:Zn.userQuery)&&E(Fr);_.ns(_.hoX())}}});
var z=function(Xr){var Fr=x().onUpdateText;Fr&&_.me(Fr,{form:{userQuery:Xr}});E(Xr)},r=_.yf(function(Xr){z(Xr.target.value.trim())},150),f=_.lk(function(Xr){var Fr;
X=(Fr=Xr.target.value)==null?void 0:Fr.trim();r(Xr);return!1}),u=_.lk(function(Xr){Xr.key==="Enter"&&(P()||Z())&&(z(Xr.target.value.trim()),J());
return!1}),Y=function(Xr,Fr){U(Fr);
if(Fr){if(x().isMultiTurnFlow&&!X){var mL;z((mL=Xr==null?void 0:Xr.text)!=null?mL:"")}x().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&J()}else E(X)},J=function(){var Xr=void 0,Fr=_.q(x().nextButtonViewModel,_.gf),mL,Zn;
if(Fr==null?0:(mL=Fr.loggingDirectives)==null?0:(Zn=mL.clientVeSpec)==null?0:Zn.uiType){var q$,KV;Xr=_.O9((q$=Fr.loggingDirectives)==null?void 0:(KV=q$.clientVeSpec)==null?void 0:KV.uiType)}(Fr=x().onNextStepCommand)&&_.me(Fr,{clickedVisualElement:Xr})};
O=_.Q5("yt-talk-to-recs-view-model");var O8={};return _.D("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:O},_.D("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.D(_.MR,{data:function(){return x().topCornerButton}},{buttonViewModel:_.RV})),_.D("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.D("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.D(_.TT,{text:function(){return x().title}}),_.D(_.F,{cond:l,
then:function(){return _.D("sup",{class:"ytwTalkToRecsSuperScript"},_.D(_.TT,{text:l}))}})),_.D("div",{class:"ytwTalkToRecsSubtitle"},_.D(_.TT,{text:function(){return x().subtitle}})),_.D("div",{class:"ytwTalkToRecsResultsShelf"},_.D(_.F,{cond:C,
then:function(){return _.D(_.MR,{data:C},{chipsShelfViewModel:function(Xr){return _.D("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.D(_.Ot,{data:Xr.data,callback:Y,selectionBehavior:y}))}})}}),_.D(_.F,{cond:Q,
then:function(){return _.D(_.MR,{data:Q},{horizontalShelfViewModel:function(Xr){return _.D("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.D(_.eB,{data:Xr.data,thumbnailAspectRatio:0}))}})}})),_.D("div",{class:_.xz("ytwTalkToRecsRefinementContainer",(O8.ytwTalkToRecsBottomMargin=function(){return x().isMultiTurnFlow},O8))},_.D(_.F,{cond:k,
then:function(){return _.D("div",{class:"ytwTalkToRecsUserInputBox"},_.D("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:L,value:Z,"on:input":f,"on:keyup":u,maxlength:200}))}}),_.D(_.MR,{data:function(){return x().isMultiTurnFlow?x().nextButtonViewModel:void 0}},{buttonViewModel:function(Xr){return _.D("div",{class:"ytwTalkToRecsFlowControlButtons"},_.D(_.RV,{data:Xr.data,
buttonOverrides:W}))}}),_.D(_.MR,{data:G},{buttonViewModel:function(Xr){return _.D("div",{class:"ytwTalkToRecsFlowControlButtons"},_.D(_.RV,{data:Xr.data,
onClick:function(){var Fr=_.q(x().resetButtonViewModel,_.gf);z(Z());(Fr=Fr==null?void 0:Fr.onTap)&&_.me(Fr)}}))}}))))},"ki"),"yt-talk-to-recs-view-model",{props:{data:_.Ld}});var r_$={sources:[{clientResource:{imageName:"CHECK"}}]};_.w1Y=_.K(function(O){var x=_.Q5("div");O=_.YX(O,{error:void 0});var e=O.data,l=O.error,C=O.onSelected;O=_.T(_.bk(function(){return dyh(e())}));
var Q=O.next().value,L=O.next().value;BMT(e,function(Z){L(Z);var E,P,U=KNQ((E=e().options)==null?void 0:(P=E[Z])==null?void 0:P.value,e().type);C==null||C(U);x.value.focus()});
O=_.lk(function(){if(!e().disabled){var Z=e(),E=Q(),P=x.value;Z.options&&(Z=HGQ(Z.options,E,Z.label),_.GG().resolve(_.fj).openSheet({viewModel:Z},P))}});
var k=_.nIw(),M=function(){return!!l()},G=function(){return!!e().disabled},X={},y={};
return _.D("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.D("div",{class:_.xz("ytDropdownViewModelDropdownContainer",(X.ytDropdownViewModelDropdownContainerErrorBorder=M,X.ytDropdownViewModelDropdownContainerDisabled=G,X)),"on:click":O,el:x,role:"combobox",tabindex:0,"on:keydown":k,"aria-invalid":M,"aria-disabled":G,"aria-describedby":function(){return M()?"dropdown-view-model-error":void 0}},_.D("div",{class:"ytDropdownViewModelText"},n_$(e,M,Q),upL(e,Q)),_.D("div",{class:_.xz("ytDropdownViewModelChevronDown",
(y.ytDropdownViewModelChevronDownDisabled=G,y))},_.D(_.L7,{icon:"CHEVRON_DOWN"}))),YvQ(e,l))},"li");_.wP(_.K(function(O){var x=O.data;var e=function(C){var Q=fyp(x());Q.videoMetadata||(Q.videoMetadata={});Q.videoMetadata.sponsorshipsMetadata||(Q.videoMetadata.sponsorshipsMetadata={});Q.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(C)},l=function(C){var Q=fyp(x());
Q.scheduledRedirectMetadata||(Q.scheduledRedirectMetadata={});Q.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(C)};
return _.D("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.D("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.D("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.D(_.TT,{text:function(){return x().title}}),_.D(_.L7,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.D(_.TT,{text:function(){return x().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.D(_.MR,{data:function(){return x().tierChoices}},{dropdownViewModel:function(C){return _.D("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.D(_.w1Y,{data:C.data,
onSelected:e}))}}),_.D(_.MR,{data:function(){return x().startTimeChoices}},{dropdownViewModel:function(C){return _.D("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.D(_.w1Y,{data:C.data,
onSelected:l}))}}),_.D(_.TT,{text:function(){return x().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.D("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.D(_.MR,{data:function(){return x().scheduleButton}},{panelFooterViewModel:_.IA})))},"mi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;O=O.className===void 0?"":O.className;var e=_.L5(W1e,function(){return x().flowStateEntityKey||""}),l={};
l=_.xz("ytFlowBottomBarViewModelFlowBottomBarButtons",(l.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},l));
var C={},Q=_.xz("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",l,(C.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},C.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},C));
C={};var L=_.xz("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",l,(C.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},C.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},C));
l={};l=_.xz("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(l.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},l.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},l.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
l));
O=_.xz("ytFlowBottomBarViewModelHost",O);return _.D("yt-flow-bottom-bar-view-model",{class:O},_.D(_.F,{cond:function(){var k;return(k=x())==null?void 0:k.textSection},
then:function(k){return _.D("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.D(_.TT,{text:k}))}}),_.D("div",{class:l},_.D(_.MR,{data:function(){return x().secondaryButton}},{buttonViewModel:function(k){return _.D(_.RV,{data:k.data,
className:L})}}),_.D(_.MR,{data:function(){return x().primaryButton}},{buttonViewModel:function(k){return _.D(_.RV,{data:k.data,
className:Q,buttonOverrides:function(){var M;return{disabled:!((M=e())==null||!M.primaryButtonDisabled)}}})}})))},"ni"),"yt-flow-bottom-bar-view-model",{props:{data:_.Ld,
className:_.vs}});var SQO="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),RA=function(){var O=_.a.apply(this,arguments)||this;O.enableScrollingFix=!0;O.bottomBar=!1;O.fitContent=!1;return O};
_.c(RA,_.a);_.b=RA.prototype;_.b.ready=function(){_.t("enable_pdp_icon_prefetch")&&_.sg4(_.GG().resolve(_.Sn),0,SQO)};
_.b.focus=function(O){this.topBar?_.QQ(this.topBar,O):this.paperDialog.focus(O)};
_.b.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19336_scroller&&(this.JSC$19336_scroller.dialogElement=this.paperDialog,this.JSC$19336_scroller.attached&&typeof this.JSC$19336_scroller.attached==="function"&&this.JSC$19336_scroller.attached())};
_.b.onDataChanged=function(){var O;this.fitContent=!((O=this.data)==null||!O.fitContent);var x;this.bottomBar=!((x=this.data)==null||!x.bottomBar)};
_.b.onProgressChanged=function(){var O,x,e=((x=(O=this.data)==null?void 0:O.progress)!=null?x:0)*100;this.progressElement.style.width=e+"%"};
_.b.isProgressHidden=function(){var O;return!((O=this.data)==null?0:O.progress)};
_.b.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(O){return O&&!O.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
RA.prototype.onProgressChanged=RA.prototype.onProgressChanged;RA.prototype.onDataChanged=RA.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],RA.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],RA.prototype,"enableScrollingFix",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],RA.prototype,"bottomBar",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],RA.prototype,"fitContent",void 0);_.B([_.kX("#progress"),_.v("design:type",HTMLElement)],RA.prototype,"progressElement",void 0);_.B([_.kX("#scroller"),_.v("design:type",Object)],RA.prototype,"JSC$19336_scroller",void 0);_.B([_.kX("ytd-flow-top-bar-renderer"),_.v("design:type",HTMLElement)],RA.prototype,"topBar",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RA.prototype,"onDataChanged",null);_.B([_.T1("data.progress"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RA.prototype,"onProgressChanged",null);_.B([_.H({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],RA);
_.n(RA,"ytd-flow-step-renderer",function(){if(y3L!==void 0)return y3L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return y3L=O},{mode:1});var Uc=function(O){this.resolveCommand=O;this.steps={}},jxY=function(O,x){x=_.T(x||[]);
for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=Object.values(e)[0],C=void 0;if((C=l)==null?0:C.stepId)O.steps[l.stepId]=e}},gE4=function(O,x){var e,l,C,Q,L;
return _.A(function(k){if((e=O.state)==null||!e.currentStepId)return k.return(void 0);l=O.getCurrentStep();if(!l)return k.return(NbX(O));if(C=_.q(l,_.Wj))O.logVEScreen(C),((Q=C)==null?0:Q.onStepStartCommand)&&O.resolveCommand((L=C)==null?void 0:L.onStepStartCommand,{});C&&x&&(O.logFlowEvent(C,x),x.steps&&!x.steps.includes(l)&&x.steps.push(l));return k.return(l)})};
Uc.prototype.back=function(){var O;(O=this.state)!=null&&O.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Uc.prototype.handleUpdateFlowCommand=function(O){O.steps&&jxY(this,O.steps);O.entityUpdateCommand&&this.resolveCommand(O.entityUpdateCommand,{});O.flowContinuationCommand&&(O=O.flowContinuationCommand)&&(this.getFlowContinuationCommand=O);this.awaitFlowContinuation&&(O=this.getCurrentStep(),this.awaitFlowContinuation(O),this.awaitFlowContinuation=void 0)};
Uc.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var NbX=function(O){return _.A(function(x){return O.getFlowContinuationCommand?x.return(new Promise(function(e){O.awaitFlowContinuation=e;O.getFlowContinuationCommand&&O.resolveCommand(O.getFlowContinuationCommand,{flow_state:O.state})})):x.return(Promise.resolve(void 0))})};
Uc.prototype.getCurrentStep=function(){var O;if((O=this.state)!=null&&O.currentStepId)return this.steps[this.state.currentStepId]};
Uc.prototype.logVEScreen=function(O){var x;((x=O.screenLoggingData)==null?0:x.screenVeType)&&_.tx(_.k0(),O.screenLoggingData.screenVeType)};
Uc.prototype.logFlowEvent=function(O,x){var e,l,C,Q;((e=x.flowLoggingData)==null?0:e.eventNamespace)&&((l=O.flowEventData)==null?0:l.eventType)&&((C=O.flowEventData)==null?0:C.eventMetadata)&&((Q=x.flowLoggingData)==null?0:Q.flowType)&&(O=_.xU(x.flowLoggingData.eventNamespace,O.flowEventData.eventType,O.flowEventData.eventMetadata),_.ex().logFlowEvent(O,x.flowLoggingData.flowType))};
_.Dy.Object.defineProperties(Uc.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.state)==null?void 0:O.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.state)!=null&&O.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(x,e){e.key&&e.value&&(x[e.key]=e.value);return x},{})}}});var aA=function(){var O=_.a.apply(this,arguments)||this;O.flowState=_.t("web_use_flow_state_manager")?void 0:new Uc(function(x,e){e=e===void 0?{}:e;_.lV.instance.resolveCommand(x,{form:{form:e,element:O.hostElement}})});
O.JSC$19347_flowStateManager=_.t("web_use_flow_state_manager")?_.GG().resolve(_.RW):void 0;O.currentTargetId="";O.initialState=!0;O.isLoading=!1;O.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"};O.containsTalkToRecs=!1;return O};
_.c(aA,_.a);_.b=aA.prototype;_.b.onPopupClosed=function(O){if(!O||this.hostElement===O.detail.popupRenderer){if(this.JSC$19347_flowStateManager){var x;((x=this.data)==null?0:x.flowStateEntityKey)&&this.JSC$19347_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.b.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"}}}};
_.b.focus=function(O){var x=this;_.WZ(function(){var e=_.$U(x.hostElement).querySelector("ytd-flow-step-renderer");(e==null?0:e.topBar)?e.focus(O):x.topBar&&_.QQ(x.topBar,O)},1)};
_.b.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.b.computeTopBarHidden=function(O){var x;return!((x=_.q(O,_.Wj))==null||!x.topBarOverride)};
_.b.onCurrentFlowChange=function(){if(this.JSC$19347_flowStateManager&&this.data&&this.flow){var O=Vhp(this.JSC$19347_flowStateManager,this.data),x;O&&((x=this.flow)==null?0:x.currentStepId)&&(U9Y(O,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.b.observeData=function(){var O=this;if(this.JSC$19347_flowStateManager){var x=this.currentTargetId,e,l,C=(l=(e=this.data)==null?void 0:e.targetId)!=null?l:"";x!==C&&x&&pqQ(this.JSC$19347_flowStateManager,x);this.currentTargetId=C;this.data&&RoY(Vhp(this.JSC$19347_flowStateManager,this.data),function(Q){Q&&(O.initialState=!1,O.currentFlowStep={flowStepRenderer:Q},O.isLoading=!O.currentFlowStep,O.autofocusAndRefit(),O.updateContainsTalkToRecs(),O.logVEScreen(),O.logFlowEvent())})}};
_.b.dataChanged=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1){if(!O.flowState)return l.return();((x=O.data)==null?0:x.steps)&&jxY(O.flowState,O.data.steps);if((e=O.data)==null?0:e.flowContinuationCommand){var C=O.flowState,Q=O.data.flowContinuationCommand;Q&&(C.getFlowContinuationCommand=Q)}return l.yield(gE4(O.flowState,O.data),2)}O.currentFlowStep=l.yieldResult;_.Ra(l)})};
_.b.flowChanged=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1){if(!O.flowState||!O.flow)return e.return();O.flowState.state=O.flow;O.isLoading=!0;return e.yield(gE4(O.flowState,O.data),2)}x=e.yieldResult;if(!x||O.flow.isLoading)return e.return();O.currentFlowStep=x;O.initialState=!1;O.isLoading=!1;O.autofocusAndRefit();O.updateContainsTalkToRecs();_.Ra(e)})};
_.b.logVEScreen=function(){var O,x,e=(O=_.q(this.currentFlowStep,_.Wj))==null?void 0:(x=O.screenLoggingData)==null?void 0:x.screenVeType;e&&_.tx(_.GG().resolve(_.vt),e)};
_.b.logFlowEvent=function(){var O=_.q(this.currentFlowStep,_.Wj),x,e,l,C,Q,L;(this==null?0:(x=this.data)==null?0:(e=x.flowLoggingData)==null?0:e.eventNamespace)&&(this==null?0:(l=this.data)==null?0:(C=l.flowLoggingData)==null?0:C.flowType)&&(O==null?0:(Q=O.flowEventData)==null?0:Q.eventType)&&(O==null?0:(L=O.flowEventData)==null?0:L.eventMetadata)&&(O=_.xU(this.data.flowLoggingData.eventNamespace,O.flowEventData.eventType,O.flowEventData.eventMetadata),_.ex().logFlowEvent(O,this.data.flowLoggingData.flowType))};
_.b.updateContainsTalkToRecs=function(){var O,x=(O=_.q(this.currentFlowStep,_.Wj))==null?void 0:O.content;this.containsTalkToRecs=!!x&&!!_.q(x,d9Q)};
_.b.autofocusAndRefit=function(){var O=this,x=_.GG().resolve(_.D0(_.qL)),e=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),l=document.querySelector("yt-report-form-confirmation-page-view-model"),C=document.querySelector("yt-report-form-details-page-view-model"),Q=document.querySelector("yt-report-form-reason-select-page-view-model"),L=document.querySelector("yt-contributor-zero-state-view-model"),
k=document.querySelector("yt-structured-context-note-view-model"),M=document.querySelector("yt-note-view-model");(!e&&x&&x.isKeyBoardInUse()||l||!e&&C||!e&&Q||L||k||M)&&_.bU(this.hostElement);_.A_(this,function(){_.wr(O.hostElement,"yt-refit")})};
_.b.handleUpdateFlowCommand=function(O){this.flowState?this.data&&(O=_.q(O,_.vTd),O.targetId===this.data.targetId&&(O.flowContinuationCommand&&(this.data.flowContinuationCommand=O.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(O),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(O)};
_.b.handleFlowNextStepCommand=function(O){this.JSC$19347_flowStateManager?this.ytComponentBehavior.resolveCommand(O):this.data&&this.flow&&this.flow.key&&(O=_.q(O,_.nTT),O.targetId===this.data.targetId&&(O=O.stepId||"",this.ytdReduxBehavior.dispatch(_.Zw("flowStateEntity",this.flow.key,{currentStepId:O,stepIdStack:(this.flow.stepIdStack||[]).concat(O)}))))};
_.b.handleFlowPrevStepCommand=function(O){if(this.JSC$19347_flowStateManager)this.ytComponentBehavior.resolveCommand(O);else if(this.data&&this.flow&&this.flow.key&&(O=_.q(O,_.uI4),O.targetId===this.data.targetId)){var x=[].concat(_.Kx(this.flow.stepIdStack||[]));x.length>1?(x.pop(),this.ytdReduxBehavior.dispatch(_.Zw("flowStateEntity",this.flow.key,{currentStepId:x[x.length-1],stepIdStack:x}))):O.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(O.onFirstStepCommand)}};
_.b.handleYpcCancelRecurrenceCommand=function(O){if(this.data&&this.flow&&this.flow.key&&(O=_.q(O,v7p),O.targetId===this.data.targetId&&O.endpointCommand)){var x=_.q(this.flow,ffp);x&&_.q(O.endpointCommand,_.Ogd)&&(_.q(O.endpointCommand,_.Ogd).feedbackData=x.surveyFeedback);this.ytComponentBehavior.resolveCommand(O.endpointCommand)}};
_.b.handlePartialUpdateFlowStateEntity=function(O){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Zw("flowStateEntity",this.flow.key,O,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
aA.prototype.flowChanged=aA.prototype.flowChanged;aA.prototype.dataChanged=aA.prototype.dataChanged;aA.prototype.observeData=aA.prototype.observeData;aA.prototype.onCurrentFlowChange=aA.prototype.onCurrentFlowChange;aA.prototype.onPopupClosed=aA.prototype.onPopupClosed;_.B([_.V(_.$5),_.v("design:type",Object)],aA.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],aA.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],aA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],aA.prototype,"initialState",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],aA.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Object)],aA.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],aA.prototype,"currentFlowStep",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],aA.prototype,"onPopupClosed",null);
_.B([_.R({selectorArgs:["data.flowStateEntityKey"],selector:W1e}),_.v("design:type",Object)],aA.prototype,"flow",void 0);_.B([_.kX("ytd-flow-top-bar-renderer"),_.v("design:type",HTMLElement)],aA.prototype,"topBar",void 0);_.B([_.T1("data","flow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aA.prototype,"onCurrentFlowChange",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aA.prototype,"observeData",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],aA.prototype,"dataChanged",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],aA.prototype,"containsTalkToRecs",void 0);_.B([_.G1("flow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],aA.prototype,"flowChanged",null);_.B([_.H({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],aA);
_.$cL=_.NQ()(aA,"ytd-flow-root-renderer",function(){if(omO!==void 0)return omO;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return omO=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var iA4;var fv=null;_.wP(_.K(function(O){return _.D("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.D("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.D(_.TT,{text:function(){return O.data().text}}),_.D("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"oi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Ld}});var O3O=_.K(function(O){var x=O.playerControlsProps;var e=O.isShortsPage;return _.D("yt-bigboard",null,_.D(_.F,{cond:function(){return x().isDragging},
then:function(){return _.D("div",{class:"ytBigboardStoryboardHost"},_.D(_.FQX,{progressBarProps:x,isShortsPage:e}))}}))},"pi");
O3O.idomCompat=!0;_.mq={ACCOUNT_LABEL:JV("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:JV("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:JV("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:JV("AD_BADGE_HINT"),AD_BADGE_TEXT:JV("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:JV("ALL_CHANNELS_LABEL"),AMBIENT_MODE:JV("AMBIENT_MODE"),AMBIENT_MODE_OFF:JV("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:JV("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:JV("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:JV("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:JV("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:JV("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:JV("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:JV("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:JV("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:JV("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:JV("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:JV("AUTO_ZOOM","Auto zoom"),BACK:JV("BACK"),CANCEL:JV("CANCEL"),CHANNEL_SWITCHER_LABEL:JV("CHANNEL_SWITCHER_LABEL"),CLOSE:JV("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:JV("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:JV("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:JV("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:JV("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:JV("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:JV("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:JV("COMMENT_MODAL_CONTENT"),CONFIRM_OK:JV("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:JV("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:JV("COPIED_TO_CLIPBOARD"),COPY:JV("COPY"),COPY_DEBUG_INFO:JV("COPY_DEBUG_INFO"),COPY_EMBED_CODE:JV("COPY_EMBED_CODE"),
COPY_LINK_LABEL:JV("COPY_LINK_LABEL"),COPY_VIDEO_URL:JV("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:JV("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:JV("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:JV("DELETE_FROM_DOWNLOADS"),DIALOG:JV("DIALOG"),DONE:JV("DONE"),DOWNLOAD:JV("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:JV("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:JV("FLAG_CONFIRM"),FLAG_CONTENT:JV("FLAG_CONTENT"),FLAG_LABEL:JV("FLAG_LABEL"),FLAG_TITLE:JV("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:JV("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:JV("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:JV("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:JV("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:JV("HIDE_SEARCH_FILTERS_LABEL"),HOME:JV("HOME","Home"),INVALID_RESPONSE_RECEIVED:JV("INVALID_RESPONSE_RECEIVED"),LIBRARY:JV("LIBRARY","Library"),LISTENING:JV("LISTENING"),LOADING:JV("LOADING"),LONG_PRESS_MIC_TO_SPEAK:JV("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:JV("LOOP"),MENU_DESKTOP:JV("MENU_DESKTOP"),
MENU_EXIT:JV("MENU_EXIT"),MENU_FEEDBACK:JV("MENU_FEEDBACK"),MENU_HELP:JV("MENU_HELP"),MENU_IMPRESSUM:JV("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:JV("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:JV("MENU_SETTINGS"),MENU_SIGN_IN:JV("MENU_SIGN_IN"),MENU_TITLE:JV("MENU_TITLE"),MENU_YOUR_DATA:JV("MENU_YOUR_DATA"),MORE_INFO:JV("MORE_INFO"),MORE_OPTIONS:JV("MORE_OPTIONS"),MUTE_VOLUME:JV("MUTE_VOLUME"),NEW_PLAYLIST:JV("NEW_PLAYLIST"),NEXT_VIDEO:JV("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:JV("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:JV("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:JV("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:JV("NOT_FOUND_TITLE"),NO_DOWNLOADS:JV("NO_DOWNLOADS"),NO_MIC_INPUT:JV("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:JV("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:JV("OOPS_MESSAGE"),OPEN_APP:JV("OPEN_APP"),OPEN_YOUTUBE:JV("OPEN_YOUTUBE"),PAUSE:JV("PAUSE"),PLAY:JV("PLAY"),PLAYER_CAPTION:JV("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:JV("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:JV("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:JV("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:JV("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:JV("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:JV("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:JV("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:JV("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:JV("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:JV("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:JV("PLAYER_MINIMIZE"),PLAYER_NEXT:JV("PLAYER_NEXT"),PLAYER_PAUSE:JV("PLAYER_PAUSE"),PLAYER_PLAY:JV("PLAYER_PLAY"),
PLAYER_PREVIOUS:JV("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:JV("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:JV("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:JV("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:JV("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:JV("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:JV("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:JV("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:JV("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:JV("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:JV("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:JV("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:JV("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:JV("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:JV("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:JV("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:JV("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:JV("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:JV("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:JV("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:JV("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:JV("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:JV("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:JV("PLAY_ALL"),PLEASE_FIX_ERRORS:JV("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:JV("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:JV("PREVIOUS_VIDEO"),PRIVACY_POLICY:JV("PRIVACY_POLICY"),RELOAD:JV("RELOAD"),REQUIRED_LABEL:JV("REQUIRED_LABEL"),SAVE_PLAYLIST:JV("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:JV("SCRUB_SLIDE_USER_EDU"),SEARCH:JV("SEARCH","Search"),
SEARCH_APPEND_LABEL:JV("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:JV("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:JV("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:JV("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:JV("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:JV("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:JV("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:JV("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:JV("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:JV("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:JV("SEEK_SLIDER"),SETTINGS_LABEL:JV("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:JV("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:JV("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:JV("SHOW_LESS"),SHOW_MORE:JV("SHOW_MORE"),SHOW_PLAYER_CONTROLS:JV("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:JV("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:JV("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:JV("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:JV("SIGN_IN_ON_WEB"),STABLE_VOLUME:JV("STABLE_VOLUME"),STABLE_VOLUME_OFF:JV("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:JV("STABLE_VOLUME_ON"),STATS_FOR_NERDS:JV("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:JV("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:JV("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:JV("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:JV("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:JV("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:JV("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:JV("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:JV("TIMESTAMP_SECONDS"),TOGGLE_OFF:JV("TOGGLE_OFF"),TOGGLE_ON:JV("TOGGLE_ON"),TRENDING:JV("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:JV("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:JV("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:JV("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:JV("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:JV("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:JV("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:JV("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:JV("VIDEO_LINK_LABEL")};var xwL=_.K(function(O){var x=O.playerApi;O=_.Q5("button",function(l){_.Ei(l,36843)});
var e=JV("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.D("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.D("button",{el:O,class:"ytPlayerControlsJumpForwardButtonButton",title:e,"aria-label":e,"on:click":_.lk(function(){_.tV(36843);x&&x().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.D("span",null,_.D(_.L7,{icon:"FAST_FORWARD"}))))},"qi");var erQ=_.K(function(O){var x=O.appApi;O=_.Q5("button",function(l){_.Ei(l,62946)});
var e=JV("OPEN_IN_MINIPLAYER");return _.D("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.D("button",{el:O,class:"ytMiniplayerButtonButton",title:e,"aria-label":e,"on:click":_.lk(function(){_.tV(62946);var l,C;(C=(l=x()).openInMiniplayer)==null||C.call(l);return!1})},_.D(_.L7,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ri");var lEX=_.K(function(O){var x=O.playerApi;O=_.Q5("button",function(Q){_.Ei(Q,142812)});
var e=_.T(_.Iw(!1,void 0,"eOMRAb")),l=e.next().value,C=e.next().value;e=function(){return JV("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(l()?1:2)})};
return _.D("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.D("button",{el:O,class:"ytPlaybackSpeedButtonButton",title:e,"aria-label":e,"on:click":_.lk(function(){_.tV(142812);if(x){var Q=x(),L=l();Q.setPlaybackRate(L?1:2);C(!l())}return!1})},_.D("span",null,_.D(_.L7,{icon:function(){return l()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"si");var CKp=_.K(function(O){var x=O.title;var e=O.ariaLabel;var l=O.icon;var C=O.command;var Q=O.veType;O=_.Q5("button",function(L){Q&&_.Ei(L,Q())});
return _.D("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.D("button",{el:O,class:"ytdThumbnailOverlayButtonButton",title:x,"aria-label":e,"on:click":_.lk(function(){Q&&_.tV(Q());C&&_.GG().resolve(_.Xc).resolveCommand(C())})},_.D(_.L7,{icon:l})))},"ti");var H_="";var QF4=_.K(function(O){var x=O.playerControlsProps,e=O.onClickFn;O=_.aw(function(){var Q=x(),L=-1;Q.captionsAvailable&&(L=Q.captionsEnabled?1:0);return L},void 0,"MZ0Wqe");
var l=_.aw(function(){var Q=x();return Q.captionsAvailable?_.CZ(Q.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.CZ("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),C=_.aw(function(){var Q=x();
Q=Q.captionsAvailable?Q.captionsEnabled:void 0;return Q},void 0,"fhuQRe");
return _.D("yt-closed-captions-toggle-button",null,_.D(_.eRT,{captionIconType:O,ariaLabel:l,ariaPressed:C,onClick:function(Q){var L=x();if(L.captionsAvailable){var k=L.playerApi;if(k){var M=L.playerApi;if(M){var G=H_;if(G){M=M.getOption("captions","track");var X;H_=(X=M?M.displayName:null)!=null?X:G}else _.ZT(M)?(G=_.ZFV(M),H_=G.length?(X=HwX(G))?X.displayName:G[0].displayName:""):H_=""}K1p(k);_.t("mweb_disable_set_state_captions_killswitch")&&L.setState({captionsEnabled:!L.captionsEnabled})}}var y,
Z;(Z=(y=L.appApi).showCaptionsToggleToast)==null||Z.call(y,L);e==null||e(Q)},
isOverlay:!0}))},"ui");var b3O=_.K(function(O){var x=O.data;return _.D("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.D(_.xR,{data:function(){return{type:17,text:_.rK7(x().label)}}}))},"vi");var TO4=_.K(function(O){var x=_.xz("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return O.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return O.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return O.size()==="small"?O.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
O.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.D("animated-seek-arrows",{class:_.xz("ytPlayerControlsAnimatedSeekArrowsHost")},_.D("span",{class:x}),_.D("span",{class:x}),_.D("span",{class:x}))},"wi");
TO4.idomCompat=!0;var LC4=_.K(function(){var O=_.CZ("PLAYER_SECONDS",{seconds_placeholder:"30"}),x=_.T(_.Iw(!1,void 0,"iRJu8c")),e=x.next().value,l=x.next().value,C=_.T(_.Iw(!1,void 0,"MPnizf"));x=C.next().value;var Q=C.next().value;C={};var L=_.xz("jumpForwardOverlayOverlay",(C.jumpForwardOverlayOverlayHidden=x,C));_.YK(function(){var k=null,M=null,G=function(){k!==null&&_.Xu().cancelJob(k);M!==null&&_.Xu().cancelJob(M);Q(!0);l(!0);_.$0(_.Xu(),function(){Q(!1)});
k=_.$0(_.Xu(),function(){Q(!0);M=_.$0(_.Xu(),function(){l(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",G);_.YO(function(){window.removeEventListener("jump-forward-clicked",G)})});
return _.D("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.D(_.F,{cond:e,then:function(){return _.D("div",{class:L},_.D(TO4,{direction:1,size:"large"}),_.D("div",null,O))}}))},"xi");var kuL=_.mq.MUTE_VOLUME,AUL=_.mq.UNMUTE_VOLUME,MxY=_.K(function(O){var x=O.muteIconType;var e=O.onClick;var l=O.useOutlineIcon;var C=O.useDelhiIcons;O=_.Q5("button",function(k){_.Ei(k,28662)});
var Q=function(){var k=x(),M=l==null?void 0:l(),G=C==null?void 0:C(),X="",y="";switch(k){case -1:case 0:X=M?"VOLUME_OFF":G?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";y=AUL;break;case 1:X=M?"VOLUME_UP_OUTLINE":G?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";y=kuL;break;case 2:X=M?"VOLUME_DOWN_OUTLINE":G?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";y=kuL;break;default:_.vd(k)}return{iconName:X,ariaLabel:y}},L=function(){return Q().ariaLabel};
return _.D("ytm-mute-button",{class:"ytmMuteButtonHost"},_.D("button",{el:O,class:"ytmMuteButtonButton",title:L,"aria-label":L,"on:click":_.lk(function(k){_.tV(28662);e==null||e(k);return!1})},_.D("span",null,_.D(_.L7,{icon:function(){return Q().iconName}}))))},"yi");var Dwp=_.K(function(O){var x=O.volumeProps;var e=O.onClickFn;var l=O.useOutlineIcon;var C=O.useDelhiIcons;return _.D("yt-mute-toggle-button",null,_.D(MxY,{muteIconType:function(){var Q=x();return Q.volumeMuted||Q.volume===0?0:Q.volume>50?1:2},
onClick:function(Q){var L=x().playerApi;L&&(L.isMuted()?L.unMute():L.mute(!1));e==null||e(Q)},
useOutlineIcon:function(){return!(l==null||!l())},
useDelhiIcons:function(){return!(C==null||!C())}}))},"zi");
Dwp.idomCompat=!0;var GuT=_.K(function(O){var x=O.data;var e=_.Q5("ytm-paid-content-overlay-renderer");return _.D("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:e,"on:animationend":_.lk(function(){e.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.D(_.Pt,{command:function(){return x().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.D(_.F,{cond:function(){var l;return(l=x().icon)==null?void 0:l.iconType},
then:function(){return _.D("span",null,_.D(_.L7,{icon:function(){var l;return(l=x().icon)==null?void 0:l.iconType}}))}}),_.D("div",{class:"ytmPaidContentOverlayText"},_.D(_.TT,{text:function(){return x().text}})),_.D(_.F,{cond:function(){return x().navigationEndpoint},
then:function(){return _.D(_.L7,{icon:"CHEVRON_RIGHT"})}})))},"Ai");
GuT.idomCompat=!0;var Tr4=[].concat(_.Kx([{register:function(O){var x=ysL(O),e;(e=O().playerApi)==null||e.addEventListener("onVolumeChange",x);return function(){}}},
{register:function(O){var x=Z1$(O);O=O().playerApi;O==null||O.addEventListener("captionschanged",x);O==null||O.addEventListener("captionssettingschanged",x);O==null||O.addEventListener("onCaptionsTrackListChanged",x);return function(){}}},
{register:function(O){if(!_.t("mweb_screenreader_accessible_player"))return function(){};
var x=E7u(O),e=document.querySelector("video");e==null||e.addEventListener("touchend",x);return function(){e==null||e.removeEventListener("touchend",x)}}},
{register:function(O){if(!_.t("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var x=E7u(O),e=document.querySelector("video");e==null||e.addEventListener("focus",x);return function(){e==null||e.removeEventListener("focus",x)}}}]),[{register:function(O){var x=G0$(O),e;
(e=O().playerApi)==null||e.addEventListener("onStateChange",x);return function(){}}},
{register:function(O){var x=FH4(O),e;(e=O().playerApi)==null||e.addEventListener("onPlaybackRateChange",x);return function(){}}},
{register:function(O){var x=XqL(O),e;(e=O().playerApi)==null||e.addEventListener("onVideoDataChange",x);return function(){}}},
{register:function(O){var x=o7w(O),e,l;(e=O())==null||(l=e.playerApi)==null||l.addEventListener("onVideoProgress",x);return function(){}}}]);var FCh=_.K(function(O){var x=O.data;var e=function(){return _.CZ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+x().playbackRate})};
return _.D(_.F,{cond:function(){return x().playbackRate&&x().playbackRate!==1},
then:function(){return _.D("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.D("div",{class:"ytPlaybackRateOverlayOverlay"},_.D(TO4,{direction:1,size:"small"}),_.D("div",{class:"ytPlaybackRateOverlayLabel"},e)))}})},"Ci");var XRY=_.K(function(O){var x=O.data;return _.D("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.D(_.F,{cond:function(){var e,l=(e=x())==null?void 0:e.playerResponse,C;return l==null?void 0:(C=l.paidContentOverlay)==null?void 0:C.paidContentOverlayRenderer},
then:function(e){return _.D(GuT,{data:e})}}))},"Ei"),oU$=_.K(function(O){var x=O.props;
var e=O.data;var l=O.options;var C=function(){var G,X,y,Z;return(G=e())==null?void 0:(X=G.playerResponse)==null?void 0:(y=X.playerConfig)==null?void 0:(Z=y.inlinePlaybackConfig)==null?void 0:Z.showAudioControls},Q=function(){var G,X;
if(C()&&((G=l())==null?void 0:(X=G.additionalButton)==null?void 0:X.button)!==void 0){var y,Z,E;G=(y=e())==null?void 0:(Z=y.playerApi)==null?void 0:(E=Z.getSize())==null?void 0:E.height;if(!(G===void 0||G<180)){var P,U;return(P=l())==null?void 0:(U=P.additionalButton)==null?void 0:U.button}}},L=function(){var G,X;
return(G=l())==null?void 0:(X=G.additionalButton)==null?void 0:X.thumbnailOverlayButtonRenderers},k=function(){var G,X;
return(G=l())==null?void 0:(X=G.additionalButton)==null?void 0:X.thumbnailOverlayButtonViewModels},M=function(){var G=[_.D(Dwp,{volumeProps:x}),
_.D(QF4,{playerControlsProps:x})];Q()===1&&G.push(_.D(xwL,{playerApi:function(){return x().playerApi}}));
Q()===2&&G.push(_.D(erQ,{appApi:function(){return x().appApi}}));
Q()===3&&G.push(_.D(lEX,{playerApi:function(){return x().playerApi}}));
var X=L();if(Q()===4&&X){X=_.T(X);for(var y=X.next(),Z={};!y.done;Z={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$598:void 0},y=X.next()){y=y.value;Z.tooltip$jscomp$2=y.tooltip;var E=void 0,P=void 0;Z.ariaLabel$jscomp$20=((E=y.accessibility)==null?void 0:(P=E.accessibilityData)==null?void 0:P.label)||Z.tooltip$jscomp$2;E=void 0;Z.icon$jscomp$51=(E=y.icon)==null?void 0:E.iconType;Z.command$jscomp$598=y.command;Z.tooltip$jscomp$2&&Z.ariaLabel$jscomp$20&&Z.icon$jscomp$51&&
G.push(_.D(CKp,{title:function(U){return function(){return U.tooltip$jscomp$2}}(Z),
ariaLabel:function(U){return function(){return U.ariaLabel$jscomp$20}}(Z),
icon:function(U){return function(){return U.icon$jscomp$51}}(Z),
command:function(U){return function(){return U.command$jscomp$598}}(Z)}))}}X=k();
if(Q()===4&&X)for(X=_.T(X),y=X.next(),Z={};!y.done;Z={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$599:void 0},y=X.next())y=y.value,Z.tooltip$jscomp$3=y.title,Z.ariaLabel$jscomp$21=y.accessibilityText||Z.tooltip$jscomp$3,Z.icon$jscomp$52=y.iconName,Z.command$jscomp$599=_.p_(y.onTap),Z.tooltip$jscomp$3&&Z.ariaLabel$jscomp$21&&Z.icon$jscomp$52&&G.push(_.D(CKp,{title:function(U){return function(){return U.tooltip$jscomp$3}}(Z),
ariaLabel:function(U){return function(){return U.ariaLabel$jscomp$21}}(Z),
icon:function(U){return function(){return U.icon$jscomp$52}}(Z),
command:function(U){return function(){return U.command$jscomp$599}}(Z)}));
return G};
return _.D(_.F,{cond:C,then:function(){return _.D("div",{class:"ytInlinePlayerControlsTopRightControls"},_.D(_.HE,{each:M},function(G){return _.D("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.D("div",{class:"ytInlinePlayerControlsButtonIcon"},G))}))}})},"Fi"),EUY=_.K(function(O){var x=O.props;
var e=O.data;var l=O.options;O={};O=_.xz("ytInlinePlayerControlsBottomRightControls",(O.ytInlinePlayerControlsBottomRightControlsHidden=function(){var C;return qbu(e(),l())&&((C=l())==null?void 0:C.insetProgressBar)&&(x().isHovering||x().isDragging)},O));
return _.D("div",{class:O},_.D(yUX,{data:e}),_.D(_.F,{cond:function(){var C;return!((C=l())==null?0:C.hideTimeDisplay)},
then:function(){return _.D(Z3e,{props:x,data:e})}}))},"Gi"),yUX=_.K(function(O){var x=O.data;
return _.D(_.MR,{data:function(){var e;return Qgh((e=x())==null?void 0:e.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:b3O})},"Hi"),Z3e=_.K(function(O){var x=O.props;
var e=O.data;return _.D(_.F,{cond:function(){return x().isLive},
then:function(){return _.D(tx$,{props:x,data:e})},
else:function(){return _.D(qAQ,{props:x,data:e})}})},"Ii"),qAQ=_.K(function(O){var x=O.props;
var e=O.data;var l=_.aw(function(){var C;return b1X((C=e())==null?void 0:C.thumbnailOverlays)},void 0,"mEUgMd");
return _.D("div",{class:_.xz("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.mq.PLAYER_TIME_ELAPSED+" "+_.zfL(x().playedTime)}},_.D(_.xR,{data:function(){var C=_.zfL(x().videoDuration-x().playedTime);
return Object.assign({},{type:17,text:C},l())}}))},"Ji"),PKL=_.K(function(O){O=O.badgeShapeData;
return _.D("div",{class:_.xz("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.D(_.xR,{data:O}))},"Ki"),tx$=_.K(function(O){var x=O.data;
O=_.aw(function(){if(_.t("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var e,l;return(e=x())==null?void 0:(l=e.thumbnailOverlays)==null?void 0:l.find(function(C){return C.thumbnailOverlayTimeStatusRenderer||C.thumbnailOverlayBadgeViewModel})}},void 0,"daaH9");
return _.D(_.F,{cond:O,then:function(e){return _.D(_.MR,{data:e},{thumbnailOverlayTimeStatusRenderer:function(l){var C=l.data;l=_.aw(function(){return _.p2N(C(),0)},void 0,"trJFV");
return _.D(PKL,{badgeShapeData:l})},
thumbnailOverlayBadgeViewModel:function(l){return _.D(_.pGD,{data:l.data})}})},
else:function(){var e={type:18,text:_.mq.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.D(PKL,{badgeShapeData:function(){return e}})}})},"Li"),cUX=_.K(function(O){var x=O.props;
var e=O.data;var l=O.options;return _.D(_.tCw,{progressBarProps:x,config:function(){var C,Q=_.q((C=e())==null?void 0:C.multiMarkersPlayerBar,_.VQd),L;C=((L=l())==null?0:L.insetProgressBar)?2:1;var k;L=(k=l())==null?void 0:k.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:C,chapterData:Q,isInlinePlayback:!0,doSeekOnClick:L,playheadDotBehavior:L?1:0}}})},"Mi");_.wP(_.K(function(O){var x=O.data;var e=O.appApi;var l=O.options;var C=D94(x,thO(e));O={};e={};return _.D("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.D("div",{class:_.xz("ytInlinePlayerControlsDarkenedOverlay",(O.ytInlinePlayerControlsDarkenedOverlayShow=function(){return C().isHovering},O))}),_.D(LC4,null),_.D(FCh,{data:C}),_.D(XRY,{data:x}),_.D(O3O,{playerControlsProps:C,
isShortsPage:!1}),_.D("div",{class:_.xz((e.ytInlinePlayerControlsControlsHidden=function(){return C().isDragging},e))},_.D(oU$,{props:C,
data:x,options:l}),_.D(EUY,{props:C,data:x,options:l})),_.D(_.F,{cond:function(){return qbu(x(),l())},
then:function(){return _.D(cUX,{props:C,data:x,options:l})}}))},"Di"),"yt-inline-player-controls",{props:{data:_.Ld,
appApi:_.vs,options:_.Ld}});var sc=function(){var O=_.a.apply(this,arguments)||this;O.opts=null;O.playerControlsData=null;O.playerControlsAppApi={openInMiniplayer:function(){O.openInMiniplayer()}};
O.playerControlsOptions={};O.noAnimation=!1;O.playbackIntentTriggered=!1;O.positionData=null;O.hidden=!0;O.active=!1;O.playing=!1;O.videoPreviewDataIndex=0;O.JSC$19389_playerPromise=null;O.player=null;O.enableAudioControls=!1;O.hasBeenUnmuted=!1;O.captionsHaveBeenTurnedOff=!1;O.JSC$19389_playerEvents=new Map;O.videoPreviewFetchRequest=null;O.scheduledPreviewEndJobId=null;O.JSC$19389_preventProgressSaveTimer=null;O.watchEndpointStartTimeUpdaterInterval=null;O.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};O.windowOnBlurFn=function(){O.deactivate()};
return O};
_.c(sc,_.a);_.b=sc.prototype;
_.b.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.b.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19389_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19389_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19389_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19389_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Qa(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Qa(this,this.onScroll))};
_.b.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Qa(this,this.onScroll))};
_.b.onPageTypeChange=function(){this.deactivate()};
_.b.onWindowResized=function(){this.deactivate()};
_.b.onCaptionsChanged=function(O){O=!!O.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!O);this.setCaptionSize()};
_.b.setCaptionSize=function(){var O;if(this.active&&!this.captionsHaveBeenTurnedOff&&((O=this.player)==null?0:O.getCaptionWindowContainerId())){var x;(x=this.player)==null||x.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.b.currentPageAllowed=function(){return!this.isWatchPage};
_.b.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.t("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var O=this.positionData,x=O.initialTopPosition,e=O.initialHorizontalPosition;_.lH(this.hostElement,{"--ytd-video-preview-translate-left":O.finalHorizontalPosition-e+"px","--ytd-video-preview-translate-top":O.finalTopPosition-x+"px","--ytd-video-preview-original-top-position":x+
"px","--ytd-video-preview-original-horizontal-position":e+"px","--ytd-video-preview-initial-scale":"scale("+O.initialScale+")","--ytd-video-preview-width":O.videoPreviewWidth+"px","--ytd-video-preview-height":O.videoPreviewHeight+"px"});return!0};
_.b.isOutOfBounds=function(O){var x=O.initialHorizontalPosition+12;O=x+O.videoPreviewWidth>window.innerWidth;return x<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&x<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&x<72||O};
_.b.handleOpenVideoPreviewAction=function(O){var x=this,e;return _.A(function(l){if(!x.currentPageAllowed())return l.return(0);x.opts=O;return(e=x.alignVideoPreviewForAnimation(O.thumbnail))?l.return(x.activate()):l.return(0)})};
_.b.onMouseLeave=function(O){var x,e;(x=this.opts)==null||(e=x.mouseleaveCallback)==null||e.call(x);this.shouldDeactivateOnMouseLeave(O)&&this.deactivate()};
_.b.onScroll=function(){var O,x;((O=this.opts)==null?0:O.isAutoplay)&&((x=this.opts)==null?0:x.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.b.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.vn.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.b.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.b.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",sc.JSC$19388_DEFAULT_CLICK_LOCATION_BEHAVIOR,sc.JSC$19388_CLICK_LOCATION_ID_MAP)};
_.b.shouldDeactivateOnMouseLeave=function(O){O=O.relatedTarget;if(!O)return!0;var x;return(x=this.opts)!=null&&x.mediaRenderer?!_.iK(this.opts.mediaRenderer).contains(O):!0};
_.b.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.b.onPlaybackStart=function(){var O=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$19389_preventProgressSaveTimer=
_.$0(_.vn,function(){O.resetPreventProgressSaveTimer()},1E4);
var x;if((x=this.opts)==null?0:x.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.$0(_.vn,function(){O.hasMultipleVideoPreviews()?O.startPlaybackForNextVideo():O.deactivate()},this.opts.videoPreviewDurationMs);
var e;this.player.setGlobalCrop(((e=this.opts)==null?0:e.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.b.getRoundedCornersSize=function(){var O;if((O=this.opts)==null?0:O.roundedCornersSize){var x;return(x=this.opts)==null?void 0:x.roundedCornersSize}var e;if((e=this.opts)==null?0:e.enableRounding){var l;if(((l=this.opts)==null?void 0:l.thumbnailSize)==="small")return 1;var C;if(((C=this.opts)==null?void 0:C.thumbnailSize)==="medium")return 2;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="large")return 3}return _.t("web_imp_inset_progress_bar")?3:0};
_.b.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.b.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.b.onMediaContainerClick=function(O){this.isShortcutClick(O)||(this.navigateToWatch(O),O.preventDefault(),O.stopPropagation())};
_.b.activate=function(){var O=this,x,e,l,C,Q,L,k,M,G;return _.A(function(X){switch(X.nextAddress){case 1:if(!O.currentPageAllowed())return X.return(0);e=(x=O.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint;l=_.We.instance;if(!e||!l)return X.return(0);O.playbackIntentTriggered=!0;((C=O.opts)==null?0:C.mediaRenderer)&&((Q=O.opts)==null||!Q.isAutoplay)&&x9$(O.opts.mediaRenderer,function(){O.deactivate()});
_.A_(O,function(){O.revealPreviewUi()});
L={};_.t("enable_unknown_lact_fix_on_html5")&&(_.GG().resolve(_.Fn),L.lact=_.Gl());O.videoPreviewFetchRequest=jpe(l,O.getInlinePlaybackRequestData(O.videoPreviewData),L);_.tS(X,2);return X.yield(O.videoPreviewFetchRequest,4);case 4:k=X.yieldResult;if(((M=k)==null?void 0:(G=M.playabilityStatus)==null?void 0:G.status)==="OK")return X.return(O.handlePlayerResponse(k));throw Error("bk");case 2:_.VP(X),O.deactivate();case 3:return X.return(1)}})};
_.b.getInlinePlaybackRequestData=function(O){var x,e=_.t("web_imp_player_mute_params")?((x=this.opts)==null?void 0:x.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:O.inlinePlaybackEndpoint,startPlaybackInMutedState:e}};
_.b.handlePlayerResponse=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){if(P.nextAddress==1){e=x.getInlinePlaybackVideoId();if(!(((l=O)==null?0:(C=l.videoDetails)==null?0:C.videoId)&&x.currentPageAllowed()&&x.playbackIntentTriggered&&x.opts&&e))return x.deactivate(),P.return(0);if(O.videoDetails.videoId!==e)return P.return(0);x.enableAudioControls=!!((Q=O.playerConfig)==null?0:(L=Q.inlinePlaybackConfig)==null?0:L.showAudioControls);O.trackingParams=x.getInlinePlaybackTrackingParams();
if(!x.inlinePlayer)return P.return(0);k={};if(G=_.q((M=x.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.Hq))k.watch_endpoint=G;if(x.videoPreviewData){var U,W=(U=_.q(x.videoPreviewData.inlinePlaybackEndpoint,_.Hq))==null?void 0:U.startTimeSeconds;W!==void 0&&(O.playerConfig||(O.playerConfig={}),O.playerConfig.playbackStartConfig||(O.playerConfig.playbackStartConfig={}),O.playerConfig.playbackStartConfig.startPosition||(O.playerConfig.playbackStartConfig.startPosition={}),O.playerConfig.playbackStartConfig.startSeconds=
W,O.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(W*1E3))}x.inlinePlayer.loadVideoWithPlayerResponse(O,k);if(x.JSC$19389_playerPromise)return P.jumpTo(2);x.JSC$19389_playerPromise=x.inlinePlayer.getPlayerPromise();return P.yield(x.JSC$19389_playerPromise,3)}P.nextAddress!=2&&(X=P.yieldResult,X.setInlinePreview(!0),y=!_.t("web_imp_theater_bugfix"),X.setSizeStyle(!1,y),x.ytPlayerListenerBehavior.listenToPlayerEvents(X,x.JSC$19389_playerEvents),x.player=X,_.wr(x.hostElement,
"player-api-ready"));((Z=x.opts)==null?0:Z.showPlayerControls)&&x.videoPreviewData&&x.player&&(x.playerControlsData={playerResponse:O,isInlinePlayback:!0,thumbnailOverlays:x.videoPreviewData.thumbnailOverlays,playerApi:x.player},x.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!x.unroundCornersForPlayback,additionalButton:x.getAdditionalButtonType(x.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(E=x.opts)==null?void 0:E.hideTimeDisplay});return P.return(2)})};
_.b.revealPreviewUi=function(){var O=this;this.playbackIntentTriggered&&_.yOi(this,function(){O.hasThumbnailPositionChangedSinceTriggered()||(O.updateActiveState(!0),O.noAnimation=!1)})};
_.b.hasThumbnailPositionChangedSinceTriggered=function(){var O=this.positionData,x=this.getThumbnailPositionData();return(O==null?void 0:O.initialTopPosition)!==(x==null?void 0:x.initialTopPosition)||(O==null?void 0:O.initialHorizontalPosition)!==(x==null?void 0:x.initialHorizontalPosition)};
_.b.getThumbnailPositionData=function(){var O,x;if((x=this.opts)==null||!x.thumbnail)return null;x=this.opts.thumbnail;var e=((O=this.opts)==null?0:O.cropPlayerToFillThumbnailHorizontally)?!1:!0;var l=x.getBoundingClientRect();O=l.width;x=l.height;var C=l.top+window.scrollY;l=l.left+window.scrollX;var Q=e?Math.ceil(O):O;e=e?Math.ceil(x):x;var L=O/Q;O={initialScale:L,initialTopPosition:C-12*L,finalTopPosition:C-12-(e-x)/2,initialHorizontalPosition:l-(12+(Q-O)/2),finalHorizontalPosition:l-12-(Q-O)/
2,videoPreviewWidth:Q,videoPreviewHeight:e};return O};
_.b.updateActiveState=function(O){this.active=O;this.ytdReduxBehavior.dispatch(_.j6({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:O}))};
_.b.stopPlayer=function(O){O=O.resetWatchEndpointStartTime===void 0?!1:O.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(O)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.vn.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.b.deactivate=function(O){O=O===void 0?{}:O;O=O.resetWatchEndpointStartTime===void 0?!1:O.resetWatchEndpointStartTime;fv&&(fv.disconnect(),fv=null);this.stopPlayer({resetWatchEndpointStartTime:O});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.b.isValidThumbnailOverlayButton=function(O,x){O=O.thumbnailOverlayButtonRenderer;var e;return!!O&&!!O.tooltip&&!((e=O.icon)==null||!e.iconType)&&x.includes(O.icon.iconType)};
_.b.isValidThumbnailOverlayButtonViewModel=function(O,x){var e;O=_.q((e=O.thumbnailOverlayButtonViewModel)==null?void 0:e.overlayButton,_.gf);return!!O&&!!O.title&&!!O.iconName&&x.includes(O.iconName)};
_.b.getAdditionalButtonType=function(O){var x=this;if(_.t("web_imp_fastforward_button"))return{button:1};if(_.t("web_imp_miniplayer_button"))return{button:2};if(_.t("web_imp_playback_speed_button"))return{button:3};var e=["BOX_STACK_3"],l=(O||[]).filter(function(Q){return x.isValidThumbnailOverlayButton(Q,e)}).map(function(Q){return Q.thumbnailOverlayButtonRenderer});
if(l.length)return{button:4,thumbnailOverlayButtonRenderers:l};var C=["BOX_STACK_3"];O=(O||[]).filter(function(Q){return x.isValidThumbnailOverlayButtonViewModel(Q,C)}).map(function(Q){return _.q(Q.thumbnailOverlayButtonViewModel.overlayButton,_.gf)});
if(O.length)return{button:4,thumbnailOverlayButtonViewModels:O}};
_.b.allowCaptions=function(){var O;return!((O=this.opts)==null?0:O.forceCaptionsOff)};
_.b.allowUnmuting=function(){var O;return this.enableAudioControls&&!((O=this.opts)==null?0:O.forceMutedVolume)};
_.b.beginStartTimeUpdater=function(){var O=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.cK(function(){O.updateWatchEndpointStartTime()},1E3)};
_.b.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.b.resetPreventProgressSaveTimer=function(){this.JSC$19389_preventProgressSaveTimer!==null&&(_.vn.cancelJob(this.JSC$19389_preventProgressSaveTimer),this.JSC$19389_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.b.updateWatchEndpointStartTime=function(O){var x=this.videoPreviewData;if(this.player&&x!=null&&x.inlinePlaybackEndpoint&&!this.JSC$19389_preventProgressSaveTimer){O=O?0:Math.floor(this.player.getCurrentTime());var e=_.q(x.navigationEndpoint,_.Hq);e&&(e.startTimeSeconds=O);if(x=_.q(x.inlinePlaybackEndpoint,_.Hq))x.startTimeSeconds=O}};
_.b.isShortcutClick=function(O){return!!O&&(O.ctrlKey||O.shiftKey||O.metaKey)};
_.b.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.b.openInMiniplayer=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1){e=(x=O.videoPreviewData)==null?void 0:x.navigationEndpoint;if(!e)return l.return();_.U7().lockupActivation=!0;return l.yield(_.n1d(_.GG().resolve(_.Vs),e),2)}_.U7().userActivation=!0;_.Ra(l)})};
_.b.navigateToWatch=function(O){var x,e=(x=this.videoPreviewData)==null?void 0:x.navigationEndpoint;if(e){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(e,O,!0);else{var l;_.t("web_thumbnail_to_watch_transition")&&((l=this.opts)==null?0:l.thumbnail)&&_.HSz(_.GG().resolve(_.r9),this.opts.thumbnail);_.wr(this.hostElement,"yt-navigate",{endpoint:e})}this.deactivate()}};
_.b.getInlinePlaybackVideoId=function(){var O,x;return(x=_.q((O=this.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint,_.Hq))==null?void 0:x.videoId};
_.b.getInlinePlaybackTrackingParams=function(){var O,x;return(O=this.videoPreviewData)==null?void 0:(x=O.inlinePlaybackEndpoint)==null?void 0:x.clickTrackingParams};
_.b.hasMultipleVideoPreviews=function(){var O;return!!(((O=this.opts)==null?0:O.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.b.startPlaybackForNextVideo=function(){var O;(O=this.opts)!=null&&O.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())};
_.Dy.Object.defineProperties(sc.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.opts)==null?0:O.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.opts)==null||!O.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 O;if(Array.isArray((O=this.opts)==null?void 0:O.videoPreviewData)){var x;return(x=this.opts)==null?void 0:x.videoPreviewData[this.videoPreviewDataIndex]}var e;return(e=this.opts)==null?void 0:e.videoPreviewData}}});
sc.prototype.onIsAdsVideoChange=sc.prototype.onIsAdsVideoChange;sc.prototype.onInlinePreviewIsEnabledChange=sc.prototype.onInlinePreviewIsEnabledChange;sc.prototype.optsChanged=sc.prototype.optsChanged;sc.prototype.onMouseLeave=sc.prototype.onMouseLeave;sc.JSC$19388_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);sc.JSC$19388_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"}];
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],sc.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],sc.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],sc.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],sc.prototype,"componentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],sc.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Eg.YtSparklesClickLocationBehavior),_.v("design:type",Object)],sc.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sc.prototype,"opts",void 0);
_.B([_.R(),_.v("design:type",Object)],sc.prototype,"playerControlsData",void 0);_.B([_.R(),_.v("design:type",Object)],sc.prototype,"playerControlsAppApi",void 0);_.B([_.R(),_.v("design:type",Object)],sc.prototype,"playerControlsOptions",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sc.prototype,"noAnimation",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sc.prototype,"hidden",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sc.prototype,"active",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sc.prototype,"playing",void 0);_.B([_.R({selector:_.WPm}),_.v("design:type",Boolean)],sc.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.R(),_.v("design:type",String)],sc.prototype,"pagePath",void 0);_.B([_.R({selector:_.aXm}),_.v("design:type",Boolean)],sc.prototype,"isWatchPage",void 0);
_.B([_.p("videoPreviewData"),_.v("design:type",Object),_.v("design:paramtypes",[])],sc.prototype,"thumbnailData",null);_.B([_.p("opts","active"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sc.prototype,"hidePlayerControls",null);_.B([_.p("opts"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sc.prototype,"isAdsVideo",null);
_.B([_.p("opts"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sc.prototype,"roundedCornersSmall",null);_.B([_.p("opts"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sc.prototype,"roundedCornersMedium",null);_.B([_.p("opts"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sc.prototype,"roundedCornersLarge",null);
_.B([_.p("opts"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],sc.prototype,"unroundCornersForPlayback",null);_.B([_.p("opts","videoPreviewDataIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],sc.prototype,"videoPreviewData",null);_.B([_.R(),_.v("design:type",Object)],sc.prototype,"videoPreviewDataIndex",void 0);_.B([_.kX("#inline-player"),_.v("design:type",Object)],sc.prototype,"inlinePlayer",void 0);
_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[MouseEvent]),_.v("design:returntype")],sc.prototype,"onMouseLeave",null);_.B([_.G1("opts"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sc.prototype,"optsChanged",null);_.B([_.G1("inlinePreviewIsEnabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sc.prototype,"onInlinePreviewIsEnabledChange",null);
_.B([_.T1("isAdsVideo"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sc.prototype,"onIsAdsVideoChange",null);_.B([_.H({is:"ytd-video-preview",disableElementRegistration:!0})],sc);
_.n(sc,"ytd-video-preview",function(){if(iA4!==void 0)return iA4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return iA4=O},{mode:2});
}catch(e){_._DumpException(e)}
try{
var EGS,tNc,qdS;EGS=function(O){return _.t("kevlar_watch_cinematics_invisible")||O.fullscreen&&_.t("kevlar_watch_cinematics_invisible_in_fullscreen")||O.theater&&!O.fullscreen&&_.t("kevlar_watch_cinematics_invisible_in_theater")};
tNc=function(){var O=document.createElement("canvas"),x=O.getContext("2d");if(!x)throw Error("Ko");_.WS(O,{position:"absolute",width:"100%",height:"100%"});return{element:O,context:x}};
qdS=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.t("kevlar_watch_cinematics_css_blur")};
_.Pto=function(O,x,e){return Math.abs(O-x)<=(e||1E-6)};
_.cjI=function(O,x){return O==x?!0:O&&x?O.width==x.width&&O.height==x.height:!1};_.IuS=new _.$x("notificationActionRenderer");var VNw=function(O){var x=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.OA;this.element.addEventListener("load",function(){x.loaded=!0;x.resolver.resolve(x.element)});
this.element.addEventListener("error",function(){x.failed=!0});
this.element.src=O};var pXk=function(O,x){this.image=O;this.frame=x};
pXk.prototype.drawToCanvas=function(O,x){var e=this.frame.width/this.frame.columns,l=this.frame.height/this.frame.rows,C=x.offsetX,Q=x.offsetY;EGS(x)?(O.fillStyle=x.fullscreen?"#000":"#0f0f0f",O.fillRect(C,Q,(x==null?void 0:x.width)||e,(x==null?void 0:x.height)||l)):O.drawImage(this.image,this.frame.column*e,this.frame.row*l,e,l,C,Q,(x==null?void 0:x.width)||e,(x==null?void 0:x.height)||l)};
var RQE=function(O){this.color=O};
RQE.prototype.drawToCanvas=function(O,x){var e=x.offsetX,l=x.offsetY,C=x.width,Q=x.height;O.fillStyle=EGS(x)?x.fullscreen?"#000":"#0f0f0f":this.color;O.fillRect(e,l,C,Q)};var Z4=function(O,x){_.HA.call(this);this.playerApi=x;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.pu(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();UMh(this,O);auE(this);this.update()};
_.c(Z4,_.HA);Z4.prototype.addEventListeners=function(){var O=this,x=function(){O.update()},e=function(C){O.paused||(C.type==="newdata"&&(O.mosaics.clear(),mM7(O),E6(O)),auE(O),O.update())},l=function(){O.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",x);this.playerApi.addEventListener("onVideoDataChange",e);this.playerApi.addEventListener("onStateChange",l);this.addOnDisposeCallback(function(){O.playerApi.removeEventListener("onVideoProgress",x);O.playerApi.removeEventListener("onVideoDataChange",e);O.playerApi.removeEventListener("onStateChange",l)})};
var UMh=function(O,x){O.cinematicContainerRenderer!==x&&(O.cinematicContainerRenderer=x,mM7(O),E6(O),O.colorStoreUpdateJobId=_.vn.addLowPriorityJob(function(){var e;if((e=O.cinematicContainerRenderer.colorStore)!=null&&e.sampledColors){e=Infinity;for(var l=_.T(O.cinematicContainerRenderer.colorStore.sampledColors),C=l.next();!C.done;C=l.next()){C=C.value;var Q=Number(C.key);Q!==0&&Q<e&&(e=Q);Q=_.aF(C.value);O.colorStore.set(C.key,Q)}O.colorStoreTimeInterval=e}}))},mM7=function(O){O.colorStoreUpdateJobId&&
(_.vn.cancelJob(O.colorStoreUpdateJobId),O.colorStoreUpdateJobId=void 0);
O.colorStore.clear();O.currentStoryboardColor=void 0},snS=function(O,x){var e;
return(e=O.getStoryboardFrame(x))==null?void 0:e.url};
Z4.prototype.onPlayerStateChange=function(){this.update()};
Z4.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var auE=function(O){var x=O.getStoryboardFrame(0);x&&(x=new _.pu(x.width/x.columns,x.height/x.rows),_.cjI(O.currentStoryboardSize,x)||(O.currentStoryboardSize=x,O.publish("STORYBOARD_SIZE_CHANGED",O.currentStoryboardSize)))},WOz=function(O,x){O.currentStoryboardIndex=x;
O.pendingStoryboardIndex=NaN;x=O.getStoryboardFrame(O.currentStoryboardIndex);O.currentStoryboard=new pXk(O.mosaics.get(x.url).element,x);O.publish("STORYBOARD_CHANGED",O.currentStoryboard);O.lastUpdateTime=(0,_.F2)()};
Z4.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var E6=function(O){O.currentStoryboardIndex=NaN;O.pendingStoryboardIndex=NaN;O.currentStoryboard&&(O.currentStoryboard=void 0,O.publish("STORYBOARD_CHANGED",void 0));O.lastUpdateTime=NaN};
Z4.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)E6(this);else{var O=this.playerApi.getPlayerState(1);if(O===-1||O===5||O===0)E6(this);else if(isNaN(this.lastUpdateTime)||!((0,_.F2)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(O=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){O=""+Math.round(O*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var x=this.colorStore.get(O);x?x!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=x,this.currentStoryboard=new RQE(x),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.F2)()):(_.ft(new _.ry("Could not find color for timestamp: "+O,this.cinematicContainerRenderer)),E6(this))}else E6(this);else hQI(this,O)}};
var hQI=function(O,x){var e=O.getStoryboardFrameIndex(x);if(e!==O.currentStoryboardIndex&&e!==O.pendingStoryboardIndex){x=snS(O,e);var l=O.mosaics.get(x);l?l.loaded&&WOz(O,e):(O.pendingStoryboardIndex=e,e=new VNw(x),O.mosaics.set(x,e),e.resolver.promise.then(function(){if(!O.isDisposed()&&!O.paused&&!isNaN(O.pendingStoryboardIndex)){var C=snS(O,O.pendingStoryboardIndex);if(C){var Q;(Q=O.mosaics.get(C))!=null&&Q.loaded&&WOz(O,O.pendingStoryboardIndex)}else E6(O)}}))}};
Z4.prototype.getStoryboardFrameIndex=function(O){var x=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(O,x)};
Z4.prototype.getStoryboardFrame=function(O){var x=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,e,l;return((l=(e=this.playerApi).getStoryboardFrame)==null?void 0:l.call(e,O,x))||null};
Z4.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var qH=function(O,x,e,l){l=l===void 0?!1:l;_.h0.call(this);this.cinematicContainerRenderer=x;this.playerApi=e;this.theater=this.fullscreen=!1;var C;this.ambientLightThemeEnabled=!l&&!!(x==null?0:(C=x.config)==null?0:C.enableInLightTheme);this.ambientFullscreenEnabled=l&&_.t("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=l&&_.t("web_cinematic_theater_mode");this.container=document.createElement("div");O.appendChild(this.container);var Q;if(_.t("web_cinematic_theater_mode")||_.t("web_cinematic_fullscreen")||
(x==null?0:(Q=x.config)==null?0:Q.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);zQo(this);O=this.ambientV2Container||this.container;this.backCanvas=tNc();this.frontCanvas=tNc();O.appendChild(this.backCanvas.element);O.appendChild(this.frontCanvas.element);this.storyboardManager=new Z4(x,this.playerApi);_.qq(this,this.storyboardManager);this.addEventListeners();rjc(this)?HuH(this,100+tv(this)*3*2,100+tv(this)*3*2):KOw(this);
dMU(this,this.storyboardManager.currentStoryboard)};
_.c(qH,_.h0);var zQo=function(O){O.ambientV2Container?nGo(O):(_.WS(O.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+u5U(O)+", "+Ydh(O)+")"}),qdS()&&_.WS(O.container,"filter","blur("+_.yF("cinematic_watch_css_filter_blur_strength",40)+"px)"))},nGo=function(O){if(O.ambientV2Container){var x=O.playerApi.getVideoAspectRatio();
_.WS(O.container,{"aspect-ratio":""+x,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.WS(O.ambientV2Container,{"aspect-ratio":""+x,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+u5U(O)+", "+Ydh(O)+")"});qdS()&&_.WS(O.ambientV2Container,"filter","blur("+_.yF("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
qH.prototype.setFullscreen=function(O,x){this.fullscreen=O;this.theater=!!x;zQo(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),O=this.storyboardManager.currentStoryboard,Bcs(this),O&&vGE(this,O)};
qH.prototype.addEventListeners=function(){var O=this,x=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(C){dMU(O,C)}),e=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){KOw(O)});
this.addOnDisposeCallback(function(){O.storyboardManager.unsubscribeByKey(x);O.storyboardManager.unsubscribeByKey(e)});
if(this.ambientV2Container){var l=function(){nGo(O)};
this.playerApi.addEventListener("onVideoDataChange",l);this.addOnDisposeCallback(function(){O.playerApi.removeEventListener("onVideoDataChange",l)})}};
var KOw=function(O){if(!rjc(O)){var x=O.storyboardManager.currentStoryboardSize;isNaN(x.width)||isNaN(x.height)||HuH(O,Number(x.width)+tv(O)*3*2,Number(x.height)+tv(O)*3*2)}},HuH=function(O,x,e){O.backCanvas.element.width=x;
O.backCanvas.element.height=e;O.frontCanvas.element.width=x;O.frontCanvas.element.height=e},rjc=function(O){return O.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},dMU=function(O,x,e){e=e===void 0?!1:e;
var l=O.frontCanvas.element.getAnimations()[0];l?(l.pause(),O.backCanvas.context.globalAlpha=Number(getComputedStyle(O.frontCanvas.element).opacity),O.frontCanvas.element.style.opacity="0",l.finish()):O.backCanvas.context.globalAlpha=1;O.backCanvas.context.drawImage(O.frontCanvas.element,0,0,O.backCanvas.element.width,O.backCanvas.element.height);Bcs(O);x&&vGE(O,x);x=x?O.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.yF("cinematic_watch_fade_out_duration",500);l=_.yF("cinematic_watch_transition_frame_rate")/
1E3;var C={};l&&(C={easing:"steps("+Math.round(x*l)+")"});(e===void 0?0:e)||O.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:x,iterations:1},C));O.frontCanvas.element.style.opacity="1"},Bcs=function(O){var x=O.ambientLightThemeEnabled||O.ambientTheaterModeEnabled,e=O.ambientLightThemeEnabled||O.ambientFullscreenEnabled;
O.frontCanvas.context.fillStyle=O.theater&&x||O.fullscreen&&e?"#000":"#0f0f0f";qdS()||(O.frontCanvas.context.filter="blur(0)");O.frontCanvas.context.fillRect(0,0,O.frontCanvas.element.width,O.frontCanvas.element.height)},vGE=function(O,x){qdS()||(O.frontCanvas.context.filter="blur("+tv(O)+"px)");
O.frontCanvas.context.globalAlpha=O.fullscreen&&O.ambientFullscreenEnabled||O.theater&&O.ambientTheaterModeEnabled?_.yF("cinematic_watch_effect_letterbox_opacity",.4):_.yF("cinematic_watch_effect_opacity",.4);var e={offsetX:tv(O)*3,offsetY:tv(O)*3,theater:O.theater,fullscreen:O.fullscreen};rjc(O)&&(e.width=100,e.height=100);x.drawToCanvas(O.frontCanvas.context,e);O.frontCanvas.context.globalAlpha=1},tv=function(O){var x;
return(x=O.cinematicContainerRenderer.config.blurStrength)!=null?x:5},u5U=function(O){var x,e;
if((O.fullscreen||O.theater)&&((x=O.cinematicContainerRenderer.config)==null?0:(e=x.watchFullscreenConfig)==null?0:e.colorSourceWidthMultiplier))return O.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var l;return(l=O.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?l:O.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Ydh=function(O){var x,e;
if((O.fullscreen||O.theater)&&((x=O.cinematicContainerRenderer.config)==null?0:(e=x.watchFullscreenConfig)==null?0:e.colorSourceHeightMultiplier))return O.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var l;return(l=O.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?l:O.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
qH.prototype.disposeInternal=function(){_.h0.prototype.disposeInternal.call(this);this.container.remove()};
qH.prototype.clear=function(){dMU(this,void 0,!0)};
qH.prototype.pause=function(){this.storyboardManager.pause()};var fuy;fuy=_.Xb(function(){var O,x,e=!((x=(O=document.createElement("canvas")).getContext)==null||!x.call(O,"2d")),l;O=!((l=CSS)==null||!l.supports("filter: blur(0)"));l=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var C;return e&&O&&l&&!((C=CSS)==null||!C.supports("aspect-ratio: 1 / 1"))});
_.PJ=function(O,x){_.HA.call(this);this.container=O;this.playerApi=x;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Jjy(this);this.update()};
_.c(_.PJ,_.HA);_.wXz=function(O){var x=document.documentElement.hasAttribute("dark");O.isDarkModeEnabled=x;O.update()};
_.Sdk=function(O,x){O.settingEnabled=x;O.update()};
_.PJ.prototype.setFullscreen=function(O,x){this.fullscreen=O;this.theater=!!x;this.update()};
_.jnk=function(O,x){O.cinematicContainerRenderer=x;O.cinematicContainerRenderer&&(O.cinematicsVe=_.O9(O.isShorts()?227858:159022),_.qK(_.k0(),O.cinematicsVe),O.loggingClientData={watchCinematicContainerData:{presentationStyle:O.cinematicContainerRenderer.presentationStyle}});O.update()};
_.PJ.prototype.isShorts=function(){var O,x;return((O=this.cinematicContainerRenderer)==null?void 0:(x=O.config)==null?void 0:x.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.PJ.prototype.isAllowed=function(){var O;if(O=fuy()){var x,e,l;O=((e=this.cinematicContainerRenderer)==null?void 0:e.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((l=this.cinematicContainerRenderer)==null||!l.colorStore)||((x=this.cinematicContainerRenderer)==null?void 0:x.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(O)if(_.t("web_cinematics_pausing")){var C,Q;O=this.isDarkModeEnabled||!!((C=this.cinematicContainerRenderer)==
null?0:(Q=C.config)==null?0:Q.enableInLightTheme)}else{var L,k;C=!!((L=this.cinematicContainerRenderer)==null?0:(k=L.config)==null?0:k.enableInLightTheme)&&(_.wz("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);O=this.isDarkModeEnabled||C}if(L=O){var M,G;L=!((G=(M=this.prefersReducedMotionQuery)==null?void 0:M.matches)!=null&&G)}return L};
_.Ncz=function(O){(O=O.currentCinematicEffect)!=null&&(O=O.storyboardManager,O.paused=!1,auE(O),O.update())};
_.PJ.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Jjy=function(O){if(!_.t("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var x=window.matchMedia("(prefers-reduced-motion: reduce)"),e=function(){O.update()};
x.addListener(e);O.addOnDisposeCallback(function(){x.removeListener(e)});
return x}};
_.PJ.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var O=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new qH(this.container,O,this.playerApi,this.isDarkModeEnabled),_.qq(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var x=this.currentCinematicEffect;x.cinematicContainerRenderer!==
O&&(x.cinematicContainerRenderer=O,UMh(x.storyboardManager,O),zQo(x));O=_.TD();_.LZ(0,194,!0);O.save();O=_.Pq();this.cinematicsVe&&O&&_.rT(O,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(O=_.Pq(),this.cinematicsVe&&O&&_.HU(O,[this.cinematicsVe],!1,this.loggingClientData),_.Lf(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Dy.Object.defineProperties(_.PJ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var JSk;var wOw;_.tY({_template:function(){if(wOw!==void 0)return wOw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=
O.content,e=x.insertBefore;JSk===void 0&&(JSk=document.createElement("template"));var l=JSk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return wOw=O},
is:"tp-yt-iron-pages",behaviors:[_.Wg,_.rq],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var vLo;_.fQa=function(){if(_.t("kevlar_home_skeleton")&&!vLo){var O=document.querySelector("#home-page-skeleton");O&&(_.IR("hgcr"),_.Um(O),vLo=!0)}};
vLo=!1;_.l5=new _.$x("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var IDa,pdh,Ukk,aDE,mka,szo,W3w,hLw,zLw,H2k,ndz,YTE,vdH,u4H,K3E,dkU,wds,STk;IDa=function(O,x,e,l){var C=!1,Q={contentId:void 0,contentType:"video"};x=_.T(Object.entries(x));for(var L=x.next();!L.done;L=x.next()){var k=_.T(L.value);L=k.next().value;k=k.next().value;O.includes(L)&&!e.has(k)?(Q.contentId=k,e.add(k),C=!0):L==="contentType"?k==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(Q.contentType="playlist"):typeof k==="object"&&k!==null&&IDa(O,k,e,l)}C&&l.push(Q)};
_.V$c=function(O,x,e){x=x===void 0?5:x;if(x!==0){var l=typeof O==="function"?O():document.querySelector(O);l?(e==null?0:e.enableSmartFocus)?_.wKN(l):l.focus():setTimeout(function(){_.V$c(O,x-1,e)},500)}};
pdh=function(O){return String.raw.apply(String,[{raw:O}].concat(_.Kx(_.vw.apply(1,arguments).map(function(x){return x instanceof Array?x.join(""):x}))))};
Ukk=function(O){var x=_.vw.apply(1,arguments),e=x.length;if(!Array.isArray(O)||!Array.isArray(O.raw)||O.length!==O.raw.length||!_.IsN&&O===O.raw||!(_.IsN&&!_.VEd||_.Ww(O))||e+1!==O.length)throw new TypeError("$");return new RLU(Object.freeze({strings:Object.freeze(O),args:Object.freeze(x)}))};
aDE=function(O){return _.l_i(_.e$r(O&16777215))<.5};
mka=function(O,x,e){var l=e.minimumRowsOfVideosBetweenSections===void 0?1:e.minimumRowsOfVideosBetweenSections;return O<(e.minimumRowsOfVideosAtStart===void 0?2:e.minimumRowsOfVideosAtStart)||x!==null&&O-x<=l?!1:!0};
szo=function(O,x){var e=0,l=0;O=_.T(O);for(var C=O.next();!C.done;C=O.next()){var Q=C.value;if(Q.richItemRenderer)Q.richItemRenderer.rowIndex=l,Q.richItemRenderer.colIndex=e++,e===x&&(e=0,l++);else if(Q.richGroupRenderer&&Q.richGroupRenderer.numColumns!==void 0)Q.richGroupRenderer.rowIndex=l,Q.richGroupRenderer.colIndex=e,e+=Q.richGroupRenderer.numColumns,e===x&&(e=0,l++);else if(Q.richSectionRenderer){var L=C=void 0;if(Q=_.q((C=Q)==null?void 0:(L=C.richSectionRenderer)==null?void 0:L.content,_.L_k))Q.rowIndex=
l++}}};
W3w=function(O,x){var e=x.contentElement;x=x.rendererToTagNameMap;if(e&&x&&x.size!==0){for(var l=new Map,C=_.T(e.children),Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var L=Q.tagName.toLowerCase(),k=l.get(L);k||(k=[],l.set(L,k));k.push(Q)}if(l.size!==0)for(C=Math.min(O.length,e.children.length),Q=new Map,L=0;L<C;L++){k=Object.keys(O[L])[0];k=x.get(k);if(!k)break;var M=Q.get(k);M===void 0&&(M=0,Q.set(k,M));var G=l.get(k);if(!G||M>=G.length)break;Q.set(k,M+1);k=G[M];M=e.children[L];M!==k&&(_.f_=!0,_.JB.set(k,
!0),e.insertBefore(k,M),_.JB.delete(k),_.f_=!1)}}};
hLw=function(O,x,e,l,C,Q,L){l=l===void 0?{}:l;if(!O||!O.length)return{orderedContent:[]};O=O.slice();var k=[],M=[];C=null;for(var G=0,X=function(f){M.sort(function(J,O8){return O8.skippedOnRow-J.skippedOnRow});
for(var u,Y=(u=M.shift())==null?void 0:u.content;Y;)!Y.richSectionRenderer&&f||k.push(Y),u=void 0,Y=(u=M.shift())==null?void 0:u.content},y=void 0,Z=void 0,E=new Set;O.length>0||M.length>0;){for(var P=[],U=x;U>0;){var W=void 0,z=void 0,r=(z=M[0]&&M[0].skippedOnRow<G?(W=M.shift())==null?void 0:W.content:void 0)!=null?z:O.shift();
if(!r)break;if(r.richItemRenderer)W=r.richItemRenderer.targetId,z=void 0,W&&((z=L)==null?0:z.has(W))&&(z=L.get(W),!y||z&&z.timestamp>y.timestamp)&&(y=z,Z&&E.add(Z),Z=W),P.push(r),U--;else if(r.richGroupRenderer&&r.richGroupRenderer.numColumns!==void 0)r.richGroupRenderer.numColumns<=U?(P.push(r),U-=r.richGroupRenderer.numColumns):U===x&&r.richGroupRenderer.numColumns>x?(P.push({richGroupRenderer:Object.assign({},r.richGroupRenderer,{numColumns:x})}),U=0):M.push({content:r,skippedOnRow:G});else if(r.richSectionRenderer)if(mka(G,
C,l)&&U===x){k.push(r);C=G;G++;continue}else M.push({content:r,skippedOnRow:G});else if(r.continuationItemRenderer){X(!0);k.push(r);U=0;break}if(U===0)k.push.apply(k,_.Kx(P));else if(!e&&O.length===0){X(!1);k.push.apply(k,_.Kx(P));U=0;break}}G++;y&&(k.push(y.content),G++);Z=y=void 0}szo(k,x);Q&&W3w(k,Q);return{orderedContent:k,pinnedContentNotShownTargetIds:E}};
zLw=function(){return _.vw.apply(0,arguments).flat().filter(function(O){return O}).join(";")};
H2k=function(){return Ukk(rJH,zLw.apply(null,_.Kx(_.vw.apply(0,arguments))))};
ndz=function(O,x){if(x){var e=_.u9().getState().entities.flowStateEntity,l=K3E(O),C=[x];l&&l!==x&&C.push(l);var Q=!0,L;if(e&&O.flowStateEntityKey&&((L=e[O.flowStateEntityKey])==null?void 0:L.primaryButtonDisabled)!==void 0){var k;Q=!((k=e[O.flowStateEntityKey])==null||!k.primaryButtonDisabled)}dkU(O,l!=null?l:x,C,Q)}};
YTE=function(O){return _.mw(_.u9(),function(x){return x.entities.flowStateEntity},function(x,e){if(O.flowStateEntityKey){var l,C=x==null?void 0:(l=x[O.flowStateEntityKey])==null?void 0:l.currentStepId,Q;
e=e==null?void 0:(Q=e[O.flowStateEntityKey])==null?void 0:Q.currentStepId;Q=_.u9().getState().talkToRecs;if(C&&C!==e){var L;x=(x==null?void 0:(L=x[O.flowStateEntityKey])==null?void 0:L.stepIdStack)||Object.keys(Q.stepStates);L=!u4H(Q==null?void 0:Q.stepStates[C]);dkU(O,C,x,L)}}})};
vdH=function(O){return _.mw(_.u9(),BNH,function(x){var e=K3E(O);if(e){var l=Object.keys(x.stepStates);x=!u4H(x==null?void 0:x.stepStates[e]);dkU(O,e,l,x)}})};
u4H=function(O){var x=Object.keys((O==null?void 0:O.selectionStates)||{}).reduce(function(Q,L){return Q||(O==null?void 0:O.selectionStates[L].isSelected)},!1),e,l,C=!!(O==null?0:(e=O.userQuery)==null?0:(l=e.userQuery)==null?0:l.trim());
return x||C};
K3E=function(O){if(O.flowStateEntityKey){var x,e,l=(x=_.u9().getState().entities.flowStateEntity)==null?void 0:(e=x[O.flowStateEntityKey])==null?void 0:e.currentStepId;if(l)return l}};
dkU=function(O,x,e,l){_.u9().dispatch(_.Dc("flowStateEntity",O.flowStateEntityKey,{currentStepId:x,stepIdStack:e,key:O.flowStateEntityKey,primaryButtonDisabled:l}))};
_.fDh=function(O,x){return _.xE(O.entities,"youchatPendingResponseEntity",x)};
_.JJs=function(O){return function(x){_.ns(_.Dc("youchatPendingResponseEntity",O,{entityKey:O,isPendingResponse:x}))}};
wds=function(O){O==null||O.addEventListener("DOMLoaded",function(){O.goToAndPlay(O.totalFrames-48,!0)})};
STk=function(O){var x=[];IDa(["videoId","contentId"],O.JSC$18578_pageManager.data,new Set,x);return x};
_.jzw=function(O){return STk(O).filter(function(x){return x.contentType==="video"}).map(function(x){return x.contentId}).filter(function(x){return x!==void 0})};
_.DK=function(O){this.__isSoyCss=!0;this.css=pdh.apply(null,[O.strings].concat(_.Kx(O.args)))};
_.DK.prototype.toString=function(){return this.css};
var RLU=function(){_.DK.apply(this,arguments)};
_.c(RLU,_.DK);var rJH=_.zo(["",""]);var NNh;var gdU;_.tY({_template:function(){if(gdU!==void 0)return gdU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
var x=O.content,e=x.insertBefore;NNh===void 0&&(NNh=document.createElement("template"));var l=NNh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return gdU=O},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var $kH=new _.$x("flowRootRenderer");var i2a=new _.$x("chipsShelfViewModel");var OQS=new _.$x("responsiveContainerConfiguration");_.xhH=new _.$x("engagementPanelSectionListRenderer");var eOk=function(){this.horizontal=!1},lQa=function(O,x){O.horizontal=x};
eOk.prototype.position=function(O,x,e,l){l=l===void 0?1:l;O=this.delta(O)*l+x;l=Math.max(x,e);return O>=Math.min(x,e)&&O<=l?O:e};
eOk.prototype.axis=function(O){O=this.direction(O);return O==="up"||O==="down"?"Y":"X"};var d5=function(O,x,e){x=x===void 0?_.dH():x;this.target=O;this.manager=x;this.touchAction=e;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
d5.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(_.Kx(this.events)));for(var O=_.T(this.events),x=O.next();!x.done;x=O.next())this.listen(x.value)}};
d5.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Kx(this.events)));for(var O=_.T(this.events),x=O.next();!x.done;x=O.next())this.unlisten(x.value)}};
d5.prototype.listen=function(O){this.eventMap[O]&&this.target.addEventListener(O,this.eventMap[O])};
d5.prototype.unlisten=function(O){this.eventMap[O]&&this.target.removeEventListener(O,this.eventMap[O])};var nF=function(){eOk.apply(this,arguments)};
_.c(nF,eOk);nF.prototype.direction=function(O){var x=O.detail;O=x.deltaY;x=x.deltaX;return O&&!this.horizontal?O>0?"down":"up":x&&this.horizontal?x>0?"right":"left":"none"};
nF.prototype.distance=function(O){return Math.abs(this.delta(O))};
nF.prototype.delta=function(O){var x=this.direction(O),e=O.detail;O=e.deltaX;e=e.deltaY;return x==="up"||x==="down"?e||0:O||0};
nF.prototype.velocity=function(O){var x=this.direction(O),e=O.detail;O=e.velocityX;e=e.velocityY;return Math.abs(x==="up"||x==="down"?e||0:O||0)};_.uW=function(O,x,e,l,C,Q){C=C===void 0?new nF:C;Q=Q===void 0?_.dH():Q;d5.call(this,x,Q,l);var L=this;this.element=O;this.target=x;this.config=e;this.input=C;this.manager=Q;this.events=["panstart","panmove","panend"];this.onPanStart=function(){L.config.draggingClass&&L.element.classList.add(L.config.draggingClass);L.config.startAction&&L.config.startAction()};
this.onPanMove=function(k){var M=CLT(L,k);if(M){L.move(k,M);M.fade&&L.fade(k,M);var G=L.input.direction(k);M.moveAction&&M.moveAction(Quc(L,k,M),G)}};
this.onPanEnd=function(k){var M,G,X,y,Z,E;return _.A(function(P){if(P.nextAddress==1){L.animationRequestId&&cancelAnimationFrame(L.animationRequestId);L.animationRequestId=void 0;M=CLT(L,k);if(!M)return P.return();G=M;X=G.triggerAction;y=G.fade;Z=G.disableFinish;E=G.translateBack;var U=L.input.velocity(k),W=L.input.distance(k),z=L.threshold(M);return U>.3&&W>10||W>z?Z?P.jumpTo(6):y?P.yield(bQT(L,k),6):P.yield(TLh(L,k,M),6):E?P.yield(L.translateBack(k),3):P.jumpTo(3)}P.nextAddress!=3&&X&&X();L.config.draggingClass&&
L.element.classList.remove(L.config.draggingClass);L.reset();_.Ra(P)})};
O=Object.keys(e.triggers);this.directions=new Set(O);lQa(this.input,this.directions.has("right")||this.directions.has("left"))};
_.c(_.uW,d5);_.uW.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var CLT=function(O,x){x=O.input.direction(x);return O.config.triggers[x]};
_.uW.prototype.move=function(O,x){var e=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var l=e.input.axis(O),C=e.input.position(O,e.config.startPosition,x.endPosition,x.moveRatio||1);e.element.style.transform="translate"+l+"("+C+"px)";e.animationRequestId=void 0}))};
var Quc=function(O,x,e){var l=e.moveRatio||1;e=Math.abs(O.config.startPosition-e.endPosition);return Math.min(O.input.distance(x)*l,e)/e};
_.uW.prototype.fade=function(O,x){var e=x.endOpacity;O=Quc(this,O,x);O>0&&(this.element.style.opacity=""+(((e||0)-1)*O+1))};
_.uW.prototype.threshold=function(O){return O.threshold?O.threshold:Math.abs(O.endPosition-this.config.startPosition)/3};
var TLh=function(O,x,e){var l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1)return l=O.input.delta(x)+O.config.startPosition,C=O.input.axis(x),Q=e,L=Q.endPosition,k=Q.transitionEndPosition,G=(M=k)!=null?M:L,X.yield(O.element.animate([{transform:"translate"+C+"("+l+"px)"},{transform:"translate"+C+"("+G+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);O.element.style.transform="translate"+C+"("+G+"px)";_.Ra(X)})};
_.uW.prototype.translateBack=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1){if(!x.element.style.transform)return C.return();e=x.input.axis(O);l=x.config.startPosition;return C.yield(x.element.animate([{transform:x.element.style.transform},{transform:"translate"+e+"("+l+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}x.element.style.transform="translate"+e+"("+l+"px)";_.Ra(C)})};
var bQT=function(O,x){var e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return e=O.input.delta(x)+O.config.startPosition,l=O.input.axis(x),C=e+70,Q=O.element.style.opacity===""?1:O.element.style.opacity,L.yield(O.element.animate([{transform:"translate"+l+"("+e+"px)",opacity:Q},{transform:"translate"+l+"("+C+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);O.element.style.transform="translate"+l+"("+C+"px)";O.element.style.opacity="0";_.Ra(L)})};var Y3=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;O.scrollRate=3;O.autoScrollAnimationStart=0;O.autoScrollPaused=!1;O.autoScrollRafId=0;return O};
_.c(Y3,_.MQ);_.b=Y3.prototype;_.b.created=function(){var O=this;this.boundAutoScrollHandler=function(x){O.autoScroll(x)}};
_.b.detached=function(){this.hostElement.removeEventListener("mouseout",_.Qa(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Qa(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Qa(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.b.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Qa(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Qa(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Qa(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Qa(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Qa(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Qa(this,this.endAutoScroll)),this.endAutoScroll())};
_.b.autoScroll=function(O){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=O);var x;if(x=!this.autoScrollPaused&&this.scrollTarget)x=this.scrollTarget,x=x.scrollHeight-x.scrollTop!==x.clientHeight;x&&(x=1E3/this.scrollRate,O-=this.autoScrollAnimationStart,O>x&&(this.scrollTarget.scrollTop+=Math.ceil(O/x),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.b.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.b.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Y3.prototype.autoScrollEnabledChanged=Y3.prototype.autoScrollEnabledChanged;_.B([_.R(),_.v("design:type",Object)],Y3.prototype,"scrollRate",void 0);_.B([_.R(),_.v("design:type",Object)],Y3.prototype,"scrollTarget",void 0);_.B([_.R(),_.v("design:type",Boolean)],Y3.prototype,"autoScrollEnabled",void 0);_.B([_.T1("autoScrollEnabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Y3.prototype,"autoScrollEnabledChanged",null);_.B([_.DC()],Y3);_.LYy=[Y3.prototype];var kXw;var Bc=function(){var O=_.a.apply(this,arguments)||this;O.buttonUpdate=_.t("web_button_rework");O.dismissButtonOverrides=_.t("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;O.forceDarkTheme=!1;O.forceLightTheme=!1;O.dynamicTextHeight=94;O.hasOverflowButton=!1;O.isInfeedModernization=!1;return O};
_.c(Bc,_.a);_.b=Bc.prototype;_.b.computeUrlImg=function(O){if(O)return _.jf(O.thumbnails)};
_.b.getLogoHeight=function(O){return this.logoWithPadding(O)?"31":"24"};
_.b.getLogoClassName=function(O){return this.logoWithPadding(O)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.b.logoWithPadding=function(O){var x,e;return(O=(x=O.thumbnails)==null?void 0:(e=x[0])==null?void 0:e.height)&&O%31===0?!0:!1};
_.b.sendImpressionEndpoints=function(O){O.impressionEndpoints&&_.N9(this.hostElement,O.impressionEndpoints)};
_.b.observeBasicPalette=function(){var O,x,e=(O=this.data)==null?void 0:(x=O.colorData)==null?void 0:x.basicColorPaletteData;e?_.Zl(this.hostElement,e):_.Zl(this.hostElement,{})};
_.b.observeDataChanged=function(){var O;this.dynamicTextHeight=((O=this.data)==null?0:O.supplementalText)?74:94;var x;this.hasSupplementalText=!((x=this.data)==null||!x.supplementalText);if(_.t("web_button_rework")){var e,l,C,Q;O=(e=this.data)==null?void 0:(l=e.actionButton)==null?void 0:(C=l.buttonRenderer)==null?void 0:(Q=C.colorData)==null?void 0:Q.basicColorPaletteData;var L,k,M;if(!((L=this.data)==null?0:(k=L.actionButton)==null?0:(M=k.buttonRenderer)==null?0:M.style)&&O){this.computeIsInfeedModernization(this.data)||
(O.borderColor=O.foregroundTitleColor);var G,X;this.set("data.actionButton.buttonRenderer",_.HX.unsafeClone((G=this.data)==null?void 0:(X=G.actionButton)==null?void 0:X.buttonRenderer))}}};
_.b.observeDataForCounterfactual=function(){if(_.t("kevlar_banner_cf_extra_logging")){var O;((O=this.data)==null?0:O.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.b.computeSupplementalStyle=function(){var O;if((O=this.data)!=null&&O.supplementalText){var x,e,l;if((x=this.data)==null?0:(e=x.colorData)==null?0:(l=e.basicColorPaletteData)==null?0:l.foregroundActivatedColor)return O=_.UA(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+O+"; --yt-endpoint-hover-color:"+O+"; --yt-endpoint-visited-color:"+O+"; --yt-formatted-string-bold-font-weight:700;"}};
_.b.computeForcedDarkTheme=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.actionButton)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.style,C,Q,L;O=aDE(((C=this.data)==null?void 0:(Q=C.colorData)==null?void 0:(L=Q.basicColorPaletteData)==null?void 0:L.backgroundColor)||0);return l&&O};
_.b.computeForcedLightTheme=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.actionButton)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.style,C,Q,L;O=!aDE(((C=this.data)==null?void 0:(Q=C.colorData)==null?void 0:(L=Q.basicColorPaletteData)==null?void 0:L.backgroundColor)||0);return l&&O};
_.b.computeHasOverflowButton=function(O){return!!O.overflowButton};
_.b.computeHasTitle=function(O){return!!O.title};
_.b.computeTitleMaxFontSize=function(O){return this.computeHasOverflowButton(O)?28:64};
_.b.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.b.computeIsInfeedModernization=function(){var O,x,e,l,C=(O=this.data)==null?void 0:(x=O.actionButton)==null?void 0:(e=x.buttonRenderer)==null?void 0:(l=e.colorData)==null?void 0:l.basicColorPaletteData;return(C==null?void 0:C.backgroundColor)===452984831||(C==null?void 0:C.backgroundColor)===218103808};
Bc.prototype.observeDataForCounterfactual=Bc.prototype.observeDataForCounterfactual;Bc.prototype.observeDataChanged=Bc.prototype.observeDataChanged;Bc.prototype.observeBasicPalette=Bc.prototype.observeBasicPalette;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],Bc.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],Bc.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Bc.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Bc.prototype,"buttonUpdate",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Bc.prototype,"hasSupplementalText",void 0);_.B([_.R(),_.v("design:type",Object)],Bc.prototype,"dismissButtonOverrides",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.v("design:type",Boolean)],Bc.prototype,"hasTitle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.v("design:type",Object)],Bc.prototype,"forceDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.v("design:type",Object)],Bc.prototype,"forceLightTheme",void 0);_.B([_.R(),_.v("design:type",Object)],Bc.prototype,"dynamicTextHeight",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.v("design:type",Object)],Bc.prototype,"hasOverflowButton",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.v("design:type",Object)],Bc.prototype,"isInfeedModernization",void 0);_.B([_.T1("data.colorData.basicColorPaletteData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bc.prototype,"observeBasicPalette",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bc.prototype,"observeDataChanged",null);_.B([_.T1("data.isVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bc.prototype,"observeDataForCounterfactual",null);_.B([_.H({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Bc);
_.n(Bc,"ytd-banner-promo-renderer",function(){if(kXw!==void 0)return kXw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kXw=O},{mode:1});var AeU;var MpS;var DhI;var GXE=function(){return _.a.apply(this,arguments)||this};
_.c(GXE,_.a);_.B([_.R(),_.v("design:type",Object)],GXE.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GXE.prototype,"ytRendererBehavior",void 0);_.B([_.H({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],GXE);
_.n(GXE,"ytd-hashtag-grid-tile-renderer",function(){if(DhI!==void 0)return DhI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return DhI=O},{mode:1});var vc=function(){return _.a.apply(this,arguments)||this};
_.c(vc,_.a);vc.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
vc.prototype.updateRichGridTrendingHashtagsVisibility=function(){var O,x;if(((O=this.data)==null||!O.isExpanded)&&(x=this.data)!=null&&x.tiles){O=this.data.tiles.length;x=O>this.richGridItemsPerRow?this.richGridItemsPerRow+1:O;var e=Math.ceil(O/x);this.fullyVisibleRows=O%x===1&&e===2?1:Math.min(e,2);this.isShowMoreVisible=this.fullyVisibleRows<e}};
vc.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
vc.prototype.updateRichGridTrendingHashtagsVisibility=vc.prototype.updateRichGridTrendingHashtagsVisibility;_.B([_.R(),_.v("design:type",Object)],vc.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Number)],vc.prototype,"fullyVisibleRows",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],vc.prototype,"isShowMoreVisible",void 0);_.B([_.R({selector:_.qc,value:0}),_.v("design:type",Number)],vc.prototype,"richGridItemsPerRow",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],vc.prototype,"ytdReduxBehavior",void 0);_.B([_.T1("data","richGridItemsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vc.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.B([_.H({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],vc);
_.n(vc,"ytd-hashtag-grid-shelf-renderer",function(){if(MpS!==void 0)return MpS;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return MpS=O},{mode:1});var FYS;var XTy;var fF=function(){var O=_.a.apply(this,arguments)||this;O.visibleVideos=[];O.hiddenVideos=[];O.modern=_.t("web_modern_buttons");O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(fF,_.a);_.b=fF.prototype;_.b.attached=function(){var O=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",O);this.onDarkModeToggledAction(O)};
_.b.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"}}}};
_.b.dataChanged=function(){var O=this;this.requestElementsPerRow();var x,e;this.currentColorPalette=this.isDarkTheme?(x=this.data)==null?void 0:x.darkColorData:(e=this.data)==null?void 0:e.lightColorData;var l;if((l=this.currentColorPalette)==null?0:l.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.A_(this,function(){O.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.b.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.b.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.b.computeIsFirstFeedItem=function(O){return O};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O);this.data&&(this.currentColorPalette=O?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.b.getCurrentLogo=function(O,x){if(O)return x?O.darkLogoImage:O.lightLogoImage};
_.b.computeTitleStyle=function(O){var x;if((x=this.data)!=null&&x.title&&O&&O.textPrimary!==void 0)return"color:"+_.UA(O.textPrimary)+";"};
_.b.computeSubtitleStyle=function(O){var x;if((x=this.data)!=null&&x.subtitle&&O&&O.textSecondary!==void 0)return"color:"+_.UA(O.textSecondary)+";"};
_.b.computeDismissIconStyle=function(O){if(this.data&&this.data.dismissButton&&O&&O.textPrimary!==void 0)return"--yt-button-color:"+_.UA(O.textPrimary)+";"};
_.b.computeOverflowButtonStyle=function(O){if(this.data&&this.data.overflowButton&&O&&O.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.UA(O.textPrimary)+";--yt-spec-icon-active-other:"+_.UA(O.textPrimary)+";"};
_.b.computeBackgroundStyle=function(O){if(O&&this.data){var x="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var e=_.jf((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);e&&(x+='background-image:url("'+e+'");')}O.backgroundColor!==void 0&&(x+="background-color:"+_.aF(O.backgroundColor)+";");return x}};
_.b.computeButton=function(){var O,x=Object.assign({},_.q((O=this.data)==null?void 0:O.showMoreButton,_.wf));if(this.modern&&x){x.style="STYLE_MONO_OUTLINE";var e;if(O=(e=this.currentColorPalette)==null?void 0:e.textPrimary)x.colorData={basicColorPaletteData:{foregroundTitleColor:O,borderColor:O}}}return x};
_.b.shouldShowBottomButton=function(O,x){return!(O==null?0:O.header)&&!(O==null||!O.primaryButton)&&x<3};
_.b.checkExpanded=function(O){this.isExpanded=O&&O.content?this.hiddenVideos.length===0:!0};
_.b.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.b.getLogoHeight=function(O){return this.logoWithPadding(O)?"26":"20"};
_.b.getLogoImageId=function(O){return this.logoWithPadding(O)?"logo-image-with-padding":"logo-image"};
_.b.computeHasSectionHeader=function(O){return!!O.header};
_.b.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var O;if((O=this.data.primaryButton)==null?0:O.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 x;((x=this.data.dismissButton)==null?0:x.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var e,l;((e=this.data)==null?0:(l=e.primaryButton)==null?0:l.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.b.setVisibleVideos=function(O){if(this.data&&this.data.content)if(this.data.content.length){var x=this.data.content.length;this.data.header?O?(this.visibleVideos=this.data.content.slice(0,Math.min(x,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.slimItemsPerRow),x)):(this.visibleVideos=this.data.content.slice(0,Math.min(x,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.elementsPerRow),x)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(x,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.elementsPerRow),x)):(this.visibleVideos=this.data.content.slice(0,Math.min(x,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.elementsPerRow-1),x))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.b.setHasMovieRenderer=function(){var O;if((O=this.data)!=null&&O.content){var x;this.hasMovieRenderer=!!_.q((x=this.data)==null?void 0:x.content[0],_.Xrz)}else this.hasMovieRenderer=!1};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
_.b.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var O=_.T(this.hiddenMediaRenderers),x=O.next();!x.done;x=O.next())x.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(O=_.$U(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&O.focus()}};
_.b.updateTitleSpec=function(){var O;(O=this.data)!=null&&O.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.b.logoWithPadding=function(O){var x,e,l;return(O=(x=this.getCurrentLogo(O,this.isDarkTheme))==null?void 0:(e=x.thumbnails)==null?void 0:(l=e[0])==null?void 0:l.height)&&O%31===0?!0:!1};
_.b.onUpdateElementsPerRowAction=function(O,x,e){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O);e&&this.slimItemsPerRow!==e&&(this.slimItemsPerRow=e)};
fF.prototype.slimItemsPerRowChanged=fF.prototype.slimItemsPerRowChanged;fF.prototype.elementsPerRowChanged=fF.prototype.elementsPerRowChanged;fF.prototype.dataChanged=fF.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],fF.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],fF.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],fF.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fF.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],fF.prototype,"currentColorPalette",void 0);_.B([_.R(),_.v("design:type",Array)],fF.prototype,"visibleVideos",void 0);_.B([_.R(),_.v("design:type",Array)],fF.prototype,"hiddenVideos",void 0);
_.B([_.R(),_.v("design:type",Object)],fF.prototype,"primaryButton",void 0);_.B([_.R({reflectToAttribute:!0,value:3}),_.v("design:type",Number)],fF.prototype,"elementsPerRow",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],fF.prototype,"isDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],fF.prototype,"isExpanded",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],fF.prototype,"largeTitle",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],fF.prototype,"hasMovieRenderer",void 0);_.B([_.R(),_.v("design:type",Number)],fF.prototype,"slimItemsPerRow",void 0);_.B([_.R(),_.v("design:type",Boolean)],fF.prototype,"showLightVideoMetadata",void 0);_.B([_.R(),_.v("design:type",Boolean)],fF.prototype,"showDarkVideoMetadata",void 0);_.B([_.R(),_.v("design:type",Number)],fF.prototype,"videoMetadataColor",void 0);
_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],fF.prototype,"miniMode",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.v("design:type",Boolean)],fF.prototype,"isFirstFeedItem",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.v("design:type",Boolean)],fF.prototype,"hasSectionHeader",void 0);
_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],fF.prototype,"roundedContainer",void 0);_.B([_.AY("#visible-video-container ytd-rich-grid-media"),_.v("design:type",Array)],fF.prototype,"visibleMediaRenderers",void 0);_.B([_.AY("#hidden-video-container ytd-rich-grid-media"),_.v("design:type",Array)],fF.prototype,"hiddenMediaRenderers",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],fF.prototype,"modern",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fF.prototype,"dataChanged",null);_.B([_.T1("elementsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fF.prototype,"elementsPerRowChanged",null);_.B([_.T1("slimItemsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fF.prototype,"slimItemsPerRowChanged",null);
_.B([_.H({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],fF);
_.n(fF,"ytd-brand-video-shelf-renderer",function(){if(XTy!==void 0)return XTy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XTy=O},{mode:1});var oLS;var Ju=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(Ju,_.a);_.b=Ju.prototype;_.b.attached=function(){var O=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",O);this.onDarkModeToggledAction(O)};
_.b.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"}}}};
_.b.dataChanged=function(){this.requestElementsPerRow();var O,x;this.currentColorPalette=this.isDarkTheme?(O=this.data)==null?void 0:O.darkColorData:(x=this.data)==null?void 0:x.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.b.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.b.computeIsFirstFeedItem=function(O){return O};
_.b.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O);this.data&&(this.currentColorPalette=O?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(O),this.updateButtonPalette())};
_.b.shouldShowThumbnailInMetadata=function(O){return O<=1};
_.b.computeVideoMetadataColor=function(){if(this.data){var O;if((O=this.currentColorPalette)==null?0:O.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.b.computeTitleStyle=function(O){var x;if((x=this.data)!=null&&x.title&&O&&O.textPrimary!==void 0)return"color:"+_.UA(O.textPrimary)+";"};
_.b.computeSubtitleStyle=function(O){var x;if((x=this.data)!=null&&x.subtitle&&O&&O.textSecondary!==void 0)return"color:"+_.UA(O.textSecondary)+";"};
_.b.computeOverflowButtonStyle=function(O){if(this.data&&this.data.overflowButton&&O.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.UA(O.textPrimary)+";--yt-spec-icon-active-other:"+_.UA(O.textPrimary)+";"};
_.b.computeBackgroundStyle=function(O){if(O&&this.data){var x="";O.backgroundColor!==void 0&&(x+="background-color:"+_.aF(O.backgroundColor)+";");return x}};
_.b.computeHasOverflowButton=function(O){return!!O.overflowButton};
_.b.updateButtonPalette=function(){if(this.data){var O;if((O=this.data.primaryButton)==null?0:O.buttonRenderer){var x;if((x=this.currentColorPalette)==null?0:x.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var e;((e=this.currentColorPalette)==null?0:e.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)})}}};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
_.b.updateTitleSpec=function(){var O;(O=this.data)!=null&&O.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")};
_.b.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O)};
Ju.prototype.elementsPerRowChanged=Ju.prototype.elementsPerRowChanged;Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],Ju.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Ju.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Ju.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ju.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Ju.prototype,"currentColorPalette",void 0);_.B([_.R(),_.v("design:type",Object)],Ju.prototype,"primaryButton",void 0);
_.B([_.R({reflectToAttribute:!0,value:3}),_.v("design:type",Number)],Ju.prototype,"elementsPerRow",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],Ju.prototype,"isDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],Ju.prototype,"titleSize",void 0);_.B([_.R(),_.v("design:type",Number)],Ju.prototype,"videoMetadataColor",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],Ju.prototype,"miniMode",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.v("design:type",Boolean)],Ju.prototype,"isFirstFeedItem",void 0);_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],Ju.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.v("design:type",Boolean)],Ju.prototype,"hasOverflowButton",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ju.prototype,"dataChanged",null);_.B([_.T1("elementsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ju.prototype,"elementsPerRowChanged",null);_.B([_.H({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Ju);
_.n(Ju,"ytd-brand-video-singleton-renderer",function(){if(oLS!==void 0)return oLS;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return oLS=O},{mode:_.gq("kevlar_poly_si_batch_j070")?1:2});var ye7;var ZQU=_.K(function(O){var x=O.data;return _.D(_.n_,{data:function(){return x().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(x().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var e=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":e=88;break a;default:e=88}return e},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return x().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"um"),tpH=_.K(function(O){var x=O.metadataRow;
var e=O.delimiter;return _.D(_.HE,{each:function(){return x().textParts||[]},
keyBy:"INDEX"},function(l,C){return _.D(_.Xm,null,_.D(_.TT,{text:l,noWrap:!0,userInput:!0}),_.D(ELa,{delimiter:e,max:function(){return x().textParts.length},
index:C}))})},"vm"),ELa=_.K(function(O){var x=O.delimiter;
var e=O.max;var l=O.index;return _.D(_.F,{cond:function(){return(x==null?void 0:x())&&e()-1>l()},
then:function(){return _.D("span",null,x)}})},"wm"),q4k=_.K(function(O){var x=O.data;
O={};return _.D("yt-profile-page-header-information-view-model",{class:_.xz("profilePageHeaderInformationViewModelHost",(O.profilePageHeaderInformationViewModelMobile=!1,O))},_.D(_.F,{cond:function(){return x().onTap},
then:function(){return _.D(_.Pt,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.p_(x().onTap)}},_.D(_.MR,{data:function(){return x().thumbnail}},{profilePageHeaderThumbnailViewModel:ZQU}))},
else:function(){return _.D("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.D(_.MR,{data:function(){return x().thumbnail}},{profilePageHeaderThumbnailViewModel:ZQU}))}}),_.D("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.D(_.F,{cond:function(){return x().onTap},
then:function(){return _.D(_.MR,{data:function(){return x().title}},{profilePageHeaderTitleViewModel:function(e){var l=e.data;
return _.D(_.Pt,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.p_(l().onTap)}},_.D(_.TT,{text:function(){return l().title}}))}})},
else:function(){return _.D(_.MR,{data:function(){return x().title}},{profilePageHeaderTitleViewModel:function(e){var l=e.data;
return _.D(_.TT,{text:function(){return l().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.D(_.MR,{data:function(){return x().metadata}},{profilePageHeaderMetadataViewModel:function(e){var l=e.data;
return _.D(_.F,{cond:function(){return l().metadataRows},
then:function(C){return _.D("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.D(_.HE,{each:C,keyBy:"INDEX"},function(Q,L){return _.D(_.Xm,null,_.D(tpH,{metadataRow:Q,delimiter:" \u2022 "}),_.D(ELa,{delimiter:" \u2022 ",max:function(){return C().length},
index:L}))}))}})}})))},"xm");
q4k.idomCompat=!0;_.wP(q4k,"yt-profile-page-header-information-view-model",{props:{data:_.Ld}});var w5=function(){return _.a.apply(this,arguments)||this};
_.c(w5,_.a);w5.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],w5.prototype,"data",void 0);_.B([_.H({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],w5);
_.n(w5,"ytd-effect-pivot-header-view-model",function(){if(ye7!==void 0)return ye7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ye7=
O},{mode:1});var PLk;var S8=function(){return _.a.apply(this,arguments)||this};
_.c(S8,_.a);S8.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],S8.prototype,"data",void 0);_.B([_.H({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],S8);
_.n(S8,"ytd-source-pivot-header-renderer",function(){if(PLk!==void 0)return PLk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return PLk=O},{mode:1});_.wP(_.Uce,"yt-card-view-model",{props:{data:_.Ld,className:_.Ld,isSelected:_.Ld}});var BNH=_.JhL.talkToRecsStateSelector;_.wP(_.K(function(O){var x=function(){return _.q(O.data().flowRoot,$kH)};
_.YK(function(){var e=x(),l=function(){},C=function(){};
if(e){var Q,L,k,M=((k=_.q((Q=x())==null?void 0:(L=Q.steps)==null?void 0:L[0],_.Wj))==null?void 0:k.stepId)||"";ndz(e,M);l=YTE(e);C=vdH(e)}_.YO(function(){var G=x();G&&_.u9().dispatch(_.Dc("flowStateEntity",G.flowStateEntityKey));l();l=function(){};
C();C=function(){};
_.ns(_.hoX())})});
return _.D("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.D(_.I4,{contentId:function(){return O.data().contentId}},function(){return _.D("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.D(_.F,{cond:x,
then:function(e){return _.D(_.$cL,{data:e})}}))}))},"ym"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Ld}});_.wP(_.K(function(){return _.D("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.D("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.D("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.D(_.$w$,null)),_.D(_.JFd,{data:{rows:1},isExploreHub:!0}))},"zm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.wP(_.K(function(O){var x=O.data;var e=O.standardUnitMinWidth;O=_.T((0,_.Nm2)(x));var l=O.next().value,C=O.next().value,Q=function(){var k,M=(k=l())==null?void 0:k.contents;return M==null||M.length===0},L=function(){C(Object.assign({},l(),{contents:[]}))};
return _.D("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Y0(_.F6({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var k=_.q(x().chipsShelf,i2a);if(k!=null&&k!=null&&k.autoselectChipOnVisible){var M,G,X=_.q(k==null?void 0:(M=k.contents)==null?void 0:M[(G=k.autoselectedChipIndex)!=null?G:0],_.$o);X&&X.tapCommand&&_.me(X.tapCommand)}}}))},_.D(_.I4,{contentId:function(){return x().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.D("div",null,_.D("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.D(_.MR,{data:function(){return x().header}},{sectionHeaderViewModel:function(k){return _.D(_.ak,{data:k.data,
disableHorizontalPadding:!0})}})),_.D("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.D(_.MR,{data:function(){return x().chipsShelf}},{chipsShelfViewModel:function(k){return _.D(_.Ot,{data:k.data,
callback:L,selectionBehavior:1})}})),_.D("div",null,_.D(_.F,{cond:Q,
then:function(){return _.D("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.D(_.JFd,{data:{rows:1},isExploreHub:!0}))}}),_.D(_.MR,{data:function(){var k;
return(k=l())==null?void 0:k.contents}},{richShelfRenderer:function(k){return _.D(_.eEk,{data:k.data,
isInnerShelf:!0,standardUnitMinWidth:e})}})))}))},"Am"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Ld,
standardUnitMinWidth:_.Ld}});var j8=function(){return _.a.apply(this,arguments)||this};
_.c(j8,_.a);
j8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
j8.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.B([_.V(_.$5),_.v("design:type",Object)],j8.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],j8.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],j8.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Number)],j8.prototype,"standardUnitMinWidth",void 0);_.B([_.H({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],j8);
_.n(j8,"ytd-rich-section-renderer",function(){if(FYS!==void 0)return FYS;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return FYS=O},{mode:_.gq("kevlar_poly_si_batch_j029")?
1:2});_.wP(_.LRL,"yt-profile-identity-info-view-model",{props:{data:_.Ld,hideDivider:_.Ld,isChannelInfoCard:_.Ld}});_.wP(_.x$T,"yt-page-header-view-model",{props:{data:_.Ld,noPadding:_.Ld,enableBanner:_.Ld,cinematicContainerTopbarOffset:_.Ld,allowCinematicContainerOverflow:_.Ld,displayAsSidebar:_.Ld,displayAsPanel:_.Ld,alwaysUseMediumTextDescription:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=function(){var C;return(C=x().numColumns)!=null?C:2},l=function(){return e()>1?3:2};
O={};return _.D("ytd-rich-grid-group",{class:_.xz("ytdRichGridGroupHost",(O.ytdRichGridGroupHostFirstColumn=function(){return x().colIndex===0},O)),
style:_.T7({"--ytd-rich-grid-group-num-columns":e,"--ytd-rich-grid-items-per-group":l})},_.D("div",{class:"ytdRichGridGroupContents"},_.D(_.MR,{data:function(){var C;return(C=x().contents)==null?void 0:C.slice(0,l())}},{richItemRenderer:function(C){return _.D(_.OqF,{data:C.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Bm"),"ytd-rich-grid-group",{props:{data:_.Ld}});var N6=function(){var O=_.a.apply(this,arguments)||this;O.resizeOnObserverInit=!1;O.isInlinePreviewDisabled=_.t("web_disable_inline_preview");O.disableStickyFilterBar=!1;O.transparentBackgroundChipsBar=!1;O.hideChipsBar=!1;O.isWatchDefaultLayout=!0;O.continuationShowButton=!1;O.rowReducedHorizontalMargin=!1;O.useCompactList=!1;O.manualDownloadsPresent=!1;O.smartDownloadsPresent=!1;O.isOnline=!1;O.shouldRenderDownloadsBanner=!1;O.shouldRenderDownloadsBannerUpsell=!1;O.hasOptedIntoSmartDownloads=!1;
O.elementsPerRow=4;O.typographyBump=!1;O.slimItemsPerRow=1;O.pageLoadingFromNavigation=!1;O.resizeObserver=null;O.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"};O.rendererToTagNameMap=new Map(Object.entries(O.contentMapping()).map(function(x){var e=
_.T(x);x=e.next().value;e=e.next().value;return[x,e.component]}));
O.insertedContent=new Map;return O};
_.c(N6,_.a);_.b=N6.prototype;_.b.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var O=_.T(_.$U(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),x=O.next();!x.done;x=O.next())x.value.useCompactList=this.useCompactList};
_.b.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var O=_.T(_.$U(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),x=O.next();!x.done;x=O.next())x=x.value,x.sizing=this.sizing,x.typographyBump=this.typographyBump};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.b.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]]"}}}};
_.b.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}}};
_.b.attached=function(){document.addEventListener("yt-page-type-changed",_.Qa(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22142_throttledOnResize=new _.QI(this.resizeObserved,_.yF("rich_grid_resize_delay_ms",50),this)};
_.b.detached=function(){var O;(O=this.resizeObserver)==null||O.disconnect();document.removeEventListener("yt-page-type-changed",_.Qa(this,this.onPageChange))};
_.b.insertRichSection=function(O){var x=O.richItemTargetId;O=O.richSectionRendererToInsert;x&&O&&(this.insertedContent.set(x,{content:O,timestamp:Date.now()}),this.reflowContent())};
_.b.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.b.computeIsInlinePreviewEnabled=function(O,x,e){return _.t("web_disable_inline_preview")?!1:!e&&_.Ph$({miniplayerIsActive:O,miniplayerPlaybackState:x})};
_.b.computeSizing=function(){var O=_.zdw(this.data);if(O||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return O?this.useCompactList?"COMPACT":O:this.miniMode?"COMPACT":"STANDARD"};
_.b.updateItemMinAndMaxWidth=function(){var O=_.yF("rich_grid_max_item_width",500);O>0&&_.lH(this.hostElement,{"--ytd-rich-grid-item-max-width":O+"px"});var x;O=this.getRichItemMinWidth((x=this.hostElement)==null?void 0:x.clientWidth);O>0&&_.lH(this.hostElement,{"--ytd-rich-grid-item-min-width":O+"px"})};
_.b.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.b.resizeObserved=function(){_.jh(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.b.onPageChange=function(){var O=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.jh(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.vn.addJob(function(){O.pageLoadingFromNavigation=!1;O.setMasthead();O.maybeSetBigYoodle();O.forceRefreshAndLog();O.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.b.dataChanged=function(){var O=this;_.jh(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.A_(this,function(){O.updateRichItemGridPositions();O.contentsElement&&_.lH(O.hostElement,{"--ytd-rich-grid-content-offset-top":O.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.b.initResizeObserver=function(){var O=this;if(window.ResizeObserver){var x;(x=this.resizeObserver)==null||x.disconnect();var e=!1;this.resizeObserver=new ResizeObserver(function(){if(e){var l;(l=O.resizeObserver)==null||l.disconnect();var C;(C=O.JSC$22142_throttledOnResize)==null||C.fire();requestAnimationFrame(function(){var L;(L=O.JSC$22142_throttledOnResize)==null||L.fire();O.initResizeObserver()})}else if(e=!0,O.resizeOnObserverInit){var Q;
(Q=O.JSC$22142_throttledOnResize)==null||Q.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.b.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.jh(this.hostElement,"ytd-rich-item-index-update-action")};
_.b.updateElementsPerRow=function(){_.jh(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.j6({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.j6({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.b.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.b.onRichShelfRendererCollapse=function(O){if(this.shownItems){var x=O.detail;O=this.shownItems.findIndex(function(l){var C,Q;return((Q=_.q(l==null?void 0:(C=l.richSectionRenderer)==null?void 0:C.content,_.L_k))==null?void 0:Q.trackingParams)===x});
var e=O+1;O<0||e>=this.contentsElement.children.length||!this.shownItems[e].richItemRenderer||this.contentsElement.children[e].scrollIntoView({behavior:"smooth",block:"start"})}};
_.b.onSoftReloadPage=function(){this.scrollUpToTop()};
_.b.handleRerenderDownloadsData=function(){_.t("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.b.handlePlaylistRemoveVideosAction=function(O){var x;if(((x=_.q(O,_.VP$))==null?0:x.setVideoIds)&&this.data&&this.data.contents){O=_.q(O,_.VP$).setVideoIds;for(x=this.data.contents.length-1;x>=0;){var e=_.q(this.data.contents[x],_.sl);(e=e&&_.q(e.content,_.JE))&&e.setVideoId&&O.includes(e.setVideoId)&&this.splice("data.contents",x,1);x--}this.updateIndices()}};
_.b.updateIndices=function(){if(this.data&&this.data.contents)for(var O=0;O<this.data.contents.length;O++)this.set("data.contents."+O+".richItemRenderer.index",_.KA(String(O+1)))};
_.b.hasTopRowInlinePlayableVideoWithEndorsement=function(O){var x;return!((x=O.slice(0,this.getItemsPerRow()))==null||!x.some(function(e){var l;e=_.q(e==null?void 0:(l=e.richItemRenderer)==null?void 0:l.content,_.jm);var C;return(e==null?void 0:e.inlinePlaybackEndpoint)&&(e==null?void 0:(C=e.thumbnailOverlays)==null?void 0:C.some(function(Q){return Q.thumbnailOverlayEndorsementRenderer}))}))};
_.b.refreshGridLayoutNew=function(O,x,e,l){var C=l.postsPerRow;var Q=l.slimItemsPerRow;var L=l.gameCardsPerRow;l=l.miniGameCardsPerRow;var k;if((k=this.data)==null||!k.contents||!this.containerWidth)return!1;var M;if((M=this.data.responsiveContainerConfiguration)==null?0:M.responsiveSize){var G=_.DEr(this.data.responsiveContainerConfiguration,this.containerWidth),X;k=_.Rt(Object.assign({},G,{standardUnitMinWidth:(X=this.data)==null?void 0:X.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&G.isCompactList)}else k=_.Rt({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(G=this.data)==null?void 0:G.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=k.typographyBump;X=!1;if(O||this.elementsPerRow!==k.numItems||this.postsPerRow!==C||this.slimItemsPerRow!==Q||this.gameCardsPerRow!==
L||this.miniGameCardsPerRow!==l||this.gutter!==k.gutter)X=this.elementsPerRow!==k.numItems,this.elementsPerRow=k.numItems,this.postsPerRow=C,this.slimItemsPerRow=Q,this.gameCardsPerRow=L,this.miniGameCardsPerRow=l,this.gutter=k.gutter,this.itemWidth=k.itemWidth,this.reflowContent(x),_.lH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":k.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(e);this.ytdReduxBehavior.dispatch(_.j6({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:k.maxContainerWidth}));return X};
_.b.refreshGridLayout=function(O,x){var e,l=(e=this.hostElement)==null?void 0:e.clientWidth;this.containerWidth=this.adjustRichGridWidth(l,!0);var C;if((C=this.data)==null||!C.contents||!this.containerWidth)return O&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(O=!0,this.pendingForceReflow=!1);e=this.getRichItemMinWidth(l);var Q=this.isShortsPanel?146:194,L=this.getMiniGameCardMinWidth(),k=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;l=e=this.calcElementsPerRow(e,
k);(C=e<=3&&this.miniModeAllowed())&&(e=this.calcElementsPerRow(240,4));var M=this.calcMaxSlimElementsPerRow(e,k,this.isDefaultGrid);k=this.calcElementsPerRow(Q,M);var G=this.calcElementsPerRow(this.isCompactGrid?Q:154,M);Q=this.calcElementsPerRow(this.isCompactGrid?Q:L,M);L=!1;if(this.sizing)return this.refreshGridLayoutNew(O,x,C,{postsPerRow:l,slimItemsPerRow:k,gameCardsPerRow:G,miniGameCardsPerRow:Q});if(O||this.elementsPerRow!==e||this.postsPerRow!==l||this.slimItemsPerRow!==k||this.gameCardsPerRow!==
G||this.miniGameCardsPerRow!==Q)L=this.elementsPerRow!==e,this.elementsPerRow=e,this.postsPerRow=l,this.slimItemsPerRow=k,this.gameCardsPerRow=G,this.miniGameCardsPerRow=Q,this.reflowContent(x),this.updateElementsPerRow(),_.lH(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)&&_.lH(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(C);_.jh(this.hostElement,"yt-rich-grid-layout-refreshed");return L};
_.b.getRichItemMinWidth=function(O){var x=_.yF("rich_grid_min_item_width",310);if(!_.t("kevlar_disable_min_width_override")){var e,l;x=(l=(e=this.data)==null?void 0:e.minItemWidth)!=null?l:x}return x+_.Rdr(O)};
_.b.calcMaxSlimElementsPerRow=function(O,x,e){return(e===void 0?0:e)?O===1?2:O%2===0?O/2*3:O+2:x*2};
_.b.adjustRichGridWidth=function(O,x){var e=_.t("disable_rich_grid_guide_compensation");if(!this.isWatch&&!e){e=_.GG().resolve(_.D0(_.Cj));var l=e==null?void 0:e.guideElement;if(!(!e||e.getData()||l!=null&&l.opened||e.getMiniGuideVisible()))if(e.canFitPersistentGuide(O)&&e.getGuideExpandsAutomatically()){var C,Q,L=Number((C=window.getComputedStyle(this.hostElement))==null?void 0:(Q=C.getPropertyValue("--app-drawer-width"))==null?void 0:Q.replace("px",""));O-=L||0}else if(e.canFitMiniGuide(O)){var k;
C=Number((L=window.getComputedStyle(this.hostElement))==null?void 0:(k=L.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:k.replace("px",""));O-=C||0}}O>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(O-=x?32:48));return O};
_.b.calcElementsPerRow=function(O,x){var e=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),l=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((e+l)/(O+l))||1,x)};
_.b.reflowContent=function(O){var x=this;if(!this.isReflowing){this.isReflowing=!0;var e,l,C=!!((e=this.data)==null?0:(l=e.contents)==null?0:l.some(function(k){return _.q(k,_.dj)}));
e=this.getItemsPerRow();var Q;l=(Q=this.data)==null?void 0:Q.reflowOptions;O&&(_.IR("rgr_s"),_.A_(this,function(){_.IR("rgr_nrf")}));
O={};(Q=_.$U(this.hostElement).querySelector("#contents"))&&(O={contentElement:Q,rendererToTagNameMap:this.rendererToTagNameMap});Q=(Q=this.data.contents)?Q.slice():[];C=hLw(Q,e,C,l,this.getRichGridStyle(),O,this.insertedContent);var L=C.orderedContent;if(C=C.pinnedContentNotShownTargetIds)for(C=_.T(C),e=C.next();!e.done;e=C.next())this.insertedContent.delete(e.value);C=function(){x.shownItems=L;x.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(L),_.A_(this,C)):C()}};
_.b.getFirstRowItems=function(O){for(var x=[],e=0;e<O.length;e++){var l=void 0,C=void 0,Q=void 0,L=void 0,k=void 0,M=void 0;if(((l=O[e])==null?void 0:(C=l.richItemRenderer)==null?void 0:C.rowIndex)===0||((Q=O[e])==null?void 0:(L=Q.richGroupRenderer)==null?void 0:L.rowIndex)===0||((k=O[e])==null?void 0:(M=k.richSectionRenderer)==null?void 0:M.rowIndex)===0)x.push(O[e]);else break}return x};
_.b.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.b.resetInsertedContentIfNeeded=function(){(_.t("web_explore_hub_on_hover")||_.t("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.b.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.b.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()};
_.b.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.b.terminateVideoPreview=function(){_.jh(this.hostElement,"yt-terminate-video-preview-action")};
_.b.updateRichItemGridPositions=function(){var O={gridData:{gridColumnCount:this.elementsPerRow}},x;((x=this.data)==null?0:x.trackingParams)&&(x=_.Pq())&&_.nZ(x,_.Fv(this.data.trackingParams),O);_.jh(this.hostElement,"ytd-rich-item-index-update-action")};
_.b.miniModeAllowed=function(){return this.isChannelPage};
_.b.getMiniGameCardMinWidth=function(){return 154};
_.b.updateMiniMode=function(O){this.miniMode=this.miniModeAllowed()&&O;this.ytdReduxBehavior.dispatch(_.j6({type:"SET_RICH_GRID_MINI_MODE",payload:O}))};
_.b.isCurrentPage=function(){return location.pathname===this.pagePath};
_.b.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var O=_.GG().resolve(_.Be).getCurrentPage();O&&O.setScrollTop(0)}};
_.b.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.b.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.b.maybeSetBigYoodle=function(){var O,x=(O=this.data)==null?void 0:O.bigYoodle;this.bigYoodleData!==x&&(this.bigYoodleData=x)};
_.b.setMasthead=function(){var O;((O=this.data)==null?0:O.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.b.getRichGridStyle=function(){var O,x;return(x=(O=this.data)==null?void 0:O.style)!=null?x:"RICH_GRID_STYLE_UNKNOWN"};
_.b.onIsShortsGridChange=function(){var O=this.ytdReduxBehavior,x=O.dispatch,e=this.getRichGridStyle();x.call(O,_.j6({type:"SET_RICH_GRID_STYLE",payload:e}))};
_.Dy.Object.defineProperties(N6.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var O=_.GG().resolve(_.Be).getCurrentPage(),x,e,l;return(((x=this.data)==null?void 0:x.targetId)==="browse-feedFEsfv_audio_pivot"||_.t("web_enable_channel_pivot_panel")&&((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_channel_pivot"||_.t("web_enable_effect_pivot_panel")&&((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_effect_pivot")&&(O==null?void 0:O.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.t("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 O;return!((O=this.data)==null?0:O.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var O;return((O=_.GG().resolve(_.Be).getCurrentPage())==null?void 0:O.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var O;return((O=_.GG().resolve(_.Be).getCurrentPage())==null?void 0:O.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 O;return(((O=this.data)==null?void 0:O.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?0:O.enableContentSpecificAspectRatio)||((x=this.data)==null?0:(e=x.responsiveContainerConfiguration)==null?0:e.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.yF("web_continuation_handler_margin",0):0}}});
N6.prototype.onIsShortsGridChange=N6.prototype.onIsShortsGridChange;N6.prototype.onReloadContinuationFinish=N6.prototype.onReloadContinuationFinish;N6.prototype.reflowContent=N6.prototype.reflowContent;N6.prototype.handleRerenderDownloadsData=N6.prototype.handleRerenderDownloadsData;N6.prototype.onRichShelfRendererCollapse=N6.prototype.onRichShelfRendererCollapse;N6.prototype.onRequestElementsPerRow=N6.prototype.onRequestElementsPerRow;N6.prototype.contentLengthChanged=N6.prototype.contentLengthChanged;
N6.prototype.dataChanged=N6.prototype.dataChanged;N6.prototype.onSizingChange=N6.prototype.onSizingChange;N6.prototype.onUseCompactListChange=N6.prototype.onUseCompactListChange;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],N6.prototype,"ironResizableBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],N6.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],N6.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],N6.prototype,"componentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],N6.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],N6.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],N6.prototype,"miniMode",void 0);_.B([_.R({value:[]}),_.v("design:type",Array)],N6.prototype,"shownItems",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],N6.prototype,"isReflowing",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],N6.prototype,"isFilteredFeed",void 0);_.B([_.R({selector:_.RVL}),_.v("design:type",Boolean)],N6.prototype,"guideIsExpanded",void 0);
_.B([_.R({selectorArgs:["entitySelectorType"],selector:function(O,x){if(_.t("kevlar_modern_downloads_page")&&x&&x!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(x){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":x=O.entities;var e=_.yy(x),l=_.ZS(x),C=_.Jcr(O),Q=_.fXW(O),L=_.wtr(O),k=_.ycW(x),M=_.Mc(e),G=_.EQ(x);return _.Qrr(e,l,k,_.qJW(x),C,Q,M,G,L,_.jVn(O),_.Ix(O));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return O=_.yy(O.entities),_.Tm7(O);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return O=
_.FPi(O.entities),_.Lms(O);default:_.ft(new _.ry("Error: entitySelectorType defined but not matched in selector.",O,x))}}}),
_.v("design:type",Object)],N6.prototype,"entityDrivenRichGridData",void 0);_.B([_.R(),_.v("design:type",Object)],N6.prototype,"resizeOnObserverInit",void 0);_.B([_.R(),_.v("design:type",Object)],N6.prototype,"bigYoodleData",void 0);_.B([_.R(),_.v("design:type",Object)],N6.prototype,"mastheadData",void 0);_.B([_.R(),_.v("design:type",Boolean)],N6.prototype,"isInlinePreviewDisabled",void 0);_.B([_.R(),_.v("design:type",Object)],N6.prototype,"disableStickyFilterBar",void 0);
_.B([_.R(),_.v("design:type",Object)],N6.prototype,"transparentBackgroundChipsBar",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],N6.prototype,"hideChipsBar",void 0);_.B([_.R(),_.v("design:type",Object)],N6.prototype,"isWatchDefaultLayout",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],N6.prototype,"continuationShowButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],N6.prototype,"rowReducedHorizontalMargin",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],N6.prototype,"useCompactList",void 0);_.B([_.R({selector:function(O){return _.ZS(O.entities).length>0}}),
_.v("design:type",Object)],N6.prototype,"manualDownloadsPresent",void 0);_.B([_.R({selector:function(O){return _.yy(O.entities).length>0}}),
_.v("design:type",Object)],N6.prototype,"smartDownloadsPresent",void 0);_.B([_.R({selector:_.Ix}),_.v("design:type",Object)],N6.prototype,"isOnline",void 0);_.B([_.R({selector:_.fXW}),_.v("design:type",Object)],N6.prototype,"shouldRenderDownloadsBanner",void 0);_.B([_.R({selector:_.jVn}),_.v("design:type",Object)],N6.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.B([_.R({selector:_.Jcr}),_.v("design:type",Object)],N6.prototype,"hasOptedIntoSmartDownloads",void 0);
_.B([_.T1("useCompactList"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"onUseCompactListChange",null);_.B([_.T1("sizing","typographyBump"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"onSizingChange",null);_.B([_.R({selector:_.hVm}),_.v("design:type",Number)],N6.prototype,"miniplayerPlaybackState",void 0);_.B([_.R({selector:_.P1}),_.v("design:type",Boolean)],N6.prototype,"miniplayerIsActive",void 0);
_.B([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.v("design:type",Boolean)],N6.prototype,"isInlinePreviewEnabled",void 0);_.B([_.R({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.v("design:type",String)],N6.prototype,"sizing",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],N6.prototype,"elementsPerRow",void 0);
_.B([_.R(),_.v("design:type",Object)],N6.prototype,"typographyBump",void 0);_.B([_.R(),_.v("design:type",Number)],N6.prototype,"itemWidth",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],N6.prototype,"headerElement",void 0);_.B([_.kX("#contents"),_.v("design:type",HTMLElement)],N6.prototype,"contentsElement",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"dataChanged",null);
_.B([_.G1("data.contents.length"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"contentLengthChanged",null);_.B([_.bH("yt-request-elements-per-row"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"onRequestElementsPerRow",null);
_.B([_.bH("yt-rich-shelf-renderer-collapse"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],N6.prototype,"onRichShelfRendererCollapse",null);_.B([_.G1("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"handleRerenderDownloadsData",null);
_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],N6.prototype,"entitySelectorType",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.targetId"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isSub",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.targetId"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isWatch",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data.targetId"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isShortsPanel",null);_.B([_.R({reflectToAttribute:!0}),_.p("isWatch"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"reducedTopMargin",null);_.B([_.R({reflectToAttribute:!0}),_.p("data","isWatch","isWatchDefaultLayout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"noTopMargin",null);
_.B([_.R({reflectToAttribute:!0}),_.p("isInlinePreviewEnabled","shownItems"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"topRowEndorsement",null);_.B([_.p("data.header"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"hideHeader",null);_.B([_.bH("yt-rich-grid-reflow"),_.v("design:type",Function),_.v("design:paramtypes",[Boolean]),_.v("design:returntype")],N6.prototype,"reflowContent",null);
_.B([_.bH("yt-reload-continuation-finish"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"onReloadContinuationFinish",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isSlimGrid",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isShortsGrid",null);
_.B([_.p("data","isSlimGrid","isShortsGrid"),_.R(),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"noRichItemGutterMargins",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isShortsGridSlim",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isCompactGrid",null);
_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"isDefaultGrid",null);_.B([_.p("data.targetId"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"hideChipsBarOnWatch",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],N6.prototype,"onIsShortsGridChange",null);
_.B([_.p("data.enableContentSpecificAspectRatio"),_.R(),_.v("design:type",Boolean),_.v("design:paramtypes",[])],N6.prototype,"force16By9ThumbnailAspectRatio",null);_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],N6.prototype,"continuationTriggerOffset",null);_.B([_.H({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],N6);
_.n(N6,"ytd-rich-grid-renderer",function(){if(AeU!==void 0)return AeU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return AeU=O},{mode:2});var ceH=_.K(function(O){return _.D("yt-feedback-prompt-view-model",{class:_.xz("ytFeedbackPromptViewModelHost",O.className)},_.D(_.F,{cond:function(){return O.data().text},
then:function(x){return _.D(_.TT,{text:x})}}),_.D("div",{class:"ytFeedbackPromptViewModelButtons"},_.D(_.MR,{data:function(){return O.data().likeButton}},{likeButtonViewModel:_.iZ}),_.D(_.MR,{data:function(){return O.data().dislikeButton}},{dislikeButtonViewModel:_.$w})))},"Cm");var IQs=_.K(function(O){var x=O.thumbsUp,e=O.thumbsDown,l=O.rightAlignThumbs;O=_.T(_.Iw(!1,void 0,"OxPsH"));var C=O.next().value,Q=O.next().value;O=_.T(_.Iw(!1,void 0,"V5vWne"));var L=O.next().value,k=O.next().value;O={};return _.D("div",{class:_.xz("ytwThumbsUpDownThumbs",(O.ytwThumbsUpDownRightAlign=function(){return l==null?void 0:l()},O))},_.D(_.Jc,{data:x,
onToggle:function(M){Q(M);L()&&k(!1)},
buttonShapeOverrides:function(){return{toggled:C()}}}),_.D(_.Jc,{data:e,
onToggle:function(M){k(M);C()&&Q(!1)},
buttonShapeOverrides:function(){return{toggled:L()}}}))},"Dm");
IQs.idomCompat=!0;var pTa=_.K(function(O){var x=function(){return O.data().pendingStateEntityKey||""},e=_.L5(_.fDh,x),l=function(){var k;
if(!(k=O.disabled())){var M;k=!((M=e())==null||!M.isPendingResponse)}return k},C=_.T(_.Iw(H2k(""),void 0,"YGalFd")),Q=C.next().value,L=C.next().value;
_.u8(function(){requestAnimationFrame(function(){var k=O.data().onShowAnimationMs||0;k=k>0?H2k("--chip-animation-duration: "+k+"ms;"):H2k("");L(k)})});
return _.D("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:Q},_.D(_.HE,{each:function(){return O.data().chipData||[]},
keyBy:"REFERENCE"},function(k){return _.D(VpS,{data:k,disabled:l,pendingStateKey:x,onError:O.onError})}))},"Fm"),VpS=_.K(function(O){var x=_.bD("button"),e=_.T(_.Iw(!0,void 0,"hspx2d")),l=e.next().value,C=e.next().value,Q=function(){return O.data().text.content},L=function(){return O.data().transparentWhenLoading},k=_.Dl(_.at.currentPageSubTypeSelector),M=function(){if(_.t("enable_ai_companion")){var X=_.GG().resolve(_.D0(_.$qp));
switch(k()){case "watch":var y,Z;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(y=_.eR())==null?void 0:(Z=y.getVideoData())==null?void 0:Z.video_id};case "search":var E,P;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(E=X==null?void 0:_.jzw(X))!=null?E:[],entityId:(P=(new URLSearchParams(window.location.search)).get("search_query"))!=null?P:void 0};case "companion-canvas":var U;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(U=X==null?void 0:_.jzw(X))!=null?U:[]}}}},G=_.lk(function(X){var y,
Z,E,P,U,W,z,r;
return _.A(function(f){switch(f.nextAddress){case 1:X.stopPropagation();if(O.disabled())return f.return();Z=String(Math.floor(((y=_.eR())==null?void 0:y.getCurrentTime())||0)*1E3);E="youchat-"+Date.now();P=function(){_.Rl(O.data().onClick||{});var u={continuationCommand:{token:O.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},Y={inputComposerFormData:{clientMessageId:E,playerOffsetMs:Z,pageContext:M()}};return new Promise(function(J,O8){_.Rl(u,{form:{formData:Y},commandController:{onSuccess:function(Xr,
Fr){J(Fr)},
onServerError:function(Xr,Fr){O8(Fr.error)}}})})};
U=_.JJs(O.pendingStateKey());U(!0);_.V$c("#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");C(!1);_.tS(f,2);return f.yield(P(),4);case 4:_.lb(f,3);break;case 2:W=_.VP(f),(r=(z=O).onError)==null||r.call(z,W);case 3:U(!1),_.Ra(f)}})});
return _.D(_.F,{cond:l,then:function(){return _.D("div",{class:"ytwYouChatChipsDataChipWrapper"},_.D("button",{el:x,class:"ytwYouChatChipsDataChip","data-disabled":O.disabled,"data-transparent-loading":L,"on:click":G,tabindex:0},Q))}})},"Gm");var ROs=_.K(function(O){var x=O.data;var e=O.initiallyExpanded;var l=function(){var G;return(G=x().conversationResourceData)==null?void 0:G.learningGuideData};
O=_.T(_.bk(function(){var G;return(G=e==null?void 0:e())!=null?G:!1}));
var C=O.next().value,Q=O.next().value,L=function(){Q(!0)},k=_.aw(function(){var G,X;
return(X=(G=l())==null?void 0:G.sections)!=null?X:[]},void 0,"aPRmH"),M=_.aw(function(){return k().length>4},void 0,"PUPDyc");
O=_.aw(function(){var G;return!C()&&M()&&(G=l())!=null&&G.expandButton?k().slice(0,4):k()},void 0,"wUz4Ud");
return _.D("yt-conversation-resource-view-model",{class:_.xz("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.D(_.MR,{data:O},{expandableMetadataViewModel:_.pL$}),_.D(_.F,{cond:function(){return M()&&!C()},
then:function(){return _.D("div",{id:"showMoreButton"},_.D(_.MR,{data:function(){var G;return(G=l())==null?void 0:G.expandButton}},{buttonViewModel:function(G){return _.D(_.RV,{data:G.data,
onClick:L})}}))}}))},"Hm");var Uhc=_.K(function(O){var x=function(){var r;return(r=O.data().text)==null?void 0:r.content},e=function(){var r,f;
return(r=O.data().webData)==null?void 0:(f=r.textResult)==null?void 0:f.content},l=_.GG().resolve(_.K_),C=_.C5(),Q=function(){return O.data().chatResponseStyle},L=function(){return!O.data().transparentBackground},k=function(){return O.data().rightAlignThumbs},M=function(){return O.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||O.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},G=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:M()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:O.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},X=function(){var r;
return O.data().webData||((r=O.data().text)==null?void 0:r.content)||O.data().videoResultsData||O.data().conversationResourceViewModel||O.data().quiz||O.data().richContent},y=function(){return!!O.data().sectionHeader||X()},Z=function(){var r;
return(r=O.data().videoResultsData)==null?void 0:r.videoShelf},E=function(){var r;
return(r=O.data().webData)==null?void 0:r.sourcesShelf},P=function(){return Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:O.data().thumbsDownViewModel&&O.data().thumbsUpViewModel},U=function(){return _.q(O.data().thumbsUpViewModel,_.iN)},W=function(){return _.q(O.data().thumbsDownViewModel,_.iN)};
_.u8(function(){requestAnimationFrame(function(){var r;(r=O.shouldAnimateIcon)!=null&&r.call(O)&&wds(C.lottieEl)})});
var z={};return _.D("you-chat-item-view-model",{class:_.xz("ytwYouChatItemViewModelYouChatItemViewModel",(z.ytwYouChatItemViewModelColumnLayout=function(){return M()},z)),
"data-target-id":function(){return O.data().id||""}},_.D(_.F,{cond:function(){return O.data().removeIcon?!1:y()},
then:function(){var r={};return _.D("div",{"aria-hidden":"true"},_.D(_.hc,{className:_.xz("ytwYouChatItemViewModelIcon",(r.ytwYouChatItemViewModelRtl=l==="rtl",r.ytwYouChatItemViewModelHidden=function(){return!(O.data().hideIcon||Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:y())},r)),
animationName:"YOUCHAT_ICON",data:G,animationRef:C}))}}),_.D(_.F,{cond:y,
then:function(){var r={};return _.D("div",{class:_.xz("ytwYouChatItemViewModelHost",(r.ytwYouChatItemViewModelHostNoPadding=function(){return!!O.data().sectionHeader&&!X()},r.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},r.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},r.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return Q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
r.ytwYouChatItemViewModelGradientBackground=L,r)),
role:"alert"},_.D(_.F,{cond:x,then:function(f){return _.D(_.CK,{text:f,wrapCodeBlocks:!0})}}),_.D(_.MR,{data:function(){return O.data().sectionHeader}},{sectionHeaderViewModel:function(f){var u={};
return _.D(_.ak,{data:f.data,className:_.xz("ytwYouChatItemViewModelSectionHeader",(u.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!O.data().sectionHeader&&!X()},u)),
forceSmallLayout:!0})}}),_.D(_.F,{cond:e,
then:function(f){return _.D(_.CK,{text:f,wrapCodeBlocks:!0})}}),_.D(_.F,{cond:Z,
then:function(){return _.D("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.D(_.MR,{data:function(){var f;return(f=O.data().videoResultsData)==null?void 0:f.videoShelf}},{horizontalShelfViewModel:function(f){return _.D(_.eB,{data:f.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.D(_.F,{cond:E,
then:function(){return _.D("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.D(_.MR,{data:function(){var f;return(f=O.data().webData)==null?void 0:f.sourcesShelf}},{horizontalShelfViewModel:function(f){return _.D(_.eB,{data:f.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.D(_.MR,{data:function(){return O.data().conversationResourceViewModel}},{conversationResourceViewModel:ROs}),_.D(_.MR,{data:function(){return O.data().quiz}},{learningJourneyQuizViewModel:_.Wk2}),_.D(_.MR,{data:function(){return O.data().richContent}},{cardViewModel:_.Uce,
linearLayoutViewModel:_.iA}),_.D(_.F,{cond:P,then:function(){return _.D(IQs,{thumbsUp:U,thumbsDown:W,rightAlignThumbs:k})}}))}}),_.D(_.F,{cond:function(){return O.data().chipsData},
then:function(r){return _.D(pTa,{data:r,disabled:O.pending,onError:O.onError})}}))},"Jm");
Uhc.idomCompat={callbacks:{onError:!0,onSend:!0}};var aQo=_.K(function(O){var x=function(){return O.data().choiceSelectedText},e=function(){return O.data().hasGradientBackground},l={};
return _.D("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.D(_.F,{cond:x,then:function(){return _.D("div",{class:"ytYouChatUserTurnChoiceSelected"},_.D(_.TT,{text:x}))}}),_.D("div",{class:_.xz("ytYouChatUserTurnUserMessage",(l.ytYouChatUserTurnGradientContainer=e,l.ytYouChatUserTurnDefaultContainer=function(){return!e()},l))},function(){return O.data().text}))},"Km");var mhh=_.K(function(O){var x=_.T((0,_.i8$)(O.data)).next().value;return _.D("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return O.data().targetId||""}},_.D(_.MR,{data:function(){return O.data().header}},{chipBarViewModel:_.Nuz}),_.D(_.MR,{data:function(){return x().contents}},{accordionViewModel:_.HHp,
alertBannerViewModel:_.C$T,chatLoadingViewModel:_.i3T,chatUserTurnViewModel:aQo,feedbackPromptViewModel:ceH,gridShelfViewModel:function(e){return _.D(_.eAd,{data:e.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.a3T,linearLayoutViewModel:_.iA,lockupViewModel:function(e){return _.D(_.UL,{data:e.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:O.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.ak,videoOverviewViewModel:_.J2T,youChatItemViewModel:function(e){return _.D(Uhc,{data:e.data,pending:!1})}}))},"Lm");_.wP(_.K(function(O){var x=_.T((0,_.i8$)(O.data)).next().value,e=_.Q5("yt-section-list-renderer"),l=_.T(_.Iw(void 0,void 0,"boqAXd")),C=l.next().value,Q=l.next().value,L=function(){var k;return _.q((k=O.data().sectionListLayoutConfiguration)==null?void 0:k.layoutConfiguration,OQS)};
_.YK(function(){var k,M=(k=e.value)==null?void 0:k.clientWidth;if(L()){k=L();var G=k.responsiveSize;M=M<528?"CONTAINER_SIZE_NARROW":M<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var X=_.T(k.responsiveMap||[]);for(var y=X.next();!y.done;y=X.next())if(y=y.value,y.containerSize===M){X=y.containerType;break b}X=void 0}if(X&&G){b:{if(X==="CONTAINER_TYPE_VERTICAL_LIST")if(G==="RESPONSIVE_SIZE_STANDARD"){if(M!=="CONTAINER_SIZE_NARROW"){y="50%";break b}}else{y=M==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}y=void 0}k={responsiveSize:G,containerSize:M,containerType:X,force16By9ThumbnailAspectRatio:!k.enableContentSpecificAspectRatio,contentPreviewWidth:y,fullbleed:(X==="CONTAINER_TYPE_VERTICAL_LIST"||X==="CONTAINER_TYPE_GRID")&&M==="CONTAINER_SIZE_NARROW"&&!1}}else k=void 0}else k=void 0;Q(k)});
return _.D("yt-section-list-renderer",{class:_.xz("ytSectionListRendererHost",O.className),el:e,"data-target-id":function(){return O.data().targetId||""}},_.D(_.MR,{data:function(){return x().contents}},{itemSectionRenderer:function(k){return _.D(mhh,{data:k.data,
containerLayoutConfig:C})}}))},"Mm"),"yt-section-list-renderer",{props:{data:_.Ld,
className:_.vs}});var suS;var WYa;var hOU=function(){return _.a.apply(this,arguments)||this};
_.c(hOU,_.a);_.B([_.R(),_.v("design:type",Object)],hOU.prototype,"data",void 0);_.B([_.Va({is:"yt-alert-renderer",disableElementRegistration:!0})],hOU);
_.n(hOU,"yt-alert-renderer",function(){if(WYa===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;suS===void 0&&(suS=document.createElement("template"));var l=suS;e.call(x,l.content.cloneNode(!0),O.content.firstChild);WYa=O}O=WYa;return O},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Uuw;Uuw=function(O,x,e,l){e||(O?l&&(l.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||l.WINDOW_SIZE_CHANGED&&(x.width!==window.innerWidth||x.height!==window.innerHeight)||l.SAFARI_ABORTED_BY_NEW_TRANSITION&&O instanceof DOMException&&O.name==="AbortError"&&O.message.includes("Old view transition aborted by new view transition"))||_.BH(O):_.BH(Error("tj")))};
_.aPe=function(O,x){x=x===void 0?{}:x;var e,l,C,Q,L,k,M,G,X,y,Z,E,P;return _.A(function(U){switch(U.nextAddress){case 1:e=x;l=e.shouldWrap===void 0?!0:e.shouldWrap;C=e.skipTransitionTimeoutMs===void 0?300:e.skipTransitionTimeoutMs;Q=e.beforeTransition;L=e.afterTransition;if(!l||!document.startViewTransition||document.visibilityState==="hidden")return U.return(O());k={width:window.innerWidth,height:window.innerHeight};M=!1;(G=Q)==null||G();_.tS(U,2);X=document.startViewTransition(O);y=setTimeout(function(){X.skipTransition();
M=!0},C);
return U.yield(X.ready,4);case 4:return clearTimeout(y),U.yield(X.finished,5);case 5:clearTimeout(y);(Z=L)==null||Z();_.lb(U,0);break;case 2:E=_.VP(U),(P=L)==null||P(),Uuw(E,k,M,x.ignoredErrors),_.Ra(U)}})};
_.muu=function(O,x){var e=_.ASr(x);e!=="javascript:"&&e!=="data:"&&O.setAttribute("href",x)};
_.sfL=function(O,x,e){O.persistentPanelContainerMap.set(e,x)};
_.MI=function(){for(var O=Array(36),x=0,e,l=0;l<36;l++)l==8||l==13||l==18||l==23?O[l]="-":l==14?O[l]="4":(x<=2&&(x=33554432+Math.random()*16777216|0),e=x&15,x>>=4,O[l]=_.BCD[l==19?e&3|8:e]);return O.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 WvL=_.zo(['<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>']),
hw4=_.cYk(WvL);hw4.setAttribute("style","display: none;");document.head.appendChild(hw4.content);_.DT=_.Xnm(function(O){var x=_.R9("DIV");O&&(x.className=O);x.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";O=_.R9("DIV");_.qdz(O,"200px","200px");x.appendChild(O);document.body.appendChild(x);O=x.offsetWidth-x.clientWidth;_.Um(x);return O});var zwO;var rGL;var G9=function(){var O=_.a.apply(this,arguments)||this;O.icon=null;return O};
_.c(G9,_.a);G9.prototype.dismiss=function(){_.wr(this.hostElement,"yt-live-chat-error-message-dismiss")};
G9.prototype.computeIcon=function(O){return O&&O.iconType?"yt-icons:"+O.iconType.toLowerCase():"yt-icons:close"};
_.B([_.R(),_.v("design:type",Object)],G9.prototype,"data",void 0);_.B([_.R({computed:"computeIcon(data.icon)"}),_.v("design:type",Object)],G9.prototype,"icon",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],G9);
_.n(G9,"yt-live-chat-error-message-renderer",function(){if(rGL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;zwO===void 0&&(zwO=document.createElement("template"));var l=zwO;e.call(x,l.content.cloneNode(!0),O.content.firstChild);rGL=O}O=rGL;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var BoU,v8w,fdH,J0S,NoS,ifS,OeT,x4c,ecc,leo,Co7,hv,QwT,bek,TwT,LFT,kca,A6c,Mjw,D47,GcS,FFT,XLo,oOI,y6w,Zeh,EOa,tjE,qfo,Poa,c6w,Ieh,VjU,pLc,Rc7,U4I,aea,WFo,zcz,HeE,KFk,d4a,nOz,m4w,swT,BwS,vOy,feH,J6k,wLE,u1k;BoU=function(O,x){return _.xE(O.entities,"timedMarkersListSyncEntity",x)};
v8w=function(O,x){return _.xE(O.entities,"liveReactionsDataEntity",x)};
fdH=function(O,x){O=_.xE(O.entities,"booleanEntity",x);return!(!O||!O.value)};
J0S=function(O,x){var e=_.Pq();e&&O&&_.WU(e,_.Fv(O),x)};
_.wva=function(O){return O.watch.isWatchActive};
_.Smz=function(O){return _.I2(O)||_.VI(O)||_.bvN(O)};
_.j9S=function(O){return!_.Smz(O)};
_.WJ=function(O){return O.watch.watchScrollTop};
NoS=function(O){return O.watch.isLiveChatCollapsed};
_.g8E=function(){_.t("web_watch_log_theater_mode")&&_.V9L("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.$qE=function(O,x,e){if(!O.includes("START_TIME_PLACEHOLDER")||!O.includes("END_TIME_PLACEHOLDER"))return O;var l=new Date(0),C=new Date(0);l.setUTCMilliseconds(x);C.setUTCMilliseconds(e);return O.replace("START_TIME_PLACEHOLDER",_.zL(l,7)).replace("END_TIME_PLACEHOLDER",_.zL(C,7))};
ifS=function(O,x){return _.xE(O.entities,"booleanEntity",x)};
OeT=function(){return function(O){_.ns(_.Dc("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:O}))}};
x4c=function(O){switch(O){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}};
ecc=function(O,x,e){var l=_.p_(e);O&&x&&l&&O.getPlayerPromise().then(function(C){_.sAn(l)&&_.Yb();(new _.fg(C)).executeCommand(l,x);_.t("continue_playback_on_desktop_companion_click")||C.pauseVideo()})};
leo=function(O){var x=_.f7(),e;if(e=_.i8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var l;e=(l=e())==null?void 0:l.layoutId}else e=null;ecc(x,e,O)};
Co7=function(O){var x=_.f7(),e;if(e=_.i8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var l;e=(l=e())==null?void 0:l.layoutId}else e=null;ecc(x,e,O)};
hv=function(O,x){var e=O<0?"-":"";O=Math.abs(O);var l=Math.floor(O/3600),C=Math.floor(O)%3600,Q=Math.floor(C/60);C=Math.floor(C)%60;var L="";(x===void 0?0:x)&&(L="."+Math.round((O-Math.floor(O))*10));return l>0?e+l+":"+(Q<10?"0"+Q:""+Q)+":"+(C<10?"0"+C:""+C)+L:e+Q+":"+(C<10?"0"+C:""+C)+L};
QwT=function(O){var x=O.match(/[^0-9:\.]/g);if(x&&x.length>0)return null;O=O.split(":");if(O.length===0||O.length>3)return null;x=1;for(var e=0;O.length>0;){var l=O.pop();if(l===void 0)break;var C=Number(l);if(l===""||isNaN(C))return null;e+=C*x;x*=60}return e};
bek=function(O,x,e,l){O=Math.max(e,O);x=Math.min(x,l-e);O+x>l?(e=l,O=e-x):e=O+x;return{start:O,end:e}};
TwT=function(O,x,e,l,C,Q){O<e?O=e:O+C>l&&(O=l-C);x>l&&(x=l);x=Math.min(O+Q,Math.max(O+C,x));return{start:O,end:x}};
LFT=function(O,x,e,l,C,Q){x>l?x=l:x-C<e&&(x=e+C);O<e&&(O=e);O=Math.min(x-C,Math.max(x-Q,O));return{start:O,end:x}};
kca=function(O){return _.t("web_transcript_cue_id_killswitch")?String(O):"ytd-transcript-renderer_"+O};
A6c=function(O){return _.t("web_transcript_cue_id_killswitch")?!0:O.startsWith("ytd-transcript-renderer")};
Mjw=function(O){var x=_.f7(),e;if(e=_.i8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var l;e=(l=e())==null?void 0:l.layoutId}else e=null;ecc(x,e,O)};
D47=function(O){O.style.height="auto";O.style.height=Math.min(O.scrollHeight||20,80)+"px"};
GcS=function(O,x,e){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:x,hasGradientBackground:e}}],insertByPositionInSection:{sectionTargetId:O,position:"INSERTION_POSITION_LAST"}}}]}}}};
FFT=function(O){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:O}}]}}}};
XLo=function(){var O;return String(Math.floor(((O=_.eR())==null?void 0:O.getCurrentTime())||0)*1E3)};
oOI=function(O){var x=_.f7(),e;e=(e=_.i8("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.layoutId:null;ecc(x,e,O)};
y6w=function(O){var x=_.f7(),e;e=(e=_.i8("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.layoutId:null;ecc(x,e,O)};
Zeh=function(O){if(O.simpleText)return[{text:O.simpleText}];var x;return(x=O.runs)!=null?x:[]};
EOa=function(O){var x=O.startEndTimeTemplate,e=O.startTimeUtcMillis;O=O.endTimeUtcMillis;if(x&&e&&O)return _.KA(_.$qE(_.db(x),Number(e),Number(O)))};
tjE=function(O,x){var e,l,C=O==null?void 0:(e=O.viewCount)==null?void 0:(l=e.videoViewCountRenderer)==null?void 0:l.shortViewCount;if(!x&&C)return C;var Q,L;return O==null?void 0:(Q=O.viewCount)==null?void 0:(L=Q.videoViewCountRenderer)==null?void 0:L.viewCount};
qfo=function(O,x){var e=O==null?void 0:O.relativeDateText;return!x&&e?[e,!0]:[O==null?void 0:O.dateText,!1]};
Poa=function(O,x,e,l,C){l=l===void 0?"":l;C=C===void 0?!1:C;var Q=tjE(O,x),L=_.T(qfo(O,x)),k=L.next().value;L=L.next().value;x=x?O==null?void 0:O.sponsorsOnlyFirstTimeLongText:O==null?void 0:O.sponsorsOnlyFirstTimeShortText;var M=[];e&&Q&&M.push(Q);!e&&L||!k||M.push(k);O=[C?O==null?void 0:O.subtitle:void 0].concat(_.Kx(M),[x,O==null?void 0:O.stationName,O==null?void 0:O.rating,O?EOa(O):void 0,O==null?void 0:O.upNextProgramText,O==null?void 0:O.superTitleLink]).filter(function(G){return!!G});
e={runs:[]};for(C=0;C<O.length;C++)e.runs.push.apply(e.runs,_.Kx(Zeh(O[C]))),C<O.length-1&&e.runs.push({text:" "+l+" "});return e};
c6w=function(O){return O.filter(function(x){return!_.q(x,_.uN)})};
Ieh=function(O){var x,e,l,C;if(O=O==null?void 0:(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.results)==null?void 0:(C=l.results)==null?void 0:C.contents){var Q,L;return(L=(Q=O.find(function(k){return!!k.videoPrimaryInfoRenderer}))==null?void 0:Q.videoPrimaryInfoRenderer)==null?void 0:L.updatedMetadataEndpoint}};
VjU=function(O,x){var e;return(e=O.sourceConfigs)==null?void 0:e.find(function(l){return l.videoId===x})};
pLc=function(O){return O==="End of video"||O==="End of playlist"};
Rc7=function(O){var x,e,l,C;return(x=O.getWatchNextResponse())==null?void 0:(e=x.contents)==null?void 0:(l=e.twoColumnWatchNextResults)==null?void 0:(C=l.playlist)==null?void 0:C.playlist};
U4I=function(O){var x,e,l,C,Q,L;return(x=Rc7(O))==null?void 0:(e=x.playlistButtons)==null?void 0:(l=e.menuRenderer)==null?void 0:(C=l.topLevelButtons)==null?void 0:(Q=C[0])==null?void 0:(L=Q.playlistLoopButtonRenderer)==null?void 0:L.playlistLoopStateEntityKey};
aea=function(O){var x=_.GG().resolve(_.gx),e;return(x=(e=_.q(x.getAutoplayEndpoint(),_.Hq))==null?void 0:e.playlistId)&&x===O};
WFo=function(O,x,e,l,C){function Q(){_.vn.cancelJob(zR);var L=m4w(x,e/O.getPlaybackRate()),k=L.hours,M=L.minutes;L=(L.seconds*1E3||6E4)/O.getPlaybackRate();O.setVideoTimeLeft(swT(k,M));l&&O.getPlayerState()!==0&&O.setSleepTimerTimeLeft(swT(k,M,!0));(k>0||M>0)&&!C&&(zR=_.FQ(_.vn,Q,L))}
_.vn.cancelJob(zR);zR=_.FQ(_.vn,Q)};
zcz=function(O,x,e){function l(){_.vn.cancelJob(hcH);var C=m4w(x,e),Q=C.hours;C=C.minutes;var L=6E4/O.getPlaybackRate();if(Q>0||C>0)O.setSleepTimerTimeLeft(swT(Q,C,!0)),hcH=_.FQ(_.vn,l,L)}
_.vn.cancelJob(hcH);hcH=_.FQ(_.vn,l)};
HeE=function(O,x){var e=O.getVolume()/(x/500),l=function(C){_.vn.cancelJob(r6h);var Q=Math.floor(C-e);O.setVolume(Q,!1);Q>0&&(r6h=_.FQ(_.vn,function(){l(Q)},500))};
_.vn.cancelJob(r6h);r6h=_.FQ(_.vn,function(){l(O.getVolume())})};
KFk=function(O,x){_.vn.cancelJob(r6h);x&&O.syncVolume()};
d4a=function(){var O={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CZ("SLEEP_TIMER_DISRUPTED")}}}}};_.GG().resolve(_.Xc).resolveCommand(O)};
nOz=function(O){return(O.getDuration()-O.getProgressState().current)*1E3};
m4w=function(O,x){O=O+x-(0,_.F2)();if(O<=0)return{hours:0,minutes:0,seconds:0};var e=new u1k(0,0,0,0,0,0,O);O=e.getHours();x=e.getMinutes();e=e.getSeconds();e!==0&&x++;x!==0&&x%60===0&&(O++,x=0);return{hours:O,minutes:x,seconds:e}};
swT=function(O,x,e){return O>0&&x>0?e?_.CZ("TIME_LEFT_HOURS_MINUTES",{hours:O.toString(),minutes:x.toString()}):_.CZ("TIME_HOURS_MINUTES",{hours:O.toString(),minutes:x.toString()}):O>0?e?_.QO("TIME_LEFT_HOURS",O):_.QO("TIME_HOURS",O):e?_.CZ("TIME_LEFT_MINUTES",{minutes:x.toString()}):_.CZ("TIME_MINUTES",{minutes:x.toString()})};
BwS=function(O,x){if(O.timelyActions)return O.timelyActions.find(function(e){var l;return((l=_.q(e,Yf7))==null?void 0:l.cueRangeId)===x})};
vOy=function(O){var x=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Ly(O);O.keyMap_.forEach(function(e,l){_.ur(x,l)||this.remove(l)},O)};
feH=function(O,x){O.reloadContinuationItemsCommandMatcher=x};
_.rJ=function(O,x){O.insertBefore(x,O.childNodes[0]||null)};
J6k=function(O){if(O>=48&&O<=57||O>=96&&O<=106||O>=65&&O<=90||_.gC&&O==0)return!0;switch(O){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 _.No;default:return!1}};
wLE=function(O){if(O.altKey&&!O.ctrlKey||O.metaKey||O.keyCode>=112&&O.keyCode<=123)return!1;if(J6k(O.keyCode))return!0;switch(O.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!_.No;default:return O.keyCode<166||O.keyCode>183}};
u1k=function(O,x,e,l,C,Q,L){this.date=typeof O==="number"?new Date(O,x||0,e||1,l||0,C||0,Q||0,L||0):new Date(O&&O.getTime?O.getTime():_.vN())};
_.fI(u1k,_.I3);_.b=u1k.prototype;_.b.getHours=function(){return this.date.getHours()};
_.b.getMinutes=function(){return this.date.getMinutes()};
_.b.getSeconds=function(){return this.date.getSeconds()};
_.b.getMilliseconds=function(){return this.date.getMilliseconds()};
_.b.getUTCDay=function(){return this.date.getUTCDay()};
_.b.getUTCHours=function(){return this.date.getUTCHours()};
_.b.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.b.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.b.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.b.setHours=function(O){this.date.setHours(O)};
_.b.setMinutes=function(O){this.date.setMinutes(O)};
_.b.setSeconds=function(O){this.date.setSeconds(O)};
_.b.setMilliseconds=function(O){this.date.setMilliseconds(O)};
_.b.setUTCHours=function(O){this.date.setUTCHours(O)};
_.b.setUTCMinutes=function(O){this.date.setUTCMinutes(O)};
_.b.setUTCSeconds=function(O){this.date.setUTCSeconds(O)};
_.b.setUTCMilliseconds=function(O){this.date.setUTCMilliseconds(O)};
_.b.add=function(O){_.I3.prototype.add.call(this,O);O.hours&&this.setUTCHours(this.date.getUTCHours()+O.hours);O.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+O.minutes);O.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+O.seconds)};
_.b.JSC$11326_toIsoString=function(O){var x=_.I3.prototype.JSC$11326_toIsoString.call(this,O);return O?x+"T"+_.im(this.getHours(),2)+":"+_.im(this.getMinutes(),2)+":"+_.im(this.getSeconds(),2):x+"T"+_.im(this.getHours(),2)+_.im(this.getMinutes(),2)+_.im(this.getSeconds(),2)};
_.b.equals=function(O){return this.getTime()==O.getTime()};
_.b.toString=function(){return this.JSC$11326_toIsoString()};
_.b.clone=function(){var O=new u1k(this.date);O.firstDayOfWeek_=this.firstDayOfWeek_;O.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return O};
_.Sfc=function(O){return _.j6({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:O}})};var jwc=new _.$x("imageTileRenderer");var Nwc=new _.$x("promotedSparklesWebRenderer");var gOS=new _.$x("adGridCardCollectionViewModel");var $4T=new _.$x("carouselTitleViewModel");var ieT=new _.$x("ctaCarouselItemViewModel");var OOU=new _.$x("textFieldViewModel");_.xDw=new _.$x("engagementPanelHeaderShowNavigationButtonCommand");var en7=new _.$x("hideEngagementPanelScrimAction");var lKk=new _.$x("setActivePanelItemAction");var C8H=new _.$x("showEngagementPanelScrimAction");var QUw=new _.$x("updateEngagementPanelAction");var bOS=new _.$x("updateSearchInVideoResultsAction");var Tzk=new _.$x("transcriptCueGroupRenderer");var LxT=new _.$x("transcriptCueRenderer");var knk=new _.$x("transcriptFooterRenderer");var AZw=new _.$x("engagementPanelAdSubtitleRenderer");var MSz=new _.$x("videoDescriptionFantasySectionViewModel");var DDw=new _.$x("deleteClipEngagementPanelCommand");var Gnh=new _.$x("loopCommand");var Fxs=new _.$x("changeCreatorEndscreenVisibilityCommand");var XEH=new _.$x("liveChatCallForQuestionsRenderer");var oKT=new _.$x("updateTimedMarkersSyncObserverCommand");var Yf7=new _.$x("timelyActionViewModel");var yZa=new _.$x("timelyActionsOverlayViewModel");var ZOs=new _.$x("repeatChapterCommand");var EKS=new _.$x("watchPlayerOverflowMenuCommand");var tSy=new _.$x("compositeVideoOverlayRenderer");var q0H=new _.$x("sortFilterSubMenuRenderer");var P8h=new _.$x("switchListItemViewModel");var cZo=new _.$x("inputComposerViewModel");var IKy=new _.$x("transcriptEditSegmentCommand");var VSa=new _.$x("transcriptUpdateSegmentTextCommand");var pES=new _.$x("transcriptSearchBoxRenderer");var Rn7=new _.$x("transcriptSegmentListRenderer");var UDy=new _.$x("transcriptSegmentRenderer");_.aKE=new _.$x("updateDateTextAction");var mDa=new _.$x("updateTitleAction");var sUo=new _.$x("updateViewershipAction");var Wxa=new _.$x("relatedChipCommand");var hnE=new _.$x("carouselLockupRenderer");var HJ=new _.$x("expandableVideoDescriptionBodyRenderer");var znU=new _.$x("videoDescriptionHeaderRenderer");var rZa=new _.$x("videoDescriptionYouchatSectionViewModel");_.Kq=_.yF("kevlar_watch_page_horizontal_margin",24);_.HOk=_.yF("kevlar_watch_page_columns_top_padding",24);_.KxE=426+_.Kq*2;_.dJ=_.yF("kevlar_watch_two_column_width_threshold",1E3);_.dDH=_.Kq*2;_.nKT=_.yF("kevlar_watch_secondary_width",402);_.umU=_.yF("kevlar_watch_max_player_width",1280);_.Y0E=_.yF("kevlar_watch_flexy_metadata_height",136);_.Bz7=_.dDH+310+_.Kq;_.vKH=_.dDH+360+_.Kq;var fKT={PAUSE_CHAT:18};var JZk;var wEz;var nq=function(){return _.a.apply(this,arguments)||this};
_.c(nq,_.a);nq.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
nq.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var O=_.q(this.data.button,_.gf);O&&(O.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Dy.Object.defineProperties(nq,{template:{configurable:!0,enumerable:!0,get:function(){if(wEz===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;JZk===void 0&&(JZk=document.createElement("template"));var l=JZk;e.call(x,l.content.cloneNode(!0),O.content.firstChild);wEz=O}O=wEz;return O}}});
_.B([_.V(_.$q),_.v("design:type",Object)],nq.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({selectorArgs:["data.enabledEntityKey"],selector:fdH,observer:"onEnabledChange"}),_.v("design:type",Boolean)],nq.prototype,"enabled",void 0);_.B([_.R(),_.v("design:type",Object)],nq.prototype,"data",void 0);_.B([_.Va({is:"yt-disableable-button-view-model",noInjection:!0})],nq);var S0h;var jUE;var Nzk=["transVert01","transVert02","transVert03"],gKU="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),u0=function(){var O=_.a.apply(this,arguments)||this;O.emojiManager=_.Cn;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};O.reactionBuckets=[];O.noEmojiIdentifier="NO_EMOJI";return O};
_.c(u0,_.a);_.b=u0.prototype;_.b.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.b.desktopFountainEmojiSizePxChanged=function(){_.lH(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.b.createUserReactionAnimation=function(O){this.createEmojiAnimation(O,!0)};
_.b.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var O;((O=this.data)==null?0:O.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Dc("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Kx(this.emojiContainer.children)).forEach(function(x){x.remove()})};
_.b.detached=function(){this.cleanupFountain()};
_.b.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var O;this.reactionBuckets=_.HX.unsafeClone((O=this.emojiFountainData)==null?void 0:O.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.b.processEmojiBucket=function(O){var x=this;if(this.reactionBuckets&&!(O>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var e=this.reactionBuckets[O];this.generateEmojiAnimations(e);if(O<this.reactionBuckets.length-1){var l;if(e==null?0:(l=e.duration)==null?0:l.seconds)this.emojiBucketTimerId=setTimeout(function(){x.processEmojiBucket(O+1)},Number(e.duration.seconds)*1E3)}}};
_.b.generateEmojiAnimations=function(O){var x=this,e=this.getRandomEmojiIdFromBucketWithOverride(O);if(e&&e!==this.noEmojiIdentifier){var l=0;O.targetEps?(l=this.linearInterpolateBounded(1,20,100,12,O.emojiSizeIndex||0),this.createEmojiAnimation(e,!1,O.emojiAnimationMs,l),l=this.getEmojiDelayMsFromTargetEps(O.targetEps)):(this.createEmojiAnimation(e),l=this.getEmojiDelayMsFromDistribution(O.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){x.generateEmojiAnimations(O)},l)}};
_.b.getRandomEmojiIdFromBucketWithOverride=function(O){if(!(O&&O.reactionsData&&O.reactionsData.length&&O.totalReactions))return this.noEmojiIdentifier;for(var x=O.totalReactions,e=1,l=_.T(O.reactionsData),C=l.next();!C.done;C=l.next())C=C.value,(C.reactionWeightOverride||C.reactionWeightOverride===0)&&C.reactionCount&&(x-=C.reactionCount,e-=C.reactionWeightOverride);l=!0;e<0&&(l=!1,x=O.totalReactions,e=1);if(l&&e>0&&x===0)if(e===1){C=0;for(var Q=_.T(O.reactionsData),L=Q.next();!L.done;L=Q.next())L=
L.value,L.reactionCount&&L.reactionCount>0&&C++;C=1/C;Q=_.T(O.reactionsData);for(L=Q.next();!L.done;L=Q.next())L.value.reactionWeightOverride=C}else for(C=1/(1-e),Q=_.T(O.reactionsData),L=Q.next();!L.done;L=Q.next())L=L.value,L.reactionWeightOverride&&(L.reactionWeightOverride*=C);C=Math.random();Q=0;L=_.T(O.reactionsData);for(var k=L.next();!k.done;k=L.next())if(k=k.value,k.reactionCount&&(Q=(k.reactionWeightOverride||k.reactionWeightOverride===0)&&l?Q+k.reactionWeightOverride:Q+e*k.reactionCount/
x,Q>C&&(k.reactionCount--,O.totalReactions--,k=this.reactionItemToEmojiString(k),k!==this.noEmojiIdentifier)))return k;return this.noEmojiIdentifier};
_.b.reactionItemToEmojiString=function(O){if(O.unicodeEmojiId)return O.unicodeEmojiId;if(O.emoteId)return O.emoteId;if(O.videoReactionType)switch(O.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.b.createEmojiAnimation=function(O,x,e,l){x=x===void 0?!1:x;this.lastEmojiRequestedForTesting=O;var C=O.startsWith("yt-icons:"),Q=_.eg(this.emojiManager,O);if(Q||C){var L=document.createElement("emoji");L.classList.add("yt-emoji-fountain-view-model");L.classList.add(Nzk[Math.floor(Math.random()*Nzk.length)]);var k=document.createElement("div");k.classList.add("yt-emoji-fountain-view-model");k.classList.add("horizontal-container");k.classList.add(gKU[Math.floor(Math.random()*gKU.length)]);x?(e=document.createElement("div"),
e.classList.add("user-reaction-bubble"),e.classList.add("yt-emoji-fountain-view-model"),k.appendChild(e)):(e&&(L.style.animationDuration=e+"ms",k.style.animationDuration=e+"ms"),l&&(L.style.width=l+"px",L.style.height=l+"px"));C?(C=document.createElement("yt-icon"),C.polymerController.icon=O,l&&(C.style.width=l+"px",C.style.height=l+"px"),O=C):O=this.emojiManager.createEmoji(Q,!1);O.classList.add("yt-emoji-fountain-view-model");k.appendChild(O);L.appendChild(k);this.emojiContainer.appendChild(L);
L.addEventListener("animationend",function(){L.remove()});
var M,G;if((M=this.data)==null?0:(G=M.loggingDirectives)==null?0:G.trackingParams)x=x?_.O9(183501):_.O9(183500),J0S(this.data.loggingDirectives.trackingParams,x),_.ZTw(x);setTimeout(function(){L&&L.remove()},2E3)}};
_.b.getEmojiDelayMsFromDistribution=function(O){return Math.random()*(O||1)*1E3};
_.b.getEmojiDelayMsFromTargetEps=function(O){return Math.random()*2*(1/O)*1E3};
_.b.linearInterpolateBounded=function(O,x,e,l,C){C=Math.min(Math.max(C,O),e);return(x*(e-C)+l*(C-O))/(e-O)};
u0.prototype.onEmojiFountainDataEntityUpdate=u0.prototype.onEmojiFountainDataEntityUpdate;u0.prototype.desktopFountainEmojiSizePxChanged=u0.prototype.desktopFountainEmojiSizePxChanged;u0.prototype.isActiveChanged=u0.prototype.isActiveChanged;_.B([_.R(),_.v("design:type",_.x5)],u0.prototype,"emojiManager",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],u0.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],u0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],u0.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(O,x){return _.xE(O.entities,"emojiFountainDataEntity",x)}}),
_.v("design:type",Object)],u0.prototype,"emojiFountainData",void 0);_.B([_.R(),_.v("design:type",Boolean)],u0.prototype,"isActive",void 0);_.B([_.T1("isActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],u0.prototype,"isActiveChanged",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],u0.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",String)],u0.prototype,"lastEmojiRequestedForTesting",void 0);
_.B([_.R({value:function(){return _.yF("desktop_fountain_emoji_size_px",20)}}),
_.v("design:type",Number)],u0.prototype,"desktopFountainEmojiSizePx",void 0);_.B([_.T1("desktopFountainEmojiSizePx"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],u0.prototype,"desktopFountainEmojiSizePxChanged",null);_.B([_.kX("#emoji-container"),_.v("design:type",HTMLElement)],u0.prototype,"emojiContainer",void 0);
_.B([_.T1("emojiFountainData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],u0.prototype,"onEmojiFountainDataEntityUpdate",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],u0);
_.n(u0,"yt-emoji-fountain-view-model",function(){if(jUE===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;S0h===void 0&&(S0h=document.createElement("template"));var l=S0h;e.call(x,l.content.cloneNode(!0),O.content.firstChild);jUE=O}O=jUE;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var $Ds;var iOs;var Y1=function(){return _.a.apply(this,arguments)||this};
_.c(Y1,_.a);Y1.prototype.onChoiceChanged=function(){this.data&&_.lH(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Y1.prototype.onChoiceChanged=Y1.prototype.onChoiceChanged;_.B([_.R(),_.v("design:type",Object)],Y1.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Y1.prototype,"onChoiceChanged",null);_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Y1);
_.n(Y1,"yt-live-chat-banner-poll-choice",function(){if(iOs===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;$Ds===void 0&&($Ds=document.createElement("template"));var l=$Ds;e.call(x,l.content.cloneNode(!0),O.content.firstChild);iOs=O}O=iOs;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Obs;var xbc;var BJ=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_button_rework_with_live");O.small=!1;return O};
_.c(BJ,_.a);BJ.prototype.computeIsSmall=function(){var O;return((O=this.buttonOverrides)==null?void 0:O.size)==="S"};
BJ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.B([_.V(_.iX.YtLiveChatTooltipTargetingBehavior),_.v("design:type",Object)],BJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.v("design:type",String)],BJ.prototype,"id",void 0);_.B([_.R(),_.v("design:type",Object)],BJ.prototype,"buttonOverrides",void 0);_.B([_.R(),_.v("design:type",Object)],BJ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],BJ.prototype,"modern",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.v("design:type",Object)],BJ.prototype,"small",void 0);_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-button"})],BJ);
_.n(BJ,"yt-live-chat-button",function(){if(xbc===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Obs===void 0&&(Obs=document.createElement("template"));var l=Obs;e.call(x,l.content.cloneNode(!0),O.content.firstChild);xbc=O}O=xbc;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var e5S;var l0a;var vJ=function(){var O=_.a.apply(this,arguments)||this;O.inCollapsedBanner=!1;O.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};O.questionButtonOverrides={style:"mono",type:"filled"};return O};
_.c(vJ,_.a);_.b=vJ.prototype;_.b.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]]"}}}}}};
_.b.onContextMenuButtonClick=function(O){this.ytLiveChatItemBehavior.showContextMenu(O)};
_.b.onYtRendererstamperFinished=function(){this.menuButton=_.$U(this.hostElement).querySelector("#menu-button")};
_.b.dataChanged=function(){var O,x;if((x=_.q((O=this.data)==null?void 0:O.overflowMenuButton,_.wf))==null?0:x.command)this.data.contextMenuEndpoint=_.q(this.data.overflowMenuButton,_.wf).command};
_.b.onButtonClick=function(){var O,x=_.q((O=this.data)==null?void 0:O.askQuestionButton,_.wf);if(x){if(x.trackingParams&&(O=_.Fv(x.trackingParams))){var e=_.Pq();e&&_.KZ(e,O)}_.wr(this.hostElement,"innertube-command",x.command)}};
vJ.prototype.onYtRendererstamperFinished=vJ.prototype.onYtRendererstamperFinished;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],vJ.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],vJ.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.R({observer:"dataChanged"}),_.v("design:type",Object)],vJ.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],vJ.prototype,"inCollapsedBanner",void 0);_.B([_.R(),_.v("design:type",Object)],vJ.prototype,"buttonOverrides",void 0);_.B([_.R(),_.v("design:type",Object)],vJ.prototype,"questionButtonOverrides",void 0);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vJ.prototype,"onYtRendererstamperFinished",null);
_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],vJ);
_.n(vJ,"yt-live-chat-call-for-questions-renderer",function(){if(l0a===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;e5S===void 0&&(e5S=document.createElement("template"));var l=e5S;e.call(x,l.content.cloneNode(!0),O.content.firstChild);l0a=O}O=l0a;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Cuh={};Cuh.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 O=this;window.requestAnimationFrame(function(){O.restoreFocusNode_||(O.restoreFocusNode_=document.activeElement);var x=_.Pfd(O.hostElement);x.length&&x[x.length-1].focus()})},
isAttachedChanged_:function(O,x){O?this.focusChild_():x&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(O){this.hidden||_.n3(O).indexOf(this.hostElement)!==-1||(O.stopPropagation(),this.focusChild_())}};var QOI;var bbw;var fq=function(){return _.a.apply(this,arguments)||this};
_.c(fq,_.a);fq.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fq.prototype.onClick=function(O){O.target!==this.confirmButton&&O.target!==this.cancelButton&&(this.hidden=!0)};
_.B([_.kX("#confirm_button"),_.v("design:type",Object)],fq.prototype,"confirmButton",void 0);_.B([_.kX("#cancel_button"),_.v("design:type",Object)],fq.prototype,"cancelButton",void 0);_.B([_.R(),_.v("design:type",Tyh)],fq.prototype,"data",void 0);_.B([_.R({value:!0,reflectToAttribute:!0}),_.v("design:type",Boolean)],fq.prototype,"hidden",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(Cuh.YtLiveChatDialogBehavior),_.v("design:type",Object)],fq.prototype,"ytLiveChatDialogBehavior",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],fq);
var Tyh=_.n(fq,"yt-live-chat-dialog-renderer",function(){if(bbw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;QOI===void 0&&(QOI=document.createElement("template"));var l=QOI;e.call(x,l.content.cloneNode(!0),O.content.firstChild);bbw=O}O=bbw;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var LKE;var kGa,Aqs=function(){if(kGa!==void 0)return kGa;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;LKE===void 0&&(LKE=document.createElement("template"));var l=LKE;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return kGa=O};var M3I;var Dbc;var Jv=function(){var O=_.a.apply(this,arguments)||this;O.tooltip=null;O.data=null;O.id="";O.active=!1;O.icon="";O.disabled=!1;O.showTooltip=!1;O.useToggledActiveState=!0;O.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return O};
_.c(Jv,_.a);_.b=Jv.prototype;
_.b.dataChanged=function(){var O;((O=this.data)==null?0:O.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,_.eU)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var x;if((x=this.data)==null?0:x.disabled)this.disabled=!0};
_.b.computeId=function(O){return O};
_.b.computeIcon=function(O,x){if(!O)return"";if(this.useToggledActiveState)return"yt-icons:"+O.toLowerCase();var e,l;return x&&((e=this.data)==null?0:(l=e.toggledIcon)==null?0:l.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+O.toLowerCase()};
_.b.logPDGEntryPoint=function(){_.OgW(_.xU("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")};
_.b.immediatelyShowTooltip=function(){var O=_.$U(this.hostElement).querySelector("#tooltip");O.animationDelay=0;O.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};O.show()};
_.b.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.b.onClick=function(O){var x;((x=this.data)==null?0:x.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(),O.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.wr(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.b.computeShowTooltip=function(O,x){return!!(O&&O.tooltip&&x)};
_.b.maybeUpdateTooltipText=function(){var O=this,x;if((x=this.data)==null?0:x.tooltip){var e=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.eU)(O.tooltip).textContent=e},250)}};
_.b.handleLiveChatActions=function(O){var x=this;O.length&&(this.id!=="creator"&&this.id!=="product-picker"||O.forEach(function(e){(e=x.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",e))&&e.durationSec===e.fullDurationSec&&x.startBubble(x.colorFromDecimal(e.startBackgroundColor))}))};
_.b.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.b.startBubble=function(O){_.lH(this.hostElement,{"--yt-live-chat-monetization-button-glow":O});this.hostElement.setAttribute("bubble","")};
_.b.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.b.colorFromDecimal=function(O){typeof O==="string"&&(O=Number(O));return"rgba("+[O>>16&255,O>>8&255,O&255,(O>>24&255)/255].join()+")"};
Jv.prototype.onAnimationEnd=Jv.prototype.onAnimationEnd;Jv.prototype.disabledChanged=Jv.prototype.disabledChanged;Jv.prototype.dataChanged=Jv.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Jv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.iX.YtLiveChatTooltipTargetingBehavior),_.v("design:type",Object)],Jv.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Jv.prototype,"data",void 0);_.B([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.v("design:type",Object)],Jv.prototype,"id",void 0);_.B([_.R({notify:!0,reflectToAttribute:!0}),_.v("design:type",Object)],Jv.prototype,"active",void 0);
_.B([_.R({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.v("design:type",Object)],Jv.prototype,"icon",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Jv.prototype,"disabled",void 0);_.B([_.R({computed:"computeShowTooltip(data, disabled)"}),_.v("design:type",Object)],Jv.prototype,"showTooltip",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Jv.prototype,"useToggledActiveState",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jv.prototype,"dataChanged",null);_.B([_.T1("disabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jv.prototype,"disabledChanged",null);_.B([_.bH("animationend"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Jv.prototype,"onAnimationEnd",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Jv);
_.n(Jv,"yt-live-chat-icon-toggle-button-renderer",function(){if(Dbc===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;M3I===void 0&&(M3I=document.createElement("template"));var l=M3I;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Dbc=O}O=Dbc;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var GGI;var FKS;var wJ=function(){return _.a.apply(this,arguments)||this};
_.c(wJ,_.a);wJ.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B([_.R(),_.v("design:type",Object)],wJ.prototype,"data",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],wJ);
_.n(wJ,"yt-live-chat-message-input-prompt-header-renderer",function(){if(FKS===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;GGI===void 0&&(GGI=document.createElement("template"));var l=GGI;e.call(x,l.content.cloneNode(!0),O.content.firstChild);FKS=O}O=FKS;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var XKy;var ocE;var yqs;var Zba;var Ecz;var t3S;var qCk=function(){return _.a.apply(this,arguments)||this};
_.c(qCk,_.a);_.B([_.R(),_.v("design:type",Object)],qCk.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],qCk);
_.n(qCk,"yt-live-chat-message-subtext-renderer",function(){if(t3S===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Ecz===void 0&&(Ecz=document.createElement("template"));var l=Ecz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);t3S=O}O=t3S;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Si=function(){var O=_.a.apply(this,arguments)||this;O.subtextOnBottom=!1;O.buttonOverrides={style:"mono",type:"tonal"};return O};
_.c(Si,_.a);Si.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Si.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Si.prototype,"subtextOnBottom",void 0);_.B([_.R(),_.v("design:type",Object)],Si.prototype,"buttonOverrides",void 0);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Si);
_.n(Si,"yt-live-chat-message-renderer",function(){if(Zba===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;yqs===void 0&&(yqs=document.createElement("template"));var l=yqs;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Zba=O}O=Zba;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var PuS;var cqI;var ji=function(){var O=_.a.apply(this,arguments)||this;O.isRemovable=!1;O.hasPrefilledText=!1;O.isInputDirty=!1;O.overCharacterLimit=!1;O.underCharacterLimit=!1;O.showErrorMessage=!1;return O};
_.c(ji,_.a);_.b=ji.prototype;_.b.computeId=function(){return this.data.id};
_.b.computeInputData=function(){return this.data.inputData};
_.b.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.b.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.b.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.b.getLiveChatRichMessageInput=function(){return _.$U(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.b.clearInput=function(){_.$U(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.b.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.b.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.b.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.b.handleTextInputCharCountChanged=function(O){O=O.detail&&O.detail.characterCount;O!==void 0&&(this.characterCount=O,O!==0&&(this.isInputDirty=!0))};
_.b.onInputFocusOut=function(){this.isInputDirty=!0};
_.b.onClickCloseButton=function(){_.wr(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
ji.prototype.handleTextInputCharCountChanged=ji.prototype.handleTextInputCharCountChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ji.prototype,"data",void 0);_.B([_.R({computed:"computeId(data.id)"}),_.v("design:type",String)],ji.prototype,"id",void 0);_.B([_.R({computed:"computeInputData(data.inputData)"}),_.v("design:type",Object)],ji.prototype,"inputData",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.v("design:type",Object)],ji.prototype,"isRemovable",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.v("design:type",Object)],ji.prototype,"hasPrefilledText",void 0);_.B([_.R({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.v("design:type",Number)],ji.prototype,"charactersRemaining",void 0);
_.B([_.R(),_.v("design:type",Number)],ji.prototype,"characterCount",void 0);_.B([_.R(),_.v("design:type",Object)],ji.prototype,"isInputDirty",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.v("design:type",Object)],ji.prototype,"overCharacterLimit",void 0);_.B([_.R({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.v("design:type",Object)],ji.prototype,"underCharacterLimit",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.v("design:type",Object)],ji.prototype,"showErrorMessage",void 0);_.B([_.bH("yt-live-chat-text-input-field-renderer-character-count-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],ji.prototype,"handleTextInputCharCountChanged",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],ji);
_.n(ji,"yt-live-chat-poll-editor-input",function(){if(cqI===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;PuS===void 0&&(PuS=document.createElement("template"));var l=PuS;e.call(x,l.content.cloneNode(!0),O.content.firstChild);cqI=O}O=cqI;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var I0E;var V3c;var pKk={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},NH=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_button_rework_with_live");O.closeButtonOverrides={iconPosition:"icon-only"};O.startButtonOverrides={style:"mono",type:"filled"};O.addOptionButtonOverrides={style:"mono",type:"text"};return O};
_.c(NH,_.a);_.b=NH.prototype;
_.b.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"}}}}};
_.b.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var O;_.q((O=this.data)==null?void 0:O.startButton,_.wf)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.b.computeId=function(){return this.data&&this.data.id||""};
_.b.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.b.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.b.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.b.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.b.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var O=0;O<this.pollEditorInfoWithDefaults.minPollOptions;O++)this.addPollOptionData()};
_.b.getIsValidPoll=function(){var O=this;if(!this.pollEditorInfoWithDefaults)return!1;var x=this.pollEditorInfoWithDefaults,e=x.minPollOptionChars,l=x.maxPollOptionChars,C=x.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>x.maxPollQuestionChars)return!1;x=_.$U(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(x).every(function(Q,L){Q=Q.characterCount;!Q&&C[L]&&(Q=O.ytRendererBehavior.getSimpleString(C[L]).length);return Q!==void 0&&Q>=e&&Q<=l})};
_.b.isValidPollChanged=function(){var O;_.q((O=this.data)==null?void 0:O.startButton,_.wf)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.b.addPollOptionData=function(){var O=this.pollEditorInfoWithDefaults,x=O.maxPollOptionChars,e=O.optionPlaceholderText,l=O.customOptionPlaceholderText,C=O.pollOptionData;this.currentNumPollOptions>=O.maxPollOptions||(O={liveChatPollOptionInput:{inputData:{placeholder:l[this.currentNumPollOptions]||e,maxCharacterLimit:x},maxCharacterLimit:x,minCharacterLimit:O.minPollOptionChars,hasPrefilledText:!!l[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=O.minPollOptions}},C.charCountErrorText&&
(O.liveChatPollOptionInput.charCountErrorText=C.charCountErrorText),C.charsRemainingAltLabel&&(O.liveChatPollOptionInput.charsRemainingAltLabel=C.charsRemainingAltLabel),C.removeOptionAltText&&(O.liveChatPollOptionInput.removeOptionAltText=C.removeOptionAltText),this.push("pollOptionsData",O),C=Array.from(_.$U(_.$U(this.hostElement).querySelector("#poll-options")).children),C.forEach(function(Q,L){Q.polymerController.set("data.id",L)}),_.$U(C[C.length-1]).querySelector("#input").focus())};
_.b.getPollOptionInputValues=function(){var O=this,x=[],e=_.$U(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),l=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(e).forEach(function(C,Q){var L=null;C=C.getLiveChatRichMessageInput();var k;(C==null?0:(k=C.textSegments)==null?0:k.length)?L=_.a2(C):l[Q]&&(L=O.formattedStringToLiveChatRichMessageInput(l[Q]));x.push(L)});
return x};
_.b.requestCreateAndStartPoll=function(O){var x=this.getPollOptionInputValues();if(!x.some(function(l){return!l})){x={optionText:x};
var e=_.$U(_.$U(this.hostElement).querySelector("#poll-question")).firstChild;e&&e.liveChatRichMessageInput&&(x.questionText=_.a2(e.liveChatRichMessageInput));_.N9(this.hostElement,[O,x])}};
_.b.selectedChanged=function(){if(this.selected){var O=_.$U(_.$U(this.hostElement).querySelector("#start-button")).firstElementChild;if(O){var x;(x=_.$U(O).querySelector("#button")||_.iK(O).querySelector("button"))==null||x.focus()}}};
_.b.handleTextInputChanged=function(O){var x;((x=O.target)==null?void 0:x.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=O.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.b.handleStartButtonAction=function(O){O.detail.actionName==="yt-service-request"&&(O.stopPropagation(),(O=O.detail.args[1])&&this.requestCreateAndStartPoll(O))};
_.b.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.b.handleServiceRequestCompleted=function(O){this.createPollRequestInFlight=!1;(O=O.detail&&O.detail.data)&&O.success&&(_.wr(this.hostElement,"picker-cancelled"),_.Sh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.b.onCloseClick=function(){_.wr(this.hostElement,"picker-cancelled");_.Sh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.b.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.b.handlePollEditorInputClosed=function(O){var x=this.pollOptionsData.findIndex(function(e){return e.liveChatPollOptionInput.id===O.detail.id});
this.splice("pollOptionsData",x,1);this.isValidPoll=this.getIsValidPoll()};
_.b.onPickerCancelled=function(){this.reset()};
_.b.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var O=_.$U(_.$U(this.hostElement).querySelector("#poll-question")).firstChild;O&&O.setLiveChatRichMessageInput(null);if(O=_.$U(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){O=_.T(Array.from(O));for(var x=O.next();!x.done;x=O.next())x.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.b.formattedStringToLiveChatRichMessageInput=function(O){return O.simpleText?{text_segments:[O.simpleText]}:{text_segments:O.runs}};
_.Dy.Object.defineProperties(NH.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(pKk,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
NH.prototype.onPickerCancelled=NH.prototype.onPickerCancelled;NH.prototype.handlePollEditorInputClosed=NH.prototype.handlePollEditorInputClosed;NH.prototype.handleServiceRequestCompleted=NH.prototype.handleServiceRequestCompleted;NH.prototype.handleServiceRequestSent=NH.prototype.handleServiceRequestSent;NH.prototype.handleTextInputChanged=NH.prototype.handleTextInputChanged;NH.prototype.selectedChanged=NH.prototype.selectedChanged;NH.prototype.isValidPollChanged=NH.prototype.isValidPollChanged;
NH.prototype.shouldInitializePollChanged=NH.prototype.shouldInitializePollChanged;NH.prototype.dataChanged=NH.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],NH.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NH.prototype,"modern",void 0);
_.B([_.R(),_.v("design:type",Object)],NH.prototype,"closeButtonOverrides",void 0);_.B([_.R(),_.v("design:type",Object)],NH.prototype,"startButtonOverrides",void 0);_.B([_.R(),_.v("design:type",Object)],NH.prototype,"addOptionButtonOverrides",void 0);_.B([_.R({computed:"computeId(data.id)",reflectToAttribute:!0}),_.v("design:type",String)],NH.prototype,"id",void 0);_.B([_.R({value:function(){return[]}}),
_.v("design:type",Array)],NH.prototype,"pollOptionsData",void 0);_.B([_.p("pollEditorInfoWithDefaults"),_.v("design:type",Object),_.v("design:paramtypes",[])],NH.prototype,"pollQuestionData",null);_.B([_.R({value:0}),_.v("design:type",Number)],NH.prototype,"pollQuestionCharacterCount",void 0);_.B([_.p("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.v("design:type",Object),_.v("design:paramtypes",[])],NH.prototype,"pollQuestionCharactersRemaining",null);
_.B([_.R({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.v("design:type",Boolean)],NH.prototype,"overQuestionCharacterLimit",void 0);_.B([_.p("data.pollEditorInfo"),_.v("design:type",Object),_.v("design:paramtypes",[])],NH.prototype,"pollEditorInfoWithDefaults",null);_.B([_.R({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.v("design:type",Number)],NH.prototype,"currentNumPollOptions",void 0);
_.B([_.R({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.v("design:type",Boolean)],NH.prototype,"hasMaxNumPollOptions",void 0);_.B([_.p("pollEditorInfoWithDefaults","pollOptionsData"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NH.prototype,"shouldInitializePoll",null);_.B([_.R(),_.v("design:type",Object)],NH.prototype,"isValidPoll",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],NH.prototype,"createPollRequestInFlight",void 0);_.B([_.R(),_.v("design:type",Object)],NH.prototype,"selected",void 0);_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.v("design:type",Boolean)],NH.prototype,"showQuestionErrorMessage",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NH.prototype,"dataChanged",null);_.B([_.T1("shouldInitializePoll"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NH.prototype,"shouldInitializePollChanged",null);_.B([_.T1("isValidPoll"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NH.prototype,"isValidPollChanged",null);
_.B([_.T1("selected"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NH.prototype,"selectedChanged",null);_.B([_.bH("yt-live-chat-text-input-field-renderer-character-count-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],NH.prototype,"handleTextInputChanged",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NH.prototype,"handleServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],NH.prototype,"handleServiceRequestCompleted",null);
_.B([_.bH("yt-live-chat-poll-editor-input-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],NH.prototype,"handlePollEditorInputClosed",null);_.B([_.bH("picker-cancelled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NH.prototype,"onPickerCancelled",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],NH);
_.n(NH,"yt-live-chat-poll-editor-panel-renderer",function(){if(V3c===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;I0E===void 0&&(I0E=document.createElement("template"));var l=I0E;e.call(x,l.content.cloneNode(!0),O.content.firstChild);V3c=O}O=V3c;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var R5c;var Ubo;var gJ=function(){return _.a.apply(this,arguments)||this};
_.c(gJ,_.a);gJ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
gJ.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Dy.Object.defineProperties(gJ.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var O,x;return(O=this.data)==null?void 0:(x=O.title)==null?void 0:x.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var O;return _.p_((O=this.data)==null?void 0:O.onTapCommand)}}});
_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],gJ.prototype,"ytEndpointBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gJ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],gJ.prototype,"itemId",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],gJ.prototype,"hasPromotion",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],gJ.prototype,"innertubeCommand",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],gJ);
_.n(gJ,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Ubo===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;R5c===void 0&&(R5c=document.createElement("template"));var l=R5c;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Ubo=O}O=Ubo;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var a0h;var mbz;var $1=function(){var O=_.a.apply(this,arguments)||this;O.id="product-picker";O.selected=!1;O.closeButtonId="close-button";O.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return O};
_.c($1,_.a);_.b=$1.prototype;_.b.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.b.observeSelected=function(){this.selected&&this.hostElement.focus();var O=_.$U(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");O.length&&O[0].focus()};
_.b.onCloseBuyFlow=function(){_.wr(this.hostElement,"picker-cancelled")};
_.b.onCloseClick=function(){_.wr(this.hostElement,"picker-cancelled");var O;((O=this.data)==null?0:O.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.closeButton,_.gf))};
_.b.onCloseEngageWithAudienceEditorPanels=function(){_.wr(this.hostElement,"picker-cancelled")};
$1.prototype.observeSelected=$1.prototype.observeSelected;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$1.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$1.prototype,"id",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$1.prototype,"selected",void 0);_.B([_.R(),_.v("design:type",Object)],$1.prototype,"closeButtonId",void 0);_.B([_.T1("selected"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$1.prototype,"observeSelected",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],$1);
_.n($1,"yt-live-chat-product-picker-panel-view-model",function(){if(mbz===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;a0h===void 0&&(a0h=document.createElement("template"));var l=a0h;e.call(x,l.content.cloneNode(!0),O.content.firstChild);mbz=O}O=mbz;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var sOz;var WKh;var i0=function(){var O=_.a.apply(this,arguments)||this;O.iconId="";O.icon="";O.disabled=!1;O.systemIcons=_.t("kevlar_system_icons");return O};
_.c(i0,_.a);_.b=i0.prototype;_.b.computeIconId=function(O){return O&&O.icon&&O.icon.iconType?O.icon.iconType.toLowerCase():""};
_.b.computeIcon=function(O){return O&&O.icon&&O.icon.iconType?(O=O.icon.iconType.toLowerCase(),(O.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+O):""};
_.b.computeDisabled=function(O){return!!O};
_.b.computeCommand=function(O,x){return x?void 0:O};
_.b.computeTooltip=function(O,x){return x&&O?O:""};
_.b.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Dy.Object.defineProperties(i0.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var O="",x,e,l;if((x=this.data)==null?0:(e=x.text)==null?0:(l=e.runs)==null?0:l.length)O=this.data.text.runs[0].text||"";else{var C,Q;if((C=this.data)==null?0:(Q=C.text)==null?0:Q.simpleText)O=this.data.text.simpleText}var L,k,M;if((L=this.data)==null?0:(k=L.subtext)==null?0:(M=k.runs)==null?0:M.length)O&&(O+=". "),O+=this.data.subtext.runs[0].text||"";else{var G,X;if((G=this.data)==null?0:(X=G.subtext)==
null?0:X.simpleText)O&&(O+=". "),O+=this.data.subtext.simpleText}return O}}});
_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],i0.prototype,"ytEndpointBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],i0.prototype,"data",void 0);_.B([_.R({computed:"computeIconId(data)",reflectToAttribute:!0}),_.v("design:type",Object)],i0.prototype,"iconId",void 0);
_.B([_.R({computed:"computeIcon(data)",reflectToAttribute:!0}),_.v("design:type",Object)],i0.prototype,"icon",void 0);_.B([_.R({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.v("design:type",Object)],i0.prototype,"disabled",void 0);_.B([_.R({computed:"computeCommand(data.command, disabled)"}),_.v("design:type",Object)],i0.prototype,"command",void 0);_.B([_.R({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.v("design:type",String)],i0.prototype,"tooltip",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i0.prototype,"systemIcons",void 0);_.B([_.p("data.text","data.subtext"),_.R(),_.v("design:type",String),_.v("design:paramtypes",[])],i0.prototype,"ariaLabel",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],i0);
_.n(i0,"yt-live-chat-product-button-renderer",function(){if(WKh===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;sOz===void 0&&(sOz=document.createElement("template"));var l=sOz;e.call(x,l.content.cloneNode(!0),O.content.firstChild);WKh=O}O=WKh;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var h5c;var z5y;var OH=function(){var O=_.a.apply(this,arguments)||this;O.selected=!1;O.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 O};
_.c(OH,_.a);_.b=OH.prototype;_.b.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"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.b.computeId=function(O){return O.id||""};
_.b.onCloseClick=function(){_.wr(this.hostElement,"picker-cancelled")};
_.b.observeSelected=function(){this.selected&&this.hostElement.focus();var O=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");O.length&&O[0].focus()};
_.b.onCloseBuyFlow=function(){_.wr(this.hostElement,"picker-cancelled")};
_.b.onCloseEngageWithAudienceEditorPanels=function(){_.wr(this.hostElement,"picker-cancelled")};
OH.prototype.observeSelected=OH.prototype.observeSelected;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],OH.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],OH.prototype,"data",void 0);
_.B([_.R({computed:"computeId(data)",reflectToAttribute:!0}),_.v("design:type",String)],OH.prototype,"id",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],OH.prototype,"selected",void 0);_.B([_.T1("selected"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],OH.prototype,"observeSelected",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],OH);
_.n(OH,"yt-live-chat-product-picker-renderer",function(){if(z5y===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;h5c===void 0&&(h5c=document.createElement("template"));var l=h5c;e.call(x,l.content.cloneNode(!0),O.content.firstChild);z5y=O}O=z5y;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var rqw;var Hbo;var KKU;var dbo;var xF=function(){return _.a.apply(this,arguments)||this};
_.c(xF,_.a);xF.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()};
xF.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
xF.prototype.created=function(){this.ids={background:_.MI(),maskOne:_.MI(),maskTwo:_.MI(),gradient:_.MI(),largeBackground:_.MI(),largeGradientOne:_.MI(),largeGradientTwo:_.MI(),largeGradientPath:_.MI()}};
xF.prototype.maybeLoadAnimationBackground=xF.prototype.maybeLoadAnimationBackground;_.B([_.R({value:!1}),_.v("design:type",Boolean)],xF.prototype,"useLargeBackground",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],xF.prototype,"useAnimationBackground",void 0);_.B([_.R({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.v("design:type",Boolean)],xF.prototype,"useRegularBackground",void 0);
_.B([_.R(),_.v("design:type",Object)],xF.prototype,"ids",void 0);_.B([_.R(),_.v("design:type",Object)],xF.prototype,"lottieAnimation",void 0);_.B([_.kX("#animation-background"),_.v("design:type",HTMLDivElement)],xF.prototype,"animationBackground",void 0);_.B([_.T1("useAnimationBackground"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xF.prototype,"maybeLoadAnimationBackground",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],xF);
_.n(xF,"yt-live-interactivity-component-background",function(){if(dbo===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;KKU===void 0&&(KKU=document.createElement("template"));var l=KKU;e.call(x,l.content.cloneNode(!0),O.content.firstChild);dbo=O}O=dbo;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var e4=function(){var O=_.a.apply(this,arguments)||this;O.characterCount=0;O.showInputErrorMessage=!1;O.startQnaRequestInFlight=!1;O.modern=_.t("web_button_rework_with_live");O.buttonOverrides={style:"mono",type:"filled"};O.closeButtonOverrides={iconPosition:"icon-only"};O.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return O};
_.c(e4,_.a);_.b=e4.prototype;
_.b.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]]"}}}}}};
_.b.onCharacterCountChanged=function(O){var x,e,l,C,Q=(e=_.q(this==null?void 0:(x=this.data)==null?void 0:x.creatorCallForQuestions,XEH))==null?void 0:(l=e.inputField)==null?void 0:(C=l.liveChatTextInputFieldRenderer)==null?void 0:C.maxCharacterLimit,L,k;Q!=null&&(O==null?void 0:(L=O.detail)==null?void 0:L.characterCount)!=null&&_.q(this==null?void 0:(k=this.data)==null?void 0:k.startButton,_.wf)&&(x=O.detail.characterCount>Q,this.set("data.startButton.buttonRenderer.isDisabled",O.detail.characterCount===
0||x),this.showInputErrorMessage=x)};
_.b.onCloseClick=function(){_.wr(this.hostElement,"picker-cancelled");_.Sh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.b.onPickerCancelled=function(){var O=_.$U(this.hostElement).querySelector("#qna-creator-text-input-field");O&&O.setLiveChatRichMessageInput(null)};
_.b.handleOpenQnaStartPanel=function(){var O=_.$U(this.hostElement).querySelector("#qna-creator-text-input-field");O&&O.focus()};
_.b.handleStartButtonAction=function(O){var x=this;if(O.detail.actionName==="yt-service-request"&&(O.stopPropagation(),O=O.detail.args[1])){var e=_.$U(this.hostElement).querySelector("#qna-creator-text-input-field"),l;(e==null?0:(l=e.liveChatRichMessageInput)==null?0:l.textSegments)&&e.liveChatRichMessageInput.textSegments.length!==0&&(l={rich_message:_.a2(e.liveChatRichMessageInput)},_.N9(this.hostElement,[O,l]).then(function(){_.wr(x.hostElement,"picker-cancelled")}))}};
_.b.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.b.handleServiceRequestCompleted=function(O){var x;O=O==null?void 0:(x=O.detail)==null?void 0:x.data;(O==null?0:O.actions)&&O.actions.length>0?this.startQnaRequestInFlight=!1:_.Sh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.b.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
e4.prototype.handleServiceRequestError=e4.prototype.handleServiceRequestError;e4.prototype.handleServiceRequestCompleted=e4.prototype.handleServiceRequestCompleted;e4.prototype.handleServiceRequestSent=e4.prototype.handleServiceRequestSent;e4.prototype.onPickerCancelled=e4.prototype.onPickerCancelled;e4.prototype.onCharacterCountChanged=e4.prototype.onCharacterCountChanged;_.B([_.R(),_.v("design:type",Object)],e4.prototype,"characterCount",void 0);
_.B([_.R(),_.v("design:type",Object)],e4.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],e4.prototype,"showInputErrorMessage",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],e4.prototype,"startQnaRequestInFlight",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],e4.prototype,"modern",void 0);_.B([_.R(),_.v("design:type",Object)],e4.prototype,"buttonOverrides",void 0);
_.B([_.R(),_.v("design:type",Object)],e4.prototype,"closeButtonOverrides",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],e4.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.V(_.QU.YtLiveChatItemBehavior),_.v("design:type",_.bn)],e4.prototype,"ytLiveChatItemBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],e4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.bH("yt-live-chat-text-input-field-renderer-character-count-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],e4.prototype,"onCharacterCountChanged",null);_.B([_.bH("picker-cancelled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],e4.prototype,"onPickerCancelled",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],e4.prototype,"handleServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],e4.prototype,"handleServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],e4.prototype,"handleServiceRequestError",null);_.B([_.H({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],e4);
_.n(e4,"yt-live-chat-qna-start-panel-renderer",function(){if(Hbo===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;rqw===void 0&&(rqw=document.createElement("template"));var l=rqw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Hbo=O}O=Hbo;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var ncc;var ucS;var lj=function(){return _.a.apply(this,arguments)||this};
_.c(lj,_.a);lj.prototype.dismiss=function(){_.wr(this.hostElement,"yt-live-chat-error-message-dismiss")};
lj.prototype.edit=function(){_.wr(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.B([_.R(),_.v("design:type",Object)],lj.prototype,"data",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],lj);
_.n(lj,"yt-live-chat-text-actions-error-message-renderer",function(){if(ucS===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ncc===void 0&&(ncc=document.createElement("template"));var l=ncc;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ucS=O}O=ucS;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var YCh;var By7;var vco;var f0z;var Ca=function(){var O=_.a.apply(this,arguments)||this;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.newnessDotEligible=!1;return O};
_.c(Ca,_.a);Ca.prototype.sendReaction=function(){var O,x,e=((O=this.data)==null?void 0:O.emojiId)||((x=this.data)==null?void 0:x.emoteId),l;e&&((l=this.data)==null?0:l.shouldTriggerAnimation)&&_.Sh(this.hostElement,"yt-create-user-reaction-animation",[e]);var C;(O=_.p_((C=this.data)==null?void 0:C.onTap))&&_.C_(O,this.hostElement);this.showNewnessDot&&_.Sh(this.hostElement,"yt-hide-newness-dot")};
Ca.prototype.onClick=function(O){(!O||O.clientX||O.clientY)&&this.sendReaction()};
Ca.prototype.onKeyDown=function(O){O.key!=="Enter"&&O.key!==" "||O.repeat||this.sendReaction()};
_.Dy.Object.defineProperties(Ca.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!(((O=this.data)==null?0:O.emojiId)||((x=this.data)==null?0:x.emoteId))}}});
_.B([_.R(),_.v("design:type",Object)],Ca.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ca.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],Ca.prototype,"newnessDotEligible",void 0);_.B([_.p("data.maybeShowNewnessDot"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ca.prototype,"showNewnessDot",null);_.B([_.p("data.emojiId","data.emoteId"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ca.prototype,"useYtImage",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Ca);
_.n(Ca,"yt-reaction-control-panel-button-view-model",function(){if(f0z===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;vco===void 0&&(vco=document.createElement("template"));var l=vco;e.call(x,l.content.cloneNode(!0),O.content.firstChild);f0z=O}O=f0z;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Jqw;var wKc;var QZ=function(){var O=_.a.apply(this,arguments)||this;O.reactionControlPanelExpanded=!1;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.newnessDotEligible=!1;return O};
_.c(QZ,_.a);_.b=QZ.prototype;_.b.expandedButtonsChanged=function(){var O,x;_.lH(this.hostElement,{"--expanded-buttons-height":((x=(O=this.expandedButtonsData)==null?void 0:O.length)!=null?x:0)*36+"px"})};
_.b.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}}};
_.b.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.b.onMouseLeave=function(){var O=this;this.collapseTimer=setTimeout(function(){O.reactionControlPanelExpanded=!1},500)};
_.b.onFocusIn=function(){this.onMouseEnter()};
_.b.onFocusOut=function(){this.onMouseLeave()};
_.b.onCollapsedButtonFocusIn=function(){var O=this;setTimeout(function(){var x;(x=O.expandedButtons.querySelector("button"))==null||x.focus()},100)};
_.b.onCollapsedButtonFocusOut=function(O){O.stopPropagation()};
_.Dy.Object.defineProperties(QZ.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var O,x;return _.HX.unsafeClone((O=this.liveReactionsData)==null?void 0:O.emojiButtonData)||((x=this.data)==null?void 0:x.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var O;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((O=this.data)==null||!O.maybeShowNewnessDot)}}});
QZ.prototype.expandedButtonsChanged=QZ.prototype.expandedButtonsChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],QZ.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],QZ.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],QZ.prototype,"reactionControlPanelExpanded",void 0);_.B([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:v8w}),_.v("design:type",Object)],QZ.prototype,"liveReactionsData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],QZ.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],QZ.prototype,"newnessDotEligible",void 0);
_.B([_.p("liveReactionsData","data.expandedButtons"),_.v("design:type",Object),_.v("design:paramtypes",[])],QZ.prototype,"expandedButtonsData",null);_.B([_.p("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.R({reflectToAttribute:!0}),_.v("design:type",Object),_.v("design:paramtypes",[])],QZ.prototype,"showNewnessDot",null);_.B([_.kX("#expanded-buttons"),_.v("design:type",HTMLElement)],QZ.prototype,"expandedButtons",void 0);
_.B([_.T1("expandedButtonsData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],QZ.prototype,"expandedButtonsChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],QZ);
_.n(QZ,"yt-reaction-control-panel-view-model",function(){if(wKc===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Jqw===void 0&&(Jqw=document.createElement("template"));var l=Jqw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);wKc=O}O=wKc;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var bj=new _.jC("yt-live-chat"),SCE=Date.parse("2024-7-24"),Tq=function(){var O=_.a.apply(this,arguments)||this;O.emojiManager=_.Cn;O.newnessDotEligible=!1;O.newnessDotImpressionCounted=!1;O.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return O};
_.c(Tq,_.a);_.b=Tq.prototype;_.b.emojiCustomizationEnabledChanged=function(){var O;((O=this.data)==null?0:O.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((O=bj.getCreationTime("emoji-customization-count"))&&O<SCE&&bj.set("emoji-customization-count","0"),O=Number(bj.get("emoji-customization-count"))||0,O<3&&(this.newnessDotEligible=!0,bj.set("emoji-customization-count",(O+1).toString())),this.newnessDotImpressionCounted=!0)};
_.b.hideNewnessDot=function(){this.newnessDotEligible=!1;bj.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.b.handleReactionsMute=function(O){var x=_.Pq(),e=_.O9(206221),l={checkboxData:{state:O?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};x&&_.KZ(x,e,l);this.reactionsMuted=O};
_.b.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.b.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}}};
_.Dy.Object.defineProperties(Tq.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var O;return(!((O=this.liveReactionsData)==null||!O.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Tq.prototype.liveReactionsSettingChanged=Tq.prototype.liveReactionsSettingChanged;Tq.prototype.emojiCustomizationEnabledChanged=Tq.prototype.emojiCustomizationEnabledChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$q),_.v("design:type",Object)],Tq.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Tq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Tq.prototype,"data",void 0);_.B([_.R(),_.v("design:type",_.x5)],Tq.prototype,"emojiManager",void 0);_.B([_.R(),_.v("design:type",Object)],Tq.prototype,"newnessDotEligible",void 0);_.B([_.R(),_.v("design:type",Object)],Tq.prototype,"newnessDotImpressionCounted",void 0);
_.B([_.R({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:fdH}),_.v("design:type",Boolean)],Tq.prototype,"liveReactionsSetting",void 0);_.B([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:v8w}),_.v("design:type",Object)],Tq.prototype,"liveReactionsData",void 0);_.B([_.R({value:function(){var O=_.t("enable_lwe_web_mute"),x=bj.get("allow-reactions");return x===void 0?!1:!x&&O}}),
_.v("design:type",Boolean)],Tq.prototype,"reactionsMuted",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Tq.prototype,"liveReactionsEnabled",null);_.B([_.T1("data.emojiCustomizationEnabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Tq.prototype,"emojiCustomizationEnabledChanged",null);
_.B([_.T1("liveReactionsEnabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Tq.prototype,"liveReactionsSettingChanged",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Tq);
_.n(Tq,"yt-reaction-control-panel-overlay-view-model",function(){if(By7===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;YCh===void 0&&(YCh=document.createElement("template"));var l=YCh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);By7=O}O=By7;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var jO7={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(O){var x=this.$.pickers.selected;if(x){_.$U(this.hostElement).removeAttribute(x+"-open");var e="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(e="#picker-buttons",x==="emoji"&&_.$U(this.hostElement).querySelector("#emoji-picker-button")&&(e="#emoji-picker-button"));if(e=_.$U(this.hostElement).querySelector(e).querySelector("#"+x))e.active=!1}e=O;x==O&&(e=null);x!=
O&&_.$U(this.hostElement).setAttribute(O+"-open","");this.$.pickers.selected=e;_.Sh(this.hostElement,"yt-live-chat-picker-changed",[e])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var La=function(){var O=_.a.apply(this,arguments)||this;O.numSentMessages=0;O.timeoutDurationMs=0;O.timeoutMs=0;O.lastTimeoutTimeMs=0;O.pendingMessageId="";O.hasFiredInitialFocusActions=!1;O.isBeforeFocusEnabled=!0;O.id="";O.characterCount=0;O.maxCharacterLimit=0;O.remainingCharacterCount=0;O.inputExpanded=!1;O.buttonOverrides={iconPosition:"icon-only"};O.inReplyPanel=!1;O.countdownRatio=0;O.isTooltipVisible=!1;O.tooltipTimeout=1E4;O.systemIcons=_.t("kevlar_system_icons");O.tallerEmojiPicker=_.t("live_chat_taller_emoji_picker");
O.sendReplyMessageInFlight=!1;O.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"};O.onResize=function(){O.maybeToggleCharacterCount()};
return O};
_.c(La,_.a);_.b=La.prototype;
_.b.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"}}}};
_.b.attached=function(){window.addEventListener("resize",this.onResize)};
_.b.detached=function(){window.removeEventListener("resize",this.onResize)};
_.b.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.b.sendMessage=function(){var O=this,x,e,l,C;return _.A(function(Q){if(O.sendDisabled)return Q.return();O.isTooltipVisible&&_.Sh(O.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(O.data.sendButton&&O.data.sendButton.buttonRenderer){O.input.completeEmojis();x=O.data.sendButton.buttonRenderer.serviceEndpoint;if(!x)return Q.return();l=((e=_.q(x,_.em3))==null?void 0:e.clientIdPrefix)||"";C={client_message_id:l+String(O.numSentMessages++),rich_message:_.a2(O.input.liveChatRichMessageInput)};
O.pendingMessageId=C.client_message_id;O.inReplyPanel&&(O.sendReplyMessageInFlight=!0);_.N9(O.hostElement,[x,C]);O.input.setLiveChatRichMessageInput(null)}_.Ra(Q)})};
_.b.handleSendButtonAction=function(O){O.detail.actionName==="yt-service-request"&&(O.stopPropagation(),this.sendMessage())};
_.b.onSendCompleted=function(O,x){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(O=this.get("timeoutDurationUsec",x.data))&&this.handleTimeout(Number(O)/1E3);this.errorMessage=this.get("errorMessage",x.data);this.pendingMessageId=""};
_.b.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Sh(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.b.handlePickerButtonToggle=function(O){O=O.detail.targetId;this.ytPickerBehavior.togglePicker_(O);if(O==="emoji")this.input.focus();else if(O==="qna-start-panel"){var x,e;(x=_.$U(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(e=x.querySelector("#qna-creator-text-input-field"))==null||e.focus()}};
_.b.onComponentReplaced=function(O){var x,e;O.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((x=O.replacement.liveChatMessageInputRenderer)==null?0:(e=x.headerRenderer)==null?0:e.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.b.onEmojiSelect=function(O){this.input.focus();this.input.insertEmoji(O.detail)};
_.b.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.b.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Sh(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Sh(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.b.onOpenPopupAction=function(O,x){var e=this;x===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Sh(e.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.b.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.b.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.b.focusChanged=function(){this.maybeToggleCharacterCount()};
_.b.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var O=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",O>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.b.computeId=function(){return this.data&&this.data.targetId||""};
_.b.computeSendDisabled=function(O,x,e,l){O=!!(!O||x&&O>x||l);(x=_.$U(this.hostElement).querySelector("#send-button"))&&x.children.length&&(x.children[0].disabled=O);return O};
_.b.handleTimeout=function(O){this.timeoutDurationMs=this.timeoutMs=O;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.b.updateTimeout=function(O){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(O-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=O,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.b.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.b.onErrorMessageEdit=function(O){this.input.setLiveChatRichMessageInput(O.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.b.errorMessageChanged=function(){var O=this;_.WZ(function(){_.Sh(O.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.b.computeAuthorNameColor=function(O){var x;if(_.t("live_chat_author_name_color_usernames")&&(O==null?0:(x=O.authorName)==null?0:x.simpleText))return _.ENr(_.tT8(O.authorName.simpleText));if(_.t("live_chat_seed_color_usernames")&&(O==null?0:O.authorSeedColorArgb))return _.ENr(_.iH(O.authorSeedColorArgb));if(_.t("live_chat_colored_usernames"))return"#cc0000";var e;return _.t("live_chat_simple_color_usernames")&&(O==null?0:(e=O.authorName)==null?0:e.simpleText)&&(O==null?0:O.authorUsernameColorLight)&&
(O==null?0:O.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.iH(O.authorUsernameColorDark):_.iH(O.authorUsernameColorLight):""};
_.b.onIsTooltipVisibleChanged=function(){var O=_.$U(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){O.hidden=!1;O.setAttribute("role","alert")},0):(O.hidden=!0,O.removeAttribute("role"))};
_.b.onFocusedChanged=function(O){this.inputFocused=O.detail.value};
_.Dy.Object.defineProperties(La.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 O;return!((O=this.data)==null||!O.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:(x=O.pickers)==null?void 0:x.find(function(e){return e.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return O?this.ytRendererBehavior.getSimpleString(O):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
La.prototype.onIsTooltipVisibleChanged=La.prototype.onIsTooltipVisibleChanged;La.prototype.errorMessageChanged=La.prototype.errorMessageChanged;La.prototype.onErrorMessageEdit=La.prototype.onErrorMessageEdit;La.prototype.onErrorMessageDismiss=La.prototype.onErrorMessageDismiss;La.prototype.focusChanged=La.prototype.focusChanged;La.prototype.characterCountChanged=La.prototype.characterCountChanged;La.prototype.onEmojiSelect=La.prototype.onEmojiSelect;La.prototype.handlePickerButtonToggle=La.prototype.handlePickerButtonToggle;
La.prototype.onSendError=La.prototype.onSendError;La.prototype.onSendCompleted=La.prototype.onSendCompleted;La.prototype.sendMessage=La.prototype.sendMessage;La.prototype.dataChanged=La.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],La.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(jO7.YtPickerBehavior),_.v("design:type",Object)],La.prototype,"ytPickerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.iX.YtLiveChatTooltipTargetingBehavior),_.v("design:type",Object)],La.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"hasFiredInitialFocusActions",void 0);
_.B([_.R(),_.v("design:type",Object)],La.prototype,"isBeforeFocusEnabled",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"data",void 0);_.B([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.v("design:type",Object)],La.prototype,"id",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"characterCount",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"maxCharacterLimit",void 0);
_.B([_.R(),_.v("design:type",Object)],La.prototype,"remainingCharacterCount",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],La.prototype,"inputExpanded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],La.prototype,"inputFocused",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],La.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.B([_.R(),_.v("design:type",_.k5)],La.prototype,"participantsManager",void 0);
_.B([_.R(),_.v("design:type",Object)],La.prototype,"buttonOverrides",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],La.prototype,"inReplyPanel",void 0);_.B([_.p("characterCount, maxCharacterLimit, countdownActive"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],La.prototype,"sendDisabled",null);_.B([_.R(),_.v("design:type",Object)],La.prototype,"countdownRatio",void 0);
_.B([_.p("countdownRatio"),_.v("design:type",Number),_.v("design:paramtypes",[])],La.prototype,"countdownStrokeDashOffset",null);_.B([_.p("countdownRatio"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],La.prototype,"countdownActive",null);_.B([_.p("data.interactionMessage"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],La.prototype,"hasInteractionMessage",null);
_.B([_.p("data.emojiPickerButton"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],La.prototype,"hasEmojiPickerButton",null);_.B([_.p("data, characterCount"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],La.prototype,"showAvatar",null);_.B([_.p("data.pickers"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],La.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.R(),_.v("design:type",Object)],La.prototype,"errorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"genericErrorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"isTooltipVisible",void 0);_.B([_.R(),_.v("design:type",Object)],La.prototype,"tooltipTimeout",void 0);_.B([_.p("data.onInitialFocusCommand"),_.v("design:type",String),_.v("design:paramtypes",[])],La.prototype,"tooltipMessage",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],La.prototype,"systemIcons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],La.prototype,"tallerEmojiPicker",void 0);_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],La.prototype,"authorNameColor",null);_.B([_.R(),_.v("design:type",Object)],La.prototype,"sendReplyMessageInFlight",void 0);_.B([_.kX("#input"),_.v("design:type",_.NQJ)],La.prototype,"input",void 0);
_.B([_.kX("#count"),_.v("design:type",HTMLElement)],La.prototype,"count",void 0);_.B([_.kX("#input-container"),_.v("design:type",HTMLElement)],La.prototype,"inputContainer",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"dataChanged",null);_.B([_.bH("yt-live-chat-send-message"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],La.prototype,"sendMessage",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[Event,_.n7]),_.v("design:returntype")],La.prototype,"onSendCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"onSendError",null);
_.B([_.bH("yt-live-chat-icon-toggle-button-renderer-toggle"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],La.prototype,"handlePickerButtonToggle",null);_.B([_.bH("yt-emoji-select"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],La.prototype,"onEmojiSelect",null);
_.B([_.T1("characterCount"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"characterCountChanged",null);_.B([_.T1("inputFocused"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"focusChanged",null);_.B([_.bH("yt-live-chat-error-message-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"onErrorMessageDismiss",null);
_.B([_.bH("yt-live-chat-error-message-edit"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],La.prototype,"onErrorMessageEdit",null);_.B([_.T1("errorMessage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"errorMessageChanged",null);_.B([_.T1("isTooltipVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],La.prototype,"onIsTooltipVisibleChanged",null);
_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],La);
_.n(La,"yt-live-chat-message-input-renderer",function(){if(ocE===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;XKy===void 0&&(XKy=document.createElement("template"));var l=XKy;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ocE=O}O=ocE;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Nys;var gcU;var kF=function(){var O=_.a.apply(this,arguments)||this;O.systemIcons=_.t("kevlar_system_icons");O.firedOnClickCommand=!1;O.inReplyPanel=!1;return O};
_.c(kF,_.a);
kF.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"}}}};
kF.prototype.onButtonToggle=function(O){O.target.disabled||this.ytPickerBehavior.togglePicker_(O.detail.targetId)};
kF.prototype.onClick=function(){var O=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Sh(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return O.firedOnClickCommand=!1},5E3))};
_.Dy.Object.defineProperties(kF.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:(x=O.panels)==null?void 0:x.find(function(e){return e.liveChatProductPickerPanelViewModel}))!==void 0}}});
kF.prototype.onButtonToggle=kF.prototype.onButtonToggle;_.B([_.V(jO7.YtPickerBehavior),_.v("design:type",Object)],kF.prototype,"ytPickerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kF.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kF.prototype,"systemIcons",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Object)],kF.prototype,"firedOnClickCommand",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kF.prototype,"inReplyPanel",void 0);_.B([_.p("data.pickers"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],kF.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.bH("yt-live-chat-icon-toggle-button-renderer-toggle"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],kF.prototype,"onButtonToggle",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],kF);
_.n(kF,"yt-live-chat-restricted-participation-renderer",function(){if(gcU===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Nys===void 0&&(Nys=document.createElement("template"));var l=Nys;e.call(x,l.content.cloneNode(!0),O.content.firstChild);gcU=O}O=gcU;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var Ap=function(){var O=_.a.apply(this,arguments)||this;O.genericErrorMessage=_.KA("Error, try again.");O.inReplyPanel=!1;O.hideBorder=!1;return O};
_.c(Ap,_.a);Ap.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}}}}}};
_.Dy.Object.defineProperties(Ap,{template:{configurable:!0,enumerable:!0,get:function(){return Aqs()}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ap.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Ap.prototype,"genericErrorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],Ap.prototype,"inReplyPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ap.prototype,"hideBorder",void 0);
_.B([_.Va({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Ap);_.n(Ap,"yt-live-chat-engagement-panel-input-renderer",function(){return Aqs()},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var $bw,ibE;$bw=_.O9(115994);ibE=_.O9(115993);_.MJ=function(O,x,e){var l=this;var C=e.dragDownAction;this.layer=0;this.JSC$22758_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return l.dragDownAction()}}}};
this.JSC$22758_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return l.dragDownAction()}}}};
this.fullscreen=!1;var Q=_.k0();_.Pu(Q,$bw,this.layer);_.Pu(Q,ibE,this.layer);this.dragDownAction=function(){C();_.s1(Q,{visualElement:l.fullscreen?$bw:ibE})};
this.gesture=new _.uW(O,x,this.getConfig(!1),"pandown");this.attach()};
_.MJ.prototype.attach=function(){this.gesture.attach()};
_.MJ.prototype.detach=function(){this.gesture.detach()};
_.MJ.prototype.update=function(O){this.fullscreen=O;var x=this.gesture;O=this.getConfig(O);x.config=O};
_.MJ.prototype.getConfig=function(O){return O?this.JSC$22758_watchFullScreenConfig:this.JSC$22758_watchConfig};var O$T={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(O){if(O&&O.length==1&&Array.isArray(O[0].loggingUrls)){O=_.HX.unsafeClone(O[0]);var x=this.macros||{},e=this.getAdModuleClient_();if(!e)return _.$7();O.loggingUrls.forEach(function(l){if(l.baseUrl){var C=l.baseUrl;var Q=x;Q=Q===void 0?{}:Q;C=e.getOptions().includes("replaceUrlMacros")?_.olT(e,"replaceUrlMacros",{url:C,additionalMapping:Q}):C;l.baseUrl=C}},this);
O=[O]}return _.N9(this.hostElement,O)},
getAdModuleClient_:function(){var O=_.f7(this);return O?(O=O.getPlayer())?new _.fg(O):null:null}}]};var xBa;var exI;var DH=function(){return _.a.apply(this,arguments)||this};
_.c(DH,_.a);DH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],DH.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],DH);
_.n(DH,"ytd-compact-tvfilm-entry-point-renderer",function(){if(exI!==void 0)return exI;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return exI=O},{mode:1});var lGh;var CbU;var QCT;var Gq=function(){return _.a.apply(this,arguments)||this};
_.c(Gq,_.a);Gq.prototype.ready=function(){this.initializeDefs()};
Gq.prototype.initializeDefs=function(){var O=this.meta.byKey("yt-icons"),x=_.$U(O).querySelector("#star"),e=_.$U(O).querySelector("#star_half");O=_.$U(O).querySelector("#star_border");x&&this.defs.appendChild(x.cloneNode(!0));e&&this.defs.appendChild(e.cloneNode(!0));O&&this.defs.appendChild(O.cloneNode(!0))};
Gq.prototype.percentChanged=function(){for(var O=this.rating;O.firstChild;)O.removeChild(O.firstChild);var x=Math.round(this.percent/10);O=Math.floor(x/2);x%=2;var e=5-O-x;this.appendStars("star",O,0);this.appendStars("star_half",x,O);this.appendStars("star_border",e,O+x)};
Gq.prototype.appendStars=function(O,x,e){for(var l=0;l<x;l++){var C=(18+this.spacing)*(l+e),Q=document.createElementNS("http://www.w3.org/2000/svg","use");_.muu(Q,"#"+O);Q.setAttribute("x",""+C);Q.setAttribute("y","0");this.rating.appendChild(Q)}};
Gq.prototype.percentChanged=Gq.prototype.percentChanged;_.B([_.kX("#defs"),_.v("design:type",HTMLElement)],Gq.prototype,"defs",void 0);_.B([_.kX("#rating"),_.v("design:type",HTMLElement)],Gq.prototype,"rating",void 0);_.B([_.R(),_.v("design:type",Number)],Gq.prototype,"percent",void 0);_.B([_.R({value:6}),_.v("design:type",Number)],Gq.prototype,"spacing",void 0);_.B([_.R({value:_.cP.create("iron-meta",{type:"iconset"})}),_.v("design:type",_.UF)],Gq.prototype,"meta",void 0);
_.B([_.T1("percent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gq.prototype,"percentChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-ratings"})],Gq);
_.n(Gq,"ytd-ratings",function(){if(QCT!==void 0)return QCT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return QCT=O},{mode:1});var b$S=function(){return _.a.apply(this,arguments)||this};
_.c(b$S,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],b$S.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],b$S.prototype,"data",void 0);_.B([_.H({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],b$S);
_.n(b$S,"ytd-offer-review-renderer",function(){if(CbU!==void 0)return CbU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return CbU=O},{mode:1});var F7=function(){var O=_.a.apply(this,arguments)||this;O.badges=[{textBadge:{label:_.KA("CC")}}];return O};
_.c(F7,_.a);_.b=F7.prototype;_.b.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.b.dataChanged=function(){var O=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(O&&O.commandMetadata&&_.q(O.commandMetadata,_.m5)&&_.q(O.commandMetadata,_.m5).fireAutomatically)_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}});else{var x;O&&((x=_.q(O,_.m5))==null?0:x.fireAutomatically)&&_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})}};
_.b.isEmptyContent=function(O){return this.isStorefrontEntryPointEmpty(O)&&this.shouldHideOfferModule(O)};
_.b.isStorefrontEntryPointEmpty=function(O){return!O||!O.storefrontEntryPoint};
_.b.shouldHideOfferModule=function(O){return!!O.hideVideoDetails};
_.b.isOfferModuleNavigationInactive=function(O){return!O.navigationEndpoint&&!O.serviceEndpoint};
_.b.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
F7.prototype.dataChanged=F7.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],F7.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.v("design:type",Boolean)],F7.prototype,"hidden",void 0);
_.B([_.R(),_.v("design:type",Object)],F7.prototype,"badges",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],F7.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],F7);
_.n(F7,"ytd-movie-offer-module-renderer",function(){if(lGh!==void 0)return lGh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return lGh=O},{mode:1});var TDs;var LQy=function(){return _.a.apply(this,arguments)||this};
_.c(LQy,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],LQy.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LQy.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],LQy);
_.n(LQy,"ytd-media-masthead-renderer",function(){if(TDs!==void 0)return TDs;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return TDs=O},{mode:1});var kCI;_.wP(_.gDF,"course-metadata-view-model",{props:{data:_.vs,isOverlay:_.vs}});var X7=function(){var O=_.a.apply(this,arguments)||this;O.isMetadataVisible=!1;O.modernPanels=_.t("kevlar_watch_modern_panels");O.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return O};
_.c(X7,_.a);_.b=X7.prototype;
_.b.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"}}}}};
_.b.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.b.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.b.expanderChanged=function(){var O;if((O=this.data)==null?0:O.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.b.isExpandButtonToggled=function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.expandMetadataButton,_.iN))==null?void 0:x.isToggled};
_.b.onVisibilityButtonClick=function(){var O;if((O=this.data)==null?0:O.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.b.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
X7.prototype.expanderChanged=X7.prototype.expanderChanged;X7.prototype.dataChanged=X7.prototype.dataChanged;X7.prototype.descriptionChanged=X7.prototype.descriptionChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V([_.Wt.YtActionHandlerBehavior]),_.v("design:type",Object)],X7.prototype,"actionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],X7.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],X7.prototype,"isMetadataVisible",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],X7.prototype,"modernPanels",void 0);_.B([_.kX("#expander"),_.v("design:type",Object)],X7.prototype,"expander",void 0);_.B([_.T1("data.description"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],X7.prototype,"descriptionChanged",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],X7.prototype,"dataChanged",null);_.B([_.T1("isMetadataVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],X7.prototype,"expanderChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],X7);
_.n(X7,"ytd-tvfilm-offer-module-renderer",function(){if(kCI!==void 0)return kCI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kCI=O},{mode:2});var ANS;var oI=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return O};
_.c(oI,_.a);oI.prototype.dataChanged=function(){this.hostElement.hidden=!1};
oI.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
oI.prototype.onThumbnailTap=function(O){this.data&&this.data.serviceEndpoint&&(_.GG().resolve(_.Xc).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),O.stopPropagation())};
oI.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
oI.prototype.dataChanged=oI.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oI.prototype,"rendererBehaviors",void 0);_.B([_.V([_.Wt.YtActionHandlerBehavior]),_.v("design:type",Object)],oI.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oI.prototype,"data",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oI.prototype,"dataChanged",null);_.B([_.H({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],oI);
_.n(oI,"ytd-unlimited-offer-module-renderer",function(){if(ANS!==void 0)return ANS;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ANS=O},{mode:1});var MCH;var DBT;var yZ=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return O};
_.c(yZ,_.a);yZ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
yZ.prototype.handleRelatedChipCommand=function(O){O=_.q(O,Wxa);var x=O.contents;x?_.jh(this.hostElement,"yt-item-section-replace-action",[x,O.targetSectionIdentifier]):_.jh(this.hostElement,"yt-item-section-continuation-action",[O.continuationData,O.targetSectionIdentifier])};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],yZ.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yZ.prototype,"data",void 0);_.B([_.Va({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],yZ);
_.n(yZ,"yt-related-chip-cloud-renderer",function(){if(DBT===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;MCH===void 0&&(MCH=document.createElement("template"));var l=MCH;e.call(x,l.content.cloneNode(!0),O.content.firstChild);DBT=O}O=DBT;return O},{mode:2});var ZH=function(){var O=_.a.apply(this,arguments)||this;O.isTwoColumns=!0;O.watchFeedBigThumbs=_.t("kevlar_watch_feed_big_thumbs");O.watchFeedBigThumbsOnLockup=_.t("web_watch_next_big_thumbs");O.watchNextGridHideChips=_.t("kevlar_watch_grid_hide_chips");O.eligibleToSwitchToGrid=!0;O.disableShortsShelfHeightOverride=_.t("web_shorts_wn_shelf_ratio_tuning");O.isWatchNextGrid=!1;O.reuseComponents=!_.t("kevlar_watch_grid");O.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return O};
_.c(ZH,_.a);_.b=ZH.prototype;
_.b.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:!_.t("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}}};
_.b.getItemsPath=function(){return"data.results"};
_.b.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.b.created=function(){this.ytLazyListBehavior.initialCount=1};
_.b.ready=function(){_.lH(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%"})};
_.b.resultsChanged=function(){if(this.data&&this.data.results){for(var O=this.data.results,x=null,e=null,l=0;l<O.length;l++)O[l].relatedChipCloudRenderer?x=O[l].relatedChipCloudRenderer:O[l].itemSectionRenderer&&(e=O[l].itemSectionRenderer);if(x&&e)for(this.set("data.continuations",[]),O=_.q(x.content,_.wtp).chips,x=0;x<O.length;x++)if(l=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",O[x]),l.loadCached||!l.contents){l.contents=e.contents;break}}};
_.b.dataChanged=function(){var O=this,x;if((x=this.data)!=null&&x.results&&this.hasAllowedInstreamAd(this.playerData)){if(x=this.data.results.filter(function(k){return!!k.promotedSparklesWebRenderer})){for(var e=0;e<x.length;e++){var l=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",x[e]);
if(l)for(var C=0;C<l.length;C++)l[C]&&l[C].baseUrl&&_.On(l[C].baseUrl)}this.set("data.results",this.data.results.filter(function(k){return!k.promotedSparklesWebRenderer}))}if(x=this.data.results.filter(function(k){return!!O.getSparklesAd(k)})){x=_.T(x);
for(C=x.next();!C.done;C=x.next())if(l=e=void 0,C=(e=this.getSparklesAd(C.value))==null?void 0:(l=e.errorCommand)==null?void 0:l.loggingUrls)for(e=_.T(C),l=e.next();!l.done;l=e.next())(l=l.value)&&l.baseUrl&&_.On(l.baseUrl);var Q,L;this.set("data.results",(Q=this.data)==null?void 0:(L=Q.results)==null?void 0:L.filter(function(k){return!k.adSlotRenderer}))}}};
_.b.getSparklesAd=function(O){var x,e;O=_.q((x=O.adSlotRenderer)==null?void 0:(e=x.fulfillmentContent)==null?void 0:e.fulfilledLayout,_.Esd);return _.q(O==null?void 0:O.renderingContent,Nwc)};
_.b.hasAllowedInstreamAd=function(O){O=this.get("adPlacements",O)||[];for(var x=0;x<O.length;x++){var e=this.get("adPlacementRenderer.config.adPlacementConfig",O[x]);if(e&&e.suppressDisplayAd)return!0}return!1};
_.b.computeHideUnlimitedOfferModule=function(O,x){return O&&O.offerModule&&x&&O.offerModule.unlimitedOfferModuleRenderer&&O.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(x)?!0:!1};
_.b.hideUnlimitedOfferModuleChanged=function(){var O=_.$U(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");O&&(O.hidden=this.hideUnlimitedOfferModule)};
_.b.updateLockupContainerTypes=function(O){if(this.eligibleToSwitchToGrid){var x;(x=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||x.forEach(function(e){e.containerType=O})}};
_.b.computeHideTvfilmOfferModule=function(O,x){var e,l;return!!((O==null?0:(e=O.offerModule)==null?0:(l=e.tvfilmOfferModuleRenderer)==null?0:l.clientShouldSuppressIfCompanionAdDisplayed)&&x&&this.hasCompanionAds(x))};
_.b.hideTvfilmOfferModuleChanged=function(){var O=_.$U(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");O&&(O.hidden=this.hideTvfilmOfferModule)};
_.b.hasCompanionAds=function(O){O=this.get("adPlacements",O)||[];for(var x=0;x<O.length;x++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",O[x]))return!0;var e=void 0,l=void 0,C=void 0;if(!_.t("web_watch_top_banner_companion_check_killswitch")&&((e=O[x])==null?0:(l=e.adPlacementRenderer)==null?0:(C=l.renderer)==null?0:C.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.b.hasSuppressedResults=function(O){return O==null?!0:O.filter(function(x){return!x.continuationItemRenderer&&!x.compactPromotedVideoRenderer&&!x.promotedSparklesWebRenderer}).length===0};
_.b.computeShowButton=function(O,x){return this.isWatchNextGrid?O:O||this.hasSuppressedResults(x)};
_.b.showButtonChanged=function(){if(this.isWatchNextGrid){var O=_.$U(this.hostElement).querySelector("ytd-rich-grid-renderer");O&&this.showButton!==null&&(O.continuationShowButton=this.showButton)}else{O=_.$U(this.hostElement).querySelector("yt-next-continuation");var x=_.$U(this.hostElement).querySelector("ytd-continuation-item-renderer"),e=_.$U(this.hostElement).querySelector("ytd-item-section-renderer");O&&(O.showButton=this.showButton);x&&(x.showButton=this.showButton);e&&(e.continuationShowButton=
this.showButton)}};
_.b.continuationTap=function(O){var x;if(((x=this.data)==null?void 0:x.continuations)!=null&&O.target.tagName==="TP-YT-PAPER-BUTTON")for(O=this.data.continuations,x=0;x<O.length;x++)O[x].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(O[x].nextContinuationData||{})};
_.b.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("shown-items-changed",this.shownItems))};
_.Dy.Object.defineProperties(ZH.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 O;return!((O=this.shownItems)==null||!O.some(function(x){return!!x.lockupViewModel||x.compactVideoRenderer}))}}});
ZH.prototype.shownItemsChangedForBinding=ZH.prototype.shownItemsChangedForBinding;ZH.prototype.showButtonChanged=ZH.prototype.showButtonChanged;ZH.prototype.hideTvfilmOfferModuleChanged=ZH.prototype.hideTvfilmOfferModuleChanged;ZH.prototype.updateLockupContainerTypes=ZH.prototype.updateLockupContainerTypes;ZH.prototype.hideUnlimitedOfferModuleChanged=ZH.prototype.hideUnlimitedOfferModuleChanged;ZH.prototype.dataChanged=ZH.prototype.dataChanged;ZH.prototype.resultsChanged=ZH.prototype.resultsChanged;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],ZH.prototype,"ytLazyListBehavior",void 0);_.B([_.V(_.kv.YtNextContinuationBehavior),_.v("design:type",Object)],ZH.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.V(_.LN),_.v("design:type",Object)],ZH.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ZH.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ZH.prototype,"playerData",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],ZH.prototype,"autoFill",void 0);_.B([_.R({value:60}),_.v("design:type",Number)],ZH.prototype,"targetFramerate",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZH.prototype,"isTwoColumns",void 0);_.B([_.R(),_.v("design:type",Object)],ZH.prototype,"shownItems",void 0);_.B([_.R({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.v("design:type",Boolean)],ZH.prototype,"hideUnlimitedOfferModule",void 0);_.B([_.R({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.v("design:type",Boolean)],ZH.prototype,"hideTvfilmOfferModule",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZH.prototype,"watchFeedBigThumbs",void 0);_.B([_.R(),_.v("design:type",Object)],ZH.prototype,"watchFeedBigThumbsOnLockup",void 0);_.B([_.R(),_.v("design:type",Object)],ZH.prototype,"watchNextGridHideChips",void 0);_.B([_.R(),_.v("design:type",Object)],ZH.prototype,"eligibleToSwitchToGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZH.prototype,"disableShortsShelfHeightOverride",void 0);
_.B([_.R({selector:_.p7,reflectToAttribute:!0}),_.v("design:type",Object)],ZH.prototype,"isGridViewEnabled",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],ZH.prototype,"showMoreButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZH.prototype,"isWatchNextGrid",void 0);_.B([_.R({computed:"computeShowButton(showMoreButton, data.results)"}),_.v("design:type",Boolean)],ZH.prototype,"showButton",void 0);
_.B([_.G1("data.results.*"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZH.prototype,"resultsChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZH.prototype,"dataChanged",null);_.B([_.T1("hideUnlimitedOfferModule"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZH.prototype,"hideUnlimitedOfferModuleChanged",null);
_.B([_.p("isGridViewEnabled","containsLockups","data"),_.R({reflectToAttribute:!0}),_.v("design:type",Number),_.v("design:paramtypes",[])],ZH.prototype,"lockupContainerType",null);_.B([_.T1("lockupContainerType","data"),_.v("design:type",Function),_.v("design:paramtypes",[Number]),_.v("design:returntype")],ZH.prototype,"updateLockupContainerTypes",null);
_.B([_.T1("hideTvfilmOfferModule"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZH.prototype,"hideTvfilmOfferModuleChanged",null);_.B([_.T1("showButton"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZH.prototype,"showButtonChanged",null);_.B([_.T1("shownItems"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZH.prototype,"shownItemsChangedForBinding",null);
_.B([_.p("shownItems"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ZH.prototype,"containsLockups",null);
_.n(ZH,"ytd-watch-next-secondary-results-renderer",function(){if(xBa===void 0){var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);xBa=O}O=xBa;return O},{mode:1});var GCy;var EH=function(){var O=_.a.apply(this,arguments)||this;O.isCollapsed=!1;O.modernPanels=_.t("kevlar_watch_modern_panels");O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return O};
_.c(EH,_.a);_.b=EH.prototype;_.b.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.b.onDonateTap=function(){var O=this.get("data.donateButton.buttonRenderer.command");if(O){var x=_.Pq(),e=this.get("data.donateButton.buttonRenderer.trackingParams");x&&e&&_.KZ(x,_.Fv(e));this.ytOpenPopupBehavior.openPopup(O)}};
_.b.onShowMore=function(){this.isCollapsed=!1;var O=_.Pq(),x=this.get("data.expandButton.buttonRenderer.trackingParams");O&&x&&_.KZ(O,_.Fv(x))};
_.b.onShowLess=function(){this.isCollapsed=!0};
_.b.dataChanged=function(){_.lH(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.handleUpdate=function(O){if(O=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",O))this.set("data.startLabel",O.startLabel),this.set("data.endLabel",O.endLabel),this.set("data.progress",O.progress),this.set("data.amountRaisedLabel",O.amountRaisedLabel),this.dataChanged()};
_.b.handleOpenPopupAction=function(O){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",O)&&_.Sh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.b.computeHeaderBackgroundUrl=function(O,x){if(O)return x?O.headerBackgroundDarkUrl:O.headerBackgroundUrl};
_.b.isProgressBarVisible=function(O){return!(!O||O.progress===void 0)};
_.b.headerBackgroundClass=function(){return _.wz("HTML_DIR")==="rtl"?"flip":""};
EH.prototype.dataChanged=EH.prototype.dataChanged;_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],EH.prototype,"ytOpenPopupBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],EH.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],EH.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],EH.prototype,"isCollapsed",void 0);_.B([_.R({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.v("design:type",String)],EH.prototype,"headerBackgroundUrl",void 0);_.B([_.R(),_.v("design:type",Boolean)],EH.prototype,"isDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],EH.prototype,"modernPanels",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],EH.prototype,"dataChanged",null);_.B([_.H({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],EH);
_.n(EH,"ytd-donation-shelf-renderer",function(){if(GCy!==void 0)return GCy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GCy=O},{mode:1});var FQH;var XnS=function(){return _.a.apply(this,arguments)||this};
_.c(XnS,_.a);_.B([_.R(),_.v("design:type",Object)],XnS.prototype,"data",void 0);_.B([_.H({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],XnS);
_.n(XnS,"ytd-donation-unavailable-renderer",function(){if(FQH!==void 0)return FQH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return FQH=O},{mode:1});var oCy;var tp=function(){return _.a.apply(this,arguments)||this};
_.c(tp,_.a);tp.prototype.computeIconType=function(O){return O?"yt-icons:"+O.toLowerCase():null};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tp.prototype,"data",void 0);_.B([_.H({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],tp);
_.n(tp,"ytd-limited-state-message-renderer",function(){if(oCy!==void 0)return oCy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return oCy=O},{mode:1});var yNE;var qJ=function(){return _.a.apply(this,arguments)||this};
_.c(qJ,_.a);qJ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
qJ.prototype.onTap=function(O){var x=this.data&&this.data.endpoint;x&&!_.uk(_.n3(O),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.wr(this.hostElement,"yt-navigate",{endpoint:x})};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qJ.prototype,"data",void 0);_.B([_.H({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],qJ);
_.n(qJ,"ytd-autotagging-metadata-renderer",function(){if(yNE!==void 0)return yNE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return yNE=O},{mode:1});var Z$7;var Pz=function(){return _.a.apply(this,arguments)||this};
_.c(Pz,_.a);Pz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Pz.prototype,"data",void 0);_.B([_.H({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Pz);
_.n(Pz,"ytd-autotagging-metadata-row-renderer",function(){if(Z$7!==void 0)return Z$7;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Z$7=O},{mode:1});var ECI;var tCa;var cz=function(){var O=_.a.apply(this,arguments)||this;O.engagementPanelContent=!1;return O};
_.c(cz,_.a);cz.prototype.computeHasDividerLine=function(O,x){return O&&!x};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cz.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.v("design:type",Boolean)],cz.prototype,"hasDividerLine",void 0);_.B([_.R(),_.v("design:type",Object)],cz.prototype,"engagementPanelContent",void 0);
_.B([_.H({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],cz);
_.n(cz,"ytd-metadata-row-header-renderer",function(){if(tCa!==void 0)return tCa;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return tCa=O},{mode:1});var qYo;var II=function(){return _.a.apply(this,arguments)||this};
_.c(II,_.a);II.prototype.computeHasDividerLine=function(O){return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],II.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.v("design:type",Boolean)],II.prototype,"hasDividerLine",void 0);_.B([_.H({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],II);
_.n(II,"ytd-metadata-row-renderer",function(){if(qYo!==void 0)return qYo;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return qYo=O},{mode:1});var PbE;var cNH=function(){return _.a.apply(this,arguments)||this};
_.c(cNH,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],cNH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cNH.prototype,"data",void 0);_.B([_.H({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],cNH);
_.n(cNH,"ytd-metadata-with-image-row-renderer",function(){if(PbE!==void 0)return PbE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return PbE=O},{mode:1});var IGh;var VZ=function(){var O=_.a.apply(this,arguments)||this;O.rounded=!0;O.fixie=!1;O.fullWidth=!1;return O};
_.c(VZ,_.a);_.b=VZ.prototype;_.b.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.b.onDataChanged=function(){var O=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(x){O.onEndpointLinkKeyPress(x)}))};
_.b.onEndpointLinkKeyPress=function(O){O.target===this.endpointLink&&O.keyCode===13&&_.wr(this.hostElement,"click")};
_.b.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var O;if((O=this.data)==null?0:O.endpoint)_.gr(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.b.onYtNavigate=function(O){this.endpointHref||(O.stopPropagation(),O.preventDefault())};
_.b.onInformationButtonContainerClick=function(O){O.target.id!=="information-button-container"&&(O.stopPropagation(),O.preventDefault())};
_.b.computeStyle=function(O){return O};
_.b.computeIsThumbnailStyle=function(O){return O==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.b.computeThumbnailWidth=function(O){switch(O){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}};
_.b.computeThumbnailObjectFit=function(O){switch(O){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Dy.Object.defineProperties(VZ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
VZ.prototype.onYtNavigate=VZ.prototype.onYtNavigate;VZ.prototype.onClick=VZ.prototype.onClick;VZ.prototype.onDataChanged=VZ.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],VZ.prototype,"componentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],VZ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],VZ.prototype,"componentStyle",void 0);_.B([_.R({computed:"computeIsThumbnailStyle(data.style)"}),_.v("design:type",Boolean)],VZ.prototype,"isThumbnailStyle",void 0);_.B([_.R({computed:"computeThumbnailObjectFit(data.style)"}),_.v("design:type",String)],VZ.prototype,"thumbnailObjectFit",void 0);
_.B([_.R({computed:"computeThumbnailWidth(data.style)"}),_.v("design:type",Number)],VZ.prototype,"thumbnailWidth",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VZ.prototype,"rounded",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VZ.prototype,"fixie",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VZ.prototype,"fullWidth",void 0);_.B([_.kX("#endpoint-link"),_.v("design:type",HTMLAnchorElement)],VZ.prototype,"endpointLink",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VZ.prototype,"onDataChanged",null);_.B([_.p("data.endpoint"),_.v("design:type",Object),_.v("design:paramtypes",[])],VZ.prototype,"endpointHref",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],VZ.prototype,"onClick",null);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],VZ.prototype,"onYtNavigate",null);_.B([_.H({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],VZ);
_.n(VZ,"ytd-rich-metadata-renderer",function(){if(IGh!==void 0)return IGh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return IGh=O},{mode:_.gq("kevlar_poly_si_batch_j075")?1:2});var VCy;var pa=function(){var O=_.a.apply(this,arguments)||this;O.fixie=!1;O.fullWidth=!1;return O};
_.c(pa,_.a);pa.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
pa.prototype.computeHasDividerLine=function(O){return O};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pa.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.v("design:type",Boolean)],pa.prototype,"hasDividerLine",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pa.prototype,"fixie",void 0);_.B([_.R(),_.v("design:type",Object)],pa.prototype,"fullWidth",void 0);
_.B([_.H({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],pa);
_.n(pa,"ytd-rich-metadata-row-renderer",function(){if(VCy!==void 0)return VCy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return VCy=O},{mode:1});var RI=function(){var O=_.a.apply(this,arguments)||this;O.engagementPanelContent=!1;O.fixie=!1;O.fullWidth=!1;return O};
_.c(RI,_.a);
RI.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"}}}};
RI.prototype.computeCollapsibleItems=function(O,x,e){return O===void 0||x===void 0||e===void 0||e?[]:O.slice(x)};
RI.prototype.computeAlwaysShownItems=function(O,x){return O&&O.length?O.slice(0,x):[]};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],RI.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],RI.prototype,"collapsed",void 0);
_.B([_.R({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.v("design:type",Array)],RI.prototype,"alwaysShownItems",void 0);_.B([_.R({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.v("design:type",Array)],RI.prototype,"collapsibleItems",void 0);_.B([_.R(),_.v("design:type",Object)],RI.prototype,"engagementPanelContent",void 0);_.B([_.R(),_.v("design:type",Object)],RI.prototype,"fixie",void 0);
_.B([_.R(),_.v("design:type",Object)],RI.prototype,"fullWidth",void 0);_.B([_.H({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],RI);
_.n(RI,"ytd-metadata-row-container-renderer",function(){if(ECI!==void 0)return ECI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ECI=O},{mode:1});var pnI;var UH=function(){var O=_.a.apply(this,arguments)||this;O.currentPageUrl="";O.baseUrl="";O.isHiddenByUser=null;O.hidden=!1;O.showAboveScrim=!1;O.watchNextGrid=_.t("kevlar_watch_grid");O.modernButtons=_.t("web_modern_buttons");O.roundedContainer=!0;O.noBorder=!1;O.roundBackground=!_.t("live_chat_round_background_killswitch");O.overflowHideChat=_.t("live_chat_overflow_hide_chat");O.forceDarkTheme=!1;O.theaterWatchWhile=!1;O.isListeningForPlayerProgress=!1;O.JSC$22829_playerEvents=new Map;O.isFrameReady=
!1;O.player=null;O.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 O};
_.c(UH,_.a);_.b=UH.prototype;_.b.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.jh(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.b.created=function(){var O=this;this.handleIframeEventListener=function(x){O.handleIframeEvent(x)};
this.handleKeyboardEventListener=function(x){O.handleKeyboardEvent(x)};
this.JSC$22829_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22829_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22829_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22829_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22829_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.b.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()};
_.b.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};
_.b.computeBaseUrl=function(O){var x="/live_chat";this.isChatReplay()&&(x="/live_chat_replay");return _.lR(_.ev(_.xx(_.xO(O),x),null),"").toString()};
_.b.dataChanged=function(){_.t("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.b.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var O=this.url;if(this.isChatReplay()&&this.player){var x=Math.floor(this.player.getProgressState().current*1E3);O=_.lo(_.xO(O),"playerOffsetMs",x.toString()).toString()}x=this.chatframe;try{var e=O==="about:blank"?_.pwz:_.Yy(O),l=x.contentDocument.location,C=_.fU(e);C!==void 0&&l.replace(C)}catch(Q){x.src=O}}};
_.b.collapsedChanged=function(){_.wr(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.b.handleIframeEvent=function(O){if(O&&this.baseUrl.startsWith(O.origin)&&O.source===this.chatframe.contentWindow&&_.w7(O.data))if(O.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(O);else if(O.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(O.data["yt-show-feedback-dialog"]){var x=_.GG().resolve(_.D0(_.Wow));if(x){var e=O.ports,l;e&&e.length&&(l=function(){e[0].postMessage({})});
O=O.data["yt-show-feedback-dialog"];x.showFeedbackDialog(O.customProductData,O.feedbackContent,l,O.bucket)}}else if(O.data["yt-show-survey"])_.wr(this.hostElement,"yt-show-survey",O.data["yt-show-survey"]);else if(O.data["yt-purchase-membership"])_.GG().resolve(_.Xc).resolveCommand(O.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(O.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(O.data["yt-tunnel-out-live-service-request"]);else if(O.data["yt-user-activity"])_.DP();
else if(O.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(O.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(O.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(O.data["yt-open-popup"]);else if(O.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(O.data["yt-log-flow-logging-event-command"]);else if(O.data["yt-hide-live-chat"])this.onShowHideChat();else O.data["yt-report-moderation-state-log"]&&
this.player&&(x={cpn:this.player.getVideoData().cpn},_.uU("liveChatBeingModerated",x))};
_.b.attachLiveChatResponseVeTrackingParams=function(O){O=_.Fv(O);var x=_.Pq(),e=_.i8("liveChatRenderer.trackingParams",this.data);x&&e&&_.WU(x,_.Fv(e),O)};
_.b.handleBuyflowMessages=function(O){var x=O.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,e=O.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,l=O.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.hyL(_.uc(_.dO),x.replace(/-/g,"+").replace(/_/g,"/"),function(C){O.ports[0].postMessage({success:!0,buyFlowResponse:C})},void 0,function(C){O.ports[0].postMessage({success:!1,
error:C&&C.message||"Buyflow rejected without error."})},_.TD().get("hl"),void 0,function(){O.ports[0].postMessage({closed:!0})},e,l)};
_.b.setupPlayerProgressRelay=function(){var O=this;if(!this.isListeningForPlayerProgress){var x=_.JI();x!=null&&x.getPlayerPromise&&(x.getPlayerPromise().then(function(e){O.playerApiReady(e)}),this.isListeningForPlayerProgress=!0)}};
_.b.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.b.playerApiReady=function(O){this.setPlayer(O)};
_.b.playerProgressHandler=function(){if(this.player){var O=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":O.current})}};
_.b.playerAdStartHandler=function(O){this.postToContentWindow({"yt-player-ad-start":O})};
_.b.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.b.playerStateChangeHandler=function(O){this.postToContentWindow({"yt-player-state-change":O})};
_.b.setPlayer=function(O){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22829_playerEvents);O&&(this.player=O,this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22829_playerEvents),_.wr(this.hostElement,"player-api-ready"))};
_.b.liveChatPageUrl=function(O,x,e,l){return!e||x?"about:blank":e.liveChatRenderer?(x=_.xO(this.currentPageUrl).JSC$10027_queryData_,vOy(x),O=_.xO(O),x.add("continuation",e.liveChatRenderer.continuations[0].reloadContinuationData.continuation),e=_.Fo()==="USER_INTERFACE_THEME_DARK",(l||e)&&x.add("dark_theme","true"),_.ev(O,x),l=_.xO(O.toString()),e=l.JSC$10027_queryData_,"SESSION_INDEX"in _.fO&&(e.add("authuser",_.wz("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.fO&&e.add("pageId",_.wz("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.fO&&e.add("sdc",_.wz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),l.toString()):""};
_.b.isCollapsed=function(O,x){return x!==null?x:this.isChatReplay()||O&&O.conversationBarRenderer&&O.conversationBarRenderer.availabilityMessage?!0:O?O.liveChatRenderer?O.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.t("live_chat_hide_premiere_replay_message")||O.conversationBarRenderer&&O.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.b.isHidden=function(O,x,e){var l=x&&x.conversationBarRenderer&&x.conversationBarRenderer.availabilityMessage,C=x&&x.liveChatRenderer&&x.liveChatRenderer.showHideButton,Q=x&&x.liveChatRenderer&&x.liveChatRenderer.showButton;return e&&O&&!l&&!Q||!e&&O&&!l&&!C?!0:x&&x.liveChatRenderer&&x.liveChatRenderer.initialDisplayState?x.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.b.computeButtonOverride=function(O,x){if(O&&x)return{type:"outline"}};
_.b.setCollapsedState=function(O){_.q(O,_.ZYz)&&((this.isHiddenByUser=!!_.q(O,_.ZYz).collapsed)||_.Sh(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.b.forwardReduxActionToIframe=function(O){this.postToContentWindow({"yt-live-chat-forward-redux-action":O})};
_.b.onLoopRangeChange=function(O){this.showAboveScrim=!(O==null||!O.postId)};
_.b.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.b.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.b.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.b.sendDarkThemePostMessage=function(O){this.postToContentWindow({"yt-live-chat-set-dark-theme":O})};
_.b.onLiveChatBuyFlowCallback=function(O){this.postToContentWindow({"yt-live-chat-buy-flow-callback":O})};
_.b.handleKeyboardEvent=function(O){(0,_.HX.containsValue)(fKT,O.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:O.type,keyCode:O.keyCode}})};
_.b.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.b.postToContentWindow=function(O){if(this.isFrameReady)try{var x=window.location.protocol+"//"+window.location.host,e;(e=this.chatframe)!=null&&e.contentWindow?this.chatframe.contentWindow.postMessage(O,x):_.ft(new _.ry("Tried posting a message to an iframe with no content window",O))}catch(l){_.BH(l)}};
_.b.shouldHideChatFrame=function(O){return O&&_.t("hide_live_chat_button_when_collapsed")};
_.Dy.Object.defineProperties(UH.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.t("live_chat_overflow_hide_chat")||_.t("web_watch_chat_hide_button_killswitch"))return _.t("live_chat_overflow_hide_chat");var O,x,e,l;return!!((O=this.data)==null?0:(x=O.liveChatRenderer)==null?0:(e=x.header)==null?0:(l=e.liveChatHeaderRenderer)==null?0:l.collapseButton)}}});
UH.prototype.collapsedChanged=UH.prototype.collapsedChanged;UH.prototype.urlChanged=UH.prototype.urlChanged;UH.prototype.dataChanged=UH.prototype.dataChanged;UH.prototype.onShowHideChat=UH.prototype.onShowHideChat;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],UH.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],UH.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],UH.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],UH.prototype,"ytOpenPopupBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],UH.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],UH.prototype,"currentPageUrl",void 0);
_.B([_.R({computed:"computeBaseUrl(currentPageUrl,data)"}),_.v("design:type",Object)],UH.prototype,"baseUrl",void 0);_.B([_.R({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.v("design:type",String)],UH.prototype,"url",void 0);_.B([_.R(),_.v("design:type",Object)],UH.prototype,"isHiddenByUser",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.v("design:type",Object)],UH.prototype,"hidden",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.v("design:type",Boolean)],UH.prototype,"collapsed",void 0);_.B([_.R({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.v("design:type",Boolean)],UH.prototype,"hideChatFrame",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],UH.prototype,"showAboveScrim",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],UH.prototype,"watchNextGrid",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],UH.prototype,"modernButtons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],UH.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],UH.prototype,"noBorder",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],UH.prototype,"roundBackground",void 0);
_.B([_.R({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.v("design:type",Object)],UH.prototype,"toggleButtonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],UH.prototype,"overflowHideChat",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],UH.prototype,"forceDarkTheme",void 0);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],UH.prototype,"enableShowWithoutHideChatButton",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],UH.prototype,"theaterWatchWhile",void 0);_.B([_.kX("#chatframe"),_.v("design:type",HTMLIFrameElement)],UH.prototype,"chatframe",void 0);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],UH.prototype,"onShowHideChat",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],UH.prototype,"dataChanged",null);
_.B([_.T1("url"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],UH.prototype,"urlChanged",null);_.B([_.T1("collapsed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],UH.prototype,"collapsedChanged",null);_.B([_.H({is:"ytd-live-chat-frame",disableElementRegistration:!0})],UH);
_.n(UH,"ytd-live-chat-frame",function(){if(pnI!==void 0)return pnI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return pnI=O},{mode:1});var Rxc;var aI=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_modern_buttons");O.buttonOverrides={style:"call-to-action",type:"filled"};return O};
_.c(aI,_.a);aI.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=_.UA(this.data.backgroundColor)))};
aI.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var O=this.getFormattedStringLoggingDirectives(this.data.headline);O&&this.rendererBehavior.logExplicitClick(O)}};
aI.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var O=this.getFormattedStringLoggingDirectives(this.data.description);O&&this.rendererBehavior.logExplicitClick(O)}};
aI.prototype.getFormattedStringLoggingDirectives=function(O){return O&&O.runs&&O.runs.length>0&&O.runs[0]&&O.runs[0].loggingDirectives?O.runs[0].loggingDirectives:null};
aI.prototype.dataChanged=aI.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aI.prototype,"rendererBehavior",void 0);_.B([_.V(O$T.YtMacroReplacementBehavior),_.v("design:type",Object)],aI.prototype,"macroReplacementBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],aI.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],aI.prototype,"navigationEndpoint",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],aI.prototype,"enableColors",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],aI.prototype,"modern",void 0);_.B([_.R(),_.v("design:type",Object)],aI.prototype,"buttonOverrides",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aI.prototype,"dataChanged",null);_.B([_.H({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],aI);
_.n(aI,"ytd-action-basic-immersive-content-renderer",function(){if(Rxc!==void 0)return Rxc;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Rxc=O},{mode:1});var UBH;var aGs;var mp=function(){return _.a.apply(this,arguments)||this};
_.c(mp,_.a);mp.prototype.dataChanged=function(){var O;((O=this.data)==null?void 0:O.backgroundColor)!==void 0&&_.lH(this.hostElement,{"--bgu-color":_.UA(this.data.backgroundColor)})};
mp.prototype.onImageTileClick=function(){var O;((O=this.data)==null?0:O.navigationEndpoint)&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var x;((x=this.data)==null?0:x.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Dy.Object.defineProperties(mp.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.data)==null?void 0:O.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 O;return((O=this.data)==null?void 0:O.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var O,x,e;if(((O=this.data)==null?void 0:(x=O.detailsLine)==null?void 0:x.texts)!=null&&((e=this.data)==null?void 0:e.detailsLine.texts.length)>0){var l;return(l=this.data)==null?void 0:l.detailsLine.texts.map(function(C){return C.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var O,x,e;if(((O=this.data)==null?void 0:(x=O.optionalDetailsLine)==null?void 0:x.texts)!=null&&((e=this.data)==null?void 0:e.optionalDetailsLine.texts.length)>0){var l;return(l=this.data)==null?void 0:l.optionalDetailsLine.texts.map(function(C){return C.text}).join("")}return null}}});
mp.prototype.dataChanged=mp.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mp.prototype,"rendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],mp.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mp.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.backgroundColor"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],mp.prototype,"hasBackgroundColor",null);
_.B([_.p("data.objectFit"),_.v("design:type",Object),_.v("design:paramtypes",[])],mp.prototype,"getObjectFit",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.tileRenderingStyle"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],mp.prototype,"hasTileMetadata",null);_.B([_.p("data.detailsLine"),_.v("design:type",Object),_.v("design:paramtypes",[])],mp.prototype,"getSecondaryDetails",null);
_.B([_.p("data.optionalDetailsLine"),_.v("design:type",Object),_.v("design:paramtypes",[])],mp.prototype,"getOptionalDetails",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mp.prototype,"dataChanged",null);_.B([_.H({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],mp);
_.n(mp,"ytd-image-tile-renderer",function(){if(aGs!==void 0)return aGs;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return aGs=O},{mode:1});var mBH;var sH=function(){return _.a.apply(this,arguments)||this};
_.c(sH,_.a);sH.prototype.getOpenLinkIcon=function(){return _.t("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
sH.prototype.onSitelinkTap=function(){_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.t("kevlar_command_handler_migration_killswitch"))_.gr(this.hostElement,this.data.clickCommands,this.hostElement);else for(var O=_.T(this.data.clickCommands),x=O.next();!x.done;x=O.next())this.ytComponentBehavior.resolveCommand(x.value)};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],sH.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sH.prototype,"rendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sH.prototype,"data",void 0);_.B([_.H({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],sH);
_.n(sH,"ytd-sitelink-renderer",function(){if(mBH!==void 0)return mBH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return mBH=O},{mode:1});var Wz=function(){var O=_.a.apply(this,arguments)||this;O.paddingFix=_.t("enable_ads_web_ep_buenos_aires_and_padding_fix");return O};
_.c(Wz,_.a);Wz.prototype.configureRendererStamper=function(){return{"data.sitelinkRenderers":{id:"sitelinks",mapping:{sitelinkRenderer:"ytd-sitelink-renderer"}},"data.actionButton":{id:"action",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageTileRenderers":{id:"image-tiles",mapping:{imageTileRenderer:"ytd-image-tile-renderer"}}}};
Wz.prototype.dataChanged=function(){var O=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;O.ytMacroReplacementBehavior.sendServiceRequestAction([x])})};
Wz.prototype.shouldHideFooter=function(O){return!(O&&_.t("use_ads_engagement_panel_desktop_footer_cta"))};
_.Dy.Object.defineProperties(Wz.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.imageTileRenderers)===void 0||((x=this.data)==null?void 0:x.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(e){var l;return(l=_.q(e,jwc))==null?void 0:l.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.imageTileRenderers)===void 0||((x=this.data)==null?void 0:x.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(e){var l;return((l=_.q(e,jwc))==null?void 0:l.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Wz.prototype.dataChanged=Wz.prototype.dataChanged;_.B([_.V(O$T.YtMacroReplacementBehavior),_.v("design:type",Object)],Wz.prototype,"ytMacroReplacementBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Wz.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Wz.prototype,"paddingFix",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.imageTileRenderers"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Wz.prototype,"removeBorderFromImageTiles",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.imageTileRenderers"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Wz.prototype,"useFooteredMetadataRenderingStyle",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Wz.prototype,"dataChanged",null);_.B([_.H({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Wz);
_.n(Wz,"ytd-action-engagement-panel-content-renderer",function(){if(UBH!==void 0)return UBH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return UBH=O},{mode:1});var sCa;var WQs=_.K(function(O){var x=O.data;var e=O.customCommandResolver;return _.D("ad-grid-card-image-full-metadata-view-model",{class:function(){var l;return((l=x().interaction)==null?0:l.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB}),_.p5(function(){return x().interaction},e)),
"aria-label":function(){var l,C;return(l=x().interaction)==null?void 0:(C=l.accessibility)==null?void 0:C.label}},_.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(l){return _.D(_.de,{data:l.data,
customCommandResolver:e})}})),_.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.D(_.F,{cond:function(){return x().headline},
then:function(l){return _.D(_.TT,{text:l,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.D(_.F,{cond:function(){return x().detailsLine},
then:function(l){return _.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.D(_.MR,{data:l},{adDetailsLineViewModel:function(C){return _.D(_.pg,{data:C.data,customCommandResolver:e,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.D(_.F,{cond:function(){return x().secondaryDetailsLine},
then:function(l){return _.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.D(_.MR,{data:l},{adDetailsLineViewModel:function(C){return _.D(_.pg,{data:C.data,customCommandResolver:e,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"bn");var hxh=_.K(function(O){var x=O.data;var e=O.customCommandResolver;return _.D("ad-grid-card-image-view-model",{class:function(){var l;return((l=x().interaction)==null?0:l.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB}),_.p5(function(){return x().interaction},e)),
"aria-label":function(){var l,C;return(l=x().interaction)==null?void 0:(C=l.accessibility)==null?void 0:C.label}},_.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(l){return _.D(_.de,{data:l.data,
customCommandResolver:e})}}),_.D("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.D(_.MR,{data:function(){return x().adCardBadge}},{adCardBadgeViewModel:_.v$4})))},"cn");var zxo=_.K(function(O){var x=O.data;var e=O.customCommandResolver;return _.D("ad-grid-card-text-view-model",{class:function(){var l;return((l=x().interaction)==null?0:l.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB}),_.p5(function(){return x().interaction},e)),
"aria-label":function(){var l,C;return(l=x().interaction)==null?void 0:(C=l.accessibility)==null?void 0:C.label}},_.D("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.D(_.F,{cond:function(){return x().title},
then:function(l){return _.D(_.TT,{text:l,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.D("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.D(_.HE,{each:function(){var l;
return((l=x())==null?void 0:l.descriptions)||[]},
keyBy:"INDEX"},function(l){return _.D(_.TT,{text:l,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.D("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.D(_.MR,{data:function(){return x().moreInfoButton}},{adButtonViewModel:function(l){return _.D(_.EL,{data:l.data,
customCommandResolver:e})}})))},"dn");var rNI=_.K(function(O){var x=O.data;var e=O.customCommandResolver;var l=O.adGridCardCollectionStyle;return _.D("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(C){var Q,L=(Q=x().interaction)==null?void 0:Q.onFirstVisible;C&&L&&_.me(L)},
showOption:_.yB})),style:function(){return"grid-template-columns: repeat("+x4c(l?l():x().style)+", minmax(0, 1fr));"}},_.D(_.MR,{data:function(){var C;
return(C=x())==null?void 0:C.gridCards}},{adGridCardImageViewModel:function(C){return _.D(hxh,{data:C.data,
customCommandResolver:e})},
adGridCardImageFullMetadataViewModel:function(C){return _.D(WQs,{data:C.data,customCommandResolver:e})},
adGridCardTextViewModel:function(C){return _.D(zxo,{data:C.data,customCommandResolver:e})}}))},"en");_.wP(_.K(function(O){var x=O.data;return _.D("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Y0(_.F6({visibilityCallback:function(e){var l,C=(l=x().interaction)==null?void 0:l.onFirstVisible;e&&C&&_.me(C)},
showOption:_.yB}),_.p5(function(){return x().interaction},leo))},_.D("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.D(_.F,{cond:_.MFr("(min-width: "+((0,_.DT)()+_.dJ)+"px)"),
then:function(){return _.D(_.MR,{data:function(){return x().adGridCardCollection}},{adGridCardCollectionViewModel:function(e){return _.D(rNI,{data:e.data,
customCommandResolver:leo})}})},
else:function(){return _.D(_.MR,{data:function(){return x().adGridCardCollection}},{adGridCardCollectionViewModel:function(e){return _.D(rNI,{data:e.data,
customCommandResolver:leo,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.D("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.D(_.MR,{data:function(){return x().adButton}},{adButtonViewModel:function(e){return _.D(_.EL,{data:e.data,
customCommandResolver:leo})}})))},"fn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;return _.D("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Y0(_.F6({visibilityCallback:function(e){var l,C=(l=x().interaction)==null?void 0:l.onFirstVisible;e&&C&&_.me(C)},
showOption:_.yB}),_.p5(function(){return x().interaction},Co7))},_.D("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.D(_.MR,{data:function(){if(_.MFr("(min-width: "+((0,_.DT)()+_.dJ)+"px)")())var e=x().adGridCardCollection;
else{e=Object.assign({},_.q(x().adGridCardCollection,gOS));var l;e.gridCards!==void 0&&((l=e.gridCards)==null?void 0:l.length)>1?e.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":e.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";e={adGridCardCollectionViewModel:e}}return e}},{adGridCardCollectionViewModel:function(e){return _.D(rNI,{data:e.data,
customCommandResolver:Co7})}})),_.D("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.D(_.MR,{data:function(){return x().adButton}},{adButtonViewModel:function(e){return _.D(_.EL,{data:e.data,
customCommandResolver:Co7})}})))},"gn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Ld}});var hp=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return O};
_.c(hp,_.a);_.b=hp.prototype;_.b.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"}}}};
_.b.attached=function(){this.getDataFromPlayerAndRender()};
_.b.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.b.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.b.getDataFromPlayerAndRender=function(){var O=this,x=_.f7(this.hostElement);x&&x.getPlayerPromise().then(function(e){O.getCachedDataAndListen(e)})};
_.b.getCachedDataAndListen=function(O){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(O,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(O,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=O)};
_.b.resolveCachedActions=function(){var O=_.i8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(O=O&&O())&&!_.HX.isEmpty(O)&&this.sendUpdateEngagementPanelAction(O);(O=(O=_.i8("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&O())&&!_.HX.isEmpty(O)&&this.sendChangeEngagementPanelVisibilityAction(O);(O=(O=_.i8("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&O())&&!_.HX.isEmpty(O)&&this.sendScrollToEngagementPanelCommand(O)};
_.b.sendUpdateEngagementPanelAction=function(O){var x;_.Sh(this.hostElement,"yt-update-engagement-panel-action",[(x=_.HX.get(O,"action"))!=null?x:O])};
_.b.sendChangeEngagementPanelVisibilityAction=function(O){_.Sh(this.hostElement,"yt-change-engagement-panel-visibility-action",[O])};
_.b.sendScrollToEngagementPanelCommand=function(O){_.Sh(this.hostElement,"yt-scroll-to-engagement-panel-command",[O])};
_.b.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.t("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.ft(Error("Uo"))};
hp.prototype.dataChanged=hp.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],hp.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],hp.prototype,"componentBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],hp.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hp.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],hp.prototype,"player",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hp.prototype,"dataChanged",null);_.B([_.H({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],hp);
_.n(hp,"ytd-ads-engagement-panel-content-renderer",function(){if(sCa!==void 0)return sCa;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return sCa=O},{mode:1});var H$a;var zq=function(){var O=_.a.apply(this,arguments)||this;O.player=null;O.JSC$22866_playerEvents=new Map;O.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return O};
_.c(zq,_.a);_.b=zq.prototype;_.b.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]]"}}}}}};
_.b.created=function(){this.player=null;this.JSC$22866_playerEvents=new Map;this.JSC$22866_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22866_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22866_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22866_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.b.attached=function(){var O=this,x=_.f7();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));x&&x.getPlayerPromise().then(function(e){O.setPlayer(e);O.set("isPageLoad",!1)})};
_.b.setPlayer=function(O){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22866_playerEvents);this.set("player",O);O&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22866_playerEvents),O.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.b.onLoopRangeChange=function(O){var x=_.GG().resolve(_.D0(_.Be));if((!x||x.isOnWatch())&&this.hostElement.clientHeight){var e;!O&&((e=this.data)==null?0:e.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.b.onVideoProgress=function(O){var x,e,l=((x=this.player)==null?void 0:(e=x.getPresentingPlayerType)==null?void 0:e.call(x))===2;this.isAdPlaying!==l&&this.set("isAdPlaying",l);var C;if(!l&&(C=this.player)!=null&&C.getLoopRange()){e=this.player.getLoopRange();x=e.startTimeMs;e=e.endTimeMs;l=this.player.getProgressState(1).seekableStart;var Q;x<l*1E3&&((Q=this.data)==null?0:Q.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
O=e<O*1E3;var L;((L=this.player)==null?0:L.getLoopRange())&&O&&this.player.seekTo(x/1E3)}};
_.b.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.b.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.b.onYtDeleteClipEngagementPanelCommand=function(O){_.q(O,DDw).command&&this.ytComponentBehavior.resolveCommand(_.q(O,DDw).command)};
_.Dy.Object.defineProperties(zq.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.voteCount)||_.KA("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],zq.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],zq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],zq.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zq.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],zq.prototype,"isAdPlaying",void 0);_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],zq.prototype,"isPageLoad",void 0);_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],zq.prototype,"isDarkTheme",void 0);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zq.prototype,"voteCount",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zq.prototype,"channelEndpoint",null);_.B([_.p("channelEndpoint"),_.v("design:type",Object),_.v("design:paramtypes",[])],zq.prototype,"channelHref",null);_.B([_.H({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],zq);
_.n(zq,"ytd-clip-attribution-renderer",function(){if(H$a!==void 0)return H$a;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return H$a=O},{mode:1});var KQy;var ru=function(){var O=_.a.apply(this,arguments)||this;O.player=null;O.JSC$22871_playerEvents=new Map;return O};
_.c(ru,_.a);_.b=ru.prototype;_.b.created=function(){this.player=null;this.JSC$22871_playerEvents=new Map;this.JSC$22871_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22871_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22871_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.b.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.b.attached=function(){var O=this,x=_.f7();x&&x.getPlayerPromise().then(function(e){O.setPlayer(e);O.set("isPageLoad",!1)})};
_.b.setPlayer=function(O){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22871_playerEvents);this.set("player",O);if(O){this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22871_playerEvents);var x;(O==null?void 0:(x=O.getPresentingPlayerType)==null?void 0:x.call(O))===2&&this.playerAdStartHandler()}};
_.b.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.b.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.b.onVideoProgress=function(){var O,x,e=((O=this.player)==null?void 0:(x=O.getPresentingPlayerType)==null?void 0:x.call(O))===2;this.isAdPlaying!==e&&this.set("isAdPlaying",e)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],ru.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ru.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],ru.prototype,"isAdPlaying",void 0);
_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],ru.prototype,"isPageLoad",void 0);_.B([_.H({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],ru);
_.n(ru,"ytd-clip-section-footer-renderer",function(){if(KQy!==void 0)return KQy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return KQy=O},{mode:1});var dBa;var nCh;var u2w=function(){return _.a.apply(this,arguments)||this};
_.c(u2w,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],u2w.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],u2w.prototype,"data",void 0);_.B([_.H({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],u2w);
_.n(u2w,"ytd-clip-ad-state-renderer",function(){if(nCh!==void 0)return nCh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return nCh=O},{mode:1});var YYk;var Hz=function(){var O=_.a.apply(this,arguments)||this;O.value="";O.valid=!1;O.userChangedValue=!1;O.disabled=!1;O.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return O};
_.c(Hz,_.a);_.b=Hz.prototype;_.b.detached=function(){this.userChangedValue=!1};
_.b.handleKeyDown=function(O){if(_.No)var x=13;else _.RsF&&_.gC?x=13:x=13;O.keyCode===x&&O.preventDefault()};
_.b.handleInput=function(){var O=_.$U(this.hostElement).querySelector("#title");if(O){var x=(O.value||"").replace(/\r|\n/g," ");this.set("value",x);O.value=x;this.valid=O.validate();this.userChangedValue=!0}};
_.b.handleBlur=function(){this.valid=_.$U(this.hostElement).querySelector("#title").validate()};
_.b.onValueChanged=function(){_.wr(this.hostElement,"title-changed",{title:this.value})};
_.b.onValidChanged=function(){_.wr(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.b.setInput=function(O,x){var e=_.$U(this.hostElement).querySelector("#title");e&&(e.value=O,this.handleInput(),x&&(e.invalid=!1,this.valid=!0))};
_.b.onClipCreationDisable=function(){this.set("disabled",!0)};
_.b.onClipCreationEnable=function(){this.set("disabled",!1)};
_.b.onClipCreationVisibilityChange=function(O){var x=this;O.visible?requestAnimationFrame(function(){var e;((e=_.$U(x.hostElement).querySelector("#title"))==null?void 0:e.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Hz.prototype.onValidChanged=Hz.prototype.onValidChanged;Hz.prototype.onValueChanged=Hz.prototype.onValueChanged;Hz.prototype.handleBlur=Hz.prototype.handleBlur;Hz.prototype.handleInput=Hz.prototype.handleInput;Hz.prototype.handleKeyDown=Hz.prototype.handleKeyDown;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Hz.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],Hz.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Hz.prototype,"value",void 0);_.B([_.R(),_.v("design:type",Object)],Hz.prototype,"valid",void 0);_.B([_.R(),_.v("design:type",Object)],Hz.prototype,"userChangedValue",void 0);_.B([_.R(),_.v("design:type",Object)],Hz.prototype,"disabled",void 0);_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],Hz.prototype,"handleKeyDown",null);
_.B([_.bH("input"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Hz.prototype,"handleInput",null);_.B([_.bH("blur"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Hz.prototype,"handleBlur",null);_.B([_.T1("value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Hz.prototype,"onValueChanged",null);
_.B([_.T1("valid"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Hz.prototype,"onValidChanged",null);_.B([_.H({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Hz);
_.n(Hz,"ytd-clip-creation-text-input-renderer",function(){if(YYk!==void 0)return YYk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YYk=O},{mode:1});var BDc;var vCo;var fGo;var JNI;var wny;var Ka=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};O.pendingStoryboardImages_={};O.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];O.tickLabelInterval=30;O.mediumTickInterval=5;O.largeTickInterval=15;O.aboveRulerHeight=32;O.rulerHeight=50;O.smallTickHeight=4;O.mediumTickHeight=8;O.largeTickHeight=16;O.mediaListeners_=
{};return O};
_.c(Ka,_.a);_.b=Ka.prototype;_.b.attached=function(){var O=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(x){x=_.T(["screen and (min-resolution: "+x+")","screen and (max-resolution: "+x+")"]);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=window.matchMedia(e);l&&(O.mediaListeners_[e]=O.updatePixelRatio_.bind(O),l.addEventListener?l.addEventListener("change",O.mediaListeners_[e]):l.addListener?l.addListener(O.mediaListeners_[e]):delete O.mediaListeners_[e])}})};
_.b.detached=function(){this.setPlayer(null);for(var O=_.T(Object.keys(this.mediaListeners_)),x=O.next();!x.done;x=O.next()){var e=x.value;x=this.mediaListeners_[e];(e=window.matchMedia(e))&&(e.removeEventListener?e.removeEventListener("change",x):e.removeListener&&e.removeListener(x))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.b.onVisibilityChangedAction_=function(O){var x=this;O.visible&&!this.player_&&(O=_.f7())&&O.getPlayerPromise().then(function(e){x.setPlayer(e)})};
_.b.setPlayer=function(O){O&&this.set("player_",O)};
_.b.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.b.setUpCanvas_=function(){var O=this.rulerWidth,x=this.devicePixelRatio_,e=this.visible;this.set("canvasReady_",!1);if(e&&x!==0){e=this.aboveRulerHeight+this.rulerHeight;var l=_.$U(this.hostElement).querySelector("#ticks");l.width=O*x;l.height=e*x;l.style.width=O+"px";l.style.height=e+"px";l.getContext("2d").scale(x,x);this.set("canvasReady_",!0)}};
_.b.drawRuler_=function(O,x,e,l,C,Q,L,k,M,G,X,y){O&&e&&x&&(O=_.$U(this.hostElement).querySelector("#ticks"),x=O.getContext("2d"),x.clearRect(0,0,O.width,O.height),x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),x.lineWidth=2,x.beginPath(),x.moveTo(0,this.aboveRulerHeight),x.lineTo(O.width,this.aboveRulerHeight),x.moveTo(0,O.height),x.lineTo(O.width,O.height),x.stroke(),this.drawRulerTicks_(O,Q,C,l),this.drawStoryboardImages_(O,e,Q,C,l),x.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
x.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(L-Q,l,!1),this.rulerHeight),e=this.timeToPixels_(k-Q,l,!1),x.fillRect(e,this.aboveRulerHeight,O.width-e,this.rulerHeight),this.drawSpeedLines_(O,Q,y))};
_.b.drawRulerTicks_=function(O,x,e,l){var C=O.getContext("2d");C.save();C.lineWidth=1;for(var Q=Math.floor(Math.max(0,x-this.tickLabelInterval));Q<x+e;Q++){C.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var L=(Q-x)*l;C.beginPath();C.moveTo(L,O.height);var k=this.smallTickHeight;Q%this.largeTickInterval===0?k=this.largeTickHeight:Q%this.mediumTickInterval===0&&(k=this.mediumTickHeight);C.lineTo(L,O.height-k);C.stroke();Q%this.tickLabelInterval===0&&(C.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),C.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),C.fillText(hv(Q),L+4,12),C.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),C.moveTo(L,0),C.lineTo(L,this.aboveRulerHeight),C.stroke())}C.restore()};
_.b.percentToHex_=function(O){O=Math.round(O*255).toString(16);O.length<2&&(O="0"+O);return O};
_.b.drawSpeedLines_=function(O,x,e){var l=O.getContext("2d");l.save();var C=Math.min(25,Math.abs(e)-15)/25,Q=O.width*.3*C,L=O.width*-.3,k=O.width*1.3,M=this.aboveRulerHeight;O=O.height;var G=Math.round(4*C),X=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");X.length<7&&(X="#"+X.substring(1,4).repeat(2));var y=this.percentToHex_(.5+C/2);y=X+y;X+="00";if(C>0)for(C=0;C<G;C++){var Z=L+Math.random()*(k-L),E=M+Math.random()*(O-M),P=Q+x%Q,U=l.createLinearGradient(Z,E,Z+P,E);
e<0?(U.addColorStop(0,y),U.addColorStop(.4,y),U.addColorStop(.9,X)):(U.addColorStop(.1,X),U.addColorStop(.6,y),U.addColorStop(1,y));l.strokeStyle=U;l.lineWidth=1;l.beginPath();l.moveTo(Z,E);l.lineTo(Z+P,E);l.stroke()}l.restore()};
_.b.getStoryboardForTime_=function(O,x,e){e===void 0&&(e=x.getNumberOfStoryboardLevels()-1);O=x.getStoryboardFrameIndex(O,e);return x.getStoryboardFrame(O,e)};
_.b.drawStoryboardImages_=function(O,x,e,l,C){if(!this.disabled){O=O.getContext("2d");var Q=this.getStoryboardForTime_(0,x);if(Q){var L=Q.width/Q.columns;Q=Q.height/Q.rows;var k=L/Q,M=this.rulerHeight*k;M=this.tickLabelInterval*(k<this.tickLabelInterval*C/this.rulerHeight?1/Math.floor(this.tickLabelInterval*C/M):Math.round(M/(this.tickLabelInterval*C)));var G=M*C,X=this.rulerHeight,y=G/this.rulerHeight,Z=Math.floor(Math.max(0,e-M));for(Z-=Z%M;Z<e+l;Z+=M){var E=this.getStoryboardForTime_(Z,x),P=this.getPreloadedStoryboard_(E.url);
if(P){var U=(Z-e)*C,W=this.aboveRulerHeight,z=E.column*L,r=E.row*Q;if(k<y){var f=X/(G/k);E=L;f*=Q;r+=(Q-f)/2}else E=G/(X*k)*L,f=Q,z+=(L-E)/2;O.drawImage(P,z,r,E,f,U,W,G,X)}else this.fetchStoryboardImage_(E)}}}};
_.b.getPreloadedStoryboard_=function(O){return this.storyboardImages_.find(function(x){if(x.src==O)return!0;var e=x.src.indexOf(O);return e!=-1&&e==x.src.length-O.length})};
_.b.fetchStoryboardImage_=function(O){var x=this,e=this.getPreloadedStoryboard_(O.url),l=this.pendingStoryboardImages_[O.url];e||l!==void 0||(e=new Promise(function(C){var Q=new Image(O.width,O.height);Q.src=O.url;Q.onload=function(){C(Q)};
Q.onerror=function(){C(null)}}),this.pendingStoryboardImages_[O.url]=e,e.then(function(C){C&&x.push("storyboardImages_",C);
return C}).finally(function(){delete x.pendingStoryboardImages_[O.url]}))};
_.b.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.b.timeToPixels_=function(O,x,e){O*=x;return e===void 0||e?O+"px":O};
_.b.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Ka.prototype.drawRuler_=Ka.prototype.drawRuler_;Ka.prototype.setUpCanvas_=Ka.prototype.setUpCanvas_;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Ka.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Ka.prototype,"start",void 0);_.B([_.R({value:30}),_.v("design:type",Number)],Ka.prototype,"end",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],Ka.prototype,"visible",void 0);_.B([_.R(),_.v("design:type",Object)],Ka.prototype,"player_",void 0);_.B([_.R(),_.v("design:type",Number)],Ka.prototype,"tickSpacing",void 0);_.B([_.R(),_.v("design:type",Number)],Ka.prototype,"windowSizeSec",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Ka.prototype,"rulerWidth",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Ka.prototype,"rulerShift",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],Ka.prototype,"canvasReady_",void 0);_.B([_.R({value:function(){return[]}}),
_.v("design:type",Array)],Ka.prototype,"storyboardImages_",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],Ka.prototype,"disabled",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Ka.prototype,"forceRender_",void 0);_.B([_.R({value:1}),_.v("design:type",Number)],Ka.prototype,"devicePixelRatio_",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],Ka.prototype,"windowSpeed",void 0);
_.B([_.T1("visible","devicePixelRatio_","rulerWidth"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ka.prototype,"setUpCanvas_",null);
_.B([_.T1("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.v("design:type",Function),_.v("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.v("design:returntype")],Ka.prototype,"drawRuler_",null);_.B([_.Va({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Ka);
_.n(Ka,"yt-clip-creation-scrubber-canvas",function(){if(wny===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);wny=O}O=wny;return O},
{mode:2});var SYh;var jCa;var du=function(){var O=_.a.apply(this,arguments)||this;O.start=0;O.end=30;O.visible=!1;O.draggingLeft_=!1;O.draggingRight_=!1;O.draggingRuler_=!1;O.draggingWindow_=!1;O.seekableStart=0;O.seekableEnd=0;O.rulerWidth_=0;O.rulerShift_=0;O.windowSlideSpeed=0;O.disabled=!1;O.initialized=!1;O.durationAccessibilityLabel="";O.activeLoopRange_=!1;O.rulerDragMouseStart_=0;O.rulerDragRulerStart_=0;O.rulerDragStartTime_=0;O.rulerDragEndTime_=0;O.dragMouseLastX_=0;O.scrollInterval_=null;O.scrubberVe_=null;O.boundHandlers_=
{};O.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return O};
_.c(du,_.a);_.b=du.prototype;
_.b.created=function(){var O=this;this.JSC$22884_playerEvents=new Map;this.JSC$22884_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22884_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22884_playerEvents.set("onStateChange",this.onStateChange_);var x={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(x).forEach(function(e){O.boundHandlers_[e]=x[e].bind(O)})};
_.b.attached=function(){this.activeLoopRange_=!1;_.$U(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.$U(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.O9(156731)};
_.b.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.$U(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.$U(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.b.onVisibilityChangedAction_=function(O){var x=this;O.visible&&!this.player_&&(O=_.f7())&&O.getPlayerPromise().then(function(e){x.setPlayer(e)})};
_.b.setPlayer=function(O){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22884_playerEvents);O&&(this.set("player_",O),this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22884_playerEvents))};
_.b.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.b.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.b.beginHandleDrag_=function(O){this.disabled||(O.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=O.clientX,O.target===_.$U(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():O.target===_.$U(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.b.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.b.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.b.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.b.beginRulerDrag_=function(O){this.disabled||(O.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=O.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.b.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.b.beginWindowScroll_=function(){var O=this;this.scrollInterval_=setInterval(function(){var x=O.windowSlideSpeed;if(x=_.Pto(O.start,O.boundedRulerStartLimit_())?x-.1:_.Pto(O.end,O.boundedRulerEndLimit_())?x+.1:0){var e=O.capRulerOffset_(O.rulerShift_+x);e==O.rulerShift_?x=0:(O.set("rulerShift_",e),_.wr(O.hostElement,"set-fixed-length-range",{start:O.start+x,duration:O.end-O.start}))}O.set("windowSlideSpeed",x)},33)};
_.b.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.b.endDrag_=function(){this.logClick();var O=void 0;this.draggingRight_?O=this.end-1:this.draggingLeft_&&(O=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,O);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))};
_.b.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.b.updateRulerSize_=function(){this.set("rulerWidth_",_.$U(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.b.handleMouseDrag_=function(O){O.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(O):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(O):this.draggingWindow_&&this.handleWindowDrag_(O))};
_.b.handleRulerDrag_=function(O){O=this.pixelsToTime_(O.clientX-this.rulerDragMouseStart_);O=this.capRulerOffset_(this.rulerDragRulerStart_-O);this.set("rulerShift_",O);var x=this.rulerDragStartTime_-(this.rulerDragRulerStart_-O);_.wr(this.hostElement,"set-fixed-length-range",{start:x,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-O)-x})};
_.b.handleWindowDrag_=function(O){var x=O.clientX-this.dragMouseLastX_;this.dragMouseLastX_=O.clientX;O=this.pixelsToTime_(x);_.wr(this.hostElement,"set-fixed-length-range",{start:this.start+O,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.b.capRulerOffset_=function(O){var x=this.seekableStart-this.pixelsToTime_(16),e=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(x,O),e)};
_.b.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.b.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.b.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.b.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.b.handleWindowHandleDrag_=function(O){var x=O.clientX-this.dragMouseLastX_;this.dragMouseLastX_=O.clientX;O=this.pixelsToTime_(x);if(this.draggingLeft_){var e=this.start+O;var l=this.end}else this.draggingRight_&&(e=this.start,l=this.end+O);_.wr(this.hostElement,"set-range",{start:e,end:l,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.b.onVideoProgress_=function(O){this.disabled||(O=this.timeToPixels_(O-this.rulerShift_,this.tickSpacing_),_.$U(this.hostElement).querySelector("#playhead").style.transform="translateX("+O+")")};
_.b.onClipCreationDisable_=function(){this.endDrag_()};
_.b.timeToPixels_=function(O,x,e){O*=x;return e===void 0||e?O+"px":O};
_.b.pixelsToTime_=function(O){return O/this.tickSpacing_};
_.b.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.b.centerRuler_=function(O,x,e){this.set("rulerShift_",this.capRulerOffset_(O+(x-O)/2-e/2))};
_.b.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.b.updateLoopRange_=function(O,x,e,l,C,Q,L){O&&(x&&l&&!e?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(O.pauseVideo(),O.seekTo(C,!1,void 0,void 0,50)):this.draggingRight_?(O.pauseVideo(),O.seekTo(Q-.1,!1,void 0,void 0,50)):(L!==void 0?O.seekTo(L,!0,void 0,void 0,50):(x=O.getCurrentTime(),x<C||x>Q?O.seekTo(C,!0,void 0,void 0,50):O.seekTo(x,!0,void 0,void 0,50)),O.playVideo()),O.setLoopRange({startTimeMs:C*1E3,endTimeMs:Q*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(O.getCurrentTime())):
this.activeLoopRange_&&(O.setLoopRange(null),this.activeLoopRange_=!1))};
_.b.updateHandles_=function(){_.$U(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.$U(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.b.updateRuler_=function(){var O=this.end,x=this.start,e=this.draggableStartLimit_(),l=this.draggableEndLimit_();(x<e-.001||O>l+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.b.computeDurationLabel_=function(O,x){return O?O.replace("$clip_length",parseFloat(x).toFixed(1)):""};
_.b.computeDuration_=function(O,x){return this.isValidTime_(O)&&this.isValidTime_(x)&&O<x?x-O:0};
_.b.isValidTime_=function(O){return isNaN(parseFloat(O))||O<0?!1:this.player_?O>=this.seekableStart&&O<=this.seekableEnd:!0};
_.b.computeWindowSizeSec_=function(O,x,e){return Math.min((O||12E4)/1E3,e-x)};
_.b.computeTickSpacing_=function(O,x){return x?x/O:1};
_.b.onDragStateChanged_=function(){_.wr(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.b.centerRangeOnTime_=function(O){var x=this.duration;O=bek(O-x/2,x,this.seekableStart,this.seekableEnd);_.wr(this.hostElement,"set-fixed-length-range",{start:O.start,duration:O.end-O.start})};
_.b.nearlyLessThan_=function(O,x,e){return O+(e===void 0?1E-6:e)<x};
_.b.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var O=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(O,this.start)||this.nearlyLessThan_(this.end,O))&&this.centerRangeOnTime_(O)}};
_.b.onStateChange_=function(O){this.visible&&!this.disabled&&O==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.b.computeDragState_=function(O,x,e,l){return O?"left":x?"right":e?"ruler":l?"window":"none"};
_.b.logClick=function(){var O=_.Pq(),x=_.q9();O&&x&&this.scrubberVe_&&(_.t("combine_ve_grafts")?_.qK(_.k0(),this.scrubberVe_,x):_.WU(O,x,this.scrubberVe_),_.KZ(O,this.scrubberVe_))};
du.prototype.onDragStateChanged_=du.prototype.onDragStateChanged_;du.prototype.updateRuler_=du.prototype.updateRuler_;du.prototype.updateHandles_=du.prototype.updateHandles_;du.prototype.onUpdateLoopRange=du.prototype.onUpdateLoopRange;du.prototype.onInitializedChanged_=du.prototype.onInitializedChanged_;du.prototype.onVisibleChanged_=du.prototype.onVisibleChanged_;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],du.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",Object)],du.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"start",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"end",void 0);_.B([_.R({computed:"computeDuration_(start, end)"}),_.v("design:type",Number)],du.prototype,"duration",void 0);
_.B([_.R(),_.v("design:type",String)],du.prototype,"lengthTemplate",void 0);_.B([_.R({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.v("design:type",String)],du.prototype,"durationLabel",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"visible",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"player_",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"draggingLeft_",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"draggingRight_",void 0);
_.B([_.R(),_.v("design:type",Object)],du.prototype,"draggingRuler_",void 0);_.B([_.R({value:!1}),_.v("design:type",Object)],du.prototype,"draggingWindow_",void 0);_.B([_.R({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.v("design:type",Number)],du.prototype,"tickSpacing_",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"seekableStart",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"seekableEnd",void 0);
_.B([_.R(),_.v("design:type",Number)],du.prototype,"windowSizeMs",void 0);_.B([_.R({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.v("design:type",Number)],du.prototype,"windowSizeSec_",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"rulerWidth_",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"rulerShift_",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"windowSlideSpeed",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],du.prototype,"disabled",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"initialized",void 0);_.B([_.R(),_.v("design:type",Object)],du.prototype,"durationAccessibilityLabel",void 0);_.B([_.R({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.v("design:type",String)],du.prototype,"dragState",void 0);
_.B([_.T1("visible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],du.prototype,"onVisibleChanged_",null);_.B([_.T1("initialized"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],du.prototype,"onInitializedChanged_",null);_.B([_.T1("player_","visible","disabled","initialized","start","end"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],du.prototype,"onUpdateLoopRange",null);
_.B([_.T1("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],du.prototype,"updateHandles_",null);_.B([_.T1("start","end"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],du.prototype,"updateRuler_",null);
_.B([_.T1("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],du.prototype,"onDragStateChanged_",null);_.B([_.Va({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],du);
_.n(du,"yt-clip-creation-scrubber-view",function(){if(jCa===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;SYh===void 0&&(SYh=document.createElement("template"));var l=SYh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);jCa=O}O=jCa;return O},{mode:2});var na=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};O.startHighlightTimeout=0;O.endHighlightTimeout=0;return O};
_.c(na,_.a);_.b=na.prototype;_.b.attached=function(){var O=this;this.startInput.addEventListener("input",function(x){return O.handleStartInput_(x)});
this.endInput.addEventListener("input",function(x){return O.handleEndInput_(x)});
this.startInput.addEventListener("focusout",function(x){return O.handleStartBlur_(x)});
this.endInput.addEventListener("focusout",function(x){return O.handleEndBlur_(x)})};
_.b.setPlayer=function(O){this.set("player_",O)};
_.b.onSetFixedLengthRange_=function(O){var x=O.detail;O=x.start;var e=x.duration,l=x.startLimit;x=x.endLimit;l||(l=this.seekableStart_);x||(x=this.seekableEnd_);O=bek(O,e,l,x);this.start=O.start;this.end=O.end};
_.b.onSetRange_=function(O){var x=O.detail;O=x.start;var e=x.end,l=x.startLimit;x=x.endLimit;l||(l=this.seekableStart_);x||(x=this.seekableEnd_);if(O=TwT(O,e,l,x,this.minLengthSec,this.maxLengthSec))this.start=O.start,this.end=O.end};
_.b.updateInputs_=function(){var O=this.end,x=this.start;this.startInput.focused||(this.startInput.value=hv(x,!0));this.endInput.focused||(this.endInput.value=hv(O,!0))};
_.b.handleStartInput_=function(O){O=QwT(O.target.value);if(O===null)this.set("startValid",!1);else{var x=this.end,e=TwT(O,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);e?(this.set("endWillUpdate",e.end!==x),this.set("startValid",e.start===O)):this.set("startValid",!1)}};
_.b.handleEndInput_=function(O){O=QwT(O.target.value);if(O===null)this.set("endValid",!1);else{var x=this.start,e=LFT(this.start,O,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);e?(this.set("startWillUpdate",e.start!==x),this.set("endValid",e.end===O)):this.set("endValid",!1)}};
_.b.handleStartBlur_=function(O){O=QwT(O.target.value);O===null?this.startInput.value=hv(this.start,!0):this.forceUpdateInputs_(TwT(O,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.b.handleEndBlur_=function(O){O=QwT(O.target.value);O===null?this.endInput.value=hv(this.end,!0):this.forceUpdateInputs_(LFT(this.start,O,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.b.forceUpdateInputs_=function(O){O&&(this.start=O.start,this.end=O.end);this.startInput.value=hv(this.start,!0);this.endInput.value=hv(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.b.initializeClipRange_=function(){var O=this.seekableEnd_,x=this.seekableStart_,e=this.visible_,l=this.player_;if(!l||!e||x===null||!O)this.set("initialized",!1);else if(!this.initialized){var C=l.getCurrentTime(),Q=this.getDefaultLengthSec_();e=l.getVideoData();var L=l.getPlayerState()==1,k=e.isLive;Q=Math.min(Q,O-x);C=Math.max(0,C);O=k?LFT(C-Q,C,x,O,this.minLengthSec,this.maxLengthSec):L?bek(C-Q/2,Q,x,O):bek(C,Q,x,O);this.start=O.start;this.end=O.end;this.set("initialized",!0);e.isLive&&l.seekTo(O.start);
this.startInput.value=hv(this.start,!0);this.endInput.value=hv(this.end,!0)}};
_.b.onStartChanged_=function(){var O=this;_.wr(this.hostElement,"start-changed",{start:this.start});var x;isNaN((x=this.oldStart)!=null?x:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){O.set("highlightStart",!1);O.startHighlightTimeout=0;O.oldStart=O.start},3E3))};
_.b.onEndChanged_=function(){var O=this;_.wr(this.hostElement,"end-changed",{end:this.end});var x;isNaN((x=this.oldEnd)!=null?x:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){O.set("highlightEnd",!1);O.endHighlightTimeout=0;O.oldEnd=O.end},3E3))};
_.b.onVisibilityChangedAction_=function(O){var x=this;this.set("visible_",O.visible);this.visible_&&!this.player_&&(O=_.f7())&&O.getPlayerPromise().then(function(e){x.setPlayer(e)})};
_.b.computeMinLengthSec_=function(O){return O/1E3||5};
_.b.computeMaxLengthSec_=function(O){return O/1E3||60};
_.b.computeDefaultLengthSec_=function(O){return O/1E3};
_.b.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.b.computeSeekableStart_=function(O,x){return O&&x?O.getProgressState(1).seekableStart:0};
_.b.computeSeekableEnd_=function(O,x){return O&&x?O.getProgressState(1).seekableEnd:0};
_.b.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.b.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.b.onDragState_=function(O){this.set("highlightStart",O.detail.startChanging);this.set("highlightEnd",O.detail.endChanging)};
na.prototype.onDragState_=na.prototype.onDragState_;na.prototype.onEndChanged_=na.prototype.onEndChanged_;na.prototype.onStartChanged_=na.prototype.onStartChanged_;na.prototype.initializeClipRange_=na.prototype.initializeClipRange_;na.prototype.updateInputs_=na.prototype.updateInputs_;na.prototype.onSetRange_=na.prototype.onSetRange_;na.prototype.onSetFixedLengthRange_=na.prototype.onSetFixedLengthRange_;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],na.prototype,"data",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],na.prototype,"start",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],na.prototype,"startValid",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],na.prototype,"startWillUpdate",void 0);_.B([_.R({value:30}),_.v("design:type",Number)],na.prototype,"end",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],na.prototype,"endValid",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],na.prototype,"endWillUpdate",void 0);_.B([_.R({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.v("design:type",Number)],na.prototype,"minLengthSec",void 0);
_.B([_.R({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.v("design:type",Number)],na.prototype,"maxLengthSec",void 0);_.B([_.R({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.v("design:type",Number)],na.prototype,"defaultLengthSec",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],na.prototype,"visible_",void 0);_.B([_.R(),_.v("design:type",Object)],na.prototype,"player_",void 0);
_.B([_.R({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.v("design:type",Number)],na.prototype,"seekableStart_",void 0);_.B([_.R({computed:"computeSeekableEnd_(player_, visible_)"}),_.v("design:type",Number)],na.prototype,"seekableEnd_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],na.prototype,"initialized",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],na.prototype,"disabled",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],na.prototype,"highlightStart",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],na.prototype,"highlightEnd",void 0);_.B([_.kX("#start"),_.v("design:type",HTMLInputElement)],na.prototype,"startInput",void 0);_.B([_.kX("#end"),_.v("design:type",HTMLInputElement)],na.prototype,"endInput",void 0);
_.B([_.bH("set-fixed-length-range"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],na.prototype,"onSetFixedLengthRange_",null);_.B([_.bH("set-range"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],na.prototype,"onSetRange_",null);_.B([_.T1("start","end"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],na.prototype,"updateInputs_",null);
_.B([_.T1("player_","visible_","seekableStart_","seekableEnd_"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],na.prototype,"initializeClipRange_",null);_.B([_.T1("start"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],na.prototype,"onStartChanged_",null);_.B([_.T1("end"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],na.prototype,"onEndChanged_",null);
_.B([_.bH("clips-drag-state"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],na.prototype,"onDragState_",null);_.B([_.Va({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],na);
_.n(na,"yt-clip-creation-scrubber-renderer",function(){if(JNI===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;fGo===void 0&&(fGo=document.createElement("template"));var l=fGo;e.call(x,l.content.cloneNode(!0),O.content.firstChild);JNI=O}O=JNI;return O},{mode:2});var uj=function(){var O=_.a.apply(this,arguments)||this;O.player_=null;O.JSC$22898_playerEvents=new Map;O.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return O};
_.c(uj,_.a);_.b=uj.prototype;_.b.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"}}}};
_.b.created=function(){this.JSC$22898_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22898_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22898_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22898_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.b.detached=function(){this.setPlayer(null)};
_.b.onVisibilityChangedAction_=function(O){var x=this,e;if((e=this.data)==null?0:e.externalVideoId){var l;this.videoId=(l=this.data)==null?void 0:l.externalVideoId}this.getPlayer().then(function(C){if(O.visible)x.returnTime=C.getCurrentTime(),x.isAtLiveHead=C.getProgressState().isAtLiveHead;else{var Q=x.returnTime;x.isAtLiveHead&&(Q=Number.POSITIVE_INFINITY);C.seekTo(Q,void 0,void 0,void 0,51)}})};
_.b.getPlayer=function(){var O=this;if(!this.player_){var x=_.f7();if(x)return x.getPlayerPromise().then(function(e){O.setPlayer(e);return e})}return Promise.resolve(this.player_)};
_.b.setPlayer=function(O){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22898_playerEvents);if(O){this.player_=O;var x;((x=this.data)==null?0:x.externalVideoId)||this.set("videoId",O.getVideoData().video_id||"");var e;(O==null?void 0:(e=O.getPresentingPlayerType)==null?void 0:e.call(O))===2&&(this.set("isAdPlaying",!0),_.Sh(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22898_playerEvents)}};
_.b.ready=function(){_.$U(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.b.onTitleChanged_=function(O){this.set("titleValue",O.detail.title)};
_.b.onStartChanged_=function(O){this.set("start",O.detail.start)};
_.b.onEndChanged_=function(O){this.set("end",O.detail.end)};
_.b.onTitleValidChanged_=function(O){this.set("titleValid",O.detail.valid)};
_.b.onStartValidChanged_=function(O){this.set("startValid",O.detail.valid)};
_.b.onEndValidChanged_=function(O){this.set("endValid",O.detail.valid)};
_.b.onVideoDataChange_=function(){var O;if((O=this.data)==null||!O.externalVideoId){var x;this.set("videoId",((x=this.player_)==null?void 0:x.getVideoData().video_id)||"")}};
_.b.computeFormValid_=function(O,x,e,l){return!!(O&&x&&e&&l)};
_.b.computeCancelButton_=function(O,x,e){return O&&_.q(O,_.wf)?{buttonRenderer:Object.assign({},_.q(O,_.wf),{isDisabled:x||e})}:null};
_.b.computeSubmitButton_=function(O,x,e){return O&&_.q(O,_.wf)?{buttonRenderer:Object.assign({},_.q(O,_.wf),{command:void 0,isDisabled:!this.formValid||x||e})}:null};
_.b.computeSubmitCommand_=function(O){return O||null};
_.b.onSubmit_=function(O){var x=this;O.stopPropagation();O.preventDefault();this.submitCommand_&&(O={},O.comment_text=this.titleValue,O.clip_external_video_id=this.videoId,O.clip_offset_ms=parseInt(this.start*1E3,10),O.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.N9(this.hostElement,[this.submitCommand_,O]).then(function(){x.set("isLoading_",!1)},function(){x.set("isLoading_",!1)}))};
_.b.playerAdStartHandler_=function(){_.Sh(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.b.playerAdEndHandler_=function(){_.Sh(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.b.onVideoProgress_=function(){var O=this;this.getPlayer().then(function(x){var e,l=(x==null?void 0:(e=x.getPresentingPlayerType)==null?void 0:e.call(x))===2;O.isAdPlaying!==l&&(l?O.playerAdStartHandler_():O.playerAdEndHandler_())})};
uj.prototype.onEndValidChanged_=uj.prototype.onEndValidChanged_;uj.prototype.onStartValidChanged_=uj.prototype.onStartValidChanged_;uj.prototype.onTitleValidChanged_=uj.prototype.onTitleValidChanged_;uj.prototype.onEndChanged_=uj.prototype.onEndChanged_;uj.prototype.onStartChanged_=uj.prototype.onStartChanged_;uj.prototype.onTitleChanged_=uj.prototype.onTitleChanged_;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],uj.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",Object)],uj.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],uj.prototype,"data",void 0);_.B([_.R({value:""}),_.v("design:type",String)],uj.prototype,"titleValue",void 0);
_.B([_.R({value:!1}),_.v("design:type",Boolean)],uj.prototype,"titleValid",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],uj.prototype,"start",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],uj.prototype,"startValid",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],uj.prototype,"end",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],uj.prototype,"endValid",void 0);_.B([_.R({value:""}),_.v("design:type",String)],uj.prototype,"videoId",void 0);
_.B([_.R({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.v("design:type",Boolean)],uj.prototype,"formValid",void 0);_.B([_.R({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.v("design:type",Object)],uj.prototype,"submitButton_",void 0);_.B([_.R({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.v("design:type",Object)],uj.prototype,"submitCommand_",void 0);
_.B([_.R({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.v("design:type",Object)],uj.prototype,"cancelButton_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],uj.prototype,"isLoading_",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],uj.prototype,"isAdPlaying",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],uj.prototype,"returnTime",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],uj.prototype,"isAtLiveHead",void 0);
_.B([_.bH("title-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uj.prototype,"onTitleChanged_",null);_.B([_.bH("start-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uj.prototype,"onStartChanged_",null);_.B([_.bH("end-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uj.prototype,"onEndChanged_",null);
_.B([_.bH("title-valid-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uj.prototype,"onTitleValidChanged_",null);_.B([_.bH("start-valid-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uj.prototype,"onStartValidChanged_",null);_.B([_.bH("end-valid-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uj.prototype,"onEndValidChanged_",null);
_.B([_.Va({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],uj);
_.n(uj,"yt-clip-creation-renderer",function(){if(vCo===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;BDc===void 0&&(BDc=document.createElement("template"));var l=BDc;e.call(x,l.content.cloneNode(!0),O.content.firstChild);vCo=O}O=vCo;return O},{mode:2});var YF=function(){return _.a.apply(this,arguments)||this};
_.c(YF,_.a);YF.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"}}}};
YF.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(O){return O.hasOwnProperty("clipCreationRenderer")})&&_.Sh(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
YF.prototype.onPanelContentVisibleChanged=YF.prototype.onPanelContentVisibleChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.l4.YtVisibilityBehavior),_.v("design:type",Object)],YF.prototype,"ytVisibilityBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],YF.prototype,"ytdReduxBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],YF.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],YF.prototype,"panelContentVisible",void 0);_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YF.prototype,"onPanelContentVisibleChanged",null);_.B([_.H({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],YF);
_.n(YF,"ytd-clip-section-renderer",function(){if(dBa!==void 0)return dBa;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return dBa=O},{mode:1});var NDo;var Bz=function(){return _.a.apply(this,arguments)||this};
_.c(Bz,_.a);_.b=Bz.prototype;
_.b.onKeyDown=function(O){if(this.snippetElements.length!==0&&(O=O.keyCode,O===38||O===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);O===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.qo(this.highlightedIndex,-1,this.snippetElements.length);O=this.snippetElements.length;var x=this.highlightedIndex%O;this.highlightedIndex=x*O<0?x+O:x;O=this.snippetElements[this.highlightedIndex];this.highlightSnippet(O);this.ensureVisible(O)}};
_.b.onKeyUp=function(O){var x=this;wLE(O)&&(O.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.vn.cancelJob(this.inputTimerId),this.inputTimerId=_.vn.addLowPriorityJob(function(){x.typedValue&&(x.fetchSnippets(x.typedValue),x.logInputGesture(x.data))},1E3))};
_.b.onClick=function(O){(O=_.yjR(O.target,null,"snippet-item"))&&this.selectSnippet(O)};
_.b.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.b.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.b.ready=function(){var O=this;this.inputElement.addEventListener("focus",function(){O.snippetsWrapper.style.removeProperty("display")})};
_.b.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.b.getSourceTimelines=function(){if(!this.data)return[];var O=[];if(this.data.searchInVideoSources)for(var x=_.T(this.data.searchInVideoSources),e=x.next();!e.done;e=x.next())e=e.value,e==="SEARCH_IN_VIDEO_SOURCE_ASR"?O.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):e==="SEARCH_IN_VIDEO_SOURCE_OCR"&&O.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return O};
_.b.fetchSnippets=function(O){var x=_.Sh(this.hostElement,"yt-get-current-video-id-action")[0],e=this.getSourceTimelines();O={getSearchInVideoCommand:{externalVideoId:x,query:O!=null?O:"",sourceTimelines:e},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})};
_.b.filterSnippets=function(O,x){var e=this;if(x){this.filteredSnippets=(0,_.HX.unsafeClone)(O);var l=RegExp(_.RUL(x),"i");this.filteredSnippets=this.filteredSnippets.filter(function(L){return l.test(e.ytRendererBehavior.getSimpleString(L.snippet))});
O=_.T(this.filteredSnippets);for(var C=O.next();!C.done;C=O.next()){C=C.value;var Q=this.ytRendererBehavior.getSimpleString(C.snippet);C.snippet={runs:[{text:Q.substring(0,Q.toLowerCase().indexOf(x))},{text:Q.substring(Q.toLowerCase().indexOf(x),Q.toLowerCase().indexOf(x)+x.length),bold:!0},{text:Q.substring(Q.toLowerCase().indexOf(x)+x.length,Q.length)}]}}}else this.filteredSnippets=O};
_.b.onUpdateSearchInVideoResults=function(O){if(!(this.snippets.length>0)){var x,e,l;if((l=(x=_.q(O,bOS))==null?void 0:(e=x.results)==null?void 0:e.length)!=null&&l){var C;this.filteredSnippets=this.snippets=((C=_.q(O,bOS))==null?void 0:C.results).map(function(Q){var L,k,M;return{startMs:Q==null?void 0:(L=Q.searchInVideoResultRenderer)==null?void 0:L.startMs,startTimeText:Q==null?void 0:(k=Q.searchInVideoResultRenderer)==null?void 0:k.startTimeText,snippet:Q==null?void 0:(M=Q.searchInVideoResultRenderer)==
null?void 0:M.snippet}})}}};
_.b.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};
_.b.highlightSnippet=function(O){O.classList.add("highlighted")};
_.b.removeSnippetHighlight=function(O){O.classList.remove("highlighted")};
_.b.selectSnippet=function(O){this.typedValue=String(O.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(O);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.b.ensureVisible=function(O){var x=this.snippetsWrapper.scrollTop,e=x+this.snippetsWrapper.clientHeight,l=O.offsetTop-this.snippetsWrapper.offsetTop;O=l+O.clientHeight;l<x?this.snippetsWrapper.scrollTop-=x-l:O>e&&(this.snippetsWrapper.scrollTop+=O-e)};
_.b.seekPlayer=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1){if(!O)return l.jumpTo(0);x=Number(O.dataset.startOffset);return l.yield(_.JI().getPlayerPromise(),3)}e=l.yieldResult;e.seekTo(x/1E3,!0);e.wakeUpControls();_.Ra(l)})};
_.b.logInputGesture=function(O){var x=_.Pq();x&&(O==null?0:O.trackingParams)&&_.dT(x,_.Fv(O.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.b.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("typed-value-changed",this.typedValue))};
_.b.updateTypedValueFromBinding=function(O){this.typedValue=O.currentTarget.value};
Bz.prototype.typedValueChangedForBinding=Bz.prototype.typedValueChangedForBinding;Bz.prototype.dataChanged=Bz.prototype.dataChanged;Bz.prototype.panelContentVisibleChanged=Bz.prototype.panelContentVisibleChanged;Bz.prototype.onClick=Bz.prototype.onClick;Bz.prototype.onKeyUp=Bz.prototype.onKeyUp;Bz.prototype.onKeyDown=Bz.prototype.onKeyDown;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Bz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Bz.prototype,"data",void 0);_.B([_.R({value:[]}),_.v("design:type",Array)],Bz.prototype,"snippets",void 0);_.B([_.R({value:[]}),_.v("design:type",Array)],Bz.prototype,"filteredSnippets",void 0);_.B([_.R({value:[]}),_.v("design:type",Array)],Bz.prototype,"snippetElements",void 0);
_.B([_.kX("#siv-input"),_.v("design:type",HTMLElement)],Bz.prototype,"inputElement",void 0);_.B([_.kX("#siv-snippets-wrapper"),_.v("design:type",HTMLElement)],Bz.prototype,"snippetsWrapper",void 0);_.B([_.R(),_.v("design:type",String)],Bz.prototype,"typedValue",void 0);_.B([_.R({value:-1}),_.v("design:type",Number)],Bz.prototype,"highlightedIndex",void 0);_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[_.oj]),_.v("design:returntype")],Bz.prototype,"onKeyDown",null);
_.B([_.bH("keyup"),_.v("design:type",Function),_.v("design:paramtypes",[_.oj]),_.v("design:returntype")],Bz.prototype,"onKeyUp",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Bz.prototype,"onClick",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Bz.prototype,"panelContentVisible",void 0);
_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bz.prototype,"panelContentVisibleChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bz.prototype,"dataChanged",null);_.B([_.T1("typedValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Bz.prototype,"typedValueChangedForBinding",null);
_.B([_.H({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Bz);
_.n(Bz,"ytd-search-in-video-renderer",function(){if(NDo!==void 0)return NDo;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return NDo=O},{mode:1});var gC7;var vz=function(){return _.a.apply(this,arguments)||this};
_.c(vz,_.a);vz.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
vz.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]]"}}}}}};
vz.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var O,x,e,l,C=(x=_.q((O=this.data)==null?void 0:O.onClickCommand,_.DC4))==null?void 0:(e=x.item)==null?void 0:(l=e.notificationTextRenderer)==null?void 0:l.successResponseText;C&&_.GPs(this.hostElement,C)}};
_.Dy.Object.defineProperties(vz.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;return this.isProductPlaceholder&&((O=this.data)==null?void 0:(x=O.hiddenProductOptions)==null?void 0:x.showDropCountdown)&&!!((e=this.data)==null?0:(l=e.hiddenProductOptions)==null?0:l.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var O;return!this.isProductPlaceholder&&!((O=this.data)==null?0:O.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null?0:O.priceReplacementText)&&!((x=this.data)==null||!x.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],vz.prototype,"componentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vz.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("isProductPlaceholder"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"useCenterLayoutContainer",null);_.B([_.R({computed:"computeButtonOverride(data)"}),_.v("design:type",Object)],vz.prototype,"buttonOverride",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"isProductPlaceholder",null);
_.B([_.p("isProductPlaceholder"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"showDropCountdown",null);_.B([_.p("isProductPlaceholder","data"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"showBrandName",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"showPriceReplacementText",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"showPrice",null);
_.B([_.p("isProductPlaceholder"),_.v("design:type",Object),_.v("design:paramtypes",[])],vz.prototype,"showMetadata",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],vz);
_.n(vz,"ytd-product-list-item-renderer",function(){if(gC7!==void 0)return gC7;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return gC7=O},{mode:1});var $B7;var fa=function(){return _.a.apply(this,arguments)||this};
_.c(fa,_.a);fa.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
fa.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
fa.prototype.panelContentVisibleChanged=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return O.playerApi?e.jumpTo(2):e.yield(_.JI().getPlayerPromise(),3);e.nextAddress!=2&&(O.playerApi=e.yieldResult);(x=O.playerApi)==null||x.productsInVideoVisibilityUpdated(!!O.panelContentVisible);_.Ra(e)})};
fa.prototype.panelContentVisibleChanged=fa.prototype.panelContentVisibleChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],fa.prototype,"panelContentVisible",void 0);_.B([_.R(),_.v("design:type",Object)],fa.prototype,"data",void 0);
_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],fa.prototype,"panelContentVisibleChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],fa);
_.n(fa,"ytd-product-list-renderer",function(){if($B7!==void 0)return $B7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return $B7=O},{mode:1});var i$o;var Jp=function(){var O=_.a.apply(this,arguments)||this;O.hideTimestamps=!!_.tU("hide-transcript-timestamps");O.currentCueIndex=-1;O.flatCues=[];O.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};O.TEST_ONLY={getFlatCues:function(){return O.flatCues}};
return O};
_.c(Jp,_.a);_.b=Jp.prototype;_.b.hideTimestampsChanged=function(){_.EA("hide-transcript-timestamps",this.hideTimestamps)};
_.b.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.b.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.b.dataChanged=function(){var O;if((O=this.data)!=null&&O.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;O=_.T(this.data.cueGroups);for(var x=O.next();!x.done;x=O.next()){x=_.T(_.q(x.value,Tzk).cues);for(var e=x.next();!e.done;e=x.next())this.flatCues.push(Number(_.q(e.value,LxT).startOffsetMs))}}};
_.b.onYtPlayerTimeChanged=function(O){if(!(O<0)){for(var x=this.currentCueIndex,e=x;;){var l=e>=0?this.flatCues[e]/1E3:-1;if(O+.5<l)--e;else if(l=e+1<this.flatCues.length?this.flatCues[e+1]/1E3:Infinity,O+.5>l)e+=1;else break}e!==x&&(x>=0&&((O=this.getCueElement(x))&&O.classList.remove("active"),(x=this.getCueGroupElement(x))&&x.classList.remove("active")),(x=this.getCueElement(e))&&x.classList.add("active"),(x=this.getCueGroupElement(e))&&x.classList.add("active"),this.currentCueIndex=e,this.isHovered||
this.scrollElementToTop(e))}};
_.b.scrollElementToTop=function(O){O=this.getCueElement(O>=3?O-3:0);this.hostElement.scrollTop=Math.min(O.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.b.getCueElement=function(O){return _.$U(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[O]+'"]')};
_.b.getCueGroupElement=function(O){return(O=this.getCueElement(O))&&O.parentElement?O.parentElement.parentElement:null};
_.b.onTap=function(O){var x=_.uK(O);O.target.classList.contains("cue")&&this.seekCueElement(x)};
_.b.onKeyPress=function(O){O.keyCode==13&&(O=_.yjR(O.target,null,"cue"))&&this.seekCueElement(O)};
_.b.seekCueElement=function(O){O=Number(O.getAttribute("start-offset"));_.Sh(this.hostElement,"yt-transcript-player-seek",[O/1E3])};
_.b.onMouseEnter=function(){this.isHovered=!0};
_.b.onMouseLeave=function(){this.isHovered=!1};
Jp.prototype.onMouseLeave=Jp.prototype.onMouseLeave;Jp.prototype.onMouseEnter=Jp.prototype.onMouseEnter;Jp.prototype.onKeyPress=Jp.prototype.onKeyPress;Jp.prototype.onTap=Jp.prototype.onTap;Jp.prototype.dataChanged=Jp.prototype.dataChanged;Jp.prototype.hideTimestampsChanged=Jp.prototype.hideTimestampsChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Jp.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Jp.prototype,"hideTimestamps",void 0);_.B([_.R(),_.v("design:type",Boolean)],Jp.prototype,"isHovered",void 0);_.B([_.T1("hideTimestamps"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jp.prototype,"hideTimestampsChanged",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jp.prototype,"dataChanged",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Jp.prototype,"onTap",null);_.B([_.bH("keypress"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],Jp.prototype,"onKeyPress",null);
_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jp.prototype,"onMouseEnter",null);_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Jp.prototype,"onMouseLeave",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Jp);
_.n(Jp,"ytd-transcript-body-renderer",function(){if(i$o!==void 0)return i$o;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return i$o=O},{mode:1});var OtT;var wu=function(){var O=_.a.apply(this,arguments)||this;O.darkerPanels=_.t("web_watch_darker_panels");return O};
_.c(wu,_.a);wu.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],wu.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],wu.prototype,"darkerPanels",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],wu);
_.n(wu,"ytd-transcript-footer-renderer",function(){if(OtT!==void 0)return OtT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return OtT=O},{mode:1});var xuT;var ewU;var S4=function(){var O=_.a.apply(this,arguments)||this;O.systemIcons=_.t("kevlar_system_icons");O.showClearButton=!1;return O};
_.c(S4,_.a);_.b=S4.prototype;_.b.handleInput=function(O){var x=this;O.target.value.length?_.hY(this,"ytdTranscriptSearchBoxSearch",function(){x.emitSearchEvent(O)},500):(_.VzL(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=O.target.value.length>0};
_.b.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.b.handleClick=function(){var O,x=(O=this.data)==null?void 0:O.trackingParams;x&&_.I7(_.k0(),x)};
_.b.handleClear=function(){_.VzL(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var O,x,e=(x=_.q((O=this.data)==null?void 0:O.clearButton,_.wf))==null?void 0:x.trackingParams;e&&_.I7(_.k0(),e);this.clear()};
_.b.emitSearchEvent=function(O){_.wr(this.hostElement,"yt-transcript-search-box-search",{query:O.target.value});var x,e;(O=(e=_.q((x=this.data)==null?void 0:x.searchButton,_.wf))==null?void 0:e.trackingParams)&&_.I7(_.k0(),O)};
_.b.emitClearEvent=function(){_.wr(this.hostElement,"yt-transcript-search-box-clear")};
_.Dy.Object.defineProperties(S4.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.$U(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],S4.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],S4.prototype,"systemIcons",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],S4);
_.n(S4,"ytd-transcript-search-box-renderer",function(){if(ewU!==void 0)return ewU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ewU=O},{mode:1});var lPS;var CUy;var j4=function(){return _.a.apply(this,arguments)||this};
_.c(j4,_.a);j4.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var O,x;this.sectionHeaderAriaLabel=(O=this.data)==null?void 0:(x=O.accessibility)==null?void 0:x.accessibilityData.label}};
j4.prototype.fireSelectedEvent=function(O){_.wr(this.hostElement,"ytd-transcript-section-header",{startMs:O})};
j4.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
j4.prototype.handleKeyPress=function(O){this.data&&O.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Dy.Object.defineProperties(j4.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.data)==null?void 0:O.enableTappableTranscriptHeader)!=null?x:!1}}});
j4.prototype.dataChanged=j4.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],j4.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],j4.prototype,"sectionHeaderAriaLabel",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],j4.prototype,"enableTappableTranscriptHeader",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],j4.prototype,"dataChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],j4);
_.n(j4,"ytd-transcript-section-header-renderer",function(){if(CUy!==void 0)return CUy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return CUy=O},{mode:1});var Qfs;var bto;var NJ=function(){var O=_.a.apply(this,arguments)||this;O.isEditMode=!1;O.touchCaptionsEnabled=!1;O.deleteCaptionCorrectionPopupCommand=null;O.voteCaptionCorrectionPopupCommand=null;O.roundedContainer=!0;O.mouseOver=!1;O.textChanged=!1;O.messages={suggest_correction:_.CZ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.CZ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.CZ("submit_correction",void 0,"Submit for review"),cancel_correction:_.CZ("cancel_correction",
void 0,"Cancel"),replay_segment:_.CZ("replay_segment",void 0,"Re-play segment"),delete_correction:_.CZ("delete_correction",void 0,"Delete correction")};O.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return O};
_.c(NJ,_.a);_.b=NJ.prototype;_.b.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)};
_.b.handleDelete=function(O){if(this.deleteCaptionCorrectionPopupCommand){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);x&&this.ytdOpenPopupBehavior.openPopup(x);O.stopPropagation()}};
_.b.handleSubmit=function(O){if(this.data&&this.data.submitCaptionCorrectionCommand&&(O.stopPropagation(),this.textChanged)){var x;O=(x=_.q(this.data.submitCaptionCorrectionCommand,_.oR2))==null?void 0:x.params;x=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:O,correctionText:String(this.ironTextAreaElement.value),originalText:_.db(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(x);this.isEditMode=!1}};
_.b.handleUpdateSegmentText=function(O){(O=_.q(O,VSa))&&O.targetId&&this.data&&O.targetId===this.data.targetId&&(O.userCorrection&&(this.editedText=O.userCorrection),O.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.db(this.data.snippet)),O.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=O.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=O.voteCaptionCorrectionPopupCommand?
O.voteCaptionCorrectionPopupCommand:null,O.accessibility&&(this.segmentAriaLabel=O.accessibility.accessibilityData.label))};
_.b.handleCancel=function(O){this.isEditMode=!1;O.stopPropagation();this.logClientVe(159409)};
_.b.handleEditSegmentCommand=function(O){(O=_.q(O,IKy))&&O.targetId&&this.data&&O.targetId===this.data.targetId&&this.handleEdit()};
_.b.handleEditButtonClick=function(O){this.data&&(this.handleEdit(),O.stopPropagation())};
_.b.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var O;(O=this.ironTextAreaElement.textarea)==null||O.focus();this.logClientVe(159407)}};
_.b.handleMouseEnter=function(){this.mouseOver=!0};
_.b.handleMouseLeave=function(){this.mouseOver=!1};
_.b.handleReplay=function(O){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),O.stopPropagation(),this.logClientVe(159408))};
_.b.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()))};
_.b.handleKeypress=function(O){this.data&&(this.isEditMode?O.stopPropagation():this.isEnterPress(O)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(O)&&this.logClientVe(138758))};
_.b.handleTextboxClick=function(O){O.stopPropagation()};
_.b.handleTextboxKeydown=function(O){this.isControlEnterPress(O)?this.handleSubmit(O):O.key==="Escape"&&this.handleCancel(O)};
_.b.handleTextboxKeyup=function(){this.textChanged=_.db(this.latestText)!==String(this.ironTextAreaElement.value)};
_.b.fireSelectedEvent=function(O){_.wr(this.hostElement,"yt-transcript-segment-selected",{startMs:O})};
_.b.fireReplayEvent=function(O,x){_.wr(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(O-100,0),endMs:x})};
_.b.fireEditEvent=function(O,x){_.wr(this.hostElement,"yt-transcript-segment-edit",{startMs:O,endMs:x})};
_.b.isEnterPress=function(O){return O.key==="Enter"||O.code==="Enter"||O.code==="NumpadEnter"||O.keyCode===13?!0:!1};
_.b.isControlEnterPress=function(O){var x=O.key==="Enter"||O.code==="Enter"||O.code==="NumpadEnter"||O.keyCode===13;return(O.ctrlKey||O.metaKey)&&x};
_.b.isCopyPress=function(O){var x=O.ctrlKey;return O.key==="c"&&x};
_.b.logClick=function(){var O,x=(O=this.data)==null?void 0:O.trackingParams;x&&_.I7(_.k0(),x)};
_.b.logClientVe=function(O){_.cu(_.k0(),_.O9(O))};
_.Dy.Object.defineProperties(NJ.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}}});
NJ.prototype.handleMouseLeave=NJ.prototype.handleMouseLeave;NJ.prototype.handleMouseEnter=NJ.prototype.handleMouseEnter;NJ.prototype.dataChanged=NJ.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],NJ.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],NJ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NJ.prototype,"isEditMode",void 0);_.B([_.R(),_.v("design:type",Object)],NJ.prototype,"touchCaptionsEnabled",void 0);_.B([_.R(),_.v("design:type",Object)],NJ.prototype,"editedText",void 0);_.B([_.R(),_.v("design:type",Object)],NJ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.B([_.R(),_.v("design:type",Object)],NJ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.B([_.R(),_.v("design:type",String)],NJ.prototype,"segmentAriaLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NJ.prototype,"roundedContainer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NJ.prototype,"mouseOver",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NJ.prototype,"textChanged",void 0);_.B([_.R(),_.v("design:type",Object)],NJ.prototype,"messages",void 0);
_.B([_.kX("#suggestion"),_.v("design:type",Object)],NJ.prototype,"ironTextAreaElement",void 0);_.B([_.p("data","editedText"),_.v("design:type",Object),_.v("design:paramtypes",[])],NJ.prototype,"latestText",null);_.B([_.p("touchCaptionsEnabled","isEditMode"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NJ.prototype,"enableEditButton",null);
_.B([_.p("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],NJ.prototype,"enableUndoButton",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NJ.prototype,"dataChanged",null);_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NJ.prototype,"handleMouseEnter",null);
_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NJ.prototype,"handleMouseLeave",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],NJ);
_.n(NJ,"ytd-transcript-segment-renderer",function(){if(bto!==void 0)return bto;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return bto=O},{mode:1});var gu=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};O.isError=!1;O.darkerPanels=_.t("web_watch_darker_panels");O.useParentMaxHeight=_.t("web_watch_transscript_use_parent_max_height");O.segmentOffsets=[];O.segmentIndex=-1;return O};
_.c(gu,_.a);_.b=gu.prototype;_.b.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"}}}}};
_.b.segmentsChanged=function(){this.updateOffsets()};
_.b.onYtPlayerTimeChanged=function(O){for(var x=this.segmentIndex,e=x;;){if(e>=0){var l=this.segmentOffsets[e].start;var C=this.segmentOffsets[e].isAutoScrollable}else l=-1,C=!0;var Q=O+.5;if(!C){l=e+1<this.segmentOffsets.length?this.segmentOffsets[e+1].start:Infinity;if(Q>=l){e+=1;continue}e=-1;break}if(Q<l)l=e-1>=0&&this.segmentOffsets[e-1].isAutoScrollable,C=e===0||l?1:2,e-=C;else if(C=e+1<this.segmentOffsets.length&&this.segmentOffsets[e+1].isAutoScrollable?1:2,l=e+C<this.segmentOffsets.length?
this.segmentOffsets[e+C].start:Infinity,Q>l)e+=C;else{if(e<0)break;e<this.segmentOffsets.length&&Q>this.segmentOffsets[e].end&&(e=-1);break}}if(x!==e){if(x>=0){var L;(L=this.getSegmentElement(x))==null||L.classList.remove("active")}this.segmentIndex=e;if(!(e<0)){var k;(k=this.getSegmentElement(e))==null||k.classList.add("active");this.isHovered||this.scrollElementToTop(e)}}};
_.b.handleSegmentEdit=function(O){O.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=O.target,_.Sh(this.hostElement,"yt-transcript-player-edit",[O.detail.startMs/1E3,O.detail.endMs/1E3]))};
_.b.handleSegmentSelected=function(O){_.Sh(this.hostElement,"yt-transcript-player-seek",[O.detail.startMs/1E3])};
_.b.handleSegmentReplay=function(O){_.Sh(this.hostElement,"yt-transcript-player-replay",[O.detail.startMs/1E3,O.detail.endMs/1E3])};
_.b.handleSectionHeaderSelected=function(O){_.Sh(this.hostElement,"yt-transcript-player-seek",[O.detail.startMs/1E3])};
_.b.onMouseEnter=function(){this.isHovered=!0};
_.b.onMouseLeave=function(){this.isHovered=!1};
_.b.onRetryButtonClick=function(){_.wr(this.hostElement,"transcript-retry-button-click")};
_.b.getSegmentElement=function(O){return _.$U(this.hostElement).querySelector(":nth-child("+(O+1)+")")};
_.b.scrollElementToTop=function(O){O=this.getSegmentElement(O>=2?O-2:0);this.hostElement.scrollTop=Math.min(O.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.b.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(O){var x,e=(x=O.transcriptSegmentRenderer)!=null?x:O.transcriptSectionHeaderRenderer;return{start:Number(e.startMs)/1E3,end:Number(e.endMs)/1E3,isAutoScrollable:O.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.b.clearHighlightedSegments=function(){var O=_.$U(this.hostElement);O=_.T(O.querySelectorAll("ytd-transcript-segment-renderer"));for(var x=O.next();!x.done;x=O.next())x.value.classList.remove("active")};
_.Dy.Object.defineProperties(gu.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.searchResultSegments)||((x=this.data)==null?void 0:x.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
gu.prototype.onMouseLeave=gu.prototype.onMouseLeave;gu.prototype.onMouseEnter=gu.prototype.onMouseEnter;gu.prototype.handleSectionHeaderSelected=gu.prototype.handleSectionHeaderSelected;gu.prototype.handleSegmentReplay=gu.prototype.handleSegmentReplay;gu.prototype.handleSegmentSelected=gu.prototype.handleSegmentSelected;gu.prototype.handleSegmentEdit=gu.prototype.handleSegmentEdit;gu.prototype.segmentsChanged=gu.prototype.segmentsChanged;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],gu.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gu.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],gu.prototype,"isError",void 0);
_.B([_.R(),_.v("design:type",Object)],gu.prototype,"noResultLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gu.prototype,"darkerPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gu.prototype,"useParentMaxHeight",void 0);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],gu.prototype,"segments",null);
_.B([_.p("segments","noResultLabel"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],gu.prototype,"displayNoResults",null);_.B([_.T1("segments"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gu.prototype,"segmentsChanged",null);_.B([_.bH("yt-transcript-segment-edit"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],gu.prototype,"handleSegmentEdit",null);
_.B([_.bH("yt-transcript-segment-selected"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],gu.prototype,"handleSegmentSelected",null);_.B([_.bH("yt-transcript-segment-replay"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],gu.prototype,"handleSegmentReplay",null);
_.B([_.bH("ytd-transcript-section-header"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],gu.prototype,"handleSectionHeaderSelected",null);_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gu.prototype,"onMouseEnter",null);_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gu.prototype,"onMouseLeave",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],gu);
_.n(gu,"ytd-transcript-segment-list-renderer",function(){if(Qfs!==void 0)return Qfs;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Qfs=O},{mode:1});var $F=function(){var O=_.a.apply(this,arguments)||this;O.hideTimestamps=!!_.tU("hide-transcript-timestamps");O.isLoadingTranscripts=!1;O.darkerPanels=_.t("web_watch_darker_panels");O.isError=!1;O.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return O};
_.c($F,_.a);_.b=$F.prototype;_.b.headerChanged=function(){var O,x;this.baseGetTranscriptsCommand=(x=_.q((O=this.data)==null?void 0:O.header,pES))==null?void 0:x.onTextChangeCommand};
_.b.bodyChanged=function(){var O=this.getBodyRenderer();O&&(O.initialSegments&&(this.initialTranscriptsRenderer=O),O.noResultLabel&&(this.noResultLabel=O.noResultLabel),O.retryLabel&&(this.retryLabel=O.retryLabel))};
_.b.detached=function(){this.clearSearchBoxText()};
_.b.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.b.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"}}}};
_.b.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.b.fireSearch=function(O){var x=this;if(O){var e=O.detail.query;if(this.baseGetTranscriptsCommand){var l;O=(l=_.q(this.baseGetTranscriptsCommand,_.Xg4))==null?void 0:l.params;var C;l=_.q((C=this.data)==null?void 0:C.footer,knk);var Q;if((C=(Q=_.q(l==null?void 0:l.languageMenu,q0H))==null?void 0:Q.subMenuItems)&&C.length>0&&(Q=C.find(function(M){return M.selected}))){var L,k;
O=(L=Q.continuation)==null?void 0:(k=L.reloadContinuationData)==null?void 0:k.continuation}L=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:O,searchQuery:e}});this.ytComponentBehavior.resolveCommand(L,{commandController:{onServerError:function(){x.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});feH(this.ytContinuationHandlerBehavior,function(){return e===x.getCurrentSearchBoxText()})}}};
_.b.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.b.onRetryButtonClick=function(){this.isError=!1;var O={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:O}))};
_.b.hideTimestampsChanged=function(){_.EA("hide-transcript-timestamps",this.hideTimestamps)};
_.b.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.b.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.b.handleSignalActionCopyTranscript=function(){var O=this,x=this.getBodyRenderer();x&&(x=((x==null?void 0:x.searchResultSegments)||(x==null?void 0:x.initialSegments)||[]).map(function(e){return _.q(e,UDy)}).filter(function(e){return!!e}).map(function(e){return{snippet:e.snippet||{runs:[{text:""}]},
startTimeText:e.startTimeText||{simpleText:""}}}).map(function(e){var l=(e.snippet.runs||[]).reduce(function(C,Q){return C+Q.text},"");
return O.hideTimestamps?l:e.startTimeText.simpleText+" "+l}).join("\n"),this.copyToClipboard(x))};
_.b.copyToClipboard=function(O){navigator.clipboard&&navigator.clipboard.writeText(O)};
_.b.getCurrentSearchBoxText=function(){var O;return(O=this.searchBox)==null?void 0:O.value};
_.b.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.b.getBodyRenderer=function(){var O;return _.q((O=this.data)==null?void 0:O.body,Rn7)};
_.b.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Dy.Object.defineProperties($F.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.$U(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
$F.prototype.hideTimestampsChanged=$F.prototype.hideTimestampsChanged;$F.prototype.searchCleared=$F.prototype.searchCleared;$F.prototype.fireSearch=$F.prototype.fireSearch;$F.prototype.onReloadContinuationFinish=$F.prototype.onReloadContinuationFinish;$F.prototype.bodyChanged=$F.prototype.bodyChanged;$F.prototype.headerChanged=$F.prototype.headerChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$F.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],$F.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$F.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$F.prototype,"hideTimestamps",void 0);
_.B([_.R(),_.v("design:type",Object)],$F.prototype,"isLoadingTranscripts",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$F.prototype,"darkerPanels",void 0);_.B([_.R(),_.v("design:type",Object)],$F.prototype,"isError",void 0);_.B([_.T1("data.header"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$F.prototype,"headerChanged",null);
_.B([_.G1("data.body"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$F.prototype,"bodyChanged",null);_.B([_.bH("yt-reload-continuation-finish"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$F.prototype,"onReloadContinuationFinish",null);_.B([_.bH("yt-transcript-search-box-search"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],$F.prototype,"fireSearch",null);
_.B([_.bH("yt-transcript-search-box-clear"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$F.prototype,"searchCleared",null);_.B([_.T1("hideTimestamps"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$F.prototype,"hideTimestampsChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],$F);
_.n($F,"ytd-transcript-search-panel-renderer",function(){if(lPS!==void 0)return lPS;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return lPS=O},{mode:1});var ij=function(){var O=_.a.apply(this,arguments)||this;O.player=null;O.playerPollJobId=0;return O};
_.c(ij,_.a);_.b=ij.prototype;_.b.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.b.onLoadReloadContinuation=function(O){_.t("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:O.target.data.continuation}}):(O={clickTrackingParams:O.target.data.clickTrackingParams,getTranscriptEndpoint:{params:O.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}}))};
_.b.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"}}}};
_.b.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.b.attached=function(){this.updatePlayerListening()};
_.b.detached=function(){this.updatePlayerListening()};
_.b.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.b.startPlayerListening=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return(x=_.f7())?e.yield(x.getPlayerPromise(),2):e.return();O.player=e.yieldResult;O.playerPollJobId=_.vn.addLowPriorityJob(function(){O.getPlayerVideoProgress()},1E3);
O.player.addEventListener("onCueRangeEnter",function(l){O.onCueRangeEnter(l)});
O.player.addEventListener("onCueRangeExit",function(l){O.onCueRangeExit(l)});
O.player.addEventListener("onStateChange",function(l){O.onPlayerStateChange(l)});
O.player.addEventListener("SEEK_TO",function(l){O.onPlayerSeek(l)});
_.Ra(e)})};
_.b.getPlayerVideoProgress=function(){var O=this;_.vn.cancelJob(this.playerPollJobId);if(this.player){var x=this.player.getCurrentTime();_.Sh(this.hostElement,"yt-player-time-changed",[x])}this.playerPollJobId=_.vn.addLowPriorityJob(function(){O.getPlayerVideoProgress()},1E3)};
_.b.stopPlayerListening=function(){this.player=null;_.vn.cancelJob(this.playerPollJobId)};
_.b.onPlayerStateChange=function(O){O===2&&this.removePendingCue()};
_.b.onPlayerSeek=function(O){var x;if(x=this.pendingReplayCueId)x=this.pendingReplayCueId,x=O===(_.t("web_transcript_cue_id_killswitch")?Number(x):Number(x.split("_")[1]));x||this.removePendingCue()};
_.b.onCueRangeEnter=function(O){A6c(O)&&(this.pendingReplayCueId=O)};
_.b.onCueRangeExit=function(O){A6c(O)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.b.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.b.onYtTranscriptPlayerSeek=function(O){this.player&&this.player.seekTo(O,!0)};
_.b.onYtTranscriptPlayerReplay=function(O,x){this.player&&(this.player.addCueRange(kca(O),O,x),this.player.seekTo(O,!0),this.player.playVideo())};
_.b.onYtTranscriptPlayerEdit=function(O,x){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(kca(O),O,x),this.player.seekTo(O,!0))};
ij.prototype.onLoadReloadContinuation=ij.prototype.onLoadReloadContinuation;ij.prototype.panelContentVisibleChanged=ij.prototype.panelContentVisibleChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ij.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ij.prototype,"panelContentVisible",void 0);_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ij.prototype,"panelContentVisibleChanged",null);
_.B([_.bH("yt-load-reload-continuation"),_.v("design:type",Function),_.v("design:paramtypes",[Object]),_.v("design:returntype")],ij.prototype,"onLoadReloadContinuation",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ij);
_.n(ij,"ytd-transcript-renderer",function(){if(xuT!==void 0)return xuT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return xuT=O},{mode:1});var Tl7;var Lvz;var O$=function(){return _.a.apply(this,arguments)||this};
_.c(O$,_.a);O$.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.gr(this.hostElement,[this.data.clickCommand],this.hostElement))};
O$.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.DT)()+_.dJ)+"px)"};
O$.prototype.updateShouldHideFromBinding=function(O){this.shouldHide=O.detail.value};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],O$.prototype,"rendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],O$.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],O$.prototype,"shouldHide",void 0);_.B([_.H({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],O$);
_.n(O$,"ytd-ad-engagement-panel-banner-renderer",function(){if(Lvz!==void 0)return Lvz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Lvz=O},{mode:_.gq("kevlar_poly_si_batch_j070")?1:2});var klH;var xD=function(){var O=_.a.apply(this,arguments)||this;O.modernPanels=_.t("kevlar_watch_modern_panels");O.buttonUpdate=_.t("web_modern_buttons");O.adsSemanticText=_.t("enable_ads_web_ep_buenos_aires_and_padding_fix");return O};
_.c(xD,_.a);xD.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.B([_.R(),_.v("design:type",Object)],xD.prototype,"data",void 0);_.B([_.R({computed:"computeHideDefaultAdBadge(data)"}),_.v("design:type",Boolean)],xD.prototype,"hideDefaultAdBadge",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xD.prototype,"modernPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xD.prototype,"buttonUpdate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],xD.prototype,"adsSemanticText",void 0);
_.B([_.H({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],xD);
_.n(xD,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(klH!==void 0)return klH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return klH=O},{mode:1});var AGa;var es=function(){var O=_.a.apply(this,arguments)||this;O.darkerPanels=_.t("web_watch_darker_panels");O.enableSqueezebackPanels=_.t("web_shorts_enable_squeezeback_panels");O.enableAnchoredPanel=_.t("desktop_shorts_v2_anchored_panel");O.modernPanels=_.t("kevlar_watch_modern_panels");O.headerClickListener=function(x){O.onHeaderClick(x)};
O.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return O};
_.c(es,_.a);_.b=es.prototype;_.b.computeAdsInfoButton=function(){if(_.t("web_modern_buttons")){var O,x;return(x=_.q((O=this.data)==null?void 0:O.subtitleComplex,AZw))==null?void 0:x.adInfoRenderer}};
_.b.updateHeaderClickListener=function(){var O,x,e;((O=this.data)==null?0:O.navigationEndpoint)||((x=this.data)==null?0:x.onClickCommand)||_.q((e=this.data)==null?void 0:e.visibilityButton,_.Sm)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.b.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}}}}}};
_.b.collapsedChanged=function(){var O;(O=this.data)!=null&&O.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.t("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.b.focus=function(O){var x=this;this.titleElement&&_.vn.addJob(function(){_.QQ(x.titleElement,O)},0,500)};
_.b.computeTitleAriaLabel=function(O){var x=[];if(O.title){var e,l;x.push(this.ytRendererBehavior.getSimpleString(O.title)||((e=O.title.accessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label))}O.contextualInfo&&x.push(this.ytRendererBehavior.getSimpleString(O.contextualInfo));return x.join(" ")};
_.b.onHeaderClick=function(O){this.shouldTriggerHeaderClick(O)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.gr(this.hostElement,[this.data.onClickCommand],this.hostElement)):(O=this.getVisibilityToggleButton())&&O.click())};
_.b.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var O=_.q(this.data.visibilityButton,_.wf)||_.q(this.data.visibilityButton,_.Sm);O&&this.ytRendererBehavior.logExplicitClick(O)}};
_.b.getVisibilityToggleButton=function(){var O=_.$U(this.hostElement).querySelector("#visibility-button").firstElementChild;return(O==null?void 0:O.is)==="ytd-toggle-button-renderer"?O:null};
_.b.shouldTriggerHeaderClick=function(O){return!_.uk(_.n3(O),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.b.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(O){O=_.q(O,_.xDw);this.targetId&&(O==null?void 0:O.targetId)===this.targetId&&(O=O.navigationButton)&&this.set("data.navigationButton",O)};
_.Dy.Object.defineProperties(es.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.t("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var O;return!!(((O=this.entity)==null?0:O.isActionButtonHidden)||this.hideActionButton)}}});
es.prototype.collapsedChanged=es.prototype.collapsedChanged;es.prototype.updateHeaderClickListener=es.prototype.updateHeaderClickListener;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],es.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],es.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],es.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],es.prototype,"targetId",void 0);_.B([_.R(),_.v("design:type",Boolean)],es.prototype,"collapsed",void 0);_.B([_.R(),_.v("design:type",Boolean)],es.prototype,"hideActionButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],es.prototype,"shortsPanel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],es.prototype,"liveChatEngagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],es.prototype,"learningChatEngagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],es.prototype,"darkerPanels",void 0);_.B([_.kX("#title"),_.v("design:type",HTMLElement)],es.prototype,"titleElement",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],es.prototype,"headerElement",void 0);
_.B([_.R({computed:"computeAdsInfoButton(data)"}),_.v("design:type",Object)],es.prototype,"adsInfoButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],es.prototype,"enableSqueezebackPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],es.prototype,"enableAnchoredPanel",void 0);_.B([_.R({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(O,x){return _.xE(O.entities,"engagementPanelTitleHeaderEntity",x)}}),
_.v("design:type",Object)],es.prototype,"entity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],es.prototype,"modernPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("targetId"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],es.prototype,"adsSemanticText",null);_.B([_.T1("data","data.navigationEndpoint","data.onClickCommand"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],es.prototype,"updateHeaderClickListener",null);
_.B([_.G1("collapsed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],es.prototype,"collapsedChanged",null);_.B([_.p("entity","hideActionButton"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],es.prototype,"isActionButtonHidden",null);_.B([_.H({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],es);
_.n(es,"ytd-engagement-panel-title-header-renderer",function(){if(AGa!==void 0)return AGa;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return AGa=O},{mode:1});var MbE;var l$=function(){return _.a.apply(this,arguments)||this};
_.c(l$,_.a);l$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],l$.prototype,"data",void 0);_.B([_.H({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],l$);
_.n(l$,"ytd-macro-markers-info-item-renderer",function(){if(MbE!==void 0)return MbE;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return MbE=O},{mode:1});var Dua;var CH=function(O,x,e,l,C,Q){_.h0.call(this);var L=this;this.JSC$22999_containerElement=O;this.hostElement=x;this.supportedSyncItems=e;this.syncEntityKey=l;this.options=C;this.renderLazyListItems=Q;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;GlU(this);FvI(this);this.JSC$22999_scrollAnimation=new _.TE(function(k){O.scrollTop=k});
_.qq(this,this.JSC$22999_scrollAnimation);this.addOnDisposeCallback(function(){XHh(L,!1);L.activeItem&&L.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.c(CH,_.h0);var GlU=function(O){var x=_.mw(_.GG().resolve(_.gH),function(e){return e.entities.markersEngagementPanelSyncEntity||{}},function(e,l){var C;
if(e[O.syncEntityKey]!==l[O.syncEntityKey]&&((C=e[O.syncEntityKey])==null?void 0:C.activeItemIndex)!==void 0)if(l=e[O.syncEntityKey].activeItemIndex,e=O.getItemByIndex(l)){if(obI(O,e),O.contentVisible)if(O.browsingMode){var Q;((Q=O.options)==null?void 0:Q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Q=yGS(O),e.offsetTop<O.JSC$22999_containerElement.clientHeight+O.JSC$22999_containerElement.scrollTop&&Q&&!O.activeItemBelowSyncPosition&&XHh(O,!1));Ztw(O)}else O.scrollToItem(e)}else _.ft(new _.ry("Could not find "+
O.supportedSyncItems+" sync child to set active.",l,O.JSC$22999_containerElement.querySelectorAll(O.supportedSyncItems).length))});
O.unsubscribeFromTimedMarkersListSyncEntity=x;O.addOnDisposeCallback(x);Eby(O)},Eby=function(O){var x=_.GG().resolve(_.gH);
x=_.trm(x.getState(),O.syncEntityKey);(x==null?void 0:x.activeItemIndex)!==void 0&&(x=O.getItemByIndex(x.activeItemIndex))&&obI(O,x)},FvI=function(O){var x=new _.QI(O.onScroll,50,O);
_.qq(O,x);var e=function(){x.fire()};
O.JSC$22999_containerElement.addEventListener("scroll",e);O.addOnDisposeCallback(function(){O.JSC$22999_containerElement.removeEventListener("scroll",e)})};
CH.prototype.getItemByIndex=function(O){var x;(x=this.renderLazyListItems)==null||x.call(this,O);x=this.JSC$22999_containerElement.querySelectorAll(this.supportedSyncItems);if(x.length>O)return x[O]};
var obI=function(O,x){O.activeItem&&O.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));x.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));O.activeItem=x};
CH.prototype.scrollToItem=function(O){O=this.getScrollPositionForItem(O);this.JSC$22999_containerElement.scrollTop!==O&&this.JSC$22999_scrollAnimation.start(this.JSC$22999_containerElement.scrollTop,O,300)};
CH.prototype.getScrollPositionForItem=function(O){if(this.JSC$22999_containerElement.querySelectorAll(this.supportedSyncItems)[0]===O)return 0;var x,e=((x=this.options)==null?0:x.percentOffset)?this.JSC$22999_containerElement.clientHeight*this.options.percentOffset:0;O=_.vX(O).y+this.JSC$22999_containerElement.scrollTop-(_.vX(this.JSC$22999_containerElement).y+e);return Math.max(0,Math.min(O,this.JSC$22999_containerElement.scrollHeight-this.JSC$22999_containerElement.offsetHeight))};
CH.prototype.onScroll=function(){this.activeItemBelowSyncPosition=yGS(this);if(this.activeItem&&!this.JSC$22999_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22999_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var O;switch((O=this.options)==null?void 0:O.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":tbw(this,!qn7(this));Ztw(this);break;default:tbw(this,!0)}}};
var tbw=function(O,x){var e,l;_.A(function(C){if(C.nextAddress==1){if(O.browsingMode)return C.return();O.browsingMode=!0;x&&O.hostElement.classList.add("browsing-mode");O.playerExitBrowsingModeListener=function(){XHh(O,!1)};
return C.yield(_.xp(),2)}e=C.yieldResult;(l=e)==null||l.addEventListener("SEEK_TO",O.playerExitBrowsingModeListener);_.Ra(C)})},XHh=function(O,x){x=x===void 0?!0:x;
O.browsingMode&&(O.browsingMode=!1,O.hostElement.classList.remove("browsing-mode"),x&&O.scrollToItem(O.activeItem),PU7(O))},PU7=function(O){var x,e;
_.A(function(l){if(l.nextAddress==1)return O.playerExitBrowsingModeListener?l.yield(_.xp(),3):l.jumpTo(0);x=l.yieldResult;(e=x)==null||e.removeEventListener("SEEK_TO",O.playerExitBrowsingModeListener);O.playerExitBrowsingModeListener=void 0;_.Ra(l)})},Ztw=function(O){var x;
((x=O.options)==null?void 0:x.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(qn7(O)?O.hostElement.classList.remove("browsing-mode"):O.activeItem&&O.hostElement.classList.add("browsing-mode"))},yGS=function(O){if(!O.activeItem)return!1;
var x,e=((x=O.options)==null?0:x.percentOffset)?O.JSC$22999_containerElement.clientHeight*O.options.percentOffset:0;return O.activeItem.offsetTop>=O.JSC$22999_containerElement.scrollTop+e},qn7=function(O){if(!O.activeItem)return!1;
var x=O.activeItem.offsetTop+14<=O.JSC$22999_containerElement.scrollTop+O.JSC$22999_containerElement.clientHeight;return O.activeItem.offsetTop+O.activeItem.clientHeight-14>=O.JSC$22999_containerElement.scrollTop&&x};
CH.prototype.panelContentVisibleChanged=function(O){(this.contentVisible=O)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var cGz=function(O,x){O.syncEntityKey=x;var e;(e=O.unsubscribeFromTimedMarkersListSyncEntity)==null||e.call(O);GlU(O)},IPy=function(O,x){O.options=x};var QM=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return O};
_.c(QM,_.a);_.b=QM.prototype;_.b.detached=function(){var O;(O=this.scrollController)==null||O.dispose();this.scrollController=void 0};
_.b.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"}}}};
_.b.dataChanged=function(){var O=this;_.A_(this,function(){if(O.scrollController){var x;(x=O.scrollController)==null||XHh(x,!1);var e,l,C;(l=O.scrollController)==null||cGz(l,(C=(e=O.data)==null?void 0:e.syncModelEntityKey)!=null?C:"default-macro-markers-list-renderer-entity-key");var Q,L,k;(k=O.scrollController)==null||IPy(k,{percentOffset:(Q=O.data)==null?void 0:Q.selectedItemAlignmentPercentOffset,floatingPillType:(L=O.data)==null?void 0:L.floatingPillType})}else{var M,G,X,y;O.scrollController=
new CH(O.contents,O.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(y=(M=O.data)==null?void 0:M.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key",{percentOffset:(G=O.data)==null?void 0:G.selectedItemAlignmentPercentOffset,floatingPillType:(X=O.data)==null?void 0:X.floatingPillType},function(Z){O.renderLazyListItems(Z)})}O.scrollController.panelContentVisibleChanged(!!O.panelContentVisible)})};
_.b.computeButtonShape=function(){var O=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){O.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.b.renderLazyListItems=function(O){for(var x=this.contents.children,e=0,l=0;l<x.length;l++){var C=void 0;(C=x[l].ytLazyListBehavior)==null||C.fillRemainingListItems();var Q=void 0,L=void 0;C=_.q((Q=this.data)==null?void 0:(L=Q.contents)==null?void 0:L[l],_.gad);L=Q=void 0;if((Q=C)==null?0:(L=Q.contents)==null?0:L.length)e+=C.contents.length;if(e>=O)break}};
_.b.handleSetActivePanelItemAction=function(O){if((O=_.q(O,lKk))&&this.panelTargetId===O.panelTargetId){O=O.itemIndex;var x,e,l=(e=(x=this.data)==null?void 0:x.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",C;((C=this.syncEntity)==null?void 0:C.activeItemIndex)!==O&&this.ytdReduxBehavior.dispatch(_.Dc("markersEngagementPanelSyncEntity",l,{key:l,activeItemIndex:O}))}};
_.b.onSyncClick=function(){var O;(O=this.scrollController)==null||XHh(O)};
_.b.panelContentVisibleChanged=function(){var O;(O=this.scrollController)==null||O.panelContentVisibleChanged(!!this.panelContentVisible)};
QM.prototype.panelContentVisibleChanged=QM.prototype.panelContentVisibleChanged;QM.prototype.dataChanged=QM.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],QM.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],QM.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],QM.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],QM.prototype,"useCustomColors",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],QM.prototype,"panelTargetId",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],QM.prototype,"panelContentVisible",void 0);
_.B([_.kX("#contents"),_.v("design:type",HTMLElement)],QM.prototype,"contents",void 0);_.B([_.R({selectorArgs:["data.syncModelEntityKey"],selector:_.trm}),_.v("design:type",Object)],QM.prototype,"syncEntity",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],QM.prototype,"dataChanged",null);
_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],QM.prototype,"panelContentVisibleChanged",null);_.B([_.H({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],QM);
_.n(QM,"ytd-macro-markers-list-renderer",function(){if(Dua!==void 0)return Dua;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Dua=O},{mode:1});var Vba;var b$=function(){return _.a.apply(this,arguments)||this};
_.c(b$,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],b$.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],b$.prototype,"data",void 0);_.B([_.H({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],b$);
_.n(b$,"ytd-error-corrections-section-item-renderer",function(){if(Vba!==void 0)return Vba;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Vba=O},{mode:1});var pHk;var Tg=function(){return _.a.apply(this,arguments)||this};
_.c(Tg,_.a);Tg.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Tg.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Tg.prototype,"data",void 0);_.B([_.H({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Tg);
_.n(Tg,"ytd-error-corrections-section-renderer",function(){if(pHk!==void 0)return pHk;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return pHk=O},{mode:1});var RwT;var LH=function(){return _.a.apply(this,arguments)||this};
_.c(LH,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],LH.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LH.prototype,"data",void 0);_.B([_.H({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],LH);
_.n(LH,"ytd-topic-link-renderer",function(){if(RwT!==void 0)return RwT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return RwT=O},{mode:1});var Uua;var kD=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("kevlar_modern_sd_v2");O.modernLockupV2=_.t("modernize_structured_description_playlist_lockups_v2");return O};
_.c(kD,_.a);kD.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kD.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kD.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],kD.prototype,"modernLockupV2",void 0);
_.B([_.H({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],kD);
_.n(kD,"ytd-video-description-course-section-renderer",function(){if(Uua!==void 0)return Uua;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Uua=O},{mode:1});var aP7;var A2=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("kevlar_modern_sd_v2");return O};
_.c(A2,_.a);A2.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],A2.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],A2.prototype,"modern",void 0);_.B([_.H({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],A2);
_.n(A2,"ytd-video-description-files-section-renderer",function(){if(aP7!==void 0)return aP7;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return aP7=O},{mode:1});var muS;var M1=function(){return _.a.apply(this,arguments)||this};
_.c(M1,_.a);M1.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],M1.prototype,"data",void 0);_.B([_.H({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],M1);
_.n(M1,"ytd-video-description-gaming-section-renderer",function(){if(muS!==void 0)return muS;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return muS=O},{mode:1});var sfy;var D3=function(){var O=_.a.apply(this,arguments)||this;O.isExpanded=!1;return O};
_.c(D3,_.a);D3.prototype.computeHasDefaultMetadataEndpoint=function(O){var x;O=O==null?void 0:(x=O.defaultMetadata)==null?void 0:x.runs;return!(!O||O.length!==1||!O[0].navigationEndpoint)};
D3.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Dy.Object.defineProperties(D3.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],D3.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],D3.prototype,"isExpanded",void 0);_.B([_.R({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],D3.prototype,"hasDefaultMetadataEndpoint",void 0);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],D3.prototype,"isExpandable",null);_.B([_.p("data","isExpandable","isExpanded"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],D3.prototype,"showExpandedMetadata",null);_.B([_.H({is:"ytd-info-row-renderer",disableElementRegistration:!0})],D3);
_.n(D3,"ytd-info-row-renderer",function(){if(sfy!==void 0)return sfy;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return sfy=O},{mode:1});var Wvk;var Gg=function(){var O=_.a.apply(this,arguments)||this;O.currentIndex=0;O.supportComponentResize=!0;O.modern=_.t("kevlar_modern_sd_v2");O.JSC$23029_lastScrollContainerWidth=NaN;return O};
_.c(Gg,_.a);_.b=Gg.prototype;
_.b.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"}}}};
_.b.getItemsPath=function(){return"videoLockups"};
_.b.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.b.onIronResize=function(){this.updateVideoLockupStyles()};
_.b.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.b.updateVideoLockupStyles=function(){var O;this.JSC$23029_scrollContainer!==void 0&&(O=this.videoLockups)!=null&&O.length&&(O=this.JSC$23029_scrollContainer.clientWidth,O!==this.JSC$23029_lastScrollContainerWidth&&(this.JSC$23029_lastScrollContainerWidth=O,_.lH(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(O*.8,415)+"px"}),_.wr(this.hostElement,"iron-resize")))};
_.Dy.Object.defineProperties(Gg.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var O=[],x;if((x=this.data)==null||!x.carouselLockups)return O;x=_.T(this.data.carouselLockups);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0;((l=_.q(e,hnE))==null?0:l.videoLockup)&&O.push(_.q(e,hnE).videoLockup)}return O}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.videoLockups)==null||!O.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var O=[],x;if((x=this.data)==null||!x.carouselLockups)return O;var e;return(e=_.q(this.data.carouselLockups[this.scrollCount],hnE))==null?void 0:e.infoRows}}});
Gg.prototype.dataChanged=Gg.prototype.dataChanged;Gg.prototype.onIronResize=Gg.prototype.onIronResize;Gg.prototype.hiddenChanged=Gg.prototype.hiddenChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Gg.prototype,"componentBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],Gg.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Gg.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Gg.prototype,"inlineStructuredDescription",void 0);_.B([_.R({value:2}),_.v("design:type",Number)],Gg.prototype,"initialCount",void 0);_.B([_.R(),_.v("design:type",Object)],Gg.prototype,"currentIndex",void 0);
_.B([_.R(),_.v("design:type",Number)],Gg.prototype,"scrollCount",void 0);_.B([_.R(),_.v("design:type",Object)],Gg.prototype,"supportComponentResize",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Gg.prototype,"contentHidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Gg.prototype,"modern",void 0);_.B([_.kX("#scroll-container"),_.v("design:type",HTMLDivElement)],Gg.prototype,"JSC$23029_scrollContainer",void 0);
_.B([_.T1("contentHidden"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gg.prototype,"hiddenChanged",null);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],Gg.prototype,"videoLockups",null);_.B([_.p("videoLockups"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Gg.prototype,"hasVideoLockups",null);
_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gg.prototype,"onIronResize",null);_.B([_.p("data","scrollCount"),_.v("design:type",Object),_.v("design:paramtypes",[])],Gg.prototype,"infoRows",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gg.prototype,"dataChanged",null);_.B([_.H({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Gg);
_.n(Gg,"ytd-video-description-music-section-renderer",function(){if(Wvk!==void 0)return Wvk;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Wvk=O},{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var hwh;var FP=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("kevlar_modern_sd_v2");return O};
_.c(FP,_.a);FP.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.B([_.R({}),_.v("design:type",Object)],FP.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],FP.prototype,"modern",void 0);_.B([_.H({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],FP);
_.n(FP,"ytd-video-description-transcript-section-renderer",function(){if(hwh!==void 0)return hwh;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return hwh=O},{mode:1});var zwz;_.wP(_.K(function(O){var x=_.L5(_.yk7,function(){return O.data().firstProviderLinkStatusEntityKey}),e=_.L5(_.yk7,function(){return O.data().secondProviderLinkStatusEntityKey}),l=function(){var C,Q;
return((C=x())==null?void 0:C.linked)||((Q=e())==null?void 0:Q.linked)};
return _.D("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.D(_.TT,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return O.data().sectionTitle}}),_.D(_.TT,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return l()?O.data().connectedMessage:O.data().notConnectedMessage}}),_.D(_.F,{cond:l,
then:function(){return _.D(_.MR,{data:function(){return O.data().connectedButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.D(_.F,{cond:function(){return!l()},
then:function(){return _.D(_.MR,{data:function(){return O.data().notConnectedButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"hn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;return _.D("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.D("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.D(_.TT,{text:function(){return x().sectionTitle}})),_.D("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.D(_.TT,{text:function(){return x().bodyHeader}})),_.D("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.D(_.TT,{text:function(){return x().bodyText}})),_.D(_.F,{cond:function(){return x().attributionText},
then:function(){return _.D("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.D(_.TT,{text:function(){return x().attributionText}}))}}))},"jn"),"how-this-was-made-section-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){return _.D("yt-video-description-youchat-section-view-model",{class:_.xz("ytVideoDescriptionYouchatSectionViewModelHost")},_.D("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.D(_.TT,{text:function(){return O.data().sectionTitle}})),_.D("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.D(_.TT,{text:function(){return O.data().subHeaderText}})),_.D("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.D(_.RV,{data:function(){return _.q(O.data().primaryButton,
_.gf)}})))},"kn"),"yt-video-description-youchat-section-view-model",{props:{data:_.Ld}});var XP=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return O};
_.c(XP,_.a);_.b=XP.prototype;
_.b.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}}}}}};
_.b.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.b.dataChanged=function(){var O,x;this.hasDescriptionOnly=!(((O=this.data)==null?void 0:(x=O.items)==null?void 0:x.length)!==1||!_.q(this.data.items[0],HJ))};
_.b.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.b.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.b.autoFocusDescription=function(){var O;((O=_.GG().resolve(_.D0(_.qL)))==null?0:O.isKeyBoardInUse())&&this.description&&_.bU(this.description)};
_.b.resize=function(){if(_.t("kevlar_disable_sd_resize"))this.JSC$23038_cardList&&_.wr(this.JSC$23038_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.wr(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.wr(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.b.scrollToSection=function(O){if(O=this.getSectionElement(O))_.Sh(this.hostElement,"yt-scroll-to-watch-element",[O]),O.focus()};
_.b.getSectionElement=function(O){switch(O){case "infocards-item-section":var x;return(x=this.infocardsSection)!=null?x:null;case "transcript-item-section":var e;return(e=this.transcriptSection)!=null?e:null;case "how-this-was-made-section-item-section":var l;return(l=this.howThisWasMadeSection)!=null?l:null;case "files-item-section":var C;return(C=this.filesSection)!=null?C:null;default:return null}};
_.b.handleSetActiveItemAction=function(O){var x=_.q(O,lKk),e=x&&(x==null?void 0:x.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23038_cardList;if(x&&e){O=this.currentActiveChapter;var l=this.currentActiveProblem;x=e==null?void 0:e.getItemByIndex(x.itemIndex);var C=e=!0;x&&(x.active=!0,x.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(e=O!==x,C=!1,this.currentActiveChapter=x):(x==null?void 0:x.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(e=!1,C=l!==x,this.currentActiveProblem=x));O&&e&&(O.active=!1);l&&C&&(l.active=!1)}};
_.Dy.Object.defineProperties(XP.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.t("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
XP.prototype.onYtExpanderMoreTapped=XP.prototype.onYtExpanderMoreTapped;XP.prototype.onHiddenChanged=XP.prototype.onHiddenChanged;XP.prototype.dataChanged=XP.prototype.dataChanged;XP.prototype.panelContentVisibleChanged=XP.prototype.panelContentVisibleChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],XP.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],XP.prototype,"ironResizableBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XP.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],XP.prototype,"panelContentVisible",void 0);_.B([_.R(),_.v("design:type",Boolean)],XP.prototype,"hasDescriptionOnly",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],XP.prototype,"inlineStructuredDescription",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],XP.prototype,"hidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],XP.prototype,"shortsPanel",void 0);_.B([_.R(),_.v("design:type",Object)],XP.prototype,"videoSummary",void 0);_.B([_.R(),_.v("design:type",Object)],XP.prototype,"merchShelf",void 0);
_.B([_.p("videoSummary"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],XP.prototype,"showVideoSummary",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],XP.prototype,"engagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],XP.prototype,"watchWhileSdp",void 0);_.B([_.kX("ytd-expandable-video-description-body-renderer"),_.v("design:type",Object)],XP.prototype,"description",void 0);
_.B([_.kX("ytd-horizontal-card-list-renderer"),_.v("design:type",Object)],XP.prototype,"JSC$23038_cardList",void 0);_.B([_.kX("ytd-horizontal-card-list-renderer[center-items]"),_.v("design:type",Object)],XP.prototype,"problemWalkthroughCardList",void 0);_.B([_.kX("ytd-shelf-renderer"),_.v("design:type",Object)],XP.prototype,"shelfSection",void 0);_.B([_.kX("ytd-video-description-music-section-renderer"),_.v("design:type",Object)],XP.prototype,"musicMetadataSection",void 0);
_.B([_.kX("ytd-video-description-infocards-section-renderer"),_.v("design:type",Object)],XP.prototype,"infocardsSection",void 0);_.B([_.kX("ytd-video-description-transcript-section-renderer"),_.v("design:type",Object)],XP.prototype,"transcriptSection",void 0);_.B([_.kX("how-this-was-made-section-view-model"),_.v("design:type",Object)],XP.prototype,"howThisWasMadeSection",void 0);_.B([_.kX("ytd-video-description-files-section-renderer"),_.v("design:type",Object)],XP.prototype,"filesSection",void 0);
_.B([_.T1("panelContentVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XP.prototype,"panelContentVisibleChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XP.prototype,"dataChanged",null);_.B([_.T1("hidden"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XP.prototype,"onHiddenChanged",null);
_.B([_.bH("yt-expander-more-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],XP.prototype,"onYtExpanderMoreTapped",null);_.B([_.H({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],XP);
_.n(XP,"ytd-structured-description-content-renderer",function(){if(zwz!==void 0)return zwz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return zwz=O},{mode:2});var rGy;var HtE;var oo=function(){return _.a.apply(this,arguments)||this};
_.c(oo,_.a);oo.prototype.computeAriaLabel=function(O){var x,e;return(O==null?void 0:(x=O.accessibility)==null?void 0:(e=x.accessibilityData)==null?void 0:e.label)||_.CZ("LOADING",void 0,"Loading")};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oo.prototype,"data",void 0);_.B([_.R({computed:"computeAriaLabel(data)"}),_.v("design:type",String)],oo.prototype,"ariaLabel",void 0);_.B([_.Va({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],oo);
_.n(oo,"yt-content-loading-renderer",function(){if(HtE===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;rGy===void 0&&(rGy=document.createElement("template"));var l=rGy;e.call(x,l.content.cloneNode(!0),O.content.firstChild);HtE=O}O=HtE;return O},{mode:_.gq("kevlar_poly_si_batch_j043")?1:2});_.wP(_.K(function(O){var x=_.T(_.Iw(!1,void 0,"OZMtVb")),e=x.next().value,l=x.next().value;x=_.T(_.Iw(!1,void 0,"qWERsf"));var C=x.next().value,Q=x.next().value;_.YK(function(){var M=_.q(O.data().collaboratePlaylistCollaborationSetting,P8h);M&&l(M.switchedOnByDefault);var G=_.q(O.data().allowNewCollaboratorsPlaylistCollaborationSetting,P8h);G&&Q(G.switchedOnByDefault);if(!M&&!G||!M&&O.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")l(!0),Q(!0)});
var L=function(M){l(M);Q(M);var G=O.data().playlistCollaborationEntityKey||"";var X=_.dq().getState();(X=_.xE(X.entities,"playlistCollaborationEntity",G))&&(X==null?void 0:X.isCollaborative)===M||_.dq().dispatch(_.Dc("playlistCollaborationEntity",G,Object.assign({},X,{isCollaborative:M})))},k=function(M){Q(M)};
return _.D("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.D("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.D(_.MR,{data:function(){return O.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(M){return _.D(_.oDp,{data:M.data,
onSwitch:L})}})),_.D(_.F,{cond:e,
then:function(){return _.D(_.Xm,null,_.D("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.D(_.MR,{data:function(){return O.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(M){return _.D(_.oDp,{data:M.data,
onSwitch:k,overrideDisabled:!1})}})),_.D(_.F,{cond:C,
then:function(){return _.D("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.D(_.MR,{data:function(){return O.data().copyLinkButton}},{buttonViewModel:_.RV}))}}),_.D("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.D(_.MR,{data:function(){return O.data().playlistCollaborators}},{contentListItemViewModel:_.che})))}}))},"ln"),"playlist-collaboration-view-model",{props:{data:_.Ld}});var KvI=_.K(function(O){var x=O.data;var e=O.customCommandResolver;return _.D(_.Xm,null,_.D("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.D(_.MR,{data:function(){return x().adAvatar}},{adAvatarViewModel:function(l){return _.D(_.Bnd,{data:l.data,
customCommandResolver:e})}})),_.D("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.D(_.F,{cond:function(){return x().headline},
then:function(l){return _.D(_.TT,{text:l,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.D("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.D(_.MR,{data:function(){return x().adBadge}},{adBadgeViewModel:function(l){return _.D(_.VB,{data:l.data,
hasDot:function(){return x().primaryDetailsLine!==void 0},
customCommandResolver:e,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.D(_.MR,{data:function(){return x().primaryDetailsLine}},{adDetailsLineViewModel:function(l){return _.D(_.pg,{data:l.data,
customCommandResolver:e,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"mn"),duI=_.K(function(O){var x=O.data;
var e=O.customCommandResolver;return _.D("ad-avatar-lockup-view-model",{class:function(){var l;return((l=x().interaction)==null?0:l.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Y0(_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB}),_.p5(function(){return x().interaction},e)),
"aria-label":function(){var l,C;return(l=x().interaction)==null?void 0:(C=l.accessibility)==null?void 0:C.label}},_.D(_.KO,null,_.D(_.zn,{when:function(){return x().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.D(KvI,{data:x,
customCommandResolver:e})}),_.D(_.rz,null,function(){return null})))},"nn");_.wP(_.K(function(O){var x=O.data;var e=O.panelContentVisibility;O=_.F6({visibilityCallback:function(Q){var L,k=(L=x().interaction)==null?void 0:L.onFirstVisible;Q&&k&&_.me(k)},
showOption:_.yB});var l=_.p5(function(){return x().interaction},Mjw);
_.fe(function(){var Q,L;if(L=_.i8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;L=(k=L())==null?void 0:k.onLayoutVisibleCallback}else L=null;(Q=L)==null||Q()},"on");
var C=function(){return e()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.D("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Y0(O,l)},_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.D(_.F,{cond:_.MFr("(min-width: "+((0,_.DT)()+_.dJ)+"px) or (max-width: 600px)"),then:function(){return _.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(Q){return _.D(_.de,{data:Q.data,
targetHeight:80,customCommandResolver:Mjw})}})}})),_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.D(_.MR,{data:function(){return x().adAvatarLockup}},{adAvatarLockupViewModel:function(Q){return _.D(duI,{data:Q.data,
customCommandResolver:Mjw})}})),_.D(_.F,{cond:C,
then:function(){return _.D(_.MR,{data:function(){return x().adButton}},{adButtonViewModel:function(Q){return _.D(_.EL,{data:Q.data,
customCommandResolver:Mjw})}})},
else:function(){return _.D(_.MR,{data:function(){return x().menu}},{buttonViewModel:_.RV})}}),_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.D(_.MR,{data:function(){var Q=_.q(x().toggleButton,_.iN);
return{toggleButtonViewModel:Object.assign({},Q,{isTogglingDisabled:!0,isToggled:C()})}}},{toggleButtonViewModel:_.Jc})))))},"pn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Ld,
panelContentVisibility:_.Ld}});_.wP(_.K(function(O){var x=function(){return _.q(O.data().inputComposerViewModel,cZo)},e=_.Dl(_.at.currentPageSubTypeSelector),l=_.Dl(_.at.persistentPanelVisibleSelector),C=_.T(_.Iw(!1,void 0,"ZdYZ1d")),Q=C.next().value,L=C.next().value;
C=_.T(_.Iw(!1,void 0,"iu0Tnf"));var k=C.next().value,M=C.next().value,G=function(){U(!0);var q$;_.me(((q$=x())==null?void 0:q$.onSubmitCommand)||{})},X=function(){if(l()&&!k()){var q$;
(q$=_.eR())==null||q$.removeCueRange("aic-proactive");L(!1);M(!0);G();q$={continuationCommand:{token:x().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var KV={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:mL()}};_.Rl(q$,{form:{formData:KV},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){_.Rl(FFT(f()));U(!1)}}})}},y=function(){var q$=_.eR();
if(q$&&!Q()&&!k()){var KV=q$.getDuration();KV>60&&(q$.addCueRange("aic-proactive",KV-60,KV-20),L(!0))}},Z=function(){var q$;
return((q$=x())==null?void 0:q$.youchatPendingResponseEntityKey)||""},E=_.L5(_.fDh,Z),P=function(){var q$;
return!((q$=E())==null||!q$.isPendingResponse)},U=function(q$){_.JJs(Z())(q$)};
C=_.T(_.Iw(!0,void 0,"FwVSpb"));var W=C.next().value,z=C.next().value,r=function(){var q$,KV;var VN=_.q((KV=x())==null?void 0:KV.inputFormField,OOU);return VN==null?void 0:(q$=VN.contentProperties)==null?void 0:q$.placeholderText},f=function(){return x().sectionTargetId||"youchat_messages_section"};
C=_.bD("yt-chat-input-view-model");var u=_.Q5("textarea"),Y=_.L5(ifS,"chat_input_view_model_state"),J=OeT(),O8=function(){var q$;return!((q$=Y())==null||!q$.value)},Xr=function(){return O.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Fr=function(){var q$;
(q$=_.eR())==null||q$.removeCueRange("aic-proactive");L(!1);M(!1);var KV;((KV=x())==null?0:KV.welcomeFeatureContinuation)&&l()&&(G(),q$={continuationCommand:{token:x().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},KV={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:XLo(),pageContext:mL()}},_.Rl(q$,{form:{formData:KV},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){_.Rl(FFT(f()));U(!1)}}}))},mL=function(){if(_.t("enable_ai_companion")){var q$=_.GG().resolve(_.D0(_.$qp));
switch(e()){case "watch":var KV,VN;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(KV=_.eR())==null?void 0:(VN=KV.getVideoData())==null?void 0:VN.video_id};case "search":var Pd,f2;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(Pd=q$==null?void 0:_.jzw(q$))!=null?Pd:[],entityId:(f2=(new URLSearchParams(window.location.search)).get("search_query"))!=null?f2:void 0};case "companion-canvas":var p2;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(p2=q$==null?void 0:_.jzw(q$))!=null?p2:[]}}}};
_.YK(function(){var q$;if(!O8()&&((q$=x())==null?0:q$.welcomeFeatureContinuation)){var KV;((KV=x())==null?0:KV.setPendingResponseOnWelcome)&&U(!0);q$={continuationCommand:{token:x().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};KV={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:XLo(),pageContext:mL()}};_.Rl(q$,{form:{formData:KV}});J(!0)}var VN=f(),Pd=_.GG().resolve(_.D0(_.Hr)),f2=function(){_.AA.remove(VN);J(!1)},p2=function(){_.cL(function(){if(Xr()&&
(Fr(VN),e()==="watch")){var OT=_.eR();
OT&&(OT.addEventListener("onStateChange",y),OT.addEventListener("onCueRangeEnter",X))}})};
q$=_.t("enable_ai_companion")?!Xr():!0;Pd==null||Pd.addEventListener("yt-navigate-start",f2,{once:q$});Pd==null||Pd.addEventListener("yt-navigate-finish",p2,{once:q$});_.YO(function(){Pd==null||Pd.removeEventListener("yt-navigate-start",f2);Pd==null||Pd.removeEventListener("yt-navigate-finish",p2);var OT=_.eR();OT&&(OT.removeEventListener("onCueRangeEnter",X),OT.removeEventListener("onStateChange",y),OT.removeCueRange("aic-proactive"))})});
var Zn=function(){var q$=u.value.value;u.value.value="";D47(u.value);var KV,VN=((KV=x())==null?void 0:KV.enableGradientColorBg)||!1;KV=GcS(f(),q$,VN);_.Rl(KV);G();var Pd;KV={continuationCommand:{token:(Pd=x())==null?void 0:Pd.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};q$={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:q$,playerOffsetMs:XLo(),pageContext:mL()}};_.Rl(KV,{form:{formData:q$},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){_.Rl(FFT(f()));U(!1)}}})};
return _.D("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:C},_.D("div",{class:"chatInputViewModelChatInputWrapper"},_.D("form",{class:"chatInputViewModelChatInputForm"},_.D("textarea",{class:"chatInputViewModelChatInput",el:u,"on:keydown":_.lk(function(q$){var KV=P()||!1;D47(u.value);KV||q$.key!=="Enter"||q$.shiftKey||(q$.preventDefault(),Zn());return!1}),
"on:keyup":_.lk(function(){z(u.value.value.length===0);return!1}),
"aria-label":function(){return P()?O.data().loadingAnimationA11yLabel||"":r()},
placeholder:r,rows:1}),_.D(_.RV,{data:function(){return _.q(O.data().sendButton,_.gf)},
onClick:function(q$){q$.preventDefault();Zn();z(u.value.value.length===0)},
buttonOverrides:function(){return{disabled:W()||P()}}})),_.D(_.TT,{className:"chatInputViewModelChatDisclaimer",
text:function(){var q$;return(q$=_.q(O.data().disclaimer,_.$Lz))==null?void 0:q$.text}})))},"qn"),"yt-chat-input-view-model",{props:{data:_.Ld}});var nbI=["engagement-panel-clip-create","engagement-panel-clip-view"],uDI=0,yM=function(){var O=_.a.apply(this,arguments)||this;var x;O.headerData=(x=O.data)==null?void 0:x.header;O.darkerPanels=_.t("web_watch_darker_panels");O.matchContentTheme=_.t("web_watch_panel_content_match_theme");O.disableAutoFill=!1;O.isFullscreen=!1;O.isTheaterMode=!1;O.modernPanels=_.t("kevlar_watch_modern_panels");O.liveChatReplyPanel=!1;O.enableAnchoredPanel=_.t("desktop_shorts_v2_anchored_panel");O.disableBackdropFilter=
_.t("web_disable_backdrop_filter");O.isPersistentPanel=!1;O.trackEngagementPanelVisibility=_.t("web_watch_track_engagement_panel_visibility");O.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 O};
_.c(yM,_.a);_.b=yM.prototype;
_.b.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(O){var x;return(O==null?void 0:(x=O.webComponentHint)==null?void 0:x.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"}}}};
_.b.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var O;if((O=this.hostElement.parentElement)==null?0:O.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.b.detached=function(){this.updateTheaterDisablement()};
_.b.showPanel=function(){var O=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.vn.addJob(function(){O.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.b.maybeScrollToItemSection=function(O){var x=this,e,l=O==null?void 0:(e=O.sectionListEngagementPanelExtras)==null?void 0:e.scrollToItemSectionIdentifier;l&&_.vn.addJob(function(){var C;(C=x.sectionListRendererElement)==null||C.scrollToItemSection(l)},8)};
_.b.hidePanel=function(){var O=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.vn.addJob(function(){O.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.b.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.b.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.b.updatePanel=function(O,x,e,l){var C=this;if((O=O==null?void 0:O.engagementPanelSectionListRenderer)||l){if(O){l=O.header;var Q=O.content,L=O.footer;(O=O.targetId)&&this.set("data.targetId",O);l&&this.set("data.header",l);Q&&this.set("data.content",Q);L&&this.set("data.footer",L)}else l&&(O=l.content,Q=l.secondaryHeaderContent,(l=l.targetId)&&this.set("data.targetId",l),O&&this.set("data.content",O),Q&&(this.secondaryHeaderData=Q));this.updateChildVisibilityProperties();if(x){var k;_.t("kevlar_update_panel_focus_scroll_killswitch")||
(k={preventScroll:!0});this.focus(k)}_.A_(this,function(){_.wr(C.hostElement,"yt-refit");C.maybeScrollToItemSection(e)})}};
_.b.computeHeaderData=function(){var O,x=(0,_.HX.unsafeClone)((O=this.data)==null?void 0:O.header);if(x){O=new _.$x(Object.keys(x)[0]);var e=_.q(x,O),l=_.q(this.secondaryHeaderData,O);l&&_.qj(x,O,Object.assign({},l,e))}return x};
_.b.getReloadContinuation=function(){var O,x,e,l=_.T(((O=this.data)==null?void 0:(x=O.content)==null?void 0:(e=x.sectionListRenderer)==null?void 0:e.continuations)||[]);for(O=l.next();!O.done;O=l.next())if(O=O.value,O.reloadContinuationData)return O.reloadContinuationData.continuation};
_.b.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var O;((O=this.data)==null?0:O.targetId)&&(O=this.contentElement.firstElementChild)&&O.setAttribute("panel-target-id",this.data.targetId)};
_.b.forwardPopupClosedToFlowRootRenderer=function(){var O=_.$U(this.hostElement).querySelector("ytd-flow-root-renderer");if(O)O.onPopupClosed()};
_.b.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var O;if(!nbI.includes((O=this.theaterDisablementPanelIdentifier)!=null?O:""))if(O=_.t("web_watch_imax_theater_mode")&&this.isTheaterMode,O=_.t("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||O,_.t("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||O){var x;this.visibility=(x=this.data)==null?void 0:x.visibility;var e;this.trackEngagementPanelVisibility&&((e=this.data)==null?void 0:e.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var l,C,Q,L;this.contentEmpty=!!(((l=this.data)==null?0:(C=l.content)==null?0:C.structuredDescriptionContentRenderer)&&Object.keys((Q=this.data)==null?void 0:(L=Q.content)==null?void 0:
L.structuredDescriptionContentRenderer).length===0);(x=_.GG().resolve(_.Bm))&&x.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.b.isTheaterModeChanged=function(){_.t("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.b.isFullscreenChanged=function(){_.t("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.b.focus=function(O){if(this.header)this.header.focus(O);else{var x;(x=_.$U(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||x.focus(O)}};
_.b.visibilityChanged=function(){if(!_.t("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var O=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=l||!this.lastVisibility,Q,L,k,M=((Q=this.data)==null?void 0:(L=Q.identifier)==null?void 0:
L.tag)||((k=this.data)==null?void 0:k.panelIdentifier);if(O&&C){var G;((G=this.data)==null?0:G.onShowCommands)&&_.gr(this.hostElement,this.data.onShowCommands,this.hostElement);M&&_.u9().dispatch(_.j6({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:M}}))}else if(x&&e){var X;((X=this.data)==null?0:X.onHideCommands)&&_.gr(this.hostElement,this.data.onHideCommands,this.hostElement);M&&_.u9().dispatch(_.j6({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:M}}))}O&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*uDI++));_.t("kevlar_watch_focus_on_engagement_panels")&&O&&l&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.b.notifyVisibilityChanged=function(O){var x;_.jh(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,O,(x=this.data)==null?void 0:x.targetId]);if(_.t("autonav_pause_for_comments_ep")){var e;_.wr(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:O==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(e=this.data)==null?void 0:e.targetId})}};
_.b.updateTheaterDisablement=function(){if(!_.t("kevlar_watch_theater_disablement_killswitch")){var O=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&nbI.includes(O)&&!_.t("watch_next_grid_ignore_disallowed_panels")){var x=_.I2(_.u9().getState()),e=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";O!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():e?(this.originalTheaterState===void 0&&(this.originalTheaterState=x,this.theaterDisablementPanelIdentifier=
O),x&&_.Sh(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.b.clearTheaterDisablement=function(){_.Sh(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.b.updateChildVisibilityProperties=function(){this.hostElement||_.t("kevlar_panel_property_init_killswitch")||this._enableProperties();var O=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=O);var x,e=(x=this.headerElement)==null?void 0:x.firstElementChild;if(e&&!this.adHeaderImageLockupViewModel){x=O==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";e.collapsed=x;e=_.$U(e).querySelector("#visibility-button");if(!e)return;(e=e.firstElementChild)&&
e.polymerController.is==="ytd-toggle-button-renderer"&&e.polymerController.data.isToggled!==x&&e.polymerController.set("data.isToggled",x)}var l;if(x=(l=this.contentElement)==null?void 0:l.firstElementChild)if(O&&O!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")x.removeAttribute("panel-content-visible");else{x.setAttribute("panel-content-visible","");var C;(C=x.markDirty)==null||C.call(x)}};
_.b.onYtChangeEngagementPanelVisibilityAction=function(O){var x=this,e,l=(e=this.data)==null?void 0:e.targetId,C,Q,L;e=((C=this.data)==null?void 0:(Q=C.identifier)==null?void 0:Q.tag)||((L=this.data)==null?void 0:L.panelIdentifier);var k=_.q(O,_.qNd),M;O=l&&(k==null?void 0:k.targetId)===l||e&&(k==null?void 0:(M=k.panelIdentifier)==null?void 0:M.tag)===e;this.dialog&&O&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(l==="engagement-panel-comments-section"?_.Sh(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Sh(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",e]));!_.t("kevlar_use_engagement_panel_management_component")&&O&&(l=k.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!l?_.vn.addJob(function(){x.visibility=k.visibility},2,this.hideDelayMs):this.visibility=k.visibility,k.visibility&&this.notifyVisibilityChanged(k.visibility))};
_.b.onYtScrollToEngagementPanelCommand=function(O){var x,e=(x=this.data)==null?void 0:x.targetId,l,C,Q;x=((l=this.data)==null?void 0:(C=l.identifier)==null?void 0:C.tag)||((Q=this.data)==null?void 0:Q.panelIdentifier);O=_.q(O,_.hCF);var L;(e&&(O==null?void 0:O.targetId)===e||x&&(O==null?void 0:(L=O.panelIdentifier)==null?void 0:L.tag)===x)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Sh(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.b.attachVEs=function(O){var x,e;(O==null?0:(x=O.content)==null?0:(e=x.productListRenderer)==null?0:e.trackingParams)&&_.k0().graftServerVe(O.content.productListRenderer.trackingParams);var l,C;(O==null?0:(l=O.content)==null?0:(C=l.transcriptRenderer)==null?0:C.trackingParams)&&_.k0().graftServerVe(O.content.transcriptRenderer.trackingParams)};
_.b.onYtUpdateEngagementPanelAction=function(O){var x,e=(x=this.data)==null?void 0:x.targetId;O=_.q(O,QUw);e&&(O==null?void 0:O.targetId)===e&&(this.updatePanel({engagementPanelSectionListRenderer:{header:O==null?void 0:O.header,content:O==null?void 0:O.content}},!1),this.attachVEs(O))};
_.b.onYtShowEngagementPanelScrimAction=function(O){var x,e=(x=this.data)==null?void 0:x.targetId;O=_.q(O,C8H);e&&(O==null?void 0:O.engagementPanelTargetId)===e&&(this.scrimmed=!0)};
_.b.onYtHideEngagementPanelScrimAction=function(O){var x,e=(x=this.data)==null?void 0:x.targetId;O=_.q(O,en7);e&&(O==null?void 0:O.engagementPanelTargetId)===e&&(this.scrimmed=!1)};
_.b.getIdentifier=function(){var O,x,e;return((O=this.data)==null?void 0:O.panelIdentifier)||((x=this.data)==null?void 0:(e=x.identifier)==null?void 0:e.tag)};
_.b.getSurface=function(){var O,x;return(O=this.data)==null?void 0:(x=O.identifier)==null?void 0:x.surface};
_.Dy.Object.defineProperties(yM.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var O=this.getIdentifier();return O==="engagement-panel-youchat"||O==="PAyouchat"}}});
yM.prototype.visibilityChanged=yM.prototype.visibilityChanged;yM.prototype.isFullscreenChanged=yM.prototype.isFullscreenChanged;yM.prototype.isTheaterModeChanged=yM.prototype.isTheaterModeChanged;yM.prototype.dataChanged=yM.prototype.dataChanged;yM.prototype.forwardPopupClosedToFlowRootRenderer=yM.prototype.forwardPopupClosedToFlowRootRenderer;yM.prototype.onYtRendererstamperFinished=yM.prototype.onYtRendererstamperFinished;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],yM.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],yM.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],yM.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yM.prototype,"data",void 0);
_.B([_.R({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.v("design:type",Object)],yM.prototype,"headerData",void 0);_.B([_.R(),_.v("design:type",Object)],yM.prototype,"secondaryHeaderData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"visibility",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"contentEmpty",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"scrimmed",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"dialog",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"dropdown",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"darkerPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"matchContentTheme",void 0);_.B([_.R(),_.v("design:type",Object)],yM.prototype,"disableAutoFill",void 0);
_.B([_.R({reflectToAttribute:!0,value:_.t("optimal_reading_width_comments_ep")}),_.v("design:type",Boolean)],yM.prototype,"optimalReadingWidthComments",void 0);_.B([_.R(),_.v("design:type",Number)],yM.prototype,"hideDelayMs",void 0);_.B([_.R({selector:_.VI,reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"isFullscreen",void 0);_.B([_.R({selector:_.I2,reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"isTheaterMode",void 0);
_.B([_.R(),_.v("design:type",Number)],yM.prototype,"showDelayMs",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.targetId"),_.v("design:type",Object),_.v("design:paramtypes",[])],yM.prototype,"targetId",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],yM.prototype,"webSize",null);_.B([_.R(),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],yM.prototype,"hideFooterBorder",null);
_.B([_.R(),_.v("design:type",Object)],yM.prototype,"isWatch",void 0);_.B([_.R(),_.v("design:type",Object)],yM.prototype,"originalTheaterState",void 0);_.B([_.R(),_.v("design:type",Object)],yM.prototype,"theaterDisablementPanelIdentifier",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"modernPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"isWatchWhilePanel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"shortsPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"liveChatEngagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],yM.prototype,"learningChatEngagementPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"liveChatReplyPanel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"enableAnchoredPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"disableBackdropFilter",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yM.prototype,"isPersistentPanel",void 0);_.B([_.R(),_.v("design:type",Object)],yM.prototype,"trackEngagementPanelVisibility",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],yM.prototype,"headerElement",void 0);
_.B([_.kX("#header > *"),_.v("design:type",HTMLElement)],yM.prototype,"header",void 0);_.B([_.kX("ytd-section-list-renderer"),_.v("design:type",Object)],yM.prototype,"sectionListRendererElement",void 0);_.B([_.kX("panel-ad-header-image-lockup-view-model"),_.v("design:type",HTMLElement)],yM.prototype,"adHeaderImageLockupViewModel",void 0);_.B([_.kX("#content"),_.v("design:type",HTMLElement)],yM.prototype,"contentElement",void 0);
_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yM.prototype,"onYtRendererstamperFinished",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yM.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.B([_.G1("data","isFullscreen","isTheaterMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yM.prototype,"dataChanged",null);
_.B([_.T1("isTheaterMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yM.prototype,"isTheaterModeChanged",null);_.B([_.T1("isFullscreen"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yM.prototype,"isFullscreenChanged",null);_.B([_.T1("visibility"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yM.prototype,"visibilityChanged",null);
_.B([_.H({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],yM);
_.n(yM,"ytd-engagement-panel-section-list-renderer",function(){if(Tl7!==void 0)return Tl7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Tl7=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var Ynz;var Z3=function(){var O=_.a.apply(this,arguments)||this;O.lastRenderedPanelIds=new Set;O.visiblePanels=[];O.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return O};
_.c(Z3,_.a);_.b=Z3.prototype;_.b.dataChanged=function(){if(this.data){for(var O=[],x=_.T(this.data),e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0,C=void 0,Q=(l=e)==null?void 0:(C=l.engagementPanelSectionListRenderer)==null?void 0:C.visibility;C=l=void 0;((l=e)==null?0:(C=l.engagementPanelSectionListRenderer)==null?0:C.targetId)&&Q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&O.push(e)}this.visiblePanels=O}else this.visiblePanels=[]};
_.b.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}}};
_.b.withoutVisiblePanelById=function(O){return this.visiblePanels.filter(function(x){var e;return((e=x.engagementPanelSectionListRenderer)==null?void 0:e.targetId)!==O})};
_.b.onYtChangeEngagementPanelVisibilityAction=function(O){var x=this,e=_.q(O,_.qNd);if(this.data&&(e==null?0:e.targetId)&&(e==null?0:e.visibility)){var l,C=(l=this.data.find(function(L){var k;return((k=L.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===e.targetId}))==null?void 0:l.engagementPanelSectionListRenderer;
if(C){var Q=this.withoutVisiblePanelById(e.targetId);e.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(O=this.data.find(function(L){var k;return((k=L.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===e.targetId}))&&(Q=[O].concat(_.Kx(Q)));
this.hideDelayMs&&e.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Q.length===0?_.vn.addJob(function(){C.visibility=e.visibility;x.visiblePanels=Q},10,this.hideDelayMs):(C.visibility=e.visibility,this.visiblePanels=Q);
_.jh(this.hostElement,"yt-engagement-panels-visible-changed",[Q])}}};
_.b.onRendererstamperFinished=function(){var O=new Set(this.visiblePanels.map(function(x){var e;return(e=x.engagementPanelSectionListRenderer)==null?void 0:e.targetId}));
this.handlePanelVisibilityChange(O,this.lastRenderedPanelIds);this.lastRenderedPanelIds=O};
_.b.handlePanelVisibilityChange=function(O,x){O=O===void 0?new Set:O;x=x===void 0?new Set:x;if(this.data)for(var e=_.T(this.data),l=e.next();!l.done;l=e.next()){l=l.value;var C=void 0,Q=void 0,L=(C=l)==null?void 0:(Q=C.engagementPanelSectionListRenderer)==null?void 0:Q.targetId;if(L&&(C=x.has(L),Q=O.has(L),L=void 0,!C&&Q?(Q=C=void 0,L=(C=l)==null?void 0:(Q=C.engagementPanelSectionListRenderer)==null?void 0:Q.onShowCommands):C&&!Q&&(Q=C=void 0,L=(C=l)==null?void 0:(Q=C.engagementPanelSectionListRenderer)==
null?void 0:Q.onHideCommands),L))for(l=_.T(L),L=l.next();!L.done;L=l.next())this.ytComponentBehavior.resolveCommand(L.value)}};
Z3.prototype.onRendererstamperFinished=Z3.prototype.onRendererstamperFinished;Z3.prototype.dataChanged=Z3.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Z3.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Z3.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Z3.prototype,"lastRenderedPanelIds",void 0);_.B([_.R(),_.v("design:type",Number)],Z3.prototype,"hideDelayMs",void 0);_.B([_.R(),_.v("design:type",Array)],Z3.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Array)],Z3.prototype,"visiblePanels",void 0);_.B([_.R(),_.v("design:type",Boolean)],Z3.prototype,"isWatchWhilePanel",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z3.prototype,"dataChanged",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z3.prototype,"onRendererstamperFinished",null);_.B([_.H({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Z3);
_.n(Z3,"ytd-watch-engagement-panels",function(){if(Ynz!==void 0)return Ynz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Ynz=O},{mode:1});var Bls;var E$=function(){return _.a.apply(this,arguments)||this};
_.c(E$,_.a);E$.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.bx(_.$U(this.hostElement).querySelector("#text"),_.hiN(_.HxN,this.data.companionLegalText))};
E$.prototype.computeAutoScrollEnabled=function(O,x){return O&&!x};
E$.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
E$.prototype.onToggleTap=function(){this.expanded=!this.expanded};
E$.prototype.expandedChanged=E$.prototype.expandedChanged;E$.prototype.dataChanged=E$.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.LYy),_.v("design:type",Object)],E$.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],E$.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],E$.prototype,"expanded",void 0);
_.B([_.R({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.v("design:type",Boolean)],E$.prototype,"autoScrollEnabled",void 0);_.B([_.R(),_.v("design:type",String)],E$.prototype,"expanderIcon",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],E$.prototype,"dataChanged",null);
_.B([_.T1("expanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],E$.prototype,"expandedChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],E$);
_.n(E$,"ytd-companion-legal-text-renderer",function(){if(Bls!==void 0)return Bls;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Bls=O},{mode:1});var vb7;var t2=function(){var O=_.a.apply(this,arguments)||this;O.buttonUpdate=_.t("web_modern_buttons");O.kevlarWatchGrid=_.t("kevlar_watch_grid");O.centerAlignDescription=_.t("action_companion_center_align_description");O.truncateDomain=_.t("action_companion_truncate_domain");O.enableMonoStyle=_.t("enable_default_mono_cta_migration_web_client");return O};
_.c(t2,_.a);_.b=t2.prototype;_.b.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.b.getOnLayoutVisibleCallback=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.onLayoutVisibleCallback:null};
_.b.getLayoutId=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
_.b.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",t2.JSC$23087_DEFAULT_AD_BADGE_RENDERER);var O=this.getOnLayoutVisibleCallback();O&&O()}};
_.b.getButtonRenderer=function(O){return O.actionButton&&_.q(O.actionButton,_.wf)?(delete _.q(O.actionButton,_.wf).navigationEndpoint,_.q(O.actionButton,_.wf)):{}};
_.b.onClick=function(O){var x=this;if((!_.t("web_modern_buttons")||!_.uk(_.n3(O),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){O=_.f7();var e=this.getLayoutId();O&&e&&_.t("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?O.getPlayerPromise().then(function(l){(new _.fg(l)).executeCommand(x.data.navigationEndpoint,e)}):_.t("kevlar_companion_resolve_command_killswitch")?_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Sh(this.hostElement,"yt-companion-ad-clicked",["action-companion",e])}};
_.Dy.Object.defineProperties(t2.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?0:(x=O.detailsLine)==null?0:(e=x.adRating)==null?0:e.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 O,x,e,l;return((O=this.data)==null?0:(x=O.detailsLine)==null?0:(e=x.adRating)==null?0:(l=e.ratingIcon)==null?0:l.iconType)?_.x0(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;return((O=this.data)==null?0:(x=O.detailsLine)==null?0:(e=x.texts)==null?0:(l=e[0])==null?0:l.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 O,x;return((O=this.data)==null?0:(x=O.description)==null?0:x.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var O=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return O?O.indexOf("/default_banner")!==-1:!0}}});
t2.prototype.onClick=t2.prototype.onClick;t2.prototype.dataChanged=t2.prototype.dataChanged;t2.JSC$23087_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CZ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],t2.prototype,"rendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],t2.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],t2.prototype,"buttonUpdate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],t2.prototype,"kevlarWatchGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],t2.prototype,"centerAlignDescription",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],t2.prototype,"truncateDomain",void 0);
_.B([_.R({computed:"computeButtonOverride(buttonUpdate)"}),_.v("design:type",Object)],t2.prototype,"buttonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],t2.prototype,"enableMonoStyle",void 0);_.B([_.p("data.detailsLine.adRating.ratingText"),_.v("design:type",Object),_.v("design:paramtypes",[])],t2.prototype,"getRating",null);_.B([_.p("getRating"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],t2.prototype,"computeRatingHidden",null);
_.B([_.p("data.detailsLine.adRating.ratingIcon.iconType"),_.v("design:type",Object),_.v("design:paramtypes",[])],t2.prototype,"iconType",null);_.B([_.p("data.detailsLine.texts.0.text"),_.v("design:type",Object),_.v("design:paramtypes",[])],t2.prototype,"getDetailsLine",null);_.B([_.p("getDetailsLine"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],t2.prototype,"computeDetailsLineHidden",null);
_.B([_.p("data.description.text"),_.v("design:type",Object),_.v("design:paramtypes",[])],t2.prototype,"getDescriptionText",null);_.B([_.p("getDescriptionText"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],t2.prototype,"computeDescriptionTextHidden",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],t2.prototype,"interactionLoggingClientData",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],t2.prototype,"hideBanner",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],t2.prototype,"dataChanged",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],t2.prototype,"onClick",null);_.B([_.H({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],t2);
_.n(t2,"ytd-action-companion-ad-renderer",function(){if(vb7!==void 0)return vb7;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vb7=O},{mode:_.gq("kevlar_poly_si_batch_j067")?1:2});var fPz;var JGI;var q1=function(){var O=_.a.apply(this,arguments)||this;O.buttonUpdate=_.t("web_modern_buttons");O.hideLegacyBanner=_.t("enable_dsa_one_click_ata_translators_infeed_elements");O.adInfoButtonStyle="mono";O.adInfoButtonType="text";O.noDotAdBadge=!0;return O};
_.c(q1,_.a);_.b=q1.prototype;_.b.getOnLayoutVisibleCallback=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.onLayoutVisibleCallback:null};
_.b.getLayoutId=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
_.b.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 O=this.data.image.thumbnail.thumbnails[0];this.imageSrc=O.url?_.Yy(O.url):void 0;this.imageWidth=O.width||0;this.imageHeight=O.height||0}this.data.clickthroughEndpoint&&_.q(this.data.clickthroughEndpoint,_.$b)&&(O=_.q(this.data.clickthroughEndpoint,_.$b).url,_.t("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
O||"":O?(O=_.Yy(O),this.clickThroughUrl=_.Hw(O)):this.clickThroughUrl=void 0);(O=this.getOnLayoutVisibleCallback())&&O()}};
_.b.onClick=function(O){_.uk(_.n3(O),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(O)};
_.b.handleClick=function(){var O=this;this.data&&this.data.clickthroughEndpoint&&(_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(x){O.macroReplacementBehavior.sendServiceRequestAction([x])}),_.Sh(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.b.onLoad=function(){_.jh(this.hostElement,"yt-refit-popups-action")};
_.Dy.Object.defineProperties(q1.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.interactionLoggingClientData:null}}});
q1.prototype.onLoad=q1.prototype.onLoad;q1.prototype.onClick=q1.prototype.onClick;q1.prototype.dataChanged=q1.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],q1.prototype,"rendererBehavior",void 0);_.B([_.V(O$T.YtMacroReplacementBehavior),_.v("design:type",Object)],q1.prototype,"macroReplacementBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],q1.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q1.prototype,"buttonUpdate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q1.prototype,"hideLegacyBanner",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q1.prototype,"adInfoButtonStyle",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],q1.prototype,"adInfoButtonType",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],q1.prototype,"macros",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],q1.prototype,"interactionLoggingClientData",null);_.B([_.R(),_.v("design:type",String)],q1.prototype,"clickThroughUrl",void 0);_.B([_.R(),_.v("design:type",_.h7)],q1.prototype,"imageSrc",void 0);_.B([_.R(),_.v("design:type",Number)],q1.prototype,"imageWidth",void 0);_.B([_.R(),_.v("design:type",Number)],q1.prototype,"imageHeight",void 0);_.B([_.R(),_.v("design:type",Object)],q1.prototype,"noDotAdBadge",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q1.prototype,"dataChanged",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],q1.prototype,"onClick",null);_.B([_.bH("load"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q1.prototype,"onLoad",null);_.B([_.H({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],q1);
_.n(q1,"ytd-image-companion-renderer",function(){if(JGI!==void 0)return JGI;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return JGI=O},{mode:_.gq("kevlar_poly_si_batch_j067")?1:2});var wHS;var P6=function(){return _.a.apply(this,arguments)||this};
_.c(P6,_.a);_.b=P6.prototype;_.b.dataChanged=function(){this.set("data.adBadge",P6.JSC$23096_DEFAULT_AD_BADGE_RENDERER);if(this.data){var O=this.getOnLayoutVisibleCallback();O&&O()}};
_.b.getOnLayoutVisibleCallback=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.onLayoutVisibleCallback:null};
_.b.getLayoutId=function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
_.b.onCompanionClicked=function(O){this.data&&(O.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Sh(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.b.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var O=_.f7(),x=this.getLayoutId(),e=this.data.clickToAdvSiteEndpoint;O&&x&&_.t("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?O.getPlayerPromise().then(function(l){(new _.fg(l)).executeCommand(e,x)}):_.wr(this.hostElement,"yt-navigate",{endpoint:e})}};
_.b.sendTrackingPings=function(O){if(O&&O.length!==0&&O[0].loggingUrls&&(O=O[0].loggingUrls.map(this.getBaseUrl)))for(var x=0;x<O.length;x++)_.On(O[x])};
_.b.getBaseUrl=function(O){return O.baseUrl||""};
_.Dy.Object.defineProperties(P6.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var O=_.i8("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.interactionLoggingClientData:null}}});
P6.prototype.onCompanionClicked=P6.prototype.onCompanionClicked;P6.prototype.dataChanged=P6.prototype.dataChanged;P6.JSC$23096_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CZ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],P6.prototype,"data",void 0);_.B([_.kX("#title"),_.v("design:type",HTMLElement)],P6.prototype,"shopTitle",void 0);
_.B([_.G1("data.impressionEndpoints"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],P6.prototype,"dataChanged",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],P6.prototype,"interactionLoggingClientData",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],P6.prototype,"onCompanionClicked",null);
_.B([_.H({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],P6);
_.n(P6,"ytd-shopping-companion-renderer",function(){if(wHS!==void 0)return wHS;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wHS=O},{mode:1});_.wP(_.K(function(O){var x=O.data;O=_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB});var e=_.p5(function(){return x().interaction},oOI);
_.fe(function(){var l,C;C=(C=_.i8("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.onLayoutVisibleCallback:null;(l=C)==null||l()},"rn");
return _.D("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.lk(function(l){_.jh(l.currentTarget,"yt-refit-popups-action")}),
el:_.Y0(O,e),"aria-label":function(){var l,C;return(l=x().interaction)==null?void 0:(C=l.accessibility)==null?void 0:C.label}},_.D("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(l){return _.D(_.de,{data:l.data,
targetHeight:80,customCommandResolver:oOI})}})),_.D("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.D("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.D(_.MR,{data:function(){return x().adBadge}},{adBadgeViewModel:function(l){return _.D(_.VB,{data:l.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.D("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.D(_.MR,{data:function(){return x().menu}},{buttonViewModel:_.RV}))))},"sn"),"banner-image-layout-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;O=_.F6({visibilityCallback:function(l){var C,Q=(C=x().interaction)==null?void 0:C.onFirstVisible;l&&Q&&_.me(Q)},
showOption:_.yB});var e=_.p5(function(){return x().interaction},y6w);
_.fe(function(){var l,C;C=(C=_.i8("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.onLayoutVisibleCallback:null;(l=C)==null||l()},"tn");
return _.D("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Y0(O,e)},_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.D(_.MR,{data:function(){return x().adImage}},{adImageViewModel:function(l){return _.D(_.de,{data:l.data,
targetHeight:80,customCommandResolver:y6w})}})),_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.D(_.MR,{data:function(){return x().adAvatarLockup}},{adAvatarLockupViewModel:function(l){return _.D(duI,{data:l.data,
customCommandResolver:y6w})}})),_.D(_.MR,{data:function(){return x().adButton}},{adButtonViewModel:function(l){return _.D(_.EL,{data:l.data,
customCommandResolver:y6w})}}),_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.D(_.MR,{data:function(){return x().menu}},{buttonViewModel:_.RV}))))},"un"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Ld}});var Snc={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"},c6=function(){var O=_.a.apply(this,arguments)||this;O.updateCompanionDataJobId=0;O.contentVideoId=null;O.player=null;O.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return O};
_.c(c6,_.a);_.b=c6.prototype;_.b.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Snc}}};
_.b.attached=function(){var O=this,x=_.f7();x&&x.getPlayerPromise().then(function(e){O.getCachedDataAndListen(e)})};
_.b.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.b.updateRendererStamper=function(){var O={};if(this.data)for(var x in Snc)if(this.data[x]){O[x]=this.data[x];break}if(this.oneofRenderer!=void 0||Object.keys(O).length)this.oneofRenderer=O};
_.b.getCachedDataAndListen=function(O){var x=this.retrieveCachedCompanionData();x&&Object.keys(x).length&&this.receiveCompanionData(x);this.ytPlayerListenerBehavior.listenToPlayerEvent(O,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=O};
_.b.retrieveCachedCompanionData=function(){return _.CV.yt&&_.CV.yt.www&&_.CV.yt.www.ads&&_.CV.yt.www.ads.eventcache&&_.CV.yt.www.ads.eventcache.getLastCompanionData?_.CV.yt.www.ads.eventcache.getLastCompanionData():null};
_.b.receiveCompanionData=function(O){O&&Object.keys(O).length?(this.contentVideoId=O.contentVideoId,this.setCompanionData(O)):this.setCompanionData(O)};
_.b.setCompanionData=function(O){this.cancelPendingCompanionAdJobs();if(O){this.updateCompanionDataJobId=0;for(var x in Snc)Snc.hasOwnProperty(x)&&(this.data[x]=void 0);O.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",O.shoppingCompanionCarouselRenderer):O.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",O.imageCompanionAdRenderer):O.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",O.actionCompanionAdRenderer),_.jh(this.hostElement,
"yt-hide-unlimited-offer-module"),_.jh(this.hostElement,"yt-hide-tvfilm-offer-module")):O.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",O.bannerImageLayoutViewModel):O.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",O.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.b.dataChanged=function(){var O=this,x=_.f7();x?x.getPlayerPromise().then(function(e){O.contentVideoId&&e.getVideoUrl().includes("v="+O.contentVideoId)||(O.cancelPendingCompanionAdJobs(),O.updateRendererStamper())}):_.OC(Error("Vo"))};
_.b.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.vn.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.b.handleCompanionAdClicked=function(O,x){this.player.onAdUxClicked(O,x);this.player.pauseVideo()};
c6.prototype.dataChanged=c6.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],c6.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],c6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],c6.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],c6.prototype,"oneofRenderer",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],c6.prototype,"dataChanged",null);_.B([_.H({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],c6);
_.n(c6,"ytd-companion-slot-renderer",function(){if(fPz!==void 0)return fPz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return fPz=O},{mode:_.gq("kevlar_poly_si_batch_j067")?
1:2});var jfh;var Io=function(){return _.a.apply(this,arguments)||this};
_.c(Io,_.a);Io.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Io.prototype.dataChanged=Io.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Io.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Io.prototype,"companionSlotData",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Io.prototype,"dataChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Io);
_.n(Io,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(jfh!==void 0)return jfh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jfh=O},{mode:1});var Nla;var VM=function(){var O=_.a.apply(this,arguments)||this;O.skinnyMode=!1;O.COMPACT_EVENT_COUNT=4;O.onShelfToggleButtonTap=function(){O.logTap(O.data);O.showingMore=!O.showingMore};
O.onShelfToggleButtonFocus=function(){O.showingMore||(O.logTap(O.data),O.showingMore=!0,_.A_(O,function(){var x=O.COMPACT_EVENT_COUNT-1,e;(e=_.$U(O.hostElement).querySelector("#event-"+x))==null||e.focus()}))};
return O};
_.c(VM,_.a);_.b=VM.prototype;_.b.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.b.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.b.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Qa(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Qa(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Qa(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Qa(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Qa(this.infoTooltip,this.infoTooltip.hide))};
_.b.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Qa(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Qa(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Qa(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Qa(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Qa(this.infoTooltip,this.infoTooltip.hide))};
_.b.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)};
_.b.onShowingMoreChanged=function(){var O;this.showingMoreChanged((O=this.showingMore)!=null?O:!1)};
_.b.showingMoreChanged=function(O){var x=this.get("data.events")||[];this.set("restEvents",x.slice(1,O?x.length:this.COMPACT_EVENT_COUNT).map(function(e){return e.ticketEventRenderer}));
x.slice(0,O?x.length:this.COMPACT_EVENT_COUNT).forEach(function(e){var l=_.Pq();e=e.ticketEventRenderer.trackingParams;_.q9()&&l&&e&&(e=_.Fv(e),l&&_.zD(l,e))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.b.computeAriaLabel=function(O){return O.subtitle1+", "+O.subtitle2};
_.b.logTap=function(O){_.q9()&&this.ytRendererBehavior.logExplicitClick(O)};
_.b.isKeyboardAction=function(O){return this.get("detail.x",O)===0&&this.get("detail.y",O)===0};
_.b.onFirstEventTap=function(O){O.target&&this.handleTap(O.target,this.firstEvent,this.isKeyboardAction(O))};
_.b.onTicketLinkTap=function(O){O.target&&this.handleTap(O.target,O.model.item,this.isKeyboardAction(O))};
_.b.handleTap=function(O,x,e){if(x.buttonCommand)if(x.hasMultipleOffers)Object.assign(_.q(x.buttonCommand,_.aq),{properties:{source:e?"keyboard":"tap"}}),this.logTap(x),this.popupPositionTarget=O,_.gr(this.hostElement,[x.buttonCommand],this.hostElement);else{var l;if((l=_.q(x.buttonCommand,_.$b))==null?0:l.url)this.logTap(x),_.$y(window,_.q(x.buttonCommand,_.$b).url)}};
VM.prototype.onShowingMoreChanged=VM.prototype.onShowingMoreChanged;VM.prototype.dataChanged=VM.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],VM.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],VM.prototype,"firstEvent",void 0);_.B([_.R(),_.v("design:type",Object)],VM.prototype,"restEvents",void 0);_.B([_.R(),_.v("design:type",String)],VM.prototype,"imageUrl",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],VM.prototype,"showingMore",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],VM.prototype,"canShowMore",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VM.prototype,"skinnyMode",void 0);_.B([_.R(),_.v("design:type",HTMLElement)],VM.prototype,"popupPositionTarget",void 0);_.B([_.kX("#banner-info-tooltip"),_.v("design:type",Object)],VM.prototype,"infoTooltip",void 0);
_.B([_.kX("#info-container"),_.v("design:type",HTMLElement)],VM.prototype,"infoContainer",void 0);_.B([_.kX("#shelf-toggler"),_.v("design:type",HTMLElement)],VM.prototype,"shelfToggleButton",void 0);_.B([_.kX("#separator"),_.v("design:type",HTMLDivElement)],VM.prototype,"separator",void 0);_.B([_.R(),_.v("design:type",String)],VM.prototype,"shelfTogglerLabelText",void 0);_.B([_.R(),_.v("design:type",String)],VM.prototype,"shelfTogglerIcon",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VM.prototype,"dataChanged",null);_.B([_.G1("showingMore"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VM.prototype,"onShowingMoreChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],VM);
_.n(VM,"ytd-ticket-shelf-renderer",function(){if(Nla!==void 0)return Nla;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Nla=O},{mode:1});var gbE;var $ua;var itI=function(){return _.a.apply(this,arguments)||this};
_.c(itI,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],itI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],itI.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],itI);
_.n(itI,"ytd-comments-entry-point-message-renderer",function(){if($ua!==void 0)return $ua;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $ua=O},{mode:1});var Owk;var pH=function(){return _.a.apply(this,arguments)||this};
_.c(pH,_.a);_.Dy.Object.defineProperties(pH.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.teaserAvatar)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pH.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pH.prototype,"hasAvatar",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],pH);
_.n(pH,"ytd-comments-entry-point-teaser-renderer",function(){if(Owk!==void 0)return Owk;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Owk=O},{mode:1});var x3H;var eRw=function(){return _.a.apply(this,arguments)||this};
_.c(eRw,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eRw.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eRw.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],eRw);
_.n(eRw,"ytd-comments-simplebox-renderer",function(){if(x3H!==void 0)return x3H;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return x3H=O},{mode:1});var Ro=function(){var O=_.a.apply(this,arguments)||this;O.fullHeight=!_.t("comment_teaser_full_height_kill_switch")&&_.t("kevlar_watch_grid");return O};
_.c(Ro,_.a);Ro.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"}}}};
Ro.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ro.prototype.onTap=function(){var O=this.tapCommand;O&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(O))};
Ro.prototype.onKeyUp=function(O){if(O.keyCode===13)this.onTap()};
_.Dy.Object.defineProperties(Ro.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.onTap)return this.data.onTap;var x,e;if(((x=this.data)==null?0:x.teaserContent)||((e=this.data)==null?0:e.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)!=null&&O.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Ro.prototype.onKeyUp=Ro.prototype.onKeyUp;Ro.prototype.onTap=Ro.prototype.onTap;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ro.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ro.prototype,"fullHeight",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"tapCommand",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"simpleboxPlaceholder",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ro.prototype,"hasSimpleboxPlaceholder",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"simpleboxAvatar",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"teaserContent",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ro.prototype,"hasTeaserContent",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"teaserAvatar",null);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ro.prototype,"hasTeaserAvatar",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"messageText",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Ro.prototype,"contentRenderer",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ro.prototype,"hasContents",null);
_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ro.prototype,"hasContentRenderer",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ro.prototype,"onTap",null);_.B([_.bH("keypress"),_.v("design:type",Function),_.v("design:paramtypes",[_.oj]),_.v("design:returntype")],Ro.prototype,"onKeyUp",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Ro);
_.n(Ro,"ytd-comments-entry-point-header-renderer",function(){if(gbE!==void 0)return gbE;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gbE=O},{mode:1});var l9T;_.wP(_.Bh4,"yt-animated-rolling-number",{props:{numberText:_.Ld,numberValue:_.Ld,heightPx:_.Ld,fontSizeMultiplier:_.Ld,shouldAnimate:_.Ld,forceRollUp:_.Ld}});var CDk=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),QyE={numberText:"",heightPx:2*CDk,shouldAnimate:!1},U$=function(){var O=_.a.apply(this,arguments)||this;O.usingAnimatedComponents=!0;O.wasDetailed=!1;O.JSC$23133_browserSupportsAnimation=_.t("web_supports_animations_api");O.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};O.detailed=!1;O.shouldAnimate=!1;O.viewCountProps=QyE;O.dateTextProps=
QyE;O.metadataBadgesInDescription=_.t("web_metadata_badges_in_description");return O};
_.c(U$,_.a);_.b=U$.prototype;_.b.attached=function(){var O=this;_.GG().resolve(_.kr).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(x){O.set("videoPrimaryInfoRenderer.subtitle",x)})};
_.b.detached=function(){_.GG().resolve(_.kr).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.b.resetAnimationState=function(){this.shouldAnimate=!1};
_.b.updateDynamicMetadata=function(){if(this.JSC$23133_browserSupportsAnimation){if(!this.detailed){var O,x,e,l;var C=(O=this.videoPrimaryInfoRenderer)==null?void 0:(x=O.viewCount)==null?void 0:(e=x.videoViewCountRenderer)==null?void 0:(l=e.extraShortViewCount)==null?void 0:l.simpleText;var Q,L,k,M;var G=(Q=this.videoPrimaryInfoRenderer)==null?void 0:(L=Q.viewCount)==null?void 0:(k=L.videoViewCountRenderer)==null?void 0:(M=k.shortViewCount)==null?void 0:M.simpleText}if(!G){var X,y,Z,E;C=(X=this.videoPrimaryInfoRenderer)==
null?void 0:(y=X.viewCount)==null?void 0:(Z=y.videoViewCountRenderer)==null?void 0:(E=Z.unlabeledViewCountValue)==null?void 0:E.simpleText;var P,U,W,z;G=(P=this.videoPrimaryInfoRenderer)==null?void 0:(U=P.viewCount)==null?void 0:(W=U.videoViewCountRenderer)==null?void 0:(z=W.viewCount)==null?void 0:z.simpleText}var r,f,u;O=Number((r=this.videoPrimaryInfoRenderer)==null?void 0:(f=r.viewCount)==null?void 0:(u=f.videoViewCountRenderer)==null?void 0:u.originalViewCount);var Y,J;r=(Y=this.videoPrimaryInfoRenderer)==
null?void 0:(J=Y.relativeDateText)==null?void 0:J.simpleText;var O8;Y=!((O8=this.videoPrimaryInfoRenderer)==null||!O8.relativeDateText);if(C&&G&&O&&(r||!Y)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;O8=G.split(new RegExp("("+C+")"));C=_.KA(O8[0]);var Xr;G={numberText:(Xr=O8[1])!=null?Xr:"",numberValue:O,heightPx:2*CDk,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Fr;Xr=((Fr=O8[2])!=null?Fr:"")+"  ";this.setViewCount(G,C,_.KA(Xr));
if(!this.detailed&&Y){C=r.split(/(\d+)/);Fr=_.KA(C[0]);var mL;Xr={numberText:(mL=C[1])!=null?mL:"",heightPx:2*CDk,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Zn;mL=((Zn=C[2])!=null?Zn:"")+"  ";this.setDateText(Xr,Fr,_.KA(mL))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.b.setViewCount=function(O,x,e){_.db(x)!==_.db(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=x);this.viewCountProps.numberText!==(O==null?void 0:O.numberText)&&(this.viewCountProps=O||QyE);_.db(e)!==_.db(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=e)};
_.b.setDateText=function(O,x,e){_.db(x)!==_.db(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=x);this.dateTextProps.numberText!==(O==null?void 0:O.numberText)&&(this.dateTextProps=O||QyE);_.db(e)!==_.db(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=e)};
_.b.onYtUpdateViewershipAction=function(O){this.videoPrimaryInfoRenderer&&(_.q(O,sUo).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.q(O,sUo).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.q(O,sUo).viewCount)))};
_.b.onYtUpdateDateTextAction=function(O){if(this.videoPrimaryInfoRenderer){O=_.q(O,_.aKE).dateText;this.shouldAnimate=!0;var x;((x=this.videoPrimaryInfoRenderer)==null?0:x.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",O):this.set("videoPrimaryInfoRenderer.dateText",O)}};
_.Dy.Object.defineProperties(U$.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Poa(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.db(Poa(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.db(this.viewCountPreNumberText),this.viewCountProps.numberText,_.db(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.db(this.dateTextPreNumberText),this.dateTextProps.numberText,_.db(this.dateTextPostNumberText)].join("")}}});
U$.prototype.updateDynamicMetadata=U$.prototype.updateDynamicMetadata;U$.prototype.resetAnimationState=U$.prototype.resetAnimationState;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],U$.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"detailed",void 0);_.B([_.R(),_.v("design:type",Object)],U$.prototype,"shouldAnimate",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"viewCountPreNumberText",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"viewCountProps",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"viewCountPostNumberText",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"dateTextPreNumberText",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"dateTextProps",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"dateTextPostNumberText",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U$.prototype,"metadataBadgesInDescription",void 0);_.B([_.p("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.v("design:type",Object),_.v("design:paramtypes",[])],U$.prototype,"infoText",null);
_.B([_.p("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.v("design:type",String),_.v("design:paramtypes",[])],U$.prototype,"descriptionInfoTooltipText",null);_.B([_.p("detailed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],U$.prototype,"showDescriptionInfoTooltip",null);
_.B([_.p("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.v("design:type",String),_.v("design:paramtypes",[])],U$.prototype,"animatedViewCountAccessibilityLabel",null);_.B([_.p("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.v("design:type",String),_.v("design:paramtypes",[])],U$.prototype,"animatedDateTextAccessibilityLabel",null);
_.B([_.T1("videoPrimaryInfoRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],U$.prototype,"resetAnimationState",null);_.B([_.T1("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],U$.prototype,"updateDynamicMetadata",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-watch-info-text"})],U$);
_.n(U$,"ytd-watch-info-text",function(){if(l9T!==void 0)return l9T;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return l9T=O},{mode:1});var bwS;var TaI="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var L1H=_.K(function(O){var x=O.data;var e=O.setTapCommand;_.uo(function(){var l=_.p_(x().onTap);e(l)},"Hj6Srd");
return _.D("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ}),_.D("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.D("span",null,function(){return x().simpleboxText})))},"wn");var kQh=_.K(function(O){return _.D("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.D(_.F,{cond:function(){return _.q(O.data().avatar,_.c8)},
then:function(x){return _.D(_.jQ,{data:x,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.D("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.D(_.TT,{text:function(){return O.data().teaserText}})))},"xn");var Aay=_.K(function(O){var x=O.data;var e=O.setTapCommand;_.uo(function(){var l=_.p_(x().onTap);e(l)},"IlZFqc");
return _.D("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.D(_.MR,{data:function(){return x().teasers}},{commentsEntryPointTeaserViewModel:kQh}))},"zn");var M2o=_.K(function(O){var x=O.data;var e=O.setTapCommand;_.uo(function(){var l=_.p_(x().onTap);e(l)},"sYe8ye");
return _.D("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.D(_.TT,{text:function(){return x().messageText}}))},"Bn");var D3s=_.K(function(O){var x=O.data;var e=O.setTapCommand;var l=O.isDisabled;_.uo(function(){var C=(l==null?0:l())?void 0:_.p_(x().onTap);e(C)},"GZxRqd");
return _.D("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.D(_.L7,{icon:function(){return x().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.D(_.F,{cond:function(){return x().image},
then:function(C){return _.D(_.n_,{data:C,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.D(_.TT,{text:function(){return x().text},
className:function(){return x().image||x().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.D(_.MR,{data:function(){return x().button}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:l==null?void 0:l()}}})}}))},"Dn");var GQH=_.K(function(O){var x=O.data;var e=O.itemIndex;var l=O.selectedIndex;var C=O.indexUpdatedCallback;var Q=O.observer;O=O.title;var L=_.Q5("yt-carousel-item-view-model",function(y){Q&&Q().observe(y)}),k=function(y){e()===l()&&C(y)},M=_.Dl(NoS),G=_.Dl(_.TtL),X=function(){var y,Z,E;
return((y=x())==null?void 0:y.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!M()||((Z=x())==null?void 0:Z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&G().includes("PAposts_by_host")||((E=x())==null?void 0:E.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&G().includes("PAyouchat")};
return _.D("yt-carousel-item-view-model",{el:L,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":O},_.D(_.MR,{data:function(){var y,Z;return(Z=(y=_.q(x().carouselItem,ieT))==null?void 0:y.textCarousel)!=null?Z:x().carouselItem}},{textCarouselItemViewModel:function(y){return _.D(D3s,{data:y.data,
setTapCommand:k,isDisabled:X})},
commentTeaserCarouselItemViewModel:function(y){return _.D(Aay,{data:y.data,setTapCommand:k})},
commentInputBoxCarouselItemViewModel:function(y){return _.D(L1H,{data:y.data,setTapCommand:k})},
commentsEntryPointMessageViewModel:function(y){return _.D(M2o,{data:y.data,setTapCommand:k})}}))},"En");var F1h=_.K(function(O){var x=O.numDots;var e=O.activeIndex;return _.D("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.D(_.HE,{each:function(){return Array.from({length:x()})},
keyBy:"INDEX"},function(l,C){return _.D("div",{class:function(){var Q={};return _.yu("ytCarouselDotsShapeDot",(Q.ytCarouselDotsShapeDotActive=C===e(),Q))}})}))},"Fn");var XDT=_.K(function(O){var x=O.data;var e=O.handleCarouselNavigation;var l=O.numItems;var C=O.selectedIndex;var Q=function(){return{disabled:C()===0}},L=function(){return{disabled:C()===l()-1}};
return _.D("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.D("div",null,_.D("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return x().title}),_.D(_.F,{cond:function(){return x().subtitle},
then:function(k){return _.D("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return x().subtitleAccessibilityText}},k)}})),_.D(_.F,{cond:function(){return l()>1},
then:function(){return _.D("div",{class:"ytCarouselTitleViewModelNavigation"},_.D(F1h,{numDots:l,activeIndex:C}),_.D(_.F,{cond:function(){return x().previousButton},
then:function(k){return _.D(_.MR,{data:k},{buttonViewModel:function(M){return _.D(_.RV,{data:M.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return e(-1)},
buttonOverrides:Q})}})}}),_.D(_.F,{cond:function(){return x().nextButton},
then:function(k){return _.D(_.MR,{data:k},{buttonViewModel:function(M){return _.D(_.RV,{data:M.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return e(1)},
buttonOverrides:L})}})}}))}}))},"Gn");_.wP(_.K(function(O){var x=O.data;var e,l=_.Q5("yt-video-metadata-carousel-view-model"),C=_.Q5("div",function(Y){var J=function(){var O8=Y.offsetWidth*U(),Xr=24*(U()-1);Z(O8+Xr)};
J();window.ResizeObserver&&(e=new ResizeObserver(J),e.observe(Y))}),Q=_.wz("HTML_DIR")==="rtl",L=!1,k=0,M=0;
O=_.T(_.Iw(0,void 0,"M49TDf"));var G=O.next().value,X=O.next().value;O=_.T(_.Iw(0,void 0,"zLIok"));var y=O.next().value,Z=O.next().value;O=_.T(_.Iw(!1,void 0,"bhelhc"));var E=O.next().value,P=O.next().value,U=function(){var Y,J,O8;return(O8=(Y=x())==null?void 0:(J=Y.carouselTitles)==null?void 0:J.length)!=null?O8:0},W=function(){C.value&&C.value.scrollLeft!==k&&X((Q?C.value.scrollLeft<k:C.value.scrollLeft>k)?Math.min(G()+1,U()-1):Math.max(G()-1,0))},z;
window.IntersectionObserver&&(z=new IntersectionObserver(function(Y){Y=_.T(Y);for(var J=Y.next();!J.done;J=Y.next())if(J.value.isIntersecting){if(L){L=!1;break}W()}else X(M)},{threshold:.2}));
_.uo(function(){if(C.value){var Y=(Q?-1:1)*(y()/U()+12)*(E()&&z?M:G());typeof C.value.scrollTo==="function"?C.value.scrollTo({left:Y,behavior:"smooth"}):C.value.scrollLeft=Y;k=Y;M=E()&&z?M:G()}},"s9rbgc");
var r,f=function(Y){r=Y};
_.YO(function(){var Y;(Y=e)==null||Y.disconnect();var J;(J=z)==null||J.disconnect()});
var u=function(Y){Y=G()+Y;Y>=0&&Y<U()&&(L=!0,X(Y))};
return _.D("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:l,"on:click":_.lk(function(Y){if(_.E9(_.Zc(Y),l.value,["BUTTON".toString()])||!r)return!1;_.GG().resolve(_.Xc).resolveCommand(r,{forceClickLogging:!0});return!1}),
"on:touchstart":_.lk(function(){P(!0);return!1}),
"on:touchend":_.lk(function(){z||W();P(!1);return!1}),
hidden:function(){var Y,J;return!((Y=x())==null?0:(J=Y.carouselItems)==null?0:J.length)}},_.D("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.D(_.F,{cond:function(){return x().carouselTitles},
then:function(Y){return _.D(_.MR,{data:function(){return Y()[E()&&z?M:G()]}},{carouselTitleViewModel:function(J){return _.D(XDT,{data:J.data,
handleCarouselNavigation:u,numItems:U,selectedIndex:G})}})}})),_.D("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:C},_.D("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+y()+"px;"}},_.D(_.F,{cond:function(){return x().carouselItems},
then:function(Y){return _.D(_.HE,{each:Y},function(J,O8){return _.D(_.MR,{data:function(){return J}},{carouselItemViewModel:function(Xr){return _.D(GQH,{data:Xr.data,
itemIndex:O8,selectedIndex:G,indexUpdatedCallback:f,observer:z,title:function(){a:{var Fr=O8();var mL,Zn=(mL=x())==null?void 0:mL.carouselTitles;if(Zn&&(Fr=Zn[Fr])){var q$;Fr=(q$=_.q(Fr,$4T))==null?void 0:q$.title;break a}Fr=void 0}return Fr}})}})})}}))))},"In"),"yt-video-metadata-carousel-view-model",{props:{data:_.Ld}});var ogy=_.t("web_action_buttons_update_owner_width")?32:12,ao=function(){var O=_.a.apply(this,arguments)||this;O.isHovering=!1;O.enableColorSampling=_.t("web_delhi_colorful_sd");O.metadataBadgesInDescription=_.t("web_metadata_badges_in_description");O.descriptionCollapsed=!0;O.useFadedScrimDescription=_.t("kevlar_enable_faded_scrim_on_description");O.skinnyMode=!1;O.playlist=!1;O.isDark=document.documentElement.hasAttribute("dark");O.disableVideoOwnerOnTap=_.t("swatchie_video_owner_on_tap_ks");O.swatcherooDelayLoad=
_.t("swatcheroo_enable_ghost_cards");O.primaryMenuWidth=0;O.videoId="";O.titleHeadlineXs=_.t("web_watch_typography_title_headline_xs");O.titleHeadlineS=_.t("web_watch_typography_title_headline_s");O.titleHeadlineM=_.t("web_watch_typography_title_headline_m");O.titleHashtagBlackLinkified=_.t("web_title_hashtag_black_linkified");O.titleHashtagGreyLinkified=_.t("web_title_hashtag_grey_linkified");O.actionButtonsUpdateOwnerWidth=_.t("web_action_buttons_update_owner_width");O.shouldForceIconOnly=!1;O.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};O.isFullscreen=!1;O.isTheaterMode=!1;return O};
_.c(ao,_.a);_.b=ao.prototype;_.b.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.b.updateOwnerAndDescriptionPosition=function(){_.t("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.rJ(this.bottomRowElement,this.ownerElement)):(_.rJ(this.bottomRowElement,this.descriptionElement),_.rJ(this.topRowElement,this.ownerElement)))};
_.b.titleOnTap=function(O){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;((x=window.getSelection())==null?0:x.toString().length)||this.handleExpandDescriptionCommands()}};
_.b.videoOwnerOnTap=function(O){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.b.detached=function(){var O=this,x;return _.A(function(e){(x=O.resizeObserver)==null||x.disconnect();_.Ra(e)})};
_.b.maybeAttachResizeObserver=function(){var O=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.QI(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){O.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.b.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var O=this.hostElement.clientWidth,x=Math.max(this.largerItemWrap?400:350,O/2-ogy);_.t("web_action_buttons_update_owner_width")&&(x=this.ownerElement.clientWidth+ogy);this.actionsOnSeparateLine=this.primaryMenuWidth>O-x?!0:!1}};
_.b.stripAttributedDescription=function(O){return{content:O.content.replace(/[\r\n]{2,}/g,"\n")}};
_.b.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.t("web_modern_buttons"),forceIconButton:!_.t("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:_.t("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"}}}};
_.b.videoPrimaryInfoRendererChanged=function(){var O;if((O=this.videoPrimaryInfoRenderer)==null?0:O.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.b.videoSecondaryInfoRendererChanged=function(){var O,x;(x=(O=this.descriptionInlineExpander).collapse)==null||x.call(O);this.descriptionExpandClientVe=_.O9(110509);this.descriptionCollapseClientVe=_.O9(110510);O=_.Pq();x=_.q9();O&&x&&(_.t("combine_ve_grafts")?(_.qK(_.k0(),this.descriptionExpandClientVe,x),_.qK(_.k0(),this.descriptionCollapseClientVe,x)):_.h3(O,x,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.b.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.b.updateTopLevelIconsOnly=function(){var O=this;_.t("top_level_update_killswitch")||this.menu&&_.vn.addLowPriorityJob(function(){O.menu.topLevelIconsOnly=O.skinnyMode},_.yF("swathceroo_delay_flexible_menu_update",100))};
_.b.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.t("web_action_buttons_minimize_subscribe")};
_.b.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.b.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.b.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.b.onYtTextInlineExpanderExpandedChanged=function(){if(!_.t("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var O,x;(x=(O=this.structuredDescriptionContentRendererElement).resize)==null||x.call(O)}};
_.b.onRenderStamperFinished=function(O){(O==null?void 0:O.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.b.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.b.onYtExpanderLessTapped=function(){var O,x=(O=this.videoSecondaryInfoRenderer)==null?void 0:O.showLessCommand;x&&this.ytComponentBehavior.resolveCommand(x)};
_.b.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.b.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.b.onDescriptionClick=function(O){if(!_.uk(_.n3(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;((x=window.getSelection())==null?0:x.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.t("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.b.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.b.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.b.logCollapseClick=function(){var O=_.Pq();O&&this.descriptionCollapseClientVe&&_.KZ(O,this.descriptionCollapseClientVe)};
_.b.logExpandClick=function(){var O=_.Pq();O&&this.descriptionExpandClientVe&&_.KZ(O,this.descriptionExpandClientVe)};
_.b.collapseDescription=function(){this.descriptionCollapsed=!0};
_.b.scrollToTopOfContainer=function(){_.Sh(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.b.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.b.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.b.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.b.resize=function(){if(this.descriptionInlineExpander){var O,x;(x=(O=this.descriptionInlineExpander).resize)==null||x.call(O)}else _.ft(new _.ry("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var e;(e=this.menu)==null||e.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.b.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var O,x,e,l,C=_.t("web_action_buttons_update_owner_width")?(e=(O=_.$U(this.menu).querySelector("#button-shape"))==null?void 0:O.clientWidth)!=null?e:0:(l=(x=_.$U(this.menu).querySelector("#button"))==null?void 0:x.clientWidth)!=null?l:0,Q,L;O=((L=(Q=_.$U(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:Q.clientWidth)!=null?L:0)+8+C;var k,M;C=(M=(k=_.$U(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:k.children.length)!=null?M:2;O<=8*C||(this.primaryMenuWidth=O)}};
_.b.onYtUpdateTitleAction=function(O){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.q(O,mDa).title)};
_.b.onYtUpdateDescriptionAction=function(O){if(O=_.q(O,_.qqd)){var x,e=!((x=this.videoSecondaryInfoRenderer)==null||!x.attributedDescription);O.isEmpty||!O.description&&!O.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):O.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",O.attributedDescription):O.description&&(e?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Ps(O.description)):this.set("videoSecondaryInfoRenderer.description",O.description))}};
_.b.onYtDarkModeToggledAction=function(O){this.isDark=O};
_.b.registerPanel=function(){if(!_.t("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var O=_.t("web_watch_imax_theater_mode")&&this.isTheaterMode;O=_.t("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||O;var x=_.GG().resolve(_.Bm);x&&!O&&x.registerPanel("engagement-panel-structured-description",this)}};
_.b.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.b.parseColorSamplingData=function(){var O;if(_.t("web_delhi_colorful_sd")&&((O=this.structuredDescriptionContentRenderer)==null?0:O.items)&&(O=this.structuredDescriptionContentRenderer.items.find(function(C){return!!_.q(C,HJ)}))){var x,e;
this.hoverColor={lightTheme:(x=_.q(O,HJ))==null?void 0:x.lightThemeColorPalette,darkTheme:(e=_.q(O,HJ))==null?void 0:e.darkThemeColorPalette};var l;this.hoverText=(l=_.q(O,HJ))==null?void 0:l.colorSampledDescriptionBodyText}};
_.b.updateHoverColor=function(){if(_.t("web_delhi_colorful_sd")){var O=this.hoverColor,x={},e;O=(e=this.isDark?O==null?void 0:O.darkTheme:O==null?void 0:O.lightTheme)!=null?e:{};e=_.T(TaI);for(var l=e.next();!l.done;l=e.next()){l=l.value;var C=O[l];x["--yt-saturated-"+_.Qo(l)]=C?_.aF(C):"initial"}_.lH(this.hostElement,x)}};
_.b.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.b.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.b.showPanel=function(O){this.expandDescription();var x=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;x.resize();var e,l=O==null?void 0:(e=O.sectionListEngagementPanelExtras)==null?void 0:e.scrollToItemSectionIdentifier;l?_.vn.addJob(function(){x==null||x.scrollToSection(l)},8):this.scrollToTopOfContainer()};
_.b.isVisible=function(){return!this.descriptionCollapsed};
_.b.getReloadContinuation=function(){};
_.b.hidePanel=function(){};
_.b.updatePanel=function(){};
_.Dy.Object.defineProperties(ao.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var O;return _.t("web_delhi_colorful_sd")&&(O=this.structuredDescriptionContentRenderer)!=null&&O.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(x){return!_.q(x,HJ)&&!_.q(x,znU)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.structuredDescriptionContentRendererComputed)!=null&&O.items){var x;O=_.T((x=this.structuredDescriptionContentRendererComputed)==null?void 0:x.items);for(x=O.next();!x.done;x=O.next())if(x=_.q(x.value,_.DnL))return x}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.videoPrimaryInfoRenderer)==null?0:O.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!!((O=this.videoSecondaryInfoRenderer)==null?0:(x=O.owner)==null?0:(e=x.videoOwnerRenderer)==null?0:e.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var O,x;if((O=this.videoSecondaryInfoRenderer)==null?0:(x=O.attributedDescription)==null?0:x.content){var e,l;return(l=this.stripAttributedDescription((e=this.videoSecondaryInfoRenderer)==null?void 0:e.attributedDescription))!=null?l:{runs:[]}}}if(_.t("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var C,Q,L,k;return(k=(L=(C=this.videoSecondaryInfoRenderer)==
null?void 0:C.description)!=null?L:(Q=this.videoSecondaryInfoRenderer)==null?void 0:Q.attributedDescription)!=null?k:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.videoSecondaryInfoRenderer)==null?void 0:O.headerRuns)!=null?x:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.commentsEntryPointHeaderRenderer)==null||!O.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.videoMetadataCarousel)==null||!O.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.yF("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var O,x,e=Object.assign({},(O=this.videoSecondaryInfoRenderer)==null?void 0:(x=O.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer);if(e&&e.rows&&e.collapsedItemCount!==void 0&&!(e.rows.length<=e.collapsedItemCount))return e.rows=e.rows.slice(e.collapsedItemCount),e.collapsedItemCount=0,e}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var O,x,e=Object.assign({},(O=this.videoSecondaryInfoRenderer)==null?void 0:(x=O.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer);if(e&&e.rows&&e.collapsedItemCount!==void 0)return e.rows=e.rows.slice(0,e.collapsedItemCount),e.collapsedItemCount=e.rows.length,e}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!((O=this.structuredDescriptionContentRendererComputed)==null?0:(x=O.items)==null?0:x.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 O;return(O=this.videoSecondaryInfoRenderer)==null?void 0:O.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.videoSecondaryInfoRenderer)==null?0:(x=O.owner)==null?0:(e=x.videoOwnerRenderer)==null?0:e.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;return!!((O=this.videoPrimaryInfoRenderer)==null?0:(x=O.videoActions)==null?0:(e=x.menuRenderer)==null?0:(l=e.flexibleItems)==null?0:l.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Hs(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Hs(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var O=this;if(_.t("web_title_hashtag_grey_delinkified")){var x,e=_.HX.unsafeClone((x=this.videoPrimaryInfoRenderer)==null?void 0:x.title);(x=e==null?void 0:e.runs)&&x.forEach(function(l){if(l==null?0:l.navigationEndpoint)l.textColor=4284506208,O.isDark&&(l.textColor=4289374890)});
return e}return(e=this.videoPrimaryInfoRenderer)==null?void 0:e.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.t("web_title_hashtag_black_delinkified")||_.t("web_title_hashtag_grey_delinkified")}}});
ao.prototype.updateHoverColor=ao.prototype.updateHoverColor;ao.prototype.parseColorSamplingData=ao.prototype.parseColorSamplingData;ao.prototype.resetDescriptionState=ao.prototype.resetDescriptionState;ao.prototype.registerPanel=ao.prototype.registerPanel;ao.prototype.onYtExpanderLessTapped=ao.prototype.onYtExpanderLessTapped;ao.prototype.onYtExpanderMoreTapped=ao.prototype.onYtExpanderMoreTapped;ao.prototype.onRenderStamperFinished=ao.prototype.onRenderStamperFinished;
ao.prototype.onYtTextInlineExpanderExpandedChanged=ao.prototype.onYtTextInlineExpanderExpandedChanged;ao.prototype.onYtTextInlineExpanderCollapseClicked=ao.prototype.onYtTextInlineExpanderCollapseClicked;ao.prototype.onYtTextInlineExpanderExpandClicked=ao.prototype.onYtTextInlineExpanderExpandClicked;ao.prototype.moveActionsElement=ao.prototype.moveActionsElement;ao.prototype.updateShouldForceIconOnly=ao.prototype.updateShouldForceIconOnly;ao.prototype.updateTopLevelIconsOnly=ao.prototype.updateTopLevelIconsOnly;
ao.prototype.structuredDescriptionContentRendererChanged=ao.prototype.structuredDescriptionContentRendererChanged;ao.prototype.videoSecondaryInfoRendererChanged=ao.prototype.videoSecondaryInfoRendererChanged;ao.prototype.videoPrimaryInfoRendererChanged=ao.prototype.videoPrimaryInfoRendererChanged;ao.prototype.maybeUpdateActionsOnSeparateLine=ao.prototype.maybeUpdateActionsOnSeparateLine;ao.prototype.updateOwnerAndDescriptionPosition=ao.prototype.updateOwnerAndDescriptionPosition;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ao.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],ao.prototype,"ytdReduxBehavior",void 0);_.B([_.kX("#above-the-fold"),_.v("design:type",HTMLElement)],ao.prototype,"aboveTheFoldContainer",void 0);_.B([_.kX("#menu ytd-menu-renderer"),_.v("design:type",Object)],ao.prototype,"menu",void 0);_.B([_.kX("#description-inline-expander"),_.v("design:type",Object)],ao.prototype,"descriptionInlineExpander",void 0);
_.B([_.kX("#faded-structured-description"),_.v("design:type",Object)],ao.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.B([_.kX("#structured-description"),_.v("design:type",Object)],ao.prototype,"structuredDescriptionContentRendererElement",void 0);_.B([_.kX("#title"),_.v("design:type",HTMLElement)],ao.prototype,"titleElement",void 0);_.B([_.kX("#description"),_.v("design:type",HTMLElement)],ao.prototype,"descriptionElement",void 0);
_.B([_.kX("#description-interaction"),_.v("design:type",Object)],ao.prototype,"descriptionInteraction",void 0);_.B([_.kX("#owner"),_.v("design:type",HTMLElement)],ao.prototype,"ownerElement",void 0);_.B([_.kX("#top-row"),_.v("design:type",HTMLElement)],ao.prototype,"topRowElement",void 0);_.B([_.kX("#bottom-row"),_.v("design:type",HTMLElement)],ao.prototype,"bottomRowElement",void 0);_.B([_.kX("#actions"),_.v("design:type",HTMLElement)],ao.prototype,"actionsElement",void 0);
_.B([_.kX("#bottom-actions"),_.v("design:type",HTMLElement)],ao.prototype,"bottomActionsElement",void 0);_.B([_.kX("#ytd-watch-info-text"),_.v("design:type",Object)],ao.prototype,"watchInfoTextElement",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"videoSecondaryInfoRenderer",void 0);
_.B([_.R(),_.v("design:type",Object)],ao.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"videoMetadataCarousel",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.p("structuredDescriptionContentRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"structuredDescriptionContentRendererComputed",null);
_.B([_.R(),_.v("design:type",Object)],ao.prototype,"videoSummary",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"merchShelf",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"infoPanelBelowMetadata",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"hoverColor",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"hoverText",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"isHovering",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"enableColorSampling",void 0);_.B([_.p("structuredDescriptionContentRendererComputed"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"productShelf",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"metadataBadgesInDescription",void 0);_.B([_.p("videoPrimaryInfoRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"shouldHideBadges",null);
_.B([_.p("productShelf","descriptionCollapsed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"shouldShowProductShelf",null);_.B([_.R(),_.v("design:type",Boolean)],ao.prototype,"isWatchFlexy",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"descriptionCollapsed",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ao.prototype,"useFadedScrimDescription",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"skinnyMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("videoSecondaryInfoRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"largerItemWrap",null);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"playlist",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"clarifyBox",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"playerAds",void 0);
_.B([_.R(),_.v("design:type",Boolean)],ao.prototype,"isDark",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ao.prototype,"actionsOnSeparateLine",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"disableVideoOwnerOnTap",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"swatcherooDelayLoad",void 0);_.B([_.R(),_.v("design:type",Boolean)],ao.prototype,"suppressTopLevelMetadataRows",void 0);
_.B([_.R(),_.v("design:type",Object)],ao.prototype,"primaryMenuWidth",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"videoId",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"titleHeadlineXs",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"titleHeadlineS",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"titleHeadlineM",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"titleHashtagBlackLinkified",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"titleHashtagGreyLinkified",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.B([_.R(),_.v("design:type",Object)],ao.prototype,"shouldForceIconOnly",void 0);
_.B([_.G1("skinnyMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"updateOwnerAndDescriptionPosition",null);_.B([_.G1("skinnyMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.B([_.p("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"descriptionText",null);_.B([_.p("videoSecondaryInfoRenderer.headerRuns"),_.v("design:type",Array),_.v("design:paramtypes",[])],ao.prototype,"headerRuns",null);
_.B([_.R({value:!1}),_.p("commentsEntryPointHeaderRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"hasTeaser",null);_.B([_.R({value:!1,reflectToAttribute:!0}),_.p("videoMetadataCarousel"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"hasTeaserCarousel",null);_.B([_.R({value:3}),_.p("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"descriptionMaxLines",null);
_.B([_.p("videoSecondaryInfoRenderer.metadataRowContainer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"collapsibleMetadataRows",null);_.B([_.p("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"alwaysVisibleMetadataRows",null);
_.B([_.p("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"hasInlineStructuredDescription",null);_.B([_.p("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"showInlineStructuredDescription",null);
_.B([_.p("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"descriptionExpandCommand",null);_.B([_.p("videoSecondaryInfoRenderer.owner"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"videoOwnerCommand",null);_.B([_.R({reflectToAttribute:!0}),_.p("videoPrimaryInfoRenderer.videoActions"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"flexMenuEnabled",null);
_.B([_.R({selector:_.VI,reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"isFullscreen",void 0);_.B([_.R({selector:_.I2,reflectToAttribute:!0}),_.v("design:type",Object)],ao.prototype,"isTheaterMode",void 0);_.B([_.p("descriptionText","useFadedScrimDescription"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"showAttributedStringDescription",null);
_.B([_.p("descriptionText","useFadedScrimDescription"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"showFormattedStringDescription",null);_.B([_.p("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ao.prototype,"showFadedStructuredDescription",null);
_.B([_.G1("videoPrimaryInfoRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"videoPrimaryInfoRendererChanged",null);_.B([_.p("videoPrimaryInfoRenderer.title"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"videoTitle",null);_.B([_.p("videoPrimaryInfoRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ao.prototype,"noEndpoints",null);
_.B([_.G1("videoSecondaryInfoRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"videoSecondaryInfoRendererChanged",null);_.B([_.T1("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"structuredDescriptionContentRendererChanged",null);
_.B([_.T1("skinnyMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"updateTopLevelIconsOnly",null);_.B([_.T1("skinnyMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"updateShouldForceIconOnly",null);_.B([_.T1("skinnyMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"moveActionsElement",null);
_.B([_.bH("yt-text-inline-expander-expand-clicked"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"onYtTextInlineExpanderExpandClicked",null);_.B([_.bH("yt-text-inline-expander-collapse-clicked"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.B([_.bH("yt-text-inline-expander-expanded-changed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],ao.prototype,"onRenderStamperFinished",null);
_.B([_.bH("yt-expander-more-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"onYtExpanderMoreTapped",null);_.B([_.bH("yt-expander-less-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"onYtExpanderLessTapped",null);
_.B([_.T1("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"registerPanel",null);_.B([_.T1("videoSecondaryInfoRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"resetDescriptionState",null);
_.B([_.T1("structuredDescriptionContentRenderer"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"parseColorSamplingData",null);_.B([_.T1("hoverColor","isDark"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ao.prototype,"updateHoverColor",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-watch-metadata"})],ao);
_.n(ao,"ytd-watch-metadata",function(){if(bwS!==void 0)return bwS;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return bwS=O},{mode:2});_.I9y=function(O){_.h0.call(this);this.JSC$23158_watchApi=O;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;yac(this);ZwH(this);EgH(this);t2a(this);qZU(this);PDT(this);caU(this)};
_.c(_.I9y,_.h0);var EgH=function(O){var x=function(){_.t("kevlar_is_pupi_enabled")||mk(O)};
O.JSC$23158_watchApi.getRoot().addEventListener("yt-player-updated",x);O.addOnDisposeCallback(function(){O.JSC$23158_watchApi.getRoot().removeEventListener("yt-player-updated",x)})},qZU=function(O){if(_.t("kevlar_endscreen_auto_theater_mode")){var x=O.JSC$23158_watchApi.subscribeToActiveChanged(function(){V2I(O)},!1);
O.addOnDisposeCallback(x)}},yac=function(O){var x,e,l,C,Q;
_.A(function(L){if(L.nextAddress==1)return L.yield(O.JSC$23158_watchApi.playerApi,2);x=L.yieldResult;e=function(k){k=!!k;pDc(O)&&(k=k?2:1,_.Ax.getInstance().setState(k,!0,!1))};
l=function(k){k&&_.j9S(_.u9().getState())&&(_.Sh(O.JSC$23158_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),O.temporaryTheaterMode=!0)};
C=function(k){_.t("kevlar_player_update_autonav_on_new_data")&&k.type==="newdata"&&(_.t("kevlar_is_pupi_enabled")||mk(O))};
Q=function(k){O.onPlayerStateChange(k)};
_.t("kevlar_endscreen_auto_theater_mode")&&x.addEventListener("onAutonavCancelled",l);x.addEventListener("onAutonavChangeRequest",e);x.addEventListener("onVideoDataChange",C);x.addEventListener("onStateChange",Q);O.addOnDisposeCallback(function(){x.removeEventListener("onAutonavChangeRequest",e);x.removeEventListener("onVideoDataChange",C);x.removeEventListener("onStateChange",Q);_.t("kevlar_endscreen_auto_theater_mode")&&x.removeEventListener("onAutonavCancelled",l)});
_.Ra(L)})},ZwH=function(O){O.JSC$23158_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){O.autonavCancelledBySignal=!0;
_.t("kevlar_is_pupi_enabled")||mk(O)});
O.JSC$23158_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(x,e,l){e&&mk(O,l)});
O.JSC$23158_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){pDc(O)&&_.Ax.getInstance().setState(2,!0,!0)});
O.JSC$23158_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){pDc(O)&&_.Ax.getInstance().setState(1,!0,!0)});
O.addOnDisposeCallback(function(){O.JSC$23158_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");O.JSC$23158_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");O.JSC$23158_watchApi.unregisterActionHandler("yt-enable-autoplay-command");O.JSC$23158_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},t2a=function(O){var x=O.JSC$23158_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){caU(O)}),e=O.JSC$23158_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){PDT(O)});
O.addOnDisposeCallback(function(){O.JSC$23158_watchApi.unsubscribeByKey(x);O.JSC$23158_watchApi.unsubscribeByKey(e)})},caU=function(O){O.autonavCancelledBySignal=!1;
_.t("kevlar_is_pupi_enabled")||mk(O)},PDT=function(O){var x=O.JSC$23158_watchApi.getWatchNextResponse(),e,l;
var C=(x=(l=_.q(x==null?void 0:(C=x.playerOverlays)==null?void 0:(e=C.playerOverlayRenderer)==null?void 0:e.autonavToggle,_.ILk))==null?void 0:l.enabled)?2:1;_.t("kevlar_is_pupi_enabled")?_.Ax.getInstance().setState(C,!1,!1):mk(O);_.t("web_persist_server_autonav_state_on_client")&&typeof x==="boolean"&&_.AE$(C===2)},pDc=function(O){if(O.autonavCancelledBySignal)return!1;
var x,e,l,C;return!!((x=O.JSC$23158_watchApi.getWatchNextResponse())==null?0:(e=x.contents)==null?0:(l=e.twoColumnWatchNextResults)==null?0:(C=l.autoplay)==null?0:C.autoplay)};
_.I9y.prototype.onPlayerStateChange=function(O){if(O===0){O=!_.Ax.getInstance().isAutoplaySetExplicitly();var x=this.JSC$23158_watchApi.getWatchNextResponse(),e,l,C,Q;x=_.q(x==null?void 0:(e=x.contents)==null?void 0:(l=e.twoColumnWatchNextResults)==null?void 0:(C=l.autoplay)==null?void 0:(Q=C.autoplay)==null?void 0:Q.autoplayExplicitChoiceDialogRenderer,_.YJp);pDc(this)&&O&&x&&_.lV.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:x},popupType:"DIALOG"}})}else V2I(this)};
var V2I=function(O){O.temporaryTheaterMode&&(O.temporaryTheaterMode=!1,_.Sh(O.JSC$23158_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},mk=function(O,x){x=x===void 0?!1:x;
var e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23158_watchApi.playerApi,2);e=l.yieldResult;pDc(O)?e.setAutonavState(_.Ax.getInstance().getState(),x):e.setAutonavState(1,x);_.Ra(l)})};var RRk={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"};_.a9k=function(O){_.h0.call(this);var x=this;this.JSC$23163_watchApi=O;var e=this.JSC$23163_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){U3U(x)});
this.addOnDisposeCallback(function(){x.JSC$23163_watchApi.unsubscribeByKey(e)});
U3U(this)};
_.c(_.a9k,_.h0);var U3U=function(O){var x=O.JSC$23163_watchApi.getPlayerResponse(),e=O.JSC$23163_watchApi.getWatchNextResponse();if(!_.U7L(x==null?void 0:x.playabilityStatus,e==null?void 0:e.playerOverlays)){var l;var C=x==null?void 0:(l=x.playabilityStatus)==null?void 0:l.errorScreen}O.JSC$23163_watchApi.provideRenderingData("ERROR_SCREEN",C)};var m3h=_.K(function(O){var x=O.data;O=_.t("web_watch_video_details_hide_subtitle");var e=_.t("web_watch_video_details_single_line_title"),l=_.lk(function(){var k=x().onTap;k&&_.GG().resolve(_.Xc).resolveCommand(k)}),C={},Q={},L={};
return _.D("yt-player-overlay-video-details-renderer",{class:_.xz("ytPlayerOverlayVideoDetailsRendererHost",(C.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.t("web_watch_video_details_transparent_background"),C)),"on:click":l,role:"button"},_.D("h2",{class:_.xz("ytPlayerOverlayVideoDetailsRendererTitle",(Q.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return e},Q))},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:_.xz("ytPlayerOverlayVideoDetailsRendererSubtitle",
(L.ytPlayerOverlayVideoDetailsRendererHideSubtitle=O,L))},_.D(_.TT,{text:function(){return x().subtitle}})))},"Jn");var s$={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},syk=_.K(function(O){var x=O.data;var e=_.Dl(_.VI),l=_.t("web_watch_action_bar_resize_buttons"),C=_.t("web_watch_video_action_dsdvb"),Q=_.t("delhi_modern_web_player_icons")&&!_.t("enable_web_delhi_icons");O=_.t("delhi_modern_web_player_disable_frosted_glass");var L=_.t("delhi_modern_web_player_compact_video_actions_controls"),
k=_.t("web_player_quick_action_buttons_icon_only"),M=function(){var X=l&&!e(),y={};L?y.size="S":X&&(y.size="M");k&&(y.iconPosition="icon-only");if(Object.keys(y).length!==0)return y},G={};
return _.D("yt-player-quick-action-buttons",{class:_.xz("ytPlayerQuickActionButtonsHost",(G.ytPlayerQuickActionButtonsHostCompactControls=function(){return!e()||L},G.ytPlayerQuickActionButtonsHostDisableBackdropFilter=O,G))},_.D(_.HE,{each:function(){var X=x();
if(Q){X=JSON.parse(JSON.stringify(X));for(var y=_.T(X),Z=y.next();!Z.done;Z=y.next()){var E=Z.value,P=void 0;Z=_.q((P=_.q(E,_.Yo))==null?void 0:P.toggleButtonViewModel,_.iN);var U=void 0;P=_.q((U=_.q(E,_.uN))==null?void 0:U.toggleButtonViewModel,_.iN);U=_.q(E,_.gf);E=_.q(E,_.iN);if(Z)P=_.q(Z.defaultButtonViewModel,_.gf),Z=_.q(Z.toggledButtonViewModel,_.gf),P&&P.iconName&&(P.iconName=s$[P.iconName]),Z&&Z.iconName&&(Z.iconName=s$[Z.iconName]);else if(P)Z=_.q(P.defaultButtonViewModel,_.gf),P=_.q(P.toggledButtonViewModel,
_.gf),Z&&Z.iconName&&(Z.iconName=s$[Z.iconName]),P&&P.iconName&&(P.iconName=s$[P.iconName]);else if(U)U.iconName&&(U.iconName=s$[U.iconName]);else if(E){Z=_.q(E.defaultButtonViewModel,_.gf);P=_.q(E.toggledButtonViewModel,_.gf);E=void 0;if((E=Z)==null?0:E.iconName)Z.iconName=s$[Z.iconName];Z=void 0;if((Z=P)==null?0:Z.iconName)P.iconName=s$[P.iconName]}}}C&&(X=c6w(X));return X}},function(X){return _.D(_.MR,{data:function(){return X}},{buttonViewModel:function(y){return _.D(_.RV,{data:y.data,
buttonOverrides:M})},
likeButtonViewModel:function(y){return _.D(_.iZ,{data:y.data,buttonShapeOverrideables:M})},
dislikeButtonViewModel:function(y){return _.D(_.$w,{data:y.data,buttonShapeOverrideables:M})},
toggleButtonViewModel:function(y){return _.D(_.Jc,{data:y.data,buttonShapeOverrides:M})}})}))},"Kn");_.hRc=function(O){_.h0.call(this);var x=this;this.JSC$23167_watchApi=O;O=_.T(_.Iw({},void 0,"n9wCVe"));this.quickActionsViewModel=O.next().value;this.setQuickActionsViewModel=O.next().value;O=_.T(_.Iw({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=O.next().value;this.setPlayerOverlayVideoDetailsRenderer=O.next().value;var e=this.JSC$23167_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W17(x)});
this.addOnDisposeCallback(function(){x.JSC$23167_watchApi.unsubscribeByKey(e)});
W17(this)};
_.c(_.hRc,_.h0);
var W17=function(O){var x,e,l,C,Q,L,k,M,G,X,y,Z,E,P;_.A(function(U){if(U.nextAddress==1)return U.yield(O.JSC$23167_watchApi.playerApi,2);x=U.yieldResult;e=O.JSC$23167_watchApi.getWatchNextResponse();Q=(l=e)==null?void 0:(C=l.playerOverlays)==null?void 0:C.playerOverlayRenderer;k=_.q((L=Q)==null?void 0:L.fullscreenQuickActionsBar,_.P4L);(G=(M=O).setQuickActionsViewModel)==null||G.call(M,k||{});k&&zRy(O,x);Z=(X=Q)==null?void 0:(y=X.videoDetails)==null?void 0:y.playerOverlayVideoDetailsRenderer;(P=(E=
O).setPlayerOverlayVideoDetailsRenderer)==null||P.call(E,Z||{});Z&&raE(O,x);_.Ra(U)})},zRy=function(O,x){if(!O.quickActionButtonsContainer)if(x.setFullscreenQuickActions){O.quickActionButtonsContainer=document.createElement("div");
x.setFullscreenQuickActions(O.quickActionButtonsContainer);var e=function(){return O.quickActionsViewModel().quickActionButtons||[]},l=_.nO(O.quickActionButtonsContainer,function(){return _.D(syk,{data:e})},"Ln");
O.addOnDisposeCallback(function(){x.setFullscreenQuickActions(void 0);l()})}else _.ft(new _.ry("setFullscreenQuickActions not defined",{playerApi:Object.keys(x),
isReady:x.isReady(),appState:x.getAppState()}))},raE=function(O,x){if(!O.playerOverlayVideoDetailsRendererContainer)if(x.setPlayerOverlayVideoDetailsRenderer){O.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
x.setPlayerOverlayVideoDetailsRenderer(O.playerOverlayVideoDetailsRendererContainer);var e=_.nO(O.playerOverlayVideoDetailsRendererContainer,function(){return _.D(m3h,{data:O.playerOverlayVideoDetailsRenderer})},"Mn");
O.addOnDisposeCallback(function(){x.setPlayerOverlayVideoDetailsRenderer(void 0);e()})}else _.ft(new _.ry("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(x),
isReady:x.isReady(),appState:x.getAppState()}))};_.W6=function(O){_.h0.call(this);var x=this;this.JSC$23173_watchApi=O;this.JSC$23173_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;O=_.mw(_.u9(),_.VI,function(e){x.onFullscreenChanged(e)});
this.addOnDisposeCallback(O);O=_.mw(_.u9(),_.WJ,function(e){x.onWatchScroll(e)});
this.addOnDisposeCallback(O);_.t("kevlar_watch_while_v2")&&(O=_.mw(_.u9(),_.P1,function(e){HwH(x,e)}),this.addOnDisposeCallback(O));
K1E(this);d3c(this);nga();this.onWatchScroll(_.WJ(_.u9().getState()));_.SS("START_IN_FULL_WINDOW_MODE")&&this.JSC$23173_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.c(_.W6,_.h0);var K1E=function(O){O.JSC$23173_watchApi.registerActionHandler("yt-fullscreen-change-action",function(x){var e=O.JSC$23173_watchApi.isActive();x&&!e||_.u9().dispatch(_.j6({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!x}}))});
O.addOnDisposeCallback(function(){O.JSC$23173_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},d3c=function(O){var x,e;
_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23173_watchApi.playerApi,2);x=l.yieldResult;e=function(){O.onFullerscreenEduClicked()};
x.addEventListener("onFullerscreenEduClicked",e);O.addOnDisposeCallback(function(){x.removeEventListener("onFullerscreenEduClicked",e)});
_.Ra(l)})};
_.W6.prototype.onFullscreenChanged=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return x.isFullscreen=!!_.Bq(),l.yield(x.JSC$23173_watchApi.playerApi,2);e=l.yieldResult;x.JSC$23173_miniplayerActive||e.setFauxFullscreen(x.isFullscreen);if(O&&(x.JSC$23173_watchApi.focusOnPlayer(),!x.fullerscreenEduButtonShownThisPlayback)){x.fullerscreenEduButtonShownThisPlayback=!0;var C=_.tU("yt-fullerscreen-edu-button-shown-count")||0;_.EA("yt-fullerscreen-edu-button-shown-count",C+1,31536E3);
x.updateFullerscreenEduButtonSubtleModeState()}_.Ra(l)})};
var HwH=function(O,x){var e;_.A(function(l){if(l.nextAddress==1)return O.JSC$23173_miniplayerActive=x,l.yield(O.JSC$23173_watchApi.playerApi,2);e=l.yieldResult;e.setFauxFullscreen(!O.JSC$23173_miniplayerActive&&O.isFullscreen);_.Ra(l)})};
_.W6.prototype.onWatchScroll=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1)return _.t("external_fullscreen_with_edu")?C.yield(x.JSC$23173_watchApi.playerApi,2):C.return();e=C.yieldResult;l=O<=0;x.shouldShowFullerscreenEdu!==l&&(x.shouldShowFullerscreenEdu=l,e.updateFullerscreenEduButtonVisibility(!x.shouldShowFullerscreenEdu));_.Ra(C)})};
_.W6.prototype.onFullerscreenEduClicked=function(){this.JSC$23173_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var O=_.tU("yt-fullerscreen-edu-button-click-count")||0;_.EA("yt-fullerscreen-edu-button-click-count",O+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.W6.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var O=this,x,e,l,C,Q,L;return _.A(function(k){if(k.nextAddress==1)return x=_.tU("yt-fullerscreen-edu-button-click-count")||0,e=_.tU("yt-fullerscreen-edu-button-shown-count")||0,l=_.yF("external_fullscreen_button_click_threshold"),C=_.yF("external_fullscreen_button_shown_threshold"),Q=x>=l||e>=C,k.yield(O.JSC$23173_watchApi.playerApi,2);L=k.yieldResult;L.updateFullerscreenEduButtonSubtleModeState(Q);_.Ra(k)})};
_.W6.prototype.disposeInternal=function(){_.h0.prototype.disposeInternal.call(this);var O=_.Bq();_.t("kevlar_exit_fullscreen_leaving_watch")&&O&&_.vq(O)};
var nga=function(){if(_.t("web_watch_add_viewport_meta_tag")){var O=document.querySelector("meta[name=viewport]"),x=document.head;x&&!O&&(O=document.createElement("meta"),O.name="viewport",O.content="width=device-width, initial-scale=1.0, viewport-fit=cover",x.appendChild(O))}};_.YZs=function(O){_.h0.call(this);var x=this;this.JSC$23176_watchApi=O;this.jobId=0;this.pendingRequestId=void 0;var e=this.JSC$23176_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){u6o(x)});
this.addOnDisposeCallback(function(){x.JSC$23176_watchApi.unsubscribeByKey(e)});
u6o(this)};
_.c(_.YZs,_.h0);var BaT=function(O){_.vn.cancelJob(O.jobId);O.pendingRequestId=void 0},u6o=function(O){BaT(O);
var x=Ieh(O.JSC$23176_watchApi.getWatchNextResponse());if(x){var e=250,l,C=(l=_.q(x,_.V73))==null?void 0:l.initialDelayMs;_.t("web_watch_updated_metadata_server_initial_delay")&&C&&(e=C);O.jobId=_.vn.addLowPriorityJob(function(){return O.fetchUpdatedMetadata(x)},e)}};
_.YZs.prototype.fetchUpdatedMetadata=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z;return _.A(function(r){switch(r.nextAddress){case 1:x&&(l={continuation:x});if(!_.t("web_get_updated_metadata_fantasy_panel_continuation_params")){r.jumpTo(2);break}C=_.GG().resolve(_.Bm);Q="PAsports_fantasy";return r.yield(C.isVisible(Q,!0),3);case 3:r.yieldResult&&(G=(k=(L=C).getUpdatePanelContinuationData)==null?void 0:(M=k.call(L,Q))==null?void 0:M.updatePanelContinuationRequest)&&(l||(l={}),l.clientParams=
{panelContinuationParams:{panelContinuation:G}});case 2:X=_.GG().resolve(_.IF);if(!X)return _.BH(Error("Wo")),r.return();y={};e.pendingRequestId=y;return r.yield(_.z7(X,O,l),4);case 4:Z=r.yieldResult;if(y!==e.pendingRequestId)return r.return();U=(E=Z)==null?void 0:(P=E.continuation)==null?void 0:P.timedContinuationData;((W=U)==null?0:W.continuation)&&((z=U)==null?0:z.timeoutMs)&&(e.jobId=_.vn.addLowPriorityJob(function(){return e.fetchUpdatedMetadata(O,U.continuation)},U.timeoutMs));
_.Ra(r)}})};
_.YZs.prototype.disposeInternal=function(){_.h0.prototype.disposeInternal.call(this);BaT(this)};var vgh=_.K(function(O){var x=_.lk(function(){var l=O.data().videoId;if(O.active())l=_.fZ(l),_.GG().resolve(_.Xc).resolveCommand(l);else{var C=O.playerApi(),Q=C.getAvailableAudioTracks(),L,k,M=(L=O.sourceVideoConfig().audioTracks)==null?void 0:(k=L.find(function(G){return G.isDefaultForSource}))==null?void 0:k.id;
if(Q=Q.find(function(G){return G.getLanguageInfo().getId()===M}))C.setAudioTrack(Q,!0),C.setCompositeParam({activeVideoId:l}),O.setActiveSourceId(l)}}),e={};
return _.D("ytw-composite-source-video-overlay",{class:_.xz("ytwCompositeSourceVideoOverlayHost",(e.ytwCompositeSourceVideoOverlayActive=O.active,e.ytwCompositeSourceVideoOverlayInteracting=O.interacting,e)),style:_.T7({left:function(){var l;return((l=O.data().topLeftCornerX)!=null?l:0)*100+"%"},
top:function(){var l;return((l=O.data().topLeftCornerY)!=null?l:0)*100+"%"},
width:function(){var l;return((l=O.data().width)!=null?l:0)*100+"%"},
height:function(){var l;return((l=O.data().height)!=null?l:0)*100+"%"}}),
"on:click":x},_.D("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Nn");var f97=_.K(function(O){var x=_.T(_.bk(function(){var L,k=(L=O.data().sources)==null?void 0:L.find(function(M){return M.isActive});
if(k)return k.videoId})),e=x.next().value,l=x.next().value;
x=_.T(_.Iw(!1,void 0,"yNRzwd"));var C=x.next().value,Q=x.next().value;return _.D("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.lk(function(){Q(!0)}),
"on:mouseout":_.lk(function(){Q(!1)})},_.D(_.F,{cond:function(){return O.data().sources},
then:function(L){return _.D(_.HE,{each:L},function(k){return _.D(vgh,{data:k,active:function(){return k.videoId===e()},
setActiveSourceId:l,interacting:C,playerApi:O.playerApi,sourceVideoConfig:function(){return VjU(O.compositeVideoConfig(),k.videoId)}})})}}))},"On");_.SZh=function(O){_.h0.call(this);this.JSC$23192_watchApi=O;O=_.T(_.Iw({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=O.next().value;this.setCompositeVideoOverlayRenderer=O.next().value;O=_.T(_.Iw({},void 0,"OlaJpc"));this.compositeVideoConfig=O.next().value;this.setCompositeVideoConfig=O.next().value;Ja7(this);wDT(this)};
_.c(_.SZh,_.h0);var Ja7=function(O){var x=O.JSC$23192_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){wDT(O)});
O.addOnDisposeCallback(function(){O.JSC$23192_watchApi.unsubscribeByKey(x)})},jyH=function(O){var x;
return _.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$23192_watchApi.playerApi,2);x=e.yieldResult;x.setCompositeVideoOverlayRendererComponent(O.container);_.Ra(e)})},NaH=function(O){var x;
return _.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$23192_watchApi.playerApi,2);x=e.yieldResult;x.setCompositeVideoOverlayRendererComponent(void 0);_.Ra(e)})},ggs=function(O){var x,e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23192_watchApi.playerApi,2);x=l.yieldResult;O.container=document.createElement("div");e=_.nO(O.container,function(){return _.D(f97,{data:O.compositeVideoOverlayRenderer,compositeVideoConfig:O.compositeVideoConfig,playerApi:x})},"Pn");
O.addOnDisposeCallback(e);_.Ra(l)})},wDT=function(O){var x,e,l,C,Q,L,k,M;
_.A(function(G){return G.nextAddress==1?(x=O.JSC$23192_watchApi.getPlayerResponse(),Q=_.q((e=x)==null?void 0:(l=e.overlay)==null?void 0:(C=l.playerControlsOverlayRenderer)==null?void 0:C.compositeVideoOverlay,tSy),M=(L=x)==null?void 0:(k=L.playerConfig)==null?void 0:k.compositeVideoConfig,Q&&O.setCompositeVideoOverlayRenderer(Q),M&&O.setCompositeVideoConfig(M),Q&&M?O.container?G.jumpTo(6):G.yield(ggs(O),6):$3I(O)?G.yield(NaH(O),0):G.jumpTo(0)):$3I(O)?G.jumpTo(0):G.yield(jyH(O),0)})},$3I=function(O){var x;
return!((x=O.container)==null||!x.parentElement)};
_.SZh.prototype.disposeInternal=function(){$3I(this)&&NaH(this);_.h0.prototype.disposeInternal.call(this)};_.lyy=function(O){_.h0.call(this);var x=this;this.JSC$23198_watchApi=O;var e=this.JSC$23198_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var l=x.JSC$23198_watchApi.getPlayerResponse();if(l){var C,Q;if(l=_.q((C=l.endscreen)==null?void 0:(Q=C.endscreenRenderer)==null?void 0:Q.hideButton,_.iN)){var L;(L=x.setEndscreenHideButton)==null||L.call(x,l);iwo(x)}}});
this.addOnDisposeCallback(function(){x.JSC$23198_watchApi.unsubscribeByKey(e)});
O=_.T(_.Iw({},void 0,"ER3tqb"));this.endscreenHideButton=O.next().value;this.setEndscreenHideButton=O.next().value;OGI(this);xyS(this);e6T(this)};
_.c(_.lyy,_.h0);
var iwo=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return O.creatorEndscreenHideButtonContainer?l.return():l.yield(O.JSC$23198_watchApi.playerApi,2);x=l.yieldResult;O.creatorEndscreenHideButtonContainer=document.createElement("div");_.Ce(O.creatorEndscreenHideButtonContainer,!1);x.setCreatorEndscreenHideButton(O.creatorEndscreenHideButtonContainer);e=_.nO(O.creatorEndscreenHideButtonContainer,function(){return _.D(_.Jc,{data:O.endscreenHideButton,useOutlinedIcon:!0})},"Qn");
O.addOnDisposeCallback(function(){e();var C;(C=x)==null||C.setCreatorEndscreenHideButton(void 0)});
_.Ra(l)})},OGI=function(O){var x,e;
_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23198_watchApi.playerApi,2);x=l.yieldResult;e=function(){O.creatorEndscreenHideButtonContainer&&_.Ce(O.creatorEndscreenHideButtonContainer,!0)};
x.addEventListener("endscreenelementshown",e);O.addOnDisposeCallback(function(){var C;(C=x)==null||C.removeEventListener("endscreenelementshown",e)});
_.Ra(l)})},xyS=function(O){var x=function(){O.creatorEndscreenHideButtonContainer&&_.Ce(O.creatorEndscreenHideButtonContainer,!1)},e=O.JSC$23198_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",x),l=O.JSC$23198_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",x);
O.addOnDisposeCallback(function(){O.JSC$23198_watchApi.unsubscribeByKey(e);O.JSC$23198_watchApi.unsubscribeByKey(l)})},e6T=function(O){O.JSC$23198_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(x){var e=_.q(x,Fxs);
O.JSC$23198_watchApi.playerApi.then(function(l){l==null||l.setCreatorEndscreenVisibility(!!e.hide)})});
O.addOnDisposeCallback(function(){O.JSC$23198_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.QpE=function(O){_.h0.call(this);this.JSC$23204_watchApi=O;COc(this)};
_.c(_.QpE,_.h0);var COc=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23204_watchApi.playerApi,2);x=l.yieldResult;e=function(C){_.u9().dispatch(_.j6({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:C}}))};
x.addEventListener("onRetroModeChanged",e);O.addOnDisposeCallback(function(){x.removeEventListener("onRetroModeChanged",e)});
_.Ra(l)})};var hcH=0,zR=0,r6h=0;var bGS;bGS=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.h2=function(O){_.h0.call(this);this.JSC$23209_watchApi=O;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;TMS(this)};
_.c(_.h2,_.h0);
var TMS=function(O){var x,e,l;_.A(function(C){if(C.nextAddress==1)return C.yield(O.JSC$23209_watchApi.playerApi,2);x=C.yieldResult;if(O.isDisposed())return C.return();O.sessionStorage=_.aKp("yt-sleep-timer");O.sessionStorage||_.ft(new _.ry("SessionStorage for Sleep Timer is undefined."));((e=O.sessionStorage)==null?void 0:e.get("yt-sleep-timer"))==="true"&&(d4a(),(l=O.sessionStorage)==null||l.remove("yt-sleep-timer"),x.syncVolume());LNS(O,x);kSc(O,x);A_k(O,x);_.Ra(C)})},LNS=function(O,x){var e=function(G){O.onSleepTimerSettingsChanged(G,
x)},l=function(G){O.onPlayerStateChange(G,x)},C=function(){O.onLoopChange(x)},Q=function(){O.onCloseMiniplayer(x)},L=function(){WFo(x,(0,_.F2)(),nOz(x),O.selectedOption==="End of video",x.getPlayerState()!==1)},k=function(){O.onSeekComplete(x)},M=function(){_.vn.cancelJob(zR);
var G=x.getCurrentTime()>=x.getDuration(),X=O.selectedOption==="End of video"||O.selectedOption==="End of playlist"&&!aea(O.playlistId);G&&X&&Mla(O,x)};
x.addEventListener("onSleepTimerSettingsChanged",e);x.addEventListener("onLoopChange",C);x.addEventListener("onLoopRangeChange",C);x.addEventListener("onStateChange",l);x.addEventListener("onCloseMiniplayer",Q);x.addEventListener("onSleepTimerFeatureAvailable",L);x.addEventListener("SEEK_COMPLETE",k);x.addEventListener("onAdStart",M);O.addOnDisposeCallback(function(){x.removeEventListener("onSleepTimerSettingsChanged",e);x.removeEventListener("onLoopChange",C);x.removeEventListener("onLoopRangeChange",
C);x.removeEventListener("onStateChange",l);x.removeEventListener("onCloseMiniplayer",Q);x.removeEventListener("onSleepTimerFeatureAvailable",L);x.removeEventListener("SEEK_COMPLETE",k);x.removeEventListener("onAdStart",M)})},kSc=function(O,x){var e=O.JSC$23209_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var l=x.getVideoData().video_id,C,Q=(C=Rc7(O.JSC$23209_watchApi))==null?void 0:C.playlistId;
O.pauseAutonavPlayback&&(x.pauseVideo(),x.syncVolume(),O.pauseAutonavPlayback=!1);if(O.selectedOption==="End of video"&&l!==O.videoId)zg(O,x);else{if(O.selectedOption==="End of playlist"){C=aea(O.playlistId);if(Q!==O.playlistId){zg(O,x);break a}C?C&&Dy7(O,x):GSh(O,x)}O.videoId=l;O.playlistId=Q}}});
O.addOnDisposeCallback(function(){O.JSC$23209_watchApi.unsubscribeByKey(e)})},A_k=function(O,x){var e=_.GG().resolve(_.gH),l=_.mw(e,_.mLW,function(Q){Q&&O.selectedOption!=="Off"&&zg(O,x)}),C=O.JSC$23209_watchApi.subscribeToActiveChanged(function(Q){var L,k;
return _.A(function(M){if(M.nextAddress==1)return M.yield(_.U7().navigationFinishPromise,2);L=!_.Yu4();k=_.GG().resolve(_.Vs).isMiniplayerActive();Q||!pLc(O.selectedOption)||k||L||zg(O,x);_.Ra(M)})},!1);
e=_.mw(e,function(Q){return Q.entities.playlistLoopStateEntity||{}},function(Q){Q=Q===void 0?{}:Q;
var L=U4I(O.JSC$23209_watchApi);if(L){var k;((k=Q[L])==null?void 0:k.state)==="PLAYLIST_LOOP_STATE_ALL"&&pLc(O.selectedOption)&&zg(O,x)}});
O.addOnDisposeCallback(l);O.addOnDisposeCallback(e);O.addOnDisposeCallback(C)};
_.h2.prototype.onSleepTimerSettingsChanged=function(O,x){switch(O){case "Off":this.selectedOption!=="Off"&&zg(this,x);break;case "End of video":case "End of playlist":FNI(this,O,x);break;default:FNI(this,O,x,bGS.get(O))}};
_.h2.prototype.onLoopChange=function(O){(O.getLoopVideo()||O.getLoopRange())&&pLc(this.selectedOption)&&zg(this,O)};
_.h2.prototype.onCloseMiniplayer=function(O){pLc(this.selectedOption)&&zg(this,O)};
var FNI=function(O,x,e,l){XoH(O,e);O.selectedOption=x;O.videoId=e.getVideoData().video_id;O.playlistId="";var C;(C=O.sessionStorage)==null||C.set("yt-sleep-timer","true");O.adjustmentsCount++;WFo(e,(0,_.F2)(),nOz(e),O.selectedOption==="End of video");if(O.selectedOption==="End of video")GSh(O,e),o_a(O,e);else if(O.selectedOption==="End of playlist"){o_a(O,e);var Q,L;O.playlistId=(L=(Q=Rc7(O.JSC$23209_watchApi))==null?void 0:Q.playlistId)!=null?L:"";aea(O.playlistId)||GSh(O,e)}else l&&(O.presetFadeSchedulerId=
_.FQ(_.vn,function(){HeE(e,15E3)},l-15E3),O.presetPauseSchedulerId=_.FQ(_.vn,function(){Mla(O,e)},l),zcz(e,(0,_.F2)(),l))},Mla=function(O,x){if(O.JSC$23209_watchApi.isActive()){var e={dismissDialogEndpoint:{}};
var l={commandExecutorCommand:{commands:[e,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};e={buttonViewModel:{title:_.CZ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:e}}};l={buttonViewModel:{title:_.CZ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:l}}};var C={dialogHeaderViewModel:{headline:{content:_.CZ("SLEEP_TIMER_ENDED_TITLE")}}},
Q={basicContentViewModel:{paragraphs:[{text:{content:_.CZ("SLEEP_TIMER_ENDED_TEXT")}}]}};e={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:C,content:Q,footer:{panelFooterViewModel:{primaryButton:e,secondaryButton:l,shouldHideDivider:!0}}}}}}};_.GG().resolve(_.Xc).resolveCommand(e,{form:{element:O}})}else d4a();y_k(O,!1);ZGw(O,x);x.pauseVideo();_.Ax.getInstance().getState()===2&&x.getPlayerState()===5&&(O.pauseAutonavPlayback=!0)},zg=function(O,x){y_k(O,!0);
ZGw(O,x);d4a()},ZGw=function(O,x){XoH(O,x);
O.selectedOption="Off";O.videoId="";O.playlistId="";O.adjustmentsCount=0;var e;(e=O.sessionStorage)==null||e.remove("yt-sleep-timer");_.vn.cancelJob(hcH);x.resetSleepTimerMenuSettings()},y_k=function(O,x){x={timer_length_adjustment_times_during_session:O.adjustmentsCount-1,
is_session_cancelled:x};switch(O.selectedOption){case "Off":x.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":x.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":x.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:x.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",x.option_duration_in_minutes=bGS.get(O.selectedOption)/6E4}_.uU("sleepTimerSessionFinishEvent",x)};
_.h2.prototype.onPlayerStateChange=function(O,x){O===1?WFo(x,(0,_.F2)(),nOz(x),this.selectedOption==="End of video"):O===0?(_.vn.cancelJob(zR),x.setVideoTimeLeft(swT(0,0))):O===2&&_.vn.cancelJob(zR);this.selectedOption==="End of video"?O===0?Mla(this,x):O===2&&KFk(x):this.selectedOption!=="End of playlist"||aea(this.playlistId)||(O===0?Mla(this,x):O===2&&KFk(x))};
_.h2.prototype.onSeekComplete=function(O){O.getPlayerState()===2&&WFo(O,(0,_.F2)(),nOz(O),this.selectedOption==="End of video",!0)};
_.h2.prototype.onCueRangeEnter=function(O,x){O==="sleep-timer-fade-audio"&&HeE(x,(x.getDuration()-x.getProgressState().current)*1E3)};
_.h2.prototype.onCueRangeExit=function(O,x){O==="sleep-timer-fade-audio"&&x.getPlayerState()!==0&&KFk(x,!0)};
var GSh=function(O,x){x.addCueRange("sleep-timer-fade-audio",x.getDuration()-15,x.getDuration());x.addEventListener("onCueRangeEnter",function(e){O.onCueRangeEnter(e,x)});
x.addEventListener("onCueRangeExit",function(e){O.onCueRangeExit(e,x)})},Dy7=function(O,x){x.removeCueRange("sleep-timer-fade-audio");
x.removeEventListener("onCueRangeEnter",function(e){O.onCueRangeEnter(e,x)});
x.removeEventListener("onCueRangeExit",function(e){O.onCueRangeExit(e,x)})},XoH=function(O,x){pLc(O.selectedOption)?Dy7(O,x):(_.vn.cancelJob(O.presetPauseSchedulerId),_.vn.cancelJob(O.presetFadeSchedulerId),O.presetPauseSchedulerId=0,O.presetFadeSchedulerId=0);
KFk(x,!0)},o_a=function(O,x){x.setLoop(!1);
x.setLoopVideo(!1);x.setLoopRange(null);(O=U4I(O.JSC$23209_watchApi))&&_.GG().resolve(_.gH).dispatch(_.Dc("playlistLoopStateEntity",O,{key:O,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.c_w=function(O){_.h0.call(this);var x=this;this.JSC$23212_watchApi=O;E_E(this);qvS(this);POU(this);var e=this.JSC$23212_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.yF("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.mK.get("wide",void 0)==="1"&&_.sC("wide","1",_.yF("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){x.JSC$23212_watchApi.unsubscribeByKey(e)});
O=O.getRoot();if(O.is==="ytd-watch-flexy"||O.is==="ytd-watch-grid")O.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.g8E();_.t("web_watch_log_theater_mode_cookie_state")&&_.mK.get("wide","0")==="1"&&_.V9L("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.c(_.c_w,_.h0);var E_E=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23212_watchApi.playerApi,2);x=l.yieldResult;e=function(C){Iyh(O,!!C)};
x.addEventListener("SIZE_CLICKED",e);O.addOnDisposeCallback(function(){x.removeEventListener("SIZE_CLICKED",e)});
_.Ra(l)})},qvS=function(O){O.JSC$23212_watchApi.registerActionHandler("yt-toggle-theater-mode",function(x,e){Iyh(O,x,e===void 0?!0:e)});
O.addOnDisposeCallback(function(){O.JSC$23212_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.c_w.prototype.getState=function(){return _.I2(_.u9().getState())};
var Iyh=function(O,x,e){e=e===void 0?!0:e;var l,C,Q,L=_.t("enable_player_resize_transition")&&!!O.JSC$23212_watchApi.getWatchNextResponse()&&!((l=O.JSC$23212_watchApi.getWatchNextResponse())==null?0:(C=l.contents)==null?0:(Q=C.twoColumnWatchNextResults)==null?0:Q.conversationBar);_.aPe(function(){_.u9().dispatch(_.j6({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:x}}));_.t("theater_mode_scroll_to_top_killswitch")||O.JSC$23212_watchApi.scrollWatchTo(0,!1);_.Bq()&&_.t("external_fullscreen")&&_.vq(document.documentElement);
POU(O);e&&_.sC("wide",x?"1":"0",_.yF("theater_mode_cookie_max_age_seconds",-1));_.Sh(O.JSC$23212_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);O.JSC$23212_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:x});x&&_.g8E()},{shouldWrap:L})},POU=function(O){var x;
_.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$23212_watchApi.playerApi,2);x=e.yieldResult;x.setSizeStyle(!0,O.getState());_.Ra(e)})};var R6I=function(O){_.h0.call(this);var x=this;this.playerApi=O;this.timeToPanelSyncKeyMap={};var e;if(O==null?0:(e=O.isReady)==null?0:e.call(O)){e=_.mw(_.GG().resolve(_.gH),function(C){return C.entities.timedMarkersListSyncEntity||{}},function(C,Q){C=C===void 0?{}:C;
Q=Q===void 0?{}:Q;for(var L=_.T(Object.keys(Q)),k=L.next();!k.done;k=L.next())k=k.value,C[k]!==Q[k]&&VlE(x,Q[k]);Q=_.T(Object.keys(C));for(L=Q.next();!L.done;L=Q.next())L=L.value,k=C[L],x.timeToPanelSyncKeyMap[L]&&poT(x,k)});
this.addOnDisposeCallback(e);var l=function(C){x.onCueRangeEnter(C)};
O.addEventListener("onCueRangeEnter",l);this.addOnDisposeCallback(function(){var C;(C=O.removeEventListener)==null||C.call(O,"onCueRangeEnter",l)})}};
_.c(R6I,_.h0);
var poT=function(O,x){var e,l;if((e=O.playerApi)==null?0:(l=e.isReady)==null?0:l.call(e)){var C;if((e=x==null?void 0:(C=x.timedListData)==null?void 0:C.sections)&&x!=null&&x.key)for(C=_.T(e),e=C.next();!e.done;e=C.next())if(e=e.value,e.timedSyncDataList&&e.sectionId)for(l=0;l<e.timedSyncDataList.length;l++){var Q=e.timedSyncDataList[l];Q.syncItemId&&O.playerApi.addCueRange(e.sectionId+"_"+x.key+"_"+Q.syncItemId,Number(Q.videoTimeMs)/1E3,l===e.timedSyncDataList.length-1?0x8000000000000:Number(e.timedSyncDataList[l+
1].videoTimeMs)/1E3)}}},VlE=function(O,x){var e,l;
if((e=O.playerApi)==null?0:(l=e.isReady)==null?0:l.call(e)){var C;if((e=x==null?void 0:(C=x.timedListData)==null?void 0:C.sections)&&x!=null&&x.key)for(C=_.T(e),e=C.next();!e.done;e=C.next())if(e=e.value,e.timedSyncDataList&&e.sectionId){l=_.T(e.timedSyncDataList);for(var Q=l.next();!Q.done;Q=l.next())Q=Q.value,Q.syncItemId&&O.playerApi.removeCueRange(e.sectionId+"_"+x.key+"_"+Q.syncItemId)}}};
R6I.prototype.onCueRangeEnter=function(O){for(var x=_.T(Object.keys(this.timeToPanelSyncKeyMap)),e=x.next();!e.done;e=x.next()){e=e.value;var l=_.T(O.split("_"+e+"_")),C=l.next().value;l=l.next().value;if(C&&l){O=_.GG().resolve(_.gH);x=this.timeToPanelSyncKeyMap[e];var Q=_.trm(O.getState(),x);e=UyH(e,C,l);if(e===-1)break;e={activeSyncId:l,activeItemIndex:e,activeSectionInfo:{sectionIdentifier:C}};Q?O.dispatch(_.Zw("markersEngagementPanelSyncEntity",x,e)):O.dispatch(_.Dc("markersEngagementPanelSyncEntity",
x,Object.assign({},{key:x},e)));break}}};
var UyH=function(O,x,e){var l=_.GG().resolve(_.gH),C,Q;O=(C=BoU(l.getState(),O))==null?void 0:(Q=C.timedListData)==null?void 0:Q.sections;if(!O)return-1;C=0;Q=_.T(O);for(O=Q.next();!O.done;O=Q.next()){O=O.value;l=O.timedSyncDataList||[];if(O.sectionId===x)return x=l.findIndex(function(L){return L.syncItemId===e}),x===-1?x:C+x;
C+=l.length}return-1};_.spE=function(O){_.h0.call(this);var x=this;this.JSC$23225_watchApi=O;this.unresolvedCommands=[];this.JSC$23225_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(e){ayw(x,e)});
this.addOnDisposeCallback(function(){x.JSC$23225_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
myz(this)};
_.c(_.spE,_.h0);var myz=function(O){var x;_.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$23225_watchApi.playerApi,2);x=e.yieldResult;if(O.isDisposed())return e.return();O.timedSyncObserver=new R6I(x);O.unresolvedCommands.length&&(O.unresolvedCommands.forEach(function(l){return ayw(O,l)}),O.unresolvedCommands=[]);
_.qq(O,O.timedSyncObserver);_.Ra(e)})},ayw=function(O,x){if(O.timedSyncObserver){var e=_.q(x,oKT);
if(e&&e.timedSyncEntityKey&&e.panelSyncEntityKey){O=O.timedSyncObserver;x=e.timedSyncEntityKey;var l=e.panelSyncEntityKey;e=!!e.isEnabled;e=e===void 0?!0:e;var C=_.GG().resolve(_.gH);C=BoU(C.getState(),x);e?O.timeToPanelSyncKeyMap[x]||(O.timeToPanelSyncKeyMap[x]=l,poT(O,C)):(delete O.timeToPanelSyncKeyMap[x],VlE(O,C))}}else O.unresolvedCommands.push(x)};var WNE=_.K(function(O){var x=O.data,e=O.maybeLogSmartSkipClientData,l=null,C=null,Q=_.t("web_enable_auto_focus_for_timely_action_button"),L=function(){l=document.activeElement},k=function(){x().smartSkipMetadata&&(l=document.activeElement,_.V$c(function(){return C}))},M=function(X){if(x().smartSkipMetadata&&(!X||X.key!=="Enter")){l&&l.isConnected&&(_.V$c(function(){return l}),l=null);
var y;(y=C)==null||y.blur()}};
O=_.lk(function(){e==null||e(!0,x());return!1});
var G=_.Y0(_.P8(function(){return x().rendererContext},{onTap:function(X,y){y({disableClickTracking:!0})}}),_.F6({visibilityCallback:function(X){if(Q)X?C&&x().smartSkipMetadata&&(k(),document.addEventListener("focusin",L)):(document.removeEventListener("focusin",L),M());
else if(X){X=_.tA(x().rendererContext);var y=Number(x().maxVisibleDurationMilliseconds),Z,E=(Z=_.q(x().rendererContext,_.LM))==null?void 0:Z.label;X&&y&&E&&(Z={label:E,command:X,durationMs:y},_.GG().resolve(_.NU).enqueue(Z))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.u8(function(){if(Q){var X;if((C=(X=G.value)==null?void 0:X.querySelector("button"))&&x().smartSkipMetadata){var y;(y=G.value)==null||y.addEventListener("keydown",M)}}});
_.YO(function(){Q&&(C&&x().smartSkipMetadata&&C.removeEventListener("keydown",M),document.removeEventListener("focusin",L),M())});
return _.D("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:G,"on:click":O},_.D(_.MR,{data:function(){return x().content}},{buttonViewModel:_.RV}))},"Sn");var h6I=_.K(function(O){var x=O.data,e=O.playerApi,l=_.GG().resolve(_.EGu);O=_.T(_.bk(function(){x()}));
var C=O.next().value,Q=O.next().value,L=function(){return BwS(x(),C())},k=function(G,X){var y,Z,E=(y=_.q(X==null?void 0:X.rendererContext,_.AB))==null?void 0:(Z=y.loggingDirectives)==null?void 0:Z.trackingParams;
if((X=X==null?void 0:X.smartSkipMetadata)&&X.loggingData&&(Z=X.loggingData,X=Z.algorithmId,y=Z.startMilliseconds,Z=Z.endMilliseconds,X&&y!==void 0&&Z!==void 0)){var P,U;G={smartSkipData:Object.assign({},{versionName:X,startMediaTimeMs:y,endMediaTimeMs:Z},G&&{userInteractionMediaTimeMs:(Math.floor(((P=_.f7())==null?void 0:(U=P.getPlayer())==null?void 0:U.getCurrentTime())||0)*1E3).toString()})};P=_.Pq();var W;E&&(W=_.Fv(E));P&&W&&_.nZ(P,W,G)}},M=function(G,X){var y=BwS(x(),G);
if(y){var Z=_.q(y,Yf7),E;if(E=X)E=e(),y=_.q(y,Yf7),E=y!=null&&y.smartSkipMetadata?!(E==null?0:E.isSameMarkerTypeVisible((y==null?void 0:y.smartSkipMetadata.markerKey)||"")):!0;if(E){var P,U;(Z==null?0:(P=Z.smartSkipMetadata)==null?0:(U=P.loggingData)==null?0:U.isCounterfactual)||(k(!1,Z),Q(G))}else X||C()!==G||Q(void 0)}};
_.uo(function(){var G=x().timelyActions;if(G){G=_.T(G);for(var X=G.next();!X.done;X=G.next()){X=_.q(X.value,Yf7);var y=void 0;(y=X)!=null&&y.cueRangeId&&l.timelyActionsMap.set(X.cueRangeId,M)}_.YO(function(){l.timelyActionsMap.clear()})}},"PSaw4c");
return _.D("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.D(_.MR,{data:L},{timelyActionViewModel:function(G){return _.D(WNE,{data:G.data,maybeLogSmartSkipClientData:function(){k(!0,_.q(L(),Yf7))}})}}))},"Un");_.r_c=function(O){_.h0.call(this);this.JSC$23237_watchApi=O;O=_.T(_.Iw({},void 0,"UN7k5e"));this.timelyActionsOverlay=O.next().value;this.setTimelyActionsOverlay=O.next().value;z6h(this)};
_.c(_.r_c,_.h0);var z6h=function(O){var x,e,l,C;_.A(function(Q){if(Q.nextAddress==1)return HGU(O),KNU(O),O.timelyActionsContainer=document.createElement("div"),Q.yield(O.JSC$23237_watchApi.playerApi,2);x=Q.yieldResult;(l=(e=x).insertTimelyActionUi)==null||l.call(e,O.timelyActionsContainer);C=_.nO(O.timelyActionsContainer,function(){return _.D(h6I,{data:O.timelyActionsOverlay,playerApi:x})},"Vn");
O.addOnDisposeCallback(C);_.Ra(Q)})},KNU=function(O){var x=O.JSC$23237_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){HGU(O)});
O.addOnDisposeCallback(function(){O.JSC$23237_watchApi.unsubscribeByKey(x)})},HGU=function(O){var x=O.JSC$23237_watchApi.getWatchNextResponse();
if(x){var e,l;if(x=_.q((e=x.playerOverlays)==null?void 0:(l=e.playerOverlayRenderer)==null?void 0:l.timelyActionsOverlayViewModel,yZa)){var C;(C=O.setTimelyActionsOverlay)==null||C.call(O,x)}}};_.n_c=function(O){_.h0.call(this);this.JSC$23241_watchApi=O;dyT(this)};
_.c(_.n_c,_.h0);var dyT=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23241_watchApi.playerApi,2);x=l.yieldResult;e=function(C){_.lV.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.q(C,_.IuS)},popupType:"TOAST"}})};
x.addEventListener("onYtShowToast",e);O.addOnDisposeCallback(function(){x.removeEventListener("onYtShowToast",e)});
_.Ra(l)})};var upy,v_s,jp7,YvU,BMw,Svw,J_y,wok,NME,$yo;upy=!1;_.fyE=function(O){_.h0.call(this);this.JSC$23244_watchApi=O;this.fullscreen=this.theater=!1;YvU(this);BMw(this);v_s(this)};
_.c(_.fyE,_.h0);v_s=function(O){var x,e,l;_.A(function(C){if(C.nextAddress==1)return C.yield(O.JSC$23244_watchApi.playerApi,2);x=C.yieldResult;if(O.isDisposed())return C.return();e=O.JSC$23244_watchApi.getElement("CINEMATICS");if(!e)return C.return();O.JSC$23244_cinematicController=new _.PJ(e,x);_.qq(O,O.JSC$23244_cinematicController);_.wXz(O.JSC$23244_cinematicController);J_y(O,_.F0s());l=O.JSC$23244_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(Q){wok(O,Q)});
O.addOnDisposeCallback(function(){O.JSC$23244_watchApi.unsubscribeByKey(l)});
Svw(O);wok(O,O.JSC$23244_cinematicController.isAllowed());jp7(O);NME(O);_.Ra(C)})};
jp7=function(O){O.fullscreen=_.VI(_.u9().getState());O.theater=_.I2(_.u9().getState());_.g_a(O,O.fullscreen,O.theater);var x=_.mw(_.u9(),_.VI,function(l){O.fullscreen=l;_.g_a(O,O.fullscreen,O.theater)}),e=_.mw(_.u9(),_.I2,function(l){O.theater=l;
_.g_a(O,O.fullscreen,O.theater)});
O.addOnDisposeCallback(x);O.addOnDisposeCallback(e)};
YvU=function(O){var x=O.JSC$23244_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Svw(O)});
O.addOnDisposeCallback(function(){O.JSC$23244_watchApi.unsubscribeByKey(x)})};
BMw=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23244_watchApi.playerApi,2);x=l.yieldResult;e=function(C){J_y(O,C)};
x.addEventListener("cinematicSettingsToggleChange",e);O.addOnDisposeCallback(function(){x.removeEventListener("cinematicSettingsToggleChange",e)});
_.Ra(l)})};
Svw=function(O){var x=O.JSC$23244_watchApi.getWatchNextResponse(),e;x=_.q(x==null?void 0:(e=x.pageVisualEffects)==null?void 0:e[0],_.l5);var l;(l=O.JSC$23244_cinematicController)==null||_.jnk(l,x)};
J_y=function(O,x){var e;(e=O.JSC$23244_cinematicController)==null||_.Sdk(e,x);$yo(O)};
wok=function(O,x){var e;_.A(function(l){if(l.nextAddress==1)return _.t("kevlar_watch_cinematics_invisible")&&(x=!1),l.yield(O.JSC$23244_watchApi.playerApi,2);e=l.yieldResult;e.updateCinematicSettings(x);$yo(O);_.Ra(l)})};
NME=function(O){var x=_.TD();if(_.t("kevlar_measure_ambient_mode_idle")&&!x.getFlag(192)&&!upy){upy=!0;var e=_.zl(_.vn,function(){_.GG().resolve(_.Rne).start(1E4)},5E3);
O.addOnDisposeCallback(function(){_.vn.cancelJob(e);_.GG().resolve(_.Rne).stop()})}};
_.g_a=function(O,x,e){O.fullscreen=x;O.theater=e;var l;(l=O.JSC$23244_cinematicController)==null||l.setFullscreen(O.fullscreen,O.theater);if(_.t("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(O.theater||O.fullscreen){var C;(C=O.JSC$23244_cinematicController)==null||_.Ncz(C)}else if((O=O.JSC$23244_cinematicController)!=null){var Q;(Q=O.currentCinematicEffect)==null||Q.pause()}};
$yo=function(O){if(_.t("web_cinematic_theater_mode")||_.t("web_cinematic_fullscreen")){var x;O.JSC$23244_watchApi.getRoot().toggleCinematicsActive(!((x=O.JSC$23244_cinematicController)==null||!x.isEnabled()))}};_.eos=function(O){_.h0.call(this);var x=this;this.JSC$23247_watchApi=O;this.commentsReady=!1;this.setCommentsJobId=0;O=_.mw(_.u9(),_.WJ,function(){iGc(x)});
this.addOnDisposeCallback(O);var e=this.JSC$23247_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){O17(x)}),l=this.JSC$23247_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){O17(x)});
this.addOnDisposeCallback(function(){x.JSC$23247_watchApi.unsubscribeByKey(e);x.JSC$23247_watchApi.unsubscribeByKey(l)});
var C=function(){_.t("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&x9c(x,"false")};
this.JSC$23247_watchApi.getRoot().addEventListener("yt-page-data-will-update",C);this.addOnDisposeCallback(function(){x.JSC$23247_watchApi.getRoot().removeEventListener("yt-page-data-will-update",C)});
O17(this)};
_.c(_.eos,_.h0);var O17=function(O){O.commentsReady=!1;_.vn.cancelJob(O.setCommentsJobId);O.setCommentsJobId=_.zl(_.vn,function(){iGc(O)},1E3)},iGc=function(O){if(!O.commentsReady){_.IR("cmi");
_.vn.cancelJob(O.setCommentsJobId);var x,e,l,C,Q=(x=O.JSC$23247_watchApi.getWatchNextResponse())==null?void 0:(e=x.contents)==null?void 0:(l=e.twoColumnWatchNextResults)==null?void 0:(C=l.results)==null?void 0:C.results.contents;x=void 0;if(Q&&Q.length)for(Q=_.T(Q),e=Q.next();!e.done;e=Q.next())if(e=e.value,C=l=void 0,((l=e)==null?void 0:(C=l.itemSectionRenderer)==null?void 0:C.sectionIdentifier)==="comment-item-section"){_.t("web_watch_provide_undefined_comments")?x=e.itemSectionRenderer:O.JSC$23247_watchApi.provideRenderingData("COMMENTS",
e.itemSectionRenderer);x9c(O,"true");break}_.t("web_watch_provide_undefined_comments")&&O.JSC$23247_watchApi.provideRenderingData("COMMENTS",x);O.commentsReady=!0;O.JSC$23247_watchApi.dispatchEvent("yt-watch-comments-ready")}},x9c=function(O,x){var e;
(e=O.JSC$23247_watchApi.getElement("COMMENTS"))==null||e.setAttribute("canScheduleJobs",x)};_.Trh=function(O){_.h0.call(this);var x=this;this.JSC$23250_watchApi=O;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.t("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.t("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.t("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.yF("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)lfy(this);
else{var e=this.JSC$23250_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Chs(x);rB(x)}),l=this.JSC$23250_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){H6(x);
rB(x)});
this.JSC$23250_watchApi.getRoot().is==="ytd-watch-grid"&&_.t("swatcheroo_pbs_load_grid")&&(QgT(this),b1H(this));this.addOnDisposeCallback(function(){x.JSC$23250_watchApi.unsubscribeByKey(e);x.JSC$23250_watchApi.unsubscribeByKey(l);_.vn.cancelJob(x.provideRichGridJobId)});
Chs(this);H6(this)}};
_.c(_.Trh,_.h0);var lfy=function(O){var x=O.JSC$23250_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){O.providePlayerJobId=_.e1(_.vn,function(){Chs(O);rB(O)},O.provideAllDataDelayMs)}),e=O.JSC$23250_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){O.provideWatchNextJobId=_.e1(_.vn,function(){H6(O);
rB(O)},O.provideAllDataDelayMs)}),l=O.JSC$23250_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){O.provideWatchNextJobId=_.e1(_.vn,function(){H6(O);
rB(O)},O.provideAllDataDelayMs)});
O.JSC$23250_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.zl(_.vn,function(){Chs(O);H6(O);rB(O)},100)});
O.JSC$23250_watchApi.addPageDisposeJob(function(){_.vn.cancelJob(O.provideWatchNextJobId);_.vn.cancelJob(O.providePlayerJobId)});
O.addOnDisposeCallback(function(){O.JSC$23250_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");O.JSC$23250_watchApi.unsubscribeByKey(x);O.JSC$23250_watchApi.unsubscribeByKey(e);O.JSC$23250_watchApi.unsubscribeByKey(l);_.vn.cancelJob(O.providePlayerJobId);_.vn.cancelJob(O.provideWatchNextJobId)});
Chs(O);H6(O)},Chs=function(O){var x=O.JSC$23250_watchApi.getPlayerResponse(),e,l,C=(l=x==null?void 0:(e=x.playabilityStatus)==null?void 0:e.messageRenderers)!=null?l:[],Q,L;
x=(L=x==null?void 0:(Q=x.playabilityStatus)==null?void 0:Q.messages)!=null?L:[];Q=_.T(x);for(L=Q.next();!L.done;L=Q.next())C.push({alertRenderer:{text:_.KA(L.value),type:"WARNING"}});O.JSC$23250_watchApi.provideRenderingData("ALERTS",C)},H6=function(O){var x=[],e,l,C,Q=O.JSC$23250_watchApi.getWatchNextResponse(),L,k,M,G,X=Q==null?void 0:(L=Q.contents)==null?void 0:(k=L.twoColumnWatchNextResults)==null?void 0:(M=k.results)==null?void 0:(G=M.results)==null?void 0:G.contents;
if(X)for(L=_.T(X),k=L.next();!k.done;k=L.next())if(k=k.value,k.videoPrimaryInfoRenderer)var y=k;else if(k.videoSecondaryInfoRenderer){var Z=k;G=M=void 0;k=Object.assign({},(M=k.videoSecondaryInfoRenderer)==null?void 0:(G=M.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(k.rows&&k.collapsedItemCount!==void 0){k.rows=k.rows.slice(0,k.collapsedItemCount).filter(function(CQ){return!!CQ.richMetadataRowRenderer});
k.collapsedItemCount=k.rows.length;var E={metadataRowContainerRenderer:k}}}else if(k.merchandiseShelfRenderer)var P=k;else if(k.ticketShelfRenderer)var U=k;else if(k.expandableMetadataRenderer)var W=k;else if(k.itemSectionRenderer)if(M=k.itemSectionRenderer.contents,G=void 0,O.directlyProvideComments&&((G=k.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section")_.IR("cmi"),O.JSC$23250_watchApi.provideRenderingData("COMMENTS",k.itemSectionRenderer);else if(M)for(k=_.T(M),M=
k.next();!M.done;M=k.next())if(M=M.value,M.commentsEntryPointHeaderRenderer)var z=M;else if(M.clarificationRenderer||M.infoPanelContainerRenderer||M.infoPanelContentRenderer||M.emergencyOneboxRenderer){x.push(M);var r=r||!!Z}else M.limitedStateMessageRenderer?l=M:M.videoMetadataCarouselViewModel&&(C=M);if(_.t("web_watch_merch_in_sd_when_ticket_shelf_present")&&P&&U){var f=P;P=void 0}if(O.provideWatchNextSecondaryResults){var u,Y,J;O.JSC$23250_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
Q==null?void 0:(u=Q.contents)==null?void 0:(Y=u.twoColumnWatchNextResults)==null?void 0:(J=Y.secondaryResults)==null?void 0:J.secondaryResults)}if(O.JSC$23250_watchApi.getRoot().is==="ytd-watch-grid"){var O8,Xr;O.JSC$23250_watchApi.provideRenderingData("LIVE_CHAT",Q==null?void 0:(O8=Q.contents)==null?void 0:(Xr=O8.twoColumnWatchNextResults)==null?void 0:Xr.conversationBar)}var Fr,mL,Zn,q$;(u=Q==null?void 0:(Fr=Q.contents)==null?void 0:(mL=Fr.twoColumnWatchNextResults)==null?void 0:(Zn=mL.secondaryResults)==
null?void 0:(q$=Zn.secondaryResults)==null?void 0:q$.offerModule)&&(u.donationShelfRenderer||u.donationUnavailableRenderer)&&O.JSC$23250_watchApi.getRoot().is!=="ytd-watch-grid"&&(e=u);Fr=O.JSC$23250_watchApi.getPlayerResponse();if(!Fr||!_.U7L(Fr.playabilityStatus,Q==null?void 0:Q.playerOverlays)){var KV;if(Q==null?0:(KV=Q.contents)==null?0:KV.singleColumnWatchNextResults){var VN,Pd;var f2=Q==null?void 0:(VN=Q.contents.singleColumnWatchNextResults.results)==null?void 0:(Pd=VN.results)==null?void 0:
Pd.contents}else{var p2,OT,Gp,zp;KV=!!(X==null?0:(p2=X[0])==null?0:(OT=p2.itemSectionRenderer)==null?0:(Gp=OT.contents)==null?0:(zp=Gp[0])==null?0:zp.backgroundPromoRenderer);var m3,E4;p2=!!(Q==null?0:(m3=Q.contents)==null?0:(E4=m3.twoColumnWatchNextResults)==null?0:E4.secondaryResults);KV&&!p2&&(f2=X)}}X=x[0];m3=x[1];r&&x.length===1&&(m3=X,X=void 0);O.JSC$23250_watchApi.provideRenderingData("PRIMARY_INFO",y);O.JSC$23250_watchApi.provideRenderingData("SECONDARY_INFO",Z);O.JSC$23250_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
z);O.JSC$23250_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",C);O.JSC$23250_watchApi.provideRenderingData("CLARIFICATION",X);O.JSC$23250_watchApi.provideRenderingData("RICH_METADATA",E);O.JSC$23250_watchApi.provideRenderingData("MERCH_SHELF",P);_.t("web_watch_merch_in_sd_when_ticket_shelf_present")&&O.JSC$23250_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",f);O.JSC$23250_watchApi.provideRenderingData("TICKET_SHELF",U);O.JSC$23250_watchApi.provideRenderingData("LIMITED_STATE",l);O.JSC$23250_watchApi.getRoot().is!==
"ytd-watch-grid"&&O.JSC$23250_watchApi.provideRenderingData("DONATION_SHELF",e);O.JSC$23250_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",f2);O.JSC$23250_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",m3);O.JSC$23250_watchApi.provideRenderingData("EXPANDABLE_METADATA",W);if(O.swatcherooProvideAllDataOnScheduledJob){var Xw,Tr,QR,ET,Q$,tJ;y=Q==null?void 0:(Xw=Q.contents)==null?void 0:(Tr=Xw.twoColumnWatchNextResults)==null?void 0:(QR=Tr.secondaryResults)==null?void 0:(ET=QR.secondaryResults)==
null?void 0:(Q$=ET.results)==null?void 0:(tJ=Q$[0])==null?void 0:tJ.richGridRenderer;O.JSC$23250_watchApi.provideRenderingData("RICH_GRID_RENDERER",y)}};
_.Trh.prototype.hasCompanionAds=function(O){var x,e;return(e=O==null?void 0:(x=O.adPlacements)==null?void 0:x.some(function(l){var C,Q,L,k;return(l==null?void 0:(C=l.adPlacementRenderer)==null?void 0:(Q=C.renderer)==null?void 0:Q.actionCompanionAdRenderer)||(l==null?void 0:(L=l.adPlacementRenderer)==null?void 0:(k=L.renderer)==null?void 0:k.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?e:!1};
var rB=function(O){if(!_.t("swaterdoo_ps_wn_handle_ks")){O.swatcherooProvideAllDataOnScheduledJob||b1H(O,3E3);var x=O.JSC$23250_watchApi.getPlayerResponse(),e,l,C,Q,L,k=(e=O.JSC$23250_watchApi.getWatchNextResponse())==null?void 0:(l=e.contents)==null?void 0:(C=l.twoColumnWatchNextResults)==null?void 0:(Q=C.secondaryResults)==null?void 0:(L=Q.secondaryResults)==null?void 0:L.offerModule;x=O.hasCompanionAds(x);var M,G;e=(k==null?void 0:(M=k.tvfilmOfferModuleRenderer)==null?void 0:M.clientShouldSuppressIfCompanionAdDisplayed)||
(k==null?void 0:(G=k.unlimitedOfferModuleRenderer)==null?void 0:G.suppressIfCompanionAds);M=x&&e;O.JSC$23250_watchApi.getRoot().is==="ytd-watch-grid"&&O.JSC$23250_watchApi.provideRenderingData("OFFER_MODULE",M?void 0:k)}},b1H=function(O,x){_.t("swatcheroo_pbs_load_grid")&&(O.provideRichGridJobId&&_.vn.cancelJob(O.provideRichGridJobId),O.provideRichGridJobId=_.e1(_.vn,function(){O.provideRichGridJobId=0;
var e,l,C,Q,L,k,M,G=(e=O.JSC$23250_watchApi.getWatchNextResponse())==null?void 0:(l=e.contents)==null?void 0:(C=l.twoColumnWatchNextResults)==null?void 0:(Q=C.secondaryResults)==null?void 0:(L=Q.secondaryResults)==null?void 0:(k=L.results)==null?void 0:(M=k[0])==null?void 0:M.richGridRenderer;G&&O.JSC$23250_watchApi.provideRenderingData("RICH_GRID_RENDERER",G)},x))},QgT=function(O){var x,e;
_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23250_watchApi.playerApi,2);x=l.yieldResult;e=function(){O.onPlaybackStart()};
x.addEventListener("onPlaybackStartExternal",e);O.addOnDisposeCallback(function(){x.removeEventListener("onPlaybackStartExternal",e)});
_.Ra(l)})};
_.Trh.prototype.onPlaybackStart=function(){b1H(this)};_.k0c=function(O){_.h0.call(this);var x=this;this.JSC$23263_watchApi=O;O.playerApi.then(function(e){x.player=e});
this.gestures=new _.MJ(this.JSC$23263_watchApi.getRoot(),O.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.wva(_.u9().getState())&&_.WJ(_.u9().getState())<=0)if(_.VI(_.u9().getState())){var e;(e=x.player)==null||e.toggleFullscreen()}else _.Sh(x.JSC$23263_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
LHk(this)};
_.c(_.k0c,_.h0);var LHk=function(O){var x=_.mw(_.u9(),_.VI,function(e){O.onFullscreenChanged(e)});
O.addOnDisposeCallback(x);x=_.mw(_.u9(),_.WJ,function(e){O.gestures&&(e>0?O.gestures.detach():O.gestures.attach())});
O.addOnDisposeCallback(x)};
_.k0c.prototype.onFullscreenChanged=function(O){this.gestures&&this.gestures.update(O)};_.MhS=function(O){_.h0.call(this);var x=this;this.JSC$23266_watchApi=O;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(O.subscribeToActiveChanged(function(e){x.onActiveChanged(e)}));
AsE(this)};
_.c(_.MhS,_.h0);var D9h=function(O){if(_.t("swatcheroo_page_dispose_all_watch_data"))O.pageDisposalDataTypes=Object.values(RRk).filter(function(e){return e!=="PLAYLIST"});
else if(_.t("swatcheroo_page_dispose_rich_grid")){var x;(x=O.pageDisposalDataTypes)==null||x.push("RICH_GRID_RENDERER")}},AsE=function(O){_.t("swatcheroo_enable_ghost_cards")&&(D9h(O),O.JSC$23266_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.vn.cancelJob(O.clearDataJobId);
O.clearDataJobId=0}),O.runPageDisposeJob=function(){var x=_.GG().resolve(_.Be).getDestinationPageType()==="watch";
O.clearDataJobId=_.e1(_.vn,O.runClearDataJob,x?0:_.yF("web_watch_delay_page_dispose_ms",1E4))},O.runClearDataJob=function(){G0c(O)},O.runOnYtNavigateAwayFinish=function(){O.clearDataJobId&&(_.vn.cancelJob(O.clearDataJobId),O.clearDataJobId=0,G0c(O))},document.addEventListener("yt-navigate-finish",O.runOnYtNavigateAwayFinish),O.JSC$23266_watchApi.addPageDisposeJob(O.runPageDisposeJob),O.addOnDisposeCallback(function(){O.JSC$23266_watchApi.removePageDisposeJob(O.runPageDisposeJob);
O.JSC$23266_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",O.runOnYtNavigateAwayFinish)}))},G0c=function(O){O.pageDisposalDataTypes.forEach(function(x){O.JSC$23266_watchApi.provideRenderingData(x,void 0)});
O.clearDataJobId=0};
_.MhS.prototype.onActiveChanged=function(O){O&&((O=document.querySelector("#watch-page-skeleton"))&&_.Um(O),FHh(this),document.body.removeAttribute("no-y-overflow"),_.SS("IS_SHELL_LOAD")&&_.fQa())};
var FHh=function(O){_.A(function(x){if(x.nextAddress==1)return x.yield(O.JSC$23266_watchApi.playerApi,2);_.UM();_.Ra(x)})};var Xqy;Xqy=_.t("kevlar_watch_while_counterfactual")?0:.25;_.E7S=function(O){_.h0.call(this);this.JSC$23269_watchApi=O;this.JSC$23269_watchWhileEnabled=_.t("kevlar_watch_while_v2");this.pipEnabled=_.t("web_enable_pip_on_miniplayer");o7a(this);ysI(this);Z1c(this)};
_.c(_.E7S,_.h0);var o7a=function(O){O.JSC$23269_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){thz(O)});
O.addOnDisposeCallback(function(){O.JSC$23269_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},ysI=function(O){var x,e;
_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23269_watchApi.playerApi,2);x=l.yieldResult;e=function(){thz(O)};
x.addEventListener("onCollapseMiniplayer",e);O.addOnDisposeCallback(function(){x.removeEventListener("onCollapseMiniplayer",e)});
_.Ra(l)})},Z1c=function(O){var x=O.JSC$23269_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&x&&O.JSC$23269_watchWhileEnabled&&(O.playerIntersectionObserver=new IntersectionObserver(function(e){O.handleIntersect(e)},{threshold:[Xqy]}),O.playerIntersectionObserver.observe(x),O.addOnDisposeCallback(function(){var e;
(e=O.playerIntersectionObserver)==null||e.disconnect()}))},thz=function(O){var x,e,l;
_.A(function(C){if(C.nextAddress==1){x=_.GG().resolve(_.Be);e=x.data;l=_.tt(e.response,!1,e.playerResponse);_.U7().miniplayerButtonActivation=!0;if(O.pipEnabled)return _.U7().watchPipActivation=!0,C.jumpTo(2);_.GG().resolve(_.Vs).collapse();return C.yield(_.U7().navigationFinishPromise,2)}if(C.nextAddress!=4)return _.U7().currentEndpoint=l.watchEndpoint||null,C.yield(_.GG().resolve(_.Vs).activate(O.JSC$23269_watchApi.getElement("PLAYER"),l,e),4);_.U7().userActivation=!0;_.Ra(C)})};
_.E7S.prototype.handleIntersect=function(O){qbS(this,O[O.length-1])};
var qbS=function(O,x){O.watchWhileJobId&&_.vn.cancelJob(O.watchWhileJobId);O.watchWhileJobId=_.vn.addLowPriorityJob(function(){var e,l;return _.A(function(C){if(C.nextAddress==1)return O.watchWhileJobId=void 0,e=_.GG().resolve(_.Vs),x.intersectionRatio>Xqy?e.isMiniplayerActive()?C.yield(e.deactivate(),0):C.jumpTo(0):(l=!e.isMiniplayerActive())?C.yield(Phc(O),5):C.jumpTo(4);C.nextAddress!=4&&(l=C.yieldResult);if(!l)return C.jumpTo(0);_.U7().watchWhileActivation=!0;return C.yield(csk(O),0)})},100)},
Phc=function(O){return _.A(function(x){return x.nextAddress==1?_.t("kevlar_watch_while_paused")?x.return(!0):x.yield(O.isPlayerPlaying(),2):x.return(x.yieldResult)})};
_.E7S.prototype.isPlayerPlaying=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$23269_watchApi.playerApi,2);x=e.yieldResult;return e.return(x.getPlayerStateObject().isPlaying)})};
var csk=function(O){var x,e;return _.A(function(l){x=_.GG().resolve(_.Be).data;e=_.tt(x.response,!1,x.playerResponse);_.U7().currentEndpoint=e.watchEndpoint||null;return l.yield(_.GG().resolve(_.Vs).activate(O.JSC$23269_watchApi.getElement("PLAYER"),e,x),0)})};_.pqU=function(O){_.h0.call(this);this.JSC$23273_watchApi=O;IfE(this);VhE(this)};
_.c(_.pqU,_.h0);var VhE=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23273_watchApi.playerApi,2);x=l.yieldResult;e=function(C){var Q;C.sessionData&&C.sessionData.itct&&(Q=C.sessionData.itct);var L=C.watchEndpoint;if(L&&C.sessionData&&C.sessionData.autonav)L=_.vAN(L,Q);else{var k;L=_.fZ(C.videoId,(k=C.listId)!=null?k:void 0,Q)}Q={endpoint:L};C.sessionData&&(Q.tempData=C.sessionData);O.JSC$23273_watchApi.dispatchEvent("yt-navigate",Q)};
x.addEventListener("onPlayVideo",e);O.addOnDisposeCallback(function(){x.removeEventListener("onPlayVideo",e)});
_.Ra(l)})},IfE=function(O){var x=function(e){O.onYtNavigate(e)};
O.JSC$23273_watchApi.getRoot().addEventListener("yt-navigate",x);O.addOnDisposeCallback(function(){O.JSC$23273_watchApi.getRoot().removeEventListener("yt-navigate",x)})};
_.pqU.prototype.onYtNavigate=function(O){var x=this,e,l,C,Q,L,k,M,G,X;return _.A(function(y){if(y.nextAddress==1){if(!((e=O.detail)==null?0:(l=e.endpoint)==null?0:l.watchEndpoint))return y.return();C=O.detail.endpoint.watchEndpoint;Q=x.JSC$23273_watchApi.getWatchNextResponse();k=_.q((L=Q)==null?void 0:L.currentVideoEndpoint,_.Hq);if(!k)return y.return();if(C.videoId!==k.videoId||C.playlistId&&C.playlistId!==k.playlistId||typeof C.startTimeSeconds!=="number")return y.jumpTo(0);O.stopPropagation();
(M=_.t("kevlar_watch_while_v2")&&!_.t("kevlar_watch_while_counterfactual"))&&_.GG().resolve(_.Vs).isMiniplayerActive()||x.JSC$23273_watchApi.scrollWatchTo(0,!0);return y.yield(x.JSC$23273_watchApi.playerApi,3)}G=y.yieldResult;X=C.startTimeSeconds;G.seekTo(X,void 0,void 0,void 0,84);G.wakeUpControls();X<G.getDuration()&&G.playVideo();_.Ra(y)})};_.U9o=function(O){_.h0.call(this);var x=this;this.JSC$23276_watchApi=O;var e=this.JSC$23276_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Roo(x)});
this.addOnDisposeCallback(function(){x.JSC$23276_watchApi.unsubscribeByKey(e)});
Roo(this);_.t("enable_ai_companion")&&(O=this.JSC$23276_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.sfL(_.GG().resolve(_.w8),O,"WATCH")};
_.c(_.U9o,_.h0);var Roo=function(O){var x=O.JSC$23276_watchApi.getWatchNextResponse();if(x){var e,l=[].concat(_.Kx((e=x==null?void 0:x.engagementPanels)!=null?e:[]));l.unshift.apply(l,_.Kx(afU(x)));O.JSC$23276_watchApi.provideRenderingData("ENGAGEMENT_PANELS",l)}},m9I=function(O){var x,e,l,C=(x=O.engagementPanels)==null?void 0:(e=x.find(function(E){var P;
return((P=E.engagementPanelSectionListRenderer)==null?void 0:P.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(l=e.engagementPanelSectionListRenderer.content)==null?void 0:l.structuredDescriptionContentRenderer,Q;
if(_.q(C==null?void 0:(Q=C.items)==null?void 0:Q.find(function(E){return!!_.q(E,rZa)}),rZa))return!0;
var L,k,M,G;if(O=(((L=O.contents)==null?void 0:(k=L.twoColumnWatchNextResults)==null?void 0:(M=k.results)==null?void 0:(G=M.results)==null?void 0:G.contents)||[]).find(function(E){return E.videoPrimaryInfoRenderer})){var X,y,Z;
return(((X=O.videoPrimaryInfoRenderer)==null?void 0:(y=X.videoActions)==null?void 0:(Z=y.menuRenderer)==null?void 0:Z.flexibleItems)||[]).some(function(E){E=_.q(E,_.vad);if(!E)return!1;var P,U;E=(P=E.topLevelButton)==null?void 0:(U=P.buttonViewModel)==null?void 0:U.onTap;if(!E)return!1;P=_.p_(E);if(!P)return!1;var W;return((W=_.q(P,_.Zr))==null?void 0:W.panelIdentifier)==="PAyouchat"})}return!1},afU=function(O){var x=[];
if(!_.t("web_watch_inject_placeholder_fantasy_panel_killswitch")){var e,l,C,Q=(e=O.engagementPanels)==null?void 0:(l=e.find(function(k){var M;return((M=k.engagementPanelSectionListRenderer)==null?void 0:M.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(C=l.engagementPanelSectionListRenderer.content)==null?void 0:C.structuredDescriptionContentRenderer,L;
_.q(Q==null?void 0:(L=Q.items)==null?void 0:L.find(function(k){return!!_.q(k,MSz)}),MSz)&&(e=_.Xcs("PAsports_fantasy"),e.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x.push(e))}m9I(O)&&(O=_.Xcs("PAyouchat"),O.engagementPanelSectionListRenderer.targetId="PAyouchat",O.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x.push(O));
return x};_.WHo=function(O){_.h0.call(this);this.JSC$23279_watchApi=O;sgh(this)};
_.c(_.WHo,_.h0);var sgh=function(O){O.JSC$23279_watchApi.registerActionHandler("yt-loop-command",function(x){hoH(O,x)});
O.JSC$23279_watchApi.registerActionHandler("yt-repeat-chapter-command",function(x){zoE(O,x)});
O.addOnDisposeCallback(function(){O.JSC$23279_watchApi.unregisterActionHandler("yt-loop-command");O.JSC$23279_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},hoH=function(O,x){var e;
_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23279_watchApi.playerApi,2);e=l.yieldResult;_.q(x,Gnh).loop?(e.setLoopRange({startTimeMs:Number(_.q(x,Gnh).startTimeMs),endTimeMs:Number(_.q(x,Gnh).endTimeMs),postId:_.q(x,Gnh).postId,type:"clips"}),e.playVideo()):e.setLoopRange(null);_.Ra(l)})},zoE=function(O,x){var e,l;
_.A(function(C){if(C.nextAddress==1)return C.yield(O.JSC$23279_watchApi.playerApi,2);e=C.yieldResult;l=_.q(x,ZOs).repeat;l==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(e.setLoopRange({startTimeMs:Number(_.q(x,ZOs).startTimeMs),endTimeMs:Number(_.q(x,ZOs).endTimeMs),type:"repeatChapter"}),e.playVideo()):l==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&e.setLoopRange(null);_.Ra(C)})};_.H1S=function(O){_.h0.call(this);this.JSC$23284_watchApi=O;rsh(this)};
_.c(_.H1S,_.h0);var rsh=function(O){O.JSC$23284_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(x){KHo(O,x)});
O.addOnDisposeCallback(function(){O.JSC$23284_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},KHo=function(O,x){var e,l,C,Q,L,k,M,G,X,y,Z;
_.A(function(E){if(E.nextAddress==1)return E.yield(O.JSC$23284_watchApi.playerApi,2);e=E.yieldResult;if(Q=(C=(l=_.q(x,EKS))==null?void 0:l.highlightedMenuItemKey)!=null?C:"")(k=(L=e).highlightSettingsMenuItem)==null||k.call(L,Q);if(X=(G=(M=_.q(x,EKS))==null?void 0:M.openMenuItemKey)!=null?G:"")(Z=(y=e).openSettingsMenuItem)==null||Z.call(y,X);_.Ra(E)})};var d9U=_.OQ("/youtube/app/watch/player_state","playerStateEntity");_.KH=function(O){_.h0.call(this);this.JSC$23287_watchApi=O;n7o(this)};
_.c(_.KH,_.h0);var ueS=function(O){switch(O){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"}},n7o=function(O){var x,e,l,C;
_.A(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$23287_watchApi.playerApi,2);x=Q.yieldResult;if(O.isDisposed())return Q.return();e=function(L){O.onPlayerStateChange(L)};
l=function(L){O.onAdStateChange(L)};
C=function(){O.onAdSkip()};
x.addEventListener("onStateChange",e);x.addEventListener("onAdStateChange",l);x.addEventListener("onAdSkip",C);O.addOnDisposeCallback(function(){x.removeEventListener("onStateChange",e);x.removeEventListener("onAdStateChange",l);x.removeEventListener("onAdSkip",C)});
_.Ra(Q)})},Yby=function(O){var x=_.dq(),e=x.dispatch;
a:switch(O.adsState){case -1:case 0:var l="ADS_STATE_NONE";break a;case 1:case 2:case 3:l="ADS_STATE_PLAYING";break a;default:l="ADS_STATE_UNKNOWN"}e.call(x,_.Dc("playerStateEntity",d9U,{key:d9U,playerState:ueS(O.playerState),adsState:l,videoId:O.videoId}))};
_.KH.prototype.onPlayerStateChange=function(O){var x=this,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(x.JSC$23287_watchApi.playerApi,2);e=l.yieldResult;if(x.isDisposed())return l.return();x.playerState=O;x.videoId=e.getVideoData().video_id;Yby(x);_.Ra(l)})};
_.KH.prototype.onAdStateChange=function(O){this.adsState=O;Yby(this)};
_.KH.prototype.onAdSkip=function(){this.adsState=0;Yby(this)};_.v7E=function(O){_.h0.call(this);var x=this;this.JSC$23291_watchApi=O;this.enableExternalPlaylistPanelInPlayer=_.t("delhi_web_player_use_external_playlist_panel");_.GG().resolve(_.gx).setPlayer(this.JSC$23291_watchApi.getElement("PLAYER"));O=this.JSC$23291_watchApi.subscribeToActiveChanged(function(e){x.onActiveChanged(e)});
this.addOnDisposeCallback(O);Bra(this)};
_.c(_.v7E,_.h0);var Bra=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return O.enableExternalPlaylistPanelInPlayer?l.yield(O.JSC$23291_watchApi.playerApi,2):l.return();x=l.yieldResult;e=function(){if(O.playlistPanelElement)O.playlistPanelElement.onToggleExpanded()};
x.addEventListener("onToggleExternalPlaylistPanel",e);O.addOnDisposeCallback(function(){x.removeEventListener("onToggleExternalPlaylistPanel",e)});
_.Ra(l)})};
_.v7E.prototype.onActiveChanged=function(O){var x=this,e=_.GG().resolve(_.gx),l=function(){ffE(x)};
O?(this.playlistPanelElement=this.JSC$23291_watchApi.getElement("PLAYLIST_PANEL"))?(e.setPlaylistComponent(this.playlistPanelElement),e.addEventListener("yt-playlist-data-updated",l),this.addOnDisposeCallback(function(){e.removeEventListener("yt-playlist-data-updated",l)}),ffE(this)):_.OC(Error("Xo")):(e.removeEventListener("yt-playlist-data-updated",l),e.cancelVideoSkip())};
var ffE=function(O){var x=_.GG().resolve(_.gx);O.JSC$23291_watchApi.provideRenderingData("PLAYLIST",x.getPlaylistData())};_.dB=function(O){_.h0.call(this);var x=this;this.JSC$23294_watchApi=O;this.onPageScroll=function(){x.scrollThrottle.fire();x.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.QI(this.onThrottledScroll,200,this);_.qq(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.QI(this.onMastheadThrottledScroll,50,this);_.qq(this,this.mastheadScrollThrottle);this.animation=new _.TE(function(e){x.JSC$23294_watchApi.getRoot().setScrollTop(e)});
O=_.mw(_.u9(),_.VI,function(){x.onFullscreenChanged()});
this.addOnDisposeCallback(O);Jsc(this);wqI(this);this.onThrottledScroll()};
_.c(_.dB,_.h0);
_.dB.prototype.onFullscreenChanged=function(){var O=this,x=this.JSC$23294_watchApi.getRoot();!this.pageScrollElement&&x.pageScrollElement?(this.pageScrollElement=x.pageScrollElement,x.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){O.pageScrollElement&&O.pageScrollElement.removeEventListener("scroll",O.onPageScroll)})):this.pageScrollElement&&!x.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Jsc=function(O){window.addEventListener("scroll",O.onPageScroll);O.addOnDisposeCallback(function(){window.removeEventListener("scroll",O.onPageScroll)})},wqI=function(O){O.JSC$23294_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(x){a:{var e;
if(e=O.JSC$23294_watchApi.getRoot().contains(x)&&!O.animation.isAnimating()){e=x.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var l,C,Q=(x==null?void 0:(l=x.parentElement)==null?void 0:(C=l.parentElement)==null?void 0:C.id)==="fixed-secondary";e=!(e&&Q)}if(e){if(_.t("kevlar_watch_scroll_manager_absolute_offset_killswitch"))l=x.offsetTop;else for(l=0,C=x;C!==null;)l+=C.offsetTop,l-=C.scrollTop,C=C.offsetParent;C=l;l=C-24;x=C+x.offsetHeight+24;C=O.JSC$23294_watchApi.getRoot().getPageScrollingElement();
e=O.JSC$23294_watchApi.getRoot().getScrollTop();Q=e+C.clientHeight-56;if(l<e+56)x=l-56;else if(x>Q)x-=C.clientHeight;else break a;O.scrollWatchTo(Math.max(0,x),!0)}}});
O.addOnDisposeCallback(function(){O.JSC$23294_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.dB.prototype.onThrottledScroll=function(){var O=_.u9(),x=O.dispatch,e=this.JSC$23294_watchApi.getRoot().getScrollTop();x.call(O,_.j6({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:e}}))};
_.dB.prototype.onMastheadThrottledScroll=function(){this.JSC$23294_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23294_watchApi.getRoot().getScrollTop())};
_.dB.prototype.scrollWatchTo=function(O,x){(x===void 0?0:x)?this.animation.start(this.JSC$23294_watchApi.getRoot().getScrollTop(),Math.max(0,O),500):this.JSC$23294_watchApi.getRoot().setScrollTop(O)};_.Nra=function(O){_.h0.call(this);var x=this;this.JSC$23297_watchApi=O;var e=this.JSC$23297_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Sbs(x)}),l=this.JSC$23297_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jga(x)});
this.addOnDisposeCallback(function(){x.JSC$23297_watchApi.unsubscribeByKey(e);x.JSC$23297_watchApi.unsubscribeByKey(l)});
Sbs(this);jga(this)};
_.c(_.Nra,_.h0);
var Sbs=function(O){var x,e,l,C=(l=(x=O.JSC$23297_watchApi.getPlayerResponse())==null?void 0:(e=x.videoDetails)==null?void 0:e.title)!=null?l:"";O.JSC$23297_watchApi.dispatchEvent("yt-update-title",C)},jga=function(O){var x,e,l,C,Q,L,k,M=(k=((L=(x=O.JSC$23297_watchApi.getWatchNextResponse())==null?void 0:(e=x.contents)==null?void 0:(l=e.twoColumnWatchNextResults)==null?void 0:(C=l.results)==null?void 0:(Q=C.results)==null?void 0:Q.contents)!=null?L:[]).find(function(G){return!!G.videoPrimaryInfoRenderer}))==null?
void 0:k.videoPrimaryInfoRenderer;
(x=_.db(M==null?void 0:M.title))&&O.JSC$23297_watchApi.dispatchEvent("yt-update-title",x)};_.$9c=function(O){_.h0.call(this);this.JSC$23300_watchApi=O;g7I(this)};
_.c(_.$9c,_.h0);var g7I=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$23300_watchApi.playerApi,2);x=l.yieldResult;e=function(){O.onYpcContentRequest()};
x.addEventListener("onYpcContentRequest",e);O.addOnDisposeCallback(function(){x.removeEventListener("onYpcContentRequest",e)});
_.Ra(l)})};
_.$9c.prototype.onYpcContentRequest=function(){var O,x,e,l,C,Q=(O=this.JSC$23300_watchApi.getWatchNextResponse())==null?void 0:(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.secondaryResults)==null?void 0:(C=l.secondaryResults)==null?void 0:C.offerModule,L,k,M,G;O=(G=(M=(k=(L=Q==null?void 0:Q.episodeOfferModuleRenderer)!=null?L:Q==null?void 0:Q.movieOfferModuleRenderer)!=null?k:Q==null?void 0:Q.unlimitedOfferModuleRenderer)!=null?M:Q==null?void 0:Q.liveOfferModuleRenderer)!=
null?G:Q==null?void 0:Q.tvfilmOfferModuleRenderer;var X,y,Z;Q=(Z=Q==null?void 0:(X=Q.tvfilmOfferModuleRenderer)==null?void 0:(y=X.actionButtons)==null?void 0:y.length)!=null?Z:0;y=Math.max(Q-1,0);var E,P,U;X=(U=O==null?void 0:(E=O.offerButton)==null?void 0:E.buttonRenderer)!=null?U:O==null?void 0:(P=O.actionButtons)==null?void 0:P[y].buttonRenderer;var W,z;(E=(z=(W=X==null?void 0:X.navigationEndpoint)!=null?W:X==null?void 0:X.serviceEndpoint)!=null?z:X==null?void 0:X.command)&&_.lV.instance.resolveCommand(E)};
}catch(e){_._DumpException(e)}
try{
var sFO,UwX,pRQ;_.Rre=function(){var O=_.HX.clone(VxX),x;return(new _.If(function(e,l){O.onSuccess=function(C){_.TT7(C)?e(new pRQ(C)):l(new _.WA("Request failed, status="+_.tq(C),"net.badstatus",C))};
O.onError=function(C){l(new _.WA("Unknown request error","net.unknown",C))};
O.onTimeout=function(C){l(new _.WA("Request timed out","net.timeout",C))};
x=_.pb("//googleads.g.doubleclick.net/pagead/id",O)})).thenCatch(function(e){if(e instanceof _.Vn){var l;
(l=x)==null||l.abort()}return _.Za(e)})};
_.aE4=function(O){a:{var x="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(x="EMBEDDED_PLAYER_MODE_PFL");var e=O.raw_embedded_player_response;if(!e&&(O=O.embedded_player_response))try{e=JSON.parse(O)}catch(C){break a}if(e)b:for(var l in UwX)if(UwX[l]==e.embeddedPlayerMode){x=UwX[l];break b}}return x==="EMBEDDED_PLAYER_MODE_PFL"};
_.mwL=function(){if(_.t("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.fmr())return Error("wf");var O=_.wz("PLAYER_VARS",{});if(_.HX.get(O,"privembed",!1)=="1")return Error("xf");if(_.aE4(O))return Error("yf")};
sFO=function(O){switch(O){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:_.vd(O,"unknown result type")}};
_.WCQ=function(O,x,e){x=_.$zW[x];e={detected:O===0,source:x.f1m,detectionResult:sFO(O),contentCpn:e};_.uU("biscottiBasedDetection",e);_.skT.increment(x.f1m,O);x.c9v!==void 0&&_.JZ("CATSTAT",_.N68(O,x))};
_.hz=function(O,x){var e={};e.key=O;e.value=x;return _.W0n().then(function(l){return new Promise(function(C,Q){try{var L=l.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(e);L.onsuccess=function(){C()};
L.onerror=function(){Q()}}catch(k){Q(k)}})})};
_.zrw=function(){var O=_.yF("user_engagement_experiments_rate_limit_ms"),x=hrL.get("last-user-engagement-exp-trigger-timestamp");return!x||(0,_.F2)()>=x+O?(hrL.set("last-user-engagement-exp-trigger-timestamp",(0,_.F2)()),!0):!1};
_.z2=function(O,x,e,l,C){x=x===void 0?null:x;e=e===void 0?null:e;l=l===void 0?null:l;C=C===void 0?null:C;O={youThereEventType:O};e&&(O.lactThresholdMs=e.lactThresholdMs,O.mediaPosSec=e.promptDelaySec,O.lactServerRequestMs=e.lactServerRequestMs,O.triggerReason=e.triggerReason);C!=null&&(O.renderingMediaPosSec=Math.round(C));x||(x=_.Pq());x&&(O.clientScreenNonce=x);l&&(O.clientPlaybackNonce=l);_.uU("youThere",O)};
UwX={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"};pRQ=function(O){this.xhr=O};
_.WA=function(O,x,e){_.ew.call(this,O+", errorCode="+x);this.errorCode=x;this.xhr=e;this.name="PromiseAjaxError"};
_.c(_.WA,_.ew);var VxX={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var hrL=new _.jC("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.IEO=function(O){return _.j6({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:O})};
}catch(e){_._DumpException(e)}
try{
var B6,I2w,pUc,Rhz,Ugy,a2y,sRE,uCo,YOI,BTU,mga,V6k,r3w,zh7,J37;_.c3a=function(){var O=window.location.hash;O.charAt(0)==="#"&&(O=O.charAt(1)==="!"?O.substring(2):O.substring(1));return _.lu(O)};
B6=function(O,x,e){var l;return _.A(function(C){if(C.nextAddress==1)return C.yield(x(),2);l=C.yieldResult;e(l,O);_.Ra(C)})};
I2w=function(){return _.A(function(O){return O.nextAddress==1?O.yield((_.mwL()!==void 0?_.Za(Error("zf")):_.Rre()).then(function(){return 1},function(x){if(x.message==="Biscotti id is disabled")return 3;
_.ft("Failed fetching bid");return 0}),2):O.return(O.yieldResult)})};
pUc=function(){var O=_.fA("ZW1iZWQtcGxheWVyI3M3bmZvd2NiMTUxNXl0LWhhdmVuLQ=="),x=_.fA("cmFtZSNyajl1M3AzcDFkbnJpZg==");return document.querySelector(x+V6k+O)?0:1};
Rhz=function(){return _.HzL(_.bX)};
Ugy=function(){return _.KA$()===0?0:_.dzL()};
a2y=function(){return _.vR8(_.Cln([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
sRE=function(){return _.Uzr(mga)};
_.WRI=function(O){_.A(function(x){switch(x.nextAddress){case 1:return x.yield(B6("b.f_",I2w,O),2);case 2:return x.yield(B6("j.s_",_.pIW,O),3);case 3:return x.yield(B6("r.s_",_.cMn,O),4);case 4:return x.yield(B6("e.h_",sRE,O),5);case 5:if(!_.t("ab_det_sc_inj")){x.jumpTo(6);break}return x.yield(B6("s.i_",_.z48,O),6);case 6:if(_.t("ab_deg_unex_thr")){x.jumpTo(8);break}return x.yield(B6("a.o_",_.WAr,O),8);case 8:if(_.t("ks_get_o_pp")){x.jumpTo(10);break}return x.yield(B6("g.o_",_.s07,O),10);case 10:if(_.t("ks_det_gpbl")){x.jumpTo(12);
break}return x.yield(B6("p.i_",_.mzr,O),12);case 12:return x.yield(B6("f.i_",_.Dzn,O),14);case 14:return x.yield(B6("a.b_",_.qqi,O),15);case 15:return x.yield(B6("p.m_",_.XIi,O),16);case 16:if(!_.t("ab_det_el_h_v2")){x.jumpTo(17);break}return x.yield(B6("n.h_",a2y,O),17);case 17:return x.yield(B6("o.p_",Rhz,O),19);case 19:return x.yield(B6("e.i_",pUc,O),20);case 20:if(_.t("ab_det_apm"))return x.yield(B6("o.a_",Ugy,O),0);x.jumpTo(0)}})};
_.hhH=function(O,x){O={videoId:O};x&&(O.playlistId=x);return O};
_.HZa=function(){if(_.fmr()){var O=_.wz("PLAYER_VARS",{});if(_.HX.get(O,"privembed",!1)!="1"&&!_.aE4(O)){var x=function(){zh7=!0;"google_ad_status"in window?_.JZ("DCLKSTAT",1):_.JZ("DCLKSTAT",2)};
try{_.ag(_.wwY,x)}catch(e){}r3w.push(_.vn.addLowPriorityJob(function(){if(!(zh7||"google_ad_status"in window)){try{_.H6V(_.wwY.toString(),x)}catch(e){}zh7=!0;_.JZ("DCLKSTAT",3)}},5E3))}}};
_.KRS=function(O,x,e){e=e===void 0?!1:e;var l=Math.max(O.width,_.KxE);if(_.t("kevlar_watch_feed_big_thumbs")&&O.width>=1550-_.DT()&&O.height>=800)l-=_.vKH;else if(O.width>=_.dJ){var C=_.dDH+_.nKT+_.Kq;_.t("kevlar_watch_feed_big_thumbs")&&(C=_.Bz7);l-=C}else l-=_.dDH;l=Math.min(l,_.umU);C=240;e&&(C=380);x<.5624||(!_.t("kevlar_watch_flexy_disable_small_window_sizing")&&(O.height<630&&O.width>=657||O.height>=630&&O.width>=_.dJ&&O.width<1327)?C=360:!_.t("kevlar_watch_flexy_disable_large_window_sizing")&&
O.height>=630&&O.width>=1327&&(C=480));var Q=Math.min(l*x,O.height-(56+_.HOk+_.Y0E));Q=Math.max(Q,C);x<1?l=Q/x:O.width>=_.dJ&&(l=_.KRS(O,.5625,e).width);return new _.pu(Math.round(l),Math.round(Q))};
_.dgh=function(O){var x=0;O.indexOf("h")!=-1&&(O=O.split("h"),x=O[0]*60*60,O=O[1]);O.indexOf("m")!=-1&&(O=O.split("m"),x=O[0]*60+x,O=O[1]);O.indexOf("s")!=-1?(O=O.split("s"),x=O[0]*1+x):x=O*1+x;return x};
_.nma=function(){_.yF("service_worker_push_logged_out_prompt_watches")!=-1&&_.rt("WatchCount").then(function(O){O>=100||_.hz("WatchCount",O+1)})};
uCo=function(O){var x=O.externalVideoId||"";return x?O.isShortsEligible?"https://www.youtube.com/shorts/"+x:"https://www.youtube.com/watch?v="+x:""};
YOI=function(O){var x=[];O.viewCount&&x.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:O.viewCount});O.likeCount&&x.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:O.likeCount});return x};
BTU=function(O){var x,e,l={"@context":"https://schema.org","@type":"VideoObject",description:_.db(O.description),duration:"PT"+(O.lengthSeconds||"0")+"S",embedUrl:O.embed?O.embed.iframeUrl:"",name:_.db(O.title),thumbnailUrl:((x=O.thumbnail)==null?void 0:(e=x.thumbnails)==null?void 0:e.map(function(X){return X&&X.url||""}))||[],
uploadDate:O.publishDate};_.t("mweb_video_schema_id_killswitch")||(l["@id"]=uCo(O));x=YOI(O);x.length&&(l.interactionStatistic=x);O.category&&(l.genre=O.category);O.ownerChannelName&&(l.author=O.ownerChannelName);O.liveBroadcastDetails&&(l.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:O.liveBroadcastDetails.startTimestamp,endDate:O.liveBroadcastDetails.endTimestamp}]);if(O.learningResource){O=O.learningResource;l["@type"]=["VideoObject","LearningResource"];var C;if((C=O.learningResourceType)==
null?0:C.length)l.learningResourceType=O.learningResourceType[0];var Q;if((Q=O.educationalAlignment)==null?0:Q.length)l.educationalAlignment={"@type":"AlignmentObject",targetName:O.educationalAlignment[0]};var L;if((L=O.educationalLevel)==null?0:L.length){C=O.educationalLevel[0];var k;if((k=O.educationalLevelCountry)==null?0:k.length)C+=" ("+O.educationalLevelCountry+")";l.educationalLevel=C}var M,G;if(((M=O.learningResourceType)==null?0:M.length)&&O.learningResourceType[0]==="Problem walkthrough"&&
((G=O.problemDescriptions)==null?0:G.length))for(l.hasPart=[],k=_.T(O.problemDescriptions),M=k.next();!M.done;M=k.next())C=M.value,M=C.problemDescriptionText,G=C.startOffset,C=C.url,M&&G!==void 0&&C&&l.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:M,text:M,startOffset:G,url:C})}return l};
_.vm7=function(O){return _.j6({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:O}})};
mga=[[["I2x1NWlhMWw5b2hyMnByaW1hcnk=",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjbHZ6bDlseWhyanVheXRkLXR3by1j","bGUtc2NvcGUjb3A3YmpiNzl1aWxzc3R5"],null],["dGhlYWQtYWQjdzU1djl0aHJzdXhwbWFz",["ZC1yZW5kZXJlciM0ZXg4Y29mYzg5ajN5dGQtcmljaC1ncmk="],null],[null,["ZC1yZW5kZXJlciNkd3Y3YzUzMWRya2h5dGQtcmljaC1ncmk=","bHN0eWxlLXNjb3BlI2JvZDM5eGViY2U="],null],[null,["ZXJlciMzb2d1eWtyb2kyMzV5dGQtYmFubmVyLXByb21vLXJlbmQ=","bGUtc2NvcGUjYmtrMjlxdzFiYjI0c3R5"],null],[null,["LXNsb3QtcmVuZGVyZXIjZWVwbGI2cnFvZGM4eXRkLWFk"],
null]],[["NnBsYXllci1hZHMjejIwbm4waDNicm0=",null,null]],[[null,null,"bmRlcmVyI2I1cjZvMnYxa21rOXl0bHItYmFubmVyLWN0YS1yZQ=="]]];V6k="#";r3w=[];zh7=!1;_.f2c=["engagement-panel-ads"];J37=new _.$x("updateSentimentBarStateCommand");_.wUz=new _.$x("showSurveyCommand");_.v6=new _.$x("changeMarkersVisibilityCommand");var jRw,NTU,OAc,iZI,$gS,fH;_.SOy=function(O,x){this.playerProvider_=O;this.actionSenderElement_=x;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.SOy.prototype.reset=function(){jRw(this);this.isUserPredictedAbsent_=!1};
jRw=function(O,x){!O.youThereData_||O.showWarningJob_||x!==void 0&&x||(_.z2("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Pq(),O.youThereData_,O.clientPlaybackNonce_),_.Yb());_.vn.cancelJob(O.showWarningJob_);O.showWarningJob_=0;_.vn.cancelJob(O.showBlockingWarningJob_);O.showBlockingWarningJob_=0;_.vn.cancelJob(O.pausePlaybackJob_);O.pausePlaybackJob_=0;O.youThereData_=null;O.clientPlaybackNonce_=void 0;O.inYouThereFlow_=!1};
_.gmy=function(O,x){var e,l,C;_.A(function(Q){if(Q.nextAddress==1)return O.reset(),Q.yield(O.playerProvider_().getPlayerPromise(),2);e=Q.yieldResult;O.clientPlaybackNonce_=e.getVideoData().cpn;O.youThereData_=x.configData.youThereData;if(!O.youThereData_)return Q.return();if(O.youThereData_.triggerReason&&O.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.zrw())return _.z2("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Pq(),O.youThereData_,O.clientPlaybackNonce_),Q.return();l=O.youThereData_.promptDelaySec;
C=e.getCurrentTime();O.showWarningJob_=_.vn.addLowPriorityJob(function(){return _.A(function(L){O.showWarningJob_=0;return L.yield(NTU(O),0)})},Math.max(l-C,0)*1E3);
_.Ra(Q)})};
NTU=function(O){var x,e,l,C,Q,L;return _.A(function(k){if(k.nextAddress==1)return k.yield(O.playerProvider_().getPlayerPromise(),2);if(k.nextAddress!=3)return x=k.yieldResult,e=x.getCurrentTime(),k.yield($gS(O),3);l=k.yieldResult;if(!l||!O.youThereData_)return k.return();if(_.t("check_user_lact_at_prompt_shown_time_on_web")&&(C=parseInt(O.youThereData_.lactThresholdMs,10),_.Gl()<C))return _.z2("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Pq(),O.youThereData_,O.clientPlaybackNonce_),k.return();if(O.youThereData_.playbackPauseDelayMs<=
0)return iZI(O),k.return();!_.t("external_fullscreen")&&(Q=_.Bq())&&(O.ignoreFullscreenExitUserActivity_=!0,_.vn.addLowPriorityJob(function(){O.ignoreFullscreenExitUserActivity_=!1},2E3),_.vq(Q));
O.youThereData_.showToastWarningPrompt&&(fH(O,O.youThereData_.showWarningActions),O.inYouThereFlow_=!0,_.z2("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Pq(),O.youThereData_,O.clientPlaybackNonce_,e),_.z2("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Pq(),O.youThereData_,O.clientPlaybackNonce_,e));L=0;O.youThereData_.blockingPromptDelayMs&&(L=O.youThereData_.blockingPromptDelayMs);O.showBlockingWarningJob_=_.vn.addLowPriorityJob(function(){return _.A(function(M){O.showBlockingWarningJob_=0;return M.yield(OAc(O),
0)})},L);
_.Ra(k)})};
OAc=function(O){var x,e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield($gS(O),2);x=C.yieldResult;if(!O.youThereData_)return C.return();x&&(O.youThereData_.showBlockingWarningAction&&(_.z2("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Pq(),O.youThereData_,O.clientPlaybackNonce_),(e=_.q(O.youThereData_.showBlockingWarningAction,_.ih))?fH(O,e.commands):fH(O,[O.youThereData_.showBlockingWarningAction]),O.inYouThereFlow_=!0),l=O.youThereData_.playbackPauseDelayMs,O.pausePlaybackJob_=
_.vn.addLowPriorityJob(function(){return _.A(function(Q){O.pausePlaybackJob_=0;return Q.yield(iZI(O),0)})},l));
_.Ra(C)})};
iZI=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield($gS(O),2);x=e.yieldResult;if(!O.youThereData_)return e.return();x&&(_.z2("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Pq(),O.youThereData_,O.clientPlaybackNonce_),fH(O,O.youThereData_.showPausedActions),O.inYouThereFlow_=!0);_.Ra(e)})};
_.SOy.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var O=_.q(this.youThereData_.userActiveDuringFlowAction,_.ih);O?fH(this,O.commands):fH(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.z2("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Pq(),this.youThereData_,this.clientPlaybackNonce_),_.Yb());jRw(this,!0)}_.xcH(this,!1)};
_.e1S=function(O){_.z2("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Pq(),O.youThereData_,O.clientPlaybackNonce_)};
$gS=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(O.playerProvider_().getPlayerPromise(),2);x=l.yieldResult;e=x.getPlayerState();return l.return(e==-1||e==1||e==3)})};
_.xcH=function(O,x){var e;_.A(function(l){if(l.nextAddress==1){if(O.isUserPredictedAbsent_==x)return l.jumpTo(0);O.isUserPredictedAbsent_=x;return l.yield(O.playerProvider_().getPlayerPromise(),3)}e=l.yieldResult;e.setUserEngagement(x);x&&_.z2("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Pq(),O.youThereData_,O.clientPlaybackNonce_);_.Ra(l)})};
fH=function(O,x){if(_.t("handle_service_request_actions")||_.t("kevlar_youthere_service_endpoint_actions_killswitch"))_.gr(O.actionSenderElement_,x,O.actionSenderElement_);else{x=_.T(x);for(var e=x.next();!e.done;e=x.next())e=e.value,e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.sendPost?_.N9(O.actionSenderElement_,[e]):_.gr(O.actionSenderElement_,[e],O.actionSenderElement_)}};var lS7;var C9I;var J2=function(){var O=_.a.apply(this,arguments)||this;O.systemIcons=_.t("kevlar_system_icons");O.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return O};
_.c(J2,_.a);J2.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var O=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(O=this.data.percentIfLiked||0,this.activated=!0):(O=this.data.percentIfIndifferent||0,this.activated=!1);_.$U(this.hostElement).querySelector("#like-bar").style.width=O+"%"}};
J2.prototype.handleUpdateSentimentBarStateCommand=function(O){this.data&&this.set("data.likeStatus",_.q(O,J37).likeStatus)};
J2.prototype.observeLikeStatus=J2.prototype.observeLikeStatus;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],J2.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],J2.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],J2.prototype,"activated",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],J2.prototype,"systemIcons",void 0);_.B([_.T1("data.likeStatus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],J2.prototype,"observeLikeStatus",null);_.B([_.H({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],J2);
_.n(J2,"ytd-sentiment-bar-renderer",function(){if(C9I!==void 0)return C9I;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return C9I=O},{mode:1});var Qxz;var wB=function(){var O=_.a.apply(this,arguments)||this;O.small=!0;return O};
_.c(wB,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],wB.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],wB.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],wB.prototype,"small",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],wB);
_.n(wB,"ytd-video-view-count-renderer",function(){if(Qxz!==void 0)return Qxz;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Qxz=O},{mode:_.gq("kevlar_poly_si_batch_j080")?1:2});var Ss=function(){var O=_.a.apply(this,arguments)||this;O.infoFormattedStrings=[];O.wrapVideoActions=_.t("kevar_watch_wrap_video_actions");O.hideSentimentBar=_.t("kevlar_watch_hide_sentiment_bar");O.actionMap={};return O};
_.c(Ss,_.a);_.b=Ss.prototype;_.b.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.t("web_modern_buttons"),forceIconButton:!_.t("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.b.dataChanged=function(){_.t("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.b.computeInfoFormattedStrings=function(O){if(!O)return[];var x=[];O.dateText&&x.push(O.dateText);O.stationName&&x.push(O.stationName);O.rating&&x.push(O.rating);O.startEndTimeTemplate&&O.startTimeUtcMillis&&O.endTimeUtcMillis&&x.push(_.KA(_.$qE(_.db(O.startEndTimeTemplate),Number(O.startTimeUtcMillis),Number(O.endTimeUtcMillis))));O.upNextProgramText&&x.push(O.upNextProgramText);return x};
_.b.scheduleInitialUpdatedMetadataRequest=function(){var O,x=(O=this.data)==null?void 0:O.updatedMetadataEndpoint;if(x){var e;O=Number((e=_.q(x,_.V73))==null?void 0:e.initialDelayMs);e=isNaN(O)?250:O;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),e)}};
_.b.setSentimentBarWidth=function(){var O=this;_.A_(this,function(){var x=_.$U(O.hostElement).querySelector("ytd-menu-renderer");if(x){x=x.topLevelButtons;for(var e=0,l=0;l<x.length;l++){var C=x[l],Q=O.get("toggleButtonSupportedData.toggleButtonIdData.id",C.data);if(Q==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||Q==="TOGGLE_BUTTON_ID_TYPE_LIKE")e+=C.clientWidth+8;else break}e&&(O.sentiment.style.width=e-8+" px")}})};
_.b.fetchUpdatedMetadata=function(O){var x;O&&(x={continuation:O});var e;(O=(e=this.data)==null?void 0:e.updatedMetadataEndpoint)&&_.GG().resolve(_.Xc).resolveCommand(O,{form:Object.assign({},x,{element:this.hostElement})})};
_.b.onYtServiceRequestSent=function(O,x){x.endpoint&&_.q(x.endpoint,_.I$)&&(this.hasUpdateSentimentBarStateCommands()&&!_.t("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.q(x.endpoint,_.I$).status),this.setSentimentBarWidth())};
_.b.hasUpdateSentimentBarStateCommands=function(){var O,x,e,l,C=(l=(O=this.data)==null?void 0:(x=O.videoActions)==null?void 0:(e=x.menuRenderer)==null?void 0:e.topLevelButtons)!=null?l:[];O=_.T(C);for(x=O.next();!x.done;x=O.next()){x=x.value;C=l=e=void 0;var Q=(e=x.toggleButtonRenderer)==null?void 0:(l=e.toggleButtonSupportedData)==null?void 0:(C=l.toggleButtonIdData)==null?void 0:C.id;if(Q==="TOGGLE_BUTTON_ID_TYPE_LIKE"||Q==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){l=e=void 0;x=(l=_.q((e=x.toggleButtonRenderer)==
null?void 0:e.defaultServiceEndpoint,_.ih))==null?void 0:l.commands;if(!x)break;x=_.T(x);for(e=x.next();!e.done;e=x.next())if(_.q(e.value,J37))return!0}}return!1};
_.b.onYtServiceRequestCompleted=function(O,x){var e;(O=(e=x.data)==null?void 0:e.loggingDirectives)&&_.shi(_.k0(),O);this.get("continuation.timedContinuationData",x.data)&&this.data&&this.data.updatedMetadataEndpoint&&(x=x.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,x.continuation),x.timeoutMs))};
_.b.computeHasDateText=function(O){return!!O&&!!O.dateText};
_.Dy.Object.defineProperties(Ss.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;return!((l=(O=this.data)==null?void 0:(x=O.videoActions)==null?void 0:(e=x.menuRenderer)==null?void 0:e.flexibleItems)==null||!l.length)}}});
Ss.prototype.onYtServiceRequestCompleted=Ss.prototype.onYtServiceRequestCompleted;Ss.prototype.onYtServiceRequestSent=Ss.prototype.onYtServiceRequestSent;Ss.prototype.dataChanged=Ss.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Ss.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.GT.YtTaskEmitterBehavior),_.v("design:type",Object)],Ss.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ss.prototype,"data",void 0);_.B([_.R({computed:"computeInfoFormattedStrings(data)"}),_.v("design:type",Array)],Ss.prototype,"infoFormattedStrings",void 0);
_.B([_.R({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Ss.prototype,"hasDateText",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ss.prototype,"wrapVideoActions",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ss.prototype,"hideSentimentBar",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Ss.prototype,"flexMenuEnabled",null);
_.B([_.kX("#sentiment"),_.v("design:type",Object)],Ss.prototype,"sentiment",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ss.prototype,"dataChanged",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],Ss.prototype,"onYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],Ss.prototype,"onYtServiceRequestCompleted",null);
_.n(Ss,"ytd-video-primary-info-renderer",function(){if(lS7===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);lS7=O}O=lS7;return O},{mode:1});var bAS;var js=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return O};
_.c(js,_.a);_.b=js.prototype;_.b.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"}}}};
_.b.dataChanged=function(){var O;this.descriptionToggled=!((O=this.data)==null||!O.defaultExpanded);var x;this.collapsed=this.descriptionAlwaysCollapsed||!((x=this.data)==null?0:x.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.O9(110509);this.showLessClientVe=_.O9(110510);O=_.Pq();x=_.q9();O&&x&&_.h3(O,x,[this.showMoreClientVe,this.showLessClientVe])};
_.b.onYtExpanderMoreTapped=function(){var O,x=(O=this.data)==null?void 0:O.showMoreCommand;x&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(x);(O=_.Pq())&&this.showMoreClientVe&&_.KZ(O,this.showMoreClientVe)};
_.b.onYtExpanderLessTapped=function(){var O=_.Pq();O&&this.showLessClientVe&&_.KZ(O,this.showLessClientVe);var x;(O=(x=this.data)==null?void 0:x.showLessCommand)&&this.componentBehavior.resolveCommand(O)};
_.b.handleUpdateDateTextAction=function(O){this.data&&this.data.dateText&&this.set("data.dateText",_.q(O,_.aKE).dateText)};
_.b.handleUpdateDescriptionAction=function(O){if(O=_.q(O,_.qqd))O.isEmpty||!O.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Ps(O.description)):this.set("data.description",O.description)};
_.b.onYtChangeEngagementPanelVisibilityAction=function(O){if(_.t("web_structured_description_show_more")||_.t("web_engagement_panel_open_description")){var x,e=(x=_.q(O,_.qNd))==null?void 0:x.targetId,l;O=((l=_.q(O,_.qNd))==null?void 0:l.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";e==="engagement-panel-structured-description"&&O&&(this.descriptionToggled=!0)}};
_.b.updateCollapsedFromBinding=function(O){this.collapsed=O.detail.value};
_.b.updateDescriptionToggledFromBinding=function(O){this.descriptionToggled=O.detail.value};
_.b.updateCanCollapseFromBinding=function(O){this.canCollapse=O.detail.value};
_.Dy.Object.defineProperties(js.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.data)==null?void 0:(x=O.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer;return!!e&&!!e.rows&&e.rows.length>e.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.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}}});
js.prototype.onYtExpanderLessTapped=js.prototype.onYtExpanderLessTapped;js.prototype.onYtExpanderMoreTapped=js.prototype.onYtExpanderMoreTapped;js.prototype.dataChanged=js.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],js.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],js.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],js.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],js.prototype,"collapsed",void 0);_.B([_.R(),_.v("design:type",Boolean)],js.prototype,"descriptionToggled",void 0);
_.B([_.R(),_.v("design:type",Boolean)],js.prototype,"canCollapse",void 0);_.B([_.R(),_.v("design:type",Object)],js.prototype,"subscribeButtonData",void 0);_.B([_.R(),_.v("design:type",Number)],js.prototype,"descriptionCollapsedHeight",void 0);_.B([_.R(),_.v("design:type",Object)],js.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.R({value:function(){return _.t("web_watch_description_always_collapsed")}}),
_.v("design:type",Boolean)],js.prototype,"descriptionAlwaysCollapsed",void 0);_.B([_.kX("#description"),_.v("design:type",HTMLDivElement)],js.prototype,"description",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],js.prototype,"dataChanged",null);_.B([_.bH("yt-expander-more-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],js.prototype,"onYtExpanderMoreTapped",null);
_.B([_.bH("yt-expander-less-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],js.prototype,"onYtExpanderLessTapped",null);_.B([_.p("data.metadataRowContainer"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],js.prototype,"metadataCollapsible",null);_.B([_.p("data","structuredDescriptionContentRenderer"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],js.prototype,"hasInlineStructuredDescription",null);
_.B([_.p("data.attributedDescription"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],js.prototype,"hasAttributedDescription",null);_.B([_.p("hasInlineStructuredDescription","collapsed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],js.prototype,"loadStructuredDescription",null);_.B([_.p("data","structuredDescriptionContentRenderer","collapsed"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],js.prototype,"showInlineStructuredDescription",null);
_.B([_.p("data","hasInlineStructuredDescription","metadataCollapsible"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],js.prototype,"descriptionAlwaysCollapsible",null);
_.n(js,"ytd-video-secondary-info-renderer",function(){if(bAS===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);bAS=O}O=bAS;return O},{mode:2});var TbT;var N1=function(){return _.a.apply(this,arguments)||this};
_.c(N1,_.a);N1.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:_.t("web_modern_buttons"),forceIconButton:!_.t("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
N1.prototype.activate=function(O){O.appendTo(this.player);O.getPlayerPromise().then(function(x){x.setMinimized(!0)});
this.active=!0};
N1.prototype.deactivate=function(){var O=this.player.firstElementChild;O.getPlayerPromise().then(function(x){x.setMinimized(!1)});
this.active=!1;return O};
N1.prototype.onScrollUpTap=function(){var O=_.GG().resolve(_.Be).getCurrentPage();O&&O.setScrollTop(0)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],N1.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],N1.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],N1.prototype,"active",void 0);
_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.v("design:type",Boolean)],N1.prototype,"darkLaunch",void 0);_.B([_.kX("#player"),_.v("design:type",HTMLDivElement)],N1.prototype,"player",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],N1);
_.n(N1,"ytd-miniplayer-bar-renderer",function(){if(TbT!==void 0)return TbT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return TbT=O},{mode:1});_.wP(_.K(function(O){var x=_.Q5("script");_.uo(function(){var e;if(e=JSON)e=BTU(O.data()),e=_.e5(JSON.stringify(e).replace(/</g,"\\u003C"));var l=O.data(),C=_.db(l.title).trim().length===0,Q=!l.publishDate||l.publishDate.trim().length===0,L,k,M,G,X=!((L=l.thumbnail)==null?0:(k=L.thumbnails)==null?0:k.length)||!((M=l.thumbnail)==null?0:M.thumbnails[0].url)||((G=l.thumbnail)==null?void 0:G.thumbnails[0].url.trim().length)===0;x.value&&e&&!(C||Q||X)&&_.Cx(x.value,e)},"Vy9K7b");
return _.D("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.D("script",{el:x,type:"application/ld+json"}))},"Xn"),"player-microformat-renderer",{props:{data:_.vs}});
}catch(e){_._DumpException(e)}
try{
var OZc,xgw,l2c;_.i17=function(O){return O.watch.watchWindowSize};
OZc=function(O,x){var e=document.querySelector(O);e?x(e):setTimeout(function(){OZc(O,x)},1E3)};
xgw=function(O,x,e,l){if(O.isLockupToWatchTransitionEnabled){if(x){var C={};C=(C["watch-next-appears"]="player-watch-next-loaded",C);C["lockup-to-watch"]=O.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";O.viewTransitionCoordinator.registerElement(x,C)}e&&(x={},O.viewTransitionCoordinator.registerElement(e,(x["lockup-to-watch"]="below-lockup-to-watch",x["watch-next-appears"]="below-watch-next-loaded",x)));l&&(e={},O.viewTransitionCoordinator.registerElement(l,
(e["watch-next-appears"]="secondary-watch-next-loaded",e)))}};
_.ehT=function(O){return _.j6({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:O}})};
l2c=new _.$x("webWatchNextResponseExtensionData");var QRz=function(O){_.h0.call(this);var x=this;this.JSC$23304_watchApi=O;this.observer=null;var e=this.JSC$23304_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C_s(x)});
this.addOnDisposeCallback(function(){x.JSC$23304_watchApi.unsubscribeByKey(e);x.observer&&(x.observer.disconnect(),x.observer=null)});
C_s(this)};
_.c(QRz,_.h0);
var C_s=function(O){var x,e,l,C;_.A(function(Q){if(Q.nextAddress==1){O.observer&&(O.observer.disconnect(),O.observer=null);x=O.JSC$23304_watchApi.getWatchNextResponse();if(!x)return Q.return();e=_.q(x,l2c);return((l=e)==null?0:l.enableCreatorChatbot)&&e.creatorChannelId?Q.yield((0,_.Ccr)("NSzT5"),3):Q.jumpTo(0)}C=_.fEY;C(e.creatorChannelId);OZc("ytd-watch-metadata",function(L){O.observer=new MutationObserver(function(){var k,M;(k=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(M=k.closest("yt-button-view-model.ytd-menu-renderer"))==null||M.remove()});
O.observer.observe(L,{childList:!0,subtree:!0})});
_.Ra(Q)})};var TTk=function(O){_.h0.call(this);this.JSC$23308_watchApi=O;this.isSeeking=!1;bZh(this)};
_.c(TTk,_.h0);var bZh=function(O){_.A(function(x){if(x.nextAddress==1)return x.yield(LRy(O),2);kDT(O);_.Ra(x)})},LRy=function(O){var x,e,l,C,Q,L;
return _.A(function(k){if(k.nextAddress==1)return k.yield(O.JSC$23308_watchApi.playerApi,2);x=k.yieldResult;O.JSC$23308_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){A3c(O)});
e=O.JSC$23308_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kDT(O)});
l=function(M){O.onCueRangeEnter(M)};
x.addEventListener("onCueRangeEnter",l);C=function(M){O.onCueRangeExit(M)};
x.addEventListener("onCueRangeExit",C);Q=function(){O.isSeeking=!0};
x.addEventListener("SEEK_TO",Q);L=function(){O.onSeekComplete()};
x.addEventListener("SEEK_COMPLETE",L);O.addOnDisposeCallback(function(){O.JSC$23308_watchApi.unsubscribeByKey(e);x.removeEventListener("onCueRangeEnter",l);x.removeEventListener("onCueRangeExit",C);x.removeEventListener("SEEK_TO",Q);x.removeEventListener("SEEK_COMPLETE",L)});
_.Ra(k)})},M6E=function(O){var x,e,l,C,Q,L,k,M,G;
return(Q=(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.results)==null?void 0:(C=l.results)==null?void 0:C.contents)==null?void 0:(L=Q.find(function(X){var y,Z,E;return(y=X.itemSectionRenderer)==null?void 0:(Z=y.contents)==null?void 0:(E=Z[0])==null?void 0:E.shoppingTimelyShelfViewModel}))==null?void 0:(k=L.itemSectionRenderer)==null?void 0:(M=k.contents)==null?void 0:(G=M[0])==null?void 0:G.shoppingTimelyShelfViewModel},kDT=function(O){var x;
_.A(function(e){if(e.nextAddress==1)return(x=O.JSC$23308_watchApi.getWatchNextResponse())?e.yield(A3c(O),2):e.return();O.shoppingTimelyShelfViewModel=M6E(x);DgS(O);GDH(O);_.Ra(e)})},DgS=function(O){var x,e=(x=O.shoppingTimelyShelfViewModel)==null?void 0:x.offerIdToVariants;
e&&(x=e.filter(function(l){return l.key&&l.value}).map(function(l){return[l.key,
l.value]}),O.variantsMap=new Map(x))},GDH=function(O){var x,e,l,C,Q,L;
_.A(function(k){if(k.nextAddress==1)return(e=(x=O.shoppingTimelyShelfViewModel)==null?void 0:x.cueRanges)?k.yield(O.JSC$23308_watchApi.playerApi,2):k.return();l=k.yieldResult;O.cueRanges=e;C=_.T(e);for(Q=C.next();!Q.done;Q=C.next())L=Q.value,L.startTime!==void 0&&L.endTime!==void 0&&L.id!==void 0&&l.addCueRange("shopping_timely_shelf"+L.id,FRT(L.startTime),FRT(L.endTime));_.Ra(k)})},FRT=function(O){return Number(O.seconds||0)+(O.nanos||0)/1E9};
TTk.prototype.onCueRangeEnter=function(O){if(O.startsWith("shopping_timely_shelf")&&(this.activeCueId=O,!this.isSeeking)){var x=O.substring(21),e,l;O=(e=this.variantsMap)==null?void 0:(l=e.get(x))==null?void 0:l.shelf;if(_.t("web_enable_shopping_timely_shelf_client_overwrite")){var C,Q,L,k,M;e=O==null?void 0:(C=O.shoppingTimelyShelfContentViewModel)==null?void 0:(Q=C.button)==null?void 0:(L=Q[1])==null?void 0:(k=L.buttonViewModel)==null?void 0:(M=k.onTap)==null?void 0:M.innertubeCommand;var G,X;if(e==
null?0:(G=e.menuEndpoint)==null?0:(X=G.menu)==null?0:X.menuRenderer)e.openPopupAction=e.menuEndpoint,e.openPopupAction.popup=e.openPopupAction.menu,e.openPopupAction.popup.menuPopupRenderer=e.openPopupAction.popup.menuRenderer,e.openPopupAction.popupType="DROPDOWN",delete e.menuEndpoint,delete e.openPopupAction.menu,delete e.openPopupAction.popup.menuRenderer}O&&(this.JSC$23308_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",O),_.iU.getInstance().triggerAction("yt-show-shopping-timely-shelf"))}};
TTk.prototype.onCueRangeExit=function(O){O.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||_.iU.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))};
TTk.prototype.onSeekComplete=function(){this.isSeeking=!1;if(this.activeCueId)this.onCueRangeEnter(this.activeCueId);else _.iU.getInstance().triggerAction("yt-hide-shopping-timely-shelf")};
var A3c=function(O){var x,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return L.yield(O.JSC$23308_watchApi.playerApi,2);x=L.yieldResult;if(O.cueRanges)for(e=_.T(O.cueRanges),l=e.next();!l.done;l=e.next())C=l.value,C.id&&(Q="shopping_timely_shelf"+C.id,x.removeCueRange(Q));O.JSC$23308_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});_.iU.getInstance().triggerAction("yt-hide-shopping-timely-shelf");O.shoppingTimelyShelfViewModel=void 0;O.cueRanges=void 0;O.variantsMap=void 0;O.isSeeking=
!1;O.activeCueId=void 0;_.Ra(L)})};var EmI=function(O){_.h0.call(this);var x=this;this.JSC$23315_watchApi=O;O=_.mw(_.u9(),_.bvN,function(){XUo(x)});
this.addOnDisposeCallback(O);O=_.mw(_.u9(),_.i17,function(){XUo(x)});
this.addOnDisposeCallback(O);omz(this);y3k(this);ZZk()};
_.c(EmI,_.h0);var omz=function(O){var x=function(l){_.u9().dispatch(_.Sfc(l.matches))},e=window.matchMedia("(max-width: "+(999+_.DT())+"px)");
e.addListener(x);O.addOnDisposeCallback(function(){e.removeListener(x)});
x(e)},y3k=function(O){O.JSC$23315_watchApi.registerActionHandler("yt-window-resized",function(){ZZk()});
O.addOnDisposeCallback(function(){O.JSC$23315_watchApi.unregisterActionHandler("yt-window-resized")})},ZZk=function(){var O=_.L3();
_.u9().dispatch(_.j6({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:O.width,height:O.height}}}))},XUo=function(O){var x;
_.A(function(e){if(e.nextAddress==1)return e.yield(O.JSC$23315_watchApi.playerApi,2);x=e.yieldResult;x.setSize(NaN,NaN);_.Ra(e)})};var t6S=function(O){_.h0.call(this);var x=_.GG().resolve(_.r9);xgw(x,O.getElement("PLAYER_CONTAINER"),O.getElement("BELOW_THE_PLAYER"),O.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var e=O.getElement("PLAYER_CONTAINER"),l=O.getElement("BELOW_THE_PLAYER"),C=O.getElement("SECONDARY");x.isLockupToWatchTransitionEnabled&&(e&&_.Vu(x.viewTransitionCoordinator,e),l&&_.Vu(x.viewTransitionCoordinator,l),C&&_.Vu(x.viewTransitionCoordinator,C))})};
_.c(t6S,_.h0);_.nH=function(O){_.HA.call(this);var x=this;this.rootElement=O;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return x.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(e){x.initOrDisposeActiveModules(e)}));
this.onAttached()};
_.c(_.nH,_.HA);_.b=_.nH.prototype;_.b.getRoot=function(){return this.rootElement};
_.b.getElement=function(O){return this.rootElement.getElement(O)};
_.b.setPlayerResponse=function(O){this.playerResponse=O;this.publish("PLAYER_RESPONSE_UPDATED",O)};
_.b.getPlayerResponse=function(){return this.playerResponse};
_.b.setWatchNextResponse=function(O){this.watchNextResponse===O?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=O,this.publish("WATCH_NEXT_RESPONSE_UPDATED",O))};
_.b.getWatchNextResponse=function(){return this.watchNextResponse};
_.b.registerActionHandler=function(O,x){var e=this;if(_.t("web_watch_controller_reg_multiple_handlers_killswitch")){var l={};_.e2(_.iU.getInstance(),(l[O]=x,l),this.getRoot())}else this.actionHandlers.has(O)||(this.actionHandlers.set(O,[]),l={},_.e2(_.iU.getInstance(),(l[O]=function(){var C=_.vw.apply(0,arguments);return(e.actionHandlers.get(O)||[]).map(function(Q){return Q.apply(null,_.Kx(C))})},l),this.getRoot())),this.actionHandlers.get(O).push(x)};
_.b.unregisterActionHandler=function(O){if(_.t("web_watch_controller_reg_multiple_handlers_killswitch")){var x={};_.lD(_.iU.getInstance(),(x[O]=!0,x),this.getRoot())}else(x=this.actionHandlers.get(O))?(x.pop(),x.length===0&&(x={},_.lD(_.iU.getInstance(),(x[O]=!0,x),this.getRoot()),this.actionHandlers.delete(O))):_.ft(new _.ry("Attempted to unregister an action handler which is not registered.",O))};
_.b.addPageDisposeJob=function(O){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.m$L(this.rootElement.pageDisposeJobs,O)};
_.b.removePageDisposeJob=function(O){this.rootElement.pageDisposeJobs&&_.YW(this.rootElement.pageDisposeJobs,O)};
_.b.dispatchEvent=function(O,x){_.wr(this.rootElement,O,x)};
_.b.provideRenderingData=function(O,x){this.rootElement.provideRenderingData(O,x)};
_.b.scrollWatchTo=function(O,x){var e;(e=this.watchScrollManager)==null||e.scrollWatchTo(O,x)};
_.b.focusOnPlayer=function(){var O=this.getElement("PLAYER");_.A_(O,function(){if(O&&O.firstElementChild){var x=O.querySelector(".html5-video-player");x&&(_.yl(_.GG().resolve(_.Fn)),x.focus())}else _.ft(Error("Yo"))})};
_.b.subscribeToActiveChanged=function(O,x){x=x===void 0?!0:x;var e=_.mw(_.u9(),_.wva,function(l){O(l)});
x&&O(_.wva(_.u9().getState()));return e};
_.b.isActive=function(){return _.wva(_.u9().getState())};
_.b.onAttached=function(){var O=_.t("external_fullscreen");_.t("use_unified_flag_accessor")&&(O=_.GG().resolve(_.Lxh).retriever.getFlag(_.TDD));(O||_.SS("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var qOT=function(O){return O.getRoot().is==="ytd-watch-flexy"||O.getRoot().is==="ytd-watch-grid"},u$=function(O){return O.getRoot().is==="ytd-watch-fixie"};
_.nH.prototype.initPersistentModules=function(){if(u$(this)||qOT(this)&&_.t("kevlar_watch_flexy_theater_manager")){var O=new _.c_w(this);_.qq(this,O)}O=new _.MhS(this);_.qq(this,O);O=new _.W6(this);_.qq(this,O);O=new _.Trh(this);_.qq(this,O);O=new _.KH(this);_.qq(this,O);O=new _.h2(this);_.qq(this,O);if(u$(this)||qOT(this)&&_.t("kevlar_watch_flexy_playlist_manager"))O=new _.v7E(this),_.qq(this,O);_.t("web_thumbnail_to_watch_transition")&&(O=new t6S(this),_.qq(this,O))};
_.nH.prototype.initOrDisposeActiveModules=function(O){O?(this.watchScrollManager=new _.dB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.pqU(this)),_.t("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new TTk(this)),this.activeModules.push(new _.I9y(this)),u$(this)&&this.activeModules.push(new EmI(this)),this.activeModules.push(new _.Nra(this)),this.activeModules.push(new _.E7S(this)),(u$(this)||_.t("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.a9k(this)),this.activeModules.push(new _.WHo(this)),(u$(this)||_.t("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.$9c(this)),(u$(this)||_.t("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.n_c(this)),_.t("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.fyE(this),this.activeModules.push(this.watchCinematicManager)),_.t("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.H1S(this)),_.t("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.k0c(this)),O=_.t("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.t("kevlar_watch_flexy_comments_manager")&&!O&&this.activeModules.push(new _.eos(this)),_.t("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.YZs(this)),this.activeModules.push(new _.spE(this)),this.activeModules.push(new _.U9o(this)),_.t("web_enable_timely_actions")&&this.activeModules.push(new _.r_c(this)),_.t("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.lyy(this)),_.t("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.SZh(this)),_.t("web_fullscreen_components")&&this.activeModules.push(new _.hRc(this)),_.t("web_player_rtr_ctrls")&&this.activeModules.push(new _.QpE(this)),_.t("enable_creator_chatbot")&&this.activeModules.push(new QRz(this))):(_.k8(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.nH.prototype.disposeInternal=function(){_.HA.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Dy.Object.defineProperties(_.nH.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var wTI,QX,S4S,juo,gLw,$ha,NLU,iQy;wTI=function(){var O=_.km();O.info||(O.info={});return O.info};
QX=function(O){return Math.round(_.FC()+O)};
S4S=function(){var O;if(_.t("csi_use_performance_navigation_timing")){var x,e,l,C=_.GD==null?void 0:(O=_.GD.getEntriesByType)==null?void 0:(x=O.call(_.GD,"navigation"))==null?void 0:(e=x[0])==null?void 0:(l=e.toJSON)==null?void 0:l.call(e);C?(C.requestStart=QX(C.requestStart),C.responseEnd=QX(C.responseEnd),C.redirectStart=QX(C.redirectStart),C.redirectEnd=QX(C.redirectEnd),C.domainLookupEnd=QX(C.domainLookupEnd),C.connectStart=QX(C.connectStart),C.connectEnd=QX(C.connectEnd),C.responseStart=QX(C.responseStart),
C.secureConnectionStart=QX(C.secureConnectionStart),C.domainLookupStart=QX(C.domainLookupStart),C.isPerformanceNavigationTiming=!0,O=C):O=_.GD.timing}else O=_.t("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.GD.timing)):_.GD.timing;return O};
juo=function(){if(_.GD.getEntriesByType){var O=_.GD.getEntriesByType("paint");if(O=_.r7(O,function(e){return e.name==="first-paint"}))return QX(O.startTime)}var x;
_.t("csi_use_performance_navigation_timing")?x=_.GD.getEntriesByType("first-paint")[0].startTime:x=_.GD.timing.msFirstPaint;return x?Math.max(0,x):0};
gLw=function(){var O=window.location.protocol,x=_.GD.getEntriesByType("resource");x=_.wC(x,function(e){return e.name.indexOf(O+"//fonts.gstatic.com/s/")===0});
(x=NLU(x,function(e,l){return l.duration>e.duration?l:e}))&&x.startTime>0&&x.responseEnd>0&&(_.XC("wffs",QX(x.startTime)),_.XC("wffe",QX(x.responseEnd)))};
$ha=function(O,x){O=document.querySelector(O);if(!O)return!1;var e="",l=O.nodeName;l==="SCRIPT"?(e=O.src,e||(e=O.getAttribute("data-timing-href"))&&(e=window.location.protocol+e)):l==="LINK"&&(e=O.href);_.iI(document)&&O.setAttribute("nonce",_.iI(document));return e?(O=_.GD.getEntriesByName(e))&&O[0]&&(O=O[0],e=_.FC(),_.XC("rsf_"+x,e+Math.round(O.fetchStart)),_.XC("rse_"+x,e+Math.round(O.responseEnd)),O.transferSize!==void 0&&O.transferSize===0)?!0:!1:!1};
_.OUa=function(O,x){_.$K(function(){_.Mg("").info.actionType=O;x&&_.JZ("TIMING_AFT_KEYS",x);_.JZ("TIMING_ACTION",O);var e=_.rEL(_.wz("TIMING_INFO",{}));Object.keys(e).length>0&&_.oR(e);e={isNavigation:!0,actionType:_.PNw(_.wz("TIMING_ACTION"))};var l=_.wz("PREVIOUS_ACTION");l&&(e.previousAction=_.PNw(l));if(l=_.wz("CLIENT_PROTOCOL"))e.httpProtocol=l;if(l=_.wz("CLIENT_TRANSPORT"))e.transportProtocol=l;(l=_.Pq())&&l!=="UNDEFINED_CSN"&&(e.clientScreenNonce=l);l=_.ztr();if(l===1||l===-1)e.isVisible=!0;
l=_.F5L().loadType==="cold";var C=wTI();l||(l=C.yt_lt==="cold");if(l){e.loadType="cold";l=wTI();C=S4S();var Q=_.FC(),L=_.wz("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!_.t("embeds_web_enable_csi_start_override_killswitch")&&(Q=L);Q&&(_.XC("srt",C.responseStart),l.prerender!==1&&_.Rtr(Q));l=juo();l>0&&_.XC("fpt",l);l=S4S();l.isPerformanceNavigationTiming&&_.oR({performanceNavigationTiming:!0},void 0);_.XC("nreqs",l.requestStart,void 0);_.XC("nress",l.responseStart,void 0);_.XC("nrese",l.responseEnd,void 0);
l.redirectEnd-l.redirectStart>0&&(_.XC("nrs",l.redirectStart,void 0),_.XC("nre",l.redirectEnd,void 0));l.domainLookupEnd-l.domainLookupStart>0&&(_.XC("ndnss",l.domainLookupStart,void 0),_.XC("ndnse",l.domainLookupEnd,void 0));l.connectEnd-l.connectStart>0&&(_.XC("ntcps",l.connectStart,void 0),_.XC("ntcpe",l.connectEnd,void 0));l.secureConnectionStart>=_.FC()&&l.connectEnd-l.secureConnectionStart>0&&(_.XC("nstcps",l.secureConnectionStart,void 0),_.XC("ntcpe",l.connectEnd,void 0));_.GD&&"getEntriesByType"in
_.GD&&gLw();l=[];if(document.querySelector&&_.GD&&_.GD.getEntriesByName)for(var k in iQy)iQy.hasOwnProperty(k)&&(C=iQy[k],$ha(k,C)&&l.push(C));if(l.length>0)for(e.resourceInfo=[],k=_.T(l),l=k.next();!l.done;l=k.next())e.resourceInfo.push({resourceCache:l.value})}_.oR(e);e=_.A3();e.preLoggedGelInfos||(e.preLoggedGelInfos=[]);k=e.preLoggedGelInfos;e=_.oor();l=void 0;for(C=0;C<k.length;C++)if(Q=k[C],Q.loadType){l=Q.loadType;break}if(_.F5L().loadType==="cold"&&(e.loadType==="cold"||l==="cold")){l=_.Xjr();
C=_.A3();C=C.gelTicks?C.gelTicks:C.gelTicks={};for(var M in l)if(!(M in C))if(typeof l[M]==="number")_.XC(M,_.yO(M));else if(_.t("log_repeated_ytcsi_ticks"))for(Q=_.T(l[M]),L=Q.next();!L.done;L=Q.next())L=L.value,_.XC(M.slice(1),L);M={};l=!1;k=_.T(k);for(C=k.next();!C.done;C=k.next())l=C.value,_.p1(e,l),_.p1(M,l),l=!0;l&&_.oR(M)}_.no7(!0);M=_.wz("TIMING_ACTION");_.i8("ytglobal.timingready_")&&M&&_.jqi()&&_.dsN()&&_.W5n()})()};
NLU=function(O,x){return Array.prototype.reduce.call(O,x,{duration:0})};
iQy={'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 xTk={};xTk.YtVisibilityRootBehavior=[_.PJL.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Lf(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.wz("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var O=_.wz("INNERTUBE_CLIENT_NAME")!=="WEB";_.t("kevlar_use_vimio_behavior")&&O&&_.quR()}}];_.b5={};_.b5.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(O){O.detail.contextProvider=this;O.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
xTk.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.He();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(O){var x=this;this.pageCount+=1;_.t("kevlar_use_vimio_behavior")&&(_.wz("INNERTUBE_CLIENT_NAME")==="WEB"?_.vn.addJob(function(){x.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(O)},
loadPage_:function(O){this.data=O},
ytPageBehaviorActiveObserver_:function(O){var x=this;_.t("kevlar_use_vimio_behavior")&&(O?_.wz("INNERTUBE_CLIENT_NAME")==="WEB"?_.vn.addJob(function(){x.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(O){if(!this.setScrollTopJobId_){var x=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){x.setScrollTopJobId_=0;var e=_.GG().resolve(_.D0(_.Fn));e&&_.yl(e);this.getPageScrollingElement().scrollTop=O}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.PS(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Jes;var CS=function(){var O=_.a.apply(this,arguments)||this;O.playerListenerConfig=null;O.actionMap={"yt-show-watch-page-survey":"openSurvey"};return O};
_.c(CS,_.a);_.b=CS.prototype;_.b.dataChanged=function(){var O=this,x=_.f7();x&&x.getPlayerPromise().then(function(l){O.maybeRemovePlayerListeners(l)});
var e=this.data&&this.data.survey;e&&((e=(e=e.singleOptionSurveyRenderer||e.checkboxSurveyRenderer||e.multiStageSurveyRenderer)&&e.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(x,e):this.openSurvey())};
_.b.triggerWatchPageSurvey=function(O,x){var e=this,l,C,Q,L,k,M,G,X,y;return _.A(function(Z){if(Z.nextAddress==1)return O?Z.yield(O.getPlayerPromise(),2):Z.return();e.player=Z.yieldResult;if(!e.player)return Z.return();l={};C=_.T(x);for(Q=C.next();!Q.done;Q=C.next())L=Q.value,k=_.T(e.createEventListenerPair(L)),M=k.next().value,G=k.next().value,X=M,y=G,X&&y&&(l[X]=y,e.ytPlayerListenerBehavior.listenToPlayerEvent(e.player,X,y));e.playerListenerConfig=l;_.Ra(Z)})};
_.b.createEventListenerPair=function(O){var x=O.playbackEventTrigger;return x?this.handlePlaybackTrigger(x):(O=O.watchTimeTrigger)?this.handleWatchTimeTrigger(O):[void 0,void 0]};
_.b.handleWatchTimeTrigger=function(O){var x=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var e=O.videoWatchFraction,l=O.watchTimeSec;return l&&e?["onVideoProgress",function(){x.player&&x.isWatchTimeConditionMet(x.player,e,l)&&x.showSurvey()}]:[void 0,
void 0]};
_.b.isWatchTimeConditionMet=function(O,x,e){var l=O.getProgressState(),C=l.current-this.lastKnownPlaybackPosition;C<5&&(this.accumulatedMediaTime+=C);this.lastKnownPlaybackPosition=l.current;l=Math.round(this.accumulatedMediaTime/l.duration*1E3)/1E3;return O.getPresentingPlayerType&&O.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>e||l>x)};
_.b.handlePlaybackTrigger=function(O){var x=this;O=O.playbackEvent;if(O==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var e="onStateChange";var l=function(C){C===0&&x.showSurvey()}}else O==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(e="onVideoProgress",l=function(C){x.player&&x.player.getPresentingPlayerType&&x.player.getPresentingPlayerType()===1&&C&&x.showSurvey()}):O==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(e="onAdEnd",l=this.showSurvey);
return[e,l]};
_.b.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.b.openSurvey=function(){var O=this,x=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.IEO(!!x));_.vn.addJob(function(){O.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:x}})},0,0)};
_.b.maybeRemovePlayerListeners=function(O){if(this.playerListenerConfig){for(var x=_.T(Object.keys(this.playerListenerConfig)),e=x.next();!e.done;e=x.next())e=e.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(O,e,this.playerListenerConfig[e]);this.playerListenerConfig=null}};
CS.prototype.dataChanged=CS.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],CS.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],CS.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],CS.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],CS.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],CS.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],CS.prototype,"playerListenerConfig",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],CS.prototype,"lastKnownPlaybackPosition",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],CS.prototype,"accumulatedMediaTime",void 0);_.B([_.R(),_.v("design:type",Object)],CS.prototype,"player",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],CS.prototype,"dataChanged",null);_.B([_.H({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],CS);
_.n(CS,"ytd-survey-trigger-renderer",function(){if(Jes!==void 0)return Jes;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Jes=O},{mode:1});
}catch(e){_._DumpException(e)}
try{
var zOh=new _.$x("replaceFeedContentAction");var reo;var HQh;var KYI=function(){return _.a.apply(this,arguments)||this};
_.c(KYI,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KYI.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],KYI.prototype,"data",void 0);_.B([_.H({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],KYI);
_.n(KYI,"ytd-sub-feed-option-renderer",function(){if(HQh!==void 0)return HQh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return HQh=O},{mode:1});var dhw;var g5=function(){return _.a.apply(this,arguments)||this};
_.c(g5,_.a);g5.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],g5.prototype,"ytRendererStamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],g5.prototype,"data",void 0);_.B([_.H({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],g5);
_.n(g5,"ytd-sub-feed-selector-renderer",function(){if(dhw!==void 0)return dhw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return dhw=O},{mode:1});var $3=function(){return _.a.apply(this,arguments)||this};
_.c($3,_.a);
$3.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}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$3.prototype,"data",void 0);_.B([_.H({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],$3);
_.n($3,"ytd-browse-feed-actions-renderer",function(){if(reo!==void 0)return reo;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return reo=O},{mode:1});var nL7;var uwz;var iW=function(){return _.a.apply(this,arguments)||this};
_.c(iW,_.a);iW.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],iW.prototype,"data",void 0);_.B([_.H({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],iW);
_.n(iW,"ytd-mini-channel-renderer",function(){if(uwz!==void 0)return uwz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return uwz=O},{mode:1});var Y4S;var Oo=function(){return _.a.apply(this,arguments)||this};
_.c(Oo,_.a);Oo.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Oo.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Oo);
_.n(Oo,"ytd-vertical-channel-section-renderer",function(){if(Y4S!==void 0)return Y4S;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Y4S=O},{mode:1});var x9=function(){return _.a.apply(this,arguments)||this};
_.c(x9,_.a);x9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],x9.prototype,"data",void 0);_.B([_.H({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],x9);
_.n(x9,"ytd-browse-secondary-contents-renderer",function(){if(nL7!==void 0)return nL7;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return nL7=O},{mode:1});var BLw;var eY=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};O.notActive=!1;O.isConstrainedList=!1;return O};
_.c(eY,_.a);_.b=eY.prototype;
_.b.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(O){var x;return(O==null?void 0:(x=O.webComponentHint)==null?void 0:x.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}}}}};
_.b.getPath=function(O,x){var e="data.tabs.#"+x+".";O.tabs[x].tabRenderer?e+="tabRenderer.":O.tabs[x].expandableTabRenderer&&(e+="expandableTabRenderer.");return e+"content.sectionListRenderer"};
_.b.computeDisplayedContent=function(O){this.unlinkPaths("content");if(O&&O.tabs)for(var x=O.tabs.length,e=0;e<x;e++){var l=O.tabs[e].tabRenderer||O.tabs[e].expandableTabRenderer;if(l.selected&&l.content)return this.linkPaths("content",this.getPath(O,e)),l.content}return null};
_.b.computeHasSecondaryColumnData=function(O){return!!O&&!!O.secondaryContents};
_.b.onRetrieveLocation=function(O,x){x.locationRetrieved(x.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);O.stopPropagation()};
_.b.onYtServiceRequestSent=function(O,x){_.t("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(x)};
_.b.onYtServiceRequestCompleted=function(O,x){_.t("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(x)};
_.b.onReplaceFeedContentAction=function(O){if(!_.t("replace_feed_content_action_killswitch")&&!this.notActive){var x;(O=(x=_.q(O,zOh))==null?void 0:x.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(O)}};
_.b.handleServiceRequestActions=function(O){if(O=O.actions){O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;var e=void 0;((e=_.q(x,zOh))==null?0:e.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.q(x,zOh).items)}}};
eY.prototype.onYtServiceRequestCompleted=eY.prototype.onYtServiceRequestCompleted;eY.prototype.onYtServiceRequestSent=eY.prototype.onYtServiceRequestSent;eY.prototype.onRetrieveLocation=eY.prototype.onRetrieveLocation;_.B([_.V(_.lZ),_.v("design:type",Object)],eY.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],eY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eY.prototype,"data",void 0);_.B([_.R({computed:"computeDisplayedContent(data)"}),_.v("design:type",Object)],eY.prototype,"content",void 0);
_.B([_.R({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],eY.prototype,"hasSecondaryColumnData",void 0);_.B([_.R({value:function(){return window.outerHeight>1024?3:2}}),
_.v("design:type",Number)],eY.prototype,"initialCount",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],eY.prototype,"pageSubtype",void 0);_.B([_.kX("ytd-section-list-renderer"),_.v("design:type",Object)],eY.prototype,"listRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],eY.prototype,"notActive",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],eY.prototype,"isConstrainedList",void 0);
_.B([_.R(),_.v("design:type",String)],eY.prototype,"responsiveSizing",void 0);_.B([_.bH("yt-retrieve-location"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],eY.prototype,"onRetrieveLocation",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],eY.prototype,"onYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],eY.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],eY);
_.n(eY,"ytd-two-column-browse-results-renderer",function(){if(BLw!==void 0)return BLw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return BLw=O},{mode:2});
}catch(e){_._DumpException(e)}
try{
var LWy=function(O){if((O==null?void 0:O.value)===void 0||O==null||!O.unit)return"initial";a:{switch(O.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var x="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":x="%";break a}x=void 0}return x?""+O.value+x:"initial"};_.wP(_.K(function(O){var x=O.data;O=_.T(_.Iw(!1,void 0,"Ow2pwd"));var e=O.next().value,l=O.next().value;_.e2(_.iU.getInstance(),{"yt-hide-shopping-timely-shelf":function(){l(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){l(!0)})}});
var C=function(){var Q;return((Q=x().image)==null?void 0:Q.height)||40};
O={};return _.D("yt-shopping-timely-shelf-content-view-model",{el:_.Y0(_.P8(function(){return x().rendererContext})),
class:_.xz("ytShoppingTimelyShelfContentViewModelHost",(O.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(x().image||x().avatar||x().line1)&&e()},O)),
style:_.T7({"--shopping-timely-shelf-content-padding-top":function(){var Q;return LWy((Q=x().padding)==null?void 0:Q.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var Q;return LWy((Q=x().padding)==null?void 0:Q.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var Q;return LWy((Q=x().padding)==null?void 0:Q.start)},
"--shopping-timely-shelf-content-padding-end":function(){var Q;return LWy((Q=x().padding)==null?void 0:Q.end)},
"--yt-shopping-timely-shelf-background-color":function(){return x().backgroundColor!==void 0?_.aF(x().backgroundColor):"initial"}})},_.D(_.F,{cond:function(){var Q;
return(Q=x().image)==null?void 0:Q.image},
then:function(Q){return _.D(_.n_,{preserveHeight:!0,preserveWidth:!0,height:C,data:Q,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ}),_.D("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.D(_.MR,{data:function(){return x().line1}},{shoppingContentLineViewModel:function(Q){return _.D(_.bi,{data:Q.data})}}),_.D(_.MR,{data:function(){return x().line2}},{shoppingContentLineViewModel:function(Q){return _.D(_.bi,
{data:Q.data})}})),_.D("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.D(_.MR,{data:function(){var Q;
return(Q=x().button)!=null?Q:[]}},{buttonViewModel:function(Q){var L=Q.data;
return _.D(_.RV,{data:L,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(k){L().onTap&&k.stopPropagation()}})}})))},"Yn"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Ld}});_.kLS={};
_.kLS.YtdWatchBehavior=[_.S.YtRendererBehavior,_.AT.YtPlayerListenerBehavior,_.ZX.YtRendererstamperBehavior,_.Wt.YtActionHandlerBehavior,_.b5.YtPageBehavior,_.sJ.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 _.SS("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.t("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.SS("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},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 _.t("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.t("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 _.yF("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.yF("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.t("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("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 _.t("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.t("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.t("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("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 _.t("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("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 _.t("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.t("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var O={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:_.XB(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.XB(["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"||_.t("swa_prov_panels_ks")?O.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(O.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},O.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return O},
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 O=this;this.watchController=void 0;this.pageDisposeJobs=[function(){O.showMetadataPlaceholder_()},
function(){_.t("web_watch_dont_clear_comments")||O.clearComments_()},
function(){O.clearPlayerAds_()},
function(){O.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;_.t("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.t("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.SOy(function(){return _.ve(O)},this.hostElement);
this.pageDisposeJobs.push(function(){O.youThereManager_.reset()});
_.t("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){O.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.A5;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;_.t("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));_.t("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Qa(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(O){O&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:O}),O.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(O){_.t("kevlar_watch_flexy_theater_manager")&&(this.theater=O,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(O){!_.t("kevlar_watch_while_v2")&&!_.t("web_watch_pip")||O||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(O){this.active!==void 0&&(this.fullscreen=O,_.t("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(O){this.active!==void 0&&(_.wr(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.t("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(O>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(O){this.initCsi_();this.updatePageData_(O)},
updatePageData_:function(O){var x=this;if(O)if(this.data===O){this.onPageLoadWithSameData_();var e;(e=this.watchController)==null||e.setWatchNextResponse(this.data)}else this.data=O;this.playlist&&_.EO({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.IR("nw");this.loading=!1;_.zl(_.vn,function(){x.initDclkstatus_();var l,C=((l=x.player)==null?void 0:l.getVideoData().cpn)||"";_.WRI(function(Q,L){_.WCQ(Q,L,C)})})},
onPageLoadWithSameData_:function(){_.t("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 O=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!O);this.set("loadingData.playlistLoading",O&&O!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),O=this.watchNextSkeletonEl_.firstElementChild;O;)O.classList.remove("hidden"),O=O.nextElementSibling;if(_.t("kevlar_watch_frame0_loading_state")){var x,e,l;O=(x=this.loadingData)==null?void 0:(e=x.endpoint)==null?void 0:(l=e.watchEndpoint)==null?void 0:l.videoId;var C;O&&(C="https://i.ytimg.com/vi/"+O+"/frame0.jpg");_.$U(this.hostElement).querySelector("#player").style.backgroundImage=C?"url("+C+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var O=_.$U(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&O&&(O.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var x,e;(e=(x=this.watchMetadata).updateSentimentBarWidth)==
null||e.call(x);var l,C;(C=(l=this.watchMetadata).resize)==null||C.call(l)}_.t("kevlar_watch_frame0_loading_state")&&(_.$U(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(O){var x=_.$U(this.hostElement).querySelector(O);x?_.f1(x,!1):_.ft(new _.ry("Overscroll monitor not found for component: ",O))},
removeSplitScrollMouseTrap:function(O){var x=_.$U(this.hostElement).querySelector(O);x?_.Js(x):_.ft(new _.ry("Disposal component for  overscroll monitoring not found: ",O))},
onLoadingChanged_:function(O){O?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.t("web_thumbnail_to_watch_transition")&&!_.UbY||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.t("web_thumbnail_to_watch_transition")&&!_.UbY||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(O){var x=this;O?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.vn.addLowPriorityJob(function(){x.onWindowResized_(_.L3(!0))})},
updateTheaterModeState_:function(O){if(!_.t("kevlar_watch_flexy_theater_manager")){O=O||this.fullWindowMode_;if(this.theater!==void 0||O)this.theater=O;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();O&&_.g8E()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var O=this.fullBleedPlayer?_.$U(this.hostElement).querySelector("#player-full-bleed-container"):_.$U(this.hostElement).querySelector("#player-container-inner");var x=this.getPlayerContainer(),e=_.t("kevlar_watch_while_v2")||_.t("web_watch_pip");x.parentElement!==O&&(e&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.ve(this).appendTo(O,x))},
updateErrorScreenLocation:function(){var O=_.$U(this.hostElement).querySelector("#error-screen"),x=this.fullBleedPlayer?_.$U(this.hostElement).querySelector("#player-full-bleed-container"):_.$U(this.hostElement).querySelector("#player");O.parentElement!==x&&x.appendChild(O)},
deactivateMiniplayerAndResetPlayer:function(){var O=this;return _.A(function(x){if(x.nextAddress==1)return x.yield(_.GG().resolve(_.Vs).deactivate(),2);O.updatePlayerLocation();_.Ra(x)})},
updateCinematicsLocation:function(){var O=this.getElement("CINEMATICS");if(O){var x=this.getCinematicsLocationContainer();O.parentElement!==x&&x.appendChild(O)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.$U(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.$U(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(O,x,e){var l=document.documentElement.hasAttribute("dark"),C=l&&_.t("web_cinematic_theater_mode"),Q=l&&_.t("web_cinematic_fullscreen");l=!l&&this.cinematicLightTheme;return e||O&&C||x&&Q||(x||O)&&l},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var O=this,x;(x=this.watchController)==null||x.setWatchNextResponse(this.data);_.t("kevlar_watch_flexy_comments_manager")||this.initComments_();_.t("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GG().resolve(_.gx).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,_.t("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.vn.addLowPriorityJob(function(){_.jh(O.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.t("web_watch_start_chat_in_theater_mode")){var e,l,C;if((e=this.data)==null?0:(l=e.contents)==null?0:(C=l.twoColumnWatchNextResults)==null?0:C.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,L;((Q=this.data)==null?0:(L=Q.contents)==null?0:L.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(O){var x;(x=this.watchController)==null||x.setPlayerResponse(this.playerData);O&&O.playabilityStatus&&(x=this.isVideoPlayable_(O.playabilityStatus,this.getPlayerOverlays_(this.data)),O=this.isLiveStreamOffline_(O.playabilityStatus),x&&!O||_.A_(this,function(){_.IR("pbu")}));
this.setPlayerAds_();_.jh(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(O,x){if((_.t("kevlar_watch_while_v2")||_.t("web_watch_pip"))&&this.playerData&&x)return this.playerData.videoDetails},
watchPageActiveChanged_:function(O){_.u9().dispatch(_.ehT(this.active));O?this.activate_():this.deactivate_()},
attached:function(){var O=this;this.watchController=new _.nH(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);_.t("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var x=_.ve(this);_.t("kevlar_disable_prepare_player")||
x.preparePlayer();_.t("kevlar_watch_flexy_playlist_manager")||_.GG().resolve(_.gx).setPlayer(x);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();x={"--ytd-watch-flexy-scrollbar-width":_.DT()+"px"};this.is==="ytd-watch-grid"&&(_.u9().dispatch(_.j6({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),x["--ytd-watch-flexy-sidebar-width"]=_.nKT+"px",x["--ytd-watch-grid-horizontal-page-margins"]=_.Kq+"px",x["--ytd-watch-grid-columns-top-margins"]=
_.HOk+"px",x["--ytd-watch-grid-min-player-height-medium"]="360px");!_.yF("kv_pl_mx_sz_ks")&&_.yF("kevlar_watch_max_player_width")&&(x["--ytd-watch-flexy-max-player-width-wide-screen"]=_.umU+"px");_.yF("kevlar_watch_flexy_metadata_height")&&(x["--ytd-watch-flexy-space-below-player"]=_.Y0E+"px");this.safeUpdateStyles(x);_.t("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.MJ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return O.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.$U(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var O=_.DT(),x=_.dJ+O,e=x;this.fixedPanels&&(x+=_.nKT);var l=657+O;O=1327+O;_.$U(this.hostElement).querySelector("#two-column-query").query="(min-width: "+x+"px)";_.$U(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(l+"px), (min-height: 630px) and (min-width: ")+(x+"px) and (max-width: ")+(O+"px)");_.$U(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(O+"px)");
_.$U(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+e+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var O=_.$U(this.hostElement).querySelector("#miniplayer-bar").firstChild,x=this.squeezeback&&!_.t("web_watch_squeezeback_player_size_killswitch");return O&&O.active||this.theater||_.t("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||x||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.pu(NaN,NaN):_.KRS(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.KRS(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Lf(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var O=this;this.onWindowResized_(_.L3());_.t("browse_skeleton_removal_on_watch_killswitch")||_.SS("IS_SHELL_LOAD")&&_.fQa();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var x=_.ve(this);x.addEventListener("yt-player-updated",_.Qa(this,this.onPlayerUpdated_));x.getPlayerPromise().then(function(e){O.playerApiReady_(e)});
_.t("kevlar_watch_flexy_playlist_manager")||(x=_.GG().resolve(_.gx),_.t("kevlar_watch_observe_playlist_navigations_killswitch")&&x.addEventListener("yt-navigate",_.Qa(this,this.onYtNavigate_)),x.setPlaylistComponent(_.$U(this.hostElement).querySelector("#playlist")),x.addEventListener("yt-playlist-data-updated",_.Qa(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.vn.addLowPriorityJob(function(){_.wr(O.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.ve(this).removeEventListener("yt-player-updated",_.Qa(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.t("kevlar_watch_flexy_playlist_manager")){var O=_.GG().resolve(_.gx);_.t("kevlar_watch_observe_playlist_navigations_killswitch")&&O.removeEventListener("yt-navigate",_.Qa(this,this.onYtNavigate_));
O.cancelVideoSkip();O.removeEventListener("yt-playlist-data-updated",_.Qa(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.wr(this.hostElement,"yt-autonav-pause-player",!1);O=_.Bq();_.t("kevlar_exit_fullscreen_leaving_watch")&&O&&_.vq(O)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(O){this.player&&this.player.updateVideoData({rvs:O.rvs})},
getPageContents:function(O){return O&&O.contents&&O.contents.twoColumnWatchNextResults&&O.contents.twoColumnWatchNextResults.results&&O.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(O){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",O)},
onRetrieveLocation_:function(O,x){x.hasComments?x.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):x.locationRetrieved("/related_ajax",void 0);O.stopPropagation()},
onSubscriptionChanged_:function(O,x){this.player&&(x?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.OUa("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.$U(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.$U(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(O){this.player=O;this.setPlayerState(O.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.t("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.t("kevlar_unified_player")||_.t("kevlar_player_new_bootstrap_adoption"))&&_.UM()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(O,x){x=x===void 0?!0:x;_.Bq()&&_.t("external_fullscreen")&&_.vq(document.documentElement);this.theaterRequested_=O;x&&_.sC("wide",O?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Sh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.wr(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(O){_.JG(O,typeof this.player),this.player&&_.JG(O,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var O;((O=this.player)==null?0:O.isFullscreen())?this.player.toggleFullscreen():_.Sh(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(O,x){return this.loading?x:!!Object.keys(O).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(O){if(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next())x=x.value,x.youThereRenderer&&_.gmy(this.youThereManager_,x.youThereRenderer)}},
setPlaylistData_:function(O){return O||{}},
userEngagementConfigDataChanged_:function(O){if(O)if(O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var x=this.youThereManager_;_.Gl()<O.lowEngagementThresholdMs||_.xcH(x,!0)}else O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Sh(this.hostElement,"yt-autonav-pause-user-engagement",[O])},
isPlayerUnavailable_:function(O,x,e){return!!O&&!this.isVideoPlayable_(O,e)&&!x},
getPlayerOverlays_:function(O){return(O==null?void 0:O.playerOverlays)||null},
isVideoPlayable_:function(O,x){if(!O)return!1;var e=O.status==="OK"||O.status==="LIVE_STREAM_OFFLINE",l=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",O)||this.get("errorScreen.ypcTrailerRenderer",O);O=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",O);var C;x=x==null?void 0:(C=x.playerOverlayRenderer)==null?void 0:C.gatedActionsOverlayRenderer;return!!e||!!l||!!O||!!x},
hasWatchNextResponseErrorRenderer:function(O){var x=this.getPageContents(O),e,l,C,Q,L;return!(O==null?0:(e=O.contents)==null?0:(l=e.twoColumnWatchNextResults)==null?0:l.secondaryResults)&&!!((C=x[0])==null?0:(Q=C.itemSectionRenderer)==null?0:(L=Q.contents[0])==null?0:L.backgroundPromoRenderer)},
isLiveStreamOffline_:function(O){return O?O.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(O,x,e){var l=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x),C=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];C=_.t("web_no_skip_video_on_verification_checks")?(O==null?void 0:O.status)&&C.includes(O.status):O&&O.status==="AGE_CHECK_REQUIRED";var Q=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",O);Q==void 0&&(Q=!0);!e||this.isVideoPlayable_(O,this.getPlayerOverlays_(x))||
l||C||!Q||_.GG().resolve(_.gx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.nma()},
onPlayerFeedbackStartRequest_:function(O){_.Sh(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:O}])},
onPlayerFeedbackArticleRequest_:function(O){_.Sh(this.hostElement,"yt-help-dialog-requested",[O])},
onPlayerYpcContentRequest_:function(){var O,x,e,l,C,Q,L,k,M=((O=this.data)==null?NaN:(x=O.contents)==null?NaN:(e=x.twoColumnWatchNextResults)==null?NaN:(l=e.secondaryResults)==null?NaN:(C=l.secondaryResults)==null?NaN:(Q=C.offerModule)==null?NaN:(L=Q.tvfilmOfferModuleRenderer)==null?NaN:(k=L.actionButtons)==null?NaN:k.length)-1;O=[".offerButton.buttonRenderer.",".actionButtons."+(M>=0?M:0)+".buttonRenderer."];x=_.T(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(e=x.next();!e.done;e=x.next())for(e=e.value,l=_.T(O),C=l.next();!C.done;C=l.next())if(C="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+e+C.value,C=this.get(C+"navigationEndpoint",this.data)||this.get(C+"serviceEndpoint",this.data)||this.get(C+"command",this.data)){_.C_(C,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(O){_.wr(this.hostElement,"yt-autonav-pause-player",O)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(O){O()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.wr(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(O)},
setPlayerState:function(O){_.u9().dispatch(_.nBz(O))},
onPlayerSubscribe_:function(O){_.Sh(this.hostElement,"yt-player-subscribe",[O])},
onPlayerUnsubscribe_:function(O){_.Sh(this.hostElement,"yt-player-unsubscribe",[O])},
onPlayerAdYtShowToast_:function(O){_.Sh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:O.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(O){if(O)return O},
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(O){return!_.t("web_watch_move_summary_to_sd")&&!!O},
computeWatchMetadataRefresh:function(){return _.t("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.t("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var O,x,e,l;this.watchNextSecondaryResults=(O=this.data)==null?void 0:(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.secondaryResults)==null?void 0:l.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.t("swatcheroo_pbs_load_grid")&&!_.t("swatcheroo_provide_all_data_on_scheduled_job")){_.vn.cancelJob(this.setRichGridJobId_);var O,x,e,l,C,Q,L;this.setRichGridRendererData((O=this.data)==null?void 0:(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.secondaryResults)==null?void 0:(C=l.secondaryResults)==null?void 0:(Q=C.results)==null?void 0:(L=Q[0])==null?
void 0:L.richGridRenderer)}},
setRichGridRendererData:function(O){this.richGridRendererData=O},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var O,x=(O=this.data)==null?void 0:O.engagementPanels;if(x==null?0:x.length){O=null;x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0;if(((l=e.engagementPanelSectionListRenderer)==null?void 0:l.targetId)==="engagement-panel-structured-description"){O=e;break}}var C,Q,L;O=(C=O)==null?void 0:(Q=C.engagementPanelSectionListRenderer)==null?void 0:(L=Q.content)==null?void 0:L.structuredDescriptionContentRenderer;if(O==null?0:O.items){C=
[];Q=_.T(O.items);for(L=Q.next();!L.done;L=Q.next()){L=L.value;if(!_.t("sd_horizontal_list_show_nav_killswitch")){var k=l=e=x=O=void 0,M=void 0,G=(O=L.horizontalCardListRenderer)==null?void 0:(x=O.header)==null?void 0:(e=x.richListHeaderRenderer)==null?void 0:(l=e.navigationButton)==null?void 0:(k=l.buttonRenderer)==null?void 0:(M=k.command)==null?void 0:M.commandExecutorCommand;G&&G.commands&&(G.commands=G.commands.filter(function(X){return!_.q(X,_.xDw)}))}(!L.expandableVideoDescriptionBodyRenderer&&
!L.videoDescriptionHeaderRenderer||_.t("web_delhi_colorful_sd"))&&C.push(L)}return{items:C}}}},
constructWarning_:function(O){return{text:_.KA(O),type:"WARNING"}},
isPlaShelfEnabled_:function(O){if((this.get("adPlacements",O)||[]).length)return!0;O=this.get("playerAds",O)||[];return!(!O.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",O[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var O=this;_.wr(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var x=this.getScrollTop()>0;this.gestures_&&(x?this.gestures_.detach():this.gestures_.attach());x!==this.showFullerscreenEdu_&&_.t("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=x,_.ve(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonVisibility(O.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.wr(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var O=this;this.commentsReady=!1;_.vn.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.zl(_.vn,function(){O.setComments_()},1E3)},
setComments_:function(){if(!_.t("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.IR("cmi");_.vn.cancelJob(this.setCommentsJobId_);var O=this.getPageContents(this.data);if(O&&O.length){O=_.T(O);for(var x=O.next();!x.done;x=O.next())if(x=x.value,this.get("itemSectionRenderer.sectionIdentifier",x)==="comment-item-section"){this.comments=x.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.wr(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.t("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.t("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.IR("cmc")},
doRemoveComments_:function(){this.comments={};_.t("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.vn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.vn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(O,x){var e=_.q(x.endpoint,_.Hq);e&&(!(x=this.get("data.currentVideoEndpoint.watchEndpoint"))||e.videoId!==x.videoId||e.playlistId&&e.playlistId!==x.playlistId||e.index!==void 0&&e.index!==x.index||typeof e.startTimeSeconds!=="number"||(O.stopPropagation(),this.setScrollTop(0),_.ve(this).getPlayerPromise().then(function(l){var C=e.startTimeSeconds;l.seekTo(C);l.wakeUpControls();C<l.getDuration()&&l.playVideo()})))},
updatePlayerStartTime_:function(){var O=_.c3a();"t"in O&&(O=_.dgh(O.t),this.player.seekTo(O,!0))},
updateTitleFromWatchNext:function(O){O=this.getPageContents(O);var x,e;(O=_.db(O==null?void 0:(x=O[0])==null?void 0:(e=x.videoPrimaryInfoRenderer)==null?void 0:e.title))&&_.wr(this.hostElement,"yt-update-title",O)},
updateTitle_:function(O){O=this.get("videoDetails.title",O)||"";_.wr(this.hostElement,"yt-update-title",O)},
syncWithRemoteVideo_:function(O,x,e){if(this.active&&this.player){var l=this.player.getVideoData();if(l.video_id===e&&(e=l.list,_.t("polymer_enable_mdx_queue")&&e&&e.startsWith("RQ")&&(e=void 0),l.video_id!==O||e!=x)){var C;_.t("kevlar_player_watch_endpoint_navigation")?C=_.vAN(_.hhH(O,x)):C=this.buildWatchEndpoint_(O,x);_.wr(this.hostElement,"yt-navigate",{endpoint:C,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(O,x,e){return _.fZ(O,x,e)},
initDclkstatus_:function(){_.HZa()},
attachWatchPageSkeleton_:function(){var O=document.querySelector("#watch-page-skeleton");if(O){var x=O.querySelector("#primary-info"),e=O.querySelector("#secondary-info"),l=O.querySelector("#related");x&&_.$U(this.hostElement).querySelector("#info-skeleton").appendChild(x);e&&_.$U(this.hostElement).querySelector("#meta-skeleton").appendChild(e);l&&(_.$U(this.hostElement).querySelector("#related-skeleton").appendChild(l),this.watchNextSkeletonEl_=l);_.Um(O)}},
handlePlayerUpdated_:function(){_.ve(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(O,x){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof x!=="undefined"){var e=this.watchNextSkeletonEl_.children,l=O&&O.indexSplices.length?O.indexSplices[0].index:0;O=Math.min(this.watchNextShownItems.length,e.length);x||(l=0,O=e.length);for(x=l;x<O;x++)e[x].classList.add("hidden")}},
onPlayerFullscreenChange_:function(O){_.t("external_fullscreen")||_.Sh(this.hostElement,"yt-player-fullscreen",[O.fullscreen])},
onFullscreenChange_:function(O){this.fullscreen=O;this.gestures_&&this.gestures_.update(this.fullscreen);var x=_.ve(this);x.getPlayerPromise().then(function(e){e.setFauxFullscreen(!!_.Bq())});
this.updateFullBleedElementLocations();O&&(x.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(O,x){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!x},
computeIsDonationShelfCollapsed_:function(O){return O},
computeShouldShowMerchShelf:function(O,x){return x&&!!O},
computeResponseHasComments:function(O){var x,e,l,C,Q;return!!(O==null?0:(x=O.contents)==null?0:(e=x.twoColumnWatchNextResults)==null?0:(l=e.results)==null?0:(C=l.results)==null?0:(Q=C.contents)==null?0:Q.some(function(L){var k;return(L==null?void 0:(k=L.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(O,x,e,l){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&l?!1:!!O&&!!Object.keys(O).length&&!x},
identity:_.Hi,onWindowResized_:function(O){this.windowSize_=O;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(O){var x=this;O&&O.type!=="dataloaded"&&O.type!=="dataupdated"||_.ve(this).getPlayerPromise().then(function(e){var l=e.getPlayerState();l!==5&&l!==0&&(e=1/e.getVideoAspectRatio(),x.videoHeightToWidthRatio_!==e&&(x.videoHeightToWidthRatio_=e))})},
schedulePlayerSizeUpdate_:function(O){var x=this,e=_.t("kevlar_watch_while_v2")||_.t("web_watch_pip"),l=function(){if(x.watchMetadata){var C,Q;(Q=(C=x.watchMetadata).resize)==null||Q.call(C)}_.ve(x).getPlayerPromise().then(function(L){if(_.t("kevlar_set_internal_player_size")){if(!e||!x.isMiniplayerActive()){var k=x.calculateCurrentPlayerSize_();L.setInternalSize(k.width,k.height)}}else L.setSize(NaN,NaN);_.t("kevlar_watch_while")&&x.updateWatchWhileScrollThreshold_()})};
O?l():_.e1(_.vn,l)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(O){this.set("data.survey",O.detail)},
onYtShowSurveyCommand_:function(O){this.set("data.survey",_.q(O,_.wUz).survey)},
onDownloadedVideoDeleted:function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1){if(!x.active||(e=x.playerData)==null||!e.offlineState||x.videoId!==O)return C.return();(l=x.player)==null||l.stopVideo();_.U7().navigatingAwayFromWatchDeletedVideo=!0;_.C_(_.vML,x.hostElement);return C.yield(_.U7().navigationFinishPromise,2)}_.U7().navigatingAwayFromWatchDeletedVideo=!1;_.Ra(C)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var O;this.theater?O=_.qo(.5625*this.windowSize_.width,480,this.windowSize_.height-185):O=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==O&&(this.watchWhileScrollThreshold_=O,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var O=_.$U(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&O){var x=this.windowSize_.height>=624,e=this.active?this.getScrollTop():0;!O.active&&x&&e>=this.watchWhileScrollThreshold_?(O.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):O.active&&(!x||e<this.watchWhileScrollThreshold_&&!_.Bq())&&(O.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var O=_.$U(this.hostElement).querySelector("#secondary-inner");if(O){var x=_.$U(this.hostElement).querySelector("#below"),e=_.$U(this.hostElement).querySelector("#secondary"),l=_.$U(this.hostElement).querySelector("#comments");l&&e&&x&&(this.defaultTwoColumnLayout?(O.appendChild(l),e.appendChild(O)):(x.appendChild(l),_.rJ(x,O)))}}},
isTwoColumnsChanged_:function(O,x){if(O!==!0||x!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(O=_.$U(this.hostElement).querySelector("#secondary-inner"))){x=_.$U(this.hostElement).querySelector("#below");var e=_.$U(this.hostElement).querySelector("#secondary"),l=_.$U(this.hostElement).querySelector("#comments");l&&e&&x&&(this.isTwoColumns_?(O.appendChild(l),e.appendChild(O)):(x.appendChild(l),_.rJ(x,O)))}}else{O=!_.t("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);x=_.$U(this.hostElement).querySelector("#panels");var C=_.$U(this.hostElement).querySelector("#alerts"),Q=_.$U(this.hostElement).querySelector("#shopping-timely-shelf");e=_.$U(this.hostElement).querySelector("#playlist");l=_.$U(this.hostElement).querySelector("#related");var L=_.$U(this.hostElement).querySelector("#donation-shelf"),k=_.$U(this.hostElement).querySelector("#comments"),M=_.$U(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(C=_.$U(this.hostElement).querySelector("#secondary-inner"),O&&(C.appendChild(x),C.appendChild(e),this.aiCompanionEnabled&&M&&C.appendChild(M)),C.appendChild(L),C.appendChild(l)):(O&&(_.Rs(x,C),_.Rs(e,C),this.aiCompanionEnabled&&M&&_.Rs(M,C),_.Rs(Q,e)),_.Rs(L,C),k&&_.Rs(l,k));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.t("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.t("web_watch_enable_fs_squeezeback_panels")&&_.t("web_watch_theater_chat")){var O=_.$U(this.hostElement).querySelector("#chat-container"),x=this.theater&&!this.fullscreen||_.t("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&x?(x=_.$U(this.hostElement).querySelector("#columns"),(O==null?void 0:O.parentElement)!==x&&x.append(O),this.fixedPanels=!0):(this.fixedPanels=
!1,x=_.$U(this.hostElement).querySelector("#playlist"),O&&x?_.U5(O,x):_.ft(new _.ry("Missing element when updating chat location",{"chatContainer defined":!!O,"playlist defined":!!x})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(O,x){return _.t("sw_metadata_vis_toggle_ks")?!0:!!O||!!x},
computeForceDarkPanelTheme:function(O){return _.t("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&O:!1},
safeUpdateStyles:function(O){try{_.lH(this.hostElement,O)}catch(x){_.ft(x)}},
videoHeightToWidthRatioChanged_:function(O,x){x&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(O){this.videoHeightToWidthRatio_=1/O},
computeIsVerticalVideo_:function(O){return O>=1},
computeIsFourThreeToSixteenNineVideo_:function(O){return O<=.7501&&O>=.5624},
computeIsExtraWideVideo_:function(O){return O<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.ve(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.ve(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.e1S(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(O){var x=_.tU(O)||0;_.EA(O,x+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var O=_.tU("yt-fullerscreen-edu-button-click-count")||0,x=_.tU("yt-fullerscreen-edu-button-shown-count")||0,e=_.yF("external_fullscreen_button_shown_threshold"),l=O>=_.yF("external_fullscreen_button_click_threshold")||x>=e;_.ve(this).getPlayerPromise().then(function(C){C.updateFullerscreenEduButtonSubtleModeState(l)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(O,x){return x},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GG().resolve(_.gx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var O=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.vn.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.vn.addLowPriorityJob(function(){O.fullHeightPanelPositionUpdateJobId=0;var x=_.$U(O.hostElement).querySelector("#secondary"),e=_.$U(O.hostElement).querySelector("#fixed-secondary");x=x.getBoundingClientRect();var l=x.width;O.swatcherooSqueezeback&&
(l+=_.Kq);if(O.swatcherooSqueezeback){var C=_.$U(O.hostElement).querySelector("#squeezeback-constraining-container");C.style.width=l+"px";C.style.flex="0 0 "+l+"px"}e.style.width=l+"px";e.style.left=x.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var O=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.vn.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.vn.addLowPriorityJob(function(){O.panelMaxHeightUpdateJob_=0;var x;!O.isTwoColumns_||O.theater||O.fullscreen?x=460:x=O.calculateNormalPlayerSize_().height;var e=x+"px";_.t("live_chat_taller_height")&&!O.theater&&(e="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.t("live_chat_medium_height")&&!O.theater&&(e="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.t("live_chat_scaled_height")&&!O.theater&&(e="calc(100vh - var(--ytd-toolbar-height) - 238px)");O.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":x+"px","--ytd-watch-flexy-chat-max-height":e,"--ytd-watch-flexy-structured-description-max-height":x+"px","--ytd-watch-flexy-comments-panel-max-height":x+"px","--ytd-comments-engagement-panel-content-height":x+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(O){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",O)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.gr(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(O){var x=_.$U(this.hostElement).querySelector("#engagement-panel-scrim");O?x.addEventListener("tap",_.Qa(this,this.onEngagementPanelScrimClick_)):x.removeEventListener("tap",_.Qa(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(O){if(this.hostElement.contains(O)&&!this.scrollToAnimation_.isAnimating()){var x=O.offsetTop-24;O=O.offsetTop+O.offsetHeight+24;var e=this.getPageScrollingElement(),l=this.getScrollTop(),C=l+e.clientHeight-56;if(x<l+56)x-=56;else if(O>C)x=O-e.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtSignalActionScrollToComments:function(){var O=this.hostElement.querySelector("#comments");if(O&&!this.scrollToAnimation_.isAnimating()){O=O.offsetTop-56-24;if(_.t("kevlar_comment_teaser_scroll_to_midpoint")&&(O-=_.Rn().height/3,O<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,O),500)}},
onYtEngagementPanelVisibleChanged:function(O,x,e){if(this.active&&this.trackEngagementPanelVisibility&&!_.f2c.includes(e)){if(x==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.jh(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var l=_.GG().resolve(_.Bm);this.visiblePanelIdentifiers_.forEach(function(C){C!==e&&l.hidePanel(C)})}this.visiblePanelIdentifiers_.add(e)}x!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&x!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(e);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(O){return O?"":"watch-active-metadata"},
computeNewMetadataClass:function(O){return O?"watch-active-metadata":""},
computeIsSingleColumn:function(O,x){return x&&!O},
computeFullBleedPlayer:function(O,x,e){return _.t("external_fullscreen")&&O||x||e},
computeDefaultLayout:function(O){return!O},
computeDefaultTwoColumnLayout:function(O,x){return!O&&x},
updatePanelsLocation:function(){if(_.t("web_watch_enable_fs_squeezeback_panels")){var O=_.$U(this.hostElement).querySelector("#below"),x=_.$U(this.hostElement).querySelector("#panels"),e=_.$U(this.hostElement).querySelector("#playlist"),l=_.$U(this.hostElement).querySelector("#chat-container"),C=_.$U(this.hostElement).querySelector("#panels-full-bleed-container"),Q=_.$U(this.hostElement).querySelector("#secondary-inner"),L=_.$U(this.hostElement).querySelector("#shopping-timely-shelf"),k=_.$U(this.hostElement).querySelector("#persistent-panel-container");
if(O&&x&&e&&l&&C&&Q&&L&&(this.aiCompanionEnabled?k:1)){var M=this.fullscreen||this.theater&&this.iMaxTheaterMode,G=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;M?(C.appendChild(x),C.appendChild(l),C.appendChild(e),this.aiCompanionEnabled&&k&&C.appendChild(k)):this.isTwoColumns_?(G?(O=_.$U(this.hostElement).querySelector("#columns"),(l==null?void 0:l.parentElement)!==O&&O.append(l),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.rJ(Q,l),_.rJ(Q,x),_.rJ(Q,e),this.aiCompanionEnabled&&k&&_.rJ(Q,k)):(O.appendChild(x),O.appendChild(L),O.appendChild(l),O.appendChild(e),this.aiCompanionEnabled&&k&&O.appendChild(k))}}},
swatcherooUpdatePanelsLocation:function(O,x,e,l,C,Q){if(this.is==="ytd-watch-grid"){x=O&&!x;this.swatcherooSplitScroll&&(x?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));e=_.$U(this.hostElement).querySelector("#panels");var L=_.$U(this.hostElement).querySelector("#playlist"),k=_.$U(this.hostElement).querySelector("#persistent-panel-container"),
M=_.$U(this.hostElement).querySelector("#fixed-secondary"),G=_.$U(this.hostElement).querySelector("#fixed-below"),X=_.$U(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),y=_.$U(this.hostElement).querySelector("#chat-container");Q&&(O?(M.appendChild(e),this.aiCompanionEnabled&&k&&M.appendChild(k)):(G.appendChild(e),this.aiCompanionEnabled&&k&&G.appendChild(k)));C?O?M.appendChild(y):G.appendChild(y):_.U5(y,X);l?O?M.appendChild(L):G.appendChild(L):_.U5(L,
X);this.swatcherooSplitScroll&&(O=_.$U(this.hostElement).querySelector("#secondary"),l=_.$U(this.hostElement).querySelector("#columns"),C=_.$U(this.hostElement).querySelector("#fixed-columns-secondary"),x?C.appendChild(O):l.appendChild(O))}},
computeMetadataSkinnyMode:function(O,x,e){return this.is!=="ytd-watch-grid"?!1:O?e:x},
computeWatchWhilePanelsActive:function(O,x){return O||x},
computeNoBorderOnChat:function(O){return _.t("web_watch_theater_chat_no_border")&&O},
computeLiveChatPresentAndExpanded:function(O,x){return O&&!x},
computePanelExpanded:function(O,x,e){return O||x||e},
computeSqueezeback:function(O,x,e,l){if(_.t("web_watch_enable_fs_squeezeback_panels")){var C=this.iMaxTheaterMode&&this.theater,Q=this.theater&&!this.iMaxTheaterMode;return(O||x||e)&&(C||l)||x&&Q}},
computeSwatcherooSqueezeback:function(O,x,e){return this.is!=="ytd-watch-grid"||_.t("ww_squeezeback_killswitch")?!1:O&&x&&e},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(O){_.ve(this).getPlayerPromise().then(function(x){var e;(e=x.changeMarkerVisibility)==null||e.call(x,_.q(O,_.v6).isVisible||!1,_.q(O,_.v6).entityKeys||[],_.q(O,_.v6).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(O){this.liveChatCollapsed=O.detail;_.u9().dispatch(_.vm7(O.detail));if(!this.liveChatCollapsed&&this.squeezeback){var x=_.GG().resolve(_.Bm);this.visiblePanelIdentifiers_.forEach(function(e){x.hidePanel(e)})}},
onSetPlaylistCollapsed:function(O){_.t("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!O)},
provideRenderingData:function(O,x){switch(O){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=x;break;case "PRIMARY_INFO":_.t("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=x);this.videoPrimaryInfoRendererValue=x==null?void 0:x.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.t("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=x);this.videoSecondaryInfoRendererValue=x==null?void 0:x.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
x;break;case "CLARIFICATION":this.clarifyBoxValue=x;break;case "LIVE_CHAT":this.conversationBar=x;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=x;break;case "PLAYLIST":this.externalPlaylistData_=x!=null?x:{};break;case "MERCH_SHELF":this.merchShelfValue=x==null?void 0:x.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=x;break;case "TICKET_SHELF":this.ticket=x;break;case "OFFER_MODULE":this.offerModule=x;break;case "LIMITED_STATE":this.limitedStateValue=
x;break;case "DONATION_SHELF":this.donation=x;break;case "ALERTS":this.alertsValue=x;break;case "COMMENTS":this.comments=x;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=x;break;case "ENGAGEMENT_PANELS":this.engagementPanels=x;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=x;break;case "RICH_GRID_RENDERER":this.richGridRendererData=x;break;case "EXPANDABLE_METADATA":this.expandableMetadata=x;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
x;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=x}},
toggleCinematicsActive:function(O){this.cinematicsActive=O},
isMiniplayerActive:function(){return _.GG().resolve(_.Vs).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var H3u;_.rUL=function(O){if(!(0,_.xk2)(O))throw Error("K``"+String(O));};
_.KCQ=function(O){return O.findIndex(function(x){return H3u.indexOf(x.tagName)>-1})>-1};
_.dwQ=function(){var O=_.GG().resolve(_.Wr);_.kO$(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(O.isFullscreenEnabled()?_.vq(document.documentElement):_.$_s(document.documentElement))};
H3u=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Kk=new Map;_.Kk.set(32,59972);_.Kk.set(27,50765);_.Kk.set(70,60102);_.Kk.set(76,60221);_.Kk.set(77,60222);_.Kk.set(74,60223);_.Kk.set(84,60224);_.Kk.set(38,61941);_.Kk.set(40,61942);_.Kk.set(73,62521);_.Kk.set(67,62522);_.Kk.set(80,63390);_.Kk.set(78,63397);_.Kk.set(75,59972);_.Kk.set(188,63385);_.Kk.set(190,63384);_.Kk.set(36,63387);
_.Kk.set(35,63386);_.Kk.set(37,63388);_.Kk.set(39,63389);_.Kk.set(79,63423);_.Kk.set(87,63424);_.Kk.set(107,63426);_.Kk.set(109,63425);_.Kk.set(65,63428);_.Kk.set(83,63430);_.Kk.set(68,63429);_.Kk.set(221,63431);_.Kk.set(219,63432);_.Kk.set(97,63439);_.Kk.set(98,63440);_.Kk.set(99,63441);_.Kk.set(100,63442);_.Kk.set(101,63443);_.Kk.set(102,63444);_.Kk.set(103,63445);_.Kk.set(104,63446);_.Kk.set(105,63447);_.di=new Map;_.di.set(80,63390);_.di.set(78,63397);_.di.set(188,63400);_.di.set(190,63401);
_.di.set(191,60765);_.di.set(13,247917);_.nk=new Map;_.uv=new Map;
}catch(e){_._DumpException(e)}
try{
var TaL,AaL,M2Y,D3Q;_.l9h=function(O){return O.ui.guideIsVisibleButNotPersistent};
_.CDL=function(O){return O.ui.tabGesturesIsActive};
_.Qyp=function(){var O=_.Z0("service_worker_scope");try{return navigator.serviceWorker.getRegistration(O)}catch(x){return Promise.reject(x)}};
_.bwu=function(O){return!(!O||!O.pushManager)};
TaL=function(){return _.Qyp().then(_.bwu).catch(function(){return!1})};
_.L1X=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?TaL():Promise.resolve(!1)};
_.kQ4=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
AaL=function(){var O,x,e;return _.A(function(l){switch(l.nextAddress){case 1:return l.yield(_.Ko.getInstance(),2);case 2:O=l.yieldResult;if(!O){x=void 0;l.jumpTo(3);break}return l.yield(O.get("lmqf"),4);case 4:x=l.yieldResult;case 3:switch((e=x)||(e="SD"),e){case "HD":return l.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return l.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return l.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return l.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return l.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
M2Y=function(O){var x,e,l;return _.A(function(C){if(C.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.t("disable_av1_setting")){var Q=window.localStorage["yt-player-av1-pref"];Q=Q==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":Q==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else Q="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(x=O===Q)return C.jumpTo(2);l=e=O;return C.yield(AaL(),3)}C.nextAddress!=2&&(x=l===C.yieldResult);return C.return(x)})};var GQX;var F14=_.p6.IronButtonState,XDh=(0,_.PP)(HTMLElement);
_.tY({_template:function(){if(GQX!==void 0)return GQX;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;D3Q===void 0&&(D3Q=document.createElement("template"));var l=D3Q;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return GQX=O},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[F14,_.I1,_.R1,_.m_],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(O){var x=(0,_.sZ)(this);x.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:O});x.shadowRoot.appendChild(O);return XDh.prototype._attachDom.call(this,O)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var O=this.contentElement;O&&O.selectedItem&&this._setSelectedItem(O.selectedItem)},
get contentElement(){for(var O=_.G0(this.$.content).getDistributedNodes(),x=0,e=O.length;x<e;x++)if(O[x].nodeType===Node.ELEMENT_NODE)return O[x]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(O){this._setSelectedItem(O.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(O){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O)===this&&this.open()},
_selectedItemChanged:function(O){var x="";O?x=O.label||O.getAttribute("label")||O.textContent.trim():x="";this.value=x;this._setSelectedItemLabel(x)},
_computeMenuVerticalOffset:function(O,x){return x?x:O?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var O=this.opened?"true":"false",x=this.contentElement;x&&x.setAttribute("aria-expanded",O)}});_.Vw=new _.$x("navigateAction");var ogL=new _.$x("formRenderer");var pv=function(){var O=_.MQ.apply(this,arguments)||this;O.showInput=!1;return O};
_.c(pv,_.MQ);_.b=pv.prototype;_.b.detached=function(){this.showInput&&window.removeEventListener("click",_.Qa(this,this.closeOnOutsideClick_))};
_.b.stopPropagation_=function(O){this.showInput&&O.stopPropagation()};
_.b.closeOnOutsideClick_=function(O){this.closeOnOutsideClickCondition(O)&&(this.showInput=!1,window.removeEventListener("click",_.Qa(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.b.closeOnOutsideClickCondition=function(){return!0};
_.b.closeOnOutsideClickHandler=function(){};
_.b.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Qa(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.b.openOnClickHandler=function(){};
_.b.showInputChanged=function(){};
_.b.setShowInput=function(O){this.showInput=O};
pv.prototype.setShowInput=pv.prototype.setShowInput;pv.prototype.showInputChanged=pv.prototype.showInputChanged;pv.prototype.openOnClickHandler=pv.prototype.openOnClickHandler;pv.prototype.openOnClick_=pv.prototype.openOnClick_;pv.prototype.closeOnOutsideClickHandler=pv.prototype.closeOnOutsideClickHandler;pv.prototype.closeOnOutsideClickCondition=pv.prototype.closeOnOutsideClickCondition;pv.prototype.closeOnOutsideClick_=pv.prototype.closeOnOutsideClick_;pv.prototype.stopPropagation_=pv.prototype.stopPropagation_;
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pv.prototype,"showInput",void 0);_.B([_.bH("click"),_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],pv.prototype,"stopPropagation_",null);_.B([_.T1("showInput"),_.v("design:type",Function),_.v("design:paramtypes",[Boolean]),_.v("design:returntype")],pv.prototype,"showInputChanged",null);_.B([_.DC()],pv);_.ya$=[pv.prototype];var ZwX;var EgX;var RG=function(){return _.a.apply(this,arguments)||this};
_.c(RG,_.a);_.b=RG.prototype;_.b.computePreselectedOption=function(O,x){return x===this.itemSelected_?O:void 0};
_.b.dataChanged_=function(){var O=this;this.preselectedSubreason=this.itemSelected_=-1;var x;(x=this.data)!=null&&x.key&&_.A_(this,function(){var e,l=Number((e=O.data)==null?void 0:e.key);!Number.isNaN(l)&&(O.itemSelected_=l,e=(e=(O.data.items||[])[l])&&e.optionSelectableItemRenderer&&e.optionSelectableItemRenderer.preselectedIndex)&&(O.preselectedSubreason=e)})};
_.b.isSubReasonHidden_=function(O,x){return O!=x};
_.b.onTopItemSelected_=function(O,x){for(var e=_.$U(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),l=0,C=e.length;l<C;l++)e[l].select(0);_.Sh(this.hostElement,"yt-report-form-update",[x.item.value]);O.stopPropagation()};
_.b.onItemSelected_=function(O,x){_.Sh(this.hostElement,"yt-report-form-update",[x.item.value]);O.stopPropagation()};
_.b.getItem_=function(O){return O.serviceItem?O.serviceItem:O.navigationItem?O.navigationItem:O.optionSelectableItemRenderer?O.optionSelectableItemRenderer:null};
_.b.computeText_=function(O){return(O=this.getItem_(O))?this.ytRendererBehavior.getSimpleString(O.text):null};
_.b.validate=function(){return this.itemSelected_!==-1};
_.b.computeAriaLabel_=function(O){var x=_.db(O.text);(O=O.accessibility&&O.accessibility.accessibilityData&&O.accessibility.accessibilityData.label)&&(x+=". "+O);return x};
_.b.computeItemSelected_=function(O){return O};
_.b.preventSelection_=function(O){O.stopPropagation();this.tooltipTapped=!0};
_.b.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.b.updateItemSelectedFromBinding=function(O){this.itemSelected_=O.detail.value};
_.b.save=function(){var O;this.validate()&&(O=this.data)!=null&&O.items&&(O=this.data.items[this.itemSelected_],O!=null&&O.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(O.optionSelectableItemRenderer.submitEndpoint)||_.N9(this.hostElement,[O.optionSelectableItemRenderer.submitEndpoint])))};
RG.prototype.onPaperRippleTransitionEnd_=RG.prototype.onPaperRippleTransitionEnd_;RG.prototype.dataChanged_=RG.prototype.dataChanged_;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],RG.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],RG.prototype,"data",void 0);_.B([_.R({value:-1}),_.v("design:type",Number)],RG.prototype,"itemSelected_",void 0);
_.B([_.R({computed:"computeItemSelected_(itemSelected_)"}),_.v("design:type",Number)],RG.prototype,"value",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],RG.prototype,"restoreFocusOnClose",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],RG.prototype,"tooltipTapped",void 0);_.B([_.R({value:-1}),_.v("design:type",Number)],RG.prototype,"preselectedSubreason",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RG.prototype,"dataChanged_",null);_.B([_.bH("transitionend"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RG.prototype,"onPaperRippleTransitionEnd_",null);_.B([_.Va({is:"yt-options-renderer",disableElementRegistration:!0})],RG);
_.n(RG,"yt-options-renderer",function(){if(EgX===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ZwX===void 0&&(ZwX=document.createElement("template"));var l=ZwX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);EgX=O}O=EgX;return O},{mode:2});var t2w;var qZQ;var PDh;var caQ;var I9L;var V2L;var Ui=function(){return _.a.apply(this,arguments)||this};
_.c(Ui,_.a);Ui.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Ui.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ui.prototype.onTap=function(O){if(this.hostElement.classList.contains("selected")||_.Sh(this.hostElement,"yt-share-panel-can-select-contact-action")[0])O&&O.detail&&(O.detail.x||O.detail.y)&&_.$U(this.hostElement).querySelector("#target").blur(),(O=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),O={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:O?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Sh(this.hostElement,"yt-share-panel-select-contact-action",[O])};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.B([_.R({observer:"onDataChanged"}),_.v("design:type",Object)],Ui.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.v("design:type",String)],Ui.prototype,"componentTitle",void 0);_.B([_.kX("#thumbnail"),_.v("design:type",Object)],Ui.prototype,"thumbnail",void 0);_.B([_.Va({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Ui);
_.n(Ui,"yt-enrolled-contact-renderer",function(){if(V2L===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;I9L===void 0&&(I9L=document.createElement("template"));var l=I9L;e.call(x,l.content.cloneNode(!0),O.content.firstChild);V2L=O}O=V2L;return O},{mode:2});var pD$;var RRL;var aG=function(){return _.a.apply(this,arguments)||this};
_.c(aG,_.a);aG.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
aG.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
aG.prototype.onTap=function(O){if(this.hostElement.classList.contains("selected")||_.Sh(this.hostElement,"yt-share-panel-can-select-contact-action")[0])O&&O.detail&&(O.detail.x||O.detail.y)&&_.$U(this.hostElement).querySelector("#target").blur(),(O=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),O={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:O?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Sh(this.hostElement,"yt-share-panel-select-contact-action",[O])};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.B([_.R({observer:"onDataChanged"}),_.v("design:type",Object)],aG.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.v("design:type",String)],aG.prototype,"componentTitle",void 0);_.B([_.kX("#thumbnail"),_.v("design:type",Object)],aG.prototype,"thumbnail",void 0);_.B([_.Va({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],aG);
_.n(aG,"yt-suggested-contact-renderer",function(){if(RRL===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;pD$===void 0&&(pD$=document.createElement("template"));var l=pD$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);RRL=O}O=RRL;return O},{mode:2});var mZ=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-share-panel-reset-action":"onReset"};return O};
_.c(mZ,_.a);mZ.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"}}}}}};
mZ.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Sh(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
mZ.prototype.onReset=function(){for(var O=_.$U(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),x=O.length-1;x>=0;x--)O[x].classList.toggle("selected")};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],mZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({observer:"onDataChanged"}),_.v("design:type",Object)],mZ.prototype,"data",void 0);
_.B([_.Va({is:"yt-contact-section-renderer",disableElementRegistration:!0})],mZ);
_.n(mZ,"yt-contact-section-renderer",function(){if(caQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;PDh===void 0&&(PDh=document.createElement("template"));var l=PDh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);caQ=O}O=caQ;return O},{mode:2});var si=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return O};
_.c(si,_.a);_.b=si.prototype;_.b.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"}}}};
_.b.onYtRefreshFormCommand=function(O){var x;(O=_.q((x=_.q(O,_.s32))==null?void 0:x.formRenderer,ogL))&&this.set("data",O)};
_.b.reset=function(){var O=_.$U(this.hostElement).querySelector("#fields").children;O=_.T(O);for(var x=O.next();!x.done;x=O.next())x=x.value,x.reset&&x.reset()};
_.b.getForm=function(){var O={},x=_.$U(this.hostElement).querySelector("#fields").children;x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;if(!e.validate())return null;O[e.data.key]=e.value}return O};
_.b.submitFormFields=function(){if(this.fields)for(var O=_.T(this.fields),x=O.next();!x.done;x=O.next())x=x.value,x.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?x.save():x.nodeName==="YT-OPTIONS-RENDERER"&&x.save()};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],si.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],si.prototype,"data",void 0);_.B([_.AY("#fields > *"),_.v("design:type",Array)],si.prototype,"fields",void 0);
_.B([_.Va({is:"yt-form-renderer",disableElementRegistration:!0})],si);
_.n(si,"yt-form-renderer",function(){if(qZQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;t2w===void 0&&(t2w=document.createElement("template"));var l=t2w;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qZQ=O}O=qZQ;return O},{mode:2});var U3Q;var W_=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return O};
_.c(W_,_.a);W_.prototype.onCheckboxChange=function(O){this.data&&(O=(this.checked=_.uK(O).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})};
W_.prototype.handleUpdateCheckboxCommand=function(O){(O=_.q(O,_.j3N))&&this.data&&this.data.id===O.id&&(this.set("data.disabled",O.disabled),this.set("data.title",O.title))};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],W_.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],W_.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],W_.prototype,"checked",void 0);_.B([_.H({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],W_);
_.n(W_,"ytd-settings-checkbox-renderer",function(){if(U3Q!==void 0)return U3Q;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return U3Q=O},{mode:1});var a9L;var hV=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return O};
_.c(hV,_.a);hV.prototype.dataChanged=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return O.radio.removeAttribute("checked"),!O.data||!O.data.id||O.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.kQ4()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(x=O.data&&O.data.id)?e.yield(M2Y(O.data.id),4):e.jumpTo(3):(O.set("data.hidden",!0),e.jumpTo(0));e.nextAddress!=3&&(x=e.yieldResult);x&&_.Sh(O.hostElement,"yt-select-settings-radio-option",[O.data.id]);_.Ra(e)})};
hV.prototype.onButtonChanged=function(O){_.uK(O).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Sh(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
hV.prototype.onSelectOption=function(O){this.data&&this.data.id&&(this.data.id===O?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
hV.prototype.dataChanged=hV.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],hV.prototype,"ytActionHandlerBehavior",void 0);_.B([_.kX("#radio"),_.v("design:type",Object)],hV.prototype,"radio",void 0);_.B([_.R(),_.v("design:type",Object)],hV.prototype,"data",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],hV.prototype,"dataChanged",null);_.B([_.H({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],hV);
_.n(hV,"ytd-settings-radio-option-renderer",function(){if(a9L!==void 0)return a9L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return a9L=O},{mode:1});var m34;var z9=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return O};
_.c(z9,_.a);
z9.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"}}}};
z9.prototype.handleUpdateTextCommand=function(O){(O=_.q(O,_.NvD))&&this.data&&this.data.id===O.id&&this.set("data",O)};
z9.prototype.handleUpdateConnectedAppRendererCommand=function(O){if(_.q(O,_.ipN)&&this.data){var x,e;if(O=(x=_.q(O,_.ipN))==null?void 0:(e=x.newConnectedAppRenderer)==null?void 0:e.connectedAppRenderer)this.data=O}};
z9.prototype.computeConnectedAppStyle=function(O){return O.style?O.style.toLowerCase().replace(/_/g,"-"):""};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],z9.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],z9.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.v("design:type",String)],z9.prototype,"connectedAppStyle",void 0);_.B([_.H({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],z9);
_.n(z9,"ytd-connected-app-renderer",function(){if(m34!==void 0)return m34;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return m34=O},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Y8("iuT5Oc");

_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("L3n37");
var oE7=function(O){return O.watch.isLearningJourneyActive},yh7=_.O9(115994),ZAa=_.O9(115993),EEw=function(O,x,e){var l=this;
var C=e.dragDownAction;this.layer=0;this.JSC$23383_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return l.dragDownAction()}}}};
this.JSC$23383_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return l.dragDownAction()}}}};
this.fullscreen=!1;var Q=_.k0();_.Pu(Q,yh7,this.layer);_.Pu(Q,ZAa,this.layer);this.dragDownAction=function(){C();_.s1(Q,{visualElement:l.fullscreen?yh7:ZAa})};
this.gesture=new _.uW(O,x,this.getConfig(!1),"pandown");this.attach()};
EEw.prototype.attach=function(){this.gesture.attach()};
EEw.prototype.detach=function(){this.gesture.detach()};
EEw.prototype.update=function(O){this.fullscreen=O;var x=this.gesture;O=this.getConfig(O);x.config=O};
EEw.prototype.getConfig=function(O){return O?this.JSC$23383_watchFullScreenConfig:this.JSC$23383_watchConfig};var t_a=function(O){_.HA.call(this);var x=this;this.rootElement=O;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return x.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(e){x.initOrDisposeActiveModules(e)}));
this.onAttached()};
_.c(t_a,_.HA);_.b=t_a.prototype;_.b.getRoot=function(){return this.rootElement};
_.b.getElement=function(O){return this.rootElement.getElement(O)};
_.b.setPlayerResponse=function(O){this.playerResponse=O;this.publish("PLAYER_RESPONSE_UPDATED",O)};
_.b.getPlayerResponse=function(){return this.playerResponse};
_.b.setWatchNextResponse=function(O){this.watchNextResponse===O?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=O,this.publish("WATCH_NEXT_RESPONSE_UPDATED",O))};
_.b.getWatchNextResponse=function(){return this.watchNextResponse};
_.b.registerActionHandler=function(O,x){var e=this;if(_.t("web_watch_controller_reg_multiple_handlers_killswitch")){var l={};_.e2(_.iU.getInstance(),(l[O]=x,l),this.getRoot())}else this.actionHandlers.has(O)||(this.actionHandlers.set(O,[]),l={},_.e2(_.iU.getInstance(),(l[O]=function(){var C=_.vw.apply(0,arguments);return(e.actionHandlers.get(O)||[]).map(function(Q){return Q.apply(null,_.Kx(C))})},l),this.getRoot())),this.actionHandlers.get(O).push(x)};
_.b.unregisterActionHandler=function(O){if(_.t("web_watch_controller_reg_multiple_handlers_killswitch")){var x={};_.lD(_.iU.getInstance(),(x[O]=!0,x),this.getRoot())}else(x=this.actionHandlers.get(O))?(x.pop(),x.length===0&&(x={},_.lD(_.iU.getInstance(),(x[O]=!0,x),this.getRoot()),this.actionHandlers.delete(O))):_.ft(new _.ry("Attempted to unregister an action handler which is not registered.",O))};
_.b.addPageDisposeJob=function(O){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.m$L(this.rootElement.pageDisposeJobs,O)};
_.b.removePageDisposeJob=function(O){this.rootElement.pageDisposeJobs&&_.YW(this.rootElement.pageDisposeJobs,O)};
_.b.dispatchEvent=function(O,x){_.wr(this.rootElement,O,x)};
_.b.provideRenderingData=function(O,x){this.rootElement.provideRenderingData(O,x)};
_.b.scrollWatchTo=function(O,x){var e;(e=this.watchScrollManager)==null||e.scrollWatchTo(O,x)};
_.b.focusOnPlayer=function(){var O=this.getElement("PLAYER");_.A_(O,function(){if(O&&O.firstElementChild){var x=O.querySelector(".html5-video-player");x&&(_.yl(_.GG().resolve(_.Fn)),x.focus())}else _.ft(Error("Yo"))})};
var qQc=function(O){var x=!!O.rootElement.theater,e=!!O.rootElement.fullscreen,l;(l=O.watchCinematicManager)==null||_.g_a(l,e,x)};
_.b=t_a.prototype;_.b.subscribeToActiveChanged=function(O,x){x=x===void 0?!0:x;var e=_.mw(_.u9(),oE7,function(l){O(l)});
x&&O(oE7(_.u9().getState()));return e};
_.b.isActive=function(){return oE7(_.u9().getState())};
_.b.onAttached=function(){var O=_.t("external_fullscreen");_.t("use_unified_flag_accessor")&&(O=_.GG().resolve(_.Lxh).retriever.getFlag(_.TDD));(O||_.SS("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.b.initPersistentModules=function(){if(_.t("kevlar_watch_flexy_theater_manager")){var O=new _.c_w(this);_.qq(this,O)}O=new _.MhS(this);_.qq(this,O);O=new _.W6(this);_.qq(this,O);O=new _.Trh(this);_.qq(this,O);O=new _.KH(this);_.qq(this,O);O=new _.h2(this);_.qq(this,O);_.t("kevlar_watch_flexy_playlist_manager")&&(O=new _.v7E(this),_.qq(this,O))};
_.b.initOrDisposeActiveModules=function(O){O?(this.watchScrollManager=new _.dB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.pqU(this)),this.activeModules.push(new _.I9y(this)),this.activeModules.push(new _.Nra(this)),this.activeModules.push(new _.E7S(this)),_.t("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.a9k(this)),this.activeModules.push(new _.WHo(this)),_.t("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.$9c(this)),
_.t("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.n_c(this)),_.t("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.fyE(this),this.activeModules.push(this.watchCinematicManager),qQc(this)),_.t("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.H1S(this)),_.t("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.k0c(this)),O=_.t("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.t("kevlar_watch_flexy_comments_manager")&&
!O&&this.activeModules.push(new _.eos(this)),_.t("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.YZs(this)),this.activeModules.push(new _.spE(this)),this.activeModules.push(new _.U9o(this)),_.t("web_enable_timely_actions")&&this.activeModules.push(new _.r_c(this)),_.t("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.lyy(this)),_.t("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.SZh(this)),_.t("web_fullscreen_components")&&
this.activeModules.push(new _.hRc(this)),_.t("web_player_rtr_ctrls")&&this.activeModules.push(new _.QpE(this))):(_.k8(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.b.disposeInternal=function(){_.HA.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Dy.Object.defineProperties(t_a.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var P9E={},ch7=["learning-journey-engagement-panel","PAlearning_chat"];
P9E.YtdLearningJourneyWatchBehavior=[_.S.YtRendererBehavior,_.AT.YtPlayerListenerBehavior,_.ZX.YtRendererstamperBehavior,_.Wt.YtActionHandlerBehavior,_.b5.YtPageBehavior,_.sJ.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.SS("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.t("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.SS("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.t("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.t("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 _.yF("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.yF("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("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 _.t("web_watch_rounded_player_large")||_.t("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 _.t("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.t("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("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 _.t("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.t("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:_.XB(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.XB(["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 O=this;this.watchController=void 0;this.pageDisposeJobs=[function(){O.showMetadataPlaceholder_()},
function(){_.t("web_watch_dont_clear_comments")||O.clearComments_()},
function(){O.clearPlayerAds_()},
function(){O.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;_.t("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.t("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.SOy(function(){return _.ve(O)},this.hostElement);
this.pageDisposeJobs.push(function(){O.youThereManager_.reset()});
_.t("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){O.resetFullerscreenEduButtonForNewPlayback_()}));
_.t("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.A5;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;_.t("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.t("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));_.t("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Qa(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(O){O&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:O}),O.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(O){_.t("kevlar_watch_flexy_theater_manager")&&(this.theater=O,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.t("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(O){!_.t("kevlar_watch_while_v2")&&!_.t("web_watch_pip")||O||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(O){this.active!==void 0&&(this.fullscreen=O,_.t("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(O){this.active!==void 0&&(_.wr(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.t("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(O>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(O){this.initCsi_();this.updatePageData_(O)},
updatePageData_:function(O){var x=this;if(O)if(this.data===O){this.onPageLoadWithSameData_();var e;(e=this.watchController)==null||e.setWatchNextResponse(this.data)}else this.data=O;this.playlist&&_.EO({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.IR("nw");this.loading=!1;_.zl(_.vn,function(){x.initDclkstatus_();var l,C=((l=x.player)==null?void 0:l.getVideoData().cpn)||"";_.WRI(function(Q,L){_.WCQ(Q,L,C)})})},
onPageLoadWithSameData_:function(){_.t("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 O=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!O);this.set("loadingData.playlistLoading",O&&O!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),O=this.watchNextSkeletonEl_.firstElementChild;O;)O.classList.remove("hidden"),O=O.nextElementSibling;var x,e,l;O=(x=this.loadingData)==null?void 0:(e=x.endpoint)==null?void 0:(l=e.watchEndpoint)==null?void 0:l.videoId;var C;O&&(C="https://i.ytimg.com/vi/"+O+"/frame0.jpg");_.$U(this.hostElement).querySelector("#player").style.backgroundImage=C?"url("+C+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var O=_.$U(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&O&&(O.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var x,e;(e=(x=this.watchMetadata).updateSentimentBarWidth)==
null||e.call(x);var l,C;(C=(l=this.watchMetadata).resize)==null||C.call(l)}_.$U(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(O){var x=_.$U(this.hostElement).querySelector(O);x?_.f1(x,!1):_.ft(new _.ry("Overscroll monitor not found for component: ",O))},
removeSplitScrollMouseTrap:function(O){var x=_.$U(this.hostElement).querySelector(O);x?_.Js(x):_.ft(new _.ry("Disposal component for  overscroll monitoring not found: ",O))},
onLoadingChanged_:function(O){O?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(O){var x=this;O?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.vn.addLowPriorityJob(function(){x.onWindowResized_(_.L3(!0))})},
updateTheaterModeState_:function(O){if(!_.t("kevlar_watch_flexy_theater_manager")){O=O||this.fullWindowMode_;if(this.theater!==void 0||O)this.theater=O;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();O&&_.g8E()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var O=this.theater;_.t("external_fullscreen")&&this.fullscreen&&(O=!0);O=O?_.$U(this.hostElement).querySelector("#player-full-bleed-container"):_.$U(this.hostElement).querySelector("#player-container-inner");var x=this.getPlayerContainer(),e=_.t("kevlar_watch_while_v2")||_.t("web_watch_pip");x.parentElement!==O&&(e&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.ve(this).appendTo(O,x),O.appendChild(_.$U(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var O=this;return _.A(function(x){if(x.nextAddress==1)return x.yield(_.GG().resolve(_.Vs).deactivate(),2);O.updatePlayerLocation();_.Ra(x)})},
updateCinematicsLocation:function(){var O=this.getElement("CINEMATICS");if(O){var x=this.getCinematicsLocationContainer();O.parentElement!==x&&x.appendChild(O);var e;(e=this.watchController)==null||qQc(e)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.$U(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.$U(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(O,x){var e=document.documentElement.hasAttribute("dark"),l=e&&_.t("web_cinematic_theater_mode"),C=e&&_.t("web_cinematic_fullscreen");e=!e&&this.cinematicLightTheme;return O&&l||x&&C||(x||O)&&e},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data);_.t("kevlar_watch_flexy_comments_manager")||this.initComments_();_.t("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GG().resolve(_.gx).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.t("web_watch_start_chat_in_theater_mode")){var x,
e,l;if((x=this.data)==null?0:(e=x.contents)==null?0:(l=e.twoColumnWatchNextResults)==null?0:l.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var C,Q;((C=this.data)==null?0:(Q=C.contents)==null?0:Q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(O){var x;(x=this.watchController)==null||x.setPlayerResponse(this.playerData);O&&O.playabilityStatus&&(x=this.isVideoPlayable_(O.playabilityStatus,this.getPlayerOverlays_(this.data)),O=this.isLiveStreamOffline_(O.playabilityStatus),x&&!O||_.A_(this,function(){_.IR("pbu")}));
this.setPlayerAds_();_.jh(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(O){_.u9().dispatch(_.j6({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));O?this.activate_():this.deactivate_()},
attached:function(){var O=this;this.watchController=new t_a(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.t("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var x=_.ve(this);_.t("kevlar_disable_prepare_player")||x.preparePlayer();_.t("kevlar_watch_flexy_playlist_manager")||_.GG().resolve(_.gx).setPlayer(x);this.updatePageMediaQueries();x={"--ytd-watch-flexy-scrollbar-width":_.DT()+
"px"};!_.yF("kv_pl_mx_sz_ks")&&_.yF("kevlar_watch_max_player_width")&&(x["--ytd-watch-flexy-max-player-width-wide-screen"]=_.umU+"px");_.yF("kevlar_watch_flexy_metadata_height")&&(x["--ytd-watch-flexy-space-below-player"]=_.Y0E+"px");this.safeUpdateStyles(x);_.t("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new EEw(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return O.onPlayerTouchPanDown_()}}));
_.t("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.$U(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var O=_.DT(),x=_.dJ+O,e=x;this.fixedPanels&&(x+=_.nKT);var l=657+O;O=1327+O;_.$U(this.hostElement).querySelector("#two-column-query").query="(min-width: "+x+"px)";_.$U(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(l+"px), (min-height: 630px) and (min-width: ")+(x+"px) and (max-width: ")+(O+"px)");_.$U(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(O+"px)");
_.$U(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+e+"px)"},
calculateCurrentPlayerSize_:function(){var O=_.$U(this.hostElement).querySelector("#miniplayer-bar").firstChild;return O&&O.active||this.theater||_.t("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.pu(NaN,NaN):_.KRS(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.KRS(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Lf(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var O=this;this.onWindowResized_(_.L3());_.t("browse_skeleton_removal_on_watch_killswitch")||_.SS("IS_SHELL_LOAD")&&_.fQa();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var x=_.ve(this);x.addEventListener("yt-player-updated",_.Qa(this,this.onPlayerUpdated_));x.getPlayerPromise().then(function(e){O.playerApiReady_(e)});
_.t("kevlar_watch_flexy_playlist_manager")||(x=_.GG().resolve(_.gx),_.t("kevlar_watch_observe_playlist_navigations_killswitch")&&x.addEventListener("yt-navigate",_.Qa(this,this.onYtNavigate_)),x.setPlaylistComponent(_.$U(this.hostElement).querySelector("#playlist")),x.addEventListener("yt-playlist-data-updated",_.Qa(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.vn.addLowPriorityJob(function(){_.wr(O.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.ve(this).removeEventListener("yt-player-updated",_.Qa(this,this.onPlayerUpdated_));if(!_.t("kevlar_watch_flexy_playlist_manager")){var O=_.GG().resolve(_.gx);_.t("kevlar_watch_observe_playlist_navigations_killswitch")&&O.removeEventListener("yt-navigate",_.Qa(this,this.onYtNavigate_));O.cancelVideoSkip();O.removeEventListener("yt-playlist-data-updated",_.Qa(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.t("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.wr(this.hostElement,"yt-autonav-pause-player",!1);O=_.Bq();_.t("kevlar_exit_fullscreen_leaving_watch")&&O&&_.vq(O)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(O){this.player&&this.player.updateVideoData({rvs:O.rvs})},
getPageContents:function(O){return O&&O.contents&&O.contents.twoColumnWatchNextResults&&O.contents.twoColumnWatchNextResults.results&&O.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(O){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",O)},
onRetrieveLocation_:function(O,x){x.hasComments?x.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):x.locationRetrieved("/related_ajax",void 0);O.stopPropagation()},
onSubscriptionChanged_:function(O,x){this.player&&(x?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.OUa("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.$U(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.$U(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(O){this.player=O;this.setPlayerState(O.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.t("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.t("kevlar_unified_player")||_.t("kevlar_player_new_bootstrap_adoption"))&&_.UM()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(O,x){x=x===void 0?!0:x;_.Bq()&&_.t("external_fullscreen")&&_.vq(document.documentElement);this.theaterRequested_=O;x&&_.sC("wide",O?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.t("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Sh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.wr(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(O){_.JG(O,typeof this.player),this.player&&_.JG(O,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var O;((O=this.player)==null?0:O.isFullscreen())?this.player.toggleFullscreen():_.Sh(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(O,x){return this.loading?x:!!Object.keys(O).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(O){if(O){O=_.T(O);for(var x=O.next();!x.done;x=O.next())x=x.value,x.youThereRenderer&&_.gmy(this.youThereManager_,x.youThereRenderer)}},
setPlaylistData_:function(O){return O||{}},
userEngagementConfigDataChanged_:function(O){if(O)if(O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var x=this.youThereManager_;_.Gl()<O.lowEngagementThresholdMs||_.xcH(x,!0)}else O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Sh(this.hostElement,"yt-autonav-pause-user-engagement",[O])},
isPlayerUnavailable_:function(O,x,e){return!!O&&!this.isVideoPlayable_(O,e)&&!x},
getPlayerOverlays_:function(O){return(O==null?void 0:O.playerOverlays)||null},
isVideoPlayable_:function(O,x){if(!O)return!1;var e=O.status==="OK"||O.status==="LIVE_STREAM_OFFLINE",l=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",O)||this.get("errorScreen.ypcTrailerRenderer",O);O=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",O);var C;x=x==null?void 0:(C=x.playerOverlayRenderer)==null?void 0:C.gatedActionsOverlayRenderer;return!!e||!!l||!!O||!!x},
hasWatchNextResponseErrorRenderer:function(O){var x=this.getPageContents(O),e,l,C,Q,L;return!(O==null?0:(e=O.contents)==null?0:(l=e.twoColumnWatchNextResults)==null?0:l.secondaryResults)&&!!((C=x[0])==null?0:(Q=C.itemSectionRenderer)==null?0:(L=Q.contents[0])==null?0:L.backgroundPromoRenderer)},
isLiveStreamOffline_:function(O){return O?O.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(O,x,e){var l=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x),C=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];C=_.t("web_no_skip_video_on_verification_checks")?(O==null?void 0:O.status)&&C.includes(O.status):O&&O.status==="AGE_CHECK_REQUIRED";var Q=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",O);Q==void 0&&(Q=!0);!e||this.isVideoPlayable_(O,this.getPlayerOverlays_(x))||
l||C||!Q||_.GG().resolve(_.gx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.nma()},
onPlayerFeedbackStartRequest_:function(O){_.Sh(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:O}])},
onPlayerFeedbackArticleRequest_:function(O){_.Sh(this.hostElement,"yt-help-dialog-requested",[O])},
onPlayerYpcContentRequest_:function(){var O,x,e,l,C,Q,L,k,M=((O=this.data)==null?NaN:(x=O.contents)==null?NaN:(e=x.twoColumnWatchNextResults)==null?NaN:(l=e.secondaryResults)==null?NaN:(C=l.secondaryResults)==null?NaN:(Q=C.offerModule)==null?NaN:(L=Q.tvfilmOfferModuleRenderer)==null?NaN:(k=L.actionButtons)==null?NaN:k.length)-1;O=[".offerButton.buttonRenderer.",".actionButtons."+(M>=0?M:0)+".buttonRenderer."];x=_.T(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(e=x.next();!e.done;e=x.next())for(e=e.value,l=_.T(O),C=l.next();!C.done;C=l.next())if(C="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+e+C.value,C=this.get(C+"navigationEndpoint",this.data)||this.get(C+"serviceEndpoint",this.data)||this.get(C+"command",this.data)){_.C_(C,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(O){_.wr(this.hostElement,"yt-autonav-pause-player",O)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(O){O()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.wr(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(O)},
setPlayerState:function(O){_.u9().dispatch(_.nBz(O))},
onPlayerSubscribe_:function(O){_.Sh(this.hostElement,"yt-player-subscribe",[O])},
onPlayerUnsubscribe_:function(O){_.Sh(this.hostElement,"yt-player-unsubscribe",[O])},
onPlayerAdYtShowToast_:function(O){_.Sh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:O.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(O){if(O)return O},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(O){return!_.t("web_watch_move_summary_to_sd")&&!!O},
computeWatchMetadataRefresh:function(){return _.t("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var O,x,e,l;this.watchNextSecondaryResults=(O=this.data)==null?void 0:(x=O.contents)==null?void 0:(e=x.twoColumnWatchNextResults)==null?void 0:(l=e.secondaryResults)==null?void 0:l.secondaryResults}},
setRichGridRendererData:function(O){this.richGridRendererData=O},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var O,x=(O=this.data)==null?void 0:O.engagementPanels;if(x==null?0:x.length){O=null;x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=void 0;if(((l=e.engagementPanelSectionListRenderer)==null?void 0:l.targetId)==="engagement-panel-structured-description"){O=e;break}}var C,Q,L;O=(C=O)==null?void 0:(Q=C.engagementPanelSectionListRenderer)==null?void 0:(L=Q.content)==null?void 0:L.structuredDescriptionContentRenderer;if(O==null?0:O.items){C=
[];Q=_.T(O.items);for(L=Q.next();!L.done;L=Q.next()){L=L.value;if(!_.t("sd_horizontal_list_show_nav_killswitch")){var k=l=e=x=O=void 0,M=void 0,G=(O=L.horizontalCardListRenderer)==null?void 0:(x=O.header)==null?void 0:(e=x.richListHeaderRenderer)==null?void 0:(l=e.navigationButton)==null?void 0:(k=l.buttonRenderer)==null?void 0:(M=k.command)==null?void 0:M.commandExecutorCommand;G&&G.commands&&(G.commands=G.commands.filter(function(X){return!_.q(X,_.xDw)}))}L.expandableVideoDescriptionBodyRenderer||
L.videoDescriptionHeaderRenderer||C.push(L)}return{items:C}}}},
constructWarning_:function(O){return{text:_.KA(O),type:"WARNING"}},
isPlaShelfEnabled_:function(O){if((this.get("adPlacements",O)||[]).length)return!0;O=this.get("playerAds",O)||[];return!(!O.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",O[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var O=this;_.wr(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var x=this.getScrollTop()>0;this.gestures_&&(x?this.gestures_.detach():this.gestures_.attach());x!==this.showFullerscreenEdu_&&_.t("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=x,_.ve(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonVisibility(O.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.wr(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var O=this;this.commentsReady=!1;_.vn.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.zl(_.vn,function(){O.setComments_()},1E3)},
setComments_:function(){if(!_.t("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.IR("cmi");_.vn.cancelJob(this.setCommentsJobId_);var O=this.getPageContents(this.data);if(O&&O.length){O=_.T(O);for(var x=O.next();!x.done;x=O.next())if(x=x.value,this.get("itemSectionRenderer.sectionIdentifier",x)==="comment-item-section"){this.comments=x.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.wr(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.t("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.t("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.IR("cmc")},
doRemoveComments_:function(){this.comments={};_.t("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.vn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.vn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(O,x){var e=_.q(x.endpoint,_.Hq);e&&(!(x=this.get("data.currentVideoEndpoint.watchEndpoint"))||e.videoId!==x.videoId||e.playlistId&&e.playlistId!==x.playlistId||e.index!==void 0&&e.index!==x.index||typeof e.startTimeSeconds!=="number"||(O.stopPropagation(),this.setScrollTop(0),_.ve(this).getPlayerPromise().then(function(l){var C=e.startTimeSeconds;l.seekTo(C);l.wakeUpControls();C<l.getDuration()&&l.playVideo()})))},
updatePlayerStartTime_:function(){var O=_.c3a();"t"in O&&(O=_.dgh(O.t),this.player.seekTo(O,!0))},
updateTitleFromWatchNext:function(O){O=this.getPageContents(O);var x,e;(O=_.db(O==null?void 0:(x=O[0])==null?void 0:(e=x.videoPrimaryInfoRenderer)==null?void 0:e.title))&&_.wr(this.hostElement,"yt-update-title",O)},
updateTitle_:function(O){O=this.get("videoDetails.title",O)||"";_.wr(this.hostElement,"yt-update-title",O)},
syncWithRemoteVideo_:function(O,x,e){if(this.active&&this.player){var l=this.player.getVideoData();if(l.video_id===e&&(e=l.list,_.t("polymer_enable_mdx_queue")&&e&&e.startsWith("RQ")&&(e=void 0),l.video_id!==O||e!=x)){var C;_.t("kevlar_player_watch_endpoint_navigation")?C=_.vAN(_.hhH(O,x)):C=this.buildWatchEndpoint_(O,x);_.wr(this.hostElement,"yt-navigate",{endpoint:C,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(O,x,e){return _.fZ(O,x,e)},
initDclkstatus_:function(){_.HZa()},
attachWatchPageSkeleton_:function(){var O=document.querySelector("#watch-page-skeleton");if(O){var x=O.querySelector("#primary-info"),e=O.querySelector("#secondary-info"),l=O.querySelector("#related");x&&_.$U(this.hostElement).querySelector("#info-skeleton").appendChild(x);e&&_.$U(this.hostElement).querySelector("#meta-skeleton").appendChild(e);l&&(_.$U(this.hostElement).querySelector("#related-skeleton").appendChild(l),this.watchNextSkeletonEl_=l);_.Um(O)}},
handlePlayerUpdated_:function(){_.ve(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(O,x){if(this.watchNextSkeletonEl_&&typeof x!=="undefined"){var e=this.watchNextSkeletonEl_.children,l=O&&O.indexSplices.length?O.indexSplices[0].index:0;O=Math.min(this.watchNextShownItems.length,e.length);x||(l=0,O=e.length);for(x=l;x<O;x++)e[x].classList.add("hidden")}},
onPlayerFullscreenChange_:function(O){_.t("external_fullscreen")||_.Sh(this.hostElement,"yt-player-fullscreen",[O.fullscreen])},
onFullscreenChange_:function(O){this.fullscreen=O;this.gestures_&&this.gestures_.update(this.fullscreen);var x=_.ve(this);x.getPlayerPromise().then(function(e){e.setFauxFullscreen(!!_.Bq())});
this.updateFullBleedElementLocations();O&&(x.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(O,x){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!x},
computeIsDonationShelfCollapsed_:function(O){return O},
computeShouldShowMerchShelf:function(O,x){return x&&!!O},
computeResponseHasComments:function(O){var x,e,l,C,Q;return!!(O==null?0:(x=O.contents)==null?0:(e=x.twoColumnWatchNextResults)==null?0:(l=e.results)==null?0:(C=l.results)==null?0:(Q=C.contents)==null?0:Q.some(function(L){var k;return(L==null?void 0:(k=L.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(O,x){this.responseHasComments=this.computeResponseHasComments(this.data);return!!O&&!!Object.keys(O).length&&!x},
identity:_.Hi,onWindowResized_:function(O){this.windowSize_=O;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.t("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.t("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(O){var x=this;O&&O.type!=="dataloaded"&&O.type!=="dataupdated"||_.ve(this).getPlayerPromise().then(function(e){var l=e.getPlayerState();l!==5&&l!==0&&(e=1/e.getVideoAspectRatio(),x.videoHeightToWidthRatio_!==e&&(x.videoHeightToWidthRatio_=e))})},
schedulePlayerSizeUpdate_:function(O){var x=this,e=_.t("kevlar_watch_while_v2")||_.t("web_watch_pip"),l=function(){if(x.watchMetadata){var C,Q;(Q=(C=x.watchMetadata).resize)==null||Q.call(C)}_.ve(x).getPlayerPromise().then(function(L){if(_.t("kevlar_set_internal_player_size")){if(!e||!x.isMiniplayerActive()){var k=x.calculateCurrentPlayerSize_();L.setInternalSize(k.width,k.height)}}else L.setSize(NaN,NaN);_.t("kevlar_watch_while")&&x.updateWatchWhileScrollThreshold_()})};
O?l():_.e1(_.vn,l)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(O){this.set("data.survey",O.detail)},
onYtShowSurveyCommand_:function(O){this.set("data.survey",_.q(O,_.wUz).survey)},
onDownloadedVideoDeleted:function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1){if(!x.active||(e=x.playerData)==null||!e.offlineState||x.videoId!==O)return C.return();(l=x.player)==null||l.stopVideo();_.U7().navigatingAwayFromWatchDeletedVideo=!0;_.C_(_.vML,x.hostElement);return C.yield(_.U7().navigationFinishPromise,2)}_.U7().navigatingAwayFromWatchDeletedVideo=!1;_.Ra(C)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var O;this.theater?O=_.qo(.5625*this.windowSize_.width,480,this.windowSize_.height-185):O=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==O&&(this.watchWhileScrollThreshold_=O,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var O=_.$U(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&O){var x=this.windowSize_.height>=624,e=this.active?this.getScrollTop():0;!O.active&&x&&e>=this.watchWhileScrollThreshold_?(O.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):O.active&&(!x||e<this.watchWhileScrollThreshold_&&!_.Bq())&&(O.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(O,x){if(O!==!0||x!==void 0){O=!_.t("live_chat_over_engagement_panels");x=_.$U(this.hostElement).querySelector("#chat-container");var e=_.$U(this.hostElement).querySelector("#plj-sidebar"),l=_.$U(this.hostElement).querySelector("#panels"),C=_.$U(this.hostElement).querySelector("#plj-panels"),Q=_.$U(this.hostElement).querySelector("#plj-playlist"),L=_.$U(this.hostElement).querySelector("#alerts"),k=_.$U(this.hostElement).querySelector("#playlist"),M=_.$U(this.hostElement).querySelector("#related"),
G=_.$U(this.hostElement).querySelector("#donation-shelf"),X=_.$U(this.hostElement).querySelector("#comments");this.isTwoColumns_?(L=_.$U(this.hostElement).querySelector("#secondary-inner"),L.appendChild(e),e.appendChild(Q),Q.appendChild(k),e.appendChild(C),O&&L.appendChild(l),_.t("web_watch_theater_chat")||L.appendChild(x),O||L.appendChild(l),L.appendChild(G),L.appendChild(M)):(O&&_.Rs(l,L),_.Rs(k,L),_.t("web_watch_theater_chat")||_.Rs(x,L),O||_.Rs(l,L),_.Rs(G,L),X&&(C&&_.Rs(C,X),_.Rs(M,X)));_.t("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.t("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.t("web_watch_theater_chat")){var O=_.$U(this.hostElement).querySelector("#chat-container"),x=this.theater&&!this.fullscreen||_.t("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&x?_.t("web_watch_theater_chat_beside_player")?(x=_.$U(this.hostElement).querySelector("#panels-full-bleed-container"),(O==null?void 0:O.parentElement)!==x&&x.append(O),this.panelsBesidePlayer=!0):_.t("web_watch_theater_fixed_chat")&&
(x=_.$U(this.hostElement).querySelector("#columns"),(O==null?void 0:O.parentElement)!==x&&x.append(O),this.fixedPanels=!0):(_.t("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.t("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),x=_.$U(this.hostElement).querySelector("#playlist"),O&&x?_.U5(O,x):_.ft(new _.ry("Missing element when updating chat location",{"chatContainer defined":!!O,"playlist defined":!!x})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(O,x){return _.t("sw_metadata_vis_toggle_ks")?!0:!!O||!!x},
computeForceDarkPanelTheme:function(O){return _.t("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&O:!1},
safeUpdateStyles:function(O){try{_.lH(this.hostElement,O)}catch(x){_.ft(x)}},
videoHeightToWidthRatioChanged_:function(O,x){x&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.t("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(O){this.videoHeightToWidthRatio_=1/O},
computeIsVerticalVideo_:function(O){return O>=1},
computeIsFourThreeToSixteenNineVideo_:function(O){return O<=.7501&&O>=.5624},
computeIsExtraWideVideo_:function(O){return O<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.ve(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.ve(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.e1S(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(O){var x=_.tU(O)||0;_.EA(O,x+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var O=_.tU("yt-fullerscreen-edu-button-click-count")||0,x=_.tU("yt-fullerscreen-edu-button-shown-count")||0,e=_.yF("external_fullscreen_button_shown_threshold"),l=O>=_.yF("external_fullscreen_button_click_threshold")||x>=e;_.ve(this).getPlayerPromise().then(function(C){C.updateFullerscreenEduButtonSubtleModeState(l)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(O,x){return x},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GG().resolve(_.gx).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var O=this;this.panelMaxHeightUpdateJob_&&_.vn.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.vn.addLowPriorityJob(function(){O.panelMaxHeightUpdateJob_=0;var x;!O.isTwoColumns_||O.theater||O.fullscreen?x=460:x=O.calculateNormalPlayerSize_().height;var e=x+"px";_.t("live_chat_taller_height")&&!O.theater&&(e="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.t("live_chat_medium_height")&&
!O.theater&&(e="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.t("live_chat_scaled_height")&&!O.theater&&(e="calc(100vh - var(--ytd-toolbar-height) - 238px)");O.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":x+"px","--ytd-watch-flexy-chat-max-height":e,"--ytd-watch-flexy-structured-description-max-height":x+"px","--ytd-watch-flexy-comments-panel-max-height":x+"px","--ytd-comments-engagement-panel-content-height":x+"px"})})},
onYtShowEngagementPanelScrimAction_:function(O){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",O)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.gr(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(O){var x=_.$U(this.hostElement).querySelector("#engagement-panel-scrim");O?x.addEventListener("tap",_.Qa(this,this.onEngagementPanelScrimClick_)):x.removeEventListener("tap",_.Qa(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(O){if(this.hostElement.contains(O)&&!this.scrollToAnimation_.isAnimating()){var x=O.offsetTop-24;O=O.offsetTop+O.offsetHeight+24;var e=this.getPageScrollingElement(),l=this.getScrollTop(),C=l+e.clientHeight-56;if(x<l+56)x-=56;else if(O>C)x=O-e.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtSignalActionScrollToComments:function(){var O=this.hostElement.querySelector("#comments");if(O&&!this.scrollToAnimation_.isAnimating()){O=O.offsetTop-56-24;if(_.t("kevlar_comment_teaser_scroll_to_midpoint")&&(O-=_.Rn().height/3,O<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,O),500)}},
onYtEngagementPanelVisibleChanged:function(O,x,e){this.active&&this.trackEngagementPanelVisibility&&!_.f2c.includes(e)&&(x==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(e),x!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&x!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(e),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(O){return O?"":"watch-active-metadata"},
computeNewMetadataClass:function(O){return O?"watch-active-metadata":""},
computeFullBleedPlayer:function(O,x){return O||x},
computeDefaultLayout:function(O){return!O},
computeDefaultTwoColumnLayout:function(O,x){return!O&&x},
computeWatchWhilePanelsActive:function(O,x){return O||x},
computeNoBorderOnChat:function(O){return _.t("web_watch_theater_chat_no_border")&&O},
computeLiveChatPresentAndExpanded:function(O,x){return O&&!x},
computePanelExpanded:function(O,x,e){return O||x||e},
onChangeMarkersVisibility:function(O){_.ve(this).getPlayerPromise().then(function(x){var e;(e=x.changeMarkerVisibility)==null||e.call(x,_.q(O,_.v6).isVisible||!1,_.q(O,_.v6).entityKeys||[],_.q(O,_.v6).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(O){this.liveChatCollapsed=O.detail;_.u9().dispatch(_.vm7(O.detail))},
provideRenderingData:function(O,x){switch(O){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=x;break;case "PRIMARY_INFO":_.t("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=x);this.videoPrimaryInfoRendererValue=x==null?void 0:x.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.t("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=x);this.videoSecondaryInfoRendererValue=x==null?void 0:x.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
x;break;case "CLARIFICATION":this.clarifyBoxValue=x;break;case "LIVE_CHAT":this.conversationBar=x;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=x;break;case "PLAYLIST":this.externalPlaylistData_=x!=null?x:{};break;case "MERCH_SHELF":this.merchShelfValue=x==null?void 0:x.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=x;break;case "OFFER_MODULE":this.offerModule=x;break;case "LIMITED_STATE":this.limitedStateValue=x;break;case "DONATION_SHELF":this.donation=x;break;
case "ALERTS":this.alertsValue=x;break;case "COMMENTS":this.comments=x;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=x;break;case "ENGAGEMENT_PANELS":this.engagementPanels=x;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=x;break;case "RICH_GRID_RENDERER":this.richGridRendererData=x;break;case "EXPANDABLE_METADATA":this.expandableMetadata=x;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=x}},
toggleCinematicsActive:function(O){this.cinematicsActive=O},
isMiniplayerActive:function(){return _.GG().resolve(_.Vs).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(O){return ch7.map(function(x){return O.find(function(e){var l;return(e==null?void 0:(l=e.engagementPanelSectionListRenderer)==null?void 0:l.targetId)===x})}).filter(function(x){return x!==void 0})},
getNonLearningJourneyEngagementPanels:function(O){return O.filter(function(x){var e;return!ch7.includes((x==null?void 0:(e=x.engagementPanelSectionListRenderer)==null?void 0:e.targetId)||"")})}}];var ISy;var i$=function(){var O=_.a.apply(this,arguments)||this;O.flexy=!0;O.learningJourney=!0;O.viewTransitionEnabled=_.t("enable_player_resize_transition");O.smallerChatMinHeight=_.t("live_chat_smaller_min_height");O.cinematicTheaterMode=_.t("web_cinematic_theater_mode");O.transparentTheaterMode=_.t("web_transparent_theater_mode");O.cinematicFullscreen=_.t("web_cinematic_fullscreen");O.cinematicFullscreenV2=_.t("web_cinematic_fullscreen_v2");O.isDarkTheme=document.documentElement.hasAttribute("dark");
O.theaterLargerPlayer=_.t("web_watch_theater_larger_player");O.defaultCollapsePlaylist=_.t("web_watch_default_collapse_playlist");O.enableCanvasLayout=_.t("web_enable_canvas_on_learning_journey");return O};
_.c(i$,_.a);_.b=i$.prototype;_.b.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.b.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.b.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.b.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.b.ready=function(){var O=this,x=function(){O.onColumnScroll()};
this.primary.addEventListener("scroll",x);this.secondary.addEventListener("scroll",x)};
_.b.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.b.updateIsTwoColumnsFromBinding=function(O){_.t("web_watch_update_narrow_width_killswitch")||_.u9().dispatch(_.Sfc(!O.detail.value));this.ytdWatchBehavior.isTwoColumns_=O.detail.value};
_.b.updateFlexySmallWindowFromBinding=function(O){this.ytdWatchBehavior.flexySmallWindow_=O.detail.value};
_.b.updateFlexyLargeWindowFromBinding=function(O){this.ytdWatchBehavior.flexyLargeWindow_=O.detail.value};
_.b.updateWatchWhileWindowSizeSufficientFromBinding=function(O){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=O.detail.value};
_.b.updateWatchNextCanShowMoreFromBinding=function(O){this.ytdWatchBehavior.watchNextCanShowMore=O.detail.value};
_.b.updateShownItemsFromBinding=function(O){O.detail.path?this.set(O.detail.path,O.detail.value):this.ytdWatchBehavior.watchNextShownItems=O.detail.value};
_.b.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23392_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23392_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Dy.Object.defineProperties(i$.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 O;if((O=this.data)==null||!O.pageVisualEffects)return!1;for(var x=0;x<this.data.pageVisualEffects.length;x++)if(O=_.q(this.data.pageVisualEffects[x],_.l5))return x=void 0,(x=O.config)==null?void 0:x.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.learningJourneyEngagementPanels)==null?void 0:O.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var O,x=(O=this.learningJourneyEngagementPanels)==null?void 0:O.find(function(Z){var E;return(Z==null?void 0:(E=Z.engagementPanelSectionListRenderer)==null?void 0:E.panelIdentifier)==="learning-journey-engagement-panel"});
if(x){var e,l,C,Q,L,k,M,G,X;if(O=(G=((M=(L=((Q=x==null?void 0:(e=x.engagementPanelSectionListRenderer)==null?void 0:(l=e.content)==null?void 0:(C=l.sectionListRenderer)==null?void 0:C.contents)!=null?Q:[])[0])==null?void 0:(k=L.itemSectionRenderer)==null?void 0:k.contents)!=null?M:[])[0])==null?void 0:(X=G.accordionViewModel)==null?void 0:X.onTitleTap){var y=_.p_(O);if(y)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.lV.instance.resolveCommand(y)}}}}}}});
_.Dy.Object.defineProperties(i$,{template:{configurable:!0,enumerable:!0,get:function(){if(ISy===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);ISy=O}O=ISy;return O}}});
i$.prototype.updateMiniplayerIsActiveValue=i$.prototype.updateMiniplayerIsActiveValue;i$.prototype.updateScrollTopValue=i$.prototype.updateScrollTopValue;i$.prototype.updateFullscreenValue=i$.prototype.updateFullscreenValue;i$.prototype.updateTheaterValue=i$.prototype.updateTheaterValue;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],i$.prototype,"ytComponentBehavior",void 0);
_.B([_.V(P9E.YtdLearningJourneyWatchBehavior),_.v("design:type",Object)],i$.prototype,"ytdWatchBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],i$.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],i$.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],i$.prototype,"playerData",void 0);_.B([_.R(),_.v("design:type",Object)],i$.prototype,"browseData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"flexy",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"learningJourney",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"viewTransitionEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"smallerChatMinHeight",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"cinematicTheaterMode",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"transparentTheaterMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"cinematicFullscreen",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"cinematicFullscreenV2",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"isDarkTheme",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],i$.prototype,"theaterLargerPlayer",void 0);_.B([_.R(),_.v("design:type",Object)],i$.prototype,"defaultCollapsePlaylist",void 0);_.B([_.R(),_.v("design:type",Object)],i$.prototype,"enableCanvasLayout",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("playerData","browseData","enableCanvasLayout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],i$.prototype,"showBrowseResponse",null);
_.B([_.R({reflectToAttribute:!0}),_.p("playerData","enableCanvasLayout"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],i$.prototype,"showWatchResponse",null);_.B([_.R({selector:_.I2}),_.v("design:type",Object)],i$.prototype,"theaterValue",void 0);_.B([_.R({selector:_.VI}),_.v("design:type",Object)],i$.prototype,"fullscreenValue",void 0);_.B([_.R({selector:_.WJ}),_.v("design:type",Object)],i$.prototype,"scrollTopValue",void 0);
_.B([_.R({selector:_.P1}),_.v("design:type",Object)],i$.prototype,"miniplayerIsActiveValue",void 0);_.B([_.kX("#ytd-plj-player"),_.v("design:type",HTMLElement)],i$.prototype,"ytdPlayer",void 0);_.B([_.kX("#playlist"),_.v("design:type",HTMLElement)],i$.prototype,"JSC$23392_ytdPlaylistPanelRenderer",void 0);_.B([_.ri("ytd-comments"),_.v("design:type",HTMLElement)],i$.prototype,"ytdComments",void 0);_.B([_.kX("#primary"),_.v("design:type",HTMLElement)],i$.prototype,"primary",void 0);
_.B([_.kX("#secondary"),_.v("design:type",HTMLElement)],i$.prototype,"secondary",void 0);_.B([_.kX("#player-container"),_.v("design:type",HTMLElement)],i$.prototype,"playerContainer",void 0);_.B([_.kX("#cinematics"),_.v("design:type",HTMLElement)],i$.prototype,"JSC$23392_cinematics",void 0);_.B([_.T1("theaterValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],i$.prototype,"updateTheaterValue",null);
_.B([_.T1("fullscreenValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],i$.prototype,"updateFullscreenValue",null);_.B([_.T1("scrollTopValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],i$.prototype,"updateScrollTopValue",null);_.B([_.T1("miniplayerIsActiveValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],i$.prototype,"updateMiniplayerIsActiveValue",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],i$.prototype,"cinematicLightTheme",null);_.B([_.R({reflectToAttribute:!0}),_.p("learningJourneyEngagementPanels"),_.v("design:type",Object),_.v("design:paramtypes",[])],i$.prototype,"hasLearningJourneyPanels",null);_.B([_.p("learningJourneyEngagementPanels"),_.v("design:type",Object),_.v("design:paramtypes",[])],i$.prototype,"backButtonData",null);_.B([_.H({is:"ytd-watch-learning-journey"})],i$);_.cr.registerService(_.OH8,i$);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("Tm0L3c");
var M_h;var Dcs;var GLU=function(){return _.a.apply(this,arguments)||this};
_.c(GLU,_.a);_.B([_.H({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],GLU);
_.n(GLU,"ytd-ghost-comments-renderer",function(){if(Dcs===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);Dcs=O}O=Dcs;return O},{mode:1});var FWw;var X1T=function(){return _.a.apply(this,arguments)||this};
_.c(X1T,_.a);_.B([_.H({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],X1T);
_.n(X1T,"ytd-ghost-watch-metadata-renderer",function(){if(FWw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);FWw=O}O=FWw;return O},{mode:1});var $D=function(){var O=_.a.apply(this,arguments)||this;O.ghostGridRenderer={rows:6};O.smallerChatMinHeight=_.t("live_chat_smaller_min_height");O.cinematicTheaterMode=_.t("web_cinematic_theater_mode");O.transparentTheaterMode=_.t("web_transparent_theater_mode");O.darkerPanels=_.t("web_watch_darker_panels");O.cinematicFullscreen=_.t("web_cinematic_fullscreen");O.cinematicFullscreenV2=_.t("web_cinematic_fullscreen_v2");O.isDarkTheme=document.documentElement.hasAttribute("dark");return O};
_.c($D,_.a);_.b=$D.prototype;_.b.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.b.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.b.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.b.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.b.ready=function(){var O=this,x=function(){O.onColumnScroll()};
this.primary.addEventListener("scroll",x);this.secondary.addEventListener("scroll",x)};
_.b.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.b.updateIsTwoColumnsFromBinding=function(O){this.ytdWatchBehavior.isTwoColumns_=O.detail.value};
_.b.updateFlexySmallWindowFromBinding=function(O){this.ytdWatchBehavior.flexySmallWindow_=O.detail.value};
_.b.updateFlexyLargeWindowFromBinding=function(O){this.ytdWatchBehavior.flexyLargeWindow_=O.detail.value};
_.b.updateWatchWhileWindowSizeSufficientFromBinding=function(O){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=O.detail.value};
_.b.updateWatchNextCanShowMoreFromBinding=function(O){this.ytdWatchBehavior.watchNextCanShowMore=O.detail.value};
_.b.updateShownItemsFromBinding=function(O){_.t("swatcheroo_direct_use_rich_grid")||(O.detail.path?this.set(O.detail.path,O.detail.value):this.ytdWatchBehavior.watchNextShownItems=O.detail.value)};
_.b.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23380_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23380_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Dy.Object.defineProperties($D.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.pageVisualEffects)return!1;for(var x=0;x<this.data.pageVisualEffects.length;x++)if(O=_.q(this.data.pageVisualEffects[x],_.l5))return x=void 0,(x=O.config)==null?void 0:x.enableInLightTheme;return!1}}});
$D.prototype.updateMiniplayerIsActiveValue=$D.prototype.updateMiniplayerIsActiveValue;$D.prototype.updateScrollTopValue=$D.prototype.updateScrollTopValue;$D.prototype.updateFullscreenValue=$D.prototype.updateFullscreenValue;$D.prototype.updateTheaterValue=$D.prototype.updateTheaterValue;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$D.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.kLS.YtdWatchBehavior),_.v("design:type",Object)],$D.prototype,"ytdWatchBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],$D.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$D.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],$D.prototype,"ghostGridRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],$D.prototype,"playerData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"smallerChatMinHeight",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"cinematicTheaterMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"transparentTheaterMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"darkerPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"cinematicFullscreen",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"cinematicFullscreenV2",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$D.prototype,"isDarkTheme",void 0);_.B([_.R({selector:_.I2}),_.v("design:type",Object)],$D.prototype,"theaterValue",void 0);_.B([_.R({selector:_.VI}),_.v("design:type",Object)],$D.prototype,"fullscreenValue",void 0);_.B([_.R({selector:_.WJ}),_.v("design:type",Object)],$D.prototype,"scrollTopValue",void 0);
_.B([_.R({selector:_.P1}),_.v("design:type",Object)],$D.prototype,"miniplayerIsActiveValue",void 0);_.B([_.kX("#ytd-player"),_.v("design:type",HTMLElement)],$D.prototype,"ytdPlayer",void 0);_.B([_.kX("#playlist"),_.v("design:type",HTMLElement)],$D.prototype,"JSC$23380_ytdPlaylistPanelRenderer",void 0);_.B([_.kX("#ytd-comments"),_.v("design:type",HTMLElement)],$D.prototype,"ytdComments",void 0);_.B([_.kX("#primary"),_.v("design:type",HTMLElement)],$D.prototype,"primary",void 0);
_.B([_.kX("#secondary"),_.v("design:type",HTMLElement)],$D.prototype,"secondary",void 0);_.B([_.kX("#player-container"),_.v("design:type",HTMLElement)],$D.prototype,"playerContainer",void 0);_.B([_.kX("#cinematics"),_.v("design:type",HTMLElement)],$D.prototype,"JSC$23380_cinematics",void 0);_.B([_.T1("theaterValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$D.prototype,"updateTheaterValue",null);
_.B([_.T1("fullscreenValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$D.prototype,"updateFullscreenValue",null);_.B([_.T1("scrollTopValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$D.prototype,"updateScrollTopValue",null);_.B([_.T1("miniplayerIsActiveValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$D.prototype,"updateMiniplayerIsActiveValue",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],$D.prototype,"cinematicLightTheme",null);
_.n($D,"ytd-watch-grid",function(){if(M_h===void 0){var O=document.createElement("template");_.I(O,'\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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!swatcherooUseLegacyRecsComponent]]" hidden="[[!swatcherooUseLegacyRecsComponent]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);M_h=O}O=M_h;return O},{mode:2});_.cr.registerService(_.ia7,$D);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("CF909");
var Ahc;var gB=function(){var O=_.a.apply(this,arguments)||this;O.viewTransitionEnabled=_.t("enable_player_resize_transition");O.smallerChatMinHeight=_.t("live_chat_smaller_min_height");O.cinematicTheaterMode=_.t("web_cinematic_theater_mode");O.transparentTheaterMode=_.t("web_transparent_theater_mode");O.cinematicFullscreen=_.t("web_cinematic_fullscreen");O.isDarkTheme=document.documentElement.hasAttribute("dark");O.defaultCollapsePlaylist=_.t("web_watch_default_collapse_playlist");O.retroModeReduxValue=
!1;O.persistentPanelVisibleValue=!1;return O};
_.c(gB,_.a);_.b=gB.prototype;_.b.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.b.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.b.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.b.updateRetroModeReduxValue=function(){_.t("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.b.updatePersistentPanelVisibleValue=function(){_.t("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.b.ready=function(){var O=this,x=function(){O.onColumnScroll()};
this.primary.addEventListener("scroll",x);this.secondary.addEventListener("scroll",x)};
_.b.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.b.updateIsTwoColumnsFromBinding=function(O){_.t("web_watch_update_narrow_width_killswitch")||_.u9().dispatch(_.Sfc(!O.detail.value));this.ytdWatchBehavior.isTwoColumns_=O.detail.value};
_.b.updateFlexySmallWindowFromBinding=function(O){this.ytdWatchBehavior.flexySmallWindow_=O.detail.value};
_.b.updateFlexyLargeWindowFromBinding=function(O){this.ytdWatchBehavior.flexyLargeWindow_=O.detail.value};
_.b.updateWatchWhileWindowSizeSufficientFromBinding=function(O){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=O.detail.value};
_.b.updateWatchNextCanShowMoreFromBinding=function(O){this.ytdWatchBehavior.watchNextCanShowMore=O.detail.value};
_.b.updateShownItemsFromBinding=function(O){O.detail.path?this.set(O.detail.path,O.detail.value):this.ytdWatchBehavior.watchNextShownItems=O.detail.value};
_.b.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23375_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23375_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}};
_.Dy.Object.defineProperties(gB.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.pageVisualEffects)return!1;for(var x=0;x<this.data.pageVisualEffects.length;x++)if(O=_.q(this.data.pageVisualEffects[x],_.l5))return x=void 0,(x=O.config)==null?void 0:x.enableInLightTheme;return!1}}});
_.Dy.Object.defineProperties(gB,{template:{configurable:!0,enumerable:!0,get:function(){if(Ahc===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);Ahc=O}O=Ahc;return O}}});
gB.prototype.updatePersistentPanelVisibleValue=gB.prototype.updatePersistentPanelVisibleValue;gB.prototype.updateRetroModeReduxValue=gB.prototype.updateRetroModeReduxValue;gB.prototype.updateScrollTopValue=gB.prototype.updateScrollTopValue;gB.prototype.updateFullscreenValue=gB.prototype.updateFullscreenValue;gB.prototype.updateTheaterValue=gB.prototype.updateTheaterValue;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],gB.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.kLS.YtdWatchBehavior),_.v("design:type",Object)],gB.prototype,"ytdWatchBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],gB.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gB.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],gB.prototype,"playerData",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gB.prototype,"viewTransitionEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gB.prototype,"smallerChatMinHeight",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gB.prototype,"cinematicTheaterMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gB.prototype,"transparentTheaterMode",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gB.prototype,"cinematicFullscreen",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gB.prototype,"isDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],gB.prototype,"defaultCollapsePlaylist",void 0);_.B([_.R({selector:_.I2}),_.v("design:type",Object)],gB.prototype,"theaterValue",void 0);_.B([_.R({selector:_.VI}),_.v("design:type",Object)],gB.prototype,"fullscreenValue",void 0);
_.B([_.R({selector:_.WJ}),_.v("design:type",Object)],gB.prototype,"scrollTopValue",void 0);_.B([_.R({selector:_.P1}),_.v("design:type",Object)],gB.prototype,"miniplayerIsActive",void 0);_.B([_.R({selector:function(O){return O.watch.isWatchRetroMode}}),
_.v("design:type",Object)],gB.prototype,"retroModeReduxValue",void 0);_.B([_.R({selector:_.at.persistentPanelVisibleSelector}),_.v("design:type",Object)],gB.prototype,"persistentPanelVisibleValue",void 0);_.B([_.ri("ytd-player"),_.v("design:type",HTMLElement)],gB.prototype,"ytdPlayer",void 0);_.B([_.kX("#playlist"),_.v("design:type",HTMLElement)],gB.prototype,"JSC$23375_ytdPlaylistPanelRenderer",void 0);_.B([_.ri("ytd-comments"),_.v("design:type",HTMLElement)],gB.prototype,"ytdComments",void 0);
_.B([_.kX("#primary"),_.v("design:type",HTMLElement)],gB.prototype,"primary",void 0);_.B([_.kX("#secondary"),_.v("design:type",HTMLElement)],gB.prototype,"secondary",void 0);_.B([_.kX("#player-container"),_.v("design:type",HTMLElement)],gB.prototype,"playerContainer",void 0);_.B([_.kX("#below"),_.v("design:type",HTMLElement)],gB.prototype,"below",void 0);_.B([_.kX("#cinematics"),_.v("design:type",HTMLElement)],gB.prototype,"JSC$23375_cinematics",void 0);
_.B([_.kX("#persistent-panel-container"),_.v("design:type",HTMLElement)],gB.prototype,"persistentPanelContainer",void 0);_.B([_.T1("theaterValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gB.prototype,"updateTheaterValue",null);_.B([_.T1("fullscreenValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gB.prototype,"updateFullscreenValue",null);
_.B([_.T1("scrollTopValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gB.prototype,"updateScrollTopValue",null);_.B([_.T1("retroModeReduxValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gB.prototype,"updateRetroModeReduxValue",null);_.B([_.T1("persistentPanelVisibleValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gB.prototype,"updatePersistentPanelVisibleValue",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],gB.prototype,"cinematicLightTheme",null);_.B([_.H({is:"ytd-watch-flexy"})],gB);_.cr.registerService(_.$JL,gB);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("nmfa2d");
var P_7;var YD=function(){var O=_.a.apply(this,arguments)||this;O.hidden=!1;O.errorScreen=null;O.playlistData={};return O};
_.c(YD,_.a);_.b=YD.prototype;_.b.getPlayer=function(){return this.ytdPlayer};
_.b.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:_.XB(["aa","eocs"])}}};
_.b.onActiveChanged=function(){_.u9().dispatch(_.ehT(this.ytPageBehavior.active))};
_.b.playerDataChanged=function(){var O;(O=this.watchController)==null||O.setPlayerResponse(this.playerData)};
_.b.dataChanged=function(){var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)};
_.b.sizeChanged=function(){var O,x;(x=(O=this.metadata).resize)==null||x.call(O)};
_.b.attached=function(){this.watchController=new _.nH(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.b.detached=function(){_.Lf(this.watchController);this.watchController=void 0};
_.b.getPlayerContainer=function(){return this.playerContainer};
_.b.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.b.provideRenderingData=function(O,x){switch(O){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=x;break;case "ERROR_SCREEN":this.errorScreen=x!=null?x:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=x;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=x;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=x;break;case "RICH_METADATA":this.richMetadataRowContainer=x;break;case "CLARIFICATION":this.clarificationData=x;break;case "PLAYLIST":this.playlistData=
x!=null?x:{};break;case "MERCH_SHELF":this.merchShelf=x;break;case "TICKET_SHELF":this.ticketShelf=x;break;case "LIMITED_STATE":this.limitedState=x;break;case "DONATION_SHELF":this.donationShelf=x;break;case "ALERTS":this.alerts=x}};
_.Dy.Object.defineProperties(YD.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return!this.hidden&&!!((O=this.data)==null?0:(x=O.contents)==null?0:(e=x.twoColumnWatchNextResults)==null?0:e.conversationBar)}}});
YD.prototype.sizeChanged=YD.prototype.sizeChanged;YD.prototype.dataChanged=YD.prototype.dataChanged;YD.prototype.playerDataChanged=YD.prototype.playerDataChanged;YD.prototype.onActiveChanged=YD.prototype.onActiveChanged;_.B([_.V(_.b5.YtPageBehavior),_.v("design:type",Object)],YD.prototype,"ytPageBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],YD.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],YD.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"playerData",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],YD.prototype,"hidden",void 0);_.B([_.kX("#ytd-player"),_.v("design:type",HTMLElement)],YD.prototype,"ytdPlayer",void 0);_.B([_.kX("#player-container"),_.v("design:type",HTMLElement)],YD.prototype,"playerContainer",void 0);_.B([_.kX("#metadata"),_.v("design:type",Object)],YD.prototype,"metadata",void 0);_.B([_.kX("#playlist"),_.v("design:type",HTMLElement)],YD.prototype,"playlistPanel",void 0);
_.B([_.R({selector:_.j9S,reflectToAttribute:!0}),_.v("design:type",Object)],YD.prototype,"fixie",void 0);_.B([_.R({selector:_.Smz,reflectToAttribute:!0}),_.v("design:type",Object)],YD.prototype,"singleColumn",void 0);_.B([_.R({selector:function(O){return _.I2(O)&&!_.VI(O)},
reflectToAttribute:!0}),_.v("design:type",Object)],YD.prototype,"theater",void 0);_.B([_.R({selector:_.VI,reflectToAttribute:!0}),_.v("design:type",Object)],YD.prototype,"fullscreen",void 0);_.B([_.R({selector:_.i17}),_.v("design:type",Object)],YD.prototype,"windowSize",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"singleColumnContents",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"errorScreen",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"playlistData",void 0);
_.B([_.R(),_.v("design:type",Object)],YD.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"videoSecondaryInfoRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"richMetadataRowContainer",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"clarificationData",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"ticketShelf",void 0);
_.B([_.R(),_.v("design:type",Object)],YD.prototype,"merchShelf",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"donationShelf",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"limitedState",void 0);_.B([_.R(),_.v("design:type",Object)],YD.prototype,"alerts",void 0);_.B([_.p("playlistData"),_.v("design:type",Object),_.v("design:paramtypes",[])],YD.prototype,"hasPlaylistData",null);
_.B([_.p("data","hidden"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],YD.prototype,"hasChat",null);_.B([_.T1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YD.prototype,"onActiveChanged",null);_.B([_.T1("playerData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YD.prototype,"playerDataChanged",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YD.prototype,"dataChanged",null);_.B([_.T1("windowSize","singleColumn"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YD.prototype,"sizeChanged",null);
_.n(YD,"ytd-watch-fixie",function(){if(P_7===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);P_7=O}O=P_7;return O},{mode:1});_.cr.registerService(_.gFn,YD);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("xwEKAe");
var gGk=function(O){return _.Tl(O)?O.getAttribute("jsname")==="coFSxe":!1},$MH=function(O,x){x.id||(x.id="ow"+_.N$(x));
O.setAttribute("jsowner",x.id);O.__owner=x;var e=_.fu(x,gGk);e&&(_.qbz.has(e)||_.qbz.set(e,[]),_.qbz.get(e).push(O));(e=_.thL.get(x))||_.thL.set(x,e=[]);e.includes(O)||e.push(O);x.setAttribute("__IS_OWNER",!0)},iuH=function(){var O=_.qYL(1);
O=_.A6(O,_.RxN);if(!(_.tCr(O)||O[_.ths]&&!O.__hasBeenSet))return O.value},OfU=function(O){var x=_.TD();
if(x.getFlag(202))x=x.getFlag(201);else{var e;x=(O==null?void 0:(e=O.config)==null?void 0:e.settingOnByDefault)!==void 0?O.config.settingOnByDefault:!_.t("web_shorts_cinematics_disabled_by_default")}return x},xq7=function(O){var x=_.TD();
_.LZ(0,201,O);_.LZ(0,202,!0);x.save()},eWh=function(O){return(O=_.ThL(O))?_.ks$(O):0},ldH=function(O){return O.shorts.isSmallScreenSqueezeback},CPh=function(O){return O.shorts.isPlaybackStarted},To7=function(O){var x=_.qYL(2),e=new Set;
_.YO(function(){return void e.forEach(function(l){return void l()})});
return function(l){var C=_.kO(x);try{var Q=Q9H(bfI(O),l);e.add(Q);return function(){Q();e.delete(Q)}}finally{_.kO(C)}}},Ly7=function(O){var x=O.children;
var e=O.root;_.u8(function(){var l=To7(e)(x);_.YO(l)});
return document.createTextNode("")},Q9H=function(O,x){var e=k8T(O);
(O=iuH())&&$MH(e,O);_.PE.setUp();x=_.T(_.vpN(x,!0));O=x.next().value;var l=x.next().value;x=_.T(O);for(O=x.next();!O.done;O=x.next())e.appendChild(O.value);_.PE.log(e);_.PE.tearDown();return function(){l();e.remove()}},bfI=function(O){if(typeof O==="string")return O=document.querySelector(O),_.rUL(O),O;
if(_.yE(O)&&O.nodeType===Node.ELEMENT_NODE)return O;if(!O.__value&&!O.__optional){var x=_.PhN.USE_ELEMENT_NOT_ASSIGNED(O.__expectedTagName);O.__hasErrored=!0;throw x;}return O.value},k8T=function(O){var x=document.createElementNS(O.namespaceURI,O.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return O.appendChild(x)},A0c=function(O,x,e,l){O=x-O;
e=l-e;return Math.sqrt(O*O+e*e)},MZs=function(O,x){O&&_.GG().resolve(_.Xc).resolveCommand(O,{forceClickLogging:!0,
form:{element:x}})},DqS=function(){return _.GG().resolve(_.Wr).dismissedIndices},G8a=function(O,x){var e,l,C,Q,L,k,M,G,X;
return _.A(function(y){if(y.nextAddress==1){e=_.GG().resolve(_.nGY);Q=(l=e)==null?void 0:(C=l.reelWatchEndpointMap)==null?void 0:C.reelWatchSequence;k=(L=O.innertubeTransportService)!=null?L:_.GG().resolve(_.IF);if(!Q)return y.jumpTo(2);M=Q();return(G=M.JSC$13266_getRequest(x,{}))?y.yield(_.NK(k,G.innerTubeRequest,G.input,x.clickTrackingParams,G.config),4):y.jumpTo(2)}return y.nextAddress!=2?(X=y.yieldResult,y.return(X)):y.return(void 0)})},Fya=function(O){return _.j6({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:O}})},Xvz=function(O){return _.j6({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:O}})},o8I=function(O){return _.j6({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:O}})};var cJ=function(O,x){if(O instanceof cJ)this.array_=O.array_;else{var e;if(e=_.vi(O))a:{for(var l=e=0;l<O.length;l++){if(!_.vi(O[l])||e>0&&O[l].length!=e){e=!1;break a}for(var C=0;C<O[l].length;C++)if(typeof O[l][C]!=="number"){e=!1;break a}e==0&&(e=O[l].length)}e=e!=0}if(e)this.array_=_.Bi(O);else if(O instanceof _.pu)this.array_=y0a(O.height,O.width);else if(typeof O==="number"&&typeof x==="number"&&O>0&&x>0)this.array_=y0a(O,x);else throw Error("Lo");}this.size_=new _.pu(this.array_[0].length,
this.array_.length)},Zfh=function(O,x,e){for(var l=0;l<O.getSize().height;l++)for(var C=0;C<O.getSize().width;C++)x.call(e,O.array_[l][C],l,C,O)},E8H=function(O,x){var e=new cJ(O.getSize());
Zfh(O,function(l,C,Q){e.array_[C][Q]=x.call(void 0,l,C,Q,O)});
return e},y0a=function(O,x){for(var e=[],l=0;l<O;l++){e[l]=[];
for(var C=0;C<x;C++)e[l][C]=0}return e};
cJ.prototype.add=function(O){if(!_.cjI(this.size_,O.getSize()))throw Error("Mo");return E8H(this,function(x,e,l){return x+O.array_[e][l]})};
cJ.prototype.equals=function(O,x){if(this.size_.width!=O.size_.width||this.size_.height!=O.size_.height)return!1;x=x||0;for(var e=0;e<this.size_.height;e++)for(var l=0;l<this.size_.width;l++)if(!_.Pto(this.array_[e][l],O.array_[e][l],x))return!1;return!0};
cJ.prototype.getSize=function(){return this.size_};
var Ih=function(O,x,e){return x>=0&&x<O.size_.height&&e>=0&&e<O.size_.width?O.array_[x][e]:null};
cJ.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var tZz=function(O,x,e,l){if(!(x>=0&&x<O.size_.height&&e>=0&&e<O.size_.width))throw Error("No`"+x+"`"+e+"`"+O.size_.height+"`"+O.size_.width);O.array_[x][e]=l};
cJ.prototype.multiply=function(O){if(O instanceof cJ){if(this.size_.width!=O.getSize().height)throw Error("Oo");return qmc(this,O)}if(typeof O==="number")return PPs(this,O);throw Error("Po");};
var qmc=function(O,x){var e=new cJ(O.size_.height,x.getSize().width);Zfh(e,function(l,C,Q){for(var L=l=0;L<this.size_.width;L++)l+=Ih(this,C,L)*Ih(x,L,Q);tZz(e,C,Q,l)},O);
return e},PPs=function(O,x){return E8H(O,function(e){return e*x})};var c0H=new _.$x("inlineSurveyRenderer");var Idy=new _.$x("interstitialViewModel");var VZ7=new _.$x("reelNavigateCommand");var pvT=new _.$x("reelNonVideoContentDismissalCommand");var RWk=new _.$x("showReelsCommentsOverlayCommand");var Uq7=new _.$x("shortsSuggestedActionViewModel");var ads=new _.$x("videoInteractionPopUpRenderer");var mqy=new _.$x("pollChoiceData");var s9S;var Wyc;var hWH;var Vx=function(){var O=_.a.apply(this,arguments)||this;O.ctaVisualElement=null;O.currentCsn=null;return O};
_.c(Vx,_.a);_.b=Vx.prototype;_.b.onDataChanged=function(){this.maybeLogShows()};
_.b.computeButtonShape=function(){var O=this;if(this.data)return{buttonText:_.db(this.data.text),state:"active",onTap:function(){O.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.b.maybeCreateCtaVe=function(){var O;if((O=this.data)!=null&&O.badgeInteractionLogging){var x;if(O=(x=this.data.badgeInteractionLogging)==null?void 0:x.trackingParams)this.ctaVisualElement=_.Fv(O)}};
_.b.maybeLogClicks=function(){this.currentCsn=_.Pq(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.KZ(this.currentCsn,this.ctaVisualElement)};
_.b.maybeLogShows=function(){this.currentCsn=_.Pq(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.rT(this.currentCsn,[this.ctaVisualElement])};
_.b.onTap=function(){var O;if((O=this.data)!=null&&O.onClickCommand){var x;this.ytComponentBehavior.resolveCommand((x=this.data)==null?void 0:x.onClickCommand);this.maybeLogClicks()}};
Vx.prototype.onDataChanged=Vx.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Vx.prototype,"ytComponentBehavior",void 0);_.B([_.R({}),_.v("design:type",Object)],Vx.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Vx.prototype,"onDataChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Vx);
_.n(Vx,"ytd-shopping-overlay-badge-renderer",function(){if(hWH!==void 0)return hWH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return hWH=O},{mode:1});_.wP(_.U4L,"reel-sound-metadata-view-model",{props:{data:_.vs,overlayDensity:_.vs}});_.wP(_.IG4,"player-disclosure-view-model",{props:{data:_.Ld,extractOverlay:_.Ld}});_.wP(_.jJd,"pivot-button-view-model",{props:{data:_.vs,className:_.vs}});_.wP(_.NRD,"reel-action-bar-view-model",{props:{data:_.Ld,buttonShapeOverrideables:_.Ld}});_.wP(_.aGQ,"yt-reel-metapanel-view-model",{props:{data:_.Ld,overlayDensity:_.Ld,extractOverlay:_.Ld}});var zWs=_.K(function(O){var x=O.children;var e=O.region;O=_.T(_.Iw(void 0,void 0,"MsSyte"));var l=O.next().value,C=O.next().value;O=_.T(_.Iw("0px",void 0,"U9Yihd"));var Q=O.next().value,L=O.next().value;O=_.T(_.Iw("0px",void 0,"UO1H6d"));var k=O.next().value,M=O.next().value;O=_.T(_.Iw(0,void 0,"sMVTKb"));var G=O.next().value,X=O.next().value;O=_.T(_.Iw(0,void 0,"kZZV8b"));var y=O.next().value,Z=O.next().value,E=function(){var f=l();if(f){var u;if(((u=_.eR())==null?void 0:u.getPlayerState())!==-1){f.style.display=
"inherit";var Y;(Y=_.eR())==null||Y.removeEventListener("onStateChange",E)}U()}},P=function(){var f=document.querySelectorAll("video");
return Array.from(f).find(function(u){var Y;return u==null?void 0:(Y=u.style)==null?void 0:Y.width})},U=function(){var f=P();
if(f){X(f.getBoundingClientRect().width);Z(f.getBoundingClientRect().height);var u;L((f==null?void 0:(u=f.style)==null?void 0:u.left)||"0px");var Y;M((f==null?void 0:(Y=f.style)==null?void 0:Y.top)||"0px")}};
_.uo(function(){var f=l();if(f){var u,Y,J;if(((u=_.eR())==null?void 0:u.getPlayerState())===-1&&Math.round(((J=(Y=_.eR())==null?void 0:Y.getVideoAspectRatio())!=null?J:0)*100)!==Math.round(G()/y()*100)){f.style.display="none";var O8,Xr;Z(G()/((Xr=(O8=_.eR())==null?void 0:O8.getVideoAspectRatio())!=null?Xr:1))}}},"jJLfwe");
var W=function(){U()},z;
_.u8(function(){U();var f;if(!(e==null?0:(f=e())==null?0:f.transformationMatrix))throw Error("To");var u;(u=_.eR())==null||u.addEventListener("onStateChange",E);if(window.ResizeObserver){if(f=P())z=new ResizeObserver(W),z.observe(f)}else window.addEventListener("resize",U);_.YO(function(){var Y;(Y=_.eR())==null||Y.removeEventListener("onStateChange",E);z?z.disconnect():window.removeEventListener("resize",U)})});
var r=function(){var f,u,Y=(u=e==null?void 0:(f=e())==null?void 0:f.transformationMatrix)!=null?u:[];f=G();u=y();for(var J=[],O8=0,Xr=-1;O8<Y.length;O8++)O8%3===0&&(Xr++,J[Xr]=[]),J[Xr].push(Y[O8]);Y=new cJ(J);J=new cJ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);J=Y.multiply(J);Y=new cJ([[0,0],[0,0],[0,0],[0,0]]);for(O8=0;O8<J.getSize().width;O8++){Xr=Ih(J,0,O8);var Fr=Ih(J,1,O8);if(Xr===null||Fr===null)throw Error("So`"+(O8+1).toString());tZz(Y,O8,0,Xr*f);tZz(Y,O8,1,Fr*u)}f=Ih(Y,0,0);O8=Ih(Y,1,0);u=Ih(Y,0,
1);Xr=Ih(Y,1,1);if(f===null||O8===null||u===null||Xr===null)throw Error("Qo");J=A0c(f,O8,u,Xr);Fr=Ih(Y,3,0);Y=Ih(Y,3,1);if(Fr===null||Y===null)throw Error("Ro");Y=A0c(f,Fr,u,Y);Xr=(Number((Xr*-1).toFixed(2))-Number((u*-1).toFixed(2)))/(Number(O8.toFixed(2))-Number(f.toFixed(2)));Fr=Math.atan(Xr)*180/Math.PI;O8=Xr===Number.POSITIVE_INFINITY?-90:Xr===Number.NEGATIVE_INFINITY?90:Object.is(Xr,-0)?180:Xr===0?0:Xr>0?Fr*-1:f<O8?Fr*-1:Math.abs(Fr)+180;return"left:calc("+f+"px + "+Q()+"); top:calc("+(u+"px + "+
k()+"); width:")+(J+"px; height:")+(Y+"px; transform:rotate(")+(O8+"deg);")};
return _.D(Ly7,{root:"#sticker-layer"},function(){return _.D("yt-overlay-sticker",{el:_.Y0(C),style:r,class:"ytOverlayStickerHost"},x)})},"Vm");var r0y=_.K(function(O){function x(){var E,P,U,W,z=(P=_.q((E=M())==null?void 0:E.command,_.DC4))==null?void 0:(U=P.item)==null?void 0:(W=U.notificationTextRenderer)==null?void 0:W.successResponseText;if(z)E=_.B1(z),_.Sh(l.value,"yt-open-popup-action",[E,l.value]);else if(G())MZs(G(),l.value);else{var r;MZs((r=M())==null?void 0:r.command,l.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var e=O.data;var l=_.Q5("svg"),C=_.T(_.Iw(!1,void 0,"i4BL1"));O=C.next().value;var Q=C.next().value,L=_.T(_.Iw(!1,void 0,"FzRJKd"));C=L.next().value;var k=L.next().value,M=function(){var E;return _.q((E=e())==null?void 0:E.popUp,ads)},G=function(){var E;
return(E=e())==null?void 0:E.command},X=function(){return _.q(G(),_.k4W)!==void 0};
L=_.lk(function(){x();return!1});
var y={},Z={};return _.D("svg",{"on:mouseover":_.lk(function(){X()&&Q(!0);k(!0);return!1}),
"on:mouseout":_.lk(function(){Q(!1);k(!1);return!1}),
"on:keydown":_.lk(function(E){E.key==="Enter"&&x();return!1}),
"on:focus":_.lk(function(){X()&&Q(!0);return!1}),
"on:blur":_.lk(function(){X()&&Q(!1);return!1}),
el:l,tabindex:0,"aria-label":function(){var E;return(E=e())==null?void 0:E.a11yString},
id:"player-overlay-video-interaction-svg",class:_.xz("ytPlayerOverlayInteractionInteractionsSvg",(y.ytPlayerOverlayInteractionInteractionsSvgHover=O,y),(Z.ytPlayerOverlayInteractionInteractionsSvgHideOutline=C,Z)),role:"button","on:click":L})},"Ym");_.wP(_.K(function(O){var x=O.data;_.u8(function(){var e;if((e=x())==null?0:e.trackingParams){var l;_.k0().graftServerVe((l=x().trackingParams)!=null?l:"")}});
return _.D("yt-player-overlay-interaction",null,_.D(zWs,{region:function(){var e,l;return(e=x())==null?void 0:(l=e.regions)==null?void 0:l[0]}},_.D(r0y,Object.assign({},O))))},"Xm"),"yt-player-overlay-interaction",{props:{data:_.Ld}});var HfI=_.K(function(O){var x=O.data;return _.D("yt-overlay-poll-sticker",null,_.D(zWs,{region:function(){var e,l;return(e=x())==null?void 0:(l=e.region)==null?void 0:l.interactionRegion}},_.D("div",{class:_.xz("ytOverlayPollStickerHost")},_.D("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return x().questionText}," "),_.D(_.HE,{each:function(){return x().pollChoiceConfigs||[]}},function(e){var l;
return _.D("div",null,((l=_.q(e==null?void 0:e.renderer,mqy))==null?void 0:l.text)||"error")}))))},"Zm");_.wP(_.K(function(O){var x=O.data;return _.D("yt-stickers-layer",null,_.D(_.HE,{each:function(){var e;return((e=x())==null?void 0:e.stickers)||[]}},function(e){return _.D(_.F,{cond:function(){return _.t("enable_shorts_poll_stickers_web")},
then:function(){return _.D(_.F,{cond:function(){return e==null?void 0:e.pollSticker},
then:function(l){return _.D(HfI,{data:l})}})}})}))},"$m"),"yt-stickers-layer",{props:{data:_.Ld}});var pq=function(){var O=_.a.apply(this,arguments)||this;O.showScrubber=!1;O.isWatchWhileMode=!1;O.enableAnchoredPanel=_.t("desktop_shorts_v2_anchored_panel");O.enablePollStickers=_.t("enable_shorts_poll_stickers_web");O.enableShortsModernControls=_.t("web_shorts_modern_controls");O.anchoredPanelActive=!1;O.enableLivingroomLayout=_.t("reels_enable_livingroom_layout");O.enablePlayerMetadataContainer=_.t("reels_web_enable_metadata_container");O.enableSqueezebackPanels=_.t("web_shorts_enable_squeezeback_panels");
O.useAspectRatio=_.t("web_use_aspect_ratio");O.isSqueezebackActive=!1;O.smallScreenSqueezeback=!1;O.isPlayerStarted=!1;O.overlayDensity=0;O.extractOverlay=!1;O.extractActionBar=!1;O.isOverlay=!1;O.isImmersive=!1;O.isImmersiveHorizontal=!1;O.isFullscreen=!1;O.onWindowResized=function(){var x;O.set("isImmersive",((x=window.getComputedStyle(O.hostElement))==null?void 0:x.getPropertyValue("--immersive-mode-on"))==="1");O.set("isImmersiveHorizontal",O.isImmersive&&O.enableLivingroomLayout&&!O.isWatchWhileMode)};
return O};
_.c(pq,_.a);_.b=pq.prototype;_.b.updateIsOverlay=function(O){this.isOverlay=O.detail.value};
_.b.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.b.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.b.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.b.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.b.onOverlayDensityChange=function(){var O=_.$U(this.hostElement).querySelector("ytd-info-panel-container-renderer");O&&(O.set("extractOverlay",this.extractOverlay),O.set("roundedContainer",this.extractOverlay))};
_.b.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.b.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.b.ready=function(){(_.t("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"))&&(!_.t("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Z0("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Z0("reels_action_justified_content")||"flex-start")};
_.b.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.b.setFakeLoadingButtons=function(){_.t("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.CZ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.CZ("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.CZ("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.CZ("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.CZ("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()};
_.b.setEmptyOverlayMetadata=function(){_.t("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}))};
_.Dy.Object.defineProperties(pq.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.infoPanel)}}});
pq.prototype.onOverlayDensityChange=pq.prototype.onOverlayDensityChange;pq.prototype.onIsActiveChanged=pq.prototype.onIsActiveChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],pq.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],pq.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pq.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],pq.prototype,"isActive",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pq.prototype,"hidden",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],pq.prototype,"useShortsIcon",void 0);
_.B([_.R({value:"left"}),_.v("design:type",String)],pq.prototype,"buttonTooltipPosition",void 0);_.B([_.R({value:_.t("reels_enable_livingroom_layout")?"top":"left"}),_.v("design:type",String)],pq.prototype,"likeButtonTooltipPosition",void 0);_.B([_.R({value:"none"}),_.v("design:type",String)],pq.prototype,"textTransform",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"showScrubber",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"isWatchWhileMode",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.infoPanel"),_.v("design:type",Object),_.v("design:paramtypes",[])],pq.prototype,"hasInfoPanel",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"enableAnchoredPanel",void 0);_.B([_.R(),_.v("design:type",Object)],pq.prototype,"enablePollStickers",void 0);
_.B([_.R(),_.v("design:type",Object)],pq.prototype,"enableShortsModernControls",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"anchoredPanelActive",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"enableLivingroomLayout",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],pq.prototype,"enablePlayerMetadataContainer",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"enableSqueezebackPanels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"useAspectRatio",void 0);_.B([_.R({selector:_.Jw$,reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"isSqueezebackActive",void 0);_.B([_.R({selector:ldH,reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"smallScreenSqueezeback",void 0);
_.B([_.R({selector:CPh}),_.v("design:type",Object)],pq.prototype,"isPlayerStarted",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"overlayDensity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"extractOverlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"extractActionBar",void 0);_.B([_.R(),_.v("design:type",Object)],pq.prototype,"isOverlay",void 0);
_.B([_.R(),_.v("design:type",Object)],pq.prototype,"isImmersive",void 0);_.B([_.R(),_.v("design:type",Object)],pq.prototype,"isImmersiveHorizontal",void 0);_.B([_.R({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.v("design:type",Boolean)],pq.prototype,"isShortsImmersive",void 0);_.B([_.R({computed:"computeButtonOverride(extractActionBar)"}),_.v("design:type",Object)],pq.prototype,"buttonOverride",void 0);
_.B([_.R({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.v("design:type",Object)],pq.prototype,"actionBarButtonOverride",void 0);_.B([_.R({selector:_.f5,reflectToAttribute:!0}),_.v("design:type",Object)],pq.prototype,"isFullscreen",void 0);_.B([_.T1("isActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pq.prototype,"onIsActiveChanged",null);
_.B([_.T1("extractOverlay"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pq.prototype,"onOverlayDensityChange",null);_.B([_.H({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],pq);
_.n(pq,"ytd-reel-player-overlay-renderer",function(){if(Wyc!==void 0)return Wyc;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Wyc=O},{mode:1});var Kyk;var Rh=function(){var O=_.a.apply(this,arguments)||this;O.videoDuration=0;O.playedTime=0;O.isActive=!1;O.JSC$22571_playerEvents=new Map;return O};
_.c(Rh,_.a);_.b=Rh.prototype;_.b.created=function(){this.JSC$22571_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22571_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.b.attached=function(){this.getPlayerAndInitializeListeners()};
_.b.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22571_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Qa(this,this.onPageChanged))};
_.b.getPlayerAndInitializeListeners=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return x=_.f7(),x?e.yield(x.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Qa(O,O.onPageChanged)),e.jumpTo(0));O.player=e.yieldResult;O.initializePlayerListeners();_.Ra(e)})};
_.b.onPageChanged=function(O){var x=this;return _.A(function(e){if(e.nextAddress==1)return O.detail.newPageType!=="ytd-shorts"?e.return():e.yield(_.JI().getPlayerPromise(),2);x.player=e.yieldResult;x.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Qa(x,x.onPageChanged));_.Ra(e)})};
_.b.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22571_playerEvents)};
_.b.onVideoDataChange=function(O){var x=this;return _.A(function(e){if(!x.player||O.type!=="newdata")return e.return();x.videoDuration=_.t("web_shorts_use_progress_state_for_gapless")?x.player.getProgressState(O.playertype).seekableEnd:x.player.getDuration(O.playertype);x.playedTime=0;_.Ra(e)})};
_.b.onVideoProgress=function(O){var x=this,e,l;return _.A(function(C){if(!x.player)return C.return();e=x.player.getPresentingPlayerType();l=x.player.getPlayerState();x.videoDuration=_.t("web_shorts_use_progress_state_for_gapless")?x.player.getProgressState(e).seekableEnd:x.player.getDuration(e);x.playedTime=l===0?x.videoDuration:O;_.Ra(C)})};
_.b.getPercentPlayed=function(O,x){return O?_.qo(x/O,0,1):0};
_.Dy.Object.defineProperties(Rh.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 O="";return O=this.videoDuration&&this.playedTime?O+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):O+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Rh.prototype,"componentBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],Rh.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Rh.prototype,"player",void 0);_.B([_.R(),_.v("design:type",Object)],Rh.prototype,"videoDuration",void 0);_.B([_.R(),_.v("design:type",Object)],Rh.prototype,"playedTime",void 0);_.B([_.R(),_.v("design:type",Object)],Rh.prototype,"isActive",void 0);
_.B([_.p("videoDuration","playedTime"),_.v("design:type",Number),_.v("design:paramtypes",[])],Rh.prototype,"percentPlayed",null);_.B([_.p("videoDuration","playedTime"),_.v("design:type",Object),_.v("design:paramtypes",[])],Rh.prototype,"percentPlayedStyle",null);_.B([_.p("videoDuration","isActive"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Rh.prototype,"hideProgressBar",null);
_.n(Rh,"ytd-progress-bar-line",function(){if(Kyk===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);Kyk=O}O=Kyk;return O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var dqU;_.wP(_.eRT,"ytm-closed-captioning-button",{props:{captionIconType:_.Ld,onClick:_.vs,ariaLabel:_.Ld,ariaPressed:_.Ld,isOverlay:_.vs,isModern:_.vs}});_.wP(_.cNX,"desktop-shorts-volume-controls",{props:{orientation:_.Ld}});var U6=function(){var O=_.a.apply(this,arguments)||this;O.playerState=null;O.isMuted=!1;O.shortsModernControlsEnabled=_.t("web_shorts_modern_controls");O.volumeControlsOrientationState="horizontal_right";O.isOverlay=!0;O.captionIconType=-1;O.ariaLabel="";O.overlayDensity=0;O.JSC$22574_playerEvents=new Map;O.onClosedCaptionsButtonClick=function(){O.player&&_.ZT(O.player)&&(O.player.toggleSubtitles(),O.updateCaptionIconType())};
return O};
_.c(U6,_.a);_.b=U6.prototype;_.b.created=function(){this.JSC$22574_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22574_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22574_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.b.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.O9(28662);this.playPauseButtonClientVE=_.O9(36842);this.fullscreenButtonToggleOffClientVE=_.O9(222256);this.fullscreenButtonToggleOnClientVE=_.O9(222257);var O=_.Pq(),x=_.q9();O&&x&&(_.t("combine_ve_grafts")?(_.qK(_.k0(),this.muteButtonClientVE,x),_.qK(_.k0(),this.playPauseButtonClientVE,x)):_.h3(O,x,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.b.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22574_playerEvents),this.player=null)};
_.b.updateCaptionIconType=function(){var O=-1,x=void 0,e=_.CZ("CLOSED_CAPTIONS_DISABLED");this.player&&_.ZT(this.player)&&(_.vbe(this.player)?(x=!0,e=_.CZ("CLOSED_CAPTIONS_ON"),O=1):(x=!1,e=_.CZ("CLOSED_CAPTIONS_OFF"),O=0));this.captionIconType=O;this.ariaPressedState=x;this.ariaLabel=e};
_.b.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-with-label",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.b.getPlayerAndInitializeListeners=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return x=_.f7(),x?e.yield(x.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Qa(O,O.onPageChanged)),e.jumpTo(0));O.player=e.yieldResult;O.initializePlayerListeners();_.Ra(e)})};
_.b.onPageChanged=function(O){var x=this;return _.A(function(e){if(e.nextAddress==1)return O.detail.newPageType!=="ytd-shorts"?e.return():e.yield(_.JI().getPlayerPromise(),2);x.player=e.yieldResult;x.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Qa(x,x.onPageChanged));_.Ra(e)})};
_.b.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22574_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.b.onPlayerStateChange=function(O){this.playerState=O};
_.b.onPlayerVolumeChange=function(O){this.isMuted=O.muted};
_.b.onPlayPauseButtonClick=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(_.JI().getPlayerPromise(),2);x=l.yieldResult;(e=_.Pq())&&O.playPauseButtonClientVE&&_.KZ(e,O.playPauseButtonClientVE);x.getPlayerState()!==1?x.playVideo():x.pauseVideo();_.Ra(l)})};
_.b.computePlayPauseIcon=function(O){return O===2||O===-1||O===5?_.t("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.t("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.t("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.b.computeFullscreenLabel=function(O){return O?_.CZ("FULLSCREEN_EXIT_LABEL"):_.CZ("FULLSCREEN_ENTER_LABEL")};
_.b.computePlayPauseLabel=function(O){return O===1||O===3?_.CZ("PLAYER_LABEL_PAUSE"):_.CZ("PLAYER_LABEL_PLAY")};
_.b.onMuteButtonClick=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(_.JI().getPlayerPromise(),2);x=l.yieldResult;(e=_.Pq())&&O.muteButtonClientVE&&_.KZ(e,O.muteButtonClientVE);x.isMuted()?x.unMute(!0):x.mute(!0);_.Ra(l)})};
_.b.computeMuteIcon=function(O){return O?"miniplayer:volume-off":"miniplayer:volume-up"};
_.b.computeMuteLabel=function(O){return O?_.CZ("PLAYER_LABEL_UNMUTE"):_.CZ("PLAYER_LABEL_MUTE")};
_.b.onFullscreenButtonClick=function(){var O=_.Pq();O&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.KZ(O,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.KZ(O,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.dwQ()};
_.Dy.Object.defineProperties(U6.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var O=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(){O.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?_.t("web_shorts_modern_controls")?"player_full_exit_alt":_.t("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.t("web_shorts_modern_controls")?"player_full_enter_alt":_.t("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],U6.prototype,"componentBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],U6.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],U6.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"player",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"playerState",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"isMuted",void 0);
_.B([_.R({computed:"computePlayPauseIcon(playerState)"}),_.v("design:type",String)],U6.prototype,"playPauseIcon",void 0);_.B([_.R({computed:"computeMuteIcon(isMuted)"}),_.v("design:type",String)],U6.prototype,"muteIcon",void 0);_.B([_.R({selector:_.f5}),_.v("design:type",Boolean)],U6.prototype,"isFullscreen",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U6.prototype,"shortsModernControlsEnabled",void 0);
_.B([_.R(),_.v("design:type",Object)],U6.prototype,"volumeControlsOrientationState",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"isOverlay",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"captionIconType",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"ariaLabel",void 0);_.B([_.R(),_.v("design:type",Object)],U6.prototype,"ariaPressedState",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],U6.prototype,"overlayDensity",void 0);
_.B([_.R(),_.v("design:type",Object)],U6.prototype,"data",void 0);_.B([_.R({computed:"computeActionBarButtonOverride()"}),_.v("design:type",Object)],U6.prototype,"actionBarButtonOverride",void 0);_.B([_.p("playerState"),_.v("design:type",Object),_.v("design:paramtypes",[])],U6.prototype,"playPauseButtonData",null);_.B([_.p("isFullscreen"),_.v("design:type",Object),_.v("design:paramtypes",[])],U6.prototype,"fullscreenButtonData",null);
_.B([_.R(),_.v("design:type",Object)],U6.prototype,"onClosedCaptionsButtonClick",void 0);_.B([_.p("isFullscreen"),_.v("design:type",String),_.v("design:paramtypes",[])],U6.prototype,"fullscreenIcon",null);
_.n(U6,"ytd-shorts-player-controls",function(){if(dqU===void 0){var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);dqU=O}O=dqU;return O},{mode:1});var n8y;_.wP(_.ny4,"yt-interstitial-view-model",{props:{data:_.Ld}});var uFy=_.K(function(O){var x=O.data;return _.D("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.D("h1",{class:"reelWatchBreakViewModelHostTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("h2",{class:"reelWatchBreakViewModelHostBody"},_.D(_.TT,{text:function(){return x().body},
isOverlay:!0})),_.D(_.MR,{data:function(){return x().buttons}},{buttonViewModel:function(e,l){return _.D("div",{class:function(){return l()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.D(_.RV,{data:e.data}))}}))},"an");
uFy.idomCompat=!0;_.wP(uFy,"reel-watch-break-view-model",{props:{data:_.Ld}});var ah=function(){return _.a.apply(this,arguments)||this};
_.c(ah,_.a);ah.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}}};
_.Dy.Object.defineProperties(ah.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.q((O=this.data)==null?void 0:O.renderer,c0H)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.q((O=this.data)==null?void 0:O.renderer,Idy)}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ah.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],ah.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ah.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data.renderer"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ah.prototype,"isSurvey",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.renderer"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ah.prototype,"isInterstitialViewModel",null);_.B([_.H({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],ah);
_.n(ah,"ytd-reel-non-video-content-renderer",function(){if(n8y!==void 0)return n8y;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return n8y=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var YmS;_.wP(_.Pbp,"desktop-shorts-player-controls",{});var ms=function(){var O=_.a.apply(this,arguments)||this;O.isPlayerPaused=!1;O.isPlayerStarted=!1;O.showPlayerControls=!1;O.showScrubber=!1;O.autoHideJobId=0;O.modern=_.t("web_button_rework");O.overlayType=_.Z0("web_shorts_expanded_overlay_type");O.panelData=void 0;O.isWatchWhileMode=!1;O.hasError=!1;O.panelShowDelayMs=1;O.scrubberComponent={};O.isFullscreen=!1;O.shouldHideOverlay=!1;O.enableAnchoredPanel=_.t("desktop_shorts_v2_anchored_panel");O.enablePersistentAnchoredPanel=_.t("desktop_shorts_v2_persistent_anchored_panel");
O.hideWatchWhilePanel=_.t("web_shorts_hide_watch_while_panel");O.useAspectRatio=_.t("web_use_aspect_ratio");O.enableShortsModernControls=_.t("web_shorts_modern_controls");O.isPersistentPanelActive=!1;O.anchoredPanelActive=!1;O.isShortsPipActive=!1;O.smallScreenSqueezeback=!1;O.enableFlexibleOverlay=_.t("web_enable_flexible_overlay");O.overlayDensity=0;O.extractOverlay=!1;O.extractActionBar=!1;O.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
O.onWindowResized=function(){_.hY(O,"calculateOverlayDensity",function(){O.calculateOverlayDensity()},100)};
return O};
_.c(ms,_.a);_.b=ms.prototype;_.b.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.b.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.b.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var O=_.GG().resolve(_.Bm);this.isWatchWhileMode&&_.vn.addJob(function(){O.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.b.handleShowReelsCommentsOverlayCommand=function(O){O=_.q(O,RWk);this.isActive&&(O==null?0:O.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))};
_.b.updateEngagementPanelVisibility=function(O,x){O&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:x?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:O}})};
_.b.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.b.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.GG().resolve(_.Wr).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.b.handleWatchWhilePanelScrimClick=function(){var O=_.GG().resolve(_.Bm);this.activeWatchWhilePanel&&(O.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.b.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.b.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.b.handlePlayerClick=function(O){var x=this,e,l;if((l=(e=window).matchMedia)!=null&&l.call(e,"(any-pointer: coarse)").matches||!O)this.showPlayerControls=!0,_.vn.cancelJob(this.autoHideJobId),this.autoHideJobId=_.zl(_.vn,function(){x.showPlayerControls=!1},4E3)};
_.b.isFirstReel=function(){return this.index===0};
_.b.handleMouseenter=function(){_.vn.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.b.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.b.handleScrubberEnter=function(){this.showScrubber=!0};
_.b.handleScrubberLeave=function(){this.showScrubber=!1};
_.b.maybeLogNonDefaultAspectRatio=function(){var O;(O=this.data)!=null&&O.thumbnail&&this.isActive&&.5625!==eWh(this.data.thumbnail)&&_.V9L("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.b.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var O=document.querySelector("#shorts-container");if(O){var x=!1,e,l=this.playerContainer.offsetWidth,C=this.playerContainer.offsetHeight;O=O.offsetWidth/2-l/2;O>=368?(O=1,x=e=!0):O>=72?(O=0,e=!0):(O=2,e=!1);l>=600&&C>=840?O=1:window.innerWidth<=599&&(O=2,e=x=!1);this.isPersistentPanelActive&&(O=0,x=!1);this.extractActionBar=e;_.t("web_enable_flexible_overlay")&&(this.overlayDensity=O,this.extractOverlay=
x);var Q;(Q=this.onOverlayDensityChanged)==null||Q.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.b.onOverlayDensityChange=function(){var O;(O=this.onOverlayDensityChanged)==null||O.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(O=_.$U(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))O.set("overlayDensity",this.overlayDensity),O.set("extractOverlay",this.extractOverlay),O.set("extractActionBar",this.extractActionBar);if(O=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))O.overlayDensity=this.overlayDensity,O.extractOverlay=
this.extractOverlay,O.extractActionBar=this.extractActionBar};
_.b.isVideoContent=function(O){_.GG().resolve(_.Wr);return!!_.q(O,_.kU)};
_.b.isNonVideoContent=function(O){_.GG().resolve(_.Wr);return!!_.q(O,_.fY)};
_.b.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Dy.Object.defineProperties(ms.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var O,x;return _.t("web_enable_format_first")||((O=this.data)==null?void 0:O.adsOverlay)&&_.t("web_enable_format_first_ads_only")||((x=this.data)==null?void 0:x.reelPlayerOverlayRenderer)&&_.t("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.t("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var O;return!this.isActive||!this.isPlayerStarted||(O=this.data)!=null&&O.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.data)==null?0:O.command)&&this.isVideoContent(this.data.command)){var x,e;if(((x=this.data)==null?0:x.adsOverlay)&&Object.keys((e=this.data)==null?void 0:e.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var l,C;if(((l=this.data)==null?0:l.reelPlayerOverlayRenderer)&&Object.keys((C=this.data)==null?void 0:C.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
ms.prototype.onOverlayDensityChange=ms.prototype.onOverlayDensityChange;ms.prototype.calculateOverlayDensity=ms.prototype.calculateOverlayDensity;ms.prototype.maybeLogNonDefaultAspectRatio=ms.prototype.maybeLogNonDefaultAspectRatio;ms.prototype.onEngagementPanelsChanged=ms.prototype.onEngagementPanelsChanged;ms.prototype.onScrubberDataChange=ms.prototype.onScrubberDataChange;ms.prototype.updateShouldHideOverlay=ms.prototype.updateShouldHideOverlay;
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],ms.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],ms.prototype,"index",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ms.prototype,"isActive",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ms.prototype,"isHiddenInDom",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"isPlayerPaused",void 0);_.B([_.R({selector:CPh}),_.v("design:type",Object)],ms.prototype,"isPlayerStarted",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"showPlayerControls",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"showScrubber",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"autoHideJobId",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"overlayType",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],ms.prototype,"ytdReduxBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ms.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"watchWhileEngagementPanels",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"panelData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"isWatchWhileMode",void 0);_.B([_.R(),_.v("design:type",String)],ms.prototype,"activeWatchWhilePanel",void 0);
_.B([_.R(),_.v("design:type",Object)],ms.prototype,"hasError",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"panelShowDelayMs",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"scrubberComponent",void 0);_.B([_.R({selector:_.f5,reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"isFullscreen",void 0);_.B([_.R(),_.v("design:type",Object)],ms.prototype,"shouldHideOverlay",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"enableAnchoredPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"enablePersistentAnchoredPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"hideWatchWhilePanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"useAspectRatio",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"enableShortsModernControls",void 0);_.B([_.R({selector:_.Jw$,reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"isPersistentPanelActive",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"anchoredPanelActive",void 0);_.B([_.R({selector:_.JA,reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"isShortsPipActive",void 0);
_.B([_.R({selector:ldH,reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"smallScreenSqueezeback",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ms.prototype,"enableFormatFirst",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"enableFlexibleOverlay",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"overlayDensity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"extractOverlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ms.prototype,"extractActionBar",void 0);_.B([_.R(),_.v("design:type",Function)],ms.prototype,"onOverlayDensityChanged",void 0);
_.B([_.R(),_.p("isActive","hasError","isPlayerStarted"),_.v("design:type",Object),_.v("design:paramtypes",[])],ms.prototype,"shouldRenderPlayerElements",null);_.B([_.R(),_.p("isActive","isWatchWhileMode"),_.v("design:type",Object),_.v("design:paramtypes",[])],ms.prototype,"watchWhileOrPersistentActive",null);_.B([_.T1("isActive","hasError","showingExpandedOverlay"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ms.prototype,"updateShouldHideOverlay",null);
_.B([_.R({reflectToAttribute:!0}),_.p("isActive","isPlayerStarted","data"),_.v("design:type",Object),_.v("design:paramtypes",[])],ms.prototype,"shouldRenderScrubber",null);_.B([_.T1("shouldRenderScrubber"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ms.prototype,"onScrubberDataChange",null);_.B([_.p("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.v("design:type",Object),_.v("design:paramtypes",[])],ms.prototype,"overlayComponent",null);
_.B([_.T1("watchWhileEngagementPanels"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ms.prototype,"onEngagementPanelsChanged",null);_.B([_.kX("#player-container"),_.v("design:type",HTMLElement)],ms.prototype,"playerContainer",void 0);_.B([_.kX("#cinematic-container"),_.v("design:type",HTMLElement)],ms.prototype,"cinematicContainer",void 0);
_.B([_.T1("isPersistentPanelActive","data.thumbnail"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ms.prototype,"maybeLogNonDefaultAspectRatio",null);_.B([_.T1("isPersistentPanelActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ms.prototype,"calculateOverlayDensity",null);
_.B([_.T1("overlayDensity","extractOverlay","extractActionBar"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ms.prototype,"onOverlayDensityChange",null);_.B([_.H({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],ms);
_.n(ms,"ytd-reel-video-renderer",function(){if(YmS!==void 0)return YmS;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YmS=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var s6=function(){var O=_.a.apply(this,arguments)||this;O.isPreviousPageShorts=!1;O.index=0;O.delayedActiveIndex=0;O.playablePreviousIndex=null;O.isPlayerPaused=!1;O.isPlayerStarted=!1;O.intersectionObserverThreshold=.6;O.fitToVisibleBounds=!1;O.pageSubtype="shorts";O.enablePreviousContinuation=_.t("shorts_in_playlists_web");O.shortsPipEnabled=_.t("web_shorts_pip");O.isDark=document.documentElement.hasAttribute("dark");O.shortsViewTransitions=_.t("web_shorts_view_transitions");O.isFullscreen=!1;O.isShortsPipActive=
!1;O.buttonOverride={iconPosition:"icon-only",size:"XL"};O.anchoredPanelActive=!1;O.isActive=!1;O.smallScreenPersistentPanel=!1;O.isPersistentPanelActive=!1;O.smallScreenSqueezeBack=!1;O.enableScrollIntoViewCenter=_.t("web_scroll_into_view_center");O.formatFirst=_.t("web_enable_format_first")||_.t("web_enable_format_first_ads_only")||_.t("web_enable_format_first_organic_only");O.enableFlexibleOverlay=_.t("web_enable_flexible_overlay");O.extractOverlay=!1;O.useAspectRatio=_.t("web_use_aspect_ratio");
O.isShortsInitialized=!1;O.hasDataUpdated=!1;O.playerInPosition=!1;O.hidePreviousButtonImmediately=!1;O.showPreviousButtonImmediately=!1;O.endOfNextContinuation=!1;O.currentPlayerIndex=0;O.nextReelVe=_.O9(56921);O.prevReelVe=_.O9(56922);O.loopToggleOffVe=_.O9(198013);O.loopToggleOnVe=_.O9(198014);O.ambientModeToggleVe=_.O9(227860);O.reelPlayerPausedStateRendererVe=_.O9(141313);O.storedPlaybackSpeed=null;O.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"};O.onOverlayDensityChanged=function(x,e,l,C){x=O.getActiveReelVideo(x);O.extractOverlay=!!l;x==null||x.setAttribute("overlay-density",String(e));l===void 0||x!=null&&x.toggleAttribute("extract-overlay",l);C===void 0||x!=null&&x.toggleAttribute("extract-action-bar",C)};
return O};
_.c(s6,_.a);_.b=s6.prototype;_.b.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.b.deflateInactivePreviousSlides=function(){var O=_.yF("web_shorts_deflate_inactive_slides_aggressive_distance");if(O>0&&this.shortsProcessedSequence&&this.activeIndex){O=this.activeIndex-O;for(var x=0;x<=O;x++){var e=void 0;((e=this.shortsProcessedSequence[x].reelPlayerOverlayRenderer)==null?0:e.metapanel)&&this.set("shortsProcessedSequence."+x+".reelPlayerOverlayRenderer",{});e=void 0;((e=this.shortsProcessedSequence[x].adsOverlay)==null?0:e.adSlotMetadata)&&this.set("shortsProcessedSequence."+
x+".adsOverlay",{})}}};
_.b.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.b.onResize=function(){var O=_.u9(),x=O.dispatch,e=this.calculateIsSmallWidth();x.call(O,_.j6({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:e}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.b.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.b.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var O=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,x=O,e=0;O<250&&(x=O+this.shortsInnerContainer.clientWidth,e=24);_.lH(this.hostElement,{"--ytd-shorts-header-width":x+"px","--ytd-shorts-top-spacing":e+"px"})}};
_.b.isFirstShorts=function(O){return O?this.index===-O.length:this.index===0};
_.b.isActiveReel=function(O,x,e){e&&(x=this.calculatePrevIndex(x,e));return O===x};
_.b.onFullscreenChange=function(){if(_.t("web_fullscreen_shorts")){var O;(O=this.getActiveReelVideo(this.activeIndex))==null||O.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.GG().resolve(_.Vs).close(!0)}};
_.b.engagementPanelsChanged=function(){var O;this.watchWhileEngagementPanels=(O=this.data)==null?void 0:O.engagementPanels};
_.b.unregisterPanels=function(){var O=_.GG().resolve(_.Bm);if(this.watchWhileEngagementPanels)for(var x=_.T(this.watchWhileEngagementPanels),e=x.next();!e.done;e=x.next()){var l=e.value,C=void 0,Q=void 0;e=(C=l.engagementPanelSectionListRenderer)==null?void 0:(Q=C.identifier)==null?void 0:Q.tag;l=this.getPanelContentIdentifier(l.engagementPanelSectionListRenderer);O&&(e&&O.panelMap.delete(e),l&&_.t("web_shorts_panel_caching_bugfix")&&(C=e=void 0,(C=(e=O).unregisterPanelContent)==null||C.call(e,l)))}};
_.b.isVideoContent=function(O){return this.isVideoContentCommand(O==null?void 0:O.command)};
_.b.getActiveReelVideo=function(O){return _.$U(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+O+'"]')};
_.b.calculatePrevIndex=function(O,x){return x?O-((x==null?void 0:x.length)||0):-1};
_.b.onKeydown=function(O){var x=_.n3(O)||[];if(!_.KCQ(x))if(O.code==="ArrowUp")O.preventDefault(),this.handlePrevButtonClick();else if(O.code==="ArrowDown")O.preventDefault(),this.handleNextButtonClick();else if(O.code==="KeyM")this.toggleMuteUnmuteVideo();else if(O.code==="KeyK"||O.code==="Space")this.togglePlayPauseVideo();else if((O.code==="KeyA"||O.code==="ArrowLeft")&&_.t("web_shorts_keyboard_enable_seek_shortcuts")){var e;(e=this.player)==null||e.seekBy(-5)}else if((O.code==="KeyD"||O.code===
"ArrowRight")&&_.t("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var l;(l=this.player)==null||l.seekBy(5)}};
_.b.onServiceRequestCompleted=function(O,x){O=x.data;O.continuationEndpoint&&O.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:O.entries,continuationEndpoint:O.continuationEndpoint}}),_.t("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=O)):O.prevContinuationEndpoint&&O.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:O.prevEntries,
prevContinuationEndpoint:O.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.b.handleEngagementPanelVisibilityChanged=function(O,x){var e=_.GG().resolve(_.Bm);if(O&&e){var l=this.getPanelIdentifier(O);if(x==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==l){e.hidePanel(this.activePanel);var C;this.activePanel=((C=O.identifier)==null?void 0:C.tag)||O.panelIdentifier}else this.isPersistentPanelActive=!0,_.u9().dispatch(Fya(!0)),this.anchoredPanelActive=!0,this.activePanel=l;else x==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
l&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.u9().dispatch(Fya(!1)))}};
_.b.handlePanelScrimClick=function(){var O=_.GG().resolve(_.Bm);this.activePanel&&(O.hidePanel(this.activePanel),_.u9().dispatch(Fya(!1)))};
_.b.getShortsLoopSetting=function(){var O,x,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return _.t("kevlar_shorts_auto_advance")?Q.yield(_.Ko.getInstance(),2):Q.return(!0);case 2:return(O=Q.yieldResult)?Q.yield(O.get("sfvles"),3):Q.return(!0);case 3:return e=(x=Q.yieldResult)!=null?x:!1,Q.yield(O.get("sfvle"),4);case 4:return C=(l=Q.yieldResult)!=null?l:!0,e?Q.return(C):Q.return(!0)}})};
_.b.handleSignalActionToggleLoopShortsOff=function(){var O=this,x,e,l;return _.A(function(C){switch(C.nextAddress){case 1:if(!O.player)return C.return();O.player.setLoopVideo(!1);x=_.k0();_.cu(x,O.loopToggleOffVe);return C.yield(_.Ko.getInstance(),2);case 2:return(e=C.yieldResult)?C.yield(e.set("sfvle",!1),3):C.return();case 3:return C.yield(e.set("sfvles",!0),4);case 4:l=_.TD(),_.LZ(0,203,!1),_.LZ(0,204,!0),l.save(),_.Ra(C)}})};
_.b.handleSignalActionToggleLoopShortsOn=function(){var O=this,x,e,l;return _.A(function(C){switch(C.nextAddress){case 1:if(!O.player)return C.return();O.player.setLoopVideo(!0);x=_.k0();_.cu(x,O.loopToggleOnVe);return C.yield(_.Ko.getInstance(),2);case 2:return(e=C.yieldResult)?C.yield(e.set("sfvle",!0),3):C.return();case 3:return C.yield(e.set("sfvles",!0),4);case 4:l=_.TD(),_.LZ(0,203,!0),_.LZ(0,204,!0),l.save(),_.Ra(C)}})};
_.b.handleSignalActionToggleCinematicShortsOn=function(){xq7(!0);var O;(O=this.JSC$22600_cinematicController)==null||_.Sdk(O,!0);_.cu(_.k0(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.b.handleSignalActionToggleCinematicShortsOff=function(){xq7(!1);var O;(O=this.JSC$22600_cinematicController)==null||_.Sdk(O,!1);_.cu(_.k0(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.b.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.b.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.b.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var O=this.overlayContainer.querySelector("#experiment-overlay");O&&_.vn.addLowPriorityJob(function(){O.style.display="unset"},100)}};
_.b.getCurrentShort=function(){if(this.currentEndpoint){var O=this.currentEndpoint;if(this.isNonVideoContentCommand(O)){var x=_.q(O,_.fY);return{reelNonVideoContentRenderer:_.q(x==null?void 0:x.renderer,_.rcd),command:O}}if(this.data){var e;x=(e=_.q(this.currentEndpoint,_.kU))==null?void 0:e.thumbnail;var l;e=(l=this.data.overlay)==null?void 0:l.reelPlayerOverlayRenderer;_.GG().resolve(_.Wr);O=this.data;var C,Q;l=(C=O.overlay)==null?void 0:(Q=C.shortsAdsRenderer)==null?void 0:Q.adSlots;if(l!==void 0)l.length===
0?(_.m8("Shorts ads returned no ad slots."),O=void 0):(l.length>1&&_.m8("Shorts ads has more than one ad slots."),O=_.q(l[0],_.q_d));else{var L,k;O=_.q((L=O.overlay)==null?void 0:(k=L.shortsAdsRenderer)==null?void 0:k.overlay,_.q_d)}L=O;O=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.q(this.currentEndpoint,_.kU),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:e,thumbnail:x,command:O,adsOverlay:L}}}};
_.b.created=function(){var O=this;this.scrollToVideoThrottle=new _.QI(function(x){var e;(e=O.getActiveReelVideo(x))==null||e.scrollIntoView({behavior:"smooth",block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.QI(function(x){var e;(e=O.getActiveReelVideo(x))==null||e.scrollIntoView({behavior:"auto",block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.b.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.b.attached=function(){var O=this;_.GG().resolve(_.Wr).registerRootElement(this);this.pageScrollElement=_.$U(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Qa(this,this.processResetAction));_.t("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var x=O.getActiveReelVideo(O.activeIndex);O.maybeCreateIntersectionObserver();x==null||x.scrollIntoView({behavior:"instant",
block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"});O.shortsContainer.style.overflowY="scroll"}))};
_.b.updateReelWatchSequenceResponse=function(){var O=this,x;_.t("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((x=_.q(this.currentEndpoint,_.kU))==null?0:x.sequenceParams)&&!this.reelWatchSequenceResponse&&(x=_.GG().resolve(_.Wr))&&G8a(x,this.currentEndpoint).then(function(e){e&&(O.reelWatchSequenceResponse=e,_.vn.addLowPriorityJob(function(){O.observeShorts()}))})};
_.b.calculateSqueezebackPanelSize=function(){var O=this,x=window.innerWidth-456-(window.innerHeight-106)*.5625;_.vn.addLowPriorityJob(function(){x<360?_.u9().dispatch(Xvz(!0)):(O.hostElement.style.setProperty("--anchored-panel-width",Math.min(x,480)+"px"),_.u9().dispatch(Xvz(!1)))})};
_.b.detached=function(){var O=_.GG().resolve(_.Wr);O.rootElement=void 0;var x;(x=O.unsubscribeFromStore)==null||x.call(O);O.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Qa(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.b.onResizeFinished=function(O,x){var e=this,l=new ResizeObserver(function(){e.shortsContainer.style.overflowY="hidden";_.vn.addLowPriorityJob(function(){x()},100)});
l.observe(O);return l};
_.b.resetDocumentScrollTop=function(){var O,x;if((O=document)==null?0:(x=O.scrollingElement)==null?0:x.scrollTop)document.scrollingElement.scrollTop=0};
_.b.loadPage_=function(O){var x=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),O){var e;!_.t("web_enable_delay_shorts_sequence_call")&&((e=_.q(this.currentEndpoint,_.kU))==null?0:e.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=O;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){x.isPlayerStarted&&(x.handleOnPlaybackCommand(),x.afterPlayerStarted=function(){})};
this.registerPanel(O)}};
_.b.afterPlayerStarted=function(){};
_.b.handleOnPlaybackCommand=function(){if(_.t("web_shorts_comment_stickers")&&this.isPlayerStarted){var O,x=(O=_.q(this.currentEndpoint,_.kU))==null?void 0:O.onPlaybackCommand;x&&this.ytComponentBehavior.resolveCommand(x)}};
_.b.maybeCreateIntersectionObserver=function(){var O=this,x=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==x){this.intersectionObserverThreshold=x;var e={rootMargin:"0px",threshold:x},l;(l=this.intersectionObserver)==null||l.disconnect();this.intersectionObserver=new IntersectionObserver(function(C){C=_.T(C);for(var Q=C.next();!Q.done;Q=C.next())if(Q=Q.value,Q.intersectionRatio>x){Q=Number(Q.target.id);if(isNaN(Q))break;if(Q===O.index)break;
_.JEr();O.loadVideo(Q);_.pZ("r_vtc")}},e);
this.observeShorts()}};
_.b.observeShorts=function(){var O=[].concat(_.Kx(_.$U(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));O=_.T(O);for(var x=O.next();!x.done;x=O.next()){x=x.value;var e=void 0;(e=this.intersectionObserver)==null||e.observe(x)}};
_.b.initCsi=function(){_.OUa("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var O={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"}},x,e;if((x=this.playerData)==null?0:(e=x.cacheMetadata)==null?0:e.isCacheHit)O.isCacheHit=!0;var l;if(x=(l=_.q(this.currentEndpoint,_.kU))==null?void 0:
l.prefetchTaskId)O.prefetchInfo={taskId:x};_.EO(O)};
_.b.isAd=function(){var O,x;return!!((O=_.q(this.currentEndpoint,_.kU))==null?0:(x=O.adClientParams)==null?0:x.isAd)};
_.b.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.b.getPlayerContainer=function(){var O;return(O=_.$U(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:O.playerContainer};
_.b.onPlayerStateChange=function(O){var x=this;this.isPlayerPaused=O===2;O!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?O===1&&this.index===0&&(this.isPlayerStarted||_.u9().dispatch(o8I(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.u9().dispatch(o8I(!0)));this.player&&!this.player.getLoopVideo()&&_.vn.addLowPriorityJob(function(){x.getShortsLoopSetting().then(function(e){var l;(l=x.player)==null||l.setLoopVideo(e)})});
this.isPlayerPaused&&_.t("web_shorts_paused_state_logging")&&_.rT(_.Pq(),[this.reelPlayerPausedStateRendererVe])};
_.b.isInBackground=function(){var O=window.document.visibilityState;return!(!O||O==="visible")};
_.b.isShortPlayable=function(){if(_.t("kevlar_playable_short_killswitch"))return!0;var O;return(O=this.playerData)!=null&&O.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.b.setNormalPlaybackSpeed=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(O.getPlayer().getPlayerPromise(),2);x=l.yieldResult;e=x.getPlaybackRate();e!==1&&(O.storedPlaybackSpeed=e,x.setPlaybackRate(1));_.Ra(l)})};
_.b.restorePlaybackSpeed=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1)return O.storedPlaybackSpeed===null?e.jumpTo(0):e.yield(O.getPlayer().getPlayerPromise(),3);x=e.yieldResult;x.setPlaybackRate(O.storedPlaybackSpeed);O.storedPlaybackSpeed=null;_.Ra(e)})};
_.b.playerDataChanged=function(){var O=this,x,e,l,C,Q,L,k,M,G;return _.A(function(X){if(X.nextAddress==1){x=O.getPlayer();(e=O.intersectionObserver)==null||e.disconnect();if(O.playerData){if(((l=O.playerData.videoDetails)==null?void 0:l.videoId)!==((C=x.getPlayer())==null?void 0:C.getVideoData().video_id)){Q={};if(L=_.q(O.currentEndpoint,_.kU))Q.watch_endpoint=L,L.endTimeSeconds&&(Q.end=L.endTimeSeconds);x.loadVideoWithPlayerResponse(O.playerData,Q)}}else return X.return();return O.player?X.jumpTo(2):
X.yield(x.getPlayerPromise(),3)}X.nextAddress!=2&&(O.player=X.yieldResult,O.JSC$22600_playerStateChangeListener=O.onPlayerStateChange.bind(O),O.player.addEventListener("onStateChange",O.JSC$22600_playerStateChangeListener),_.t("kevlar_client_enable_shorts_player_bootstrap")&&_.UM(),O.scrollToVideoThrottle.fire(O.index),O.movePlayerToVideo(O.index),_.vn.addLowPriorityJob(function(){O.getShortsLoopSetting().then(function(y){var Z;(Z=O.player)==null||Z.setLoopVideo(y)})}),_.ahd.resolve(O.player),O.player.syncVolume(),
O.getPlayer().focusOnPlayer());
_.vn.addLowPriorityJob(function(){O.observeShorts()},100);
k=O.player.getPlayerState(O.player.getPresentingPlayerType());k!==1||O.isPlayerStarted||_.u9().dispatch(o8I(!0));O.updateBackNavContainerWidth();M=_.q(O.currentEndpoint,_.kU);((G=M)==null?0:G.startTimeSeconds)&&O.player.seekTo(M.startTimeSeconds);if(O.JSC$22600_cinematicController||O.cinematicsInitializeJobId)return X.return();O.cinematicsInitializeJobId=_.vn.addLowPriorityJob(function(){O.initCinematicController();O.cinematicsInitializeJobId=void 0});
_.Ra(X)})};
_.b.onShortUndoDismiss=function(){var O=this,x=DqS().pop();x!==void 0&&(_.A_(this,function(){O.showCardWithIndex(x)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.b.onShortsDismiss=function(O){if(O=O.detail.reelDismissalActionRenderer)(O=_.q(O.onDismissalCompletionRenderer,_.IuS))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:O}}}),this.scrollAndDismissCard()};
_.b.processReelNonVideoContentDismissalCommand=function(O){var x=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);O=_.q(O,pvT);this.activeDimissalTimeout=setTimeout(function(){x.scrollAndDismissCard()},Number(O==null?void 0:O.delayMs))};
_.b.scrollAndDismissCard=function(){var O=this,x=this.index;DqS().push(x);_.A_(this,function(){var e=O.getPlayableNextIndex();e!==null&&(e=O.getActiveReelVideo(e),O.hideCardWithIndex(x),e==null||e.scrollIntoView({behavior:"smooth",block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"}))})};
_.b.hideCardWithIndex=function(O){if(O=this.getActiveReelVideo(O))O.hidden=!0};
_.b.showCardWithIndex=function(O){if(O=this.getActiveReelVideo(O))O.hidden=!1};
_.b.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.b.activeChanged=function(O){_.u9().dispatch(_.j6({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:O}}));if(O)document.addEventListener("keydown",_.Qa(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var x;(x=this.player)==null||x.sendAbandonmentPing()}var e;(e=this.player)==null||e.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Qa(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.b.graftClientVisualElements=function(){if(this.data){var O=_.k0();_.VHF(O,_.$7({response:this.reelWatchSequenceResponse}));_.qK(O,this.nextReelVe);_.qK(O,this.prevReelVe);_.t("kevlar_shorts_auto_advance")&&(_.qK(O,this.loopToggleOffVe),_.qK(O,this.loopToggleOnVe));_.qK(O,this.ambientModeToggleVe);_.rT(_.Pq(),[this.nextReelVe,this.prevReelVe]);_.t("web_shorts_paused_state_logging")&&_.qK(O,this.reelPlayerPausedStateRendererVe)}};
_.b.graftNvcRenderer=function(){var O,x,e,l,C=this.index<0?(O=this.shortsProcessedPrevSequence)==null?void 0:(x=O[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:x.command:(e=this.shortsProcessedSequence)==null?void 0:(l=e[this.index])==null?void 0:l.command;if(C&&this.isNonVideoContentCommand(C)){O=_.q(C,_.fY);var Q,L;(O=(Q=_.q(O==null?void 0:O.renderer,_.rcd))==null?void 0:(L=Q.loggingDirectives)==null?void 0:L.trackingParams)&&_.k0().graftServerVe(O)}};
_.b.setActiveIndex=function(){_.GG().resolve(_.Wr).setActiveIndex(this.index)};
_.b.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.b.lazyUpdateMiniplayerData=function(){var O=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.vn.addLowPriorityJob(function(){O.updateMiniplayerData();O.updateMiniplayerDataJobId=void 0}))};
_.b.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.vn.cancelJob(this.updateMiniplayerDataJobId)};
_.b.updateMiniplayerData=function(){var O,x,e,l=_.GG().resolve(_.Vs),C={shortsData:this.getCurrentShort(),previousButtonDisabled:!((O=this.prevButtonData)==null||!O.isDisabled),nextButtonDisabled:!((x=this.nextButtonData)==null||!x.isDisabled),playabilityStatus:(e=this.playerData)==null?void 0:e.playabilityStatus};_.AV(l,C)};
_.b.resetPlayerLocation=function(){var O=this.getPlayer();this.initialPlayerContainer&&O.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.b.movePlayerToVideo=function(O,x){var e=this;x=x===void 0?!0:x;var l=this.getActiveReelVideo(O),C=this.getPlayer();if(l){this.overlayContainer?l.appendChild(this.overlayContainer):(this.overlayContainer=_.$U(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,l.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||C.appendTo(this.overlayContainer.playerContainer,void 0,!0));var Q;(Q=this.player)==null||Q.setSize(NaN,NaN);this.isActive||_.zl(_.vn,function(){e.isActive=
!0});
C.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.t("reels_web_disable_rtr_tick")||_.t("reels_web_use_pbs_first_shorts")&&O===0||_.IR("r_tr");this.currentPlayerIndex=O;l.appendChild(this.errorScreenContainer);var L;(L=this.JSC$22600_cinematicController)==null||_.Ncz(L)}else x?_.vn.addLowPriorityJob(function(){e.movePlayerToVideo(e.index,!1)}):Math.random()<=_.yF("web_shorts_error_logging_threshold")&&_.vH(new _.ry("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:x,
index:O}))};
_.b.enableFormatFirst=function(O){return _.t("web_enable_format_first")||O.adsOverlay&&_.t("web_enable_format_first_ads_only")||O.reelPlayerOverlayRenderer&&_.t("web_enable_format_first_organic_only")};
_.b.getAspectRatio=function(O){if(this.enableFormatFirst(O))return(O==null?0:O.thumbnail)&&eWh(O.thumbnail)?"--ytd-shorts-player-ratio: "+eWh(O.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.b.getBackgroundImage=function(O){if(O!=null&&O.thumbnail)return(O=_.jf(O.thumbnail.thumbnails))?'background-image:url("'+O+'");':"background-color:black;"};
_.b.onPersistentPanelActiveChanged=function(){var O=this.getCurrentShort();if(O&&this.enableFormatFirst(O)&&(O==null?0:O.thumbnail)&&eWh(O.thumbnail)!==.5625){var x;(x=this.player)==null||x.setSize(NaN,NaN)}};
_.b.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.b.moveCinematicsToVideo=function(){var O=_.$U(this.hostElement).querySelector("ytd-reel-video-renderer");(O==null?0:O.cinematicContainer)&&O.cinematicContainer!==this.shortsCinematicContainer.parentElement&&O.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.b.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.b.updatePrevButtonData=function(){var O=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(O){var x;this.prevButtonData=O=Object.assign({},O,{accessibility:{label:_.CZ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:O.isDisabled||this.index===-(((x=this.shortsProcessedPrevSequence)==null?void 0:x.length)||0),tooltip:this.isUpArrowHidden?"":_.CZ("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=O=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.b.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.b.updateNextButtonData=function(){var O=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(O){var x;this.nextButtonData=O=Object.assign({},O,{accessibility:{label:_.CZ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:O.isDisabled||this.index===((x=this.shortsProcessedSequence)==null?void 0:x.length),tooltip:_.CZ("NEXT_VIDEO_LABEL")||""})}};
_.b.getPlayablePreviousIndex=function(){for(var O,x=this.index-1;x>=-(((O=this.prevShortsSequence)==null?void 0:O.length)||0);x--)if(!DqS().includes(x))return x;return null};
_.b.getIndexInSequence=function(O,x){return O.findIndex(function(e){var l;return((l=_.q(e.command,_.kU))==null?void 0:l.videoId)===x})};
_.b.handlePrevButtonClick=function(O){var x=this,e,l;return _.A(function(C){e=x.getPlayablePreviousIndex();if(e===null)return C.return();x.gestureType=((l=O)==null?void 0:l.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";e===0&&(x.hidePreviousButtonImmediately=!0);if(x.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){x.transitionToVideoThrottle.fire(e)}),C.return();
x.scrollToVideoThrottle.fire(e);_.Ra(C)})};
_.b.getPlayableNextIndex=function(){for(var O,x=this.index+1;x<(((O=this.shortsProcessedSequence)==null?void 0:O.length)||0);x++)if(!DqS().includes(x))return x;return null};
_.b.handleNextButtonClick=function(O,x){var e=this,l,C;return _.A(function(Q){l=e.getPlayableNextIndex();if(l===null)return Q.return();l===1&&(e.showPreviousButtonImmediately=!0);e.gestureType=((C=O)==null?void 0:C.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";x&&(e.gestureType=x);if(e.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){e.transitionToVideoThrottle.fire(l)}),Q.return();
e.scrollToVideoThrottle.fire(l);_.Ra(Q)})};
_.b.handleReelNavigateCommand=function(O,x,e){(O=_.q(O,VZ7))&&x&&O.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(e)};
_.b.loadVideo=function(O,x){x=x===void 0?!1:x;if(O!==this.currentPlayerIndex){_.u9().dispatch(o8I(!1));if(this.isAd()&&!x){var e;(e=this.player)==null||e.notifyShortsAdSwipeEvent()}if((x=this.JSC$22600_cinematicController)!=null){var l;(l=x.currentCinematicEffect)==null||l.pause()}if((l=this.JSC$22600_cinematicController)!=null){var C;(C=l.currentCinematicEffect)==null||C.clear()}l=O>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(l));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var Q,L,k,M;C=O<0?(Q=this.shortsProcessedPrevSequence)==null?void 0:(L=Q[this.shortsProcessedPrevSequence.length+O])==null?void 0:L.command:(k=this.shortsProcessedSequence)==null?void 0:(M=k[O])==null?void 0:M.command;this.index=O;this.gestureType||(this.gestureType=l?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");C&&this.isVideoContentCommand(C)&&(this.ytComponentBehavior.resolveCommand(C,{form:{createScreenConfig:{clickedVisualElement:l?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(C&&this.isNonVideoContentCommand(C)){this.currentEndpoint=C;this.data=void 0;Q=_.k0();L=_.q(C,_.fY);var G,X;(L=(G=_.q(L==null?void 0:L.renderer,_.rcd))==null?void 0:(X=G.screenLoggingData)==null?void 0:X.screenVeType)&&_.tx(Q,
L);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(G=this.getActiveReelVideo(O))&&G.appendChild(this.overlayContainer)}var y,Z;if(((y=this.reelWatchSequenceResponse)==null?0:y.continuationEndpoint)&&((Z=this.reelWatchSequenceResponse)==null?0:Z.entries)&&O===this.reelWatchSequenceResponse.entries.length-1){var E,P;y={contentPlaybackContext:_.DE({},(P=_.q((E=this.currentEndpoint)==null?void 0:E.commandMetadata,_.e6))==null?void 0:P.url,window.location.href)};
this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:y})}var U,W,z;((U=this.reelWatchSequenceResponse)==null?0:U.prevContinuationEndpoint)&&O===-(((W=this.reelWatchSequenceResponse)==null?void 0:(z=W.prevEntries)==null?void 0:z.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.b.setMiniplayerPreview=function(O){O=(O===void 0?0:O)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var x,e,l=_.GG().resolve(_.Vs),C={shortsData:void 0,shortsPreviewThumbnail:O?(x=this.shortsProcessedSequence)==null?void 0:(e=x[O])==null?void 0:e.thumbnail:void 0};_.AV(l,C)};
_.b.updateTitle=function(O){var x,e;O=(O==null?0:O.adSlots)?"":(e=O==null?void 0:(x=O.videoDetails)==null?void 0:x.title)!=null?e:"";_.wr(this.hostElement,"yt-update-title",O)};
_.b.registerPanel=function(O){var x=_.GG().resolve(_.Bm);if(x){O=_.T(O.engagementPanels||[]);for(var e=O.next();!e.done;e=O.next()){e=e.value;var l=this.getPanelContentIdentifier(e.engagementPanelSectionListRenderer),C=void 0,Q=void 0;(Q=(C=x).registerPanelContent)==null||Q.call(C,l,e)}}};
_.b.getPanelIdentifier=function(O){var x;return(O==null?void 0:(x=O.identifier)==null?void 0:x.tag)||(O==null?void 0:O.panelIdentifier)||(O==null?void 0:O.targetId)};
_.b.getPanelContentIdentifier=function(O){var x;return(O==null?void 0:O.targetId)||(O==null?void 0:O.panelIdentifier)||(O==null?void 0:(x=O.identifier)==null?void 0:x.tag)};
_.b.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;_.u9().dispatch(o8I(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.u9().dispatch(Fya(!1));var O=_.GG().resolve(_.Wr);O.dismissedIndices=[];O.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.GG().resolve(_.Vs).close(!0)};
_.b.processAppendReelWatchSequenceContinuationEntriesAction=function(O){var x=this,e;(e=this.intersectionObserver)==null||e.disconnect();O=O.appendReelWatchSequenceContinuationEntriesAction;if(O==null?0:O.entries){var l;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Kx(((l=this.reelWatchSequenceResponse)==null?void 0:l.entries)||[]),_.Kx(O.entries)),continuationEndpoint:O.continuationEndpoint})}else if(O==null?0:O.prevEntries){var C;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Kx(((C=this.reelWatchSequenceResponse)==null?void 0:C.prevEntries)||[]),_.Kx(O.prevEntries)),prevContinuationEndpoint:O.prevContinuationEndpoint});_.vn.addLowPriorityJob(function(){x.movePlayerToVideo(x.index);var Q;(Q=x.getActiveReelVideo(x.index))==null||Q.scrollIntoView({block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.vn.addLowPriorityJob(function(){x.observeShorts()},100)};
_.b.processWatchSequence=function(O){var x=this;return O.map(function(e){e=e.command;if(x.isVideoContentCommand(e)){var l=_.q(e,_.kU);return{reelPlayerOverlayRenderer:_.q(l==null?void 0:l.overlay,_.HdF),thumbnail:l.thumbnail,command:e}}return x.isNonVideoContentCommand(e)?(l=_.q(e,_.fY),{reelNonVideoContentRenderer:_.q(l==null?void 0:l.renderer,_.rcd),command:e}):{command:e}})};
_.b.calculateIntersectionObserverThreshold=function(){var O=_.$U(this.hostElement).querySelector("ytd-reel-video-renderer"),x=1;(O==null?0:O.offsetHeight)&&(O==null?0:O.offsetWidth)&&(x=Math.min(O.offsetHeight,this.shortsContainer.offsetHeight)/O.offsetHeight*(Math.min(O.offsetWidth,this.shortsContainer.offsetWidth)/O.offsetWidth));return Math.round(x*.6*10)/10};
_.b.isVideoContentCommand=function(O){_.GG().resolve(_.Wr);return!!_.q(O,_.kU)};
_.b.isNonVideoContentCommand=function(O){_.GG().resolve(_.Wr);return!!_.q(O,_.fY)};
_.b.initCinematicController=function(){var O=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22600_cinematicController=new _.PJ(this.shortsCinematicContainer,this.player);var x,e=_.q((x=this.data)==null?void 0:x.background,_.l5);_.jnk(this.JSC$22600_cinematicController,e);_.Sdk(this.JSC$22600_cinematicController,OfU(e));_.wXz(this.JSC$22600_cinematicController);_.vn.addLowPriorityJob(function(){O.moveCinematicsToVideo()})}};
_.b.handleMiniplayerNavigateShorts=function(O){O==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():O==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.b.handleSignalActionToggleShortsPictureInPicture=function(){if(_.GG().resolve(_.Vs).pictureInPictureSupported()){var O=_.GG().resolve(_.Wr);if(_.t("web_shorts_pip")){var x=_.GG().resolve(_.Vs);O.isShortsPipActive()?x.deactivate():x.isMiniplayerActive()||(_.U7().shortsPipActivation=!0,_.hx4(x))}}else(O=this.player)==null||O.togglePictureInPicture()};
_.Dy.Object.defineProperties(s6.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.reelWatchSequenceResponse)!=null&&O.prevEntries)return this.processWatchSequence([].concat(_.Kx(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.t("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.Kx(this.prevShortsSequence));var O=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!O)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var x=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Kx(this.prevShortsSequence.slice(0,x)),[O],_.Kx(this.prevShortsSequence.slice(x+1)))}x=this.index+this.shortsProcessedPrevSequence.length;O.thumbnail=this.shortsProcessedPrevSequence[x].thumbnail;return[].concat(_.Kx(this.shortsProcessedPrevSequence.slice(0,x)),[O],_.Kx(this.shortsProcessedPrevSequence.slice(x+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.reelWatchSequenceResponse)!=null&&O.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var O=this;if(_.t("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var x;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((x=this.shortsProcessedSequence)==null?void 0:x.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var e,l=_.q((e=this.firstShortsData)==null?void 0:e.command,_.kU);if(l==null||!l.videoId)return this.shortsProcessedSequence;
l=this.getIndexInSequence(this.shortsSequence,l.videoId);if(l!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=l,_.vn.addLowPriorityJob(function(){O.transitionToVideoThrottle.fire(O.index);O.movePlayerToVideo(O.index)}));
return[].concat(_.Kx(this.shortsSequence))}return[this.firstShortsData].concat(_.Kx(this.shortsSequence))}}else if(this.data||this.shortsSequence){e=this.getCurrentShort();if(!e||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[e];if(e==null||!e.reelNonVideoContentRenderer)if(x=this.getIndexInSequence(this.shortsSequence,_.q(this.currentEndpoint,_.kU).videoId),this.index===0&&x!==-1)return this.currentPlayerIndex=this.index=x,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.Kx(this.shortsSequence.slice(0,this.index)),[e],_.Kx(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){e.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var C,Q,L;x=((C=_.q((l=this.shortsProcessedSequence[0])==null?void 0:l.command,_.kU))==null?void 0:C.videoId)===((L=_.q((Q=this.shortsSequence[0])==null?void 0:Q.command,_.kU))==null?void 0:L.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Kx(this.shortsProcessedSequence.slice(0,
this.index)),[e],_.Kx(this.shortsSequence.slice(x)))}return[e].concat(_.Kx(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var O=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;O&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(O)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 O,x;return this.index===((O=this.reelWatchSequenceResponse)==null?void 0:(x=O.entries)==null?void 0:x.length)}var e;return!((e=this.reelWatchSequenceResponse)==null?0:e.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var O;(O=this.delayedActiveIndexUpdateDebouncer)==null||O.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return this.isShortPlayable()||((x=_.q((O=this.data)==null?void 0:O.watchStatus,_.Jcp))==null?void 0:(e=x.style)==null?void 0:e.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var O=this,x=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),e;if((this.data||x)&&(((e=this.data)==null?0:e.engagementPanels)||this.isAd()||x)){x=!1;this.activePanel="shorts-comments-panel";var l;e=_.T(((l=this.data)==null?void 0:l.engagementPanels)||[]);for(l=e.next();!l.done;l=e.next())if(this.getPanelIdentifier(l.value.engagementPanelSectionListRenderer)===this.activePanel){x=!0;break}if(this.isPersistentPanelActive){var C=
_.GG().resolve(_.Bm);_.zl(_.vn,function(){C.showPanel({identifier:O.activePanel,target:null})},100)}var Q;
l=[].concat(_.Kx(Object.values(((Q=this.data)==null?void 0:Q.engagementPanels)||{})));if(_.t("enable_preview_panel_for_shorts_search_suggested_action")){var L,k,M,G,X;((G=_.q((L=this.data)==null?void 0:(k=L.overlay)==null?void 0:(M=k.reelPlayerOverlayRenderer)==null?void 0:M.metapanel,_.zVk))==null?void 0:(X=G.metadataItems)==null?void 0:X.find(function(y){var Z,E;return((Z=_.q(y,Uq7))==null?void 0:(E=Z.icon)==null?void 0:E.iconType)==="SEARCH"}))!==void 0&&l.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}Q=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);L=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return Q===void 0&&L===void 0||(Q==null?0:Q.isDisabled)||(L==null?void 0:L.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!x?(x=l==null?void 0:l.findIndex(function(y){var Z,
E;return((Z=y.engagementPanelSectionListRenderer)==null?void 0:(E=Z.identifier)==null?void 0:E.tag)==="shorts-comments-panel"}),x===-1||x===void 0||l!=null&&l.splice(x,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.CZ("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.CZ("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:_.CZ("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.CZ("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(_.Kx(Object.values(l||
{})))):l}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.shortsProcessedSequence)==null?void 0:O[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var O=this,x,e,l;if((x=this.playerData)==null?0:(e=x.playabilityStatus)==null?0:(l=e.errorScreen)==null?0:l.playerInterstitialRenderer)return _.vn.addLowPriorityJob(function(){O.movePlayerToVideo(O.index)}),this.playerData.playabilityStatus.errorScreen;
var C,Q;return((C=this.data)==null?void 0:C.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((Q=this.data)==null?0:Q.watchStatus)&&_.q(this.data.watchStatus,_.DsR)?(_.vn.addLowPriorityJob(function(){O.movePlayerToVideo(O.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Dy.Object.defineProperties(s6,{template:{configurable:!0,enumerable:!0,get:function(){if(s9S===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);s9S=O}O=s9S;return O}}});
s6.prototype.onNextButtonDataChange=s6.prototype.onNextButtonDataChange;s6.prototype.onPrevButtonDataChange=s6.prototype.onPrevButtonDataChange;s6.prototype.onPersistentPanelActiveChanged=s6.prototype.onPersistentPanelActiveChanged;s6.prototype.lazyUpdateMiniplayerData=s6.prototype.lazyUpdateMiniplayerData;s6.prototype.onShortsPipActiveChanged=s6.prototype.onShortsPipActiveChanged;s6.prototype.setActiveIndex=s6.prototype.setActiveIndex;s6.prototype.graftNvcRenderer=s6.prototype.graftNvcRenderer;
s6.prototype.graftClientVisualElements=s6.prototype.graftClientVisualElements;s6.prototype.onActiveChanged=s6.prototype.onActiveChanged;s6.prototype.onShortsDismiss=s6.prototype.onShortsDismiss;s6.prototype.onShortUndoDismiss=s6.prototype.onShortUndoDismiss;s6.prototype.playerDataChanged=s6.prototype.playerDataChanged;s6.prototype.afterPlayerStarted=s6.prototype.afterPlayerStarted;s6.prototype.updateReelWatchSequenceResponse=s6.prototype.updateReelWatchSequenceResponse;
s6.prototype.unhideCurrentOverlay=s6.prototype.unhideCurrentOverlay;s6.prototype.onServiceRequestCompleted=s6.prototype.onServiceRequestCompleted;s6.prototype.engagementPanelsChanged=s6.prototype.engagementPanelsChanged;s6.prototype.onFullscreenChange=s6.prototype.onFullscreenChange;s6.prototype.onResize=s6.prototype.onResize;s6.prototype.setFirstShortsData=s6.prototype.setFirstShortsData;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.b5.YtPageBehavior),_.v("design:type",Object)],s6.prototype,"ytPageBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],s6.prototype,"ironResizableBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],s6.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],s6.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],s6.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"playerData",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"reelWatchSequenceResponse",void 0);
_.B([_.R(),_.v("design:type",Object)],s6.prototype,"cachedReelWatchSequenceResponse",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"cachedSequenceParams",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"cachedSequenceProvider",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"currentEndpoint",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"nextButtonData",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"prevButtonData",void 0);
_.B([_.R(),_.v("design:type",Object)],s6.prototype,"isPreviousPageShorts",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"index",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"delayedActiveIndex",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"playablePreviousIndex",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"player",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"isPlayerPaused",void 0);
_.B([_.R({selector:CPh}),_.v("design:type",Object)],s6.prototype,"isPlayerStarted",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"intersectionObserver",void 0);_.B([_.R(),_.v("design:type",Number)],s6.prototype,"cinematicsInitializeJobId",void 0);_.B([_.R(),_.v("design:type",Number)],s6.prototype,"updateMiniplayerDataJobId",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"fitToVisibleBounds",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"pageSubtype",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],s6.prototype,"enablePreviousContinuation",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"shortsPipEnabled",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"isDark",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"shortsViewTransitions",void 0);
_.B([_.R({selector:_.f5,reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"isFullscreen",void 0);_.B([_.R({selector:_.JA,reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"isShortsPipActive",void 0);_.B([_.kX("#shorts-inner-container"),_.v("design:type",HTMLElement)],s6.prototype,"shortsInnerContainer",void 0);_.B([_.kX("#back-nav-button ytd-button-renderer"),_.v("design:type",_.oe)],s6.prototype,"backNavButton",void 0);
_.B([_.kX("#shorts-container"),_.v("design:type",HTMLElement)],s6.prototype,"shortsContainer",void 0);_.B([_.ri("error-screen"),_.v("design:type",HTMLElement)],s6.prototype,"errorScreenContainer",void 0);_.B([_.ri("player"),_.v("design:type",Object)],s6.prototype,"playerElement",void 0);_.B([_.ri("shorts-cinematic-container"),_.v("design:type",HTMLElement)],s6.prototype,"shortsCinematicContainer",void 0);
_.B([_.ri("initial-player-container"),_.v("design:type",HTMLElement)],s6.prototype,"initialPlayerContainer",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"buttonOverride",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"anchoredPanelActive",void 0);_.B([_.R(),_.v("design:type",String)],s6.prototype,"activePanel",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"isActive",void 0);
_.B([_.R({selector:ldH,reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"smallScreenPersistentPanel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"isPersistentPanelActive",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"smallScreenSqueezeBack",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"enableScrollIntoViewCenter",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"formatFirst",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"enableFlexibleOverlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"extractOverlay",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],s6.prototype,"useAspectRatio",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"panelContainer",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"overlayContainer",void 0);
_.B([_.R(),_.v("design:type",Object)],s6.prototype,"isShortsInitialized",void 0);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"firstShortsData",void 0);_.B([_.p("reelWatchSequenceResponse"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"prevShortsSequence",null);_.B([_.p("data","prevShortsSequence"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"shortsProcessedPrevSequence",null);
_.B([_.p("reelWatchSequenceResponse"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"shortsSequence",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"setFirstShortsData",null);_.B([_.p("data","shortsSequence","firstShortsData"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"shortsProcessedSequence",null);
_.B([_.R({reflectToAttribute:!0}),_.p("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],s6.prototype,"isUpArrowHidden",null);_.B([_.R({reflectToAttribute:!0}),_.p("reelWatchSequenceResponse","index","endOfNextContinuation"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],s6.prototype,"isDownArrowHidden",null);
_.B([_.R(),_.p("index"),_.v("design:type",Number),_.v("design:paramtypes",[])],s6.prototype,"activeIndex",null);_.B([_.p("isShortPlayable","data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],s6.prototype,"shouldRenderOfflineContent",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onResize",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"anchoredEngagementPanels",null);
_.B([_.R(),_.v("design:type",Object)],s6.prototype,"watchWhileEngagementPanels",void 0);_.B([_.T1("isFullscreen"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onFullscreenChange",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"engagementPanelsChanged",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],s6.prototype,"onServiceRequestCompleted",null);_.B([_.p("data","shortsSequence","index"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"activeReel",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"unhideCurrentOverlay",null);
_.B([_.T1("currentEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"updateReelWatchSequenceResponse",null);_.B([_.T1("isPlayerStarted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"afterPlayerStarted",null);_.B([_.p("playerData","reelWatchSequenceResponse","data"),_.v("design:type",Object),_.v("design:paramtypes",[])],s6.prototype,"errorScreen",null);
_.B([_.p("errorScreen"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],s6.prototype,"hasError",null);_.B([_.T1("playerData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],s6.prototype,"playerDataChanged",null);_.B([_.bH("yt-dismissible-item-undo-feedback"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onShortUndoDismiss",null);
_.B([_.bH("yt-disable-lockup-interaction"),_.v("design:type",Function),_.v("design:paramtypes",[Object]),_.v("design:returntype")],s6.prototype,"onShortsDismiss",null);_.B([_.G1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onActiveChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"graftClientVisualElements",null);
_.B([_.T1("currentPlayerIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"graftNvcRenderer",null);_.B([_.T1("index"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"setActiveIndex",null);_.B([_.T1("isShortsPipActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onShortsPipActiveChanged",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"lazyUpdateMiniplayerData",null);_.B([_.R(),_.v("design:type",Object)],s6.prototype,"onOverlayDensityChanged",void 0);_.B([_.T1("isPersistentPanelActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onPersistentPanelActiveChanged",null);
_.B([_.T1("index","data","isUpArrowHidden"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onPrevButtonDataChange",null);_.B([_.T1("index","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s6.prototype,"onNextButtonDataChange",null);_.B([_.H({is:"ytd-shorts"})],s6);_.cr.registerService(_.Num,s6);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("JzFVk");
var Sro;var jas;var ei=function(){return _.a.apply(this,arguments)||this};
_.c(ei,_.a);ei.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ei.prototype.computeBlueBottomLink=function(O){return O};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ei.prototype,"data",void 0);_.B([_.R({computed:"computeIcon_(data.bottomIcon)"}),_.v("design:type",String)],ei.prototype,"bottomIcon",void 0);
_.B([_.R({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.v("design:type",Boolean)],ei.prototype,"enableBlueBottomLink",void 0);_.B([_.H({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],ei);
_.n(ei,"ytd-web-answer-renderer",function(){if(jas!==void 0)return jas;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jas=O},{mode:_.gq("kevlar_poly_si_batch_j035")?1:2});var NXa;var l0=function(){var O=_.a.apply(this,arguments)||this;O.hasChipBar=!1;return O};
_.c(l0,_.a);l0.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}}};
l0.prototype.computeHasChipBar=function(O){return!(O==null||!O.chipBar)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],l0.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.v("design:type",Object)],l0.prototype,"hasChipBar",void 0);_.B([_.H({is:"ytd-search-header-renderer",disableElementRegistration:!0})],l0);
_.n(l0,"ytd-search-header-renderer",function(){if(NXa!==void 0)return NXa;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return NXa=O},{mode:1});var gSh;var Cq=function(){return _.a.apply(this,arguments)||this};
_.c(Cq,_.a);Cq.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Cq.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-page-continuation"})],Cq);
_.n(Cq,"ytd-page-continuation",function(){if(gSh!==void 0)return gSh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gSh=O},{mode:1});var $xa;var ixk;var Ouk;var xME=function(){return _.a.apply(this,arguments)||this};
_.c(xME,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],xME.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xME.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],xME);
_.n(xME,"ytd-watch-card-one-vs-one-event",function(){if(Ouk!==void 0)return Ouk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Ouk=O},{mode:1});var eQc=function(){return _.a.apply(this,arguments)||this};
_.c(eQc,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eQc.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eQc.prototype,"data",void 0);_.B([_.H({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],eQc);
_.n(eQc,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(ixk!==void 0)return ixk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ixk=O},{mode:1});var lus;var Ctc=function(){return _.a.apply(this,arguments)||this};
_.c(Ctc,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ctc.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ctc.prototype,"data",void 0);_.B([_.H({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Ctc);
_.n(Ctc,"ytd-banner-and-box-hero-image-renderer",function(){if(lus!==void 0)return lus;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return lus=O},{mode:1});var Qna;var Qx=function(){var O=_.a.apply(this,arguments)||this;O.modern=_.t("web_modern_buttons");return O};
_.c(Qx,_.a);Qx.prototype.computeIcon=function(){var O,x,e=(O=this.data)==null?void 0:(x=O.icon)==null?void 0:x.iconType;if(e)return _.x0(e)};
Qx.prototype.computeButtonShape=function(){var O;return{buttonText:_.db((O=this.data)==null?void 0:O.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Dy.Object.defineProperties(Qx.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"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Qx.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Qx.prototype,"modern",void 0);_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.style"),_.v("design:type",Object),_.v("design:paramtypes",[])],Qx.prototype,"buttonColor",null);
_.B([_.H({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Qx);
_.n(Qx,"ytd-call-to-action-button-renderer",function(){if(Qna!==void 0)return Qna;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Qna=O},{mode:1});var buc;var b0=function(){return _.a.apply(this,arguments)||this};
_.c(b0,_.a);b0.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.$U(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Sf(this.data.leftThumbnail.thumbnails,216)+")")};
b0.prototype.onLeftThumbnailChanged=b0.prototype.onLeftThumbnailChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],b0.prototype,"data",void 0);_.B([_.T1("data.leftThumbnail"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],b0.prototype,"onLeftThumbnailChanged",null);_.B([_.H({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],b0);
_.n(b0,"ytd-collage-hero-image-renderer",function(){if(buc!==void 0)return buc;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return buc=O},{mode:1});var Tc7;var TR=function(){return _.a.apply(this,arguments)||this};
_.c(TR,_.a);TR.prototype.computeStyle=function(O){return O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],TR.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.v("design:type",String)],TR.prototype,"componentStyle",void 0);_.B([_.H({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],TR);
_.n(TR,"ytd-single-hero-image-renderer",function(){if(Tc7!==void 0)return Tc7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Tc7=O},{mode:1});var LOE;var Lq=function(){return _.a.apply(this,arguments)||this};
_.c(Lq,_.a);_.b=Lq.prototype;
_.b.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:_.t("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.b.computeSubtitle=function(O){if(this.data){var x;if(this.data.upcomingEventData){O=_.db(O.subtitle);var e=Number(this.data.upcomingEventData.startTime);isNaN(e)||(x=_.KA(_.XQ(O,e)))}else x=O.subtitle;return x}};
_.b.onHeroTap=function(O){O.preventDefault();var x=this.data&&this.data.navigationEndpoint;!x||!_.uk(_.n3(O),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.uk(_.n3(O),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.t("kevlar_watchcard_hero_video_renderer_killswitch")?_.wr(this.hostElement,"yt-navigate",{navigationEndpoint:x}):this.ytComponentBehavior.resolveCommand(x))};
_.b.computeHeroTabIndex=function(O){return O&&O.simpleText?-1:0};
_.b.computeHeroRole=function(O){return O&&O.simpleText?"":"link"};
_.b.computeIsReminderButtonPresent=function(O){return!(!O||!O.reminderButton)};
_.b.computeHideBottomItems=function(O){return!(this.computeIsReminderButtonPresent(O)||O.subtitle)};
_.b.dataChanged=function(){var O=this.get("data.buttons.buttonRenderer.serviceEndpoint"),x;((x=_.q(O==null?void 0:O.commandMetadata,_.m5))==null?0:x.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(O)};
Lq.prototype.dataChanged=Lq.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Lq.prototype,"data",void 0);
_.B([_.R({computed:"computeSubtitle(data)"}),_.v("design:type",String)],Lq.prototype,"subtitle",void 0);_.B([_.R({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Lq.prototype,"isReminderButtonPresent",void 0);_.B([_.R({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],Lq.prototype,"hideBottomItems",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Lq.prototype,"dataChanged",null);_.B([_.H({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Lq);
_.n(Lq,"ytd-watch-card-hero-video-renderer",function(){if(LOE!==void 0)return LOE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return LOE=O},{mode:1});var kJT;var k1=function(){return _.a.apply(this,arguments)||this};
_.c(k1,_.a);_.b=k1.prototype;_.b.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"}}}};
_.b.computeTitleBadges=function(O){return O?[O]:[]};
_.b.computeHeaderStyle=function(O){return O?O.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.b.computeAvatarAriaLabel=function(O){if(O){var x,e,l,C;return(C=(x=O.avatar)==null?void 0:(e=x.accessibility)==null?void 0:(l=e.accessibilityData)==null?void 0:l.label)!=null?C:_.db(O==null?void 0:O.title)}};
_.b.computeAvatarHeight=function(O){return O==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.b.computeBadgeRowClass=function(O){return(O==null?0:O[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],k1.prototype,"data",void 0);_.B([_.R({computed:"computeTitleBadges(data.titleBadge)"}),_.v("design:type",Array)],k1.prototype,"titleBadges",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.v("design:type",String)],k1.prototype,"headerStyle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.v("design:type",String)],k1.prototype,"badgeRowClass",void 0);_.B([_.H({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],k1);
_.n(k1,"ytd-watch-card-rich-header-renderer",function(){if(kJT!==void 0)return kJT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kJT=O},{mode:1});var Ajz;var MNT;var Av=function(){return _.a.apply(this,arguments)||this};
_.c(Av,_.a);Av.prototype.onMetadataTap=function(O){var x=this.data&&this.data.navigationEndpoint;x&&!_.uk(_.n3(O),this.hostElement,["A".toString()])&&_.wr(this.hostElement,"yt-navigate",{endpoint:x})};
_.Dy.Object.defineProperties(Av.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 O;if(this.data.upcomingEventData){var x=_.db(this.data.subtitle),e=Number(this.data.upcomingEventData.startTime);isNaN(e)||(O=_.KA(_.XQ(x,e)))}else O=this.data.subtitle;return O}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Av.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data.style"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Av.prototype,"isCondensed",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Av.prototype,"subtitle",null);
_.B([_.H({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Av);
_.n(Av,"ytd-watch-card-compact-video-renderer",function(){if(MNT!==void 0)return MNT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return MNT=O},{mode:1});var DMk;var GJT=function(){return _.a.apply(this,arguments)||this};
_.c(GJT,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GJT.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],GJT.prototype,"data",void 0);_.B([_.H({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],GJT);
_.n(GJT,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(DMk!==void 0)return DMk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return DMk=O},{mode:1});var MH=function(){return _.a.apply(this,arguments)||this};
_.c(MH,_.a);MH.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}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],MH.prototype,"ytRendererStamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],MH.prototype,"data",void 0);_.B([_.H({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],MH);
_.n(MH,"ytd-vertical-watch-card-list-renderer",function(){if(Ajz!==void 0)return Ajz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Ajz=O},{mode:1});var FOU;var D4=function(){var O=_.a.apply(this,arguments)||this;O.ariaExpanded="false";return O};
_.c(D4,_.a);_.b=D4.prototype;_.b.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.b.dataChanged=function(){var O;this.currentSeasonIndex=((O=this.data)==null?void 0:O.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.b.computeEpisodesInfo=function(O,x,e){if(O!==void 0&&x.length===O.length)return O[e]};
_.b.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.b.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.b.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.b.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.b.getUppercaseSimpleString=function(O){return this.ytRendererBehavior.getSimpleString(O).toUpperCase()};
_.b.updateCurrentSeasonIndexFromBinding=function(O){this.currentSeasonIndex=O.detail.value};
D4.prototype.onIronOverlayClosed=D4.prototype.onIronOverlayClosed;D4.prototype.currentSeasonIndexChanged=D4.prototype.currentSeasonIndexChanged;D4.prototype.dataChanged=D4.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],D4.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",String)],D4.prototype,"label",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],D4.prototype,"currentSeasonIndex",void 0);_.B([_.R({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.v("design:type",Object)],D4.prototype,"episodesInfo",void 0);_.B([_.R({value:"false"}),_.v("design:type",Object)],D4.prototype,"ariaExpanded",void 0);_.B([_.kX("#lists"),_.v("design:type",Object)],D4.prototype,"lists",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D4.prototype,"dataChanged",null);_.B([_.G1("currentSeasonIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],D4.prototype,"currentSeasonIndexChanged",null);_.B([_.bH("iron-overlay-closed"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],D4.prototype,"onIronOverlayClosed",null);
_.B([_.H({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],D4);
_.n(D4,"ytd-watch-card-section-dropdown-renderer",function(){if(FOU!==void 0)return FOU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return FOU=O},{mode:1});var XXa;var GR=function(){var O=_.a.apply(this,arguments)||this;O.isSearch=!1;return O};
_.c(GR,_.a);GR.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}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],GR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],GR.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],GR.prototype,"isSearch",void 0);_.B([_.H({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],GR);
_.n(GR,"ytd-watch-card-section-sequence-renderer",function(){if(XXa!==void 0)return XXa;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return XXa=O},{mode:1});var oGh=_.K(function(O){return _.D("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.D(_.MR,{data:function(){return O.data().ctaButton}},{buttonViewModel:_.RV}),_.D(_.TT,{text:function(){return O.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Qm");
oGh.idomCompat=!0;_.wP(oGh,"ytd-button-banner-view-model",{props:{data:_.Ld}});var Fg=function(){var O=_.a.apply(this,arguments)||this;O.isSearch=!1;return O};
_.c(Fg,_.a);
Fg.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"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Fg.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],Fg.prototype,"rounded",void 0);_.B([_.R(),_.v("design:type",Object)],Fg.prototype,"isSearch",void 0);
_.B([_.H({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Fg);
_.n(Fg,"ytd-universal-watch-card-renderer",function(){if($xa!==void 0)return $xa;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $xa=O},{mode:1});var yjc;_.wP(_.K(function(O){var x=O.data;var e;O=!((e=_.GG().resolve(_.D0(_.rP)))==null||!e());e={};return _.D("overview-message-view-model",{class:_.xz("ytwOverviewMessageViewModelHost",(e.ytwOverviewMessageViewModelDarkBackground=O,e.ytwOverviewMessageViewModelLightBackground=!O,e))},_.D(_.F,{cond:function(){return x().primaryImage},
then:function(l){return _.D(_.n_,{data:l,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.D(_.F,{cond:function(){return x().primaryText},
then:function(){return _.D("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.D(_.TT,{text:function(){return x().primaryText}}))}}),_.D(_.F,{cond:function(){return x().secondaryText},
then:function(){return _.D("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.D(_.TT,{text:function(){return x().secondaryText}}))}}))},"Rm"),"overview-message-view-model",{props:{data:_.Ld}});_.wP(_.T7X,"ytd-overview-answer-view-model",{props:{data:_.Ld}});var Xg=function(){return _.a.apply(this,arguments)||this};
_.c(Xg,_.a);Xg.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"}}}};
Xg.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],Xg.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Xg.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],Xg.prototype,"isSearch",void 0);
_.B([_.H({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Xg);
_.n(Xg,"ytd-secondary-search-container-renderer",function(){if(yjc!==void 0)return yjc;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return yjc=O},{mode:1});var ZuU;var oh=function(){var O=_.a.apply(this,arguments)||this;O.renderSecondarySearchContainer=!1;O.isSearch=!1;return O};
_.c(oh,_.a);_.b=oh.prototype;_.b.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"}}}};
_.b.created=function(){var O=this;this.boundStampSecondarySearchContainerIfFits=function(){O.stampSecondarySearchContainerIfFits()};
_.JZ("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.b.computeIsSearchFrictionPage=function(O){var x,e,l,C,Q;O=O==null?void 0:(x=O.primaryContents)==null?void 0:(e=x.sectionListRenderer)==null?void 0:(l=e.contents)==null?void 0:(C=l[0])==null?void 0:(Q=C.itemSectionRenderer)==null?void 0:Q.contents;if(!O)return!1;x=_.T(O);for(e=x.next();!e.done;e=x.next())if(l=void 0,(l=e.value)==null?0:l.searchFrictionViewModel)return!0;return!1};
_.b.computeShowSecondaryColumn=function(O,x){return!!(x&&x.secondaryContents&&O)};
_.b.activeChanged=function(){var O=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Qa(this,this.debounceStampSecondarySearchContainerIfFits)),_.WZ(function(){O.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Qa(this,this.debounceStampSecondarySearchContainerIfFits))};
_.b.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.b.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.b.debounceStampSecondarySearchContainerIfFits=function(){_.hY(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.b.onRetrieveLocation=function(O,x){x.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);O.stopPropagation()};
_.b.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
oh.prototype.dataChanged=oh.prototype.dataChanged;oh.prototype.onRetrieveLocation=oh.prototype.onRetrieveLocation;oh.prototype.persistentGuideChanged=oh.prototype.persistentGuideChanged;oh.prototype.activeChanged=oh.prototype.activeChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],oh.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],oh.prototype,"ironResizableBehavior",void 0);_.B([_.R(),_.v("design:type",Boolean)],oh.prototype,"active",void 0);_.B([_.R(),_.v("design:type",Object)],oh.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.t("enable_desktop_search_bigger_thumbs")}}),
_.v("design:type",Boolean)],oh.prototype,"useBiggerThumbs",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.Z0("desktop_search_bigger_thumbs_style")}}),
_.v("design:type",String)],oh.prototype,"biggerThumbsStyle",void 0);_.B([_.R(),_.v("design:type",Object)],oh.prototype,"renderSecondarySearchContainer",void 0);_.B([_.R({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.v("design:type",Boolean)],oh.prototype,"showSecondaryColumn",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.v("design:type",Boolean)],oh.prototype,"isSearchFrictionPage",void 0);
_.B([_.R(),_.v("design:type",Object)],oh.prototype,"isSearch",void 0);_.B([_.T1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oh.prototype,"activeChanged",null);_.B([_.T1("guidePersistentAndVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oh.prototype,"persistentGuideChanged",null);
_.B([_.bH("yt-retrieve-location"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],oh.prototype,"onRetrieveLocation",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oh.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],oh);
_.n(oh,"ytd-two-column-search-results-renderer",function(){if(ZuU!==void 0)return ZuU;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ZuU=O},{mode:1});var yx=function(){var O=_.a.apply(this,arguments)||this;O.hasSearchHeader=!1;O.hasSecondaryContent=!1;O.hasBiggerThumbs=_.t("enable_desktop_search_bigger_thumbs");O.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return O};
_.c(yx,_.a);_.b=yx.prototype;_.b.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:_.XB(["aa","eocs"])}}};
_.b.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.b.loadPage_=function(O){this.initCsi();O&&(this.data=O,_.JZ("REFINEMENTS_TUPLE",["FromSearchResponse",O.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.bU(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.b.initCsi=function(){_.OUa("results",["ol","cpt"])};
_.b.updateTitle=function(){var O=_.iP(window.location.href,"q");O||(O=_.iP(window.location.href,"search_query"));_.wr(this.hostElement,"yt-update-title",O||"")};
_.b.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.b.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.t("web_srp_data_changed_terminate_imp_killswitch")||_.Sh(this.hostElement,"yt-terminate-video-preview-action")};
_.b.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.b.computeHasSearchHeader=function(O){var x;O=O==null?void 0:(x=O.header)==null?void 0:x.searchHeaderRenderer;return!!O&&(!!O.searchFilterButton||!!O.chipBar)};
_.b.computeHasSecondaryContent=function(O){var x,e;return!!(O==null?0:(x=O.contents)==null?0:(e=x.twoColumnSearchResultsRenderer)==null?0:e.secondaryContents)};
_.Dy.Object.defineProperties(yx,{template:{configurable:!0,enumerable:!0,get:function(){if(Sro===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);Sro=O}O=Sro;return O}}});
yx.prototype.onReloadContinuationFinish=yx.prototype.onReloadContinuationFinish;yx.prototype.dataChanged=yx.prototype.dataChanged;_.B([_.V(_.b5.YtPageBehavior),_.v("design:type",Object)],yx.prototype,"ytPageBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],yx.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],yx.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yx.prototype,"data",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],yx.prototype,"monitorScroll",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yx.prototype,"hasSearchHeader",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yx.prototype,"hasSecondaryContent",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],yx.prototype,"hasBiggerThumbs",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yx.prototype,"dataChanged",null);
_.B([_.bH("yt-reload-continuation-finish"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yx.prototype,"onReloadContinuationFinish",null);_.B([_.H({is:"ytd-search"})],yx);_.cr.registerService(_.jIN,yx);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("h8y2qb");
var ezh=function(O){if(O=_.ThL(O)){var x;(x=O.sources)!=null&&x[0]?(x=_.ks$(O),x=x<1?"VERTICAL":x>1?"HORIZONTAL":"SQUARE"):x=void 0;return x}},Tm=function(O){_.q0.call(this,"upload");
this.opts.query=O},CIw=function(O,x){return _.D(lsU,{data:O,
onYtNavigate:x})},QSI=function(O,x){return _.xE(O.entities,"pageHeaderEntity",x)},Tkh=function(O,x){return O.map(function(e){if(e.tabRenderer)return bUE(e.tabRenderer);
if(e.expandableTabRenderer&&x){var l=e.expandableTabRenderer;return{customTabRenderable:function(){return x(l)}}}return{}})},bUE=function(O){return{identifier:O.tabIdentifier,
aTagConfig:_.Ux({innertubeCommand:O.endpoint,forceNewState:!0}),title:O.title,selected:O.selected,disabled:O.unselectable,icon:O.icon}},Loo=function(O){return _.j6({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:O})},kHk=function(O){if(!_.wS(document,"gtm-noscript")){var x=document.createElement("noscript");
x.id="gtm-noscript";x.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+O+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(x)}};_.fI(Tm,_.q0);Tm.prototype.JSC$10069_setLabel=function(O){Tm.superClass_.JSC$10069_setLabel.call(this,O);return this};
Tm.prototype.addUploadMetadata=function(O,x){Tm.superClass_.addUploadMetadata.call(this,O,x);return this};var A7I=function(O){if(O!=="youtubebanner"&&O!=="youtube-channel-banner")throw Error("Ho");Tm.call(this,O)};
_.c(A7I,Tm);A7I.prototype.JSC$10069_setLabel=function(O){Tm.prototype.JSC$10069_setLabel.call(this,O);return this};
A7I.prototype.addUploadMetadata=function(O,x){Tm.prototype.addUploadMetadata.call(this,O,x);return this};var MEh=[_.Wg,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(O){_.G0(O).path[0]!==this&&(this.resetLayout(),O.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var O=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Lp(this._layoutDebouncer,_.yG,O);_.kh(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var O=this;requestAnimationFrame(function(){O.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(O){this.resizerShouldNotify(O)&&this._notifyDescendant(O)},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 DTy=[_.HI3,{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(O,x){var e=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[O];if(!e)throw new ReferenceError(this._getUndefinedMsg(O));O=this._boundEffect(e,x||{});O.setUp();return O},
_effectsChanged:function(O,x,e){this._tearDownEffects();O&&e&&(O.split(" ").forEach(function(l){var C;l!==""&&((C=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[l])?this._effects.push(this._boundEffect(C,x[l])):console.warn(this._getUndefinedMsg(l)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(O,x){x=x||{};var e=parseFloat(x.startsAt||0),l=parseFloat(x.endsAt||1),C=l-e,Q=function(){};
l=e===0&&l===1?O.run:function(L,k){O.run.call(this,Math.max(0,(L-e)/C),k)};
return{setUp:O.setUp?O.setUp.bind(this,x):Q,run:O.run?l.bind(this):Q,tearDown:O.tearDown?O.tearDown.bind(this):Q}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(O){O.setUp()!==!1&&this._effectsRunFn.push(O.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(O){O.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(O,x){this._effectsRunFn&&this._effectsRunFn.forEach(function(e){e(O,x)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var O=this._clampedScrollTop;this._updateScrollState(O);this.threshold>0&&this._setThresholdTriggered(O>=this.threshold)}},
_getDOMRef:function(O){console.warn("_getDOMRef","`"+O+"` is undefined")},
_getUndefinedMsg:function(O){return"Scroll effect `"+O+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+O+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Io`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(O){var x={};O=parseFloat(O.scalar);x.background=this._getDOMRef("background");x.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");x.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");x.deltaBg=x.backgroundFrontLayer.offsetHeight-x.background.offsetHeight;x.deltaBg===0?(isNaN(O)&&(O=.8),x.deltaBg=(this._dHeight||0)*O):(isNaN(O)&&(O=
1),x.deltaBg*=O);this._fxParallaxBackground=x},
run:function(O){var x=this._fxParallaxBackground;this.transform("translate3d(0px, "+x.deltaBg*Math.min(1,O)+"px, 0px)",x.backgroundFrontLayer);x.backgroundRearLayer&&this.transform("translate3d(0px, "+x.deltaBg*Math.min(1,O)+"px, 0px)",x.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var GHU;var FoI;var XwE=function(){};
_.b=XwE.prototype;_.b._scrollTargetChanged=function(){};
_.b.scroll=function(){};
_.b._isValidScrollTarget=function(){};
_.b._toggleScrollListener=function(){};
_.b.toggleScrollListener=function(){};
_.b.createEffect=function(){};
_.b._effectsChanged=function(){};
_.b._layoutIfDirty=function(){};
_.b._boundEffect=function(){};
_.b._setUpEffect=function(){};
_.b._tearDownEffects=function(){};
_.b._runEffects=function(){};
_.b._scrollHandler=function(){};
_.b._scrollStateChanged=function(){};
_.b._getUndefinedMsg=function(){};
_.b.notifyResize=function(){};
_.b.assignParentResizable=function(){};
_.b.stopResizeNotificationsFor=function(){};
_.b._subscribeIronResize=function(){};
_.b._unsubscribeIronResize=function(){};
_.b.resizerShouldNotify=function(){};
_.b._onDescendantIronResize=function(){};
_.b._fireResize=function(){};
_.b._onIronRequestResizeNotifications=function(){};
_.b._parentResizableChanged=function(){};
_.b._notifyDescendant=function(){};
_.b._requestResizeNotifications=function(){};
_.b._findParent=function(){};
_.b._appResetLayoutHandler=function(){};
_.b.resetLayout=function(){};
_.b._notifyLayoutChanged=function(){};
_.b._notifyDescendantResize=function(){};
_.b._setThresholdTriggered=function(){};
XwE=_.tY({_template:function(){if(FoI!==void 0)return FoI;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;GHU===void 0&&(GHU=document.createElement("template"));var l=GHU;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return FoI=O},
is:"tp-yt-app-header",behaviors:[DTy,MEh],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 O=_.G0(this.$.slot).getDistributedNodes(),x=0,e;e=O[x];x++)if(e.nodeType===Node.ELEMENT_NODE)if(e.hasAttribute("sticky")){this._stickyElRef=e;break}else this._stickyElRef||(this._stickyElRef=e);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var O=this._clampedScrollTop,x=this._height===0||O===0,e=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;x||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();x?this._updateScrollState(O,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=e}},
_updateScrollState:function(O,x){if(this._height!==0){var e=0,l=this._top;var C=this._maxHeaderTop;var Q=O-this._lastScrollTop,L=Math.abs(Q),k=O>this._lastScrollTop,M=performance.now();this._mayMove()&&(e=this._clamp(this.reveals?l+Q:O,0,C));O>=this._dHeight&&(e=this.condenses&&!this.fixed?Math.max(this._dHeight,e):e,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&L<100){if(M-this._initTimestamp>300||this._wasScrollingDown!==k)this._initScrollTop=O,this._initTimestamp=M;O>=C&&
(Math.abs(this._initScrollTop-O)>30||L>10?(k&&O>=C?e=C:!k&&O>=this._dHeight&&(e=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((e-l)/(Q/(M-this._lastTimestamp)),0,300)+"ms"):e=this._top)}C=this._dHeight===0?O>0?1:0:e/this._dHeight;x||(this._lastScrollTop=O,this._top=e,this._wasScrollingDown=k,this._lastTimestamp=M);if(x||C!==this._progress||l!==e||O===0)this._progress=C,this._runEffects(C,e),this._transformHeader(e)}},
_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(O){this.translate3d(0,-O+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&O>=this._stickyElTop?Math.min(O,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(O,x,e){return Math.min(e,Math.max(x,O))},
_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),_.G0(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(O){switch(O){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.G0(this).querySelector("[main-title]");case "condensedTitle":return _.G0(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var oya;var y77;_.tY({_template:function(){if(y77!==void 0)return y77;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;oya===void 0&&(oya=document.createElement("template"));var l=oya;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return y77=O},
is:"tp-yt-app-header-layout",behaviors:[MEh],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.G0(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var O=this.header;if(this.isAttached&&O){this.$.wrapper.classList.remove("initializing");O.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)O.style.left=
"",O.style.right="";else{var x=this.getBoundingClientRect(),e=document.documentElement.clientWidth-x.right;O.style.left=x.left+"px";O.style.right=e+"px"}x=this.$.contentContainer.style;e=O.offsetHeight;O.fixed&&!O.condenses&&this.hasScrollingRegion?(x.marginTop=e+"px",x.paddingTop=""):(x.paddingTop=e+"px",x.marginTop="")}}});var ZUk=new _.$x("alertCommand");var Eyy=new _.$x("manageLabsStateCommand");var tEI=new _.$x("inlineFormRenderer");var qho=new _.$x("playlistSidebarPrimaryInfoRenderer");var PIS=new _.$x("productDetailsThumbnailRenderer"),c7k=new _.$x("productDetailsVariantRenderer"),Isk=new _.$x("productDetailsVariantOptionRenderer"),VEy=new _.$x("productDetailsOffersContainerRenderer"),pwS=new _.$x("productDetailsOfferRenderer");var Rzh=new _.$x("shoppingFlaggingRenderer");var UTh=new _.$x("playlistBylineRenderer");var asw=new _.$x("insertChannelTabCommand");var LS=function(){return _.MQ.apply(this,arguments)||this};
_.c(LS,_.MQ);_.b=LS.prototype;_.b.activeChanged=function(){if(this.active){var O=_.$U(this.hostElement).querySelector("#header");O&&_.wr(O,"iron-resize");window.addEventListener("scroll",_.Qa(this,this.onScroll))}else window.removeEventListener("scroll",_.Qa(this,this.onScroll)),_.wr(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.b.guideVisibleChanged=function(){var O=_.$U(this.hostElement).querySelector("#header");O&&_.wr(O,"iron-resize")};
_.b.onScroll=function(){var O=this;_.hY(this,"onScroll",function(){var x=_.$U(O.hostElement).querySelector("#header");x&&x.polymerController&&(x=x.polymerController.getScrollState().progress===1?"standard":"seamed",_.wr(O.hostElement,"yt-request-panel-mode-change",{mode:x}))},10)};
_.b.tabsChanged=function(){if(this.tabs){for(var O=null,x=0,e=this.tabs.length;x<e;++x){var l=this.tabs[x].tabRenderer;if(l&&l.selected){O=x;break}}this.selected=O}};
_.b.onTabsActivate=function(O){_.wr(this.hostElement,"yt-navigate",{endpoint:this.tabs[O.detail.selected].tabRenderer.endpoint})};
LS.prototype.tabsChanged=LS.prototype.tabsChanged;LS.prototype.guideVisibleChanged=LS.prototype.guideVisibleChanged;LS.prototype.activeChanged=LS.prototype.activeChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],LS.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.R(),_.v("design:type",Array)],LS.prototype,"tabs",void 0);
_.B([_.R(),_.v("design:type",Object)],LS.prototype,"selected",void 0);_.B([_.R(),_.v("design:type",Boolean)],LS.prototype,"active",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],LS.prototype,"disableHeaderFluidWidth",void 0);_.B([_.T1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LS.prototype,"activeChanged",null);
_.B([_.T1("guidePersistentAndVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LS.prototype,"guideVisibleChanged",null);_.B([_.T1("tabs"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LS.prototype,"tabsChanged",null);_.B([_.DC()],LS);var mTS=[_.S.YtRendererBehavior,_.Ql.YtdGuideStateAwareBehavior,LS.prototype];var sSh=2/3,Woa=_.O9(130749),hzc=function(O,x){var e=this;this.element=O;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){e.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:sSh,moveAction:function(l){e.moveAction(l)},
triggerAction:function(){e.element.isReloading=!0;_.s1(_.k0(),{visualElement:Woa});_.lV.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:e.element}})}}}};
_.Pu(_.k0(),Woa,this.layer);this.gesture=new _.uW(O,x,this.refreshConfig,"pan-down");this.attach()};
_.b=hzc.prototype;_.b.attach=function(){this.gesture.attach()};
_.b.detach=function(){this.gesture.detach()};
_.b.reset=function(){this.element.close()};
_.b.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.b.moveAction=function(O){this.element.rotation=O*360};var zz7=_.O9(130750),HU7=function(O,x,e,l,C){var Q=this;this.element=O;this.parent=e;this.channelHeader=l;this.ytdReduxDispatch=C;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){Q.tabsStartAtInPx=Q.channelHeader.clientHeight-48;var L;(L=Q.selectedTab)!=null&&L.title&&(L=_.GG().resolve(_.D0(_.Be)))&&(L=L.getCurrentPage(),Q.lastVisitedTabScrollPosition=L.getScrollTop(),Q.previousTab&&
((Q.lastVisitedTabScrollPosition===void 0?0:Q.lastVisitedTabScrollPosition<Q.channelHeader.clientHeight-48)?Q.scrollPositionForTabs.has(Q.selectedTab.title)&&Q.scrollPositionForTabs.delete(Q.selectedTab.title):Q.scrollPositionForTabs.set(Q.selectedTab.title,L.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:r7a(),triggerAction:function(){Q.navigate(Q.previousTab)},
moveAction:function(L,k){Q.moveAction(L,k)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-r7a(),triggerAction:function(){Q.navigate(Q.nextTab)},
moveAction:function(L,k){Q.moveAction(L,k)}}}};
_.Pu(_.k0(),zz7,this.layer);this.gesture=new _.uW(O,x,this.tabConfig);this.attach()};
_.b=HU7.prototype;_.b.attach=function(){this.gesture.attach()};
_.b.detach=function(){this.gesture.detach()};
_.b.tabsChanged=function(O){if(O){var x=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;O=_.T(O);for(var e=O.next();!e.done;e=O.next()){e=e.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=e);var l=void 0;if((l=e)==null?0:l.selected)this.previousTab=x,this.selectedTab=e;x=e}x=this.gesture;O=this.getConfig();x.config=O;this.scrollPositionNeedsUpdate=!0}};
_.b.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.b.moveAction=function(O,x){if(!this.tabsElement){var e;this.tabsElement=(e=this.parent.header)==null?void 0:e.tabsElement;x==="right"&&this.previousTab?_.qtp(_.zK.instance,this.previousTab.endpoint,{},""):x==="left"&&this.nextTab&&_.qtp(_.zK.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}e=this.tabsElement._pos;x==="right"&&(O*=-1);this.tabsElement._positionBar(e.width,e.left*1+e.width*O)};
var r7a=function(){var O,x;return(x=(O=_.GG().resolve(_.Be).getCurrentPage())==null?void 0:O.clientWidth)!=null?x:0};
HU7.prototype.navigate=function(O){this.element.data=void 0;if(O=O==null?void 0:O.endpoint)this.ytdReduxDispatch(Loo(!0)),_.s1(_.k0(),{visualElement:zz7}),_.lV.instance.resolveCommand({navigateAction:{endpoint:O}},{form:{element:this.element}})};var KoE;var dTI;var k9=function(){return _.a.apply(this,arguments)||this};
_.c(k9,_.a);k9.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],k9.prototype,"data",void 0);_.B([_.H({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],k9);
_.n(k9,"ytd-labs-edit-renderer",function(){if(dTI!==void 0)return dTI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return dTI=O},{mode:1});var nyh;var A9=function(){var O=_.a.apply(this,arguments)||this;O.dark=!1;O.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";O.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(A9,_.a);A9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
A9.prototype.ready=function(){var O=document.documentElement.hasAttribute("dark");this.setBackgroundImage(O);this.dark=O};
A9.prototype.onDarkModeToggledAction=function(O){this.setBackgroundImage(O);this.dark=O};
A9.prototype.setBackgroundImage=function(O){_.lH(this.hostElement,{"--yt-labs-header-background":"url("+(O?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],A9.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],A9.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],A9.prototype,"dark",void 0);
_.B([_.H({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],A9);
_.n(A9,"ytd-labs-header-renderer",function(){if(nyh!==void 0)return nyh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return nyh=O},{mode:1});var uaE;var M7=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return O};
_.c(M7,_.a);M7.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"}}}}}};
M7.prototype.onYtToggleButton=function(O){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",O.detail.toggled)};
M7.prototype.onManageLabsState=function(O){if(O=_.q(O,Eyy))O.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?O.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&O.labsItemId===this.data.labsItemId&&(O.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Sh(this.hostElement,"yt-check-labs-opted-in-state").some(function(x){return x})&&this.data.confirmationDialogCommand?_.gr(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.GG().resolve(_.Xc).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&O.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.GG().resolve(_.Xc).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
M7.prototype.onCheckLabsOptedInState=function(){var O=this.get("data.primaryButton.toggleButtonRenderer");return O?O.isToggled:!1};
_.Dy.Object.defineProperties(M7.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
M7.prototype.onYtToggleButton=M7.prototype.onYtToggleButton;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],M7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],M7.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],M7.prototype,"itemStyle",null);_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],M7.prototype,"onYtToggleButton",null);_.B([_.H({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],M7);
_.n(M7,"ytd-labs-item-renderer",function(){if(uaE!==void 0)return uaE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return uaE=O},{mode:1});var YhT;var Bkh;var vyz=function(){return _.a.apply(this,arguments)||this};
_.c(vyz,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vyz.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vyz.prototype,"data",void 0);_.B([_.H({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],vyz);
_.n(vyz,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Bkh!==void 0)return Bkh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Bkh=O},{mode:1});var fsh;var Dq=function(){return _.a.apply(this,arguments)||this};
_.c(Dq,_.a);Dq.prototype.observeSuperchatChip=function(){if(this.data){var O={"--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)};_.lH(this.hostElement,O)}};
Dq.prototype.colorFromDecimal=function(O){return _.aF(Number(O||0))};
Dq.prototype.observeSuperchatChip=Dq.prototype.observeSuperchatChip;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Dq.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Dq.prototype,"observeSuperchatChip",null);_.B([_.H({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Dq);
_.n(Dq,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(fsh!==void 0)return fsh;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return fsh=O},{mode:1});var Gm=function(){return _.a.apply(this,arguments)||this};
_.c(Gm,_.a);Gm.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"}}}};
_.Dy.Object.defineProperties(Gm.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.xw),_.v("design:type",Object)],Gm.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Gm.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Gm.prototype,"hideMessageBlock",null);
_.B([_.H({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Gm);
_.n(Gm,"ytd-live-chat-history-entry-renderer",function(){if(YhT!==void 0)return YhT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YhT=O},{mode:1});var J7T;var wwo=function(){return _.a.apply(this,arguments)||this};
_.c(wwo,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wwo.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],wwo.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],wwo);
_.n(wwo,"ytd-channel-options-renderer",function(){if(J7T!==void 0)return J7T;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return J7T=O},{mode:1});var ShE;var FT=function(){return _.a.apply(this,arguments)||this};
_.c(FT,_.a);FT.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],FT.prototype,"data",void 0);_.B([_.H({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],FT);
_.n(FT,"ytd-settings-email-item-renderer",function(){if(ShE!==void 0)return ShE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ShE=O},{mode:1});var jSw;var XT=function(){return _.a.apply(this,arguments)||this};
_.c(XT,_.a);XT.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"}}}};
XT.prototype.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
XT.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Dy.Object.defineProperties(XT.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],XT.prototype,"data",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],XT.prototype,"expanded",void 0);_.B([_.p("expanded"),_.v("design:type",String),_.v("design:paramtypes",[])],XT.prototype,"emailListExpanded",null);
_.B([_.kX("#options"),_.v("design:type",Object)],XT.prototype,"options",void 0);_.B([_.H({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],XT);
_.n(XT,"ytd-settings-email-list-renderer",function(){if(jSw!==void 0)return jSw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jSw=O},{mode:1});var Nko;var ov=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return O};
_.c(ov,_.a);ov.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"}}}};
ov.prototype.handleSignalActionSubmitForm=function(){var O,x=(O=this.formRenderer)==null?void 0:O.getForm();x&&this.data.serviceEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},x,{element:this.hostElement})})};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ov.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ov.prototype,"data",void 0);_.B([_.kX("yt-form-renderer"),_.v("design:type",Object)],ov.prototype,"formRenderer",void 0);
_.B([_.H({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],ov);
_.n(ov,"ytd-settings-gaia-link-renderer",function(){if(Nko!==void 0)return Nko;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Nko=O},{mode:1});var gys;var yX=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return O};
_.c(yX,_.a);yX.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.kQ4()&&this.set("data.hidden",!1)};
yX.prototype.onSwitchReady=function(){var O=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.t("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.L1X().then(function(x){x&&(Notification.permission==="default"?O.set("data.hidden",!1):Notification.permission==="granted"&&_.rt("NotificationsDisabled").then(function(e){e||_.Sh(O.hostElement,"yt-toggle-settings-switch",[O.data.id,!e]);O.set("data.hidden",!1)}).catch(function(){}))})})};
yX.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}}}}};
yX.prototype.handleUpdateOptionsCommand=function(O){(O=_.q(O,_.ghd))&&this.data&&this.data.id===O.id&&(this.set("data.hidden",O.hidden),O.text!==void 0&&this.set("data.text",O.text),O.clearOptions&&this.set("data.options",[]))};
yX.prototype.onSwitchReady=yX.prototype.onSwitchReady;yX.prototype.dataChanged=yX.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],yX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],yX.prototype,"data",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yX.prototype,"dataChanged",null);_.B([_.bH("yt-settings-switch-ready"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yX.prototype,"onSwitchReady",null);_.B([_.H({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],yX);
_.n(yX,"ytd-settings-options-renderer",function(){if(gys!==void 0)return gys;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return gys=O},{mode:1});var $TH;var Zq=function(){return _.a.apply(this,arguments)||this};
_.c(Zq,_.a);Zq.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Zq.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Zq.prototype.onYtExpanderMoreTapped=Zq.prototype.onYtExpanderMoreTapped;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Zq.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Zq.prototype,"data",void 0);
_.B([_.bH("yt-expander-more-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Zq.prototype,"onYtExpanderMoreTapped",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Zq);
_.n(Zq,"ytd-product-details-description-renderer",function(){if($TH!==void 0)return $TH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $TH=O},{mode:1});var iUU;var Eo=function(){var O=_.a.apply(this,arguments)||this;O.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";O.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";O.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";O.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return O};
_.c(Eo,_.a);Eo.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Dy.Object.defineProperties(Eo.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:(x=O.offerData)==null?void 0:x.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?void 0:O.purchaseButtonRenderers)!==void 0&&((x=this.data)==null?void 0:x.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.formattedFromMerchantText)&&(!((x=this.data)==null||!x.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Eo.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Eo.prototype,"data",void 0);
_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0}),_.v("design:type",Object)],Eo.prototype,"shippingIcon",void 0);_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0}),_.v("design:type",Object)],Eo.prototype,"shippingAddressIcon",void 0);_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0}),_.v("design:type",Object)],Eo.prototype,"googleGuaranteeIcon",void 0);
_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?String:void 0}),_.v("design:type",Object)],Eo.prototype,"returnPolicyIcon",void 0);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Eo.prototype,"showAdditionalFees",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Eo.prototype,"showMultiPurchaseButtons",null);
_.B([_.p("data","showMultiPurchaseButtons"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Eo.prototype,"showPurchaseData",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Eo);
_.n(Eo,"ytd-product-details-hero-offer-renderer",function(){if(iUU!==void 0)return iUU;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return iUU=O},{mode:1});var OxH;var xxc;var t9=function(){return _.a.apply(this,arguments)||this};
_.c(t9,_.a);_.b=t9.prototype;_.b.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.b.onKeyDown=function(O){O=O.keyCode;O!==13&&O!==32||this.handleSelection()};
_.b.onMouseEnterImage=function(){var O;((O=this.data)==null?void 0:O.thumbnailDetails)!==void 0&&_.jh(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.b.onMouseLeaveImage=function(){_.jh(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.b.handleSelection=function(){this.data&&_.wr(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Dy.Object.defineProperties(t9.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isSelected)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],t9.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],t9.prototype,"isSelected",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],t9);
_.n(t9,"ytd-product-details-thumbnail-renderer",function(){if(xxc!==void 0)return xxc;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return xxc=O},{mode:1});var q7=function(){var O=_.a.apply(this,arguments)||this;var x={};O.actionMap=(x["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",x["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",x);O.selectedThumbnailIndex=0;O.selectItem=function(e){e.target.onKeyDown(e)};
return O};
_.c(q7,_.a);_.b=q7.prototype;_.b.handlePreviewImageSelect=function(O){this.hoverThumbnail=O};
_.b.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.b.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.b.onThumbnailSelected=function(O,x){this.selectedThumbnailIndex=x};
_.b.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.b.updateOffset=function(){var O=_.$U(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-O));this.ytdHorizontalListBehavior.reposition_()};
_.Dy.Object.defineProperties(q7.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.imageRenderer){var x,e;return((x=this.data)==null?void 0:(e=x.imageRenderer)==null?void 0:e.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var O;if((O=this.data)==null?0:O.imageRenderer){var x;return(x=_.q(this.data.imageRenderer[this.selectedThumbnailIndex],PIS))==null?void 0:x.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var O=this,x,e,l,C=(l=(x=this.data)==null?void 0:(e=x.imageRenderer)==null?void 0:e.map(function(Q,L){return{productDetailsThumbnailRenderer:Object.assign({},_.q(Q,PIS),{index:L,isSelected:L===O.selectedThumbnailIndex})}}))!=null?l:[];
return Object.assign({},this.data,{imageRenderer:C})}}});
q7.prototype.updateOffset=q7.prototype.updateOffset;q7.prototype.dataChanged=q7.prototype.dataChanged;q7.prototype.onThumbnailSelected=q7.prototype.onThumbnailSelected;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.qA.YtdHorizontalListBehavior),_.v("design:type",Object)],q7.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],q7.prototype,"componentBehavior",void 0);_.B([_.V([_.Wt.YtActionHandlerBehavior]),_.v("design:type",Object)],q7.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],q7.prototype,"data",void 0);_.B([_.R({value:"$.items.children"}),_.v("design:type",String)],q7.prototype,"itemsPath",void 0);_.B([_.R({value:3}),_.v("design:type",Number)],q7.prototype,"initialCount",void 0);
_.B([_.kX("#items"),_.v("design:type",Object)],q7.prototype,"items",void 0);_.B([_.R(),_.v("design:type",Object)],q7.prototype,"selectedThumbnailIndex",void 0);_.B([_.R(),_.v("design:type",Object)],q7.prototype,"hoverThumbnail",void 0);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],q7.prototype,"showThumbnails",null);
_.B([_.bH("ytd-product-details-thumbnail-renderer-selected"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Number]),_.v("design:returntype")],q7.prototype,"onThumbnailSelected",null);_.B([_.p("data","selectedThumbnailIndex","hoverThumbnail"),_.v("design:type",Object),_.v("design:paramtypes",[])],q7.prototype,"thumbnailDetails",null);_.B([_.p("data","selectedThumbnailIndex"),_.v("design:type",Object),_.v("design:paramtypes",[])],q7.prototype,"populatedData",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q7.prototype,"dataChanged",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],q7.prototype,"updateOffset",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],q7);
_.n(q7,"ytd-product-details-image-carousel-renderer",function(){if(OxH!==void 0)return OxH;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return OxH=O},{mode:_.gq("kevlar_poly_si_batch_j079")?1:2});var eiU;var Ph=function(){return _.a.apply(this,arguments)||this};
_.c(Ph,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ph.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ph.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Ph);
_.n(Ph,"ytd-product-details-offer-renderer",function(){if(eiU!==void 0)return eiU;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return eiU=O},{mode:1});var ltH;var ch=function(){var O=_.a.apply(this,arguments)||this;O.isOffersHidden=!0;return O};
_.c(ch,_.a);ch.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var O,x=_.q((O=this.data)==null?void 0:O.viewOffersButton,_.wf);x&&this.ytRendererBehavior.logExplicitClick(x)};
ch.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Dy.Object.defineProperties(ch.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l;return(e=_.q((O=this.data)==null?void 0:(x=O.offers)==null?void 0:x[0],pwS))==null?void 0:(l=e.offerData)==null?void 0:l.vendorLogoUrl}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ch.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ch.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ch.prototype,"isOffersHidden",void 0);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],ch.prototype,"firstOfferVendorLogoUrl",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],ch);
_.n(ch,"ytd-product-details-offers-container-renderer",function(){if(ltH!==void 0)return ltH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ltH=O},{mode:1});var Cxz;var QaI;var Iv=function(){return _.a.apply(this,arguments)||this};
_.c(Iv,_.a);Iv.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Iv.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.jh(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Iv.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.jh(this,"ytd-product-details-variant-image-unselect")};
_.Dy.Object.defineProperties(Iv.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 O;return((O=this.data)==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?void 0:O.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((x=this.data)==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var O;if(((O=this.data)==null?void 0:O.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var O,x;return this.isUnavailable?(O=this.data)==null?void 0:O.variantOptionUnavailableAccessibilityLabel:(x=this.data)==null?void 0:x.variantOptionAccessibilityLabel}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Iv.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Iv.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],Iv.prototype,"displayType",void 0);
_.B([_.p("displayType","data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Iv.prototype,"isImageButton",null);_.B([_.p("displayType","data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Iv.prototype,"isPillButton",null);_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Iv.prototype,"isActive",null);
_.B([_.p("data"),_.R({reflectToAttribute:!0}),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Iv.prototype,"isUnavailable",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Iv.prototype,"thumbnailDetails",null);_.B([_.p("isUnavailable","data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Iv.prototype,"accessibilityLabel",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Iv);
_.n(Iv,"ytd-product-details-variant-option-renderer",function(){if(QaI!==void 0)return QaI;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return QaI=O},{mode:1});var bxo;var VX=function(){var O=_.a.apply(this,arguments)||this;O.variantsExpanded=!1;O.hideShowMoreLessVariantButton=!0;O.initialized=!1;O.computeVariantsDebouncer=null;O.computeVariants=function(x){x=x===void 0?!1:x;O.variantsExpanded||O.showOptions()||!x||(O.variantsExpanded=!0);if(O.variantsExpanded){x=_.T(O.items.children);for(var e=x.next();!e.done;e=x.next())e.value.hidden=!1}O.initialized=!0};
return O};
_.c(VX,_.a);_.b=VX.prototype;_.b.ready=function(){var O=this;setTimeout(function(){O.computeVariants(!0)})};
_.b.showOptions=function(){for(var O=_.T(this.items.children),x=O.next();!x.done;x=O.next())x.value.hidden=!0;var e=this.container.getBoundingClientRect().width,l=0,C=O=0;x=!1;for(var Q=_.T(this.items.children),L=Q.next();!L.done;L=Q.next()){L=L.value;L.hidden=!1;var k=L.getBoundingClientRect().width;if(l+k<e)l+=k;else if(++C<2)l=k;else break;O+=1;L.hasAttribute("is-active")&&(x=!0)}for(e=O;e<this.items.children.length;e++)this.items.children[e].hidden=!0;this.hideShowMoreLessVariantButton=O===this.items.children.length;
return x};
_.b.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Lp(this.computeVariantsDebouncer,_.NC.after(100),this.computeVariants)};
_.b.onShowMoreLessVariantsButtonClick=function(){var O;(O=this.data)!=null&&O.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.b.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Dy.Object.defineProperties(VX.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.data)==null?void 0:(x=O.variantOptionRenderers)==null?void 0:x.find(function(Q){return _.q(Q,Isk).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),l,C;
return(C=(l=_.q(e,Isk))==null?void 0:l.name)!=null?C:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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"}}}});
VX.prototype.debouncedComputeVariants=VX.prototype.debouncedComputeVariants;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],VX.prototype,"componentBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],VX.prototype,"ironResizableBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],VX.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],VX.prototype,"variantsExpanded",void 0);_.B([_.R(),_.v("design:type",Object)],VX.prototype,"hideShowMoreLessVariantButton",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],VX.prototype,"initialized",void 0);_.B([_.kX("#items"),_.v("design:type",HTMLDivElement)],VX.prototype,"items",void 0);_.B([_.kX("#container"),_.v("design:type",HTMLDivElement)],VX.prototype,"container",void 0);
_.B([_.kX("#more-variants-button"),_.v("design:type",HTMLElement)],VX.prototype,"moreVariantsButton",void 0);_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],VX.prototype,"selectedOptionName",null);_.B([_.T1("data","variantsExpanded"),_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],VX.prototype,"debouncedComputeVariants",null);
_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],VX.prototype,"displayType",null);_.B([_.p("displayType"),_.v("design:type",Object),_.v("design:paramtypes",[])],VX.prototype,"variantItemsClassname",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],VX);
_.n(VX,"ytd-product-details-variant-renderer",function(){if(bxo!==void 0)return bxo;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return bxo=O},{mode:1});var pS=function(){return _.a.apply(this,arguments)||this};
_.c(pS,_.a);
pS.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"}}}};
_.Dy.Object.defineProperties(pS.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(x=_.q((O=this.data)==null?void 0:O.offersContainerRenderer,VEy))==null?void 0:x.offers;return e!==void 0&&(e==null?void 0:e.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 O,x,e;return((e=(O=this.data)==null?void 0:(x=O.variants)==null?void 0:x.map(function(l){var C,Q;l=(Q=(C=_.q(l,c7k))==null?void 0:C.variantOptionRenderers)==null?void 0:Q.find(function(k){var M;return((M=_.q(k,Isk))==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var L;return(L=_.q(l,Isk))==null?void 0:L.name}).filter(function(l){return typeof l==="string"}))!=null?e:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var O,x,e,l=(x=_.q((O=this.data)==null?void 0:O.shoppingFlaggingRenderer,Rzh))==null?void 0:(e=x.reportButton)==null?void 0:e.buttonRenderer;if(l)return{text:l.text,command:l.command,icon:{iconType:"FLAG"},accessibilityData:l.accessibilityData,trackingParams:l.trackingParams,loggingDirectives:l.loggingDirectives}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],pS.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pS.prototype,"data",void 0);_.B([_.kX("#image-carousel-renderer"),_.v("design:type",Object)],pS.prototype,"imageCarouselRenderer",void 0);
_.B([_.kX("#hero-offer-renderer"),_.v("design:type",Object)],pS.prototype,"productDetailsHeroOfferRenderer",void 0);_.B([_.kX("#variants"),_.v("design:type",Object)],pS.prototype,"productDetailsVariantRenderer",void 0);_.B([_.kX("#offers"),_.v("design:type",Object)],pS.prototype,"productDetailsOffersContainerRenderer",void 0);_.B([_.kX("#description-renderer"),_.v("design:type",Object)],pS.prototype,"productDetailsDescriptionRenderer",void 0);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pS.prototype,"showPurchaseData",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pS.prototype,"showHeroOfferRenderer",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pS.prototype,"showBrandText",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pS.prototype,"showOffers",null);
_.B([_.p("showOffers","showPurchaseData"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pS.prototype,"showBuySeparator",null);_.B([_.p("showOffers","showPurchaseData"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],pS.prototype,"showBuyCard",null);_.B([_.p("data"),_.v("design:type",String),_.v("design:paramtypes",[])],pS.prototype,"selectedVariantsText",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],pS.prototype,"shoppingReportingButtonData",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],pS);
_.n(pS,"ytd-product-details-renderer",function(){if(Cxz!==void 0)return Cxz;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Cxz=O},{mode:1});var TXz;var Lgh;var ktE;var Rv=function(){return _.a.apply(this,arguments)||this};
_.c(Rv,_.a);Rv.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Dy.Object.defineProperties(Rv.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Rv.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],Rv.prototype,"formattedAmount",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Rv.prototype,"ariaLabel",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data.style"),_.v("design:type",String),_.v("design:paramtypes",[])],Rv.prototype,"vcBalanceWidgetStyle",null);_.B([_.Va({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Rv);
_.n(Rv,"yt-vc-balance-renderer",function(){if(ktE===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Lgh===void 0&&(Lgh=document.createElement("template"));var l=Lgh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ktE=O}O=ktE;return O},{mode:2});_.tI("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Uo=function(){return _.a.apply(this,arguments)||this};
_.c(Uo,_.a);_.Dy.Object.defineProperties(Uo.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:""}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Uo.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Uo.prototype,"data",void 0);_.B([_.R({selectorArgs:["data.vcBalanceEntityKey"],selector:function(O,x){return _.xE(O.entities,"vcBalanceEntity",x)}}),
_.v("design:type",Object)],Uo.prototype,"vcBalanceEntity",void 0);_.B([_.p("vcBalanceEntity"),_.v("design:type",String),_.v("design:paramtypes",[])],Uo.prototype,"formattedAmount",null);_.B([_.p("vcBalanceEntity"),_.v("design:type",String),_.v("design:paramtypes",[])],Uo.prototype,"vcBalanceAriaLabel",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Uo);
_.n(Uo,"ytd-vc-balance-renderer",function(){if(TXz!==void 0)return TXz;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return TXz=O},{mode:1});var ASI;var av=function(){var O=_.a.apply(this,arguments)||this;O.rotation=0;O.isReloading=!1;return O};
_.c(av,_.a);av.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
av.prototype.reset=function(){this.hostElement.style.opacity=""};
av.prototype.close=function(){var O=this;return _.A(function(x){if(x.nextAddress==1)return x.yield(O.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);O.hostElement.style.opacity="0";_.Ra(x)})};
av.prototype.rotationChanged=av.prototype.rotationChanged;_.B([_.R(),_.v("design:type",Object)],av.prototype,"rotation",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],av.prototype,"isReloading",void 0);_.B([_.kX("#icon"),_.v("design:type",HTMLElement)],av.prototype,"icon",void 0);_.B([_.T1("rotation"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],av.prototype,"rotationChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-refresh"})],av);
_.n(av,"ytd-refresh",function(){if(ASI!==void 0)return ASI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ASI=O},{mode:1});var M5T;var ml=function(){return _.a.apply(this,arguments)||this};
_.c(ml,_.a);ml.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"}}}};
ml.prototype.dataChanged=function(){if(this.data){var O=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var x=_.Sf(this.data.banner.thumbnails,this.hostElement.clientWidth);x&&(x.indexOf("//")===0&&(x="https:"+x),this.hasBannerArt=!0,_.lH(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+x+")"}))}this.hasBannerArt!==O&&_.$U(this.hostElement).querySelector("#header").fire("iron-resize")}};
ml.prototype.updateSelectedFromBinding=function(O){this.selected=O.detail.value};
ml.prototype.dataChanged=ml.prototype.dataChanged;_.B([_.V(mTS),_.v("design:type",Object)],ml.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.lZ),_.v("design:type",Object)],ml.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],ml.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ml.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ml.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],ml.prototype,"selected",void 0);_.B([_.R(),_.v("design:type",Boolean)],ml.prototype,"active",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],ml.prototype,"hasBannerArt",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ml.prototype,"dataChanged",null);_.B([_.H({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],ml);
_.n(ml,"ytd-interactive-tabbed-header-renderer",function(){if(M5T!==void 0)return M5T;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return M5T=O},{mode:1});var Dxo;var so=function(){return _.a.apply(this,arguments)||this};
_.c(so,_.a);so.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
so.prototype.computeActionsAlignment=function(O){return(O==null?void 0:O.actionsAlignment)||""};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],so.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.v("design:type",String)],so.prototype,"actionsAlignment",void 0);_.B([_.H({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],so);
_.n(so,"ytd-page-footer-renderer",function(){if(Dxo!==void 0)return Dxo;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Dxo=O},{mode:1});var GtT;var FgH;var Wh=function(){var O=_.a.apply(this,arguments)||this;O.isEditing=!1;O.useSlot=!1;O.isMultiline=!1;return O};
_.c(Wh,_.a);_.b=Wh.prototype;_.b.onKeydown=function(O){if(O.keyCode===13&&!this.isMultiline)this.onSave();else if(O.keyCode===27)this.onCancel()};
_.b.computeComponentStyle=function(O){return(O==null?0:O.style)?O.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.b.computeisMultiline=function(O){if(this.multilineOverride!==void 0)return this.multilineOverride;var x,e;return!!(O==null?0:(x=O.formField)==null?0:(e=x.textInputFormFieldRenderer)==null?0:e.isMultiline)};
_.b.computeTextDisplayed=function(O,x){if(O)return O;if(x)return x};
_.b.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.b.onSave=function(){if(this.textForm.validate()){this.textForm.save();var O=this.textForm.value;if(O)this.set("data.textDisplayed",_.KA(O));else{var x;((x=this.data)==null?0:x.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Ln("inline-form-changed",this.data));this.isEditing=!1}};
_.b.onCancel=function(){var O=_.db(this.data.textDisplayed);O===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(O);this.isEditing=!1};
Wh.prototype.onKeydown=Wh.prototype.onKeydown;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],Wh.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Wh.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Wh.prototype,"isEditing",void 0);_.B([_.R(),_.v("design:type",Object)],Wh.prototype,"useSlot",void 0);_.B([_.R(),_.v("design:type",Boolean)],Wh.prototype,"multilineOverride",void 0);_.B([_.R(),_.v("design:type",Boolean)],Wh.prototype,"enableOverlayTheme",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.v("design:type",String)],Wh.prototype,"componentStyle",void 0);
_.B([_.R({computed:"computeisMultiline(data)"}),_.v("design:type",Object)],Wh.prototype,"isMultiline",void 0);_.B([_.kX("#text-form"),_.v("design:type",Object)],Wh.prototype,"textForm",void 0);_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],Wh.prototype,"onKeydown",null);_.B([_.H({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Wh);
_.n(Wh,"ytd-inline-form-renderer",function(){if(FgH!==void 0)return FgH;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return FgH=O},{mode:1});var XOH;var h9=function(){var O=_.a.apply(this,arguments)||this;O.previousSelectValue=void 0;O.selectedItemMessage=void 0;return O};
_.c(h9,_.a);h9.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
h9.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var O,x,e,l,C=(O=this.data)==null?void 0:(x=O.dropdown)==null?void 0:(e=x.dropdownRenderer)==null?void 0:(l=e.entries)==null?void 0:l.map(function(k){return k.privacyDropdownItemRenderer});
O=_.T(C!=null?C:[]);for(x=O.next();!x.done;x=O.next())if((x=x.value)&&x.int32Value===this.selectedValue){this.selectedItemMessage=x.itemMessage;break}}else this.selectedItemMessage=void 0;var Q;(Q=this.onValueChanged)==null||Q.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var L;(L=this.data)!=null&&L.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
h9.prototype.onValueChangedForSelectedValue=function(O){this.selectedValue=O.detail.value};
h9.prototype.selectedValueChanged=h9.prototype.selectedValueChanged;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],h9.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],h9.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],h9.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],h9.prototype,"theme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Number)],h9.prototype,"selectedValue",void 0);_.B([_.R(),_.v("design:type",Function)],h9.prototype,"onValueChanged",void 0);
_.B([_.G1("selectedValue"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],h9.prototype,"selectedValueChanged",null);_.B([_.H({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],h9);
_.n(h9,"ytd-dropdown-form-field-renderer",function(){if(XOH!==void 0)return XOH;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return XOH=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var oSa;var zm=function(){return _.a.apply(this,arguments)||this};
_.c(zm,_.a);_.Dy.Object.defineProperties(zm.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var O=[],x=_.T(this.data||[]),e=x.next();!e.done;e=x.next())(e=_.q(e.value,UTh))&&O.push(e);return O}}});
_.B([_.R(),_.v("design:type",Array)],zm.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],zm.prototype,"byline",null);_.B([_.H({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],zm);
_.n(zm,"ytd-playlist-byline-renderer",function(){if(oSa!==void 0)return oSa;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return oSa=O},{mode:1});var ySa;var r$=function(){var O=_.a.apply(this,arguments)||this;O.rtlBullet=_.t("web_playlist_stats_rtl_bullet_icon_killswitch");O.modern=_.t("web_modern_buttons");O.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return O};
_.c(r$,_.a);_.b=r$.prototype;_.b.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"}}}}};
_.b.attached=function(){};
_.b.computeIsCustomThumbnail=function(O){return O?!!O.playlistCustomThumbnailRenderer:!1};
_.b.onYtNavigate=function(O,x){if(x&&x.actions&&x.actions.indexOf("shuffle")>-1){O=_.GG().resolve(_.gx);var e=x.tempData||{};e.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);x.tempData=e;O.isShuffleNextPlaylist=!0}};
_.b.onUpdatePlaylistAction=function(O){var x;O=(x=_.q(O,_.pPR))==null?void 0:x.updatedRenderer;if(x=_.q(O,qho))this.data=x};
_.b.computeStyleType=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeThumbnailWidth=function(O){return O==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.b.computeHideThumbnailAria=function(O){if(O==null?0:O.thumbnailOverlays)for(var x=0;x<O.thumbnailOverlays.length;x++){var e=void 0;if((e=O.thumbnailOverlays[x])==null?0:e.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
r$.prototype.onYtNavigate=r$.prototype.onYtNavigate;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],r$.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],r$.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],r$.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],r$.prototype,"rtlBullet",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.v("design:type",String)],r$.prototype,"styleType",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.v("design:type",Number)],r$.prototype,"thumbnailWidth",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],r$.prototype,"modern",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.v("design:type",Boolean)],r$.prototype,"isCustomThumbnail",void 0);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[Event,Object]),_.v("design:returntype")],r$.prototype,"onYtNavigate",null);_.B([_.H({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],r$);
_.n(r$,"ytd-playlist-sidebar-primary-info-renderer",function(){if(ySa!==void 0)return ySa;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ySa=O},{mode:1});var Zxc;var Hh=function(){return _.a.apply(this,arguments)||this};
_.c(Hh,_.a);Hh.prototype.computeOwnerVisibility=function(O){return!(!O.videoOwner&&!O.button)};
Hh.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Hh.prototype,"data",void 0);_.B([_.H({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Hh);
_.n(Hh,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Zxc!==void 0)return Zxc;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Zxc=O},{mode:1});var ESc;var KS=function(){var O=_.a.apply(this,arguments)||this;O.expanded=!1;O.isCompact=!1;return O};
_.c(KS,_.a);_.b=KS.prototype;_.b.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.b.dataChanged=function(){this.data&&_.bx(_.$U(this.text),_.hiN(_.HxN,_.db(this.data.text||null)))};
_.b.computeAutoScrollEnabled=function(O,x){return O&&!x};
_.b.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.b.toggleOnTap=function(){this.expanded=!this.expanded};
KS.prototype.expandedChanged=KS.prototype.expandedChanged;KS.prototype.dataChanged=KS.prototype.dataChanged;_.B([_.V(_.LYy),_.v("design:type",Object)],KS.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],KS.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],KS.prototype,"expanded",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],KS.prototype,"isCompact",void 0);_.B([_.R({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.v("design:type",Boolean)],KS.prototype,"autoScrollEnabled",void 0);_.B([_.kX("#text"),_.v("design:type",Object)],KS.prototype,"text",void 0);_.B([_.kX("#expander-icon"),_.v("design:type",Object)],KS.prototype,"expanderIcon",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],KS.prototype,"dataChanged",null);_.B([_.T1("expanded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],KS.prototype,"expandedChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],KS);
_.n(KS,"ytd-channel-legal-info-renderer",function(){if(ESc!==void 0)return ESc;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ESc=O},{mode:1});var t5T;var qrh=_.CZ("DOWNLOAD",{},"Download"),Pxo=_.CZ("DOWNLOADING",{},"Downloading"),cSy=_.CZ("DOWNLOADED",{},"Downloaded"),d$=function(){var O=_.a.apply(this,arguments)||this;O.downloadProgress=0;O.isDownloadComplete=!1;O.transferState="TRANSFER_STATE_UNKNOWN";return O};
_.c(d$,_.a);_.b=d$.prototype;_.b.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.b.dataChanged=function(){var O;(O=this.data)!=null&&O.tooltip||(O=_.pA(_.u9().getState(),this.playlistId),this.updateButtonState(O))};
_.b.computePlaylistId=function(O){return O};
_.b.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.b.updateButtonState=function(O){if(this.data&&(this.data.tooltip!==Pxo||!_.Ah(O))){this.isDownloadComplete=!1;switch(O){case "TRANSFER_STATE_UNKNOWN":O=qrh;var x="OFFLINE_DOWNLOAD";var e="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":O=cSy;x="OFFLINE_PIN";e="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":O=Pxo;x="OFFLINE_DOWNLOADING_ZERO";e="ACTION_REMOVE_WITH_PROMPT";
break;default:O=qrh,x="OFFLINE_DOWNLOAD",e="ACTION_ADD"}var l=Object.assign({},this.data);l.tooltip=O;l.accessibilityData={accessibilityData:{label:O}};l.icon={iconType:x};l.size="SIZE_DEFAULT";_.q(l.command,_.TA)&&(_.q(l.command,_.TA).action=e);this.set("data",l)}};
_.b.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var O="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?O="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?O="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?O="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?O="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?O="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(O="OFFLINE_PIN",this.isDownloadComplete=!0);var x;O!==((x=this.data.icon)==null?void 0:x.iconType)&&(x=Object.assign({},this.data),x.tooltip=Pxo,x.accessibilityData={accessibilityData:{label:Pxo}},x.icon={iconType:O},_.q(x.command,_.TA)&&(_.q(x.command,_.TA).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",x))}};
d$.prototype.updateProgress=d$.prototype.updateProgress;d$.prototype.onTransferStateChanged=d$.prototype.onTransferStateChanged;d$.prototype.dataChanged=d$.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],d$.prototype,"ytdReduxBehavior",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d$.prototype,"forceIconButton",void 0);
_.B([_.R({value:!0}),_.v("design:type",Boolean)],d$.prototype,"forceIconOnly",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d$.prototype,"overrides",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d$.prototype,"buttonTooltipPosition",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d$.prototype,"styleActionButton",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d$.prototype,"disableTextTransform",void 0);
_.B([_.R({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.v("design:type",String)],d$.prototype,"playlistId",void 0);_.B([_.R(),_.v("design:type",Object)],d$.prototype,"data",void 0);_.B([_.R({selector:_.u_V,selectorArgs:["playlistId"]}),_.v("design:type",Object)],d$.prototype,"downloadProgress",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],d$.prototype,"isDownloadComplete",void 0);
_.B([_.R({selector:_.pA,selectorArgs:["playlistId"]}),_.v("design:type",String)],d$.prototype,"transferState",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],d$.prototype,"showTooltips",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],d$.prototype,"sendCommandWhenDisabled",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],d$.prototype,"disabled",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d$.prototype,"dataChanged",null);_.B([_.G1("transferState"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d$.prototype,"onTransferStateChanged",null);_.B([_.G1("downloadProgress"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],d$.prototype,"updateProgress",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],d$);
_.n(d$,"ytd-download-playlist-button-renderer",function(){if(t5T!==void 0)return t5T;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return t5T=O},{mode:1});var ItT;_.wP(_.EML,"thumbnail-overlay-button-view-model",{props:{data:_.Ld,lockupExperiments:_.Ld}});var nS=function(){var O=_.a.apply(this,arguments)||this;O.isSquare=!1;O.isVertical=!1;return O};
_.c(nS,_.a);nS.prototype.computeIsSquare=function(O){return O!=null&&O.thumbnail?ezh(O.thumbnail)==="SQUARE":!1};
nS.prototype.computeIsVertical=function(O){return O!=null&&O.thumbnail?ezh(O.thumbnail)==="VERTICAL":!1};
nS.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.v("design:type",Object)],nS.prototype,"isSquare",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.v("design:type",Object)],nS.prototype,"isVertical",void 0);
_.B([_.R(),_.v("design:type",Object)],nS.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],nS);
_.n(nS,"ytd-hero-playlist-thumbnail-renderer",function(){if(ItT!==void 0)return ItT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ItT=O},{mode:1});var u5=function(){var O=_.a.apply(this,arguments)||this;O.isDarkTheme=!1;O.isUltraWide=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return O};
_.c(u5,_.a);_.b=u5.prototype;_.b.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.GG();var O;(O=_.GG().resolve(_.D0(_.UW)))!=null&&(O.headerElement=this.hostElement)};
_.b.detached=function(){var O;(O=_.GG().resolve(_.D0(_.UW)))!=null&&(O.headerElement=void 0)};
_.b.onUpdateHeader=function(O){(O=O.detail)&&this.set("data",O)};
_.b.computeTextDisplayed=function(O){if(O)return O.textDisplayed?O.textDisplayed:O.placeholder};
_.b.gradientColorToLinearGradientStop=function(O){var x=this.isDarkTheme?O.darkThemeColor:O.lightThemeColor;return x?_.aF(x)+" "+((O==null?void 0:O.startLocation)||0)*100+"%":"transparent"};
_.b.onWindowResize=function(){var O;((O=this.data)==null?0:O.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.b.onIronResize=function(O){this.isUltraWide=!O.detail.value};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.onUpdatePlaylistName=function(O){var x=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},O.detail.value));_.A_(this,function(){var e;(e=x.editableTitle)==null||e.resize()})};
_.b.onUpdatePlaylistDescription=function(O){var x=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},O.detail.value));_.A_(this,function(){var e;(e=x.editableDescriptionInlineExpander)==null||e.resize()})};
_.b.getCinematicData=function(O){return _.q(O==null?void 0:O.cinematicContainer,_.l5)};
_.Dy.Object.defineProperties(u5.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 O,x=(O=this.getCinematicData(this.data))==null?void 0:O.config;return(O=this.isDarkTheme?x==null?void 0:x.darkThemeBackgroundColor:x==null?void 0:x.lightThemeBackgroundColor)?"background-color:"+_.UA(O)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var O;return _.q((O=this.data)==null?void 0:O.descriptionForm,tEI)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var O=this,x,e,l;return"background:linear-gradient(to bottom, "+(((l=(x=this.getCinematicData(this.data))==null?void 0:(e=x.gradientColorConfig)==null?void 0:e.map(function(C){return O.gradientColorToLinearGradientStop(C)}))==null?void 0:l.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var O;return _.db((O=this.data)==null?void 0:O.descriptionTapText)}}});
u5.prototype.onUpdateHeader=u5.prototype.onUpdateHeader;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],u5.prototype,"actionHandlerBehavior",void 0);_.B([_.kX("#description-inline-expander"),_.v("design:type",Object)],u5.prototype,"descriptionInlineExpander",void 0);
_.B([_.kX("#editable-description-inline-expander"),_.v("design:type",Object)],u5.prototype,"editableDescriptionInlineExpander",void 0);_.B([_.R(),_.v("design:type",Object)],u5.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],u5.prototype,"isUltraWide",void 0);_.B([_.kX("#editable-title-display"),_.v("design:type",Object)],u5.prototype,"editableTitle",void 0);_.B([_.p("isUltraWide"),_.v("design:type",Object),_.v("design:paramtypes",[])],u5.prototype,"maxDescriptionLines",null);
_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],u5.prototype,"noCinematicData",null);_.B([_.bH("yt-new-playlist-header"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],u5.prototype,"onUpdateHeader",null);_.B([_.p("data","isDarkTheme"),_.v("design:type",Object),_.v("design:paramtypes",[])],u5.prototype,"backgroundStyle",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],u5.prototype,"descriptionFormData",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],u5.prototype,"getDropdownTheme",null);_.B([_.p("data","isDarkTheme"),_.v("design:type",String),_.v("design:paramtypes",[])],u5.prototype,"gradientStyle",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],u5.prototype,"descriptionTapText",null);
_.B([_.H({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],u5);
_.n(u5,"ytd-playlist-header-renderer",function(){if(GtT!==void 0)return GtT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GtT=O},{mode:_.gq("kevlar_poly_si_batch_j078")?1:2});var V5a;var pOT;var Y9=function(){return _.a.apply(this,arguments)||this};
_.c(Y9,_.a);Y9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Y9.prototype,"data",void 0);_.B([_.H({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Y9);
_.n(Y9,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(pOT!==void 0)return pOT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return pOT=O},{mode:1});var Bh=function(){return _.a.apply(this,arguments)||this};
_.c(Bh,_.a);
Bh.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}}}}};
Bh.prototype.computeUsePremiumShowStyle=function(O){if(!O||!O.items)return!1;for(var x=0;x<O.items.length;x++)if(_.q(O.items[x],qho)){var e=void 0;return((e=_.q(O.items[x],qho))==null?void 0:e.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Bh.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.v("design:type",Boolean)],Bh.prototype,"usePremiumShowStyle",void 0);
_.B([_.H({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Bh);
_.n(Bh,"ytd-playlist-sidebar-renderer",function(){if(V5a!==void 0)return V5a;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return V5a=O},{mode:1});var RiE;var Uxc;var atU=function(O,x,e,l,C,Q,L,k){this.minWidth=O;this.minHeight=x;this.recommendedWidth=e;this.recommendedHeight=l;this.JSC$22381_maxFileSize=C;this.title=Q;this.bannerGalleryTitle=L;this.channelId=k;this.picker_=null;O=_.cXm("yt-banner");x=O.addView;e=(new A7I("youtubebanner")).addUploadMetadata("silo_id","19");e.opts.ytMaxFileSize=this.JSC$22381_maxFileSize;l=this.recommendedHeight;e.opts.ytRecWidth=this.recommendedWidth;e.opts.ytRecHeight=l;x.call(O,e);O.addView(new _.IE);x=O.addView;e=new _.IE;
e.opts.type="ytbanner";x.call(O,e.JSC$10069_setLabel(this.bannerGalleryTitle));x=O.setTitle(this.title).setSize(1E3);x.urlParamMap_.set("thumbs","orig");e=this.minWidth;l=this.minHeight;if(isNaN(e)||isNaN(l))throw Error("gb`"+e+"`"+l);x.urlParamMap_.set("minSize",e+"x"+l);x.urlParamMap_.set("cropMode","ytcb");this.builder_=O};
atU.prototype.open=function(){var O=this;return new _.If(function(x,e){_.Egp(O.builder_,function(l){l.action=="picked"?x(l):l.action=="cancel"&&e(Error("Jo"))});
O.picker_&&O.picker_.dispose();O.picker_=O.builder_.build();O.picker_.setVisible(!0)})};
atU.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var mxc=function(O){this.channelId=O};
mxc.prototype.upload=function(O){var x="";O.viewToken&&(x=O.viewToken[2].type);var e=O.docs[0];O=e.crop;x={channel_id:this.channelId,fife_url:e.thumbnails[0].url,photo_id:e.id,is_gallery_image:x=="ytbanner"};O&&(x.crop_top=O.top,x.crop_right=O.right,x.crop_bottom=O.bottom,x.crop_left=O.left);return _.kWn("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:x})};var vh=function(){var O=_.a.apply(this,arguments)||this;O.ariaLabel=null;return O};
_.c(vh,_.a);_.b=vh.prototype;_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.b.detached=function(){this.picker&&this.picker.dispose()};
_.b.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.b.computeAriaLabel=function(O){return O};
_.b.onTap=function(){var O=this,x;if((x=this.data)==null||!x.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new atU(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 e;(e=this.picker)==null||e.open().then(function(l){O.handleBannerPicked(l)},function(){})}};
_.b.handleBannerPicked=function(O){var x=this;this.uploader||(this.uploader=new mxc(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(O).then(function(e){x.handleBannerUploadSucceeded(e)},function(e){x.handleBannerUploadFailed(e)})};
_.b.handleBannerUploadSucceeded=function(O){O&&O.errors?this.handleBannerUploadFailed(O):(_.wr(this.hostElement,"yt-banner-updated",O),this.message=null)};
_.b.handleBannerUploadFailed=function(O){this.message=O&&O.errors&&O.errors.length?O.errors[0]:null};
vh.prototype.dataChanged=vh.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],vh.prototype,"componentBehavior",void 0);_.B([_.V(_.zk),_.v("design:type",Object)],vh.prototype,"ironButtonState",void 0);_.B([_.R(),_.v("design:type",Object)],vh.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.v("design:type",Object)],vh.prototype,"ariaLabel",void 0);
_.B([_.R(),_.v("design:type",Object)],vh.prototype,"message",void 0);_.B([_.R(),_.v("design:type",Object)],vh.prototype,"picker",void 0);_.B([_.R(),_.v("design:type",Object)],vh.prototype,"uploader",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],vh.prototype,"dataChanged",null);_.B([_.H({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],vh);
_.n(vh,"ytd-channel-banner-editor-renderer",function(){if(Uxc!==void 0)return Uxc;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Uxc=O},{mode:1});var sa7;var Wgy=_.zo(["#"]),fS=function(){return _.a.apply(this,arguments)||this};
_.c(fS,_.a);fS.prototype.computeHrefWithDefault=function(O){return this.ytComponentBehavior.computeHref_(O,!0)||_.Lg8(Wgy)};
fS.prototype.dataChanged=function(){var O=this.data;O&&O.targetId&&_.KUz(_.KL(),O.targetId,this.moreIcon)};
fS.prototype.dataChanged=fS.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],fS.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fS.prototype,"data",void 0);_.B([_.kX("#more-icon"),_.v("design:type",Object)],fS.prototype,"moreIcon",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fS.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],fS);
_.n(fS,"ytd-channel-tagline-renderer",function(){if(sa7!==void 0)return sa7;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return sa7=O},{mode:1});var hik;var J9=function(){return _.a.apply(this,arguments)||this};
_.c(J9,_.a);_.b=J9.prototype;_.b.ready=function(){var O=this;_.$U(this.hostElement).querySelector("#form").addEventListener("submit",function(x){O.onSubmit(x)})};
_.b.onDataChanged=function(){var O;((O=this.data)==null?0:O.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.b.onIconButtonKeydown=function(O){O.keyCode===13&&this.iconButton.click()};
_.b.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.b.openOnClickHandler=function(){this.input.focus()};
_.b.onSubmit=function(O){O.preventDefault();return!1};
_.b.submitOnEnterKeyUp=function(O){var x;if(O.keyCode===13&&((x=this.data)==null?0:x.expandedText)){O=this.data.endpoint;x=_.HX.unsafeClone(O);var e;((e=_.q(x==null?void 0:x.commandMetadata,_.e6))==null?0:e.url)?(_.q(x.commandMetadata,_.e6).url=_.Sb(_.q(x.commandMetadata,_.e6).url,"query",this.data.expandedText),_.q(x,_.Q9)&&(_.q(x,_.Q9).query=this.data.expandedText),_.wr(this.hostElement,"yt-navigate",{endpoint:x,tempData:{disableCache:!0}})):(e=new _.ry("Error: Trying to navigate to an endpoint without url",
O),_.BH(e))}};
_.b.updateDataExpandedTextFromBinding=function(O){this.set("data.expandedText",O.detail.value)};
_.Dy.Object.defineProperties(J9.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.t("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
J9.prototype.onDataChanged=J9.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ya$),_.v("design:type",Object)],J9.prototype,"ytdExpandableInputBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],J9.prototype,"data",void 0);_.B([_.kX("#input"),_.v("design:type",Object)],J9.prototype,"input",void 0);_.B([_.kX("#icon-button"),_.v("design:type",HTMLElement)],J9.prototype,"iconButton",void 0);
_.B([_.R(),_.v("design:type",String),_.v("design:paramtypes",[])],J9.prototype,"searchIcon",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],J9.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],J9);
var lsU=_.NQ()(J9,"ytd-expandable-tab-renderer",function(){if(hik===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);hik=O}O=hik;return O},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var ziS;var w$=function(){var O=_.a.apply(this,arguments)||this;O.avatarSize=80;O.ariaLabel=_.CZ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return O};
_.c(w$,_.a);w$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
w$.prototype.computeHref=function(O){var x;return((x=_.q(O,_.$b))==null?0:x.url)?this.componentBehavior.computeHref_(O):null};
w$.prototype.onTap=function(){var O,x;(O=this.data)==null||!O.editAvatarServiceEndpoint||((x=_.q(this.data.editAvatarServiceEndpoint,_.$b))==null?0:x.url)||_.GG().resolve(_.Xc).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.B([_.V(_.zk),_.v("design:type",Object)],w$.prototype,"ironButtonState",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],w$.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],w$.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],w$.prototype,"avatarSize",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],w$.prototype,"ariaLabel",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],w$);
_.n(w$,"ytd-channel-avatar-editor",function(){if(ziS!==void 0)return ziS;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ziS=O},{mode:1});var rSa=_.K(function(O){var x=O.data;var e=O.noPadding;var l=O.enableBanner;var C=O.cinematicContainerTopbarOffset;var Q=O.allowCinematicContainerOverflow;var L=O.displayAsSidebar;O=O.className;_.uo(function(){x().tagManagerId&&(_.Yq(x().tagManagerId,_.wz("GL")),kHk(x().tagManagerId))},"vUc8md");
var k=_.L5(QSI,function(){return x().pageHeaderEntityKey});
return _.D("yt-page-header-renderer",{class:_.xz("pageHeaderRendererHost",O)},_.D(_.MR,{data:function(){var M;return((M=k())==null?0:M.header)?k().header:(L==null?0:L())&&x().sidebarContent?x().sidebarContent:x().content}},{pageHeaderViewModel:function(M){return _.D(_.x$T,{data:M.data,
noPadding:e,enableBanner:l,cinematicContainerTopbarOffset:C,allowCinematicContainerOverflow:Q,displayAsSidebar:function(){return(L==null?void 0:L())&&x().enableSidebarView}})}}))},"Om");
rSa.idomCompat=!0;_.wP(rSa,"yt-page-header-renderer",{props:{data:_.Ld,noPadding:_.Ld,enableBanner:_.Ld,cinematicContainerTopbarOffset:_.Ld,allowCinematicContainerOverflow:_.Ld,displayAsSidebar:_.Ld,className:_.Ld}});_.wP(_.li,"yt-image-banner-view-model",{props:{data:_.Ld,isPositionRelative:_.Ld}});_.wP(_.twO,"yt-tab-group-shape",{props:{shape:_.Ld}});var Hxk=_.at.persistentPanelVisibleSelector,SY=function(){var O=_.a.apply(this,arguments)||this;O.expandableCustomTabRenderable=function(x){return CIw(x,function(){return void O.onSearchNavigate()})};
O.isRichGrid=!1;O.isConstrainedList=!1;O.richGridMiniMode=!1;O.richGridStyle="RICH_GRID_STYLE_UNKNOWN";O.isRichGridShorts=!1;O.responsiveSizing="COMPACT";O.disableGridStateAware=!1;O.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return O};
_.c(SY,_.a);_.b=SY.prototype;_.b.computeHeaderDisabled=function(O,x){return x||!O||this.tabsHidden};
_.b.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.b.computeIsRichGridShorts=function(O){return O==="RICH_GRID_STYLE_SHORTS_GRID"||O==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.b.computeImageBannerViewModel=function(){var O,x;return _.q((x=_.q((O=this.data)==null?void 0:O.content,_.Q03))==null?void 0:x.banner,_.$A2)};
_.b.computeHasCinematicContainer=function(){var O,x;return!((x=_.q((O=this.data)==null?void 0:O.content,_.Q03))==null||!x.background)};
_.b.handleHeaderResize=function(){var O=_.$U(this.hostElement).querySelector("#header");O&&_.wr(O,"iron-resize")};
_.b.handleInsertTabCommand=function(O){var x=_.q(O,asw);x&&(x.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(e){return e.tabRenderer&&e.tabRenderer.tabIdentifier===x.tabIdentifier})||this.splice("tabs",x.tabIndex||-1,0,x.tab))};
_.b.handleRefreshChannelTabAction=function(O){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===O&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.b.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.b.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.lH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.b.observerRichGridSlimItemsPerRow=function(){_.lH(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.b.updateCssVars=function(){this.richGridItemsPerRow&&_.lH(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.yF("rich_grid_max_item_width",500))+16)-16+"px"})};
_.b.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.lH(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.b.onDataChanged=function(){this.handleHeaderResize()};
_.b.onWindowResize=function(){this.handleHeaderResize()};
_.b.onFocusedChanged=function(O){(O=_.uK(O))&&O.is==="tp-yt-paper-tab"&&O.hasRipple()&&(O.getRipple().holdDown=!O.pointerDown&&O.focused)};
_.b.updateSelectedFromBinding=function(O){this.ytdTabbedHeaderBehavior.selected=O.detail.value};
_.b.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Dy.Object.defineProperties(SY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Tkh(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.imageBannerViewModel)==null?void 0:O.style)==="IMAGE_BANNER_STYLE_INSET"}}});
SY.prototype.onDataChanged=SY.prototype.onDataChanged;SY.prototype.updateCssVarsForResponsiveGrid=SY.prototype.updateCssVarsForResponsiveGrid;SY.prototype.updateCssVars=SY.prototype.updateCssVars;SY.prototype.observerRichGridSlimItemsPerRow=SY.prototype.observerRichGridSlimItemsPerRow;SY.prototype.observerRichGridItemsPerRow=SY.prototype.observerRichGridItemsPerRow;SY.prototype.persistentPanelVisibleChanged=SY.prototype.persistentPanelVisibleChanged;
_.B([_.V(_.lZ),_.v("design:type",Object)],SY.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.V(mTS),_.v("design:type",Object)],SY.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],SY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],SY.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],SY.prototype,"ytdReduxBehavior",void 0);_.B([_.kX("#tabs"),_.v("design:type",Object)],SY.prototype,"tabsElement",void 0);_.B([_.R(),_.v("design:type",Array)],SY.prototype,"tabs",void 0);_.B([_.R(),_.v("design:type",Object)],SY.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.p("tabs.*"),_.v("design:type",Object),_.v("design:paramtypes",[])],SY.prototype,"tabGroupShape",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SY.prototype,"isRichGrid",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SY.prototype,"isConstrainedList",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Object)],SY.prototype,"richGridMiniMode",void 0);_.B([_.R({selector:function(O){return O.ui.richGridStyle}}),
_.v("design:type",Object)],SY.prototype,"richGridStyle",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.v("design:type",Object)],SY.prototype,"isRichGridShorts",void 0);_.B([_.R({selector:_.qc}),_.v("design:type",Number)],SY.prototype,"richGridItemsPerRow",void 0);_.B([_.R({selector:function(O){return O.ui.richGridContainerWidth}}),
_.v("design:type",Number)],SY.prototype,"richGridContainerWidth",void 0);_.B([_.R({selector:_.ptW}),_.v("design:type",Number)],SY.prototype,"richGridSlimItemsPerRow",void 0);_.B([_.R(),_.v("design:type",Object)],SY.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SY.prototype,"responsiveSizing",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],SY.prototype,"disableGridStateAware",void 0);
_.B([_.R({computed:"computeImageBannerViewModel(data)"}),_.v("design:type",Object)],SY.prototype,"imageBannerViewModel",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.v("design:type",Boolean)],SY.prototype,"hasCinematicContainer",void 0);_.B([_.R({selector:_.l9h,reflectToAttribute:!0}),_.v("design:type",Boolean)],SY.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.R({selector:Hxk}),_.v("design:type",Boolean)],SY.prototype,"persistentPanelVisible",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("imageBannerViewModel"),_.v("design:type",Object),_.v("design:paramtypes",[])],SY.prototype,"hasBanner",null);_.B([_.R({reflectToAttribute:!0}),_.p("imageBannerViewModel"),_.v("design:type",Object),_.v("design:paramtypes",[])],SY.prototype,"hasInsetBanner",null);
_.B([_.R({computed:"computeTabsHidden(tabs)",value:!0}),_.v("design:type",Boolean)],SY.prototype,"tabsHidden",void 0);_.B([_.T1("persistentPanelVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SY.prototype,"persistentPanelVisibleChanged",null);_.B([_.T1("richGridItemsPerRow","isRichGrid"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SY.prototype,"observerRichGridItemsPerRow",null);
_.B([_.T1("richGridSlimItemsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SY.prototype,"observerRichGridSlimItemsPerRow",null);_.B([_.T1("richGridItemsPerRow","richGridMiniMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SY.prototype,"updateCssVars",null);
_.B([_.T1("richGridContainerWidth"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SY.prototype,"updateCssVarsForResponsiveGrid",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],SY.prototype,"onDataChanged",null);_.B([_.H({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],SY);
_.n(SY,"ytd-tabbed-page-header",function(){if(RiE!==void 0)return RiE;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return RiE=O},{mode:1});var KgI;var jY=function(){return _.a.apply(this,arguments)||this};
_.c(jY,_.a);jY.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.lH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Dy.Object.defineProperties(jY.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var O,x;return this.componentBehavior.computeIcon_(((x=_.q((O=this.data)==null?void 0:O.badge,_.kkT))==null?void 0:x.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.badge,_.kkT))==null?void 0:x.label}}});
jY.prototype.observerRichGridItemsPerRow=jY.prototype.observerRichGridItemsPerRow;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],jY.prototype,"componentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],jY.prototype,"ytdReduxBehavior",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.th}),_.v("design:type",Boolean)],jY.prototype,"richGridMiniMode",void 0);
_.B([_.R({selector:_.qc}),_.v("design:type",Number)],jY.prototype,"richGridItemsPerRow",void 0);_.B([_.R(),_.v("design:type",Object)],jY.prototype,"data",void 0);_.B([_.T1("richGridItemsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jY.prototype,"observerRichGridItemsPerRow",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jY.prototype,"badgeIconName",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],jY.prototype,"badgeLabel",null);_.B([_.H({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],jY);
_.n(jY,"ytd-member-hub-profile-renderer",function(){if(KgI!==void 0)return KgI;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return KgI=O},{mode:1});var dxT;var N7=function(){return _.a.apply(this,arguments)||this};
_.c(N7,_.a);N7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],N7.prototype,"data",void 0);_.B([_.H({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],N7);
_.n(N7,"ytd-settings-sidebar-renderer",function(){if(dxT!==void 0)return dxT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return dxT=O},{mode:1});var nSk;var g$=function(){var O=_.a.apply(this,arguments)||this;O.expandableCustomTabRenderable=function(x){return CIw(x,function(){return void O.onSearchNavigate()})};
return O};
_.c(g$,_.a);g$.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
g$.prototype.onSearchNavigate=function(){this.selected=void 0};
g$.prototype.onTabsChange=function(){var O,x=(O=this.tabs)==null?void 0:O.findIndex(function(e){var l;return e==null?void 0:(l=e.tabRenderer)==null?void 0:l.selected});
x!==void 0&&(this.selected=x)};
g$.prototype.onTabsActive=function(O){if(this.tabs!==void 0){var x,e;(O=(x=this.tabs[O.detail.selected])==null?void 0:(e=x.tabRenderer)==null?void 0:e.endpoint)&&_.wr(this.hostElement,"yt-navigate",{endpoint:O})}};
_.Dy.Object.defineProperties(g$.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Tkh(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
g$.prototype.onTabsChange=g$.prototype.onTabsChange;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.lZ),_.v("design:type",Object)],g$.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],g$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],g$.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Array)],g$.prototype,"tabs",void 0);_.B([_.R(),_.v("design:type",Number)],g$.prototype,"selected",void 0);_.B([_.p("tabs.*"),_.v("design:type",Object),_.v("design:paramtypes",[])],g$.prototype,"tabGroupShape",null);_.B([_.R(),_.v("design:type",Object)],g$.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.p("tabs"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],g$.prototype,"tabsEnabled",null);_.B([_.G1("tabs"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],g$.prototype,"onTabsChange",null);_.B([_.H({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],g$);
_.n(g$,"ytd-topic-channel-details-renderer",function(){if(nSk!==void 0)return nSk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return nSk=O},{mode:1});var uWk;var $9=function(){var O=_.a.apply(this,arguments)||this;O.disableGridStateAware=!1;return O};
_.c($9,_.a);$9.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]]"}}}}}};
$9.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
$9.prototype.updateCssVars=function(){_.lH(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.yF("rich_grid_max_item_width",500))+16)-16+"px"})};
$9.prototype.updateCssVars=$9.prototype.updateCssVars;$9.prototype.activeChanged=$9.prototype.activeChanged;_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],$9.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],$9.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$9.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Array)],$9.prototype,"tabs",void 0);_.B([_.R(),_.v("design:type",Boolean)],$9.prototype,"active",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],$9.prototype,"disableGridStateAware",void 0);
_.B([_.R({selector:_.qc}),_.v("design:type",Number)],$9.prototype,"richGridItemsPerRow",void 0);_.B([_.R({selector:_.th}),_.v("design:type",Boolean)],$9.prototype,"richGridMiniMode",void 0);_.B([_.kX("ytd-carousel-item-renderer"),_.v("design:type",Object)],$9.prototype,"carousel",void 0);_.B([_.T1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$9.prototype,"activeChanged",null);
_.B([_.T1("richGridItemsPerRow","richGridMiniMode"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$9.prototype,"updateCssVars",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],$9);
_.n($9,"ytd-carousel-header-renderer",function(){if(uWk!==void 0)return uWk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return uWk=O},{mode:1});var Yrk;var BXU=_.zo(["https://www.google-analytics.com/analytics.js"]),i5=function(){var O=_.a.apply(this,arguments)||this;O.scriptAnalyticsAdded=!1;return O};
_.c(i5,_.a);i5.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var O,x=(O=this.data)==null?void 0:O.tagManagerId;x&&(_.Yq(x,_.wz("GL")),kHk(x))};
i5.prototype.sendGoogleAnalyticsPageview=function(O){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var e=_.vw.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(e)};
var x=window.ga;x("set","page",window.location.pathname);x.l=+new Date;x("set","forceSSL",!0);x("create",O,"'auto'");x("send","pageview")};
i5.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var O=_.R9("SCRIPT");O.name="ga-analytics";var x=_.on(BXU);_.QP(O,x);O.async=!0;_.$U(this.hostElement).appendChild(O)};
i5.prototype.dataChanged=i5.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],i5.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],i5.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],i5);
_.n(i5,"ytd-channel-metadata-renderer",function(){if(Yrk!==void 0)return Yrk;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Yrk=O},{mode:1});var vSU;var ftw;var O6=function(){var O=_.a.apply(this,arguments)||this;O.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"]);O.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"]);O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return O};
_.c(O6,_.a);_.b=O6.prototype;_.b.attached=function(){this.requestElementsPerRow()};
_.b.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_]]"}}}}}};
_.b.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O)};
_.b.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.b.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.b.computeAlertStyle_=function(O){return O};
_.b.observerElementsPerRow=function(){this.elementsPerRow&&_.lH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.b.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.b.requestElementsPerRow=function(){_.wr(this.hostElement,"yt-request-elements-per-row")};
O6.prototype.onIsVisibleChanged_=O6.prototype.onIsVisibleChanged_;O6.prototype.observerElementsPerRow=O6.prototype.observerElementsPerRow;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],O6.prototype,"actionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],O6.prototype,"data",void 0);_.B([_.R({value:6,reflectToAttribute:!0}),_.v("design:type",Number)],O6.prototype,"elementsPerRow",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],O6.prototype,"wrapButtons",void 0);_.B([_.R({value:_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.v("design:type",Boolean)],O6.prototype,"isMusic",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.v("design:type",String)],O6.prototype,"alertStyle",void 0);_.B([_.R({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.v("design:type",Function)],O6.prototype,"dismissBoundButtonTap_",void 0);_.B([_.R({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.v("design:type",Function)],O6.prototype,"acceptBoundButtonTap_",void 0);_.B([_.T1("elementsPerRow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],O6.prototype,"observerElementsPerRow",null);_.B([_.T1("data.isVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],O6.prototype,"onIsVisibleChanged_",null);_.B([_.Va({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],O6);
_.n(O6,"yt-alert-with-actions-renderer",function(){if(ftw===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;vSU===void 0&&(vSU=document.createElement("template"));var l=vSU;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ftw=O}O=ftw;return O},{mode:2});_.wP(_.K(function(O){function x(Z){var E={};return _.D(_.TT,{text:Z,className:_.xz("ytPersonalGreetingViewModelHeadline",(E.ytPersonalGreetingViewModelHeadlineSmall=function(){return k()===48},E))})}
function e(Z,E){return _.D("span",{el:Z,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},x(E))}
var l=_.Y0(_.P8(function(){var Z;return(Z=O.data())==null?void 0:Z.rendererContext},void 0,void 0,void 0,!0)),C=_.Q5("span"),Q=_.Q5("span"),L=function(){return O.data().canvasPromoData},k=function(){var Z;
return(Z=O.data().bannerHeight)!=null?Z:56},M=_.zBV(l,{throttleMs:100}),G=_.zBV(C,{throttleMs:100}),X=_.zBV(Q,{throttleMs:100}),y=function(){return G.width()-M.width()>1};
return _.D("yt-personal-greeting-view-model",{el:l,"aria-hidden":y,class:_.xz(O.className,"ytPersonalGreetingViewModelHost"),style:_.T7({height:(0,_.Nm)(function(){return y()?0:k()})})},_.D(_.F,{cond:function(){return O.data().avatar&&!(X.width()+(O.data().avatar?48:0)-M.width()>1)},
then:function(){return _.D(_.MR,{data:function(){return O.data().avatar}},{decoratedAvatarViewModel:function(Z){return _.D(_.Nz,{data:Z.data,
className:_.xz("ytPersonalGreetingViewModelAvatar")})}})}}),_.D("h1",null,x(function(){var Z;
return(L==null?void 0:(Z=L())==null?void 0:Z.headline)||(X.width()+(O.data().avatar?48:0)-M.width()>1?O.data().shorterGreeting:O.data().greeting)})),e(Q,function(){return O.data().greeting}),e(C,function(){return O.data().shorterGreeting}))},"Pm"),"yt-personal-greeting-view-model",{props:{data:_.Ld,
className:_.Ld}});var x1=function(){var O=_.a.apply(this,arguments)||this;O.hidden=!1;O.isConstrainedList=!1;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.responsiveSizing="COMPACT";O.attachedPlayers=_.t("kevlar_channel_trailer_multi_attach")?[]:void 0;O.player=null;O.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return O};
_.c(x1,_.a);_.b=x1.prototype;
_.b.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}}}}};
_.b.created=function(){var O=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){O.disposeMastheadAd()}]};
_.b.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new hzc(this.refresh,this.contents))};
_.b.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.b.activeChanged=function(){var O=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=O)};
_.b.tabsChanged=function(){var O=this,x,e;if(this.pageSubtype==="channels"||_.t("kevlar_tab_gestures_for_tabbed_header_data")&&((x=this.data)==null?0:(e=x.header)==null?0:e.carouselHeaderRenderer))this.tabGestures=new HU7(this.contents,this.contents,this.hostElement,this.header,function(L){O.ytdReduxBehavior.dispatch(L)});
var l,C,Q;x=(l=this.data)==null?void 0:(C=l.contents)==null?void 0:(Q=C.twoColumnBrowseResultsRenderer)==null?void 0:Q.tabs;this.tabGestures&&this.tabGestures.tabsChanged(x)};
_.b.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.b.engagementPanelsChanged=function(){var O=_.GG().resolve(_.Bm);if(O){if(this.engagementPanels)for(var x=_.T(this.engagementPanels),e=x.next();!e.done;e=x.next()){var l=void 0;(e=(l=e.value.identifier)==null?void 0:l.tag)&&O.panelMap.delete(e)}this.engagementPanels=[];var C;x=_.T(((C=this.data)==null?void 0:C.panels)||[]);for(C=x.next();!C.done;C=x.next()){C=_.q(C.value,_.xhH);var Q=e=void 0,L=void 0,k=void 0;if(l=((e=C)==null?void 0:e.targetId)||((Q=C)==null?void 0:Q.panelIdentifier)||((L=C)==
null?void 0:(k=L.identifier)==null?void 0:k.tag))Q=e=void 0,(Q=(e=O).registerPanelContent)==null||Q.call(e,l,{engagementPanelSectionListRenderer:C}),this.engagementPanels.push(C)}}};
_.b.onStampFinished=function(){var O=this;_.A_(this,function(){if(O.tabGestures){var x=O.tabGestures;if(x.scrollPositionNeedsUpdate){var e=_.GG().resolve(_.D0(_.Be)),l;if((l=x.selectedTab)!=null&&l.title&&e&&(l=e.getCurrentPage())){if(x.scrollPositionForTabs.has(x.selectedTab.title)){var C,Q;e=(Q=(C=e.getCurrentPage())==null?void 0:C.clientHeight)!=null?Q:0;C=x.scrollPositionForTabs.get(x.selectedTab.title);l.setScrollTop(C);e>C+100&&(x.scrollPositionNeedsUpdate=!1)}else l.setScrollTop(Math.min(x.lastVisitedTabScrollPosition!==
void 0?x.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,x.tabsStartAtInPx)),x.scrollPositionNeedsUpdate=!1;x.ytdReduxDispatch(Loo(!1))}}}})};
_.b.loadPage_=function(O){this.initCsi();O&&(this.data=O);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.b.getTitle=function(O){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",O))return this.get("microformat.microformatDataRenderer.title",O);if(this.get("header.feedTabbedHeaderRenderer.title",O))return _.db(this.get("header.feedTabbedHeaderRenderer.title",O));if(this.get("header.interactiveTabbedHeaderRenderer.title",O))return this.get("header.interactiveTabbedHeaderRenderer.title",O);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
O))return _.db(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",O));var x,e;return(O==null?0:(x=O.header)==null?0:(e=x.pageHeaderRenderer)==null?0:e.pageTitle)?O.header.pageHeaderRenderer.pageTitle:""};
_.b.updateTitle=function(O){_.wr(this.hostElement,"yt-update-title",this.getTitle(O))};
_.b.initCsi=function(){_.OUa(this.pageSubtype||"browse",["ol","cpt"])};
_.b.getPlayer=function(){if(_.t("kevlar_channel_trailer_multi_attach")){for(var O=_.T(this.attachedPlayers),x=O.next();!x.done;x=O.next())if(x=x.value,x.isConnected||_.$8(this.hostElement,x))return x;return null}return this.player};
_.b.getPlayerContainer=function(){return null};
_.b.onPlayerAttached=function(O,x){_.t("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(x):this.player=x};
_.b.onPlayerDetached=function(O,x){_.t("kevlar_channel_trailer_multi_attach")?(O=this.attachedPlayers.indexOf(x),O<0||this.attachedPlayers.splice(O,1)):this.player=null};
_.b.getServiceTrackingParams=function(){var O,x;return((O=this.data)==null?void 0:(x=O.responseContext)==null?void 0:x.serviceTrackingParams)||[]};
_.b.setMastheadAd=function(O){O&&O.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=O&&O.mastheadAd};
_.b.dataChanged=function(){var O=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.fQa();_.A_(this,function(){_.jh(O.hostElement,"ytd-update-grid-state-action")})};
_.b.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.b.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var O=this.data.alerts;return O&&O.find(function(x){return!!x.alertWithActionsRenderer})}};
_.b.computeGreetingData=function(){if(this.data&&this.data.alerts){var O=this.data.alerts;return O&&O.find(function(x){return!!x.personalGreetingViewModel})}};
_.b.computeHasMemberHubProfileRenderer=function(O){var x;return!!(O==null?0:(x=O.header)==null?0:x.memberHubProfileRenderer)};
_.b.handleAlertCommand=function(O){this.get("alertCommand.alert.alertWithActionsRenderer",O)&&(O=_.q(O,ZUk),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",O.alert))};
_.b.handleYtPlaylistDeletionRedirect=function(O){O=this.get("playlistDeletionRedirectCommand.redirectEndpoint",O);_.wr(this.hostElement,"yt-navigate",{endpoint:O})};
_.b.computeFluidWidth=function(O,x,e){if(x==="mini_app"||e)return!0;var l,C,Q;O=O==null?void 0:(l=O.contents)==null?void 0:(C=l.twoColumnBrowseResultsRenderer)==null?void 0:(Q=C.tabs)==null?void 0:Q.find(function(M){var G;return M==null?void 0:(G=M.tabRenderer)==null?void 0:G.selected});
if(!O)return!1;var L,k;return!!((L=O.tabRenderer)==null?0:(k=L.content)==null?0:k.richGridRenderer)&&!["channel","channels","playables"].includes(x)};
_.b.computeHeaderFluidWidth=function(O){return O==="hashtag-landing-page"};
_.b.computeHasSidebar=function(O){var x;return!!(O.sidebar||((x=O.header)==null?0:x.playlistHeaderRenderer))};
_.b.computeHasPageHeaderSidebar=function(O){var x,e;return!!((x=O.header)==null?0:(e=x.pageHeaderRenderer)==null?0:e.enableSidebarView)};
_.b.computeUseUnifiedShowPageLayout=function(O){if(!O||this.pageSubtype!=="show"||!O.sidebar||!O.sidebar.playlistSidebarRenderer)return!1;O=O.sidebar.playlistSidebarRenderer;if(!O.items)return!1;for(var x=0;x<O.items.length;x++)if(_.q(O.items[x],qho)){var e=void 0;return((e=_.q(O.items[x],qho))==null?void 0:e.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.b.computeIsConstrainedList=function(O){return _.t("web_enable_constrained_list_subscriptions_channels")&&O==="subscriptions-channels"};
_.b.computeResponsiveSizing=function(O){return O==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Dy.Object.defineProperties(x1.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var O,x;return((O=this.data)==null?0:(x=O.header)==null?0:x.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var O,x;if(!((O=this.data)==null?0:(x=O.sidebar)==null?0:x.playlistSidebarRenderer))return!1;var e;return(e=this.data)!=null&&e.header?!1:!0}}});
_.Dy.Object.defineProperties(x1,{template:{configurable:!0,enumerable:!0,get:function(){if(KoE===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);KoE=O}O=KoE;return O}}});
x1.prototype.dataChanged=x1.prototype.dataChanged;x1.prototype.onPlayerDetached=x1.prototype.onPlayerDetached;x1.prototype.onPlayerAttached=x1.prototype.onPlayerAttached;x1.prototype.onStampFinished=x1.prototype.onStampFinished;x1.prototype.engagementPanelsChanged=x1.prototype.engagementPanelsChanged;x1.prototype.scrollAtTopChanged=x1.prototype.scrollAtTopChanged;x1.prototype.tabsChanged=x1.prototype.tabsChanged;x1.prototype.activeChanged=x1.prototype.activeChanged;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],x1.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],x1.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.b5.YtPageBehavior),_.v("design:type",Object)],x1.prototype,"ytPageBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],x1.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],x1.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],x1.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],x1.prototype,"hidden",void 0);
_.B([_.R(),_.v("design:type",Object)],x1.prototype,"mastheadAdData",void 0);_.B([_.R({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.v("design:type",Object)],x1.prototype,"alertBannerData",void 0);_.B([_.R({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.v("design:type",Object)],x1.prototype,"greetingData",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],x1.prototype,"pageSubtype",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.v("design:type",Boolean)],x1.prototype,"hasMemberHubProfileRenderer",void 0);_.B([_.R({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],x1.prototype,"hasSidebar",void 0);_.B([_.R({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],x1.prototype,"hasPageHeaderSidebar",void 0);
_.B([_.R({reflectToAttribute:!0,value:!0}),_.v("design:type",Boolean)],x1.prototype,"roundedContainer",void 0);_.B([_.R({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],x1.prototype,"useUnifiedShowPageLayout",void 0);_.B([_.R({computed:"computeIsConstrainedList(pageSubtype)"}),_.v("design:type",Object)],x1.prototype,"isConstrainedList",void 0);
_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],x1.prototype,"usePlaylistHeaderRenderer",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],x1.prototype,"useOldPlaylistSidebarRenderer",null);_.B([_.R({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.v("design:type",Boolean)],x1.prototype,"fluidWidth",void 0);_.B([_.R({selector:function(O){return O.ui.scrollAtTop}}),
_.v("design:type",Boolean)],x1.prototype,"scrollAtTop",void 0);_.B([_.R({selector:_.CDL}),_.v("design:type",Boolean)],x1.prototype,"tabGesturesIsActive",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],x1.prototype,"darkerDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.v("design:type",Boolean)],x1.prototype,"disableHeaderFluidWidth",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.v("design:type",String)],x1.prototype,"responsiveSizing",void 0);_.B([_.kX("ytd-two-column-browse-results-renderer"),_.v("design:type",HTMLElement)],x1.prototype,"contents",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],x1.prototype,"header",void 0);_.B([_.kX("ytd-refresh"),_.v("design:type",Object)],x1.prototype,"refresh",void 0);
_.B([_.T1("active"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x1.prototype,"activeChanged",null);_.B([_.T1("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x1.prototype,"tabsChanged",null);_.B([_.T1("scrollAtTop"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x1.prototype,"scrollAtTopChanged",null);
_.B([_.R(),_.v("design:type",Object)],x1.prototype,"engagementPanels",void 0);_.B([_.T1("data.panels"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x1.prototype,"engagementPanelsChanged",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x1.prototype,"onStampFinished",null);
_.B([_.bH("yt-player-attached"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Element]),_.v("design:returntype")],x1.prototype,"onPlayerAttached",null);_.B([_.bH("yt-player-detached"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Element]),_.v("design:returntype")],x1.prototype,"onPlayerDetached",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x1.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-browse"})],x1);_.cr.registerService(_.SH$,x1);
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("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 Su,Ose,xQ4,epT,lCp,CHw,QHw,bsQ,TqT,LSQ,k1e,AYL,MUh,G1Y,FSL,oXw,yYQ,ZsL,tUw,qwQ,PH$,cYh,ju,VUY,NN,pZ4,Rpp,UQh,aC$,mQY,WSu,zpe,sHw,DQO,rYL,Hsw,KSQ,dQT,nXu,u9p,Ywh,BqL,vX$,JYX,wZu,jHe,gXp,isT,O_L,xj$,laY,Ql4,b_u,TPp,Lep,kOh,ABX,Mfh,DjL,GOX,FeL,Xsh,o0e,yB$,Z_u,E0w,tfh,qxw,PV4,cBh,Vfe,psL,R9Q,Uj4,aaL,mjQ,slL,WeQ,h9L,z9w,rBL,H_p,Keu,djL,n0L,uvO,YxL,BPY,v0Q,fae,JBQ,wse,Sxh,jlQ,Qk,NPL,g0w,O7Q,k7L,G7p,FuO,Eze,teT,Z7p,ozO,Il$,RPe,hP$,Xe$,alL,Ve4,Ma,rIQ,d54,Y1p,nzX,unp,BSQ,wep,fl$,S1O,j2T,JIX,vzL,NSO,XO,
oQ,ej4,lcL,yk,Cwp,QtX,b5Q,DRT,GAY,ZW,EV,X8L,F8p,opp,yAQ,Z5u,EpO,tr,qa,PV,Rjp,URT,acu,IQ,zjQ,mRL,hjQ,rAX,stL,K84,W8L,uQw,dR$,npL,Vk,BYh,Y9Y,w8u,gp4,aQ,m$,jth,i5w,NYL,$Re,WV,zh,rs,HV,tKO,AiL,cip,IwL,VKL,pbO,USw,Q$L,bML,nJ,Lzh,KJ,ds,k_e,R24,qMO,Tju,Yt,HMQ,dSQ,nVL,Kzu,WzX,YML,fw$,ws,fJ,Jr,SMY,s$L,jM,vVL,h2Y,Bjp,riX,mSh,z2O,NjQ,gVw,$Su,OI$,eJw,lrL,CgQ,QLe,TCL,bIp,koL,AtO,DoL,GoO,XNe,oQL,ytw,ZIT,EQO,t1p,qeh,ctT,PgL,IrX,pNQ,RJu,$t,Uoh,arL,iM,mou,sLX,W6Q,hJQ,zJX,rtp,HIY,K6w,nQ4,OP,uuX,Yee,fru,wNL,SeQ,NCQ,
jL$,gQ4,$oQ,iIQ,xiO,eIQ,lOO,Cmh,QKL,b0L,T4L,Lt4,kBw,AOO,MJh,DiL,oiL,yOT,Ftw,XMe,GBX,Z04,qap,EiT,tJY,IO4,Pmp,cO4,VJh,pML,RIO,Ui4,miQ,sKe,WtL,zIh,rOw,KtL,niQ,Yap,viL,JO4,SaO,N4w,$iL,xp4,e0u,lgX,QsY,CfQ,TpX,Lnh,k3L,AlT,e9,MW4,DpX,G3u,cl$,VWL,pSY,mp$,T4,ssu,Wn4,h0T,rlL,z0h,Hlu,KnQ,dp$,n4Q,ube,bM,Y5T,LD,B4p,BpQ,v4L,$QL,fgT,Jlu,wSp,S5L,jsT,Np$;
Su=function(O){if(!O)return"browse";var x=O.page,e=O.url,l,C,Q,L=(l=O.response)==null?void 0:(C=l.responseContext)==null?void 0:(Q=C.webResponseContextExtensionData)==null?void 0:Q.pageTheme;if(L)x=L.toLowerCase().replace(/_/g,"-");else if(x!=="watch"&&x!=="learning_journey_watch"){var k,M;if((x==="browse"||x==="settings")&&((k=O.response)==null?0:(M=k.sidebar)==null?0:M.settingsSidebarRenderer))x="WEB_PAGE_TYPE_SETTINGS";else{var G,X;x==="browse"&&((G=O.response)==null?0:(X=G.metadata)==null?0:X.channelMetadataRenderer)?
x="channel":e&&(x=_.C6w(e)||x)}}return x};
Ose=function(){var O=_.i8("yt.aba.att");return O?O:_.pW.instance!==void 0?_.pW.instance.xUy.bind(_.pW.instance):null};
xQ4=function(O,x){var e;return _.A(function(l){return(e=Ose())?l.return(e(O,x,6E4)):l.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
epT=function(O,x,e,l,C){x=x===void 0?[]:x;C=C?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:C}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.J3(O),dialogMessages:x.map(function(Q){return _.J3(Q)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.J3(e),serviceEndpoint:C}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.J3(l)}}}}}};
lCp=function(O){var x=!!_.lX().queueProxy;var e,l,C;O=O==null?void 0:(e=O.response)==null?void 0:(l=e.currentVideoEndpoint)==null?void 0:(C=l.watchEndpoint)==null?void 0:C.playlistId;return!(!x&&!O)};
CHw=function(O,x){var e=_.U7();if(lCp(O)&&!_.t("web_watch_disable_playlist_auto_miniplayer"))return e.playlistWatchPageActivation=!0;switch(Su(x)){case "yts-products":return e.productDetailsPageActivation=!0;case "mini_app":return e.miniAppPageActivation=!0;case "playables":return e.playablesDestPageActivation=!0;case "companion-canvas":return e.companionCanvasActivation=!0;default:return!1}};
QHw=function(O){O=_.T7r(O);O.length>0&&O[0].focus()};
bsQ=function(O,x,e){for(var l=typeof O==="string"?O.split(""):O,C=O.length-1;C>=0;--C)C in l&&x.call(e,l[C],C,O)};
TqT=function(O,x){x=_.U$w(O,x);x>=0&&_.smr(O,x)};
LSQ=function(O){return Array.prototype.concat.apply([],arguments)};
k1e=function(O){var x=0;x=x===void 0?0:x;if(!_.iF(O))throw _.xd("uint64");var e=typeof O;switch(x){case 512:switch(e){case "string":return _.W3i(O);case "bigint":return String((0,_.y$)(64,O));default:return _.mkr(O)}case 1024:switch(e){case "string":return _.hLi(O);case "bigint":return _.rN((0,_.y$)(64,O));default:return _.szL(O)}case 0:switch(e){case "string":return _.W3i(O);case "bigint":return _.rN((0,_.y$)(64,O));default:return _.aDw(O)}default:return _.vd(x,"Unknown format requested type for int64")}};
AYL=function(O){O!=null&&(O=O.JSC$8815_value_||"",O=typeof O==="string"?O:new Uint8Array(O));return O};
MUh=function(O,x){if(/-[a-z]/.test(x))return null;if(_.NcL&&O.dataset){if(_.EWi()&&!(x in O.dataset))return null;O=O.dataset[x];return O===void 0?null:O}return O.getAttribute("data-"+_.Qo(x))};
G1Y=function(){var O=DQO;_.i8("yt.ads.biscotti.getId_")||_.MB("yt.ads.biscotti.getId_",O)};
FSL=function(O){_.MB("yt.ads.biscotti.lastId_",O)};
oXw=function(){var O={};for(_.uu=new XZL(O.handleError===void 0?_.vH:O.handleError,O.logEvent===void 0?_.uU:O.logEvent);_.Yc.length>0;)switch(O=_.Yc.shift(),O.type){case "ERROR":_.uu.logError(O.payload);break;case "EVENT":_.uu.logEvent(O.eventType,O.payload)}};
yYQ=function(O,x,e){return _.AhN(function(l){return e?l.userIdentifier!==void 0&&!O.includes(l.userIdentifier)&&e.includes(l.publicName):l.userIdentifier!==void 0&&!O.includes(l.userIdentifier)},x)};
ZsL=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return x=_.hq("YtIdbMeta hasAnyMeta other"),l.yield(_.AhN(function(C){return C.userIdentifier!==void 0&&C.userIdentifier!==x},O),2);
e=l.yieldResult;return l.return(e.length>0)})};
tUw=function(O,x){EXw||(EXw=_.vn.addLowPriorityJob(function(){var e,l,C,Q,L;return _.A(function(k){switch(k.nextAddress){case 1:return k.yield(_.DG(),2);case 2:e=k.yieldResult;if(!e)return k.return();l=!0;_.tS(k,3);return k.yield(yYQ(O,e,x),5);case 5:C=k.yieldResult;if(!C.length){l=!1;k.jumpTo(6);break}Q=C[0];return k.yield(_.C$(Q.actualName),7);case 7:return k.yield(_.TC(Q.actualName,e),6);case 6:_.lb(k,4);break;case 3:L=_.VP(k),_.BK(L),l=!1;case 4:_.vn.cancelJob(EXw),EXw=0,l&&tUw(O,x),_.Ra(k)}})}))};
qwQ=function(){var O;return _.A(function(x){return x.nextAddress==1?x.yield(_.DG(),2):(O=x.yieldResult)?x.return(ZsL(O)):x.return(!1)})};
PH$=function(O){var x=100;x=x===void 0?500:x;var e,l,C,Q,L,k;return _.A(function(M){return M.nextAddress==1?(e=_.wz("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[e,(0,_.F2)()-2592E6],C=[e,(0,_.F2)()],Q=IDBKeyRange.bound(l,C),M.yield(_.Hsr(O),2)):M.nextAddress!=3?(L=M.yieldResult,k=[],M.yield(_.bb(L,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(G){k.length=0;return _.X2(G.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:Q,direction:"prev"},function(X){if(X.getValue()&&k.length<
x)return k.push(X.getValue()),X.delete().then(function(){return X.continue()})})}),3)):M.return(k)})};
cYh=function(){var O;return _.A(function(x){if(x.nextAddress==1)return x.yield(_.DG(),2);O=x.yieldResult;if(!O||!_.zG()&&!_.t("nwl_init_require_datasync_id_killswitch")||!_.e9V())return x.jumpTo(0);_.CVi=!0;_.laL.isNwlInitialized=_.CVi;return x.yield(_.DcD().awaitInitialization(),0)})};
ju=function(O,x){_.qxr[O]=!0;var e=_.FD();e&&e.publish.apply(e,arguments);_.qxr[O]=!1};
VUY=function(){if(_.$wN()&&!ICw){var O=function(e){e=e.data;if(e.op==="serializedGelBatch"){var l=_.Pkm.get(e.key);l&&(_.IlN(e.serializedBatch,l.client,l.resolve,l.networklessOptions,l.isIsolated,l.useVSSEndpoint,l.dangerousLogToVisitorSession,l.requestsOutstanding),_.Pkm.delete(e.key))}},x=_.gU7();
x&&(x.addEventListener("message",O),x.onerror=function(){_.Pkm.clear()});
ICw=!0}};
NN=function(){this.relativeTimeStart_=_.vN()};
pZ4=function(O,x){O!=null&&this.append.apply(this,arguments)};
Rpp=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
UQh=function(O,x,e){e=e===void 0?!1:e;var l,C,Q,L,k;return _.A(function(M){switch(M.nextAddress){case 1:_.sC("SOCS",O,34128E3,"youtube.com",!0);if(_.ig)return C=fetch(x,{method:"POST",mode:_.hs(x),credentials:_.Wq(x),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),Q=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.hs("/upgrade_visitor_cookie?eom=1"),credentials:_.Wq("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),M.yield(Promise.all([C,Q]).then(function(G){return G[1]}),5);
fetch(x,{method:"POST",mode:_.hs(x),credentials:_.Wq(x),cache:"no-store",headers:{"Content-Type":"text/plain"}});return M.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.hs("/upgrade_visitor_cookie?eom=1"),credentials:_.Wq("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:l=M.yieldResult;M.jumpTo(3);break;case 5:l=L=M.yieldResult;case 3:if(!l.ok)throw Error("uf");return M.yield(l.text(),7);case 7:k=M.yieldResult,
!k.includes('"state_switch":true')&&!e||k.includes("skip_reload_for_test")||window.location.reload(),_.Ra(M)}})};
aC$=function(O){return _.A(function(x){return x.nextAddress==1?x.yield(UQh(O.socsCookie,O.savePreferenceUrl,!0),2):x.return()})};
mQY=function(O){return _.A(function(x){return x.nextAddress==1?x.yield(UQh(O.socsCookie,O.savePreferenceUrl),2):x.return()})};
WSu=function(O){O=O.xhr.responseText;if(!_.br(O,")]}'"))throw new gi;O=JSON.parse(O.substr(4));if((O.type||1)>1)throw new gi;O=O.id;FSL(O);$n=_.Co(O);sHw(18E5,2);return O};
zpe=function(O,x){x=new hpY(x);FSL("");$n=_.yXL(x);O>0&&sHw(12E4,O-1);throw x;};
sHw=function(O,x){_.qb(function(){_.Rre().then(WSu,function(e){return zpe(x,e)}).thenCatch(_.Fb)},O)};
DQO=function(){var O=_.mwL();if(O!==void 0)return _.Za(O);$n||($n=_.Rre().then(WSu).thenCatch(function(x){return zpe(2,x)}));
return $n};
rYL=function(){var O=document;return _.r7(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(x){return"on"+x.toLowerCase()in O})};
Hsw=function(O){O.addEventListener("click",function(x){var e=x.target;e&&e.getAttribute("href")&&(e=e.getAttribute("href"),_.$y(window,e,"_blank"),x.preventDefault(),x.stopImmediatePropagation())})};
KSQ=function(O){var x,e,l,C=(l=(e=((x=O.mainDownloadsListEntity)!=null?x:{})[_.Zd7])==null?void 0:e.refresh)!=null?l:"",Q;O=(Q=O.refresh)==null?void 0:Q[C];C=O!=null?O:{};return(C==null?0:C.refreshTime)?Number(C==null?void 0:C.refreshTime):0};
dQT=function(O,x){var e=_.Xx(O);return x.every(function(l){var C;l=l==null?void 0:(C=l.playbackDataEntity)==null?void 0:C.key;if(!l)return!1;C=_.OQ(_.gT(l).entityId,"mainVideoEntity");return!!e[C]})};
nXu=function(O){O=_.DS(O.entities);return _.WGL(O).length};
u9p=function(O,x){if(x){var e;O=(e=_.xE(O.entities,"downloadQualityPickerEntity",x))!=null?e:void 0}else O=void 0;return O};
Ywh=function(O){var x=document.getElementsByTagName("ytd-enforcement-message-view-model");x.length===0||getComputedStyle(x[0]).display==="none"?O(0,"p.h_"):O(1,"p.h_")};
BqL=function(){iv=0;var O=[_.L3(!0)];OV&&_.jh(OV,"yt-window-resized",O)};
vX$=function(){iv||(iv=_.vn.addLowPriorityJob(BqL,200))};
JYX=function(){xt=0;fC4=_.gST(document);var O=[fC4];OV&&_.jh(OV,"yt-window-scrolled",O)};
wZu=function(){xt||(xt=_.vn.addLowPriorityJob(JYX,200))};
jHe=function(O){O=O===void 0?null:O;Sww.push(_.AG(window,"resize",vX$));Sww.push(_.AG(window,"scroll",wZu));O&&(OV=O)};
gXp=function(){var O={isWide:_.mK.get("wide","0")==="1"},x=_.TD();if(x=x.getFlag(165)||x.getFlag(174))O.theme=_.Fo(!0);if(_.yXs()){var e=_.Gu()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";O.systemTheme=e}!x&&_.t("parent_tools_enable_app_settings")&&_.Cb(window.location.href).theme!==void 0&&(O.theme=_.Fo());if((x=eM)?!_.HX.equals(x,O):O)x={currentValue:O},Nqu&&(x.timeSinceLastSnapshotSecs=Math.round(((0,_.F2)()-Nqu)/1E3)),eM&&(x.previousValue=eM),_.uU("appSettingsCaptured",x),eM=O,Nqu=
(0,_.F2)()};
isT=function(){var O=_.ZE.getLocalStorage();O&&$QL(O,O.mechanism.__iterator__(!0))};
O_L=function(O){_.A(function(x){if(x.nextAddress==1)return x.yield(O.delete("yt-appshell-assets"),2);_.Ra(x)})};
xj$=function(O){return _.Q4((0,_.wpD)(),O)};
laY=function(){var O;_.A(function(x){return x.nextAddress==1?x.yield(lM.getInstance(),2):(O=x.yieldResult)?x.yield(e9Q(O),0):x.jumpTo(0)})};
Ql4=function(){var O;_.A(function(x){return x.nextAddress==1?x.yield(CJ.getInstance(),2):(O=x.yieldResult)?x.yield(CVT(O),0):x.jumpTo(0)})};
b_u=function(O){O_L(O);laY();Ql4()};
TPp=function(O){var x,e;return _.A(function(l){if(l.nextAddress==1)return l.yield(_.n6r(O),2);if(x=l.yieldResult){var C;a:{if(x.headers&&(C=x.headers.get("date"))&&(C=Date.parse(C),!isNaN(C))){C=Math.round((0,_.F2)()-C);break a}C=-1}e=C;if(e>-1)return l.return(e)}return l.return(-1)})};
Lep=function(){var O=_.CV.caches,x=_.SS("IS_SHELL_LOAD"),e,l;_.A(function(C){if(C.nextAddress==1)return e=-1,x?C.yield(TPp(O),3):(l=_.FC(),e=Math.round((0,_.F2)()-l),C.jumpTo(2));C.nextAddress!=2&&(e=C.yieldResult);e>=0&&e<2147483648&&_.EO({appInstallDataAgeMs:e});_.Ra(C)})};
kOh=function(O){var x=_.xO(_.CV.location.href),e={};"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(l){var C=x.JSC$10027_queryData_.getValues(l);if(C==null?0:C.length)e[l]=C});
return _.yi(O,new Map(Object.entries(e)))};
ABX=function(O){O=O.match(/(.*)::.*::.*/);if(O!==null)return O[1]};
Mfh=function(O){if(_.CEs()){var x=Object.keys(window.localStorage);x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=ABX(e);l===void 0||O.includes(l)||self.localStorage.removeItem(e)}}};
DjL=function(){if(!_.CEs())return!1;var O=_.hq(),x=Object.keys(window.localStorage);x=_.T(x);for(var e=x.next();!e.done;e=x.next())if(e=ABX(e.value),e!==void 0&&e!==O)return!0;return!1};
GOX=function(O){return _.hz("NotificationsDisabled",O)};
FeL=function(){return Notification.permission!="granted"?Promise.resolve():_.Qyp().then(function(O){return O?O.pushManager.getSubscription().then(function(x){if(x)return Promise.resolve();x={userVisibleOnly:!0,applicationServerKey:_.ir("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return O.pushManager.subscribe(x).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Xsh=function(O){return _.Qyp().then(function(x){if(!x||!x.active)return Promise.reject(new _.ry("serviceworker.postMessage",O,x));try{return x.active.postMessage(O),Promise.resolve()}catch(e){return Promise.reject(e)}})};
o0e=function(){Xsh({type:"notifications_register",data:_.wz("ID_TOKEN")})};
yB$=function(){if(!_.SS("LOGGED_IN"))return Promise.resolve(!1);var O=_.Z0("service_worker_push_force_notification_prompt_tag");return O?_.rt("PromptTags").then(function(x){if(!x)return!0;var e=[];try{e=JSON.parse(x)}catch(l){return!1}return e&&e.indexOf(O)==-1}):Promise.resolve(!1)};
Z_u=function(){var O=_.yF("service_worker_push_prompt_delay_microseconds");return O?_.rt("PromptTime").then(function(x){return Promise.resolve(Date.now()-O>(x||0))}):Promise.resolve(!0)};
E0w=function(){var O=_.yF("service_worker_push_logged_out_prompt_watches");return O==-1?Promise.resolve(!1):_.rt("WatchCount").then(function(x){return x>=O})};
tfh=function(){var O=_.wS(document,"yt-push-prompt-modal-bg");O&&_.Um(O)};
qxw=function(){return _.yF("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.rt("PromptCount").then(function(O){O||(O=0);return Promise.resolve(O<_.yF("service_worker_push_prompt_cap"))})};
PV4=function(O){return _.SS("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.SS("LOGGED_IN")&&(O===void 0?0:O)?yB$().then(function(x){if(x)return!0;x=[qxw(),Z_u()];_.SS("LOGGED_IN")||x.push(E0w());return Promise.all(x).then(function(e){return e.every(function(l){return l})})}):Promise.resolve(!1)};
cBh=function(){_.rt("PromptCount").then(function(O){return _.hz("PromptCount",O+1)}).then(function(){return _.hz("PromptTime",Date.now())}).then(function(){var O=_.Z0("service_worker_push_force_notification_prompt_tag");
if(O)return _.rt("PromptTags").then(function(x){var e=[];if(x)try{e=JSON.parse(x)}catch(l){return!1}e||(e=[]);e.push(O);return _.hz("PromptTags",JSON.stringify(e))})})};
Vfe=function(){IaL||tfh()};
psL=function(O){O.style.zIndex=2147483648;O.style.pointerEvents="auto";O.style.backgroundColor="rgba(0, 0, 0, 0.6)";O.style.width="100%";O.style.height="100vh";O.style.position="absolute";O.style.top="0";O.style.left="0";O.style.border="none"};
R9Q=function(){var O=_.wS(document,"yt-push-prompt-modal-bg");IaL=_.t("service_worker_push_prompt_modal_ignore_click");O?psL(O):(O=_.cS("div",{id:"yt-push-prompt-modal-bg"}),psL(O),document.body.appendChild(O),_.o0L(document,"click",Vfe))};
Uj4=function(){var O=arguments;_.t("service_worker_push_prompt_modal_enable")&&R9Q();return Notification.requestPermission().then(function(x){tfh();var e=document.getElementById("ticker");e&&(e.className=e.classList.remove("show"));if(x=="granted")return FeL().then(function(){GOX(!1);o0e();return Promise.resolve(!0)});
x=="denied"&&o0e();return Promise.resolve(!1)}).catch(function(){tfh();
return Promise.reject.apply(Promise,_.Kx(O))})};
aaL=function(O){O=O===void 0?!1:O;var x=_.P6L().client;if(x&&x.browserVersion){var e=x.browserVersion,l=x.browserName=="CHROME"&&_.om(e,"50.0.0")<0;x=x.browserName=="OPERA"&&_.om(e,"42.0.0")<0;if(l||x)return Promise.resolve()}return _.L1X().then(function(C){if(!C)return Promise.resolve();C=FeL().then(function(){return Xsh({type:"notifications_check_registration",data:_.wz("ID_TOKEN")})});
return Notification.permission!="default"?C.catch(function(){}):C.then(function(){return PV4(O)}).then(function(Q){if(Q)return cBh(),Uj4().then(function(){})}).catch(function(){})})};
mjQ=function(O){return _.bwu(O)?aaL():Promise.resolve()};
slL=function(O){var x=O.installing||O.waiting;return O.active||!x?Promise.resolve(O):new Promise(function(e){var l=function(C){C=C.target;if(C.state==="activated"||C.state==="redundant")x.removeEventListener("statechange",l),e(O)};
x.addEventListener("statechange",l)})};
WeQ=function(){var O=new _.c5i("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.ic(O,{mainAppWeb:_.rO()});var x=_.A$k;_.t("service_worker_forward_exp_params")&&(x=kOh(x));try{var e=_.cHN(x).catch(function(){_.Oe(O,"FAILURE");return new Promise(function(){})});
_.t("service_worker_push_enabled")&&e.then(function(l){_.Oe(O,"SUCCESS");return l}).then(slL).then(mjQ)}catch(l){if(_.Oe(O,"FAILURE"),l.name!=="SecurityError")throw l;
}};
h9L=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&WeQ()};
z9w=function(O,x){var e={};x&&(e.serializedYpcFamilyCreateLoggingParams=x);_.uU(O,e);_.Yb()};
rBL=function(O,x){var e={};e.serializedYpcRefundFlowLoggingParams=x;O&&(e.eventType=O);_.uU("ypcRefundFlowEvent",e);_.Yb()};
H_p=function(O){O&&_.VIN("transactionFlowSucceeded",O)};
Keu=function(O){O&&_.FB("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",O,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
djL=function(O){var x,e,l,C,Q,L,k;_.A(function(M){if(M.nextAddress==1)return M.yield(_.bEn(),2);if(M.nextAddress!=3){if(!M.yieldResult)return M.return(!1);x=[];return M.yield(_.iV.keys(),3)}e=M.yieldResult;l=_.T(e);for(C=l.next();!C.done;C=l.next())Q=C.value,L=_.CSN(Q),k=L.datasyncId,!k||O.includes(k)||x.push(_.iV.delete(Q));return M.return(Promise.all(x).then(function(G){return G.some(function(X){return X})}))})};
n0L=function(){var O,x,e,l,C,Q,L;return _.A(function(k){if(k.nextAddress==1)return k.yield(_.bEn(),2);if(k.nextAddress!=3){if(!k.yieldResult)return k.return(!1);O=_.hq("cache contains other");return k.yield(_.iV.keys(),3)}x=k.yieldResult;e=_.T(x);for(l=e.next();!l.done;l=e.next())if(C=l.value,Q=_.CSN(C),(L=Q.datasyncId)&&L!==O)return k.return(!0);return k.return(!1)})};
uvO=function(){var O=_.GG().resolve(_.D0(_.QQJ));return O?O.getCurrentTime():0};
YxL=function(){var O,x,e,l,C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){switch(P.nextAddress){case 1:O={},x=_.Lqm(),e=_.T(Object.entries(x)),l=e.next();case 4:if(l.done){P.jumpTo(3);break}C=l.value;Q=_.T(C);L=Q.next().value;k=Q.next().value;M=L;G=k;if(!G){P.jumpTo(5);break}return P.yield(G(),8);case 8:O[M]=P.yieldResult;case 5:l=e.next();P.jumpTo(4);break;case 2:X=_.T(),y=X.next();case 9:if(y.done){P.jumpTo(3);break}Z=y.value;E=x[Z];if(!E){P.jumpTo(10);break}return P.yield(E(),13);case 13:O[Z]=P.yieldResult;
case 10:y=X.next();P.jumpTo(9);break;case 3:return P.return(O)}})};
BPY=function(){var O;_.A(function(x){if(x.nextAddress==1)return x.yield(YxL(),2);O=x.yieldResult;return x.yield(navigator.clipboard.writeText(JSON.stringify(O,null,2)),0)})};
v0Q=function(O,x){return _.xE(O.entities,"superThanksSelectedTierEntity",x)};
fae=function(O,x){return{popup:{searchSuggestionReportDialog:{searchQuery:O,title:_.CZ("SBOX_INAPPROPRIATE_TITLE"),suggestions:x,categoryLabel:_.CZ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.CZ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.CZ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.CZ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.CZ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.CZ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.CZ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.CZ("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.CZ("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.CZ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
JBQ=function(O){var x,e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f;return _.A(function(u){switch(u.nextAddress){case 1:return u.yield(_.CA(),2);case 2:return(x=u.yieldResult)?u.yield(_.e37(x),3):u.return();case 3:e=u.yieldResult;if(!e)return u.return();C=((l=e.offlineVideos)==null?void 0:l.length)||0;L=((Q=e.offlinePlaylists)==null?void 0:Q.length)||0;if(C===0&&L===0)return u.return();k=0;if(e.offlineVideos)for(M=_.T(e.offlineVideos),G=M.next();!G.done;G=M.next())X=G.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
X.videoState&&(k+=1);O.offline_videos_count=C.toString();_.t("kevlar_log_offline_current_network_type_ks")||(O.offline_current_network_type=(y=_.dg8())!=null?y:"CONN_INVALID");_.t("kevlar_log_updated_time_for_smart_downloads")&&(Z=_.u9().getState().entities,E=_.EQ(Z),P=KSQ(Z),O.offline_smart_downloads_last_sync_time_ms=E.toString(),O.offline_smart_downloads_next_sync_time_ms=P.toString());O.offline_videos_playable=k.toString();O.offline_playlists_count=L.toString();e.offlineVideos&&(U=e.offlineVideos.reduce(function(Y,
J){J.downloadedBytes&&(Y+=Number(J.downloadedBytes));return Y},0).toString())&&(O.offline_used_disk_space_bytes=U);
if(!((W=navigator)==null?0:(z=W.storage)==null?0:z.estimate)){u.jumpTo(4);break}return u.yield(navigator.storage.estimate(),5);case 5:r=u.yieldResult,O.offline_free_disk_space_bytes=(((f=r)==null?void 0:f.quota)||0).toString();case 4:O.offline_client_state=JSON.stringify(e),_.Ra(u)}})};
wse=function(O){O=O.match(/(.*)::.*::.*/);if(O!==null)return O[1]};
Sxh=function(O){if(_.ZqL()){var x=Object.keys(window.sessionStorage);x=_.T(x);for(var e=x.next();!e.done;e=x.next()){e=e.value;var l=wse(e);l===void 0||O.includes(l)||self.sessionStorage.removeItem(e)}}};
jlQ=function(){if(!_.ZqL())return!1;var O=_.hq(),x=Object.keys(window.sessionStorage);x=_.T(x);for(var e=x.next();!e.done;e=x.next())if(e=wse(e.value),e!==void 0&&e!==O)return!0;return!1};
Qk=function(O,x,e){(_.t("desktop_keyboard_shortcut_usage_log")||e&&_.t("web_shorts_keyboard_shortcut_usage_log"))&&(x?_.di.get(O):_.Kk.get(O))&&(O=x?_.uv.get(O):_.nk.get(O))&&_.KZ(_.Pq(),O)};
NPL=function(O,x){return O.findIndex(function(e){return e.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(x.keyCode):!1};
g0w=function(O,x){x.stack&&(O.stack+="\n"+x.stack);return O};
O7Q=function(O){var x=bM(O,"Content-Type");if(!x)return null;x=x.toLowerCase();if(x.startsWith("application/json"))return x.startsWith("application/json+protobuf")?new $jT:new _.Tk;if(x.startsWith("application/x-protobuf")){O=bM(O,"Content-Transfer-Encoding");if(!O)return new Th;if(O.toLowerCase()=="base64")return new i_X}return null};
k7L=function(O,x,e,l){var C=new x5L(function(k,M){return ePh.has(M)?k.sentinel==="gal"&&k.event!==void 0:!1},function(k){k.event?(k=llL(k.event),k=!k||CkL(l,k)?!0:_.bm(O.lastEvent,LJ,2,kt)?!_.bm(k,Ar,1,kt)&&!_.bm(k,LJ,2,kt):!_.bm(k,Ar,1,kt)&&!_.bm(k,LJ,3,kt)):k=!0;
return k});
e=_.yi(O.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Q2e(e)]]));if(O.nestedOrigins!==void 0)for(var Q=_.T(O.nestedOrigins),L=Q.next();!L.done;L=Q.next())e=_.yi(e,new Map([["origin",L.value]]));return b7h(C,e,x).then(function(k){k=TS4(k.event);if(_.bm(k,Ar,1,kt)){var M,G=(M=_.tO(k,Ar,1,kt))==null?void 0:_.y7(M,2);G&&l.JSC$19622_logErrorEvent(LuQ(G));M=_.tO(k,Ar,1,kt);_.y7(M,2)===4?(k=_.tO(k,Ar,1,kt),k={statusCode:11,statusMessage:_.oK(k,
3)}):(k=_.tO(k,Ar,1,kt),k={statusCode:12,statusMessage:_.oK(k,3)});return k}_.bm(k,LJ,3,kt)?(k=_.tO(k,LJ,3,kt),k={statusCode:1,consentLanguageKeys:_.oK(k,2)}):k={statusCode:1};return k}).catch(function(k){return k.errorCode!==void 0?{statusCode:k.errorCode,
statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
G7p=function(O){var x={};if(O===void 0||O===null)return x;O.getToken()!==void 0&&AIO(O.getToken())&&AIO(O.getToken()).length>0&&(x.scopes=new Set(AIO(O.getToken())));O.getToken()!==void 0&&Mep(O.getToken())&&Mep(O.getToken()).length>0&&(x.capabilities=new Set(Mep(O.getToken())));_.oK(O,3)!==void 0&&(x.consistencyKey=_.oK(O,3));O.getName()!==void 0&&O.getName()!==""&&(x.linkName=O.getName());_.Q7(O,D5p,4)&&(O=_.y4(O,D5p,4),O=Object.assign({},_.oK(O,1)&&{userId:_.oK(O,1)},_.oK(O,2)&&{displayName:_.oK(O,
2)},_.oK(O,3)&&{email:_.oK(O,3)},_.oK(O,5)&&{username:_.oK(O,5)},_.oK(O,4)&&{profilePicture:_.oK(O,4)}),x.profile=O);return x};
FuO=function(O,x){var e=O.flowParams,l;return{serviceId:e.serviceId,sessionId:e.sessionId,currentFlow:O.currentFlow,googleScopesString:x,linkingSessionSerialized:O.session.serialize(),consentLanguageKeys:e.consentLanguageKeys,callerState:O.callerState,dynamicUrlParameters:e.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(l=e.partnerConfigMinReadTimestamp)==null?void 0:l.serialize()}};
Eze=function(O){var x=O.googleScopes!==void 0?Array.from(O.googleScopes).join(","):"";Xe$(FuO(O,x));x=ozO(O);return x===null?Promise.resolve(yIL):x.start().then(function(e){var l,C=(l=e.link)==null?void 0:l.consistencyKey;return e.statusCode===1&&O.googleScopes!==void 0&&O.googleScopes.size>0&&C!==void 0?(l=O.flowParams,Z7p(l.serviceId,l.sessionId,O.googleScopes,C,l.galService,O.config,e)):e})};
teT=function(O){var x=ozO(O);return x===null?Promise.resolve(Ma({statusCode:7,statusMessage:"Failed to create flow object"},O.callerState)):x.complete().then(function(e){var l,C=(l=e.link)==null?void 0:l.consistencyKey;return e.statusCode===1&&O.googleScopes!==void 0&&O.googleScopes.size>0&&C!==void 0?(l=O.flowParams,Z7p(l.serviceId,l.sessionId,O.googleScopes,C,l.galService,O.config,e)):Ma(e,O.callerState)},function(e){return Ma({statusCode:12,
statusMessage:"Failed to complete the flow: "+e.message},O.callerState)})};
Z7p=function(O,x,e,l,C,Q,L){return q1p(C,{serviceId:O,sessionId:x,googleScopes:e,consistencyKey:l}).then(function(){return L},function(k){return C.deleteLink({serviceId:O,
sessionId:x,accountLinkingEntryPoint:Q.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+k.message}},function(M){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+M.message}})})};
ozO=function(O){switch(O.currentFlow){case 1:var x=O.flowParams;O=_.y4(O.session,Pku,1);return DW.createOAuthFlow(x,O);case 2:case 3:return x=O.flowParams,O=_.y4(O.session,cI$,6),Gh.createStreamlinedFlow(x,O);default:return null}};
Il$=function(O,x){O===2&&(O=3);var e=0;FO.indexOf(O)!==-1&&(e=FO.indexOf(O)+1);for(O=e;O<FO.length;O++)if(x.has(FO[O]))return FO[O]};
RPe=function(O){var x=O.serviceId;var e=O.sessionId;var l=O.config;var C=O.galService;var Q=O.capabilities;var L=O.scopes;var k=O.loginHint;var M=O.callerState;var G=O.consentLanguageKeys;var X=O.linkName;var y=O.dynamicUrlParameters;var Z=O.partnerConfigMinReadTimestamp;O=l.dataUsageNoticeConfig?l.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return C.startLinkingSession({serviceId:x,sessionId:e,capabilities:Q,scopes:L,loginHint:k,callerState:M,supportedFlows:Ve4(l.supportedFlows),completionUrl:l.completionUrl,
accountLinkingEntryPoint:l.accountLinkingEntryPoint,consentLanguageKeys:G,dataUsageNoticeConfig:O,linkName:X,dynamicUrlParameters:y,partnerConfigMinReadTimestamp:Z}).then(function(E){return new pep(x,e,l,C,E,void 0,M,G,y,Z)})};
hP$=function(O,x,e){var l=(new U5T).getSession(O);if(l===null)return Promise.resolve({statusCode:2});alL(O);var C=m5$(l.linkingSessionSerialized),Q=l.googleScopesString!==""&&l.googleScopesString!==void 0?new Set(l.googleScopesString.split(",")):void 0,L=l.partnerConfigMinReadTimestampSerialized?s24(l.partnerConfigMinReadTimestampSerialized):void 0;return WuT(new pep(O,l.sessionId,x,e,C,Q,l.callerState,l.consentLanguageKeys,l.dynamicUrlParameters,L),l.currentFlow,l.consentLanguageKeys)};
Xe$=function(O){var x=new U5T;x.storage!==null&&x.storage.set("SAVED_SESSION",O)};
alL=function(O){var x=new U5T;if(x.storage!==null){var e=x.storage.get("SAVED_SESSION");e!==void 0&&e.serviceId===O&&x.storage.remove("SAVED_SESSION")}};
Ve4=function(O){var x=new Set;O=_.T(O);for(var e=O.next();!e.done;e=O.next())e=e.value,e!==1&&zPp.has(e)&&x.add(zPp.get(e));return x};
Ma=function(O,x){x!==void 0&&(O.callerState=x);return O};
rIQ=function(O){switch(O){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
d54=function(O){return new H7$(O,new Ku$(O))};
Y1p=function(O,x){x=x===void 0?!1:x;var e=document.createElement("div");O&&(e.style.transform="scaleX(-1)");e.style.backgroundColor=x?"rgba(138,180,248,.24)":"#e8f0fe";e.style.height="4px";e.style.overflow="hidden";e.style.position="absolute";e.style.top="0";e.style.width="100%";e.style.zIndex="1500";e.setAttribute("aria-label","Loading");e.setAttribute("aria-live","polite");O=document.createElement("style");O.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  }";
e.appendChild(O);O=nzX();O.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";O.style.left="-145.166611%";var l=unp(x);l.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";O.appendChild(l);e.appendChild(O);O=nzX();O.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";O.style.left="-54.888891%";x=unp(x);x.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
O.appendChild(x);e.appendChild(O);return e};
nzX=function(){var O=document.createElement("div");O.style.height="100%";O.style.position="absolute";O.style.transformOrigin="top left";O.style.width="100%";return O};
unp=function(O){var x=document.createElement("span");x.style.borderTop=O?"4px solid #669df6":"4px solid #4285f4";x.style.display="inline-block";x.style.position="absolute";x.style.width="100%";return x};
BSQ=function(O){return O==null?void 0:_.CPT(O).valueOf()};
wep=function(O){var x=document.body,e=!1,l=function(){e||(e=!0,vzL(C,Q),setTimeout(function(){x.removeChild(Q);x.removeChild(C)},150))},C=fl$(O,getComputedStyle(x).direction==="rtl",l),Q=JIX(l);
vzL(C,Q);x.appendChild(Q);x.appendChild(C);window.requestAnimationFrame(function(){Q.style.opacity="1";C.style.opacity="1";C.style.transform="translate(-50%, -50%) scale(1)";C.children[0].focus()})};
fl$=function(O,x,e){var l=document.createElement("div");l.style.position="fixed";l.style.alignItems="center";l.style.backgroundColor=O?"rgb(32, 33, 36)":"white";l.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";l.style.display="flex";l.style.flexDirection="column";l.style.justifyContent="center";l.style.left="50%";l.style.top="50%";l.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";l.style.zIndex="2002";document.body.clientWidth>=
660?(l.style.borderRadius="8px",l.style.minHeight="220px",l.style.maxHeight="90%",l.style.maxWidth="90%",l.style.minWidth="540px"):(l.style.height="100%",l.style.width="100%");l.setAttribute("aria-label","Error");l.setAttribute("aria-modal","true");l.setAttribute("role","alertdialog");l.addEventListener("keydown",function(Q){Q.key==="Escape"&&e()});
x=S1O(O,x,e);l.appendChild(j2T(x));l.appendChild(x);var C=document.createElement("img");C.src=O?"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";C.style.height="72px";C.style.width="72px";C.style.color="#9aa0a6";C.setAttribute("alt","");l.appendChild(C);C=document.createElement("h1");C.textContent="Something went wrong.  Try again.";
C.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";C.style.lineHeight="24px";C.style.fontSize="16px";C.style.textAlign="center";C.style.letterSpacing="0.1px";C.style.color=O?"rgb(232,234,237)":"#3c4043";l.appendChild(C);l.appendChild(j2T(x));return l};
S1O=function(O,x,e){var l=document.createElement("button");l.style.backgroundColor="transparent";l.style.border="none";l.style.borderRadius="50%";l.style.cursor="pointer";l.style.outline="none";l.style.padding="12px";l.setAttribute("aria-label","Close dialog");l.style.position="absolute";l.style.top="0";x?l.style.right="0":l.style.left="0";l.addEventListener("focus",function(){l.style.backgroundColor=O?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
l.addEventListener("blur",function(){l.style.backgroundColor="transparent"});
l.addEventListener("mouseenter",function(){l.style.backgroundColor=O?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
l.addEventListener("mouseleave",function(){l.style.backgroundColor="transparent"});
l.addEventListener("click",e);l.addEventListener("keydown",function(C){C.key!=="Enter"&&C.key!=="Space"||e()});
x=document.createElement("img");x.src=O?"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";x.style.display="block";x.style.height="24px";x.style.width="24px";x.setAttribute("alt","");l.appendChild(x);return l};
j2T=function(O){var x=document.createElement("div");x.setAttribute("tabindex","0");x.setAttribute("aria-hidden","true");x.addEventListener("focus",function(){return void O.focus()});
return x};
JIX=function(O){var x=document.createElement("div");x.style.backgroundColor="rgba(32,33,36,0.6)";x.style.bottom="0";x.style.left="0";x.style.position="fixed";x.style.right="0";x.style.top="0";x.style.transition=" opacity 150 ms linear";x.style.zIndex="2001";x.addEventListener("click",O);return x};
vzL=function(O,x){x.style.opacity="0";O.style.opacity="0";O.style.transform="translate(-50%, -50%) scale(0.8)"};
NSO=function(O,x){O.sandbox&&O.sandbox.add&&(O.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),O.sandbox.add("allow-downloads"));O.src=x};
XO=function(O){gzO.call(this,O)};
oQ=function(O,x){x=x===void 0?!1:x;this.parsedImageUrl_=null;O instanceof $5L||(i7u==void 0&&(i7u=new O5Q),O=i7u.parse(O.toString(),x));O=this.parsedImageUrl_=O;O.JSC$19834_parsedOptions_==void 0&&((x=O.getOptions())||(x=""),O.JSC$19834_parsedOptions_=(new xRY).parse(x));gzO.call(this,O.JSC$19834_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;O=this.parsedImageUrl_;x=O.uri_.JSC$10027_port_;this.JSC$19836_domain_=O.uri_.JSC$10027_domain_+(x?":"+x:"");this.JSC$19836_query_=
this.parsedImageUrl_.uri_.JSC$10027_queryData_.toString()};
ej4=function(O){this.mode=4;this.data=O;this.parsedData=[];O=0;for(var x=this.data.length;O<x;O++){var e=[],l=this.data.charCodeAt(O);l>65536?(e[0]=240|(l&1835008)>>>18,e[1]=128|(l&258048)>>>12,e[2]=128|(l&4032)>>>6,e[3]=128|l&63):l>2048?(e[0]=224|(l&61440)>>>12,e[1]=128|(l&4032)>>>6,e[2]=128|l&63):l>128?(e[0]=192|(l&1984)>>>6,e[1]=128|l&63):e[0]=l;this.parsedData.push(e)}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))};
lcL=function(O){this.typeNumber=0;this.errorCorrectLevel=O===void 0?2:O;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
yk=function(O,x){if(O.length==void 0)throw Error("Lk`"+O.length+"`"+x);for(var e=0;e<O.length&&O[e]==0;)e++;this.num=Array(O.length-e+x);for(x=0;x<O.length-e;x++)this.num[x]=O[x+e]};
Cwp=function(O,x){this.totalCount=O;this.dataCount=x};
QtX=function(){this.buffer=[];this.length=0};
b5Q=function(){var O=!1;if(_.cL$()){O=_.E8();var x="";_.pii()?(x=/Windows (?:NT|Phone) ([0-9.]+)/,x=(O=x.exec(O))?O[1]:"0.0"):_.Wi()?(x=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,x=(O=x.exec(O))&&O[1].replace(/_/g,".")):_.Vws()?(x=/Mac OS X ([0-9_.]+)/,x=(O=x.exec(O))?O[1].replace(/_/g,"."):"10"):_.Dn(_.E8(),"KaiOS")?(x=/(?:KaiOS)\/(\S+)/i,x=(O=x.exec(O))&&O[1]):_.cL$()?(x=/Android\s+([^\);]+)(\)|;)/,x=(O=x.exec(O))&&O[1]):_.Rsr()&&(x=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,x=(O=x.exec(O))&&O[1]);O=
x||""}return O};
DRT=function(O,x){this.JSC$19859__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(x)for(var e in x)this.JSC$19859__htOption[e]=x[e];this.JSC$19859__htOption.useSVG&&(TYe=L8L);this.JSC$19859__android=b5Q();this.JSC$19859__el=O;this._oQRCode=null;this._oDrawing=new TYe(this.JSC$19859__el,this.JSC$19859__htOption);this.JSC$19859__htOption.text&&(O=this.JSC$19859__htOption.text,this._oQRCode=new lcL(this.JSC$19859__htOption.correctLevel),kAL(this._oQRCode,
O),x=this._oQRCode,AAY(x,!1,MRQ(x)),this.JSC$19859__el.title=O,this._oDrawing.draw(this._oQRCode),this.makeImage())};
GAY=function(O,x,e,l,C){O.save();var Q=new Path2D;Q.roundRect(x,e,l*7,l*7,l*2);Q.roundRect(x+l,e+l,l*5,l*5,l*1.3);Q.roundRect(x+2*l,e+2*l,l*3,l*3,l);O.clip(Q,"evenodd");O.fillStyle=C;O.fillRect(0,0,O.canvas.width,O.canvas.height);O.restore()};
ZW=function(O,x){if(typeof O!=="function")throw Error("Ok");return _.CV.setTimeout(function(){O()},x)};
EV=function(){};
X8L=function(O,x,e,l,C){(new EV).debug("TestLoadImageWithRetries: "+C);if(l==0)e(!1);else{var Q=C||0;l--;F8p(O,x,function(L){L?e(!0):_.CV.setTimeout(function(){X8L(O,x,e,l,Q)},Q)})}};
F8p=function(O,x,e){var l=new EV;l.debug("TestLoadImage: loading "+O);var C=new Image;C.onload=function(){try{l.debug("TestLoadImage: loaded"),opp(C),e(!0)}catch(Q){}};
C.onerror=function(){try{l.debug("TestLoadImage: error"),opp(C),e(!1)}catch(Q){}};
C.onabort=function(){try{l.debug("TestLoadImage: abort"),opp(C),e(!1)}catch(Q){}};
C.ontimeout=function(){try{l.debug("TestLoadImage: timeout"),opp(C),e(!1)}catch(Q){}};
_.CV.setTimeout(function(){if(C.ontimeout)C.ontimeout()},x);
C.src=O};
opp=function(O){O.onload=null;O.onerror=null;O.onabort=null;O.ontimeout=null};
yAQ=function(){this.front_=[];this.back_=[]};
Z5u=function(O,x){this.action=O;this.params=x||{}};
EpO=function(O,x){_.h0.call(this);this.delay_=new _.ro(this.JSC$19985_onTick_,0,this);_.qq(this,this.delay_);this.JSC$19983_interval_=5E3;this.nextTickTime_=0;if(typeof O==="function")x&&(O=(0,_.z8)(O,x));else if(O&&typeof O.handleEvent==="function")O=(0,_.z8)(O.handleEvent,O);else throw Error("ya");this.JSC$19985_listener_=O};
tr=function(O,x,e,l,C,Q,L,k,M,G,X,y,Z,E){e=e===void 0?!1:e;l=l===void 0?function(){return""}:l;
C=C===void 0?!1:C;Q=Q===void 0?!1:Q;L=L===void 0?!1:L;k=k===void 0?function(){return _.$7({})}:k;
M=M===void 0?!1:M;X=X===void 0?!1:X;y=y===void 0?!1:y;Z=Z===void 0?!1:Z;E=E===void 0?!1:E;this.JSC$19986_pathPrefix_=O;this.defaultQueryParams_=x;this.pubsub_=new _.UC;this.reconnectTimer_=new EpO(this.safeReconnect_,this);this.JSC$19986_channel_=null;this.JSC$19986_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19986_pendingMessages_=[];this.enableAsyncTest_=e;this.JSC$19986_getXsrfToken_=l;this.useAsyncBrowserChannelHandler_=Q;this.getAuthorizationHeader_=
k;this.getAuthorizationHeaderSync_=G;this.enableCachedUpdateAuthorizationHeader_=L;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.$7();this.enableLoungeTokenRefresh_=C;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=M;this.disableMdxAuthForNonPlaybackMessages_=X;this.disableMdxAuthForAdMessages_=y;this.enableMdxAuthForConnectionOnly_=Z;this.disableMdxAuthForShortsMessages_=E;this.JSC$19986_channelOpenedCounter=new tRX;this.JSC$19986_channelClosedCounter=new q9Q;this.channelMessageSentCounter=
new PwL;this.JSC$19986_channelMessageReceivedCounter=new cAp;this.JSC$19986_channelErrorCounter=new Ice;this.pendingMapsOnClosedCounter=new VR$;this.undeliveredMapsOnClosedCounter=new p84};
qa=function(O){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;O=O||document.location.href;var x=Number(_.TG(O)[4]||null)||"";x&&(this.port=":"+x);this.domain=_.Lb(O)||"";O=_.E8();O.search("MSIE")>=0&&_.om(O.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
PV=function(O){O=O||{};this.name=O.name||"";this.id=O.id||O.screenId||"";this.token=O.token||O.loungeToken||"";this.uuid=O.uuid||O.dialId||"";this.idType=O.screenIdType||"normal"};
Rjp=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(O){var x=Math.random()*16|0;return(O=="x"?x:x&3|8).toString(16)})};
URT=function(O){return _.Ku(O,function(x){return{key:x.id,name:x.name}})};
acu=function(O,x){return _.r7(O,function(e){return e||x?!e!=!x?!1:e.id==x.id:!0})};
IQ=function(O,x){return _.r7(O,function(e){return cV(e,x)})};
zjQ=function(){var O=mRL(),x=stL();if(W8L()){var e=O,l=_.HVr(e,x);l<0&&_.hs8(e,-(l+1),0,x)}O=hjQ(O);if(O.length==0)try{_.zhL("remote_sid")}catch(C){}else try{_.sC("remote_sid",O.join(","),-1)}catch(C){}};
mRL=function(){var O=_.tU("yt-remote-connected-devices")||[];O.sort(_.rL8);return O};
hjQ=function(O){if(O.length==0)return[];var x=O[0].indexOf("#"),e=x==-1?O[0]:O[0].substring(0,x);return _.Ku(O,function(l,C){return C==0?l:l.substring(e.length)})};
rAX=function(O){_.EA("yt-remote-connected-devices",O,86400)};
stL=function(){if(H5L)return H5L;var O=_.tU("yt-remote-device-id");O||(O=Rjp(),_.EA("yt-remote-device-id",O,31536E3));for(var x=mRL(),e=1,l=O;_.ur(x,l);)e++,l=O+"#"+e;return H5L=l};
K84=function(){return _.tU("yt-remote-session-browser-channel")};
W8L=function(){return _.tU("yt-remote-session-screen-id")};
uQw=function(O){O.length>5&&(O=O.slice(O.length-5));var x=_.Ku(dR$(),function(l){return l.loungeToken}),e=_.Ku(O,function(l){return l.loungeToken});
_.xe7(e,function(l){return!_.ur(x,l)})&&npL();
_.EA("yt-remote-local-screens",O,31536E3)};
dR$=function(){return _.tU("yt-remote-local-screens")||[]};
npL=function(){_.EA("yt-remote-lounge-token-expiration",!0,86400)};
Vk=function(O){O||(_.qw("yt-remote-session-screen-id"),_.qw("yt-remote-session-video-id"));zjQ();O=mRL();_.YW(O,stL());rAX(O)};
BYh=function(){Y9Y();return pJ?!!pJ.get("yt-remote-use-staging-server"):!1};
Y9Y=function(){if(!pJ){var O=_.vmL();O&&(pJ=new _.HK(O))}};
w8u=function(O,x,e,l,C){e=e===void 0?function(){return""}:e;
var Q=function(){return new tr(RQ(O,"/bc"),x,!1,e,l)};
return _.t("enable_mdx_web_channel_desktop")?new vp$(function(){return new fcQ(RQ(O,"/wc"),x,e)}):new JA4(Q,C)};
gp4=function(){var O=S9X;jth();UV.push(O);NYL()};
aQ=function(O,x){jth();var e=$Re(O,String(x));UV.length==0?i5w(e):(NYL(),_.e3(UV,function(l){l(e)}))};
m$=function(O){aQ("CP",O)};
jth=function(){UV||(UV=_.i8("yt.mdx.remote.debug.handlers_")||[],_.MB("yt.mdx.remote.debug.handlers_",UV))};
i5w=function(O){var x=(sV+1)%50;sV=x;OM$[x]=O;xSp||(xSp=x==49)};
NYL=function(){var O=UV;if(OM$[0]){var x=xSp?sV:-1,e={};do e={record$jscomp$15:void 0},x=(x+1)%50,e.record$jscomp$15=OM$[x],_.e3(O,function(l){return function(C){C(l.record$jscomp$15)}}(e));
while(x!=sV);OM$=Array(50);sV=-1;xSp=!1}};
$Re=function(O,x){var e=(Date.now()-e2L)/1E3;e.toFixed&&(e=e.toFixed(3));var l=[];l.push("[",e+"s","] ");l.push("[","yt.mdx.remote","] ");l.push(O+": "+x,"\n");return l.join("")};
WV=function(O){_.HA.call(this);this.JSC$20010_logName_=O;this.screens=[]};
zh=function(O){WV.call(this,"LocalScreenService");this.JSC$20017_http_=O;this.loungeTokenRefreshTimer_=NaN;hr(this);this.info("Initializing with "+lwT(this.screens))};
rs=function(O,x){x=x===void 0?!1:x;WV.call(this,"ScreenService");this.JSC$20023_http_=O;this.disableAutomaticScreenCache_=x;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Ccw(this)};
HV=function(O,x,e){_.HA.call(this);this.JSC$20027_logName_=e;this.JSC$20027_screenService_=O;this.receiver_=x;this.screen_=null};
tKO=function(O,x,e){e.disableCastApi?KJ("Cannot initialize because disabled by Mdx config."):Q$L()?bML(O,e)&&(Tju(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Lzh(x):(window.__onGCastApiAvailable=function(l,C){l?Lzh(x):(ds("Failed to load cast API: "+C),k_e(!1),Tju(!1),_.qw("yt-remote-cast-available"),_.qw("yt-remote-cast-receiver"),AiL(),x(!1))},e.loadCastApiSetupScript?_.ag(MK$):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
DSh()>=60&&G_L():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?FzL():DSh()>=89?Xbw():(oVL(),yiQ(ZM$.map(EVX))))):KJ("Cannot initialize because not running Chrome")};
AiL=function(){KJ("dispose");var O=nJ();O&&O.dispose();_.MB("yt.mdx.remote.cloudview.instance_",null);qMO(!1);_.PV8(PcL);PcL.length=0};
cip=function(){return!!_.tU("yt-remote-cast-installed")};
IwL=function(){var O=_.tU("yt-remote-cast-receiver");return O?O.friendlyName:null};
VKL=function(){KJ("clearCurrentReceiver");_.qw("yt-remote-cast-receiver")};
pbO=function(){return cip()?nJ()?nJ().getCastSession():(ds("getCastSelector: Cast is not initialized."),null):(ds("getCastSelector: Cast API is not installed!"),null)};
USw=function(O,x){R24()?nJ().setConnectedScreenStatus(O,x):ds("setConnectedScreenStatus called before ready.")};
Q$L=function(){var O=_.E8().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Oa||O};
bML=function(O,x){var e=!1;nJ()||(O=new uM(O,x),O.subscribe("yt-remote-cast2-availability-change",function(l){_.EA("yt-remote-cast-available",l);ju("yt-remote-cast2-availability-change",l)}),O.subscribe("yt-remote-cast2-receiver-selected",function(l){KJ("onReceiverSelected: "+l.friendlyName);
_.EA("yt-remote-cast-receiver",l);ju("yt-remote-cast2-receiver-selected",l)}),O.subscribe("yt-remote-cast2-receiver-resumed",function(l){KJ("onReceiverResumed: "+l.friendlyName);
_.EA("yt-remote-cast-receiver",l);ju("yt-remote-cast2-receiver-resumed",l)}),O.subscribe("yt-remote-cast2-session-change",function(l){KJ("onSessionChange: "+awY(l));
l||_.qw("yt-remote-cast-receiver");ju("yt-remote-cast2-session-change",l)}),_.MB("yt.mdx.remote.cloudview.instance_",O),e=!0);
KJ("cloudview.createSingleton_: "+e);return e};
nJ=function(){return _.i8("yt.mdx.remote.cloudview.instance_")};
Lzh=function(O){k_e(!0);Tju(!1);nJ().init(!1,function(x){x?(qMO(!0),_.cB$("yt-remote-cast2-api-ready")):(ds("Failed to initialize cast API."),k_e(!1),_.qw("yt-remote-cast-available"),_.qw("yt-remote-cast-receiver"),AiL());O(x)})};
KJ=function(O){aQ("cloudview",O)};
ds=function(O){aQ("cloudview",O)};
k_e=function(O){KJ("setCastInstalled_ "+O);_.EA("yt-remote-cast-installed",O)};
R24=function(){return!!_.i8("yt.mdx.remote.cloudview.apiReady_")};
qMO=function(O){KJ("setApiReady_ "+O);_.MB("yt.mdx.remote.cloudview.apiReady_",O)};
Tju=function(O){_.MB("yt.mdx.remote.cloudview.initializing_",O)};
Yt=function(O){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(O)};
HMQ=function(O){Y9Y();if(!pJ||!pJ.get("yt-remote-disable-remote-module-for-dev")){O=_.wz("MDX_CONFIG")||O;isT();zjQ();BV||(BV=new qa(O?O.loungeApiHost:void 0),BYh()&&(BV.basePath="/api/loungedev"));vV||(vV=_.i8("yt.mdx.remote.deferredProxies_")||[],_.MB("yt.mdx.remote.deferredProxies_",vV));mSh();var x=fJ();if(!x){var e=new rs(BV,O?O.disableAutomaticScreenCache||!1:!1);_.MB("yt.mdx.remote.screenService_",e);x=fJ();var l={};O&&(l={appId:O.appId,disableDial:O.disableDial,theme:O.theme,loadCastApiSetupScript:O.loadCastApiSetupScript,
disableCastApi:O.disableCastApi,enableDialLoungeToken:O.enableDialLoungeToken,enableCastLoungeToken:O.enableCastLoungeToken,forceMirroring:O.forceMirroring});_.MB("yt.mdx.remote.enableConnectWithInitialState_",O?O.enableConnectWithInitialState||!1:!1);tKO(e,function(Q){Q?Jr()&&USw(Jr(),"YouTube TV"):e.subscribe("onlineScreenChange",function(){ju("yt-remote-receiver-availability-change")})},l)}if(O&&!_.i8("yt.mdx.remote.initialized_")){_.MB("yt.mdx.remote.initialized_",!0);
ws("Initializing: "+(0,_.Rj)(O));SM.push(_.yQ("yt-remote-cast2-api-ready",function(){ju("yt-remote-api-ready")}));
SM.push(_.yQ("yt-remote-cast2-availability-change",function(){ju("yt-remote-receiver-availability-change")}));
SM.push(_.yQ("yt-remote-cast2-receiver-selected",function(){s$L();ju("yt-remote-auto-connect","cast-selector-receiver")}));
SM.push(_.yQ("yt-remote-cast2-receiver-resumed",function(){ju("yt-remote-receiver-resumed","cast-selector-receiver")}));
SM.push(_.yQ("yt-remote-cast2-session-change",WzX));SM.push(_.yQ("yt-remote-connection-change",function(Q){Q?USw(Jr(),"YouTube TV"):h2Y()||(USw(null,null),VKL())}));
SM.push(_.yQ("yt-remote-cast2-session-failed",function(){ju("yt-remote-connection-failed")}));
l=z2O();O.isAuto&&(l.id+="#dial");var C=O.capabilities||[];C.length>0&&(l.capabilities=C);l.name=O.device;l.app=O.app;(O=O.theme)&&(l.theme=O);ws(" -- with channel params: "+(0,_.Rj)(l));l?(_.EA("yt-remote-session-app",l.app),_.EA("yt-remote-session-name",l.name)):(_.qw("yt-remote-session-app"),_.qw("yt-remote-session-name"));_.MB("yt.mdx.remote.channelParams_",l);x.start();Jr()||riX()}}};
dSQ=function(){var O=fJ().instance_.$_gos();var x=Kzu();x&&jM()&&(acu(O,x)||O.push(x));return URT(O)};
nVL=function(){var O=dSQ(),x=Kzu();x||(x=h2Y());return _.r7(O,function(e){return x&&cV(x,e.key)?!0:!1})};
Kzu=function(){var O=Jr();if(!O)return null;var x=fJ().getScreens();return IQ(x,O)};
WzX=function(O){ws("remote.onCastSessionChange_: "+awY(O));if(O){var x=Kzu();if(x&&x.id==O.id){if(USw(x.id,"YouTube TV"),O.idType=="shortLived"&&(O=O.token))uGX&&(uGX.token=O),(x=jM())&&x.setLoungeToken(O)}else x&&YML(),Bjp(O,1)}else jM()&&YML()};
YML=function(){R24()?nJ().stopSession():ds("stopSession called before API ready.");var O=jM();O&&(O.disconnect(1),vVL(null))};
fw$=function(){var O=jM();return O&&O.getProxyState()!=3?new Na(jM(),void 0):null};
ws=function(O){aQ("remote",O)};
fJ=function(){if(!JiT){var O=_.i8("yt.mdx.remote.screenService_");JiT=O?new wbY(O):null}return JiT};
Jr=function(){return _.i8("yt.mdx.remote.currentScreenId_")};
SMY=function(O){_.MB("yt.mdx.remote.currentScreenId_",O)};
s$L=function(){_.MB("yt.mdx.remote.connectData_",null)};
jM=function(){return _.i8("yt.mdx.remote.connection_")};
vVL=function(O){var x=jM();s$L();O||SMY("");_.MB("yt.mdx.remote.connection_",O);vV&&(_.e3(vV,function(e){e(O)}),vV.length=0);
x&&!O?ju("yt-remote-connection-change",!1):!x&&O&&ju("yt-remote-connection-change",!0)};
h2Y=function(){var O=W8L();if(!O)return null;var x=fJ();if(!x)return null;x=x.getScreens();return IQ(x,O)};
Bjp=function(O,x){j$L?uGX=O:(SMY(O.id),O=new gs(BV,O,z2O(),_.i8("yt.mdx.remote.enableConnectWithInitialState_")||!1),O.connect(x,_.i8("yt.mdx.remote.connectData_")),O.subscribe("beforeDisconnect",function(e){ju("yt-remote-before-disconnect",e)}),O.subscribe("beforeDispose",function(){jM()&&vVL(null)}),O.subscribe("browserChannelAuthError",function(){var e=Kzu();
e&&e.idType=="shortLived"&&(R24()?nJ().handleBrowserChannelAuthError():ds("refreshLoungeToken called before API ready."))}),vVL(O))};
riX=function(){var O=h2Y();O?(ws("Resume connection to: "+awY(O)),Bjp(O,0)):(Vk(),VKL(),ws("Skipping connecting because no session screen found."))};
mSh=function(){var O=z2O();if(_.HX.isEmpty(O)){O=stL();var x=_.tU("yt-remote-session-name")||"",e=_.tU("yt-remote-session-app")||"";O={device:"REMOTE_CONTROL",id:O,name:x,app:e,mdxVersion:3};O.authuser=String(_.wz("SESSION_INDEX","0"));(x=_.wz("DELEGATED_SESSION_ID"))&&(O.pageId=String(x));_.MB("yt.mdx.remote.channelParams_",O)}};
z2O=function(){return _.i8("yt.mdx.remote.channelParams_")||{}};
NjQ=function(){var O,x;return _.A(function(e){if(e.nextAddress==1)return(_.Ql8()||_.t("use_new_nwl"))&&_.xjN().isNetworkAvailable()?e.yield(_.DG(),2):e.return();if(e.nextAddress!=3)return(O=e.yieldResult)?e.yield(PH$(O),3):e.return();x=e.yieldResult;if(!x.length)return e.return();x.forEach(function(l){var C={timestamp:l.timestamp};l=l.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:l.appShellAssetLoadReport,options:C}:l.clientError?{payloadName:"clientError",payload:l.clientError,
options:C}:void 0;l&&_.uU(l.payloadName,l.payload,l.options)});
x.length===100&&_.vn.addLowPriorityJob(NjQ);_.Ra(e)})};
gVw=function(O){if(O.playerResponse){if(O=O.playerResponse,O.messages&&O.messages.length>0&&(O=O.messages.find(function(x){return!(!x||!x.mealbarPromoRenderer)}))&&O.mealbarPromoRenderer)return O.mealbarPromoRenderer}else if(O.response&&(O=O.response)&&O.overlay&&O.overlay.mealbarPromoRenderer)return O.overlay.mealbarPromoRenderer};
$Su=function(O){if(O.response){var x=O.response;if(x&&x.overlay&&x.overlay.tooltipRenderer)return x.overlay.tooltipRenderer}if(O.playerResponse&&(O=O.playerResponse,O.messages&&O.messages.length>0&&(O=O.messages.find(function(e){return!(!e||!e.tooltipRenderer)}))&&O.tooltipRenderer))return O.tooltipRenderer};
OI$=function(O){if(!iML&&(O=O||_.wz("ZWIEBACK_PING_URLS"))&&O.length){iML=!0;for(var x=0;x<O.length;x++)_.On(O[x])}};
eJw=function(O){if(_.HX.get(_.wz("PLAYER_VARS",{}),"privembed",!1)!="1"){O&&G1Y();try{xoY().then(function(){},function(){}),_.qb(eJw,18E5)}catch(x){_.jS(x)}}};
lrL=function(){var O=_.TD(),x=O.getFlag(119),e=window.devicePixelRatio>1;document.body&&_.ue(document.body,"exp-invert-logo")&&(e&&!_.ue(document.body,"inverted-hdpi")?_.uV(document.body,"inverted-hdpi"):!e&&_.ue(document.body,"inverted-hdpi")&&_.dP(document.body,"inverted-hdpi"));x!=e&&(_.LZ(0,119,e),O.save())};
CgQ=function(O){return O.filter(function(x){return"ypcGetCartEndpoint"in x||"ypcFixInstrumentEndpoint"in x})};
QLe=function(O){return O.filter(function(x){return!_.q(x,_.eXd)})};
TCL=function(O,x){var e,l,C,Q,L,k,M;_.A(function(G){switch(G.nextAddress){case 1:e=_.y9.getInstance();l=_.lV.instance;C=_.We.instance;if(!C)return bIp(O,l,x),G.return();_.tS(G,2);O.onLoadingCommand&&l.resolveCommand(O.onLoadingCommand);return G.yield(e.getCurrentPositionFromGeolocation(),4);case 4:Q=G.yieldResult;if(!O.resolveLocationCommand){G.jumpTo(5);break}L=e.createLocationInfo(Q);return G.yield(_.z7(C,O.resolveLocationCommand,{locationInfo:L}),6);case 6:k=G.yieldResult;if(!k||"error"in k&&k.error||
k.errorMetadata)return bIp(O,l,x),G.return();var X;if(k==null?0:(X=k.onResponseReceivedActions)==null?0:X.length){X=_.T(k.onResponseReceivedActions);for(var y=X.next();!y.done;y=X.next())l.resolveCommand(y.value)}(_.q(O.onSuccessCommand,_.Hq)||_.q(O.onSuccessCommand,_.Q9))&&_.wr(x.hostElement,"yt-navigate",{endpoint:O.onSuccessCommand,reload:!0});case 5:_.lb(G,0);break;case 2:M=_.VP(G);if(M instanceof GeolocationPositionError&&M.code===GeolocationPositionError.PERMISSION_DENIED)return O.onDeniedCommand&&
l.resolveCommand(O.onDeniedCommand),G.return();bIp(O,l,x);_.Ra(G)}})};
bIp=function(O,x,e){O.onFailureCommand&&(x.resolveCommand(O.onFailureCommand),_.Sh(e.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
koL=function(O,x){var e=_.q(O,_.RC$);if(e&&x){O=e.videoIds||[e.videoId];var l;x=(l=_.wr(x,"yt-lockup-requested",{videoIds:O}).detail)==null?void 0:l.returnValue;var C;e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?C=x?x:O.map(function(Q){return{videoId:Q,navigationEndpoint:e.videoCommand}}):x&&(C=x);
C&&(l=C.map(function(Q){var L=Object,k=L.assign;var M=Q.navigationEndpoint;if(!_.q(M,_.kU)){var G=_.q(M,_.Hq);if(G){if(delete G.index,delete G.playlistId,G=_.q(M==null?void 0:M.commandMetadata,_.e6),G==null?0:G.url){var X=G.url;X=_.Y7(X,"list");X=_.Y7(X,"index");G.url=X}}else M=void 0}return k.call(L,{},Q,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:M})}),L6O(l,e))}};
AtO=function(O){var x=_.lX();if(O=_.q(O,_.UXd))O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&x.clearQueue(),O.closeMiniplayer&&_.GG().resolve(_.Vs).close(!0)};
DoL=function(O){M1X(_.lX(),O)};
GoO=function(O){var x;(O=(x=_.q(O,_.VP$))==null?void 0:x.setVideoIds)&&O.forEach(function(e){_.oHd(_.lX(),e)})};
XNe=function(O){F6w(_.lX(),O)};
oQL=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(O){return!1}};
ytw=function(O){var x=["h","m","s"],e=_.Bi(x);e.reverse();var l={};O=(O.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(L){var k=(L.match(/[hms]/)||[""])[0];return k?(l[k]=parseInt(L.match(/\d+/)[0],10),!1):!0});
for(O.reverse();O.length&&e.length;){var C=e.shift();C in l||(l[C]=parseInt(O.shift(),10))}if(O.length||l.s>59||l.m>59||l.h>9)return null;var Q="";x.forEach(function(L){l[L]&&(Q+=""+l[L]+L)});
return Q||null};
ZIT=function(O,x){var e=_.NVD(x,{},O,!0);return new Promise(function(l,C){e.listenOnce("n",function(){C(Error("zl`"+e.JSC$29710_getErrorDescription()))});
e.listenOnce("l",function(){var Q=e.getResponseCode();if(Q!==200)C(Error("Al`"+x+"`"+O.type+"`"+O.size+"`"+Q));else try{l(JSON.parse(e.getResponseText()).encryptedBlobId)}catch(L){C(L)}});
e.run()})};
EQO=function(O){return O.substring(O.indexOf(":")+1,O.indexOf(";"))};
t1p=function(O){return new Promise(function(x,e){var l=new FileReader;l.onloadend=function(){try{var C=new Uint8Array(l.result);C.length<8&&e(void 0);var Q=C.subarray(0,8);C="";for(var L=0;L<Q.length;L++)C+=("0"+Q[L].toString(16)).substr(-2);C.startsWith("ffd8ff")?x("image/jpeg"):C.startsWith("47494638")?x("image/gif"):C.startsWith("89504e470d0a1a0a")?x("image/png"):C.startsWith("424d")?x("image/bmp"):x(void 0)}catch(k){e(k)}};
l.onerror=e;l.readAsArrayBuffer(O)})};
qeh=function(O){return new Promise(function(x,e){var l=new Image;l.crossOrigin="anonymous";l.onload=function(){var C=document.createElement("canvas");C.width=l.naturalWidth;C.height=l.naturalHeight;var Q=C.getContext("2d");if(!Q)throw Error("Bl");Q.drawImage(l,0,0);Q=EQO(O);C.toBlob(function(L){L?x(L):e()},Q)};
l.src=O})};
ctT=function(O,x){var e;if(((e=_.q(O,_.kU))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var l;_.wr((l=x.hostElement)!=null?l:x,"yt-shorts-reset");_.yyF(_.GG().resolve(_.Wr),O).then(function(Q){PgL(Q,x,O)})}else{var C;
_.N9((C=x.hostElement)!=null?C:x,[O]).then(function(Q){Q&&PgL(Q.data,x,O)})}};
PgL=function(O,x,e){if(O){var l=_.q(O.replacementEndpoint,_.kU);if(l){O.sequenceContinuation&&(l.sequenceParams=O.sequenceContinuation);var C;_.wr((C=x.hostElement)!=null?C:x,"yt-navigate",{endpoint:O.replacementEndpoint})}else if((O==null?void 0:O.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(O==null?0:O.watchStatus)&&_.q(O.watchStatus,_.DsR)){var Q;_.wr((Q=x.hostElement)!=null?Q:x,"yt-navigate",{endpoint:e})}}};
IrX=function(O){var x=_.GG().resolve(_.gH),e=_.at.currentPageTypeSelector(x.getState())||"";x=_.at.currentPageSubTypeSelector(x.getState())||"";e=e==="ytd-browse"&&x==="home";return _.t("web_guide_entry_enable_cache_for_non_home_pages")?(O=(O==null?void 0:O.navigationEndpoint)&&_.C3(O.navigationEndpoint)==="home",{disableCache:e&&O}):{disableCache:e}};
pNQ=function(O,x,e){if(x!=null&&x.isPrimary){a:{if(e&&e.length){var l=x.formattedTitle;var C={};l&&(C.header={panelHeaderViewModel:{title:_.Ps(l)}});l=[];e=_.T(e);for(var Q=e.next();!Q.done;Q=e.next()){Q=_.q(Q.value,V1p);var L=void 0,k=void 0,M=((L=Q)==null?0:L.formattedTitle)?_.Ps((k=Q)==null?void 0:k.formattedTitle):void 0;L=void 0;k=(L=Q)==null?void 0:L.isPrimary;if(Q&&M&&!k){M={title:M};Q.navigationEndpoint&&(M.rendererContext={commandContext:{onTap:{innertubeCommand:Q.navigationEndpoint}}});
L=[];var G=k=void 0;if(((k=Q)==null?0:(G=k.thumbnail)==null?0:G.thumbnails)&&Q.thumbnail.thumbnails.length>0){k=_.T(Q.thumbnail.thumbnails);for(G=k.next();!G.done;G=k.next())L.push({url:G.value.url});M.leadingAccessory={avatarViewModel:{image:{sources:L},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(k=void 0,(k=Q.icon)==null?0:k.iconType)L.push({clientResource:{imageName:Q.icon.iconType||""}}),M.leadingImage={sources:L};k=L=void 0;((L=Q)==null?0:(k=L.badges)==null?0:k.liveBroadcasting)?M.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:Q.count&&(M.trailingLabel={content:Q.count.toString()});l.push({listItemViewModel:M})}}l.length!==0?C.content={listViewModel:{listItems:l}}:C=void 0;if(C){C={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:C}}}};break a}}C=void 0}C&&(x.mouseEnterEndpoint=C,x.mouseLeaveEndpoint={hideSheetCommand:{}});O.push({guideEntryRenderer:x})}};
RJu=function(O){if(!O)return!1;try{if(O.host&&O.host.tagName==="YT-FORMATTED-STRING"&&O.host.id==="contenteditable-textarea"||O.nodeType===Node.ELEMENT_NODE&&O.tagName==="YTD-COMMENT-INPUT")return!0}catch(x){return!1}return RJu(O.parentNode)};
$t=function(O){return O?O.tagName==="A"&&O.href&&O.classList.contains("yt-simple-endpoint"):!1};
Uoh=function(O){return O?O.tagName==="IMG"&&O.classList.contains("emoji"):!1};
arL=function(O,x,e){if(!O)return null;var l=$t(O);if(l&&e)return x=O.pathname.substring(O.pathname.indexOf("/channel/")+9),document.createTextNode("@"+x);if(l&&!e)return document.createTextNode("");if(Uoh(O))return e=O.alt,O=O.dataset.emojiId,!O&&x&&(x=_.SR(x,e))&&x.isCustomEmoji&&(O=x.emojiId),O?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+O+">"):document.createTextNode(e);l=O.cloneNode(!1);for(var C=0;C<O.childNodes.length;++C){var Q=arL(O.childNodes[C],x,e);Q&&l.appendChild(Q)}return l};
iM=function(O){return O?$t(O)?O:iM(O.lastChild):null};
mou=function(O){return O?$t(O)?O:mou(O.firstChild):null};
sLX=function(O){if(!O)return null;for(var x=O.previousSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.previousSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.previousSibling;else break;(x=iM(x))?O=x:O=(O=O.parentNode)?iM(O.previousElementSibling):null;return O};
W6Q=function(O){if(!O)return null;for(var x=O.nextSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.nextSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.nextSibling;else break;return(x=mou(x))?x:W6Q(O.parentNode)};
hJQ=function(O){var x=_.NR(),e=x.JSC$11343_getStartNode();if(!RJu(e.parentNode))return null;x=x.JSC$11343_getStartOffset();if(e.nodeType===Node.TEXT_NODE){var l=_.fu(e,$t);if(l){if(O&&x===0||!O&&x===e.length)return l}else{if(O&&x===e.length)return!e||e.nodeName==="BR"||e.nextElementSibling&&_.gY(e.nextElementSibling,"display")==="block"?null:mou(e.nextElementSibling);if(!O&&x===0)return e?iM(e.previousElementSibling):null}}if(e.nodeType===Node.ELEMENT_NODE)if(O){if(0<=x&&x<e.childNodes.length)return mou(e.childNodes[x])}else if(0<
x&&x<=e.childNodes.length)return iM(e.childNodes[x-1]);return null};
zJX=function(O,x,e){if(!O)return null;if(O.nodeType===Node.TEXT_NODE)if(e){var l=sLX(O);if(l&&!/^\s+\S/.test(O.wholeText.substr(0,x)))return l}else if((l=W6Q(O))&&!/\S\s+/.test(O.wholeText.substr(x,O.wholeText.length)))return l;return O.nodeType===Node.ELEMENT_NODE?e?sLX(O.childNodes[x]):W6Q(O.childNodes[x]):zJX(O.parentNode,x,e)};
rtp=function(O){if(O.hasChildNodes())switch(O.tagName){case "DIV":case "A":case "SPAN":var x="";for(O=O.firstChild;O;O=O.nextSibling)x+=rtp(O);return x;default:return""}else switch(O.nodeType){case 3:return O.textContent;default:return""}};
HIY=function(O){switch(O){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"}};
K6w=function(O){return O.map(function(x){return{settingsRadioOptionRenderer:{title:_.S6(x.name),asideText:_.S6(x.approximateSize),id:HIY(x.format)}}})};
nQ4=function(O){if(O&&O.length!==0)return O.filter(doX()).map(function(x){return{settingsRadioOptionRenderer:{title:x.name,asideText:x.approximateSize,id:HIY(x.formatType)}}})};
OP=function(O){if(O)return O.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
uuX=function(O,x){O=new Set(O!=null?O:[]);if(O.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(O.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(O.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(O.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(O.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(x)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Yee=function(O){var x=O.indexOf("(");return x!==-1?O.substring(x+1,O.length-1):O};
_.vQu=function(O,x,e,l,C,Q){e||(e=BCQ);var L;(L=_.q(e.commandMetadata,_.e6))!=null&&L.url||(e=Error("Gl`"+JSON.stringify(e)),_.BH(e),e=BCQ);e=_.HX.unsafeClone(e);L=_.Sb(_.q(e.commandMetadata,_.e6).url,"search_query",O);_.iP(location.href,"sv")==="1"&&(_.q(e,_.bK).params="EgOAAgE%3D",L=_.Sb(L,"sv","1"));_.q(e,_.bK)&&(_.q(e,_.bK).query=O);L=L.replace(/%20/g,"+");_.q(e.commandMetadata,_.e6).url=L;C=_.t("desktop_enable_entity_suggest")?{entityMid:C}:{};_.GG().resolve(_.Xc).resolveCommand(e,{form:{tempData:Object.assign({},
{gs_l:x,oq:l!=null?l:O},C,{isFromShorts:Q})}})};
fru=function(O){switch(O){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
wNL=function(O,x,e,l,C,Q){var L=_.HX.clone(Jt$);L.locale=_.wz("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;L.report={description:C||"<empty>"};C=_.wz("SBOX_SETTINGS",{});x=x.join(",");var k=Date.now();O={choice_cc:l,choice_id_cc:e,choices_sc:x,gl:C.REQUEST_DOMAIN,hl:C.REQUEST_LANGUAGE,query:O,time:k};Q&&(O.choice_additional_comment_cc=Q);_.eU$(L,O)};
SeQ=function(O){var x=new Map;x.set("authuser",_.wz("SESSION_INDEX","0"));return _.yi(O,x)};
NCQ=function(O){var x;return _.A(function(e){switch(e.nextAddress){case 1:if(!O||!jL$(O))return e.return(null);x=null;switch(_.wz("INNERTUBE_CLIENT_NAME")){case "WEB":return e.jumpTo(2);case "WEB_REMIX":x=O.getPlayer()}e.jumpTo(3);break;case 2:return e.yield(O.getPlayerPromise(),4);case 4:x=e.yieldResult;e.jumpTo(3);break;case 3:return e.return(x)}})};
jL$=function(O){return["ytd-player","ytmusic-player"].includes(String(O.tagName||"").toLowerCase())};
gQ4=function(O){O=Math.round(O);return O%2?O-1:O};
$oQ=function(O){O=Math.round(O);return O%2===0?O-1:O};
iIQ=function(O){var x,e,l;if(O=(x=O.createPlaylistDialogFormSchema)==null?void 0:(e=x.fieldSchemas)==null?void 0:(l=e.title)==null?void 0:l.validationSchema)for(x=[O.syncStep,O.asyncStep].filter(function(C){return C!==void 0}),x=_.T(x),e=x.next();!e.done;e=x.next()){e=e.value.rules;
if(!e)break;e=_.T(e);for(e=e.next();!e.done;e=e.next())return _.q(e.value,_.poh)}};
xiO=function(O){var x,e,l;if(O=(x=O.createPlaylistDialogFormSchema)==null?void 0:(e=x.fieldSchemas)==null?void 0:(l=e.visibility)==null?void 0:l.validationSchema)for(x=[O.syncStep,O.asyncStep].filter(function(C){return C!==void 0}),x=_.T(x),e=x.next();!e.done;e=x.next()){e=e.value.rules;
if(!e)break;e=_.T(e);for(l=e.next();!l.done;l=e.next())if(l=_.q(l.value,O0e))return x=void 0,(x=l.translations)==null?void 0:x.visibilityNotValidErrorMessage}};
eIQ=function(){var O,x;return(x=(O=_.GG().resolve(_.D0(_.rP)))==null?void 0:O())!=null?x:!1};
lOO=function(O){var x=21;if(!O)return x;x+=O.headerTitle?27:0;x+=O.headerTitle&&O.hasHeaderActionHeader?4:0;return x+=O.headerTitle&&O.headerSubtitle?16:0};
Cmh=function(O){var x=0;if(!O)return x;x+=O.hasFooterPrimaryButton||O.hasFooterSecondaryButton?48:0;x+=O.footerTrailingLabel||O.footerLeadingLabel?30:0;return x+=O.hasFooterPrimaryButton||O.hasFooterSecondaryButton||!O.footerTrailingLabel&&!O.footerLeadingLabel?0:12};
QKL=function(O){var x=new _.UC,e=O;return{subscribe:function(l){x.subscribe("changed",l)},
dispatch:function(l,C){var Q=e;l==="Touch Start"?e=Object.assign({},Q,{isAnimating:!1,initialY:C.event.touches[0].clientY}):l==="Touch Move"?(l=Math.min(C.fullContentWrapperHeight,C.contentHeightMap[C.contentWrapperId]+lOO(C.header)-Cmh(C.footer)),e=Object.assign({},Q,{currentY:Math.max(C.contentScrollable?-1*(Q.initialY-24):0,C.event.touches[0].clientY-Q.initialY),maxHeightForContentWrapper:Math.min(l,Math.max(0,(Q.isFullScreen?l:C.contentWrapperHeight)-Q.currentY))})):e=l==="Snap To Full Screen"?
Object.assign({},Q,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:C.maxHeight}):l==="Snap To Neutral Position"?Object.assign({},Q,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:C.maxHeight}):l==="Close Sheet"?Object.assign({},Q,{isAnimating:!0,currentY:C.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:C.maxHeight}):Q;x.publish("changed",e)}}};
b0L=function(O){return _.lk(function(x){O(x);return!1})};
T4L=function(){_.GG().resolve(_.fj).closeSheet()};
Lt4=function(O){var x,e,l,C,Q,L,k,M,G,X,y;return{headerTitle:(x=O.headerTitle)==null?void 0:x.call(O),headerSubtitle:(e=O.headerSubtitle)==null?void 0:e.call(O),headerActionHeader:O.headerActionHeader,footerPrimaryButton:O.footerPrimaryButton,footerSecondaryButton:O.footerSecondaryButton,footerButtonType:(l=O.footerButtonType)==null?void 0:l.call(O),footerLeadingLabel:(C=O.footerLeadingLabel)==null?void 0:C.call(O),footerTrailingLabel:(Q=O.footerTrailingLabel)==null?void 0:Q.call(O),shouldShowIcons:(L=
O.shouldShowIcons)==null?void 0:L.call(O),skipContentClick:(k=O.skipContentClick)==null?void 0:k.call(O),additionalClassName:(M=O.additionalClassName)==null?void 0:M.call(O),onClosedCallback:O.onClosedCallback,focusOnClose:(G=O.focusOnClose)==null?void 0:G.call(O),isDisabled:(X=O.isDisabled)==null?void 0:X.call(O),disabledCommand:(y=O.disabledCommand)==null?void 0:y.call(O),headerFn:O.headerFn,contentFn:O.contentFn,footerFn:O.footerFn,hasHeaderFn:O.hasHeaderFn(),hasContentFn:O.hasContentFn(),hasFooterFn:O.hasFooterFn(),
hasFooterPrimaryButton:O.hasFooterPrimaryButton(),hasFooterSecondaryButton:O.hasFooterSecondaryButton(),hasHeaderActionHeader:O.hasHeaderActionHeader()}};
kBw=function(O){switch(O){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""}};
AOO=function(O){switch(O){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""}};
MJh=function(O){switch(O){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""}};
DiL=function(O,x,e){x.forEach(function(l){_.I7(_.GG().resolve(_.vt),l)});
_.Sh(O,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",e])};
oiL=function(O,x,e,l){var C=_.q(e,_.O7).commandLifeCycleConfig;C&&C.onStartCommand&&_.gr(O,[C.onStartCommand],x);_.pM(x);var Q=_.We.instance;Q&&_.hI(Q,e)?_.z7(Q,e,l).then(function(L){if(!L||(L==null?0:L.error))return L=_.q(e,_.O7).serializedTransactionFlowLoggingParams,_.R$(x),_.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",L));_.R$(x);return{data:L}}).then(function(L){_.R$(x);
GBX(L.data);var k=L.data.command;k&&_.gr(O,[k],x);k=Ftw(e,L.data);if(!k){var M=L.data;L=!1;if(M&&M.command&&_.q(M.command,_.ih)){var G;M=((G=_.q(M.command,_.ih))==null?void 0:G.commands)||[];for(G=0;G<M.length;G++)if(_.q(M[G],_.dzJ)){L=!0;break}}L||_.Br('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!k&&C&&C.onSuccessCommand?_.gr(O,[C.onSuccessCommand],x):k&&C&&C.onFailureCommand&&_.gr(O,[C.onFailureCommand],x)},function(){_.R$(x);
C&&C.onFailureCommand&&_.gr(O,[C.onFailureCommand],x);XMe(e)}):_.BH(Error("Sl"),"ERROR")};
yOT=function(O,x,e){var l=[x];e&&l.push(e);return _.N9(O,l).then(function(C){var Q=_.q(x,_.O7).serializedTransactionFlowLoggingParams,L=C.data,k=Ftw(x,L);k?C=_.Za(new xI(k,Q)):GBX(L);return C},function(){var C=_.q(x,_.O7).serializedTransactionFlowLoggingParams;
XMe(x);return _.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",C))})};
Ftw=function(O,x){O=_.q(O,_.O7).serializedTransactionFlowLoggingParams;var e=null;switch(x.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":e="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":e="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":e="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}e?_.K3(e,O):H_p(O);return e};
XMe=function(O){_.K3("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.q(O,_.O7).serializedTransactionFlowLoggingParams)};
GBX=function(O){if(O.trackingParams){var x=_.Pq(),e=_.q9();x&&e&&_.WU(x,e,_.Fv(O.trackingParams))}};
Z04=function(O,x,e){var l=_.We.instance,C=_.m68(_.wz("YPC_MB_URL")),Q=(new _.U6m).init(),L=_.ak7(),k=_.q(e,_.z4T).languageCode;k===void 0?_.BH(Error("Pi"),"ERROR"):_.cF([Q,C]).then(function(){var M={ctk:_.nM.payments.business.integration.ClientTokenFactory.createClientToken(k,L)};l&&_.hI(l,e)?_.z7(l,e,M).then(function(G){return{data:G}}).then(function(G){_.wr(x,"yt-service-request-completed",G);
G.code!=="ERROR"&&(G=G.data.command)&&_.gr(O,[G],x)}):_.BH(Error("Sl"),"ERROR")})};
qap=function(O,x,e,l){var C=_.We.instance;C&&_.hI(C,e)?_.z7(C,e,l).then(function(Q){return{data:Q}}).then(function(Q){EiT(O,x,e,Q)},function(){tJY(e)}):(C=_.GG().resolve(_.D0(_.cR)))&&C.requestDataForServiceEndpoint(e,l).then(function(Q){EiT(O,x,e,Q)},function(){tJY(e)})};
EiT=function(O,x,e,l){_.wr(x,"yt-service-request-completed",l);if(l.code&&l.code=="ERROR")tJY(e);else{(l=l.data.commands)&&_.gr(O,l,x);var C;(O=(C=_.q(e,_.us3))==null?void 0:C.serializedYpcPauseFlowLoggingParams)&&O&&_.FB("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",O)}};
tJY=function(O){var x;(O=(x=_.q(O,_.us3))==null?void 0:x.serializedYpcPauseFlowLoggingParams)&&O&&_.FB("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",O,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
IO4=function(O,x,e){var l=_.We.instance;l&&_.hI(l,e)?_.z7(l,e).then(function(C){return{data:C}}).then(function(C){Pmp(O,x,e,C)},function(){cO4(e)}):(l=_.GG().resolve(_.D0(_.cR)))&&l.requestDataForServiceEndpoint(e).then(function(C){Pmp(O,x,e,C)},function(){cO4(e)})};
Pmp=function(O,x,e,l){_.wr(x,"yt-service-request-completed",l);l.code&&l.code=="ERROR"?cO4(e):((l=l.data.commands)&&_.gr(O,l,x),(O=_.q(e,_.YqR).serializedYpcResumeFlowLoggingParams)&&O&&_.FB("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",O))};
cO4=function(O){(O=_.q(O,_.YqR).serializedYpcResumeFlowLoggingParams)&&O&&_.FB("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",O,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
VJh=function(O){O=O===void 0?{}:O;_.GG().resolve(_.Wow).showFeedbackDialog(O.customProductData,O.feedbackContent,O.onFeedbackSubmitted,O.bucket)};
pML=function(O){O=O===void 0?{}:O;_.GG().resolve(_.Wow).showHelpDialog(O.helpContext,O.articleId,O.productData)};
RIO=function(){pML()};
Ui4=function(){VJh()};
miQ=function(O,x,e){var l,C,Q,L,k,M,G;return _.A(function(X){switch(X.nextAddress){case 1:l=_.q(O,aOQ);if((C=l)==null?0:C.productId){M={productId:l.productId,bucket:l.bucket,enableAnonymousFeedback:(k=l.enableAnonymousFeedback)!=null?k:!0,allowNonLoggedInFeedback:!0};G={feedbackChoice:e.feedbackChoice};if(!_.t("web_collect_offline_state")){X.jumpTo(8);break}_.tS(X,9);return X.yield(JBQ(G),11)}L={bucket:(Q=l)==null?void 0:Q.bucket};if(!_.t("web_collect_offline_state")){X.jumpTo(4);break}L.customProductData=
{};_.tS(X,5);return X.yield(JBQ(L.customProductData),7);case 7:_.lb(X,4);break;case 5:_.VP(X);case 4:VJh(L);X.jumpTo(0);break;case 11:_.lb(X,8);break;case 9:_.VP(X);case 8:_.oYs(G),_.XQr("GFEEDBACK",G),l.productId==="5295751"&&(G.client_attestation=Number(_.wz("CATSTAT",0))),l.productId==="5295751"&&(G.client_time=Date.now()/1E3/3600),l.productId==="5295751"&&(G.original_playback_id=_.Rkd||""),_.eU$(M,G),_.Ra(X)}})};
sKe=function(O){if(O=_.q(O,_.UUr)){var x={bucket:O.bucketIdentifier};O.additionalDatas&&(x.customProductData={},O.additionalDatas.forEach(function(e){if(e=e.userFeedbackEndpointProductSpecificValueData)x.customProductData[e.key]=e.value}));
VJh(x)}};
WtL=function(O){var x=_.iU.getInstance();var e=_.CZ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var l=_.CZ("DELETE",void 0,"Delete"),C=_.CZ("CANCEL",void 0,"Cancel");e=epT(e,void 0,l,C,{signal:"DELETE_ALL_DOWNLOADS"});_.z6(x,[{openPopupAction:e}],O)};
zIh=function(){return _.A(function(O){return O.nextAddress==1?O.yield(_.GG().resolve(_.HB),2):O.yield(hIL(),0)})};
rOw=function(O){var x,e;return _.A(function(l){return l.nextAddress==1?(e=(x=_.q(O,_.Nu))==null?void 0:x.targetId)?l.yield(_.GG().resolve(_.HB),3):l.jumpTo(0):l.yield(_.GG().resolve(_.rQ).deleteVideo(e),0)})};
KtL=function(O){var x,e;return _.A(function(l){return l.nextAddress==1?(e=(x=_.q(O,_.Nu))==null?void 0:x.targetId)?l.yield(_.GG().resolve(_.HB),3):l.jumpTo(0):l.yield(H0e(_.GG().resolve(_.rQ),e),0)})};
niQ=function(O){var x,e;return _.A(function(l){return(e=(x=_.q(O,_.Nu))==null?void 0:x.targetId)?l.yield(dip(e),0):l.jumpTo(0)})};
Yap=function(){_.t("kevlar_woffle_refresh_dl_load_killswitch")||ulu()};
viL=function(){_.t("kevlar_woffle")&&_.oF.instance&&B4p()};
JO4=function(O){var x;if((x=_.q(O,_.bw))==null||!x.videoId)return!1;fOL(_.GG().resolve(_.rQ),_.q(O,_.bw),O.clickTrackingParams);return!0};
SaO=function(O){var x;if((x=_.q(O,_.TA))==null||!x.playlistId)return!1;wMY(_.GG().resolve(_.rQ),_.q(O,_.TA),O.clickTrackingParams);return!0};
N4w=function(O){var x=_.q(O,_.RZ4);(x==null?void 0:x.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(x==null?void 0:x.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||jKQ(_.GG().resolve(_.rQ),_.q(O,_.RZ4))};
$iL=function(O){O=_.q(O,_.OdD);var x;(O==null?0:(x=O.actions)==null?0:x.length)&&giQ(O)};
xp4=function(O){var x,e;return _.A(function(l){x=_.q(O,i0X);return(e=x)!=null&&e.localWatchHistoryCommandType?l.yield(OlO(x),0):l.return()})};
e0u=function(O){setTimeout(function(){requestAnimationFrame(O)},80)};
lgX=function(O){return Object.entries(O).map(function(x){return x.join(":")}).join(";")};
QsY=function(O){var x,e,l;_.A(function(C){if(C.nextAddress==1)return C.yield(CfQ(),2);x=C.yieldResult;e=_.lV.instance;switch(x){case "granted":l=O.getLocationCommand;break;case "denied":l=O.openDeniedDialogAction;break;case "prompt":l=O.openCollectionDialogAction;break;default:l=O.openCollectionDialogAction}l&&e.resolveCommand(l);_.Ra(C)})};
CfQ=function(){var O,x;return _.A(function(e){if(e.nextAddress==1)return O="prompt",navigator.permissions?e.yield(navigator.permissions.query({name:"geolocation"}),3):e.jumpTo(2);e.nextAddress!=2&&(x=e.yieldResult,O=x.state);return e.return(O)})};
TpX=function(){_.A(function(O){return O.yield(_.blT(),0)})};
Lnh=function(){var O,x,e;return _.A(function(l){if(l.nextAddress==1)return O=_.GG().resolve(_.IF),O?l.yield(_.z7(O,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.ft(Error("Vl")),l.return(void 0));if(x=l.yieldResult){if(x.errorMetadata)return _.ft(Error("Wl`"+x.errorMetadata.status+"`"+x.error)),l.return(void 0);e=x.datasyncIds;_.JSL=e.length;return l.return(e)}_.ft(Error("Xl"));return l.return(void 0)})};
k3L=function(){Lnh().then(function(O){O&&(tUw(O),djL(O),Mfh(O),Sxh(O))})};
AlT=function(O){_.vn.addLowPriorityJob(function(){var x,e,l,C,Q;return _.A(function(L){switch(L.nextAddress){case 1:if(_.t("ytidb_clear_optimizations_killswitch")){L.jumpTo(2);break}x=_.hq("clear");if(x.startsWith("V")&&x.endsWith("||")){var k=[x];tUw(k);djL(k);Mfh(k);Sxh(k);return L.return()}e=DjL();l=jlQ();return L.yield(n0L(),3);case 3:return C=L.yieldResult,L.yield(qwQ(),4);case 4:if(Q=L.yieldResult,!(e||l||C||Q))return L.return();case 2:O.isNetworkAvailable()?k3L():O.listenOnce("publicytnetworkstatus-online",
k3L),_.Ra(L)}})})};
e9=function(O){O={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.KA(O)}}}};_.lV.instance&&_.lV.instance.resolveCommand(O)};
MW4=function(O){if(O){var x=_.k0();_.tx(x,3854,void 0,{layer:0,parentLayer:4});switch(O){case 1:var e=238708;break;case 2:e=238715;break;case 3:e=238710;break;case 6:e=238709}e&&(O=_.L_(x,{veType:e}))&&_.cu(x,O)}};
DpX=function(O){if(O){var x=_.k0();_.tx(x,3854,void 0,{layer:0,parentLayer:4});switch(O){case 1:var e=238714;break;case 2:e=238711;break;case 8:e=238709;break;case 7:e=238713;break;case 3:case 4:case 5:e=238712}e&&(O=_.L_(x,{veType:e}))&&_.cu(x,O)}};
G3u=function(O){switch(O.latencyType){case 0:_.cU("consent_primitive_flow");_.IR("cpit",O.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.IR("cpist",O.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.IR("cprtif",O.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.IR("cprtli",O.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.IR("cprt",O.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.IR("cpdt",O.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.IR("cpjct",O.timestampEpochMillis,"consent_primitive_flow")}};
cl$=function(O,x){var e,l,C,Q,L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u,Y;return _.A(function(J){switch(J.nextAddress){case 1:_.tS(J,2);(l=(e=_.q(O,FnT))==null?void 0:e.serializedConsentRequest)||(l=(C=_.q(O,XSw))==null?void 0:C.serializedConsentRequest);l&&(Q=o4Y(_.ir(l)));if(Q===void 0)return J.return();L=yle(Q);L.latencyCallback=G3u;x&&Zle(L,function(){x.then(function(O8){O8.pauseVideo();(new E4X).increment()})});
return((k=_.q(O,FnT))==null?void 0:k.consentAction)==="CONSENT_ACTION_PREWARM"||((M=_.q(O,XSw))==null?void 0:M.consentAction)==="CONSENT_ACTION_PREWARM"?J.yield(tW4(L),5):J.yield(q5Q(L),6);case 6:G=J.yieldResult;X=_.ki(G,lB);if(X===1){if(((y=_.tO(G,CD,1,lB))==null?void 0:_.y7(y,1))===1||((Z=_.tO(G,CD,1,lB))==null?void 0:_.y7(Z,1))===2||((E=_.tO(G,CD,1,lB))==null?void 0:_.y7(E,1))===3)_.q(O,XSw)?e9(_.CZ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
e9(_.CZ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));MW4((P=_.tO(G,CD,1,lB))==null?void 0:_.y7(P,1),_.Mq(G,PfL,3,_.Dd()))}else X===2?(((U=Qm(G))==null?void 0:_.y7(U,1))===5?_.q(O,XSw)?e9(_.CZ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):e9(_.CZ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((W=Qm(G))==null?void 0:_.y7(W,1))===1||((z=Qm(G))==null?void 0:_.y7(z,1))===4?e9(_.CZ("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((r=Qm(G))==null?void 0:_.y7(r,1))===7&&((f=Q)==null?void 0:(u=_.y4(f,bB,4))==null?void 0:_.y7(u,4))!==1&&e9(_.CZ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),DpX((Y=Qm(G))==null?void 0:_.y7(Y,1))):e9(_.CZ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));J.jumpTo(5);break;case 5:_.lb(J,0);break;case 2:_.VP(J),e9(_.CZ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Ra(J)}})};
VWL=function(){if(!IgQ.has("Worker")){IgQ.set("Worker",!0);var O={api:"BROWSER_API_WEB_WORKER"};O.available="Worker"in window?!0:!1;_.uU("apiTest",O)}};
pSY=function(O){return typeof O==="undefined"?"-1":String(Math.ceil(O/1048576))};
mp$=function(O,x){R0h(new UpT(_.q(x,agL).addToken,_.q(x,agL).commonToken)).then(function(){_.wr(O,"yt-invoke-instrument-manager-action-completed")},function(e){_.wr(O,"yt-invoke-instrument-manager-action-error",e)})};
T4=function(){return _.wz("HTML_DIR")==="rtl"};
ssu=function(){var O,x;return(x=(O=window).matchMedia)==null?void 0:x.call(O,"(prefers-reduced-motion: reduce)").matches};
Wn4=function(O){var x=_.GG().resolve(_.D0(_.r9));if(x&&x.isAnyTransitionEnabled){var e={};x.viewTransitionCoordinator.registerElement(O,(e.slide="miniplayer-page-transition",e["lockup-to-watch"]="miniplayer-page-transition",e["learning-journey"]="miniplayer-page-transition",e))}};
h0T=function(O,x,e){return{horizontalAlignment:O.x+e.width/2<x.width/2?"west":"east",verticalAlignment:O.y+e.height/2<x.height/2?"north":"south"}};
rlL=function(O,x,e,l,C){C=C===void 0?new _.dc(0,0):C;O=z0h(O,x,e,l,!1);return new _.dc(O.x+C.x,O.y+C.y)};
z0h=function(O,x,e,l,C){C=(C===void 0?0:C)?400:0;return new _.dc(O==="west"?16+(T4()?C:0):e.width-l.width-16-(T4()?0:C),x==="north"?16:e.height-l.height-16)};
Hlu=function(O,x){var e=0;O&&(e+=76);x&&(e+=285);return e};
KnQ=function(O){return _.V7(O)};
dp$=function(O){var x=1;O=O.split(":");for(var e=[];x>0&&O.length;)e.push(O.shift()),x--;O.length&&e.push(O.join(":"));return e};
n4Q=function(O){var x=new _.Lr;return _.qi(x,11,O)};
ube=function(O){var x={};O=O.getAllResponseHeaders().split("\r\n");for(var e=0;e<O.length;e++)if(!_.AL(O[e])){var l=dp$(O[e]),C=l[0];l=l[1];if(typeof l==="string"){l=l.trim();var Q=x[C]||[];x[C]=Q;Q.push(l)}}return _.HX.map(x,function(L){return L.join(", ")})};
bM=function(O,x){return O.JSC$9791_xhr_?O.JSC$9791_xhr_.getResponseHeader(x):null};
Y5T=function(O,x){if(O.isDisposed())throw Error("Ea");O.z6.h9("n");var e=_.sK(O.z6,function(){return O.jpv([x.hk,x.dmY,x.pBo,x.do8])},"n");
O.z6.b5z(e.length);O.z6.xL();return e};
LD=function(O,x,e){Array.isArray(e)||(e=[String(e)]);_.ew2(O.JSC$10027_queryData_,x,e);return O};
B4p=function(){var O=_.oF.instance;_.A(function(x){return O.deferredInstallPrompt?x.yield(O.deferredInstallPrompt.prompt(),0):x.jumpTo(0)})};
BpQ=function(O,x,e){if(_.vi(O))_.e3(O,x,e);else for(O=_.M6$(O);;){var l=O.next();if(l.done)break;x.call(e,l.value,void 0,O)}};
v4L=function(O,x){var e=[];BpQ(x,function(l){try{var C=_.Po.prototype.getWrapper.call(this,l,!0)}catch(Q){if(Q=="Storage: Invalid value was encountered")return;throw Q;}C===void 0?e.push(l):_.A3R(C)&&e.push(l)},O);
return e};
$QL=function(O,x){v4L(O,x).forEach(function(e){_.Po.prototype.remove.call(this,e)},O)};
fgT=function(O){var x=_.Sa;x._minimumZ=Math.max(x._minimumZ,O)};
Jlu=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];wSp=function(O,x){_.Lf(O.vm);O.vm=x};
S5L=function(O,x,e,l){O.setState(5);var C=!!O.mUq&&Jlu.includes(_.Lb(O.mUq)||"");try{var Q=new _.WF({program:x,globalName:e,ikX:{disable:!_.t("att_web_record_metrics")||!_.t("att_skip_metrics_for_cookieless_domains_ks")&&C,sj:"aGIf"}});Q.sIv.then(function(){O.setState(6);l&&l(x)});
wSp(O,Q)}catch(L){O.setState(7),L instanceof Error&&_.ft(L)}};
jsT=function(O,x,e,l,C,Q){var L=L===void 0?"trayride":L;e?(O.setState(2),_.ag(_.Hv(e),function(){if(window[L])S5L(O,l,L,C);else{O.setState(3);var k=_.K_W(e),M=document.getElementById(k);M&&(_.VfL(k),M.parentNode.removeChild(M));_.ft(new _.ry("BL:ULB",e))}},Q)):x?(Q=_.R9("SCRIPT"),x instanceof _.xS?_.Cx(Q,x):Q.textContent=x,Q.nonce=_.iI(document),document.head.appendChild(Q),document.head.removeChild(Q),window[L]?S5L(O,l,L,C):(O.setState(4),_.ft(new _.ry("BL:ULBJ")))):_.ft(new _.ry("BL:ULV"))};
Np$=function(){this.state=1;this.vm=null;this.mUq=void 0};
_.b=Np$.prototype;_.b.initialize=function(O,x,e,l){this.mUq=l;if(O.program){var C;l=(C=O.interpreterUrl)!=null?C:null;if(O.interpreterSafeScript)C=_.wRs(O.interpreterSafeScript);else{var Q;C=(Q=O.interpreterScript)!=null?Q:null}O.interpreterSafeUrl&&(l=_.f$(O.interpreterSafeUrl).toString());jsT(this,C,l,O.program,x,e)}else _.ft(Error("sf"))};
_.b.isInitialized=function(){return!!this.vm};
_.b.getState=function(){return this.state};
_.b.isLoading=function(){return this.state===2};
_.b.invoke=function(O){O=O===void 0?{}:O;var x;this.vm?x=Y5T(this.vm,{hk:O}):x=null;return x};
_.b.dispose=function(){wSp(this,null);this.setState(8)};
_.b.setState=function(O){this.state=O};
var g4$=function(O,x){return O.vm.snapshot(x)},$pL=function(O,x){var e=_.yF("botguard_async_snapshot_timeout_ms",3E3);
x=x===void 0?{}:x;e=e===void 0?3E3:e;return O.vm?new Promise(function(l,C){var Q=!1,L=_.vn.addJob(function(){Q=!0;C(Error("tf"))},1,e);
O.vm?g4$(O,{hk:x}).then(function(k){_.vn.cancelJob(L);Q||l(k)}).catch(function(k){_.vn.cancelJob(L);
Q||C(k)}):(_.vn.cancelJob(L),l(null))}):Promise.resolve(null)},ile=["att/log"],BCQ;
BCQ={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var OrL={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},xZ$=function(O,x){return _.TL(O,{mode:"readwrite",enableRetries:!0},function(e){return _.ydr(e,x,"settingEntity")})},eFp=function(O,x,e){return _.TL(O,{mode:"readonly",
enableRetries:!0},function(l){return _.MX3(l,x,e)})},lNL=function(O){if(!O.storage)return!1;
a:{if(O.storage){try{var x=O.storage.get("TLPQtimestamp")}catch(e){}O=Number(x);if(!isNaN(O))break a}O=void 0}return O?Date.now()-O<864E5:!1},Cep=function(O){if(O.storage){try{var x=O.storage.get("TLPQindex")}catch(e){}O=Number(x);
if(!isNaN(O))return O}},QjT=function(O,x){O.queueProxy&&x.forEach(function(e){if(e.videoId&&e.trackingParams&&O.queueProxy instanceof _.So){var l=_.Pq();
O.queueProxy.attributionData.set(e.videoId,{enqueueingVe:_.Fv(e.trackingParams).getAsJson(),enqueueingCsn:l?l:void 0,clientEnqueueingTimeMs:Math.floor((0,_.F2)()).toString()})}})},brO=function(O){var x=_.JQD(O);
x!=O.currentSnapState_&&(O.currentSnapState_=x,O.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},kI=function(O){this.JSC$13319_networkManager_=O;
this.partCallbacks_=[]};
kI.prototype.getCacheKeyForEndpoint=function(O){return _.kdw(O,!1)};
kI.prototype.onPartsCallback_=function(O){this.partCallbacks_.forEach(function(x){O&&x(O)})};
var Ak=function(O,x,e){kI.call(this,O);this.player_=x;this.autoplayData_=e};
_.c(Ak,kI);Ak.prototype.getCacheKeyForEndpoint=function(O){return _.kdw(O,!!this.autoplayData_)};
Ak.prototype.getTempData=function(O,x){x=x.timeBeforeNextVideo;O={itct:O.clickTrackingParams,lact:_.Gl(),pbis:x,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(O.autonav=1);return O};
Ak.prototype.getXhrParams=function(O){return Object.assign({pbj:"prefetch"},O)};
Ak.prototype.getParams=function(O){O={frags:O.fragmentsRequested.join(",")};_.t("kevlar_droppable_prefetchable_requests")&&(O.prefetch=1);return O};
var TFL=function(O){O.playerEvents_.forEach(function(x){O.player.removeEventListener(x.eventName,x.callback)});
O.playerEvents_.length=0},M8=function(O,x,e){this.player=O;
this.JSC$13329_taskManager=x;this.prefetchDelay=e;this.completionResolver_=null;this.playerEvents_=[]};
M8.prototype.start=function(){var O=this;this.completionResolver_=_.He();_.Ij(this.completionResolver_.promise,function(){TFL(O);O.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var LdL=function(O,x,e){O.player.addEventListener(x,e);O.playerEvents_.push({eventName:x,callback:e})},kae={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},AfY={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Md$=function(O,x,e){M8.call(this,O,x,e);this.cueId_="playbackTrigger-"+Math.random()};
_.c(Md$,M8);
Md$.prototype.prepareTrigger=function(O){var x=this,e=this.player.getDuration(),l=this.player.getVideoData(),C=l.isLive&&l.hasProgressBarBoundaries;if(C&&l.progressBarEndPositionUtcTimeMillis){var Q=l.progressBarEndPositionUtcTimeMillis/1E3;isNaN(Q)||(e=Q)}var L=0;this.prefetchDelay>=0?C?l.progressBarStartPositionUtcTimeMillis&&(l=l.progressBarStartPositionUtcTimeMillis/1E3,isNaN(l)||(L=l+this.prefetchDelay)):L=this.prefetchDelay:L=e+this.prefetchDelay;C?this.player.addUtcCueRange(this.cueId_,L,e):
this.player.addCueRange(this.cueId_,L,e);_.Ij(O.promise,function(){x.player.removeCueRange(x.cueId_)});
LdL(this,"onCueRangeEnter",function(k){k==x.cueId_&&O.resolve(e-L)})};
var DZu=function(O,x){O.fragmentConfiguration_[x].requiredKeys.every(function(e){return!!O.prefetchedData_[e]})&&(O.validatedFragments_.push(x),x=O.missingFragments_.indexOf(x),x!==-1&&O.missingFragments_.splice(x,1))},Gap=function(O){O.prefetchedFragments_.forEach(function(x){DZu(O,x)})},FdT=function(O,x,e){this.pageFragments_=O;
this.prefetchedFragments_=x;this.fragmentConfiguration_=AfY;this.prefetchedData_=e;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Gap(this)},XFQ=function(){},ouL=function(O){this.JSC$13343_playlistManager_=O};
_.c(ouL,XFQ);ouL.prototype.getPrefetchEndpoint=function(){return this.JSC$13343_playlistManager_.getAutoplayEndpoint()};
var yfQ=function(O){this.autonavEndpoints_=O};
_.c(yfQ,XFQ);yfQ.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ZrY=function(O,x,e,l,C){this.autonavEndpoints=O;this.foregroundTrigger=x;this.backgroundTrigger=e;this.pageType=l;this.isInPlaylist=C},EuQ=function(O,x){if(O.webPrefetchData&&O.webPrefetchData.navigationEndpoints&&O.webPrefetchData.navigationEndpoints.length){O=O.webPrefetchData.navigationEndpoints;
var e=_.q(O[0],_.Hq);if(e.watchEndpointSupportedPrefetchConfig&&e.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var l=e.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;e=l.playbackRelativeSecondsPrefetchCondition;e=typeof e==="number"&&Math.abs(e)<x.videoDuration?e:void 0;l=l.countdownUiRelativeSecondsPrefetchCondition;l=typeof l!=="number"||_.t("prefetch_job_config_cleanup_ks")&&x.inPlaylist?void 0:l;if(typeof l==="number")return new ZrY(O,x.makeUpNextTrigger(l),x.makePlaybackTrigger(l),
"watch",x.inPlaylist);if(typeof e==="number")return new ZrY(O,x.makePlaybackTrigger(e),null,"watch",x.inPlaylist)}}},td$=function(O){return O.prefetchJobConfig_.backgroundTrigger?_.$K(_.ztr)()==0?O.prefetchJobConfig_.backgroundTrigger:O.prefetchJobConfig_.foregroundTrigger:O.prefetchJobConfig_.foregroundTrigger},qK4=function(O){_.EK(document,"visibilitychange",O.onVisibilityChange_,!1,O)},D$=function(O){kI.call(this,O)};
_.c(D$,kI);D$.prototype.getCacheKeyForEndpoint=function(O){return kI.prototype.getCacheKeyForEndpoint.call(this,O)};
D$.prototype.getTempData=function(){return{}};
D$.prototype.getXhrParams=function(O){return O};
D$.prototype.getParams=function(){return{}};
var PeO=function(O,x,e){var l=O.prefetchDelay*1E3;if(Math.abs(l)>x)e.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var C=l,Q=x-l;l<0&&(C=x+l,Q=Math.abs(l));var L=O.JSC$13329_taskManager.addJob(function(){e.resolve(Q/1E3)},10,C);
e.promise.thenCatch(function(){O.JSC$13329_taskManager.cancelJob(L)})}},cfu=function(O,x,e){M8.call(this,O,x,e)};
_.c(cfu,M8);cfu.prototype.prepareTrigger=function(O){var x=this;LdL(this,"onAutonavCoundownStarted",function(e){PeO(x,e,O)})};
var INY=function(O){O.pendingPrefetchJob_&&(O.pendingPrefetchJob_.cancel(),O.pendingPrefetchJob_=null)},VdQ=function(O,x,e){if(!O.triggeredTargets.has(x)){var l=_.HKJ(O,x);
l.action=e;_.zKp(O,x,l)}},pFe=function(O){_.P22();
_.Sls("cpt")&&_.ft(Error("sh"));_.CV.requestAnimationFrame(function(){_.CV.setTimeout(function(){_.IR("cpt");var x=_.RR("vpl"),e=_.RR("cpt");x&&e&&_.IR("ol",Math.max(x,e))})});
try{_.IR("fr_s"),O()}catch(x){_.BH(x)}_.CV.requestAnimationFrame(function(){_.IR("bcp")})},RFO=function(O,x){O.serviceEndpointHandlers.push(x)},UZu=function(O,x){x=O.pendingPages_.indexOf(x);
x>-1&&O.pendingPages_.splice(x,1)},aNT=function(O,x){var e=_.fzz.indexOf(x);
e>-1&&_.fzz.splice(e,1);O.targetPage_==x?(O.abort(),_.wAk(O)):UZu(O,x)},mZX=function(O,x,e,l){x={challenge:x};
e&&(x.webResponse=e);return _.NK(O.innertubeTransportService,x,_.YE(ile),l)},sjY=function(O,x,e){if(!x.challenge)throw Error("xi");
if(x.botguardData&&x.botguardData.program){var l=new Np$;l.initialize(x.botguardData,function(){$pL(l,{atr_challenge:x.challenge}).then(function(C){if(!C)throw Error("yi");return mZX(O,x.challenge,C,e)}).catch(function(C){_.ft(C);
return mZX(O,x.challenge,void 0,e)})},void 0)}else mZX(O,x.challenge,void 0,e)},Wde=function(O,x,e){var l={};
x.ids&&(l.ids=[].concat(_.Kx(x.ids)));x.engagementType&&(l.engagementType=x.engagementType);return _.NK(O.innertubeTransportService,l,_.YE(_.p$$),e).then(function(C){if(!C)throw new _.ry("GetAttestationChallenge returned falsy");sjY(O,C,e)}).thenCatch(function(C){_.BH(C)})},hF$=function(O,x,e){return new _.If(function(l,C){var Q;
return _.A(function(L){if(L.nextAddress==1){var k=L.yield,M=x.engagementType,G=x.ids,X={};G=_.T(G!=null?G:[]);for(var y=G.next();!y.done;y=G.next())y=y.value,y.encryptedVideoId?X.encryptedVideoId=y.encryptedVideoId:y.externalChannelId?X.externalChannelId=y.externalChannelId:y.commentId?X.commentId=y.commentId:y.externalOwnerId?X.externalOwnerId=y.externalOwnerId:y.artistId?X.artistId=y.artistId:y.playlistId?X.playlistId=y.playlistId:y.externalPostId?X.externalPostId=y.externalPostId:y.shareId&&(X.shareId=
y.shareId);return k.call(L,xQ4(M,X),2)}Q=L.yieldResult;if(!Q.challenge)return _.ft(Error("zi")),Wde(O,x,e).then(l,C),L.return();k=Q;M={challenge:k.challenge};M.webResponse=k.webResponse;M.engagementType=x.engagementType;M.ids=x.ids;_.NK(O.innertubeTransportService,M,_.YE(ile),e).then(l,C);_.Ra(L)})})},F6w=function(O,x){var e,l,C,Q;
_.A(function(L){if(L.nextAddress==1){e=_.q(x,_.mXp);if(!(e&&e.listId&&O.response&&O.response.playingVideoId)||O.listId!==e.listId)return L.return();O.index===void 0&&(O.index=0);return L.yield(_.SXT(O.JSC$13076_playlistNetworkManager,e.listId,O.index,O.response.playingVideoId),2)}l=L.yieldResult;if(!l)return L.return();C=l.playlistId;Q=l.playlistPanelRenderer;O.setPlaylistData(C,Q,l.autoplayRenderer);_.Ra(L)})},zFe=function(O,x,e){var l=O.getParams(e),C=_.lc7(x,l),Q=O.getTempData(x,e);
Q.endpoint=JSON.stringify(x);_.t("enable_unknown_lact_fix_on_html5")&&(_.GG().resolve(_.Fn),Q.lact=_.Gl());var L={headers:{"X-YouTube-STS":_.wz("STS"),"x-youtube-csoc":1}};_.uh(C,Q);return new _.If(function(k,M){var G=O.getXhrParams(l),X;_.t("kevlar_cache_on_ttl_player")&&(X=_.zK.instance);X&&_.Ged(X,x)?_.qtp(X,x,Q,window.location.href).then(function(y){y?k(y):M()},M):_.uXp(O.JSC$13319_networkManager_,x,G,O.onPartsCallback_.bind(O),L).then(function(y){y?k(y):M()},M)})},rfL=function(O,x){O.triggerPromise_=
x.start();
O.triggerPromise_.then(function(e){var l=O.prefetchEndpointProvider_.getPrefetchEndpoint();if(l){var C=kae[O.prefetchJobConfig_.pageType].prefetchedFragments;O.prefetchRequestPromise_=zFe(O.JSC$13355_networkPrefetchRequest_,l,{fragmentsRequested:C,timeBeforeNextVideo:e});O.prefetchResponseCacheKey_=O.JSC$13355_networkPrefetchRequest_.getCacheKeyForEndpoint(l);qK4(O);O.prefetchRequestPromise_.then(function(Q){O.storePrefetchedDataCallback_(O.prefetchResponseCacheKey_,Q);if(_.t("web_prefetch_preload_video")&&
C.length===1&&C[0]==="pl"&&Q&&!Q.playerAds&&!Q.adPlacements){var L=_.q(l,_.kU),k=L!=null,M={raw_player_response:Q,watch_endpoint:L};(Q=_.GG().resolve(k?_.mV3:_.N5))&&l&&Q.then(function(G){k&&_.t("web_queue_preload_video")?(M.prefer_gapless=!0,G.queueNextVideo(M)):G.preloadVideoByPlayerVars(M)})}})}})},G4=function(O,x,e,l){this.prefetchEndpointProvider_=O;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=x;this.prefetchJobConfig_=e;this.JSC$13355_networkPrefetchRequest_=l;this.prefetchResponseCacheKey_=null};
G4.prototype.enqueue=function(){this.triggerPromise_||(rfL(this,td$(this)),_.ol(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
G4.prototype.resolve=function(){this.cancel()};
G4.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.");qK4(this)};
G4.prototype.onVisibilityChange_=function(){var O=this;_.$K(_.ztr)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){O.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||rfL(this,td$(this))};
var Hr$=function(O,x,e,l,C){x&&(x==null?0:x.videoId)&&e&&e.entries&&_.t("kevlar_enable_shorts_prefetch_in_sequence")&&(INY(O),x=e.entries.map(function(Q){var L;return(L=_.q(Q.command,_.kU))==null?void 0:L.videoId}).indexOf(x.videoId),e=e.entries[x+1],e!=null&&e.command&&!_.q(e==null?void 0:e.command,_.fY)&&(l=new ZrY([e.command],new Md$(l,_.vn,1),null,"shorts",!1),O.pendingPrefetchJob_=new G4(new yfQ(l.autonavEndpoints),function(){return!1},l,new D$(C)),O.pendingPrefetchJob_.enqueue()))},KdL=function(O,
x,e,l,C,Q){var L=_.Ax.getInstance();
if(!_.t("block_all_player_prefetch_requests")){INY(O);var k=!!e.getPlaylistId(),M=e.getVideoData().isLive&&e.getVideoData().hasProgressBarBoundaries;if((L.getState()==2||k||M)&&(!e.getVideoData().isLive||M)){L={inPlaylist:k,videoDuration:e.getDuration(),makeUpNextTrigger:function(X){return new cfu(e,_.vn,X)},
makePlaybackTrigger:function(X){return new Md$(e,_.vn,X)}};
var G=EuQ(x,L);G&&(O.pendingPrefetchJob_=new G4(G.isInPlaylist?new ouL(C):new yfQ(G.autonavEndpoints),function(X,y){y=new FdT(kae[G.pageType].pageFragments,kae[G.pageType].prefetchedFragments,y);return _.VBR(y)?(O.prefetchCache_.set(X,y),!0):!1},G,new Ak(l,e,Q,C)),O.pendingPrefetchJob_.enqueue())}}},dZQ=function(){var O=_.lX();
O.signals.parkOrScheduleJob(function(){var x=O.storage;if(x.storage)if(lNL(x)){var e=x.getPlaylistId();x=Cep(x);e=!!e&&x!==void 0}else x.clear(),e=!1;else e=!1;if(e){e=O.JSC$13076_pageManager.isOnWatch();a:{var l=O.storage;if(l.storage&&lNL(l)&&(x=l.getPlaylistId(),l=Cep(l),x&&l!==void 0)){e={recoverPlaylistCommand:{listId:x,index:l,openMiniplayer:!e,openListPanel:e,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}e=void 0}e&&_.z6(O.JSC$13076_actionRouter,[e],null)}},0,"ma")},nuQ=function(O,x,e,
l,C,Q){var L=_.O9(7111);
_.qK(O.JSC$18542_screenManager,L,Q?_.Fv(Q):void 0);_.cu(O.JSC$18542_screenManager,L,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:l,offlineId:x,offlineabilityFormatType:e,isDefaultFormatType:C==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:C}})},uzL=function(O,x,e,l,C){var Q,L,k,M,G;
return _.A(function(X){if(X.nextAddress==1)return X.yield(O.JSC$18542_playerApiPromise,2);Q=X.yieldResult;nuQ(O,x,e,"OFFLINE_OBJECT_TYPE_PLAYLIST",l,C);if(k=_.ZCT[O.entityTypeMap.listEntityType])G={},L=(G[k]={maximumDownloadQuality:(M=e)!=null?M:void 0},G);return X.yield(Q.queueOfflineAction(x,O.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",L),0)})},YK$=function(O,x){var e,l,C,Q;
return _.A(function(L){if(L.nextAddress==1)return L.yield(O.JSC$18542_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3){e=L.yieldResult;if(!e)return _.ft(new _.ry("PES is undefined")),L.return();l=_.OQ(x,"downloadStatusEntity");return L.yield(eFp(e,l,"downloadStatusEntity"),3)}C=L.yieldResult;return L.return((Q=C)==null?void 0:Q.downloadState)})},BFQ=function(O,x,e,l,C){var Q,L,k,M,G,X;
return _.A(function(y){switch(y.nextAddress){case 1:return y.yield(O.JSC$18542_playerApiPromise,2);case 2:Q=y.yieldResult;nuQ(O,x,e,"OFFLINE_OBJECT_TYPE_VIDEO",l,C);if(k=_.ZCT[O.entityTypeMap.singleEntityType])G={},L=(G[k]={maximumDownloadQuality:(M=e)!=null?M:void 0},G);return y.yield(YK$(O,x),3);case 3:X=y.yieldResult;if(X!=="DOWNLOAD_STATE_USER_DELETED"){y.jumpTo(4);break}return y.yield(O.deleteVideo(x),4);case 4:return y.yield(Q.queueOfflineAction(x,O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
L),0)}})},vuO=function(O,x,e,l,C){return _.A(function(Q){return Q.nextAddress==1?Q.yield(O.deleteVideo(x,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):Q.yield(BFQ(O,x,e,l,C),0)})},fNL=function(O,x,e){var l,C;
return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$18542_playerApiPromise,2);l=Q.yieldResult;C=_.OQ(x,"mainVideoDownloadStateEntity");return Q.yield(l.updateDownloadState(C,e),0)})},dip=function(O){var x=_.GG().resolve(_.rQ);
return _.A(function(e){if(e.nextAddress==1)return x.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&x.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?e.jumpTo(2):e.yield(x.resumeVideoDownload(O),2);if(e.nextAddress!=4)return e.yield(fNL(x,O,x.previousDownloadStateForVideo[O]),4);delete x.previousDownloadStateForVideo[O];_.Ra(e)})},H0e=function(O,x){var e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$18542_playerApiPromise,2);e=l.yieldResult;return l.yield(e.queueOfflineAction(x,O.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},hIL=function(){var O=_.GG().resolve(_.rQ),x,e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$18542_playerApiPromise,2);if(l.nextAddress!=3)return x=l.yieldResult,e={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},l.yield(x.queueOfflineAction("!*$_ALL_ENTITIES_!*$",O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",e),3);var C=O.JSC$18542_commandHandler,Q=C.resolveCommand,L=_.CZ("DELETING_ALL",void 0,"Downloads are being deleted");Q.call(C,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.J3(L)}},
popupType:"TOAST"}});_.Ra(l)})},JfX=function(O,x){var e,l,C,Q,L,k;
return _.A(function(M){if(M.nextAddress==1)return M.yield(O.JSC$18542_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return e=M.yieldResult,e?M.yield(eFp(e,_.ox,"downloadsPageViewConfigurationEntity"),3):(_.ft(new _.ry("PES is undefined")),M.return());C=(l=M.yieldResult)!=null?l:{};k=(L=(Q=C)==null?void 0:Q.downloadsUpsellBannerVisibility)!=null?L:{};return k.visibleWithConnection?M.yield(x.refreshAllStaleEntities(0),0):M.jumpTo(0)})},wFT=function(O){var x,e;
return _.A(function(l){if(l.nextAddress==1)return l.yield(O.JSC$18542_prefStorage,2);x=l.yieldResult;return l.return((e=x)==null?void 0:e.get("sdois"))})},SKu=function(O){var x,e,l,C,Q,L;
return _.A(function(k){if(k.nextAddress==1)return k.yield(O.JSC$18542_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){x=k.yieldResult;if(!x)return _.ft(new _.ry("PES is undefined")),k.return();e=_.OQ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return k.yield(eFp(x,e,"settingEntity"),3)}l=k.yieldResult;return k.return((L=(C=l)==null?void 0:(Q=C.settingOptionValue)==null?void 0:Q.boolValue)!=null?L:!1)})},jjL=function(O,x){var e,l,C,Q;
return _.A(function(L){switch(L.nextAddress){case 1:return((e=x)==null?void 0:e.formatType)===void 0?L.return():L.yield(O.JSC$18542_prefStorage,2);case 2:l=L.yieldResult;if(l===void 0)return L.return();if(((C=x)==null?void 0:C.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return L.yield(l.set("lmqf",x.formatType),8);if(((Q=x)==null?void 0:Q.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){L.jumpTo(0);break}return L.yield(l.set("lmqf",x.formatType),6);case 6:return L.yield(l.set("lmqflst",
Math.floor((0,_.F2)())),0);case 8:return L.yield(l.remove("lmqflst"),0)}})},NFp=function(O){var x,e;
return _.A(function(l){switch(l.nextAddress){case 1:return l.yield(O.JSC$18542_prefStorage,2);case 2:x=l.yieldResult;if(!x){l.jumpTo(3);break}return l.yield(x.get("lmqflst"),4);case 4:if(e=l.yieldResult,e!==void 0)return l.return(e);case 3:return l.return(0)}})},guu=function(O){var x,e;
return _.A(function(l){switch(l.nextAddress){case 1:return l.yield(O.JSC$18542_prefStorage,2);case 2:x=l.yieldResult;if(x===void 0){l.jumpTo(3);break}return l.yield(x.get("lmqf"),4);case 4:if(e=l.yieldResult,e!==void 0)return l.return(e);case 3:return l.return("SD")}})},wMY=function(O,x,e){var l,C,Q,L,k,M,G,X;
_.A(function(y){switch(y.nextAddress){case 1:return y.yield(jjL(O,(l=x)==null?void 0:l.actionParams),2);case 2:C=x.playlistId;if(!C)return y.return();if(x.action==="ACTION_ADD")return((L=x.actionParams)==null?0:L.formatType)?y.yield(uzL(O,C,x.actionParams.formatType,(X=x.actionParams)==null?void 0:X.settingsAction,e),0):y.yield(O.offlineWebClientEligibility,14);if(x.action==="ACTION_REMOVE_WITH_PROMPT"){var Z=O.JSC$18542_commandHandler,E=Z.resolveCommand,P=_.wz("INNERTUBE_CLIENT_NAME");var U=P===
"WEB_REMIX"?_.CZ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CZ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var W=P==="WEB_REMIX"?[_.CZ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];P=P==="WEB_REMIX"?_.CZ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CZ("DELETE",void 0,"Delete");var z=_.CZ("CANCEL",void 0,"Cancel");U=epT(U,W,P,z,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:C});E.call(Z,{openPopupAction:U});return y.return()}if(x.action===
"ACTION_REMOVE")return y.yield(H0e(O,C),0);if(x.action!=="ACTION_SYNC"){y.jumpTo(0);break}return y.yield(O.JSC$18542_playerApiPromise,9);case 9:return Q=y.yieldResult,y.yield(Q.queueOfflineAction(C,O.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return k=y.yieldResult,y.yield(guu(O),15);case 15:return M=y.yieldResult,y.yield(NFp(O),16);case 16:G=y.yieldResult,x.onAddCommand&&O.JSC$18542_commandHandler.resolveCommand(x.onAddCommand,{form:{preferredFormatType:M,
offlineWebClientEligibility:k,lastOfflineQualitySettingsSavedMs:G.toString()}}),y.jumpTo(0)}})},fOL=function(O,x,e){var l,C,Q,L,k,M,G,X,y,Z,E,P,U,W;
_.A(function(z){switch(z.nextAddress){case 1:return z.yield(jjL(O,(l=x)==null?void 0:l.actionParams),2);case 2:C=x.videoId;if(!C)return z.return();if(x.action==="ACTION_REMOVE_WITH_PROMPT"){var r=O.JSC$18542_commandHandler,f=r.resolveCommand,u=_.wz("INNERTUBE_CLIENT_NAME");var Y=u==="WEB_REMIX"?_.CZ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CZ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var J=u==="WEB_REMIX"?[_.CZ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];u=u==="WEB_REMIX"?_.CZ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CZ("DELETE",void 0,"Delete");var O8=_.CZ("CANCEL",void 0,"Cancel");Y=epT(Y,J,u,O8,{signal:"DELETE_DOWNLOAD",targetId:C});f.call(r,{openPopupAction:Y});return z.return()}if(x.action==="ACTION_ADD")return((Z=x.actionParams)==null?0:Z.formatType)?z.yield(BFQ(O,C,x.actionParams.formatType,(W=x.actionParams)==null?void 0:W.settingsAction,e),0):z.yield(O.offlineWebClientEligibility,23);if(x.action==="ACTION_RETRY")return z.yield(guu(O),
19);if(x.action==="ACTION_PAUSE")return z.yield(O.pauseVideoDownload(C),0);if(x.action==="ACTION_RESUME")return z.yield(O.resumeVideoDownload(C),0);if(x.action!=="ACTION_REMOVE"){z.jumpTo(0);break}return z.yield(YK$(O,C),13);case 13:return Q=z.yieldResult,O.previousDownloadStateForVideo[C]=(L=Q)!=null?L:"DOWNLOAD_STATE_UNKNOWN",z.yield(fNL(O,C,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(O.previousDownloadStateForVideo[C]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&O.previousDownloadStateForVideo[C]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){z.jumpTo(15);break}return z.yield(O.pauseVideoDownload(C),15);case 15:r=_.CZ("DELETED_VIDEO",void 0,"Video deleted from downloads.");f=_.CZ("UNDO_ACTION",void 0,"Undo");Y=_.CZ("CLOSE",void 0,"Close");k={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.J3(r),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.J3(f),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:C}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:r+" "+f}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:C}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Y}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};O.JSC$18542_commandHandler.resolveCommand(k);
z.jumpTo(0);break;case 19:M=z.yieldResult;M==="UNKNOWN_FORMAT_TYPE"&&(M="SD");G="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((X=x.actionParams)==null?0:X.formatType)M=x.actionParams.formatType,G=(y=x.actionParams)==null?void 0:y.settingsAction;return z.yield(vuO(O,C,M,G,e),20);case 20:return z.return();case 23:return E=z.yieldResult,z.yield(guu(O),24);case 24:return P=z.yieldResult,z.yield(NFp(O),25);case 25:U=z.yieldResult,x.onAddCommand&&O.JSC$18542_commandHandler.resolveCommand(x.onAddCommand,
{form:{preferredFormatType:P,offlineWebClientEligibility:E,lastOfflineQualitySettingsSavedMs:U.toString()}}),z.jumpTo(0)}})},$ZO=function(O,x){var e,l,C,Q,L,k,M;
return _.A(function(G){if(G.nextAddress==1)return G.yield(O.JSC$18542_persistentStorePromiseAccessor(),2);e=G.yieldResult;if(!e)return _.ft(new _.ry("PES is undefined")),G.return();if((l=x)==null||!l.settingItemId)return G.return();C=x;Q=C.settingItemId;L=C.boolValue;k=_.OQ(Q,"settingEntity");M={key:k,settingOptionValue:{boolValue:L}};return G.yield(xZ$(e,M),0)})},irp=function(O,x){var e,l,C,Q,L,k,M;
return _.A(function(G){switch(G.nextAddress){case 1:return G.yield(O.JSC$18542_prefStorage,2);case 2:return e=G.yieldResult,l=_.TD(),G.yield(O.JSC$18542_persistentStorePromiseAccessor(),3);case 3:return C=G.yieldResult,e?C?G.yield(e.get("sdois"),4):(_.ft(new _.ry("PES is undefined")),G.return()):(_.ft(new _.ry("prefStorage is undefined")),G.return());case 4:Q=G.yieldResult;k=(L=x)==null?void 0:L.boolValue;k===void 0||_.t("kevlar_set_sd_enabled_flag_killswitch")||_.LZ(0,197,!0);Q===void 0&&k===void 0&&
(k=!1);if(k===void 0){G.jumpTo(0);break}return G.yield(e.set("sdois",k),6);case 6:return _.t("kevlar_set_sd_enabled_flag_killswitch")||(_.LZ(0,196,k),l.save()),M={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:k},G.yield($ZO(O,M),0)}})},OyT=function(O,x,e){var l,C,Q,L,k;
return _.A(function(M){switch(M.nextAddress){case 1:return M.yield(wFT(O),2);case 2:return l=M.yieldResult,M.yield(irp(O,e),3);case 3:return M.yield(wFT(O),4);case 4:return C=M.yieldResult,Q=C!==l,M.yield(SKu(O),5);case 5:L=M.yieldResult&&!_.t("kevlar_modern_downloads_page");if((k=!C&&!L)||Q)return M.yield(x.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);M.jumpTo(0)}})},ulu=function(){var O=_.GG().resolve(_.rQ),
x;
_.A(function(e){switch(e.nextAddress){case 1:return e.yield(O.JSC$18542_playerApiPromise,2);case 2:x=e.yieldResult;if(!_.t("kevlar_force_refresh_smart_downloads")){e.jumpTo(3);break}return e.yield(x.refreshAllStaleEntities(0),4);case 4:return e.return();case 3:return e.yield(x.refreshAllStaleEntities(),5);case 5:return e.yield(OyT(O,x),6);case 6:if(_.t("enable_download_pep_for_premium_countries_web"))return e.yield(JfX(O,x),0);e.jumpTo(0)}})},jKQ=function(O,x){var e,l;
_.A(function(C){switch(C.nextAddress){case 1:return C.yield(O.JSC$18542_playerApiPromise,2);case 2:e=C.yieldResult;switch((l=x)==null?void 0:l.settingItemId){case "SMART_DOWNLOADS_ENABLED":return C.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return C.jumpTo(4)}C.jumpTo(0);break;case 3:return C.yield(OyT(O,e,x),6);case 6:C.jumpTo(0);break;case 4:return C.yield($ZO(O,x),7);case 7:C.jumpTo(0)}})},x0u=function(O,x){var e,l,C;
return _.A(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$18542_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3){e=Q.yieldResult;if(!e)return _.ft(new _.ry("PES is undefined")),Q.return(!1);if(!x)return Q.return(!1);l=_.OQ(x,"mainVideoEntity");return Q.yield(eFp(e,l,"mainVideoEntity"),3)}C=Q.yieldResult;return Q.return(C!==void 0)})},giQ=function(O){var x=_.GG().resolve(_.rQ),e,l,C,Q,L,k,M,G,X,y,Z;
_.A(function(E){switch(E.nextAddress){case 1:return E.yield(x.JSC$18542_playerApiPromise,2);case 2:e=E.yieldResult;C=(l=O)==null?void 0:l.actions;if(!C)return E.return();Q=_.T(C);L=Q.next();case 3:if(L.done){E.jumpTo(0);break}k=L.value;G=M=void 0;if(!(((M=k)==null?0:M.entityKey)&&((G=k)==null?0:G.actionType))){E.jumpTo(4);break}X=_.gT(k.entityKey);y=X.entityId;Z=X.entityType;return E.yield(e.queueOfflineAction(y,Z,k.actionType),4);case 4:L=Q.next(),E.jumpTo(3)}})},e_4=function(O,x){var e,l,C,Q,L;
return _.A(function(k){if(k.nextAddress==1)return k.yield(O.JSC$18542_prefStorage,2);if(k.nextAddress!=3)return(e=k.yieldResult)?k.yield(e.get("psi"),3):k.return();l=k.yieldResult;L={isPaused:x,lastSyncTimestamp:(Q=(C=l)==null?void 0:C.lastSyncTimestamp)!=null?Q:"0"};return k.yield(e.set("psi",L),0)})},OlO=function(O){var x=_.GG().resolve(_.rQ),e,l,C,Q,L,k,M,G;
return _.A(function(X){switch(X.nextAddress){case 1:return X.yield(x.JSC$18542_playerApiPromise,2);case 2:e=X.yieldResult;C=((l=O)==null?void 0:l.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((k=O)==null?void 0:k.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":Q="!*$_ALL_ENTITIES_!*$";L="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return X.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return X.jumpTo(4)}X.jumpTo(5);break;case 3:return X.yield(e_4(x,C),6);case 6:X.jumpTo(5);break;case 4:return X.yield(x0u(x,(M=O)==null?void 0:M.videoId),7);case 7:X.yieldResult&&(Q=(G=O)==null?void 0:G.videoId,L="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");X.jumpTo(5);break;case 5:if(Q&&L)return X.yield(e.queueOfflineAction(Q,"videoPlaybackPositionEntity",L),0);X.jumpTo(0)}})},lV4=function(O,x){var e;
x!==1||((e=O.currentPersistentToast)==null?0:e.isOpened())?O.openToast():O.currentPersistentToast=void 0},CRe=function(O,x){var e;
return(e=O.transitionTasksMap.get(x))!=null?e:[]},QE4=function(O,x){var e=[];
O.elementTasksMap.forEach(function(l){(l=l.get(x))&&e.push(l)});
return e},byT=function(O,x,e,l,C){C=C===void 0?{}:C;
var Q=x.defaultViewTransitionOptions;return Object.assign({},Q,C,{beforeTransition:function(){l.forEach(function(G){G.beforeTransition()});
var L;(L=Q.beforeTransition)==null||L.call(Q);var k,M;(M=(k=C).beforeTransition)==null||M.call(k);e.forEach(function(G){G.beforeTransition()})},
afterTransition:function(){l.forEach(function(G){G.afterTransition()});
var L;(L=Q.afterTransition)==null||L.call(Q);var k,M;(M=(k=C).afterTransition)==null||M.call(k);e.forEach(function(G){G.afterTransition()})},
ignoredErrors:O.config.ignoredErrors})},TVw=function(O,x,e){O.transitionTasksMap.has(x)?O.transitionTasksMap.get(x).push(e):(O=new _.ry("Transition task registered for unknown transition type",x),_.BH(O))},LhQ=function(O,x,e){if(O.transitionTasksMap.has(x)){var l=O.transitionTasksMap.get(x).filter(function(C){return C!==e});
O.transitionTasksMap.set(x,l)}},k5T=function(O,x){var e=CRe(O,x);
e=_.T(e);for(var l=e.next();!l.done;l=e.next())l=l.value,l.runOnce&&LhQ(O,x,l);O.elementTasksMap.forEach(function(C,Q){C.forEach(function(L,k){L.runOnce&&x===k&&(C.delete(k),C.size===0&&O.elementTasksMap.delete(Q))})})},ADu=function(O,x,e){var l,C,Q,L,k,M,G,X,y;
_.A(function(Z){if(Z.nextAddress==1){if(O.config.disableAllTransitions)return Z.return(x());if((l=e)==null||!l.transitionType)return Z.return(_.aPe(x,Object.assign({},(C=e)==null?void 0:C.viewTransitionOptions,{ignoredErrors:O.config.ignoredErrors})));Q=e;L=Q.transitionType;k=Q.viewTransitionOptions;M=O.config.transitionConfigs.get(L);if(!M)return Z.return(x());G=CRe(O,L);X=QE4(O,L);y=_.aPe(x,byT(O,M,G,X,k));return Z.yield(y,2)}k5T(O,L);_.Ra(Z)})},MvY=function(){var O,x,e,l;
return _.A(function(C){if(C.nextAddress==1)return O=navigator,(x=O.storage)!=null&&x.persisted?C.yield((e=O.storage)==null?void 0:e.persisted(),2):C.return("PERSISTED_STATE_NOT_SUPPORTED");l=C.yieldResult;return C.return(l?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},D0L=function(){var O,x,e,l;
return _.A(function(C){if(C.nextAddress==1)return O=navigator,(x=O.storage)!=null&&x.persist?C.yield((e=O.storage)==null?void 0:e.persist(),2):C.return("PERSISTED_STATE_NOT_SUPPORTED");l=C.yieldResult;return C.return(l?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},G5w=function(){var O,x;
return _.A(function(e){switch(e.nextAddress){case 1:return O="PERSISTED_STATE_NOT_SUPPORTED",_.tS(e,2),e.yield(MvY(),4);case 4:O=e.yieldResult;if(O!=="PERSISTED_STATE_NOT_GRANTED"){e.jumpTo(5);break}return e.yield(D0L(),6);case 6:O=e.yieldResult;case 5:_.lb(e,3);break;case 2:x=_.VP(e),x instanceof Error&&_.BH(x);case 3:return _.uU("persistentStorageStateChecked",{persistedState:O}),e.return(O)}})},Fhh=function(O,x){var e=[],l=!1;
x=_.T(x);for(var C=x.next();!C.done;C=x.next()){C=O.moduleRegistry[C.value];var Q=void 0,L=void 0;((Q=C)==null?0:Q.isFetching)&&((L=C)==null?0:L.resolver)?(e.push(C.resolver.promise),l=!0):(C=new _.OA,C.resolve(void 0),e.push(C.promise))}return l?Promise.all(e):void 0},XxQ=function(O,x,e){if(O.isAnyTransitionEnabled){var l={beforeTransition:function(){e(!0);
x.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){x.style.viewTransitionName&&(x.style.viewTransitionName="",e(!1))}};
TVw(O.viewTransitionCoordinator,"slide",l);TVw(O.viewTransitionCoordinator,"lockup-to-watch",l);TVw(O.viewTransitionCoordinator,"watch-next-appears",l);TVw(O.viewTransitionCoordinator,"learning-journey",l)}},oxw=function(O,x){O.isBrowseTransitionEnabled?ADu(O.viewTransitionCoordinator,x,{transitionType:"slide"}):(x(),Promise.resolve())},yDQ=function(O,x){O.isLockupToWatchTransitionEnabled?ADu(O.viewTransitionCoordinator,x,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){O.registeredLockupThumbnail=void 0;O.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(x(),Promise.resolve())},ZyY=function(O,x){O.isLockupToWatchTransitionEnabled?ADu(O.viewTransitionCoordinator,x,{transitionType:"watch-next-appears"}):(x(),Promise.resolve())},Exe=function(O,x){O.isLearningJourneyTransitionEnabled?ADu(O.viewTransitionCoordinator,x,{transitionType:"learning-journey"}):(x(),Promise.resolve())},tve=function(O,x,e){if(O.isInitialized()){var l=
Su(e),C=l==="watch";
l=l==="shorts";var Q=Su(x)==="watch";if(C)Q||(O.backgroundPageData=x),O.watchPipMode&&Q||O.deactivate(e.endpoint);else if(l){if(Su(x)!=="shorts"){var L;(L=O.getPlayerElement())==null||L.pause()}}else Q&&!O.watchPipMode&&(CHw(x,e)?(O.watchWhileMode&&_.dBw(O,!1),_.WQQ(O,x)):O.isMiniplayerActive()&&O.watchWhileMode&&O.deactivate());Q&&_.u2T(O);O.shortsPipMode&&!l&&(window.focus(),O.deactivate());if(O.pictureInPictureEnabled())if(l&&O.shortsPipEnabled||C&&O.watchPipEnabled)_.A9L(O.handleMediaSessionPipActivation);
else if(!O.isMiniplayerActive()&&(O.shortsPipEnabled||O.watchPipEnabled)&&window.documentPictureInPicture&&_.am()&&_.PrL("Chromium")>=120){O=_.kmN().mediaSession;try{O.setActionHandler("enterpictureinpicture",null)}catch(k){}}}},qS4=function(O,x){var e,l;
_.A(function(C){if(C.nextAddress==1){if(!O||!O.navigationEndpoint)return C.return();_.U7().lockupActivation=!0;var Q;x?Q=_.KA(_.CZ("QUEUE",void 0,"Queue")):Q=O.longBylineText;l=(e=Q)&&O.title?{miniplayerTitle:O.title,miniplayerSubtitle:e,playlistData:null}:void 0;return C.yield(_.n1d(_.GG().resolve(_.Vs),O.navigationEndpoint,!0,l),2)}_.U7().userActivation=!0;_.Ra(C)})},M1X=function(O,x){var e,l,C,Q,L,k;
_.A(function(M){if(M.nextAddress==1){e=_.q(x,_.aiL);if(!e||!e.listId)return M.return();O.index=e.index||O.index||0;l=O.response&&O.response.playingVideoId||void 0;return M.yield(_.SXT(O.JSC$13076_playlistNetworkManager,e.listId,O.index,l),2)}C=M.yieldResult;if(!C)return M.return();Q=C.playlistId;L=C.playlistPanelRenderer;!O.queueProxy&&Q&&L&&Q.startsWith("TLPQ")&&(O.queueProxy=new _.So(O.JSC$13076_playlistNetworkManager,Q,O.setPlaylistData.bind(O),O.clearQueue.bind(O),_.ijm(L),O.storage));if(e.openMiniplayer&&
(k=_.OzL(L))&&!O.JSC$13076_pageManager.isOnWatch()){var G=k,X=e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";O.isMiniplayerActive()?O.openToast(G):qS4(G,X)}O.setPlaylistData(Q,L,C.autoplayRenderer);_.Ra(M)})},L6O=function(O,x){var e=_.lX();
e.index===void 0&&(e.index=0);e.temporaryItems.push.apply(e.temporaryItems,_.Kx(O));if((x.videoId||x.videoIds)&&e.index!==void 0&&x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!e.queueProxy){var l=[];if(e.response){var C=_.GG().resolve(_.Vs).isMiniplayerActive();if(e.response.playlistPanelRenderer&&e.response.playlistId&&!e.response.playlistId.startsWith("TLPQ")){if(e.JSC$13076_pageManager.isOnWatch()||C)l=_.ijm(e.response.playlistPanelRenderer)}else e.response.playingVideoId&&!x.openMiniplayer?
l.push(e.response.playingVideoId):C&&e.response.playingVideoId&&x.openMiniplayer&&l.push(e.response.playingVideoId)}e.queueProxy=new _.So(e.JSC$13076_playlistNetworkManager,"",e.setPlaylistData.bind(e),e.clearQueue.bind(e),l,e.storage);e.queueProxy.JSC$13022_setCurrentIndex(e.index)}e.queueProxy.addVideos(x.videoIds||[x.videoId],x)}QjT(e,O);e.response&&_.CL(e,_.Qp(e,e.response.autoplayRenderer));e.JSC$13076_pageManager.isOnWatch()?e.isMiniplayerActive()&&e.openToast(O[0]):(O=O[0],x=x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
e.isMiniplayerActive()?e.openToast(O):qS4(O,x))},PRX=function(O){var x=_.Nk(O);
if(x=="object"||x=="array"){if(typeof O.clone==="function")return O.clone();if(typeof Map!=="undefined"&&O instanceof Map)return new Map(O);if(typeof Set!=="undefined"&&O instanceof Set)return new Set(O);x=x=="array"?[]:{};for(var e in O)x[e]=PRX(O[e]);return x}return O},Fd=function(O,x){return _.EdL(_.C0(O,x,void 0,_.lm))},Xd=function(O,x){return _.TX(_.C0(O,x,void 0,_.lm))},o5=function(O,x){return _.K3w(_.C0(O,x,void 0,_.lm))},ym=function(O,x){return _.C0(O,x,void 0,_.lm,_.j$)},cD4=_.ky(function(O,
x,e,l){if(O.nextWireType_!==0)return!1;
_.L0(x,e,l,_.IK(O.decoder_,_.yJL));return!0},_.Xa,_.aK),IV4=_.ky(function(O,x,e){if(O.nextWireType_!==1)return!1;
var l=O.decoder_;O=_.p0(l);l=_.p0(l);O=_.n2(O,l);_.MT(x,e,O);return!0},_.Kow,_.BNp),VvQ=_.ky(function(O,x,e){if(O.nextWireType_!==5)return!1;
_.MT(x,e,_.p0(O.decoder_));return!0},function(O,x,e){x=_.PFr(x);
x!=null&&(_.Ds(O,e,5),_.GH(O.encoder_,x))},_.ndL),pxh=_.ky(function(O,x,e){if(O.nextWireType_!==2)return!1;
O=_.pdT(O);_.MT(x,e,O===_.UT()?void 0:O);return!0},_.Bk8,_.JJD),R_O=_.UT8(function(O,x,e){if(O.nextWireType_!==0&&O.nextWireType_!==2)return!1;
x=_.xy(x,x[_.C2]|0,e);O.nextWireType_==2?_.RL2(O,KnQ,x):x.push(_.V7(O.decoder_));return!0},function(O,x,e){x=_.Rz8(_.TX,x,!0);
if(x!=null&&x.length){e=_.hLd(O,e);for(var l=0;l<x.length;l++)_.zzL(O.encoder_,x[l]);_.zLd(O,e)}},_.wdD),U0T=_.ky(function(O,x,e,l){if(O.nextWireType_!==0)return!1;
_.L0(x,e,l,_.V7(O.decoder_));return!0},_.fs8,_.wdD),aVO=function(O){return O.previousElementSibling!==void 0?O.previousElementSibling:_.CtR(O.previousSibling,!1)},m0O=function(O,x){var e=[];
for(x=x||0;x<O.length;x+=2)_.wXL(O[x],O[x+1],e);return e.join("&")},sET=function(O,x){var e=arguments.length==2?m0O(arguments[1],0):m0O(arguments,1);
return _.Jjd(O,e)},s24=_.Pw(_.EM),WhT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(WhT,_.TH);WhT.prototype.getTypeName=function(){return _.oK(this,1).split("/").pop()};
WhT.prototype.getValue=function(){var O=_.C0(this,2);if(Array.isArray(O)||O instanceof _.TH)throw Error("W");return _.TB(this,2)};
var tRX=function(){var O=_.Nc();this.JSC$9912_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.o9("channel_type"))};
tRX.prototype.increment=function(O){this.JSC$9912_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",O)};
var q9Q=function(){var O=_.Nc();this.JSC$9915_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.o9("channel_type"))};
q9Q.prototype.increment=function(O){this.JSC$9915_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",O)};
var cAp=function(){var O=_.Nc();this.JSC$9918_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.o9("channel_type"))};
cAp.prototype.increment=function(O){this.JSC$9918_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",O)};
var PwL=function(){var O=_.Nc();this.JSC$9921_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
PwL.prototype.increment=function(){this.JSC$9921_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Ice=function(){var O=_.Nc();this.JSC$9924_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.o9("channel_type"),_.o9("error_type"))};
Ice.prototype.increment=function(O,x){this.JSC$9924_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",O,x)};
var VR$=function(){var O=_.Nc();this.JSC$9927_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
VR$.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var p84=function(){var O=_.Nc();this.JSC$9930_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
p84.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var E4X=function(){var O=_.Nc();this.JSC$9936_streamzService=O;O.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
E4X.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var h_L=function(O){return O.getCount&&typeof O.getCount=="function"?O.getCount():_.vi(O)||typeof O==="string"?O.length:_.HX.getCount(O)},z_Q=function(O,x){if(typeof O.every=="function")return O.every(x,void 0);
if(_.vi(O)||typeof O==="string")return Array.prototype.every.call(O,x,void 0);for(var e=_.wnd(O),l=_.gF(O),C=l.length,Q=0;Q<C;Q++)if(!x.call(void 0,l[Q],e&&e[Q],O))return!1;return!0},rDT=function(O,x,e,l){var C=new _.K1(null);
O&&_.$u(C,O);x&&_.ie(C,x);e&&_.OS(C,e);l&&_.xx(C,l);return C},Hyp=function(){var O=_.Nb&&_.om(_.TMz,10)>=0,x;
if(x=_.hsT)x=_.om(_.bGz,10)>=0;var e=_.Oa&&_.om(_.TMz,85)>=0;return _.No||O||x||e},KhL=function(O){var x=_.pXN(O);
return x&&Hyp()?-O.scrollLeft:x&&_.go(O,"overflowX")!="visible"?O.scrollWidth-O.clientWidth-O.scrollLeft:O.scrollLeft},d0X=function(O,x){x=Math.max(x,0);
_.pXN(O)?Hyp()?O.scrollLeft=-x:O.scrollLeft=O.scrollWidth-x-O.clientWidth:O.scrollLeft=x},EXw=0,ICw=!1;
NN.prototype.set=function(O){this.relativeTimeStart_=O};
NN.prototype.reset=function(){this.set(_.vN())};
NN.prototype.get=function(){return this.relativeTimeStart_};
var nxh=null,ujL=function(){nxh||(nxh=new NN)},YSX=function(){nxh||(nxh=new NN)};
_.fI(YSX,ujL);_.b=pZ4.prototype;_.b.JSC$11352_buffer_="";_.b.set=function(O){this.JSC$11352_buffer_=""+O};
_.b.append=function(O,x,e){this.JSC$11352_buffer_+=String(O);if(x!=null)for(var l=1;l<arguments.length;l++)this.JSC$11352_buffer_+=arguments[l];return this};
_.b.clear=function(){this.JSC$11352_buffer_=""};
_.b.getLength=function(){return this.JSC$11352_buffer_.length};
_.b.toString=function(){return this.JSC$11352_buffer_};
var BVp=!1,hpY=function(O){_.ew.call(this,O.message||O.description||O.name);this.isMissing=O instanceof gi;this.isTimeout=O instanceof _.WA&&O.errorCode=="net.timeout";this.isCanceled=O instanceof _.Vn};
_.c(hpY,_.ew);hpY.prototype.name="BiscottiError";var gi=function(){_.ew.call(this,"Biscotti ID is missing from server")};
_.c(gi,_.ew);gi.prototype.name="BiscottiMissingError";var $n=null,xoY=function(){try{var O=_.i8("yt.ads.biscotti.getId_");return O?O():DQO()}catch(x){return _.Za(x)}},vxL=function(O,x){return _.j6({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:O,command:x}})},fVO=function(O){return _.j6({type:"SET_GUIDE_IS_EXPANDED",
payload:O})},JDp=function(O){return _.j6({type:"SET_ONLINE_STATUS",
payload:O})},wxT=function(O,x){return _.j6({type:"SET_TRANSCRIPTION_STATE",
payload:{high:O,low:x}})},SSw=function(O){return _.j6({type:"SET_OVERLAY_STATE",
payload:O})},jEQ=0,NVQ=function(O,x,e){var l=this;
this.priority=x;this.delay=e;this.jobId=0;this.completionCallback=_.Fb;this.wrappedJob=function(){O();l.completionCallback()};
this.id=++jEQ};
NVQ.prototype.enqueue=function(O){this.completionCallback=O;this.jobId=_.vn.addJob(this.wrappedJob,this.priority,this.delay)};
var Z$=function(){_.eD.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.c(Z$,_.eD);Z$.prototype.addJob=function(O,x,e){O=new NVQ(O,x,e);this.taskIdToTask.set(O.id,O);this.isActive?gxQ(this,O):this.suspendedTasks.add(O);return O.id};
var gxQ=function(O,x){O.scheduledTasks.add(x);x.enqueue(function(){O.scheduledTasks.delete(x)})};
Z$.prototype.cancelJob=function(O){(O=this.taskIdToTask.get(O))&&(this.scheduledTasks.delete(O)?_.vn.cancelJob(O.jobId):this.suspendedTasks.delete(O))};
Z$.prototype.pause=function(){var O=this;this.isActive=!1;this.scheduledTasks.forEach(function(x){_.vn.cancelJob(x.jobId);O.suspendedTasks.add(x)});
this.scheduledTasks.clear()};
Z$.prototype.start=function(){var O=this;this.isActive=!0;this.suspendedTasks.forEach(function(x){gxQ(O,x)});
this.suspendedTasks.clear()};
Z$.prototype.reset=function(){this.scheduledTasks.forEach(function(O){_.vn.cancelJob(O.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var EP=function(O,x){this.JSC$13202_networkService_=O;this.pageRequestPromise=x};
EP.prototype.fetchData=function(O){$0X(this,this.JSC$13202_networkService_.fetchData(O))};
EP.prototype.postData=function(O,x){$0X(this,this.JSC$13202_networkService_.postData(O,x))};
EP.prototype.requestDataForServiceEndpoint=function(O,x){$0X(this,this.JSC$13202_networkService_.requestDataForServiceEndpoint(O,x))};
var $0X=function(O,x){x.then(O.pageRequestPromise.onSuccess,O.pageRequestPromise.onFailure,O.pageRequestPromise)};
EP.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var tk=function(O){this.buildNetworkRequest_=O;this.pendingRequests_=new Set};
tk.prototype.reset=function(){this.pendingRequests_.forEach(function(O){O.cancel()});
this.pendingRequests_.clear()};
tk.prototype.fetchData=function(O){var x=iyh(this);x.fetchData(O);return x.pageRequestPromise};
tk.prototype.postData=function(O,x){var e=iyh(this);e.postData(O,x);return e.pageRequestPromise};
tk.prototype.requestDataForServiceEndpoint=function(O,x){var e=iyh(this);e.requestDataForServiceEndpoint(O,x);return e.pageRequestPromise};
var iyh=function(O){var x=O.buildNetworkRequest_();O.pendingRequests_.add(x);var e=function(){O.pendingRequests_.delete(x)};
x.pageRequestPromise.then(e,e);return x},OhL=function(O){var x=new Z$;
this.JSC$13209_networkService_=O;this.JSC$13209_taskManager_=x;this.JSC$13209_networkManager_=new tk(this.networkRequestFactory_.bind(this))};
_.b=OhL.prototype;_.b.networkRequestFactory_=function(){return new EP(this.JSC$13209_networkService_,new _.td(this.JSC$13209_taskManager_))};
_.b.reset=function(){this.JSC$13209_taskManager_.reset();this.JSC$13209_networkManager_.reset()};
_.b.start=function(){this.JSC$13209_taskManager_.start()};
_.b.pause=function(){this.JSC$13209_taskManager_.pause()};
_.b.getTaskManager=function(){return this.JSC$13209_taskManager_};
_.b.getNetworkManager=function(){return this.JSC$13209_networkManager_};
var fC4=null,Sww=[],iv=0,xt=0,OV=null,xCL=!1,eM=null,Nqu=void 0,CJ=function(O){this.token=O};
CJ.getInstance=function(){var O;return _.A(function(x){if(x.nextAddress==1)return x.yield(_.DG(),2);O=x.yieldResult;if(!O)return x.return();CJ.instance||(CJ.instance=new CJ(O));return x.return(CJ.instance)})};
var CVT=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(xj$(O.token),2);x=e.yieldResult;return e.return(x.clear("resource-manifest-assets"))})},lM=function(O){this.token=O};
lM.getInstance=function(){var O;return _.A(function(x){if(x.nextAddress==1)return x.yield(_.DG(),2);O=x.yieldResult;if(!O)return x.return();lM.instance||(lM.instance=new lM(O));return x.return(lM.instance)})};
var e9Q=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(xj$(O.token),2);x=e.yieldResult;return e.yield(x.clear("auth"),0)})},IaL=!1,eUp=function(O){_.ew.call(this,O)};
_.c(eUp,_.dEd);var DSh=function(){var O=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return O?parseInt(O[1],10):0},l7L=function(O){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+O)!=-1||document.currentScript.src.indexOf("&"+O)!=-1)},CYe=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},yiQ=function(O){O.length?QPY(O.shift(),function(){yiQ(O)}):FzL()},EVX=function(O){return"chrome-extension://"+O+"/cast_sender.js"},QPY=function(O,
x,e){var l=document.createElement("script");
l.onerror=x;e&&(l.onload=e);_.QP(l,_.Hv(O));(document.head||document.documentElement).appendChild(l)},bhQ=function(){var O=DSh(),x=[];
if(O>1){var e=O-1;x.push("//www.gstatic.com/eureka/clank/"+O+"/cast_sender.js");x.push("//www.gstatic.com/eureka/clank/"+e+"/cast_sender.js")}return x},FzL=function(){var O=CYe();
O&&O(!1,"No cast extension found")},oVL=function(){if(T1T){var O=2,x=CYe(),e=function(){O--;
O==0&&x&&x(!0)};
window.__onGCastApiAvailable=e;QPY("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",FzL,e)}},G_L=function(){oVL();
var O=bhQ();O.push("//www.gstatic.com/eureka/clank/cast_sender.js");yiQ(O)},Xbw=function(){oVL();
var O=bhQ();O.push.apply(O,_.Kx(ZM$.map(EVX)));O.push("//www.gstatic.com/eureka/clank/cast_sender.js");yiQ(O)},T1T=l7L("loadCastFramework")||l7L("loadCastApplicationFramework"),ZM$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var LBp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(LBp,_.TH);var k64=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(k64,_.TH);var An$=function(){var O=new k64;return _.PM(O,1,3)};var q8=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(q8,_.TH);var D5p=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(D5p,_.TH);var MD$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(MD$,_.TH);MD$.prototype.getToken=function(){return _.oK(this,1)};
MD$.prototype.setToken=function(O){return _.mz(this,1,O)};
var AIO=function(O){return _.Nh(O,3,_.PT,_.Dd())},Mep=function(O){return _.Nh(O,6,_.PT,_.Dd())};var P2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(P2,_.TH);P2.prototype.getToken=function(){return _.y4(this,MD$,2)};
P2.prototype.setToken=function(O){return _.IS(this,2,O)};
P2.prototype.getName=function(){return _.oK(this,6)};
var DCw=_.Pw(P2);var G6L=function(O,x,e){this.requestMessage=O;this.methodDescriptor=x;this.metadata=e};
G6L.prototype.getMetadata=function(){return this.metadata};var FBp=function(O,x){x=x===void 0?{}:x;this.responseMessage=O;this.metadata=x;this.status=null};
FBp.prototype.getMetadata=function(){return this.metadata};
FBp.prototype.getStatus=function(){return this.status};var c2=function(O,x,e,l,C){this.name=O;this.methodType="unary";this.requestType=x;this.responseType=e;this.requestSerializeFn=l;this.responseDeserializeFn=C},XYw=function(O,x,e){e=e===void 0?{}:e;
return new G6L(x,O,e)};
c2.prototype.getName=function(){return this.name};var I5=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(I5,_.TH);I5.prototype.getHeader=function(){return _.y4(this,q8,1)};
I5.prototype.setHeader=function(O){return _.IS(this,1,O)};
I5.prototype.hasHeader=function(){return _.Q7(this,q8,1)};var ose=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ose,_.TH);var ynL=new c2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",I5,ose,function(O){return O.serialize()},_.Pw(ose));var Vm=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Vm,_.TH);Vm.prototype.getHeader=function(){return _.y4(this,q8,1)};
Vm.prototype.setHeader=function(O){return _.IS(this,1,O)};
Vm.prototype.hasHeader=function(){return _.Q7(this,q8,1)};var ZhQ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ZhQ,_.TH);var EsT=new c2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Vm,ZhQ,function(O){return O.serialize()},_.Pw(ZhQ));var pD=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(pD,_.TH);pD.prototype.getHeader=function(){return _.y4(this,q8,1)};
pD.prototype.setHeader=function(O){return _.IS(this,1,O)};
pD.prototype.hasHeader=function(){return _.Q7(this,q8,1)};var tDO=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(tDO,_.TH);tDO.prototype.getLink=function(){return _.y4(this,P2,1)};var q_L=new c2("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",pD,tDO,function(O){return O.serialize()},_.Pw(tDO));var R5=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(R5,_.TH);R5.prototype.getHeader=function(){return _.y4(this,q8,1)};
R5.prototype.setHeader=function(O){return _.IS(this,1,O)};
R5.prototype.hasHeader=function(){return _.Q7(this,q8,1)};var PYp=new c2("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",R5,P2,function(O){return O.serialize()},DCw);var cnL=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(cnL,_.TH);var I7L=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(I7L,_.TH);I7L.prototype.getUrl=function(){return _.oK(this,2)};
I7L.prototype.setUrl=function(O){return _.mz(this,2,O)};var VDO=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(VDO,_.TH);var pYT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(pYT,_.TH);var RUe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(RUe,_.TH);var cI$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(cI$,_.TH);var Pku=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Pku,_.TH);var UCQ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(UCQ,_.TH);var m5$=_.Pw(UCQ);var a7Q=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(a7Q,_.TH);var mCh=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(mCh,_.TH);_.b=mCh.prototype;_.b.getHeader=function(){return _.y4(this,q8,1)};
_.b.setHeader=function(O){return _.IS(this,1,O)};
_.b.hasHeader=function(){return _.Q7(this,q8,1)};
_.b.getCompletionUrl=function(){return _.oK(this,6)};
_.b.getDeviceId=function(){return _.oK(this,11)};var sPL=new c2("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",mCh,UCQ,function(O){return O.serialize()},m5$);var WB$=new Set(["SAPISIDHASH","APISIDHASH"]);var hUh=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(hUh,_.TH);hUh.prototype.getMessage=function(){return _.oK(this,2)};
var zUw=_.Pw(hUh);var Hh4=function(O,x){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=O.nodeReadableStream;this.grpcResponseDeserializeFn=x;this.xhr=O.xhr;this.xhrNodeReadableStream&&rn4(this)},B1L=function(O,x){var e=new KBO;
_.ol(O.xhr,"complete",function(){if(O.xhr.isSuccess()){var l=O.xhr.getResponseText();var C;if(C=x)C=O.xhr,C.JSC$9791_xhr_&&C.isComplete()?(C=C.JSC$9791_xhr_.getResponseHeader("Content-Type"),C=C===null?void 0:C):C=void 0,C=C==="text/plain";if(C){if(!atob)throw Error("ek");l=atob(l)}try{var Q=O.grpcResponseDeserializeFn(l)}catch(k){UP(O,g0w(new _.pr(13,"Error when deserializing response data; error: "+k+(", response: "+l)),e));return}l=_.M3r(O.xhr.getStatus());dCu(O,nsX(O));l===0?uNX(O,Q):UP(O,g0w(new _.pr(l,
"Xhr succeeded but the status code is not 200"),e))}else{l=O.xhr.getResponseText();Q=nsX(O);if(l){var L=Y_L(O,l);l=L.code;C=L.details;L=L.metadata}else l=2,C="Rpc failed due to xhr error. uri: "+String(O.xhr.JSC$9791_lastUri_)+", error code: "+(O.xhr.JSC$9791_lastErrorCode_+", error: ")+O.xhr.getLastError(),L=Q;dCu(O,Q);UP(O,g0w(new _.pr(l,C,L),e))}})},rn4=function(O){O.xhrNodeReadableStream.on("data",function(x){if("1"in x){var e=x["1"];
try{var l=O.grpcResponseDeserializeFn(e)}catch(C){UP(O,new _.pr(13,"Error when deserializing response data; error: "+C+(", response: "+e)))}l&&uNX(O,l)}if("2"in x)for(x=Y_L(O,x["2"]),e=0;e<O.onStatusCallbacks.length;e++)O.onStatusCallbacks[e](x)});
O.xhrNodeReadableStream.on("end",function(){dCu(O,nsX(O));for(var x=0;x<O.onEndCallbacks.length;x++)O.onEndCallbacks[x]()});
O.xhrNodeReadableStream.on("error",function(){if(O.onErrorCallbacks.length!==0){var x=O.xhr.JSC$9791_lastErrorCode_;x!==0||O.xhr.isSuccess()||(x=6);var e=-1;switch(x){case 0:var l=2;break;case 7:l=10;break;case 8:l=4;break;case 6:e=O.xhr.getStatus();l=_.M3r(e);break;default:l=14}dCu(O,nsX(O));x=_.IKd(x)+", error: "+O.xhr.getLastError();e!==-1&&(x+=", http status code: "+e);UP(O,new _.pr(l,x))}})},nsX=function(O){var x={},e=ube(O.xhr);
Object.keys(e).forEach(function(l){x[l]=e[l]});
return x},Y_L=function(O,x){var e=2,l={};
try{var C=zUw(x);e=_.G8(C,1);var Q=C.getMessage();_.Mq(C,WhT,3,_.Dd()).length&&(l["grpc-web-status-details-bin"]=x)}catch(L){O.xhr&&O.xhr.getStatus()===404?(e=5,Q="Not Found: "+String(O.xhr.JSC$9791_lastUri_)):(e=14,Q="Unable to parse RpcStatus: "+L)}return{code:e,details:Q,metadata:l}};
Hh4.prototype.on=function(O,x){O==="data"?this.onDataCallbacks.push(x):O==="metadata"?this.onMetadataCallbacks.push(x):O==="status"?this.onStatusCallbacks.push(x):O==="end"?this.onEndCallbacks.push(x):O==="error"&&this.onErrorCallbacks.push(x);return this};
var a5=function(O,x){x=O.indexOf(x);x>-1&&O.splice(x,1)};
Hh4.prototype.removeListener=function(O,x){O==="data"?a5(this.onDataCallbacks,x):O==="metadata"?a5(this.onMetadataCallbacks,x):O==="status"?a5(this.onStatusCallbacks,x):O==="end"?a5(this.onEndCallbacks,x):O==="error"&&a5(this.onErrorCallbacks,x);return this};
Hh4.prototype.cancel=function(){this.xhr.abort()};
var uNX=function(O,x){for(var e=0;e<O.onDataCallbacks.length;e++)O.onDataCallbacks[e](x)},dCu=function(O,x){for(var e=0;e<O.onMetadataCallbacks.length;e++)O.onMetadataCallbacks[e](x)},UP=function(O,x){for(var e=0;e<O.onErrorCallbacks.length;e++)O.onErrorCallbacks[e](x)},KBO=function(){var O=Error.call(this);
this.message=O.message;"stack"in O&&(this.stack=O.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(KBO,Error);var mb=function(O){this.JSC$19557_worker_=O.worker||null;this.JSC$19557_streamBinaryChunks_=O.streamBinaryChunks||!1;this.JSC$19557_credentialsMode_=void 0};
_.fI(mb,_.GGr);mb.prototype.createInstance=function(){var O=new sP(this.JSC$19557_worker_,this.JSC$19557_streamBinaryChunks_);this.JSC$19557_credentialsMode_&&O.setCredentialsMode(this.JSC$19557_credentialsMode_);return O};
mb.prototype.setCredentialsMode=function(O){this.JSC$19557_credentialsMode_=O};
var sP=function(O,x){_.tf.call(this);this.JSC$19561_worker_=O;this.JSC$19561_streamBinaryChunks_=x;this.JSC$19561_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$19561_responseHeaders_=null;this.JSC$19561_method_="GET";this.JSC$19561_url_="";this.inProgress_=!1;this.JSC$19561_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.fI(sP,_.tf);sP.prototype.open=function(O,x){if(this.readyState!=0)throw this.abort(),Error("fk");this.JSC$19561_method_=O;this.JSC$19561_url_=x;this.readyState=1;W2(this)};
sP.prototype.send=function(O){if(this.readyState!=1)throw this.abort(),Error("gk");if(this.abortController_.signal.aborted)throw this.abort(),Error("hk");this.inProgress_=!0;var x={headers:this.requestHeaders_,method:this.JSC$19561_method_,credentials:this.JSC$19561_credentialsMode_,cache:void 0,signal:this.abortController_.signal};O&&(x.body=O);(this.JSC$19561_worker_||_.CV).fetch(new Request(this.JSC$19561_url_,x)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
sP.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,hk(this));this.readyState=0};
sP.prototype.handleResponse_=function(O){if(this.inProgress_&&(this.fetchResponse_=O,this.JSC$19561_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19561_responseHeaders_=O.headers,this.readyState=2,W2(this)),this.inProgress_&&(this.readyState=3,W2(this),this.inProgress_)))if(this.responseType==="arraybuffer")O.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.CV.ReadableStream!==
"undefined"&&"body"in O){this.currentReader_=O.body.getReader();if(this.JSC$19561_streamBinaryChunks_){if(this.responseType)throw Error("ik");this.response=[]}else this.response=this.responseText="",this.JSC$19561_textDecoder_=new TextDecoder;vs$(this)}else O.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var vs$=function(O){O.currentReader_.read().then(O.handleDataFromStream_.bind(O)).catch(O.handleSendFailure_.bind(O))};
sP.prototype.handleDataFromStream_=function(O){if(this.inProgress_){if(this.JSC$19561_streamBinaryChunks_&&O.value)this.response.push(O.value);else if(!this.JSC$19561_streamBinaryChunks_){var x=O.value?O.value:new Uint8Array(0);if(x=this.JSC$19561_textDecoder_.decode(x,{stream:!O.done}))this.response=this.responseText+=x}O.done?hk(this):W2(this);this.readyState==3&&vs$(this)}};
sP.prototype.handleResponseText_=function(O){this.inProgress_&&(this.response=this.responseText=O,hk(this))};
sP.prototype.handleResponseArrayBuffer_=function(O){this.inProgress_&&(this.response=O,hk(this))};
sP.prototype.handleSendFailure_=function(){this.inProgress_&&hk(this)};
var hk=function(O){O.readyState=4;O.fetchResponse_=null;O.currentReader_=null;O.JSC$19561_textDecoder_=null;W2(O)};
sP.prototype.setRequestHeader=function(O,x){this.requestHeaders_.append(O,x)};
sP.prototype.getResponseHeader=function(O){return this.JSC$19561_responseHeaders_?this.JSC$19561_responseHeaders_.get(O.toLowerCase())||"":""};
sP.prototype.getAllResponseHeaders=function(){if(!this.JSC$19561_responseHeaders_)return"";for(var O=[],x=this.JSC$19561_responseHeaders_.entries(),e=x.next();!e.done;)e=e.value,O.push(e[0]+": "+e[1]),e=x.next();return O.join("\r\n")};
sP.prototype.setCredentialsMode=function(O){this.JSC$19561_credentialsMode_=O};
var W2=function(O){O.onreadystatechange&&O.onreadystatechange.call(O)};
Object.defineProperty(sP.prototype,"withCredentials",{get:function(){return this.JSC$19561_credentialsMode_==="include"},
set:function(O){this.setCredentialsMode(O?"include":"same-origin")}});var f7L=function(O){var x="";_.HX.forEach(O,function(e,l){x+=l;x+=":";x+=e;x+="\r\n"});
return x},JnY=function(O,x,e){if(_.HX.isEmpty(e))return O;
e=f7L(e);if(typeof O==="string")return _.dp(O,_.xc(x),e);_.lo(O,x,e);return O};var wYT=function(){this.isInputValid_=!0;this.JSC$19567_streamPos_=0;this.leftoverInput_=""};
wYT.prototype.isInputValid=function(){return this.isInputValid_};
wYT.prototype.decode=function(O){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("jk`"+this.JSC$19567_streamPos_+"`stream already broken`"+O);this.leftoverInput_+=O;O=Math.floor(this.leftoverInput_.length/4);if(O==0)return null;try{var x=_.s87(this.leftoverInput_.slice(0,O*4))}catch(e){throw x=this.leftoverInput_,O=e.message,this.isInputValid_=!1,Error("jk`"+this.JSC$19567_streamPos_+"`"+O+"`"+x);}this.JSC$19567_streamPos_+=O*4;this.leftoverInput_=this.leftoverInput_.slice(O*4);return x};var Th=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19570_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Th.prototype.isInputValid=function(){return this.state_!=3};
var z4=function(O,x,e,l){O.state_=3;O.errorMessage_="The stream is broken @"+O.JSC$19570_streamPos_+"/"+e+". Error: "+l+". With input:\n"+x;throw Error(O.errorMessage_);};
Th.prototype.acceptsBinaryInput=function(){return!0};
Th.prototype.parse=function(O){function x(M){M&128&&z4(Q,L,k,"invalid tag");(M&7)!=2&&z4(Q,L,k,"invalid wire type");Q.tag_=M>>>3;Q.tag_!=1&&Q.tag_!=2&&Q.tag_!=15&&z4(Q,L,k,"unexpected tag");Q.state_=1;Q.length_=0;Q.countLengthBytes_=0}
function e(M){Q.countLengthBytes_++;Q.countLengthBytes_==5&&M&240&&z4(Q,L,k,"message length too long");Q.length_|=(M&127)<<(Q.countLengthBytes_-1)*7;M&128||(Q.state_=2,Q.countMessageBytes_=0,typeof Uint8Array!=="undefined"?Q.messageBuffer_=new Uint8Array(Q.length_):Q.messageBuffer_=Array(Q.length_),Q.length_==0&&C())}
function l(M){Q.messageBuffer_[Q.countMessageBytes_++]=M;Q.countMessageBytes_==Q.length_&&C()}
function C(){if(Q.tag_<15){var M={};M[Q.tag_]=Q.messageBuffer_;Q.result_.push(M)}Q.state_=0}
for(var Q=this,L=O instanceof Array?O:new Uint8Array(O),k=0;k<L.length;){switch(Q.state_){case 3:z4(Q,L,k,"stream already broken");break;case 0:x(L[k]);break;case 1:e(L[k]);break;case 2:l(L[k]);break;default:throw Error("kk`"+Q.state_);}Q.JSC$19570_streamPos_++;k++}O=Q.result_;Q.result_=[];return O.length>0?O:null};var i_X=function(){this.errorMessage_=null;this.JSC$19573_streamPos_=0;this.base64Decoder_=new wYT;this.pbParser_=new Th};
i_X.prototype.isInputValid=function(){return this.errorMessage_===null};
var S_T=function(O,x,e){O.errorMessage_="The stream is broken @"+O.JSC$19573_streamPos_+". Error: "+e+". With input:\n"+x;throw Error(O.errorMessage_);};
i_X.prototype.acceptsBinaryInput=function(){return!1};
i_X.prototype.parse=function(O){this.errorMessage_!==null&&S_T(this,O,"stream already broken");var x=null;try{var e=this.base64Decoder_.decode(O);x=e===null?null:this.pbParser_.parse(e)}catch(l){S_T(this,O,l.message)}this.JSC$19573_streamPos_+=O.length;return x};var $jT=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19576_streamPos_=0;this.result_=[];this.statusParsed_=!1};
$jT.prototype.isInputValid=function(){return this.errorMessage_===null};
$jT.prototype.acceptsBinaryInput=function(){return!1};
$jT.prototype.parse=function(O){function x(M){Q.state_=6;Q.errorMessage_="The stream is broken @"+Q.JSC$19576_streamPos_+"/"+L+". Error: "+M+". With input:\n";throw Error(Q.errorMessage_);}
function e(){Q.jsonStreamParser_=new _.Tk({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function l(M){if(M)for(var G=0;G<M.length;G++){var X={};X[1]=M[G];Q.result_.push(X)}}
function C(M){if(M){(Q.statusParsed_||M.length>1)&&x("extra status: "+M);Q.statusParsed_=!0;var G={};G[2]=M[0];Q.result_.push(G)}}
for(var Q=this,L=0;L<O.length;){var k;if(k=Q.state_!==2){a:{for(;L<O.length;){if(!_.bz(O[L])){k=!0;break a}L++;Q.JSC$19576_streamPos_++}k=!1}k=!k}if(k)return null;switch(Q.state_){case 6:x("stream already broken");break;case 0:O[L]==="["?(Q.state_=1,L++,Q.JSC$19576_streamPos_++):x("unexpected input token");break;case 1:O[L]==="["?(Q.state_=2,e()):O[L]===","||O.slice(L,L+5)=="null,"?Q.state_=3:O[L]==="]"?(Q.state_=5,L++,Q.JSC$19576_streamPos_++):x("unexpected input token");break;case 2:k=Q.jsonStreamParser_.parse(O.substring(L));
l(k);Q.jsonStreamParser_.done()?(Q.state_=3,k=Q.jsonStreamParser_.JSC$11479_buffer_,Q.JSC$19576_streamPos_+=O.length-L-k.length,O=k,L=0):(Q.JSC$19576_streamPos_+=O.length-L,L=O.length);break;case 3:O[L]===","||O.slice(L,L+5)=="null,"?(Q.state_=4,e(),Q.jsonStreamParser_.parse("["),L+=O[L]===","?1:5,Q.JSC$19576_streamPos_++):O[L]==="]"&&(Q.state_=5,L++,Q.JSC$19576_streamPos_++);break;case 4:k=Q.jsonStreamParser_.parse(O.substring(L));C(k);Q.jsonStreamParser_.done()?(Q.state_=5,k=Q.jsonStreamParser_.JSC$11479_buffer_,
Q.JSC$19576_streamPos_+=O.length-L-k.length,O=k,L=0):(Q.JSC$19576_streamPos_+=O.length-L,L=O.length);break;case 5:x("extra input after stream end")}}return Q.result_.length>0?(O=Q.result_,Q.result_=[],O):null};var jPu=function(O){this.JSC$19579_xhr_=O;this.JSC$19579_parser_=null;this.status_=this.JSC$19579_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19579_textDecoder_=null;this.JSC$19579_eventHandler_=new _.Ev(this);this.JSC$19579_eventHandler_.listen(this.JSC$19579_xhr_,"readystatechange",this.JSC$19581_readyStateChangeHandler_)},rA=function(O,x){O.status_!=x&&(O.status_=x,O.statusHandler_&&O.statusHandler_())},H2=function(O){O.JSC$19579_eventHandler_.removeAll();
if(O.JSC$19579_xhr_){var x=O.JSC$19579_xhr_;O.JSC$19579_xhr_=null;x.abort();x.dispose()}};
jPu.prototype.getStatus=function(){return this.status_};
jPu.prototype.JSC$19581_readyStateChangeHandler_=function(O){O=O.target;try{if(O==this.JSC$19579_xhr_)a:{var x=_.aj(this.JSC$19579_xhr_),e=this.JSC$19579_xhr_.JSC$9791_lastErrorCode_,l=this.JSC$19579_xhr_.getStatus(),C=this.JSC$19579_xhr_.getResponseText();O=[];if(this.JSC$19579_xhr_.getResponse()instanceof Array){var Q=this.JSC$19579_xhr_.getResponse();Q.length>0&&Q[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,O=Q)}if(!(x<3||x==3&&!C&&O.length==0))if(l=l==200||l==206,x==4&&(e==8?rA(this,
7):e==7?rA(this,8):l||rA(this,3)),this.JSC$19579_parser_||(this.JSC$19579_parser_=O7Q(this.JSC$19579_xhr_),this.JSC$19579_parser_==null&&rA(this,5)),this.status_>2)H2(this);else{if(O.length>this.JSC$19579_pos_){var L=O.length;e=[];try{if(this.JSC$19579_parser_.acceptsBinaryInput())for(var k=0;k<L;k++){var M=this.JSC$19579_parser_.parse(Array.from(O[k]));M&&(e=e.concat(M))}else{M="";if(!this.JSC$19579_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("lk");this.JSC$19579_textDecoder_=new TextDecoder}for(k=
0;k<L;k++)M+=this.JSC$19579_textDecoder_.decode(O[k],{stream:x==4&&k==L-1});e=this.JSC$19579_parser_.parse(M)}O.splice(0,L);e&&this.dataHandler_(e)}catch(X){rA(this,5);H2(this);break a}}else if(C.length>this.JSC$19579_pos_){k=C.slice(this.JSC$19579_pos_);this.JSC$19579_pos_=C.length;try{var G=this.JSC$19579_parser_.parse(k);G!=null&&this.dataHandler_&&this.dataHandler_(G)}catch(X){rA(this,5);H2(this);break a}}x==4?(C.length!=0||this.hasStreamingResponseData_?rA(this,2):rA(this,4),H2(this)):rA(this,
1)}}}catch(X){rA(this,6),H2(this)}};var N1X=function(O){O=this.xhrReader_=O;var x=(0,_.z8)(this.onData_,this);O.dataHandler_=x;O=this.xhrReader_;x=(0,_.z8)(this.onStatusChange_,this);O.statusHandler_=x;this.JSC$19583_callbackMap_={};this.callbackOnceMap_={}};
_.b=N1X.prototype;_.b.on=function(O,x){var e=this.JSC$19583_callbackMap_[O];e||(e=[],this.JSC$19583_callbackMap_[O]=e);e.push(x);return this};
_.b.addListener=function(O,x){this.on(O,x);return this};
_.b.removeListener=function(O,x){var e=this.JSC$19583_callbackMap_[O];e&&_.YW(e,x);(O=this.callbackOnceMap_[O])&&_.YW(O,x);return this};
_.b.once=function(O,x){var e=this.callbackOnceMap_[O];e||(e=[],this.callbackOnceMap_[O]=e);e.push(x);return this};
_.b.onData_=function(O){var x=this.JSC$19583_callbackMap_.data;x&&gsY(O,x);(x=this.callbackOnceMap_.data)&&gsY(O,x);this.callbackOnceMap_.data=[]};
var gsY=function(O,x){for(var e={},l=0;l<O.length;e={message$jscomp$1008:void 0},l++)e.message$jscomp$1008=O[l],x.forEach(function(C){return function(Q){try{Q(C.message$jscomp$1008)}catch(L){}}}(e))};
N1X.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:$Ce(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$Ce(this,"error");break;case 8:$Ce(this,"close");break;case 2:$Ce(this,"end")}};
var $Ce=function(O,x){var e=O.JSC$19583_callbackMap_[x];e&&e.forEach(function(l){try{l()}catch(C){}});
(e=O.callbackOnceMap_[x])&&e.forEach(function(l){l()});
O.callbackOnceMap_[x]=[]};var ihu=function(){var O={format:"jspb"};O=O===void 0?{}:O;this.suppressCorsPreflight=O.suppressCorsPreflight||_.i8("suppressCorsPreflight",O)||!1;this.withCredentials=O.withCredentials||_.i8("withCredentials",O)||!1;this.streamInterceptors=O.streamInterceptors||[];this.unaryInterceptors=O.unaryInterceptors||[];this.workerScope=O.workerScope;this.chunkedServerStreaming=O.useFetchDownloadStreams||!1},eCp=function(O,x,e,l,C,Q){Q=Q===void 0?{}:Q;
var L=x.substring(0,x.length-C.name.length),k,M=(k=Q)==null?void 0:k.signal;return Oph(function(G){return new Promise(function(X,y){if(M==null?0:M.aborted){var Z=new _.pr(1,"Aborted");Z.cause=M.reason;y(Z)}else{var E={},P=xXu(O,G,L);P.on("error",function(U){return void y(U)});
P.on("metadata",function(U){E=U});
P.on("data",function(U){var W=E;W=W===void 0?{}:W;X(new FBp(U,W))});
M&&M.addEventListener("abort",function(){P.cancel();var U=new _.pr(1,"Aborted");U.cause=M.reason;y(U)})}})},O.unaryInterceptors).call(O,XYw(C,e,l)).then(function(G){return G.responseMessage})},KD=function(O,x,e,l,C,Q){Q=Q===void 0?{}:Q;
return eCp(O,x,e,l,C,Q)};
ihu.prototype.serverStreaming=function(O,x,e,l){var C=this,Q=O.substring(0,O.length-l.name.length);return liT(function(L){var k=L.methodDescriptor,M=L.getMetadata(),G=CGX(C,!1);M=Q3Q(C,M,G,Q+k.getName());var X=bpO(G,k.responseDeserializeFn,!0);L=k.requestSerializeFn(L.requestMessage);G.send(M,"POST",L);return X},this.streamInterceptors).call(this,XYw(l,x,e))};
var xXu=function(O,x,e){var l=x.methodDescriptor,C=x.getMetadata(),Q=CGX(O,!0);O=Q3Q(O,C,Q,e+l.getName());e=bpO(Q,l.responseDeserializeFn,!1);B1L(e,C["X-Goog-Encode-Response-If-Executable"]==="base64");x=l.requestSerializeFn(x.requestMessage);Q.send(O,"POST",x);return e},CGX=function(O,x){x=O.chunkedServerStreaming&&!x;
return O.workerScope||x?new _.UK(new mb({worker:O.workerScope,streamBinaryChunks:x})):new _.UK},Q3Q=function(O,x,e,l){x["Content-Type"]="application/json+protobuf";
x["X-User-Agent"]="grpc-web-javascript/0.1";var C=x.Authorization;if(C&&WB$.has(C.split(" ")[0])||O.withCredentials)e.JSC$9791_withCredentials_=!0;if(O.suppressCorsPreflight)l=JnY(l,"$httpHeaders",x);else for(O=_.T(Object.keys(x)),C=O.next();!C.done;C=O.next())C=C.value,e.headers.set(C,x[C]);return l},bpO=function(O,x,e){if(e){e=new jPu(O);
var l=new N1X(e)}return new Hh4({xhr:O,nodeReadableStream:l},x)},liT=function(O,x){return x.reduce(function(e,l){return function(C){return l.intercept(C,e)}},O)},Oph=function(O,x){return x.reduce(function(e,l){return function(C){return l.intercept(C,e)}},O)};var TvL=function(O){this.client_=new ihu;this.hostname_=O==void 0?O:O.replace(/\/+$/,"")};
_.b=TvL.prototype;_.b.JSC$19601_depositGoogleCredential=function(O,x,e){return KD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",O,x||{},EsT,e)};
_.b.deleteLink=function(O,x,e){return KD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",O,x||{},ynL,e)};
_.b.JSC$19601_finishOAuth=function(O,x,e){return KD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",O,x||{},q_L,e)};
_.b.getLink=function(O,x,e){return KD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",O,x||{},PYp,e)};
_.b.startLinkingSession=function(O,x,e){return KD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",O,x||{},sPL,e)};var Lip=[0,_.HM,1,R_O,[0,_.Yi,[0,_.n0,-1]],[0,pxh],[0,_.w4,-1]];var kyp=function(){this.storage=new Map},MP4=function(O,x,e,l,C){if(!O.storage.has(x))return null;
O=_.T(O.storage.get(x));for(x=O.next();!x.done;x=O.next())if(x=x.value,!C||x.linkName===C)if(e&&x.scopes&&APL(x.scopes,e)||l&&x.capabilities&&APL(x.capabilities,l))return x;return null},DXL=function(O,x,e){if(!e)O.storage.delete(x);
else if(O.storage.has(x)){var l=O.storage.get(x).filter(function(C){return C.linkName!==e});
l.length>0?O.storage.set(x,l):O.storage.delete(x)}},APL=function(O,x){x=_.T(x);
for(var e=x.next();!e.done;e=x.next())if(!O.has(e.value))return!1;return!0};var GyQ=function(){var O=_.wz("LINK_GAL_DOMAIN");this.alsDomain1p=_.wz("LINK_GAL_DOMAIN");this.alsDomain3p=O;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},Fi$=function(O,x){O.apiKey=x;
return O};
GyQ.prototype.build=function(){var O={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("mk");O.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("nk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("ok");O.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(O.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)O.apiKey=
this.apiKey,O.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("pk");O.oauthToken=this.oauthToken;O.alsDomain=this.alsDomain3p}O.clientXd3=this.clientXd3;O.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(O.authUser=this.authUser);this.bucket!==void 0&&(O.bucket=this.bucket);this.completionUrl!==void 0&&(O.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(O.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(O.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(O.locale=this.locale);O.loggerType=this.loggerType;O.clientEnvironment=this.clientEnvironment;O.colorScheme=this.colorScheme;O.showCloseOption=this.showCloseOption;return O};var LJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(LJ,_.TH);var XPe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(XPe,_.TH);var ohX=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ohX,_.TH);var Ar=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Ar,_.TH);var yP$=function(O){return _.y7(O,1)};var ZpQ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ZpQ,_.TH);var TS4=_.Pw(ZpQ),kt=[1,2,3,4,5];var llL=function(O){try{return TS4(O)}catch(x){return null}},EhO=function(){},CkL=function(O,x){switch(_.ki(x,kt)){case 4:return(x=_.tO(x,ohX,4,kt))&&O.logStateTransition(_.y7(x,1)),!0;
case 5:return(x=_.tO(x,XPe,5,kt))&&O.logInternalEvent(_.y7(x,1)),!0}return!1},LuQ=function(O){switch(O){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.vd(O)}};var x5L=function(O,x){var e=this;this.validator=O;this.messageListener=x;this.dismissCallback=function(){tPp(e,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19630_receiveMessage=function(l){l.type==="message"&&(l=l.event_,l!==null&&(new URL(e.iframe.src)).origin===l.origin&&e.validator(l.data,l.origin)&&!e.messageListener(l.data)&&(e.JSC$19630_resolveCb!==void 0&&e.JSC$19630_resolveCb(l.data),qNT(e)))}},b7h=function(O,x,e){O.uiHandler!==void 0&&tPp(O,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(l,C){O.JSC$19630_resolveCb=l;O.JSC$19630_rejectCb=C;O.iframe=document.createElement("iframe");_.gk(O.iframe,x);O.uiHandler=e.displayContent(O.iframe,O.dismissCallback);_.ol(window,"message",O.JSC$19630_receiveMessage,!1,O)})},tPp=function(O,x){O.JSC$19630_rejectCb!==void 0&&O.JSC$19630_rejectCb(x);
qNT(O)},qNT=function(O){O.uiHandler!==void 0&&O.uiHandler.hideContent();
_.EK(window,"message",O.JSC$19630_receiveMessage,!1,O);O.JSC$19630_resolveCb=void 0;O.JSC$19630_rejectCb=void 0;O.uiHandler=void 0;O.iframe=void 0};var PGL=function(O){if(O===2){var x;O=((x=window)==null?0:x.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return O},Q2e=function(O){O=PGL(O);
switch(O){case 0:return"light";case 1:return"dark";default:_.vd(O)}};var ePh=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),cPX=function(O,x){this.JSC$19642_linkingSession=O;this.noticeConfig=x;this.displayInfoMap=new Map;var e=new Map;if(_.Q7(this.JSC$19642_linkingSession,VDO,7))for(O=_.y4(this.JSC$19642_linkingSession,VDO,7),O=_.Mq(O,I7L,1,_.Dd()),O=_.T(O),x=O.next();!x.done;x=O.next())x=x.value,e.set(_.y7(x,1),_.R5N(_.y4(x,_.HcV,3)));if(e.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){x=this.noticeConfig.enabledDataUsageNoticeUis;O=x.has(0)?e.get(1):void 0;x=x.has(1)?e.get(2):void 0;e=O!==void 0&&x!==void 0?e.get(3):void 0;var l=this.noticeConfig.nestedOrigins;var C=new ZpQ;var Q=new LJ;C=_.Vc(C,2,kt,Q);Q=new ZpQ;var L=new LJ;Q=_.Vc(Q,3,kt,L);L=[];O!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:O,lastEvent:C,nestedOrigins:l}]),L.push({trustedUrl:O,lastEvent:C,nestedOrigins:l}));x!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:x,lastEvent:Q,nestedOrigins:l}]),L.push({trustedUrl:x,lastEvent:Q,nestedOrigins:l}));e!==void 0?this.displayInfoMap.set(3,[{trustedUrl:e,lastEvent:Q,nestedOrigins:l}]):this.displayInfoMap.set(3,L)}};var IiX=function(O){var x=new kyp;this.galService=O;this.galCache=x};
IiX.prototype.getLink=function(O){var x=O.serviceId;var e=O.scopes;var l=O.capabilities;var C=O.linkName;var Q=this,L;return _.A(function(k){if(l!==void 0&&e!==void 0)throw Error("qk");L=MP4(Q.galCache,x,e,l,C);return L!==null?k.return(L):k.return(Q.galService.getLink({serviceId:x,sessionId:Math.floor(Math.random()*2147483648),scopes:e,capabilities:l,linkName:C}).then(function(M){M=G7p(M);var G=Q.galCache;G.storage.has(x)?G.storage.get(x).push(M):G.storage.set(x,[M]);return M}))})};
IiX.prototype.deleteLink=function(O,x,e){var l=this;return _.A(function(C){DXL(l.galCache,O,e);return C.return(l.galService.deleteLink({serviceId:O,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:x,linkName:e}).then(function(){return!0}))})};var pP$=function(O,x){var e=this;this.validator=O;this.msgHandler=x;this.closedPopupTimeout=this.JSC$19664_rejectCb=this.JSC$19664_resolveCb=this.popup=null;this.JSC$19664_receiveMessage=function(l){if(l!==null&&(l=l.event_,l.source===e.popup)){var C=l.data;if(e.validator(C,l.origin)){var Q;(Q=e.msgHandler)!=null&&Q.call(e,C)||(e.JSC$19664_resolveCb!==null&&e.JSC$19664_resolveCb(C),VPp(e))}}}};
pP$.prototype.open=function(O,x){var e=this;this.popup!==null&&RCp(this);return new Promise(function(l,C){e.JSC$19664_resolveCb=l;e.JSC$19664_rejectCb=C;e.popup=_.$y(window,O,"",x);_.ol(window,"message",e.JSC$19664_receiveMessage,!1,e);UXT(e)})};
var RCp=function(O,x){O.JSC$19664_rejectCb!==null&&O.JSC$19664_rejectCb(x);VPp(O)},VPp=function(O){O.closedPopupTimeout&&(O.closedPopupTimeout.cancel(),O.closedPopupTimeout=null);
O.popup&&O.popup.close();_.EK(window,"message",O.JSC$19664_receiveMessage,!1,O);O.popup=null;O.JSC$19664_resolveCb=null;O.JSC$19664_rejectCb=null},UXT=function(O){O.closedPopupTimeout=_.EKz(100).then(function(){O.popup?O.popup.closed?aiO(O):UXT(O):RCp(O,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},aiO=function(O){O.closedPopupTimeout=_.EKz(100).then(function(){RCp(O,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var mXX=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),s3Q=function(O,x,e,l,C,Q,L,k,M,G){var X=this;this.serviceId=O;this.sessionId=x;this.galService=e;this.oauthDetails=l;this.galLogger=C;this.interactionMode=Q;this.redirectServiceUrl=L;this.consentLanguageKeys=k;this.dynamicUrlParameters=M;this.partnerConfigMinReadTimestamp=G;this.started=!1;this.JSC$19670_dataValidator=function(y,
Z){var E=mXX.has(Z);E||X.redirectServiceUrl===void 0||(E=X.redirectServiceUrl===Z);return E?y.sentinel==="gdi":!1}};
s3Q.prototype.complete=function(){var O=this,x;return _.A(function(e){if(O.interactionMode!==1)return e.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));x=DW.getRedirectStateFromUri();return x===null?e.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):e.return(WiT(O,x))})};
s3Q.prototype.start=function(){var O=this,x;return _.A(function(e){if(O.started)return e.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.oK(O.oauthDetails,1))return e.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(O.interactionMode===1)return DW.setLocation(_.oK(O.oauthDetails,1)),e.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));O.started=!0;O.galLogger.logStateTransition(5);
x=DW.getPostMessagePopup(O.JSC$19670_dataValidator);return e.return(x.open(_.oK(O.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(l){O.started=!1;var C=O.galLogger;if((l==null?void 0:l.error)!==void 0)throw C.logInternalEvent(59),Error("rk");if((l==null?void 0:l.redirect_state)===void 0)throw C.logInternalEvent(131),Error("sk");return WiT(O,l.redirect_state)}).catch(function(l){O.started=
!1;
return l.errorCode!==void 0?{statusCode:l.errorCode,statusMessage:l.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var WiT=function(O,x){return _.A(function(e){return e.return(hCL(O.galService,{serviceId:O.serviceId,sessionId:O.sessionId,dynamicUrlParameters:O.dynamicUrlParameters,redirectState:x,consentLanguageKeys:O.consentLanguageKeys,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp}).then(function(l){var C={statusCode:1,link:G7p(l.getLink())};AYL(_.TB(l,3))!==void 0&&(C.callerState=AYL(_.TB(l,3)));O.galLogger.logInternalEvent(134);return C}))})},DW={getPostMessagePopup:function(O){return new pP$(O)},
getRedirectStateFromUri:function(){var O=_.xO(DW.getLocation()).fragment_;return(new _.QL(O)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(O){_.ESN(window.location,_.Yy(O))},
createOAuthFlow:function(O,x){return new s3Q(O.serviceId,O.sessionId,O.galService,x,O.galLogger,O.interactionMode,O.redirectServiceUrl,O.consentLanguageKeys,O.dynamicUrlParameters,O.partnerConfigMinReadTimestamp)}};var zC4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(zC4,_.TH);var rPw=_.Pw(zC4);var Hpe=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Ki$=function(O,x,e,l,C,Q,L,k,M){var G=this;this.serviceId=O;this.sessionId=x;this.galService=e;this.gsiWebFlowDetails=l;this.colorScheme=C;this.showCloseOption=Q;this.galLogger=L;this.interactionMode=k;this.redirectServiceUrl=M;this.started=!1;this.JSC$19682_dataValidator=function(X,y){var Z=Hpe.has(y);Z||G.redirectServiceUrl===
void 0||(Z=G.redirectServiceUrl===y);return Z?X.sentinel==="gal":!1};
this.logEventProcessor=function(X){return X.result?(X=llL(X.result))?CkL(G.galLogger,X):!1:!1}};
Ki$.prototype.complete=function(){var O=this,x,e;return _.A(function(l){if(O.interactionMode!==1)return l.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));x=Gh.getRedirectStateFromUri();if(x===void 0)return O.galLogger.JSC$19622_logErrorEvent(131),l.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return e=dXO(O,x),l.return(nhp(O,e))}catch(C){return l.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Ki$.prototype.start=function(){var O=this,x;return _.A(function(e){if(O.started)return e.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.oK(O.gsiWebFlowDetails,1))return e.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(O.interactionMode===1)return Gh.setLocation(uJL(O,_.oK(O.gsiWebFlowDetails,1))),e.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
O.started=!0;x=Gh.getPostMessagePopup(O.JSC$19682_dataValidator,O.logEventProcessor);return e.return(x.open(uJL(O,_.oK(O.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(l){O.started=!1;if((l==null?void 0:l.result)===void 0)throw O.galLogger.JSC$19622_logErrorEvent(131),Error("sk");l=dXO(O,l.result);return nhp(O,l)}).catch(function(l){O.started=!1;
return l.errorCode!==void 0?{statusCode:l.errorCode,statusMessage:l.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var uJL=function(O,x){O=["result_channel",O.interactionMode===1?"2":"1","color_scheme",Q2e(O.colorScheme),"show_close_option",O.showCloseOption];return sET(x,O)},nhp=function(O,x){if(x!==null&&_.Q7(x,Ar,2)){var e,l=x==null?void 0:(e=_.y4(x,Ar,2))==null?void 0:_.y7(e,2);
l&&O.galLogger.JSC$19622_logErrorEvent(LuQ(l));return yP$(_.y4(x,Ar,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 O.galService.getLink({serviceId:O.serviceId,sessionId:O.sessionId,consistencyKey:_.oK(x,1)}).then(function(C){C=G7p(C);O.galLogger.logInternalEvent(134);return{statusCode:1,link:C}})},dXO=function(O,x){x=rPw(x);
if(!_.Q7(x,Ar,2)&&_.oK(x,1)==="")throw O.galLogger.JSC$19622_logErrorEvent(5),Error("tk");return x},Gh={getPostMessagePopup:function(O,x){return new pP$(O,x)},
getRedirectStateFromUri:function(){return _.ej(_.xO(Gh.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(O){_.ESN(window.location,_.Yy(O))},
createStreamlinedFlow:function(O,x){return new Ki$(O.serviceId,O.sessionId,O.galService,x,O.colorScheme,O.showCloseOption,O.galLogger,O.interactionMode,O.redirectServiceUrl)}};var U5T=function(){var O=_.f2N("GAL");this.storage=O?new _.HK(O):null};
U5T.prototype.getSession=function(O){if(this.storage!==null)try{var x=this.storage.get("SAVED_SESSION");if(x===void 0)return null;if(x.serviceId===O)return x}catch(e){}return null};var dA=function(){};
_.c(dA,EhO);dA.prototype.logStateTransition=function(){};
dA.prototype.logInternalEvent=function(){};
dA.prototype.JSC$19622_logErrorEvent=function(){};var YNT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(YNT,_.TH);YNT.prototype.getCompletionUrl=function(){return _.oK(this,15)};var nD=function(O,x,e,l,C,Q){this.serviceId=O;this.environment=x;this.sessionId=e;this.colorSchemeSelected=l;this.colorThemeDisplayed=C;this.JSC$19695_transport=Q;this.currentState=1};
_.c(nD,EhO);nD.prototype.logStateTransition=function(O){var x=BvQ(this);x=_.ZG(x,3,this.currentState);x=_.ZG(x,1,O);this.currentState=O;O=n4Q(1);this.dispatch(x,O)};
nD.prototype.logInternalEvent=function(O){O=n4Q(O);this.dispatch(BvQ(this),O)};
nD.prototype.JSC$19622_logErrorEvent=function(O){var x=BvQ(this);x=_.ZG(x,1,10);O=n4Q(O);this.dispatch(x,O)};
var BvQ=function(O){var x=new YNT;x=_.ZG(x,1,O.currentState);x=_.mO(x,7,O.serviceId);var e,l;var C=((e=window)==null?0:(l=e.location)==null?0:l.href)?_.xO(window.location.href).JSC$10027_domain_:"NO_PACKAGE_NAME";e=_.mO(x,8,C);e=_.ZG(e,6,O.environment);e=_.mO(e,5,"100");e=_.ZG(e,11,O.colorSchemeSelected);return _.ZG(e,12,O.colorThemeDisplayed)};
nD.prototype.dispatch=function(O,x){x===void 0&&(x=new _.Lr);var e=x;O=O.serialize();e=_.mO(e,8,O);_.WH(e,12,this.sessionId);this.JSC$19695_transport.dispatch(x)};var vhX=function(O,x){this.loggerType=O;this.sessionIndex=x!=null?x:0},fiL;
vhX.prototype.create=function(O,x,e,l,C){switch(this.loggerType){case 0:return new dA;case 1:return fiL||(fiL=(new _.t0(555,this.sessionIndex.toString())).build()),new nD(O,x,e,l,C,fiL);default:_.vd(this.loggerType,"unknown logger type")}};var FO=[6,2,3,1],zPp=new Map([[4,1],[1,6],[2,2],[3,3]]),yIL={statusCode:7,statusMessage:"Failed to create flow object"},pep=function(O,x,e,l,C,Q,L,k,M,G){this.serviceId=O;this.sessionId=x;this.config=e;this.galService=l;this.JSC$19702_linkingSession=C;this.googleScopes=Q;this.callerState=L;this.consentLanguageKeys=k;this.dynamicUrlParameters=M;this.partnerConfigMinReadTimestamp=G;this.currentFlow=0;l=this.JSC$19702_linkingSession;C=new Set;_.Q7(l,Pku,1)&&C.add(1);_.Q7(l,RUe,2)&&_.Q7(l,cI$,6)&&C.add(2);
_.Q7(l,pYT,3)&&_.Q7(l,cI$,6)&&C.add(3);_.Q7(l,cnL,4)&&C.add(6);this.supportedFlows=C;l=e.loggerType;C=e.clientEnvironment;a:{Q=e.colorScheme;switch(Q){case 0:Q=1;break a;case 1:Q=2;break a;case 2:Q=3;break a;default:_.vd(Q)}Q=void 0}a:{L=e.colorScheme;L=PGL(L);switch(L){case 0:L=1;break a;case 1:L=2;break a;default:_.vd(L)}L=void 0}this.galLogger=(new vhX(l,e.authUser)).create(O,C,x,Q,L)},wPQ=function(O){return new Promise(function(x){var e,l,C,Q,L,k,M,G,X,y;
return _.A(function(Z){switch(Z.nextAddress){case 1:e=Il$(O.currentFlow,O.supportedFlows),l=!1,C=new cPX(O.JSC$19702_linkingSession,O.config.dataUsageNoticeConfig);case 2:if(e===void 0){Z.jumpTo(4);break}_.tS(Z,5);var E=C,P=e,U=void 0;l?P===1&&(U=E.displayInfoMap.get(2)):P===2||P===3?U=E.displayInfoMap.get(1):P===1&&(U=E.displayInfoMap.get(3));Q=U?U:[];L=O.consentLanguageKeys;k=_.T(Q);M=k.next();case 7:if(M.done)return O.currentFlow=e,Z.yield(Eze(JPO(O,L)),11);G=M.value;return Z.yield(k7L(G,O.config.dataUsageNoticeConfig.uiAdapter,
O.config.colorScheme,O.galLogger),10);case 10:X=Z.yieldResult;if(X.statusCode!==1)return alL(O.serviceId),O.currentFlow=0,x(Ma({statusCode:X.statusCode,statusMessage:X.statusMessage},O.callerState)),Z.return();X.consentLanguageKeys!==void 0&&(L=X.consentLanguageKeys);M=k.next();Z.jumpTo(7);break;case 11:y=Z.yieldResult;if(y.statusCode!==10)return y.statusCode!==6&&(alL(O.serviceId),O.currentFlow=0),y.statusCode!==1&&O.callerState!==void 0&&(y.callerState=O.callerState),x(y),Z.return();_.lb(Z,6);break;
case 5:_.VP(Z);case 6:e=Il$(O.currentFlow,O.supportedFlows);l=!0;Z.jumpTo(2);break;case 4:alL(O.serviceId),O.currentFlow=0,x(Ma({statusCode:12,statusMessage:"Linking failed"},O.callerState)),_.Ra(Z)}})})},WuT=function(O,x,e){O.currentFlow=x;
return teT(JPO(O,e)).then(function(l){return l.statusCode===10&&O.config.interactionMode===1&&Il$(O.currentFlow,O.supportedFlows)!==void 0?wPQ(O):l})},JPO=function(O,x){return{flowParams:{serviceId:O.serviceId,
sessionId:O.sessionId,galService:O.galService,galLogger:O.galLogger,interactionMode:O.config.interactionMode,redirectServiceUrl:O.config.redirectServiceUrl,colorScheme:O.config.colorScheme,consentLanguageKeys:x,dynamicUrlParameters:O.dynamicUrlParameters,showCloseOption:O.config.showCloseOption,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp},currentFlow:O.currentFlow,config:O.config,session:O.JSC$19702_linkingSession,googleScopes:O.googleScopes,callerState:O.callerState}};var H7$=function(O,x){this.config=O;this.galService=x.getService();this.JSC$19715_galRepository=x.JSC$19733_galRepository};
H7$.prototype.getLink=function(O,x){return SNL(this,O,x)};
var SNL=function(O,x,e){return O.JSC$19715_galRepository.getLink({serviceId:x,scopes:void 0,capabilities:void 0,linkName:e}).then(function(l){return{statusCode:1,link:l}}).catch(function(l){return{statusCode:rIQ(l.code),
statusMessage:l.message}})};
H7$.prototype.deleteLink=function(O,x){return this.JSC$19715_galRepository.deleteLink(O,this.config.accountLinkingEntryPoint,x).then(function(){return{statusCode:1}}).catch(function(e){return{statusCode:rIQ(e.code),
statusMessage:e.message}})};
H7$.prototype.startLinkingSession=function(O){var x=O.serviceId;var e=O.sessionId;return RPe({serviceId:x,sessionId:e!==void 0?e:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:O.loginHint,callerState:O.callerState,consentLanguageKeys:O.consentLanguageKeys,linkName:O.linkName,dynamicUrlParameters:O.dynamicUrlParameters,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp})};var uB=function(O,x,e,l,C,Q,L){this.apiKey=x;this.authUser=e;this.oauthToken=l;this.bucket=C;this.locale=Q;this.galSdkEventHandler=L;if(l===void 0){if(x===void 0)throw Error("uk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new TvL(O)};
uB.prototype.deleteLink=function(O){var x=O.serviceId;var e=O.sessionId;var l=O.accountLinkingEntryPoint;var C=O.linkName;var Q=this,L;return _.A(function(k){var M=(new I5).setHeader(Q.getHeader(e));var G=j3L({serviceId:x,linkName:C});M=_.IS(M,2,G);L=_.PM(M,3,l);return k.return(Q.makeRequest(Q.galServiceClient.deleteLink,L,[1,3],[2,4]))})};
var hCL=function(O,x){var e=x.serviceId;var l=x.sessionId;var C=x.dynamicUrlParameters;var Q=x.redirectState;var L=x.consentLanguageKeys;var k=x.partnerConfigMinReadTimestamp;var M;return _.A(function(G){var X=(new pD).setHeader(O.getHeader(l,C));X=_.mz(X,2,e);M=_.mz(X,4,Q);L!==void 0&&_.mz(M,5,L);k!==void 0&&_.IS(M,6,k);return G.return(O.makeRequest(O.galServiceClient.JSC$19601_finishOAuth,M,[1,3],[2,4]))})};
uB.prototype.getLink=function(O){var x=O.serviceId;var e=O.sessionId;var l=O.scopes;var C=O.capabilities;var Q=O.consistencyKey;var L=O.linkName;var k=this,M;return _.A(function(G){var X=(new R5).setHeader(k.getHeader(e)),y=j3L({serviceId:x,scopes:l,capabilities:C,linkName:L});M=_.IS(X,2,y);Q!==void 0&&(X=An$(),X=_.mz(X,2,Q),_.IS(M,3,X));return G.return(k.makeRequest(k.galServiceClient.getLink,M,[1,3],[2,4]))})};
var q1p=function(O,x){var e=x.serviceId;var l=x.sessionId;var C=x.googleScopes;var Q=x.consistencyKey;var L;return _.A(function(k){var M=(new Vm).setHeader(O.getHeader(l));M=_.mz(M,2,e);var G=Array.from(C.values());M=_.iL(M,3,G,_.ZQ);G=An$();G=_.mz(G,2,Q);L=_.IS(M,4,G);return k.return(O.makeRequest(O.galServiceClient.JSC$19601_depositGoogleCredential,L,[1,3],[2,4]))})};
uB.prototype.startLinkingSession=function(O){var x=O.serviceId;var e=O.sessionId;var l=O.scopes;var C=O.capabilities;var Q=O.loginHint;var L=O.supportedFlows;var k=O.completionUrl;var M=O.usePingPong;var G=O.twoWayLinking;var X=O.accountLinkingEntryPoint;var y=O.callerState;var Z=O.consentLanguageKeys;var E=O.googleScopes;var P=O.dataUsageNoticeConfig;var U=O.linkName;var W=O.dynamicUrlParameters;var z=O.partnerConfigMinReadTimestamp;var r=this,f,u;return _.A(function(Y){if(C!==void 0&&l!==void 0)throw Error("qk");
var J=(new mCh).setHeader(r.getHeader(e,W));f=_.mz(J,2,x);U!==void 0&&_.mz(f,14,U);if(C!==void 0){J=f;var O8=Array.from(C.values());_.iL(J,5,O8,_.ZQ)}else l!==void 0&&(J=f,O8=Array.from(l.values()),_.iL(J,3,O8,_.ZQ));k!==void 0&&_.mz(f,6,k);M!==void 0&&_.yo(f,15,M);L!==void 0&&(J=f,O8=Array.from(L.values()),_.iL(J,4,O8,_.O4));if(G!==void 0){if(G&&(!E||E.size===0))throw Error("vk");_.yo(f,8,G)}X!==void 0&&_.PM(f,9,X);Q!==void 0&&_.mz(f,13,Q);y!==void 0&&(J=f,O8=(new TextEncoder).encode(y),_.Oh(J,12,
_.az(O8,!1),_.UT()));Z!==void 0&&_.mz(f,16,Z);z!==void 0&&_.IS(f,18,z);if(P!==void 0&&P.size>0||E!==void 0&&E.size>0)u=new a7Q,E!==void 0&&E.size>0&&(J=u,O8=Array.from(E.values()),_.iL(J,1,O8,_.ZQ)),P!==void 0&&(P.has(0)&&_.Y4m(u,2,_.O4,1,_.xL),P.has(1)&&_.Y4m(u,2,_.O4,2,_.xL)),_.IS(f,17,u);return Y.return(r.makeRequest(r.galServiceClient.startLinkingSession,f,[1],[2]))})};
uB.prototype.getMetadata=function(){var O=this,x,e;return _.A(function(l){x={};O.useFpa?(x["X-Goog-Api-Key"]=O.apiKey,x["X-Goog-AuthUser"]=O.authUser!==void 0?O.authUser.toString():"0",(e=_.oXr([]))&&(x.Authorization=e)):x.Authorization="Bearer "+O.oauthToken;O.locale&&(x["accept-language"]=O.locale);return l.return(x)})};
uB.prototype.makeRequest=function(O,x,e,l){var C=this,Q;return _.A(function(L){if(L.nextAddress==1)return L.yield(C.getMetadata(),2);Q=L.yieldResult;NvQ(C,e);return L.return(O.bind(C.galServiceClient)(x,Q).finally(function(){NvQ(C,l)}))})};
var NvQ=function(O,x){O.galSdkEventHandler!==void 0&&x.forEach(function(e){O.galSdkEventHandler.onEvent(e)})};
uB.prototype.getHeader=function(O,x){var e=new q8;O=_.Oh(e,2,_.bL(O),0);O=_.PM(O,5,3);x=_.iL(O,8,x,_.ZQ);this.bucket!==void 0&&_.mz(x,1,this.bucket);return x};
var j3L=function(O){var x=O.serviceId;var e=O.scopes;var l=O.capabilities;O=O.linkName;if(l!==void 0&&e!==void 0)throw Error("qk");var C=new LBp;x=_.mz(C,1,x);l!==void 0?(e=Array.from(l.values()),_.iL(x,5,e,_.ZQ)):e!==void 0&&(e=Array.from(e.values()),_.iL(x,3,e,_.ZQ));O!==void 0&&_.mz(x,6,O);return x};var Ku$=function(O){this.galService=new uB(O.alsDomain,O.apiKey,O.authUser,O.oauthToken,O.bucket,O.locale,O.galSdkEventHandler);this.JSC$19733_galRepository=new IiX(this.galService)};
Ku$.prototype.getService=function(){return this.galService};var ghT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(ghT,_.TH);var $XQ=function(O){var x=new ghT;return _.ZG(x,1,O)};
ghT.prototype.setErrorMessage=function(O){return _.mO(this,2,O)};var ipL=[0,_.JO,_.d4,_.JO];var YI=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(YI,_.TH);var O6L=[0,[1,2,3],_.BM,[0,_.i24,VvQ,-1],_.BM,[0,IV4,-1],_.um];var x_u=[0,_.zB,1,_.JO,_.d4,-1,1,_.vM,_.sa,_.JO,-1,O6L];var ebL=[0,_.JO,[0,_.vM,_.sa,[0,_.d4]],_.r4,[0,_.JO,-1]];var bB=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(bB,_.TH);var lmp=[0,_.d4,_.JO,-2,_.zB,_.JO,_.zB,_.JO,-2,1,_.r4];var CzT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(CzT,_.TH);var Q14=[0,_.zB];var b6T=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(b6T,_.TH);var T2L=[0,_.JO,ebL,Q14,lmp,x_u];var o4Y=_.yc(b6T,T2L);var L_h=[0,Lip];var PfL=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(PfL,_.TH);var kk4=[0,[1,3],U0T,_.JO,U0T];var CD=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(CD,_.TH);var A5L=[0,_.JO];var Ma4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(Ma4,_.TH);var Qm=function(O){return _.tO(O,ghT,2,lB)},D_4=function(O){var x=new Ma4;
return _.Vc(x,2,lB,O)},lB=[1,
2];var Gkh=[0,lB,_.BM,A5L,_.BM,ipL,_.Yi,kk4,1,_.JO,L_h];var F_p=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(F_p,_.TH);var oT$=function(O){var x=new F_p;return _.Vc(x,3,Xgw,O)},Xgw=[2,
3];var B2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(B2,_.TH);var y5Q=function(O,x){return _.IS(O,2,x)},Z6$=function(O,x){return _.IS(O,8,x)},ET$=function(O,x){return _.IS(O,3,x)};var tau=[0,_.JO,Gkh,T2L,_.gp,[0,[5,6,7],[0,_.JO,-2],[0,_.zB,_.JO,_.d4],[0,O6L],[0,_.d4,_.JO,-1,_.Np,_.JO],_.BM,[0,[0,_.zB],_.JO,-1],_.BM,[0,[3,4],_.JO,-1,_.BM,[0,[0,_.JO,_.r4]],_.BM,[0,[0,[0,[1,2,3],_.BM,[0],_.BM,[0],_.BM,[0]]]]],_.BM,[0,_.JO]],_.gp,-1,[0,Xgw,_.JO,_.BM,A5L,_.BM,ipL,_.Yi,kk4,[0,Lip]]];var qFh=_.yc(B2,tau),PzY=_.Eh(tau);var c5T=function(){_.h0.call(this)};
_.c(c5T,_.h0);c5T.prototype.init=function(){};
new c5T;var Imh=_.zo(["data-"]),VaL=_.zo(["aria-"]),pgu=_.zo(["aria-"]),v2=function(O,x){this.isLatencyMeasurementExperiment=O===void 0?!1:O;this.enableDialogA11yFix=x===void 0?!1:x;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.YdT(_.CV.location.href)},Zle=function(O,x){O.onConsentPrimitiveShownCallback=x},RbL=function(O,x){return O.overriddenIframeLoadTimeout?O.overriddenIframeLoadTimeout:x!==void 0?x:5E3},tW4=function(O){if(O.prewarmPromise!==void 0)return O.prewarmPromise;
O.prewarmPromise=new Promise(function(x,e){fD(O,1);U_L(O,amL(O,!0),m_e(O));O.iframe?O.prewarmChannel||s1L(O,O.iframe,x):e(Error("wk"))});
O.prewarmPromise.finally(function(){O.prewarmPromise=void 0});
return O.prewarmPromise};
v2.prototype.showPrimitive=function(){var O=this;if(this.consentPromise!==void 0)return this.consentPromise;var x=Date.now();W_u(this,x);this.consentPromise=new Promise(function(e,l){fD(O,0,x);var C=O.isDarkTheme();O.isLatencyMeasurementExperiment||O.initialLoadingStrategy===1||O.initialLoadingStrategy===2||(O.loadingBar||(O.loadingBar=Y1p(getComputedStyle(document.body).direction==="rtl",C),O.loadingBar.style.position="fixed",O.loadingBar.style.zIndex="15000"),document.body.appendChild(O.loadingBar));
U_L(O,amL(O),m_e(O));O.iframe?O.channel||hb$(O,O.iframe,e,l):(zbL(O),l(Error("wk")))});
this.consentPromise.finally(function(){O.consentPromise=void 0});
return this.consentPromise};
var hb$=function(O,x,e,l){var C,Q;_.A(function(L){switch(L.nextAddress){case 1:fD(O,3);C=!1;setTimeout(function(){if(!C){zbL(O);r5L(O);H6Q(O);var k=$XQ(7).setErrorMessage("Timeout connecting to iframe");e(Z6$(y5Q(new B2,D_4(k)),oT$(k)))}},RbL(O,K_L(O)));
if(!O.prewarmPromise){L.jumpTo(2);break}_.tS(L,3);return L.yield(O.prewarmPromise,5);case 5:_.lb(L,2);break;case 3:_.VP(L),Q=$XQ(4).setErrorMessage("Error while prewarming."),e(Z6$(y5Q(new B2,D_4(Q)),oT$(Q)));case 2:O.prewarmChannel&&O.prewarmChannel.send(PzY(ET$(new B2,O.consentPrimitiveRequest))),O.channel=_.Ni({destination:O.win,iframe:x,origin:d_O(O),channelName:"cpw",onEstablished:function(){C=!0;zbL(O);O.isLatencyMeasurementExperiment||(O.JSC$19762_previousBodyOverflow=document.body.style.overflow,
O.JSC$19762_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,O.JSC$19762_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",O.enableDialogA11yFix&&window.addEventListener("blur",O.focusChangeListener));var k=O.iframe;k.style.bottom="0";k.style.position="fixed";k.style.right="0";k.style.border="none";k.style.left="0";k.style.top=
"0";k.style.zIndex="5000";k.style.pointerEvents="";k.style.visibility="";O.initialLoadingStrategy===2||O.initialLoadingStrategy===3?fD(O,4):fD(O,6);var M;(M=O.onConsentPrimitiveShownCallback)==null||M.call(O)},
onMessage:function(k){k=qFh(k.data);switch(_.y7(k,1)){case 1:r5L(O);var M=BSQ(_.y4(k,_.EM,7));M&&(O.initialLoadingStrategy!==2&&O.initialLoadingStrategy!==3||fD(O,6,M),fD(O,5,M));if(M=BSQ(_.y4(k,_.EM,6)))fD(O,7,M),fD(O,8);var G,X;((G=_.y4(k,Ma4,2))==null?void 0:_.ki(G,lB))!==0&&((X=_.y4(k,F_p,8))==null?void 0:_.ki(X,Xgw))!==0||l(Error("xk"));e(k);break;case 2:H6Q(O)}}}),_.Ra(L)}})},s1L=function(O,x,e){O.prewarmChannel=_.Ni({destination:O.win,
iframe:x,origin:d_O(O),channelName:"pwcp",onEstablished:function(){fD(O,2);e()}})},d_O=function(O){var x=_.sh(O.src).toString();
return x&&x.indexOf("://")<0&&x.indexOf("//")!==0?O.origin:_.YdT(x)},amL=function(O,x){x=x===void 0?!1:x;
var e,l=new Map([["origin",O.origin],["hl",(e=nT4(O))!=null?e:null]]);x&&l.set("pw","1");x=_.T([["cpr",O.consentPrimitiveRequest.serialize()]]);for(e=x.next();!e.done;e=x.next()){var C=_.T(e.value);e=C.next().value;C=C.next().value;l.set(e,C)}O.isDarkTheme()&&l.set("color_scheme","dark");return _.yi(O.src,l)},zbL=function(O){O.isLatencyMeasurementExperiment||O.loadingBar&&document.body.removeChild(O.loadingBar)};
v2.prototype.getSrc=function(){var O=_.Lb(this.origin),x;var e=(x=_.y4(this.consentPrimitiveRequest,CzT,3))==null?void 0:_.G8(x,1);x="consent.google.com";e=e?"/u/"+encodeURIComponent(e.toString()):"";(O==null?0:O.endsWith("youtube.com"))?x="consent.youtube.com":(O=O==null?void 0:O.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(x="consent.google."+((O[1]?"co.":"")+encodeURIComponent(O[2])));return _.aS("https://"+x+"/signedin"+e+"/landing")};
var U_L=function(O,x,e){O.iframe||(O.iframe=document.createElement("iframe"),O.iframe.style.width="100%",O.iframe.style.height="100%",e!==112496729&&(O.iframe.style.colorScheme="auto"),O.isLatencyMeasurementExperiment&&(O.iframe.style.display="none"),_.gk(O.iframe,x),O.iframe.setAttribute("jsname","C5o1O"),uIw(O.iframe),document.body.appendChild(O.iframe))},uIw=function(O){O.style.bottom="-200vh";
O.style.position="fixed";O.style.right="-200vw";O.style.border="";O.style.left="";O.style.top="";O.style.zIndex="";O.style.pointerEvents="none";O.style.visibility="hidden"},r5L=function(O){O.iframe&&(O.isLatencyMeasurementExperiment||(O.JSC$19762_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=O.JSC$19762_previousHtmlOverscroll),O.JSC$19762_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=O.JSC$19762_previousBodyOverscroll),O.JSC$19762_previousBodyOverflow!==
void 0&&(document.body.style.overflow=O.JSC$19762_previousBodyOverflow),O.enableDialogA11yFix&&YFp(O,!1)),uIw(O.iframe))};
v2.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(YFp(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var YFp=function(O,x){var e,l,C=(e=O.iframe)==null?void 0:(l=e.parentElement)==null?void 0:l.children;if(C)for(e=0;e<C.length;e++)l=C[e],l!==O.iframe&&(x?(l.hasAttribute("aria-hidden")&&_.Tt([_.GJ(Imh)],l,"data-old-aria-hidden",l.getAttribute("aria-hidden")),_.Tt([_.GJ(VaL)],l,"aria-hidden","true")):(l.removeAttribute("aria-hidden"),l.hasAttribute("data-old-aria-hidden")&&(_.Tt([_.GJ(pgu)],l,"aria-hidden",l.getAttribute("data-old-aria-hidden")),l.removeAttribute("data-old-aria-hidden"))))},fD=function(O,
x,e){var l;
(l=O.latencyCallback)==null||l.call(O,{latencyType:x,timestampEpochMillis:e!=null?e:Date.now()})};var B2$=function(O,x,e){v2.call(this,x,e===void 0?!1:e);this.consentPrimitiveRequest=O;O=nT4(this);_.rUL(O);this.src=this.getSrc();var l;this.initialLoadingStrategy=(l=_.y4(this.consentPrimitiveRequest,bB,4))==null?void 0:_.y7(l,4)},vTT;
_.c(B2$,v2);var yle=function(O){var x=_.t("enable_primitive_dialog_aria_hide_siblings");O={request:O,enableDialogA11yFix:x===void 0?!1:x};vTT||(vTT=new B2$(O.request,O.isLatencyMeasurementExperiment||_.y7(O.request,1)===2,O.enableDialogA11yFix));return vTT},nT4=function(O){var x;
return(x=_.y4(O.consentPrimitiveRequest,bB,4))==null?void 0:_.oK(x,1)},W_u=function(O,x){if(!_.Q7(O.consentPrimitiveRequest,YI,5)){var e=O.consentPrimitiveRequest,l=new YI;
_.IS(e,5,l)}var C;if((C=_.y4(O.consentPrimitiveRequest,YI,5))==null||_.rJr(_.C0(C,8))==null){var Q;(Q=_.y4(O.consentPrimitiveRequest,YI,5))!=null&&_.WH(Q,8,x)}},m_e=function(O){var x;
return(x=_.y4(O.consentPrimitiveRequest,YI,5))==null?void 0:_.G8(x,1)};
B2$.prototype.isDarkTheme=function(){var O;return((O=_.y4(this.consentPrimitiveRequest,bB,4))==null?void 0:_.y7(O,2))===2};
var K_L=function(O){var x;return((x=_.y4(O.consentPrimitiveRequest,bB,4))==null?void 0:_.G8(x,5))||void 0},H6Q=function(O){O.channel=void 0;
O.prewarmChannel=void 0;O.iframe&&(document.body.contains(O.iframe)&&document.body.removeChild(O.iframe),O.iframe=void 0);vTT=void 0},q5Q=function(O){return v2.prototype.showPrimitive.call(O).then(function(x){return _.y4(x,Ma4,2)})};for(var Jk={},fmL=(Jk[64]="ma",Jk[73]="ogb",Jk[89]="cr",Jk[21]="test",Jk[0]="unkn",Jk[137]="con",Jk[155]="hl",Jk[78]="yt",Jk[171]="lp",Jk[172]="ap",Jk[177]="amo",Jk[178]="pqe",Jk[74]="gg",Jk[1]="gm",Jk[140]="am",Jk[193]="sc",Jk),J5X=_.T(Object.keys(fmL)),wgO=J5X.next();!wgO.done;wgO=J5X.next());var SFQ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(SFQ,_.TH);var j1e=[0,[2,3,4],_.JO,cD4,U0T,_.um];var N2Y=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(N2Y,_.TH);var gTu=_.yc(N2Y,[0,_.w4,_.d4,_.JO,_.d4,_.JO,j1e]);var $_O=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c($_O,_.TH);$_O.prototype.getCommand=function(){return _.y7(this,1)};
var i6w=function(){var O=new $_O;return _.PM(O,1,0)};var OY$=_.Eh([0,_.w4,_.d4,[0,_.JO,_.d4,-1]]);var xsw=new _.Fz("s"),etL=new _.Fz("t"),lMp=new _.Fz("u"),CNL=new _.Fz("v"),QqO=function(O,x,e){_.Xz.call(this,xsw);this.mediaKey=O;this.photoUrl=x;this.photoSource=e};
_.c(QqO,_.Xz);var bYL=function(){_.Xz.call(this,etL)};
_.c(bYL,_.Xz);var Tfu=function(O){O=O===void 0?!1:O;_.Xz.call(this,lMp);this.isError=O};
_.c(Tfu,_.Xz);var L5Y=function(){_.Xz.call(this,CNL)};
_.c(L5Y,_.Xz);var kUe=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,GUQ=function(O){if(typeof O=="string"){if(O.charAt(0)==".")return AEh(O.substr(1));if(O.charAt(0)=="["){var x=kUe.exec(O);O=O.indexOf("=")==-1?void 0:x[3];return Mmu(x[1],O)}return Ds$(O)}return O},AEh=function(O){return function(x){return x.getAttribute&&_.ue(x,O)}},Mmu=function(O,x){return function(e){return x!==void 0?e.getAttribute&&e.getAttribute(O)==x:e.hasAttribute&&e.hasAttribute(O)}},Ds$=function(O){O=O.toUpperCase();
return function(x){return(x=x.tagName)&&x.toUpperCase()==O}},F5e=function(){return!0};var wA=function(O,x){this.JSC$19790_key_=O;this.JSC$19790_value_=x},S9=function(O){throw Error("yk`"+O.JSC$19790_key_);
},XjL=function(O,x){return new TypeError("zk`"+x+"`"+O.JSC$19790_key_+"`"+O.JSC$19790_value_+"`"+typeof O.JSC$19790_value_)};
wA.prototype.string=function(O){return arguments.length==0?ooL(this):yEL(this,O)};
var yEL=function(O,x){var e;return(e=ZYu(O))!=null?e:x},ooL=function(O){var x=ZYu(O);
x===null&&S9(O);return x},ZYu=function(O){var x=O.JSC$19790_value_;
if(x==null)return null;if(typeof x==="string")return x;throw XjL(O,"string");};
wA.prototype.bool=function(O){if(arguments.length==0){var x=this.optionalBool();x===null&&S9(this)}else{var e;x=(e=this.optionalBool())!=null?e:O}return x};
wA.prototype.optionalBool=function(){var O=this.JSC$19790_value_;if(O==null)return null;if(typeof O==="boolean")return O;if(typeof O==="string"){O=O.toLowerCase();if(O==="true"||O==="1")return!0;if(O==="false"||O==="0")return!1}throw XjL(this,"boolean");};
wA.prototype.number=function(O){if(arguments.length==0){var x=Eoh(this);x===null&&S9(this)}else x=tmO(this,O);return x};
var tmO=function(O,x){var e;return(e=Eoh(O))!=null?e:x},Eoh=function(O){var x=O.JSC$19790_value_;
if(x==null)return null;if(typeof x==="number")return x;if(typeof x==="string"){var e=Number(x);if(!isNaN(e)&&(e!==0||x.trim().length!==0))return e}throw XjL(O,"number");};
wA.prototype.toString=function(){return ooL(this)};
wA.prototype.enum=function(O,x){var e=!0,l=void 0,C;for(C in O){var Q=O[C];e&&(e=!1,l=typeof Q==="number"?tmO(this,x):yEL(this,x));if(Q==l)return l}JSON.stringify(O);return l};
wA.prototype.array=function(O){if(arguments.length==0){var x=qlw(this);x===null&&S9(this);return x}x=qlw(this);return x==null?O:x};
var qlw=function(O){var x=O.JSC$19790_value_;if(x==null)return null;Array.isArray(x)||(typeof x!=="string"?x=[x]:(x=x.trim(),x=x==""?[]:x.split(",").map(function(e){return e.trim()})));
return PNp(O,x)},PNp=function(O,x){var e=O.JSC$19790_key_+"[";
return Array.from(x,function(l,C){return new wA(e+C+"]",l)})};
wA.prototype.object=function(O){var x=this.JSC$19790_value_;if(x==null)return O===void 0&&S9(this),O;if(typeof x==="object"&&x.constructor===Object){O={};var e=this.JSC$19790_key_+".",l;for(l in x)O[l]=new wA(e+l,x[l]);return O}throw XjL(this,"object");};var j9=function(O){this.list_=cEL(O)},cEL=function(O){if(O instanceof j9)O=O.list_;
else if(O[0]instanceof j9){for(var x=new Set,e=0;e<O.length;e++)for(var l=_.T(O[e].list_),C=l.next();!C.done;C=l.next())x.add(C.value);O=x}return[].concat(_.Kx(O))};
_.b=j9.prototype;_.b.each=function(O,x,e){((e===void 0?0:e)?bsQ:_.e3)(this.list_,O,x);return this};
_.b.size=function(){return this.list_.length};
_.b.isEmpty=function(){return this.list_.length===0};
_.b.get=function(O){return this.list_[O]||null};
_.b.el=function(){return this.list_[0]||null};
_.b.map=function(O,x){return _.Ku(this.list_,O,x)};
_.b.equals=function(O){return this===O||_.g7(this.list_,O.list_)};
_.b.first=function(){return this.list_.length==0?null:new N8(this.list_[0])};
_.b.last=function(){return this.list_.length==0?null:new N8(this.list_[this.list_.length-1])};
_.b.find=function(O){var x=[];this.each(function(e){e=e.querySelectorAll(String(O));for(var l=0;l<e.length;l++)x.push(e[l])});
return new j9(x)};
_.b.parent=function(){var O=[];this.each(function(x){(x=x.parentElement||null)&&!_.ur(O,x)&&O.push(x)});
return new j9(O)};
_.b.children=function(){var O=[];this.each(function(x){x=_.as(x);for(var e=0;e<x.length;e++)O.push(x[e])});
return new j9(O)};
_.b.filter=function(O){O=_.wC(this.list_,GUQ(O));return new j9(O)};
_.b.closest=function(O){var x=[],e=GUQ(O),l=function(C){return _.Tl(C)&&e(C)};
this.each(function(C){(C=_.fu(C,l,!0))&&!_.ur(x,C)&&x.push(C)});
return new j9(x)};
_.b.next=function(O){return IML(this,_.Qn4,O)};
_.b.prev=function(O){return IML(this,aVO,O)};
var IML=function(O,x,e){var l=[];var C=e?GUQ(e):F5e;O.each(function(Q){(Q=x(Q))&&C(Q)&&l.push(Q)});
return new j9(l)};
j9.prototype.setClass=function(O){return this.each(function(x){_.nr(x,O)})};
var VmQ=function(O,x){return O.each(function(e){_.uV(e,x)})},pjT=function(O,x){return O.each(function(e){_.dP(e,x)})};
j9.prototype.toggleClass=function(O,x){return x===!0?VmQ(this,O):x===!1?pjT(this,O):this.each(function(e){_.ue(e,O)?_.dP(e,O):_.uV(e,O)})};
j9.prototype.setText=function(O){return this.each(function(x){_.mn(x,O)})};
var Rtw=function(O){O.each(function(x){x.removeAttribute("aria-hidden")})};
j9.prototype.getStyle=function(O){if(this.list_.length>0){var x=this.list_[0],e=x.style[_.bh(O)];return typeof e!=="undefined"?e:x.style[_.Zu2(x,O)]||""}};
j9.prototype.getData=function(O){if(this.list_.length===0)return new wA(O,null);var x=MUh(this.list_[0],O);return new wA(O,x)};
j9.prototype.focus=function(O){try{O?this.el().focus(O):this.el().focus()}catch(x){}return this};
j9.prototype.click=function(){var O=_.BX(this.el());if(O.createEvent){var x=O.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,O.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(x)}else O=O.createEventObject(),O.clientX=0,O.clientY=0,O.screenX=0,O.screenY=0,O.altKey=!1,O.ctrlKey=!1,O.shiftKey=!1,O.button=0,this.el().fireEvent("onclick",O)};
var gA=function(O,x,e,l){function C(k,M,G){var X=M;M&&M.parentNode&&(X=M.cloneNode(!0));k(X,G)}
l=l===void 0?!1:l;if(O.list_.length==1){var Q=O.list_[0],L=function(k){return x(k,Q)};
e instanceof j9?e.each(L,void 0,l):Array.isArray(e)?(l?bsQ:_.e3)(e,L):L(e);return O}return O.each(function(k){e instanceof j9?e.each(function(M){C(x,M,k)}):Array.isArray(e)?_.e3(e,function(M){C(x,M,k)}):C(x,e,k)})};
_.b=j9.prototype;_.b.append=function(O){return gA(this,function(x,e){x&&e.appendChild(x)},O)};
_.b.appendTo=function(O){(new j9([O])).append(this);return this};
_.b.remove=function(){return gA(this,function(O,x){_.Um(x)},null)};
_.b.empty=function(){return gA(this,function(O,x){_.pl(x)},null)};
_.b.after=function(O,x){return gA(this,function(e,l){e&&_.U5(e,l)},O,!(x===void 0||x))};
_.b.before=function(O){return gA(this,function(x,e){x&&_.Rs(x,e)},O)};
_.b.replaceWith=function(O){return gA(this,function(x,e){x&&_.eQR(x,e)},O)};
_.b.toggle=function(O){return this.each(function(x){_.Ce(x,O)})};
_.b.show=function(){return this.toggle(!0)};
_.b.hide=function(){return this.toggle(!1)};
_.b.trigger=function(O,x,e,l){return UsY(this,O,x,e,l)};
var UsY=function(O,x,e,l,C){return O.each(function(Q){_.Z$L(_.BX(Q)).triggerWizEventInternal(Q,x,e,l,C)})},N8=function(O,x){O instanceof j9&&(x=O.list_,O=null);
this.list_=cEL(O!=null?[O]:x)};
_.fI(N8,j9);_.b=N8.prototype;_.b.children=function(){return new j9(Array.prototype.slice.call(_.as(this.list_[0])))};
_.b.each=function(O,x){O.call(x,this.list_[0],0);return this};
_.b.size=function(){return 1};
_.b.el=function(){return this.list_[0]};
_.b.first=function(){return this};var $I=function(O,x){x=x===void 0?window:x;this.hostId=O;this.win=x;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$19801_previousHtmlOverscroll=this.JSC$19801_previousBodyOverscroll=this.JSC$19801_previousBodyOverflow="";this.eventTarget=new _.tf;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},sqp=function(O){var x=
aMp(aMp(aMp(new msT(78),"po"),"hppp"),"hhc");
x.authUser=Number(_.wz("SESSION_INDEX","0"));x.colorScheme=O;return x};
$I.prototype.getOrigin=function(){return this.origin?this.origin:_.OS(_.ie(_.$u(new _.K1,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
$I.prototype.getTargetOrigin=function(){return _.OS(_.ie(_.$u(new _.K1,this.scheme),this.domain),this.port)};
$I.prototype.preloadIframe=function(O){var x=this;if(this.iframeLoadPromise===void 0){var e=document.createElement("iframe");this.iframe=e;NSO(e,O);this.iframeLoadPromise=new Promise(function(l,C){var Q=!1,L=function(k){k.stopPropagation();e.removeEventListener("error",L);e.removeEventListener("securitypolicyviolation",L);C(Error("Ak",{cause:k}))};
e.addEventListener("error",L);e.addEventListener("securitypolicyviolation",L);setTimeout(function(){Q||C(Error("Bk"))},3E4);
W5Q(x,e,function(){Q=!0;e.removeEventListener("error",L);e.removeEventListener("securitypolicyviolation",L);l()})});
hte(this);O=this.getTargetOrigin().toString();e.setAttribute("allow","camera "+O+"; display-capture "+O);this.parentElement.appendChild(e)}return this.iframeLoadPromise};
var HYL=function(O,x){var e,l;return _.A(function(C){if(C.nextAddress==1)return e=Y1p(getComputedStyle(O.parentElement).direction==="rtl"),O.parentElement.appendChild(e),document.activeElement instanceof HTMLElement&&(O.elementToFocusAfterClose=document.activeElement),_.tS(C,2),C.yield(O.preloadIframe(x),4);if(C.nextAddress!=2){O.parentElement.removeChild(e);O.JSC$19801_previousBodyOverflow=O.parentElement.style.overflow;O.JSC$19801_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
O.JSC$19801_previousBodyOverscroll=O.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";O.parentElement.style.overscrollBehavior="contain";O.parentElement.style.overflow="hidden";var Q=O.iframe;Q.style.bottom="0";Q.style.border="none";Q.style.height="100%";Q.style.left="0";Q.style.position=O.iframePosition;Q.style.right="0";Q.style.top="0";Q.style.width="100%";Q.style.zIndex="2202";Q.setAttribute("aria-hidden","false");Q.setAttribute("aria-modal","true");
O.opened=!0;ztL(O);return _.lb(C,0)}l=_.VP(C);O.parentElement.removeChild(e);wep(O.isDarkTheme());rEY(O,!1);throw Error("Ck",{cause:l});})},rEY=function(O,x){x=x===void 0?!0:x;
O.iframe!==void 0&&(K5p(O),document.documentElement.style.overscrollBehavior=O.JSC$19801_previousHtmlOverscroll,O.parentElement.style.overscrollBehavior=O.JSC$19801_previousBodyOverscroll,O.parentElement.style.overflow=O.JSC$19801_previousBodyOverflow,O.elementToFocusAfterClose!==void 0&&(O.elementToFocusAfterClose.focus(),O.elementToFocusAfterClose=void 0),x?hte(O):(O.parentElement.removeChild(O.iframe),O.iframe=void 0,O.iframeLoadPromise=void 0,O.mainChannel=void 0),O.opened=!1)},K5p=function(O){O.backgroundElementsAriaHiddenIsNull&&
(Rtw(O.backgroundElementsAriaHiddenIsNull),O.backgroundElementsAriaHiddenIsNull=void 0);
O.backgroundElementsAriaHiddenIsFalse&&(O.backgroundElementsAriaHiddenIsFalse.each(function(x){x.setAttribute("aria-hidden","false")}),O.backgroundElementsAriaHiddenIsFalse=void 0);
O.backgroundElementsWithoutInert&&(O.backgroundElementsWithoutInert.each(function(x){x.removeAttribute("inert")}),O.backgroundElementsWithoutInert=void 0)},ztL=function(O){O.backgroundElementsAriaHiddenIsNull=(new N8(O.iframe.parentElement)).children().filter(function(x){return x.getAttribute("aria-hidden")===null&&x!==O.iframe});
O.backgroundElementsAriaHiddenIsNull.each(function(x){x.setAttribute("aria-hidden","true")});
O.backgroundElementsAriaHiddenIsFalse=(new N8(O.iframe.parentElement)).children().filter(function(x){return x.getAttribute("aria-hidden")==="false"&&x!==O.iframe});
O.backgroundElementsAriaHiddenIsFalse.each(function(x){x.setAttribute("aria-hidden","true")});
O.backgroundElementsWithoutInert=(new N8(O.iframe.parentElement)).children().filter(function(x){return!x.hasAttribute("inert")&&x!==O.iframe});
O.backgroundElementsWithoutInert.each(function(x){x.setAttribute("inert","true")})},hte=function(O){O=O.iframe;
O.style.bottom="-1000px";O.style.position="fixed";O.style.right="-1000px";O.style.border="";O.style.height="";O.style.left="";O.style.top="";O.style.width="";O.style.zIndex="";O.setAttribute("aria-hidden","true");O.setAttribute("aria-modal","false")};
$I.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var msT=function(O,x){$I.call(this,fmL[O],x);this.options=[];this.style=""};
_.c(msT,$I);var ds$=function(O){O.style="youtube";return O},noL=function(O,x){O.eventTarget.listen(lMp,x);
return O},ufO=function(O,x){O.eventTarget.listen(xsw,x);
return O},aMp=function(O,x){O.options.push(x);
return O},Yl4=function(O){var x=[O.getOrigin()];
O.ancestorOrigins&&x.push.apply(x,_.Kx(O.ancestorOrigins));var e=new _.K1(O.win.location.href),l=O.startUrl?O.startUrl:O.options.includes("po")?"profile-picture/art":"profile-picture";x=LD(_.xx(O.getTargetOrigin(),l),"origin",x);O.startUrl&&_.lo(x,"startPath",O.startUrl);O.authUser>0&&_.lo(x,"authuser",O.authUser);O.pageId!==void 0&&_.lo(x,"pageId",O.pageId);_.lo(x,"hostId",O.hostId);O.jsMode!==void 0&&_.lo(x,"jsmode",O.jsMode);O.rectangleRatio!==void 0&&_.lo(x,"rectangleRatio",O.rectangleRatio);
O.options.length>0&&_.lo(x,"opts",O.options.join(","));try{for(var C=_.T(["utm_source","utm_medium","utm_campaign","utm_content"]),Q=C.next();!Q.done;Q=C.next()){var L=Q.value;_.ej(e,L)&&_.lo(x,L,_.ej(e,L))}var k,M=(k=O.hl)!=null?k:_.ej(e,"hl");M!==void 0&&_.lo(x,"hl",M)}catch(G){if(!(G instanceof URIError))throw G;}O.colorScheme&&_.lo(x,"theme",O.colorScheme);O.style&&_.lo(x,"style",O.style);return x},BfL=function(O,x){O.mainChannel=_.Ni({destination:O.win,
iframe:x,origin:O.getTargetOrigin().toString(),channelName:"ow",onMessage:function(e){e=gTu(e.data);if(x===O.iframe)switch(_.y7(e,1)){case 1:O.eventTarget.dispatchEvent(new Tfu);rEY(O);break;case 2:O.eventTarget.dispatchEvent(new QqO(_.oK(e,4),_.oK(e,2),_.y7(e,5),_.y4(e,SFQ,6)));break;case 0:var l;O.eventTarget.dispatchEvent(new bYL(_.oK(e,2),(l=_.y7(e,3))!=null?l:0));break;case 3:O.eventTarget.dispatchEvent(new Tfu(!0));rEY(O,!1);break;case 4:O.eventTarget.dispatchEvent(new L5Y)}}})},W5Q=function(O,
x,e){_.Ni({destination:O.win,
iframe:x,origin:_.OS(_.ie(_.$u(new _.K1,O.scheme),O.domain),O.port).toString(),channelName:"owi",onMessage:function(l){x===O.iframe&&(e!==void 0&&e(),BfL(O,x),O.opened&&O.mainChannel.send(OY$(i6w())),l.reply(),W5Q(O,x))}})};
msT.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?$I.prototype.preloadIframe.call(this,Yl4(this).toString()):this.iframeLoadPromise};
msT.prototype.openPicker=function(O){var x=this;return _.A(function(e){if(e.nextAddress==1)return x.startUrl=O?O:x.options.includes("po")?"profile-picture/art":"profile-picture",e.yield(HYL(x,Yl4(x).toString()),2);if(x.mainChannel){var l=x.mainChannel,C=l.send;var Q=i6w();Q=_.mO(Q,2,x.startUrl);C.call(l,OY$(Q))}_.Ra(e)})};var vo$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(vo$,_.TH);_.b=vo$.prototype;_.b.getSize=function(){return Xd(this,1)};
_.b.setSize=function(O){return _.qi(this,1,O)};
_.b.getWidth=function(){return Xd(this,12)};
_.b.getHeight=function(){return Xd(this,13)};
_.b.setCenterCrop=function(O){return _.yW(this,20,O)};
_.b.getHtml=function(){return _.GB(this,4)};
_.b.getToken=function(){return _.pf(this,24)};
_.b.setToken=function(O){return _.mO(this,24,O)};
_.b.getBackgroundColor=function(){return Xd(this,87)};
_.b.hasBackgroundColor=function(){return _.TX(_.C0(this,87))!=null};
_.b.getStoryboardLevel=function(){return Xd(this,109)};var iB=function(O){this.JSC$19809_value_=void 0;this.childNodes_={};if(O){var x=_.wnd(O);O=_.gF(O);for(var e=0;e<x.length;e++)this.set(x[e],O[e])}};
iB.prototype.set=function(O,x){fMQ(this,O,x,!1)};
iB.prototype.add=function(O,x){fMQ(this,O,x,!0)};
var fMQ=function(O,x,e,l){for(var C=0;C<x.length;C++){var Q=x.charAt(C);O.childNodes_[Q]||(O.childNodes_[Q]=new iB);O=O.childNodes_[Q]}if(l&&O.JSC$19809_value_!==void 0)throw Error("Dk`"+x);O.JSC$19809_value_=e},JEX=function(O,x){for(var e=0;e<x.length;e++)if(O=O.childNodes_[x.charAt(e)],!O)return;
return O};
iB.prototype.get=function(O){return(O=JEX(this,O))?O.JSC$19809_value_:void 0};
iB.prototype.getValues=function(){var O=[];wjO(this,O);return O};
var wjO=function(O,x){O.JSC$19809_value_!==void 0&&x.push(O.JSC$19809_value_);for(var e in O.childNodes_)wjO(O.childNodes_[e],x)};
iB.prototype.getKeys=function(O){var x=[];if(O){for(var e=this,l=0;l<O.length;l++){var C=O.charAt(l);if(!e.childNodes_[C])return[];e=e.childNodes_[C]}SlO(e,O,x)}else SlO(this,"",x);return x};
var SlO=function(O,x,e){O.JSC$19809_value_!==void 0&&e.push(x);for(var l in O.childNodes_)SlO(O.childNodes_[l],x+l,e)};
_.b=iB.prototype;_.b.containsKey=function(O){return this.get(O)!==void 0};
_.b.containsValue=function(O){if(this.JSC$19809_value_===O)return!0;for(var x in this.childNodes_)if(this.childNodes_[x].containsValue(O))return!0;return!1};
_.b.clear=function(){this.childNodes_={};this.JSC$19809_value_=void 0};
_.b.remove=function(O){for(var x=this,e=[],l=0;l<O.length;l++){var C=O.charAt(l);if(!x.childNodes_[C])throw Error("Ek`"+O);e.push([x,C]);x=x.childNodes_[C]}O=x.JSC$19809_value_;for(delete x.JSC$19809_value_;e.length>0;)if(l=e.pop(),x=l[0],l=l[1],x.childNodes_[l].isEmpty())delete x.childNodes_[l];else break;return O};
_.b.clone=function(){return new iB(this)};
_.b.getCount=function(){return h_L(this.getValues())};
_.b.isEmpty=function(){return this.JSC$19809_value_===void 0&&_.HX.isEmpty(this.childNodes_)};var xRY=function(){if(!jqT){var O=jqT=new iB,x;for(x in Nfe)O.add(x,Nfe[x])}},jqT,Os=function(O,x){this.types=O;
this.setters=x},Nfe={a:new Os([3,
0],[function(O,x){_.yW(O,21,x)},
function(O,x){_.qi(O,56,x)}]),
al:new Os([3],[function(O,x){_.yW(O,74,x)}]),
b:new Os([3,0],[function(O,x){_.yW(O,23,x)},
function(O,x){_.qi(O,38,x)}]),
ba:new Os([0],[function(O,x){_.qi(O,85,x)}]),
bc:new Os([0],[function(O,x){_.qi(O,87,x)}]),
br:new Os([0],[function(O,x){_.qi(O,86,x)}]),
c:new Os([3,0],[function(O,x){_.yW(O,2,x)},
function(O,x){_.qi(O,39,x)}]),
cc:new Os([3],[function(O,x){_.yW(O,51,x)}]),
ci:new Os([3],[function(O,x){_.yW(O,32,x)}]),
ckm:new Os([3],[function(O,x){_.yW(O,104,x)}]),
cp:new Os([0],[function(O,x){_.qi(O,92,x)}]),
cr:new Os([3],[function(O,x){_.yW(O,108,x)}]),
cv:new Os([0],[function(O,x){_.qi(O,94,x)}]),
d:new Os([3],[function(O,x){_.yW(O,3,x)}]),
dc:new Os([5],[function(O,x){_.mO(O,99,x)}]),
df:new Os([3],[function(O,x){_.yW(O,80,x)}]),
dv:new Os([3],[function(O,x){_.yW(O,90,x)}]),
e:new Os([0],[function(O,x){_.qi(O,15,x)}]),
em:new Os([0],[function(O,x){_.qi(O,107,x)}]),
f:new Os([4],[function(O,x){_.mO(O,16,x)}]),
fg:new Os([3],[function(O,x){_.yW(O,34,x)}]),
fh:new Os([3],[function(O,x){_.yW(O,30,x)}]),
fm:new Os([3],[function(O,x){_.yW(O,84,x)}]),
fo:new Os([2],[function(O,x){_.EY(O,79,_.wN(x))}]),
ft:new Os([3],[function(O,x){_.yW(O,50,x)}]),
fv:new Os([3],[function(O,x){_.yW(O,31,x)}]),
g:new Os([3],[function(O,x){_.yW(O,14,x)}]),
gce:new Os([4],[function(O,x){_.mO(O,112,x)}]),
gd:new Os([3],[function(O,x){_.yW(O,83,x)}]),
gm:new Os([3],[function(O,x){_.yW(O,105,x)}]),
h:new Os([3,0],[function(O,x){_.yW(O,4,x)},
function(O,x){_.qi(O,13,x)}]),
i:new Os([3],[function(O,x){_.yW(O,22,x)}]),
ic:new Os([0],[function(O,x){_.qi(O,71,x)}]),
id:new Os([3],[function(O,x){_.yW(O,70,x)}]),
il:new Os([3],[function(O,x){_.yW(O,96,x)}]),
ip:new Os([3],[function(O,x){_.yW(O,54,x)}]),
iv:new Os([0],[function(O,x){_.WH(O,75,x)}]),
j:new Os([1],[function(O,x){x=x==null?x:k1e(x);_.EY(O,29,x)}]),
k:new Os([3,0],[function(O,x){_.yW(O,17,x)},
function(O,x){_.qi(O,42,x)}]),
l:new Os([0],[function(O,x){_.qi(O,44,x)}]),
lf:new Os([3],[function(O,x){_.yW(O,65,x)}]),
lo:new Os([3],[function(O,x){_.yW(O,97,x)}]),
m:new Os([0],[function(O,x){_.qi(O,63,x)}]),
md:new Os([3],[function(O,x){_.yW(O,91,x)}]),
mm:new Os([4],[function(O,x){_.mO(O,81,x)}]),
mo:new Os([3],[function(O,x){_.yW(O,73,x)}]),
mp:new Os([0],[function(O,x){_.qi(O,115,x)}]),
mv:new Os([3],[function(O,x){_.yW(O,66,x)}]),
n:new Os([3],[function(O,x){O.setCenterCrop(x)}]),
nc:new Os([3],[function(O,x){_.yW(O,55,x)}]),
nd:new Os([3],[function(O,x){_.yW(O,53,x)}]),
ng:new Os([3],[function(O,x){_.yW(O,95,x)}]),
ngm:new Os([3],[function(O,x){_.yW(O,106,x)}]),
no:new Os([3],[function(O,x){_.yW(O,37,x)}]),
ns:new Os([3],[function(O,x){_.yW(O,40,x)}]),
nt0:new Os([4],[function(O,x){_.mO(O,36,x)}]),
ntm:new Os([3],[function(O,x){_.yW(O,114,x)}]),
nu:new Os([3],[function(O,x){_.yW(O,46,x)}]),
nw:new Os([3],[function(O,x){_.yW(O,48,x)}]),
o:new Os([1,3],[function(O,x){x=x==null?x:k1e(x);_.EY(O,7,x)},
function(O,x){_.yW(O,27,x)}]),
p:new Os([3,0],[function(O,x){_.yW(O,19,x)},
function(O,x){_.qi(O,43,x)}]),
pa:new Os([3],[function(O,x){_.yW(O,61,x)}]),
pc:new Os([0],[function(O,x){_.qi(O,88,x)}]),
pd:new Os([3],[function(O,x){_.yW(O,60,x)}]),
pf:new Os([3],[function(O,x){_.yW(O,67,x)}]),
pg:new Os([3],[function(O,x){_.yW(O,72,x)}]),
pi:new Os([2],[function(O,x){_.EY(O,76,_.wN(x))}]),
pp:new Os([3],[function(O,x){_.yW(O,52,x)}]),
pt:new Os([4],[function(O,x){_.mO(O,111,x)}]),
q:new Os([4],[function(O,x){_.mO(O,28,x)}]),
r:new Os([3,0],[function(O,x){_.yW(O,6,x)},
function(O,x){_.qi(O,26,x)}]),
ra:new Os([3],[function(O,x){_.yW(O,103,x)}]),
rf:new Os([3],[function(O,x){_.yW(O,100,x)}]),
rg:new Os([3],[function(O,x){_.yW(O,59,x)}]),
rh:new Os([3],[function(O,x){_.yW(O,49,x)}]),
rj:new Os([3],[function(O,x){_.yW(O,57,x)}]),
ro:new Os([2],[function(O,x){_.EY(O,78,_.wN(x))}]),
rp:new Os([3],[function(O,x){_.yW(O,58,x)}]),
rw:new Os([3],[function(O,x){_.yW(O,35,x)}]),
rwa:new Os([3],[function(O,x){_.yW(O,64,x)}]),
rwu:new Os([3],[function(O,x){_.yW(O,41,x)}]),
s:new Os([3,0],[function(O,x){_.yW(O,33,x)},
function(O,x){O.setSize(x)}]),
sb:new Os([0],[function(O,x){_.qi(O,110,x)}]),
sc:new Os([0],[function(O,x){_.qi(O,89,x)}]),
sg:new Os([3],[function(O,x){_.yW(O,82,x)}]),
sl:new Os([0],[function(O,x){_.qi(O,109,x)}]),
sm:new Os([3],[function(O,x){_.yW(O,93,x)}]),
t:new Os([4],[function(O,x){O.setToken(x)}]),
tm:new Os([3],[function(O,x){_.yW(O,113,x)}]),
u:new Os([3],[function(O,x){_.yW(O,18,x)}]),
ut:new Os([3],[function(O,x){_.yW(O,45,x)}]),
v:new Os([0],[function(O,x){_.qi(O,62,x)}]),
vb:new Os([0],[function(O,x){_.WH(O,68,x)}]),
vf:new Os([4],[function(O,x){_.mO(O,102,x)}]),
vl:new Os([0],[function(O,x){_.WH(O,69,x)}]),
vm:new Os([3],[function(O,x){_.yW(O,98,x)}]),
w:new Os([0],[function(O,x){_.qi(O,12,x)}]),
x:new Os([0],[function(O,x){_.qi(O,9,x)}]),
y:new Os([0],[function(O,x){_.qi(O,10,x)}]),
ya:new Os([2],[function(O,x){_.EY(O,77,_.wN(x))}]),
z:new Os([0],[function(O,x){_.qi(O,11,x)}])};
xRY.prototype.parse=function(O){var x=new vo$,e=new vo$;if(O=="")O=!0;else{O=O.split("-");for(var l=!0,C=0;C<O.length;C++){var Q=O[C];if(Q.length==0)l=!1;else{var L=Q,k=!1;var M=L;var G=L.charAt(0);G!=G.toLowerCase()&&(k=!0,M=L.charAt(0).toLowerCase()+L.substring(1));var X=jqT;for(G=1;G<=M.length;++G){var y=X,Z=M.substring(0,G);if(Z.length==0?y.isEmpty():!JEX(y,Z))break}M=G==1?null:(M=X.get(M.substring(0,G-1)))?{option:L.substring(0,G-1),value:L.substring(G-1),signed:k,attributes:M}:null;if(M){L=
[];k=[];G=!1;for(X=0;X<M.attributes.types.length;X++){y=M.attributes.types[X];var E=M.value;Z=C;if(M.signed&&y==1)for(var P=E.length;P<12&&Z<O.length-1;)E+="-"+O[Z+1],P=E.length,++Z;else if(y==2)for(;Z<O.length-1&&O[Z+1].match(/^[\d\.]/);)E+="-"+O[Z+1],++Z;P=M.attributes.setters[X];E=gow(this,y)(M.option,E,x,e,P);if(E===null){G=!0;C=Z;break}else L.push(y),k.push(E)}if(!G)for(M=0;M<k.length;M++)X=L[M],E=k[M],$su(this,X)(Q,E);l=l&&G}else l=!1}}O=l}return new iYT(x,e,O)};
var Oou=function(O,x,e,l,C,Q){C(e,x);O=O.charAt(0);Q=Q(O==O.toUpperCase());C(l,Q)};
_.b=xRY.prototype;_.b.parseAndSetIntOption_=function(O,x,e,l,C){if(x=="")return 0;isFinite(x)&&(x=String(x));x=typeof x==="string"?/^\s*-?0x/i.test(x)?parseInt(x,16):parseInt(x,10):NaN;if(isNaN(x))return 1;Oou(O,x,e,l,C,Number);return null};
_.b.logIntParseError_=function(){};
_.b.parseAndSetFloatOption_=function(O,x,e,l,C){if(x=="")return 0;var Q=Number(x);x=Q==0&&_.AL(x)?NaN:Q;if(isNaN(x))return 1;Oou(O,x,e,l,C,Number);return null};
_.b.logFloatParseError_=function(){};
_.b.parseAndSetBoolOption_=function(O,x,e,l,C){if(x!="")return 2;Oou(O,!0,e,l,C,Boolean);return null};
_.b.logBoolParseError_=function(){};
_.b.parseAndSetStringOption_=function(O,x,e,l,C){if(x=="")return 0;Oou(O,x,e,l,C,function(Q){return Q?"1":""});
return null};
_.b.logStringParseError_=function(){};
_.b.parseAndSetUint64Base64Option_=function(O,x,e,l,C){if(x=="")return 0;Oou(O,x,e,l,C,function(Q){return Q?1:0});
return null};
var gow=function(O,x){switch(x){case 0:return(0,_.z8)(O.parseAndSetIntOption_,O);case 2:return(0,_.z8)(O.parseAndSetFloatOption_,O);case 3:return(0,_.z8)(O.parseAndSetBoolOption_,O);case 4:return(0,_.z8)(O.parseAndSetStringOption_,O);case 1:return(0,_.z8)(O.parseAndSetUint64Base64Option_,O);default:return function(){}}},$su=function(O,x){switch(x){case 0:return(0,_.z8)(O.logIntParseError_,O);
case 2:return(0,_.z8)(O.logFloatParseError_,O);case 3:return(0,_.z8)(O.logBoolParseError_,O);case 4:case 1:return(0,_.z8)(O.logStringParseError_,O);default:return function(){}}},iYT=function(O,x,e){this.valueProto_=O;
this.signatureFlagProto_=x;this.JSC$19821_valid_=e};
iYT.prototype.isValid=function(){return this.JSC$19821_valid_};var gzO=function(O){this.JSC$19822_parser_=null;this.JSC$19822_components_=[];this.JSC$19822_parsedOptions_=null;xKQ(this,O)},emY=function(O){O.JSC$19822_parser_==null&&(O.JSC$19822_parser_=new xRY);
return O.JSC$19822_parser_},xKQ=function(O,x){O.JSC$19822_parsedOptions_=x?typeof x==="string"?emY(O).parse(x):x:emY(O).parse("")},xJ=function(O,x){return O==x?!1:!0};
_.b=gzO.prototype;_.b.JSC$19824_setCrop=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,_.GB(e,2),_.GB(x.signatureFlagProto_,2))&&_.yW(e,2,O);return this};
_.b.JSC$19824_setCircleCrop=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,Fd(e,51),Fd(x.signatureFlagProto_,51))&&_.yW(e,51,O);return this};
_.b.JSC$19824_setImageCrop=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,Fd(e,32),Fd(x.signatureFlagProto_,32))&&_.yW(e,32,O);return this};
_.b.JSC$19824_setHeight=function(O){var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,e.getHeight(),x.signatureFlagProto_.getHeight())&&_.qi(e,13,O);return this};
_.b.setCenterCrop=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,_.GB(e,20),_.GB(x.signatureFlagProto_,20))&&e.setCenterCrop(O);return this};
_.b.JSC$19824_setSmartCrop=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,_.GB(e,19),_.GB(x.signatureFlagProto_,19))&&_.yW(e,19,O);return this};
_.b.JSC$19824_setPad=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,Fd(e,60),Fd(x.signatureFlagProto_,60))&&_.yW(e,60,O);return this};
_.b.JSC$19824_setSmartCropUseFace=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,_.GB(e,67),_.GB(x.signatureFlagProto_,67))&&_.yW(e,67,O);return this};
_.b.JSC$19824_setSmartCropNoClip=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,_.GB(e,52),_.GB(x.signatureFlagProto_,52))&&_.yW(e,52,O);return this};
_.b.setSize=function(O){var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,e.getSize(),x.signatureFlagProto_.getSize())&&e.setSize(O);return this};
_.b.setToken=function(O){O=O||void 0;var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,e.getToken(),x.signatureFlagProto_.getToken())&&e.setToken(O);return this};
_.b.JSC$19824_setWidth=function(O){var x=this.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(O,e.getWidth(),x.signatureFlagProto_.getWidth())&&_.qi(e,12,O);return this};
_.b.clearOptions=function(){xKQ(this,"");return this};
_.b.build=function(){this.JSC$19822_components_.length=0;var O=this.JSC$19822_parsedOptions_,x=O.valueProto_;O=O.signatureFlagProto_;ek(this,"s",x.getSize(),O.getSize());ek(this,"w",x.getWidth(),O.getWidth());l1(this,"c",_.GB(x,2),_.GB(O,2));l1(this,"d",_.GB(x,3),_.GB(O,3));ek(this,"h",x.getHeight(),O.getHeight());l1(this,"s",Fd(x,33),Fd(O,33));l1(this,"h",x.getHtml(),O.getHtml());l1(this,"p",_.GB(x,19),_.GB(O,19));l1(this,"pp",_.GB(x,52),_.GB(O,52));l1(this,"pf",_.GB(x,67),_.GB(O,67));l1(this,"n",
_.GB(x,20),_.GB(O,20));ek(this,"r",Xd(x,26),Xd(O,26));l1(this,"r",_.GB(x,6),_.GB(O,6));l1(this,"o",Fd(x,27),Fd(O,27));var e=_.DO(x,7,_.lm);CP(this,"o",e,_.DO(O,7,_.lm));e=_.DO(x,29,_.lm);CP(this,"j",e,_.DO(O,29,_.lm));ek(this,"x",Xd(x,9),Xd(O,9));ek(this,"y",Xd(x,10),Xd(O,10));ek(this,"z",Xd(x,11),Xd(O,11));l1(this,"g",_.GB(x,14),_.GB(O,14));ek(this,"e",Xd(x,15),Xd(O,15));CP(this,"f",_.pf(x,16),_.pf(O,16));l1(this,"k",Fd(x,17),Fd(O,17));l1(this,"u",Fd(x,18),!0);l1(this,"ut",Fd(x,45),!0);l1(this,"i",
Fd(x,22),!0);l1(this,"a",Fd(x,21),Fd(O,21));l1(this,"b",_.GB(x,23),_.GB(O,23));ek(this,"b",Xd(x,38),Xd(O,38));ek(this,"c",Xd(x,39),Xd(O,39),16,8);CP(this,"q",_.pf(x,28),_.pf(O,28));l1(this,"fh",Fd(x,30),Fd(O,30));l1(this,"fv",Fd(x,31),Fd(O,31));l1(this,"fg",_.GB(x,34),_.GB(O,34));l1(this,"ci",Fd(x,32),Fd(O,32));CP(this,"t",x.getToken(),O.getToken());CP(this,"nt0",_.pf(x,36),_.pf(O,36));l1(this,"rw",_.GB(x,35),_.GB(O,35));l1(this,"rwu",_.GB(x,41),_.GB(O,41));l1(this,"rwa",_.GB(x,64),_.GB(O,64));l1(this,
"nw",_.GB(x,48),_.GB(O,48));l1(this,"rh",_.GB(x,49),_.GB(O,49));l1(this,"no",_.GB(x,37),_.GB(O,37));l1(this,"ns",Fd(x,40),Fd(O,40));ek(this,"k",Xd(x,42),Xd(O,42));ek(this,"p",Xd(x,43),Xd(O,43));ek(this,"l",Xd(x,44),Xd(O,44));ek(this,"v",Xd(x,62),Xd(O,62));l1(this,"nu",Fd(x,46),Fd(O,46));l1(this,"ft",Fd(x,50),Fd(O,50));l1(this,"cc",Fd(x,51),Fd(O,51));l1(this,"nd",Fd(x,53),Fd(O,53));l1(this,"ip",Fd(x,54),Fd(O,54));l1(this,"nc",Fd(x,55),Fd(O,55));ek(this,"a",Xd(x,56),Xd(O,56));l1(this,"rj",Fd(x,57),
Fd(O,57));l1(this,"rp",Fd(x,58),Fd(O,58));l1(this,"rg",Fd(x,59),Fd(O,59));l1(this,"pd",Fd(x,60),Fd(O,60));l1(this,"pa",Fd(x,61),Fd(O,61));ek(this,"m",Xd(x,63),Xd(O,63));ek(this,"vb",o5(x,68),o5(O,68));ek(this,"vl",o5(x,69),o5(O,69));l1(this,"lf",Fd(x,65),Fd(O,65));l1(this,"mv",Fd(x,66),Fd(O,66));l1(this,"id",Fd(x,70),Fd(O,70));ek(this,"ic",Xd(x,71),!0);l1(this,"pg",_.GB(x,72),_.GB(O,72));l1(this,"mo",Fd(x,73),Fd(O,73));l1(this,"al",Fd(x,74),Fd(O,74));ek(this,"iv",o5(x,75),o5(O,75));ek(this,"pi",ym(x,
76),ym(O,76));ek(this,"ya",ym(x,77),ym(O,77));ek(this,"ro",ym(x,78),ym(O,78));ek(this,"fo",ym(x,79),ym(O,79));l1(this,"df",Fd(x,80),Fd(O,80));CP(this,"mm",_.pf(x,81),_.pf(O,81));l1(this,"sg",Fd(x,82),Fd(O,82));l1(this,"gd",Fd(x,83),Fd(O,83));l1(this,"fm",Fd(x,84),Fd(O,84));ek(this,"ba",Xd(x,85),Xd(O,85));ek(this,"br",Xd(x,86),Xd(O,86));ek(this,"bc",x.getBackgroundColor(),O.getBackgroundColor(),16,8);ek(this,"pc",Xd(x,88),Xd(O,88),16,8);ek(this,"sc",Xd(x,89),Xd(O,89),16,8);l1(this,"dv",Fd(x,90),Fd(O,
90));l1(this,"md",Fd(x,91),Fd(O,91));ek(this,"cp",Xd(x,92),Xd(O,92));l1(this,"sm",Fd(x,93),Fd(O,93));ek(this,"cv",Xd(x,94),Xd(O,94));l1(this,"ng",Fd(x,95),Fd(O,95));l1(this,"il",Fd(x,96),Fd(O,96));l1(this,"lo",Fd(x,97),Fd(O,97));l1(this,"vm",Fd(x,98),Fd(O,98));CP(this,"dc",_.pf(x,99),_.pf(O,99));l1(this,"rf",Fd(x,100),Fd(O,100));CP(this,"vf",_.pf(x,102),_.pf(O,102));l1(this,"ra",_.GB(x,103),_.GB(O,103));l1(this,"ckm",Fd(x,104),Fd(O,104));l1(this,"gm",Fd(x,105),Fd(O,105));l1(this,"ngm",Fd(x,106),Fd(O,
106));ek(this,"em",Xd(x,107),Xd(O,107));l1(this,"cr",Fd(x,108),Fd(O,108));ek(this,"sl",x.getStoryboardLevel(),O.getStoryboardLevel());ek(this,"sb",Xd(x,110),Xd(O,110));CP(this,"pt",_.pf(x,111),_.pf(O,111));CP(this,"gce",_.pf(x,112),_.pf(O,112));l1(this,"tm",Fd(x,113),Fd(O,113));l1(this,"ntm",Fd(x,114),Fd(O,114));ek(this,"mp",Xd(x,115),Xd(O,115));return this.JSC$19822_components_.join("-")};
var ek=function(O,x,e,l,C,Q){if(e!=null){var L=C==void 0||C!=10&&C!=16?10:C;e=Number(e).toString(L);C=new pZ4;C.append(L==16?"0x":"");L=C.append;Q==void 0?Q="":(Q-=e.length,Q=Q<=0?"":(0,_.vyL)("0",Q));L.call(C,Q);C.append(e);lv4(O,x,C.toString(),!!Number(l))}},l1=function(O,x,e,l){e&&lv4(O,x,"",!!l)},CP=function(O,x,e,l){e&&lv4(O,x,String(e),!!Number(l))},lv4=function(O,x,e,l){l&&(x=x.charAt(0).toUpperCase()+x.substring(1));
O.JSC$19822_components_.push(x+e)};_.fI(XO,gzO);_.b=XO.prototype;_.b.JSC$19824_setCrop=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setCrop.call(this,O)};
_.b.JSC$19824_setHeight=function(O){O=O==null||O<0?void 0:O;O!=null&&this.setSize();return XO.superClass_.JSC$19824_setHeight.call(this,O)};
_.b.JSC$19824_setImageCrop=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setImageCrop.call(this,O)};
_.b.JSC$19824_setCircleCrop=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setCircleCrop.call(this,O)};
_.b.setSize=function(O){_.w7(O)&&(O=Math.max(O.width,O.height));O=O==null||O<0?void 0:O;O!=null&&(this.JSC$19824_setWidth(),this.JSC$19824_setHeight());return XO.superClass_.setSize.call(this,O)};
_.b.JSC$19824_setSmartCrop=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setSmartCrop.call(this,O)};
_.b.JSC$19824_setSmartCropNoClip=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setSmartCropNoClip.call(this,O)};
_.b.JSC$19824_setSmartCropUseFace=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setSmartCropUseFace.call(this,O)};
_.b.setCenterCrop=function(O){O&&Qv(this);return XO.superClass_.setCenterCrop.call(this,O)};
_.b.JSC$19824_setPad=function(O){O&&Qv(this);return XO.superClass_.JSC$19824_setPad.call(this,O)};
_.b.JSC$19824_setWidth=function(O){O=O==null||O<0?void 0:O;O!=null&&this.setSize();return XO.superClass_.JSC$19824_setWidth.call(this,O)};
var CQu=function(O){O.clearOptions();var x=O.JSC$19822_parsedOptions_,e=x.valueProto_;xJ(!0,_.GB(e,3),_.GB(x.signatureFlagProto_,3))&&_.yW(e,3,!0);return O},Qv=function(O){O.setCenterCrop();
O.JSC$19824_setCircleCrop();O.JSC$19824_setCrop();O.JSC$19824_setImageCrop();O.JSC$19824_setPad();O.JSC$19824_setSmartCrop();O.JSC$19824_setSmartCropNoClip();O.JSC$19824_setSmartCropUseFace()};
XO.prototype.build=function(){var O=this.JSC$19822_parsedOptions_.valueProto_;Fd(O,18)||Fd(O,45)?O.getSize()||this.setSize(0):(O=this.JSC$19822_parsedOptions_.valueProto_,O.getSize()||O.getWidth()||O.getHeight()||(this.setSize(),this.JSC$19824_setHeight(),this.JSC$19824_setWidth(),Qv(this)));return XO.superClass_.build.call(this)};var Q7L=/^[^\/]*\/\//,bow=function(O,x){x=x===void 0?!1:x;this.original_=O;this.originalPrefix_="";(O=this.original_.match(Q7L))&&O[0]?(this.originalPrefix_=O[0],O=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):O="http://"+this.original_;this.uri_=_.xO(O,!0);this.isFreeformUrl_=x;this.JSC$19828_valid_=!0;this.obfuscated_=!1},TxQ=function(O,x){O.JSC$19830_pathPrefix_=O.JSC$19830_pathPrefix_?O.JSC$19830_pathPrefix_+("/"+x):x},b1=function(O){if(O.JSC$19830_components_==
void 0){var x=O.uri_.getPath().substring(1);
O.JSC$19830_pathPrefix_=null;if(O.isFreeformUrl_){O.JSC$19830_components_=[];if((x.match(/=/g)||[]).length>1)return O.JSC$19828_valid_=!1,O.JSC$19830_components_;var e=x.indexOf("=");e!=-1?(O.JSC$19830_components_.push(x.substr(0,e)),O.JSC$19830_components_.push(x.substr(e+1))):O.JSC$19830_components_.push(x);return O.JSC$19830_components_}O.JSC$19830_components_=x.split("/");x=O.JSC$19830_components_.length;x>2&&O.JSC$19830_components_[0]=="u"&&(TxQ(O,O.JSC$19830_components_[0]+"/"+O.JSC$19830_components_[1]),
O.JSC$19830_components_.shift(),O.JSC$19830_components_.shift(),x-=2);if(x==0||x==4||x>7)return O.JSC$19828_valid_=!1,O.JSC$19830_components_;if(x==2)TxQ(O,O.JSC$19830_components_[0]);else if(O.JSC$19830_components_[0]=="image")TxQ(O,O.JSC$19830_components_[0]);else if(x==7||x==3)return O.JSC$19828_valid_=!1,O.JSC$19830_components_;if(x<=3){O.obfuscated_=!0;x==3&&(TxQ(O,O.JSC$19830_components_[1]),O.JSC$19830_components_.shift(),--x);--x;e=O.JSC$19830_components_[x];var l=e.indexOf("=");l!=-1&&(O.JSC$19830_components_[x]=
e.substr(0,l),O.JSC$19830_components_.push(e.substr(l+1)))}}return O.JSC$19830_components_};
bow.prototype.isValid=function(){b1(this);return this.JSC$19828_valid_};
bow.prototype.isObfuscated=function(){b1(this);return this.obfuscated_};
var LwT=function(O){b1(O);return O.isFreeformUrl_},TN=function(O){b1(O);
O.JSC$19830_pathPrefix_==void 0&&(O.JSC$19830_pathPrefix_=null);return O.JSC$19830_pathPrefix_},kjO=function(O){switch(b1(O).length){case 7:return!0;
case 6:return TN(O)==null;case 5:return!1;case 3:return!0;case 2:return TN(O)==null;case 1:return!1;default:return!1}},LP=function(O,x){if(LwT(O))a:{switch(x){case 7:x=0;
break;case 4:if(!kjO(O)){O=null;break a}x=1;break;default:O=null;break a}O=b1(O)[x]}else if(O.isObfuscated())a:{var e=TN(O)!=null?1:0;switch(x){case 6:x=e;break;case 4:if(!kjO(O)){O=null;break a}x=1+e;break;default:O=null;break a}O=b1(O)[x]}else a:{e=TN(O)!=null?1:0;switch(x){case 0:x=e;break;case 1:x=1+e;break;case 2:x=2+e;break;case 3:x=3+e;break;case 4:if(!kjO(O)){O=null;break a}x=4+e;break;case 5:x=kjO(O)?1:0;x=4+e+x;break;default:O=null;break a}O=b1(O)[x]}return O};
bow.prototype.getOptions=function(){this.options_==void 0&&(this.options_=LP(this,4));return this.options_};var O5Q=function(){};
O5Q.prototype.parse=function(O,x){return new $5L(O,x===void 0?!1:x)};
var $5L=function(O,x){bow.call(this,O,x===void 0?!1:x)};
_.c($5L,bow);_.fI(oQ,XO);var i7u;oQ.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
oQ.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var O=oQ.superClass_.build.call(this),x=[];TN(this.parsedImageUrl_)!=null&&x.push(TN(this.parsedImageUrl_));var e=LwT(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var l=this.parsedImageUrl_;l.obfuscatedData_==void 0&&(l.obfuscatedData_=LP(l,6));x.push(l.obfuscatedData_+(O?"="+O:""))}else if(e){l=x.push;var C=this.parsedImageUrl_;C.freeformUrlPath_===void 0&&(C.freeformUrlPath_=LP(C,
7));l.call(x,C.freeformUrlPath_);O&&x.push(O)}else l=x.push,C=this.parsedImageUrl_,C.obfuscatedGaiaId_==void 0&&(C.obfuscatedGaiaId_=LP(C,0)),l.call(x,C.obfuscatedGaiaId_),l=x.push,C=this.parsedImageUrl_,C.photoId_==void 0&&(C.photoId_=LP(C,1)),l.call(x,C.photoId_),l=x.push,C=this.parsedImageUrl_,C.imageVersion_==void 0&&(C.imageVersion_=LP(C,2)),l.call(x,C.imageVersion_),l=x.push,C=this.parsedImageUrl_,C.signature_==void 0&&(C.signature_=LP(C,3)),l.call(x,C.signature_),O&&x.push(O),O=x.push,l=this.parsedImageUrl_,
l.filename_==void 0&&(l.filename_=LP(l,5)),O.call(x,l.filename_);x=e?x.join("="):x.join("/");x=_.xO(this.protocolPrefix_+this.JSC$19836_domain_+"/"+x+(this.JSC$19836_query_?"?"+this.JSC$19836_query_:"")).toString();x.startsWith("%3a//")&&(x=x.replace("%3a//","://"));return x};var Axp=_.zo(["viewBox"]),MoO=_.zo(["width"]),DK$=_.zo(["height"]),GjQ=_.zo(["fill"]),Fwp=_.zo(["id"]),Xu$=_.zo(["x"]),oj4=_.zo(["y"]);ej4.prototype.getLength=function(){return this.parsedData.length};
ej4.prototype.write=function(O){for(var x=0,e=this.parsedData.length;x<e;x++)O.put(this.parsedData[x],8)};
var kAL=function(O,x){var e=new ej4(x);O.dataList.push(e);e=O.errorCorrectLevel;var l=1,C=encodeURI(x).toString().replace(/%[0-9a-fA-F]{2}/g,"a");x=C.length+(C.length!=x?3:0);C=0;for(var Q=kJ.length;C<=Q;C++){var L=0;switch(e){case 1:L=kJ[C][0];break;case 0:L=kJ[C][1];break;case 3:L=kJ[C][2];break;case 2:L=kJ[C][3]}if(x<=L)break;else l++}if(l>kJ.length)throw Error("Nk");O.typeNumber=l;O.dataCache=null};
lcL.prototype.isDark=function(O,x){if(O<0||this.moduleCount<=O||x<0||this.moduleCount<=x)throw Error("Fk`"+O+"`"+x);return this.modules[O][x]};
for(var AAY=function(O,x,e){O.moduleCount=O.typeNumber*4+17;O.modules=Array(O.moduleCount);for(var l=0;l<O.moduleCount;l++){O.modules[l]=Array(O.moduleCount);for(var C=0;C<O.moduleCount;C++)O.modules[l][C]=null}yxw(O,0,0);yxw(O,O.moduleCount-7,0);yxw(O,0,O.moduleCount-7);l=Zow[O.typeNumber-1];for(C=0;C<l.length;C++)for(var Q=0;Q<l.length;Q++){var L=l[C],k=l[Q];if(O.modules[L][k]==null)for(var M=-2;M<=2;M++)for(var G=-2;G<=2;G++)O.modules[L+M][k+G]=M==-2||M==2||G==-2||G==2||M==0&&G==0?!0:!1}for(l=
8;l<O.moduleCount-8;l++)O.modules[l][6]==null&&(O.modules[l][6]=l%2==0);for(l=8;l<O.moduleCount-8;l++)O.modules[6][l]==null&&(O.modules[6][l]=l%2==0);l=O.errorCorrectLevel<<3|e;for(C=l<<10;Am(C)-Am(1335)>=0;)C^=1335<<Am(C)-Am(1335);l=(l<<10|C)^21522;for(C=0;C<15;C++)Q=!x&&(l>>C&1)==1,C<6?O.modules[C][8]=Q:C<8?O.modules[C+1][8]=Q:O.modules[O.moduleCount-15+C][8]=Q;for(C=0;C<15;C++)Q=!x&&(l>>C&1)==1,C<8?O.modules[8][O.moduleCount-C-1]=Q:C<9?O.modules[8][15-C-1+1]=Q:O.modules[8][15-C-1]=Q;O.modules[O.moduleCount-
8][8]=!x;if(O.typeNumber>=7){l=O.typeNumber;for(C=l<<12;Am(C)-Am(7973)>=0;)C^=7973<<Am(C)-Am(7973);l=l<<12|C;for(C=0;C<18;C++)Q=!x&&(l>>C&1)==1,O.modules[Math.floor(C/3)][C%3+O.moduleCount-8-3]=Q;for(C=0;C<18;C++)Q=!x&&(l>>C&1)==1,O.modules[C%3+O.moduleCount-8-3][Math.floor(C/3)]=Q}if(O.dataCache==null){C=O.typeNumber;Q=O.dataList;x=O.errorCorrectLevel;l=EjT(C,x);if(l==void 0)throw Error("Mk`"+C+"`"+x);L=l.length/3;x=[];for(k=0;k<L;k++){M=l[k*3];G=l[k*3+1];for(var X=l[k*3+2],y=0;y<M;y++)x.push(new Cwp(G,
X))}l=new QtX;for(L=0;L<Q.length;L++)k=Q[L],l.put(k.mode,4),l.put(k.getLength(),toT(k.mode,C)),k.write(l);for(L=C=0;L<x.length;L++)C+=x[L].dataCount;if(l.length>C*8)throw Error("Gk`"+l.length+"`"+C*8);for(l.length+4<=C*8&&l.put(0,4);l.length%8!=0;)q7X(l,!1);for(;!(l.length>=C*8);){l.put(236,8);if(l.length>=C*8)break;l.put(17,8)}Q=C=G=0;L=Array(x.length);k=Array(x.length);for(M=0;M<x.length;M++){y=x[M].dataCount;var Z=x[M].totalCount-y;C=Math.max(C,y);Q=Math.max(Q,Z);L[M]=Array(y);for(X=0;X<L[M].length;X++)L[M][X]=
255&l.buffer[X+G];G+=y;X=Z;y=new yk([1],0);for(Z=0;Z<X;Z++)y=y.multiply(new yk([1,PQL(Z)],0));X=y;y=(new yk(L[M],X.getLength()-1)).mod(X);k[M]=Array(X.getLength()-1);for(X=0;X<k[M].length;X++)Z=X+y.getLength()-k[M].length,k[M][X]=Z>=0?y.get(Z):0}for(X=l=0;X<x.length;X++)l+=x[X].totalCount;l=Array(l);for(X=G=0;X<C;X++)for(M=0;M<x.length;M++)X<L[M].length&&(l[G++]=L[M][X]);for(X=0;X<Q;X++)for(M=0;M<x.length;M++)X<k[M].length&&(l[G++]=k[M][X]);O.dataCache=l}x=O.dataCache;l=-1;C=O.moduleCount-1;Q=7;L=
0;for(k=O.moduleCount-1;k>0;k-=2)for(k==6&&k--;;){for(M=0;M<2;M++)O.modules[C][k-M]==null&&(G=!1,L<x.length&&(G=(x[L]>>>Q&1)==1),cxO(e,C,k-M)&&(G=!G),O.modules[C][k-M]=G,Q--,Q==-1&&(L++,Q=7));C+=l;if(C<0||O.moduleCount<=C){C-=l;l=-l;break}}},yxw=function(O,x,e){for(var l=-1;l<=7;l++)if(!(x+l<=-1||O.moduleCount<=x+l))for(var C=-1;C<=7;C++)e+C<=-1||O.moduleCount<=e+C||(O.modules[x+l][e+C]=0<=l&&l<=6&&(C==0||C==6)||0<=C&&C<=6&&(l==0||l==6)||2<=l&&l<=4&&2<=C&&C<=4?!0:!1)},MRQ=function(O){for(var x=0,
e=0,l=0;l<8;l++){AAY(O,!0,l);
var C=O;for(var Q=C.moduleCount,L=0,k=0;k<Q;k++)for(var M=0;M<Q;M++){for(var G=0,X=C.isDark(k,M),y=-1;y<=1;y++)if(!(k+y<0||Q<=k+y))for(var Z=-1;Z<=1;Z++)M+Z<0||Q<=M+Z||(y!=0||Z!=0)&&X==C.isDark(k+y,M+Z)&&G++;G>5&&(L+=3+G-5)}for(k=0;k<Q-1;k++)for(M=0;M<Q-1;M++)if(G=0,C.isDark(k,M)&&G++,C.isDark(k+1,M)&&G++,C.isDark(k,M+1)&&G++,C.isDark(k+1,M+1)&&G++,G==0||G==4)L+=3;for(k=0;k<Q;k++)for(M=0;M<Q-6;M++)C.isDark(k,M)&&!C.isDark(k,M+1)&&C.isDark(k,M+2)&&C.isDark(k,M+3)&&C.isDark(k,M+4)&&!C.isDark(k,M+5)&&
C.isDark(k,M+6)&&(L+=40);for(M=0;M<Q;M++)for(k=0;k<Q-6;k++)C.isDark(k,M)&&!C.isDark(k+1,M)&&C.isDark(k+2,M)&&C.isDark(k+3,M)&&C.isDark(k+4,M)&&!C.isDark(k+5,M)&&C.isDark(k+6,M)&&(L+=40);for(M=G=0;M<Q;M++)for(k=0;k<Q;k++)C.isDark(k,M)&&G++;C=L+=Math.abs(100*G/Q/Q-50)/5*10;if(l==0||x>C)x=C,e=l}return e},Zow=[[],
[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]],Am=function(O){for(var x=0;O!=0;)x++,O>>>=1;return x},cxO=function(O,x,e){switch(O){case 0:return(x+e)%2==0;
case 1:return x%2==0;case 2:return e%3==0;case 3:return(x+e)%3==0;case 4:return(Math.floor(x/2)+Math.floor(e/3))%2==0;case 5:return x*e%2+x*e%3==0;case 6:return(x*e%2+x*e%3)%2==0;case 7:return(x*e%3+(x+e)%2)%2==0;default:throw Error("Hk`"+O);}},toT=function(O,x){if(1<=x&&x<10)switch(O){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+O);}else if(x<27)switch(O){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+O);}else if(x<41)switch(O){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+O);}else throw Error("Jk`"+x);},VoY=function(O){if(O<1)throw Error("Kk`"+O);
return Ivw[O]},PQL=function(O){for(;O<0;)O+=255;
for(;O>=256;)O-=255;return Mf[O]},Mf=Array(256),Ivw=Array(256),pu$=0;pu$<8;pu$++)Mf[pu$]=1<<pu$;
for(var DU=8;DU<256;DU++)Mf[DU]=Mf[DU-4]^Mf[DU-5]^Mf[DU-6]^Mf[DU-8];for(var Rm$=0;Rm$<255;Rm$++)Ivw[Mf[Rm$]]=Rm$;yk.prototype.get=function(O){return this.num[O]};
yk.prototype.getLength=function(){return this.num.length};
yk.prototype.multiply=function(O){for(var x=Array(this.getLength()+O.getLength()-1),e=0;e<this.getLength();e++)for(var l=0;l<O.getLength();l++)x[e+l]^=PQL(VoY(this.get(e))+VoY(O.get(l)));return new yk(x,0)};
yk.prototype.mod=function(O){if(this.getLength()-O.getLength()<0)return this;for(var x=VoY(this.get(0))-VoY(O.get(0)),e=Array(this.getLength()),l=0;l<this.getLength();l++)e[l]=this.get(l);for(l=0;l<O.getLength();l++)e[l]^=PQL(VoY(O.get(l))+x);return(new yk(e,0)).mod(O)};
var UKL=[[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]],EjT=function(O,x){switch(x){case 1:return UKL[(O-1)*4];case 0:return UKL[(O-1)*4+1];case 3:return UKL[(O-1)*4+2];case 2:return UKL[(O-1)*4+3]}};
QtX.prototype.get=function(O){return(this.buffer[Math.floor(O/8)]>>>7-O%8&1)==1};
QtX.prototype.put=function(O,x){for(var e=0;e<x;e++)q7X(this,(O>>>x-e-1&1)==1)};
var q7X=function(O,x){var e=Math.floor(O.length/8);O.buffer.length<=e&&O.buffer.push(0);x&&(O.buffer[e]|=128>>>O.length%8);O.length++},kJ=[[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]],L8L=function(){var O=function(x,e){this.JSC$19856__el=x;this.JSC$19856__htOption=e};
O.prototype.draw=function(x){function e(X,y){X=document.createElementNS("http://www.w3.org/2000/svg",X);for(var Z in y)y.hasOwnProperty(Z)&&(Z==="href"?_.muu(X,y[Z]):_.Tt([_.GJ(Axp),_.GJ(MoO),_.GJ(DK$),_.GJ(GjQ),_.GJ(Fwp),_.GJ(Xu$),_.GJ(oj4)],X,Z,y[Z]));return X}
var l=this.JSC$19856__htOption,C=this.JSC$19856__el,Q=x.moduleCount;this.clear();var L=e("svg",{viewBox:"0 0 "+String(Q)+" "+String(Q),width:"100%",height:"100%",fill:l.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});C.appendChild(L);L.appendChild(e("rect",{fill:l.colorLight,width:"100%",height:"100%"}));L.appendChild(e("rect",{fill:l.colorDark,width:"1",height:"1",id:"template"}));for(var k=0;k<Q;k++)for(var M=0;M<Q;M++)if(x.isDark(k,M)){var G=e("use",{x:String(k),y:String(M),href:"#template"});
L.appendChild(G)}};
O.prototype.clear=function(){for(;this.JSC$19856__el.hasChildNodes();)this.JSC$19856__el.removeChild(this.JSC$19856__el.lastChild)};
return O}(),TYe=document.documentElement.tagName.toLowerCase()==="svg"?L8L:typeof CanvasRenderingContext2D!="undefined"?function(){var O=function(x,e){this._bIsPainted=!1;
b5Q();this.JSC$19856__htOption=e;this._elCanvas=document.createElement("canvas");this._elCanvas.width=e.width;this._elCanvas.height=e.height;x.appendChild(this._elCanvas);this.JSC$19856__el=x;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$19856__el.appendChild(this._elImage);this._bSupportDataURI=null};
O.prototype._onMakeImage=function(){var x=this._elCanvas.toDataURL("image/png");this._elImage.src=x;this._elImage.style.display="block";this._elCanvas.style.display="none"};
O.prototype._safeSetDataURI=function(x,e){var l=this;l._fFail=e;l._fSuccess=x;l._bSupportDataURI===null?(x=_.R9("IMG"),e=function(){l._bSupportDataURI=!1;l._fFail&&l._fFail.call(l)},x.onabort=e,x.onerror=e,x.onload=function(){l._bSupportDataURI=!0;
l._fSuccess&&l._fSuccess.call(l)},x.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):l._bSupportDataURI===!0&&l._fSuccess?l._fSuccess.call(l):l._bSupportDataURI===!1&&l._fFail&&l._fFail.call(l)};
O.prototype.draw=function(x){var e=this._oContext,l=this.JSC$19856__htOption,C=x.moduleCount,Q=l.width/C,L=l.height/C,k=Math.round(Q),M=Math.round(L);this._elImage.style.display="none";this.clear();for(var G=0;G<C;G++)for(var X=0;X<C;X++){var y=x.isDark(G,X),Z=X*Q,E=G*L;e.strokeStyle=y?l.colorDark:l.colorLight;e.lineWidth=1;e.fillStyle=y?l.colorDark:l.colorLight;e.fillRect(Z,E,Q,L);e.strokeRect(Math.floor(Z)+.5,Math.floor(E)+.5,k,M);e.strokeRect(Math.ceil(Z)-.5,Math.ceil(E)-.5,k,M)}this._bIsPainted=
!0};
O.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
O.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
O.prototype.round=function(x){return x?Math.floor(x*1E3)/1E3:x};
return O}():function(){var O=function(x,e){this.JSC$19856__el=x;
this.JSC$19856__htOption=e};
O.prototype.draw=function(x){for(var e=this.JSC$19856__htOption,l=this.JSC$19856__el,C=x.moduleCount,Q=Math.floor(e.width/C),L=Math.floor(e.height/C),k=['<table style="border:0;border-collapse:collapse;">'],M=0;M<C;M++){k.push("<tr>");for(var G=0;G<C;G++)k.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+Q+"px;height:"+L+"px;background-color:"+(x.isDark(M,G)?e.colorDark:e.colorLight)+';"></td>');k.push("</tr>")}k.push("</table>");x=k.join("");x=_.hiN(_.rS4,x);_.bx(l,x);
x=l.childNodes[0];C=(e.width-x.offsetWidth)/2;Q=(e.height-x.offsetHeight)/2;C>0&&Q>0&&(x.style.margin=Q+"px "+C+"px")};
O.prototype.clear=function(){this.JSC$19856__el.textContent=""};
return O}();
DRT.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19859__android||this.JSC$19859__android>=3)&&this._oDrawing.makeImage()};
DRT.prototype.clear=function(){this._oDrawing.clear()};
_.CV.QRCode=DRT;var avT={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var mKO=function(){};
mKO.prototype.stringify=function(O){return _.CV.JSON.stringify(O,void 0)};
mKO.prototype.parse=function(O){return _.CV.JSON.parse(O,void 0)};var s7L=function(){_.Xz.call(this,"z")};
_.fI(s7L,_.Xz);var WwQ=function(){_.Xz.call(this,"y")};
_.fI(WwQ,_.Xz);var hmY=null,zmL=function(){return hmY=hmY||new _.tf},rxL=function(O){_.Xz.call(this,"serverreachability",O)};
_.fI(rxL,_.Xz);var HoY=function(O){var x=zmL();x.dispatchEvent(new rxL(x,O))},Kw4=function(O,x){_.Xz.call(this,"statevent",O);
this.stat=x};
_.fI(Kw4,_.Xz);var GN=function(O){var x=zmL();x.dispatchEvent(new Kw4(x,O))},dKX=function(O,x,e,l){_.Xz.call(this,"timingevent",O);
this.size=x;this.rtt=e;this.retries=l};
_.fI(dKX,_.Xz);var njQ=function(O,x,e){var l=zmL();l.dispatchEvent(new dKX(l,O,x,e))},utL=function(O,x){if(typeof O!=="function")throw Error("Ok");
return _.CV.setTimeout(function(){O()},x)};var FR=function(){this.redactEnabled_=!0};
FR.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Y7h=function(O,x,e,l,C,Q){O.info(function(){if(O.redactEnabled_)if(Q){var L="";for(var k=Q.split("&"),M=0;M<k.length;M++){var G=k[M].split("=");if(G.length>1){var X=G[0];G=G[1];var y=X.split("_");L=y.length>=2&&y[1]=="type"?L+(X+"="+G+"&"):L+(X+"=redacted&")}}}else L=null;else L=Q;return"XMLHTTP REQ ("+l+") [attempt "+C+"]: "+x+"\n"+e+"\n"+L})},Bxp=function(O,x,e,l,C,Q,L){O.info(function(){return"XMLHTTP RESP ("+l+") [ attempt "+C+"]: "+x+"\n"+e+"\n"+Q+" "+L})},oD=function(O,x,e,l){O.info(function(){return"XMLHTTP TEXT ("+
x+"): "+vj4(O,e)+(l?" "+l:"")})},fve=function(O,x){O.info(function(){return"TIMEOUT: "+x})};
FR.prototype.debug=function(){};
FR.prototype.info=function(){};
FR.prototype.warning=function(){};
var vj4=function(O,x){if(!O.redactEnabled_)return x;if(!x)return null;try{var e=JSON.parse(x);if(e)for(var l=0;l<e.length;l++)if(Array.isArray(e[l])){var C=e[l];if(!(C.length<2)){var Q=C[1];if(Array.isArray(Q)&&!(Q.length<1)){var L=Q[0];if(L!="noop"&&L!="stop"&&L!="close")for(var k=1;k<Q.length;k++)Q[k]=""}}}return(0,_.Rj)(e)}catch(M){return O.debug("Exception parsing expected JS array - probably was not JS"),x}};var yv=function(O,x,e,l,C){this.JSC$19881_channel_=O;this.JSC$19881_channelDebug_=x;this.sid_=e;this.JSC$19881_rid_=l;this.JSC$19881_retryId_=C||1;this.JSC$19881_eventHandler_=new _.Ev(this);this.timeout_=45E3;this.JSC$19881_extraHeaders_=null;this.JSC$19881_successful_=!1;this.JSC$19881_postData_=this.JSC$19881_requestUri_=this.JSC$19881_baseUri_=this.JSC$19881_type_=this.JSC$19881_requestStartTime_=this.JSC$19881_watchDogTimeoutTime_=this.JSC$19881_watchDogTimerId_=null;this.JSC$19881_pendingMessages_=
[];this.JSC$19881_xmlHttp_=null;this.JSC$19881_xmlHttpChunkStart_=0;this.JSC$19881_lastError_=this.JSC$19881_verb_=null;this.JSC$19881_lastStatusCode_=-1;this.JSC$19881_cancelled_=!1;this.JSC$19881_readyStateChangeThrottleMs_=0;this.JSC$19881_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new JxX},JxX=function(){this.JSC$19883_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},wuL=function(O,x){switch(O){case 0:return"Non-200 return code ("+x+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},S7$={},j7$={};
yv.prototype.setTimeout=function(O){this.timeout_=O};
var gjQ=function(O,x,e){O.JSC$19881_type_=1;O.JSC$19881_baseUri_=_.T5(x.clone());O.JSC$19881_postData_=e;O.decodeChunks_=!0;NxL(O,null)},NxL=function(O,x){O.JSC$19881_requestStartTime_=Date.now();
$KL(O);O.JSC$19881_requestUri_=O.JSC$19881_baseUri_.clone();LD(O.JSC$19881_requestUri_,"t",O.JSC$19881_retryId_);O.JSC$19881_xmlHttpChunkStart_=0;var e=O.JSC$19881_channel_.JSC$19900_supportsCrossDomainXhrs_;O.fetchResponseState_=new JxX;O.JSC$19881_xmlHttp_=ioO(O.JSC$19881_channel_,e?x:null,!O.JSC$19881_postData_);O.JSC$19881_readyStateChangeThrottleMs_>0&&(O.JSC$19881_readyStateChangeThrottle_=new _.QI((0,_.z8)(O.JSC$19885_xmlHttpHandler_,O,O.JSC$19881_xmlHttp_),O.JSC$19881_readyStateChangeThrottleMs_));
O.JSC$19881_eventHandler_.listen(O.JSC$19881_xmlHttp_,"readystatechange",O.JSC$19885_readyStateChangeHandler_);x=O.JSC$19881_extraHeaders_?_.HX.clone(O.JSC$19881_extraHeaders_):{};O.JSC$19881_postData_?(O.JSC$19881_verb_||(O.JSC$19881_verb_="POST"),x["Content-Type"]="application/x-www-form-urlencoded",O.JSC$19881_xmlHttp_.send(O.JSC$19881_requestUri_,O.JSC$19881_verb_,O.JSC$19881_postData_,x)):(O.JSC$19881_verb_="GET",O.JSC$19881_xmlHttp_.send(O.JSC$19881_requestUri_,O.JSC$19881_verb_,null,x));HoY(1);
Y7h(O.JSC$19881_channelDebug_,O.JSC$19881_verb_,O.JSC$19881_requestUri_,O.JSC$19881_rid_,O.JSC$19881_retryId_,O.JSC$19881_postData_)};
yv.prototype.JSC$19885_readyStateChangeHandler_=function(O){O=O.target;var x=this.JSC$19881_readyStateChangeThrottle_;x&&_.aj(O)==3?(this.JSC$19881_channelDebug_.debug("Throttling readystatechange."),x.fire()):this.JSC$19885_xmlHttpHandler_(O)};
yv.prototype.JSC$19885_xmlHttpHandler_=function(O){try{O==this.JSC$19881_xmlHttp_?OLQ(this):this.JSC$19881_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(x){this.JSC$19881_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),xn$(this)}finally{}};
var OLQ=function(O){var x=_.aj(O.JSC$19881_xmlHttp_),e=O.JSC$19881_xmlHttp_.JSC$9791_lastErrorCode_,l=O.JSC$19881_xmlHttp_.getStatus();if(!(x<3||x==3&&!xn$(O))){O.JSC$19881_cancelled_||x!=4||e==7||(e==8||l<=0?HoY(3):HoY(2));eqQ(O);var C=O.JSC$19881_xmlHttp_.getStatus();O.JSC$19881_lastStatusCode_=C;e=l5p(O);xn$(O)||O.JSC$19881_channelDebug_.debug(function(){return"No response text for uri "+O.JSC$19881_requestUri_+" status "+C});
O.JSC$19881_successful_=C==200;Bxp(O.JSC$19881_channelDebug_,O.JSC$19881_verb_,O.JSC$19881_requestUri_,O.JSC$19881_rid_,O.JSC$19881_retryId_,x,C);if(O.JSC$19881_successful_){if(O.decodeInitialResponse_&&!O.initialResponseDecoded_)if(l=CXw(O))oD(O.JSC$19881_channelDebug_,O.JSC$19881_rid_,l,"Initial handshake response via X-HTTP-Initial-Response"),O.initialResponseDecoded_=!0,QdY(O,l);else{O.JSC$19881_successful_=!1;O.JSC$19881_lastError_=3;GN(12);O.JSC$19881_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
O.JSC$19881_rid_+")");ZU(O);bLY(O);return}O.decodeChunks_?THQ(O,x,e):(oD(O.JSC$19881_channelDebug_,O.JSC$19881_rid_,e,null),QdY(O,e));x==4&&ZU(O);O.JSC$19881_successful_&&!O.JSC$19881_cancelled_&&(x==4?LGQ(O.JSC$19881_channel_,O):(O.JSC$19881_successful_=!1,$KL(O)))}else ube(O.JSC$19881_xmlHttp_),C==400&&e.indexOf("Unknown SID")>0?(O.JSC$19881_lastError_=3,GN(12),O.JSC$19881_channelDebug_.warning("XMLHTTP Unknown SID ("+O.JSC$19881_rid_+")")):(O.JSC$19881_lastError_=0,GN(13),O.JSC$19881_channelDebug_.warning("XMLHTTP Bad status "+
C+" ("+O.JSC$19881_rid_+")")),ZU(O),bLY(O)}},CXw=function(O){return O.JSC$19881_xmlHttp_&&(O=bM(O.JSC$19881_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.AL(O)?O:null},l5p=function(O){if(!kKL(O))return O.JSC$19881_xmlHttp_.getResponseText();
var x=O.JSC$19881_xmlHttp_.getResponse();if(x==="")return"";var e="",l=x.length,C=_.aj(O.JSC$19881_xmlHttp_)==4;if(!O.fetchResponseState_.JSC$19883_textDecoder){if(typeof TextDecoder==="undefined")return ZU(O),bLY(O),"";O.fetchResponseState_.JSC$19883_textDecoder=new _.CV.TextDecoder}for(var Q=0;Q<l;Q++)O.fetchResponseState_.responseArrivedForFetch=!0,e+=O.fetchResponseState_.JSC$19883_textDecoder.decode(x[Q],{stream:!(C&&Q==l-1)});x.length=0;O.fetchResponseState_.responseBuffer+=e;O.JSC$19881_xmlHttpChunkStart_=
0;return O.fetchResponseState_.responseBuffer},xn$=function(O){return O.JSC$19881_xmlHttp_?O.fetchResponseState_.responseArrivedForFetch?!0:!(!O.JSC$19881_xmlHttp_.getResponseText()&&!O.JSC$19881_xmlHttp_.getResponse()):!1},kKL=function(O){return O.JSC$19881_xmlHttp_?O.JSC$19881_verb_=="GET"&&O.JSC$19881_type_!=2&&O.JSC$19881_channel_.usesFetchStreams_:!1},THQ=function(O,x,e){for(var l=!0,C;!O.JSC$19881_cancelled_&&O.JSC$19881_xmlHttpChunkStart_<e.length;)if(C=Adp(O,e),C==j7$){x==4&&(O.JSC$19881_lastError_=
4,GN(14),l=!1);
oD(O.JSC$19881_channelDebug_,O.JSC$19881_rid_,null,"[Incomplete Response]");break}else if(C==S7$){O.JSC$19881_lastError_=4;GN(15);oD(O.JSC$19881_channelDebug_,O.JSC$19881_rid_,e,"[Invalid Chunk]");l=!1;break}else oD(O.JSC$19881_channelDebug_,O.JSC$19881_rid_,C,null),QdY(O,C);kKL(O)&&O.JSC$19881_xmlHttpChunkStart_!=0&&(O.fetchResponseState_.responseBuffer=O.fetchResponseState_.responseBuffer.slice(O.JSC$19881_xmlHttpChunkStart_),O.JSC$19881_xmlHttpChunkStart_=0);x!=4||e.length!=0||O.fetchResponseState_.responseArrivedForFetch||
(O.JSC$19881_lastError_=1,GN(16),l=!1);O.JSC$19881_successful_=O.JSC$19881_successful_&&l;l?e.length>0&&!O.firstByteReceived_&&(O.firstByteReceived_=!0,x=O.JSC$19881_channel_,x.JSC$19900_backChannelRequest_==O&&x.detectBufferingProxy_&&!x.bpDetectionDone_&&(x.JSC$19900_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+e.length),MGY(x),x.bpDetectionDone_=!0,GN(11))):(oD(O.JSC$19881_channelDebug_,O.JSC$19881_rid_,e,"[Invalid Chunked Response]"),ZU(O),bLY(O))},Adp=function(O,
x){var e=O.JSC$19881_xmlHttpChunkStart_,l=x.indexOf("\n",e);
if(l==-1)return j7$;e=Number(x.substring(e,l));if(isNaN(e))return S7$;l+=1;if(l+e>x.length)return j7$;x=x.slice(l,l+e);O.JSC$19881_xmlHttpChunkStart_=l+e;return x};
yv.prototype.cancel=function(){this.JSC$19881_cancelled_=!0;ZU(this)};
var $KL=function(O){O.JSC$19881_watchDogTimeoutTime_=Date.now()+O.timeout_;DnO(O,O.timeout_)},DnO=function(O,x){if(O.JSC$19881_watchDogTimerId_!=null)throw Error("Pk");
O.JSC$19881_watchDogTimerId_=utL((0,_.z8)(O.JSC$19885_onWatchDogTimeout_,O),x)},eqQ=function(O){O.JSC$19881_watchDogTimerId_&&(_.CV.clearTimeout(O.JSC$19881_watchDogTimerId_),O.JSC$19881_watchDogTimerId_=null)};
yv.prototype.JSC$19885_onWatchDogTimeout_=function(){this.JSC$19881_watchDogTimerId_=null;var O=Date.now();O-this.JSC$19881_watchDogTimeoutTime_>=0?(fve(this.JSC$19881_channelDebug_,this.JSC$19881_requestUri_),this.JSC$19881_type_!=2&&(HoY(3),GN(17)),ZU(this),this.JSC$19881_lastError_=2,bLY(this)):(this.JSC$19881_channelDebug_.warning("WatchDog timer called too early"),DnO(this,this.JSC$19881_watchDogTimeoutTime_-O))};
var bLY=function(O){O.JSC$19881_channel_.state_==0||O.JSC$19881_cancelled_||LGQ(O.JSC$19881_channel_,O)},ZU=function(O){eqQ(O);
_.Lf(O.JSC$19881_readyStateChangeThrottle_);O.JSC$19881_readyStateChangeThrottle_=null;O.JSC$19881_eventHandler_.removeAll();if(O.JSC$19881_xmlHttp_){var x=O.JSC$19881_xmlHttp_;O.JSC$19881_xmlHttp_=null;x.abort();x.dispose()}};
yv.prototype.getLastError=function(){return this.JSC$19881_lastError_};
var QdY=function(O,x){try{var e=O.JSC$19881_channel_;if(e.state_!=0&&(e.JSC$19900_backChannelRequest_==O||GKQ(e.forwardChannelRequestPool_,O)))if(!O.initialResponseDecoded_&&GKQ(e.forwardChannelRequestPool_,O)&&e.state_==3){try{var l=e.wireCodec_.JSC$19895_parser_.parse(x)}catch(k){l=null}if(Array.isArray(l)&&l.length==3){x=l;if(x[0]==0)a:if(e.JSC$19900_channelDebug_.debug("Server claims our backchannel is missing."),e.JSC$19900_backChannelTimerId_)e.JSC$19900_channelDebug_.debug("But we are currently starting the request.");
else{if(e.JSC$19900_backChannelRequest_)if(e.JSC$19900_backChannelRequest_.JSC$19881_requestStartTime_+3E3<O.JSC$19881_requestStartTime_)FGL(e),Xru(e);else break a;else e.JSC$19900_channelDebug_.warning("We do not have a BackChannel established");oqQ(e);GN(18)}else{e.JSC$19900_lastPostResponseArrayId_=x[1];var C=e.JSC$19900_lastPostResponseArrayId_-e.JSC$19900_lastArrayId_;if(0<C){var Q=x[2];e.JSC$19900_channelDebug_.debug(Q+" bytes (in "+C+" arrays) are outstanding on the BackChannel");Q<37500&&
e.enableStreaming_&&e.JSC$19900_backChannelRetryCount_==0&&!e.JSC$19900_deadBackChannelTimerId_&&(e.JSC$19900_deadBackChannelTimerId_=utL((0,_.z8)(e.JSC$19902_onBackChannelDead_,e),6E3))}}if(ydX(e.forwardChannelRequestPool_)<=1&&e.forwardChannelFlushedCallback_){try{e.forwardChannelFlushedCallback_()}catch(k){}e.forwardChannelFlushedCallback_=void 0}}else e.JSC$19900_channelDebug_.debug("Bad POST response data returned"),Es(e,11)}else if((O.initialResponseDecoded_||e.JSC$19900_backChannelRequest_==
O)&&FGL(e),!_.AL(x)){var L=e.wireCodec_.JSC$19895_parser_.parse(x);e.onInput_(L,O)}HoY(4)}catch(k){}};var ZLL=function(O,x){this.JSC$19888_mapId=O;this.map=x;this.context=null};var Eqw=function(O){this.maxPoolSizeConfigured_=O||10;_.CV.PerformanceNavigationTiming?(O=_.CV.performance.getEntriesByType("navigation"),O=O.length>0&&(O[0].nextHopProtocol=="hq"||O[0].nextHopProtocol=="h2")):O=!!(_.CV.chrome&&_.CV.chrome.loadTimes&&_.CV.chrome.loadTimes()&&_.CV.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19891_maxSize_=O?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19891_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19891_request_=null;this.JSC$19891_pendingMessages_=
[]},tGQ=function(O){return O.JSC$19891_request_?!0:O.requestPool_?O.requestPool_.size>=O.JSC$19891_maxSize_:!1},ydX=function(O){return O.JSC$19891_request_?1:O.requestPool_?O.requestPool_.size:0},GKQ=function(O,x){return O.JSC$19891_request_?O.JSC$19891_request_==x:O.requestPool_?O.requestPool_.has(x):!1},q2u=function(O,x){O.requestPool_?O.requestPool_.add(x):O.JSC$19891_request_=x},PX4=function(O,x){O.JSC$19891_request_&&O.JSC$19891_request_==x?O.JSC$19891_request_=null:O.requestPool_&&O.requestPool_.has(x)&&
O.requestPool_.delete(x)};
Eqw.prototype.cancel=function(){this.JSC$19891_pendingMessages_=cdL(this);if(this.JSC$19891_request_)this.JSC$19891_request_.cancel(),this.JSC$19891_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var O=_.T(this.requestPool_.values()),x=O.next();!x.done;x=O.next())x.value.cancel();this.requestPool_.clear()}};
var cdL=function(O){if(O.JSC$19891_request_!=null)return O.JSC$19891_pendingMessages_.concat(O.JSC$19891_request_.JSC$19881_pendingMessages_);if(O.requestPool_!=null&&O.requestPool_.size!==0){var x=O.JSC$19891_pendingMessages_;O=_.T(O.requestPool_.values());for(var e=O.next();!e.done;e=O.next())x=x.concat(e.value.JSC$19881_pendingMessages_);return x}return _.Bi(O.JSC$19891_pendingMessages_)},I5L=function(O,x){O.JSC$19891_pendingMessages_=O.JSC$19891_pendingMessages_.concat(x)};var VGw=function(O,x){var e=new FR;e.debug("TestLoadImage: loading "+O);if(_.CV.Image){var l=new Image;l.onload=_.b_(tm,e,"TestLoadImage: loaded",!0,x,l);l.onerror=_.b_(tm,e,"TestLoadImage: error",!1,x,l);l.onabort=_.b_(tm,e,"TestLoadImage: abort",!1,x,l);l.ontimeout=_.b_(tm,e,"TestLoadImage: timeout",!1,x,l);_.CV.setTimeout(function(){if(l.ontimeout)l.ontimeout()},1E4);
l.src=O}else x(!1)},prp=function(O,x){var e=new FR,l=new AbortController,C=setTimeout(function(){l.abort();
tm(e,"TestPingServer: timeout",!1,x)},1E4);
fetch(O,{signal:l.signal}).then(function(Q){clearTimeout(C);Q.ok?tm(e,"TestPingServer: ok",!0,x):tm(e,"TestPingServer: server error",!1,x)}).catch(function(){clearTimeout(C);
tm(e,"TestPingServer: error",!1,x)})},tm=function(O,x,e,l,C){try{O.debug(x),C&&(C.onload=null,C.onerror=null,C.onabort=null,C.ontimeout=null),l(e)}catch(Q){}};var RqL=function(){this.JSC$19895_parser_=new mKO};var Unw=function(O,x,e){return e&&e.internalChannelParams?e.internalChannelParams[O]||x:x},qf=function(O){this.serverVersion_=0;
this.JSC$19900_outgoingMaps_=[];this.JSC$19900_channelDebug_=new FR;this.JSC$19900_hostPrefix_=this.JSC$19900_backChannelUri_=this.JSC$19900_forwardChannelUri_=this.JSC$19900_path_=this.JSC$19900_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19900_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19900_extraHeaders_=null;this.JSC$19900_nextMapId_=this.JSC$19900_nextRid_=0;this.JSC$19900_failFast_=Unw("failFast",!1,O);this.enableStreaming_=this.JSC$19900_deadBackChannelTimerId_=
this.JSC$19900_backChannelTimerId_=this.JSC$19900_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19900_lastPostResponseArrayId_=this.JSC$19900_lastArrayId_=-1;this.JSC$19900_backChannelAttemptId_=this.JSC$19900_backChannelRetryCount_=this.JSC$19900_forwardChannelRetryCount_=0;this.JSC$19900_baseRetryDelayMs_=Unw("baseRetryDelayMs",5E3,O);this.JSC$19900_retryDelaySeedMs_=Unw("retryDelaySeedMs",1E4,O);this.JSC$19900_forwardChannelMaxRetries_=
Unw("forwardChannelMaxRetries",2,O);this.JSC$19900_forwardChannelRequestTimeoutMs_=Unw("forwardChannelRequestTimeoutMs",2E4,O);this.JSC$19900_xmlHttpFactory_=O&&O.xmlHttpFactory||void 0;this.networkTestUrl_=O&&O.networkTestUrl||void 0;this.usesFetchStreams_=O&&O.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19900_supportsCrossDomainXhrs_=O&&O.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Eqw(O&&O.concurrentRequestLimit);this.wireCodec_=new RqL;
this.fastHandshake_=O&&O.fastHandshake||!1;this.encodeInitMessageHeaders_=O&&O.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19900_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=O&&O.blockingHandshake||!1;O&&O.disableRedact&&this.JSC$19900_channelDebug_.disableRedact();O&&O.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&O&&O.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;O&&O.longPollingTimeout&&O.longPollingTimeout>0&&(this.longPollingTimeout_=O.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
qf.prototype.JSC$19902_channelVersion_=8;qf.prototype.state_=1;
qf.prototype.connect=function(O,x,e,l){this.JSC$19900_channelDebug_.debug("connect()");GN(0);this.JSC$19900_path_=O;this.JSC$19900_extraParams_=x||{};e&&l!==void 0&&(this.JSC$19900_extraParams_.OSID=e,this.JSC$19900_extraParams_.OAID=l);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19900_channelDebug_.debug("connectChannel_()");O=a5L(this,null,this.JSC$19900_path_);this.JSC$19900_channelDebug_.debug("GetForwardChannelUri: "+O);this.JSC$19900_forwardChannelUri_=O;mnw(this)};
qf.prototype.disconnect=function(){this.JSC$19900_channelDebug_.debug("disconnect()");sde(this);if(this.state_==3){var O=this.JSC$19900_nextRid_++,x=this.JSC$19900_forwardChannelUri_.clone();_.lo(x,"SID",this.sid_);_.lo(x,"RID",O);_.lo(x,"TYPE","terminate");WGe(this,x);O=new yv(this,this.JSC$19900_channelDebug_,this.sid_,O);O.JSC$19881_type_=2;O.JSC$19881_baseUri_=_.T5(x.clone());x=!1;if(_.CV.navigator&&_.CV.navigator.sendBeacon)try{x=_.CV.navigator.sendBeacon(O.JSC$19881_baseUri_.toString(),"")}catch(e){}!x&&
_.CV.Image&&((new Image).src=O.JSC$19881_baseUri_,x=!0);x||(O.JSC$19881_xmlHttp_=ioO(O.JSC$19881_channel_,null),O.JSC$19881_xmlHttp_.send(O.JSC$19881_baseUri_));O.JSC$19881_requestStartTime_=Date.now();$KL(O)}hqw(this)};
var Xru=function(O){O.JSC$19900_backChannelRequest_&&(MGY(O),O.JSC$19900_backChannelRequest_.cancel(),O.JSC$19900_backChannelRequest_=null)},sde=function(O){Xru(O);
O.JSC$19900_backChannelTimerId_&&(_.CV.clearTimeout(O.JSC$19900_backChannelTimerId_),O.JSC$19900_backChannelTimerId_=null);FGL(O);O.forwardChannelRequestPool_.cancel();O.JSC$19900_forwardChannelTimerId_&&(typeof O.JSC$19900_forwardChannelTimerId_==="number"&&_.CV.clearTimeout(O.JSC$19900_forwardChannelTimerId_),O.JSC$19900_forwardChannelTimerId_=null)};
qf.prototype.getState=function(){return this.state_};
var mnw=function(O){tGQ(O.forwardChannelRequestPool_)||O.JSC$19900_forwardChannelTimerId_||(O.JSC$19900_forwardChannelTimerId_=!0,_.PF(O.JSC$19902_onStartForwardChannelTimer_,O),O.JSC$19900_forwardChannelRetryCount_=0)},rdL=function(O,x){if(ydX(O.forwardChannelRequestPool_)>=O.forwardChannelRequestPool_.JSC$19891_maxSize_-(O.JSC$19900_forwardChannelTimerId_?1:0))return!1;
if(O.JSC$19900_forwardChannelTimerId_)return O.JSC$19900_channelDebug_.debug("Use the retry request that is already scheduled."),O.JSC$19900_outgoingMaps_=x.JSC$19881_pendingMessages_.concat(O.JSC$19900_outgoingMaps_),!0;if(O.state_==1||O.state_==2||O.JSC$19900_forwardChannelRetryCount_>=(O.JSC$19900_failFast_?0:O.JSC$19900_forwardChannelMaxRetries_))return!1;O.JSC$19900_channelDebug_.debug("Going to retry POST");O.JSC$19900_forwardChannelTimerId_=utL((0,_.z8)(O.JSC$19902_onStartForwardChannelTimer_,
O,x),zq4(O,O.JSC$19900_forwardChannelRetryCount_));O.JSC$19900_forwardChannelRetryCount_++;return!0};
qf.prototype.JSC$19902_onStartForwardChannelTimer_=function(O){if(this.JSC$19900_forwardChannelTimerId_)if(this.JSC$19900_forwardChannelTimerId_=null,this.JSC$19900_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!O){this.JSC$19900_channelDebug_.debug("open_()");this.JSC$19900_nextRid_=Math.floor(Math.random()*1E5);O=this.JSC$19900_nextRid_++;var x=new yv(this,this.JSC$19900_channelDebug_,"",O),e=this.JSC$19900_extraHeaders_;this.initHeaders_&&(e?(e=_.HX.clone(e),_.HX.extend(e,this.initHeaders_)):
e=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(x.JSC$19881_extraHeaders_=e,e=null);var l;if(this.fastHandshake_)a:{for(var C=l=0;C<this.JSC$19900_outgoingMaps_.length;C++){b:{var Q=this.JSC$19900_outgoingMaps_[C];if("__data__"in Q.map&&(Q=Q.map.__data__,typeof Q==="string")){Q=Q.length;break b}Q=void 0}if(Q===void 0)break;l+=Q;if(l>4096){l=C;break a}if(l===4096||C===this.JSC$19900_outgoingMaps_.length-1){l=C+1;break a}}l=1E3}else l=1E3;l=HL4(this,x,l);
C=this.JSC$19900_forwardChannelUri_.clone();_.lo(C,"RID",O);_.lo(C,"CVER",22);this.httpSessionIdParam_&&_.lo(C,"X-HTTP-Session-Id",this.httpSessionIdParam_);WGe(this,C);e&&(this.encodeInitMessageHeaders_?l="headers="+_.xc(f7L(e))+"&"+l:this.httpHeadersOverwriteParam_&&JnY(C,this.httpHeadersOverwriteParam_,e));q2u(this.forwardChannelRequestPool_,x);this.blockingHandshake_&&_.lo(C,"TYPE","init");this.fastHandshake_?(_.lo(C,"$req",l),_.lo(C,"SID","null"),x.decodeInitialResponse_=!0,gjQ(x,C,null)):gjQ(x,
C,l);this.state_=2}}else this.state_==3&&(O?KGQ(this,O):this.JSC$19900_outgoingMaps_.length==0?this.JSC$19900_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):tGQ(this.forwardChannelRequestPool_)||(KGQ(this),this.JSC$19900_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var KGQ=function(O,x){var e;x?e=x.JSC$19881_rid_:e=O.JSC$19900_nextRid_++;var l=O.JSC$19900_forwardChannelUri_.clone();_.lo(l,"SID",O.sid_);_.lo(l,"RID",e);_.lo(l,"AID",O.JSC$19900_lastArrayId_);WGe(O,l);O.httpHeadersOverwriteParam_&&O.JSC$19900_extraHeaders_&&JnY(l,O.httpHeadersOverwriteParam_,O.JSC$19900_extraHeaders_);e=new yv(O,O.JSC$19900_channelDebug_,O.sid_,e,O.JSC$19900_forwardChannelRetryCount_+1);O.httpHeadersOverwriteParam_===null&&(e.JSC$19881_extraHeaders_=O.JSC$19900_extraHeaders_);
x&&(O.JSC$19900_outgoingMaps_=x.JSC$19881_pendingMessages_.concat(O.JSC$19900_outgoingMaps_));x=HL4(O,e,1E3);e.setTimeout(Math.round(O.JSC$19900_forwardChannelRequestTimeoutMs_*.5)+Math.round(O.JSC$19900_forwardChannelRequestTimeoutMs_*.5*Math.random()));q2u(O.forwardChannelRequestPool_,e);gjQ(e,l,x)},WGe=function(O,x){O.JSC$19900_extraParams_&&_.HX.forEach(O.JSC$19900_extraParams_,function(e,l){_.lo(x,l,e)});
O.handler_&&_.HX.forEach({},function(e,l){_.lo(x,l,e)})},HL4=function(O,x,e){e=Math.min(O.JSC$19900_outgoingMaps_.length,e);
var l=O.handler_?(0,_.z8)(O.handler_.JSC$19906_badMapError,O.handler_,O):null;a:{for(var C=O.JSC$19900_outgoingMaps_,Q=-1;;){var L=["count="+e];Q==-1?e>0?(Q=C[0].JSC$19888_mapId,L.push("ofs="+Q)):Q=0:L.push("ofs="+Q);for(var k=!0,M=0;M<e;M++){var G=C[M].JSC$19888_mapId,X=C[M].map;G-=Q;if(G<0)Q=Math.max(0,C[M].JSC$19888_mapId-100),k=!1;else try{G="req"+G+"_"||"";try{var y=X instanceof Map?X:Object.entries(X);for(var Z=_.T(y),E=Z.next();!E.done;E=Z.next()){var P=_.T(E.value),U=P.next().value,W=P.next().value,
z=W;_.w7(W)&&(z=(0,_.Rj)(W));L.push(G+U+"="+encodeURIComponent(z))}}catch(r){throw L.push(G+"type="+encodeURIComponent("_badmap")),r;}}catch(r){l&&l(X)}}if(k){y=L.join("&");break a}}y=void 0}O=O.JSC$19900_outgoingMaps_.splice(0,e);x.JSC$19881_pendingMessages_=O;return y},dnY=function(O){O.JSC$19900_backChannelRequest_||O.JSC$19900_backChannelTimerId_||(O.JSC$19900_backChannelAttemptId_=1,_.PF(O.JSC$19902_onStartBackChannelTimer_,O),O.JSC$19900_backChannelRetryCount_=0)},oqQ=function(O){if(O.JSC$19900_backChannelRequest_||
O.JSC$19900_backChannelTimerId_||O.JSC$19900_backChannelRetryCount_>=3)return!1;
O.JSC$19900_channelDebug_.debug("Going to retry GET");O.JSC$19900_backChannelAttemptId_++;O.JSC$19900_backChannelTimerId_=utL((0,_.z8)(O.JSC$19902_onStartBackChannelTimer_,O),zq4(O,O.JSC$19900_backChannelRetryCount_));O.JSC$19900_backChannelRetryCount_++;return!0};
qf.prototype.JSC$19902_onStartBackChannelTimer_=function(){this.JSC$19900_backChannelTimerId_=null;nqO(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19900_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19900_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19900_backChannelRequest_+" "+this.handshakeRttMs_);else{var O=4*this.handshakeRttMs_;this.JSC$19900_channelDebug_.info("BP detection timer enabled: "+O);this.bpDetectionTimerId_=utL((0,_.z8)(this.onBpDetectionTimer_,
this),O)}};
qf.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19900_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19900_backChannelRequest_.JSC$19881_xmlHttp_!=null){var O=this.JSC$19900_backChannelRequest_.JSC$19881_xmlHttp_.getResponseText();O&&this.JSC$19900_channelDebug_.warning("Timer should have been cancelled : "+O)}this.JSC$19900_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;GN(10);Xru(this);nqO(this)}else this.JSC$19900_channelDebug_.warning("Invalid operation.")};
var MGY=function(O){O.bpDetectionTimerId_!=null&&(O.JSC$19900_channelDebug_.debug("Cancel the BP detection timer."),_.CV.clearTimeout(O.bpDetectionTimerId_),O.bpDetectionTimerId_=null)},nqO=function(O){O.JSC$19900_channelDebug_.debug("Creating new HttpRequest");
O.JSC$19900_backChannelRequest_=new yv(O,O.JSC$19900_channelDebug_,O.sid_,"rpc",O.JSC$19900_backChannelAttemptId_);O.httpHeadersOverwriteParam_===null&&(O.JSC$19900_backChannelRequest_.JSC$19881_extraHeaders_=O.JSC$19900_extraHeaders_);O.JSC$19900_backChannelRequest_.JSC$19881_readyStateChangeThrottleMs_=0;var x=O.JSC$19900_backChannelUri_.clone();_.lo(x,"RID","rpc");_.lo(x,"SID",O.sid_);_.lo(x,"AID",O.JSC$19900_lastArrayId_);_.lo(x,"CI",O.enableStreaming_?"0":"1");!O.enableStreaming_&&O.longPollingTimeout_&&
_.lo(x,"TO",O.longPollingTimeout_);_.lo(x,"TYPE","xmlhttp");WGe(O,x);O.httpHeadersOverwriteParam_&&O.JSC$19900_extraHeaders_&&JnY(x,O.httpHeadersOverwriteParam_,O.JSC$19900_extraHeaders_);O.backChannelRequestTimeoutMs_&&O.JSC$19900_backChannelRequest_.setTimeout(O.backChannelRequestTimeoutMs_);var e=O.JSC$19900_backChannelRequest_,l=O.JSC$19900_hostPrefix_;e.JSC$19881_type_=1;e.JSC$19881_baseUri_=_.T5(x.clone());e.JSC$19881_postData_=null;e.decodeChunks_=!0;NxL(e,l);O.JSC$19900_channelDebug_.debug("New Request created")};
qf.prototype.JSC$19902_onBackChannelDead_=function(){this.JSC$19900_deadBackChannelTimerId_!=null&&(this.JSC$19900_deadBackChannelTimerId_=null,Xru(this),oqQ(this),GN(19))};
var FGL=function(O){O.JSC$19900_deadBackChannelTimerId_!=null&&(_.CV.clearTimeout(O.JSC$19900_deadBackChannelTimerId_),O.JSC$19900_deadBackChannelTimerId_=null)},LGQ=function(O,x){O.JSC$19900_channelDebug_.debug("Request complete");
var e=null;if(O.JSC$19900_backChannelRequest_==x){FGL(O);MGY(O);O.JSC$19900_backChannelRequest_=null;var l=2}else if(GKQ(O.forwardChannelRequestPool_,x))e=x.JSC$19881_pendingMessages_,PX4(O.forwardChannelRequestPool_,x),l=1;else return;if(O.state_!=0)if(x.JSC$19881_successful_)l==1?(njQ(x.JSC$19881_postData_?x.JSC$19881_postData_.length:0,Date.now()-x.JSC$19881_requestStartTime_,O.JSC$19900_forwardChannelRetryCount_),mnw(O)):dnY(O);else{var C=x.JSC$19881_lastStatusCode_,Q=x.getLastError();if(Q==3||
Q==0&&C>0)O.JSC$19900_channelDebug_.debug("Not retrying due to error type"),C>200&&(O.errorResponseStatusCode_=x.JSC$19881_lastStatusCode_);else{O.JSC$19900_channelDebug_.debug(function(){return"Maybe retrying, last error: "+wuL(Q,O.errorResponseStatusCode_)});
if(l==1&&rdL(O,x)||l==2&&oqQ(O))return;O.JSC$19900_channelDebug_.debug("Exceeded max number of retries")}e&&e.length>0&&I5L(O.forwardChannelRequestPool_,e);O.JSC$19900_channelDebug_.debug("Error: HTTP request failed");switch(Q){case 1:Es(O,5);break;case 4:Es(O,10);break;case 3:Es(O,6);break;default:Es(O,2)}}},zq4=function(O,x){var e=O.JSC$19900_baseRetryDelayMs_+Math.floor(Math.random()*O.JSC$19900_retryDelaySeedMs_);
O.isActive()||(O.JSC$19900_channelDebug_.debug("Inactive channel"),e*=2);return e*x};
qf.prototype.onInput_=function(O,x){for(var e=0;e<O.length;e++){var l=O[e],C=l[0];if(C<=this.JSC$19900_lastArrayId_)this.JSC$19900_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+C+", lastArrayId: "+this.JSC$19900_lastArrayId_);else if(C>this.JSC$19900_lastArrayId_+1&&this.JSC$19900_lastArrayId_>-1&&this.JSC$19900_channelDebug_.warning("Received non-consecutive message with arrayId: "+C+", lastArrayId: "+this.JSC$19900_lastArrayId_),this.JSC$19900_lastArrayId_=C,
l=l[1],this.state_==2)if(l[0]=="c"){this.sid_=l[1];this.JSC$19900_hostPrefix_=l[2];C=l[3];C!=null&&(this.JSC$19902_channelVersion_=C,this.JSC$19900_channelDebug_.info("VER="+this.JSC$19902_channelVersion_));C=l[4];C!=null&&(this.serverVersion_=C,this.JSC$19900_channelDebug_.info("SVER="+this.serverVersion_));l=l[5];l!=null&&typeof l==="number"&&l>0&&(this.backChannelRequestTimeoutMs_=l*=1.5,this.JSC$19900_channelDebug_.info("backChannelRequestTimeoutMs_="+l));if(l=x.JSC$19881_xmlHttp_){var Q=bM(l,
"X-Client-Wire-Protocol");Q&&(C=this.forwardChannelRequestPool_,!C.requestPool_&&(_.M$(Q,"spdy")||_.M$(Q,"quic")||_.M$(Q,"h2"))&&(C.JSC$19891_maxSize_=C.maxPoolSizeConfigured_,C.requestPool_=new Set,C.JSC$19891_request_&&(q2u(C,C.JSC$19891_request_),C.JSC$19891_request_=null)));this.httpSessionIdParam_&&((l=bM(l,"X-HTTP-Session-Id"))?(this.httpSessionId_=l,_.lo(this.JSC$19900_forwardChannelUri_,this.httpSessionIdParam_,l)):this.JSC$19900_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19906_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-x.JSC$19881_requestStartTime_,this.JSC$19900_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));l=x;C=a5L(this,this.JSC$19900_supportsCrossDomainXhrs_?this.JSC$19900_hostPrefix_:null,this.JSC$19900_path_);this.JSC$19900_channelDebug_.debug("GetBackChannelUri: "+C);this.JSC$19900_backChannelUri_=C;l.initialResponseDecoded_?(this.JSC$19900_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
PX4(this.forwardChannelRequestPool_,l),C=l,(Q=this.backChannelRequestTimeoutMs_)&&C.setTimeout(Q),C.JSC$19881_watchDogTimerId_&&(eqQ(C),$KL(C)),this.JSC$19900_backChannelRequest_=l):dnY(this);this.JSC$19900_outgoingMaps_.length>0&&mnw(this)}else l[0]!="stop"&&l[0]!="close"||Es(this,7);else this.state_==3&&(l[0]=="stop"||l[0]=="close"?l[0]=="stop"?Es(this,7):this.disconnect():l[0]!="noop"&&this.handler_&&this.handler_.JSC$19906_channelHandleArray(l),this.JSC$19900_backChannelRetryCount_=0)}};
var Es=function(O,x){O.JSC$19900_channelDebug_.info("Error code "+x);if(x==2){var e=(0,_.z8)(O.testNetworkCallback_,O),l=O.networkTestUrl_,C=!l;l=new _.K1(l||"//www.google.com/images/cleardot.gif");_.CV.location&&_.CV.location.protocol=="http"||_.$u(l,"https");_.T5(l);C?VGw(l.toString(),e):prp(l.toString(),e)}else GN(2);O.onError_(x)};
qf.prototype.testNetworkCallback_=function(O){O?(this.JSC$19900_channelDebug_.info("Successfully pinged google.com"),GN(2)):(this.JSC$19900_channelDebug_.info("Failed to ping google.com"),GN(1))};
qf.prototype.onError_=function(O){this.JSC$19900_channelDebug_.debug("HttpChannel: error - "+O);this.state_=0;this.handler_&&this.handler_.JSC$19906_channelError(O);hqw(this);sde(this)};
var hqw=function(O){O.state_=0;O.nonAckedMapsAtChannelClose_=[];if(O.handler_){var x=cdL(O.forwardChannelRequestPool_);if(x.length!=0||O.JSC$19900_outgoingMaps_.length!=0)O.JSC$19900_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+x.length+", outgoing: "+O.JSC$19900_outgoingMaps_.length}),_.fV(O.nonAckedMapsAtChannelClose_,x),_.fV(O.nonAckedMapsAtChannelClose_,O.JSC$19900_outgoingMaps_),O.forwardChannelRequestPool_.JSC$19891_pendingMessages_.length=0,_.Bi(O.JSC$19900_outgoingMaps_),
O.JSC$19900_outgoingMaps_.length=0;
O.handler_.JSC$19906_channelClosed()}},u8X=function(O){if(O.state_==0)return O.nonAckedMapsAtChannelClose_;
var x=[];_.fV(x,cdL(O.forwardChannelRequestPool_));_.fV(x,O.JSC$19900_outgoingMaps_);return x},a5L=function(O,x,e){var l=_.xO(e);
l.JSC$10027_domain_!=""?(x&&_.ie(l,x+"."+l.JSC$10027_domain_),_.OS(l,l.JSC$10027_port_)):(l=_.CV.location,l=rDT(l.protocol,x?x+"."+l.hostname:l.hostname,+l.port,e));x=O.httpSessionIdParam_;e=O.httpSessionId_;x&&e&&_.lo(l,x,e);_.lo(l,"VER",O.JSC$19902_channelVersion_);WGe(O,l);return l},ioO=function(O,x,e){if(x&&!O.JSC$19900_supportsCrossDomainXhrs_)throw Error("Qk");
x=O.usesFetchStreams_&&!O.JSC$19900_xmlHttpFactory_?new _.UK(new mb({streamBinaryChunks:e})):new _.UK(O.JSC$19900_xmlHttpFactory_);x.JSC$9791_withCredentials_=O.JSC$19900_supportsCrossDomainXhrs_;return x};
qf.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Y2Y=function(){};
_.b=Y2Y.prototype;_.b.JSC$19906_channelOpened=function(){};
_.b.JSC$19906_channelHandleArray=function(){};
_.b.JSC$19906_channelError=function(){};
_.b.JSC$19906_channelClosed=function(){};
_.b.isActive=function(){return!0};
_.b.JSC$19906_badMapError=function(){};var BHw=function(){},c5=function(O,x){_.tf.call(this);
this.JSC$19909_channel_=new qf(x);this.JSC$19909_url_=O;this.messageUrlParams_=x&&x.messageUrlParams||null;O=x&&x.messageHeaders||null;x&&x.clientProtocolHeaderRequired&&(O?_.HX.set(O,"X-Client-Protocol","webchannel"):O=_.HX.create("X-Client-Protocol","webchannel"));this.JSC$19909_channel_.JSC$19900_extraHeaders_=O;O=x&&x.initMessageHeaders||null;x&&x.messageContentType&&(O?_.HX.set(O,"X-WebChannel-Content-Type",x.messageContentType):O=_.HX.create("X-WebChannel-Content-Type",x.messageContentType));
x&&x.clientProfile&&(O?_.HX.set(O,"X-WebChannel-Client-Profile",x.clientProfile):O=_.HX.create("X-WebChannel-Client-Profile",x.clientProfile));this.JSC$19909_channel_.initHeaders_=O;(O=x&&x.httpHeadersOverwriteParam)&&!_.AL(O)&&(this.JSC$19909_channel_.httpHeadersOverwriteParam_=O);this.supportsCrossDomainXhr_=x&&x.supportsCrossDomainXhr||!1;this.sendRawJson_=x&&x.sendRawJson||!1;(x=x&&x.httpSessionIdParam)&&!_.AL(x)&&(this.JSC$19909_channel_.httpSessionIdParam_=x,_.HX.containsKey(this.messageUrlParams_,
x)&&_.HX.remove(this.messageUrlParams_,x));this.channelHandler_=new P5(this)};
_.fI(c5,_.tf);c5.prototype.open=function(){this.JSC$19909_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19909_channel_.JSC$19900_supportsCrossDomainXhrs_=!0);this.JSC$19909_channel_.connect(this.JSC$19909_url_,this.messageUrlParams_||void 0)};
c5.prototype.close=function(){this.JSC$19909_channel_.disconnect()};
c5.prototype.send=function(O){var x=this.JSC$19909_channel_;if(typeof O==="string"){var e={};e.__data__=O;O=e}else this.sendRawJson_&&(e={},e.__data__=(0,_.Rj)(O),O=e);x.JSC$19900_outgoingMaps_.push(new ZLL(x.JSC$19900_nextMapId_++,O));x.state_==3&&mnw(x)};
c5.prototype.disposeInternal=function(){this.JSC$19909_channel_.handler_=null;delete this.channelHandler_;this.JSC$19909_channel_.disconnect();delete this.JSC$19909_channel_;c5.superClass_.disposeInternal.call(this)};
var vqQ=function(O){s7L.call(this);O.__headers__&&(this.headers=O.__headers__,this.statusCode=O.__status__,delete O.__headers__,delete O.__status__);var x=O.__sm__;x?this.data=(this.metadataKey=_.HX.getAnyKey(x))?_.HX.get(x,this.metadataKey):x:this.data=O};
_.fI(vqQ,s7L);var f5L=function(O){WwQ.call(this);this.status=1;this.errorCode=O};
_.fI(f5L,WwQ);var P5=function(O){this.JSC$19916_channel_=O};
_.fI(P5,Y2Y);P5.prototype.JSC$19906_channelOpened=function(){this.JSC$19916_channel_.dispatchEvent("w")};
P5.prototype.JSC$19906_channelHandleArray=function(O){this.JSC$19916_channel_.dispatchEvent(new vqQ(O))};
P5.prototype.JSC$19906_channelError=function(O){this.JSC$19916_channel_.dispatchEvent(new f5L(O))};
P5.prototype.JSC$19906_channelClosed=function(){this.JSC$19916_channel_.dispatchEvent("x")};
var JdX=function(O,x){this.transportChannel_=O;this.JSC$19919_channel_=x},wrY=function(O){return u8X(O.JSC$19919_channel_).map(function(x){var e=O.transportChannel_;
x=x.map;"__data__"in x?(x=x.__data__,e=e.sendRawJson_?(0,_.cZ3)(x):x):e=x;return e})};
JdX.prototype.commit=function(O){this.JSC$19919_channel_.forwardChannelFlushedCallback_=O};var ID=function(O){S2X.dispatchEvent(new jdL(S2X,O))},S2X=new _.tf,jdL=function(O,x){_.Xz.call(this,"statevent",O);
this.stat=x};
_.c(jdL,_.Xz);var Vv=function(O,x,e,l,C){this.JSC$19924_channel_=O;this.JSC$19924_channelDebug_=x;this.sid_=e;this.JSC$19924_rid_=l;this.JSC$19924_retryId_=C||1;this.timeout_=45E3;this.JSC$19924_eventHandler_=new _.Ev(this);this.pollingTimer_=new _.Zy;this.pollingTimer_.setInterval(250)};
_.b=Vv.prototype;_.b.JSC$19926_extraHeaders_=null;_.b.JSC$19926_successful_=!1;_.b.JSC$19926_watchDogTimerId_=null;_.b.JSC$19926_watchDogTimeoutTime_=null;_.b.JSC$19926_requestStartTime_=null;_.b.JSC$19926_type_=null;_.b.JSC$19926_baseUri_=null;_.b.JSC$19926_requestUri_=null;_.b.JSC$19926_postData_=null;_.b.JSC$19926_xmlHttp_=null;_.b.JSC$19926_xmlHttpChunkStart_=0;_.b.trident_=null;_.b.JSC$19926_verb_=null;_.b.JSC$19926_lastError_=null;_.b.JSC$19926_lastStatusCode_=-1;_.b.sendClose_=!0;
_.b.JSC$19926_cancelled_=!1;_.b.JSC$19926_readyStateChangeThrottleMs_=0;_.b.JSC$19926_readyStateChangeThrottle_=null;var NHu=function(O,x){switch(O){case 0:return"Non-200 return code ("+x+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},gqT={},$nX={};
Vv.prototype.setTimeout=function(O){this.timeout_=O};
var OdQ=function(O,x,e){O.JSC$19926_type_=1;O.JSC$19926_baseUri_=_.T5(x.clone());O.JSC$19926_postData_=e;O.decodeChunks_=!0;iLL(O,null)},xLQ=function(O,x,e,l,C){O.JSC$19926_type_=1;
O.JSC$19926_baseUri_=_.T5(x.clone());O.JSC$19926_postData_=null;O.decodeChunks_=e;C&&(O.sendClose_=!1);iLL(O,l)},iLL=function(O,x){O.JSC$19926_requestStartTime_=Date.now();
eVp(O);O.JSC$19926_requestUri_=O.JSC$19926_baseUri_.clone();LD(O.JSC$19926_requestUri_,"t",O.JSC$19924_retryId_);O.JSC$19926_xmlHttpChunkStart_=0;O.JSC$19926_xmlHttp_=O.JSC$19924_channel_.JSC$19933_createXhrIo(O.JSC$19924_channel_.JSC$19933_shouldUseSecondaryDomains()?x:null);O.JSC$19926_readyStateChangeThrottleMs_>0&&(O.JSC$19926_readyStateChangeThrottle_=new _.QI((0,_.z8)(O.JSC$19926_xmlHttpHandler_,O,O.JSC$19926_xmlHttp_),O.JSC$19926_readyStateChangeThrottleMs_));O.JSC$19924_eventHandler_.listen(O.JSC$19926_xmlHttp_,
"readystatechange",O.JSC$19926_readyStateChangeHandler_);x=O.JSC$19926_extraHeaders_?_.HX.clone(O.JSC$19926_extraHeaders_):{};O.JSC$19926_postData_?(O.JSC$19926_verb_="POST",x["Content-Type"]="application/x-www-form-urlencoded",O.JSC$19926_xmlHttp_.send(O.JSC$19926_requestUri_,O.JSC$19926_verb_,O.JSC$19926_postData_,x)):(O.JSC$19926_verb_="GET",O.sendClose_&&!_.gC&&(x.Connection="close"),O.JSC$19926_xmlHttp_.send(O.JSC$19926_requestUri_,O.JSC$19926_verb_,null,x));O.JSC$19924_channel_.notifyServerReachabilityEvent(1);
x=O.JSC$19924_channelDebug_;var e=O.JSC$19926_postData_;if(e){var l="";e=e.split("&");for(var C=0;C<e.length;C++){var Q=e[C].split("=");if(Q.length>1){var L=Q[0];Q=Q[1];var k=L.split("_");l=k.length>=2&&k[1]=="type"?l+(L+"="+Q+"&"):l+(L+"=redacted&")}}}else l=null;x.info("XMLHTTP REQ ("+O.JSC$19924_rid_+") [attempt "+O.JSC$19924_retryId_+"]: "+O.JSC$19926_verb_+"\n"+O.JSC$19926_requestUri_+"\n"+l)};
Vv.prototype.JSC$19926_readyStateChangeHandler_=function(O){O=O.target;var x=this.JSC$19926_readyStateChangeThrottle_;x&&_.aj(O)==3?(this.JSC$19924_channelDebug_.debug("Throttling readystatechange."),x.fire()):this.JSC$19926_xmlHttpHandler_(O)};
Vv.prototype.JSC$19926_xmlHttpHandler_=function(O){try{if(O==this.JSC$19926_xmlHttp_)a:{var x=_.aj(this.JSC$19926_xmlHttp_),e=this.JSC$19926_xmlHttp_.JSC$9791_lastErrorCode_,l=this.JSC$19926_xmlHttp_.getStatus();if(_.gC&&!_.$Q("420+")){if(x<4)break a}else if(x<3||x==3&&!this.JSC$19926_xmlHttp_.getResponseText())break a;this.JSC$19926_cancelled_||x!=4||e==7||(e==8||l<=0?this.JSC$19924_channel_.notifyServerReachabilityEvent(3):this.JSC$19924_channel_.notifyServerReachabilityEvent(2));lXL(this);var C=
this.JSC$19926_xmlHttp_.getStatus();this.JSC$19926_lastStatusCode_=C;var Q=this.JSC$19926_xmlHttp_.getResponseText();Q||this.JSC$19924_channelDebug_.debug("No response text for uri "+this.JSC$19926_requestUri_+" status "+C);this.JSC$19926_successful_=C==200;this.JSC$19924_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19924_rid_+") [ attempt "+this.JSC$19924_retryId_+"]: "+this.JSC$19926_verb_+"\n"+this.JSC$19926_requestUri_+"\n"+x+" "+C);if(this.JSC$19926_successful_){x==4&&C44(this);if(this.decodeChunks_){for(O=
!0;!this.JSC$19926_cancelled_&&this.JSC$19926_xmlHttpChunkStart_<Q.length;){var L=QVw(this,Q);if(L==$nX){x==4&&(this.JSC$19926_lastError_=4,ID(15),O=!1);bd$(this.JSC$19924_channelDebug_,this.JSC$19924_rid_,null,"[Incomplete Response]");break}else if(L==gqT){this.JSC$19926_lastError_=4;ID(16);bd$(this.JSC$19924_channelDebug_,this.JSC$19924_rid_,Q,"[Invalid Chunk]");O=!1;break}else bd$(this.JSC$19924_channelDebug_,this.JSC$19924_rid_,L,null),Tge(this,L)}x==4&&Q.length==0&&(this.JSC$19926_lastError_=
1,ID(17),O=!1);this.JSC$19926_successful_=this.JSC$19926_successful_&&O;O||(bd$(this.JSC$19924_channelDebug_,this.JSC$19924_rid_,Q,"[Invalid Chunked Response]"),C44(this),LPT(this))}else bd$(this.JSC$19924_channelDebug_,this.JSC$19924_rid_,Q,null),Tge(this,Q);this.JSC$19926_successful_&&!this.JSC$19926_cancelled_&&(x==4?this.JSC$19924_channel_.JSC$19933_onRequestComplete(this):(this.JSC$19926_successful_=!1,eVp(this)))}else C==400&&Q.indexOf("Unknown SID")>0?(this.JSC$19926_lastError_=3,ID(13),this.JSC$19924_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19924_rid_+")")):(this.JSC$19926_lastError_=0,ID(14),this.JSC$19924_channelDebug_.warning("XMLHTTP Bad status "+C+" ("+this.JSC$19924_rid_+")")),C44(this),LPT(this)}else this.JSC$19924_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(k){this.JSC$19924_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var QVw=function(O,x){var e=O.JSC$19926_xmlHttpChunkStart_,l=x.indexOf("\n",e);if(l==-1)return $nX;e=Number(x.substring(e,l));if(isNaN(e))return gqT;l+=1;if(l+e>x.length)return $nX;x=x.slice(l,l+e);O.JSC$19926_xmlHttpChunkStart_=l+e;return x};
Vv.prototype.cancel=function(){this.JSC$19926_cancelled_=!0;C44(this)};
var eVp=function(O){O.JSC$19926_watchDogTimeoutTime_=Date.now()+O.timeout_;kTX(O,O.timeout_)},kTX=function(O,x){if(O.JSC$19926_watchDogTimerId_!=null)throw Error("Pk");
O.JSC$19926_watchDogTimerId_=ZW((0,_.z8)(O.JSC$19926_onWatchDogTimeout_,O),x)},lXL=function(O){O.JSC$19926_watchDogTimerId_&&(_.CV.clearTimeout(O.JSC$19926_watchDogTimerId_),O.JSC$19926_watchDogTimerId_=null)};
Vv.prototype.JSC$19926_onWatchDogTimeout_=function(){this.JSC$19926_watchDogTimerId_=null;var O=Date.now();O-this.JSC$19926_watchDogTimeoutTime_>=0?(this.JSC$19924_channelDebug_.info("TIMEOUT: "+this.JSC$19926_requestUri_),this.JSC$19926_type_!=2&&this.JSC$19924_channel_.notifyServerReachabilityEvent(3),C44(this),this.JSC$19926_lastError_=2,ID(18),LPT(this)):(this.JSC$19924_channelDebug_.warning("WatchDog timer called too early"),kTX(this,this.JSC$19926_watchDogTimeoutTime_-O))};
var LPT=function(O){O.JSC$19924_channel_.JSC$19933_isClosed()||O.JSC$19926_cancelled_||O.JSC$19924_channel_.JSC$19933_onRequestComplete(O)},C44=function(O){lXL(O);
_.Lf(O.JSC$19926_readyStateChangeThrottle_);O.JSC$19926_readyStateChangeThrottle_=null;O.pollingTimer_.stop();O.JSC$19924_eventHandler_.removeAll();if(O.JSC$19926_xmlHttp_){var x=O.JSC$19926_xmlHttp_;O.JSC$19926_xmlHttp_=null;x.abort();x.dispose()}O.trident_&&(O.trident_=null)};
Vv.prototype.getLastError=function(){return this.JSC$19926_lastError_};
var Tge=function(O,x){try{O.JSC$19924_channel_.JSC$19933_onRequestData(O,x),O.JSC$19924_channel_.notifyServerReachabilityEvent(4)}catch(e){}};var bd$=function(O,x,e,l){var C=O.info;a:if(e&&e!="y2f%"){try{var Q=JSON.parse(e);if(Q)for(var L=0;L<Q.length;L++)if(Array.isArray(Q[L])){var k=Q[L];if(!(k.length<2)){var M=k[1];if(Array.isArray(M)&&!(M.length<1)){var G=M[0];if(G!="noop"&&G!="stop")for(var X=1;X<M.length;X++)M[X]=""}}}var y=(0,_.Rj)(Q);break a}catch(Z){O.debug("Exception parsing expected JS array - probably was not JS");y=e;break a}y=void 0}else y=e;C.call(O,"XMLHTTP TEXT ("+x+"): "+y+(l?" "+l:""))};
EV.prototype.debug=function(O){this.info(O)};
EV.prototype.info=function(){};
EV.prototype.warning=function(){};var AcT=function(O,x){this.JSC$19931_channel_=O;this.JSC$19931_channelDebug_=x;this.JSC$19931_parser_=new mKO};
_.b=AcT.prototype;_.b.JSC$19933_extraHeaders_=null;_.b.JSC$19933_request_=null;_.b.receivedIntermediateResult_=!1;_.b.JSC$19933_path_=null;_.b.state_=null;_.b.JSC$19933_lastStatusCode_=-1;_.b.JSC$19933_hostPrefix_=null;_.b.blockedPrefix_=null;
_.b.connect=function(O){this.JSC$19933_path_=O;O=MOh(this.JSC$19931_channel_,this.JSC$19933_path_);ID(3);Date.now();var x=this.JSC$19931_channel_.firstTestResults_;x!=null?(this.JSC$19933_hostPrefix_=x[0],(this.blockedPrefix_=x[1])?(this.state_=1,DLX(this)):(this.state_=2,GTY(this))):(LD(O,"MODE","init"),this.JSC$19933_request_=new Vv(this,this.JSC$19931_channelDebug_),this.JSC$19933_request_.JSC$19926_extraHeaders_=this.JSC$19933_extraHeaders_,xLQ(this.JSC$19933_request_,O,!1,null,!0),this.state_=
0)};
var DLX=function(O){var x=FPT(O.JSC$19931_channel_,O.blockedPrefix_,"/mail/images/cleardot.gif");_.T5(x);X8L(x.toString(),5E3,(0,_.z8)(O.checkBlockedCallback_,O),3,2E3);O.notifyServerReachabilityEvent(1)};
AcT.prototype.checkBlockedCallback_=function(O){if(O)this.state_=2,GTY(this);else{ID(4);var x=this.JSC$19931_channel_;x.JSC$19934_channelDebug_.debug("Test Connection Blocked");x.JSC$19938_lastStatusCode_=x.connectionTest_.JSC$19933_lastStatusCode_;pP(x,9)}O&&this.notifyServerReachabilityEvent(2)};
var GTY=function(O){O.JSC$19931_channelDebug_.debug("TestConnection: starting stage 2");var x=O.JSC$19931_channel_.secondTestResults_;x!=null?(O.JSC$19931_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+x?"Buffered":"Unbuffered"),ID(5),x?(ID(11),Xtp(O.JSC$19931_channel_,O,!1)):(ID(12),Xtp(O.JSC$19931_channel_,O,!0))):(O.JSC$19933_request_=new Vv(O,O.JSC$19931_channelDebug_),O.JSC$19933_request_.JSC$19926_extraHeaders_=O.JSC$19933_extraHeaders_,x=oaQ(O.JSC$19931_channel_,
O.JSC$19933_hostPrefix_,O.JSC$19933_path_),ID(5),LD(x,"TYPE","xmlhttp"),xLQ(O.JSC$19933_request_,x,!1,O.JSC$19933_hostPrefix_,!1))};
_.b=AcT.prototype;_.b.JSC$19933_createXhrIo=function(O){return this.JSC$19931_channel_.JSC$19933_createXhrIo(O)};
_.b.abort=function(){this.JSC$19933_request_&&(this.JSC$19933_request_.cancel(),this.JSC$19933_request_=null);this.JSC$19933_lastStatusCode_=-1};
_.b.JSC$19933_isClosed=function(){return!1};
_.b.JSC$19933_onRequestData=function(O,x){this.JSC$19933_lastStatusCode_=O.JSC$19926_lastStatusCode_;if(this.state_==0)if(this.JSC$19931_channelDebug_.debug("TestConnection: Got data for stage 1"),x){try{var e=this.JSC$19931_parser_.parse(x)}catch(l){ycL(this.JSC$19931_channel_,this);return}this.JSC$19933_hostPrefix_=e[0];this.blockedPrefix_=e[1]}else this.JSC$19931_channelDebug_.debug("TestConnection: Null responseText"),ycL(this.JSC$19931_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(ID(7),Date.now()):x=="11111"?(ID(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19933_lastStatusCode_=200,this.JSC$19933_request_.cancel(),this.JSC$19931_channelDebug_.debug("Test connection succeeded; using streaming connection"),ID(12),Xtp(this.JSC$19931_channel_,this,!0)):(ID(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.b.JSC$19933_onRequestComplete=function(){this.JSC$19933_lastStatusCode_=this.JSC$19933_request_.JSC$19926_lastStatusCode_;this.JSC$19933_request_.JSC$19926_successful_?this.state_==0?(this.JSC$19931_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,DLX(this)):(this.state_=2,GTY(this))):this.state_==2&&(this.JSC$19931_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19931_channelDebug_.debug("Test connection succeeded; using streaming connection"),
ID(12),Xtp(this.JSC$19931_channel_,this,!0)):(this.JSC$19931_channelDebug_.debug("Test connection failed; not using streaming"),ID(11),Xtp(this.JSC$19931_channel_,this,!1))):(this.JSC$19931_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?ID(9):this.state_==2&&ID(10),ycL(this.JSC$19931_channel_,this,this.JSC$19933_request_.getLastError()))};
_.b.JSC$19933_shouldUseSecondaryDomains=function(){return this.JSC$19931_channel_.JSC$19933_shouldUseSecondaryDomains()};
_.b.isActive=function(){return this.JSC$19931_channel_.isActive()};
_.b.notifyServerReachabilityEvent=function(O){this.JSC$19931_channel_.notifyServerReachabilityEvent(O)};var RD=function(O,x,e){this.state_=1;this.JSC$19934_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19934_channelDebug_=new EV;this.JSC$19934_parser_=new mKO;this.firstTestResults_=O||null;this.secondTestResults_=x!=null?x:null;this.asyncTest_=e||!1},ZdL=function(O,x){this.JSC$19936_mapId=O;
this.map=x;this.context=null};
_.b=RD.prototype;_.b.JSC$19938_extraHeaders_=null;_.b.JSC$19938_extraParams_=null;_.b.forwardChannelRequest_=null;_.b.JSC$19938_backChannelRequest_=null;_.b.JSC$19938_path_=null;_.b.JSC$19938_forwardChannelUri_=null;_.b.JSC$19938_backChannelUri_=null;_.b.JSC$19938_hostPrefix_=null;_.b.JSC$19938_nextRid_=0;_.b.JSC$19938_nextMapId_=0;_.b.handler_=null;_.b.JSC$19938_forwardChannelTimerId_=null;_.b.JSC$19938_backChannelTimerId_=null;_.b.JSC$19938_deadBackChannelTimerId_=null;_.b.connectionTest_=null;
_.b.useChunked_=null;_.b.JSC$19938_lastArrayId_=-1;_.b.JSC$19938_lastPostResponseArrayId_=-1;_.b.JSC$19938_lastStatusCode_=-1;_.b.JSC$19938_forwardChannelRetryCount_=0;_.b.JSC$19938_backChannelRetryCount_=0;_.b.JSC$19938_channelVersion_=8;var EaQ={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},tOT=function(O,x,e,l){_.Xz.call(this,"timingevent",O);this.size=x;this.rtt=e;this.retries=l};
_.fI(tOT,_.Xz);var qJL=function(O){_.Xz.call(this,"serverreachability",O)};
_.fI(qJL,_.Xz);RD.prototype.connect=function(O,x,e,l,C){this.JSC$19934_channelDebug_.debug("connect()");ID(0);this.JSC$19938_path_=x;this.JSC$19938_extraParams_=e||{};l&&C!==void 0&&(this.JSC$19938_extraParams_.OSID=l,this.JSC$19938_extraParams_.OAID=C);this.asyncTest_?(ZW((0,_.z8)(this.connectTest_,this,O),100),P4O(this)):this.connectTest_(O)};
RD.prototype.disconnect=function(){this.JSC$19934_channelDebug_.debug("disconnect()");ccT(this);if(this.state_==3){var O=this.JSC$19938_nextRid_++,x=this.JSC$19938_forwardChannelUri_.clone();_.lo(x,"SID",this.sid_);_.lo(x,"RID",O);_.lo(x,"TYPE","terminate");IXQ(this,x);O=new Vv(this,this.JSC$19934_channelDebug_,this.sid_,O);O.JSC$19926_type_=2;O.JSC$19926_baseUri_=_.T5(x.clone());(new Image).src=O.JSC$19926_baseUri_.toString();O.JSC$19926_requestStartTime_=Date.now();eVp(O)}VOL(this)};
RD.prototype.connectTest_=function(O){this.JSC$19934_channelDebug_.debug("connectTest_()");this.connectionTest_=new AcT(this,this.JSC$19934_channelDebug_);this.connectionTest_.JSC$19933_extraHeaders_=this.JSC$19938_extraHeaders_;this.connectionTest_.JSC$19931_parser_=this.JSC$19934_parser_;this.connectionTest_.connect(O)};
var P4O=function(O){O.JSC$19934_channelDebug_.debug("connectChannel_()");O.JSC$19938_ensureInState_(1,0);O.JSC$19938_forwardChannelUri_=MOh(O,O.JSC$19938_path_);ptL(O)},ccT=function(O){O.connectionTest_&&(O.connectionTest_.abort(),O.connectionTest_=null);
O.JSC$19938_backChannelRequest_&&(O.JSC$19938_backChannelRequest_.cancel(),O.JSC$19938_backChannelRequest_=null);O.JSC$19938_backChannelTimerId_&&(_.CV.clearTimeout(O.JSC$19938_backChannelTimerId_),O.JSC$19938_backChannelTimerId_=null);RVY(O);O.forwardChannelRequest_&&(O.forwardChannelRequest_.cancel(),O.forwardChannelRequest_=null);O.JSC$19938_forwardChannelTimerId_&&(_.CV.clearTimeout(O.JSC$19938_forwardChannelTimerId_),O.JSC$19938_forwardChannelTimerId_=null)},ULL=function(O,x){if(O.state_==0)throw Error("Sk");
O.JSC$19934_outgoingMaps_.length==1E3&&O.JSC$19934_parser_.stringify(x);O.JSC$19934_outgoingMaps_.push(new ZdL(O.JSC$19938_nextMapId_++,x));O.state_!=2&&O.state_!=3||ptL(O)};
RD.prototype.JSC$19933_isClosed=function(){return this.state_==0};
RD.prototype.getState=function(){return this.state_};
var ptL=function(O){O.forwardChannelRequest_||O.JSC$19938_forwardChannelTimerId_||(O.JSC$19938_forwardChannelTimerId_=ZW((0,_.z8)(O.JSC$19938_onStartForwardChannelTimer_,O),0),O.JSC$19938_forwardChannelRetryCount_=0)};
RD.prototype.JSC$19938_onStartForwardChannelTimer_=function(O){this.JSC$19938_forwardChannelTimerId_=null;aXu(this,O)};
var aXu=function(O,x){O.JSC$19934_channelDebug_.debug("startForwardChannel_");if(O.state_==1){if(!x){O.JSC$19934_channelDebug_.debug("open_()");O.JSC$19938_nextRid_=Math.floor(Math.random()*1E5);x=O.JSC$19938_nextRid_++;var e=new Vv(O,O.JSC$19934_channelDebug_,"",x);e.JSC$19926_extraHeaders_=O.JSC$19938_extraHeaders_;var l=mLL(O),C=O.JSC$19938_forwardChannelUri_.clone();_.lo(C,"RID",x);_.lo(C,"CVER","1");IXQ(O,C);OdQ(e,C,l);O.forwardChannelRequest_=e;O.state_=2}}else O.state_==3&&(x?sVT(O,x):O.JSC$19934_outgoingMaps_.length==
0?O.JSC$19934_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):O.forwardChannelRequest_||(sVT(O),O.JSC$19934_channelDebug_.debug("startForwardChannel_ finished, sent request")))},sVT=function(O,x){if(x)if(O.JSC$19938_channelVersion_>6){O.JSC$19934_outgoingMaps_=O.pendingMaps_.concat(O.JSC$19934_outgoingMaps_);
O.pendingMaps_.length=0;var e=O.JSC$19938_nextRid_-1;x=mLL(O)}else e=x.JSC$19924_rid_,x=x.JSC$19926_postData_;else e=O.JSC$19938_nextRid_++,x=mLL(O);var l=O.JSC$19938_forwardChannelUri_.clone();_.lo(l,"SID",O.sid_);_.lo(l,"RID",e);_.lo(l,"AID",O.JSC$19938_lastArrayId_);IXQ(O,l);e=new Vv(O,O.JSC$19934_channelDebug_,O.sid_,e,O.JSC$19938_forwardChannelRetryCount_+1);e.JSC$19926_extraHeaders_=O.JSC$19938_extraHeaders_;e.setTimeout(1E4+Math.round(1E4*Math.random()));O.forwardChannelRequest_=e;OdQ(e,l,
x)},IXQ=function(O,x){O.handler_&&(O=O.handler_.JSC$19945_getAdditionalParams())&&_.HX.forEach(O,function(e,l){_.lo(x,l,e)})},mLL=function(O){var x=Math.min(O.JSC$19934_outgoingMaps_.length,1E3),e=["count="+x];
if(O.JSC$19938_channelVersion_>6&&x>0){var l=O.JSC$19934_outgoingMaps_[0].JSC$19936_mapId;e.push("ofs="+l)}else l=0;for(var C={},Q=0;Q<x;C={mapId$jscomp$3:void 0},Q++){C.mapId$jscomp$3=O.JSC$19934_outgoingMaps_[Q].JSC$19936_mapId;var L=O.JSC$19934_outgoingMaps_[Q].map;C.mapId$jscomp$3=O.JSC$19938_channelVersion_<=6?Q:C.mapId$jscomp$3-l;try{_.HX.forEach(L,function(k){return function(M,G){e.push("req"+k.mapId$jscomp$3+"_"+G+"="+encodeURIComponent(M))}}(C))}catch(k){e.push("req"+C.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}O.pendingMaps_=O.pendingMaps_.concat(O.JSC$19934_outgoingMaps_.splice(0,x));
return e.join("&")},WPu=function(O){O.JSC$19938_backChannelRequest_||O.JSC$19938_backChannelTimerId_||(O.JSC$19938_backChannelAttemptId_=1,O.JSC$19938_backChannelTimerId_=ZW((0,_.z8)(O.JSC$19938_onStartBackChannelTimer_,O),0),O.JSC$19938_backChannelRetryCount_=0)},zVh=function(O){if(O.JSC$19938_backChannelRequest_||O.JSC$19938_backChannelTimerId_||O.JSC$19938_backChannelRetryCount_>=3)return!1;
O.JSC$19934_channelDebug_.debug("Going to retry GET");O.JSC$19938_backChannelAttemptId_++;O.JSC$19938_backChannelTimerId_=ZW((0,_.z8)(O.JSC$19938_onStartBackChannelTimer_,O),hVu(O,O.JSC$19938_backChannelRetryCount_));O.JSC$19938_backChannelRetryCount_++;return!0};
RD.prototype.JSC$19938_onStartBackChannelTimer_=function(){this.JSC$19938_backChannelTimerId_=null;this.JSC$19934_channelDebug_.debug("Creating new HttpRequest");this.JSC$19938_backChannelRequest_=new Vv(this,this.JSC$19934_channelDebug_,this.sid_,"rpc",this.JSC$19938_backChannelAttemptId_);this.JSC$19938_backChannelRequest_.JSC$19926_extraHeaders_=this.JSC$19938_extraHeaders_;this.JSC$19938_backChannelRequest_.JSC$19926_readyStateChangeThrottleMs_=0;var O=this.JSC$19938_backChannelUri_.clone();_.lo(O,
"RID","rpc");_.lo(O,"SID",this.sid_);_.lo(O,"CI",this.useChunked_?"0":"1");_.lo(O,"AID",this.JSC$19938_lastArrayId_);IXQ(this,O);_.lo(O,"TYPE","xmlhttp");xLQ(this.JSC$19938_backChannelRequest_,O,!0,this.JSC$19938_hostPrefix_,!1);this.JSC$19934_channelDebug_.debug("New Request created")};
var Xtp=function(O,x,e){O.JSC$19934_channelDebug_.debug("Test Connection Finished");O.useChunked_=O.secondTestResults_==null?e:!O.secondTestResults_;O.JSC$19938_lastStatusCode_=x.JSC$19933_lastStatusCode_;O.asyncTest_||P4O(O)},ycL=function(O,x){O.JSC$19934_channelDebug_.debug("Test Connection Failed");
O.JSC$19938_lastStatusCode_=x.JSC$19933_lastStatusCode_;pP(O,2)};
RD.prototype.JSC$19933_onRequestData=function(O,x){if(this.state_!=0&&(this.JSC$19938_backChannelRequest_==O||this.forwardChannelRequest_==O))if(this.JSC$19938_lastStatusCode_=O.JSC$19926_lastStatusCode_,this.forwardChannelRequest_==O&&this.state_==3)if(this.JSC$19938_channelVersion_>7){try{var e=this.JSC$19934_parser_.parse(x)}catch(l){e=null}if(Array.isArray(e)&&e.length==3)if(x=e,x[0]==0)a:if(this.JSC$19934_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19938_backChannelTimerId_)this.JSC$19934_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19938_backChannelRequest_)if(this.JSC$19938_backChannelRequest_.JSC$19926_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19926_requestStartTime_)RVY(this),this.JSC$19938_backChannelRequest_.cancel(),this.JSC$19938_backChannelRequest_=null;else break a;else this.JSC$19934_channelDebug_.warning("We do not have a BackChannel established");zVh(this);ID(19)}else this.JSC$19938_lastPostResponseArrayId_=x[1],O=this.JSC$19938_lastPostResponseArrayId_-this.JSC$19938_lastArrayId_,0<
O&&(x=x[2],this.JSC$19934_channelDebug_.debug(x+" bytes (in "+O+" arrays) are outstanding on the BackChannel"),x<37500&&this.useChunked_&&this.JSC$19938_backChannelRetryCount_==0&&!this.JSC$19938_deadBackChannelTimerId_&&(this.JSC$19938_deadBackChannelTimerId_=ZW((0,_.z8)(this.JSC$19938_onBackChannelDead_,this),6E3)));else this.JSC$19934_channelDebug_.debug("Bad POST response data returned"),pP(this,11)}else x!="y2f%"&&(this.JSC$19934_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
pP(this,11));else this.JSC$19938_backChannelRequest_==O&&RVY(this),_.AL(x)||(O=this.JSC$19934_parser_.parse(x),this.onInput_(O))};
RD.prototype.JSC$19938_onBackChannelDead_=function(){this.JSC$19938_deadBackChannelTimerId_!=null&&(this.JSC$19938_deadBackChannelTimerId_=null,this.JSC$19938_backChannelRequest_.cancel(),this.JSC$19938_backChannelRequest_=null,zVh(this),ID(20))};
var RVY=function(O){O.JSC$19938_deadBackChannelTimerId_!=null&&(_.CV.clearTimeout(O.JSC$19938_deadBackChannelTimerId_),O.JSC$19938_deadBackChannelTimerId_=null)};
RD.prototype.JSC$19933_onRequestComplete=function(O){this.JSC$19934_channelDebug_.debug("Request complete");if(this.JSC$19938_backChannelRequest_==O){RVY(this);this.JSC$19938_backChannelRequest_=null;var x=2}else if(this.forwardChannelRequest_==O)this.forwardChannelRequest_=null,x=1;else return;this.JSC$19938_lastStatusCode_=O.JSC$19926_lastStatusCode_;if(this.state_!=0)if(O.JSC$19926_successful_)if(x==1){x=O.JSC$19926_postData_?O.JSC$19926_postData_.length:0;O=Date.now()-O.JSC$19926_requestStartTime_;
var e=S2X;e.dispatchEvent(new tOT(e,x,O,this.JSC$19938_forwardChannelRetryCount_));ptL(this);this.handler_&&this.handler_.JSC$19945_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else WPu(this);else{e=O.getLastError();if(e==3||e==7||e==0&&this.JSC$19938_lastStatusCode_>0)this.JSC$19934_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19934_channelDebug_.debug("Maybe retrying, last error: "+NHu(e,this.JSC$19938_lastStatusCode_));var l;if(l=x==1)this.forwardChannelRequest_||
this.JSC$19938_forwardChannelTimerId_||this.state_==1||this.JSC$19938_forwardChannelRetryCount_>=2?l=!1:(this.JSC$19934_channelDebug_.debug("Going to retry POST"),this.JSC$19938_forwardChannelTimerId_=ZW((0,_.z8)(this.JSC$19938_onStartForwardChannelTimer_,this,O),hVu(this,this.JSC$19938_forwardChannelRetryCount_)),this.JSC$19938_forwardChannelRetryCount_++,l=!0);if(l||x==2&&zVh(this))return;this.JSC$19934_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19934_channelDebug_.debug("Error: HTTP request failed");
switch(e){case 1:pP(this,5);break;case 4:pP(this,10);break;case 3:pP(this,6);break;case 7:pP(this,12);break;default:pP(this,2)}}};
var hVu=function(O,x){var e=5E3+Math.floor(Math.random()*1E4);O.isActive()||(O.JSC$19934_channelDebug_.debug("Inactive channel"),e*=2);return e*x};
RD.prototype.onInput_=function(O){for(var x=0;x<O.length;x++){var e=O[x];this.JSC$19938_lastArrayId_=e[0];e=e[1];this.state_==2?e[0]=="c"?(this.sid_=e[1],this.JSC$19938_hostPrefix_=e[2],e=e[3],e!=null?this.JSC$19938_channelVersion_=e:this.JSC$19938_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19945_channelOpened(),this.JSC$19938_backChannelUri_=oaQ(this,this.JSC$19938_hostPrefix_,this.JSC$19938_path_),WPu(this)):e[0]=="stop"&&pP(this,7):this.state_==3&&(e[0]=="stop"?pP(this,7):
e[0]!="noop"&&this.handler_&&this.handler_.JSC$19945_channelHandleArray(e),this.JSC$19938_backChannelRetryCount_=0)}};
RD.prototype.JSC$19938_ensureInState_=function(O){if(!_.ur(arguments,this.state_))throw Error("Tk`"+this.state_);};
var pP=function(O,x){O.JSC$19934_channelDebug_.info("Error code "+x);if(x==2||x==9){var e=null;O.handler_&&(e=null);var l=(0,_.z8)(O.testGoogleComCallback_,O);e||(e=new _.K1("//www.google.com/images/cleardot.gif"),_.T5(e));F8p(e.toString(),1E4,l)}else ID(2);O.onError_(x)};
RD.prototype.testGoogleComCallback_=function(O){O?(this.JSC$19934_channelDebug_.info("Successfully pinged google.com"),ID(2)):(this.JSC$19934_channelDebug_.info("Failed to ping google.com"),ID(1),this.onError_(8))};
RD.prototype.onError_=function(O){this.JSC$19934_channelDebug_.debug("HttpChannel: error - "+O);this.state_=0;this.handler_&&this.handler_.JSC$19945_channelError(O);VOL(this);ccT(this)};
var VOL=function(O){O.state_=0;O.JSC$19938_lastStatusCode_=-1;if(O.handler_)if(O.pendingMaps_.length==0&&O.JSC$19934_outgoingMaps_.length==0)O.handler_.JSC$19945_channelClosed();else{O.JSC$19934_channelDebug_.debug("Number of undelivered maps, pending: "+O.pendingMaps_.length+", outgoing: "+O.JSC$19934_outgoingMaps_.length);var x=_.Bi(O.pendingMaps_),e=_.Bi(O.JSC$19934_outgoingMaps_);O.pendingMaps_.length=0;O.JSC$19934_outgoingMaps_.length=0;O.handler_.JSC$19945_channelClosed(x,e)}},MOh=function(O,
x){x=FPT(O,null,x);
O.JSC$19934_channelDebug_.debug("GetForwardChannelUri: "+x);return x},oaQ=function(O,x,e){x=FPT(O,O.JSC$19933_shouldUseSecondaryDomains()?x:null,e);
O.JSC$19934_channelDebug_.debug("GetBackChannelUri: "+x);return x},FPT=function(O,x,e){var l=_.xO(e);
if(l.JSC$10027_domain_!="")x&&_.ie(l,x+"."+l.JSC$10027_domain_),_.OS(l,l.JSC$10027_port_);else{var C=window.location;l=rDT(C.protocol,x?x+"."+C.hostname:C.hostname,+C.port,e)}O.JSC$19938_extraParams_&&_.HX.forEach(O.JSC$19938_extraParams_,function(Q,L){_.lo(l,L,Q)});
_.lo(l,"VER",O.JSC$19938_channelVersion_);IXQ(O,l);return l};
RD.prototype.JSC$19933_createXhrIo=function(O){if(O)throw Error("Qk");O=new _.UK;O.JSC$9791_withCredentials_=!1;return O};
RD.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
RD.prototype.notifyServerReachabilityEvent=function(O){var x=S2X;x.dispatchEvent(new qJL(x,O))};
RD.prototype.JSC$19933_shouldUseSecondaryDomains=function(){return!1};
new YSX;var rcL=function(){};
_.b=rcL.prototype;_.b.JSC$19945_channelOpened=function(){};
_.b.JSC$19945_channelHandleArray=function(){};
_.b.JSC$19945_channelSuccess=function(){};
_.b.JSC$19945_channelError=function(){};
_.b.JSC$19945_channelClosed=function(){};
_.b.JSC$19945_getAdditionalParams=function(){return{}};
_.b.isActive=function(){return!0};var HdL=function(O){O.front_.length===0&&(O.front_=O.back_,O.front_.reverse(),O.back_=[])};
_.b=yAQ.prototype;_.b.enqueue=function(O){this.back_.push(O)};
_.b.peek=function(){HdL(this);return _.zr(this.front_)};
_.b.getCount=function(){return this.front_.length+this.back_.length};
_.b.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.b.clear=function(){this.front_=[];this.back_=[]};
_.b.contains=function(O){return _.ur(this.front_,O)||_.ur(this.back_,O)};
_.b.remove=function(O){var x=this.front_;var e=Array.prototype.lastIndexOf.call(x,O,x.length-1);e>=0?(_.smr(x,e),x=!0):x=!1;return x||_.YW(this.back_,O)};
_.b.getValues=function(){for(var O=[],x=this.front_.length-1;x>=0;--x)O.push(this.front_[x]);x=this.back_.length;for(var e=0;e<x;++e)O.push(this.back_[e]);return O};var Us=function(O){this.JSC$19949_map_=new _.A5;this.size=0;O&&this.addAll(O)},KP4=function(O){var x=typeof O;
return x=="object"&&O||x=="function"?"o"+_.N$(O):x.charAt(0)+O};
_.b=Us.prototype;_.b.getCount=function(){return this.JSC$19949_map_.size};
_.b.add=function(O){this.JSC$19949_map_.set(KP4(O),O);this.size=this.JSC$19949_map_.size};
_.b.addAll=function(O){O=_.gF(O);for(var x=O.length,e=0;e<x;e++)this.add(O[e]);this.size=this.JSC$19949_map_.size};
_.b.removeAll=function(O){O=_.gF(O);for(var x=O.length,e=0;e<x;e++)this.remove(O[e]);this.size=this.JSC$19949_map_.size};
_.b.delete=function(O){O=this.JSC$19949_map_.remove(KP4(O));this.size=this.JSC$19949_map_.size;return O};
_.b.remove=function(O){return this.delete(O)};
_.b.clear=function(){this.JSC$19949_map_.clear();this.size=0};
_.b.isEmpty=function(){return this.JSC$19949_map_.size===0};
_.b.has=function(O){return this.JSC$19949_map_.containsKey(KP4(O))};
_.b.contains=function(O){return this.JSC$19949_map_.containsKey(KP4(O))};
_.b.getValues=function(){return this.JSC$19949_map_.getValues()};
_.b.values=function(){return this.JSC$19949_map_.values()};
_.b.clone=function(){return new Us(this)};
_.b.equals=function(O){return this.getCount()==h_L(O)&&dLe(this,O)};
var dLe=function(O,x){var e=h_L(x);if(O.getCount()>e)return!1;!(x instanceof Us)&&e>5&&(x=new Us(x));return z_Q(O,function(l){var C=x;return C.contains&&typeof C.contains=="function"?C.contains(l):C.containsValue&&typeof C.containsValue=="function"?C.containsValue(l):_.vi(C)||typeof C==="string"?_.ur(C,l):_.HX.containsValue(C,l)})};
Us.prototype.__iterator__=function(){return this.JSC$19949_map_.__iterator__(!1)};
Us.prototype[Symbol.iterator]=function(){return this.values()};var na$={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(O){return(this._clampValue(O)-this.min)/(this.max-this.min)},
_clampValue:function(O){return Math.min(this.max,Math.max(this.min,this._calcStep(O)))},
_calcStep:function(O){O=parseFloat(O);if(!this.step)return O;O=Math.round((O-this.min)/this.step);return this.step<1?O/(1/this.step)+this.min:O*this.step+this.min},
_validateValue:function(){var O=this._clampValue(this.value);this.value=this.oldValue=isNaN(O)?this.oldValue:O;return this.value!==O},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var u_Q;var YJX;_.tY({_template:function(){if(YJX!==void 0)return YJX;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;u_Q===void 0&&(u_Q=document.createElement("template"));var l=u_Q;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return YJX=O},
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(){_.A_(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(O){O.keyCode===27&&(O.preventDefault(),this.close())},
_track:function(O){if(!this.persistent&&!this.disableSwipe)switch(O.preventDefault(),O.detail.state){case "start":this._trackStart(O);break;case "track":this._trackMove(O);break;case "end":this._trackEnd(O)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var O=this.$.contentContainer.getBoundingClientRect();this._savedWidth=O.width;this._translateOffset=this.position==="left"?O.left:O.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(O){this._trackDetails&&(this._translateDrawer(O.detail.dx+this._translateOffset),this._trackDetails.push({dx:O.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(O){if(this._trackDetails){var x=O.detail.dx+this._translateOffset,e=this.getWidth();x=this.position==="left"?x>=0||x<=-e:x<=0||x>=e;if(!x){var l=this._trackDetails;this._trackDetails=null;this._flingDrawer(O,l);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}e/=2;O.detail.dx<-e?this.opened=this.position==="right":O.detail.dx>e&&(this.opened=this.position==="left");x?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(O,x){for(var e=Date.now(),l=e-100,C,Q=0,L=x.length-1;Q<=L;){var k=Q+L>>1,M=x[k];M.timeStamp>=l?(C=M,L=k-1):Q=k+1}return C?(O.detail.dx-C.dx)/(e-C.timeStamp||1):0},
_flingDrawer:function(O,x){x=this._calculateVelocity(O,x);if(!(Math.abs(x)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;O=O.detail.dx+this._translateOffset;var e=this.getWidth(),l=this.position==="left",C=x>0;C?(x=Math.max(x,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(x=Math.min(x,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");x=this._FLING_INITIAL_SLOPE*(!C&&l?-(O+e):C&&!l?e-O:-O)/x;this._styleTransitionDuration(x);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,x)}},
_styleTransitionDuration:function(O){this.style.transitionDuration=O+"ms";this.$.contentContainer.style.transitionDuration=O+"ms";this.$.scrim.style.transitionDuration=O+"ms"},
_styleTransitionTimingFunction:function(O){this.$.contentContainer.style.transitionTimingFunction=O;this.$.scrim.style.transitionTimingFunction=O},
_translateDrawer:function(O){var x=this.getWidth();this.position==="left"?(O=Math.max(-x,Math.min(O,0)),this.$.scrim.style.opacity=1+O/x):(O=Math.max(0,Math.min(O,x)),this.$.scrim.style.opacity=1-O/x);this.translate3d(O+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var O=this._drawerState;O===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;O!==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=""),O!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var O=_.G0(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"])');O.length>0?(this._firstTabStop=O[0],this._lastTabStop=O[O.length-1]):
this._lastTabStop=this._firstTabStop=null;(O=this.getAttribute("tabindex"))&&parseInt(O,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(O){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||O.keyCode!==9||(O.shiftKey?this._firstTabStop&&_.G0(O).localTarget===this._firstTabStop&&(O.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.G0(O).localTarget===this._lastTabStop&&(O.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(O,x){this.toggleClass("visible",O&&!x,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 BgL;var vaL;_.tY({_template:function(){if(vaL!==void 0)return vaL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;BgL===void 0&&(BgL=document.createElement("template"));var l=BgL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return vaL=O},
is:"tp-yt-paper-progress",behaviors:[na$],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(O){this.toggleClass("indeterminate",O,this.$.primaryProgress)},
_transformProgress:function(O,x){O.style.transform=O.style.webkitTransform="scaleX("+x/100+")"},
_mainRatioChanged:function(O){this._transformProgress(this.$.primaryProgress,O)},
_progressChanged:function(O,x,e,l,C){O=this._clampValue(O);x=this._clampValue(x);var Q=this._calcRatio(O)*100,L=this._calcRatio(x)*100;this._setSecondaryRatio(Q);this._transformProgress(this.$.secondaryProgress,Q);this._transformProgress(this.$.primaryProgress,L);this.secondaryProgress=O;C?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",x);this.setAttribute("aria-valuemin",e);this.setAttribute("aria-valuemax",l)},
_disabledChanged:function(O){this.setAttribute("aria-disabled",O?"true":"false")},
_hideSecondaryProgress:function(O){return O===0}});var fXL;var JcX;var wtX=function(){};
_.b=wtX.prototype;_.b.registered=function(){};
_.b.addOwnKeyBinding=function(){};
_.b.removeOwnKeyBindings=function(){};
_.b.keyboardEventMatchesKeys=function(){};
_.b._collectKeyBindings=function(){};
_.b._prepKeyBindings=function(){};
_.b._addKeyBinding=function(){};
_.b._resetKeyEventListeners=function(){};
_.b._listenKeyEventListeners=function(){};
_.b._unlistenKeyEventListeners=function(){};
_.b._onKeyBindingEvent=function(){};
_.b._triggerKeyHandler=function(){};
_.b._tapHandler=function(){};
_.b._focusChanged=function(){};
_.b._detectKeyboardFocus=function(){};
_.b._userActivate=function(){};
_.b._upHandler=function(){};
_.b._spaceKeyDownHandler=function(){};
_.b._spaceKeyUpHandler=function(){};
_.b._asyncClick=function(){};
_.b._pressedChanged=function(){};
_.b._ariaActiveAttributeChanged=function(){};
_.b._activeChanged=function(){};
_.b._controlStateChanged=function(){};
_.b._changedButtonState=function(){};
_.b._focusBlurHandler=function(){};
_.b._disabledChanged=function(){};
_.b._changedControlState=function(){};
_.b._buttonStateChanged=function(){};
_.b._downHandler=function(){};
_.b.ensureRipple=function(){};
_.b.getRipple=function(){};
_.b.hasRipple=function(){};
_.b._noinkChanged=function(){};
_.b._calcRatio=function(){};
_.b._clampValue=function(){};
_.b._calcStep=function(){};
_.b._validateValue=function(){};
_.b._update=function(){};
_.b._setImmediateValue=function(){};
_.b._setExpand=function(){};
_.b._setDragging=function(){};
_.b._setTransiting=function(){};
_.b._setMarkers=function(){};
_.b._setPressed=function(){};
_.b._setPointerDown=function(){};
_.b._setReceivedFocusFromKeyboard=function(){};
_.b._setFocused=function(){};
_.b._setRatio=function(){};
wtX=_.tY({_template:function(){if(JcX!==void 0)return JcX;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;fXL===void 0&&(fXL=document.createElement("template"));var l=fXL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return JcX=O},
is:"tp-yt-paper-slider",behaviors:[_.cg,_.R1,_.Bp2,na$],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&&_.Ja(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(O,x,e){this.setAttribute("aria-valuemin",x);this.setAttribute("aria-valuemax",e);this.setAttribute("aria-valuenow",O);this._positionKnob(this._calcRatio(O)*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(O){this._setImmediateValue(this._calcStep(this._calcKnobPosition(O)));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(O){return(this.max-this.min)*O/100+this.min},
_onTrack:function(O){O.stopPropagation();switch(O.detail.state){case "start":this._trackStart(O);break;case "track":this._trackX(O);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(O){this.dragging||this._trackStart(O);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,O.detail.dx*(this._isRTL?-1:1)));O=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(O);O=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(O+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var O=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;O.transform=O.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(O){this._expandKnob();O.preventDefault();this.focus()},
_bartrack:function(O){this._allowBarEvent(O)&&this._onTrack(O)},
_barclick:function(O){this._w=this.$.sliderBar.offsetWidth;var x=this.$.sliderBar.getBoundingClientRect();x=(O.detail.x-x.left)/this._w*100;this._isRTL&&(x=100-x);var e=this.ratio;this._setTransiting(!0);this._positionKnob(x);e===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
O.preventDefault();this.focus()},
_bardown:function(O){this._allowBarEvent(O)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(O))},
_knobTransitionEnd:function(O){O.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(O,x,e,l){l||this._setMarkers([]);x=Math.round((e-x)/this.step);x>O&&(x=O);if(x<0||!isFinite(x))x=0;this._setMarkers(Array(x))},
_mergeClasses:function(O){return Object.keys(O).filter(function(x){return O[x]}).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(O){return!this.ignoreBarTouch||O.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(O){this._isRTL?this._incrementKey(O):this._decrementKey(O)},
_rightKey:function(O){this._isRTL?this._decrementKey(O):this._incrementKey(O)},
_incrementKey:function(O){this.disabled||(O.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),O.preventDefault())},
_decrementKey:function(O){this.disabled||(O.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),O.preventDefault())},
_changeValue:function(O){this.value=O.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(O){O.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Y5d._createRipple.call(this)},
_focusedChanged:function(O){O&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=O?"":"none",this._ripple.holdDown=O)}});var SJT;var dze;var aD=null,nRQ=function(){};
_.b=nRQ.prototype;_.b.fit=function(){};
_.b._discoverInfo=function(){};
_.b.resetFit=function(){};
_.b.refit=function(){};
_.b.position=function(){};
_.b.constrain=function(){};
_.b._sizeDimension=function(){};
_.b.__sizeDimension=function(){};
_.b.center=function(){};
_.b.__getNormalizedRect=function(){};
_.b.__getOffscreenArea=function(){};
_.b.__getPosition=function(){};
_.b.notifyResize=function(){};
_.b.assignParentResizable=function(){};
_.b.stopResizeNotificationsFor=function(){};
_.b._subscribeIronResize=function(){};
_.b._unsubscribeIronResize=function(){};
_.b.resizerShouldNotify=function(){};
_.b._onDescendantIronResize=function(){};
_.b._fireResize=function(){};
_.b._onIronRequestResizeNotifications=function(){};
_.b._parentResizableChanged=function(){};
_.b._notifyDescendant=function(){};
_.b._requestResizeNotifications=function(){};
_.b._findParent=function(){};
_.b.toggle=function(){};
_.b.open=function(){};
_.b.close=function(){};
_.b.cancel=function(){};
_.b.invalidateTabbables=function(){};
_.b._ensureSetup=function(){};
_.b._canceledChanged=function(){};
_.b._withBackdropChanged=function(){};
_.b._prepareRenderOpened=function(){};
_.b._finishRenderOpened=function(){};
_.b._finishRenderClosed=function(){};
_.b._preparePositioning=function(){};
_.b._finishPositioning=function(){};
_.b._applyFocus=function(){};
_.b._onCaptureClick=function(){};
_.b._onCaptureFocus=function(){};
_.b._onCaptureEsc=function(){};
_.b._onCaptureTab=function(){};
_.b._onIronResize=function(){};
_.b._onNodesChange=function(){};
_.b.__ensureFirstLastFocusables=function(){};
_.b.__openedChanged=function(){};
_.b.__deraf=function(){};
_.b.__updateScrollObservers=function(){};
_.b.__addScrollListeners=function(){};
_.b.__removeScrollListeners=function(){};
_.b.__isValidScrollAction=function(){};
_.b.__onCaptureScroll=function(){};
_.b.__saveScrollPosition=function(){};
_.b.__restoreScrollPosition=function(){};
_.b._setCanceled=function(){};
nRQ=_.tY({_template:function(){if(dze!==void 0)return dze;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;SJT===void 0&&(SJT=document.createElement("template"));var l=SJT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);return dze=O},
is:"tp-yt-paper-toast",behaviors:[_.N_],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(){_.cP._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.f6.requestAvailability()},
show:function(O){typeof O=="string"&&(O={text:O});for(var x in O)x.indexOf("_")===0?_.cP._warn('The property "'+x+'" is private and was not set.'):x in this?this[x]=O[x]:_.cP._warn('The property "'+x+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(O){O&&O.target===this&&O.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(aD&&aD!==this&&aD.close(),aD=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):aD===this&&(aD=null);_.ja._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(O){this.positionTarget=O},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var usY=new _.$x("disablePersonalizationAction");var FnT=new _.$x("showDmaConsentFlowCommand");var XSw=new _.$x("showMmgNoticeCommand");var Yq$=new _.$x("saveConsentAction");var B6w=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nQ(O)};
_.c(B6w,_.TH);var vR4=_.Shw(B6w);var fLO=new _.$x("updateTopbarAvatarAction");var JML=new _.$x("channelHandleValidationResultRenderer");var wIQ=new _.$x("generateHandleFromNameResultRenderer");var SqO=new _.$x("channelHandleInputRenderer");var j0L=new _.$x("copyLinkRenderer");var N64=new _.$x("timedCommand");var gRX=new _.$x("clearCookieAction");var $zL=new _.$x("getMultiPageMenuAction");var izY=new _.$x("addToGuideSectionAction"),OgL=new _.$x("removeFromGuideSectionAction");var xPL=new _.$x("updateNotificationsUnseenCountAction");var eXT=new _.$x("resetChannelUnreadCountCommand");var lZe=new _.$x("resetSubscriptionsUnreadDotCommand");var C6p=new _.$x("selectLanguageCommand");var aOQ=new _.$x("sendFeedbackAction");var Q4L=new _.$x("uploadImageToScottyCommand");var bgh=new _.$x("registerPromoCommand");var TGw=new _.$x("setPushNotificationsEnabledCommand");var L0e=new _.$x("desktopTopbarRenderer");var kdp=new _.$x("surveyFollowUpRenderer");var AXL=new _.$x("handlesClaimingRadioOptionRenderer");var MVw=new _.$x("hotkeyDialogRenderer");var DPQ=new _.$x("modifyReportFormCommand");var GdT=new _.$x("accountLinkCommand");var F0O=new _.$x("accountUnlinkCommand");var X$L=new _.$x("logAccountLinkingEventCommand");var o64=new _.$x("guideCollapsibleEntryRenderer");var yXO=new _.$x("guideDownloadsEntryRenderer");var V1p=new _.$x("guideEntryRenderer");var ZgO=new _.$x("getLocationCommand");var E6e=new _.$x("locationCollectionCommand");var tVO=new _.$x("storiesItemViewModel");var qL4=new _.$x("addToRemoteQueueAction");var P6Y=new _.$x("insertInRemoteQueueAction");var cXu=new _.$x("removeFromRemoteQueueAction");var IZX=new _.$x("notificationRenderer");var i0X=new _.$x("localWatchHistoryCommand");var VVw=new _.$x("pdgBuyFlowHeaderRenderer");var p$p=new _.$x("pdgColorSliderRenderer");var RXL=new _.$x("pdgCommentOptionRenderer");var UPT=new _.$x("pdgCommentPreviewRenderer");var aZL=new _.$x("superVodSelectableItemButtonRenderer");var mPL=new _.$x("switchButtonRenderer");var s4Q=new _.$x("upsellDialogRenderer");var W0Q=new _.$x("feedbackQuestionRenderer"),hX4=new _.$x("feedbackOptionRenderer");var zXw=new _.$x("sponsorshipsTierRenderer"),rXu=new _.$x("sponsorshipsPromotionChannelRenderer");var HgT=new _.$x("simpleSurveyMessageRenderer");var agL=new _.$x("invokeInstrumentManagerAction");var K0L=new _.$x("logYpcFlowDismissCommand");var dPL=new _.$x("logYpcFlowStartCommand");var n6w=new _.$x("unlimitedCreateFamilyEndpoint");var uMT=new _.$x("iconBadgeRenderer");var O0e=new _.$x("collaborativePlaylistVisibilityValidationRule");var YL$=function(O){_.Xz.call(this,"channelMessage");this.message=O};
_.c(YL$,_.Xz);var BGO=function(O){_.Xz.call(this,"channelError");this.error=O};
_.c(BGO,_.Xz);var v6Y={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},fZX={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},JXY={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},w$X={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},SL$={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var mV=function(O){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 _.A5;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;O&&(this.id=O.id||O.name,this.name=O.name,this.clientName=O.clientName?O.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=O.app,this.type=O.type||"REMOTE_CONTROL",this.username=O.user||"",this.avatar=O.userAvatarUri||"",this.obfuscatedGaiaId=O.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=O.ownerObfuscatedGaiaId||"",this.castUserId=O.castUserId||"",this.theme=O.theme||"u",j4T(this,O.capabilities||""),NG4(this,
O.compatibleSenderThemes||""),g6p(this,O.experiments||""),this.remoteControllerUrl=O.remoteControllerUrl||"",this.localChannelEncryptionKey=O.localChannelEncryptionKey||"",this.deviceContext=O.deviceContext,this.brand=O.brand||"",this.model=O.model||"",this.year=O.year||0,this.os=O.os||"",this.osVersion=O.osVersion||"",this.chipset=O.chipset||"",this.mdxDialServerType=O.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=O.pairingType||"unknown",O=O.deviceInfo)&&(O=JSON.parse(O),this.brand=
O.brand||"",this.model=O.model||"",this.year=O.year||0,this.os=O.os||"",this.osVersion=O.osVersion||"",this.chipset=O.chipset||"",this.clientName=O.clientName?O.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=O.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
mV.prototype.copy=function(){var O={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&&(O.brand=this.brand);
this.model&&(O.model=this.model);this.year&&(O.year=this.year);this.os&&(O.os=this.os);this.osVersion&&(O.osVersion=this.osVersion);this.chipset&&(O.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(O.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(O.mdxDialServerType=this.mdxDialServerType);O=new mV(O);O.connected=this.connected;O.remoteControllerUrl=this.remoteControllerUrl;O.localChannelEncryptionKey=this.localChannelEncryptionKey;O.deviceContext=
this.deviceContext;O.castUserId=this.castUserId;return O};
mV.prototype.equals=function(O){return O?this.id==O.id:!1};
var j4T=function(O,x){O.capabilities.clear();_.wC(x.split(","),_.b_(_.HX.contains,v6Y)).forEach(function(e){O.capabilities.add(e)})},NG4=function(O,x){O.compatibleSenderThemes.clear();
_.wC(x.split(","),_.b_(_.HX.contains,fZX)).forEach(function(e){O.compatibleSenderThemes.add(e)})},g6p=function(O,x){O.experiments.clear();
x.split(",").forEach(function(e){O.experiments.add(e)})};_.fI(EpO,_.h0);_.b=EpO.prototype;_.b.JSC$19985_onTick_=function(){this.JSC$19983_interval_=Math.min(3E5,this.JSC$19983_interval_*2);this.JSC$19985_listener_();this.nextTickTime_&&this.start()};
_.b.start=function(){var O=this.JSC$19983_interval_+15E3*Math.random(),x=this.delay_;x.isActive()||x.start(O);this.nextTickTime_=Date.now()+O};
_.b.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.b.isActive=function(){return this.delay_.isActive()};
_.b.reset=function(){this.delay_.stop();this.JSC$19983_interval_=5E3};_.fI(tr,rcL);_.b=tr.prototype;_.b.subscribe=function(O,x,e){return this.pubsub_.subscribe(O,x,e)};
_.b.unsubscribe=function(O,x,e){return this.pubsub_.unsubscribe(O,x,e)};
_.b.unsubscribeByKey=function(O){return this.pubsub_.unsubscribeByKey(O)};
_.b.publish=function(O,x){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.b.dispose=function(){this.JSC$19986_disposed_||(this.JSC$19986_disposed_=!0,_.Lf(this.pubsub_),this.disconnect(),_.Lf(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19986_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.$7({})})};
_.b.isDisposed=function(){return this.JSC$19986_disposed_};
_.b.connect=function(O,x,e){var l=this,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return _.cO(M,2),l.useAsyncBrowserChannelHandler_?M.yield(l.connectPromise_,2):M.jumpTo(2);_.PO(M);if(l.JSC$19986_disposed_||l.JSC$19986_channel_&&l.JSC$19986_channel_.getState()==2)return M.return();l.sCookie_="";l.reconnectTimer_.stop();l.connectionParams_=O||null;l.connectUi_=x||0;C=l.JSC$19986_pathPrefix_+"/test";Q=l.JSC$19986_pathPrefix_+"/bind";L=new RD(e?e.firstTestResults:null,e?e.secondTestResults:null,
l.enableAsyncTest_);if(k=l.JSC$19986_channel_)k.handler_=null;L.handler_=l;l.JSC$19986_channel_=L;if(l.useAsyncBrowserChannelHandler_)return l.connectPromise_=$PL(l).then(function(){return igQ(l,C,Q,k,e)}),M.return(l.connectPromise_.then(function(){l.connectPromise_=_.$7()}));
igQ(l,C,Q,k,e);return _.Ia(M,0)})};
var igQ=function(O,x,e,l,C){ONp(O);if(O.JSC$19986_channel_){var Q=_.wz("ID_TOKEN"),L=O.JSC$19986_channel_.JSC$19938_extraHeaders_||{};Q?L["x-youtube-identity-token"]=Q:delete L["x-youtube-identity-token"];O.JSC$19986_channel_.JSC$19938_extraHeaders_=L}xeL(O);l?(l.getState(),O.JSC$19986_channel_.connect(x,e,O.defaultQueryParams_,l.sid_,l.JSC$19938_lastArrayId_)):C?O.JSC$19986_channel_.connect(x,e,O.defaultQueryParams_,C.sessionId,C.arrayId):O.JSC$19986_channel_.connect(x,e,O.defaultQueryParams_)};
tr.prototype.disconnect=function(O){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.$7())}finally{this.disconnectUi_=O||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),ONp(this),this.JSC$19986_channel_&&(this.JSC$19986_channel_.getState()==3&&aXu(this.JSC$19986_channel_),this.JSC$19986_channel_.disconnect()),this.disconnectUi_=0}};
tr.prototype.sendMessage=function(O,x){var e=this,l;return _.A(function(C){switch(C.nextAddress){case 1:_.cO(C,2);if(!e.useAsyncBrowserChannelHandler_){C.jumpTo(2);break}return C.yield(e.connectPromise_,2);case 2:_.PO(C);if(e.JSC$19986_disposed_)return C.return();l={_sc:O};x&&_.HX.extend(l,x);if(e.reconnectTimer_.isActive()||(e.JSC$19986_channel_?e.JSC$19986_channel_.getState():0)==2){e.JSC$19986_pendingMessages_.push(l);C.jumpTo(6);break}if(!e.isChannelOpened()){C.jumpTo(6);break}_.cO(C,8);if(!e.useAsyncBrowserChannelHandler_||
e$L(e,O)){C.jumpTo(8);break}return C.yield($PL(e),8);case 8:_.PO(C,0,0,1);e.isChannelOpened()&&(e$L(e,O)||xeL(e),ONp(e),ULL(e.JSC$19986_channel_,l));_.Ia(C,6,1);break;case 6:_.Ia(C,0)}})};
var e$L=function(O,x){return O.enableMdxAuthForConnectionOnly_?!0:O.disableMdxAuthForAdMessages_?Object.values(JXY).includes(x):O.disableMdxAuthForNonPlaybackMessages_?!Object.values(w$X).includes(x):O.disableMdxAuthForShortsMessages_?Object.values(SL$).includes(x):!1};
tr.prototype.JSC$19945_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19986_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)l_T(this);else{var O=this.JSC$19986_pendingMessages_;this.JSC$19986_pendingMessages_=[];var x=O.length;xeL(this);CEO(this,O,x);Qb4(this)}else Qb4(this)};
var l_T=function(O){var x,e;_.A(function(l){if(l.nextAddress==1)return _.cO(l,2),l.yield($PL(O),2);_.PO(l);x=O.JSC$19986_pendingMessages_;O.JSC$19986_pendingMessages_=[];e=x.length;CEO(O,x,e);Qb4(O);return _.Ia(l,0)})},CEO=function(O,x,e){for(var l=0;l<e;++l)ULL(O.JSC$19986_channel_,x[l]);
Qb4(O)},Qb4=function(O){O.publish("handlerOpened");
O.JSC$19986_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.b=tr.prototype;_.b.JSC$19945_channelError=function(O){var x=O==2&&this.JSC$19986_channel_.JSC$19938_lastStatusCode_==401;O==4||x||this.reconnectTimer_.start();this.publish("handlerError",O,x);x=Object.keys(EaQ).find(function(e){return EaQ[e]===O});
this.JSC$19986_channelErrorCounter.increment("BROWSER_CHANNEL",x!=null?x:"UNKNOWN")};
_.b.JSC$19945_channelClosed=function(O,x){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(x)for(var e=x.length,l=0;l<e;++l){var C=x[l].map;C&&this.JSC$19986_pendingMessages_.push(C)}this.JSC$19986_channelClosedCounter.increment("BROWSER_CHANNEL");O&&this.pendingMapsOnClosedCounter.JSC$9927_streamzService.JSC$9782_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",O.length);x&&this.undeliveredMapsOnClosedCounter.JSC$9930_streamzService.JSC$9782_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
x.length)};
_.b.JSC$19945_channelSuccess=function(O,x){x!=null&&O!=null&&this.channelMessageSentCounter.increment()};
_.b.JSC$19945_getAdditionalParams=function(){var O={v:2};this.sCookie_&&(O.gsessionid=this.sCookie_);this.connectUi_!=0&&(O.ui=""+this.connectUi_);this.disconnectUi_!=0&&(O.ui=""+this.disconnectUi_);this.connectionParams_&&_.HX.extend(O,this.connectionParams_);return O};
_.b.JSC$19945_channelHandleArray=function(O){O[0]=="S"?this.sCookie_=O[1]:O[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19986_channel_.disconnect()):this.publish("handlerMessage",new Z5u(O[0],O[1]));this.JSC$19986_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.b.isChannelOpened=function(){return!!this.JSC$19986_channel_&&this.JSC$19986_channel_.getState()==3};
var ONp=function(O){if(O.JSC$19986_channel_){var x=O.JSC$19986_getXsrfToken_(),e=O.JSC$19986_channel_.JSC$19938_extraHeaders_||{};x?e["x-youtube-lounge-xsrf-token"]=x:delete e["x-youtube-lounge-xsrf-token"];O.JSC$19986_channel_.JSC$19938_extraHeaders_=e}},$PL=function(O){if(O.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.$7();
if(!O.enableCachedUpdateAuthorizationHeader_)return bNp(O);O.updateAuthorizationHeaderPromise_===null&&(O.updateAuthorizationHeaderPromise_=bNp(O));return O.updateAuthorizationHeaderPromise_},bNp=function(O){return _.Ij(O.getAuthorizationHeader_().then(function(x){TeX(O,x)}).thenCatch(function(){}),function(){O.updateAuthorizationHeaderPromise_=null})},TeX=function(O,x){if(O.JSC$19986_channel_){var e=O.JSC$19986_channel_.JSC$19938_extraHeaders_||{};
x&&Object.keys(x).length>0?e=Object.assign({},e,x):delete e.Authorization;O.JSC$19986_channel_.JSC$19938_extraHeaders_=e}},xeL=function(O){O.getAuthorizationHeaderSync_&&!O.useAsyncBrowserChannelHandler_&&TeX(O,O.getAuthorizationHeaderSync_())};
_.b=tr.prototype;_.b.setLoungeToken=function(O){(this.defaultQueryParams_.loungeIdToken=O)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19986_channel_){var x=this.JSC$19986_channel_.JSC$19938_extraHeaders_||{};O?x["X-YouTube-LoungeId-Token"]=O:delete x["X-YouTube-LoungeId-Token"];this.JSC$19986_channel_.JSC$19938_extraHeaders_=x}};
_.b.getDeviceId=function(){return this.defaultQueryParams_.id};
_.b.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.b.reconnect=function(){var O=this.reconnectTimer_;O.delay_.fire();O.start()};
_.b.safeReconnect_=function(){var O=this.JSC$19986_channel_,x=0;O.JSC$19938_backChannelRequest_&&x++;O.forwardChannelRequest_&&x++;x==0&&this.connect(this.connectionParams_,this.connectUi_)};var RQ=function(O,x){var e=O.basePath;O.supportCors&&(e=O.scheme+"://"+O.domain+O.port+O.basePath);return _.bu(e+x,{})};
qa.prototype.sendRequest=function(O,x,e,l,C,Q,L){O={format:Q?"RAW":"JSON",method:O,context:this,timeout:5E3,withCredentials:!!L,onSuccess:_.b_(this.JSC$19991_onSuccess_,l,!Q),onError:_.b_(this.onError_,C),onTimeout:_.b_(this.JSC$19991_onTimeout_,C)};e&&(O.postParams=e,O.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.pb(x,O)};
qa.prototype.JSC$19991_onSuccess_=function(O,x,e,l){x?O(l):O({text:e.responseText})};
qa.prototype.onError_=function(O,x){O(Error("Uk`"+x.status))};
qa.prototype.JSC$19991_onTimeout_=function(O){O(Error("Vk"))};var cV=function(O,x){return!!x&&(O.id==x||O.uuid==x)},LTX=function(O){return{name:O.name,
screenId:O.id,loungeToken:O.token,dialId:O.uuid,screenIdType:O.idType}},kze=function(O){return new PV(O)},AHY=function(O){return Array.isArray(O)?_.Ku(O,kze):[]},awY=function(O){if(!O)return"null";
var x=O.token?".."+O.token.slice(-6):"-",e=O.uuid?".."+O.uuid.slice(-6):"-";return'{name:"'+O.name+'",id:'+O.id.substr(0,6)+"..,token:"+(x+",uuid:"+e+",idType:"+O.idType+"}")},lwT=function(O){return Array.isArray(O)?"["+_.Ku(O,awY).join(",")+"]":"null"};var H5L="",pJ=null;var JA4=function(O,x){_.tf.call(this);var e=this;this.handler=O();this.handler.subscribe("handlerOpened",this.JSC$19998_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(l,C){e.onError(C)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=x};
_.c(JA4,_.tf);_.b=JA4.prototype;_.b.connect=function(O,x,e){this.handler.connect(O,x,e)};
_.b.disconnect=function(O){this.handler.disconnect(O)};
_.b.reconnect=function(){this.handler.reconnect()};
_.b.getDeviceId=function(){return this.handler.getDeviceId()};
_.b.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.b.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.b.JSC$19998_onOpened=function(){this.dispatchEvent("channelOpened");var O=this.handler,x=this.currentScreenId;_.EA("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!O.JSC$19986_channel_.useChunked_,sessionId:O.JSC$19986_channel_.sid_,arrayId:O.JSC$19986_channel_.JSC$19938_lastArrayId_});_.EA("yt-remote-session-screen-id",x);O=mRL();x=stL();_.ur(O,x)||O.push(x);rAX(O);zjQ()};
_.b.onClosed=function(){this.dispatchEvent("channelClosed")};
_.b.onMessage=function(O){this.dispatchEvent(new YL$(O))};
_.b.onError=function(O){this.dispatchEvent(new BGO(O?1:0))};
_.b.sendMessage=function(O,x){this.handler.sendMessage(O,x)};
_.b.setLoungeToken=function(O){this.handler.setLoungeToken(O)};
_.b.dispose=function(){this.handler.dispose()};var fcQ=function(O,x,e){var l=this;e=e===void 0?function(){return""}:e;
var C=C===void 0?new BHw:C;var Q=Q===void 0?new _.UC:Q;this.pathPrefix=O;this.defaultQueryParams=x;this.getXsrfToken=e;this.JSC$20001_pubsub=Q;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new EpO(function(){var L;((L=l.channel)==null?void 0:ydX((new JdX(L,L.JSC$19909_channel_)).JSC$19919_channel_.forwardChannelRequestPool_))===0&&l.connect(l.connectionParams,l.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20001_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20001_channelOpenedCounter=new tRX;this.JSC$20001_channelClosedCounter=new q9Q;this.JSC$20001_channelMessageReceivedCounter=new cAp;this.JSC$20001_channelErrorCounter=new Ice};
fcQ.prototype.connect=function(O,x){O=O===void 0?{}:O;x=x===void 0?0:x;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=O,this.connectUi=x,MIL(this),(O=_.wz("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=O: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 c5(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,DeX(this))};
var DeX=function(O){_.ol(O.channel,"w",function(){O.channelState=3;O.reconnectTimer.reset();O.connectionParams=null;O.connectUi=0;for(var x=_.T(O.nonAckedMessagesOnChannelClosed),e=x.next();!e.done;e=x.next())e=e.value,O.channel&&O.channel.send(e);O.nonAckedMessagesOnChannelClosed=[];O.publish("webChannelOpened");O.JSC$20001_channelOpenedCounter.increment("WEB_CHANNEL")});
_.ol(O.channel,"x",function(){O.channelState=0;O.reconnectTimer.isActive()||O.publish("webChannelClosed");var x,e=(x=O.channel)==null?void 0:wrY(new JdX(x,x.JSC$19909_channel_));e&&(O.nonAckedMessagesOnChannelClosed=[].concat(_.Kx(e)));O.JSC$20001_channelClosedCounter.increment("WEB_CHANNEL")});
_.ol(O.channel,"z",function(x){var e=x.data;e[0]==="gracefulReconnect"?(O.reconnectTimer.start(),O.channel&&O.channel.close()):O.publish("webChannelMessage",new Z5u(e[0],e[1]));O.lastStatusCode=x.statusCode;O.JSC$20001_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.ol(O.channel,"y",function(){O.lastStatusCode===401||O.reconnectTimer.start();O.publish("webChannelError");O.JSC$20001_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.b=fcQ.prototype;_.b.disconnect=function(O){this.disconnectUi=O===void 0?0:O;this.reconnectTimer.stop();MIL(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.b.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.b.reconnect=function(){var O=this.reconnectTimer;O.delay_.fire();O.start()};
_.b.sendMessage=function(O,x){this.channel&&(MIL(this),O=Object.assign({},{_sc:O},x),this.channel.send(O))};
_.b.setLoungeToken=function(O){O||this.reconnectTimer.stop();O?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=O:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var MIL=function(O){var x=O.getXsrfToken();x?O.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=x:delete O.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.b=fcQ.prototype;_.b.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.b.publish=function(O){return this.JSC$20001_pubsub.publish.apply(this.JSC$20001_pubsub,[O].concat(_.Kx(_.vw.apply(1,arguments))))};
_.b.subscribe=function(O,x,e){return this.JSC$20001_pubsub.subscribe(O,x,e)};
_.b.unsubscribe=function(O,x,e){return this.JSC$20001_pubsub.unsubscribe(O,x,e)};
_.b.unsubscribeByKey=function(O){return this.JSC$20001_pubsub.unsubscribeByKey(O)};
_.b.dispose=function(){this.JSC$20001_disposed||(this.JSC$20001_disposed=!0,_.Lf(this.JSC$20001_pubsub),this.disconnect(),_.Lf(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.b.isDisposed=function(){return this.JSC$20001_disposed};var vp$=function(O){_.tf.call(this);this.webChannelService=O();this.webChannelService.subscribe("webChannelOpened",this.JSC$20009_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.c(vp$,_.tf);_.b=vp$.prototype;_.b.connect=function(O,x){this.webChannelService.connect(O,x)};
_.b.disconnect=function(O){this.webChannelService.disconnect(O)};
_.b.reconnect=function(){this.webChannelService.reconnect()};
_.b.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.b.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.b.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.b.JSC$20009_onOpened=function(){this.dispatchEvent("channelOpened")};
_.b.onClosed=function(){this.dispatchEvent("channelClosed")};
_.b.onMessage=function(O){this.dispatchEvent(new YL$(O))};
_.b.onError=function(){this.dispatchEvent(new BGO(this.webChannelService.lastStatusCode===401?1:0))};
_.b.sendMessage=function(O,x){this.webChannelService.sendMessage(O,x)};
_.b.setLoungeToken=function(O){this.webChannelService.setLoungeToken(O)};
_.b.dispose=function(){this.webChannelService.dispose()};var e2L=Date.now(),UV=null,OM$=Array(50),sV=-1,xSp=!1;_.fI(WV,_.HA);WV.prototype.getScreens=function(){return this.screens};
WV.prototype.contains=function(O){return!!acu(this.screens,O)};
WV.prototype.get=function(O){return O?IQ(this.screens,O):null};
var Gzw=function(O,x){var e=O.get(x.uuid)||O.get(x.id);if(e)return O=e.name,e.id=x.id||e.id,e.name=x.name,e.token=x.token,e.uuid=x.uuid||e.uuid,e.name!=O;O.screens.push(x);return!0},FTQ=function(O,x){var e=O.screens.length!=x.length;
O.screens=_.wC(O.screens,function(Q){return!!acu(x,Q)});
for(var l=x.length,C=0;C<l;C++)e=Gzw(O,x[C])||e;return e},XfY=function(O,x){var e=O.screens.length;
O.screens=_.wC(O.screens,function(l){return!(l||x?!l!=!x?0:l.id==x.id:1)});
return O.screens.length<e};
WV.prototype.info=function(O){aQ(this.JSC$20010_logName_,O)};var ovQ=function(O,x,e,l,C){_.HA.call(this);this.JSC$20013_http_=O;this.pairingCode_=x;this.deviceId_=e;this.friendlyName_=l;this.enableShortLivedLoungeToken_=C;this.pollIndex_=0;this.JSC$20013_xhr_=null;this.JSC$20013_timer_=NaN};
_.c(ovQ,_.HA);_.b=ovQ.prototype;_.b.start=function(){!this.JSC$20013_xhr_&&isNaN(this.JSC$20013_timer_)&&this.poll_()};
_.b.stop=function(){this.JSC$20013_xhr_&&(this.JSC$20013_xhr_.abort(),this.JSC$20013_xhr_=null);isNaN(this.JSC$20013_timer_)||(_.IO(this.JSC$20013_timer_),this.JSC$20013_timer_=NaN)};
_.b.disposeInternal=function(){this.stop();_.HA.prototype.disposeInternal.call(this)};
_.b.poll_=function(){this.JSC$20013_timer_=NaN;this.JSC$20013_xhr_=_.pb(RQ(this.JSC$20013_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.z8)(this.JSC$20015_onSuccess_,this),onError:(0,_.z8)(this.onError_,this),onTimeout:(0,_.z8)(this.JSC$20015_onTimeout_,this)})};
_.b.JSC$20015_onSuccess_=function(O,x){this.JSC$20013_xhr_=null;O=x.screen||{};O.dialId=this.deviceId_;O.name=this.friendlyName_;x=-1;this.enableShortLivedLoungeToken_&&O.shortLivedLoungeToken&&O.shortLivedLoungeToken.value&&O.shortLivedLoungeToken.refreshIntervalMs&&(O.screenIdType="shortLived",O.loungeToken=O.shortLivedLoungeToken.value,x=O.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new PV(O),x)};
_.b.onError_=function(O){this.JSC$20013_xhr_=null;O.status&&O.status==404?this.pollIndex_>=yHL.length?this.publish("pairingFailed",Error("Wk")):(O=yHL[this.pollIndex_],this.JSC$20013_timer_=_.qb((0,_.z8)(this.poll_,this),O),this.pollIndex_++):this.publish("pairingFailed",Error("Xk`"+O.status))};
_.b.JSC$20015_onTimeout_=function(){this.JSC$20013_xhr_=null;this.publish("pairingFailed",Error("Yk"))};
var yHL=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.fI(zh,WV);_.b=zh.prototype;_.b.start=function(){hr(this)&&this.publish("screenChange");!_.tU("yt-remote-lounge-token-expiration")&&ZNp(this);_.IO(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.qb((0,_.z8)(this.start,this),1E4)};
_.b.add=function(O,x){hr(this);Gzw(this,O);Evu(this,!1);this.publish("screenChange");x(O);O.token||ZNp(this)};
_.b.remove=function(O,x){var e=hr(this);XfY(this,O)&&(Evu(this,!1),e=!0);x(O);e&&this.publish("screenChange")};
_.b.updateName=function(O,x,e,l){var C=hr(this),Q=this.get(O.id);Q?(Q.name!=x&&(Q.name=x,Evu(this,!1),C=!0),e(O)):l(Error("Zk"));C&&this.publish("screenChange")};
_.b.disposeInternal=function(){_.IO(this.loungeTokenRefreshTimer_);zh.superClass_.disposeInternal.call(this)};
var ZNp=function(O){if(O.screens.length){var x=_.Ku(O.screens,function(l){return l.id}),e=RQ(O.JSC$20017_http_,"/pairing/get_lounge_token_batch");
O.JSC$20017_http_.sendRequest("POST",e,{screen_ids:x.join(",")},(0,_.z8)(O.handleLoungeTokens_,O),(0,_.z8)(O.handleLoungeTokenError_,O))}};
zh.prototype.handleLoungeTokens_=function(O){hr(this);var x=this.screens.length;O=O&&O.screens||[];for(var e=O.length,l=0;l<e;++l){var C=O[l],Q=this.get(C.screenId);Q&&(Q.token=C.loungeToken,--x)}Evu(this,!x);x&&aQ(this.JSC$20010_logName_,"Missed "+x+" lounge tokens.")};
zh.prototype.handleLoungeTokenError_=function(O){aQ(this.JSC$20010_logName_,"Requesting lounge tokens failed: "+O)};
var hr=function(O){if(_.t("deprecate_pair_servlet_enabled"))return FTQ(O,[]);var x=AHY(dR$());x=_.wC(x,function(e){return!e.uuid});
return FTQ(O,x)},Evu=function(O,x){uQw(_.Ku(O.screens,LTX));
x&&npL()};var ss=function(O,x){_.HA.call(this);this.getScreensToCheck_=x;x=(x=_.tU("yt-remote-online-screen-ids")||"")?x.split(","):[];for(var e={},l=this.getScreensToCheck_(),C=l.length,Q=0;Q<C;++Q){var L=l[Q].id;e[L]=_.ur(x,L)}this.screenIdSet_=e;this.JSC$20020_http_=O;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;tIQ("Initialized with "+(0,_.Rj)(this.screenIdSet_))};
_.c(ss,_.HA);ss.prototype.isOnline=function(O){return!!this.screenIdSet_[O]};
ss.prototype.start=function(){var O=parseInt(_.tU("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.vN()-144E5<O?0:O)?qjw(this):(this.fastCheckEndTime_=_.vN()+3E5,_.EA("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
ss.prototype.isEmpty=function(){return _.HX.isEmpty(this.screenIdSet_)};
ss.prototype.update=function(){tIQ("Updating availability on schedule.");var O=this.getScreensToCheck_(),x=_.HX.filter(this.screenIdSet_,function(e,l){return e&&!!IQ(O,l)},this);
PEQ(this,x)};
var cH$=function(O,x,e){var l=RQ(O.JSC$20020_http_,"/pairing/get_screen_availability");O.JSC$20020_http_.sendRequest("POST",l,{lounge_token:x.token},(0,_.z8)(function(C){C=C.screens||[];for(var Q=C.length,L=0;L<Q;++L)if(C[L].loungeToken==x.token){e(C[L].status=="online");return}e(!1)},O),(0,_.z8)(function(){e(!1)},O))};
ss.prototype.disposeInternal=function(){_.IO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.HA.prototype.disposeInternal.call(this)};
var PEQ=function(O,x){a:if(_.HX.getCount(x)!=_.HX.getCount(O.screenIdSet_))var e=!1;else{e=_.HX.getKeys(x);for(var l=e.length,C=0;C<l;++C)if(!O.screenIdSet_[e[C]]){e=!1;break a}e=!0}e||(tIQ("Updated online screens: "+(0,_.Rj)(O.screenIdSet_)),O.screenIdSet_=x,O.publish("screenChange"));I_4(O)},qjw=function(O){isNaN(O.refreshTimer_)||_.IO(O.refreshTimer_);
O.refreshTimer_=_.qb((0,_.z8)(O.requestScreenAvailability_,O),O.fastCheckEndTime_>0&&O.fastCheckEndTime_<_.vN()?2E4:1E4)};
ss.prototype.requestScreenAvailability_=function(){_.IO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var O=VI$(this);if(_.HX.getCount(O)){var x=RQ(this.JSC$20020_http_,"/pairing/get_screen_availability"),e={lounge_token:_.HX.getKeys(O).join(",")};this.currentRequest_=this.JSC$20020_http_.sendRequest("POST",x,e,(0,_.z8)(this.onScreenAvailability_,this,O),(0,_.z8)(this.onScreenAvailabilityError_,this))}else PEQ(this,{}),qjw(this)};
ss.prototype.onScreenAvailability_=function(O,x){this.currentRequest_=null;var e=_.HX.getKeys(VI$(this));if(_.g7(e,_.HX.getKeys(O))){x=x.screens||[];e={};for(var l=x.length,C=0;C<l;++C)e[O[x[C].loungeToken]]=x[C].status=="online";PEQ(this,e);qjw(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
ss.prototype.onScreenAvailabilityError_=function(O){this.warn_("Screen availability failed: "+O);this.currentRequest_=null;qjw(this)};
var tIQ=function(O){aQ("OnlineScreenService",O)};
ss.prototype.warn_=function(O){aQ("OnlineScreenService",O)};
var VI$=function(O){var x={};_.e3(O.getScreensToCheck_(),function(e){e.token?x[e.token]=e.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return x},I_4=function(O){O=_.HX.getKeys(_.HX.filter(O.screenIdSet_,function(x){return x}));
O.sort(_.rL8);O.length?_.EA("yt-remote-online-screen-ids",O.join(","),60):_.qw("yt-remote-online-screen-ids")};_.fI(rs,WV);_.b=rs.prototype;_.b.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.b.add=function(O,x,e){this.localScreenService_.add(O,x,e)};
_.b.remove=function(O,x,e){this.localScreenService_.remove(O,x,e);this.onlineScreenService_.update()};
_.b.updateName=function(O,x,e,l){this.localScreenService_.contains(O)?this.localScreenService_.updateName(O,x,e,l):(O="Updating name of unknown screen: "+O.name,aQ(this.JSC$20010_logName_,O),l(Error(O)))};
_.b.getScreens=function(O){return O?this.screens:LSQ(this.screens,_.wC(this.automaticScreens_,function(x){return!this.contains(x)},this))};
_.b.JSC$20025_getOnlineScreens=function(){return _.wC(this.getScreens(!0),function(O){return this.onlineScreenService_.isOnline(O.id)},this)};
var R$u=function(O,x,e,l,C,Q){O.info("getAutomaticScreenByIds "+e+" / "+x);e||(e=O.deviceToScreenId_[x]);var L=O.getScreens(),k=e?IQ(L,e):null;e&&(O.disableAutomaticScreenCache_||k)||(k=IQ(L,x));if(k){k.uuid=x;var M=W5(O,k);cH$(O.onlineScreenService_,M,function(G){C(G?M:null)})}else e?pfu(O,e,(0,_.z8)(function(G){var X=W5(this,new PV({name:l,
screenId:e,loungeToken:G,dialId:x||""}));cH$(this.onlineScreenService_,X,function(y){C(y?X:null)})},O),Q):C(null)};
rs.prototype.JSC$20025_getScreenByPollingPairingCode=function(O,x,e,l,C,Q){var L=this;this.info("getDialScreenByPairingCode "+O+" / "+x);var k=new ovQ(this.JSC$20023_http_,O,x,e,l);k.subscribe("pairingComplete",function(M,G){_.Lf(k);C(W5(L,M),G)});
k.subscribe("pairingFailed",function(M){_.Lf(k);Q(M)});
k.start();return(0,_.z8)(k.stop,k)};
var Ue$=function(O,x){for(var e=O.screens.length,l=0;l<e;++l)if(O.screens[l].name==x)return O.screens[l];return null};
rs.prototype.JSC$20025_getScreenByPairingCode=function(O,x,e,l){_.pb(RQ(this.JSC$20023_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:O},timeout:5E3,onSuccess:(0,_.z8)(function(C,Q){C=new PV(Q.screen||{});if(!C.name||Ue$(this,C.name)){a:{Q=C.name;for(var L=2,k=x(Q,L);Ue$(this,k);){L++;if(L>20)break a;k=x(Q,L)}Q=k}C.name=Q}e(W5(this,C))},this),
onError:(0,_.z8)(function(C){l(Error("$k`"+C.status))},this),
onTimeout:(0,_.z8)(function(){l(Error("al"))},this)})};
var a_$=function(O,x,e){cH$(O.onlineScreenService_,x,e)};
rs.prototype.disposeInternal=function(){_.Lf(this.localScreenService_);_.Lf(this.onlineScreenService_);rs.superClass_.disposeInternal.call(this)};
var pfu=function(O,x,e,l){O.info("requestLoungeToken_ for "+x);var C={postParams:{screen_ids:x},method:"POST",context:O,onSuccess:function(Q,L){Q=L&&L.screens||[];Q[0]&&Q[0].screenId==x?e(Q[0].loungeToken):l(Error("bl"))},
onError:function(){l(Error("cl"))}};
_.pb(RQ(O.JSC$20023_http_,"/pairing/get_lounge_token_batch"),C)},mep=function(O){O.screens=O.localScreenService_.getScreens();
for(var x=_.HX.transpose(O.deviceToScreenId_),e=O.screens.length,l=0;l<e;++l){var C=O.screens[l];C.uuid=x[C.id]||""}O.info("Updated manual screens: "+lwT(O.screens))};
rs.prototype.handleScreenChange_=function(){mep(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Ccw=function(O){sbL(O);O.localScreenService_=new zh(O.JSC$20023_http_);O.localScreenService_.subscribe("screenChange",(0,_.z8)(O.handleScreenChange_,O));mep(O);O.disableAutomaticScreenCache_||(O.automaticScreens_=AHY(_.tU("yt-remote-automatic-screen-cache")||[]));sbL(O);O.info("Initializing automatic screens: "+lwT(O.automaticScreens_));O.onlineScreenService_=new ss(O.JSC$20023_http_,(0,_.z8)(O.getScreens,O,!0));O.onlineScreenService_.subscribe("screenChange",(0,_.z8)(function(){this.publish("onlineScreenChange")},
O))},W5=function(O,x){var e=O.get(x.id);
e?(e.uuid=x.uuid,x=e):((e=IQ(O.automaticScreens_,x.uuid))?(e.id=x.id,e.token=x.token,x=e):O.automaticScreens_.push(x),O.disableAutomaticScreenCache_||WTw(O));sbL(O);O.deviceToScreenId_[x.uuid]=x.id;_.EA("yt-remote-device-id-map",O.deviceToScreenId_,31536E3);return x},WTw=function(O){O=_.wC(O.automaticScreens_,function(x){return x.idType!="shortLived"});
_.EA("yt-remote-automatic-screen-cache",_.Ku(O,LTX))},sbL=function(O){O.deviceToScreenId_=_.tU("yt-remote-device-id-map")||{}};
rs.prototype.dispose=rs.prototype.dispose;_.fI(HV,_.HA);var hm=function(O,x){O.screen_=x;O.publish("sessionScreen",O.screen_)},h$Y=function(O,x){O.screen_&&(O.screen_.token=x,W5(O.JSC$20027_screenService_,O.screen_));
O.publish("sessionScreen",O.screen_)};
HV.prototype.onSessionStopped=function(O){this.isDisposed()||(O&&(zN(this,""+O),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
HV.prototype.info=function(O){aQ(this.JSC$20027_logName_,O)};
var zN=function(O,x){aQ(O.JSC$20027_logName_,x)};
HV.prototype.JSC$20029_getCastSession=function(){return null};
HV.prototype.setDisplayStatus=function(O){var x=this.receiver_;O?(x.displayStatus=new chrome.cast.ReceiverDisplayStatus(O,[]),x.displayStatus.showStop=!0):x.displayStatus=null;chrome.cast.setReceiverDisplayStatus(x,(0,_.z8)(function(){this.info("Updated receiver status for "+x.friendlyName+": "+O)},this),(0,_.z8)(function(){zN(this,"Failed to update receiver status for: "+x.friendlyName)},this))};
HV.prototype.disposeInternal=function(){this.setDisplayStatus("");HV.superClass_.disposeInternal.call(this)};var rK=function(O,x,e){HV.call(this,O,x,"CastSession");var l=this;this.config_=e;this.JSC$20032_session_=null;this.JSC$20032_boundSessionUpdate_=(0,_.z8)(this.JSC$20034_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.z8)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.qb(function(){z$Y(l,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20032_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20032_isInitLoungeToken_=!1;this.JSC$20032_lastLoungeTokenRefreshError_="unknown"};
_.c(rK,HV);_.b=rK.prototype;
_.b.setCastSession=function(O){if(this.JSC$20032_session_){if(this.JSC$20032_session_==O)return;zN(this,"Overriding cast session with new session object");rHe(this);this.JSC$20032_isInitLoungeToken_=!1;this.JSC$20032_lastLoungeTokenRefreshError_="unknown";this.JSC$20032_session_.removeUpdateListener(this.JSC$20032_boundSessionUpdate_);this.JSC$20032_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20032_session_=O;this.JSC$20032_session_.addUpdateListener(this.JSC$20032_boundSessionUpdate_);this.JSC$20032_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);HNT(this,"getMdxSessionStatus")};
_.b.launchWithParams=function(O){this.info("launchWithParams no-op for Cast: "+(0,_.Rj)(O))};
_.b.stop=function(){if(this.JSC$20032_session_)this.JSC$20032_session_.stop((0,_.z8)(function(){this.onSessionStopped()},this),(0,_.z8)(function(){this.onSessionStopped(Error("dl"))},this));
else this.onSessionStopped(Error("el"))};
_.b.setDisplayStatus=function(){};
_.b.disposeInternal=function(){this.info("disposeInternal");rHe(this);this.JSC$20032_session_&&(this.JSC$20032_session_.removeUpdateListener(this.JSC$20032_boundSessionUpdate_),this.JSC$20032_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20032_session_=null;HV.prototype.disposeInternal.call(this)};
var deL=function(O,x){_.IO(O.getLoungeTokenTimeoutKey_);O.getLoungeTokenTimeoutKey_=0;x==0?KTh(O):O.getLoungeTokenTimeoutKey_=_.qb(function(){KTh(O)},x)},KTh=function(O){HNT(O,"getLoungeToken");
_.IO(O.onLoungeTokenTimeoutKey_);O.onLoungeTokenTimeoutKey_=_.qb(function(){nvL(O,null)},3E4)},HNT=function(O,x){O.info("sendYoutubeMessage_: "+x+" "+(0,_.Rj)(void 0));
var e={};e.type=x;O.JSC$20032_session_?O.JSC$20032_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",e,function(){},(0,_.z8)(function(){zN(this,"Failed to send message: "+x+".")},O)):zN(O,"Sending yt message without session: "+(0,_.Rj)(e))};
rK.prototype.onYoutubeMessage_=function(O,x){if(!this.isDisposed())if(x)if(x=(0,_.og)(x),_.w7(x))switch(O=""+x.type,x=x.data||{},this.info("onYoutubeMessage_: "+O+" "+(0,_.Rj)(x)),O){case "mdxSessionStatus":z$Y(this,x);break;case "loungeToken":nvL(this,x);break;default:zN(this,"Unknown youtube message: "+O)}else zN(this,"Unable to parse message.");else zN(this,"No data in message.")};
var uVL=function(O,x){if(x)O.info("onConnectedScreenId_: Received screenId: "+x),O.screen_&&O.screen_.id==x||O.getScreen_(x,function(e){hm(O,e)},function(){return O.onSessionStopped()},5);
else O.onSessionStopped(Error("fl"))},BeY=function(O,x,e){O.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(x));
var l=new PV(x);YjT(O,l,function(C){C?(O.JSC$20032_isInitLoungeToken_=!0,W5(O.JSC$20027_screenService_,l),hm(O,l),O.JSC$20032_lastLoungeTokenRefreshError_="unknown",deL(O,e)):(_.jS(Error("gl`"+JSON.stringify(x))),O.onSessionStopped())},5)},z$Y=function(O,x){_.IO(O.sessionStatusTimeoutKey_);
O.sessionStatusTimeoutKey_=0;if(x)O.config_.enableCastLoungeToken&&x.loungeToken?x.deviceId?O.screen_&&O.screen_.uuid==x.deviceId||(x.loungeTokenRefreshIntervalMs?BeY(O,{name:O.receiver_.friendlyName,screenId:x.screenId,loungeToken:x.loungeToken,dialId:x.deviceId,screenIdType:"shortLived"},x.loungeTokenRefreshIntervalMs):(_.jS(Error("il`"+JSON.stringify(x))),uVL(O,x.screenId))):(_.jS(Error("hl`"+JSON.stringify(x))),uVL(O,x.screenId)):uVL(O,x.screenId);else O.onSessionStopped(Error("fl"))},nvL=function(O,
x){_.IO(O.onLoungeTokenTimeoutKey_);
O.onLoungeTokenTimeoutKey_=0;var e=null;if(x)if(x.loungeToken){var l;((l=O.screen_)==null?void 0:l.token)==x.loungeToken&&(e="staleLoungeToken")}else e="missingLoungeToken";else e="noLoungeTokenResponse";e?(O.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(x)+", error: "+e)),O.JSC$20032_lastLoungeTokenRefreshError_=e,deL(O,3E4)):(h$Y(O,x.loungeToken),O.JSC$20032_isInitLoungeToken_=!1,O.JSC$20032_lastLoungeTokenRefreshError_="unknown",deL(O,x.loungeTokenRefreshIntervalMs))};
rK.prototype.getScreen_=function(O,x,e,l){_.IO(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;R$u(this.JSC$20027_screenService_,this.receiver_.label,O,this.receiver_.friendlyName,(0,_.z8)(function(C){C?x(C):l>=0?(zN(this,"Screen "+O+" appears to be offline. "+l+" retries left."),this.getScreenTimeoutKey_=_.qb((0,_.z8)(this.getScreen_,this,O,x,e,l-1),300)):e(Error("jl"))},this),e)};
var YjT=function(O,x,e,l){_.IO(O.JSC$20032_checkScreenAvailabilityTimeoutKey_);O.JSC$20032_checkScreenAvailabilityTimeoutKey_=0;a_$(O.JSC$20027_screenService_,x,function(C){C||l<0?e(C):O.JSC$20032_checkScreenAvailabilityTimeoutKey_=_.qb(function(){YjT(O,x,e,l-1)},300)})};
rK.prototype.JSC$20029_getCastSession=function(){return this.JSC$20032_session_};
rK.prototype.JSC$20034_onSessionUpdate_=function(O){this.isDisposed()||O||(zN(this,"Cast session died."),this.onSessionStopped())};
var rHe=function(O){_.IO(O.getScreenTimeoutKey_);O.getScreenTimeoutKey_=0;_.IO(O.JSC$20032_checkScreenAvailabilityTimeoutKey_);O.JSC$20032_checkScreenAvailabilityTimeoutKey_=0;_.IO(O.sessionStatusTimeoutKey_);O.sessionStatusTimeoutKey_=0;_.IO(O.onLoungeTokenTimeoutKey_);O.onLoungeTokenTimeoutKey_=0;_.IO(O.getLoungeTokenTimeoutKey_);O.getLoungeTokenTimeoutKey_=0};var H5=function(O,x,e,l){HV.call(this,O,x,"DialSession");this.config_=l;this.JSC$20036_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20036_theme_=e;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20036_deferredLaunchDeadlineTimer_=NaN;this.JSC$20036_boundSessionUpdate_=(0,_.z8)(this.JSC$20038_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20036_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20036_isInitLoungeToken_=!1;this.JSC$20036_lastLoungeTokenRefreshError_="unknown"};
_.c(H5,HV);H5.prototype.setCastSession=function(O){this.JSC$20036_session_=O;this.JSC$20036_session_.addUpdateListener(this.JSC$20036_boundSessionUpdate_)};
H5.prototype.launchWithParams=function(O){this.connectData_=O;this.deferredLaunch_()};
H5.prototype.stop=function(){vve(this);if(this.JSC$20036_session_)this.JSC$20036_session_.stop((0,_.z8)(this.onSessionStopped,this,null),(0,_.z8)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
H5.prototype.disposeInternal=function(){vve(this);this.JSC$20036_session_&&this.JSC$20036_session_.removeUpdateListener(this.JSC$20036_boundSessionUpdate_);this.JSC$20036_session_=null;HV.prototype.disposeInternal.call(this)};
var f_L=function(O){var x;return!!(O.config_.enableDialLoungeToken&&((x=O.JSC$20036_session_)==null?0:x.getDialAppInfo))},wfL=function(O){O.cancelPolling_=O.JSC$20027_screenService_.JSC$20025_getScreenByPollingPairingCode(O.reversePairingCode_,O.receiver_.label,O.receiver_.friendlyName,f_L(O),function(x,e){O.cancelPolling_=function(){};
O.JSC$20036_isInitLoungeToken_=!0;hm(O,x);x.idType=="shortLived"&&e>0&&JHL(O,e)},function(x){O.cancelPolling_=function(){};
O.onSessionStopped(x)})};
H5.prototype.JSC$20038_onSessionUpdate_=function(O){this.isDisposed()||O||(zN(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Sjp=function(O){var x={};x.pairingCode=O.reversePairingCode_;x.theme=O.JSC$20036_theme_;BYh()&&(x.env_useStageMdx=1);return _.RO(x)},jbL=function(O){return new Promise(function(x){O.reversePairingCode_=Rjp();
if(O.connectData_){var e=new chrome.cast.DialLaunchResponse(!0,Sjp(O));x(e);wfL(O)}else O.deferredLaunch_=function(){_.IO(O.JSC$20036_deferredLaunchDeadlineTimer_);O.deferredLaunch_=function(){};
O.JSC$20036_deferredLaunchDeadlineTimer_=NaN;var l=new chrome.cast.DialLaunchResponse(!0,Sjp(O));x(l);wfL(O)},O.JSC$20036_deferredLaunchDeadlineTimer_=_.qb(function(){O.deferredLaunch_()},100)})},gv4=function(O,x,e){O.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(x));
var l=new PV(x);return(new Promise(function(C){NeL(O,l,function(Q){Q?(O.JSC$20036_isInitLoungeToken_=!0,W5(O.JSC$20027_screenService_,l),hm(O,l),JHL(O,e)):_.jS(Error("ll`"+JSON.stringify(x)));C(Q)},5)})).then(function(C){return C?new chrome.cast.DialLaunchResponse(!1):jbL(O)})},$ep=function(O,x){var e=O.launchData_.receiver.label,l=O.receiver_.friendlyName;
return(new Promise(function(C){R$u(O.JSC$20027_screenService_,e,x,l,function(Q){Q&&Q.token&&hm(O,Q);C(Q)},function(Q){zN(O,"Failed to get DIAL screen: "+Q);
C(null)})})).then(function(C){return C&&C.token?new chrome.cast.DialLaunchResponse(!1):jbL(O)})},NeL=function(O,x,e,l){_.IO(O.JSC$20036_checkScreenAvailabilityTimeoutKey_);
O.JSC$20036_checkScreenAvailabilityTimeoutKey_=0;a_$(O.JSC$20027_screenService_,x,function(C){C||l<0?e(C):O.JSC$20036_checkScreenAvailabilityTimeoutKey_=_.qb(function(){NeL(O,x,e,l-1)},300)})},JHL=function(O,x){O.info("getDialAppInfoWithTimeout_ "+x);
f_L(O)&&(_.IO(O.getDialAppInfoTimeoutKey_),O.getDialAppInfoTimeoutKey_=0,x==0?iNL(O):O.getDialAppInfoTimeoutKey_=_.qb(function(){iNL(O)},x))},iNL=function(O){f_L(O)&&O.JSC$20036_session_.getDialAppInfo(function(x){O.info("getDialAppInfo dialLaunchData: "+JSON.stringify(x));
x=x.extraData||{};var e=null;if(x.loungeToken){var l;((l=O.screen_)==null?void 0:l.token)==x.loungeToken&&(e="staleLoungeToken")}else e="missingLoungeToken";e?(O.JSC$20036_lastLoungeTokenRefreshError_=e,JHL(O,3E4)):(O.JSC$20036_isInitLoungeToken_=!1,O.JSC$20036_lastLoungeTokenRefreshError_="unknown",h$Y(O,x.loungeToken),JHL(O,x.loungeTokenRefreshIntervalMs))},function(x){O.info("getDialAppInfo error: "+x);
O.JSC$20036_lastLoungeTokenRefreshError_="noLoungeTokenResponse";JHL(O,3E4)})},vve=function(O){_.IO(O.JSC$20036_checkScreenAvailabilityTimeoutKey_);
O.JSC$20036_checkScreenAvailabilityTimeoutKey_=0;_.IO(O.getDialAppInfoTimeoutKey_);O.getDialAppInfoTimeoutKey_=0;O.cancelPolling_();O.cancelPolling_=function(){};
_.IO(O.JSC$20036_deferredLaunchDeadlineTimer_)};var KP=function(O,x){HV.call(this,O,x,"ManualSession");this.JSC$20040_deferredLaunchDeadlineTimer_=_.qb((0,_.z8)(this.launchWithParams,this,null),150)};
_.c(KP,HV);KP.prototype.stop=function(){this.onSessionStopped()};
KP.prototype.setCastSession=function(){};
KP.prototype.launchWithParams=function(){_.IO(this.JSC$20040_deferredLaunchDeadlineTimer_);this.JSC$20040_deferredLaunchDeadlineTimer_=NaN;var O=IQ(this.JSC$20027_screenService_.getScreens(),this.receiver_.label);if(O)hm(this,O);else this.onSessionStopped(Error("ml"))};
KP.prototype.disposeInternal=function(){_.IO(this.JSC$20040_deferredLaunchDeadlineTimer_);this.JSC$20040_deferredLaunchDeadlineTimer_=NaN;HV.prototype.disposeInternal.call(this)};var uM=function(O,x){_.HA.call(this);this.config_=x;this.JSC$20043_screenService_=O;this.JSC$20043_appId_=x.appId||"233637DE";this.JSC$20043_theme_=x.theme||"cl";this.disableDial_=x.disableCastApi||!1;this.forceMirroring_=x.forceMirroring||!1;this.JSC$20043_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.z8)(this.onReceiverAction_,this)};
_.c(uM,_.HA);
uM.prototype.init=function(O,x){chrome.cast.timeout.requestSession=3E4;var e=new chrome.cast.SessionRequest(this.JSC$20043_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.t("desktop_enable_cast_connect")&&(e.androidReceiverCompatible=!0);this.disableDial_||(e.dialRequest=new chrome.cast.DialRequest("YouTube"));var l=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;O=O||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var C=(0,_.z8)(this.onReceiverUpdated_,
this);e=new chrome.cast.ApiConfig(e,(0,_.z8)(this.onSessionEstablished_,this),C,l,O);e.customDialLaunchCallback=(0,_.z8)(this.onDialLaunchRequested_,this);chrome.cast.initialize(e,(0,_.z8)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),gp4(),this.JSC$20043_screenService_.subscribe("onlineScreenChange",(0,_.z8)(this.JSC$20045_onScreenChange_,this)),this.customReceivers_=OBO(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.z8)(function(Q){this.warn_("Failed to set initial custom receivers: "+(0,_.Rj)(Q))},this)),this.publish("yt-remote-cast2-availability-change",xrQ(this)),x(!0))},this),(0,_.z8)(function(Q){this.warn_("Failed to initialize API: "+(0,_.Rj)(Q));
x(!1)},this))};
uM.prototype.setConnectedScreenStatus=function(O,x){dK("Setting connected screen ID: "+O+" -> "+x);if(this.JSC$20043_session_){var e=this.JSC$20043_session_.screen_;if(!O||e&&e.id!=O)dK("Unsetting old screen status: "+this.JSC$20043_session_.receiver_.friendlyName),nP(this,null)}if(O&&x){if(!this.JSC$20043_session_){O=IQ(this.JSC$20043_screenService_.getScreens(),O);if(!O){dK("setConnectedScreenStatus: Unknown screen.");return}if(O.idType=="shortLived"){dK("setConnectedScreenStatus: Screen with id type to be short lived.");
return}e=eGL(this,O);e||(dK("setConnectedScreenStatus: Connected receiver not custom..."),e=new chrome.cast.Receiver(O.uuid?O.uuid:O.id,O.name),e.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(e),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.z8)(function(l){this.warn_("Failed to set initial custom receivers: "+(0,_.Rj)(l))},this)));
dK("setConnectedScreenStatus: new active receiver: "+e.friendlyName);nP(this,new KP(this.JSC$20043_screenService_,e),!0)}this.JSC$20043_session_.setDisplayStatus(x)}else dK("setConnectedScreenStatus: no screen.")};
var eGL=function(O,x){return x?_.r7(O.customReceivers_,function(e){return cV(x,e.label)},O):null};
uM.prototype.setLaunchParams=function(O){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20043_session_?this.JSC$20043_session_.launchWithParams(O):this.warn_("Setting connection data without a session")};
uM.prototype.JSC$20045_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20043_session_?(this.JSC$20043_session_.stop(),nP(this,null)):dK("Stopping non-existing session")};
uM.prototype.requestSession=function(){chrome.cast.requestSession((0,_.z8)(this.onSessionEstablished_,this),(0,_.z8)(this.onSessionRequestFailed_,this))};
uM.prototype.disposeInternal=function(){this.JSC$20043_screenService_.unsubscribe("onlineScreenChange",(0,_.z8)(this.JSC$20045_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.YW(_.i8("yt.mdx.remote.debug.handlers_")||[],S9X);_.Lf(this.JSC$20043_session_);_.HA.prototype.disposeInternal.call(this)};
var dK=function(O){aQ("Controller",O)};
uM.prototype.warn_=function(O){aQ("Controller",O)};
var S9X=function(O){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(O)},xrQ=function(O){return O.hasCastReceiver_||!!O.customReceivers_.length||!!O.JSC$20043_session_},nP=function(O,x,e){x!=O.JSC$20043_session_&&(_.Lf(O.JSC$20043_session_),(O.JSC$20043_session_=x)?(e?O.publish("yt-remote-cast2-receiver-resumed",x.receiver_):O.publish("yt-remote-cast2-receiver-selected",x.receiver_),x.subscribe("sessionScreen",(0,_.z8)(O.onSessionScreen_,O,x)),x.subscribe("sessionFailed",
function(){return lx$(O,x)}),x.screen_?O.publish("yt-remote-cast2-session-change",x.screen_):e&&O.JSC$20043_session_.launchWithParams(null)):O.publish("yt-remote-cast2-session-change",null))},lx$=function(O,x){O.JSC$20043_session_==x&&O.publish("yt-remote-cast2-session-failed")};
_.b=uM.prototype;_.b.onSessionScreen_=function(O,x){this.JSC$20043_session_==O&&(x||nP(this,null),this.publish("yt-remote-cast2-session-change",x))};
_.b.onReceiverAction_=function(O,x){if(!this.isDisposed())if(O)switch(O.friendlyName=chrome.cast.unescape(O.friendlyName),dK("onReceiverAction_ "+O.label+" / "+O.friendlyName+"-- "+x),x){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20043_session_)if(this.JSC$20043_session_.receiver_.label!=O.label)dK("onReceiverAction_: Stopping active receiver: "+this.JSC$20043_session_.receiver_.friendlyName),this.JSC$20043_session_.stop();else{dK("onReceiverAction_: Casting to active receiver.");this.JSC$20043_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20043_session_.screen_);break}switch(O.receiverType){case chrome.cast.ReceiverType.CUSTOM:nP(this,new KP(this.JSC$20043_screenService_,O));break;case chrome.cast.ReceiverType.DIAL:nP(this,new H5(this.JSC$20043_screenService_,O,this.JSC$20043_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:nP(this,new rK(this.JSC$20043_screenService_,O,this.config_));break;default:this.warn_("Unknown receiver type: "+O.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20043_session_&&
this.JSC$20043_session_.receiver_.label==O.label?this.JSC$20043_session_.stop():this.warn_("Stopping receiver w/o session: "+O.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.b.onDialLaunchRequested_=function(O){if(this.isDisposed())return Promise.reject(Error("nl"));var x=O.receiver;x.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+x.friendlyName),x.receiverType=chrome.cast.ReceiverType.DIAL);var e=this.JSC$20043_session_?this.JSC$20043_session_.receiver_:null;if(!e||e.label!=x.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+x.friendlyName),Promise.reject(Error("ol"));if(e&&e.label==x.label&&e.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20043_session_.screen_)return dK("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20043_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+e.receiverType+'" to "dial" for '+x.friendlyName);nP(this,new H5(this.JSC$20043_screenService_,x,this.JSC$20043_theme_,this.config_))}x=this.JSC$20043_session_;x.launchData_=O;x.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(O=x.launchData_.extraData||{},e=O.screenId||null,f_L(x)&&O.loungeToken?O.loungeTokenRefreshIntervalMs?O=gv4(x,{name:x.receiver_.friendlyName,screenId:O.screenId,loungeToken:O.loungeToken,dialId:x.launchData_.receiver.label,screenIdType:"shortLived"},O.loungeTokenRefreshIntervalMs):(_.jS(Error("kl`"+JSON.stringify(O))),O=$ep(x,e)):O=$ep(x,e)):O=jbL(x);return O};
_.b.onSessionEstablished_=function(O){var x=this;if(!this.isDisposed()&&!this.forceMirroring_){dK("New cast session ID: "+O.sessionId);var e=O.receiver;if(e.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20043_session_)if(e.receiverType==chrome.cast.ReceiverType.CAST)dK("Got resumed cast session before resumed mdx connection."),e.friendlyName=chrome.cast.unescape(e.friendlyName),nP(this,new rK(this.JSC$20043_screenService_,e,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var l=this.JSC$20043_session_.receiver_,C=IQ(this.JSC$20043_screenService_.getScreens(),l.label);C&&cV(C,e.label)&&l.receiverType!=chrome.cast.ReceiverType.CAST&&e.receiverType==chrome.cast.ReceiverType.CAST&&(dK("onSessionEstablished_: manual to cast session change "+e.friendlyName),_.Lf(this.JSC$20043_session_),this.JSC$20043_session_=new rK(this.JSC$20043_screenService_,e,this.config_),this.JSC$20043_session_.subscribe("sessionScreen",(0,_.z8)(this.onSessionScreen_,this,this.JSC$20043_session_)),
this.JSC$20043_session_.subscribe("sessionFailed",function(){return lx$(x,x.JSC$20043_session_)}),this.JSC$20043_session_.launchWithParams(null));
this.JSC$20043_session_.setCastSession(O)}}};
_.b.JSC$20045_getCastSession=function(){return this.JSC$20043_session_?this.JSC$20043_session_.JSC$20029_getCastSession():null};
_.b.onSessionRequestFailed_=function(O){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Rj)(O)),O.code!=chrome.cast.ErrorCode.CANCEL&&nP(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.b.onReceiverUpdated_=function(O){dK("Receiver availability updated: "+O);if(!this.isDisposed()){var x=xrQ(this);this.hasCastReceiver_=O==chrome.cast.ReceiverAvailability.AVAILABLE;xrQ(this)!=x&&this.publish("yt-remote-cast2-availability-change",xrQ(this))}};
var OBO=function(O){var x=O.JSC$20043_screenService_.JSC$20025_getOnlineScreens(),e=O.JSC$20043_session_&&O.JSC$20043_session_.receiver_;O=_.Ku(x,function(l){e&&cV(l,e.label)&&(e=null);var C=l.uuid?l.uuid:l.id,Q=eGL(this,l);Q?(Q.label=C,Q.friendlyName=l.name):(Q=new chrome.cast.Receiver(C,l.name),Q.receiverType=chrome.cast.ReceiverType.CUSTOM);return Q},O);
e&&(e.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(e=new chrome.cast.Receiver(e.label,e.friendlyName),e.receiverType=chrome.cast.ReceiverType.CUSTOM),O.push(e));return O};
uM.prototype.JSC$20045_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=OBO(this),dK("Updating custom receivers: "+(0,_.Rj)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.z8)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",xrQ(this)))};
uM.prototype.setLaunchParams=uM.prototype.setLaunchParams;uM.prototype.setConnectedScreenStatus=uM.prototype.setConnectedScreenStatus;uM.prototype.stopSession=uM.prototype.JSC$20045_stopSession;uM.prototype.getCastSession=uM.prototype.JSC$20045_getCastSession;uM.prototype.requestSession=uM.prototype.requestSession;uM.prototype.init=uM.prototype.init;uM.prototype.dispose=uM.prototype.dispose;var CpO=_.zo(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),PcL=[],MK$=_.on(CpO);var QBL=function(O){O.audioTrackId=null;O.trackData=null;O.playerState=-1;O.hasPrevious=!1;O.hasNext=!1;O.playerTime_=0;O.playerTimeAt_=_.vN();O.seekableStart_=0;O.seekableEnd_=0;O.duration_=0;O.loadedTime=0;O.liveIngestionTime_=NaN;O.isLive_=!1};
_.b=Yt.prototype;
_.b.reset=function(O){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;O&&(this.index=O.index,this.listId=O.listId,this.videoId=O.videoId,this.playerState=O.playerState,this.volume=O.volume,this.muted=O.muted,this.audioTrackId=O.audioTrackId,this.trackData=O.trackData,this.hasPrevious=O.hasPrevious,this.hasNext=O.hasNext,this.playerTime_=O.playerTime,this.playerTimeAt_=O.playerTimeAt,this.seekableStart_=O.seekableStart,this.seekableEnd_=O.seekableEnd,this.duration_=O.duration,this.loadedTime=
O.loadedTime,this.liveIngestionTime_=O.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.b.stopPlayer=function(){this.index=-1;this.videoId="";QBL(this)};
_.b.isPlaying=function(){return this.playerState==1};
_.b.isBuffering=function(){return this.playerState==3};
_.b.isAdPlaying=function(){return this.playerState==1081};
var u1=function(O,x){O.playerTime_=x;O.playerTimeAt_=_.vN()},bBL=function(O){switch(O.playerState){case 1:case 1081:return(_.vN()-O.playerTimeAt_)/1E3+O.playerTime_;
case -1E3:return 0}return O.playerTime_};
Yt.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.vN()-this.playerTimeAt_)/1E3:0):this.duration_};
var TIw=function(O,x,e){var l=O.videoId;O.videoId=x;O.index=e;x!=l&&QBL(O)},LM4=function(O){var x={};
x.index=O.index;x.listId=O.listId;x.videoId=O.videoId;x.playerState=O.playerState;x.volume=O.volume;x.muted=O.muted;x.audioTrackId=O.audioTrackId;x.trackData=_.HX.unsafeClone(O.trackData);x.hasPrevious=O.hasPrevious;x.hasNext=O.hasNext;x.playerTime=O.playerTime_;x.playerTimeAt=O.playerTimeAt_;x.seekableStart=O.seekableStart_;x.seekableEnd=O.seekableEnd_;x.duration=O.duration_;x.loadedTime=O.loadedTime;x.liveIngestionTime=O.liveIngestionTime_;return x};
Yt.prototype.clone=function(){return new Yt(LM4(this))};var Na=function(O,x){_.HA.call(this);var e=this;this.state_=0;this.connection_=O;this.contextSubscriptions_=[];this.actionQueue_=new yAQ;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.z8)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.z8)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.z8)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.z8)(this.onCloudviewAvailabilityChange_,this);var l=0;O?(l=O.getProxyState(),
l!=3&&(O.subscribe("proxyStateChange",this.setState_,this),ki4(this))):l=3;l!=0&&(x?this.setState_(l):_.qb(function(){e.setState_(l)},0));
(O=pbO())&&AbY(this,O);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.c(Na,_.HA);Na.prototype.getState=function(){return this.state_};
Na.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Na.prototype.reconnect=function(){this.connection_.reconnect()};
var YJ=function(O){return new Yt(O.connection_.getPlayerContextData())};
_.b=Na.prototype;_.b.play=function(){B5(this)?(this.castMedia_?this.castMedia_.play(null,_.Fb,MHT(this,"play")):v5(this,"play"),DrT(this,1,bBL(YJ(this))),this.publish("remotePlayerChange")):fP(this,this.play)};
_.b.pause=function(){B5(this)?(this.castMedia_?this.castMedia_.pause(null,_.Fb,MHT(this,"pause")):v5(this,"pause"),DrT(this,2,bBL(YJ(this))),this.publish("remotePlayerChange")):fP(this,this.pause)};
_.b.seekTo=function(O){if(B5(this)){if(this.castMedia_){var x=YJ(this),e=new chrome.cast.media.SeekRequest;e.currentTime=O;x.isPlaying()||x.isBuffering()?e.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:e.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(e,_.Fb,MHT(this,"seekTo",{newTime:O}))}else v5(this,"seekTo",{newTime:O});DrT(this,3,O);this.publish("remotePlayerChange")}else fP(this,_.b_(this.seekTo,O))};
_.b.stop=function(){if(B5(this)){this.castMedia_?this.castMedia_.stop(null,_.Fb,MHT(this,"stopVideo")):v5(this,"stopVideo");var O=YJ(this);O.stopPlayer();Jm(this,O);this.publish("remotePlayerChange")}else fP(this,this.stop)};
_.b.setVolume=function(O,x){if(B5(this)){var e=YJ(this);if(this.castSession_){if(e.volume!=O){var l=Math.round(O)/100;this.castSession_.setReceiverVolumeLevel(l,(0,_.z8)(function(){m$("set receiver volume: "+l)},this),(0,_.z8)(function(){this.warn_("failed to set receiver volume.")},this))}e.muted!=x&&this.castSession_.setReceiverMuted(x,(0,_.z8)(function(){m$("set receiver muted: "+x)},this),(0,_.z8)(function(){this.warn_("failed to set receiver muted.")},this))}else{var C={volume:O,
muted:x};e.volume!=-1&&(C.delta=O-e.volume);v5(this,"setVolume",C)}e.muted=x;e.volume=O;Jm(this,e)}else fP(this,_.b_(this.setVolume,O,x))};
_.b.setAudioTrack=function(O,x){B5(this)?(x=x.getLanguageInfo().getId(),v5(this,"setAudioTrack",{videoId:O,audioTrackId:x}),O=YJ(this),O.audioTrackId=x,Jm(this,O)):fP(this,_.b_(this.setAudioTrack,O,x))};
_.b.addVideo=function(O){B5(this)?v5(this,"addVideo",{videoId:O}):fP(this,_.b_(this.addVideo,O))};
_.b.addPlaylist=function(O){B5(this)?v5(this,"addVideos",{listId:O}):fP(this,_.b_(this.addPlaylist,O))};
_.b.addVideos=function(O){O.length==0?this.warn_("Ignore add videos request due to empty list"):B5(this)?v5(this,"addVideos",{videoIds:O.join(",")}):fP(this,_.b_(this.addVideos,O))};
_.b.JSC$20055_removeVideo=function(O){B5(this)?v5(this,"removeVideo",{videoId:O}):fP(this,_.b_(this.JSC$20055_removeVideo,O))};
_.b.JSC$20055_insertVideo=function(O){B5(this)?v5(this,"insertVideo",{videoId:O}):fP(this,_.b_(this.JSC$20055_insertVideo,O))};
_.b.playVideo=function(O,x,e,l,C,Q,L){l=l===void 0?null:l;C=C===void 0?null:C;Q=Q===void 0?null:Q;L=L===void 0?null:L;var k=YJ(this),M={videoId:O};e!==void 0&&(M.currentIndex=e);TIw(k,O,e||0);x!==void 0&&(u1(k,x),M.currentTime=x);l&&(M.listId=l);C&&(M.playerParams=C);Q&&(M.clickTrackingParams=Q);L&&(M.locationInfo=(0,_.Rj)(L));v5(this,"setPlaylist",M);l||Jm(this,k)};
_.b.nextVideo=function(O,x){if(B5(this)){if(O&&x){var e=YJ(this);TIw(e,O,x);Jm(this,e)}v5(this,"next")}else fP(this,_.b_(this.nextVideo,O,x))};
_.b.clearPlaylist=function(){if(B5(this)){v5(this,"clearPlaylist");var O=YJ(this);O.reset();Jm(this,O);this.publish("remotePlayerChange")}else fP(this,this.clearPlaylist)};
_.b.dispose=function(){if(this.state_!=3){var O=this.state_;this.state_=3;this.publish("proxyStateChange",O,this.state_)}_.HA.prototype.dispose.call(this)};
_.b.disposeInternal=function(){GiO(this);this.connection_=null;this.actionQueue_.clear();AbY(this,null);_.HA.prototype.disposeInternal.call(this)};
var ki4=function(O){_.e3("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(x){this.contextSubscriptions_.push(this.connection_.subscribe(x,_.b_(this.onProxyEvent_,x),this))},O)},GiO=function(O){_.e3(O.contextSubscriptions_,function(x){this.connection_.unsubscribeByKey(x)},O);
O.contextSubscriptions_.length=0},B5=function(O){return O.getState()==1},fP=function(O,x){O.actionQueue_.getCount()<50&&O.actionQueue_.enqueue(x)},DrT=function(O,x,e){var l=YJ(O);
u1(l,e);l.playerState!=-1E3&&(l.playerState=x);Jm(O,l)},v5=function(O,x,e){O.connection_.sendMessage(x,e)},Jm=function(O,x){GiO(O);
O.connection_.setPlayerContextData(LM4(x));ki4(O)};
Na.prototype.setState_=function(O){if((O!=this.state_||O==2)&&this.state_!=3&&O!=0){var x=this.state_;this.state_=O;this.publish("proxyStateChange",x,O);if(O==1)for(;!this.actionQueue_.isEmpty();)O=this.actionQueue_,HdL(O),O.front_.pop().apply(this);else O==3&&this.dispose()}};
Na.prototype.onProxyEvent_=function(O,x){this.publish(O,x)};
var AbY=function(O,x){O.castSession_&&(O.castSession_.removeUpdateListener(O.boundCastStatusListener_),O.castSession_.removeMediaListener(O.boundCastMediaListener_),O.onCastMediaChange_(null));O.castSession_=x;if(O.castSession_&&(m$("Setting cast session: "+O.castSession_.sessionId),O.castSession_.addUpdateListener(O.boundCastStatusListener_),O.castSession_.addMediaListener(O.boundCastMediaListener_),O.castSession_.media.length))O.onCastMediaChange_(O.castSession_.media[0])};
Na.prototype.onCastStatusUpdate_=function(O){if(!O)this.onCastMediaChange_(null),AbY(this,null);else if(this.castSession_.receiver.volume){O=this.castSession_.receiver.volume;var x=YJ(this),e=Math.round(100*O.level||0);if(x.volume!=e||x.muted!=O.muted)m$("Cast volume update: "+O.level+(O.muted?" muted":"")),x.volume=e,x.muted=!!O.muted,Jm(this,x)}};
Na.prototype.onCastMediaChange_=function(O){m$("Cast media: "+!!O);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=O)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),FM4(this),this.publish("remotePlayerChange")};
var FM4=function(O){var x=O.castMedia_.media,e=O.castMedia_.customData;if(x&&e){var l=YJ(O);x.contentId!=l.videoId&&m$("Cast changing video to: "+x.contentId);l.videoId=x.contentId;l.playerState=e.playerState;u1(l,O.castMedia_.getEstimatedTime());Jm(O,l)}else m$("No cast media video. Ignoring state update.")};
Na.prototype.onCastMediaUpdate_=function(O){if(O)FM4(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Na.prototype.onCloudviewAvailabilityChange_=function(){var O=pbO();O&&AbY(this,O)};
Na.prototype.warn_=function(O){aQ("CP",O)};
var MHT=function(O,x,e){return(0,_.z8)(function(l){this.warn_("Failed to "+x+" with cast v2 channel. Error code: "+l.code);l.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+x+" using MDx browser channel."),v5(this,x,e))},O)};var gs=function(O,x,e,l){l=l===void 0?!1:l;_.HA.call(this);var C=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$20060_http_=O;this.enableConnectWithInitialState_=l;this.listeners_.push(_.AG(window,"beforeunload",function(){C.JSC$20063_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Yt;this.currentScreenId_=x.id;this.currentScreenIdType_=x.idType;this.channelService=w8u(this.JSC$20060_http_,e,this.JSC$20063_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){XCY(C)});
this.channelService.listen("channelClosed",function(){wK("Channel closed");isNaN(C.connectTimerId_)?Vk(!0):Vk();C.dispose()});
this.channelService.listen("channelError",function(Q){Vk();isNaN(C.getReconnectTimeout_())?(Q==1&&C.currentScreenIdType_=="shortLived"&&C.publish("browserChannelAuthError",Q),wK("Channel error: "+Q+" without reconnection"),C.dispose()):(C.reconnecting_=!0,wK("Channel error: "+Q+" with reconnection in "+C.getReconnectTimeout_()+" ms"),o2$(C,2))});
this.channelService.listen("channelMessage",function(Q){yb4(C,Q)});
this.channelService.setLoungeToken(x.token);this.subscribe("remoteQueueChange",function(){var Q=C.playerContext_.videoId;W8L()&&_.EA("yt-remote-session-video-id",Q)})};
_.c(gs,_.HA);
gs.prototype.connect=function(O,x){if(x){var e=x.listId,l=x.videoId,C=x.videoIds,Q=x.playerParams,L=x.clickTrackingParams,k=x.index,M={videoId:l},G=x.currentTime,X=x.locationInfo;x=x.loopMode;G!==void 0&&(M.currentTime=G<=5?0:G);Q&&(M.playerParams=Q);X&&(M.locationInfo=X);L&&(M.clickTrackingParams=L);e&&(M.listId=e);C&&C.length>0&&(M.videoIds=C.join(","));k!==void 0&&(M.currentIndex=k);this.enableConnectWithInitialState_&&(M.loopMode=x||"LOOP_MODE_OFF");e&&(this.playerContext_.listId=e);this.playerContext_.videoId=
l;this.playerContext_.index=k||0;this.playerContext_.state=3;u1(this.playerContext_,G);this.autoplayMode_="UNSUPPORTED";e=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";wK("Connecting with "+e+" and params: "+(0,_.Rj)(M));this.channelService.connect({method:e,params:(0,_.Rj)(M)},O,K84())}else wK("Connecting without params"),this.channelService.connect({},O,K84());ZB$(this)};
gs.prototype.setLoungeToken=function(O){this.channelService.setLoungeToken(O)};
gs.prototype.dispose=function(){this.isDisposed()||(_.MB("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),o2$(this,3));_.HA.prototype.dispose.call(this)};
gs.prototype.disposeInternal=function(){E2p(this);tHw(this);qu$(this);_.IO(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.IO(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Xs$(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.HA.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var PpQ=function(O){return _.r7(O.connectedDevices_,function(x){return x.type=="LOUNGE_SCREEN"})},wK=function(O){aQ("conn",O)},o2$=function(O,x){O.publish("proxyStateChange",x)},ZB$=function(O){O.connectTimerId_=_.qb(function(){wK("Connecting timeout");
O.JSC$20063_disconnect_(1)},2E4)},E2p=function(O){_.IO(O.connectTimerId_);
O.connectTimerId_=NaN},qu$=function(O){_.IO(O.reconnectedCheckScreenTimeout_);
O.reconnectedCheckScreenTimeout_=NaN},IxL=function(O){tHw(O);
O.playingSyncTimerId_=_.qb(function(){cbT(O,"getNowPlaying")},2E4)},tHw=function(O){_.IO(O.playingSyncTimerId_);
O.playingSyncTimerId_=NaN},XCY=function(O){wK("Channel opened");
O.reconnecting_&&(O.reconnecting_=!1,qu$(O),O.reconnectedCheckScreenTimeout_=_.qb(function(){wK("Timing out waiting for a screen.");O.JSC$20063_disconnect_(1)},15E3))},pCX=function(O,x){var e=null;
if(x){var l=PpQ(O);l&&(e={clientName:l.clientName,deviceMake:l.brand,deviceModel:l.model,osVersion:l.osVersion})}_.MB("yt.mdx.remote.remoteClient_",e);x&&(E2p(O),qu$(O));e=O.channelService.isChannelOpened()&&isNaN(O.connectTimerId_);x==e?x&&(o2$(O,1),cbT(O,"getSubtitlesTrack")):x?(O.getOtherConnectedRemoteId_()&&O.playerContext_.reset(),o2$(O,1),cbT(O,"getNowPlaying"),VHL(O)):O.JSC$20063_disconnect_(1)},RGp=function(O,x){var e=x.params.videoId;
delete x.params.videoId;e==O.playerContext_.videoId&&(_.HX.isEmpty(x.params)?O.playerContext_.trackData=null:O.playerContext_.trackData=x.params,O.publish("remotePlayerChange"))},Ur4=function(O,x,e){var l=x.params.videoId||x.params.video_id,C=parseInt(x.params.currentIndex,10);
O.playerContext_.listId=x.params.listId||O.playerContext_.listId;TIw(O.playerContext_,l,C);O.publish("remoteQueueChange",e)},ax$=function(O,x){x.params=x.params||{};
Ur4(O,x,"NOW_PLAYING_MAY_CHANGE");O.onStateChange_(x);O.publish("autoplayDismissed")};
gs.prototype.onStateChange_=function(O){var x=parseInt(O.params.currentTime||O.params.current_time,10);u1(this.playerContext_,isNaN(x)?0:x);x=parseInt(O.params.state,10);x=isNaN(x)?-1:x;x==-1&&this.playerContext_.playerState==-1E3&&(x=-1E3);this.playerContext_.playerState=x;x=Number(O.params.loadedTime);this.playerContext_.loadedTime=isNaN(x)?0:x;x=Number(O.params.duration);this.playerContext_.duration_=isNaN(x)?0:x;x=this.playerContext_;var e=Number(O.params.liveIngestionTime);x.liveIngestionTime_=
e;x.isLive_=isNaN(e)?!1:!0;x=this.playerContext_;e=Number(O.params.seekableStartTime);O=Number(O.params.seekableEndTime);x.seekableStart_=isNaN(e)?0:e;x.seekableEnd_=isNaN(O)?0:O;this.playerContext_.playerState==1?IxL(this):tHw(this);this.publish("remotePlayerChange")};
gs.prototype.onAdStateChange_=function(O){if(this.playerContext_.playerState!=-1E3){var x=1085;switch(parseInt(O.params.adState,10)){case 1:x=1081;break;case 2:x=1084;break;case 0:x=1083}this.playerContext_.playerState=x;O=parseInt(O.params.currentTime,10);u1(this.playerContext_,isNaN(O)?0:O);this.publish("remotePlayerChange")}};
var mr$=function(O,x){var e=x.params.muted=="true";O.playerContext_.volume=parseInt(x.params.volume,10);O.playerContext_.muted=e;O.publish("remotePlayerChange")},sBL=function(O,x){O.autoplayVideoId_=x.params.videoId;
O.publish("nowAutoplaying",parseInt(x.params.timeout,10))},WMT=function(O,x){O.autoplayVideoId_=x.params.videoId||null;
O.publish("autoplayUpNext",O.autoplayVideoId_)},hG4=function(O,x){O.autoplayMode_=x.params.autoplayMode;
O.publish("autoplayModeChange",O.autoplayMode_);O.autoplayMode_=="DISABLED"&&O.publish("autoplayDismissed")},zGT=function(O,x){var e=x.params.hasNext=="true";
O.playerContext_.hasPrevious=x.params.hasPrevious=="true";O.playerContext_.hasNext=e;O.publish("previousNextChange")};
gs.prototype.isCapabilitySupportedOnConnectedDevices_=function(O){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var x=_.T(this.connectedDevices_),e=x.next();!e.done;e=x.next())if(!e.value.capabilities.has(O))return!1;return!0};
var yb4=function(O,x){x=x.message;x.params?wK("Received: action="+x.action+", params="+(0,_.Rj)(x.params)):wK("Received: action="+x.action+" {}");switch(x.action){case "loungeStatus":x=(0,_.og)(x.params.devices);O.connectedDevices_=_.Ku(x,function(l){return new mV(l)});
x=!!_.r7(O.connectedDevices_,function(l){return l.type=="LOUNGE_SCREEN"});
pCX(O,x);x=O.isCapabilitySupportedOnConnectedDevices_("mlm");O.publish("multiStateLoopEnabled",x);break;case "loungeScreenDisconnected":TqT(O.connectedDevices_,function(l){return l.type=="LOUNGE_SCREEN"});
pCX(O,!1);break;case "remoteConnected":var e=new mV((0,_.og)(x.params.device));_.r7(O.connectedDevices_,function(l){return l.equals(e)})||_.m$L(O.connectedDevices_,e);
break;case "remoteDisconnected":e=new mV((0,_.og)(x.params.device));TqT(O.connectedDevices_,function(l){return l.equals(e)});
break;case "gracefulDisconnect":break;case "playlistModified":Ur4(O,x,"QUEUE_MODIFIED");break;case "nowPlaying":ax$(O,x);break;case "onStateChange":O.onStateChange_(x);break;case "onAdStateChange":O.onAdStateChange_(x);break;case "onVolumeChanged":mr$(O,x);break;case "onSubtitlesTrackChanged":RGp(O,x);break;case "nowAutoplaying":sBL(O,x);break;case "autoplayDismissed":O.publish("autoplayDismissed");break;case "autoplayUpNext":WMT(O,x);break;case "onAutoplayModeChanged":hG4(O,x);break;case "onHasPreviousNextChanged":zGT(O,
x);break;case "requestAssistedSignIn":O.publish("assistedSignInRequested",x.params.authCode);break;case "onLoopModeChanged":O.publish("loopModeChange",x.params.loopMode);break;default:wK("Unrecognized action: "+x.action)}};
_.b=gs.prototype;_.b.getProxyState_=function(){var O=3;this.isDisposed()||(O=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(O=1):O=2);return O};
_.b.JSC$20063_disconnect_=function(O){wK("Disconnecting with "+O);_.MB("yt.mdx.remote.remoteClient_",null);E2p(this);this.publish("beforeDisconnect",O);O==1&&Vk();this.channelService.disconnect(O);this.dispose()};
_.b.getPlayerContextData_=function(){var O=this.playerContext_;this.clientVideoId_&&(O=this.playerContext_.clone(),TIw(O,this.clientVideoId_,O.index));return LM4(O)};
_.b.setPlayerContextData_=function(O){var x=this,e=new Yt(O);e.videoId&&e.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=e.videoId,_.IO(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.qb(function(){if(x.clientVideoId_){var C=x.clientVideoId_;x.clientVideoId_=null;x.playerContext_.videoId!=C&&cbT(x,"getNowPlaying")}},5E3));
var l=[];this.playerContext_.listId==e.listId&&this.playerContext_.videoId==e.videoId&&this.playerContext_.index==e.index||l.push("remoteQueueChange");this.playerContext_.playerState==e.playerState&&this.playerContext_.volume==e.volume&&this.playerContext_.muted==e.muted&&bBL(this.playerContext_)==bBL(e)&&(0,_.Rj)(this.playerContext_.trackData)==(0,_.Rj)(e.trackData)||l.push("remotePlayerChange");this.playerContext_.reset(O);_.e3(l,function(C){this.publish(C)},this)};
_.b.getOtherConnectedRemoteId_=function(){var O=this.channelService.getDeviceId(),x=_.r7(this.connectedDevices_,function(e){return e.type=="REMOTE_CONTROL"&&e.id!=O});
return x?x.id:""};
_.b.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.b.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.b.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.b.JSC$20063_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var VHL=function(O){_.IO(O.idleDisconnectTimerId_);O.idleDisconnectTimerId_=_.qb(function(){O.JSC$20063_disconnect_(1)},864E5)},cbT=function(O,x,e){e?wK("Sending: action="+x+", params="+(0,_.Rj)(e)):wK("Sending: action="+x);
O.channelService.sendMessage(x,e)};
gs.prototype.sendMessageWithUserAction_=function(O,x){cbT(this,O,x);VHL(this)};
gs.prototype.JSC$20063_getXsrfToken_=function(){var O=_.mK.get("SAPISID","")||_.mK.get("__Secure-1PAPISID",void 0)||"",x=_.mK.get("__Secure-3PAPISID","")||"";if(!O&&!x)return"";O=_.zX(_.Wv(O),2);x=_.zX(_.Wv(x),2);return _.zX(_.Wv(","+O+","+x),2)};
gs.prototype.subscribe=gs.prototype.subscribe;gs.prototype.unsubscribeByKey=gs.prototype.unsubscribeByKey;gs.prototype.getProxyState=gs.prototype.getProxyState_;gs.prototype.disconnect=gs.prototype.JSC$20063_disconnect_;gs.prototype.getPlayerContextData=gs.prototype.getPlayerContextData_;gs.prototype.setPlayerContextData=gs.prototype.setPlayerContextData_;gs.prototype.getOtherConnectedRemoteId=gs.prototype.getOtherConnectedRemoteId_;gs.prototype.getReconnectTimeout=gs.prototype.getReconnectTimeout_;
gs.prototype.getAutoplayMode=gs.prototype.getAutoplayMode_;gs.prototype.getAutoplayVideoId=gs.prototype.getAutoplayVideoId_;gs.prototype.reconnect=gs.prototype.JSC$20063_reconnect_;gs.prototype.sendMessage=gs.prototype.sendMessageWithUserAction_;gs.prototype.getXsrfToken=gs.prototype.JSC$20063_getXsrfToken_;gs.prototype.isCapabilitySupportedOnConnectedDevices=gs.prototype.isCapabilitySupportedOnConnectedDevices_;var wbY=function(O){WV.call(this,"ScreenServiceProxy");this.instance_=O;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.z8)(this.JSC$20066_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.z8)(this.onOnlineScreenChange_,this)))};
_.c(wbY,WV);_.b=wbY.prototype;_.b.getScreens=function(O){return this.instance_.$_gs(O)};
_.b.contains=function(O){return!!this.instance_.$_c(O)};
_.b.get=function(O){return this.instance_.$_g(O)};
_.b.start=function(){this.instance_.$_st()};
_.b.add=function(O,x,e){this.instance_.$_a(O,x,e)};
_.b.remove=function(O,x,e){this.instance_.$_r(O,x,e)};
_.b.updateName=function(O,x,e,l){this.instance_.$_un(O,x,e,l)};
_.b.disposeInternal=function(){for(var O=this.subscriptionKeys_.length,x=0;x<O;++x)this.instance_.$_ubk(this.subscriptionKeys_[x]);this.subscriptionKeys_.length=0;this.instance_=null;WV.prototype.disposeInternal.call(this)};
_.b.JSC$20066_onScreenChange_=function(){this.publish("screenChange")};
_.b.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
rs.prototype.$_st=rs.prototype.start;rs.prototype.$_gspc=rs.prototype.JSC$20025_getScreenByPairingCode;rs.prototype.$_gsppc=rs.prototype.JSC$20025_getScreenByPollingPairingCode;rs.prototype.$_c=rs.prototype.contains;rs.prototype.$_g=rs.prototype.get;rs.prototype.$_a=rs.prototype.add;rs.prototype.$_un=rs.prototype.updateName;rs.prototype.$_r=rs.prototype.remove;rs.prototype.$_gs=rs.prototype.getScreens;rs.prototype.$_gos=rs.prototype.JSC$20025_getOnlineScreens;rs.prototype.$_s=rs.prototype.subscribe;
rs.prototype.$_ubk=rs.prototype.unsubscribeByKey;var uGX=null,j$L=!1,BV=null,vV=null,JiT=null,SM=[];var rbh=new _.jC("yt-menu"),HB4=function(){},drO=function(O,x,e){O=x=="right-click"?e.rightClickMenuPopupHint:e.menuPopupHint;
if(!(KM4(x)>10))return x=x||"default",rbh.set(x+"-impression",KM4(x)+1),O},KM4=function(O){return parseInt(rbh.get((O||"default")+"-impression")||0,10)};
_.BN(HB4);var n24=function(){this.contexts_=new WeakMap;this.JSC$20072_networkService_=this.activeContext_=null},uAQ=function(O,x,e){var l=O.contexts_.get(x);
l||(l=new OhL(O.JSC$20072_networkService_),O.contexts_.set(x,l));O.activeContext_=l;e&&O.activeContext_.reset();O.activeContext_.start();return O.activeContext_};var Sk=function(){};
Sk.prototype.enqueue=function(){var O=this,x;return _.A(function(e){if(O.isCounterfactual())return(x=O.getCounterfactualData())&&O.shouldLogCounterfactualImpression()&&O.sendImpressionEndpoints(x),e.return();O.doEnqueue();_.Ra(e)})};
Sk.prototype.sendImpressionEndpoints=function(O){_.iU.getInstance().triggerOptionalAction("yt-service-request",{},O[0])};var jk=function(O,x){this.renderer=O;this.page=x};
_.c(jk,Sk);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 O=_.ve(this.page);O&&O.pause();this.renderer.impressionCommand&&_.iU.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.z6(_.iU.getInstance(),[this.renderer.promoCommand],this.page)};var Yuw=function(O,x){this.renderer=O;this.resolver=_.He();this.JSC$20084_enforcementCounter=new _.f0L;x?this.JSC$20084_playerManager=_.ve(x):this.JSC$20084_playerManager=null;_.lK(1,!0)};
_.c(Yuw,Sk);_.b=Yuw.prototype;_.b.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var O=[];this.renderer.impressionEndpoints.forEach(function(x){(x=_.p_(x))&&O.push(x)});
return O}};
_.b.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.b.shouldLogCounterfactualImpression=function(){var O=_.VLs();O?(this.JSC$20084_enforcementCounter.increment("POPUP"),_.lK(3)):_.lK(2);return O};
_.b.cancel=function(){this.resolver.promise.cancel()};
_.b.doEnqueue=function(){var O=this;_.VLs()?(this.JSC$20084_enforcementCounter.increment("POPUP"),_.lK(3),BI$(this)):this.JSC$20084_playerManager?(this.resolver.promise.then(function(){BI$(O)}),v2u(this.resolver,this.JSC$20084_playerManager)):_.lK(2)};
var v2u=function(O,x){var e=_.He();x.getPlayerPromise().then(function(l){e.resolve(l)});
e.promise.then(function(l){l.addEventListener("onAbnormalityDetected",O.resolve);_.Ij(O.promise,function(){l.removeEventListener("onAbnormalityDetected",O.resolve)})});
O.promise.thenCatch(function(){e.promise.cancel()})},BI$=function(O){_.lK(3);
var x={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:O.renderer}};x=_.iU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:x},{});Promise.all(x).then(function(){fxw();O.JSC$20084_playerManager&&O.JSC$20084_playerManager.pause()})},fxw=function(){Ywh(function(O,x){_.WCQ(O,x);
O===0?_.lK(7):_.lK(4)})};var JbL=function(O,x){this.renderer=O;this.page=x;this.resolver=_.He()};
_.c(JbL,Sk);_.b=JbL.prototype;_.b.cancel=function(){this.resolver.promise.cancel()};
_.b.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.b.isCounterfactual=function(){return!this.renderer.isVisible};
_.b.shouldLogCounterfactualImpression=function(){return!0};
_.b.doEnqueue=function(){var O=this;this.resolver.promise.then(function(){var e={popup:{mealbarPromoRenderer:O.renderer},popupType:"MEALBAR"};_.iU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var x=_.ve(this.page);x&&wCe(this.resolver,x)}break;default:this.resolver.resolve()}};
var wCe=function(O,x){var e=_.He();x.getPlayerPromise().then(function(l){e.resolve(l)});
e.promise.then(function(l){l.addEventListener("onAdEnd",O.resolve);_.Ij(O.promise,function(){l.removeEventListener("onAdEnd",O.resolve)})});
O.promise.thenCatch(function(){e.promise.cancel()})};var SuL=function(O,x){this.renderer=O;this.page=x};
_.c(SuL,Sk);_.b=SuL.prototype;_.b.cancel=function(){this.JSC$20092_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20092_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20092_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.b.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.b.isCounterfactual=function(){return!this.renderer.isVisible};
_.b.shouldLogCounterfactualImpression=function(){return!0};
_.b.doEnqueue=function(){var O=this,x,e;((x=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(e=x.playbackUpsellDialogTriggerConditionData)==null?void 0:e.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20092_downloadedVideosCountSelectorUnsubscriber=_.mw(_.u9(),nXu,function(l,C){l>C&&(jBe(O),O.cancel())}):jBe(this)};
var jBe=function(O){var x={popup:{upsellDialogRenderer:O.renderer},popupType:"MODAL"};_.iU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:x},{});(O=_.ve(O.page))&&O.pause()};var Nf={},NI$=(Nf.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Nf.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Nf.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Nf.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Nf.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Nf.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Nf.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Nf),g2$=function(O,x){this.renderer=O;this.targetManager=
x};
_.c(g2$,Sk);_.b=g2$.prototype;_.b.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20099_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20099_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20099_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.b.getCounterfactualData=function(){if(this.isCounterfactual()){var O;return(O=this.renderer.promoConfig)==null?void 0:O.impressionEndpoints}};
_.b.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.b.shouldLogCounterfactualImpression=function(){return!0};
_.b.doEnqueue=function(){var O=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20099_downloadedVideosCountSelectorUnsubscriber=_.mw(_.u9(),nXu,function(x,e){O.renderer.targetId&&x>e&&(VdQ(O.targetManager,O.renderer.targetId,$rO(O)),O.cancel())});
break;default:VdQ(this.targetManager,this.renderer.targetId,$rO(this))}};
var $rO=function(O){var x;if((x=O.renderer.suggestedPosition)==null?0:x.type)var e=NI$[O.renderer.suggestedPosition.type];e||(e="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:O.renderer},popupType:"HINT",position:e}}};var iBY=function(){this.previousPage=null},OCO;
iBY.prototype.registerPromoCommand=function(O,x){xVe(this,void 0,void 0,_.q(O.roadblock,s4Q),void 0,void 0,x)};
var xVe=function(O,x,e,l,C,Q,L){O.previousPage!==L&&O.pendingTooltipPromo&&O.pendingTooltipPromo.cancel();O.previousPage=L;C?(O.pendingEnforcementPromo&&O.pendingEnforcementPromo.cancel(),O.pendingEnforcementPromo=new Yuw(C,L),O.pendingEnforcementPromo.enqueue()):Q?(O.pendingCommandWrapperPromo=new jk(Q,L),O.pendingCommandWrapperPromo.enqueue()):l?(O.pendingRoadblockPromo&&O.pendingRoadblockPromo.cancel(),O.pendingRoadblockPromo=new SuL(l,L),O.pendingRoadblockPromo.enqueue()):x?(O.pendingMealbarPromo&&
O.pendingMealbarPromo.cancel(),O.pendingMealbarPromo=new JbL(x,L),O.pendingMealbarPromo.enqueue()):e&&(O.pendingTooltipPromo&&O.pendingTooltipPromo.cancel(),O.pendingTooltipPromo=new g2$(e,_.KL()),O.pendingTooltipPromo.enqueue())},egQ=function(){OCO||(OCO=new iBY);
return OCO};var iML=!1;var UpT=function(O,x){var e=_.wz("SESSION_INDEX");this.actionToken_=O;this.commonToken_=x;this.sessionIndex_=e},R0h=function(O){var x=_.He(),e=_.i8("payments.business.integration.bootstrap"),l=_.i8("payments.business.integration"),C=l.Style.create().withMaterialDesignStyle(),Q=l.mashupMode.popup("instrument-manager");
e.asMashupMode(Q).usingUserIndex(O.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(C).inStandaloneContext(l.standaloneContextAuthId.forUserId()).instrumentManager(O.actionToken_,O.commonToken_.length>0?O.commonToken_:void 0,function(L){var k=L.instrumentId;k?x.resolve(k):(k=_.i8("payments.business.integration.scenario.InstrumentManager"),x.reject(L.errorCode&&L.errorCode===k.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(L){_.jS(L);
x.reject("instrumentManagerLoadError")});
return x.promise};var xI=function(O,x,e){this.payloadName="transactionFlowFailed";this.payload={errorType:O,serializedTransactionFlowLoggingParams:x,isUserDismiss:e===void 0?!1:e}};
_.MB("yt.ypc.shared.YpcTransactionFlowError",xI);var gK=function(){return _.MQ.apply(this,arguments)||this};
_.c(gK,_.MQ);gK.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
gK.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
gK.prototype.onErrorMessageDismiss=gK.prototype.onErrorMessageDismiss;_.B([_.R({readOnly:!0,observer:"errorRendererChanged"}),_.v("design:type",Object)],gK.prototype,"errorRenderer",void 0);_.B([_.bH("yt-live-chat-error-message-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gK.prototype,"onErrorMessageDismiss",null);_.B([_.DC()],gK);var lhL=[gK.prototype];var Cqw;var QMp;var bCh=new _.jC("yt-live-chat"),T94=new Map;T94.set("timestamp_toggle","show-timestamps");T94.set("reactions_toggle","allow-reactions");var $J=function(){return _.a.apply(this,arguments)||this};
_.c($J,_.a);_.b=$J.prototype;_.b.menuItemIdentifierChanged=function(){var O;(O=this.data)!=null&&O.menuItemIdentifier&&(O=T94.get(this.data.menuItemIdentifier))&&(_.t("enable_lwe_web_mute")?(O=bCh.get(O),this.isToggled=!(O===void 0?!this.data.isToggled:!O)):this.isToggled=bCh.get(O))};
_.b.onFocus=function(){this.toggleButton.focus()};
_.b.onTap=function(){var O=this.data.command;O&&this.componentBehavior.resolveCommand(O)};
_.b.computeText=function(O,x,e){return this.componentBehavior.getSimpleString(O?e:x)};
_.b.computeIcon=function(O,x,e){return(O=O?e:x)&&O.iconType?_.x0(O.iconType):""};
$J.prototype.onTap=$J.prototype.onTap;$J.prototype.onFocus=$J.prototype.onFocus;$J.prototype.menuItemIdentifierChanged=$J.prototype.menuItemIdentifierChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$J.prototype,"componentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$J.prototype,"data",void 0);
_.B([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.v("design:type",String)],$J.prototype,"icon",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],$J.prototype,"isToggled",void 0);_.B([_.kX("tp-yt-paper-toggle-button"),_.v("design:type",Object)],$J.prototype,"toggleButton",void 0);_.B([_.T1("data.menuItemIdentifier"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$J.prototype,"menuItemIdentifierChanged",null);
_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$J.prototype,"onFocus",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$J.prototype,"onTap",null);_.B([_.Va({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],$J);
_.n($J,"yt-live-chat-toggle-renderer",function(){if(QMp===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Cqw===void 0&&(Cqw=document.createElement("template"));var l=Cqw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);QMp=O}O=QMp;return O},{mode:_.t("live_chat_enable_sink_wrapper")?2:0});var LDT=new _.iR("NAVIGATION_PROGRESS_TOKEN");var kbQ={},ACp={},MXY=(ACp[E6e.name]=!0,ACp),i1=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;O.tabGesturesIsActive=!1;O.actionRouterIsRoot=!0;O.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"};O.pageTitle="";O.titleSuffix="YouTube";O.unseenNotificationCount=
0;O.hasNavigated=!1;O.hasSetScrollTopForNavigation=!1;O.pagePreparer=null;O.zwiebackInitJobId=0;O.dataUpdatePromise=null;O.loadDepsPromise=_.$7();O.hasPendingNavigation=!1;O.pendingPlayerOnResponseReceivedActions=[];return O};
_.c(i1,_.MQ);i1.prototype.attached=function(){DVh(this);document.addEventListener("yt-navigate-cache",_.Qa(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var O=Op();O.init();O.dispatchElement=this.hostElement};
var DVh=function(O,x){x=x===void 0?0:x;var e=_.GG().resolve(_.D0(_.Hr));if(e)Gbe(O,e);else{if(x>=5)throw Error("pl");setTimeout(function(){DVh(O,x+1)},0)}},Gbe=function(O,x){x.addEventListener("yt-navigate-start",_.Qa(O,O.onYtNavigateStart));
x.addEventListener("yt-navigate-finish",_.Qa(O,O.onYtNavigateFinish));x.addEventListener("yt-navigate-error",_.Qa(O,O.onYtNavigateError));x.addEventListener("yt-page-data-fetched",_.Qa(O,O.onYtPageDataFetched))};
_.b=i1.prototype;_.b.detached=function(){var O=_.GG().resolve(_.Hr);O.removeEventListener("yt-navigate-start",_.Qa(this,this.onYtNavigateStart));O.removeEventListener("yt-navigate-finish",_.Qa(this,this.onYtNavigateFinish));O.removeEventListener("yt-navigate-error",_.Qa(this,this.onYtNavigateError));O.removeEventListener("yt-page-data-fetched",_.Qa(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Qa(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.b.setPageOffset=function(O,x){O?_.Sh(this.hostElement,"yt-set-page-offset",[O,x]):_.BH(Error("ql"))};
_.b.setPageOffsetForNavigation=function(O,x){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(O,x))};
_.b.onYtNavigateSetPageOffset=function(O,x){this.setPageOffsetForNavigation(x.page,x.offset)};
_.b.getPageOffset=function(){var O=_.$U(this.hostElement).querySelector("#page-manager").getCurrentPage(),x=0;O&&(x=_.Sh(this.hostElement,"yt-get-page-offset",[O])[0]);return x};
_.b.onYtHistoryPop=function(O,x){if(_.SS("DISABLE_WARM_LOADS"))O.preventDefault(),window.location.reload();else{var e=_.GG().resolve(_.Hr);e.hasPendingNavigation()&&O.preventDefault();e.cancelPendingNavigation();_.jh(this.hostElement,"yt-pending-navigation-cancelled");x.errorMsg&&(O=x.errorMsg.split(" - "),x=Error(O[0]),O.length==2&&O[1]&&(_.JG(x,O[1]),_.ft(x)),window.location.reload())}};
_.b.onYtHistoryLoad=function(O,x){var e=this;if(_.SS("DISABLE_WARM_LOADS"))window.location.reload();else{(O=x.endpoint)&&Object.keys(O).length||(O=null);var l=x.historyEntry,C=_.GG().resolve(_.Hr),Q=_.GG().resolve(_.Be),L=null;l&&l.rootData&&(L=l.rootData);var k=L&&FDX(L);!L||k||L.filler?O?(C.navigate(O,!0),X4T(this,O)):(x.legacyBorder||k||(x.JSC$30424_savedComponentState==null&&L==null?_.ft(new _.ry("Incomplete history entry",x.forward)):_.vH(new _.ry("Malformed history entry",x.JSC$30424_savedComponentState,
x.forward,L))),window.location.reload()):(_.JEr({isHot:!0}),_.EO({webInfo:{navigationReason:"h"}}),_.tun(),_.IR("srt"),_.IR("pdc"),this.cancelPendingTasks(),oBL(this,x.forward,L),L.player&&(L.player.loaded=!1),X4T(this,O),_.m82(C,O||{},L,2,{},!1,x).then(function(){e.setPageOffset(Q.getCurrentPage(),l.scrollTop||0)}))}};
_.b.initHistoryManager=function(O){if(!this.hasNavigated){this.hasNavigated=!0;var x=_.$U(this.hostElement).querySelector("#page-manager").getCurrentData();O=isNaN(O)?this.getPageOffset():O;var e=_.GG().resolve(_.Hr).currentEndpoint;this.replaceState(e,x,O)}};
_.b.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.b.onYtNavigateStart=function(O,x){this.cancelPendingTasks();x.noProgressBar||(O=_.GG().resolve(_.D0(LDT)))&&O.start();O=this.hasPendingNavigation?null:this.data;var e=_.GG().resolve(_.Be),l,C,Q;_.t("kevlar_use_vimio_behavior")&&!((l=x.endpoint)==null?0:(C=l.commandMetadata)==null?0:(Q=C.webCommandMetadata)==null?0:Q.ignoreNavigation)&&(l=e.getCurrentPage())&&l.disconnectVisibilityRoot();e.prepareForNavigation(x.pageType,x.endpoint);_.t("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.X_(1,
"pcl"),_.oV(this.pagePreparer,e.preparePage.bind(e,x.pageType,x.endpoint)));l=this.getPageOffset();this.initHistoryManager(l);x.reload||this.hasPendingNavigation?((_.t("web_enable_delay_shorts_sequence_call")||_.t("web_enable_shorts_sequence_cache_fix"))&&x.pageType==="shorts"&&x.reload&&_.wr(this.hostElement,"yt-shorts-reset"),this.replaceState(x.endpoint,O,l)):(O==null?void 0:O.page)==="watch"&&x.pageType==="watch"&&_.t("kevlar_replace_watch_to_watch_history_state")?this.replaceState(x.endpoint,
O,l):(O==null?void 0:O.page)!=="shorts"||x.pageType!=="shorts"||x.endpoint.reelWatchEndpoint.sequenceParams||_.t("short_to_short_back_nav_killswitch")?x.type!="navigate-back"&&x.type!="navigate-forward"&&(x.pageType==="shorts"&&_.wr(this.hostElement,"yt-shorts-reset"),this.saveAndPush(x.url,x.endpoint,O,l)):(_.t("web_enable_delay_shorts_sequence_call")&&(x.endpoint.reelWatchEndpoint.sequenceParams=O==null?void 0:O.cachedSequenceParams,x.endpoint.reelWatchEndpoint.sequenceProvider=O==null?void 0:O.cachedSequenceProvider),
this.replaceState(x.endpoint,O,0));this.hasPendingNavigation=!0};
var yCw=function(O){O.hasPendingNavigation=!1;(O=_.GG().resolve(_.D0(LDT)))&&O.finish()};
i1.prototype.onYtNavigateError=function(O,x){yCw(this);O=this.get("endpoint.commandMetadata.webCommandMetadata.url",x);var e=_.Cb(window.location.href);O&&!e.pbjreload&&(x=x.navigationErrorReason||"10",_.t("kevlar_parent_on_pbjreload")&&(e={csn:_.Pq()},this.get("data.endpoint.clickTrackingParams")&&(e.itct=this.data.endpoint.clickTrackingParams),_.uh(O,e)),_.zu(_.QF(O,{pbjreload:x})))};
i1.prototype.onYtNavigateCache=function(O,x){var e=this,l=x.url,C=x.endpoint,Q=x.data;O=!!x.miniplayer;x=!!x.skipHistory;if(l&&C&&Q){var L=this.getPageOffset(),k=this.data||null;x||this.saveAndPush(l,C,k,L);l=_.m82(_.GG().resolve(_.Hr),C,Q,O?4:3,{},O);O&&l.then(function(){e.dataUpdatePromise&&e.dataUpdatePromise.then(function(){var M=_.GG().resolve(_.Be);e.setPageOffset(M.getCurrentPage(),0)})})}};
i1.prototype.onYtNavigateFinish=function(O,x){var e=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){ZC4(e,x.fromHistory)})};
var ZC4=function(O,x){yCw(O);if(O.pendingPlayerOnResponseReceivedActions){for(var e=_.T(O.pendingPlayerOnResponseReceivedActions),l=e.next();!l.done;l=e.next())_.C_(l.value,O.hostElement);O.pendingPlayerOnResponseReceivedActions=[]}e=_.GG().resolve(_.Be);x||!O.hasNavigated||_.t("web_disable_scroll_on_navigate_finish")||((x=e.getCurrentPage())?x.is==="ytd-shorts"||O.tabGesturesIsActive||O.setPageOffsetForNavigation(x,0):_.ft(Error("rl")));_.WZ(function(){_.WZ(function(){_.IR("pda")})})};
i1.prototype.onYtNavigate=function(O){if(!O.detail.endpoint){var x=new _.ry("Error: Missing yt-navigate endpoint from target:",O.target,O.target.nodeName);_.BH(x)}if(x=_.t("cold_missing_history"))x=Op(),x.init(!1),x=!(x.browserHistory.boundHistoryReplaceState&&x.browserHistory.boundHistoryPushState);if(x){_.JZ("DISABLE_WARM_LOADS",!0);x=new _.ry("Failed to initialize history manager",this.getDebugString());var e=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
e?_.ft(x):_.BH(x)}x=O.detail.endpoint;var l,C;_.t("debug_forward_web_query_parameters")&&((l=x.commandMetadata)==null?0:(C=l.webCommandMetadata)==null?0:C.url)&&(x=JSON.parse(JSON.stringify(x)),x.commandMetadata.webCommandMetadata.url=_.XUL(x.commandMetadata.webCommandMetadata.url,window.location.search));O={type:0,command:x,form:{params:O.detail.params,tempData:O.detail.tempData||{},requestType:O.detail.type,createScreenConfig:O.detail.createScreenConfig,reload:O.detail.reload?O.detail.reload:!1,
requestForm:O.detail}};_.t("kevlar_yt_navigate_command_handler")?(l=_.GG().resolve(_.Xc),O.form.skipDefaultElement=!0,l.resolveCommand(x,{form:O.form})):this.handleNavigate(O)};
i1.prototype.handleNavigate=function(O){this.hasSetScrollTopForNavigation=!1;var x=_.GG().resolve(_.Hr),e=O.form||{};x.navigate(O.command,e.reload,e.params,e.tempData,e.requestType,e.createScreenConfig,e.ignoreConfirmation,e.requestForm)&&X4T(this,O.command,e.tempData)};
i1.prototype.onYtPageDataFetched=function(O,x){try{_.P22().reset();this.data=x.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.GG().resolve(_.Be).updatePageData(this.data);var e=this.get("playerResponse.onResponseReceivedActions",this.data);e&&(e=EBu(this,e));e&&_.gr(this.hostElement,e,this.hostElement);var l=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),C=this.get("response.responseContext.consistencyTokenJar",this.data);if(l||C){var Q=_.qL8(),L=(0,_.HX.getValues)(Q.tokenJars);l&&Q.replace(L,l);C&&Q.replace(L,C)}}catch(k){_.BH(k)}};
var X4T=function(O,x,e){try{O.onYtEndpointChangeHandler(x,e)}catch(l){_.BH(l)}};
_.b=i1.prototype;_.b.onYtEndpointChangeHandler=function(){};
_.b.setPageTitle=function(O){O=(this.pageTitle=O)?O+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+O};
_.b.onYtUpdateTitle=function(O,x){this.setPageTitle(x)};
_.b.setUnseenNotificationCount=function(O){this.unseenNotificationCount=O;this.setPageTitle(this.pageTitle)};
_.b.handleUpdateNotificationsUnseenCountAction=function(O){_.q(O,xPL)&&((O=_.q(O,xPL).unseenCount)?this.setUnseenNotificationCount(O):this.setUnseenNotificationCount(0))};
_.b.handleClearCookieAction=function(O){var x;(O=(x=_.q(O,gRX))==null?void 0:x.cookieName)&&_.zhL(O)};
_.b.onYtUpdateUnseenNotificationCount=function(O,x){this.setUnseenNotificationCount(x)};
_.b.loadData=function(O){var x=this;this.loadDepsPromise.then(function(){var e=_.GG().resolve(_.D0(_.Hr));e||_.BH(Error("sl"));if(O&&O.response){if(!O.endpoint){var l=_.sb(window.document.location.href)||"/",C="";if(l==="/"||l.startsWith("/?"))C="WEB_PAGE_TYPE_BROWSE";O.endpoint={commandMetadata:{webCommandMetadata:{url:l,webPageType:C,rootVe:3854}}}}_.m82(e,O.endpoint,O,5,{})}else O.endpoint?e.navigate(O.endpoint):e.navigate(_.a7);_.vn.cancelJob(x.zwiebackInitJobId);x.zwiebackInitJobId=_.vn.addLowPriorityJob(OI$)})};
var Op=function(){return _.GG().resolve(_.sg)};
i1.prototype.getDebugString=function(){return Op().getDebugString()};
i1.prototype.getThirdPartyManipulationSuspected=function(){return Op().getThirdPartyManipulationSuspected()};
i1.prototype.replaceState=function(O,x,e){Op().saveAndReplace(O,x,e)};
i1.prototype.saveAndPush=function(O,x,e,l){Op().saveAndPush(O,x,e,l)};
var FDX=function(O){return _.q(O.endpoint,_.Hq)||_.q(O.endpoint,_.kU)?!0:!O||isNaN(O.expirationTime)?!1:(0,_.F2)()>O.expirationTime},oBL=function(O,x,e){var l=O.get("response.trackingParams",e),C=_.q9(),Q=_.Pq();
if(l&&C&&Q&&(l=O.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",e),!l&&e.rootVe&&(l=e.rootVe),C=x?"forwardButton":"backButton",x=O.get("playerResponse.topbar.desktopTopbarRenderer."+C+".buttonRenderer.command.clickTrackingParams",O.data),O=O.get("response.topbar.desktopTopbarRenderer."+C+".buttonRenderer.command.clickTrackingParams",O.data),x=(O=x||O)?_.Fv(O):void 0,O=_.k0(),C=[_.$7(e)],_.tx(O,l,x,{dataPromises:C,csnToClone:e.csn}),e.graftedVes))for(e=
_.T(e.graftedVes),l=e.next();!l.done;l=e.next())_.qK(O,l.value)};
i1.prototype.onStoreGraftedVeAction=function(O){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(O)):_.ft(Error("tl"))};
var EBu=function(O,x){return x.filter(function(e){for(var l in e)if(MXY[l])return O.pendingPlayerOnResponseReceivedActions.push(e),!0;return!1})};
_.Dy.Object.defineProperties(i1.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
i1.prototype.onStoreGraftedVeAction=i1.prototype.onStoreGraftedVeAction;i1.prototype.loadData=i1.prototype.loadData;i1.prototype.onYtUpdateUnseenNotificationCount=i1.prototype.onYtUpdateUnseenNotificationCount;i1.prototype.handleClearCookieAction=i1.prototype.handleClearCookieAction;i1.prototype.handleUpdateNotificationsUnseenCountAction=i1.prototype.handleUpdateNotificationsUnseenCountAction;i1.prototype.setUnseenNotificationCount=i1.prototype.setUnseenNotificationCount;
i1.prototype.onYtUpdateTitle=i1.prototype.onYtUpdateTitle;i1.prototype.setPageTitle=i1.prototype.setPageTitle;i1.prototype.onYtEndpointChangeHandler=i1.prototype.onYtEndpointChangeHandler;i1.prototype.onYtPageDataFetched=i1.prototype.onYtPageDataFetched;i1.prototype.handleNavigate=i1.prototype.handleNavigate;i1.prototype.onYtNavigate=i1.prototype.onYtNavigate;i1.prototype.onYtNavigateFinish=i1.prototype.onYtNavigateFinish;i1.prototype.onYtNavigateCache=i1.prototype.onYtNavigateCache;
i1.prototype.onYtNavigateError=i1.prototype.onYtNavigateError;i1.prototype.onYtNavigateStart=i1.prototype.onYtNavigateStart;i1.prototype.cancelPendingTasks=i1.prototype.cancelPendingTasks;i1.prototype.initHistoryManager=i1.prototype.initHistoryManager;i1.prototype.onYtHistoryLoad=i1.prototype.onYtHistoryLoad;i1.prototype.onYtHistoryPop=i1.prototype.onYtHistoryPop;i1.prototype.onYtNavigateSetPageOffset=i1.prototype.onYtNavigateSetPageOffset;i1.prototype.setPageOffset=i1.prototype.setPageOffset;
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],i1.prototype,"data",void 0);_.B([_.bH("yt-navigate-set-page-offset"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],i1.prototype,"onYtNavigateSetPageOffset",null);
_.B([_.bH("yt-history-pop"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],i1.prototype,"onYtHistoryPop",null);_.B([_.bH("yt-history-load"),_.v("design:type",Function),_.v("design:paramtypes",[Event,_.Nsp]),_.v("design:returntype")],i1.prototype,"onYtHistoryLoad",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],i1.prototype,"onYtNavigate",null);
_.B([_.bH("yt-update-title"),_.v("design:type",Function),_.v("design:paramtypes",[Event,String]),_.v("design:returntype")],i1.prototype,"onYtUpdateTitle",null);_.B([_.bH("yt-update-unseen-notification-count"),_.v("design:type",Function),_.v("design:paramtypes",[Event,Number]),_.v("design:returntype")],i1.prototype,"onYtUpdateUnseenNotificationCount",null);_.B([_.DC()],i1);kbQ.YtdAppBehavior=[_.Wt.YtActionHandlerBehavior,i1.prototype];var xZ=function(){var O=_.MQ.apply(this,arguments)||this;O._noAccessors=!0;return O};
_.c(xZ,_.MQ);xZ.prototype.ready=function(){var O=this;_.$U(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){O.onChange_()})};
xZ.prototype.dataChanged_=function(){_.$U(this.hostElement).querySelector("#checkbox").checked=!1};
xZ.prototype.onChange_=function(){var O=_.$U(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.wr(this.hostElement,"yt-dismissal-reason-"+O,this.data.feedbackToken)};
xZ.prototype.dataChanged_=xZ.prototype.dataChanged_;_.B([_.R(),_.v("design:type",Object)],xZ.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xZ.prototype,"dataChanged_",null);_.B([_.DC()],xZ);var tXp=[xZ.prototype];var ey=function(){var O=_.MQ.apply(this,arguments)||this;O.timeoutJobId=0;O.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return O};
_.c(ey,_.MQ);ey.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
ey.prototype.startTimeout=function(){var O=this,x=this.data&&this.data.displayDurationSeconds;x&&!this.timeoutJobId&&(this.timeoutJobId=_.zl(_.vn,function(){_.Sh(O.hostElement,"yt-close-popup-action",[O.is]);O.timeoutJobId=0},x*1E3))};
ey.prototype.cancelTimeout=function(){_.vn.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
ey.prototype.ytdHatsSurveyBehaviorDataChanged=ey.prototype.ytdHatsSurveyBehaviorDataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],ey.prototype,"ytActionHandlerBehavior",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ey.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.B([_.DC()],ey);var qXY=[_.Wt.YtActionHandlerBehavior,ey.prototype];var Pqw=function(O,x){var e;return((e=O.prefixMapping)==null?0:e[x])?O.prefixMapping[x]:O.SHARED_RENDERERS_.hasOwnProperty(x)?"yt":O.prefix},l7={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}};l7.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.t("kevlar_mealbar_above_player"),modern:_.t("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"}};
l7.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};l7.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};l7.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
l7.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)"}};
l7.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};
l7.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};
l7.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};
l7.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
l7.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"}};l7.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};l7.TOAST={component:null,properties:{}};var cCY=new function(O,x,e){this.supportedPopups=O;this.navigationEndpointPopupMap=x;this.popupTypeMap=e;this.supportedPopups=O;this.navigationEndpointPopupMap=x;this.popupTypeMap=e}({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:_.t("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"}),IhY=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$20150_popupConfig=l7;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 VXL=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.jg.getInstance()},Cm=function(O,x){var e=O.pageNameToElement.get(x);
if(!e){switch(x){case "watch":var l=_.t("web_watch_force_learning_journey_for_testing")?_.F_("ytd-watch-learning-journey"):_.t("kevlar_watch_fixie")?_.F_("ytd-watch-fixie"):_.t("kevlar_watch_grid")?_.F_("ytd-watch-grid"):_.F_("ytd-watch-flexy");break;case "learning_journey_watch":l=_.F_("ytd-watch-learning-journey");break;case "shorts":l=_.F_("ytd-shorts");break;case "search":l=_.F_("ytd-search");break;case "channel":l=_.F_("ytd-browse");l.pageSubtype="channels";break;case "trending":l=_.F_("ytd-browse");
l.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":l=
_.F_("ytd-browse");l.pageSubtype=x;break;case "browse":l=_.F_("ytd-browse");break;default:_.ft(new _.ry("Error getting page element for type",x))}e=l;O.pageNameToElement.set(x,e)}return e};
VXL.prototype.preparePage=function(O,x,e){e&&(O=_.C3(e)||O);if(O!=="watch"&&O!=="learning_journey_watch"){var l=this.elementPoolPopulator,C=O;C!=l.targetPage_&&l.pendingPages_.indexOf(C)>-1&&(l.targetPage_&&(l.pendingPages_.unshift(l.targetPage_),l.abort()),UZu(l,C),_.Jzz(l,C))}if((l=Cm(this,O))||!_.q(e,_.$b)){l.isAttached||l===x||(l.hidden=!0);if(!l.data&&(O!=="watch"&&O!=="learning_journey_watch"||!_.t("swatcheroo_page_pool_dont_provide_filler_data"))){var Q;if(O=(Q=_.wz("FILLER_DATA",{})[O])==
null?void 0:Q.response)l.data=O}return l}};var p4e=function(O){this.JSC$32361_clientRoot=O;this.playlistHandlerActionMap={"yt-add-to-playlist-command":koL,"yt-end-playlist-command":AtO,"yt-recover-playlist-command":DoL,"yt-refresh-playlist-command":XNe,"yt-playlist-remove-videos-action":GoO};_.e2(_.iU.getInstance(),this.playlistHandlerActionMap,this.JSC$32361_clientRoot);dZQ()},Rgp;var Q8=function(O,x,e){this.apiKey=O;this.endpoint=x;this.confidenceThreshold=e===void 0?.5:e;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=x==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||x==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
x==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||x==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new BHw};
_.b=Q8.prototype;
_.b.start=function(O){if(this.state===0)if(this.isOnline()){O.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=O.supportsHttpHeadersOverwriteParam);O.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=O.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.cU("voice_assistant");_.VO("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=O.languageCode||"en-US";this.supportsCrossDomainXhr=O.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=O.youtubeAssistantRequest||null;this.listeningHandler=O.listeningHandler||this.listeningHandler;this.audioDetectedHandler=O.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=O.stopHandler||this.stopHandler;this.completeHandler=O.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=O.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=O.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
O.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=O.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=O.accessToken;this.additionalHeaders=O.additionalHeaders||{};var x;this.prefetchResponseTimeoutMs=(x=O.prefetchResponseTimeoutMs)!=null?x:this.prefetchResponseTimeoutMs;UVu(this);this.startAudio();ahL(this)}else this.errorHandler("OFFLINE")};
_.b.stop=function(O){var x=O===void 0?{}:O;O=x.logCancel===void 0?!0:x.logCancel;var e=x.logMicClosed===void 0?!0:x.logMicClosed;var l=x.handleError===void 0?!0:x.handleError;x=x.handleStop===void 0?!0:x.handleStop;this.state!==0&&(O&&b7("voz_cx"),TP(this,{logMicClosed:e,handleStop:x}),l&&this.errorHandler("ABORTED"))};
_.b.getState=function(){return this.state};
_.b.isSupported=function(){return!0};
_.b.stopAudio=function(O){(O===void 0||O)&&b7("voz_mf")};
_.b.startAudio=function(){b7("voz_vp");return _.$7(null)};
var mVY=function(O,x){O.channelOpen&&(O.state!==2&&(O.state=2,b7("voz_ss"),O.listeningHandler()),x=new Uint8Array(x),x='{ "audioIn": "'+_.zX(x)+'" }',O.channel.send(x))},TP=function(O,x){var e=x===void 0?{}:x;
x=e.logMicClosed===void 0?!0:e.logMicClosed;e=e.handleStop===void 0?!0:e.handleStop;O.vozEndOfDataTimeout>-1&&(clearTimeout(O.vozEndOfDataTimeout),O.vozEndOfDataTimeout=-1);sML(O);O.stopAudio(x);O.channel&&(O.channelOpen=!1,O.manuallyClosedChannel=!0,O.channel.close(),O.channel=void 0);O.transcribedSpeechResults=[];O.state=0;e&&O.stopHandler()},UVu=function(O){var x={httpHeadersOverwriteParam:O.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},O.additionalHeaders,O.accessToken&&O.isUsingVoz?{Authorization:"Bearer "+O.accessToken}:{"x-goog-api-key":O.apiKey}),supportsCrossDomainXhr:O.supportsCrossDomainXhr};O.channel=new c5(O.endpoint,x);O.channel.open();_.ol(O.channel,"w",function(){var e=O.channel,l=e.send,C=O.isUsingVoz?"PLACEHOLDER":"example";C={config:{dialogStateIn:{languageCode:O.languageCode},deviceConfig:{deviceId:C,deviceModelId:C},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!O.isUsingVoz)C.config.requestType=4;else if(O.isUsingVoz&&O.youtubeAssistantRequest){var Q=JSON.stringify(O.youtubeAssistantRequest);C.config.internalIn={youtubeAssistantS3InputJson:Q}}l.call(e,C);O.channelOpen=!0;O.manuallyClosedChannel=!1});
_.ol(O.channel,"x",function(){O.manuallyClosedChannel||(O.channelOpen=!1,O.channel=void 0,TP(O))});
_.ol(O.channel,"z",function(e){if(e.data){sML(O);for(var l=0;l<e.data.length;l++){var C=O,Q=e.data[l],L=Q.speechResults;if(L)a:{var k=[];Q=[];var M=!1;L=_.T(L);for(var G=L.next();!G.done;G=L.next()){G=G.value;if(G.noSpeech){TP(C);C.errorHandler("NO_SPEECH");break a}G.transcript!==void 0&&G.stability!==void 0&&(G.stability<C.confidenceThreshold&&(M=!0),M?Q.push(G.transcript):k.push(G.transcript))}if(k.length!==0||Q.length!==0)k=k.join(" "),Q=Q.join(" "),C.receivedEndOfUtterance&&!C.isUsingVoz?C.isUsingVoz||
C.completeHandler([k,Q]):(M=C,L=k,G=Q,b7("voz_sf"),M.transcriptionUpdateHandler(L,G),M.transcribedSpeechResults=[L,G]),C.receivedEndOfUtterance&&(b7("voz_eou"),C.transcriptionCompleteHandler([k,Q]),C.isUsingVoz&&(C.prefetchResponseTimeoutMs===0?TP(C,{logMicClosed:!1,handleStop:!0}):C.prefetchResponseTimeoutMs>0&&WDu(C)))}else C.isUsingVoz&&(Q==null?0:Q.internalOut)?(Q=JSON.parse(Q.internalOut.youtubeAssistantS3OutputJson),Q.userHasOptedInToVaa||Q.vaaConsent?C.vaaConsentUpdateHandler(!!Q.userHasOptedInToVaa,
!!Q.vaaConsent):(hgY(C),Q&&(k=C.transcribedSpeechResults,b7("voz_rqf"),C.completeHandler(k,Q)))):Q.eventType==="END_OF_UTTERANCE"?C.receivedEndOfUtterance=!0:(b7("voz_err"),C.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.ft(Error("ul")))}}});
_.ol(O.channel,"y",function(e){TP(O);switch(e.status){case 1:e="WEBCHANNEL_NETWORK_ERROR";break;case 2:e="WEBCHANNEL_SERVER_ERROR";break;default:e="WEBCHANNEL_UNKNOWN_ERROR"}O.errorHandler(e);O.logError(Error(e))})};
Q8.prototype.logError=function(O){_.BH(O)};
Q8.prototype.isOnline=function(){return!0};
var WDu=function(O){hgY(O);O.prefetchResponseSetTimeoutId=setTimeout(function(){TP(O,{logMicClosed:!1,handleStop:!0})},O.prefetchResponseTimeoutMs)},hgY=function(O){O.prefetchResponseSetTimeoutId>-1&&(clearTimeout(O.prefetchResponseSetTimeoutId),O.prefetchResponseSetTimeoutId=-1)},ahL=function(O){sML(O);
O.noResponseReceivedTimeout=window.setTimeout(function(){TP(O);O.errorHandler("NO_SPEECH")},11E3)},sML=function(O){O.noResponseReceivedTimeout>-1&&(window.clearTimeout(O.noResponseReceivedTimeout),O.noResponseReceivedTimeout=-1)},b7=function(O){_.IR(O,void 0,"voice_assistant")};var Lm=function(){Q8.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.c(Lm,Q8);Lm.prototype.isSupported=function(){return oQL()};
Lm.prototype.startAudio=function(){var O=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Za(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(l){zgL(O,l)};
this.processor.connect(this.audioContext.destination);var x=function(l){O.stream=l;if(!O.audioContext)return _.$7(null);l=O.audioContext.createMediaStreamSource(l);O.processor&&l.connect(O.processor);return _.$7(null)},e={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?x(this.stream):(e=navigator.mediaDevices.getUserMedia(e))?e.then(x).catch(function(l){TP(O);l.name&&l.name==="NotAllowedError"?O.errorHandler("NO_MICROPHONE_PERMISSION"):(O.errorHandler("AUDIO_ERROR"),O.logError(l));return _.Za(null)}):(TP(this),this.errorHandler("AUDIO_ERROR"),_.ft(Error("vl")));
return Q8.prototype.startAudio.call(this)};
Lm.prototype.stopAudio=function(O){O=O===void 0?!0:O;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(x){x.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Q8.prototype.stopAudio.call(this,O)};
Lm.prototype.isOnline=function(){return navigator.onLine};
var zgL=function(O,x){if(O.audioContext)if(window.OfflineAudioContext){var e=O.audioContext.sampleRate,l=x.inputBuffer.getChannelData(0);x=new window.OfflineAudioContext(1,l.length,16E3);for(var C=x.createBuffer(1,l.length,e),Q=C.getChannelData(0),L=0,k=0;k<l.length;k++)Q[k]=l[k],L+=Q[k]*Q[k];!O.audioDetected&&Math.sqrt(L/l.length)>.01&&(O.audioDetected=!0,O.audioDetectedHandler());l=x.createBufferSource();l.buffer=C;l.connect(x.destination);l.start(0);x.oncomplete=function(M){M=M.renderedBuffer.getChannelData(0);
for(var G=Math.floor(16384E3/e),X=new Int16Array(G),y=0;y<G;++y)X[y]=Math.max(-1,Math.min(1,M[y]))*32767;mVY(O,X.buffer)};
x.startRendering()}else rCY(O,x)},rCY=function(O,x){var e=O.audioContext.sampleRate,l=x.inputBuffer.getChannelData(0),C=Math.floor((e+8E3)/16E3);
e=l.length/C;x=new Float32Array(e);for(var Q=0;Q<e;++Q)x[Q]=l[Q*C];l=new Int16Array(e);for(C=0;C<e;++C)l[C]=Math.max(-1,Math.min(1,x[C]))*32767;mVY(O,l.buffer)};var HCL={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var KDQ=function(){this.JSC$20216_audioEnabled=!0;this.audioFeedbackHolder={}};
KDQ.prototype.isPlaying=function(O){return O.currentTime>0&&!O.paused&&!O.ended&&O.readyState>2};
var dVY=function(O){for(var x=_.T(Object.values(HCL)),e=x.next();!e.done;e=x.next())e=e.value,O.audioFeedbackHolder[e]=new Audio,O.audioFeedbackHolder[e].src="/s/search/audio/"+e+".mp3",O.audioFeedbackHolder[e].load()},kZ=function(O,x){if(O.JSC$20216_audioEnabled!==!1&&x in O.audioFeedbackHolder){for(var e=_.T(Object.values(O.audioFeedbackHolder)),l=e.next();!l.done;l=e.next())l=l.value,O.isPlaying(l)&&l.pause();
O.audioFeedbackHolder[x].currentTime=0;O.audioFeedbackHolder[x].play().catch(function(){})}};var nBu=function(O,x){var e=this;this.store=O;this.service=x;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){e.setState("offline");e.stop()};
this.audioPlayer=new KDQ;var l;(l=this.audioPlayer)==null||dVY(l)};
_.b=nBu.prototype;_.b.getService=function(){return this.service};
_.b.isEnabled=function(){return!!this.service};
_.b.isSupported=function(){var O;return(O=this.service)==null?void 0:O.isSupported()};
_.b.start=function(){var O=this,x,e,l,C,Q,L,k,M,G,X,y,Z,E;return _.A(function(P){switch(P.nextAddress){case 1:O.store.dispatch(wxT("",""));if(!navigator.onLine)return O.setState("offline"),P.return();window.addEventListener("offline",O.handleOfflineEvent);O.stream=null;if(!O.permissionsSupported){P.jumpTo(2);break}_.tS(P,3);return P.yield(uqQ(O),5);case 5:x=P.yieldResult;if(!x)return(e=O.audioPlayer)==null||kZ(e,"failure"),P.return();O.service.stream=O.stream;O.setState("listening");_.lb(P,2);break;
case 3:_.VP(P),O.permissionsSupported=!1;case 2:l={context:_.uxm(_.oC())},l.youtubeAssistantParams={searchParams:{inlineSearchResponse:O.enableInlineSearchResponse}},C=function(U,W){O.store.dispatch(SSw("transcribing"));O.store.dispatch(wxT(U,W))},Q=function(){var U;
(U=O.audioPlayer)==null||kZ(U,"open");O.setState("listening")},L=function(){O.setState("transcribing")},k=function(U){O.setErrorState(U)},M=function(U,W){var z;
(z=O.audioPlayer)==null||kZ(z,"success");W&&(_.t("kevlar_voice_search_inline_search")&&(O.responseProcessor=_.GG().resolve(_.Lkm),O.responseProcessor&&(z=W.navigationAction,U=W.prefetchedSearchResponse,z&&U&&(z=(new _.NcO).JSC$13273_getStoreKey(z),_.aL(O.responseProcessor,U,z)))),O.JSC$20234_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",W))},G=function(){window.removeEventListener("offline",O.handleOfflineEvent)},X=_.Nbr(!1),y=X.Authorization!=null,Z=O.enableFirstPartyAuth||
O.enableFPAForSignedInUsers&&y?X:{"X-Goog-Visitor-Id":X["X-Goog-Visitor-Id"]},E={completeHandler:M,
errorHandler:k,listeningHandler:Q,audioDetectedHandler:L,stopHandler:G,transcriptionUpdateHandler:C,youtubeAssistantRequest:l,languageCode:YXO(),additionalHeaders:Z,supportsCrossDomainXhr:O.enableFirstPartyAuth||O.enableFPAForSignedInUsers&&y,supportsHttpHeadersOverwriteParam:!O.disableHttpHeadersOverwrite},O.service.start(E),_.Ra(P)}})};
_.b.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.b.reset=function(){this.store.dispatch(_.j6({type:"RESET_VOICE_SEARCH_STATE"}))};
_.b.setState=function(O){this.store.dispatch(SSw(O))};
_.b.setErrorState=function(O){switch(O){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var x;(x=this.audioPlayer)==null||kZ(x,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)uqQ(this);else{var e;(e=this.audioPlayer)==null||kZ(e,"failure");this.setState("permission-denied")}break;case "ABORTED":var l;(l=this.audioPlayer)==null||kZ(l,"no_input");break;default:var C;(C=this.audioPlayer)==
null||kZ(C,"no_input");this.setState("timeout")}};
var uqQ=function(O){var x,e;return _.A(function(l){switch(l.nextAddress){case 1:return l.yield(navigator.permissions.query({name:"microphone"}),2);case 2:x=l.yieldResult;if(x.state==="granted")return l.return(!0);if(x.state==="denied")return O.setState("permission-denied"),l.return(!1);O.setState("permission");e={audio:{sampleSize:16,channelCount:1},video:!1};_.tS(l,3);return l.yield(navigator.mediaDevices.getUserMedia(e),5);case 5:return O.stream=l.yieldResult,l.return(!0);case 3:return _.VP(l),
O.setState("permission-denied"),l.return(!1)}})},YXO=function(){var O=_.wz("INNERTUBE_CONTEXT_HL"),x=_.wz("INNERTUBE_CONTEXT_GL");
return O.indexOf("-")>-1?O:O+"-"+x};var B9X=function(O,x,e){nBu.call(this,x,e);this.JSC$20234_actionRouter=O;this.enableInlineSearchResponse=_.t("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.t("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.t("kevlar_voice_search_enable_fpa_signedin_users")},vBL;
_.c(B9X,nBu);
var fhT=function(){if(!vBL){var O="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.t("kevlar_voice_search_auth_enabled")||_.t("kevlar_voice_search_use_yt_endpoint")?O="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.t("kevlar_voice_search_use_fp_endpoint")&&(O="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");vBL=
new B9X(_.iU.getInstance(),_.u9(),new Lm(_.wz("VOZ_API_KEY"),O,.5))}return vBL};var JCw=function(O){this.JSC$20238_clientRoot=O;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20238_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));O=_.T(this.eventListeners);for(var x=O.next();!x.done;x=O.next()){var e=
_.T(x.value);x=e.next().value;e=e.next().value;e=_.T(e);for(var l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;x.addEventListener(l,C)}}_.e2(_.iU.getInstance(),this.autonavPauseActionMap,this.JSC$20238_clientRoot)},w4L,SX4=function(O){return _.t("kevlar_autonav_popup_filtering")?(O=_.uK(O))?O.hasAttribute("prevent-autonav"):!0:!0};
_.b=JCw.prototype;_.b.onIronOverlayOpened=function(O){SX4(O)&&(this.autonavPauseReasons.overlayOpen=!0,Aw(this))};
_.b.onIronOverlayClosed=function(O){SX4(O)&&(this.autonavPauseReasons.overlayOpen=!1,Aw(this))};
_.b.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Aw(this)};
_.b.onYtAutonavPauseBlur=function(){var O=this;_.vn.addJob(function(){O.isInBackground()||(O.autonavPauseReasons.inputBoxFocus=!1,Aw(O))},8,0)};
_.b.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Aw(this)};
_.b.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Aw(this)};
_.b.onYtAutonavPauseScroll=function(){var O=_.GG().resolve(_.Be);O.isOnWatch()&&(O=O.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=O.getBoundingClientRect().top<-200,Aw(this))};
_.b.onYtAutonavPauseUserEngagement=function(O){var x=this;if(_.t("user_engagement_enable_autoplay_pause_feature")){var e=Number(O.lowEngagementThresholdMs);isNaN(e)||e<=0||O.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.GG().resolve(_.Fn),_.Gl()<e?_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.zrw()?(this.userEngagementCsn=_.Pq(),_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
x.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Aw(this)):_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.O5V(Error("wl`"+JSON.stringify(O)))};
_.b.onYtAutonavPausePlayer=function(O){this.autonavPauseReasons.requestedByPlayer=!!O.detail;Aw(this)};
_.b.onYtAutonavVisibilityChanged=function(){var O=this,x,e,l;return _.A(function(C){if(C.nextAddress==1)return(x=_.f7())?C.yield(x.getPlayerPromise(),2):C.return();e=C.yieldResult;l=e.isMuted()||e.getVolume()===0;O.autonavPauseReasons.backgroundAndMute=O.isInBackground()&&l;Aw(O);_.Ra(C)})};
_.b.onYtAutonavPausePlayerEnded=function(){_.GG().resolve(_.Fn);var O=144E5;_.t("user_engagement_enable_autoplay_pause_feature")||_.t("is_part_of_any_user_engagement_experiment")||(O=45E5);this.autonavPauseReasons.longIdle=_.Gl()>O;jMw(this);Aw(this)};
_.b.onYtUserActivity=function(){var O=this;this.autonavPauseReasons.userEngagement&&(_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",O.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Aw(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",O.userEngagementCsn);_.Yb()}),this.autonavPauseReasons.youthereLactExperiment=!1,Aw(this));
this.autonavPauseReasons.longIdle&&!_.t("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Aw(this))};
_.b.isInBackground=function(){var O=window.document.visibilityState;return!(!O||O==="visible")};
var Aw=function(O){for(var x=!1,e=_.T(Object.values(O.autonavPauseReasons)),l=e.next();!l.done;l=e.next())l=l.value,x=x||l;x?_.Ax.getInstance().pause(O.autonavPauseReasons):(O=_.Ax.getInstance(),O.autonavState_==3?(O.setState(2,!1,!1),O.autonavPauseReason_=void 0):O.autonavState_==1&&(O.disabledAutonavPauseReason_=void 0))},jMw=function(O){var x=!1;
if(_.t("enable_autoplay_pause_by_lact")){_.GG().resolve(_.Fn);x=_.yF("autoplay_pause_by_lact_sec")*1E3;var e=_.yF("autoplay_pause_by_lact_sampling_fraction");(x=_.Gl()>=x&&Math.random()<e)&&!_.zrw()&&(_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),x=!1)}x!==O.autonavPauseReasons.youthereLactExperiment&&(O.autonavPauseReasons.youthereLactExperiment=x)&&(O.userEngagementCsn=_.Pq(),_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",O.userEngagementCsn)}));
O.autonavPauseReasons.userEngagement&&_.zl(_.vn,function(){_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",O.userEngagementCsn)})};
JCw.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.z2("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Yb(),this.autonavPauseReasons.youthereLactExperiment=!1,Aw(this));this.autonavPauseReasons.userEngagement&&(_.z2("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Aw(this))};
JCw.prototype.onYtEngagementPanelVisibleChanged=function(O){O.detail&&O.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=O.detail.visible,Aw(this))};
JCw.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var N9u=_.at.persistentPanelVisibleSelector,MG=function(){var O=_.a.apply(this,arguments)||this;O.miniGuideVisible=!1;O.guideOpened=_.t("disable_initial_guide_state_fix")?!1:O.canFitPersistentGuide(O.initialBodyClientWidth);O.guideUserStateOpened=O.getInitialGuideUserStateOpened();O.isFullscreenShorts=!1;O.miniGuideWidthThreshold=_.yF("kevlar_mini_guide_width_threshold",791);O.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
O.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");O.persistentGuideBlockedPagePathRegex=new RegExp(O.persistentGuideBlockedPagesPatterns.join("|"));O.animationTransitionDuration=0;O.lateDataResolver=_.He();O.initialGuideDataFetchFailed=!1;O.initialLoad=!0;O.guideRenderers=new Set;O.isMouseOverGuide=!1;O.sessionUserManuallyExpandedGuideState=
!1;O.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return O};
_.c(MG,_.a);_.b=MG.prototype;_.b.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.b.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.b.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.b.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.b.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.b.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.b.ready=function(){_.GG().addProvider({provide:_.Cj,useValue:this.hostElement})};
_.b.attached=function(){var O=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Qa(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Qa(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Qa(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Qa(this,this.onYtGuideShow));_.A_(this,function(){O.animationTransitionDuration=200})};
_.b.detached=function(){document.removeEventListener("yt-navigate-finish",_.Qa(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Qa(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Qa(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Qa(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Qa(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Qa(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Qa(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.b.getData=function(){return this.data};
_.b.load=function(){var O=this,x,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=O.lateDataResolver.resolve.bind(O),Q.return(O.lateDataResolver.promise);if(window.ytInitialGuideData)return x=_.He(),x.resolve(window.ytInitialGuideData),Q.return(x.promise);l=!1;_.tS(Q,2);return Q.yield(O.fetchGuideData(),4);case 4:e=Q.yieldResult;_.lb(Q,3);break;case 2:C=_.VP(Q),C.message==="Returned error"&&(l=
!0);case 3:if(e)return Q.return(e);O.onYtGuideClose();l||(O.initialGuideDataFetchFailed=!0);return Q.return(O.lateDataResolver.promise)}})};
_.b.fetchGuideData=function(){var O=this,x,e,l,C,Q,L,k;return _.A(function(M){if(M.nextAddress==1)return x=_.GG(),O.guidePromise||(e=x.resolve(_.IF),O.guidePromise=_.z7(e,OrL)),M.yield(O.guidePromise,2);if(M.nextAddress!=3)return l=M.yieldResult,C=x.resolve(_.Ri),M.yield(C(),3);(Q=M.yieldResult)&&((L=l)==null?void 0:(k=L.responseContext)==null?void 0:k.maxAgeSeconds)!==0&&Q.put("service:guide:fallback",new _.RX({innertubeResponse:l}));return M.return(l)})};
_.b.initializeGuideDataIfEmpty=function(){var O=this,x,e;return _.A(function(l){if(l.nextAddress==1){if(!O.initialGuideDataFetchFailed||O.data)return l.return();_.tS(l,2);return l.yield(O.fetchGuideData(),4)}if(l.nextAddress!=2)return(x=l.yieldResult)&&O.lateDataResolver.resolve(x),_.lb(l,0);e=_.VP(l);_.ft(e);_.Ra(l)})};
_.b.initializeGuideData=function(){var O=this,x;return _.A(function(e){switch(e.nextAddress){case 1:return _.ic(Rpp(),{mainAppWeb:_.rO()}),_.tS(e,2),e.yield(O.load(),4);case 4:O.data=e.yieldResult;_.lb(e,3);break;case 2:_.VP(e),_.Oe(Rpp(),"FAILURE");case 3:x=O.data&&O.data.items&&O.data.items.length>0?"SUCCESS":"FAILURE",_.Oe(Rpp(),x),_.Ra(e)}})};
_.b.setGuideData=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1)return x.disabled?C.return():x.data?(O.data=x.data,x.guideRenderers.add(O),C.return()):C.yield(x.initializeGuideData(),2);x.graftGuideToPage();e=_.SS("IS_HOMEPAGE_COLD")?"eop":void 0;_.t("disable_element_pool_populator")?x.setGuideDataAfterInit(O):(l=new _.X_(1,e),_.oV(l,x.setGuideDataAfterInit.bind(x,O)));_.Ra(C)})};
_.b.setGuideDataAfterInit=function(O){O.data=this.data;O.markDirty();this.guideRenderers.add(O);_.WZ(function(){_.IR("gle")});
_.A_(this,function(){_.IR("gpe")})};
_.b.graftGuideToPage=function(){if(this.data){var O=this.data&&this.data.trackingParams;O&&(O=_.Fv(O),_.Pu(_.k0(),O))}};
_.b.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Qa(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.b.onDrawerOpenedChanged=function(O,x){!x.value&&this.guideOpened&&(this.guideOpened=!1)};
_.b.onYtGuideToggle=function(O){var x=this.guideOpened;this.guideOpened=!x;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var e=_.TD();_.LZ(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;e.save()}this.updateGuideDrawerElementState();if(this.guideElement){var l;this.guideOpened&&((l=O.detail)==null?0:l.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Qa(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Qa(this,this.onAppDrawerTransitioned))}x||this.initializeGuideDataIfEmpty()};
_.b.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Qa(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.bU(this.guideElement)};
_.b.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Qa(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(fVO(this.guideOpened))};
_.b.guidePersistentAndVisibleChanged=function(){_.jh(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.b.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.j6({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.b.miniGuideVisibleChanged=function(){_.jh(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.b.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(fVO(this.guideOpened)),this.initialLoad=!1);_.jh(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.b.activeEndpointChanged=function(){_.jh(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.b.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.b.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()};
_.b.cachedClientWidthChanged=function(){this.updateGuideState()};
_.b.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.b.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var O=this.canFitPersistentGuide(this.cachedClientWidth);O?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=O}this.updateGuideDrawerElementState()};
_.b.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.b.getGuideOpened=function(){return this.guideOpened};
_.b.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.b.getActiveEndpoint=function(){return this.activeEndpoint};
_.b.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.b.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&&_.wr(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.b.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.t("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.b.handleGuideMouseLeave=function(){var O=this;!this.sessionUserManuallyExpandedGuideState&&_.t("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.hY(this,"handleGuideMouseLeave",function(){O.isMouseOverGuide||!O.guideOpened||O.miniGuideVisible||(O.guideOpened=!1,O.updateGuideDrawerElementState())},100))};
_.b.computeGuidePersistentAndVisible=function(){var O=this;_.hY(this,"computeGuidePersistentAndVisible",function(){O.guidePersistentAndVisible=O.guideOpened&&O.guidePersistent;O.guideIsVisibleButNotPersistent=!(!O.guideOpened||O.guidePersistent)})};
_.b.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.b.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.b.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.b.startLoadingWatch=function(){this.closeGuide()};
_.b.startLoadingShorts=function(){_.t("web_hide_guide_on_shorts")&&this.closeGuide()};
_.b.onYtNavigateFinish=function(O,x){if(!_.j1||x){this.activeEndpoint=x.endpoint;this.pageType=x.pageType;this.pageUrl=x.response.url;var e,l;O=(l=_.q((e=x.endpoint)==null?void 0:e.commandMetadata,_.e6))==null?void 0:l.url;!this.pageUrl&&O&&(this.pageUrl=O);_.t("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.b.getVisibleGuideRenderer=function(){for(var O=_.T(this.guideRenderers),x=O.next();!x.done;x=O.next())if(x=x.value,this.miniGuideVisible&&x.is==="ytd-mini-guide-renderer"||this.guideOpened&&x.is==="ytd-guide-renderer")return x;return null};
_.b.markGuideRendererDirty=function(O){if(O){typeof O.markDirty==="function"&&O.markDirty();O=_.T([].concat(_.Kx(_.$U(O).children)));for(var x=O.next();!x.done;x=O.next())this.markGuideRendererDirty(x.value)}};
_.b.persistentGuideEnabled=function(O,x){if(!x||O==="watch"||O==="settings"||O==="shorts"&&this.isFullscreenShorts||_.t("reels_web_disable_persistent_guide_shorts")&&O==="shorts")return!1;var e=_.VF(x)||"";return _.t("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(l){return e===l}):!this.persistentGuideBlockedPagePathRegex.test(e)};
_.b.canFitPersistentGuide=function(O){var x=_.yF("kevlar_persistent_guide_width_threshold",1312);return x===-1||_.t("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:O>this.calculateGuideThreshold(x)};
_.b.calculateGuideThreshold=function(O){return _.t("enable_ai_companion")?O+(this.persistentPanelVisible?400:0):O};
_.b.canFitMiniGuide=function(O){return this.miniGuideWidthThreshold===-1?!1:O>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.b.onResize=function(){var O=this;_.hY(this,"calculateGuideState",function(){O.onResizeDebounced()})};
_.b.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.b.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.b.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.b.getInitialGuideUserStateOpened=function(){return _.t("web_force_mini_guide_default")?!1:!_.TD().getFlag(109)};
_.Dy.Object.defineProperties(MG.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.wz("initialBodyClientWidth")||window.innerWidth}}});
MG.prototype.onResize=MG.prototype.onResize;MG.prototype.observeForMiniGuideVisible=MG.prototype.observeForMiniGuideVisible;MG.prototype.computeGuidePersistentAndVisible=MG.prototype.computeGuidePersistentAndVisible;MG.prototype.persistentPanelVisibleChanged=MG.prototype.persistentPanelVisibleChanged;MG.prototype.cachedClientWidthChanged=MG.prototype.cachedClientWidthChanged;MG.prototype.resetGuide=MG.prototype.resetGuide;MG.prototype.activeEndpointChanged=MG.prototype.activeEndpointChanged;
MG.prototype.guideOpenedChanged=MG.prototype.guideOpenedChanged;MG.prototype.miniGuideVisibleChanged=MG.prototype.miniGuideVisibleChanged;MG.prototype.guideIsVisibleButNotPersistentChanged=MG.prototype.guideIsVisibleButNotPersistentChanged;MG.prototype.guidePersistentAndVisibleChanged=MG.prototype.guidePersistentAndVisibleChanged;MG.prototype.onGuideElementChanged=MG.prototype.onGuideElementChanged;MG.prototype.onGuidePersistentChanged=MG.prototype.onGuidePersistentChanged;
MG.prototype.onRenderGuideChanged=MG.prototype.onRenderGuideChanged;MG.prototype.onActiveEndpointChanged=MG.prototype.onActiveEndpointChanged;MG.prototype.onMiniGuideVisibleChanged=MG.prototype.onMiniGuideVisibleChanged;MG.prototype.onGuideIsVisibleButNotPersistentChanged=MG.prototype.onGuideIsVisibleButNotPersistentChanged;MG.prototype.onGuidePersistendAndVisibleChanged=MG.prototype.onGuidePersistendAndVisibleChanged;
_.B([_.V(_.Wg),_.v("design:type",Object)],MG.prototype,"ironResizableBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],MG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],MG.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],MG.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Boolean)],MG.prototype,"disabled",void 0);_.B([_.R(),_.v("design:type",Boolean)],MG.prototype,"guidePersistentAndVisible",void 0);_.B([_.T1("guidePersistentAndVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onGuidePersistendAndVisibleChanged",null);_.B([_.R(),_.v("design:type",Boolean)],MG.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.T1("guideIsVisibleButNotPersistent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.B([_.R(),_.v("design:type",Object)],MG.prototype,"miniGuideVisible",void 0);_.B([_.T1("miniGuideVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onMiniGuideVisibleChanged",null);_.B([_.R(),_.v("design:type",Boolean)],MG.prototype,"forceMiniGuideClose",void 0);
_.B([_.R(),_.v("design:type",Object)],MG.prototype,"activeEndpoint",void 0);_.B([_.T1("activeEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onActiveEndpointChanged",null);_.B([_.R(),_.v("design:type",Boolean)],MG.prototype,"renderGuide",void 0);_.B([_.T1("renderGuide"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onRenderGuideChanged",null);
_.B([_.R({selector:N9u}),_.v("design:type",Boolean)],MG.prototype,"persistentPanelVisible",void 0);_.B([_.R(),_.v("design:type",Object)],MG.prototype,"guideOpened",void 0);_.B([_.R(),_.v("design:type",Boolean)],MG.prototype,"guidePersistent",void 0);_.B([_.T1("guidePersistent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onGuidePersistentChanged",null);_.B([_.R(),_.v("design:type",Object)],MG.prototype,"guideUserStateOpened",void 0);
_.B([_.R(),_.v("design:type",String)],MG.prototype,"pageUrl",void 0);_.B([_.R(),_.v("design:type",String)],MG.prototype,"pageType",void 0);_.B([_.R(),_.v("design:type",Number)],MG.prototype,"cachedClientWidth",void 0);_.B([_.R(),_.v("design:type",Object)],MG.prototype,"guideElement",void 0);_.B([_.R({selector:_.f5}),_.v("design:type",Object)],MG.prototype,"isFullscreenShorts",void 0);
_.B([_.T1("guideElement"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onGuideElementChanged",null);_.B([_.T1("guidePersistentAndVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"guidePersistentAndVisibleChanged",null);
_.B([_.G1("guideIsVisibleButNotPersistent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"guideIsVisibleButNotPersistentChanged",null);_.B([_.T1("miniGuideVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"miniGuideVisibleChanged",null);_.B([_.G1("guideOpened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"guideOpenedChanged",null);
_.B([_.T1("activeEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"activeEndpointChanged",null);_.B([_.G1("pageUrl"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"resetGuide",null);_.B([_.G1("cachedClientWidth"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"cachedClientWidthChanged",null);
_.B([_.G1("persistentPanelVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"persistentPanelVisibleChanged",null);_.B([_.T1("guideOpened","guidePersistent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"computeGuidePersistentAndVisible",null);
_.B([_.G1("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"observeForMiniGuideVisible",null);_.B([_.bH("iron-resize"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MG.prototype,"onResize",null);_.B([_.H({disableElementRegistration:!0,is:"yt-guide-manager"})],MG);
var gBL=_.n(MG,"yt-guide-manager",void 0,{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var DI=function(){var O=_.a.apply(this,arguments)||this;O.JSC$20248_keyboardInUse=!1;O.boundHandleCapturedKeydownEvent=function(x){O.handleCapturedKeydownEvent(x)};
return O};
_.c(DI,_.a);_.b=DI.prototype;_.b.attached=function(){this.listenToDocument(document)};
_.b.listenToDocument=function(O){O.addEventListener("keydown",_.Qa(this,this.onKeyDownEvent));O.addEventListener("keyup",_.Qa(this,this.onKeyUpEvent));O.addEventListener("mousedown",_.Qa(this,this.onMouseDownEvent));_.t("desktop_keyboard_capture_keydown_killswitch")||O.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);O.addEventListener("yt-page-data-updated",_.Qa(this,this.onPageUpdate))};
_.b.detached=function(){this.unlistenFromDocument(document)};
_.b.unlistenFromDocument=function(O){O.removeEventListener("keydown",_.Qa(this,this.onKeyDownEvent));O.removeEventListener("keyup",_.Qa(this,this.onKeyUpEvent));O.removeEventListener("mousedown",_.Qa(this,this.onMouseDownEvent));_.t("desktop_keyboard_capture_keydown_killswitch")||O.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);O.removeEventListener("yt-page-data-updated",_.Qa(this,this.onPageUpdate))};
_.b.ready=function(){_.GG().addProvider({provide:_.qL,useValue:this})};
_.b.isKeyBoardInUse=function(){return this.JSC$20248_keyboardInUse};
_.b.handleCapturedKeydownEvent=function(O){if(O.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(O)};
_.b.onMouseDownEvent=function(){this.JSC$20248_keyboardInUse=!1};
_.b.onPageUpdate=function(){if(_.t("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.t("web_shorts_keyboard_shortcut_usage_log")){_.nk.clear();for(var O=_.T(_.Kk),x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;e=e.next().value;e=_.O9(e);_.nk.set(x,e);_.WU(_.Pq(),_.q9(),e)}_.uv.clear();O=_.T(_.di);for(x=O.next();!x.done;x=O.next())e=_.T(x.value),x=e.next().value,e=e.next().value,e=_.O9(e),_.uv.set(x,e),_.WU(_.Pq(),_.q9(),e);_.h3(_.Pq(),_.q9(),[].concat(_.Kx(_.uv.values()),
_.Kx(_.nk.values())));_.rT(_.Pq(),[].concat(_.Kx(_.uv.values()),_.Kx(_.nk.values())))}};
_.b.onMiniplayerActiveChange=function(){var O;(O=_.GG().resolve(_.Vs).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(O.document):this.unlistenFromDocument(O.document))};
_.b.ignoreKeyEvent=function(O){if(O.ctrlKey||O.altKey)if(_.t("kevlar_macro_markers_keyboard_shortcut")){if(O.keyCode!==37&&O.keyCode!==39)return!0}else return!0;var x=_.n3(O)||[];return _.KCQ(x)?(_.t("web_button_or_anchor_list_item")&&NPL(x,O)&&(this.JSC$20248_keyboardInUse=!0),!0):O.defaultPrevented?(Qk(O.keyCode,O.shiftKey,this.isShortsPage),!0):O.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(O):!1};
_.b.isSpacebarClick=function(O){var x=O||window.event;var e;x.composedPath&&typeof x.composedPath==="function"?e=x.composedPath():e=x.path;e&&e.length?x=e[0]:(x=x||window.event,x=x.target||x.srcElement,x.nodeType==3&&(x=x.parentNode));return x&&O.keyCode===32&&(O=x.tagName==="BUTTON"||x.tagName==="A"||x.tagName==="INPUT",x=(x=x.getAttribute("role"))&&(x==="option"||x==="button"||x.indexOf("menuitem")===0),O||x)?!0:!1};
_.b.onKeyDownEvent=function(O){if(!this.ignoreKeyEvent(O)&&(O.keyCode===191&&(O.shiftKey||O.metaKey?O.repeat!=null&&O.repeat||(this.openHotkeyDialog(),Qk(O.keyCode,O.shiftKey,this.isShortsPage)):(this.focusSearchBox(),O.preventDefault())),!O.metaKey)){var x=_.GG().resolve(_.Vs);switch(O.keyCode){case 9:this.JSC$20248_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(O);break;case 84:x.pipController.getWindow()&&window.focus();this.toggleTheaterMode(O.keyCode,O.shiftKey);break;case 73:x.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(O.keyCode,O.shiftKey);break;case 70:if(this.isShortsPage&&_.t("web_fullscreen_shorts")){_.dwQ();break}this.isMiniplayerActive()?x.pipController.getWindow()&&(x.close(!0),window.focus()):this.passEventToPlayer(O);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(O.keyCode,O.shiftKey):this.closeMiniplayer(O.keyCode,O.shiftKey)||this.passEventToPlayer(O);break;case 13:O.shiftKey&&_.GG().resolve(_.NU).activate(O);break;default:this.passEventToPlayer(O)}}};
_.b.onKeyUpEvent=function(O){if(!this.ignoreKeyEvent(O))if(_.t("web_speedmaster_spacebar_control")&&O.keyCode===32)this.handlePlayerSpaceKey(O,!0);else{var x=this.getPlayerManager();x&&(x=x.getPlayer())&&x.handleGlobalKeyUp(O.keyCode,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code)}};
_.b.getPlayerManager=function(){var O=_.f7(),x=_.GG().resolve(_.D0(_.Be));return O&&x&&x.isOnWatch()?O:null};
_.b.passEventToPlayer=function(O,x){var e=this,l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){if(!_.t("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&e.isMiniplayerActive())l=_.GG().resolve(_.Vs).getPlayerElement();else if(e.inlinePreviewIsActive){if(C=_.jh(e.hostElement,"yt-get-inline-preview-player-action"),(Q=C)==null?0:Q[0])l=C[0]}else l=_.f7();return l?k.yield(l.getPlayerPromise(),3):k.jumpTo(0)}L=k.yieldResult;x?L.handleGlobalKeyUp(O.keyCode,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,
O.key,O.code):L.handleGlobalKeyDown(O.keyCode,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code,O.repeat);O.keyCode!==38&&O.keyCode!==40&&Qk(O.keyCode,O.shiftKey,e.isShortsPage);_.Ra(k)})};
_.b.focusSearchBox=function(){_.wr(this.hostElement,"yt-focus-searchbox")};
_.b.openHotkeyDialog=function(){_.wr(this.hostElement,"yt-open-hotkey-dialog")};
_.b.isMiniplayerActive=function(){return _.GG().resolve(_.Vs).isMiniplayerActive()};
_.b.closeMiniplayer=function(O,x){return this.isMiniplayerActive()?(_.GG().resolve(_.Vs).close(),Qk(O,x,this.isShortsPage),!0):!1};
_.b.toggleTheaterMode=function(O,x){var e=_.I2(_.u9().getState()),l=this.getPlayerManager(),C=_.t("disable_theater_mode_keyboard")||_.SS("START_IN_FULL_WINDOW_MODE");l&&!C&&(e=!e,_.Bq()&&_.t("external_fullscreen")&&(e=!0),_.Sh(this.hostElement,"yt-toggle-theater-mode",[e]),Qk(O,x,this.isShortsPage))};
_.b.toggleMiniplayer=function(O,x){var e=this.getPlayerManager();if(this.isMiniplayerActive()){var l;((l=_.GG().resolve(_.D0(_.Be)))==null?0:l.isOnWatch())?_.GG().resolve(_.Vs).close(!0):_.bs(_.GG().resolve(_.Vs));Qk(O,x,this.isShortsPage)}else e&&(_.Sh(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Qk(O,x,this.isShortsPage))};
_.b.handlePlayerSpaceKey=function(O,x){var e=!!_.f7()||this.isMiniplayerActive();e=_.t("disable_space_scroll_fix")||e;_.t("global_spacebar_pause")&&!this.isKeyBoardInUse()&&e&&(O.preventDefault(),this.passEventToPlayer(O,x))};
_.b.isPresentingTheaterMode=function(){return _.t("web_watch_enable_tm_esc_key")?_.I2(_.u9().getState())&&!_.Bq():!1};
DI.prototype.onMiniplayerActiveChange=DI.prototype.onMiniplayerActiveChange;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],DI.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],DI.prototype,"ytdReduxBehavior",void 0);_.B([_.R({selector:_.sVi}),_.v("design:type",Boolean)],DI.prototype,"inlinePreviewIsActive",void 0);_.B([_.R({selector:_.fIV}),_.v("design:type",Boolean)],DI.prototype,"isShortsPage",void 0);
_.B([_.R({selector:_.P1}),_.v("design:type",Boolean)],DI.prototype,"miniplayerIsActive",void 0);_.B([_.T1("miniplayerIsActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],DI.prototype,"onMiniplayerActiveChange",null);_.B([_.H({disableElementRegistration:!0,is:"yt-hotkey-manager"})],DI);_.n(DI,"yt-hotkey-manager",void 0,{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var GP=function(){var O=_.a.apply(this,arguments)||this;O.loopStateEntityKey_=null;O.playlistLoopStateEntity_=null;O.isShuffleNextPlaylist=!1;O.PLAYER_EVENTS_=new Map;O.playerListenersSetup_=!1;O.videoSkipJob_=0;O.canAutoAdvance_=!1;O.playerManager_=null;O.TEST_ONLY={};return O};
_.c(GP,_.a);_.b=GP.prototype;_.b.ready=function(){_.GG().addProvider({provide:_.gx,useValue:this.hostElement})};
_.b.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_)};
_.b.attached=function(){document.addEventListener("yt-navigate-start",_.Qa(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Qa(this,this.onYtNavigateFinish_))};
_.b.detached=function(){document.removeEventListener("yt-navigate-start",_.Qa(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Qa(this,this.onYtNavigateFinish_))};
_.b.updatePlaylistEventListeners=function(O,x){x&&!this.playerListenersSetup_?(this.playerManager_=O,this.registerPlaylistEventListeners_(O)):!x&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(O))};
_.b.setPlayer=function(O){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=O};
_.b.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.b.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.b.registerPlaylistEventListeners_=function(O){var x=this;O.getPlayerPromise().then(function(e){x.playerListenersSetup_||(x.ytPlayerListenerBehavior.listenToPlayerEvents(e,x.PLAYER_EVENTS_),x.playerListenersSetup_=!0)})};
_.b.removePlaylistEventListeners_=function(O){var x=this;O.getPlayerPromise().then(function(e){x.playerListenersSetup_&&(x.ytPlayerListenerBehavior.unlistenFromPlayerEvents(e,x.PLAYER_EVENTS_),x.playerListenersSetup_=!1)})};
_.b.setPlaylistComponent=function(O){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Qa(this,this.onPlaylistYtNavigate_)),O&&(O.data&&this.playlistComponent.data&&O.data.playlistId==this.playlistComponent.data.playlistId?(O.loopOn=this.playlistComponent.loopOn,O.shuffleOn=this.playlistComponent.shuffleOn):(O.loopOn=!1,O.shuffleOn=!1),this.isShuffleNextPlaylist&&(O.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=O;this.playlistComponent.addEventListener("yt-navigate",
_.Qa(this,this.onPlaylistYtNavigate_))};
_.b.setAutoplayRenderer=function(O){this.autoplayData=O};
_.b.setPlaylistData=function(O){this.currentPlaylistData_=O;_.wr(this.hostElement,"yt-playlist-data-updated");_.HX.isEmpty(O)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(O)};
_.b.setPlayerPlaybackControlData=function(O){this.playerManager_&&this.playerManager_.updatePlayerComponents(O.playlistPanelRenderer)};
_.b.getPlaylistData=function(){return this.currentPlaylistData_};
_.b.getTempData_=function(O,x){if(this.playlistComponent==null)return null;O={};this.playlistComponent.shuffleOn&&(O.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(O.loop_on=this.playlistComponent.loopOn);x&&(O.autonav="1",_.GG().resolve(_.Fn),x=_.Gl(),x>0&&(O.lact=x),this.playerManager_&&(x=this.playerManager_.getPlayer())&&x.shouldSendVisibilityState()&&(x=x.getVisibilityState(),x!=0&&(O.vis=x)));_.t("enable_unknown_lact_fix_on_html5")&&(_.GG().resolve(_.Fn),O.lact=
_.Gl());return O};
_.b.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.b.setLoopStateEntityKey_=function(O){var x;this.loopStateEntityKey_=((x=this.getPlaylistLoopData_(O))==null?void 0:x.playlistLoopStateEntityKey)||null};
_.b.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.b.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.b.skipVideo=function(){var O=this,x=_.t("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||x)x=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.FQ(_.vn,function(){O.onPlaylistNext();O.videoSkipJob_=0},x)};
_.b.cancelVideoSkip=function(){this.videoSkipJob_&&(_.vn.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.b.isInBackground_=function(){var O=window.document.visibilityState;return!(!O||O=="visible")};
_.b.onPlaylistIndex_=function(O){this.playlistComponent&&(O=this.playlistComponent.data.contents[O].playlistPanelVideoRenderer.navigationEndpoint,_.wr(this.hostElement,"yt-navigate",{endpoint:O,tempData:this.getTempData_(O)}))};
_.b.onPlayerStateChange_=function(O){if(O=O==0&&this.playlistComponent&&this.canAutoAdvance_)O=_.Ax.getInstance(),O=!(O.autonavState_===3?O.autonavPauseReason_&&O.autonavPauseReason_.inputBoxFocus===!0:O.autonavState_===1&&O.disabledAutonavPauseReason_&&O.disabledAutonavPauseReason_.inputBoxFocus===!0);O&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.b.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.b.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.b.navigateToAutoplayWatchEndpoint_=function(O,x,e){var l=this.playlistComponent.data.currentIndex,C=this.getNumPlayableVideos_();O=="NORMAL"&&x=="autoplayVideo"&&l+1>=C&&e||!(O=this.getVideoEndpoint_(O,x))||(e=this.getTempData_(O,e),_.wr(this.hostElement,"yt-navigate",{endpoint:O,tempData:e}))};
_.b.getNumPlayableVideos_=function(){for(var O=0,x=_.T(this.playlistComponent.data.contents||[]),e=x.next();!e.done;e=x.next())e.value.playlistPanelVideoRenderer&&(O+=1);return O};
_.b.getVideoEndpoint_=function(O,x){if(this.autoplayData&&this.autoplayData.sets)for(var e=0,l=this.autoplayData.sets.length;e<l;e++){var C=this.autoplayData.sets[e];if(C.mode==O){if(C[x])return C[x];break}}else O=new _.ry("AutoplayData is undefined in playlist manager","Mode: "+O+" endpoint: "+x),_.ft(O)};
_.b.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.b.onPlaylistYtNavigate_=function(O){if(O.detail.endpoint){O.stopPropagation();var x=O.detail;x.tempData=this.getTempData_(O.detail.endpoint);_.wr(this.hostElement,"yt-navigate",x)}};
_.b.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.b.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.b.playlistLoopStateEntityChanged_=function(O){var x=this,e,l,C;return _.A(function(Q){if(Q.nextAddress==1){if(!O)return Q.return();e=O.state==="PLAYLIST_LOOP_STATE_ONE";return x.playerManager_?Q.yield(x.playerManager_.getPlayerPromise(),3):Q.jumpTo(2)}Q.nextAddress!=2&&(l=Q.yieldResult,l.setLoopVideo(e));C=O.state==="PLAYLIST_LOOP_STATE_ALL";x.playlistComponent&&(x.playlistComponent.loopOn=C);_.Ra(Q)})};
_.b.getPlaylistLoopData_=function(O){var x,e;if(O=O==null?void 0:(x=O.playlistButtons)==null?void 0:(e=x.menuRenderer)==null?void 0:e.topLevelButtons)for(x=_.T(O),e=x.next();!e.done;e=x.next())if(e=e.value,e.playlistLoopButtonRenderer)return e.playlistLoopButtonRenderer};
_.b.getLoopStateCommand_=function(O){var x=this.getPlaylistData(),e;x=((e=this.getPlaylistLoopData_(x))==null?void 0:e.states)||[];var l;O=(l=_.q(x[O?1:2],_.MaT))==null?void 0:l.button;var C;return(C=_.q(O,_.wf))==null?void 0:C.command};
_.b.onPlayerLoopChange_=function(O){this.playlistLoopStateEntity_&&(O?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(O=this.getLoopStateCommand_(O))&&this.ytComponentBehavior.resolveCommand(O)};
_.b.onSleepTimerSettingsChanged_=function(O){this.canAutoAdvance_=O!=="End of video"};
GP.prototype.onPlaylistLoopStateEntityChanged=GP.prototype.onPlaylistLoopStateEntityChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],GP.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.AT.YtPlayerListenerBehavior),_.v("design:type",_.MA)],GP.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],GP.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],GP.prototype,"loopStateEntityKey_",void 0);
_.B([_.R({selectorArgs:["loopStateEntityKey_"],selector:_.fd.playlistLoopStateEntitySelector}),_.v("design:type",Object)],GP.prototype,"playlistLoopStateEntity_",void 0);_.B([_.T1("playlistLoopStateEntity_"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],GP.prototype,"onPlaylistLoopStateEntityChanged",null);_.B([_.H({disableElementRegistration:!0,is:"yt-playlist-manager"})],GP);_.n(GP,"yt-playlist-manager",void 0,{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var $VO,iCL=function(){if($VO!==void 0)return $VO;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return $VO=O};var FU=function(){var O=_.a.apply(this,arguments)||this;O.lastCallback=null;O.getAccountLinkPromises={};O.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);O.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return O};
_.c(FU,_.a);_.b=FU.prototype;_.b.getLocation=function(){return window.location.href};
_.b.getCompletionUrl=function(){return _.n1(this.getLocation())};
_.b.containsRedirectState=function(O){return(O=_.Fu(_.Fqs(O)))?(new URLSearchParams(O)).get("redirect_state")!==null:!1};
_.b.createGalConfig=function(O,x){var e=new GyQ;O=e=x?this.getPopupOrRedirectSetting(e,_.wz("LINK_API_KEY"),_.wz("LINK_API_KEY_REDIRECT"),O):Fi$(e,_.wz("LINK_API_KEY"));O.authUser=_.wz("SESSION_INDEX")||0;O.supportedFlows=new Set([4]);return O.build()};
_.b.getPopupOrRedirectSetting=function(O,x,e,l){this.isGalInteractionPopupMode(l)?(O.interactionMode=0,O=Fi$(O,x)):(O.interactionMode=1,x=this.getCompletionUrl(),O.completionUrl=x,O=Fi$(O,e));return O};
_.b.isGalInteractionPopupMode=function(O){if(this.redirectModeProviderAllowlist.has(O))switch(O){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.b.getStatusEntityKeyForProviderId=function(O){return _.OQ(O+":all","accountLinkStatusEntity")};
_.b.findNestedPropValue=function(O,x){var e=!1,l=null;JSON.stringify(O,function(C,Q){e||C!==x||(e=!0,l=Q);return e?null:Q});
return l};
_.b.findAccountLinkButtonViewModel=function(O,x){var e=null,l=!1;JSON.stringify(O,function(C,Q){l||Q.accountLinkStatusEntityKey!==x||Q.accountLinkStatusSecondaryEntityKey||(l=!0,e=Q);return l?null:Q});
return e};
_.b.executeLinkingSuccessOrFailureCommands=function(O,x,e){var l=null,C;(x==null?0:(C=x.url)==null?0:C.includes("account_sharing"))?l=x==null?void 0:x.response:l=x==null?void 0:x.response;(x=this.findAccountLinkButtonViewModel(l,O))?(O=e?this.findNestedPropValue(x,"onSuccessCommand"):this.findNestedPropValue(x,"onFailureCommand"))?_.OO([O],this.hostElement):_.OC(Error("xl")):_.OC(Error("yl`"+O))};
_.b.handleInitializeRequest=function(O,x){var e=this,l=d54(this.createGalConfig(O,!0));this.containsRedirectState(this.getLocation())?hP$(O,l.config,l.galService).then(function(C){var Q=e.getStatusEntityKeyForProviderId(O);if(C.statusCode===1)x&&e.executeLinkingSuccessOrFailureCommands(Q,x,!0),C=e.getLocation().indexOf("#"),C!==-1&&window.history.pushState(null,"",e.getLocation().substring(0,C));else return x&&e.executeLinkingSuccessOrFailureCommands(Q,x,!1),Promise.reject(Error(C.statusMessage))}).catch(function(C){_.ft(C);
_.uU("gamingAccountLinkStatusChanged",{serviceId:O,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(C)}):this.getAccountLinkPromises[O]=l.startLinkingSession({serviceId:O})};
_.b.handleAccountLinkCommand=function(O){_.q(O,GdT)&&this.handleLinkRequest(_.q(O,GdT))};
_.b.handleLinkRequest=function(O){var x=this,e=O.thirdPartyId;if(e)if(this.isGalInteractionPopupMode(e)){var l=function(){x.closeAndFire("ytd-gaming-account-link-setting-renderer",O.onFailureCommand)},C=function(){x.closeAndFire("ytd-gaming-account-link-setting-renderer",O.onSuccessCommand)};
this.lastCallback=C;this.getAccountLinkPromises[e].then(function(Q){wPQ(Q).then(function(L){L.statusCode===1?C():l()})}).catch(function(){l()})}else this.getAccountLinkPromises[e].then(function(Q){wPQ(Q).then(function(L){if(L.statusCode!==1)return Promise.reject(Error(L.statusMessage))})}).catch(function(Q){_.ft(Q);
_.uU("gamingAccountLinkStatusChanged",{serviceId:e,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)})};
_.b.closeAndFire=function(O,x){_.Sh(this.hostElement,"yt-close-popup-action",[O]);x&&_.OO([x],this.hostElement)};
_.b.handleAccountUnlinkCommand=function(O){_.q(O,F0O)&&this.handleUnlinkRequest(_.q(O,F0O))};
_.b.handleUnlinkRequest=function(O){var x=this,e=O.thirdPartyId;if(e){var l=function(){x.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",O.onFailureCommand)},C=function(){x.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",O.onSuccessCommand)};
this.lastCallback=C;var Q=d54(this.createGalConfig(e,!1));this.unlinkUserGal(Q,e).then(function(L){L.statusCode===1?C():l()}).catch(function(){l()})}};
_.b.unlinkUserGal=function(O,x){return O.deleteLink(x)};
_.b.handleLogAccountLinkingEventCommand=function(O){_.t("enable_gel_log_commands")&&_.q(O,X$L)&&(O=_.q(O,X$L).event)&&_.uU("gamingAccountLinkStatusChanged",O)};
_.Dy.Object.defineProperties(FU,{template:{configurable:!0,enumerable:!0,get:function(){return iCL()}}});
_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],FU.prototype,"ytOpenPopupBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],FU.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-third-party-manager"})],FU);_.n(FU,"ytd-third-party-manager",function(){return iCL()},{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var OiL,xmL=function(){if(OiL!==void 0)return OiL;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return OiL=O};var XU=function(){var O=_.a.apply(this,arguments)||this;O.currentPage=void 0;O.renderLoadingStateJobId=0;O.updatePageDataJobId=0;O.pageDisposeJobsets=new WeakMap;O.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"};O.shouldApplyLockupToWatchTransition=_.t("web_thumbnail_to_watch_transition");O.shouldApplySlideTransition=_.Z0("web_page_transition_type")==="slide"||_.t("enable_plj_landing_page");O.shouldApplyLearningJourneyTransition=_.t("enable_plj_landing_page");O.TEST_ONLY=void 0;return O};
_.c(XU,_.a);_.b=XU.prototype;_.b.ready=function(){var O=_.GG();O.addProvider({provide:_.Be,useValue:this});O.addProvider({provide:_.S4u,useValue:this})};
_.b.created=function(){this.pagePool=new VXL;this.contextSwitcher=new n24};
_.b.attached=function(){_.wr(this.hostElement,"attached");var O=_.GG().resolve(_.D0(_.cR));O&&(this.contextSwitcher.JSC$20072_networkService_=O);this.viewTransitionManager=_.GG().resolve(_.r9)};
_.b.getPageOffset=function(O){return O.getScrollTop()};
_.b.setPageOffset=function(O,x){try{O.setScrollTop(x)}catch(e){}};
_.b.setPageOffsetForNavigation=function(O,x){_.wr(this.hostElement,"yt-navigate-set-page-offset",{page:O,offset:x===void 0?0:x})};
_.b.pauseActiveContext=function(){var O=this.contextSwitcher;O.activeContext_&&O.activeContext_.pause()};
_.b.getModuleNameForType=function(O){return O==="watch"?_.t("kevlar_watch_fixie")?"watchFixie":_.t("kevlar_watch_grid")?"watchGrid":"watchFlexy":O==="shorts"||O==="search"?O:"browse"};
_.b.attachPage=function(O){var x,e=!_.t("pc_is_attached_ks")&&(O==null?void 0:(x=O.polymerController)==null?void 0:x.isAttached);if(!O.isAttached&&!e)try{_.$U(this.hostElement).appendChild(O)}catch(C){var l;_.ft(new _.ry("Error attaching page element for component",{origin:(l=this.currentPage)==null?void 0:l.is,component:O.is}))}};
_.b.setActivePage=function(O,x){var e=this,l=!1,C=function(){var Q=e.isOnWatch(),L=e.currentPage;if(O)if(O!==e.currentPage){L&&(L.hidden=!0,L.active=!1,L.removeAttribute("role"));e.currentPage=O;var k,M=x!=null?x:_.C3((k=e.data)==null?void 0:k.endpoint);L&&_.wr(e.hostElement,"yt-page-type-changed",{oldPageType:L.is,newPageType:O.is,newPageSubtype:M});_.dq().dispatch(_.j6({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:O.is}));_.dq().dispatch(_.j6({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:M||""}));
O.hidden=!1;e.attachPage(O);O.active=!0;O.setAttribute("role","main");L&&e.setPageOffsetForNavigation(O,0);_.t("kevlar_remove_page_dom_on_switch")&&!Q&&L&&_.$U(e.hostElement).removeChild(L)}else l=!0;else e.handleMissingDestinationPage(L)};
this.shouldRunBrowseTransition(this.currentPage,O)?oxw(this.viewTransitionManager,C):this.shouldRunLearningJourneyTransition(this.currentPage,O)?Exe(this.viewTransitionManager,C):C();return l};
_.b.handleMissingDestinationPage=function(O){if(this.isColdLoadForUnknownPage(O))_.ft(new _.ry("Cold load for unknown page"));else{var x;O=new _.ry("Unable to set active page",O?O.is:"unknown origin",(x=this.data)==null?void 0:x.endpoint);_.BH(O)}};
_.b.isColdLoadForUnknownPage=function(O){return!O&&Su(this.data)==="unknown"};
_.b.shouldRunBrowseTransition=function(O,x){return this.shouldApplySlideTransition&&(O==null?void 0:O.is)==="ytd-browse"&&(x==null?void 0:x.is)==="ytd-browse"&&O!==x};
_.b.shouldRunLearningJourneyTransition=function(O,x){return this.shouldApplyLearningJourneyTransition&&(O==null?void 0:O.is)==="ytd-browse"&&((x==null?void 0:x.is)==="ytd-watch-learning-journey"||(x==null?void 0:x.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.b.shouldRunWatchNextLoadedTransition=function(O,x){return this.viewTransitionManager&&O.is==="ytd-watch-flexy"&&x};
_.b.updatePageData=function(O){var x=this,e=this.data;this.updatePageDataJobId&&_.vn.cancelJob(this.updatePageDataJobId);this.data=O;return new _.If(function(l){var C=function(){O.filler?x.performDataUpdate(O,e):pFe(function(){x.performDataUpdate(O,e)});
var M=_.O2();_.xq(M,"cr")||M.processSignal("cr");l()},Q=function(){O&&O.page==="watch"?x.updatePageDataJobId=_.FQ(_.vn,C):C()};
if(_.t("kevlar_enable_mss_page_modules_client")&&O){var L=_.GG().resolve(_.RL),k=x.getModuleNameForType(O.page);(L=Fhh(L,[k]))?L.then(Q):Q()}else Q()})};
_.b.isDownloadsPage=function(O){var x,e;return(O==null?void 0:(x=O.endpoint)==null?void 0:(e=x.browseEndpoint)==null?void 0:e.browseId)==="FEdownloads"};
_.b.setPlayerSyncInterval=function(O){var x;return _.A(function(e){if(e.nextAddress==1)return e.yield(_.GG().resolve(_.N5),2);x=e.yieldResult;x.setUpPositionSyncInterval(O);_.Ra(e)})};
_.b.performDataUpdate=function(O,x){_.t("kevlar_early_popup_close")||_.Sh(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var e=!O.filler;e&&(_.IR("lps"),_.t("config_age_report_killswitch")||Lep());var l=Su(O),C,Q=!1;if(_.t("kevlar_remove_page_dom_on_switch")){var L=x&&Su(x);l===L&&(C=this.getCurrentPage())}C||(C=Cm(this.pagePool,l));e&&aNT(this.pagePool.elementPoolPopulator,l);e&&!this.renderLoadingStateJobId&&(Q=this.setActivePage(C));if(C){L=l==="watch";var k=
l==="shorts",M=l==="learning_journey_watch";_.t("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(C);if(L||k||M)C.playerData=O.playerResponse;if(k)if(_.t("web_enable_delay_shorts_sequence_call")){O.reelWatchSequenceResponse&&(O.reelWatchSequenceResponse.entries||O.reelWatchSequenceResponse.prevEntries)&&(C.reelWatchSequenceResponse=O.reelWatchSequenceResponse);C.currentEndpoint=O.endpoint;var G;C.isPreviousPageShorts=!!(x==null?0:(G=x.endpoint)==null?0:G.reelWatchEndpoint);
var X,y;O.cachedSequenceParams=((X=O.endpoint)==null?void 0:(y=X.reelWatchEndpoint)==null?void 0:y.sequenceParams)||O.cachedSequenceParams||(x==null?void 0:x.cachedSequenceParams);var Z,E;O.cachedSequenceProvider=((Z=O.endpoint)==null?void 0:(E=Z.reelWatchEndpoint)==null?void 0:E.sequenceProvider)||O.cachedSequenceProvider||(x==null?void 0:x.cachedSequenceProvider);C.cachedSequenceParams=O.cachedSequenceParams;C.cachedSequenceProvider=O.cachedSequenceProvider}else if(_.t("web_enable_shorts_sequence_cache_fix")){O.reelWatchSequenceResponse&&
(O.reelWatchSequenceResponse.entries||O.reelWatchSequenceResponse.prevEntries)?C.reelWatchSequenceResponse=O.reelWatchSequenceResponse:C.cachedReelWatchSequenceResponse&&!C.reelWatchSequenceResponse&&(C.reelWatchSequenceResponse=C.cachedReelWatchSequenceResponse);O.reelWatchSequenceResponse&&(x==null?void 0:x.page)!=="shorts"&&(C.cachedReelWatchSequenceResponse=O.reelWatchSequenceResponse);C.currentEndpoint=O.endpoint;var P;C.isPreviousPageShorts=!!(x==null?0:(P=x.endpoint)==null?0:P.reelWatchEndpoint)}else{O.reelWatchSequenceResponse&&
(O.reelWatchSequenceResponse.entries||O.reelWatchSequenceResponse.prevEntries)?C.reelWatchSequenceResponse=O.reelWatchSequenceResponse:O.cachedReelWatchSequenceResponse?C.reelWatchSequenceResponse=O.cachedReelWatchSequenceResponse:_.t("web_enable_cached_reel_sequence_fix")&&C.cachedReelWatchSequenceResponse&&!C.reelWatchSequenceResponse&&(C.reelWatchSequenceResponse=C.cachedReelWatchSequenceResponse);C.currentEndpoint=O.endpoint;var U;C.isPreviousPageShorts=!!(x==null?0:(U=x.endpoint)==null?0:U.reelWatchEndpoint);
O.cachedReelWatchSequenceResponse=O.reelWatchSequenceResponse||O.cachedReelWatchSequenceResponse||(x==null?void 0:x.cachedReelWatchSequenceResponse);C.cachedReelWatchSequenceResponse=O.cachedReelWatchSequenceResponse}G=this.isDownloadsPage(O);X=this.isDownloadsPage(x);G&&!X?this.setPlayerSyncInterval(6E5):!G&&X&&this.setPlayerSyncInterval();_.t("block_all_player_prefetch_requests")||this.preparePrefetchRequest(O,C,e,L,k,M);tve(_.GG().resolve(_.Vs),x,O);if(_.t("enable_ai_companion")){var W;(W=_.GG().resolve(_.D0(_.w8)))==
null||_.leY(W,this.getPersistentPanelSurface(l))}_.yl(_.GG().resolve(_.Fn));_.t("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(C);e?(e=typeof C.loadPage,e==="function"?(C.pageContext=uAQ(this.contextSwitcher,C,C.data!==O.response),e=function(){C.loadPage(O.response)},this.shouldApplySlideTransition&&C.is==="ytd-browse"&&Q&&(l==="learning"||this.isDifferentBrowseId(O==null?void 0:O.endpoint,x==null?void 0:x.endpoint))?oxw(this.viewTransitionManager,e):this.shouldRunWatchNextLoadedTransition(C,
Q)?ZyY(this.viewTransitionManager,e):e()):_.vH(new _.ry("b/38014653 ",[l,
C.is,C.nodeName,e,C.isAttached,x&&Su(x),this.hostElement.children.length])),_.IR("pdl")):(C.hidden=!0,O.response.filler=!0,C.data=O.response,this.attachPage(C));_.wr(this.hostElement,"yt-page-data-updated",{pageType:l})}_.zl(_.vn,function(){_.t("logging_avoid_blocking_during_navigation")&&_.pew().transition("none");var z=egQ(),r=C;if(O){var f=gVw(O),u=$Su(O),Y;a:{if(O.playerResponse){var J=O.playerResponse,O8;if((Y=J.auxiliaryUi)==null?0:(O8=Y.messageRenderers)==null?0:O8.upsellDialogRenderer){Y=
J.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(O.response&&(Y=O.response,(J=Y.overlay)==null?0:J.upsellDialogRenderer)){Y=Y.overlay.upsellDialogRenderer;break a}Y=void 0}var Xr;var Fr;O8=(Xr=O.playerResponse)==null?void 0:(Fr=Xr.auxiliaryUi)==null?void 0:Fr.messageRenderers;Xr=(O8==null?void 0:O8.enforcementMessageViewModel)||(O8==null?void 0:O8.bkaEnforcementMessageViewModel);Xr=(Xr==null?void 0:Xr.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Xr:void 0;
var mL;a:{if(O.response&&(Fr=O.response,(mL=Fr.overlay)==null?0:mL.commandWrapperPromoRenderer)){mL=Fr.overlay.commandWrapperPromoRenderer;break a}mL=void 0}xVe(z,f,u,Y,Xr,mL,r)}})};
_.b.preparePrefetchRequest=function(O,x,e,l,C,Q){var L,k,M,G,X,y,Z,E,P,U,W,z,r,f,u;return _.A(function(Y){if(Y.nextAddress==1)return!e||!(l||C||Q)||_.t("kevlar_disable_background_prefetch")&&_.$K(_.ztr)()===0?Y.return():(L=_.ve(x))?Y.yield(L.getPlayerPromise(),2):Y.return();k=Y.yieldResult;M=_.GG().resolve(_.D0(_.cR));if(!M)return Y.return();if(C)return G=_.uc(_.rH),Hr$(G,(X=O.endpoint)==null?void 0:X.reelWatchEndpoint,x.reelWatchSequenceResponse,k,M),Y.return();E=(y=O.response)==null?void 0:(Z=y.responseContext)==
null?void 0:Z.webResponseContextExtensionData;if(!E)return Y.return();r=(P=O.response)==null?void 0:(U=P.contents)==null?void 0:(W=U.twoColumnWatchNextResults)==null?void 0:(z=W.autoplay)==null?void 0:z.autoplay;f=_.GG().resolve(_.gx);u=_.uc(_.rH);KdL(u,E,k,M,f,r);_.Ra(Y)})};
_.b.movePlayerToWatch=function(O){var x=this,e,l;return _.A(function(C){e=Cm(x.pagePool,"watch");l=e.getPlayerContainer();O.appendTo(l);_.Ra(C)})};
_.b.movePlayerToShorts=function(O){var x=this,e,l,C;return _.A(function(Q){e=Cm(x.pagePool,"shorts");l=e.getPlayerContainer();(C=O)==null||C.appendTo(l,void 0,!0);_.Ra(Q)})};
_.b.getPlayerFromWatch=function(){var O=Cm(this.pagePool,"watch");return _.ve(O)};
_.b.getPlayerFromShorts=function(){var O=Cm(this.pagePool,"shorts");return _.ve(O)};
_.b.startLoadingWatch=function(){var O=this,x=Cm(this.pagePool,"watch");this.renderLoadingStateJobId?(_.vn.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.t("web_watch_transition_enable_start_loading_watch_callsite")?yDQ(this.viewTransitionManager,function(){O.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(x,"watch");
if(_.t("enable_ai_companion")){var e;(e=_.GG().resolve(_.D0(_.w8)))==null||_.leY(e,this.getPersistentPanelSurface("watch"))}};
_.b.startLoadingShorts=function(){var O=Cm(this.pagePool,"shorts");this.setActivePage(O,"shorts")};
_.b.startLoadingLearningJourney=function(){var O=Cm(this.pagePool,"learning_journey_watch");this.setActivePage(O,"learning_journey_watch")};
_.b.getCurrentPage=function(){return this.currentPage};
_.b.getDestinationPageType=function(){return this.destinationPageType};
_.b.getCurrentData=function(){return this.data};
_.b.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.b.isOnShorts=function(){var O;return((O=this.currentPage)==null?void 0:O.is)==="ytd-shorts"};
_.b.isWatchPage=function(O){return!!O&&(O.is==="ytd-watch-flexy"||O.is==="ytd-watch-fixie"||O.is==="ytd-watch-grid")};
_.b.preparePage=function(O,x){var e=this,l=function(){var L=e.pagePool.preparePage(O,e.currentPage,x);L&&e.attachPage(L)},C=function(L){_.JG(L,x);
_.ft(L)};
if(_.t("kevlar_enable_mss_page_modules_client")){var Q=this.getModuleNameForType(O);if(Q=Fhh(_.GG().resolve(_.RL),[Q])){Q.then(l.bind(this)).catch(C.bind(this));return}}try{l()}catch(L){C(L)}};
_.b.lazyPrepareCriticalPages=function(O,x){O=_.C3(x)||O;_.t("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(O).then(this.maybePrepareWatchPage.bind(this,O)):this.maybePrepareWatchPage(O)};
_.b.maybePrepareWatchPage=function(O){O==="watch"||O==="learning_journey_watch"&&_.t("web_watch_learning_journey_disable_lazy_pages")||_.zl(_.vn,this.preparePage.bind(this,"watch"))};
_.b.downloadPageModules=function(O){O=this.getModuleNameForType(O);var x=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);x.delete(O);var e=_.GG().resolve(_.RL);e.JSC$18791_loadModules(O);return e.JSC$18791_loadModules.apply(e,_.Kx(x))};
_.b.renderPageLoadingState=function(O,x){this.preparePage(O,x);var e=Cm(this.pagePool,O);e.loadingData&&(e.loadingData.endpoint=x);e.loading=!0;this.setActivePage(e,O);O!=="watch"&&O!=="learning_journey_watch"||_.wr(this.hostElement,"yt-guide-close")};
_.b.prepareForNavigation=function(O,x){var e=this;if(this.currentPage&&this.data){var l=_.C3(x)||O;this.destinationPageType=l;Su(this.data)==l&&_.wr(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((O==="watch"||O==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.vn.cancelJob(this.renderLoadingStateJobId);_.GG().resolve(_.Vs).deactivate(x);_.e1(_.vn,function(){var Q=e.viewTransitionManager,L=e.currentPage;
if(Q.isLockupToWatchTransitionEnabled&&Q.isLockupThumbnailRegistrationEnabled&&L)if(Q.registeredLockupThumbnail)Q.lockupThumbnailRegisteredFromWatchEndpoint&&_.ft(new _.ry("Lockup thumbnail already registered from watch endpoint."));else{a:{var k=_.q(x,_.Hq);if(k==null?0:k.videoId){var M="yt-lockup-view-model ."+_.NKr(k.videoId)+" yt-thumbnail-view-model";L=L.querySelectorAll(M);if(L.length===1){k=L[0];break a}L.length>1?_.ft(new _.ry("Multiple LockupViewModel thumbnails found for videoId: "+k.videoId+
". Selector: "+M)):_.t("web_thumbnail_to_watch_transition_debug")&&_.ft(new _.ry("No LockupViewModel thumbnail found for videoId: "+k.videoId+". Selector: "+M))}k=void 0}k&&(Q.registeredLockupThumbnail=k,Q.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.h5$(Q,k))}});
var C=this.data;this.renderLoadingStateJobId=_.e1(_.vn,function(){yDQ(e.viewTransitionManager,function(){if(e.data!=C){var Q=Cm(e.pagePool,O);e.setActivePage(Q)}else e.renderPageLoadingState(O,x);e.renderLoadingStateJobId=0})},150)}};
_.b.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var O=new _.X_(1);this.currentPage.pageDisposeJobs.forEach(function(x){_.oV(O,x)});
this.pageDisposeJobsets.set(this.currentPage,O)}};
_.b.flushPageDisposeJobset=function(O){var x=this.pageDisposeJobsets.get(O);x&&(x.flushJobs(),this.pageDisposeJobsets.delete(O))};
_.b.onYtStopOldPlayer=function(O,x){x=x===void 0?!1:x;var e,l=_.EC("kevlar_new_stop_old_player_logic_pages");if(_.t("kevlar_check_current_page_on_stop_old_player")&&(l.length===0||this.currentPage&&l.includes(this.currentPage.is)))if(this.data&&(e=Su(this.data)),Su(O)===e&&this.currentPage&&Su(this.currentPage.data)!==e)var C=_.ve(this.currentPage);else e=Su(this.data),C=Cm(this.pagePool,e),C=_.ve(C);else this.data&&(e=Su(this.data),C=Cm(this.pagePool,e),C=_.ve(C));if(C)if(O=Su(O),l=Cm(this.pagePool,
O),l=_.ve(l),C==l)x&&!_.t("kevlar_disable_preemptive_player_reset")&&C.resetForNewPlayback();else if(x=e==="watch"&&O!=="watch",!x||O==="shorts"||_.Yu4()&&(!lCp(this.data)||_.t("web_watch_disable_playlist_auto_miniplayer"))&&O!=="yts-products"&&O!="mini_app"&&O!="playables"&&O!="companion-canvas")e=_.GG().resolve(_.Vs),x&&e.isMiniplayerActive()&&e.pipController.getWindow()||C.stop()};
_.b.isDifferentBrowseId=function(O,x){O=_.q(O,_.Q9);x=_.q(x,_.Q9);return(O==null?void 0:O.browseId)!==(x==null?void 0:x.browseId)};
_.b.getPersistentPanelSurface=function(O){switch(O){case "watch":return"WATCH";default:return"APP"}};
_.Dy.Object.defineProperties(XU,{template:{configurable:!0,enumerable:!0,get:function(){return xmL()}}});
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],XU.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-page-manager"})],XU);_.n(XU,"ytd-page-manager",function(){return xmL()},{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var ekQ;var oZ=function(){var O=_.a.apply(this,arguments)||this;O.useListItemStyles=_.t("web_list_item_style_for_menu_items");O.systemIcons=_.t("kevlar_system_icons");return O};
_.c(oZ,_.a);_.b=oZ.prototype;_.b.ready=function(){this.hostElement.addEventListener("tap",_.Qa(this,this.onEndpointTapExtra))};
_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.b.onFocus=function(){var O;(O=_.$U(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.b.onEndpointTapExtra=function(O){_.wr(this.hostElement,"iron-activate");var x=this.data.navigationEndpoint;x&&_.q(x,_.UUr)&&(O.stopPropagation(),_.gr(this.hostElement,[x],this.hostElement))};
_.b.computeIcon=function(O){return O&&O.iconType?_.x0(O.iconType):""};
_.b.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.b.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.b.forceUpdateStylesOnLegacyBrowsers=function(){_.t("kevlar_legacy_browsers")&&_.lH(this.hostElement)};
oZ.prototype.forceUpdateStylesOnLegacyBrowsers=oZ.prototype.forceUpdateStylesOnLegacyBrowsers;oZ.prototype.onFocus=oZ.prototype.onFocus;_.B([_.V(_.FY),_.v("design:type",Object)],oZ.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.qhY.YtConditionalRendererBehavior),_.v("design:type",Object)],oZ.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],oZ.prototype,"ytEndpointBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],oZ.prototype,"data",void 0);_.B([_.R({computed:"computeIcon(data.icon)",value:""}),_.v("design:type",String)],oZ.prototype,"icon",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],oZ.prototype,"useIcons",void 0);_.B([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.v("design:type",Boolean)],oZ.prototype,"hasSeparator",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],oZ.prototype,"useListItemStyles",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],oZ.prototype,"systemIcons",void 0);_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oZ.prototype,"onFocus",null);_.B([_.T1("useIcons","hasSeparator"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],oZ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.n(oZ,"ytd-menu-navigation-item-renderer",function(){if(ekQ===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);ekQ=O}O=ekQ;return O},{mode:1});var lbY;var CAX=_.KA(_.CZ("DOWNLOAD",{},"Download")),QkX=_.KA(_.CZ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),bip=_.KA(_.CZ("RETRY",{},"Retry")),TEL=_.KA(_.CZ("PAUSE_DOWNLOADING",{},"Pause downloading")),LcQ=_.KA(_.CZ("RESUME_DOWNLOAD",{},"Resume download")),y8=function(){var O=_.a.apply(this,arguments)||this;O.primaryText=CAX;O.primaryIconType="OFFLINE_DOWNLOAD";O.hasSecondaryContent=!1;O.hasSeparator=!1;O.transferState="TRANSFER_STATE_UNKNOWN";O.isVideoDeletedByUser=!1;O.isHidden=!1;O.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return O};
_.c(y8,_.a);_.b=y8.prototype;_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.b.onFocus=function(){this.primaryEntry.focus()};
_.b.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.b.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.b.getRemoveAction=function(){return"ACTION_REMOVE"};
_.b.sendOfflineAction=function(O){var x=this.data.serviceEndpoint;if(x){var e=_.q(x,_.bw);e&&O&&(e.action=O);this.ytComponentBehavior.resolveCommand(x)}};
_.b.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=CAX,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=CAX;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=bip;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=QkX;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=LcQ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=QkX;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
TEL;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=QkX;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=QkX;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=CAX,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.b.showHideButton=function(){var O;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((O=this.playerStateEntity)==null?void 0:O.adsState)==="ADS_STATE_PLAYING"};
_.b.isSecondaryEntryHidden=function(O,x){return O?!0:!x};
_.b.computeHasSeparator=function(){var O;return!((O=this.data)==null||!O.hasSeparator)};
_.b.computePlayerStateEntityKey=function(O){return O};
y8.prototype.showHideButton=y8.prototype.showHideButton;y8.prototype.onTransferStateChange=y8.prototype.onTransferStateChange;y8.prototype.onFocus=y8.prototype.onFocus;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],y8.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],y8.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],y8.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],y8.prototype,"primaryText",void 0);_.B([_.R(),_.v("design:type",String)],y8.prototype,"primaryIconType",void 0);_.B([_.R(),_.v("design:type",String)],y8.prototype,"primaryAction",void 0);_.B([_.R(),_.v("design:type",Object)],y8.prototype,"secondaryText",void 0);_.B([_.R(),_.v("design:type",String)],y8.prototype,"secondaryIconType",void 0);
_.B([_.R(),_.v("design:type",String)],y8.prototype,"secondaryAction",void 0);_.B([_.R(),_.v("design:type",Object)],y8.prototype,"hasSecondaryContent",void 0);_.B([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.v("design:type",Object)],y8.prototype,"hasSeparator",void 0);_.B([_.R({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.v("design:type",String)],y8.prototype,"playerStateEntityKey",void 0);
_.B([_.R({selector:_.ee,selectorArgs:["playerStateEntityKey"]}),_.v("design:type",Object)],y8.prototype,"playerStateEntity",void 0);_.B([_.R({selector:_.Vy,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.v("design:type",String)],y8.prototype,"transferState",void 0);_.B([_.R({selector:_.Ng8,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.v("design:type",Object)],y8.prototype,"isVideoDeletedByUser",void 0);
_.B([_.R(),_.v("design:type",Object)],y8.prototype,"isHidden",void 0);_.B([_.R({selector:_.Bg7,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.v("design:type",Object)],y8.prototype,"offlineabilityState",void 0);_.B([_.kX("#primary-entry"),_.v("design:type",Object)],y8.prototype,"primaryEntry",void 0);_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],y8.prototype,"onFocus",null);
_.B([_.G1("transferState","isVideoDeletedByUser"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],y8.prototype,"onTransferStateChange",null);_.B([_.G1("offlineabilityState","playerStateEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],y8.prototype,"showHideButton",null);
_.n(y8,"ytd-menu-service-item-download-renderer",function(){if(lbY===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);lbY=O}O=lbY;return O},{mode:1});var kMO;var ZI=function(){var O=_.a.apply(this,arguments)||this;O.useIcons=!1;O.systemIcons=_.t("kevlar_system_icons");O.useListItemStyles=_.t("web_list_item_style_for_menu_items");return O};
_.c(ZI,_.a);_.b=ZI.prototype;_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.b.onFocus=function(){var O;(O=_.$U(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.b.onTap=function(){_.jh(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var O=this.data.serviceEndpoint,x=this.data.command;if(O){var e,l=(e=this.data)==null?void 0:e.trackingParams;e=!!_.q(O,_.jdF);l&&e&&_.u9().dispatch(_.j6({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:l}}));this.ytComponentBehavior.resolveCommand(O)||_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}})}x&&(this.ytComponentBehavior.resolveCommand(x)||_.gr(this.hostElement,
[x],this.hostElement))};
_.b.computeIcon=function(O){return O&&O.iconType?_.x0(O.iconType):""};
_.b.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.b.computeHasSeparator=function(){var O;return!((O=this.data)==null||!O.hasSeparator)};
_.b.forceUpdateStylesOnLegacyBrowsers=function(){_.t("kevlar_legacy_browsers")&&_.lH(this.hostElement)};
_.b.computeIsSelected=function(){var O;return!((O=this.data)==null||!O.isSelected)};
ZI.prototype.forceUpdateStylesOnLegacyBrowsers=ZI.prototype.forceUpdateStylesOnLegacyBrowsers;ZI.prototype.onTap=ZI.prototype.onTap;ZI.prototype.onFocus=ZI.prototype.onFocus;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],ZI.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ZI.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.qhY.YtConditionalRendererBehavior),_.v("design:type",Object)],ZI.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ZI.prototype,"data",void 0);_.B([_.R({computed:"computeIcon(data.icon)",value:""}),_.v("design:type",String)],ZI.prototype,"icon",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZI.prototype,"useIcons",void 0);
_.B([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.v("design:type",Boolean)],ZI.prototype,"hasSeparator",void 0);_.B([_.R({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.v("design:type",Boolean)],ZI.prototype,"isSelected",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZI.prototype,"systemIcons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ZI.prototype,"useListItemStyles",void 0);
_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZI.prototype,"onFocus",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],ZI.prototype,"onTap",null);_.B([_.T1("useIcons","hasSeparator"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZI.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.n(ZI,"ytd-menu-service-item-renderer",function(){if(kMO===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);kMO=O}O=kMO;return O},{mode:2});var AQe;var Ep=function(){return _.a.apply(this,arguments)||this};
_.c(Ep,_.a);_.b=Ep.prototype;_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.onDataChanged=function(){var O=this;_.A_(this,function(){O.postbox.openDialog();O.focus();_.wr(O.hostElement,"yt-refit")})};
_.b.focus=function(){this.postbox.focus()};
_.b.closePopup=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
_.b.onYtCommentboxDismiss=function(){this.closePopup()};
Ep.prototype.onYtCommentboxDismiss=Ep.prototype.onYtCommentboxDismiss;Ep.prototype.onDataChanged=Ep.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ep.prototype,"data",void 0);_.B([_.R({value:function(){return _.CZ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.v("design:type",String)],Ep.prototype,"closeButtonAriaLabel",void 0);_.B([_.kX("#postbox"),_.v("design:type",Object)],Ep.prototype,"postbox",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ep.prototype,"onDataChanged",null);_.B([_.bH("yt-commentbox-dismiss"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ep.prototype,"onYtCommentboxDismiss",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Ep);
_.n(Ep,"ytd-backstage-post-dialog-popup-renderer",function(){if(AQe!==void 0)return AQe;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return AQe=O},{mode:1});var Mze;var Dmu=function(){return _.a.apply(this,arguments)||this};
_.c(Dmu,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Dmu.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Dmu.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Dmu);
_.n(Dmu,"ytd-sender-id-section-renderer",function(){if(Mze!==void 0)return Mze;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return Mze=O},{mode:1});var GMQ;var FcX;var X0Q;var tw=function(){return _.a.apply(this,arguments)||this};
_.c(tw,_.a);tw.prototype.closePopup=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tw.prototype,"data",void 0);_.B([_.Va({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],tw);
_.n(tw,"yt-community-post-section-renderer",function(){if(X0Q===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;FcX===void 0&&(FcX=document.createElement("template"));var l=FcX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);X0Q=O}O=X0Q;return O},{mode:2});var oHT;var yQQ;var ZiL;var EHw;var tzQ;var qy$;var PAO=function(){return _.a.apply(this,arguments)||this};
_.c(PAO,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],PAO.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],PAO.prototype,"data",void 0);_.B([_.Va({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],PAO);
_.n(PAO,"yt-share-start-time-with-context-renderer",function(){if(qy$===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;tzQ===void 0&&(tzQ=document.createElement("template"));var l=tzQ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qy$=O}O=qy$;return O},{mode:2});var qG=function(){return _.a.apply(this,arguments)||this};
_.c(qG,_.a);qG.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qG.prototype,"data",void 0);_.B([_.Va({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],qG);
_.n(qG,"yt-share-panel-title-v15-renderer",function(){if(EHw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ZiL===void 0&&(ZiL=document.createElement("template"));var l=ZiL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);EHw=O}O=EHw;return O},{mode:2});var PG=function(){return _.a.apply(this,arguments)||this};
_.c(PG,_.a);PG.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],PG.prototype,"data",void 0);_.B([_.Va({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],PG);
_.n(PG,"yt-share-panel-header-renderer",function(){if(yQQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;oHT===void 0&&(oHT=document.createElement("template"));var l=oHT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yQQ=O}O=yQQ;return O},{mode:2});var cQw;var IbQ;var cG=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-open-popup-action":"onOpen"};return O};
_.c(cG,_.a);_.b=cG.prototype;_.b.attached=function(){this.onOpen()};
_.b.updateTimeSecs=function(O){this.currentTimeSecs=O};
_.b.computeTimeString=function(O){O=O.toString();var x=Math.floor(Number(O)/3600),e=Math.floor(Number(O)%3600%60);return(x>0?x+":":"")+_.im(Math.floor(Number(O)%3600/60),x>0?2:1)+":"+_.im(e,2)};
_.b.computeTimeStringA11y=function(O){return _.hYi({seconds:O})};
_.b.getTimeParam=function(){return ytw(this.timeString)};
_.b.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var O={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},x;_.I7(_.k0(),(x=this.data)==null?void 0:x.trackingParams,O,7)};
_.b.onChangeStartAtTimestamp=function(){for(var O=this.startAtTimestamp.value.split(":"),x=0,e=1,l=O.length-1;l>=0;l--)x+=Number(O[l])*e,e*=60;this.updateTimeSecs(x);this.setTimestamp()};
_.b.onOpen=function(){var O=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var x=_.f7();x?x.getPlayerPromise().then(function(e){e=e.getCurrentTime();O.updateTimeSecs(e)}):uvO()&&this.updateTimeSecs(uvO())};
_.b.setTimestamp=function(){var O=Math.floor(this.currentTimeSecs);_.Sh(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!O,timestamp:O||""}])};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],cG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],cG.prototype,"data",void 0);_.B([_.R({value:!1,notify:!0}),_.v("design:type",Boolean)],cG.prototype,"isStartAtChecked",void 0);_.B([_.R(),_.v("design:type",Number)],cG.prototype,"currentTimeSecs",void 0);
_.B([_.R({computed:"computeTimeString(currentTimeSecs)"}),_.v("design:type",String)],cG.prototype,"timeString",void 0);_.B([_.R({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.v("design:type",String)],cG.prototype,"timeStringA11y",void 0);_.B([_.kX("#start-at-timestamp"),_.v("design:type",Object)],cG.prototype,"startAtTimestamp",void 0);_.B([_.Va({is:"yt-start-at-renderer",disableElementRegistration:!0})],cG);
_.n(cG,"yt-start-at-renderer",function(){if(IbQ===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;cQw===void 0&&(cQw=document.createElement("template"));var l=cQw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);IbQ=O}O=IbQ;return O},{mode:2});var VzY;var p0X;var RkT=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"]]),UmL=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"]]),abY=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var mmp={};mmp.YtBindingExpressionsBehavior={identity:_.Hi,msg:function(O,x){x=x===void 0?{}:x;return _.CZ(O,x,O)},
msgPlural:function(O,x){return _.QO(O,x)},
getMusicIconFromType:function(O){if(_.t("music_web_enable_icon_wil"))O=_.x0(O);else if(UmL.has(O))O="yt-sys-icons:"+UmL.get(O);else{var x=RkT.get(O)||_.x0(O).split(":")[1];x=_.sWr(x);var e;O=((e=abY.get(O))!=null?e:"yt-sys-icons:")+x}return O}};var sk4;var WcL;var hkL;var zkp=document.head,rQp=zkp.appendChild,Hi4;if(hkL===void 0){var Kcw=document.createElement("template");_.I(Kcw,'\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>');hkL=Kcw}Hi4=hkL;rQp.call(zkp,Hi4.content);var IZ=function(){var O=_.a.apply(this,arguments)||this;O.screenLayer=7;return O};
_.c(IZ,_.a);IZ.prototype.getScreenLayer=function(){return this.screenLayer};
IZ.prototype.onTap=function(O){O&&O.detail&&(O.detail.x||O.detail.y)&&_.$U(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.N9(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(O=this.getScreenLayer(),_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:O}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Dy.Object.defineProperties(IZ.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()}}});
IZ.prototype.onTap=IZ.prototype.onTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],IZ.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],IZ.prototype,"data",void 0);_.B([_.p("data.title"),_.v("design:type",Object),_.v("design:paramtypes",[])],IZ.prototype,"title",null);
_.B([_.p("data.serviceName"),_.v("design:type",String),_.v("design:paramtypes",[])],IZ.prototype,"icon",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],IZ.prototype,"onTap",null);_.B([_.Va({is:"yt-share-target-renderer",disableElementRegistration:!0})],IZ);
_.n(IZ,"yt-share-target-renderer",function(){if(WcL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;sk4===void 0&&(sk4=document.createElement("template"));var l=sk4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);WcL=O}O=WcL;return O},{mode:2});var dmw;var nHL;var V8=function(){var O=_.a.apply(this,arguments)||this;O.SHARE_TARGET_WIDTH=70;O.SHARE_TARGET_MARGIN_RIGHT=8;O.PAGE_SCROLL_SPEED=9;O.actionMap={"yt-share-panel-reset-action":"onReset_"};return O};
_.c(V8,_.a);_.b=V8.prototype;_.b.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.b.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.$U(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.$U(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.b.onReset_=function(){if(_.$U(this.hostElement).querySelector("#list")){var O=_.$U(this.hostElement).querySelector("#list");var x=_.$U(this.hostElement).querySelector("#list");var e=x.offsetLeft,l=x.offsetParent;l||_.tNR(x)!="fixed"||(l=_.BX(x).documentElement);if(l){if(_.No&&!_.$Q(58)){var C=_.UMT(l);e+=C.left}else Number(_.vWD)>=8&&!(Number(_.vWD)>=9)&&(C=_.UMT(l),e-=C.left);x=_.pXN(l)?l.clientWidth-(e+x.offsetWidth):e}else x=e;d0X(O,x);this.updateScrollButtons_()}};
_.b.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.b.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.b.onScrollWheel_=function(O){O.stopPropagation();O.preventDefault();var x=KhL(_.$U(this.hostElement).querySelector("#list"));O=Math.abs(O.deltaX)>Math.abs(O.deltaY)?O.deltaX:O.deltaY;d0X(_.$U(this.hostElement).querySelector("#list"),x+O);this.updateScrollButtons_()};
_.b.smoothScrollByOnePage_=function(O){var x=_.$U(this.hostElement).querySelector("#list"),e=(Math.floor(x.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,l=KhL(x),C=e*(O?1:-1),Q=this.PAGE_SCROLL_SPEED,L=this.updateScrollButtons_.bind(this),k=0,M;(function X(){k+=Q;M=k/e*2;d0X(x,l+C*(M<1?M*M:-M*M+4*M-2));k<e?window.requestAnimationFrame(X):L()})()};
_.b.updateScrollButtons_=function(){var O=KhL(_.$U(this.hostElement).querySelector("#list")),x=_.$U(this.hostElement).querySelector("#list").scrollWidth-_.$U(this.hostElement).querySelector("#list").clientWidth;_.$U(this.hostElement).querySelector("#scroll-button-back").hidden=O<=0;_.$U(this.hostElement).querySelector("#scroll-button-forward").hidden=O>=x};
V8.prototype.onScrollWheel_=V8.prototype.onScrollWheel_;V8.prototype.onDataChanged_=V8.prototype.onDataChanged_;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],V8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(mmp.YtBindingExpressionsBehavior),_.v("design:type",Object)],V8.prototype,"ytBindingExpressionsBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],V8.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],V8.prototype,"onDataChanged_",null);_.B([_.bH("wheel"),_.v("design:type",Function),_.v("design:paramtypes",[WheelEvent]),_.v("design:returntype")],V8.prototype,"onScrollWheel_",null);
_.B([_.Va({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],V8);
_.n(V8,"yt-third-party-share-target-section-renderer",function(){if(nHL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;dmw===void 0&&(dmw=document.createElement("template"));var l=dmw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);nHL=O}O=nHL;return O},{mode:2});var pm=function(){return _.a.apply(this,arguments)||this};
_.c(pm,_.a);pm.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"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pm.prototype,"data",void 0);_.B([_.Va({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],pm);
_.n(pm,"yt-third-party-network-section-renderer",function(){if(p0X===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;VzY===void 0&&(VzY=document.createElement("template"));var l=VzY;e.call(x,l.content.cloneNode(!0),O.content.firstChild);p0X=O}O=p0X;return O},{mode:2});_.wP(_.K(function(O){return _.D("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.D("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.D(_.MR,{data:function(){return O.data().firstPartyItems}},{listItemViewModel:_.$H})))},"Wi"),"first-party-network-section-view-model",{props:{data:_.Ld}});var uyh=(0,_.$9$)(_.NI.share,{parentClickTrackingParamsSelector:function(O){return O.parentClickTrackingParams}});var Yyh=_.zo(["data:image/svg+xml;charset=UTF-8;base64,",""]),RZ=function(){var O=_.a.apply(this,arguments)||this;O.screenLayer=7;O.qrCodeEnabled=_.t("web_enable_sharing_qr_code");O.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return O};
_.c(RZ,_.a);_.b=RZ.prototype;_.b.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"}}}};
_.b.attached=function(){this.JSC$20314_scroller&&(this.JSC$20314_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20314_scroller.attached&&typeof this.JSC$20314_scroller.attached==="function"&&this.JSC$20314_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.b.onDataChanged=function(){var O=this,x;(x=this.data)!=null&&x.contents&&(this.hostElement.setAttribute("links-only","true"),_.xX(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.A_(this,function(){_.wr(O.hostElement,"yt-refit");O.focusSharePanelHeader()}))};
_.b.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.b.handleSetTimestamp=function(O){var x=this.shortUrl();O.isSet&&(x=_.dp(x,"t",O.timestamp));this.maybeRenderQrCode(x)};
_.b.shortUrl=function(){var O,x=(O=this.data)==null?void 0:O.contents;if(x)for(O=0;O<x.length;O++){var e=void 0,l=void 0;if((e=x[O])==null?0:(l=e.thirdPartyNetworkSection)==null?0:l.copyLinkContainer){var C=l=e=void 0;return(C=_.q((e=x[O])==null?void 0:(l=e.thirdPartyNetworkSection)==null?void 0:l.copyLinkContainer,j0L))==null?void 0:C.shortUrl}}};
_.b.maybeRenderQrCode=function(O){var x=this,e,l,C,Q,L,k,M,G,X;return _.A(function(y){if(y.nextAddress==1){e=_.$U(x.hostElement).querySelector("#qr-code");if(!x.qrCodeEnabled||!O)return e&&(e.style.display="none"),y.return();l=_.BQ8(_.GG().resolve(_.ef),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});C=document.createElement("div");return typeof l==="function"?(l(C),y.jumpTo(2)):y.yield(l,3)}y.nextAddress!=2&&(Q=y.yieldResult,Q(C));M=(L=C)==null?void 0:(k=L.firstChild)==null?void 0:k.firstChild;
G=document.createElement("img");X=_.Lg8(Yyh,btoa(M.outerHTML));G.onload=function(){var Z={canvas:e,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:G},E=new lcL;kAL(E,O);AAY(E,!1,MRQ(E));var P=E.modules,U=Object.assign({},avT,Z);P=structuredClone(P);Z=P.length;var W,z=(W=U.canvas)!=null?W:document.createElement("canvas");W=U.cellSize;E=U.logo;var r,f=(r=U.logoSize)!=null?r:Math.floor(Z/4);Z%2!==f%2&&f++;var u=U.logoPadding,Y=U.backgroundColor;r=Z*W;var J=
U.width,O8=0;J&&(O8=U.padding,O8=Math.ceil(O8*r/(J-O8*2)),z.style.width=J+"px",z.style.height=J+"px");z.width!==r+O8*2&&(z.width=r+O8*2);z.height!==r+O8*2&&(z.height=r+O8*2);r=z.getContext("2d");U.autoClear&&r.clearRect(0,0,z.width,z.height);r.fillStyle=Y;r.beginPath();r.roundRect(0,0,z.width,z.height,U.borderRadius);r.fill();r.save();r.translate(O8,O8);if(E)for(z=Math.floor(Z-f)/2-u,u=Math.floor(Z+f)/2+u,Y=z;Y<u;Y++)for(J=z;J<u;J++)P[Y][J]=!1;for(z=0;z<Z;z++)for(u=0;u<Z;u++)(z<7&&u<7||z<7&&u>=Z-
7||z>=Z-7&&u<7)&&(P[z][u]=!1);var Xr;z=(Xr=U.markerColor)!=null?Xr:U.color;GAY(r,0,0,W,z);GAY(r,W*(Z-7),0,W,z);GAY(r,0,W*(Z-7),W,z);switch(U.cellStyle){case 0:Xr=P;P=Xr.length;z=U.cellSize;r.beginPath();for(u=0;u<P;u++)for(Y=0;Y<P;Y++)Xr[u][Y]&&r.rect(u*z,Y*z,z,z);r.fillStyle=U.color;r.fill();break;case 1:Xr=P;P=Xr.length;z=U.cellSize;u=z*U.relativeCircleSize;r.fillStyle=U.color;r.beginPath();for(U=0;U<P;U++)for(Y=0;Y<P;Y++)Xr[U][Y]&&(r.beginPath(),r.ellipse((U+.5)*z,(Y+.5)*z,u/2,u/2,0,0,2*Math.PI),
r.fill());r.fill();break;case 2:Xr=P;P=Xr.length;z=U.cellSize;r.fillStyle=U.color;U=[[1,1],[-1,1],[-1,-1],[1,-1]];r.beginPath();for(u=0;u<P;u++)for(Y=0;Y<P;Y++)if(Xr[u][Y])r.roundRect(u*z,Y*z,z,z,z/2),u+1<P&&Xr[u+1][Y]&&r.rect(u*z+z/2,Y*z,z,z),Y+1<P&&Xr[u][Y+1]&&r.rect(u*z,Y*z+z/2,z,z);else{J=u*z+z/2;O8=Y*z+z/2;for(var Fr=0;Fr<4;Fr++){var mL=_.T(U[Fr]),Zn=mL.next().value;mL=mL.next().value;u+Zn>=0&&u+Zn<P&&Y+mL>=0&&Y+mL<P&&Xr[u+Zn][Y]&&Xr[u][Y+mL]&&Xr[u+Zn][Y+mL]&&(Zn=Fr*Math.PI/2,mL=z/2,r.moveTo(J+
mL*Math.cos(Zn),O8+mL*Math.sin(Zn)),r.arc(J,O8,z/2,Zn,Zn+Math.PI/2,!1),r.lineTo(J+mL*(Math.cos(Zn)-Math.sin(Zn)),O8+mL*(Math.cos(Zn)+Math.sin(Zn))),r.lineTo(J+mL*Math.cos(Zn),O8+mL*Math.sin(Zn)))}}r.fill()}E&&r.drawImage(E,(Z-f)*W/2,(Z-f)*W/2,f*W,f*W);r.restore();e.style.removeProperty("display")};
G.src=_.Hw(X);_.Ra(y)})};
_.b.hasCommunityPostRenderer=function(){var O,x,e,l;return!!((O=this.data)==null?0:(x=O.header)==null?0:(e=x.sharePanelHeaderRenderer)==null?0:(l=e.communityPost)==null?0:l.communityPostSectionRenderer)};
_.b.onTapClose=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.b.getScreenLayer=function(){return this.screenLayer};
_.b.logSharePanelPage=function(){if(!_.t("enable_share_panel_navigation_logging_fix_on_web")){var O;if((O=this.data)!=null&&O.trackingParams){O=this.data.trackingParams;var x=this.parentClickTrackingParams;x=x?_.Fv(x):void 0;var e=_.k0();_.tx(e,21760,x,{layer:7,parentLayer:0});e.graftServerVe(O,void 0,7);_.u9().dispatch(_.j6({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
RZ.prototype.onDataChanged=RZ.prototype.onDataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],RZ.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],RZ.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],RZ.prototype,"data",void 0);_.B([_.R({value:_.CZ("SBOX_INAPPROPRIATE_CANCEL")}),_.v("design:type",String)],RZ.prototype,"closeButtonAriaLabel",void 0);_.B([_.kX("yt-share-panel-header-renderer"),_.v("design:type",HTMLElement)],RZ.prototype,"header",void 0);_.B([_.R({selector:uyh.parentClickTrackingParamsSelector}),_.v("design:type",String)],RZ.prototype,"parentClickTrackingParams",void 0);_.B([_.R(),_.v("design:type",Object)],RZ.prototype,"qrCodeEnabled",void 0);
_.B([_.kX("#scroller"),_.v("design:type",Object)],RZ.prototype,"JSC$20314_scroller",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],RZ.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],RZ);
_.n(RZ,"ytd-unified-share-panel-renderer",function(){if(GMQ!==void 0)return GMQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GMQ=O},{mode:1});var BEX;var Up=function(){var O=_.a.apply(this,arguments)||this;O.modernModal=!0;return O};
_.c(Up,_.a);Up.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Up.prototype.computeShouldHideOldButtons=function(){var O;return!((O=this.data)==null?0:O.button)};
_.Dy.Object.defineProperties(Up.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var O,x;return(O=this.data)==null?void 0:(x=O.button)==null?void 0:x.buttonRenderer}}});
_.B([_.R(),_.v("design:type",Object)],Up.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],Up.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Up.prototype,"modernModal",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Up.prototype,"buttonRendererData",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Up);
_.n(Up,"ytd-modal-with-title-and-button-renderer",function(){if(BEX!==void 0)return BEX;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return BEX=O},{mode:1});var vHX;var aZ=function(){return _.a.apply(this,arguments)||this};
_.c(aZ,_.a);aZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("page-changed",this.page))};
aZ.prototype.pageChangedForBinding=aZ.prototype.pageChangedForBinding;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],aZ.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],aZ.prototype,"page",void 0);_.B([_.T1("page"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aZ.prototype,"pageChangedForBinding",null);
_.B([_.H({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],aZ);
_.n(aZ,"ytd-account-item-section-header-renderer",function(){if(vHX!==void 0)return vHX;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return vHX=O},{mode:1});var fb4;var m9=function(){return _.a.apply(this,arguments)||this};
_.c(m9,_.a);m9.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"}}}};
m9.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],m9.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],m9.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Function)],m9.prototype,"onAccountItemTap",void 0);
_.B([_.H({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],m9);
_.n(m9,"ytd-account-item-section-renderer",function(){if(fb4!==void 0)return fb4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fb4=O},{mode:1});var JQQ;var w0X;var SyL=function(){return _.a.apply(this,arguments)||this};
_.c(SyL,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],SyL.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],SyL.prototype,"data",void 0);_.B([_.H({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],SyL);
_.n(SyL,"ytd-accounts-dialog-header-renderer",function(){if(w0X!==void 0)return w0X;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return w0X=O},{mode:1});var jkw;var sp=function(){return _.a.apply(this,arguments)||this};
_.c(sp,_.a);sp.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sp.prototype,"data",void 0);_.B([_.H({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],sp);
_.n(sp,"ytd-google-account-header-renderer",function(){if(jkw!==void 0)return jkw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jkw=O},{mode:1});var WG=function(){return _.a.apply(this,arguments)||this};
_.c(WG,_.a);WG.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"}}}};
WG.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("page-changed",this.page))};
WG.prototype.pageChangedForBinding=WG.prototype.pageChangedForBinding;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],WG.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],WG.prototype,"page",void 0);
_.B([_.T1("page"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],WG.prototype,"pageChangedForBinding",null);_.B([_.H({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],WG);
_.NQ()(WG,"ytd-account-section-list-renderer",function(){if(JQQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);JQQ=O}O=JQQ;return O},{allowedProps:["data"],
mode:1});var NEL;var hw=function(){var O=_.a.apply(this,arguments)||this;O.enableHandlesAccountMenuSwitcher=_.t("enable_handles_account_menu_switcher");return O};
_.c(hw,_.a);hw.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
hw.prototype.dataChanged=hw.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hw.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hw.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.B([_.kX("#avatar"),_.v("design:type",Object)],hw.prototype,"avatar",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hw.prototype,"dataChanged",null);_.B([_.H({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],hw);
_.NQ()(hw,"ytd-active-account-header-renderer",function(){if(NEL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);NEL=O}O=NEL;return O},{allowedProps:["data"],
mode:1});var gHQ;var $mQ;var zP=function(){return _.a.apply(this,arguments)||this};
_.c(zP,_.a);zP.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zP.prototype.onBackTap=function(){_.wr(this.hostElement,"yt-menu-back-tapped")};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zP.prototype,"data",void 0);_.B([_.H({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],zP);
_.NQ()(zP,"ytd-simple-menu-header-renderer",function(){if($mQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);$mQ=O}O=$mQ;return O},{allowedProps:["data"],
mode:2});var iiL;var OKQ=function(){return _.a.apply(this,arguments)||this};
_.c(OKQ,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],OKQ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],OKQ.prototype,"data",void 0);_.B([_.H({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],OKQ);
_.n(OKQ,"ytd-comment-video-thumbnail-header-renderer",function(){if(iiL!==void 0)return iiL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return iiL=O},{mode:1});var xtO;var eKO=function(){return _.a.apply(this,arguments)||this};
_.c(eKO,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],eKO.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],eKO.prototype,"data",void 0);_.B([_.H({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],eKO);
_.n(eKO,"ytd-abuse-type-selector-renderer",function(){if(xtO!==void 0)return xtO;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return xtO=O},{mode:1});var lYw;var CiX=(0,_.$9$)(_.NI.reportChannelAbuse,{isVideoIdSelectedSelector:function(O,x){return x in O.selectedVideoIds},
additionalContextSelector:function(O){return O.additionalContext},
impersonatedChannelUrlSelector:function(O){return O.impersonatedChannelUrl},
reportChannelAbuseSelector:function(O){return O}});var rd=function(){return _.a.apply(this,arguments)||this};
_.c(rd,_.a);rd.prototype.attached=function(){var O=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){O.additionalContextInput.focusTextInput()})};
rd.prototype.handleAdditionalContextChanged=function(){var O=this;_.hY(this,"ytd-report-channel-additional-context-update",function(){O.ytdReduxBehavior.dispatch(_.j6({type:"ADDITIONAL_CONTEXT_UPDATED",payload:O.additionalContext}))},300)};
rd.prototype.updateAdditionalContextFromBinding=function(O){this.additionalContext=O.detail.value};
rd.prototype.handleAdditionalContextChanged=rd.prototype.handleAdditionalContextChanged;_.B([_.V(_.$5),_.v("design:type",Object)],rd.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",String)],rd.prototype,"additionalContext",void 0);_.B([_.R({selector:CiX.additionalContextSelector}),_.v("design:type",String)],rd.prototype,"additionalContextRedux",void 0);_.B([_.R(),_.v("design:type",Object)],rd.prototype,"data",void 0);
_.B([_.kX("yt-text-input-form-field-renderer"),_.v("design:type",Object)],rd.prototype,"additionalContextInput",void 0);_.B([_.T1("additionalContext"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rd.prototype,"handleAdditionalContextChanged",null);_.B([_.H({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],rd);
_.n(rd,"ytd-report-channel-modal-additional-context-renderer",function(){if(lYw!==void 0)return lYw;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return lYw=O},{mode:1});var QYO;var HG=function(){var O=_.a.apply(this,arguments)||this;O.nextButtonDisabled=null;O.submitEndpoint=null;O.navigationEndpoint=null;O.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return O};
_.c(HG,_.a);_.b=HG.prototype;_.b.computeNextButtonData=function(O,x,e){var l={};x&&(l.navigationEndpoint=x);e&&(l.serviceEndpoint=e);O&&O.buttonRenderer&&_.HX.extend(l,O.buttonRenderer);return l};
_.b.handleReportChannelModalDisableNextButtonAction=function(O){this.setNextButtonIsDisabled(O)};
_.b.handleReportFormEndpointUpdateAction=function(O){this.setNextButtonIsDisabled(!!O.disableSubmitButton);this.resetEndpointData();O.submitEndpoint?this.submitEndpoint=O.submitEndpoint:O.submitNavigationEndpoint&&(this.navigationEndpoint=O.submitNavigationEndpoint)};
_.b.handleSignalActionSubmitForm=function(){var O,x=Object.keys(((O=this.reportChannelAbuseForm)==null?void 0:O.selectedVideoIds)||{}),e;O=((e=this.reportChannelAbuseForm)==null?void 0:e.additionalContext)||"";var l;e=((l=this.reportChannelAbuseForm)==null?void 0:l.impersonatedChannelUrl)||"";var C;if((C=this.data)==null?0:C.submitEndpoint){x={impersonated_channel_url:e,text:O,video_ids:x};var Q;_.GG().resolve(_.Xc).resolveCommand((Q=this.data)==null?void 0:Q.submitEndpoint,{form:Object.assign({},
x,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.b.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.b.onYtServiceRequestError=function(O){this.setNextButtonIsDisabled(!1);_.s9(this.hostElement,O.detail.error.message)};
_.b.setNextButtonIsDisabled=function(O){this.set("data.nextButton.buttonRenderer.isDisabled",O)};
_.b.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
HG.prototype.onYtServiceRequestError=HG.prototype.onYtServiceRequestError;HG.prototype.onYtServiceRequestCompleted=HG.prototype.onYtServiceRequestCompleted;_.B([_.R(),_.v("design:type",Object)],HG.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],HG.prototype,"nextButtonDisabled",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],HG.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],HG.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],HG.prototype,"submitEndpoint",void 0);_.B([_.R(),_.v("design:type",Object)],HG.prototype,"navigationEndpoint",void 0);_.B([_.R({selector:CiX.reportChannelAbuseSelector}),_.v("design:type",Object)],HG.prototype,"reportChannelAbuseForm",void 0);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],HG.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],HG.prototype,"onYtServiceRequestError",null);_.B([_.H({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],HG);
_.n(HG,"ytd-report-channel-modal-footer-renderer",function(){if(QYO!==void 0)return QYO;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return QYO=O},{mode:1});var bKT;var Km=function(){var O=_.a.apply(this,arguments)||this;O.boundOnTapDismissButton=function(){O.closePopup()};
return O};
_.c(Km,_.a);Km.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Km.prototype.handleDataChanged=function(){_.QQ(this.hostElement)};
Km.prototype.closePopup=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
Km.prototype.handleDataChanged=Km.prototype.handleDataChanged;_.B([_.R(),_.v("design:type",Object)],Km.prototype,"boundOnTapDismissButton",void 0);_.B([_.R(),_.v("design:type",Object)],Km.prototype,"data",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Km.prototype,"handleDataChanged",null);_.B([_.H({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Km);
_.n(Km,"ytd-report-channel-modal-header-renderer",function(){if(bKT!==void 0)return bKT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return bKT=O},{mode:1});var TUp;var dd=function(){var O=_.a.apply(this,arguments)||this;O.autoValidate=!1;O.invalid=!1;O.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return O};
_.c(dd,_.a);_.b=dd.prototype;_.b.attached=function(){var O=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){O.channelUrlInput.focusTextInput()})};
_.b.disableNextButton=function(O){_.Sh(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[O])};
_.b.handleImpersonatedChannelUrlChanged=function(){var O=this;this.disableNextButton(!0);this.invalid=!1;_.hY(this,"ytd-report-channel-impersonated-channel-update",function(){var x=O.impersonatedChannelUrl.trim();O.ytdReduxBehavior.dispatch(_.j6({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:x}));var e;((e=O.data)==null?0:e.submitEndpoint)&&x&&_.GG().resolve(_.Xc).resolveCommand(O.data.submitEndpoint,{form:{impersonated_channel_url:x,element:O.hostElement}})},500)};
_.b.handleModifyReportFormCommand=function(O){this.invalid=this.get("modifyReportFormCommand.action",O)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.b.updateInvalidFromBinding=function(O){this.invalid=O.detail.value};
_.b.updateImpersonatedChannelUrlFromBinding=function(O){this.impersonatedChannelUrl=O.detail.value};
dd.prototype.handleImpersonatedChannelUrlChanged=dd.prototype.handleImpersonatedChannelUrlChanged;_.B([_.V(_.$5),_.v("design:type",Object)],dd.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],dd.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],dd.prototype,"autoValidate",void 0);_.B([_.R(),_.v("design:type",Object)],dd.prototype,"invalid",void 0);
_.B([_.R(),_.v("design:type",String)],dd.prototype,"impersonatedChannelUrl",void 0);_.B([_.R({selector:CiX.impersonatedChannelUrlSelector}),_.v("design:type",String)],dd.prototype,"impersonatedChannelUrlRedux",void 0);_.B([_.R(),_.v("design:type",Object)],dd.prototype,"data",void 0);_.B([_.kX("#text-input"),_.v("design:type",Object)],dd.prototype,"channelUrlInput",void 0);
_.B([_.T1("impersonatedChannelUrl"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],dd.prototype,"handleImpersonatedChannelUrlChanged",null);_.B([_.H({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],dd);
_.n(dd,"ytd-report-channel-modal-impersonation-renderer",function(){if(TUp!==void 0)return TUp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return TUp=O},{mode:1});var LUL;var keL;var nm=function(){return _.a.apply(this,arguments)||this};
_.c(nm,_.a);nm.prototype.onCheckboxToggled=function(O){var x,e,l=(e=_.q((x=this.data)==null?void 0:x.video,_.jm))==null?void 0:e.videoId;l&&this.ytdReduxBehavior.dispatch(O.target.checked?_.j6({type:"VIDEO_SELECTED",payload:l}):_.j6({type:"VIDEO_UNSELECTED",payload:l}))};
nm.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Dy.Object.defineProperties(nm.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var O,x=(O=this.data)==null?void 0:O.video;if(!x)return{};var e;O=(e=_.q(x,_.jm))==null?void 0:e.navigationEndpoint;if(!O)return x;_.q(O==null?void 0:O.commandMetadata,_.e6)&&(_.q(O.commandMetadata,_.e6).ignoreNavigation=!0);return x}}});
_.B([_.R({reflectToAttribute:!0,selector:CiX.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.v("design:type",Boolean)],nm.prototype,"checked",void 0);_.B([_.R(),_.v("design:type",Object)],nm.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],nm.prototype,"video",null);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],nm.prototype,"ytdReduxBehavior",void 0);_.B([_.H({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],nm);
_.n(nm,"ytd-selectable-video-renderer",function(){if(keL!==void 0)return keL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return keL=O},{mode:1});var u7=function(){var O=_.a.apply(this,arguments)||this;O.monitorScroll=!0;return O};
_.c(u7,_.a);u7.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],u7.prototype,"data",void 0);_.B([_.H({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],u7);
_.n(u7,"ytd-selectable-video-list-renderer",function(){if(LUL!==void 0)return LUL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return LUL=O},{mode:1});var AyT;_.tI("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var YZ=function(){return _.a.apply(this,arguments)||this};
_.c(YZ,_.a);YZ.prototype.onChange=function(O){if(O=_.uK(O).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.t("kevlar_command_handler_migration_killswitch"))_.gr(this.hostElement,O,this.hostElement);else{O=_.T(O);for(var x=O.next();!x.done;x=O.next())this.ytComponentBehavior.resolveCommand(x.value)}};
YZ.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
YZ.prototype.updateDataToggledFromBinding=function(O){this.set("data.toggled",O.detail.value)};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],YZ.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],YZ.prototype,"data",void 0);_.B([_.R({computed:"isEnabled(data)"}),_.v("design:type",Boolean)],YZ.prototype,"enabled",void 0);_.B([_.H({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],YZ);
_.n(YZ,"ytd-toggle-item-renderer",function(){if(AyT!==void 0)return AyT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return AyT=O},{mode:1});var MB4;var Dtu;var GeL;var BG=function(){var O=_.a.apply(this,arguments)||this;O.setVisible=!1;O.boundOnSubmitButtonClick=function(){O.onSubmitButtonClick()};
O.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return O};
_.c(BG,_.a);BG.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}}}}}};
BG.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
BG.prototype.onSubmitButtonClick=function(){var O;((O=this.data)==null?0:O.submitEndpoint)&&!_.t("enable_ytc_refunds_submit_form_signal_action")&&_.N9(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
BG.prototype.handleSignalActionSubmitForm=function(){var O;((O=this.data)==null?0:O.submitEndpoint)&&_.N9(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Dy.Object.defineProperties(BG.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.hiddenByDefault)&&!this.setVisible}}});
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],BG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],BG.prototype,"setVisible",void 0);_.B([_.R(),_.v("design:type",Object)],BG.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],BG.prototype,"surveyFeedbackData",void 0);_.B([_.R(),_.v("design:type",Object)],BG.prototype,"boundOnSubmitButtonClick",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data","setVisible"),_.v("design:type",Object),_.v("design:paramtypes",[])],BG.prototype,"visibilityHidden",null);_.B([_.Va({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],BG);
_.n(BG,"yt-flow-footer-renderer",function(){if(GeL===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;Dtu===void 0&&(Dtu=document.createElement("template"));var l=Dtu;e.call(x,l.content.cloneNode(!0),O.content.firstChild);GeL=O}O=GeL;return O},{mode:2});var FU$=(0,_.$9$)(_.NI.ypc,{surveyFeedbackDataSelector:function(O){return O.surveyFeedbackData}});var vG=function(){return _.a.apply(this,arguments)||this};
_.c(vG,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],vG.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],vG.prototype,"data",void 0);_.B([_.R({selector:FU$.surveyFeedbackDataSelector}),_.v("design:type",Object)],vG.prototype,"surveyFeedbackData",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],vG);
_.n(vG,"ytd-flow-footer-renderer",function(){if(MB4!==void 0)return MB4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return MB4=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var Xpw;var oP$;var fm=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return O};
_.c(fm,_.a);_.b=fm.prototype;_.b.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.q5("multiPageMenuSectionItems")}}};
_.b.handleHideEnclosingAction_=function(O){if(this.data&&this.data.items)for(var x=0;x<this.data.items.length;x++){var e=this.data.items[x].notificationRenderer;if(e&&e.notificationId==O.hideEnclosingAction.notificationId){this.splice("data.items",x,1);_.Sh(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.b.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.xX(this.hostElement,"hidden",!0)};
_.b.updateMenu_=function(O){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&O&&!O.doNotRefreshInbox){O=this.data.continuations;for(var x=0;x<O.length;x++)if(O[x].invalidationContinuationData){var e=void 0;var l=(e=O[x].invalidationContinuationData)==null?void 0:e.continuation;break}O=_.HX.clone(this.data.continuationUpdateEndpoint||null);O.continuation=l;O.click_tracking_params=this.data.trackingParams;_.N9(this.hostElement,[O])}};
_.b.onServiceRequestCompleted_=function(O,x){if(this.data&&(O=x.actions)){x=0;for(var e=O.length;x<e;x++){var l=_.q(O[x],_.tP$);if(!l)break;if((l.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||l.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&l.continuationItems&&this.data.items){var C=this.data.items.length-1;this.data.items[C].continuationItemRenderer&&(l=["data.items",C,1].concat(l.continuationItems),this.splice.apply(this,l))}}}};
fm.prototype.onServiceRequestCompleted_=fm.prototype.onServiceRequestCompleted_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],fm.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],fm.prototype,"data",void 0);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],fm.prototype,"onServiceRequestCompleted_",null);_.B([_.Va({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],fm);
_.NQ()(fm,"yt-multi-page-menu-section-renderer",function(){if(oP$===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Xpw===void 0&&(Xpw=document.createElement("template"));var l=Xpw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);oP$=O}O=oP$;return O},{allowedProps:["data"],
mode:2});var yyL;var ZKT;var Jw=function(){return _.a.apply(this,arguments)||this};
_.c(Jw,_.a);Jw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Dy.Object.defineProperties(Jw.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.progress)==null?0:this.data.progress*100}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Jw.prototype,"data",void 0);_.B([_.p("data.progress"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Jw.prototype,"showProgressBar",null);
_.B([_.p("data.progress"),_.v("design:type",Number),_.v("design:paramtypes",[])],Jw.prototype,"progress",null);_.B([_.Va({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Jw);
_.n(Jw,"yt-flow-header-renderer",function(){if(ZKT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;yyL===void 0&&(yyL=document.createElement("template"));var l=yyL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);ZKT=O}O=ZKT;return O},{mode:2});var EPu;var tBL;var wd=function(){return _.a.apply(this,arguments)||this};
_.c(wd,_.a);wd.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],wd.prototype,"data",void 0);_.B([_.Va({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],wd);
_.n(wd,"yt-post-confirmation-flow-step-renderer",function(){if(tBL===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;EPu===void 0&&(EPu=document.createElement("template"));var l=EPu;e.call(x,l.content.cloneNode(!0),O.content.firstChild);tBL=O}O=tBL;return O},{mode:2});var qtX;var PiQ;var Sy=function(){return _.a.apply(this,arguments)||this};
_.c(Sy,_.a);
Sy.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Sy.prototype,"data",void 0);_.B([_.Va({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Sy);
_.n(Sy,"yt-refund-confirmation-flow-step-renderer",function(){if(PiQ===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;qtX===void 0&&(qtX=document.createElement("template"));var l=qtX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);PiQ=O}O=PiQ;return O},{mode:2});var cyT=_.K(function(O){var x=O.data;return _.D("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.D("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.D(_.n_,{data:function(){return{thumbnails:[{url:x().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.D("div",{class:"profileBadgeViewModelContent"},_.D("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return x().badgeDesc}),_.D(_.F,{cond:function(){return x().badgeSubtitle},
then:function(){return _.D("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return x().badgeSubtitle})}})))},"Xi");
cyT.idomCompat=!0;var IYe=_.K(function(O){var x=O.data;return _.D("yt-comment-interaction-view-model",{el:_.Y0(_.P8(function(){return x().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.D("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return x().onTapA11yLabel},
"on:keydown":_.d8L(),tabindex:0},_.D("div",{class:"ytCommentInteractionViewModelHeader"},_.D("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return x().headerPrefix},' "',function(){return x().videoTitle}),_.D("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.D("div",{class:"ytCommentInteractionViewModelContent"},_.D("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return x().commentContent}),_.D("div",{class:"ytCommentInteractionViewModelChevron"},
_.D(_.n_,{data:function(){return{thumbnails:[{url:x().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Yi");
IYe.idomCompat=!0;var VB$=_.K(function(O){var x=O.data;return _.D("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ}),_.D("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return x().channelName}))},"Zi");
VB$.idomCompat=!0;var mtL=_.K(function(O){var x=O.data;O={};return _.D("yt-profile-info-view-model",{class:_.xz("ytProfileInfoViewModelHost",(O.ytProfileInfoViewModelWithVideoShelf=function(){return x().videosHorizontalShelf},O))},_.D(ppY,{profileInfo:x}),_.D(_.MR,{data:function(){return x().videosHorizontalShelf}},{horizontalShelfViewModel:function(e){return _.D("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.D(_.eB,{data:e.data}))}}),_.D(_.F,{cond:function(){return x().comments},
then:function(){return _.D(RK4,{profileInfo:x})}}),_.D(_.F,{cond:function(){return x().sharedSubscriptionsTitle},
then:function(){return _.D(_.F,{cond:function(){return x().subscriptionsAccessButtonCommand},
then:function(){return _.D(UtO,{profileInfo:x})},
else:function(){return _.D(aYL,{profileInfo:x})}})}}))},"$i");
mtL.idomCompat=!0;var RK4=_.K(function(O){var x=O.profileInfo;return _.D("div",{class:"ytProfileInfoViewModelActivity"},_.D("div",{class:"ytProfileInfoViewModelHeader"},_.D("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return x().commentsInteractionTitle})),_.D(_.MR,{data:function(){return x().comments}},{commentInteractionViewModel:function(e){return _.D("div",{class:"ytProfileInfoViewModelActivity"},_.D(IYe,{data:e.data}))}}))},"aj"),UtO=_.K(function(O){var x=O.profileInfo;
return _.D("div",{class:"ytProfileInfoViewModelSubSection"},_.D("div",{class:"ytProfileInfoViewModelSubHeader"},_.D(_.Pt,{command:function(){return x().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.D("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return x().sharedSubscriptionsTitle}),_.D("div",null,_.D(_.MR,{data:function(){return x().subscriptionsAccessButton}},{buttonViewModel:_.RV})))),_.D(sYp,{sharedSubscriptions:function(){var e;
return((e=x().sharedSubscriptions)==null?void 0:e.slice(0,5))||[]}}))},"bj"),aYL=_.K(function(O){var x=O.profileInfo;
return _.D("div",{class:"ytProfileInfoViewModelSubSection"},_.D("div",{class:"ytProfileInfoViewModelSubHeader"},_.D("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return x().sharedSubscriptionsTitle})),_.D(sYp,{sharedSubscriptions:function(){var e;
return((e=x().sharedSubscriptions)==null?void 0:e.slice(0,5))||[]}}))},"cj"),sYp=_.K(function(O){return _.D("div",{class:"ytProfileInfoViewModelSubs"},_.D(_.MR,{data:O.sharedSubscriptions},{sharedSubscriptionViewModel:function(x){return _.D("div",{class:"ytProfileInfoViewModelSub"},_.D(VB$,{data:x.data}))}}))},"dj"),ppY=_.K(function(O){var x=O.profileInfo;
return _.D("div",{class:"ytProfileInfoViewModelActivity"},_.D(_.HE,{each:function(){return[x().profileBadgeInfoYtWide,x().profileBadgeInfoChannelWide].filter(function(e){return!!e})},
keyBy:"INDEX"},function(e){return _.D(_.Xm,null,_.D("div",{class:"ytProfileInfoViewModelHeader"},_.D("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return e().profileSectionTitle}),_.D("div",{class:"ytProfileInfoViewModelSectionDesc"},_.D("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var l;
return(l=e().commentBadge)==null?void 0:l.commentDesc}),_.D(_.F,{cond:function(){var l;
return(l=e().commentBadge)==null?void 0:l.blackHeartDesc},
then:function(){return _.D("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.D("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.D(_.n_,{data:function(){var l;
return{thumbnails:[{url:(l=e().commentBadge)==null?void 0:l.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.D("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var l;return(l=e().commentBadge)==null?void 0:l.blackHeartDesc}))),_.D("div",{class:"ytProfileInfoViewModelBadge"},_.D(_.HE,{each:function(){return e().badges||[]}},function(l){return _.D(cyT,{data:l})})))}))},"ej");var WUT=_.K(function(O){var x=O.data;var e=function(){return x().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.D("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.D(_.MR,{data:function(){return x().profileIdentityInfo}},{profileIdentityInfoViewModel:function(l){return _.D(_.LRL,{data:l.data,
hideDivider:e,isChannelInfoCard:e})},
profileInfoViewModel:mtL}),_.D(_.MR,{data:function(){return x().profileInfo}},{profileIdentityInfoViewModel:_.LRL,
profileInfoViewModel:mtL}))},"fj");
WUT.idomCompat=!0;_.wP(WUT,"yt-profile-card-view-model",{props:{data:_.Ld}});var jy=function(){var O=_.a.apply(this,arguments)||this;O.enableFocusFix=_.t("music_web_enable_focus_on_setting_menu_fix")&&_.SS("IS_MOBILE_WEB",!1);O.covered=!1;O.hideMenu=!1;O.isCommentNotificationOnProfileCard=!1;O.scrolledByTouch=!1;O.disableBackdropFilter=_.t("web_disable_backdrop_filter");O.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return O};
_.c(jy,_.a);_.b=jy.prototype;
_.b.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"}}}};
_.b.ready=function(){var O=this;this.JSC$20415_containerElement.addEventListener("scroll",function(){O.ytRendererBehavior.markDirty()})};
_.b.attributeChanged=function(O,x){O==="menu-style"&&_.Sh(this.hostElement,"yt-multi-page-menu-closed-action",[x])};
_.b.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Qa(this,this.focusOnStampFinished))};
_.b.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Qa(this,this.focusOnStampFinished))};
_.b.reset=function(){this.closeJobId&&(_.vn.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.b.focusOnStampFinished=function(O){O.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Qa(this,this.focusOnStampFinished)),this.doFocus())};
_.b.doFocus=function(){var O=_.Pfd(this.sectionsElement);O.length&&O[0].focus()};
_.b.computeMenuStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.b.computeIsCommentNotificationOnProfileCard=function(O){return _.t("enable_profile_cards_on_comments")&&O.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.b.computeHideMenu=function(O,x){return O||!(!x||!x.showLoadingSpinner)};
_.b.onPopupClosed=function(){this.isPopUpOpen=!1;_.Sh(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.b.onPopupOpened=function(O,x){this.isPopUpOpen=!0;x.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.wr(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.j6({type:"CHANNEL_REPORT_RESET"})))};
_.b.onYtNavigate=function(O,x){this.shouldCloseOnNavigateEvent(x.endpoint)&&_.Sh(this.hostElement,"yt-close-all-popups-action")};
_.b.handleEndpoint=function(O){O=_.q(O,_.Bj);!this.isCommentNotificationOnProfileCard&&O&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20415_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.b.handleActions=function(O){for(var x=0,e=O.length;x<e;x++){var l=_.q(O[x],$zL);l&&this.handleGetMultiPageMenuAction(l);(l=_.q(O[x],_.tP$))&&this.handleAppendContinuationItemsAction(l)}};
_.b.onServiceRequestSentOrCompleted=function(O,x){O.detail&&O.detail.endpoint&&this.handleEndpoint(O.detail.endpoint);x.actions&&this.handleActions(x.actions)};
_.b.handleGetMultiPageMenuAction=function(O){var x=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.$U(this.submenuElement).appendChild(x);(O=O.menu.multiPageMenuRenderer)&&this.logSubmenu(O);x.data=O;x.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.b.handleAppendContinuationItemsAction=function(O){if(this.data&&O.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&O.continuationItems&&this.data.sections){var x=this.data.sections.length-1;this.data.sections[x].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),x--);if(this.data.sections[x].multiPageMenuNotificationSectionRenderer&&O.continuationItems){O=_.T(O==null?void 0:O.continuationItems);for(var e=O.next();!e.done;e=O.next())if(e=e.value,_.q(e,IZX)){var l=
void 0,C=void 0,Q=void 0,L=void 0,k=void 0;((l=this)==null?0:(C=l.data)==null?0:(Q=C.sections)==null?0:(L=Q[x])==null?0:(k=L.multiPageMenuNotificationSectionRenderer)==null?0:k.items)&&this.push("data.sections."+x+".multiPageMenuNotificationSectionRenderer.items",e)}else if(_.q(e,_.A5F)||_.q(e,_.dj))this.push("data.sections",e),x++}}};
_.b.logSubmenu=function(O){if(!_.t("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var x=this.ytRendererBehavior.getScreenLayer(),e=_.Pq(x),l=_.q9(x);if((O=O.trackingParams)&&e&&l){var C=_.Fv(O);_.t("combine_ve_grafts")?_.k0().graftServerVe(O,l,x):_.WU(e,l,C)}}};
_.b.emptySubmenuContainer=function(){for(var O=_.$U(this.submenuElement);O.firstChild;)O.removeChild(O.firstChild)};
_.b.onMenuBackTap=function(O){_.wr(this.hostElement,"yt-submenu-closed");O.stopPropagation()};
_.b.onSubmenuClosed=function(O){_.uK(O)!==this.hostElement&&(this.covered=!1,_.wr(this.hostElement,"yt-refit"),O.stopPropagation())};
_.b.onRetrieveLocation=function(O,x){x.hasComments&&(x.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),O.stopPropagation())};
_.b.shouldCloseOnNavigateEvent=function(O){if(!O)return!0;if(_.q(O,_.Y23)||_.q(O,_.BH4)||_.q(O,_.u8p)||_.q(O,_.$b))return!1;var x;return((x=_.q(O==null?void 0:O.commandMetadata,_.e6))==null?0:x.ignoreNavigation)?!1:!0};
_.b.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.b.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.b.refitAfterRender=function(){var O=this;_.A_(this,function(){_.wr(O.hostElement,"yt-refit")})};
jy.prototype.refitAfterRender=jy.prototype.refitAfterRender;jy.prototype.onRetrieveLocation=jy.prototype.onRetrieveLocation;jy.prototype.onSubmenuClosed=jy.prototype.onSubmenuClosed;jy.prototype.onMenuBackTap=jy.prototype.onMenuBackTap;jy.prototype.onServiceRequestSentOrCompleted=jy.prototype.onServiceRequestSentOrCompleted;jy.prototype.onYtNavigate=jy.prototype.onYtNavigate;jy.prototype.onPopupOpened=jy.prototype.onPopupOpened;jy.prototype.onPopupClosed=jy.prototype.onPopupClosed;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],jy.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],jy.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],jy.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],jy.prototype,"enableFocusFix",void 0);_.B([_.R(),_.v("design:type",Object)],jy.prototype,"covered",void 0);_.B([_.R({computed:"computeHideMenu(covered, data)"}),_.v("design:type",Object)],jy.prototype,"hideMenu",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.v("design:type",String)],jy.prototype,"menuStyle",void 0);
_.B([_.R({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.v("design:type",Object)],jy.prototype,"isCommentNotificationOnProfileCard",void 0);_.B([_.R(),_.v("design:type",Boolean)],jy.prototype,"isPopUpOpen",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],jy.prototype,"scrolledByTouch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],jy.prototype,"disableBackdropFilter",void 0);
_.B([_.kX("#sections"),_.v("design:type",HTMLElement)],jy.prototype,"sectionsElement",void 0);_.B([_.kX("#spinner"),_.v("design:type",HTMLElement)],jy.prototype,"spinnerElement",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],jy.prototype,"headerElement",void 0);_.B([_.kX("#container"),_.v("design:type",HTMLElement)],jy.prototype,"JSC$20415_containerElement",void 0);_.B([_.kX("#submenu"),_.v("design:type",HTMLElement)],jy.prototype,"submenuElement",void 0);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jy.prototype,"onPopupClosed",null);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],jy.prototype,"onPopupOpened",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],jy.prototype,"onYtNavigate",null);
_.B([_.bH("yt-service-request-completed"),_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],jy.prototype,"onServiceRequestSentOrCompleted",null);_.B([_.bH("yt-menu-back-tapped"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],jy.prototype,"onMenuBackTap",null);
_.B([_.bH("yt-submenu-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],jy.prototype,"onSubmenuClosed",null);_.B([_.bH("yt-retrieve-location"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],jy.prototype,"onRetrieveLocation",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],jy.prototype,"refitAfterRender",null);
_.B([_.H({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],jy);
_.n(jy,"ytd-multi-page-menu-renderer",function(){if(gHQ!==void 0)return gHQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return gHQ=O},{mode:1});var hKL;var NG=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return O};
_.c(NG,_.a);_.b=NG.prototype;_.b.created=function(){this.showTooltips=!0};
_.b.computeAccessibility_=function(O){return this.get("accessibility.accessibilityData",O)||null};
_.b.onTap=function(){var O=_.jh(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(O&&O.length===1&&O[0])_.Sh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var x;if((x=this.data)==null?0:x.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var e;((e=this.data)==null?0:e.menuRequest)&&_.N9(this.hostElement,[this.data.menuRequest])}}};
_.b.handleTopbarMenuClosedAction=function(O){var x,e;(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(O)===((x=this.data)==null?void 0:(e=x.icon)==null?void 0:e.iconType)&&this.toggleIconState(!1)};
_.b.toggleIconState=function(O){_.t("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=O)};
_.b.handleUpdateTopbarAvatarAction=function(O){var x;O=(x=_.q(O,fLO))==null?void 0:x.avatarUrl;var e,l;x=(e=this.data)==null?void 0:(l=e.avatar)==null?void 0:l.thumbnails;O&&x&&(e={thumbnails:[Object.assign({},x[0],{url:O})]},this.set("data.avatar",e))};
_.Dy.Object.defineProperties(NG.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.$U(this.hostElement).querySelector("#button")}}});
NG.prototype.onTap=NG.prototype.onTap;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],NG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],NG.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.Vr3.YtButtonBehavior),_.v("design:type",Object)],NG.prototype,"ytButtonBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],NG.prototype,"data",void 0);
_.B([_.kX("yt-icon-button#button"),_.v("design:type",Object)],NG.prototype,"iconButton",void 0);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NG.prototype,"onTap",null);_.B([_.H({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],NG);
_.NQ()(NG,"ytd-topbar-menu-button-renderer",function(){if(hKL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);hKL=O}O=hKL;return O},{allowedProps:["data"],
mode:1});var zKX;var gd=function(){return _.a.apply(this,arguments)||this};
_.c(gd,_.a);gd.prototype.getSelected=function(){return this.reasons.selected};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gd.prototype,"data",void 0);_.B([_.kX("#reasons"),_.v("design:type",Object)],gd.prototype,"reasons",void 0);_.B([_.H({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],gd);
_.n(gd,"ytd-ad-feedback-content",function(){if(zKX!==void 0)return zKX;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return zKX=O},{mode:1});var ryu;var $Z=function(){return _.a.apply(this,arguments)||this};
_.c($Z,_.a);_.b=$Z.prototype;_.b.onPopupOpened=function(){_.Sh(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.b.computeConfirmButton=function(O){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:O.confirmLabel}};
_.b.computeCancelButton=function(O){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:O.cancelLabel}};
_.b.onConfirmTap=function(){var O=this.content.getSelected();O!==void 0&&(O=this.data.reasons[O].endpoint)&&(_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}}),_.Sh(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.b.sendFeedbackSubmitToastAction=function(){var O;(O=this.data)!=null&&O.completionMessage&&(O=_.B1(this.data.completionMessage),_.Sh(this.hostElement,"yt-open-popup-action",[O,this]))};
_.b.onCancelTap=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
$Z.prototype.onPopupOpened=$Z.prototype.onPopupOpened;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$Z.prototype,"data",void 0);_.B([_.kX("#content"),_.v("design:type",Object)],$Z.prototype,"content",void 0);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],$Z.prototype,"onPopupOpened",null);
_.B([_.H({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],$Z);
_.n($Z,"ytd-ad-feedback-renderer",function(){if(ryu!==void 0)return ryu;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ryu=O},{mode:1});var HKe;var KUu=function(){return _.a.apply(this,arguments)||this};
_.c(KUu,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KUu.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],KUu.prototype,"data",void 0);_.B([_.H({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],KUu);
_.n(KUu,"ytd-ad-info-dialog-content",function(){if(HKe!==void 0)return HKe;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return HKe=O},{mode:1});var dtQ;var i7=function(){return _.a.apply(this,arguments)||this};
_.c(i7,_.a);i7.prototype.computeConfirmButton=function(O){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:O.confirmLabel}};
i7.prototype.onConfirmTap=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
i7.prototype.computeShouldShowTitle=function(){var O;return!((O=this.data)==null||!O.title)};
i7.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
i7.prototype.onPopupClosed=i7.prototype.onPopupClosed;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],i7.prototype,"data",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],i7.prototype,"onPopupClosed",null);_.B([_.H({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],i7);
_.n(i7,"ytd-ad-info-dialog-renderer",function(){if(dtQ!==void 0)return dtQ;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return dtQ=O},{mode:1});var nPp;var O3=function(){var O=_.a.apply(this,arguments)||this;O.actionButtonClass="action-button";O.dismissButtonId="dismiss-button";O.dialogDismiss=!0;return O};
_.c(O3,_.a);_.b=O3.prototype;_.b.computeInPlayer=function(O){return(O==null?void 0:O.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.b.computedLogo=function(){var O,x;return this.isDarkTheme()?(O=this.data)==null?void 0:O.logoDark:(x=this.data)==null?void 0:x.logo};
_.b.computedHeaderImage=function(){var O,x;return this.isDarkTheme()?(O=this.data)==null?void 0:O.headerImageDark:(x=this.data)==null?void 0:x.headerImage};
_.b.computeLogoIconId=function(){var O,x,e,l=(O=this.computedLogo())==null?void 0:(x=O.sources)==null?void 0:(e=x[0])==null?void 0:e.height;return l&&l%31===0?"logo-icon-with-padding":"logo-icon"};
_.b.computeLogoIconHeight=function(){var O,x,e,l=(O=this.computedLogo())==null?void 0:(x=O.sources)==null?void 0:(e=x[0])==null?void 0:e.height;return l&&l%31===0?"31":"24"};
_.b.onPopupClosed=function(){_.GG().resolve(_.zE).dispose()};
_.b.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.b.onShow=function(){this.inPlayer&&_.lK(6);this.titleElement.focus()};
_.b.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var O=0;O<this.data.impressionEndpoints.length;O++){var x=_.q(this.data.impressionEndpoints[O],_.VG);x&&this.ytComponentBehavior.resolveCommand(x)}};
_.b.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Sh(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Dy.Object.defineProperties(O3.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var O,x;return!((O=this.data)==null||!O.headerImageDark)&&!((x=this.data)==null||!x.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.secondaryButton)}}});
O3.prototype.onPopupClosed=O3.prototype.onPopupClosed;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],O3.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.l4.YtVisibilityBehavior),_.v("design:type",Object)],O3.prototype,"ytVisibilityBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],O3.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],O3.prototype,"actionButtonClass",void 0);_.B([_.R(),_.v("design:type",Object)],O3.prototype,"dismissButtonId",void 0);_.B([_.R(),_.v("design:type",Object)],O3.prototype,"dialogDismiss",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],O3.prototype,"hasHeaderImage",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],O3.prototype,"hasPremiumButton",null);
_.B([_.R({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.v("design:type",Boolean)],O3.prototype,"inPlayer",void 0);_.B([_.kX("#dismiss-button"),_.v("design:type",HTMLElement)],O3.prototype,"dismissButton",void 0);_.B([_.kX("#title"),_.v("design:type",HTMLElement)],O3.prototype,"titleElement",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],O3.prototype,"onPopupClosed",null);
_.B([_.H({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],O3);
_.n(O3,"ytd-enforcement-message-view-model",function(){if(nPp!==void 0)return nPp;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return nPp=O},{mode:1});var u3L;var YtL;var xM=function(){var O=_.a.apply(this,arguments)||this;O.TEST_ONLY={immediateValidation:function(){O.immediateValidation()},
onValidationResponse:function(x){O.onValidationResponse(x)},
onGenerateHandleFromNameResponse:function(x){O.onGenerateHandleFromNameResponse(x)}};
return O};
_.c(xM,_.a);_.b=xM.prototype;_.b.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.b.validate=function(){this.immediateValidation()};
_.b.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.b.setHandleInputValue=function(O){this.handleDir=this.getHandleDir(O);this.handleInput.value=O;this.validationState={status:"PENDING"};this.immediateValidation()};
_.b.getHandleDir=function(O){var x=O===""&&!1;return(x=_.H1z.test.call(_.H1z,O))?"rtl":"ltr"};
_.b.onDataChanged=function(){var O,x;this.handleDir=this.getHandleDir((x=(O=this.data)==null?void 0:O.handle)!=null?x:"");var e;this.validationState=((e=this.data)==null?0:e.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var l;((l=this.data)==null?0:l.validateOnInit)&&this.immediateValidation()};
_.b.stopPropagation=function(O){O.stopPropagation()};
_.b.onInput=function(){var O;this.handleDir=this.getHandleDir((O=this.handleInput.value)!=null?O:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.b.onFocusout=function(O){this.handleInput.contains(O.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.b.delayedValidation=function(){var O,x;this.debouncedValidation((x=(O=this.data)==null?void 0:O.validationDelayMs)!=null?x:1E3)};
_.b.immediateValidation=function(){this.debouncedValidation(0)};
_.b.debouncedValidation=function(O){var x=this;_.hY(this,"debouncedValidation",function(){var e,l=x.staticValidation((e=x.handleInput.value)!=null?e:"");if(l!==void 0)x.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:l};else{var C;if((C=x.data)!=null&&C.validateChannelHandleCommand){x.validationState={status:"LOADING"};var Q;x.ytComponentBehavior.resolveCommand(x.data.validateChannelHandleCommand,{form:{handle:(Q=x.handleInput.value)!=null?Q:""},commandController:{onSuccess:function(L,
k){x.onValidationResponse(k)},
onServerError:function(L,k){x.onValidationServerError(k)}}})}else x.handleUnexpectedValidationError(new _.ry("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",x.data))}},O)};
_.b.staticValidation=function(O){var x;if(((x=this.data)==null?void 0:x.channelHandleStaticValidationParams)!==void 0){x=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(O)&&x.validValueRegexpErrorMessage!==void 0)return x.validValueRegexpErrorMessage;if(x.minLength!==void 0&&O.length<x.minLength&&x.minLengthErrorMessage!==void 0)return x.minLengthErrorMessage;if(x.maxLength!==void 0&&O.length>x.maxLength&&x.maxLengthErrorMessage!==void 0)return x.maxLengthErrorMessage}};
_.b.onValidationResponse=function(O){var x=_.q(O.result,JML);x===void 0?this.handleUnexpectedValidationError(new _.ry("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",O)):this.handleValidationResultRenderer(x)};
_.b.onValidationServerError=function(O){this.handleUnexpectedValidationError(new _.ry("ValidateChannelHandle request failed.",O))};
_.b.handleValidationResultRenderer=function(O){if(O.handle===void 0)this.handleUnexpectedValidationError(new _.ry("ChannelHandleValidationResultRenderer does not contain handle.",O));else if(O.handle===this.handleInput.value)switch(O.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:O.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:O.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.ry("Unrecognized ChannelHandleValidationResult",O));break;default:_.vd(O.result)}};
_.b.handleUnexpectedValidationError=function(O){var x;this.validationState={status:"UNKNOWN",handle:(x=this.handleInput.value)!=null?x:""};_.ft(O)};
_.b.stopEventPropagation=function(O){O.stopPropagation()};
_.b.updateHandleOnChannelNameInputChange=function(O){if(!this.wasEdited){var x,e;this.debouncedGenerateHandleFromName(O,(e=(x=this.data)==null?void 0:x.validationDelayMs)!=null?e:1E3)}};
_.b.debouncedGenerateHandleFromName=function(O,x){var e=this;_.hY(this,"debouncedGenerateHandleFromName",function(){var l;(l=e.data)!=null&&l.validateChannelHandleCommand?e.ytComponentBehavior.resolveCommand(e.data.validateChannelHandleCommand,{form:{name:O},commandController:{onSuccess:function(C,Q){e.onGenerateHandleFromNameResponse(Q)},
onServerError:function(C,Q){_.ft(new _.ry("Error calling GenerateHandleFromName",Q))}}}):_.ft(new _.ry("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",e.data))},x)};
_.b.onGenerateHandleFromNameResponse=function(O){this.wasEdited||((O=_.q(O.result,wIQ))?this.setHandleInputValue(O.handle):_.ft(new _.ry("Invalid results when generate handle from name")))};
_.Dy.Object.defineProperties(xM.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var O;if(O=this.validationState)O=this.validationState,O=O.status==="OK"||O.status==="UNKNOWN";if(O)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.validationState)==null?void 0:O.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 O,x=(O=this.channelHandleEntity)==null?void 0:O.handleEdit;this.handleDir=this.getHandleDir(x!=null?x:"");return x}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var O,x;if(((O=this.data)==null?void 0:(x=O.channelHandleStaticValidationParams)==null?void 0:x.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
xM.prototype.stopEventPropagation=xM.prototype.stopEventPropagation;xM.prototype.onDataChanged=xM.prototype.onDataChanged;xM.prototype.applyHandleEdit=xM.prototype.applyHandleEdit;xM.prototype.onValueChanged=xM.prototype.onValueChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],xM.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],xM.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],xM.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Boolean)],xM.prototype,"wasEdited",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],xM.prototype,"handleDir",void 0);_.B([_.kX("#handle-input"),_.v("design:type",Object)],xM.prototype,"handleInput",void 0);_.B([_.R(),_.p("validationState"),_.v("design:type",Object),_.v("design:paramtypes",[])],xM.prototype,"value",null);
_.B([_.T1("value"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xM.prototype,"onValueChanged",null);_.B([_.p("validationState"),_.v("design:type",Object),_.v("design:paramtypes",[])],xM.prototype,"errorIndicator",null);_.B([_.R({reflectToAttribute:!0}),_.p("errorIndicator"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],xM.prototype,"borderErrorIndicator",null);
_.B([_.R({selectorArgs:["data.channelHandleEntityKey"],selector:function(O,x){return _.xE(O.entities,"channelHandle",x)}}),
_.v("design:type",Object)],xM.prototype,"channelHandleEntity",void 0);_.B([_.p("channelHandleEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],xM.prototype,"handleEdit",null);_.B([_.T1("handleEdit"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xM.prototype,"applyHandleEdit",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],xM.prototype,"onDataChanged",null);
_.B([_.p("data.channelHandleStaticValidationParams.validValueRegexp"),_.v("design:type",Object),_.v("design:paramtypes",[])],xM.prototype,"validValueRegexp",null);_.B([_.bH("yt-service-request-sent"),_.bH("yt-service-request-completed"),_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],xM.prototype,"stopEventPropagation",null);_.B([_.H({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],xM);
_.n(xM,"ytd-channel-handle-input-renderer",function(){if(YtL!==void 0)return YtL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return YtL=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var e0=function(){var O=_.a.apply(this,arguments)||this;O.data=null;O.errorMessage=null;O.isLoading=!0;O.hideContainer=!1;O.enableNewChannelCreationOnIdForAll=_.t("enable_new_channel_creation_for_id4all");O.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"};O.testOnly={setErrorMessage:function(x){O.resetErrorState();
O.setErrorState(x)}};
return O};
_.c(e0,_.a);_.b=e0.prototype;_.b.created=function(){this.logScreenVe()};
_.b.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")};
_.b.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var O;((O=this.zeroStepErrorMessageEntity)==null?0:O.value)&&this.set("errorMessage",_.KA(this.zeroStepErrorMessageEntity.value))};
_.b.onCreateTap=function(){var O=this;if(this.data&&this.data.channelCreationEndpoint){var x,e;if(!((x=this.data.createChannelButton)==null?0:(e=x.buttonRenderer)==null?0:e.isDisabled)){var l;if((l=this.nameInput)!=null&&l.value){this.setLoadingState();var C,Q;x=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(C=this.handleInput)==null?void 0:C.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((Q=this.handleInput)==null?void 0:Q.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:x,commandController:{onSuccess:function(L,k){O.onChannelCreationEndpointSuccess(k);O.obakeImageSource&&_.uU("channelCreatedWithObakeImage",{imageSourceType:O.obakeImageSource})},
onServerError:function(){O.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.b.endpointRequiresServiceRequestAction=function(O){return!!_.q(O,_.Zr)||!!_.q(O,fLO)};
_.b.isNavigateAction=function(O){var x;return!!_.q(O,_.Vw)||!!_.q((x=_.q(O,N64))==null?void 0:x.command,_.Vw)};
_.b.isPlaylistAction=function(O){return!!_.q(O,_.vj)||!!_.q(O,_.Ns)};
_.b.onChannelCreationEndpointSuccess=function(O){if(O.createChannelError){var x;this.setErrorState((x=O.createChannelError)==null?void 0:x.errorMessage);this.handleInput&&this.handleInput.validate()}else{O.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(O.navigationEndpoint);if(O.actions){x=_.T(O.actions);for(var e=x.next();!e.done;e=x.next())if(e=e.value,this.endpointRequiresServiceRequestAction(e)&&this.ytComponentBehavior.resolveCommand(e),this.isNavigateAction(e)){var l=void 0;e=_.q((l=
_.q(e,N64))==null?void 0:l.command,_.Vw);l=void 0;this.isPlaylistAction((l=e)==null?void 0:l.endpoint)&&(_.Sh(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),l=void 0,this.ytComponentBehavior.resolveCommand((l=e)==null?void 0:l.endpoint))}}O.actions&&O.actions.some(function(C){var Q;return _.q(C,_.Vw)||_.q((Q=_.q(C,N64))==null?void 0:Q.command,_.Vw)})||_.Sh(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.b.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.b.onCancelTap=function(){var O,x,e;if(!((O=this.data)==null?0:(x=O.cancelButton)==null?0:(e=x.buttonRenderer)==null?0:e.isDisabled)){var l,C,Q;O=(l=this.data)==null?void 0:(C=l.cancelButton)==null?void 0:(Q=C.buttonRenderer)==null?void 0:Q.command;if(!O||!_.q(O,_.p_7)){var L;this.nameInput&&((L=this.data)==null?0:L.name)&&(this.nameInput.value=this.data.name);var k;this.handleInput&&((k=this.data)==null?0:k.channelHandleInput)&&(this.handleInput.data=_.q(this.data.channelHandleInput,SqO));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.b.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.b.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.b.onClearProfilePhotoTap=function(){var O,x,e;((O=this.data)==null?0:(x=O.clearProfilePhotoButton)==null?0:(e=x.buttonRenderer)==null?0:e.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.b.onEditAvatarTap=function(){var O,x,e;((O=this.data)==null?0:(x=O.editAvatarButton)==null?0:(e=x.buttonRenderer)==null?0:e.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.b.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)};
_.b.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var O;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((O=this.data)==null?0:O.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.b.setErrorState=function(O){this.resetErrorState();if(O)this.set("errorMessage",O);else{var x;if((x=this.zeroStepErrorMessageEntity)==null?0:x.value)this.set("errorMessage",_.KA(this.zeroStepErrorMessageEntity.value));else{var e;((e=this.data)==null?0:e.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.b.fetchImageBlobWithAlr=function(O,x){x=x===void 0?5:x;var e=this,l,C,Q,L,k;return _.A(function(M){switch(M.nextAddress){case 1:return M.yield(fetch(O,{method:"GET",mode:"cors"}),2);case 2:l=M.yieldResult;if(l.ok){M.jumpTo(3);break}if(x===0)throw Error();C=e.addJitter(Math.pow(2,5-x));return M.yield(new Promise(function(G){setTimeout(G,C*1E3)}),4);
case 4:return M.return(e.fetchImageBlobWithAlr(O,x-1));case 3:if(!l.headers.get("content-type").split(";").some(function(G){return G.trim()==="text/plain"})){M.jumpTo(5);
break}Q=e;L=Q.fetchImageBlobWithAlr;return M.yield(l.text(),6);case 6:return M.return(L.call(Q,M.yieldResult,x-1));case 5:return M.yield(l.blob(),7);case 7:return k=M.yieldResult,M.return(k)}})};
_.b.addJitter=function(O){var x=O*.3*Math.random();Math.random()>.5&&(x*=-1);return O+x};
_.b.openProfilePicturePicker=function(){var O=this,x,e,l,C,Q,L;return _.A(function(k){if(k.nextAddress==1){x=O.data.scottyUploadUrl;if(!x)return k.return();e=document.documentElement.hasAttribute("dark");l=document.body.style.colorScheme;e&&(document.body.style.colorScheme="dark");C=noL(ufO(ds$(sqp(e?"dark":"light")),function(M){var G,X,y,Z,E;return _.A(function(P){if(P.nextAddress==1)return G=_.dp(CQu(new oQ(M.photoUrl,!1)).build(),"alr","yes"),O.obakeImageSource=O.pictureChangeSourceToObakeImageSourceType(M.photoSource),
_.tS(P,2),O.setLoadingState(),P.yield(O.fetchImageBlobWithAlr(G),4);if(P.nextAddress!=2)return X=P.yieldResult,y=new FileReader,y.addEventListener("load",function(){var U,W,z,r,f,u;return _.A(function(Y){if(Y.nextAddress==1){if(X.size>15728640)return O.setErrorState((U=O.data)==null?void 0:U.imageSizeErrorMessage),_.ft(Error("Cl")),Y.return();if(!y.result)return O.setErrorState((W=O.data)==null?void 0:W.genericImageLoadErrorMessage),_.ft(Error("Dl")),Y.return();z=y.result;_.tS(Y,2);return Y.yield(ZIT(X,
x),4)}if(Y.nextAddress!=2)return r=Y.yieldResult,O.handleImageUpdatedAction(z,r),O.resetErrorState(),_.lb(Y,0);f=_.VP(Y);O.setErrorState((u=O.data)==null?void 0:u.uploadErrorMessage);if(f instanceof Error)_.BH(f);else{var J=new _.ry(JSON.stringify(f));_.BH(J)}_.Ra(Y)})}),y.readAsDataURL(X),_.lb(P,0);
Z=_.VP(P);O.setErrorState((E=O.data)==null?void 0:E.genericImageLoadErrorMessage);Z instanceof Error?_.BH(Z):_.vH(new _.ry(JSON.stringify(Z)));_.Ra(P)})}),function(){O.hideContainer=!1;
document.body.style.colorScheme=l});
_.tS(k,2);return((Q=O.data)==null?0:Q.shouldViewChannelCreationFormForSupex)?k.yield(C.openPicker("profile-picture/art-selection"),5):k.yield(C.openPicker(),5)}if(k.nextAddress!=2)return _.lb(k,0);_.VP(k);O.setErrorState((L=O.data)==null?void 0:L.selectImageErrorMessage);_.Ra(k)})};
_.b.pictureChangeSourceToObakeImageSourceType=function(O){switch(O){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.b.logScreenVe=function(){_.tx(_.k0(),124448)};
_.b.graftServerVe=function(){var O=_.q9(),x,e,l=(x=this.data)==null?void 0:(e=x.loggingDirectives)==null?void 0:e.trackingParams;l&&O&&(this.channelCreationFormVe=_.k0().graftServerVe(l,O),O={visualElement:this.channelCreationFormVe},_.TO().reportShown(O))};
_.b.isNameChanged=function(O){var x;return((x=this.data)==null?void 0:x.name)!==O};
_.b.isHandleChanged=function(O){var x,e=_.q((x=this.data)==null?void 0:x.channelHandleInput,SqO);return e&&O?e.handle!==O:!1};
_.b.handleImageUpdatedAction=function(O,x){this.hideContainer=!1;this.previewDataUrl=O;this.encryptedBlobId=x};
_.b.handleImageSelectionErrorAction=function(O){this.hideContainer=!1;this.setErrorState(O)};
_.b.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.b.showContainer=function(){this.hideContainer=!1};
_.b.maybeWipeZeroStepErrorMessage=function(){var O,x=(O=this.data)==null?void 0:O.zeroStepErrorMessageEntityKey,e;x&&((e=this.zeroStepErrorMessageEntity)==null?0:e.value)&&this.ytdReduxBehavior.dispatch(_.Dc("stringEntity",x,{key:x,value:""}))};
_.Dy.Object.defineProperties(e0.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 O;return((O=this.photoThumbnail)==null?0:O.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 O;return!((O=this.data)==null||!O.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.descriptionInfo}}});
e0.prototype.dataChanged=e0.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],e0.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],e0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],e0.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],e0.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],e0.prototype,"errorMessage",void 0);
_.B([_.R(),_.v("design:type",Object)],e0.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",String)],e0.prototype,"previewDataUrl",void 0);_.B([_.R(),_.v("design:type",Number)],e0.prototype,"obakeImageSource",void 0);_.B([_.R(),_.v("design:type",Object)],e0.prototype,"hideContainer",void 0);_.B([_.kX("#title-input"),_.v("design:type",Object)],e0.prototype,"nameInput",void 0);_.B([_.kX("#handle-input"),_.v("design:type",Object)],e0.prototype,"handleInput",void 0);
_.B([_.R(),_.v("design:type",Boolean)],e0.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.B([_.R({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.k9L}),_.v("design:type",Object)],e0.prototype,"zeroStepErrorMessageEntity",void 0);_.B([_.p("data","data.isDefaultProfilePhoto","previewDataUrl"),_.v("design:type",Object),_.v("design:paramtypes",[])],e0.prototype,"photoThumbnail",null);
_.B([_.p("data","data.isDefaultProfilePhoto","photoThumbnail"),_.v("design:type",Object),_.v("design:paramtypes",[])],e0.prototype,"userSetPhotoThumbnailUrl",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],e0.prototype,"hideProfilePhotoButtonLayer",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],e0.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.B([_.G1("data","zeroStepErrorMessageEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],e0.prototype,"dataChanged",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.descriptionInfo","zeroStepErrorMessageEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],e0.prototype,"description",null);_.B([_.H({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],e0);
_.n(e0,"ytd-channel-creation-dialog-renderer",function(){if(u3L!==void 0)return u3L;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return u3L=O},{mode:1});var BUL;var ly=function(){var O=_.a.apply(this,arguments)||this;O.isLoading=!1;O.isDisabled=!1;return O};
_.c(ly,_.a);ly.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ly.prototype.updateDisabled=function(){var O;this.isDisabled=this.isLoading||((O=this.handleInput)==null?void 0:O.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
ly.prototype.onSaveClick=function(){var O=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var x;((x=this.data)==null?void 0:x.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 e;if((e=O.data)==null?0:e.nextEndpoint){var l;O.ytComponentBehavior.resolveCommand((l=O.data)==null?void 0:l.nextEndpoint)}else O.isLoading=
!1,O.closeDialog()},
onServerError:function(){O.isLoading=!1;O.handleInput.validate();var e;O.errorMessage=(e=O.data)==null?void 0:e.errorMessage}}}))}};
ly.prototype.closeDialog=function(){_.Sh(this.hostElement,"yt-close-popup-action",[this.is])};
ly.prototype.updateDisabled=ly.prototype.updateDisabled;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ly.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ly.prototype,"data",void 0);_.B([_.kX("#handle-input"),_.v("design:type",Object)],ly.prototype,"handleInput",void 0);_.B([_.T1("isLoading"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ly.prototype,"updateDisabled",null);
_.B([_.H({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],ly);
_.n(ly,"ytd-channel-handle-edit-dialog-renderer",function(){if(BUL!==void 0)return BUL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return BUL=O},{mode:1});var vP$;var CR=function(){return _.a.apply(this,arguments)||this};
_.c(CR,_.a);CR.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],CR.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],CR);
_.n(CR,"ytd-channel-switcher-footer-renderer",function(){if(vP$!==void 0)return vP$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vP$=O},{mode:1});var fYw;var Jyh;var Q2=function(){return _.a.apply(this,arguments)||this};
_.c(Q2,_.a);Q2.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Q2.prototype.onIronChange=Q2.prototype.onIronChange;_.B([_.R(),_.v("design:type",Object)],Q2.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Function)],Q2.prototype,"onDontAskAgainChanged",void 0);_.B([_.kX("#checkbox"),_.v("design:type",Object)],Q2.prototype,"checkbox",void 0);_.B([_.bH("iron-change"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Q2.prototype,"onIronChange",null);
_.B([_.H({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Q2);
_.n(Q2,"ytd-identity-prompt-footer-renderer",function(){if(Jyh!==void 0)return Jyh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Jyh=O},{mode:1});var by=function(){var O=_.a.apply(this,arguments)||this;O.dontAskAgain=!1;O.showPopup=!1;O.boundDontAskAgainChanged=function(x){O.dontAskAgainChanged(x)};
O.boundOnAccountItemTap=function(x){O.onAccountItemTap(x)};
return O};
_.c(by,_.a);_.b=by.prototype;
_.b.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]]"}}}}}};
_.b.ready=function(){var O=this;_.$U(this.hostElement).querySelector("#container").addEventListener("scroll",function(){O.ytRendererBehavior.markDirty()})};
_.b.dontAskAgainChanged=function(O){this.dontAskAgain=O};
_.b.onAccountItemTap=function(O){if(O){var x={};this.dontAskAgain&&(x={dont_ask_again:this.dontAskAgain});_.zu(O,x)}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.b.redirectOnlyAccount=function(O){O.sections&&O.sections.length>0&&(O=_.q(O.sections[0],_.T1d),(O==null?0:O.contents)&&(O==null?void 0:O.contents.length)<=1?(O=_.Cb(window.location.href),(O==null?0:O.next)&&_.wqr(O.next)?_.zu(O.next):_.zu("/")):this.showPopup=!0)};
by.prototype.dataChanged=by.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],by.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Object)],by.prototype,"dontAskAgain",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],by.prototype,"showPopup",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Object)],by.prototype,"boundDontAskAgainChanged",void 0);_.B([_.R({reflectToAttribute:!1}),_.v("design:type",Object)],by.prototype,"boundOnAccountItemTap",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],by.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],by);
_.n(by,"ytd-channel-switcher-renderer",function(){if(fYw!==void 0)return fYw;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fYw=O},{mode:1});var wpQ;var TZ=function(){return _.a.apply(this,arguments)||this};
_.c(TZ,_.a);_.Dy.Object.defineProperties(TZ.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.B([_.R(),_.v("design:type",Object)],TZ.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],TZ.prototype,"steps",null);_.B([_.H({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],TZ);
_.n(TZ,"ytd-channel-transfer-stepper-renderer",function(){if(wpQ!==void 0)return wpQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return wpQ=O},{mode:1});var StO;var LR=function(){var O=_.a.apply(this,arguments)||this;O.data=null;O.isError=!1;O.isLoading=!1;return O};
_.c(LR,_.a);_.b=LR.prototype;_.b.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"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.b.computeProfileName=function(O){return O?O.givenNameValue+" "+O.familyNameValue:""};
_.b.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)};
_.b.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)};
LR.prototype.onYtServiceRequestError=LR.prototype.onYtServiceRequestError;LR.prototype.onYtServiceRequestSent=LR.prototype.onYtServiceRequestSent;LR.prototype.dataChanged=LR.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LR.prototype,"data",void 0);
_.B([_.R({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.v("design:type",String)],LR.prototype,"profileName",void 0);_.B([_.R(),_.v("design:type",Object)],LR.prototype,"isError",void 0);_.B([_.R(),_.v("design:type",Object)],LR.prototype,"isLoading",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LR.prototype,"dataChanged",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],LR.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],LR.prototype,"onYtServiceRequestError",null);_.B([_.H({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],LR);
_.n(LR,"ytd-channel-warm-welcome-cont-renderer",function(){if(StO!==void 0)return StO;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return StO=O},{mode:1});var jYQ;var kM=function(){var O=_.a.apply(this,arguments)||this;O.data=null;return O};
_.c(kM,_.a);kM.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kM.prototype,"data",void 0);_.B([_.H({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],kM);
_.n(kM,"ytd-channel-warm-welcome-renderer",function(){if(jYQ!==void 0)return jYQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return jYQ=O},{mode:1});var NUp;var AK=function(){return _.a.apply(this,arguments)||this};
_.c(AK,_.a);_.Dy.Object.defineProperties(AK.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.authorThumbnail)||{}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],AK.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],AK.prototype,"thumbnailDetails",null);_.B([_.H({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],AK);
_.n(AK,"ytd-comment-preview-renderer",function(){if(NUp!==void 0)return NUp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return NUp=O},{mode:1});var gPL;var MY=function(){return _.a.apply(this,arguments)||this};
_.c(MY,_.a);MY.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Dy.Object.defineProperties(MY.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.submitButton}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],MY.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],MY.prototype,"submitButton",null);_.B([_.H({is:"ytd-notice-renderer",disableElementRegistration:!0})],MY);
_.n(MY,"ytd-notice-renderer",function(){if(gPL!==void 0)return gPL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gPL=O},{mode:1});var $tO;var DA=function(){return _.a.apply(this,arguments)||this};
_.c(DA,_.a);DA.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],DA.prototype,"data",void 0);_.B([_.H({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],DA);
_.n(DA,"ytd-preview-comment-dialog-content",function(){if($tO!==void 0)return $tO;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $tO=O},{mode:1});var iKp;var GZ=function(){return _.a.apply(this,arguments)||this};
_.c(GZ,_.a);GZ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
GZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],GZ.prototype,"data",void 0);_.B([_.H({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],GZ);
_.n(GZ,"ytd-preview-comment-dialog-renderer",function(){if(iKp!==void 0)return iKp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return iKp=O},{mode:1});var OWQ;var x24=_.t("web_button_rework")&&_.SS("BUTTON_REWORK")||_.t("web_button_rework_with_live"),F$=function(){var O=_.a.apply(this,arguments)||this;O.closeLabel=_.CZ("CLOSE");O.selectedAmountIndex=1;O.privacyCheckboxValue=!1;O.useAmsterdamStyle=x24;O.amountPlaceholderIndex=-1;return O};
_.c(F$,_.a);_.b=F$.prototype;_.b.onAmountClick=function(O){this.selectedAmountIndex=_.$U(this.hostElement).querySelector("#amounts").indexForElement(O.currentTarget)};
_.b.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Sh(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.b.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Sh(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Sh(this.hostElement,"yt-close-popup-action",[this.is]);var O;(O=_.f7())==null||O.getPlayerPromise().then(function(x){x.pauseVideo()})}};
_.b.donationCallback=function(O){O.success?(this.hostElement.hasAttribute("live-chat")&&O.response&&O.response.data&&O.response.data.actions&&_.Sh(this.hostElement,"yt-live-chat-open-popup",[O.response.data.actions[0]]),_.Sh(this.hostElement,"yt-close-popup-action",[this.is]),_.Sh(this.hostElement,"yt-live-chat-close-buy-flow")):O.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(O.errorMessageRenderer)};
_.b.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.$U(this.hostElement).querySelector("#custom-amount-input").focus()};
_.b.updateConfirmationDialogTextWithAmount=function(O){var x=this.getConfirmDialogRuns();x&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(x),"text"],this.getFormattedAmount(O))};
_.b.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.b.getAmountPlaceholderIndex=function(O){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=O.findIndex(function(x){return x.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.b.getFormattedAmount=function(O){var x;return(new _.W1(4,((x=this.data)==null?void 0:x.currencyCode)||"")).format(O)};
_.b.isAmountValid=function(O){if(O==="")return!1;O=Number(O)*1E6;var x=this.get("minAmountMicros",this.data),e=this.get("maxAmountMicros",this.data);return x&&O<x||e&&O>e?!1:!0};
_.b.setInputError=function(){this.shouldShowValidationError?_.$U(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.$U(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.b.setInitialCheckboxValue=function(){var O;this.privacyCheckboxValue=!((O=this.data)==null||!O.privacyCheckboxInitialState)};
_.b.updateCustomAmountInputFromBinding=function(O){this.customAmountInput=O.detail.value};
_.b.updatePrivacyCheckboxValueFromBinding=function(O){this.privacyCheckboxValue=O.detail.value};
_.Dy.Object.defineProperties(F$.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var O=this,x,e;return((x=this.data)==null?void 0:(e=x.suggestedAmounts)==null?void 0:e.map(function(l,C){return{buttonRenderer:{style:O.selectedAmountIndex===C?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:l.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 O;return!((O=this.data)==null||!O.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 O=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(O&&this.amountMicros!==null)return Object.assign({},O,{ypcGetCartEndpoint:Object.assign({},O.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 O=this.get("confirmLargeAmount",this.data);if(O&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),O}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O=this.get("donateButton.buttonRenderer",this.data);if(O)return Object.assign({},O,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
F$.prototype.setInitialCheckboxValue=F$.prototype.setInitialCheckboxValue;F$.prototype.setInputError=F$.prototype.setInputError;F$.prototype.setFocusOnCustomAmountInput=F$.prototype.setFocusOnCustomAmountInput;_.B([_.V(lhL),_.v("design:type",Object)],F$.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],F$.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],F$.prototype,"closeLabel",void 0);_.B([_.R(),_.v("design:type",Object)],F$.prototype,"selectedAmountIndex",void 0);_.B([_.R(),_.v("design:type",String)],F$.prototype,"customAmountInput",void 0);_.B([_.R(),_.v("design:type",Object)],F$.prototype,"privacyCheckboxValue",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],F$.prototype,"useAmsterdamStyle",void 0);_.B([_.T1("customAmount"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],F$.prototype,"setFocusOnCustomAmountInput",null);_.B([_.p("data","selectedAmountIndex"),_.v("design:type",Array),_.v("design:paramtypes",[])],F$.prototype,"suggestedAmountButtons",null);
_.B([_.p("data","selectedAmountIndex"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],F$.prototype,"isCustomAmountSelected",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],F$.prototype,"showPrivacyCheckbox",null);_.B([_.p("data","selectedAmountIndex","customAmount"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"amountMicros",null);
_.B([_.p("isCustomAmountSelected","customAmountInput"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"customAmount",null);_.B([_.p("customAmount"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],F$.prototype,"shouldShowValidationError",null);_.B([_.p("customAmount"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],F$.prototype,"isDonateButtonEnabled",null);
_.B([_.p("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"donateCommand",null);_.B([_.p("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"donateCommandWithConfirmation",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"largeDonationThreshold",null);
_.B([_.p("customAmount","donateCommand","amountMicros"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"confirmLargeAmountCommand",null);_.B([_.p("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.v("design:type",Object),_.v("design:paramtypes",[])],F$.prototype,"donateButtonRenderer",null);_.B([_.T1("shouldShowValidationError"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],F$.prototype,"setInputError",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],F$.prototype,"setInitialCheckboxValue",null);_.B([_.H({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],F$);
_.n(F$,"ytd-donation-amount-picker-renderer",function(){if(OWQ!==void 0)return OWQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return OWQ=O},{mode:1});var evQ;var lpL=function(){return _.a.apply(this,arguments)||this};
_.c(lpL,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],lpL.prototype,"ytComponentBehavior",void 0);_.B([_.R({}),_.v("design:type",Object)],lpL.prototype,"data",void 0);_.B([_.H({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],lpL);
_.n(lpL,"ytd-donation-post-transaction-content",function(){if(evQ!==void 0)return evQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return evQ=O},{mode:1});var C3L;var X$=function(){return _.a.apply(this,arguments)||this};
_.c(X$,_.a);X$.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.B([_.R({}),_.v("design:type",Object)],X$.prototype,"data",void 0);_.B([_.H({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],X$);
_.n(X$,"ytd-donation-post-transaction-renderer",function(){if(C3L!==void 0)return C3L;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return C3L=O},{mode:1});var QWO;var bWT;var oN=function(){return _.a.apply(this,arguments)||this};
_.c(oN,_.a);oN.prototype.computeIsStreamingProvider=function(O){return!!O.isStreamingShelf};
oN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oN.prototype,"data",void 0);_.B([_.R({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],oN.prototype,"isStreamingProvider",void 0);
_.B([_.H({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],oN);
_.n(oN,"ytd-media-provider-renderer",function(){if(bWT!==void 0)return bWT;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return bWT=O},{mode:1});var TWL;var y2=function(){return _.a.apply(this,arguments)||this};
_.c(y2,_.a);y2.prototype.observeLightsourcePalette=function(){var O,x=(O=this.data)==null?void 0:O.vibrantsourceColorPaletteData;x&&_.Zl(this.hostElement,x)};
y2.prototype.observeLightsourcePalette=y2.prototype.observeLightsourcePalette;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],y2.prototype,"data",void 0);
_.B([_.T1("data.vibrantsourceColorPaletteData"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],y2.prototype,"observeLightsourcePalette",null);_.B([_.H({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],y2);
_.n(y2,"ytd-streaming-pop-up-dialog",function(){if(TWL!==void 0)return TWL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return TWL=O},{mode:1});var ZA=function(){return _.a.apply(this,arguments)||this};
_.c(ZA,_.a);ZA.prototype.onPopupOpened_=function(){var O;((O=this.data)==null?0:O.serviceEndpoint)&&_.GG().resolve(_.Xc).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ZA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
ZA.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"}}}}};
ZA.prototype.onPopupOpened_=ZA.prototype.onPopupOpened_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.LN),_.v("design:type",Object)],ZA.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ZA.prototype,"data",void 0);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ZA.prototype,"onPopupOpened_",null);_.B([_.H({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ZA);
_.n(ZA,"ytd-brandconnect-popup-renderer",function(){if(QWO!==void 0)return QWO;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return QWO=O},{mode:1});var L2O;var E3=function(){return _.a.apply(this,arguments)||this};
_.c(E3,_.a);_.b=E3.prototype;_.b.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.dataChanged=function(){for(var O=0;O<this.getOptionRenderers().length;O++)this.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+O+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.b.updateSubmitButton=function(O){this.set("data.submitButton.buttonRenderer.isDisabled",!O)};
_.b.computeAlt=function(O){return _.db(O)};
_.b.onDismissTap=function(){_.Sh(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.b.getOptionRenderers=function(O){return(O=O||this.data)&&O.options?O.options.reduce(function(x,e){e.checkboxSurveyOptionRenderer&&x.push(e.checkboxSurveyOptionRenderer);return x},[]):[]};
_.b.onOptionChange=function(O){var x=this,e=!1;if(O.detail.checked)for(var l=this.getOptionRenderers().find(function(k){return k.value===O.detail.value}),C=this.getOptionRenderers(),Q=0;Q<C.length;Q++){var L=C[Q];
this.notifyPath("data.options."+Q+".checkboxSurveyOptionRenderer.checked");L.checked&&((l==null?0:l.isExclusiveOption)?!L.isExclusiveOption:L.isExclusiveOption)?this.set("data.options."+Q+".checkboxSurveyOptionRenderer.checked",!1):L.checked&&(e=!0)}else e=this.getOptionRenderers().some(function(k,M){x.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");return k.checked});
this.updateSubmitButton(e)};
_.b.onSubmitTap=function(){var O=this.getOptionRenderers().filter(function(Q){return Q.checked});
if(O.length!==0){var x=O.map(function(Q){return Q.responseEndpoint});
O=[];for(var e=1;e<x.length;e++){var l=void 0,C=(l=_.q(x[e],_.Ee))==null?void 0:l.feedbackToken;C&&O.push(C)}x=[x[0]];O.length&&x.push({extra_feedback_tokens:O});_.N9(this.hostElement,x);_.Sh(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);O=this.data&&this.data.submitActions||[];if(_.t("kevlar_command_handler_migration_killswitch"))_.gr(this.hostElement,O,this.hostElement);else for(O=_.T(O),x=O.next();!x.done;x=O.next())this.ytComponentBehavior.resolveCommand(x.value)}};
E3.prototype.onOptionChange=E3.prototype.onOptionChange;E3.prototype.dataChanged=E3.prototype.dataChanged;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],E3.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.B([_.V(qXY),_.v("design:type",Object)],E3.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],E3.prototype,"data",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],E3.prototype,"dataChanged",null);
_.B([_.bH("ytd-checkbox-survey-option-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],E3.prototype,"onOptionChange",null);_.B([_.H({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],E3);
_.n(E3,"ytd-checkbox-survey-renderer",function(){if(L2O!==void 0)return L2O;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return L2O=O},{mode:1});var kEe;var A$h;var tK=function(){return _.a.apply(this,arguments)||this};
_.c(tK,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.B([_.V(tXp),_.v("design:type",Object)],tK.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],tK.prototype,"data",void 0);_.B([_.H({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],tK);
_.n(tK,"ytd-dismissal-reason-text-renderer",function(){if(A$h!==void 0)return A$h;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return A$h=O},{mode:1});var MTL;var qY=function(){return _.a.apply(this,arguments)||this};
_.c(qY,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.B([_.V(tXp),_.v("design:type",Object)],qY.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qY.prototype,"data",void 0);_.B([_.H({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],qY);
_.n(qY,"ytd-dismissal-reason-video-renderer",function(){if(MTL!==void 0)return MTL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return MTL=O},{mode:1});var P7=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(P7,_.a);_.b=P7.prototype;_.b.created=function(){this.selectedFeedbackTokens=new Us};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.b.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.b.onDismissalReasonSelected=function(O,x){_.wr(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(x);this.hasReasonsSelected=!0};
_.b.onDismissalReasonDeselected=function(O,x){_.wr(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(x);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.b.onCancelTap=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
_.b.onSubmitTap=function(){var O=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(O={feedback_tokens:O},_.GG().resolve(_.Xc).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},O,{element:this.hostElement})}));_.Sh(this.hostElement,"yt-close-popup-action")};
P7.prototype.onDismissalReasonDeselected=P7.prototype.onDismissalReasonDeselected;P7.prototype.onDismissalReasonSelected=P7.prototype.onDismissalReasonSelected;P7.prototype.dataChanged=P7.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],P7.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Boolean)],P7.prototype,"hasReasonsSelected",void 0);_.B([_.R(),_.v("design:type",Us)],P7.prototype,"selectedFeedbackTokens",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],P7.prototype,"darkerDarkTheme",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],P7.prototype,"dataChanged",null);
_.B([_.bH("yt-dismissal-reason-selected"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,String]),_.v("design:returntype")],P7.prototype,"onDismissalReasonSelected",null);_.B([_.bH("yt-dismissal-reason-deselected"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,String]),_.v("design:returntype")],P7.prototype,"onDismissalReasonDeselected",null);_.B([_.H({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],P7);
_.n(P7,"ytd-dismissal-follow-up-renderer",function(){if(kEe!==void 0)return kEe;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return kEe=O},{mode:1});var D2T;var c7=function(){return _.a.apply(this,arguments)||this};
_.c(c7,_.a);_.b=c7.prototype;_.b.onCheckedChange=function(){this.multiselect||_.wr(this.hostElement,"yt-feedback-single-select-changed");_.$U(this.hostElement).querySelector("#freeform").focus();_.wr(this.hostElement,"yt-refit")};
_.b.showTextBox=function(O,x){return O&&x};
_.b.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))};
_.b.updateDataCheckedFromBinding=function(O){this.set("data.checked",O.detail.value)};
_.b.updateDataResultTextFromBinding=function(O){this.set("data.resultText",O.detail.value)};
c7.prototype.dataChanged=c7.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c7.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],c7.prototype,"multiselect",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],c7.prototype,"dataChanged",null);
_.B([_.H({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],c7);
_.n(c7,"ytd-feedback-option-renderer",function(){if(D2T!==void 0)return D2T;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return D2T=O},{mode:1});var GEL;var RN=function(){return _.a.apply(this,arguments)||this};
_.c(RN,_.a);RN.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
RN.prototype.onSingleSelectCheckedChanged=function(O){O=_.uK(O);for(var x=0;x<this.data.options.length;x++)if(O.data!==_.q(this.data.options[x],hX4)){var e="data.options."+x+".feedbackOptionRenderer.checked";this.notifyPath(e);this.set(e,!1)}};
RN.prototype.onSingleSelectCheckedChanged=RN.prototype.onSingleSelectCheckedChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],RN.prototype,"data",void 0);
_.B([_.bH("yt-feedback-single-select-changed"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],RN.prototype,"onSingleSelectCheckedChanged",null);_.B([_.H({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],RN);
_.n(RN,"ytd-feedback-question-renderer",function(){if(GEL!==void 0)return GEL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GEL=O},{mode:1});var F2T;var U3=function(){return _.a.apply(this,arguments)||this};
_.c(U3,_.a);U3.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
U3.prototype.getSelectedFeedbackResults=function(){for(var O={},x=0;x<this.data.questions.length;x++)for(var e=_.q(this.data.questions[x],W0Q),l=0;l<e.options.length;l++){var C=_.q(e.options[l],hX4);C&&C.checked&&(O[C.optionKey]=C.resultText)}return O};
U3.prototype.onKeyUp=function(){var O=this;_.$0(_.vn,function(){_.wr(O.hostElement,"yt-refit")});
_.vn.start()};
U3.prototype.submitSurvey=function(){var O=this.getSelectedFeedbackResults();Object.keys(O).length>0&&this.data.submitFeedbackEndpoint&&(O={survey_results:O,is_feedback_token_unencrypted:!0},_.GG().resolve(_.Xc).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},O,{element:this.hostElement})}))};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],U3.prototype,"data",void 0);_.B([_.H({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],U3);
_.n(U3,"ytd-feedback-survey-renderer",function(){if(F2T!==void 0)return F2T;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return F2T=O},{mode:1});var X3Y;var oNh;var aN=function(){return _.a.apply(this,arguments)||this};
_.c(aN,_.a);aN.prototype.computeAlt=function(O){return _.db(O)};
aN.prototype.submitResponse=function(){var O,x;(O=this.data)!=null&&O.feedbackToken&&((x=this.data)==null?void 0:x.nextStageIndex)!==void 0&&(_.jh(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.jh(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
aN.prototype.onClick=function(){this.submitResponse()};
aN.prototype.onClick=aN.prototype.onClick;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],aN.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],aN.prototype,"vertical",void 0);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],aN.prototype,"onClick",null);
_.B([_.H({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],aN);
_.n(aN,"ytd-single-select-answer-option-renderer",function(){if(oNh!==void 0)return oNh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return oNh=O},{mode:1});var y$$;var mj=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return O};
_.c(mj,_.a);mj.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
mj.prototype.dataChanged=function(){var O,x;this.vertical=((x=(O=this.data)==null?void 0:O.answerOrientation)!=null?x:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
mj.prototype.submitFeedback=function(O){var x;((x=this.data)==null?0:x.responseEndpoint)&&O&&_.N9(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[O]}])};
mj.prototype.dataChanged=mj.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],mj.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],mj.prototype,"eventForwardingBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],mj.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],mj.prototype,"vertical",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],mj.prototype,"darkerDarkTheme",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],mj.prototype,"dataChanged",null);_.B([_.H({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],mj);
_.n(mj,"ytd-single-select-question-renderer",function(){if(y$$!==void 0)return y$$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return y$$=O},{mode:1});var s3=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return O};
_.c(s3,_.a);_.b=s3.prototype;_.b.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"}}}};
_.b.dataChanged=function(){this.jumpToStage(0)};
_.b.jumpToStage=function(O){var x,e;if((x=this.data)==null?0:(e=x.stages)==null?0:e[O])this.currentStage=this.data.stages[O],this.refitAfterRender()};
_.b.computeAlt=function(O){return _.db(O)};
_.b.computeSimpleMessage=function(O){var x;return(x=_.q(O,HgT))==null?void 0:x.messageText};
_.b.computeHideDismiss=function(O){var x;return(x=_.q(O,kdp))==null?void 0:x.hideParentDismissButton};
_.b.onDismissTap=function(){_.Sh(this.hostElement,"yt-close-popup-action");_.q(this.currentStage,HgT)||this.data.dismissalEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.b.refitAfterRender=function(){var O=this;_.A_(this,function(){_.wr(O.hostElement,"yt-refit")})};
s3.prototype.dataChanged=s3.prototype.dataChanged;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],s3.prototype,"eventForwardingBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],s3.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V(qXY),_.v("design:type",Object)],s3.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],s3.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],s3.prototype,"currentStage",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],s3.prototype,"dataChanged",null);_.B([_.H({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],s3);
_.n(s3,"ytd-multi-stage-survey-renderer",function(){if(X3Y!==void 0)return X3Y;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return X3Y=O},{mode:1});var ZWY;var W7=function(){return _.a.apply(this,arguments)||this};
_.c(W7,_.a);W7.prototype.computeAlt=function(O){return _.db(O)};
W7.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.GG().resolve(_.Xc).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Sh(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.IEO(!1)))};
W7.prototype.onTap=function(){this.vertical&&this.submitResponse()};
W7.prototype.onTap=W7.prototype.onTap;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],W7.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],W7.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],W7.prototype,"vertical",void 0);
_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],W7.prototype,"onTap",null);_.B([_.H({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],W7);
_.n(W7,"ytd-single-option-survey-option-renderer",function(){if(ZWY!==void 0)return ZWY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return ZWY=O},{mode:1});var ENL;var hK=function(){return _.a.apply(this,arguments)||this};
_.c(hK,_.a);_.b=hK.prototype;_.b.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.dataChanged=function(){var O,x;this.vertical=(((O=this.data)==null?void 0:(x=O.surveyOrientation)==null?void 0:x.type)||"HORIZONTAL")==="VERTICAL"};
_.b.computeAlt=function(O){return _.db(O)};
_.b.onDismissTap=function(){_.Sh(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GG().resolve(_.Xc).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.IEO(!1))};
hK.prototype.dataChanged=hK.prototype.dataChanged;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],hK.prototype,"eventForwardingBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(qXY),_.v("design:type",Object)],hK.prototype,"ytdHatsSurveyBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],hK.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hK.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],hK.prototype,"vertical",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],hK.prototype,"dataChanged",null);_.B([_.H({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],hK);
_.n(hK,"ytd-single-option-survey-renderer",function(){if(ENL!==void 0)return ENL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return ENL=O},{mode:1});var tT4;var zZ=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(zZ,_.a);zZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zZ.prototype.onDismissTap=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
zZ.prototype.onNavigate=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
zZ.prototype.onNavigate=zZ.prototype.onNavigate;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],zZ.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zZ.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],zZ.prototype,"darkerDarkTheme",void 0);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zZ.prototype,"onNavigate",null);_.B([_.H({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],zZ);
_.n(zZ,"ytd-survey-follow-up-renderer",function(){if(tT4!==void 0)return tT4;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return tT4=O},{mode:1});var qUL;var P3Q;var c$Q;var rn=function(){var O=_.a.apply(this,arguments)||this;O.polymer2="Element"in Polymer;return O};
_.c(rn,_.a);_.b=rn.prototype;_.b.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.b.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.b.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.b.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("minutes-changed",this.minutes))};
_.b.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("seconds-changed",this.seconds))};
_.b.updateMinutesFromBinding=function(O){this.minutes=O.detail.value};
_.b.updateSecondsFromBinding=function(O){this.seconds=O.detail.value};
rn.prototype.secondsChangedForBinding=rn.prototype.secondsChangedForBinding;rn.prototype.minutesChangedForBinding=rn.prototype.minutesChangedForBinding;rn.prototype.secondsChanged=rn.prototype.secondsChanged;_.B([_.R(),_.v("design:type",String)],rn.prototype,"minutes",void 0);_.B([_.R(),_.v("design:type",String)],rn.prototype,"seconds",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],rn.prototype,"polymer2",void 0);
_.B([_.kX("#seconds"),_.v("design:type",Object)],rn.prototype,"secondsEl",void 0);_.B([_.T1("seconds"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rn.prototype,"secondsChanged",null);_.B([_.T1("minutes"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rn.prototype,"minutesChangedForBinding",null);
_.B([_.T1("seconds"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],rn.prototype,"secondsChangedForBinding",null);_.B([_.Va({is:"yt-timestamp-input",disableElementRegistration:!0})],rn);
_.n(rn,"yt-timestamp-input",function(){if(c$Q===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;P3Q===void 0&&(P3Q=document.createElement("template"));var l=P3Q;e.call(x,l.content.cloneNode(!0),O.content.firstChild);c$Q=O}O=c$Q;return O},{mode:2});var H7=function(){return _.a.apply(this,arguments)||this};
_.c(H7,_.a);_.b=H7.prototype;_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20587_scroller.dialogElement=this.hostElement.parentNode};
_.b.dataChanged=function(){var O=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.JI().getPlayerPromise().then(function(x){x=x.getCurrentTime();O.minutes=Math.floor(x/60).toString();O.seconds=(Math.floor(x)%60).toString()})};
_.b.onTapSubmit=function(O){O.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(O={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(O.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(O.minutes=this.minutes,O.seconds=this.seconds),_.GG().resolve(_.Xc).resolveCommand(this.serviceEndpoint,{form:Object.assign({},O,{element:this.hostElement})}))};
_.b.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.b.onYtServiceRequestCompleted=function(O,x){x=x.actions;if(Array.isArray(x))for(var e=0,l=x.length;e<l;e++)_.q(x[e],_.aq)&&(O.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(x[e]))};
_.b.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.b.toggleSubmitButton=function(O){this.set("submitButton.isDisabled",!O)};
_.b.handleInput=function(){var O=this.issueType,x=this.affiliation,e=this.minutes,l=this.seconds;e=!this.showTimestamp||!!e&&!!l;this.toggleSubmitButton(!!this.descriptionText&&!!O&&!!x&&e)};
_.b.computeServiceEndpoint=function(O){return this.get("submitButton.buttonRenderer.serviceEndpoint",O)};
_.b.computeSubmitButton=function(O){(O=this.get("submitButton.buttonRenderer",O))&&(O=Object.assign({},O,{serviceEndpoint:void 0}));return O};
_.b.computeShowTimestamp=function(O){return!!O};
_.b.onValueChangedForIssueType=function(O){this.issueType=O.detail.value};
_.b.onValueChangedForAffiliation=function(O){this.affiliation=O.detail.value};
_.b.updateDescriptionTextFromBinding=function(O){this.descriptionText=O.detail.value};
_.b.updateFullNameTextFromBinding=function(O){this.fullNameText=O.detail.value};
_.b.updateMinutesFromBinding=function(O){this.minutes=O.detail.value};
_.b.updateSecondsFromBinding=function(O){this.seconds=O.detail.value};
H7.prototype.handleInput=H7.prototype.handleInput;H7.prototype.onYtServiceRequestError=H7.prototype.onYtServiceRequestError;H7.prototype.onYtServiceRequestCompleted=H7.prototype.onYtServiceRequestCompleted;H7.prototype.onYtServiceRequestSent=H7.prototype.onYtServiceRequestSent;H7.prototype.dataChanged=H7.prototype.dataChanged;_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],H7.prototype,"ytOpenPopupBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.B([_.kX("#scroller"),_.v("design:type",Object)],H7.prototype,"JSC$20587_scroller",void 0);_.B([_.kX("#description"),_.v("design:type",HTMLInputElement)],H7.prototype,"description",void 0);_.B([_.kX("#full-name"),_.v("design:type",Object)],H7.prototype,"fullName",void 0);_.B([_.R(),_.v("design:type",Object)],H7.prototype,"data",void 0);
_.B([_.R({computed:"computeShowTimestamp(data.timestampLabel)"}),_.v("design:type",Boolean)],H7.prototype,"showTimestamp",void 0);_.B([_.R({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.v("design:type",Object)],H7.prototype,"serviceEndpoint",void 0);_.B([_.R({computed:"computeSubmitButton(data)"}),_.v("design:type",Object)],H7.prototype,"submitButton",void 0);_.B([_.R(),_.v("design:type",String)],H7.prototype,"descriptionText",void 0);
_.B([_.R(),_.v("design:type",Number)],H7.prototype,"issueType",void 0);_.B([_.R(),_.v("design:type",Number)],H7.prototype,"affiliation",void 0);_.B([_.R(),_.v("design:type",String)],H7.prototype,"fullNameText",void 0);_.B([_.R(),_.v("design:type",String)],H7.prototype,"minutes",void 0);_.B([_.R(),_.v("design:type",String)],H7.prototype,"seconds",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H7.prototype,"dataChanged",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],H7.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],H7.prototype,"onYtServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],H7.prototype,"onYtServiceRequestError",null);_.B([_.T1("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H7.prototype,"handleInput",null);_.B([_.H({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],H7);
_.n(H7,"ytd-legal-report-details-form-renderer",function(){if(qUL!==void 0)return qUL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return qUL=O},{mode:1});var Ipu;var KR=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return O};
_.c(KR,_.a);KR.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
KR.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var O=this.formRenderer.getForm();O&&this.data.submitEndpoint&&(_.GG().resolve(_.Xc).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},O,{element:this.hostElement})}),_.Sh(this.hostElement,"yt-close-popup-action"))}};
KR.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Sh(this.hostElement,"yt-close-popup-action"))};
KR.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
KR.prototype.onPopupClosed=KR.prototype.onPopupClosed;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],KR.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],KR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);
_.B([_.kX("yt-form-renderer"),_.v("design:type",Object)],KR.prototype,"formRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],KR.prototype,"data",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],KR.prototype,"onPopupClosed",null);_.B([_.H({is:"ytd-form-popup-content",disableElementRegistration:!0})],KR);
_.n(KR,"ytd-form-popup-content",function(){if(Ipu!==void 0)return Ipu;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Ipu=O},{mode:1});var VTu;var dn=function(){return _.a.apply(this,arguments)||this};
_.c(dn,_.a);dn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dn.prototype.onPopupOpened=function(){_.wr(this.hostElement,"yt-invalidate-popup-tabbables")};
dn.prototype.onYtServiceRequestCompleted=function(O,x){x.data&&x.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.wr(this.hostElement,"yt-invalidate-popup-tabbables"))};
dn.prototype.onYtServiceRequestCompleted=dn.prototype.onYtServiceRequestCompleted;dn.prototype.onPopupOpened=dn.prototype.onPopupOpened;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],dn.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],dn.prototype,"data",void 0);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],dn.prototype,"onPopupOpened",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],dn.prototype,"onYtServiceRequestCompleted",null);_.B([_.H({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],dn);
_.n(dn,"ytd-form-popup-renderer",function(){if(VTu!==void 0)return VTu;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return VTu=O},{mode:1});var p3O;var nR=function(){var O=_.a.apply(this,arguments)||this;O.isLoading=!1;return O};
_.c(nR,_.a);_.b=nR.prototype;_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Hsw(this.hostElement)};
_.b.onYtServiceRequestSent=function(){this.isLoading=!0};
_.b.onYtServiceRequestCompleted=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.b.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.gr(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.b.closePopupHandler=function(){this.fireOnCloseActions()};
_.b.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var O=this.get("data.headerImage.thumbnails");O&&(O=_.Sf(O,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+O+")")}};
_.b.onYtNavigate=function(O){(O=_.uK(O))&&O.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
nR.prototype.onYtNavigate=nR.prototype.onYtNavigate;nR.prototype.onHeaderImageChanged=nR.prototype.onHeaderImageChanged;nR.prototype.closePopupHandler=nR.prototype.closePopupHandler;nR.prototype.onYtServiceRequestCompleted=nR.prototype.onYtServiceRequestCompleted;nR.prototype.onYtServiceRequestSent=nR.prototype.onYtServiceRequestSent;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],nR.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],nR.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],nR.prototype,"isLoading",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLDivElement)],nR.prototype,"header",void 0);_.B([_.kX("#confirm-button"),_.v("design:type",_.u4)],nR.prototype,"confirmButton",void 0);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],nR.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],nR.prototype,"onYtServiceRequestCompleted",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],nR.prototype,"closePopupHandler",null);_.B([_.T1("data.headerImage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],nR.prototype,"onHeaderImageChanged",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],nR.prototype,"onYtNavigate",null);
_.B([_.H({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],nR);
_.n(nR,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(p3O!==void 0)return p3O;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return p3O=O},{mode:1});var RvT;var uy=function(){var O=_.a.apply(this,arguments)||this;O.isLoading=!1;return O};
_.c(uy,_.a);_.b=uy.prototype;_.b.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"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Hsw(this.hostElement)};
_.b.onYtServiceRequestCompleted=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.b.onYtServiceRequestError=function(O){_.s9(this.hostElement,O.detail.error.message)};
_.b.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.b.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Sh(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.b.onDataChanged=function(){this.isLoading=!1;var O=this.get("data.headerImage.thumbnails");O&&(O=_.Sf(O,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+O+")");O=_.Pq();var x=_.q9(),e=this.get("data.trackingParams");e&&x&&O&&_.WU(O,x,_.Fv(e))};
_.Dy.Object.defineProperties(uy.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
uy.prototype.onDataChanged=uy.prototype.onDataChanged;uy.prototype.onDomChange=uy.prototype.onDomChange;uy.prototype.onYtServiceRequestError=uy.prototype.onYtServiceRequestError;uy.prototype.onYtServiceRequestCompleted=uy.prototype.onYtServiceRequestCompleted;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],uy.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],uy.prototype,"isLoading",void 0);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],uy.prototype,"hasDescription",null);_.B([_.kX("tp-yt-paper-dialog-scrollable"),_.v("design:type",Object)],uy.prototype,"scrollable",void 0);_.B([_.kX("#header"),_.v("design:type",HTMLElement)],uy.prototype,"header",void 0);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uy.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uy.prototype,"onYtServiceRequestError",null);
_.B([_.bH("dom-change"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],uy.prototype,"onDomChange",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],uy.prototype,"onDataChanged",null);_.B([_.H({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],uy);
_.n(uy,"ytd-gaming-account-link-setting-renderer",function(){if(RvT!==void 0)return RvT;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return RvT=O},{mode:1});var U2h;var apL;var YM=function(){var O=_.a.apply(this,arguments)||this;O.isHeader=!1;O.getEndpointForm=function(){return IrX(O.data)};
return O};
_.c(YM,_.a);_.b=YM.prototype;_.b.triggerHintActions=function(){var O=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var x=_.jh(O.hostElement,"yt-get-opened-popups-action");!(x&&x.length===1?x[0]:[]).some(function(e){e=e.openPopupAction.popupType;return e==="SURVEY"||e==="MEALBAR"||e==="HINT"})&&O.data.hintActions&&O.guideOpened&&(_.gr(O.hostElement,O.data.hintActions,O.hostElement),O.data.hintActions=void 0)})};
_.b.getBadgeIconType=function(O){return O&&O.liveBroadcasting?"live":null};
_.b.onDown=function(){this.interaction.triggerDown()};
_.b.onUp=function(){this.interaction.triggerUp()};
_.b.onTap=function(O){if(this.data.serviceEndpoint){var x;_.t("shorts_controller_retrieve_seedless_sequence_v2")&&((x=_.q(this.data.serviceEndpoint,_.kU))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ctT(this.data.serviceEndpoint,this);O.preventDefault()}else this.data.navigationEndpoint&&!_.uk(_.n3(O),this.hostElement,["A".toString()])&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.b.computeActive=function(O,x){if(!O)return!1;var e=O.navigationEndpoint;O=O.serviceEndpoint;if(!e&&!O||!x)return!1;if(e){O=(O=_.C3(x))&&["subscriptions","filteredsubscriptions"].includes(O);if(_.q(e,_.Q9)&&_.q(x,_.Q9)&&!O){var l=_.q(e,_.Q9).browseId;x=_.q(x,_.Q9).browseId;return l!==void 0&&x!==void 0&&(l===x||l==="VLWL"&&x==="FEwatch_later"||l==="FEwatch_later"&&x==="VLWL")}var C;e=(C=_.q(e.commandMetadata,_.e6))==null?void 0:C.url;x=(l=_.q(x.commandMetadata,_.e6))==null?void 0:l.url;return!(!e||
!x||e!==x&&e!==_.VF(x))}return this.isActiveShortsTab(O,x)};
_.b.isActiveShortsTab=function(O,x){x=!!_.q(x,_.kU)||!!_.q(x,_.fY);return(!!_.q(O,_.kU)||!!_.q(O,_.fY))&&x};
_.b.computeIsPrimary=function(O){return!!O};
_.Dy.Object.defineProperties(YM.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 O=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&O)return O}}});
YM.prototype.onTap=YM.prototype.onTap;YM.prototype.onUp=YM.prototype.onUp;YM.prototype.onDown=YM.prototype.onDown;YM.prototype.triggerHintActions=YM.prototype.triggerHintActions;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],YM.prototype,"componentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],YM.prototype,"rendererBehavior",void 0);_.B([_.V(_.GT.YtTaskEmitterBehavior),_.v("design:type",Object)],YM.prototype,"taskEmitterBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],YM.prototype,"activeEndpoint",void 0);_.B([_.R(),_.v("design:type",Object)],YM.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],YM.prototype,"guideOpened",void 0);_.B([_.R(),_.v("design:type",String)],YM.prototype,"type",void 0);_.B([_.kX("yt-interaction"),_.v("design:type",Object)],YM.prototype,"interaction",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],YM.prototype,"isHeader",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data","activeEndpoint"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],YM.prototype,"active",null);_.B([_.R({reflectToAttribute:!0}),_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],YM.prototype,"isPrimary",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.count","data.presentationStyle","data.badges.*"),_.v("design:type",String),_.v("design:paramtypes",[])],YM.prototype,"lineEndStyle",null);
_.B([_.p("lineEndStyle"),_.v("design:type",Object),_.v("design:paramtypes",[])],YM.prototype,"ariaLabel",null);_.B([_.T1("data.hintActions","guideOpened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YM.prototype,"triggerHintActions",null);_.B([_.bH("down"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YM.prototype,"onDown",null);
_.B([_.bH("up"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],YM.prototype,"onUp",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],YM.prototype,"onTap",null);_.B([_.H({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],YM);
_.n(YM,"ytd-guide-entry-renderer",function(){if(apL!==void 0)return apL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return apL=O},{mode:1});var B7=function(){var O=_.a.apply(this,arguments)||this;O.userToggled=!1;return O};
_.c(B7,_.a);_.b=B7.prototype;_.b.getItemsPath=function(){return"data.expandableItems"};
_.b.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.b.onExpanderItemTapped=function(O){var x=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.t("kevlar_guide_expandable_items_killswitch")&&_.A_(this,function(){_.bU(x.expandableItems)});
O.preventDefault()};
_.b.onCollapserItemTapped=function(O){var x=this;this._setExpanded(!1);this.userToggled=!0;O.preventDefault();this.expandableItems&&!_.t("kevlar_guide_collapsible_items_killswitch")&&_.A_(this,function(){_.QQ(x.hostElement)})};
_.b.observeActiveEndpoint=function(){for(var O=this.activeEndpoint,x=this.data,e=this.expandableItems.children,l=0,C=e.length;l<C;l++)e[l].activeEndpoint=O;x&&x.autoExpandCommand&&O&&!this.userToggled&&(e=this.data.autoExpandCommand,x=!(!_.q(e,_.Q9)||!_.q(O,_.Q9)||_.q(e,_.Q9).browseId!==_.q(O,_.Q9).browseId),O=this.get("commandMetadata.webCommandMetadata.url",O),e=this.get("commandMetadata.webCommandMetadata.url",e),x=x||!!(O&&e&&O.includes(e)),this._setExpanded(x),x&&this.ytLazyListBehavior.fillRemainingListItems())};
B7.prototype.observeActiveEndpoint=B7.prototype.observeActiveEndpoint;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],B7.prototype,"ytLazyListBehavior",void 0);_.B([_.kX("#expandable-items"),_.v("design:type",HTMLElement)],B7.prototype,"expandableItems",void 0);
_.B([_.R(),_.v("design:type",Object)],B7.prototype,"data",void 0);_.B([_.R({readOnly:!0,reflectToAttribute:!0}),_.v("design:type",Boolean)],B7.prototype,"expanded",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],B7.prototype,"initialCount",void 0);_.B([_.R(),_.v("design:type",Object)],B7.prototype,"activeEndpoint",void 0);_.B([_.T1("data","activeEndpoint","canShowMore"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B7.prototype,"observeActiveEndpoint",null);
_.B([_.H({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],B7);
_.n(B7,"ytd-guide-collapsible-entry-renderer",function(){if(U2h!==void 0)return U2h;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return U2h=O},{mode:_.gq("kevlar_poly_si_batch_j079")?1:2});var m2h;var sWX;var v7=function(){var O=_.a.apply(this,arguments)||this;O.allVideosCount=0;O.renderGuideEntry=!1;return O};
_.c(v7,_.a);v7.prototype.observeRenderEntry=function(){var O;this.renderGuideEntry=!((O=this.data)==null||!O.alwaysShow)||!!this.allVideosCount};
v7.prototype.observeRenderEntry=v7.prototype.observeRenderEntry;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],v7.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],v7.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],v7.prototype,"activeEndpoint",void 0);_.B([_.R({selector:_.KP8}),_.v("design:type",Object)],v7.prototype,"allVideosCount",void 0);
_.B([_.R(),_.v("design:type",Object)],v7.prototype,"renderGuideEntry",void 0);_.B([_.G1("allVideosCount","data.alwaysShow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],v7.prototype,"observeRenderEntry",null);_.B([_.H({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],v7);
_.n(v7,"ytd-guide-downloads-entry-renderer",function(){if(sWX===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);sWX=O}O=sWX;return O},{mode:1});var fR=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return O};
_.c(fR,_.a);_.b=fR.prototype;_.b.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]]"}}}}}};
_.b.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var O=this.sectionItems.children,x=0,e=O.length;x<e;x++)O[x].activeEndpoint=this.activeEndpoint}};
_.b.handleAddToGuideSectionAction=function(O){var x=_.q(O,izY);if(x&&this.data&&(O=x.items,x=x.handlerData,O&&x&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(x)>-1)){x=0;for(var e=O.length;x<e;x++)O[x].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,O[x])}};
_.b.handleRemoveFromGuideSectionAction=function(O){var x=_.q(O,OgL);x&&this.data&&(O=x.guideEntryId,x=x.handlerData,O&&x&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(x)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(O,this.data.sectionItems),this.removeFromCollapsedSection(O,this.data.sectionItems)))};
_.b.removeFromExpandedSection=function(O,x){O=this.getEntryIndexMatchingId(O,x);O!==-1&&this.splice("data.sectionItems",O,1)};
_.b.removeFromCollapsedSection=function(O,x){var e=x.findIndex(function(l){return!!_.q(l,o64)});
e&&e!==-1&&x[e]&&_.q(x[e],o64)&&(x=_.q(x[e],o64).expandableItems)&&(O=this.getEntryIndexMatchingId(O,x),O!==-1&&this.splice("data.sectionItems."+e+".guideCollapsibleEntryRenderer.expandableItems",O,1))};
_.b.getEntryIndexMatchingId=function(O,x){var e=this;return x.findIndex(function(l){return e.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",l)===O})};
fR.prototype.activeEndpointChanged=fR.prototype.activeEndpointChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],fR.prototype,"actionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#section-items"),_.v("design:type",HTMLDivElement)],fR.prototype,"sectionItems",void 0);
_.B([_.kX("#header-entry"),_.v("design:type",Object)],fR.prototype,"headerEntry",void 0);_.B([_.R(),_.v("design:type",Object)],fR.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],fR.prototype,"activeEndpoint",void 0);_.B([_.T1("activeEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],fR.prototype,"activeEndpointChanged",null);_.B([_.H({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],fR);
_.n(fR,"ytd-guide-collapsible-section-entry-renderer",function(){if(m2h===void 0){var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);m2h=O}O=m2h;return O},{mode:1});var W24;var hvL;var JK=function(){var O=_.a.apply(this,arguments)||this;O.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 O};
_.c(JK,_.a);_.b=JK.prototype;
_.b.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}}}}};
_.b.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var O=_.jh(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);O&&O.length===1&&O[0]&&_.jh(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.b.handleResetChannelUnreadCountCommand=function(O){var x;(O=(x=_.q(O,eXT))==null?void 0:x.channelId)&&this.data&&this.data.items&&(x=this.getPathToEntryMatchingId(O))&&(this.set(x+".guideEntryRenderer.count",0),this.set(x+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.b.handleResetSubscriptionsUnreadDotCommand=function(O){var x,e=(x=_.q(O,lZe))==null?void 0:x.targetId,l;e&&(l=this.data)!=null&&l.items&&(O=this.data.items.findIndex(function(C){var Q;return((Q=C.guideEntryRenderer)==null?void 0:Q.targetId)===e}),O<0||this.set("data.items."+O+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.b.getPathToEntryMatchingId=function(O){if(this.data&&this.data.items){var x=this.getEntryIndexMatchingId(O,this.data.items);if(x>-1)return"data.items."+x;for(var e=0;e<this.data.items.length;e++)if(x=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[e]))if(x=this.getEntryIndexMatchingId(O,x),x>-1)return"data.items."+e+".guideCollapsibleEntryRenderer.expandableItems."+x}};
_.b.handleAddToGuideSectionAction=function(O){var x=this;if(_.q(O,izY)){var e=_.q(O,izY).items;O=_.q(O,izY).handlerData;var l,C;if(e&&O&&((l=this.data)==null?void 0:(C=l.handlerDatas)==null?void 0:C.indexOf(O))>-1){e=e.filter(function(L){return(L=x.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",L))&&!x.isGuideItemPresent(L)});
var Q;if(O==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((Q=this.data)==null?0:Q.items)&&(l=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),l>-1)){this.splice.apply(this,["data.items",l+1,0].concat(_.Kx(e)));return}this.unshift.apply(this,["data.items"].concat(_.Kx(e)))}}};
_.b.isGuideItemPresent=function(O){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(O,this.data.items)!==-1)return!0;var x=this.data.items.find(function(e){return!!e.guideCollapsibleEntryRenderer});
if((x==null?0:x.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(O,x.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.b.getEntryIndexMatchingId=function(O,x){var e=this;return x.findIndex(function(l){return e.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",l)===O})};
_.b.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(O,x){var e=this;return x.findIndex(function(l){return e.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",l)===O})};
_.b.handleRemoveFromGuideSectionAction=function(O){if(_.q(O,OgL)){var x=_.q(O,OgL).guideEntryId;O=_.q(O,OgL).handlerData;var e,l;x&&O&&((e=this.data)==null?void 0:(l=e.handlerDatas)==null?void 0:l.indexOf(O))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(x,this.data.items),this.removeFromCollapsedSection(x,this.data.items))}};
_.b.removeFromExpandedSection=function(O,x){O=this.getEntryIndexMatchingId(O,x);O!==-1&&this.splice("data.items",O,1)};
_.b.removeFromCollapsedSection=function(O,x){var e=x.findIndex(function(l){return!!l.guideCollapsibleEntryRenderer});
e!==-1&&(x=x[e].guideCollapsibleEntryRenderer.expandableItems)&&(O=this.getEntryIndexMatchingId(O,x),O!==-1&&this.splice("data.items."+e+".guideCollapsibleEntryRenderer.expandableItems",O,1))};
_.b.activeEndpointChanged=function(){for(var O=_.$U(this.hostElement).querySelector("#items").children,x=0,e=O.length;x<e;x++)O[x].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.b.guideOpenedChanged=function(){for(var O=_.$U(this.hostElement).querySelector("#items").children,x=0,e=O.length;x<e;x++)O[x].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
JK.prototype.guideOpenedChanged=JK.prototype.guideOpenedChanged;JK.prototype.activeEndpointChanged=JK.prototype.activeEndpointChanged;JK.prototype.persistentGuideChanged=JK.prototype.persistentGuideChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],JK.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],JK.prototype,"ytLazyListBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],JK.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JK.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",String)],JK.prototype,"type",void 0);_.B([_.R({value:20}),_.v("design:type",Number)],JK.prototype,"initialCount",void 0);_.B([_.R({value:10}),_.v("design:type",Number)],JK.prototype,"targetFramerate",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],JK.prototype,"autoFill",void 0);_.B([_.R({value:50}),_.v("design:type",Number)],JK.prototype,"renderDelay",void 0);
_.B([_.T1("guidePersistentAndVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JK.prototype,"persistentGuideChanged",null);_.B([_.G1("activeEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JK.prototype,"activeEndpointChanged",null);_.B([_.G1("guideOpened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JK.prototype,"guideOpenedChanged",null);
_.B([_.H({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],JK);
_.n(JK,"ytd-guide-section-renderer",function(){if(hvL!==void 0)return hvL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return hvL=O},{mode:_.gq("kevlar_poly_si_batch_j073")?1:2});var zvL;var wn=function(){return _.a.apply(this,arguments)||this};
_.c(wn,_.a);_.Dy.Object.defineProperties(wn.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],wn.prototype,"rendererBehaviors",void 0);_.B([_.R(),_.v("design:type",Object)],wn.prototype,"data",void 0);_.B([_.R(),_.p("data.signInButton.buttonRenderer.style"),_.v("design:type",Object),_.v("design:paramtypes",[])],wn.prototype,"alignByText",null);_.B([_.H({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],wn);
_.n(wn,"ytd-guide-signin-promo-renderer",function(){if(zvL===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);zvL=O}O=zvL;return O},{mode:1});var S0=function(){var O=_.a.apply(this,arguments)||this;O.showFooter=!1;return O};
_.c(S0,_.a);S0.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}}}}};
S0.prototype.attached=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1){x=_.GG().resolve(_.D0(_.Cj));if(!x)return e.jumpTo(0);x.setGuideData(O.hostElement);return e.yield(0,3)}O.ytLazyListBehavior.initialCount=2;return e.return()})};
S0.prototype.onMouseExit=function(){_.t("web_guide_hover_expansion")&&_.jh(this.hostElement,"yt-guide-mouseleaved",[])};
S0.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
S0.prototype.dataChanged=S0.prototype.dataChanged;S0.prototype.onMouseExit=S0.prototype.onMouseExit;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],S0.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.tT.YtLazyListBehavior),_.v("design:type",Object)],S0.prototype,"ytLazyListBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],S0.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],S0.prototype,"showFooter",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],S0.prototype,"autoFill",void 0);_.B([_.bH("mouseleave"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],S0.prototype,"onMouseExit",null);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],S0.prototype,"dataChanged",null);_.B([_.H({is:"ytd-guide-renderer",disableElementRegistration:!0})],S0);
_.n(S0,"ytd-guide-renderer",function(){if(W24!==void 0)return W24;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return W24=O},{mode:_.gq("kevlar_poly_si_batch_j073")?1:2});var r$L;var j0=function(){var O=_.a.apply(this,arguments)||this;O.systemIcons=_.t("kevlar_system_icons");O.frostedGlass=_.t("web_frosted_glass");O.getEndpointForm=function(){return IrX(O.data)};
return O};
_.c(j0,_.a);_.b=j0.prototype;_.b.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.b.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.db(this.data.formattedTitle))};
_.b.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.b.onDown=function(){this.interaction.triggerDown()};
_.b.onUp=function(){this.interaction.triggerUp()};
_.b.onTap=function(O){if(this.data.serviceEndpoint){var x;_.t("shorts_controller_retrieve_seedless_sequence_v2")&&((x=_.q(this.data.serviceEndpoint,_.kU))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):ctT(this.data.serviceEndpoint,this);O.preventDefault()}else{var e;((e=this.data)==null?0:e.navigationEndpoint)&&!_.uk(_.n3(O),this.hostElement,["A".toString()])&&_.wr(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.b.computeActive=function(O,x){if(!O)return!1;var e=O.navigationEndpoint;O=O.serviceEndpoint;if(!e&&!O||!x)return!1;if(e){O=_.q(e,_.Q9);var l=_.q(x,_.Q9);if(O&&l)return O.browseId===l.browseId&&O.params===l.params;var C;e=(C=_.q(e.commandMetadata,_.e6))==null?void 0:C.url;var Q;x=(Q=_.q(x.commandMetadata,_.e6))==null?void 0:Q.url;return!(!e||!x||e!==x&&e!==_.VF(x))}return this.isActiveShortsTab(O,x)};
_.b.isActiveShortsTab=function(O,x){x=!!_.q(x,_.kU)||!!_.q(x,_.fY);return(!!_.q(O,_.kU)||!!_.q(O,_.fY))&&x};
_.b.computeTitle=function(O,x){return x?"":_.db(O)};
_.Dy.Object.defineProperties(j0.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
j0.prototype.onTap=j0.prototype.onTap;j0.prototype.onUp=j0.prototype.onUp;j0.prototype.onDown=j0.prototype.onDown;j0.prototype.onActiveStateChange=j0.prototype.onActiveStateChange;j0.prototype.dataChanged=j0.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],j0.prototype,"ytComponentBehavior",void 0);
_.B([_.V(_.zk),_.v("design:type",Object)],j0.prototype,"ironButtonState",void 0);_.B([_.R(),_.v("design:type",Object)],j0.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],j0.prototype,"activeEndpoint",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],j0.prototype,"noLabels",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.v("design:type",Boolean)],j0.prototype,"isActive",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],j0.prototype,"systemIcons",void 0);_.B([_.kX("yt-interaction"),_.v("design:type",Object)],j0.prototype,"interaction",void 0);_.B([_.p("isActive"),_.v("design:type",Object),_.v("design:paramtypes",[])],j0.prototype,"ariaSelected",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],j0.prototype,"frostedGlass",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],j0.prototype,"dataChanged",null);_.B([_.T1("isActive"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],j0.prototype,"onActiveStateChange",null);_.B([_.bH("down"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],j0.prototype,"onDown",null);
_.B([_.bH("up"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],j0.prototype,"onUp",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],j0.prototype,"onTap",null);_.B([_.H({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],j0);
_.n(j0,"ytd-mini-guide-entry-renderer",function(){if(r$L!==void 0)return r$L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return r$L=O},{mode:_.gq("kevlar_poly_si_batch_j063")?1:2});var HWQ;var NY=function(){var O=_.a.apply(this,arguments)||this;O.allVideosCount=0;O.noLabels=_.t("kevlar_mini_guide_no_labels")||_.t("kevlar_modern_mini_guide");O.frostedGlass=_.t("web_frosted_glass");return O};
_.c(NY,_.a);_.b=NY.prototype;_.b.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.b.onMouseEnter=function(){_.t("web_guide_hover_expansion")&&_.jh(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.b.visibleChanged=function(){if(this.visible&&!this.data){var O=_.GG().resolve(_.D0(_.Cj));O&&O.setGuideData(this.hostElement)}};
_.b.dataChanged=function(){var O=_.t("kevlar_modern_mini_guide"),x;var e=(x=this.data)==null?void 0:x.items;x=this.allVideosCount;var l=[];if(e){for(var C=[],Q=_.T(e),L=Q.next();!L.done;L=Q.next())if(L=L.value,L.guideSubscriptionsSectionRenderer){var k=void 0;C=((k=L.guideSubscriptionsSectionRenderer)==null?void 0:k.items)||[]}e=_.T(e);for(Q=e.next();!Q.done;Q=e.next())if(Q=Q.value,L=void 0,(L=Q.guideSectionRenderer)==null?0:L.items)for(L=void 0,Q=_.T((L=Q.guideSectionRenderer)==null?void 0:L.items),
L=Q.next();!L.done;L=Q.next()){L=L.value;var M=void 0,G=void 0;k=L.guideEntryRenderer||_.q((M=L)==null?void 0:(G=M.guideCollapsibleSectionEntryRenderer)==null?void 0:G.headerEntry,V1p);M=[];G=[];var X=void 0;if(((X=k)==null?void 0:X.targetId)==="subscriptions-guide-item")M=C;else{var y=X=void 0;if((X=L)==null?0:(y=X.guideCollapsibleSectionEntryRenderer)==null?0:y.sectionItems)G=M=L.guideCollapsibleSectionEntryRenderer.sectionItems}pNQ(l,k,O?M:[]);if(G.length>0)for(L=_.T(G),k=L.next();!k.done;k=L.next())k=
k.value,G=_.q(k,yXO),M=void 0,G=G&&(G.alwaysShow||x)?_.q((M=G)==null?void 0:M.entryRenderer,V1p):_.q(k,V1p),pNQ(l,G,[])}}this.miniGuideItems=l};
_.b.activeEndpointChanged=function(){for(var O=this.items.children,x=0;x<O.length;x++)O[x].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.b.registerWithViewTransitionManager=function(){var O=this;_.zl(_.vn,function(){var x=_.GG().resolve(_.D0(_.r9));if(x&&x.isAnyTransitionEnabled){var e={};x.viewTransitionCoordinator.registerElement(O.hostElement,(e.slide="mini-guide-page-transition",e))}})};
NY.prototype.activeEndpointChanged=NY.prototype.activeEndpointChanged;NY.prototype.dataChanged=NY.prototype.dataChanged;NY.prototype.visibleChanged=NY.prototype.visibleChanged;NY.prototype.onMouseEnter=NY.prototype.onMouseEnter;_.B([_.V(_.$5),_.v("design:type",Object)],NY.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],NY.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],NY.prototype,"ytComponentBehavior",void 0);_.B([_.kX("#items"),_.v("design:type",Object)],NY.prototype,"items",void 0);_.B([_.R(),_.v("design:type",Object)],NY.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Boolean)],NY.prototype,"visible",void 0);_.B([_.R(),_.v("design:type",Object)],NY.prototype,"miniGuideItems",void 0);_.B([_.R({selector:_.KP8}),_.v("design:type",Object)],NY.prototype,"allVideosCount",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NY.prototype,"noLabels",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NY.prototype,"frostedGlass",void 0);
_.B([_.bH("mouseenter"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NY.prototype,"onMouseEnter",null);_.B([_.G1("visible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NY.prototype,"visibleChanged",null);_.B([_.G1("data","allVideosCount"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NY.prototype,"dataChanged",null);
_.B([_.G1("activeEndpoint"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NY.prototype,"activeEndpointChanged",null);_.B([_.H({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],NY);
_.n(NY,"ytd-mini-guide-renderer",function(){if(HWQ===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);HWQ=O}O=HWQ;return O},{mode:1});var K2p;var d2w=/^[\x00-\x7F]+$/,gn=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(gn,_.a);_.Dy.Object.defineProperties(gn.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var O,x=_.db((O=this.data)==null?void 0:O.handle);if(x)return _.KA("@"+x)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var O=_.db(this.displayHandle),x,e=_.db((x=this.data)==null?void 0:x.handleUrl);if(O&&e)return _.KA(e+O)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var O=_.db(this.displayHandle);if(O&&!d2w.test(O)){var x;return(x=this.data)==null?void 0:x.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var O=_.db(this.displayHandleUrl),x,e=_.db((x=this.data)==null?void 0:x.urlInfoText);if(O&&e)return _.KA(e+" "+O)}}});
_.B([_.R(),_.v("design:type",Object)],gn.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],gn.prototype,"displayHandle",null);_.B([_.p("displayHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],gn.prototype,"displayHandleUrl",null);_.B([_.p("displayHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],gn.prototype,"warningText",null);
_.B([_.p("displayHandleUrl"),_.v("design:type",Object),_.v("design:paramtypes",[])],gn.prototype,"urlInfoTextWithUrl",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],gn.prototype,"darkerDarkTheme",void 0);_.B([_.H({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],gn);
_.n(gn,"ytd-handles-claiming-confirm-dialog-content",function(){if(K2p!==void 0)return K2p;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return K2p=O},{mode:1});var nNL;var $M=function(){var O=_.a.apply(this,arguments)||this;O.okButtonOverride={style:"mono",type:"outline",size:"M"};return O};
_.c($M,_.a);$M.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$M.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$M.prototype,"okButtonOverride",void 0);_.B([_.R(),_.v("design:type",Object)],$M.prototype,"data",void 0);_.B([_.H({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],$M);
_.n($M,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(nNL!==void 0)return nNL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return nNL=O},{mode:1});var uSQ;var YU$=/^[\x00-\x7F]+$/,iy=function(){var O=_.a.apply(this,arguments)||this;O.isLoading=!1;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(iy,_.a);iy.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var O;this.selectedHandle=(O=this.handleInput)==null?void 0:O.value;this.onSelectedHandleChanged(this.selectedHandle);_.jh(this.hostElement,"yt-refit-popups-action")}};
_.Dy.Object.defineProperties(iy.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.KA("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.KA(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!YU$.test(this.selectedHandle)){var O;return(O=this.data)==null?void 0:O.warningText}}}});
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],iy.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],iy.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],iy.prototype,"selectedHandle",void 0);_.B([_.R(),_.v("design:type",Object)],iy.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Function)],iy.prototype,"onSelectedHandleChanged",void 0);_.B([_.kX("#channel-handle-input"),_.v("design:type",Object)],iy.prototype,"handleInput",void 0);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],iy.prototype,"handleUrlPrefix",null);_.B([_.p("selectedHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],iy.prototype,"displayHandle",null);_.B([_.p("selectedHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],iy.prototype,"displayHandleUrl",null);_.B([_.p("selectedHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],iy.prototype,"warningText",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],iy.prototype,"darkerDarkTheme",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.B([_.H({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],iy);
_.n(iy,"ytd-handles-claiming-edit-dialog-content",function(){if(uSQ!==void 0)return uSQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return uSQ=O},{mode:1});var BW$;var Ok=function(){var O=_.a.apply(this,arguments)||this;O.actionButtonOverride={style:"mono",type:"filled",size:"M"};O.cancelButtonOverride={style:"mono",type:"text",size:"M"};O.selectButtonDisabled=!1;O.isLoading=!1;O.hasSelectedHandleEventListener=!1;O.selectedHandleChanged=function(x){O.selectedHandle=x};
return O};
_.c(Ok,_.a);_.b=Ok.prototype;_.b.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.b.onDataChanged=function(){var O,x;this.selectedHandle=(x=_.q((O=this.data)==null?void 0:O.inputField,SqO))==null?void 0:x.handle};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.onCancel=function(){this.selectedHandle="";_.Sh(this.hostElement,"yt-close-popup-action",[this.is])};
_.b.onSelectHandle=function(){var O=this;if(this.selectedHandle!==void 0){var x;((x=this.data)==null?void 0:x.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(e,l){if(l.newHandleUpdateStatus!==void 0&&l.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&l.newHandleUpdateStatus.errorMessage)_.s9(O.hostElement,_.db(l.newHandleUpdateStatus.errorMessage)),
O.isLoading=!1;else{var C;if((C=O.data)==null?0:C.onChannelUpdateSuccess){e=O.data.onChannelUpdateSuccess;var Q,L;if(l=(Q=_.q(e,_.aq))==null?void 0:(L=Q.popup)==null?void 0:L.handlesClaimingConfirmDialogRenderer)l.handle=_.KA(O.selectedHandle);O.ytComponentBehavior.resolveCommand(e);_.Sh(O.hostElement,"yt-close-popup-action",[O.is])}else O.isLoading=!1}},
onServerError:function(){var e;O.content&&((e=O.content)==null?0:e.handleInput)&&O.content.handleInput.validate();O.isLoading=!1;_.s9(O.hostElement,_.CZ("TRY_AGAIN_LATER"))}}}))}};
_.b.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Ok.prototype.onDataChanged=Ok.prototype.onDataChanged;Ok.prototype.onSelectedHandleChanged=Ok.prototype.onSelectedHandleChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Ok.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"actionButtonOverride",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"cancelButtonOverride",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",String)],Ok.prototype,"selectedHandle",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"selectButtonDisabled",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"hasSelectedHandleEventListener",void 0);_.B([_.R(),_.v("design:type",Object)],Ok.prototype,"handleInput",void 0);
_.B([_.T1("selectedHandle"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ok.prototype,"onSelectedHandleChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ok.prototype,"onDataChanged",null);_.B([_.kX("ytd-handles-claiming-edit-dialog-content"),_.v("design:type",Object)],Ok.prototype,"content",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Ok);
_.n(Ok,"ytd-handles-claiming-edit-dialog-renderer",function(){if(BW$!==void 0)return BW$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return BW$=O},{mode:1});var vNQ;var xl=function(){return _.a.apply(this,arguments)||this};
_.c(xl,_.a);_.Dy.Object.defineProperties(xl.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.handle){var x;return _.KA("@"+_.db((x=this.data)==null?void 0:x.handle))}}}});
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],xl.prototype,"formattedHandle",null);_.B([_.R(),_.v("design:type",Object)],xl.prototype,"data",void 0);_.B([_.H({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],xl);
_.n(xl,"ytd-handles-claiming-radio-option-renderer",function(){if(vNQ!==void 0)return vNQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return vNQ=O},{mode:1});var fpe;var J$p=/^[\x00-\x7F]+$/,ec=function(){var O=_.a.apply(this,arguments)||this;O.initialRadioIndex="-1";O.isLoading=!1;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.maybeSubmitFeedback=function(){O.feedbackSurveyRenderer.submitSurvey()};
return O};
_.c(ec,_.a);ec.prototype.updateSelectedHandleIndexFromBinding=function(O){this.selectedRadioIndex=+O.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(O)};
ec.prototype.selectedHandleChanged=function(O){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var x;this.selectedHandle=(x=this.handleInput)==null?void 0:x.value;this.onSelectedHandleChanged(O)}};
_.Dy.Object.defineProperties(ec.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var O;return this.ytRendererBehavior.getSimpleString((O=this.data)==null?void 0:O.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.KA("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.KA(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!J$p.test(this.selectedHandle)){var O;return(O=this.data)==null?void 0:O.warningText}}}});
_.B([_.R(),_.v("design:type",Object)],ec.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ec.prototype,"initialRadioIndex",void 0);_.B([_.R(),_.v("design:type",Number)],ec.prototype,"selectedRadioIndex",void 0);_.B([_.R(),_.v("design:type",String)],ec.prototype,"selectedHandle",void 0);_.B([_.R(),_.v("design:type",Object)],ec.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Function)],ec.prototype,"onSelectedHandleChanged",void 0);
_.B([_.R(),_.v("design:type",Function)],ec.prototype,"onSelectedRadioIndexChanged",void 0);_.B([_.kX("#channel-handle-input"),_.v("design:type",Object)],ec.prototype,"handleInput",void 0);_.B([_.kX("ytd-feedback-survey-renderer"),_.v("design:type",Object)],ec.prototype,"feedbackSurveyRenderer",void 0);_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],ec.prototype,"radioButtonLength",null);
_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],ec.prototype,"handleUrlPrefix",null);_.B([_.p("selectedHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],ec.prototype,"displayHandle",null);_.B([_.p("selectedHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],ec.prototype,"displayHandleUrl",null);_.B([_.p("selectedHandle"),_.v("design:type",Object),_.v("design:paramtypes",[])],ec.prototype,"warningText",null);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ec.prototype,"darkerDarkTheme",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.B([_.H({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],ec);
_.n(ec,"ytd-handles-claiming-select-dialog-content",function(){if(fpe!==void 0)return fpe;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fpe=O},{mode:1});var w3h;var la=function(){var O=_.a.apply(this,arguments)||this;O.actionButtonOverride={style:"mono",type:"filled",size:"M"};O.cancelButtonOverride={style:"mono",type:"text",size:"M"};O.initialRadioIndex="-1";O.selectButtonDisabled=!1;O.isLoading=!1;O.selectedRadioIndexChanged=function(x){O.selectedRadioIndex=Number(x.detail.value)};
O.selectedHandleChanged=function(x){O.selectedHandle=x.detail.value};
O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(la,_.a);_.b=la.prototype;_.b.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.b.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.b.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.jh(this.hostElement,"yt-refit-popups-action")};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Sh(this.hostElement,"yt-close-popup-action",[this.is])};
_.b.onSelectHandle=function(){var O=this;if(this.selectedHandle!==void 0){var x;((x=this.data)==null?void 0:x.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(e,l){if(l.newHandleUpdateStatus!==void 0&&l.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&l.newHandleUpdateStatus.errorMessage)_.s9(O.hostElement,_.db(l.newHandleUpdateStatus.errorMessage)),
O.isLoading=!1;else{var C;if((C=O.data)==null?0:C.onChannelUpdateSuccess){e=O.data.onChannelUpdateSuccess;l=_.q(e,_.aq);var Q;if(l==null?0:(Q=l.popup)==null?0:Q.handlesClaimingConfirmDialogRenderer)l.popup.handlesClaimingConfirmDialogRenderer.handle=_.KA(O.selectedHandle);O.ytComponentBehavior.resolveCommand(e);_.Sh(O.hostElement,"yt-close-popup-action",[O.is])}else O.isLoading=!1}},
onServerError:function(){if(O.selectedRadioIndex===O.radioButtonLength){var e;O.content&&((e=O.content)==null?0:e.handleInput)&&O.content.handleInput.validate()}O.isLoading=!1;_.s9(O.hostElement,_.CZ("TRY_AGAIN_LATER"))}}}))}};
_.b.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var O,x;this.selectedHandle=(O=this.content)==null?void 0:(x=O.handleInput)==null?void 0:x.value}else this.selectedRadioIndex>=0&&((O=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(O==null?void 0:O.handle):this.selectedHandle=void 0)};
_.b.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.b.getRadioItem=function(O){if(this.radioButtonLength>O&&O>=0)return _.q(this.data.radioButton[O],AXL)};
_.Dy.Object.defineProperties(la.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.radioButton)||[]).length}}});
la.prototype.onSelectedHandleChanged=la.prototype.onSelectedHandleChanged;la.prototype.onSelectedHandleIndexChanged=la.prototype.onSelectedHandleIndexChanged;la.prototype.onDataChanged=la.prototype.onDataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],la.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],la.prototype,"actionButtonOverride",void 0);_.B([_.R(),_.v("design:type",Object)],la.prototype,"cancelButtonOverride",void 0);
_.B([_.R(),_.v("design:type",Object)],la.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],la.prototype,"initialRadioIndex",void 0);_.B([_.R(),_.v("design:type",Number)],la.prototype,"selectedRadioIndex",void 0);_.B([_.R(),_.v("design:type",String)],la.prototype,"selectedHandle",void 0);_.B([_.R(),_.v("design:type",Object)],la.prototype,"selectButtonDisabled",void 0);_.B([_.R(),_.v("design:type",Object)],la.prototype,"isLoading",void 0);
_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],la.prototype,"radioButtonLength",null);_.B([_.kX("ytd-handles-claiming-select-dialog-content"),_.v("design:type",Object)],la.prototype,"content",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],la.prototype,"onDataChanged",null);
_.B([_.T1("selectedRadioIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],la.prototype,"onSelectedHandleIndexChanged",null);_.B([_.T1("selectedHandle"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],la.prototype,"onSelectedHandleChanged",null);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],la.prototype,"darkerDarkTheme",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],la);
_.n(la,"ytd-handles-claiming-select-dialog-renderer",function(){if(w3h!==void 0)return w3h;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return w3h=O},{mode:1});var SUu;var jWY;var C8=function(){return _.a.apply(this,arguments)||this};
_.c(C8,_.a);C8.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],C8.prototype,"data",void 0);_.B([_.H({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],C8);
_.n(C8,"ytd-hotkey-dialog-section-option-renderer",function(){if(jWY!==void 0)return jWY;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return jWY=O},{mode:1});var NWw;var Q6=function(){return _.a.apply(this,arguments)||this};
_.c(Q6,_.a);Q6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Q6.prototype,"data",void 0);_.B([_.H({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Q6);
_.n(Q6,"ytd-hotkey-dialog-section-renderer",function(){if(NWw!==void 0)return NWw;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return NWw=O},{mode:1});var ba=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(ba,_.a);ba.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ba.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ba.prototype,"darkerDarkTheme",void 0);_.B([_.H({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],ba);
_.n(ba,"ytd-hotkey-dialog-content",function(){if(SUu!==void 0)return SUu;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return SUu=O},{mode:1});var gNL;var TV=function(){return _.a.apply(this,arguments)||this};
_.c(TV,_.a);TV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var O=document.querySelector("ytd-hotkey-dialog-content #scrollable");O&&(O.dialogElement=this.hostElement.parentElement)};
TV.prototype.onCloseTap=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],TV.prototype,"data",void 0);_.B([_.H({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],TV);
_.n(TV,"ytd-hotkey-dialog-renderer",function(){if(gNL!==void 0)return gNL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return gNL=O},{mode:1});var $2e;var L8=function(){return _.a.apply(this,arguments)||this};
_.c(L8,_.a);L8.prototype.onYtServiceRequestError=function(){if(this.blocked){var O;var x=(O=this.data)==null?void 0:O.defaultServiceEndpoint}else{var e;x=(e=this.data)==null?void 0:e.toggledServiceEndpoint}var l;(x=(l=_.q(x,_.F5J))==null?void 0:l.onFailureAction)&&this.ytComponentBehavior.resolveCommand(x);this.updateBlockState(!this.blocked)};
L8.prototype.onYtToggleButton=function(O){this.updateBlockState(O.detail.toggled)};
L8.prototype.updateBlockState=function(O){if(O!==this.blocked){var x=this.blockedEntityKey;x&&this.ytdReduxBehavior.dispatch(_.Dc("blockStateEntity",x,{key:x,blocked:O}));this.set("data.isToggled",O)}};
_.Dy.Object.defineProperties(L8.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)}}});
L8.prototype.onYtToggleButton=L8.prototype.onYtToggleButton;L8.prototype.onYtServiceRequestError=L8.prototype.onYtServiceRequestError;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],L8.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],L8.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],L8.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],L8.prototype,"blockedEntityKey",void 0);
_.B([_.R({selectorArgs:["blockedEntityKey"],selector:function(O,x){return _.xE(O.entities,"blockStateEntity",x)}}),
_.v("design:type",Object)],L8.prototype,"blockStateEntity",void 0);_.B([_.p("data","blockStateEntity"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],L8.prototype,"blocked",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],L8.prototype,"onYtServiceRequestError",null);
_.B([_.bH("yt-toggle-button"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],L8.prototype,"onYtToggleButton",null);_.B([_.H({is:"ytd-block-button",disableElementRegistration:!0})],L8);
_.n(L8,"ytd-block-button",function(){if($2e!==void 0)return $2e;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return $2e=O},
{mode:1});var iWY;var O9$;var kl=function(){return _.a.apply(this,arguments)||this};
_.c(kl,_.a);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],kl.prototype,"data",void 0);_.B([_.H({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],kl);
_.n(kl,"ytd-kids-blocklist-picker-item-renderer",function(){if(O9$!==void 0)return O9$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return O9$=O},{mode:1});var AF=function(){return _.a.apply(this,arguments)||this};
_.c(AF,_.a);AF.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],AF.prototype,"data",void 0);_.B([_.H({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],AF);
_.n(AF,"ytd-kids-blocklist-picker-content",function(){if(iWY!==void 0)return iWY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return iWY=
O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var xvp;var ME=function(){var O=_.a.apply(this,arguments)||this;O.hasAnyRequestSucceeded=!1;O.hasAnyRequestFailed=!1;O.numPendingRequests=0;return O};
_.c(ME,_.a);_.b=ME.prototype;_.b.attached=function(){this.hostElement.setAttribute("dialog","")};
_.b.onDoneButtonTap=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.b.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.b.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.b.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.b.onPopupClosed=function(O){var x,e;if(((x=O.detail)==null?void 0:(e=x.popup)==null?void 0:e.is)==="tp-yt-paper-dialog"){var l;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((l=this.data)==null?0:l.successfulToastActionMessage)&&(O=_.B1(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(O));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
ME.prototype.onPopupClosed=ME.prototype.onPopupClosed;ME.prototype.onYtServiceRequestError=ME.prototype.onYtServiceRequestError;ME.prototype.onYtServiceRequestCompleted=ME.prototype.onYtServiceRequestCompleted;ME.prototype.onYtServiceRequestSent=ME.prototype.onYtServiceRequestSent;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],ME.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],ME.prototype,"data",void 0);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ME.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ME.prototype,"onYtServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ME.prototype,"onYtServiceRequestError",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],ME.prototype,"onPopupClosed",null);_.B([_.H({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],ME);
_.n(ME,"ytd-kids-blocklist-picker-renderer",function(){if(xvp!==void 0)return xvp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return xvp=O},{mode:1});var el$;var lJL;var D8=function(){return _.a.apply(this,arguments)||this};
_.c(D8,_.a);D8.prototype.setTip=function(O){var x=this;this.data&&(this.tip=drO(HB4.getInstance(),O,this.data),_.A_(this,function(){_.wr(x.hostElement,"yt-refit")}))};
D8.prototype.clearTip=function(){this.tip=void 0};
D8.prototype.computeHidden=function(O){return!O};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],D8.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.v("design:type",Boolean)],D8.prototype,"hidden",void 0);_.B([_.R(),_.v("design:type",Object)],D8.prototype,"tip",void 0);_.B([_.H({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],D8);
_.n(D8,"ytd-menu-popup-tip-renderer",function(){if(lJL!==void 0)return lJL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);
return lJL=O},{mode:1});var CJe;var GV=function(){var O=_.a.apply(this,arguments)||this;O.useIcons=!1;O.systemIcons=_.t("kevlar_system_icons");O.useListItemStyles=_.t("web_list_item_style_for_menu_items");return O};
_.c(GV,_.a);_.b=GV.prototype;_.b.onFocus=function(){var O;(O=_.$U(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.b.onTap=function(){var O=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(O&&_.q(O,_.ih))this.componentBehavior.resolveCommand(O),this.updateToggledStateInEntity();else if(O){this.componentBehavior.resolveCommand(O)||_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}});var x;((x=_.q(O,_.xm))==null?void 0:x.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.b.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.b.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.b.updateToggledStateInEntity=function(){var O=this.data.toggleMenuServiceItemEntityKey,x=!this.data.isToggled;O&&this.ytdReduxBehavior.dispatch(_.Dc("toggleMenuServiceItemEntity",O,{key:O,isToggled:x}))};
_.b.computeIcon=function(O,x,e){return(O=O?e:x)&&O.iconType?_.x0(O.iconType):""};
_.b.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.b.isIconActive=function(O){return!_.t("toggle_menu_active_icon_killswitch")&&O};
_.Dy.Object.defineProperties(GV.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?0:O.isToggled)?(x=this.data)==null?void 0:x.toggledText:(e=this.data)==null?void 0:e.defaultText}}});
GV.prototype.toggledStateEntityChanged=GV.prototype.toggledStateEntityChanged;GV.prototype.onYtServiceRequestCompleted=GV.prototype.onYtServiceRequestCompleted;GV.prototype.onTap=GV.prototype.onTap;GV.prototype.onFocus=GV.prototype.onFocus;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],GV.prototype,"componentBehavior",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],GV.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],GV.prototype,"useIcons",void 0);_.B([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.v("design:type",String)],GV.prototype,"icon",void 0);
_.B([_.R({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.fd.toggleMenuServiceItemEntitySelector}),_.v("design:type",Object)],GV.prototype,"toggleMenuServiceItemEntity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],GV.prototype,"systemIcons",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],GV.prototype,"useListItemStyles",void 0);
_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],GV.prototype,"onFocus",null);_.B([_.p("data.isToggled"),_.v("design:type",Object),_.v("design:paramtypes",[])],GV.prototype,"toggleButtonText",null);_.B([_.bH("tap"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],GV.prototype,"onTap",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],GV.prototype,"onYtServiceRequestCompleted",null);_.B([_.T1("toggleMenuServiceItemEntity.isToggled","data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],GV.prototype,"toggledStateEntityChanged",null);_.B([_.H({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],GV);
_.n(GV,"ytd-toggle-menu-service-item-renderer",function(){if(CJe!==void 0)return CJe;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return CJe=O},{mode:1});var QcX;var F0=function(){return _.a.apply(this,arguments)||this};
_.c(F0,_.a);F0.prototype.onFocus=function(){var O;(O=_.$U(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.Dy.Object.defineProperties(F0.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Yy(this.data.iconUrl)}}});
F0.prototype.onFocus=F0.prototype.onFocus;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],F0.prototype,"rendererBehavior",void 0);_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],F0.prototype,"ytEndpointBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],F0.prototype,"data",void 0);_.B([_.bH("focus"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],F0.prototype,"onFocus",null);
_.B([_.p("data.iconUrl"),_.v("design:type",Object),_.v("design:paramtypes",[])],F0.prototype,"imageSource",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],F0);
_.n(F0,"ytd-menu-custom-icon-item-renderer",function(){if(QcX!==void 0)return QcX;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return QcX=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});_.wP(_.$H,"yt-list-item-view-model",{props:{data:_.Ld,isMenuItem:_.Ld,isCompact:_.Ld,onTap:_.vs,trailingAccessory:_.vs,hideSelectionTextChevron:_.Ld,disabled:_.Ld,inPopup:_.Ld,disableHorizontalPadding:_.Ld,isOverlay:_.Ld,isToggled:_.Ld,ariaLabel:_.Ld,ariaPressed:_.Ld}});var X0=function(){var O=_.a.apply(this,arguments)||this;O.disableBackdropFilter=_.t("web_disable_backdrop_filter");return O};
_.c(X0,_.a);_.b=X0.prototype;
_.b.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"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.b.computeAriaLabel=function(O){return O};
_.b.onPopupOpened=function(){this.items.selected=0;for(var O=_.T(_.$U(this.items).children),x=O.next();!x.done;x=O.next())x.value.popupPositionTarget=this.positionTarget;if(O=this.popupTip||void 0)O.setTip(this.source||""),this.source=void 0;this.veData&&(O=_.Pq())&&_.rT(O,[this.veData])};
_.b.onPopupClosed=function(){var O=this.popupTip||void 0;O&&O.clearTip()};
_.b.onIronActivate=function(O){this.shouldPersist(O)||_.Sh(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(O=_.Pq())&&_.KZ(O,this.veData)};
_.b.shouldPersist=function(O){var x,e;if(((x=O.detail)==null?void 0:x.selected)===void 0||(e=this.data)==null||!e.items)return!1;var l,C;return!((C=(l=this.data.items[O.detail.selected])==null?void 0:l.toggleMenuServiceItemRenderer)==null||!C.persistentOnMenuPopup)};
_.b.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(O){return O.menuNavigationItemRenderer?!!O.menuNavigationItemRenderer.icon:O.menuServiceItemRenderer?!!O.menuServiceItemRenderer.icon:O.menuConditionalServiceItemRenderer?!!O.menuConditionalServiceItemRenderer.icon:O.menuConditionalNavigationItemRenderer?!!O.menuConditionalNavigationItemRenderer.icon:O.toggleMenuServiceItemRenderer?!!O.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
X0.prototype.onPopupClosed=X0.prototype.onPopupClosed;X0.prototype.onPopupOpened=X0.prototype.onPopupOpened;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],X0.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],X0.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],X0.prototype,"veData",void 0);_.B([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.v("design:type",String)],X0.prototype,"ariaLabel",void 0);_.B([_.R({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],X0.prototype,"useIcons",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],X0.prototype,"disableBackdropFilter",void 0);_.B([_.kX("#items"),_.v("design:type",Object)],X0.prototype,"items",void 0);_.B([_.kX("ytd-menu-popup-tip-renderer"),_.v("design:type",Object)],X0.prototype,"popupTip",void 0);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],X0.prototype,"onPopupOpened",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],X0.prototype,"onPopupClosed",null);_.B([_.H({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],X0);
_.n(X0,"ytd-menu-popup-renderer",function(){if(el$!==void 0)return el$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return el$=O},{mode:1});var b9L;var T0p=_.K(function(O){O=_.YX(O,{icon:void 0});var x=O.data;O=O.icon;var e=function(){return x().iconBadgeText},l={},C=_.xz("yt-spec-icon-badge-shape",function(){a:switch(x().iconBadgeType){case "notification":var Q="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":Q="yt-spec-icon-badge-shape--type-cart";break a;default:Q=""}return Q},function(){a:switch(x().iconBadgeStyle){case "overlay":var Q="yt-spec-icon-badge-shape--style-overlay";
break a;default:Q=""}return Q},(l["yt-spec-icon-badge-shape--text-size-small"]=function(){var Q=e();
return!!((Q==null?0:Q.length)&&Q.length>2)},l));
return _.D("yt-icon-badge-shape",null,_.D(_.F,{cond:O,then:function(Q){return _.D("div",{class:C},_.D("div",{class:"yt-spec-icon-badge-shape__icon"},_.D(_.L7,{icon:Q})),_.D(_.F,{cond:e,then:function(L){return _.D("div",{class:"yt-spec-icon-badge-shape__badge"},L)}}))}}))},"gj");
T0p.idomCompat=!0;_.wP(T0p,"yt-icon-badge-shape",{props:{data:_.Ld,icon:_.Ld}});var or=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};O.unseenCount=0;O.isOverlay=!1;return O};
_.c(or,_.a);_.b=or.prototype;_.b.attached=function(){var O=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(x){O.onServiceWorkerMessage(x)})};
_.b.onDataChanged=function(){this.isAttached&&!this.JSC$20722_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20722_lastData=this.data};
_.b.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.b.computeIcon=function(){var O,x;return(O=this.data)==null?void 0:(x=O.icon)==null?void 0:x.iconType};
_.b.onServiceWorkerMessage=function(O){O.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.b.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.q(this.data.updateUnseenCountEndpoint,_.xm)&&_.q(this.data.updateUnseenCountEndpoint,_.xm).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.b.handleUpdateNotificationsUnseenCountAction=function(O){var x=this;O=_.q(O,xPL);O!=null&&O.unseenCount&&O.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(O.unseenCount),_.vn.addLowPriorityJob(function(){x.data.updateUnseenCountEndpoint&&x.ytComponentBehavior.resolveCommand(x.data.updateUnseenCountEndpoint)},O.timeoutMs))};
_.b.onClick=function(){_.wr(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var O=_.jh(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),x=this.data.menuRequest;O&&O.length===1&&O[0]?_.Sh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):x&&this.ytComponentBehavior.resolveCommand(x)};
_.b.handleTopbarMenuClosedAction=function(O){O==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.b.toggleIconState=function(O){this.iconButton&&(this.iconButton.pressed=O)};
_.b.sendUnseenCountRequest=function(O){var x=this;_.zl(_.vn,function(){x.ytComponentBehavior.resolveCommand(O)})};
_.b.updateCountUI=function(O){this.set("unseenCount",O<9?O:"9+")};
_.Dy.Object.defineProperties(or.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
or.prototype.handleUpdateNotificationsUnseenCountAction=or.prototype.handleUpdateNotificationsUnseenCountAction;or.prototype.onDataChanged=or.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.FY),_.v("design:type",Object)],or.prototype,"ytdOpenPopupBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],or.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],or.prototype,"unseenCount",void 0);_.B([_.R(),_.v("design:type",Object)],or.prototype,"isOverlay",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],or.prototype,"showTooltips",void 0);_.B([_.kX("yt-icon-button"),_.v("design:type",Object)],or.prototype,"iconButton",void 0);
_.B([_.p("unseenCount"),_.v("design:type",Object),_.v("design:paramtypes",[])],or.prototype,"showNotificationCount",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],or.prototype,"onDataChanged",null);_.B([_.bH("yt-update-notifications-unseen-count-action"),_.v("design:type",Function),_.v("design:paramtypes",[Object]),_.v("design:returntype")],or.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.B([_.H({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],or);
_.n(or,"ytd-notification-topbar-button-renderer",function(){if(b9L!==void 0)return b9L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return b9L=O},{mode:_.gq("kevlar_poly_si_batch_j025")?1:2});var LfL;var y6=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return O};
_.c(y6,_.a);y6.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}}}}}};
y6.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
y6.prototype.onDarkModeToggled=function(O){this.dark=O};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],y6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],y6.prototype,"data",void 0);_.B([_.R({value:!0,reflectToAttribute:!0}),_.v("design:type",Boolean)],y6.prototype,"dark",void 0);
_.B([_.H({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],y6);
_.n(y6,"yt-pdg-buy-flow-header-renderer",function(){if(LfL!==void 0)return LfL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return LfL=O},{mode:1});var kIQ;var A4L;var Z8=function(){var O=_.a.apply(this,arguments)||this;O.immediateValue=0;O.isDarkTheme=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(Z8,_.a);_.b=Z8.prototype;_.b.created=function(){_.f6.requestAvailability()};
_.b.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.b.dataChanged=function(){var O=_.$U(this.hostElement).querySelector("#color-slider");O.immediateValue&&this.updateSliderKnobAndGradientStyles(O.immediateValue);this.data.notches[0].knobColorArgb&&_.lH(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.aF(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.wz("HTML_DIR")==="rtl"&&_.$U(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.b.onSliderImmediateChange=function(){var O=_.$U(this.hostElement).querySelector("#color-slider");O.dragging&&(O.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(O.immediateValue),this.updateSliderKnobAndGradientStyles(O.immediateValue)),this.updateSliderAria())};
_.b.onSliderChange=function(){var O=_.$U(this.hostElement).querySelector("#color-slider");O.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(O.immediateValue),this.updateSliderKnobAndGradientStyles(O.immediateValue));this.updateSliderAria()};
_.b.updateSliderAria=function(){var O=_.$U(this.hostElement).querySelector("#color-slider"),x=_.$U(this.hostElement).querySelector("#color-slider");x=_.db(this.data.notches[x.immediateValue].tierValue);_.ZVL()&&_.wr(this.hostElement,"iron-announce",{text:x});O.setAttribute("aria-valuetext",x)};
_.b.updateSuperThanksSelectedTierEntity=function(O){if(O!==this.immediateValue){var x,e,l=this==null?void 0:(x=this.data)==null?void 0:(e=x.superThanksSelectedTierEntity)==null?void 0:e.key;l&&l.length>0&&this.ytdReduxBehavior.dispatch(_.Dc("superThanksSelectedTierEntity",l,{key:l,index:O}))}};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.updateSliderKnobAndGradientStyles=function(O){this.immediateValue=O;O=this.data.notches[O];if(O==null?0:O.knobColorArgb)var x={"--ytd-pdg-color-slider-knob-color":_.aF(O.knobColorArgb)};(O==null?0:O.linearGradientCssStyle)&&x!==null&&(x=Object.assign({},x,{"--ytd-pdg-color-slider-active-color":O==null?void 0:O.linearGradientCssStyle}));x!==null&&_.lH(this.hostElement,x)};
Z8.prototype.onSliderChange=Z8.prototype.onSliderChange;Z8.prototype.onSliderImmediateChange=Z8.prototype.onSliderImmediateChange;Z8.prototype.dataChanged=Z8.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],Z8.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Z8.prototype,"immediateValue",void 0);_.B([_.R(),_.v("design:type",Number)],Z8.prototype,"maxMarkers",void 0);
_.B([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:v0Q}),_.v("design:type",Object)],Z8.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Z8.prototype,"isDarkTheme",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Z8.prototype,"ytdReduxBehavior",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z8.prototype,"dataChanged",null);
_.B([_.bH("immediate-value-change"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z8.prototype,"onSliderImmediateChange",null);_.B([_.bH("change"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Z8.prototype,"onSliderChange",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Z8);
_.n(Z8,"ytd-pdg-color-slider-renderer",function(){if(A4L!==void 0)return A4L;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return A4L=O},{mode:1});var MAO;var Dve;var Ek=null;
_.tY({is:"ytd-comment-input",_template:function(){if(Dve!==void 0)return Dve;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Dve=O},
behaviors:[_.Cqr.YtHostElementBehavior,_.cg,_.OJ.YtComponentBehavior,_.ZX.YtRendererstamperBehavior,_.lW2.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 _.Cn}},
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",_.Qa(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;_.Gy();this.focus()},
detached:function(){document.removeEventListener("tap",_.Qa(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(O){O=O.detail;O=O.isCustomEmoji?O.shortcuts[0]:O.emojiId;var x=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(x,O);this.maybeUpdateTextDirection_();_.wr(this.hostElement,"input")},
getInputRange_:function(){var O=_.NR();if(O){O=O.getBrowserRangeObject();for(var x=O.commonAncestorContainer;x;){if(x===this.getEditableTextArea_())return O;x=x.parentNode}}O=this.getEditableTextArea_();O=_.HP(O,O.childNodes.length);O.select();return O.getBrowserRangeObject()},
insertTextWithEmojis_:function(O,x,e){(x=this.emojiManager.createDocumentFragment(x,!0,!1,e===void 0?!0:e))&&x.childNodes.length!==0&&(O.collapsed||O.deleteContents(),e=x.lastChild,O.insertNode(x),_.NPd(e).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var O=_.NR();if(O){var x=O.JSC$11343_getStartNode(),e=O.JSC$11343_getEndNode();if(RJu(x)&&RJu(e)){var l=O.JSC$11343_getStartOffset(),C;if(_.ig&&x.nodeType===Node.ELEMENT_NODE&&(C=_.Sr3(x)))_.HP(C,0).select();else{C=$t(x)?x:_.fu(x,$t);var Q=$t(e)?e:_.fu(e,$t);if(C||Q)if(O.isCollapsed()){if(x.nodeType===Node.TEXT_NODE){O=!0;l===x.length&&(O=!1);if(Ek==="end"||Ek==="right")O=!1;x=x.parentNode;O=[].concat(_.Kx(x.parentNode.childNodes)).indexOf(x)+(O?0:1);_.HP(x.parentNode,
O).select()}}else C?C.previousSibling&&C.previousSibling.length>0?_.Kp(e,O.JSC$11343_getEndOffset(),C.previousSibling,C.previousSibling.length-1).select():(x=document.createTextNode("\u200b"),C.parentNode.insertBefore(x,C),_.Kp(e,O.JSC$11343_getEndOffset(),x,0).select()):Q&&(Q.nextSibling&&Q.nextSibling.length>0?_.Kp(x,O.JSC$11343_getStartOffset(),Q.nextSibling,1).select():(e=document.createTextNode("\u200b"),Q.parentNode.insertBefore(e,Q.nextSibling),_.Kp(x,O.JSC$11343_getStartOffset(),e,e.length).select()));
Ek=null}}else Ek=null}else Ek=null},
leftKeyPressed_:function(){Ek="left"},
rightKeyPressed_:function(){Ek="right"},
endKeyPressed_:function(){Ek="end"},
maybeDeleteChip_:function(){var O=hJQ(!0);if(O){var x=_.NR(),e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();_.sN(e,x,O,O.childNodes.length).select()}},
maybeBackspaceChip_:function(){var O=hJQ(!1);if(O){var x=_.NR(),e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();_.sN(e,x,O,0).select()}},
maybeBackspaceChipWordMode_:function(O){var x=_.NR();if(x.isCollapsed()){var e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();var l=zJX(e,x,!0);l&&(_.sN(e,x,l,0).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(O){var x=_.NR();if(x.isCollapsed()){var e=x.JSC$11343_getStartNode();x=x.JSC$11343_getStartOffset();var l=zJX(e,x,!1);l&&(_.sN(e,x,l,l.childNodes.length).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
onContentClick:function(O){O.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(O){O.defaultPrevented||O.currentTarget.tagName==="YTD-COMMENT-INPUT"&&$t(O.target)&&O.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.$U(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.$U(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(O,x){O=arL(O,this.emojiManager,x).cloneNode(!0);for(x=O.firstChild;x;)if(x.nodeType!==1)x=x.nextSibling;else switch(x.tagName){case "BR":var e=_.Is();_.eQR(e,x);x=e.nextSibling;break;case "DIV":(e=x.lastChild)&&x.nextSibling&&_.U5(_.Is(),e);x.previousSibling&&(x.previousSibling.nodeType===1||x.previousSibling.nodeType===3&&!x.previousSibling.textContent.endsWith("\n"))&&_.Rs(_.Is(),x);e&&e.nodeName==="BR"&&_.Um(e);e=x;x.hasChildNodes()?(x=x.firstChild,
_.luD(e)):(x=x.nextSibling,_.Um(e));break;default:x=x.nextSibling}return rtp(O)},
setTextAreaValue:function(O){O||(O="");var x=this.getEditableFormattedString_();x.text="";this.getEditableTextArea_().innerText="";typeof O==="string"&&(O={runs:[{text:O}]});x.text=O},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ek=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var O=this.getEditableTextArea_();O&&(_.HP(O,O.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.wz("HTML_DIR")==="rtl"){var O=this.getEditableTextArea_(),x=this.getTextAreaValue()!==""?"auto":"rtl";O.setAttribute("dir",x)}},
handleInputEvent_:function(){var O=null;if(this.isEmojiButtonDisplayed){var x=this.getInputRange_();x&&(O=this.emojiInput.retrieveTextBeforeRange(x))}this.insertText_(O,!0);this.updateCharCount_();O=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=O.scrollHeight>O.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var O=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:O})},
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(O){this.isEmojiButtonDisplayed&&(O.preventDefault(),O.stopImmediatePropagation(),O=O.clipboardData.getData("text/plain"),this.insertText_(O,!1,!1),_.wr(this.hostElement,"input"))},
insertText_:function(O,x,e){x=x===void 0?!1:x;e=e===void 0?!0:e;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&O){var l=this.getInputRange_().cloneRange();this.emojiManager&&l&&(x&&this.emojiInput.offsetStartOfRangeBy(l,O.length),this.insertTextWithEmojis_(l,O,e),Uoh(this.getEditableTextArea_().lastChild)||(l=this.getInputRange_().cloneRange()),l&&(this.emojiInput.updateSuggestions(l,O),this.updateSuggestionOffset_(l)))}},
getSimpleString:_.db,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(O){return O?"focused":"not-focused"},
computePlaceholderText_:function(O){return this.getSimpleString(O)},
computeEditableText_:function(O){return this.getSimpleString(O)},
onPrefilledContentDismissed_:function(O){O.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(O,x){O?this.fire("yt-autonav-pause-focus"):x!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(O){var x=this.getEditableTextArea_();[].concat(_.Kx(O.dataTransfer.items)).forEach(function(e){e.kind==="string"&&e.type.match("^text/plain")&&e.getAsString(function(l){x.appendChild(document.createTextNode(l))})});
O.preventDefault()},
preventDefault_:function(O){O.preventDefault()},
onSuggestionInsert_:function(O){this.insertTextWithEmojis_(O.detail.range,O.detail.text)},
onEmojiSuggestionClick_:function(O){this.emojiInput.insertSuggestion(O.detail)},
updateSuggestionOffset_:function(O){if(this.emojiInput&&_.$U(this.emojiInput).querySelector("#dropdown")){var x=this.getEditableTextArea_().getBoundingClientRect().bottom,e=O.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(x-e)+5;x=this.getEditableTextArea_().getBoundingClientRect().left;O=O.getBoundingClientRect().left-x;_.$U(this.emojiInput).querySelector("#dropdown").style.marginLeft=O+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.jC("yt-post"));return this.localStorage}});var tF=function(){var O=_.a.apply(this,arguments)||this;O.currentCommentOptionIndex=0;O.isEmojiPickerDisplayed=!1;O.emojiManager=_.Cn;O.isUgcEmpty=!1;O.userGeneratedCommentChangedHandler=function(){_.wr(O.hostElement,"ytd-pdg-user-generated-comment-changed");O.isEmojiYtdCommentInputEnabled&&(O.isUgcEmpty=!O.ytdCommentInputEl.getTextAreaValue())};
O.pasteHandler=function(x){x.preventDefault();x.stopImmediatePropagation();var e;if(x=(e=x.clipboardData)==null?void 0:e.getData("text/plain"))e=document.getSelection().getRangeAt(0),e.collapsed||e.deleteContents(),x=document.createTextNode(x),e.insertNode(x),e.selectNodeContents(x),e.collapse(!1),x=window.getSelection(),x.removeAllRanges(),x.addRange(e)};
O.onDocumentClick=function(x){if(O.isEmojiPickerDisplayed){var e,l,C;!(x.target instanceof Node)||(e=x.composedPath())!=null&&e.includes(O.editableTextEl)||(l=x.composedPath())!=null&&l.includes(O.emojiButtonEl)||(C=x.composedPath())!=null&&C.includes(O.emojiPickerEl)||(O.isEmojiPickerDisplayed=!1)}};
return O};
_.c(tF,_.a);_.b=tF.prototype;_.b.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.b.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.b.detached=function(){var O;(O=this.contentEl)==null||O.removeEventListener("input",this.userGeneratedCommentChangedHandler);var x;(x=this.contentEl)==null||x.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.b.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.b.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var O;this.contentEl.textContent=this.rendererBehavior.getSimpleString((O=this.data)==null?void 0:O.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.b.reloadEmojis=function(){this.emojiPickerEl&&_.q(this.emojiPicker,_.jqd)&&this.emojiPickerEl.updateEmojiCategories()};
_.b.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.lH(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.b.handleBackgroundColorStyling=function(){var O;if((O=this.currentCommentOption)==null?0:O.commentBackgroundColorArgb){var x;_.lH(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.aF((x=this.currentCommentOption)==null?void 0:x.commentBackgroundColorArgb)})}else _.lH(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.b.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var O;(O=this.contentEl)==null||O.focus()}};
_.b.onEditButtonClick=function(O){var x=document.getSelection();x&&this.contentEl&&(O.stopPropagation(),O.preventDefault(),x.selectAllChildren(this.contentEl),x.collapseToEnd())};
_.b.onContentDrop=function(O){var x=this;if(O.dataTransfer){O=_.T(O.dataTransfer.items);for(var e=O.next();!e.done;e=O.next())e=e.value,e.kind==="string"&&e.type.match("^text/plain")&&e.getAsString(function(l){var C;(C=x.contentEl)==null||C.appendChild(document.createTextNode(l))})}};
_.b.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.b.getUserGeneratedCommentText=function(){var O,x=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(O=this.contentEl)==null?void 0:O.textContent;return x?x.trim():""};
_.b.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.b.onEmojiSelect=function(O){this.ytdCommentInputEl.onEmojiSelect(O)};
_.Dy.Object.defineProperties(tF.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.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 O;return!((O=this.currentCommentOption)==null||!O.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if(_.q((O=this.currentCommentOption)==null?void 0:O.chipRenderer,_.ycd)){var x;return _.q((x=this.currentCommentOption)==null?void 0:x.chipRenderer,_.ycd)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var O,x;return((O=this.data)==null?0:O.commentOptionRenderers)?_.q((x=this.data)==null?void 0:x.commentOptionRenderers[this.superThanksSelectedTierEntity.index],RXL):void 0}var e,l;return((e=this.data)==null?0:e.commentOptionRenderers)?_.q((l=this.data)==null?void 0:l.commentOptionRenderers[this.currentCommentOptionIndex],RXL):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var O;return this.rendererBehavior.getSimpleString((O=this.data)==null?void 0:O.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var O;return this.rendererBehavior.getSimpleString((O=this.data)==null?void 0:O.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.commentDialog,_.Gy2))==null?void 0:x.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.commentDialog,_.Gy2))==null?void 0:x.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=_.q((O=this.data)==null?void 0:O.commentDialog,_.Gy2))==null?void 0:x.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(x=_.q((O=this.data)==null?void 0:O.commentDialog,_.Gy2))==null?void 0:x.emojiPicker;if(!_.q(e,_.jqd)||!_.q(e,_.jqd).categories)return!1;O=function(Q){return Q.emojiPickerCategoryRenderer?Q.emojiPickerCategoryRenderer.emojiIds&&Q.emojiPickerCategoryRenderer.emojiIds.length>0:Q.emojiPickerUpsellCategoryRenderer?Q.emojiPickerUpsellCategoryRenderer.emojis&&Q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var l,C;return((l=_.q(e,_.jqd))==null?0:(C=l.categories)==null?0:C.find(O))?!0:!1}}});
tF.prototype.onEmojiSelect=tF.prototype.onEmojiSelect;tF.prototype.dataChanged=tF.prototype.dataChanged;tF.prototype.currentCommentOptionChanged=tF.prototype.currentCommentOptionChanged;_.B([_.V(_.$5),_.v("design:type",Object)],tF.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tF.prototype,"rendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.kX("#content-dom-if"),_.v("design:type",_.PZ)],tF.prototype,"contentDomIfEl",void 0);_.B([_.kX("#content-no-emojis"),_.v("design:type",HTMLElement)],tF.prototype,"contentEl",void 0);_.B([_.kX("#container"),_.v("design:type",HTMLElement)],tF.prototype,"containerEl",void 0);_.B([_.kX("#comment-chip-container"),_.v("design:type",HTMLElement)],tF.prototype,"paidCommentChipContainerEl",void 0);_.B([_.kX("#text-input"),_.v("design:type",HTMLElement)],tF.prototype,"editableTextEl",void 0);
_.B([_.kX("#emoji-button"),_.v("design:type",HTMLElement)],tF.prototype,"emojiButtonEl",void 0);_.B([_.kX("#emoji-picker > yt-emoji-picker-renderer"),_.v("design:type",Object)],tF.prototype,"emojiPickerEl",void 0);_.B([_.kX("#text-input > ytd-comment-input"),_.v("design:type",Object)],tF.prototype,"ytdCommentInputEl",void 0);_.B([_.R(),_.v("design:type",Object)],tF.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],tF.prototype,"currentCommentOptionIndex",void 0);
_.B([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:v0Q}),_.v("design:type",Object)],tF.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.R(),_.v("design:type",Object)],tF.prototype,"isEmojiPickerDisplayed",void 0);_.B([_.R(),_.v("design:type",Object)],tF.prototype,"emojiManager",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],tF.prototype,"isUgcEmpty",void 0);
_.B([_.T1("currentCommentOption"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tF.prototype,"currentCommentOptionChanged",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tF.prototype,"dataChanged",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],tF.prototype,"isEmojiYtdCommentInputEnabled",null);
_.B([_.p("data.title"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"title",null);_.B([_.p("data.authorText"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"channelName",null);_.B([_.p("data.commentOptionRenderers","currentCommentOption"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],tF.prototype,"shouldShowPaidCommentChipRenderer",null);
_.B([_.p("data.commentOptionRenderers","currentCommentOption"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"paidCommentChipRenderer",null);_.B([_.p("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"currentCommentOption",null);
_.B([_.p("data.defaultCommentText","superThanksSelectedTierEntity"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"commentText",null);_.B([_.p("data.placeholderText"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"placeholderText",null);_.B([_.p("data.commentDialog.commentDialogRenderer.editableText"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"editableText",null);
_.B([_.p("data.commentDialog.commentDialogRenderer.emojiButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"emojiButton",null);_.B([_.p("data.commentDialog.commentDialogRenderer.emojiPicker"),_.v("design:type",Object),_.v("design:paramtypes",[])],tF.prototype,"emojiPicker",null);
_.B([_.p("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],tF.prototype,"isEmojiButtonDisplayed",null);_.B([_.bH("yt-emoji-select"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],tF.prototype,"onEmojiSelect",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],tF);
_.n(tF,"ytd-pdg-comment-preview-renderer",function(){if(MAO!==void 0)return MAO;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return MAO=O},{mode:2});var GIu;var qE=function(){var O=_.a.apply(this,arguments)||this;O.selected=!1;return O};
_.c(qE,_.a);_.b=qE.prototype;_.b.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.b.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.b.dataChanged=function(){this.data&&(_.iK(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.lH(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.aF(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.aF(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.b.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.b.onClick=function(){this.logClick()};
_.b.onKeyboardSelect=function(){_.wr(this.hostElement,"tap");this.onClick()};
_.b.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
qE.prototype.onClick=qE.prototype.onClick;qE.prototype.selectedChanged=qE.prototype.selectedChanged;qE.prototype.dataChanged=qE.prototype.dataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],qE.prototype,"componentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.cg),_.v("design:type",Object)],qE.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.V(_.rq),_.v("design:type",Object)],qE.prototype,"ironSelectableBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],qE.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],qE.prototype,"shownThumbnail",void 0);_.B([_.R(),_.v("design:type",Object)],qE.prototype,"basePriceText",void 0);_.B([_.R(),_.v("design:type",Object)],qE.prototype,"purchaseCommand",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],qE.prototype,"selected",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qE.prototype,"dataChanged",null);_.B([_.T1("selected"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qE.prototype,"selectedChanged",null);_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qE.prototype,"onClick",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],qE);
_.n(qE,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(GIu!==void 0)return GIu;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return GIu=O},{mode:1});var Pa=function(){var O=_.a.apply(this,arguments)||this;O.selectedItemIndex=0;O.buyButtonDisabled=!1;return O};
_.c(Pa,_.a);_.b=Pa.prototype;
_.b.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]]"}}}}}};
_.b.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var O;var x=(O=_.q(this.data.colorSlider,p$p))==null?void 0:O.notches[this.selectedItemIndex].purchaseCommand}else{var e;x=(e=_.q(this.data.selectableItemButtons[this.selectedItemIndex],aZL))==null?void 0:e.purchaseCommand}if(x){O=_.q(x,_.eXd);O.productData||(O.productData={});var l;O.productData={pdgData:{commentMessageText:(l=this.commentPreviewRenderer)==null?void 0:l.getUserGeneratedCommentText()}};
_.wr(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(x)}}};
_.b.dataChanged=function(){if(this.data){_.Cn.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.WEk(_.Cn,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Cn.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var O;this.buyButtonDisabled=!((O=_.q(this.data.commentPreview,UPT))==null||!O.placeholderText);this.updatePriceSelectorStatus();var x;if((x=this.data)==null?0:x.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;O=[];this.data.preloadImages&&(O=this.data.preloadImages);
O=O.map(function(e){return _.Sf(e.thumbnails,1920)});
O=_.T(O);for(x=O.next();!x.done;x=O.next())(x=x.value)&&_.KZ8(x).thenCatch(function(){_.ft(Error("El"))})}};
_.b.superThanksSelectedTierEntityChanged=function(){var O;(this==null?void 0:(O=this.superThanksSelectedTierEntity)==null?void 0:O.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.b.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.b.updatePriceSelectorStatus=function(){this.isColorSlider?(_.$U(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.$U(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.$U(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.$U(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.b.closeBuyFlow=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.b.onUserGeneratedContentChanged=function(){var O;this.buyButtonDisabled=!((O=this.commentPreviewRenderer)==null?0:O.getUserGeneratedCommentText())};
_.b.updateSelectedItemIndexFromBinding=function(O){this.selectedItemIndex=O.detail.value};
_.Dy.Object.defineProperties(Pa.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.disclaimerText)}}});
Pa.prototype.onUserGeneratedContentChanged=Pa.prototype.onUserGeneratedContentChanged;Pa.prototype.closeBuyFlow=Pa.prototype.closeBuyFlow;Pa.prototype.selectedItemIndexChanged=Pa.prototype.selectedItemIndexChanged;Pa.prototype.superThanksSelectedTierEntityChanged=Pa.prototype.superThanksSelectedTierEntityChanged;Pa.prototype.dataChanged=Pa.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Pa.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Pa.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Pa.prototype,"selectedItemIndex",void 0);_.B([_.R(),_.v("design:type",Boolean)],Pa.prototype,"isColorSlider",void 0);
_.B([_.R(),_.v("design:type",Object)],Pa.prototype,"buyButtonDisabled",void 0);_.B([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:v0Q}),_.v("design:type",Object)],Pa.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.kX("ytd-pdg-comment-preview-renderer"),_.v("design:type",Object)],Pa.prototype,"commentPreviewRenderer",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Pa.prototype,"ytdReduxBehavior",void 0);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Pa.prototype,"dataChanged",null);_.B([_.T1("superThanksSelectedTierEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Pa.prototype,"superThanksSelectedTierEntityChanged",null);_.B([_.T1("selectedItemIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Pa.prototype,"selectedItemIndexChanged",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Pa.prototype,"closeBuyFlow",null);_.B([_.bH("ytd-pdg-user-generated-comment-changed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Pa.prototype,"onUserGeneratedContentChanged",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],Pa.prototype,"isDisclaimerTextShown",null);
_.B([_.H({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Pa);
_.n(Pa,"yt-super-vod-buy-flow-content-renderer",function(){if(kIQ!==void 0)return kIQ;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return kIQ=O},{mode:1});var Ffu;var ca=function(){var O=_.a.apply(this,arguments)||this;O.lottieAnimationRef={};return O};
_.c(ca,_.a);_.b=ca.prototype;_.b.created=function(){_.f6.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Qa(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.b.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.wr(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.b.detached=function(){this.autoCloseJobId&&_.vn.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Qa(this,this.onPopupIronOverlayOpened))};
_.b.dataChanged=function(){var O=this;this.data&&this.data.autoCloseDelay&&(_.Sh(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.$0(_.vn,function(){O.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.lH(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.b.onDOMLoadedLottie=function(){var O=this,x,e,l=Number((x=this.data)==null?void 0:(e=x.autoCloseDelay)==null?void 0:e.seconds)||0;this.fadeOutJobId=_.$0(_.vn,function(){O.lottiePlayerEl.classList.add("fadeout")},(l-.25)*1E3);
this.autoCloseJobId=_.$0(_.vn,function(){O.closePopup()},l*1E3)};
_.b.openPopup=function(){this.ironOverlayBehavior.open()};
_.b.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Sh(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.gr(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.GG().resolve(_.Xc).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.vn.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.vn.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.b.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var O,x;(O=this.lottieAnimationRef)==null||(x=O.lottieEl)==null||x.destroy();O=this.data.lottie;var e,l;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:O.url+"_"+Math.random(),path:O.url,autoplay:!0,loop:(l=(e=O.settings)==null?void 0:e.loop)!=null?l:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Dy.Object.defineProperties(ca.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var O,x;return!!((O=this.data)==null?0:(x=O.lottie)==null?0:x.url)}}});
ca.prototype.maybeInitializeLottie=ca.prototype.maybeInitializeLottie;ca.prototype.dataChanged=ca.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ca.prototype,"rendererBehavior",void 0);_.B([_.V(_.N_),_.v("design:type",Object)],ca.prototype,"ironOverlayBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ca.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ca.prototype,"lottiePlayerProps",void 0);
_.B([_.R(),_.v("design:type",Object)],ca.prototype,"lottieAnimationRef",void 0);_.B([_.kX("ytd-lottie-player"),_.v("design:type",HTMLElement)],ca.prototype,"lottiePlayerEl",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ca.prototype,"dataChanged",null);_.B([_.p("data"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],ca.prototype,"hasLottieAnimation",null);
_.B([_.T1("data.lottie.url"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ca.prototype,"maybeInitializeLottie",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],ca);
_.n(ca,"ytd-desktop-image-overlay-renderer",function(){if(Ffu!==void 0)return Ffu;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Ffu=O},{mode:1});var Xl4;var Ir=function(){return _.a.apply(this,arguments)||this};
_.c(Ir,_.a);_.b=Ir.prototype;_.b.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"}}}}};
_.b.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",_.Qa(this,this.closePopup))};
_.b.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Qa(this,this.closePopup))};
_.b.dataChanged=function(){_.jh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.q(this.data.header,VVw)&&(this.hasBackgroundBanner=!!_.q(this.data.header,VVw).backgroundBanner)};
_.b.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Qa(this,this.closePopup))};
_.b.closePopup=function(){this.data&&this.data.onCloseCommand&&_.N9(this.hostElement,[this.data.onCloseCommand])};
Ir.prototype.handleBuyflowSelectionSubmitted=Ir.prototype.handleBuyflowSelectionSubmitted;Ir.prototype.dataChanged=Ir.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ir.prototype,"data",void 0);
_.B([_.R({value:!0,reflectToAttribute:!0}),_.v("design:type",Boolean)],Ir.prototype,"hasBackgroundBanner",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ir.prototype,"dataChanged",null);_.B([_.bH("yt-pdg-buy-flow-selection-submitted"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ir.prototype,"handleBuyflowSelectionSubmitted",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Ir);
_.n(Ir,"ytd-pdg-buy-flow-renderer",function(){if(Xl4!==void 0)return Xl4;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Xl4=O},{mode:1});var oeQ;var V6=function(){var O=_.a.apply(this,arguments)||this;O.isOpen=!1;O.isPlaylistCreated=!1;return O};
_.c(V6,_.a);_.b=V6.prototype;_.b.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.b.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.wr(this.hostElement,"yt-refit")};
_.b.onCreateTap=function(){var O=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.N9(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(x,e){if(!_.t("killswitch_ep_in_create_playlist_response")&&(e==null?0:e.actions))for(x=_.T(e.actions),e=x.next();!e.done;e=x.next())e=e.value,_.q(e,_.Zr)&&O.ytComponentBehavior.resolveCommand(e)}}]),this.isPlaylistCreated=!0)};
_.b.onKeydown=function(O){if(O.keyCode===13)this.onCreateTap()};
_.b.onServiceRequestCompleted=function(O){O.stopPropagation();_.Sh(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.b.computePrivacyBadge=function(O){return O?[{metadataBadgeRenderer:O}]:[]};
V6.prototype.onServiceRequestCompleted=V6.prototype.onServiceRequestCompleted;V6.prototype.onKeydown=V6.prototype.onKeydown;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],V6.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],V6.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],V6.prototype,"isOpen",void 0);
_.B([_.R(),_.v("design:type",Object)],V6.prototype,"isPlaylistCreated",void 0);_.B([_.R({value:{REQUIRED_LABEL:_.CZ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CZ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.v("design:type",Object)],V6.prototype,"addToStrings",void 0);_.B([_.R({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.v("design:type",Array)],V6.prototype,"privacyBadge",void 0);
_.B([_.kX("#privacy-input"),_.v("design:type",Object)],V6.prototype,"privacyInput",void 0);_.B([_.kX("#name-input"),_.v("design:type",Object)],V6.prototype,"nameInput",void 0);_.B([_.bH("keydown"),_.v("design:type",Function),_.v("design:paramtypes",[KeyboardEvent]),_.v("design:returntype")],V6.prototype,"onKeydown",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],V6.prototype,"onServiceRequestCompleted",null);
_.B([_.H({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],V6);
_.n(V6,"ytd-add-to-playlist-create-renderer",function(){if(oeQ!==void 0)return oeQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return oeQ=O},{mode:1});var y4L;var Z9Y;var p8=function(){var O=_.a.apply(this,arguments)||this;O.transferState="TRANSFER_STATE_UNKNOWN";return O};
_.c(p8,_.a);p8.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
p8.prototype.onCheckboxChange=function(O){var x=this;this.data&&_.hY(this,"yt-playlist-checkbox-changed",function(){var e=_.uK(O).checked?x.data.addToPlaylistServiceEndpoint:x.data.removeFromPlaylistServiceEndpoint;e&&_.GG().resolve(_.Xc).resolveCommand(e,{form:{element:x.hostElement}});_.t("dl_playlist_killswitch")||x.transferState!=="TRANSFER_STATE_UNKNOWN"&&x.transferState!=="TRANSFER_STATE_FAILED"&&x.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:x.data.playlistId,action:"ACTION_SYNC"}})},
100)};
p8.prototype.computeIconType=function(O){return O?"yt-icons:"+O.toLowerCase():null};
p8.prototype.dataChanged=p8.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],p8.prototype,"data",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],p8.prototype,"ytComponentBehavior",void 0);_.B([_.kX("#checkbox"),_.v("design:type",HTMLInputElement)],p8.prototype,"checkbox",void 0);
_.B([_.R({selector:_.pA,selectorArgs:["data.playlistId"]}),_.v("design:type",String)],p8.prototype,"transferState",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],p8.prototype,"dataChanged",null);_.B([_.H({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],p8);
_.n(p8,"ytd-playlist-add-to-option-renderer",function(){if(Z9Y!==void 0)return Z9Y;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Z9Y=O},{mode:1});var Eee=_.K(function(O){var x=O.data;return _.D("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.D("div",null,_.D(_.TT,{text:function(){return x().title}})),_.D(_.F,{cond:function(){return x().subtitle},
then:function(e){return _.D("div",{class:"ytdMenuTitleRendererSubtitle"},_.D(_.TT,{text:e}))}}))},"hj");
Eee.idomCompat=!0;_.wP(Eee,"ytd-menu-title-renderer",{props:{data:_.Ld}});var Rr=function(){var O=_.a.apply(this,arguments)||this;O.addToStrings={ADD_TO_DROPDOWN_LABEL:_.CZ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};O.closeButtonAriaLabel=_.CZ("SBOX_INAPPROPRIATE_CANCEL");O.dialog=_.t("desktop_add_to_playlist_renderer_dialog_popup");return O};
_.c(Rr,_.a);_.b=Rr.prototype;_.b.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"}}}};
_.b.onPopupOpened=function(){_.Ow(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.b.onPopupClosed=function(){_.Ow(this.playlists,"scrollable",!1)};
_.b.computeAriaLabel=function(){var O;if(this==null?0:(O=this.data)==null?0:O.actions){O=_.T(this.data.actions);for(var x=O.next();!x.done;x=O.next())if(x=x.value,x.menuTitleRenderer)return _.db(x.menuTitleRenderer.title)}};
_.b.onTapClose=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Dy.Object.defineProperties(Rr.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if(this==null?0:(O=this.data)==null?0:O.actions){O=_.T(this.data.actions);for(var x=O.next();!x.done;x=O.next())if(x=x.value,x.menuTitleRenderer)return x.menuTitleRenderer}return!1}}});
Rr.prototype.onPopupClosed=Rr.prototype.onPopupClosed;Rr.prototype.onPopupOpened=Rr.prototype.onPopupOpened;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],Rr.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Rr.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],Rr.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Rr.prototype,"addToStrings",void 0);_.B([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.v("design:type",String)],Rr.prototype,"ariaLabel",void 0);_.B([_.R(),_.v("design:type",String)],Rr.prototype,"closeButtonAriaLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Rr.prototype,"dialog",void 0);
_.B([_.kX("#playlists"),_.v("design:type",HTMLElement)],Rr.prototype,"playlists",void 0);_.B([_.kX("ytd-add-to-playlist-create-renderer"),_.v("design:type",Object)],Rr.prototype,"createRenderer",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],Rr.prototype,"menuTitleRenderer",null);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Rr.prototype,"onPopupOpened",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Rr.prototype,"onPopupClosed",null);_.B([_.H({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Rr);
_.n(Rr,"ytd-add-to-playlist-renderer",function(){if(y4L!==void 0)return y4L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return y4L=O},{mode:1});var tAu;var Uk=function(){var O=_.a.apply(this,arguments)||this;O.isPlaylistEditComplete=!1;O.isCollabEngagementDisabled=!1;O.closeButtonAriaLabel=_.CZ("SBOX_INAPPROPRIATE_CANCEL");O.saveButton={title:_.CZ("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"};O.onValueChanged=function(){O.updateSaveButtonState();O.computeCollabEngagementDisabled()};
return O};
_.c(Uk,_.a);_.b=Uk.prototype;_.b.attached=function(){this.JSC$20776_scroller&&(this.JSC$20776_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20776_scroller.attached&&typeof this.JSC$20776_scroller.attached==="function"&&this.JSC$20776_scroller.attached())};
_.b.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.b.onPopupClosed=function(){this.reset()};
_.b.close=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.b.onClickSave=function(){var O=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var x=[];this.nameInput.value!==null&&x.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&x.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var e=Number(this.privacyInput.value);isNaN(e)||x.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:e})}this.votingInput.value!==null&&(e=this.votingInput.value)&&x.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:e});if(x.length>0){var l;_.q((l=this.data)==null?void 0:l.updateSettingsEndpoint,_.vj).actions=x;var C;if((C=this.data)==null?0:C.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){O.close()}}}),this.isPlaylistEditComplete=!0}}};
_.b.computePrivacyBadge=function(O){return O?[{metadataBadgeRenderer:O}]:[]};
_.b.computeEditorData=function(O){var x,e;return O==null?void 0:(x=O.sections)==null?void 0:(e=x[0])==null?void 0:e.playlistSettingsEditorCasualSectionRenderer};
_.b.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.b.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}}}}}};
_.b.computeAriaLabel=function(){var O,x,e,l=(O=this.data)==null?void 0:(x=O.sections)==null?void 0:(e=x[0])==null?void 0:e.playlistSettingsEditorCasualSectionRenderer;return _.db(l==null?void 0:l.title)};
_.b.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"}))};
_.b.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.b.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.b.isNameChanged=function(){var O,x,e;return(((O=this.editorData)==null?void 0:(x=O.name)==null?void 0:(e=x.textInputFormFieldRenderer)==null?void 0:e.value)||"")!==(this.nameInput.value||"")};
_.b.isDescriptionChanged=function(){var O,x,e;return(((O=this.editorData)==null?void 0:(x=O.description)==null?void 0:(e=x.textInputFormFieldRenderer)==null?void 0:e.value)||"")!==(this.descriptionInput.value||"")};
_.b.isPrivacyChanged=function(){var O,x,e,l,C,Q,L,k;return((L=(O=this.editorData)==null?void 0:(x=O.privacy)==null?void 0:(e=x.dropdownFormFieldRenderer)==null?void 0:(l=e.dropdown)==null?void 0:(C=l.dropdownRenderer)==null?void 0:(Q=C.entries)==null?void 0:Q.find(function(M){var G;return M==null?void 0:(G=M.privacyDropdownItemRenderer)==null?void 0:G.isSelected}))==null?void 0:(k=L.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.privacyInput.value};
_.b.isVotingChanged=function(){var O,x,e,l,C,Q,L,k;return((L=(O=this.editorData)==null?void 0:(x=O.voting)==null?void 0:(e=x.dropdownFormFieldRenderer)==null?void 0:(l=e.dropdown)==null?void 0:(C=l.dropdownRenderer)==null?void 0:(Q=C.entries)==null?void 0:Q.find(function(M){var G;return M==null?void 0:(G=M.privacyDropdownItemRenderer)==null?void 0:G.isSelected}))==null?void 0:(k=L.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.votingInput.value};
Uk.prototype.onPopupClosed=Uk.prototype.onPopupClosed;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Uk.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],Uk.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Uk.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],Uk.prototype,"data",void 0);_.B([_.R({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.v("design:type",Array)],Uk.prototype,"privacyBadge",void 0);_.B([_.R({computed:"computeEditorData(data)"}),_.v("design:type",Object)],Uk.prototype,"editorData",void 0);_.B([_.R(),_.v("design:type",Object)],Uk.prototype,"isPlaylistEditComplete",void 0);_.B([_.R(),_.v("design:type",Object)],Uk.prototype,"isCollabEngagementDisabled",void 0);
_.B([_.R({value:{REQUIRED_LABEL:_.CZ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CZ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.v("design:type",Object)],Uk.prototype,"addToStrings",void 0);_.B([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.v("design:type",String)],Uk.prototype,"ariaLabel",void 0);_.B([_.R(),_.v("design:type",String)],Uk.prototype,"closeButtonAriaLabel",void 0);
_.B([_.R(),_.v("design:type",Object)],Uk.prototype,"saveButton",void 0);_.B([_.kX("#name-input"),_.v("design:type",Object)],Uk.prototype,"nameInput",void 0);_.B([_.kX("#description-input"),_.v("design:type",Object)],Uk.prototype,"descriptionInput",void 0);_.B([_.kX("#privacy-input"),_.v("design:type",Object)],Uk.prototype,"privacyInput",void 0);_.B([_.kX("#voting-input"),_.v("design:type",Object)],Uk.prototype,"votingInput",void 0);
_.B([_.kX("#scroller"),_.v("design:type",Object)],Uk.prototype,"JSC$20776_scroller",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Uk.prototype,"onPopupClosed",null);_.B([_.R(),_.v("design:type",Object)],Uk.prototype,"onValueChanged",void 0);_.B([_.H({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Uk);
_.n(Uk,"ytd-playlist-settings-editor-renderer",function(){if(tAu===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);tAu=O}O=tAu;return O},{mode:1});var qWp;_.tI("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var ar=function(){return _.a.apply(this,arguments)||this};
_.c(ar,_.a);_.b=ar.prototype;_.b.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}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.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 O=this.get("data.nextButton.buttonRenderer.navigationEndpoint");O&&(this.nextNavigationEndpoint=O,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.b.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 O={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",O)}}};
_.b.onPopupOpened=function(O){O.detail!==this&&O.detail!==this.hostElement||!_.t("enable_premium_voluntary_pause")||_.Sh(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.b.onNextButtonTap=function(){var O=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);O&&this.ytdOpenPopupBehavior.openPopup(O)};
_.b.updateSelectedResponseIndexFromBinding=function(O){this.selectedResponseIndex=O.detail.value};
ar.prototype.onPopupOpened=ar.prototype.onPopupOpened;ar.prototype.onSelectedResponseIndexChange=ar.prototype.onSelectedResponseIndexChange;ar.prototype.dataChanged=ar.prototype.dataChanged;_.B([_.V(_.FY),_.v("design:type",Object)],ar.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],ar.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],ar.prototype,"selectedResponseIndex",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ar.prototype,"dataChanged",null);_.B([_.T1("selectedResponseIndex"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],ar.prototype,"onSelectedResponseIndexChange",null);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],ar.prototype,"onPopupOpened",null);_.B([_.H({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],ar);
_.n(ar,"ytd-red-cancel-survey-renderer",function(){if(qWp!==void 0)return qWp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return qWp=O},{mode:1});var PJO;var mm=function(){var O=_.a.apply(this,arguments)||this;O.closeButtonAriaLabel=_.CZ("SBOX_INAPPROPRIATE_CANCEL");return O};
_.c(mm,_.a);mm.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
mm.prototype.onClickClose=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],mm.prototype,"rendererStamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mm.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],mm.prototype,"closeButtonAriaLabel",void 0);_.B([_.H({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],mm);
_.n(mm,"ytd-search-filter-options-dialog-renderer",function(){if(PJO!==void 0)return PJO;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return PJO=O},{mode:1});var c4p;var doX=function(){return function(O){O=O.availabilityType;return O===void 0||O==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||O==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var sk=function(){var O=_.a.apply(this,arguments)||this;O.qualityOptions=[];O.upsellOptions=[];O.showUpsellSection=!1;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.rememberSettingsChecked=!1;return O};
_.c(sk,_.a);_.b=sk.prototype;_.b.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}}}}};
_.b.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.b.updateQualityOptions=function(){if(this.formats===void 0)_.Sh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var O=[],x=[];this.showUpsellSection=!1;for(var e=_.T(this.formats),l=e.next();!l.done;l=e.next())(l=l.value)&&(l.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?x.push(l):O.push(l));O.length&&(this.qualityOptions=K6w(O));x.length&&(this.showUpsellSection=!0,this.upsellOptions=K6w(x))}};
_.b.updateRememberString=function(){if(this.downloadQualityPickerEntity)var O=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var x;O=(x=this.data)==null?void 0:x.premiumRememberSettingString}else{var e;O=(e=this.data)==null?void 0:e.rememberSettingString}O=O===void 0?_.CZ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):O;this.rememberSettingsCheckboxRenderer={title:_.J3(O),disabled:!1}};
_.b.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Dy.Object.defineProperties(sk.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var O;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(O=this.data)==null?void 0:O.qualityFormats}}});
sk.prototype.updateRememberString=sk.prototype.updateRememberString;sk.prototype.updateQualityOptions=sk.prototype.updateQualityOptions;sk.prototype.dataChanged=sk.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],sk.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],sk.prototype,"data",void 0);
_.B([_.V(_.$5),_.v("design:type",Object)],sk.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Boolean)],sk.prototype,"selectedUpsellQuality",void 0);_.B([_.R({computed:"computeIcon_(data.premiumIcon)",value:""}),_.v("design:type",String)],sk.prototype,"premiumIcon",void 0);_.B([_.R({selector:u9p,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.v("design:type",Object)],sk.prototype,"downloadQualityPickerEntity",void 0);
_.B([_.R(),_.v("design:type",Array)],sk.prototype,"qualityOptions",void 0);_.B([_.R(),_.v("design:type",Array)],sk.prototype,"upsellOptions",void 0);_.B([_.R(),_.v("design:type",Object)],sk.prototype,"showUpsellSection",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],sk.prototype,"darkerDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],sk.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.B([_.kX("#remember-settings"),_.v("design:type",HTMLInputElement)],sk.prototype,"rememberSettingsCheckbox",void 0);_.B([_.R(),_.v("design:type",Object)],sk.prototype,"rememberSettingsChecked",void 0);_.B([_.R(),_.v("design:type",Function)],sk.prototype,"onRememberSettingsCheckedChanged",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sk.prototype,"dataChanged",null);
_.B([_.T1("downloadQualityPickerEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sk.prototype,"updateQualityOptions",null);_.B([_.T1("selectedUpsellQuality"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],sk.prototype,"updateRememberString",null);_.B([_.H({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],sk);
_.n(sk,"ytd-download-quality-selector-content",function(){if(c4p!==void 0)return c4p;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return c4p=O},{mode:1});var IJp;var Wa=function(){var O=_.a.apply(this,arguments)||this;O.selectedUpsellQuality=!1;O.qualityOptions=[];O.darkerDarkTheme=_.t("web_darker_dark_theme");O.useUpsellDismissAlternate=_.t("use_not_now_dl_upsell_dismiss_cta");O.shouldShowAlternateUpsellDimiss=!1;O.rememberSettings=!1;O.rememberSettingsChecked=!1;O.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};O.rememberSettingsCheckedChanged=function(x){O.rememberSettingsChecked=x};
return O};
_.c(Wa,_.a);_.b=Wa.prototype;
_.b.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.J3(_.CZ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.J3(_.CZ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.J3(_.CZ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.J3(_.CZ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.b.updateQualityOptions=function(){this.formats===void 0?_.Sh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=K6w(this.formats)};
_.b.onQualityOptionsSelect=function(O){if(this.qualityOptions&&O){O!==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 x=_.T(this.qualityOptions.entries()),e=x.next();!e.done;e=
x.next()){e=_.T(e.value);var l=e.next().value;e=e.next().value;var C=void 0,Q=void 0;if(((C=e)==null?void 0:(Q=C.settingsRadioOptionRenderer)==null?void 0:Q.id)===O){this.selectedQualityIndex=l;O=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((O=this.formats[l])==null?void 0:O.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.b.onClickSubmit=function(){var O;if((O=this.downloadButtonRenderer)==null||!O.isDisabled){var x,e;O=(e=(x=this.data)==null?void 0:x.onSubmitEndpoint)!=null?e:{};var l,C;if(this.formats&&(((l=_.q(O,_.bw))==null?0:l.videoId)||((C=_.q(O,_.TA))==null?0:C.playlistId))){var Q,L,k,M,G,X;x={formatType:(M=(Q=this.formats)==null?void 0:(L=Q[(k=this.selectedQualityIndex)!=null?k:0])==null?void 0:L.format)!=null?M:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(G=this.getOfflineEndpoint(O))==null?void 0:(X=G.actionParams)==null?void 0:X.settingsAction)};this.getOfflineEndpoint(O).actionParams=x;this.ytComponentBehavior.resolveCommand(O)}_.Sh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.b.onClickUpsell=function(){var O;if((O=this.upsellButtonRenderer)==null||!O.isDisabled){var x,e;O=(e=(x=this.data)==null?void 0:x.upsellEndpoint)!=null?e:{};this.ytComponentBehavior.resolveCommand(O);_.Sh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);x="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var l,C,Q,L;x=(L=(l=this.formats)==null?void 0:(C=l[(Q=this.selectedQualityIndex)!=null?Q:0])==null?void 0:C.format)!=null?L:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:x}})}};
_.b.onClickClose=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.b.getOfflineSettingsAction=function(O,x){return O?x===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":x:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.b.getOfflineEndpoint=function(O){return _.q(O,_.bw)?_.q(O,_.bw):_.q(O,_.TA)};
_.Dy.Object.defineProperties(Wa.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.J3(_.CZ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var O;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(O=this.data)==null?void 0:O.qualityFormats}}});
Wa.prototype.updateQualityOptions=Wa.prototype.updateQualityOptions;Wa.prototype.dataChanged=Wa.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Wa.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Wa.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Number)],Wa.prototype,"selectedQualityIndex",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"selectedUpsellQuality",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Wa.prototype,"ytdReduxBehavior",void 0);
_.B([_.R({selector:u9p,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.v("design:type",Object)],Wa.prototype,"downloadQualityPickerEntity",void 0);_.B([_.R(),_.v("design:type",Array)],Wa.prototype,"qualityOptions",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Wa.prototype,"darkerDarkTheme",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],Wa.prototype,"useUpsellDismissAlternate",void 0);
_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"downloadButtonRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"upsellButtonRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"cancelButtonRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"upsellCancelButtonRenderer",void 0);_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"rememberSettings",void 0);
_.B([_.R(),_.v("design:type",Object)],Wa.prototype,"rememberSettingsChecked",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Wa.prototype,"dataChanged",null);_.B([_.T1("downloadQualityPickerEntity"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Wa.prototype,"updateQualityOptions",null);_.B([_.H({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Wa);
_.n(Wa,"ytd-download-quality-selector-renderer",function(){if(IJp!==void 0)return IJp;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return IJp=O},{mode:1});var VAY;var hF=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(hF,_.a);hF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hF.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hF.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hF.prototype,"darkerDarkTheme",void 0);_.B([_.R({computed:"computeIcon_(data.infoIcon)"}),_.v("design:type",Object)],hF.prototype,"infoIcon",void 0);
_.B([_.R({computed:"computeIcon_(data.warningIcon)"}),_.v("design:type",Object)],hF.prototype,"warningIcon",void 0);_.B([_.H({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],hF);
_.n(hF,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(VAY!==void 0)return VAY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return VAY=O},{mode:1});var plh;var zV=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(zV,_.a);zV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zV.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"}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zV.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],zV.prototype,"darkerDarkTheme",void 0);_.B([_.H({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],zV);
_.n(zV,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(plh!==void 0)return plh;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return plh=O},{mode:1});var Rle;var rm=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(rm,_.a);rm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rm.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"}}}}};
rm.prototype.onServiceRequestSentOrCompleted=function(O,x){x&&x.actions&&x.actions.length>0&&_.Sh(this.hostElement,"yt-close-popup-action",[this.is])};
rm.prototype.onServiceRequestSentOrCompleted=rm.prototype.onServiceRequestSentOrCompleted;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],rm.prototype,"darkerDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],rm.prototype,"data",void 0);
_.B([_.bH("yt-service-request-completed"),_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],rm.prototype,"onServiceRequestSentOrCompleted",null);_.B([_.H({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],rm);
_.n(rm,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Rle!==void 0)return Rle;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Rle=O},{mode:1});var UvL;var Ha=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.submitButtonDisabled=!0;return O};
_.c(Ha,_.a);_.b=Ha.prototype;_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.b.onDataChanged=function(){var O,x,e;if(((O=this.data)==null?void 0:(x=O.confirmButton)==null?void 0:(e=x.buttonRenderer)==null?void 0:e.isDisabled)!==void 0){var l,C,Q;this.submitButtonDisabled=(l=this.data)==null?void 0:(C=l.confirmButton)==null?void 0:(Q=C.buttonRenderer)==null?void 0:Q.isDisabled}};
_.b.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.b.updateSubmitButtonDisabledFromBinding=function(O){this.submitButtonDisabled=O.detail.value};
_.b.updateSubmitButtonDisabledFromConfirmCheckbox=function(O){this.submitButtonDisabled=!O.detail.value};
Ha.prototype.onDataChanged=Ha.prototype.onDataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ha.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ha.prototype,"darkerDarkTheme",void 0);
_.B([_.R(),_.v("design:type",Object)],Ha.prototype,"submitButtonDisabled",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Ha.prototype,"onDataChanged",null);_.B([_.H({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Ha);
_.n(Ha,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(UvL!==void 0)return UvL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return UvL=O},{mode:1});var aJ4;var K8=function(){return _.a.apply(this,arguments)||this};
_.c(K8,_.a);_.Dy.Object.defineProperties(K8.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var O,x,e;return((O=this.data)==null?void 0:O.title)+" "+((x=this.data)==null?void 0:x.metadataPrimary)+" "+((e=this.data)==null?void 0:e.metadataSecondary)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],K8.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],K8.prototype,"data",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],K8.prototype,"ariaLabel",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],K8);
_.n(K8,"ytd-compact-product-list-item-renderer",function(){if(aJ4!==void 0)return aJ4;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return aJ4=O},{mode:1});var mv$;var dm=function(){return _.a.apply(this,arguments)||this};
_.c(dm,_.a);dm.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]]"}}}}}};
_.Dy.Object.defineProperties(dm.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],dm.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],dm.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],dm);
_.n(dm,"ytd-compact-product-list-renderer",function(){if(mv$!==void 0)return mv$;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return mv$=O},{mode:1});var sc$;var n8=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(n8,_.a);_.b=n8.prototype;_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.b.getBackgroundUrl=function(){var O=this.get("data.headerImage.thumbnails");return O?"url("+_.Sf(O,this.hostElement.clientWidth)+")":""};
_.b.onDataChanged=function(){var O=this.getBackgroundUrl();O&&(this.header.style.backgroundImage=O);O=_.Pq();var x=_.q9(),e=this.get("data.trackingParams");e&&x&&O&&_.WU(O,x,_.Fv(e));O=_.T(this.hostElement.querySelectorAll("yt-img-shadow"));for(x=O.next();!x.done;x=O.next())x.value.onShow()};
_.b.onPopupClosed=function(O){_.uK(O).localName==="ytd-membership-post-cancel-renderer"&&_.Sh(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
n8.prototype.onPopupClosed=n8.prototype.onPopupClosed;n8.prototype.onDataChanged=n8.prototype.onDataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],n8.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],n8.prototype,"darkerDarkTheme",void 0);
_.B([_.kX("#header"),_.v("design:type",HTMLDivElement)],n8.prototype,"header",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],n8.prototype,"onDataChanged",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],n8.prototype,"onPopupClosed",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],n8);
_.n(n8,"ytd-membership-post-cancel-renderer",function(){if(sc$!==void 0)return sc$;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return sc$=O},{mode:1});var WfY;var ua=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(ua,_.a);ua.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ua.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ua.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ua.prototype,"darkerDarkTheme",void 0);_.B([_.kX("ytd-feedback-survey-renderer"),_.v("design:type",Object)],ua.prototype,"feedbackSurveyRenderer",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ua);
_.n(ua,"ytd-sponsorship-confirm-cancel-content",function(){if(WfY!==void 0)return WfY;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return WfY=O},{mode:1});var hle;var Yl=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.maybeSubmitFeedback=function(){O.content&&O.content.maybeSubmitFeedback()};
return O};
_.c(Yl,_.a);_.b=Yl.prototype;_.b.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.b.onYtPopupOpened=function(O,x){x===this&&this.data&&this.data.onOpenCommands&&_.gr(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Sh(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.b.onYtPopupClosed=function(O,x){(x&&x.canceled===!0||x&&x.canceled===!1&&x.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.gr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.b.onYtServiceRequestCompleted=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.b.onYtServiceRequestError=function(O){_.s9(this.hostElement,O.detail.error.message)};
_.b.onDataChanged=function(){if(this.isAttached){var O=this.backgroundUrl;O&&(_.$U(this.hostElement).querySelector("#header").style.backgroundImage=O)}};
_.Dy.Object.defineProperties(Yl.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return O?"url("+_.Sf(O,this.hostElement.clientWidth)+")":""}}});
Yl.prototype.onDataChanged=Yl.prototype.onDataChanged;Yl.prototype.onYtServiceRequestError=Yl.prototype.onYtServiceRequestError;Yl.prototype.onYtServiceRequestCompleted=Yl.prototype.onYtServiceRequestCompleted;Yl.prototype.onYtPopupClosed=Yl.prototype.onYtPopupClosed;Yl.prototype.onYtPopupOpened=Yl.prototype.onYtPopupOpened;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Yl.prototype,"data",void 0);_.B([_.R({value:function(){return _.CZ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.v("design:type",String)],Yl.prototype,"closeButtonAriaLabel",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Yl.prototype,"darkerDarkTheme",void 0);_.B([_.kX("#scrollable"),_.v("design:type",Object)],Yl.prototype,"scrollable",void 0);_.B([_.kX("ytd-sponsorship-confirm-cancel-content"),_.v("design:type",Object)],Yl.prototype,"content",void 0);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Yl.prototype,"onYtPopupOpened",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],Yl.prototype,"onYtPopupClosed",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Yl.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],Yl.prototype,"onYtServiceRequestError",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Yl.prototype,"onDataChanged",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Yl);
_.n(Yl,"ytd-sponsorship-confirm-cancel-renderer",function(){if(hle!==void 0)return hle;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return hle=O},{mode:_.gq("kevlar_poly_si_batch_j081")?1:2});var zlL;var Ba=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(Ba,_.a);Ba.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Ba.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],Ba.prototype,"darkerDarkTheme",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Ba);
_.n(Ba,"ytd-sponsorships-celebration-content",function(){if(zlL!==void 0)return zlL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return zlL=
O},{mode:1});var r4L;var H9u=_.zo(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),va=function(){var O=_.a.apply(this,arguments)||this;O.scriptsAppended=!1;O.useFullWidthPrimaryButton=!1;O.buttonOverrides={type:"tonal",style:"overlay-dark"};return O};
_.c(va,_.a);_.b=va.prototype;_.b.dataChanged=function(){var O;this.useFullWidthPrimaryButton=!((O=this.data)==null||!O.useFullWidthPrimaryButton)};
_.b.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:_.t("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.onDataChanged=function(){var O;(O=this.header)==null||O.style.setProperty("background-color",this.backgroundColor);if(O=this.headerImageUrl){var x;(x=this.header)==null||x.style.setProperty("background-image",O)}x=_.Pq(4);O=_.q9(4);var e=this.get("data.trackingParams");if(e&&O&&x){var l=_.Fv(e);_.WU(x,O,l);_.t("combine_ve_grafts")?_.k0().graftServerVe(e,O,4):_.WU(x,O,l)}x=_.T(this.hostElement.querySelectorAll("yt-img-shadow"));for(O=x.next();!O.done;O=x.next())O.value.onShow();if(x=this.get("data.gtmId"))_.Yq(x,
_.wz("GL","")),this.setupConversionTracking()};
_.b.setupConversionTracking=function(){if(!this.scriptsAppended){var O=document.createElement("script");_.Cx(O,_.e5(H9u.join("")));document.head.appendChild(O);O=document.createElement("noscript");O.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(O);this.scriptsAppended=!0}};
_.b.onPopupClosed=function(O){if(_.uK(O).localName==="ytd-sponsorships-celebration-renderer"){_.Sh(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var x;this.data&&((x=this.data)==null?0:x.dismissCommand)&&_.lV.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Dy.Object.defineProperties(va.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.aF(O)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return O?"url("+_.Sf(O,this.hostElement.getBoundingClientRect().width)+")":""}}});
va.prototype.onPopupClosed=va.prototype.onPopupClosed;va.prototype.onDataChanged=va.prototype.onDataChanged;va.prototype.dataChanged=va.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],va.prototype,"data",void 0);
_.B([_.kX("#header"),_.v("design:type",HTMLElement)],va.prototype,"header",void 0);_.B([_.R(),_.v("design:type",Object)],va.prototype,"scriptsAppended",void 0);_.B([_.R({type:Boolean,reflectToAttribute:!0}),_.v("design:type",Object)],va.prototype,"useFullWidthPrimaryButton",void 0);_.B([_.R(),_.v("design:type",Object)],va.prototype,"buttonOverrides",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],va.prototype,"dataChanged",null);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],va.prototype,"onDataChanged",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],va.prototype,"onPopupClosed",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],va);
_.n(va,"ytd-sponsorships-celebration-renderer",function(){if(r4L!==void 0)return r4L;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return r4L=O},{mode:1});var KfO;var f8=function(){var O=_.a.apply(this,arguments)||this;O.isToggleChecked=!1;return O};
_.c(f8,_.a);f8.prototype.onDataChanged=function(){var O;this.isToggleChecked=((O=this.data)==null?void 0:O.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
f8.prototype.close=function(){var O;((O=this.data)==null?0:O.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
f8.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var O,x=_.q((O=this.data)==null?void 0:O.switchButton,mPL);x&&(this.isToggleChecked&&x.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(x.switchOnInnertubeCommand),!this.isToggleChecked&&x.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(x.switchOffInnertubeCommand))};
f8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
f8.prototype.onDataChanged=f8.prototype.onDataChanged;_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],f8.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],f8.prototype,"isToggleChecked",void 0);_.B([_.R({value:_.CZ("CLOSE")}),_.v("design:type",String)],f8.prototype,"closeButtonAriaLabel",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],f8.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],f8);
_.n(f8,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(KfO!==void 0)return KfO;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return KfO=O},{mode:1});var dvh;var JF=function(){return _.a.apply(this,arguments)||this};
_.c(JF,_.a);_.b=JF.prototype;_.b.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"}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.detached=function(){this.playerElement.stop()};
_.b.onYtServiceRequestCompleted=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.b.onYtServiceRequestError=function(O){_.s9(this.hostElement,O.detail.error.message)};
_.b.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.b.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.b.getTier=function(O,x){return!O||!O.tiers||x<0?null:_.q(O.tiers[x],zXw)};
_.b.moreThanOne=function(O){return!!(O&&O.length>1)};
_.b.tierOverviewTap=function(O){var x=this;this.selectedTier=O.model.index;_.A_(this,function(){_.wr(x.hostElement,"yt-refit")})};
_.b.computeSelectedClass=function(O,x){return this.isSelected(O,x)?"selected":""};
_.b.computeButtonAriaPressed=function(O,x){return this.isSelected(O,x)?"true":"false"};
_.b.isSelected=function(O,x){return O===x};
_.b.onDataChanged=function(){_.$U(this.hostElement).querySelector("#header-overlay").style.visibility="";_.$U(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 O=_.T(this.hostElement.querySelectorAll("yt-img-shadow")),
x=O.next();!x.done;x=O.next())x.value.onShow();var e;this.set("selectedTier",(e=this.get("data.targetTierIndex"))!=null?e:0);var l;(O=(l=this.data)==null?void 0:l.onVisible)&&this.ytComponentBehavior.resolveCommand(O)};
_.b.initializeVe=function(O){var x=_.Pq(),e=_.q9(),l=this.get("data.trackingParams");e&&x&&(this.screenLayer=4,x=_.$K(_.CQm)(void 0,69877,{clientScreenNonce:x,visualElement:e},void 0,void 0,void 0),_.Ig(x,69877,4),e=_.q9(4),l&&e&&(l=_.Fv(l),_.WU(x,e,l),O&&(this.offerVideoVe=_.O9(74659),_.WU(x,l,this.offerVideoVe))))};
_.b.setHeaderBackground=function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.$U(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.aF(O);if(O=this.getHeaderImage())O=_.Sf(O,screen.width),_.$U(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+O+")"};
_.b.getHeaderImage=function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&O?O:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.b.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.b.setupVideoPlayer=function(O){var x=this,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1)return e=x.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),l=x.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.t("kevlar_player_update_killswitch")?x.playerElement.update({args:{autoplay:e,video_id:O,player_params:l}}):x.playerElement.loadVideoWithPlayerVars({autoplay:e,video_id:O,player_params:l}),
L.yield(x.playerElement.getPlayerPromise(),2);C=L.yieldResult;C.addEventListener("onStateChange",function(k){x.onPlayerStateChange(k)});
C.setScreenLayer(x.screenLayer);(Q=_.Pq(4))&&x.offerVideoVe&&_.zD(Q,x.offerVideoVe);e&&(x.pauseOtherPlayers(),x.playerElement.focusOnPlayer(),x.playerElement.getPlayer().hideControls(),_.zl(_.vn,function(){x.fadeOutHeaderOverlay()},4E3));
_.Ra(L)})};
_.b.onPlayerStateChange=function(O){O===1?this.backgroundPlayerElement&&(O=this.backgroundPlayerElement.player_.getPlayerState(),O!==1&&O!==3||this.backgroundPlayerElement.pause()):O===0&&(_.$U(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.$U(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.b.fadeOutHeaderOverlay=function(){_.$U(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.b.onHeaderTap=function(){if(this.offerVideo){_.$U(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var O;((O=this.playerElement.player_)==null?void 0:O.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(O=_.Pq(4))&&this.offerVideoVe&&_.KZ(O,this.offerVideoVe)}};
_.b.getBackgroundImageLayerClass=function(O){return O?"background-image-layer-with-video":""};
_.b.getHeaderClass=function(O){return O?"header-with-video":""};
_.b.getHeaderOverlayClass=function(O){return O?"header-overlay-with-video":""};
_.b.getTitleContainerClass=function(O,x){return O?"title-container-with-video":x?"title-container-without-video-flexible":"title-container-without-video"};
_.b.tierTitleDisplayStatus=function(O){return this.moreThanOne(O)?"hide":"show"};
_.b.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.GG().resolve(_.Vs).getPlayerElement():this.backgroundPlayerElement=_.f7();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var O=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=O===1||O===3;this.backgroundPlayerElement.pause()}};
_.b.isMiniplayerActive=function(){return _.GG().resolve(_.Vs).isMiniplayerActive()};
_.b.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("selected-tier-changed",this.selectedTier))};
JF.prototype.selectedTierChangedForBinding=JF.prototype.selectedTierChangedForBinding;JF.prototype.onDataChanged=JF.prototype.onDataChanged;JF.prototype.onYtPopupClosed=JF.prototype.onYtPopupClosed;JF.prototype.onYtPopupOpened=JF.prototype.onYtPopupOpened;JF.prototype.onYtServiceRequestError=JF.prototype.onYtServiceRequestError;JF.prototype.onYtServiceRequestCompleted=JF.prototype.onYtServiceRequestCompleted;
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],JF.prototype,"data",void 0);_.B([_.R({value:0}),_.v("design:type",Number)],JF.prototype,"selectedTier",void 0);
_.B([_.R({value:""}),_.v("design:type",String)],JF.prototype,"offerVideo",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],JF.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.B([_.R({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.N$(this)}}),
_.v("design:type",String)],JF.prototype,"playerId",void 0);_.B([_.kX("tp-yt-paper-dialog-scrollable"),_.v("design:type",Object)],JF.prototype,"scrollable",void 0);_.B([_.kX("ytd-sponsorships-tier-renderer"),_.v("design:type",Object)],JF.prototype,"tierRenderer",void 0);_.B([_.kX("#player"),_.v("design:type",Object)],JF.prototype,"playerElement",void 0);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],JF.prototype,"onYtServiceRequestCompleted",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],JF.prototype,"onYtServiceRequestError",null);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JF.prototype,"onYtPopupOpened",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JF.prototype,"onYtPopupClosed",null);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JF.prototype,"onDataChanged",null);
_.B([_.T1("selectedTier"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],JF.prototype,"selectedTierChangedForBinding",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],JF);
_.n(JF,"ytd-sponsorships-offer-renderer",function(){if(dvh!==void 0)return dvh;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return dvh=O},{mode:_.gq("kevlar_poly_si_batch_j077")?1:2});var neY;var wm=function(){var O=_.a.apply(this,arguments)||this;O.buttonOverrides={type:"filled",style:"mono"};return O};
_.c(wm,_.a);wm.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}}}}}};
wm.prototype.backgroundColorChanged=function(){var O,x,e,l=(x=_.q((O=this.data)==null?void 0:O.content,rXu))==null?void 0:(e=x.backgroundColor)==null?void 0:e.backgroundColor;l&&(O=_.UA(l),_.$U(this.hostElement).querySelector("#banner").style.backgroundColor=O,_.$U(this.hostElement).querySelector("#abstract-art").style.backgroundColor=O)};
wm.prototype.attached=function(){this.JSC$20862_scroller&&(this.JSC$20862_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20862_scroller.attached&&typeof this.JSC$20862_scroller.attached==="function"&&this.JSC$20862_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wm.prototype.backgroundColorChanged=wm.prototype.backgroundColorChanged;_.B([_.R(),_.v("design:type",Object)],wm.prototype,"data",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#scroller"),_.v("design:type",Object)],wm.prototype,"JSC$20862_scroller",void 0);_.B([_.R(),_.v("design:type",Object)],wm.prototype,"buttonOverrides",void 0);
_.B([_.T1("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],wm.prototype,"backgroundColorChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],wm);
_.n(wm,"ytd-sponsorships-promotion-celebration-renderer",function(){if(neY!==void 0)return neY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return neY=O},{mode:_.gq("kevlar_poly_si_batch_j077")?1:2});var uE4;var YWu;var Sc=function(){return _.a.apply(this,arguments)||this};
_.c(Sc,_.a);Sc.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Sc.prototype.computeIsInitiallyChecked=function(O){return O===1};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Sc.prototype,"data",void 0);_.B([_.kX("#checkbox"),_.v("design:type",Object)],Sc.prototype,"checkbox",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Sc);
_.n(Sc,"ytd-subscription-toggle-option-renderer",function(){if(YWu!==void 0)return YWu;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return YWu=O},{mode:1});var jc=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return O};
_.c(jc,_.a);jc.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"}}}};
jc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jc.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var O=_.$U(this.hostElement).querySelector("#options").selected;O=this.data.options[O].subscriptionRadioOptionRenderer.serviceEndpoint;var x=_.$U(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");x&&O&&O.modifyChannelNotificationPreferenceEndpoint&&(x=x.getValue())&&(O.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[x]);_.GG().resolve(_.Xc).resolveCommand(O,{form:{element:this.hostElement}});
_.Sh(this.hostElement,"yt-close-popup-action")};
_.Dy.Object.defineProperties(jc.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var O=this.data.options,x=0;x<O.length;x++){var e=O[x].subscriptionRadioOptionRenderer;if(e&&e.selected)return x}return null}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],jc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],jc.prototype,"eventForwardingBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],jc.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],jc.prototype,"darkerDarkTheme",void 0);_.B([_.p("data.options"),_.v("design:type",Object),_.v("design:paramtypes",[])],jc.prototype,"initialIndex",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],jc);
_.n(jc,"ytd-subscription-notification-options-renderer",function(){if(uE4!==void 0)return uE4;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return uE4=O},{mode:1});var B0$;var veh=function(){return _.a.apply(this,arguments)||this};
_.c(veh,_.a);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],veh.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],veh.prototype,"data",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],veh);
_.n(veh,"ytd-tvfilm-offer-groups-renderer",function(){if(B0$!==void 0)return B0$;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return B0$=O},{mode:1});var fJp;var NE=function(){var O=_.a.apply(this,arguments)||this;O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(NE,_.a);_.b=NE.prototype;_.b.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"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.b.computeThumbnailClass=function(O){return O.thumbnailOverlays?O.isShow?"thumbnail-show":"thumbnail-movie":O.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.b.computeCommerceSectionClass=function(O){return O.offers&&O.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.b.computeTitleClass=function(O){return O.offers&&O.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.b.onDataChanged=function(){[].concat(_.Kx(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(O){O.onShow()})};
NE.prototype.onDataChanged=NE.prototype.onDataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],NE.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],NE.prototype,"darkerDarkTheme",void 0);
_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],NE.prototype,"onDataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],NE);
_.n(NE,"ytd-ypc-offers-overlay-renderer",function(){if(fJp!==void 0)return fJp;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return fJp=O},{mode:_.gq("kevlar_poly_si_batch_j028")?1:2});var J4L;var wlO=function(){this.usedMethods=new Set};
wlO.prototype.add=function(O){this.usedMethods.add(O)};
wlO.prototype.reset=function(){this.usedMethods.clear()};var N0Y=function(O,x){this.query=O;this.previousSearchQuery=x;this.id=SWw++;if(!jce){x=_.wz("SBOX_SETTINGS");O="https://"+((x==null?void 0:x.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var e=x==null?void 0:x.REQUEST_LANGUAGE;e&&(O+="&hl="+e);(e=x==null?void 0:x.REQUEST_DOMAIN)&&(O+="&gl="+e);O+="&client=youtube&gs_ri=youtube";(e=x==null?void 0:x.SUGG_EXP_ID)&&(O+="&sugexp="+encodeURIComponent(e));(e=x==null?void 0:x.PSUGGEST_TOKEN)&&(O+="&tok="+e);(x=
x==null?void 0:x.SESSION_INDEX)&&(O+="&authuser="+x);_.t("desktop_enable_visual_suggest")&&(O+="&h=180&w=320&ytvs=1");jce=O}},gew=function(O){var x="q="+encodeURIComponent(O.query);
O.previousSearchQuery&&(x+="&pq="+encodeURIComponent(O.previousSearchQuery));return x},$vQ=function(){var O=_.wz("SBOX_SETTINGS"),x={};
if(O==null?0:O.SEND_VISITOR_DATA)x["X-Goog-Visitor-Id"]=O==null?void 0:O.VISITOR_DATA;return x},i9L=function(O){var x=jce;
x+="&gs_id="+O.id.toString(36);x+="&q="+encodeURIComponent(O.query);x+="&cp="+O.query.length;O.previousSearchQuery&&(x+="&pq="+encodeURIComponent(O.previousSearchQuery));(O=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(x+="&video_id="+O);return x},SWw=0,jce="";var O4u=_.mq.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,xdw=_.mq.SEARCH_ENTITY_SUGGESTION_MOVIE,eNQ=_.mq.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,l6u=_.mq.SEARCH_ENTITY_SUGGESTION_TV_SHOW,C2Q=function(O,x){this.text=O;this.bold=x},Q6Y=function(O,x,e){this.input=x;
this.index=e;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=O[0];this.type=O[1];this.subtypes=O[2];var l;this.displayText=OP((l=O[3])==null?void 0:l.b);var C;this.ignoredPrefix=OP((C=O[3])==null?void 0:C.a);var Q,L;this.hasNewVideo=((Q=O[3])==null?void 0:(L=Q.zam)==null?void 0:L.toString())==="true"?!0:!1;var k;this.visualSuggestUrl=(k=O[3])==null?void 0:k.zai;var M;this.entityType=OP((M=O[3])==null?void 0:M.zap);var G;this.entityName=OP((G=O[3])==null?void 0:G.zao);var X;x=OP((X=
O[3])==null?void 0:X.zaf);var y;this.entityMid=(y=O[3])==null?void 0:y.zae;X=uuX(this.subtypes,this.entityMid);if(x&&X){if(x){y="";switch(X){case "YOUTUBE_ENTITY_TYPE_SONG":y=eNQ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":y=O4u;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":y=l6u;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":y=xdw}X=X==="YOUTUBE_ENTITY_TYPE_SONG"||X==="YOUTUBE_ENTITY_TYPE_ALBUM"?y+" \u2022  \u2022 "+x:x}else X="";this.entitySubtitle=X}var Z;this.externalChannelId=(Z=O[3])==null?void 0:Z.zav;var E;
this.entityThumbnailAttributionUrl=(E=O[3])==null?void 0:E.zaq},The=function(O,x){var e=[],l,C=(l=O.displayText)!=null?l:O.text;
(x==null?0:x.useEntityName)&&b4Q(O)&&O.entityName&&(C=O.entityName);if(O.type===33)return e.push(new C2Q(C,!1)),e;if(C.length>=O.input.length&&C.substring(0,O.input.length)===O.input)e.push(new C2Q(O.input,!1)),e.push(new C2Q(C.substring(O.input.length),!0));else{var Q=new Set(O.input.split(/\s/)),L=C.split(/\s/);e=L.map(function(k,M){return new C2Q(k.trim()+(M===L.length-1?"":" "),!Q.has(k))})}return e},b4Q=function(O){var x=!!uuX(O.subtypes);
O=!!O.entityMid;return x||O};var LIu=function(O){this.rawResponse=["",[],{}];this.suggestions=[];try{var x=JSON.parse(Yee(O));if(typeof x==="object"&&x!==null)this.rawResponse=x;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(l){console.log("Suggest: Failed to parse SuggestResponse!");return}var e=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(l,C){return new Q6Y(l,e,C)})};var ksh=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new wlO;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20899_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},AoQ,MtQ=function(){AoQ||(AoQ=new ksh);
return AoQ};
ksh.prototype.updateSuggestions=function(O){var x=this;this.availableSuggestions.forEach(function(e){x.previousSuggestions[e]=!0});
this.availableSuggestions=O.map(function(e){var l=e.type.toString();e.subtypes.length>0&&(l+="i"+e.subtypes.join("i"),l+="k"+e.suggestionSources.COMPLETE_SERVER.toString());return l})};
var DdY=function(O,x){var e=Date.now();O.firstEditTime<0&&(O.firstEditTime=e);x&&(O.lastQueryBuildTime=e);O.lastEditTime=e};
ksh.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20899_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Gsp=function(O){var x="";O.availableSuggestions.forEach(function(C){delete O.previousSuggestions[C]});
for(var e=_.T(Object.keys(O.previousSuggestions)),l=e.next();!l.done;l=e.next())l=l.value,O.previousSuggestions[l]&&(x+=(x?"j":"")+l);return x},FIQ=function(O,x){var e=[];
x&&(e[1]=x.toString());e[0]="youtube";e[7]=Date.now()-O.startTime;e[6]=O.sessionNumber;O.zeroPrefixSuggestionCount>=0&&(e[33]=O.zeroPrefixSuggestionCount);e[13]=O.outOfSyncResponseCount;if(O.availableSuggestions.length>0){for(var l=x="",C=0,Q=_.T(O.availableSuggestions),L=Q.next();!L.done;L=Q.next())L=L.value,L!==l&&(C>1&&(x+="l"+C),x+=(l?"j":"")+L,C=0,l=L),C+=1;C>1&&(x+="l"+C);e[3]=x}e[35]=Gsp(O);O.selectedSuggestionIndex>=0&&(e[2]=O.selectedSuggestionIndex);var k;if(x=(k=_.wz("SBOX_SETTINGS"))==
null?void 0:k.SUGG_EXP_ID)e[19]=O.normalize(x),k=0,O.experimentTriggeredBeforeFinal&&(k|=1),O.experimentTriggeredFinal&&(k|=2),e[20]=k;e[26]=Array.from(O.inputMethodsTracker.usedMethods).join("j");if(O.JSC$20899_totalRoundTripTime>0){e[15]=O.JSC$20899_totalRoundTripTime;e[14]=O.maxRoundTripTime;k=[];for(C=x=0;C<10;C++)l=O.roundTripTimeHistogram[C],l===0?x++:(x>1?k.push(C+"-"+l):x===1?k.push("0j"+l):k.push(l.toString()),x=0);k=k.join("j");e[16]=k}O.zeroPrefixRoundTripTime>0&&(e[36]=O.zeroPrefixRoundTripTime);
O.lastQueryBuildTime>0&&(e[18]=O.lastQueryBuildTime-O.startTime);O.firstEditTime>0&&(e[4]=O.firstEditTime-O.startTime);O.lastEditTime>0&&(e[5]=O.lastEditTime-O.startTime);return e.join(".")};
ksh.prototype.normalize=function(O){return O.replaceAll(".","-")};
var XW$=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var gm=function(){var O=_.a.apply(this,arguments)||this;O.microphoneSpinnerActive=!1;O.noAnimations=!1;O.boundExitClick=function(){O.onExitButtonClick()};
O.speechOverlayClassName="";O.isLevelAnimating=!1;O.playCloseDialogAudioFeedback=!0;O.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return O};
_.c(gm,_.a);_.b=gm.prototype;_.b.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.b.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=fhT()};
_.b.dataChanged=function(){this.logDialog()};
_.b.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var O;(O=this.manager.audioPlayer)!=null&&(O.JSC$20216_audioEnabled=!1)}this.manager.stop();(O=this.manager.audioPlayer)!=null&&(O.JSC$20216_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.b.handleSpeechQueryCompleteAction=function(O){var x=O.navigationAction;x&&(O.trackingParams&&_.k0().graftServerVe(O.trackingParams,this.dialogVe,5),_.wr(this.hostElement,"yt-navigate",{endpoint:x,tempData:this.getNavigationParams(x),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.b.onExitButtonClick=function(){this.closeDialog()};
_.b.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var O;if((O=this.manager)!=null){var x;(x=O.audioPlayer)==null||kZ(x,"failure");O.setState("microphone-off");O.stop()}}else(O=this.manager)==null||O.start()};
_.b.transcriptionChanged=function(){var O,x;(((O=this.transcription)==null?0:O.low)||((x=this.transcription)==null?0:x.high))&&this.setState("transcribing",this.transcription)};
_.b.stateChanged=function(){this.setState(this.state,this.transcription)};
_.b.logDialog=function(){var O;(O=this.data)!=null&&O.trackingParams&&(O=_.k0(),_.tx(O,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=O.graftServerVe(this.data.trackingParams,void 0,5))};
_.b.getNavigationParams=function(O){var x={};if(_.t("web_yt_searchbox")){var e=MtQ();e.inputMethodsTracker.add(6);e=FIQ(e,15);x.gs_l=e;var l;x.oq=((l=_.q(O,_.bK))==null?void 0:l.query)||""}else if(O=window.ytvoicesearchloggingparams){if(O=O())x.oq=O.oq,x.gs_l=O.gs_l}else _.OC(Error("Fl"));return x};
_.b.closeDialog=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.b.setState=function(O,x){if(this.data){var e=this.data,l={};switch(O){case "listening":l={headerText:e.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:e.microphoneButtonAriaLabel};break;case "timeout":l={headerText:e.promptHeader,microphoneState:"try-again",microphoneLabel:e.promptMicrophoneLabel,microphoneAriaLabel:e.promptMicrophoneLabel};break;case "microphone-off":l={headerText:e.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:e.promptMicrophoneLabel,
microphoneAriaLabel:e.promptMicrophoneLabel};break;case "transcribing":(x==null?0:x.low)||(x==null?0:x.high)?l={transcriptionLow:x==null?void 0:x.low,transcriptionHigh:x==null?void 0:x.high,microphoneState:"speaking",microphoneAriaLabel:e.microphoneButtonAriaLabel}:l={headerText:e.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:e.microphoneButtonAriaLabel};break;case "processing":l={headerText:e.loadingHeader,microphoneState:"processing",microphoneAriaLabel:e.microphoneButtonAriaLabel};
break;case "offline":l={headerText:e.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:e.connectionErrorMicrophoneLabel,microphoneAriaLabel:e.connectionErrorMicrophoneLabel};break;case "permission":l={headerText:e.permissionsHeader,bodyLine1:e.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:e.permissionsSubtext};break;case "permission-denied":l={headerText:e.disabledHeader,bodyLine1:e.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:e.disabledSubtext}}l.className=
O;this.speechOverlayState=l;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.b.setMicrophoneState=function(O){var x=this.isLevelAnimating;this.isLevelAnimating=O==="speaking";!x&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=O==="processing"&&!this.noAnimations};
_.b.setClass=function(O){this.speechOverlayClassName&&_.Ow(this.hostElement,this.speechOverlayClassName,!1);O&&(this.speechOverlayClassName=O,_.Ow(this.hostElement,O,!0))};
_.b.runLevelAnimation=function(){var O=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var x=1+Math.random()*.75,e=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+e/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+x+")");_.vn.addJob(function(){O.runLevelAnimation()},3,e)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
gm.prototype.stateChanged=gm.prototype.stateChanged;gm.prototype.transcriptionChanged=gm.prototype.transcriptionChanged;gm.prototype.onPopupClosed=gm.prototype.onPopupClosed;gm.prototype.dataChanged=gm.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],gm.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],gm.prototype,"rendererStamperBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],gm.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],gm.prototype,"eventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],gm.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],gm.prototype,"speechOverlayState",void 0);
_.B([_.R(),_.v("design:type",Object)],gm.prototype,"microphoneSpinnerActive",void 0);_.B([_.R({type:_.t("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.v("design:type",Object)],gm.prototype,"noAnimations",void 0);_.B([_.R({selector:function(O){var x;return(x=O.voiceSearch)==null?void 0:x.transcription}}),
_.v("design:type",Object)],gm.prototype,"transcription",void 0);_.B([_.R({selector:function(O){var x;return(x=O.voiceSearch)==null?void 0:x.overlay}}),
_.v("design:type",String)],gm.prototype,"state",void 0);_.B([_.R(),_.v("design:type",Object)],gm.prototype,"boundExitClick",void 0);_.B([_.kX("#microphone-levels"),_.v("design:type",HTMLElement)],gm.prototype,"level",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gm.prototype,"dataChanged",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gm.prototype,"onPopupClosed",null);
_.B([_.G1("transcription"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gm.prototype,"transcriptionChanged",null);_.B([_.G1("state"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],gm.prototype,"stateChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],gm);
_.n(gm,"ytd-voice-search-dialog-renderer",function(){if(J4L!==void 0)return J4L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return J4L=O},{mode:1});var orL;var $l=function(){var O=_.a.apply(this,arguments)||this;O.isOverlay=!1;O.hidden=!1;return O};
_.c($l,_.a);_.b=$l.prototype;_.b.onPopupClosed=function(){this.toggleIconState(!1)};
_.b.computeIcon=function(){var O,x,e;return(x=_.q((O=this.data)==null?void 0:O.icon,uMT))==null?void 0:(e=x.icon)==null?void 0:e.iconType};
_.b.computeIconBadgeShape=function(){var O;return{iconBadgeType:"cart",iconBadgeText:(O=this.iconBadgeEntity)==null?void 0:O.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.b.onClick=function(){var O;(O=this.data)!=null&&O.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.b.computeHidden=function(O){return!O};
_.b.toggleIconState=function(O){this.iconButton&&(this.iconButton.pressed=O)};
$l.prototype.onPopupClosed=$l.prototype.onPopupClosed;_.B([_.V(_.$5),_.v("design:type",Object)],$l.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],$l.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],$l.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],$l.prototype,"isOverlay",void 0);
_.B([_.R({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.v("design:type",Object)],$l.prototype,"hidden",void 0);_.B([_.R({selectorArgs:["data.iconBadgeEntityKey"],selector:function(O,x){return _.xE(O.entities,"iconBadgeEntity",x)}}),
_.v("design:type",Object)],$l.prototype,"iconBadgeEntity",void 0);_.B([_.kX("yt-icon-button"),_.v("design:type",HTMLButtonElement)],$l.prototype,"iconButton",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],$l.prototype,"onPopupClosed",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],$l);
_.n($l,"ytd-icon-badge-topbar-button-renderer",function(){if(orL!==void 0)return orL;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return orL=O},{mode:1});var yoQ;var ia=function(){var O=_.a.apply(this,arguments)||this;O.premiumOptions=[];O.darkerDarkTheme=_.t("web_darker_dark_theme");return O};
_.c(ia,_.a);ia.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Dy.Object.defineProperties(ia.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ia.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Array)],ia.prototype,"premiumOptions",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],ia.prototype,"darkerDarkTheme",void 0);_.B([_.p("premiumOptions"),_.v("design:type",Object),_.v("design:paramtypes",[])],ia.prototype,"hasPremiumOptions",null);
_.B([_.H({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],ia);
_.n(ia,"ytd-offline-promo-content",function(){if(yoQ!==void 0)return yoQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return yoQ=O},{mode:1});var Z4L;var OR=function(){var O=_.a.apply(this,arguments)||this;O.premiumOptions=[];return O};
_.c(OR,_.a);OR.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var O;this.premiumOptions=nQ4((O=this.data)==null?void 0:O.formats)};
OR.prototype.onClickSubmit=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var O;(O=_.f7())==null||O.pause()};
OR.prototype.attached=function(){this.JSC$20919_scroller&&(this.JSC$20919_scroller.dialogElement=this.hostElement.parentNode)};
_.Dy.Object.defineProperties(OR.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
OR.prototype.dataChanged=OR.prototype.dataChanged;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],OR.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],OR.prototype,"data",void 0);
_.B([_.R({computed:"computeIcon_(data.headersIcon)",value:""}),_.v("design:type",String)],OR.prototype,"headersIcon",void 0);_.B([_.R(),_.v("design:type",Array)],OR.prototype,"premiumOptions",void 0);_.B([_.kX("#scroller"),_.v("design:type",Object)],OR.prototype,"JSC$20919_scroller",void 0);_.B([_.p("headersIcon"),_.v("design:type",Object),_.v("design:paramtypes",[])],OR.prototype,"showIcon",null);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],OR.prototype,"dataChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],OR);
_.n(OR,"ytd-offline-promo-renderer",function(){if(Z4L!==void 0)return Z4L;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Z4L=O},{mode:1});var Ere;var x$=function(){var O=_.a.apply(this,arguments)||this;O.playbackPauseInterval=NaN;O.isLoading=!1;O.hasError=!1;O.dialogClass="";O.youtubeLabel=_.CZ("LOGO_ALT_LABEL",{},"YouTube Home");O.logoName="yt-logos-ext:yt-logo-updated";O.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return O};
_.c(x$,_.a);_.b=x$.prototype;_.b.onDataChange=function(){var O;if(this.showEOMV1Text=!((O=this.data)==null||!O.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.b.attached=function(){this.pausePlayer()};
_.b.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.b.handleLangSelect=function(O){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[O.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.b.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.b.handleSaveConsent=function(O){var x=this;this.showLoadingSpinner();this.showLoadingSpinner();aC$(_.q(O,Yq$)).catch(function(e){_.ft(new _.ry("Something went wrong when save consent "+(e.message?e.message:e)+"."));x.hideLoadingSpinner();x.showErrorMessage()})};
_.b.handleDisablePersonalization=function(O){var x=this;this.showLoadingSpinner();mQY(_.q(O,usY)).then(function(){x.dialog.close();x.resumePlayer()}).catch(function(e){_.ft(new _.ry("Something went wrong when disable personalization "+(e.message?e.message:e)+"."));
x.hideLoadingSpinner();x.showErrorMessage()})};
_.b.showLoadingSpinner=function(){var O=this;this.showSpinnerJobId=_.vn.addLowPriorityJob(function(){O.isLoading=!0},500)};
_.b.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.vn.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.b.showErrorMessage=function(){var O=this;this.hasError=!0;_.vn.addLowPriorityJob(function(){O.hasError=!1},2E3)};
_.b.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.cK(function(){try{var O=_.f7();O&&O.pause()}catch(x){}},100))};
_.b.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var O=_.f7();O&&O.play()}catch(x){}};
_.Dy.Object.defineProperties(x$.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.eomV1Text)return[];O=[];for(var x=["SHIELD","WARNING","BAR_CHART"],e=this.data.eomV1Text.essentialCookieMsg.items,l=0;l<x.length&&l<e.length;l++)O.push({icon:x[l],text:e[l]});return O}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.eomV1Text)return[];O=[];for(var x=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],e=this.data.eomV1Text.nonEssentialCookieMsg.items,l=0;l<x.length&&l<e.length;l++)O.push({icon:x[l],text:e[l]});return O}}});
x$.prototype.onDataChange=x$.prototype.onDataChange;_.B([_.R(),_.v("design:type",Object)],x$.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],x$.prototype,"showEOMV1Text",void 0);_.B([_.R(),_.v("design:type",Object)],x$.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Object)],x$.prototype,"hasError",void 0);_.B([_.R(),_.v("design:type",Number)],x$.prototype,"showSpinnerJobId",void 0);_.B([_.R(),_.v("design:type",Object)],x$.prototype,"dialogClass",void 0);
_.B([_.kX("#dialog"),_.v("design:type",Object)],x$.prototype,"dialog",void 0);_.B([_.kX("#cb-header"),_.v("design:type",HTMLElement)],x$.prototype,"header",void 0);_.B([_.kX("#lang-select"),_.v("design:type",HTMLElement)],x$.prototype,"langSelect",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],x$.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);
_.B([_.R(),_.v("design:type",String)],x$.prototype,"youtubeLabel",void 0);_.B([_.R(),_.v("design:type",Object)],x$.prototype,"logoName",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],x$.prototype,"onDataChange",null);_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],x$.prototype,"eomEssentialCookieMsgItems",null);
_.B([_.p("data"),_.v("design:type",Array),_.v("design:paramtypes",[])],x$.prototype,"eomNonEssentialCookieMsgItems",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],x$);
_.n(x$,"ytd-consent-bump-v2-lightbox",function(){if(Ere!==void 0)return Ere;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return Ere=O},{mode:1});var tt4;var eF=function(){return _.a.apply(this,arguments)||this};
_.c(eF,_.a);eF.prototype.ready=function(){if(!_.WK()||BVp)var O=!0;else BVp=!0,O=!1;O||(O=document.querySelector("ytd-app"),O||(O=document.body),this.internalLightBox=_.$U(O).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.B([_.R(),_.v("design:type",Object)],eF.prototype,"data",void 0);_.B([_.kX("#lightbox"),_.v("design:type",Object)],eF.prototype,"lightBox",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],eF);
_.n(eF,"ytd-consent-bump-v2-renderer",function(){if(tt4!==void 0)return tt4;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return tt4=O},{mode:1});var qEL;var P2Q;var coT;var lC=function(){return _.a.apply(this,arguments)||this};
_.c(lC,_.a);_.b=lC.prototype;_.b.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&lV4(this.toastManager,this.toastType)};
_.b.open=function(O){this.toast&&(this.ephemeralAction&&_.GG().resolve(_.NU).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=O!=null?O:0,this.toastManager.enqueue(this.toast,O)):this.toast.open())};
_.b.close=function(O){var x;(x=this.toast)==null||x.close();this.toastManager&&O===1&&lV4(this.toastManager,O)};
_.b.refit=function(){var O;(O=this.toast)==null||O.refit()};
_.b.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var O;(O=this.toast)==null||O.close()}};
_.b.setVerticalOffset=function(O){this.toast&&(this.toast.verticalOffset=O,this.toast.fit())};
_.b.computeButtonClass_=function(O){return O?"toast-button":""};
_.b.computeText_=function(O){return _.db(O)};
_.b.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ln("toast-opened-changed",this.toastOpened))};
_.b.updateToastOpenedFromBinding=function(O){this.toastOpened=O.detail.value};
_.Dy.Object.defineProperties(lC.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var O,x,e=(O=this.data)==null?void 0:(x=O.actionButton)==null?void 0:x.buttonRenderer;return(e==null?void 0:e.command)||(e==null?void 0:e.serviceEndpoint)||(e==null?void 0:e.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 O=[],x;((x=this.data)==null?0:x.responseText)&&O.push(_.db(this.data.responseText));var e;((e=this.data)==null?0:e.subText)&&O.push(_.db(this.data.subText));var l,C;if((l=this.data)==null?0:(C=l.actionButton)==null?0:C.buttonRenderer){var Q,L;O.push(((Q=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(L=Q.accessibilityData)==null?void 0:L.label)||_.db(this.data.actionButton.buttonRenderer.text))}return O.filter(function(k){return k}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var O,x;return(x=(O=this.toast)==null?void 0:O.opened)!=null?x:!1}}});
lC.prototype.toastOpenedChangedForBinding=lC.prototype.toastOpenedChangedForBinding;lC.prototype.toastOpenedChanged=lC.prototype.toastOpenedChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],lC.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],lC.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],lC.prototype,"duration",void 0);
_.B([_.R(),_.v("design:type",Number)],lC.prototype,"toastType",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],lC.prototype,"useCloseButton",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],lC.prototype,"closeToastOnActionButtonClick",void 0);_.B([_.R({value:function(){return _.CZ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.v("design:type",String)],lC.prototype,"closeButtonAriaLabel",void 0);_.B([_.R(),_.v("design:type",Boolean)],lC.prototype,"toastOpened",void 0);_.B([_.R(),_.v("design:type",Boolean)],lC.prototype,"hasOpened",void 0);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],lC.prototype,"command",null);_.B([_.p("labelText","command","duration"),_.v("design:type",Object),_.v("design:paramtypes",[])],lC.prototype,"ephemeralAction",null);
_.B([_.p("ephemeralAction"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],lC.prototype,"hasEphemeralAction",null);_.B([_.kX("#toast"),_.v("design:type",Object)],lC.prototype,"toast",void 0);_.B([_.R({value:function(){return{style:"call-to-action-inverse"}}}),
_.v("design:type",Object)],lC.prototype,"buttonOverrides",void 0);_.B([_.R({value:{style:"mono-inverse"}}),_.v("design:type",Object)],lC.prototype,"closeButtonOverrides",void 0);_.B([_.R({value:function(){return _.GG().resolve(_.D0(_.fT))}}),
_.v("design:type",Object)],lC.prototype,"toastManager",void 0);_.B([_.p("data.responseText","data.subText","data.actionButton"),_.v("design:type",Object),_.v("design:paramtypes",[])],lC.prototype,"labelText",null);_.B([_.T1("toastOpened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lC.prototype,"toastOpenedChanged",null);
_.B([_.T1("toastOpened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],lC.prototype,"toastOpenedChangedForBinding",null);_.B([_.Va({is:"yt-notification-action-renderer",disableElementRegistration:!0})],lC);
_.n(lC,"yt-notification-action-renderer",function(){if(coT===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;P2Q===void 0&&(P2Q=document.createElement("template"));var l=P2Q;e.call(x,l.content.cloneNode(!0),O.content.firstChild);coT=O}O=coT;return O},{mode:2});var CX=function(){var O=_.a.apply(this,arguments)||this;O.duration=4E3;O.downloadingCount=0;O.downloadedCount=0;O.downloadingOnlySmartDownloads=!1;O.sessionTotalDownloads=0;O.sessionDownloaded=0;O.previousSessionsDownloaded=0;O.totalDownloadPercentage=0;O.currentDownloadProgress=0;O.currentDownloadPercentage=0;O.isLeaderTab=!0;O.isFullScreen=!1;O.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};O.boundBeforeUnload=function(x){O.isLeaderTab&&O.downloadingCount>0&&(x.preventDefault(),
x.returnValue=!0)};
return O};
_.c(CX,_.a);_.b=CX.prototype;
_.b.open=function(){this.updateDownloadState();if(this.data){var O=this.sessionDownloaded+1,x=this.sessionTotalDownloads>1?_.CZ("VIDEOS_DOWNLOADING_RATIO",{downloaded:O.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+O+"/"+this.sessionTotalDownloads):_.CZ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(x=this.sessionTotalDownloads>1?_.CZ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:O.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
O+"/"+this.sessionTotalDownloads):_.CZ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));O=this.isLeaderTab?_.CZ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.db(this.data.responseText)!==x||_.db(this.data.subText)!==O)this.set("data.responseText",_.KA(x)),this.set("data.subText",_.KA(O)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.b.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.b.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.b.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.b.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var O=this.downloadedCount-this.previousSessionsDownloaded;O<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-O);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.b.handleFullscreenChange=function(O){(this.isFullScreen=O)||this.updatePopup()};
CX.prototype.updateCurrentDownloadProgress=CX.prototype.updateCurrentDownloadProgress;CX.prototype.updatePopup=CX.prototype.updatePopup;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],CX.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],CX.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],CX.prototype,"actionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"duration",void 0);_.B([_.R({selector:function(O){return _.HL8(O.entities).length}}),
_.v("design:type",Object)],CX.prototype,"downloadingCount",void 0);_.B([_.R({selector:nXu}),_.v("design:type",Object)],CX.prototype,"downloadedCount",void 0);_.B([_.R({selector:function(O){var x=_.HL8(O.entities);return dQT(O.entities,x)}}),
_.v("design:type",Object)],CX.prototype,"downloadingOnlySmartDownloads",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"sessionTotalDownloads",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"sessionDownloaded",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"previousSessionsDownloaded",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"totalDownloadPercentage",void 0);
_.B([_.R({selector:function(O){var x;O=(x=_.HL8(O.entities))!=null?x:[];return O.length>0?_.VGr(O.slice(-1)):0}}),
_.v("design:type",Object)],CX.prototype,"currentDownloadProgress",void 0);_.B([_.R(),_.v("design:type",Object)],CX.prototype,"currentDownloadPercentage",void 0);_.B([_.R({selector:_.YJr}),_.v("design:type",Object)],CX.prototype,"isLeaderTab",void 0);_.B([_.kX("yt-notification-action-renderer"),_.v("design:type",Object)],CX.prototype,"notificationActionRenderer",void 0);
_.B([_.G1("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],CX.prototype,"updatePopup",null);_.B([_.G1("currentDownloadProgress"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],CX.prototype,"updateCurrentDownloadProgress",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],CX);
_.n(CX,"ytd-video-download-toast-renderer",function(){if(qEL!==void 0)return qEL;var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return qEL=O},{mode:1});var I6T;var Vth;var QD=function(){return _.a.apply(this,arguments)||this};
_.c(QD,_.a);QD.prototype.computeIsRedLogo=function(O,x){!O&&x&&(O=x);return O==="YOUTUBE_RED_LOGO"||O==="YOUTUBE_PREMIUM_LOGO"};
QD.prototype.computeLogoName=function(O){O=this.componentBehavior.computeIcon_(O);return O===""?"yt-logos-ext:yt-logo-updated":O};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],QD.prototype,"componentBehavior",void 0);_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.v("design:type",Boolean)],QD.prototype,"isRedLogo",void 0);_.B([_.R({computed:"computeLogoName(data)"}),_.v("design:type",String)],QD.prototype,"logoName",void 0);_.B([_.R({value:{}}),_.v("design:type",Object)],QD.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],QD.prototype,"logoType",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-logo"})],QD);
_.n(QD,"ytd-logo",function(){if(Vth!==void 0)return Vth;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return Vth=O},{mode:_.gq("kevlar_poly_si_batch_j074")?1:2});var bC=function(){var O=_.a.apply(this,arguments)||this;O.animationRef={};return O};
_.c(bC,_.a);_.b=bC.prototype;_.b.attached=function(){document.addEventListener("yt-navigate-finish",_.Qa(this,this.logYoodle))};
_.b.detached=function(){document.removeEventListener("yt-navigate-finish",_.Qa(this,this.logYoodle))};
_.b.logYoodle=function(){var O,x;if((O=this.data)==null?0:(x=O.loggingDirectives)==null?0:x.trackingParams)this.ytRendererBehavior.markDirty(),_.k0().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.b.computeHideImg=function(O,x){return!!O||!!x};
_.b.computeHideYtdLogo=function(O,x){return!O||!!x};
_.b.computeHideLottie=function(O){return!O};
_.b.computeIsRedLogo=function(O){return O==="YOUTUBE_RED_LOGO"||O==="YOUTUBE_PREMIUM_LOGO"};
_.b.renderLogoEntity=function(){var O=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),x=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),e=this.getLogoTitleText(this.data),l=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==O&&(this.url=O);this.animatedUrl!==x&&(this.animatedUrl=x);this.logoTitleText!==e&&(this.logoTitleText=e);this.lottieUrl!==l&&(this.lottieUrl=l,this.lottiePlayerProps=this.computeLottiePlayerProps(l))};
_.b.getSanitizedThumbnail=function(O){return O&&O.thumbnails?_.j6r(O.thumbnails,122)||"":""};
_.b.getThumbnailUrl=function(O,x){if(!x)return"";var e,l;O=O?(e=x.darkThemeLogo)==null?void 0:e.thumbnail:(l=x.lightThemeLogo)==null?void 0:l.thumbnail;return this.getSanitizedThumbnail(O)};
_.b.getAnimatedThumbnailUrl=function(O,x){return x?this.getSanitizedThumbnail(O?x.darkThemeAnimatedLogo:x.lightThemeAnimatedLogo):""};
_.b.getLogoTitleText=function(O){if(O)return _.db(O.tooltipText)};
_.b.computeLogoIcon=function(O,x){if(x){var e,l;return O?(e=x.darkThemeLogo)==null?void 0:e.icon:(l=x.lightThemeLogo)==null?void 0:l.icon}};
_.b.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.b.getLottieUrl=function(O,x){var e,l,C,Q;return O?x==null?void 0:(e=x.darkThemeLogo)==null?void 0:(l=e.lottieAnimation)==null?void 0:l.url:x==null?void 0:(C=x.lightThemeLogo)==null?void 0:(Q=C.lottieAnimation)==null?void 0:Q.url};
_.b.computeLottiePlayerProps=function(O){if(O){var x;if((x=this.animationRef)==null?0:x.lottieEl){var e;(e=this.animationRef)==null||e.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:O,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.b.onLottieError=function(){this.data&&this.lottieUrl&&_.wr(this.hostElement,"yoodle-error")};
_.b.onImgError=function(){this.data&&!this.lottieUrl&&_.wr(this.hostElement,"yoodle-error")};
bC.prototype.playAnimation=bC.prototype.playAnimation;bC.prototype.renderLogoEntity=bC.prototype.renderLogoEntity;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],bC.prototype,"data",void 0);_.B([_.R({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.v("design:type",Boolean)],bC.prototype,"hideImg",void 0);
_.B([_.R({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.v("design:type",Boolean)],bC.prototype,"hideYtdLogo",void 0);_.B([_.R({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.v("design:type",Boolean)],bC.prototype,"hideLottie",void 0);_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.v("design:type",Boolean)],bC.prototype,"isRedLogo",void 0);
_.B([_.R(),_.v("design:type",Boolean)],bC.prototype,"useDarkThemeYoodle",void 0);_.B([_.R(),_.v("design:type",String)],bC.prototype,"url",void 0);_.B([_.R(),_.v("design:type",String)],bC.prototype,"animatedUrl",void 0);_.B([_.R(),_.v("design:type",String)],bC.prototype,"logoTitleText",void 0);_.B([_.R({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.v("design:type",Object)],bC.prototype,"logoIcon",void 0);_.B([_.R(),_.v("design:type",Object)],bC.prototype,"logoType",void 0);
_.B([_.R(),_.v("design:type",String)],bC.prototype,"lottieUrl",void 0);_.B([_.R(),_.v("design:type",Object)],bC.prototype,"lottiePlayerProps",void 0);_.B([_.R(),_.v("design:type",Object)],bC.prototype,"animationRef",void 0);_.B([_.T1("data"),_.T1("useDarkThemeYoodle"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],bC.prototype,"renderLogoEntity",null);
_.B([_.bH("click"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],bC.prototype,"playAnimation",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],bC);
_.n(bC,"ytd-yoodle-renderer",function(){if(I6T!==void 0)return I6T;var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return I6T=O},{mode:_.gq("kevlar_poly_si_batch_j074")?1:2});var pWO;var RNX;var Udu=_.at.currentPageTypeSelector,a64=_.at.currentPageSubTypeSelector,Tw=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return O};
_.c(Tw,_.a);_.b=Tw.prototype;_.b.onYoodleError=function(){_.t("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.b.computeLogoName=function(O){O=this.componentBehavior.computeIcon_(O);return O===""?"yt-logos-ext:yt-logo-updated":O};
_.b.computeTitle=function(O,x,e){return e&&(x==null?0:x.tooltipText)?_.db(x.tooltipText):_.db(O)};
_.b.computeAriaLabel=function(O,x,e){return e&&(x==null?0:x.tooltipText)?_.db(O):""};
_.b.computeShowYoodle=function(O,x,e){return!O||!x&&!!e&&!_.HX.isEmpty(e)};
_.b.onNavigateHomeAction=function(){if(_.t("kevlar_miniplayer_navigate_home_from_app_killswitch")){var O;(O=_.$U(this.hostElement).querySelector(".yt-simple-endpoint"))==null||O.click()}};
_.b.computeLogoHref=function(O,x,e){var l;(e==null?0:e.onTapCommand)?l=this.componentBehavior.computeHref_(e.onTapCommand):O&&(l=this.componentBehavior.computeHref_(O));return l?l:x};
_.b.computeCommand=function(O,x){return(x==null?void 0:x.onTapCommand)||O};
_.b.getEndpointForm=function(){if(_.t("kevlar_topbar_disable_cache_only_home")){var O=_.GG().resolve(_.gH),x=Udu(O.getState())||"";O=a64(O.getState())||"";return{disableCache:x==="ytd-browse"&&O==="home"}}return{disableCache:!0}};
Tw.prototype.onYoodleError=Tw.prototype.onYoodleError;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Tw.prototype,"componentBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],Tw.prototype,"ytdReduxBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],Tw.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],Tw.prototype,"countryCode",void 0);_.B([_.R({selectorArgs:["data.overrideEntityKey"],selector:function(O,x){return _.xE(O.entities,"logoEntity",x)}}),
_.v("design:type",Object)],Tw.prototype,"logoEntity",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.v("design:type",Boolean)],Tw.prototype,"showYoodle",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],Tw.prototype,"yoodleError",void 0);_.B([_.R({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.v("design:type",String)],Tw.prototype,"titleText",void 0);
_.B([_.R({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.v("design:type",String)],Tw.prototype,"ariaLabelText",void 0);_.B([_.R({value:"/"}),_.v("design:type",String)],Tw.prototype,"defaultEndpointUrl",void 0);_.B([_.R({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.v("design:type",String)],Tw.prototype,"endpointUrl",void 0);
_.B([_.R({computed:"computeCommand(data.endpoint, logoEntity)"}),_.v("design:type",String)],Tw.prototype,"command",void 0);_.B([_.R(),_.v("design:type",Object)],Tw.prototype,"logoType",void 0);_.B([_.R({}),_.v("design:type",Boolean)],Tw.prototype,"useDarkThemeYoodle",void 0);_.B([_.bH("yoodle-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Tw.prototype,"onYoodleError",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Tw);
_.n(Tw,"ytd-topbar-logo-renderer",function(){if(RNX!==void 0)return RNX;var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return RNX=O},{mode:_.gq("kevlar_poly_si_batch_j027")?1:2});var md4=0;var s6L=_.mq.SEARCH_APPEND_LABEL,WIO=_.mq.SUGGESTION_NEW_VIDEOS_TEXT,hNQ=_.mq.SUGGESTION_THUMBNAIL_LABEL,zNX=_.mq.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,roL=_.K(function(O){function x(ZD){var qh,Or;return _.A(function(au){if(au.nextAddress==1)return qh=new Request(ZD),_.tS(au,2),au.yield(fetch(qh,{credentials:"include"}),4);if(au.nextAddress!=2)return E4(!0),_.lb(au,0);Or=_.VP(au);_.ft(Or);_.Ra(au)})}
var e=O.isHighlighted;var l=O.suggestion;var C=O.onClickCallback;var Q=O.onHoverUpdateCallback;var L=O.labels;var k=O.queryBuilderFunction;var M=O.onRemoveCallback;var G=O.suggestionIndex;var X=O.generateUniqueId;var y=O.highlightedId;var Z=O.useScrollMargin;var E=O.isKeyboardMode;var P=null,U=null,W=_.Q5("div"),z=_.Q5("span");O=_.T(_.Iw(!1,void 0,"mxSc0e"));var r=O.next().value,f=O.next().value,u=_.bD("a",function(ZD){ZD&&_.Ai(237477,ZD,U,function(qh){U=qh})}),Y=_.bD("button",function(ZD){ZD&&_.Ai(237477,
ZD,U,function(qh){U=qh})}),J=_.lk(function(ZD){if((ZD==null?void 0:ZD.button)===2)return ZD.preventDefault(),!1;
var qh=_.Pq();qh&&P&&_.dT(qh,P,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Or;C(ZD,l().text,l().index,l().entityMid,ZD==null?void 0:(Or=ZD.detail)==null?void 0:Or.wasSelectedByKeyboard);return!1}),O8=function(){return l().type===35},Xr=function(){return _.t("desktop_enable_single_suggestion_highlight")},Fr=function(){return _.yF("desktop_suggestions_panel_row_height")||0},mL=function(){var ZD;
return _.t("desktop_enable_new_video_metadata")&&((ZD=l())==null?void 0:ZD.hasNewVideo)===!0},Zn=function(){return _.t("desktop_enable_visual_suggest")},q$=function(){return _.t("desktop_enable_entity_suggest")&&b4Q(l())},KV=function(){return l().entitySubtitle},VN=function(){return Xr()?(e==null?void 0:e())||QR()&&!(E==null?0:E()):(e==null?void 0:e())||QR()},Pd=function(){var ZD=_.wz("SBOX_SETTINGS");
return O8()&&!(ZD==null?0:ZD.HIDE_REMOVE_LINK)},f2=function(){return The(l(),{useEntityName:q$()})},p2,OT=!((p2=_.GG().resolve(_.D0(_.rP)))==null||!p2()),Gp=function(){return O8()?_.t("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},zp=function(){return L==null?void 0:L().SUGGESTION_DISMISS_LABEL},m3=function(){return L==null?void 0:L().SUGGESTION_DISMISSED_LABEL};
O=_.T(_.Iw(!1,void 0,"WMms1e"));p2=O.next().value;var E4=O.next().value;O=_.T(_.Iw(!1,void 0,"PyL0t"));var Xw=O.next().value,Tr=O.next().value,QR=Xw,ET=_.lk(function(){k(z.value.innerText);return!1}),Q$=_.lk(function(ZD){ZD.preventDefault();
return!1}),tJ=_.lk(function(ZD){var qh=l().text,Or=_.wz("SBOX_SETTINGS"),au="https://"+(Or.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
au+="&delq="+encodeURIComponent(qh);(qh=Or==null?void 0:Or.PSUGGEST_TOKEN)&&(au+="&tok="+qh);(Or=Or==null?void 0:Or.SESSION_INDEX)&&(au+="&authuser="+Or);x(au);ZD.preventDefault();(ZD=_.Pq())&&U&&_.dT(ZD,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");M(G==null?void 0:G());return!1}),CQ=_.lk(function(){if(Xr()&&(E==null?0:E()))return!1;
Tr(!0);Q(!0);return!1}),hS=_.lk(function(){Tr(!1);
Q(!1);return!1}),JJ=_.lk(function(){f(!0);
return!1}),F4=_.lk(function(){f(!1);
return!1}),DD=_.lk(function(ZD){ZD.preventDefault();
if(l().entityThumbnailAttributionUrl){ZD=l().entityThumbnailAttributionUrl;var qh=l().entityName,Or={urlEndpoint:{url:ZD},commandMetadata:{webCommandMetadata:{url:ZD}}};ZD={buttonViewModel:{title:_.CZ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};Or={buttonViewModel:{title:_.CZ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Or}}};
qh={dialogHeaderViewModel:{headline:{content:qh!=null?qh:_.CZ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var au={basicContentViewModel:{paragraphs:[{text:{content:_.CZ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};ZD={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:qh,footer:{panelFooterViewModel:{primaryButton:Or,secondaryButton:ZD,shouldHideDivider:!0}},content:au}}}}};_.GG().resolve(_.Xc).resolveCommand(ZD)}return!1});
O=_.T(_.Iw("",void 0,"yG5Sx"));var lL=O.next().value,Sw=O.next().value;_.u8(function(){Pd()&&Sw(X==null?void 0:X(G==null?void 0:G()));W.value&&_.Ai(12453,W.value,P,function(ZD){P=ZD})});
return _.D(_.F,{cond:p2,then:function(){var ZD={};return _.D("div",{class:_.xz("ytSuggestionComponentRemovedText",(ZD.ytSuggestionComponentLargerRemovedText=function(){return Zn()},ZD)),
style:function(){return Fr()>0?"height: "+Fr()+"px;":""},
role:"button"},m3)},
else:function(){var ZD={},qh={};return _.D("div",{class:_.xz("ytSuggestionComponentSuggestion",(ZD.ytSuggestionComponentSuggestionHover=function(){return!Xr()},ZD.ytSuggestionComponentHighlighted=VN,ZD.ytSuggestionComponentPersonalizedSuggestion=O8,ZD.ytSuggestionComponentMweb=!1,ZD.ytSuggestionComponentLargerSuggestion=function(){return mL()||Zn()},ZD.ytSuggestionComponentThumbnailSuggestion=function(){return Zn()},ZD.ytSuggestionComponentRoundedSuggestion=function(){return _.t("desktop_enable_scrollable_suggestions_panel")&&
_.t("desktop_enable_suggestions_panel_padding")},ZD.ytSuggestionComponentThumbnailPadding=function(){return Zn()&&!O8()},ZD)),
style:function(){return Fr()>0?"height: "+Fr()+"px;":""},
role:"presentation","on:mousedown":J,"on:mouseover":CQ,"on:mouseout":hS,el:W},_.D("div",{class:_.xz("ytSuggestionComponentText",(qh.ytSuggestionComponentScrollMargin=Z,qh)),"aria-label":function(){return mL()?l().text+" "+WIO:l().text},
id:function(){return X==null?void 0:X(G==null?void 0:G())},
"on:mousedown":J,role:"option"},_.D(_.F,{cond:function(){return l().type!==33},
then:function(){return _.D(_.L7,{icon:Gp,className:"ytSuggestionComponentIcon"})}}),_.D("div",{class:"ytSuggestionComponentLeftContainer"},_.D("span",{el:z,
role:"button",tabindex:0},_.D(_.HE,{each:f2},function(Or){return Or.bold?_.D("span",{class:"ytSuggestionComponentBold"},Or.text):_.D("span",null,Or.text)})),_.D(_.F,{cond:function(){return q$()&&!!l().entitySubtitle||mL()},
then:function(){return _.D("div",{class:"ytSuggestionComponentMetadataContainer"},_.D(_.F,{cond:function(){return q$()&&!!l().entitySubtitle},
then:function(){return _.D("div",{class:"ytSuggestionComponentEntitySubtitle"},KV)}}),_.D(_.F,{cond:function(){return mL()},
then:function(){return _.D("div",{class:"ytSuggestionComponentNewVideoContainer"},_.D("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.D("div",{class:"ytSuggestionComponentNewVideoText"},WIO))}}))}}))),_.D("div",{class:"ytSuggestionComponentRightContainer"},_.D(_.F,{cond:function(){return Zn()&&l().visualSuggestUrl!==void 0},
then:function(){var Or={};return _.D("div",{class:"ytSuggestionComponentThumbnailContainer"},_.D("img",{"aria-label":hNQ,class:_.xz("ytSuggestionComponentVisualSuggestThumbnail",(Or.ytSuggestionComponentCircularFrame=function(){return q$()&&l().subtypes.includes(790)},Or.ytSuggestionComponentEntitySuggestThumbnail=function(){return q$()},Or)),
src:function(){return l().visualSuggestUrl}}),_.D(_.F,{cond:function(){return q$()&&!!l().entityThumbnailAttributionUrl},
then:function(){var au={};return _.D("span",{title:zNX,role:"tooltip"},_.D("div",{"on:mouseover":JJ,"on:mouseout":F4,"on:mousedown":DD,class:_.xz("ytSuggestionComponentThumbnailOverlay",(au.ytSuggestionComponentThumbnailOverlayHidden=function(){return!r()},au))},_.D(_.L7,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.D(_.KO,null,_.D(_.zn,{when:function(){return Zn()&&Pd()}},function(){var Or={};
return _.D("button",{class:_.xz("ytSuggestionComponentRemoveLinkClearButton",(Or.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return lL()&&lL()===(y==null?void 0:y())},Or.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!VN()},Or)),
el:Y,"on:mousedown":tJ,"aria-label":zp,id:function(){return lL()}},_.D(_.L7,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.D(_.zn,{when:function(){return!(Zn()&&l().visualSuggestUrl!==void 0)&&Pd()}},function(){var Or={};
return _.D("a",{class:_.xz("ytSuggestionComponentRemoveLink",(Or.ytSuggestionComponentRemoveLinkDark=OT,Or.ytSuggestionComponentRemoveLinkSelected=function(){return lL()&&lL()===(y==null?void 0:y())},Or)),
el:u,"on:mousedown":tJ,"aria-label":zp,tabindex:0,role:"button",id:function(){return lL()}},zp)}),_.D(_.zn,{when:function(){return!1}},function(){return _.D("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":ET,"on:mousedown":Q$,role:"button","aria-label":s6L},_.D(_.L7,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jj");var H4Q=_.zo(["//www.google.com/textinputassistant/","/","_tia.js"]),KIQ=_.K(function(){return _.D("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.D("button",{class:"ytdTextInputAssistantButton","on:click":_.lk(function(){MtQ().inputMethodsTracker.add(3);var O,x=(O=_.wz("SBOX_SETTINGS"))==null?void 0:O.REQUEST_LANGUAGE;if(x)return _.ag(_.on(H4Q,14,x)),!1})},_.D("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kj");var ddY=function(){this.cache=new Map},nru=function(O){for(var x=_.T(O.cache.entries()),e=x.next();!e.done;e=x.next()){var l=_.T(e.value);
e=l.next().value;l=l.next().value;l.suggestions.some(function(C){return C.type===35})&&O.cache.delete(e)}};var ukw=_.mq.SEARCH,YE$=_.mq.SEARCH_CLEAR_LABEL,Bhw=new _.iR("FAKE_SUGGEST_RESPONSE");_.wP(_.K(function(O){function x(){JJ||(JJ=setTimeout(function(){DD()},1E3))}
function e(VR,cd,KQ){if(VR.trim()){hS=VR;_.JZ("REFINEMENTS_TUPLE",void 0);tJ=!0;var Zs;cd=FIQ(Xw,cd);var yR=(Zs=O.searchEndpoint)==null?void 0:Zs.call(O);_.vQu(VR,cd,yR,Gp.value.value,KQ,window.location.pathname.startsWith("/shorts"));DD();Gp.value.value=VR;Gp.value.blur();Xw.reset()}}
function l(VR){return _.A(function(cd){return cd.return(new Promise(function(KQ){var Zs=new XMLHttpRequest;Zs.open("GET",i9L(VR),!0);Zs.withCredentials=!0;var yR=_.wz("SBOX_SETTINGS");(yR==null?0:yR.SEND_VISITOR_DATA)&&Zs.setRequestHeader("X-Goog-Visitor-Id",yR==null?void 0:yR.VISITOR_DATA);Zs.onload=function(){KQ(Zs.responseText)};
Zs.onerror=function(){_.ft(Error("Hl"));KQ(null)};
setTimeout(function(){Zs.abort()},1E4);
Zs.send(null)}))})}
function C(VR){var cd,KQ,Zs,yR;return _.A(function(Vi){switch(Vi.nextAddress){case 1:return cd={credentials:"include",headers:$vQ()},window.AbortController&&(KQ=new AbortController,setTimeout(function(){KQ.abort("ytsbox-suggest-timeout")},1E4),cd.signal=KQ.signal),_.tS(Vi,2),Vi.yield(fetch(i9L(VR),cd),4);
case 4:Zs=Vi.yieldResult.text();_.lb(Vi,3);break;case 2:return yR=_.VP(Vi),yR!=="ytsbox-abort-last"&&yR!=="ytsbox-suggest-timeout"&&_.ft(yR),Vi.return(null);case 3:return Vi.return(Zs)}})}
function Q(VR){var cd,KQ,Zs;return _.A(function(yR){switch(yR.nextAddress){case 1:if(cd=_.GG().resolve(_.D0(Bhw)))return yR.return(cd);KQ=Date.now();x();return _.t("yt_searchbox_xhr")?yR.yield(l(VR),5):yR.yield(C(VR),4);case 4:Zs=yR.yieldResult;yR.jumpTo(3);break;case 5:Zs=yR.yieldResult;case 3:if(Zs){JJ&&(clearTimeout(JJ),JJ=null);var Vi=Xw,fb=KQ,dk=VR.query.length===0;fb=Date.now()-fb;dk?Vi.zeroPrefixRoundTripTime=fb:(Vi.JSC$20899_totalRoundTripTime+=fb,Vi.maxRoundTripTime=Math.max(Vi.maxRoundTripTime,
fb),dk=Math.floor(fb/100),dk>=XW$.length?++Vi.roundTripTimeHistogram[9]:++Vi.roundTripTimeHistogram[XW$[dk]])}return yR.return(Zs)}})}
function L(VR){var cd,KQ,Zs;return _.A(function(yR){if(yR.nextAddress==1)return(cd=E4.cache.get(gew(VR)))?yR.return(cd):yR.yield(Q(VR),2);KQ=yR.yieldResult;if(KQ===null)return yR.return(null);Zs=new LIu(KQ);VR.query.length===0&&Zs.suggestions.length===0||E4.cache.set(gew(VR),Zs);return yR.return(Zs)})}
function k(VR){var cd,KQ;return _.A(function(Zs){if(Zs.nextAddress==1){CQ=!1;var yR=hS;yR=_.tyW()==="search"?(_.iP(location.href,"search_query")||_.iP(location.href,"q"))===yR:!1;cd=new N0Y(VR,yR?hS:null);return Zs.yield(L(cd),2)}KQ=Zs.yieldResult;if(KQ===null)return Zs.return();cd.query.length===0&&(Xw.zeroPrefixSuggestionCount=KQ.suggestions.length);if(cd.id<=F4)return Xw.outOfSyncResponseCount++,Zs.return();if(document.activeElement!==Gp.value)return Zs.return();F4=cd.id;var Vi=Xw,fb=KQ.rawResponse[2]||
{};Vi.experimentTriggeredBeforeFinal||(Vi.experimentTriggeredBeforeFinal=Vi.experimentTriggeredFinal);Vi.experimentTriggeredFinal=!!fb.e;Xw.updateSuggestions(KQ.suggestions);W(-1);Pd([]);KQ.suggestions!==E()&&SZ(KQ.suggestions.length);P(KQ.suggestions);Xr(KQ.suggestions.length>0&&KQ.suggestions[0].type===33);m3&&(m3.hidden=KQ.suggestions.length===0,O8()?(m3.style.minWidth="",Vi=m3.style,fb=(yR=E()[0])==null?void 0:yR.ignoredPrefix,Vi.marginLeft=(fb?Math.min(fb.length*6,zp.value.offsetWidth):0).toString()+
"px"):(m3.style.minWidth=zp.value.offsetWidth+"px",m3.style.marginLeft="0"),zt());_.Ra(Zs)})}
function M(){if(!tJ)return!1;var VR=_.wz("REFINEMENTS_TUPLE");return VR?(VR=VR[1].map(function(cd,KQ){return new Q6Y([cd,0,[71]],Gp.value.value,KQ)}),E()!==VR&&SZ(VR.length),Pd([]),P(VR),Xw.updateSuggestions(VR),tJ=!1,m3.hidden=VR.length===0,CQ=VR.length>0,!0):!1}
function G(){var VR=Gp.value.value;(typeof VR==="string"||VR instanceof String)&&VR!==""?u(!0):u(!1)}
function X(){if(_.tyW()==="search"){var VR=window.location.href;try{var cd=_.iP(VR,"search_query")||_.iP(VR,"q")||""}catch(KQ){cd=""}cd&&(Gp.value.value=cd,u(!0))}}
var y=_.T(_.Iw([],void 0,"YqWjzb")),Z=y.next().value;y=y.next().value;var E=Z,P=y;Z=_.T(_.Iw(-1,void 0,"hiyF4d"));var U=Z.next().value,W=Z.next().value;Z=_.T(_.Iw(-1,void 0,"SUGY4b"));var z=Z.next().value,r=Z.next().value;Z=_.T(_.Iw(!1,void 0,"ozgCGe"));var f=Z.next().value,u=Z.next().value;Z=_.T(_.Iw(!1,void 0,"fb0dKe"));var Y=Z.next().value,J=Z.next().value;y=_.T(_.Iw(!1,void 0,"KkbNee"));Z=y.next().value;y=y.next().value;var O8=Z,Xr=y;y=_.T(_.Iw(!1,void 0,"b5D7E"));Z=y.next().value;var Fr=y.next().value;
y=_.T(_.Iw(!1,void 0,"UrhqVc"));var mL=y.next().value,Zn=y.next().value;y=_.T(_.Iw(1,void 0,"zwJX4d"));var q$=y.next().value,KV=y.next().value;y=_.T(_.Iw([],void 0,"HryHu"));var VN=y.next().value,Pd=y.next().value;y=_.T(_.Iw(!1,void 0,"Imfa3e"));var f2=y.next().value,p2=y.next().value;y=_.t("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var OT=_.Q5("yt-searchbox"),Gp=_.Q5("input"),zp=_.Q5("div"),m3,E4=
new ddY,Xw=MtQ(),Tr=_.GG().resolve(_.D0(_.rP)),QR=function(){var VR;return((VR=O.forceDarkMode)==null?void 0:VR.call(O))||!(Tr==null||!Tr())},ET=function(){return _.t("desktop_enable_scrollable_suggestions_panel")},Q$="i"+md4++,tJ=!1,CQ=!1,hS="",JJ=null,F4=-1,DD=function(){Pd([]);
P([]);Xr(!1);m3&&(m3.hidden=!0);JJ&&(clearTimeout(JJ),JJ=null);W(-1)},lL=function(VR,cd){VR.preventDefault();
p2(!0);m3&&(m3.hidden=!1);var KQ=U();VR=E();var Zs=VN();cd=fru(cd);KQ+=cd;for(KQ>=VR.length?KQ=-1:KQ<-1&&(KQ=VR.length-1);KQ!==-1&&(Zs.includes(KQ)||KQ>=VR.length||KQ<0);)KQ+=cd,KQ>=VR.length&&(KQ=-1);W(KQ);U()>=0&&(Gp.value.value=E()[U()].text,r(0),G(),VR=U(),Zs=z(),(Zs=document.getElementById(ut[VR][Zs]))&&ET()&&(VR===E().length-1?m3.scrollTop=m3.scrollHeight:Zs.scrollIntoView({block:"nearest",inline:"start"})))},Sw=_.lk(function(VR){if(!(VR.relatedTarget instanceof Element&&VR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){J(!0);
var cd;(cd=O.focusCallback)==null||cd.call(O,!0);M()||(CQ?m3.hidden=!1:(_.wr(OT.value,"yt-autonav-pause-focus",{}),k(VR.target.value)))}}),ZD=_.lk(function(VR){if(!(VR.relatedTarget instanceof Element&&VR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){J(!1);
var cd;(cd=O.focusCallback)==null||cd.call(O,!1);m3.scrollTop=0;m3.hidden=!0;_.wr(OT.value,"yt-autonav-pause-blur",{})}}),qh=function(VR){VR=fru(VR);
var cd;((cd=ut[U()])==null?0:cd[z()+VR])&&r(z()+VR)},Or=_.lk(function(VR){var cd=VR.target;
switch(VR.keyCode){case 13:VR.preventDefault();var KQ;if((KQ=ut[U()])==null?0:KQ[z()]){var Zs;(Zs=document.getElementById(ut[U()][z()]))==null||Zs.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}VR=VR.shiftKey?4:3;KQ=Xw;Zs=U();KQ.selectedSuggestionIndex=Zs;e(cd.value,VR);break;case 27:m3&&(m3.hidden=!0);break;case 40:lL(VR,40);break;case 38:lL(VR,38);break;case 39:qh(39);break;case 37:qh(37);break;case 229:Xw.inputMethodsTracker.add(4);break;default:Xw.inputMethodsTracker.add(1),
DdY(Xw)}return!1}),au=_.lk(function(VR){k(VR.target.value);
G();ET()&&m3&&(m3.scrollTop=0);return!1}),BO=_.lk(function(){Xw.inputMethodsTracker.add(2);
DdY(Xw);return!1});
_.u8(function(){if(m3){Xw.reset();if(window.ResizeObserver){var VR=new ResizeObserver(function(){O8()||(m3.style.minWidth=zp.value.offsetWidth+"px")});
VR.observe(zp.value);(new ResizeObserver(function(){zt()})).observe(m3);
_.YO(function(){VR.disconnect()})}X();
window.addEventListener("yt-navigate-finish",X);window.addEventListener("yt-focus-searchbox",function(){Gp.value.focus()});
var cd;Fr((cd=_.wz("SBOX_SETTINGS"))==null?void 0:cd.HAS_ON_SCREEN_KEYBOARD)}else _.BH(new _.ry("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var OZ=_.lk(function(VR){VR.preventDefault();e(Gp.value.value,12);return!1}),TJ=_.lk(function(VR){VR.preventDefault();
var cd,KQ;(cd=Gp)==null||(KQ=cd.value)==null||KQ.focus();var Zs,yR;((Zs=Gp)==null?void 0:(yR=Zs.value)==null?void 0:yR.value)!==""&&(Gp.value.value="",Gp.value.dispatchEvent(new Event("input")));return!1}),ep=_.lk(function(){var VR=fae(Gp.value.value,E().filter(function(cd){return cd.type!==35}).map(function(cd){return{label:cd.text}}));
_.Sh(OT.value,"yt-open-popup-action",[{openPopupAction:VR},document.body]);return!1}),Iu=_.lk(function(){Gp.value.focus();
return!1}),$d=function(VR,cd,KQ,Zs,yR){Xw.selectedSuggestionIndex=KQ;
e(cd,yR?3:1,Zs)},wo=function(VR){Gp.value.value=VR;
Gp.value.dispatchEvent(new Event("input"));Xw.inputMethodsTracker.add(5);DdY(Xw,!0)},ut=[[]],Pv=function(VR){var cd="searchbox-suggestion"+_.sS(_.jz);
ut[VR].push(cd);return cd},SZ=function(VR){if(E()){ut=[[]];
for(var cd=0;cd<VR;cd++)ut.push([])}},zt=function(){if(ET()){var VR=m3,cd=VR.scrollTop;
VR=VR.scrollHeight-VR.clientHeight;Zn(cd>=VR);cd=Math.abs(VR-cd);cd<=40?KV(1-(40-cd)/40):KV(1)}},t_=function(){return"opacity: "+q$()*100+"%"},Rm=_.lk(function(){zt();
return!1}),nV=_.lk(function(){p2(!1);
return!1}),JL,Iz={},ou={},mo={},mY={};
return _.D("yt-searchbox",{class:_.xz("ytSearchboxComponentHost",(Iz.ytSearchboxComponentMweb=!1,Iz.ytSearchboxComponentDesktop=!0,Iz["yt-searchbox-filled-query"]=function(){return f()},Iz["ytd-masthead"]=function(){return!Y()},Iz.ytSearchboxComponentHostDark=QR,Iz)),
role:"search",el:OT,"client-ve-type":10349},_.D("div",{el:zp,"on:click":Iu,class:_.xz("ytSearchboxComponentInputBox",(ou.ytSearchboxComponentInputBoxDark=QR,ou.ytSearchboxComponentInputBoxHasFocus=Y,ou))},_.D("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":OZ},_.D(_.F,{cond:Y,then:function(){return _.D("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.D(_.L7,{icon:"SEARCH"}))}}),_.D("input",{el:Gp,
class:_.xz("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Q$,"aria-expanded":!((JL=m3)==null?0:JL.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":ZD,"on:focus":Sw,"on:input":au,"on:keydown":Or,"on:paste":BO,placeholder:O.placeholderText,"aria-activedescendant":function(){var VR;return(VR=ut[U()])==null?void 0:VR[z()]},
"aria-autocomplete":"list",role:"combobox"})),_.D(_.F,{cond:Z,then:function(){return _.D("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.D(KIQ,null))}}),_.D(_.F,{cond:f,
then:function(){return _.D("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.D("button",{class:"ytSearchboxComponentClearButton","on:click":TJ,"aria-label":O.clearButtonAriaLabel||YE$},_.D(_.L7,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.D(_.ct,{model:{}})))}})),_.D("button",{class:_.xz("ytSearchboxComponentSearchButton",(mo.ytSearchboxComponentSearchButtonDark=QR,mo)),
"on:click":OZ,"aria-label":ukw,title:O.placeholderText},_.D(_.L7,{icon:"SEARCH"})),_.D(_.F,{cond:function(){if(oQL()&&_.t("mweb_voice_search")&&O.voiceSearchButton)return O.voiceSearchButton()},
then:function(VR){var cd={};return _.D("div",{class:_.xz("ytSearchboxComponentVoiceSearchWrapper",(cd.ytSearchboxComponentHideVoiceSearchButton=function(){return f()},cd))},_.D(_.MR,{data:VR},{buttonRenderer:function(KQ){return _.D(_.MP,{data:KQ.data,
onButtonClickCallback:function(){}})}}))}}),_.D("div",{el:_.Y0(function(VR){return void(m3=VR)}),
id:Q$,class:_.xz("ytSearchboxComponentSuggestionsContainer",(mY.ytSearchboxComponentSuggestionsContainerDark=QR,mY["yt-searchbox-suggestions-container"]=!1,mY.ytSearchboxComponentSuggestionsContainerScrollable=ET(),mY.ytSearchboxComponentSuggestionsContainerAnimated=y,mY)),"on:scroll":Rm,"on:mousemove":nV,role:"listbox",hidden:!0},_.D(_.HE,{each:E},function(VR,cd){return _.D(roL,{suggestion:VR,isHighlighted:function(){return cd()===U()},
onClickCallback:$d,onHoverUpdateCallback:function(KQ){if(_.t("desktop_enable_single_suggestion_highlight")){var Zs=cd();KQ&&(r(0),W(Zs))}},
onRemoveCallback:function(KQ){nru(E4);KQ===void 0||KQ<0||VN().includes(KQ)||Pd([].concat(_.Kx(VN()),[KQ]))},
labels:O.labels,queryBuilderFunction:wo,suggestionIndex:cd,generateUniqueId:Pv,highlightedId:function(){var KQ;return(KQ=ut[U()])==null?void 0:KQ[z()]},
useScrollMargin:ET(),isKeyboardMode:f2})}),_.D(_.F,{cond:function(){return!O8()&&E().find(function(VR){return VR.type!==35})&&_.t("searchbox_reporting")},
then:function(){return _.D("button",{class:"ytSearchboxComponentReportButton","on:mousedown":ep},_.CZ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.D(_.F,{cond:function(){return!mL()&&ET()},
then:function(){return _.D("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.D("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:t_}))}})))},"mj"),"yt-searchbox",{props:{searchEndpoint:_.Ld,
placeholderText:_.Ld,labels:_.Ld,voiceSearchButton:_.Ld,focusCallback:_.vs,clearButtonAriaLabel:_.Ld,forceDarkMode:_.Ld}});var LX=function(){var O=_.a.apply(this,arguments)||this;O.menuButtonTargetId="topbar-guide-menu";O.narrow=!1;O.menuStrings={BACK_ALT_LABEL:_.CZ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.CZ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.CZ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.CZ("SBOX_PLACEHOLDER",void 0,"Search")};O.pageDarkTheme=document.documentElement.hasAttribute("dark");O.watchPageScrollTop=0;O.theater=!1;O.fullscreen=!1;O.disableFrostedGlassDuringViewTransition=
!1;O.desktopUnifiedSearchPanelMode=_.t("desktop_enable_unified_search_panel");O.cinematicTheaterMode=_.t("web_cinematic_theater_mode");O.aiCompanionEnabled=_.t("enable_ai_companion");O.ytSearchboxFocused=!1;O.searchboxLabels=_.wz("SBOX_LABELS");O.topbarIsAboveChipbar=!1;O.isDarkThemeForced=!1;O.areGhostCardsHidden=!1;O.guideKeyboardToggle=!1;O.voiceSearchManager=fhT();O.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};O.setYtSearchboxFocused=
function(x){O.ytSearchboxFocused=x};
O.toggleFrostedGlassDuringViewTransition=function(x){O.disableFrostedGlassDuringViewTransition=x};
return O};
_.c(LX,_.a);_.b=LX.prototype;_.b.computeSimpleText=function(O){return _.db(O)};
_.b.onDarkChanged=function(){for(var O=_.T(this.buttons||[]),x=O.next();!x.done;x=O.next())x.value.isOverlay=!!this.dark;O=_.T(this.buttonRenderers||[]);for(x=O.next();!x.done;x=O.next())x.value.overrides=this.computeButtonOverride()};
_.b.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.b.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"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var O=_.xq(_.O2(),"aa");_.Ow(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||O||(this.isDarkThemeForced=this.dark=!0);this.logoType?(O=this.hostElement.querySelector("#masthead-logo"))&&(_.t("polymer_on_demand_shady_dom")?O.setAttribute("slot","masthead-logo-old"):_.Um(O)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Qa(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Qa(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.b.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Qa(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Qa(this,this.onSetTheaterModeEnabled))};
_.b.dataChanged=function(){var O=this.data;O&&(this.voiceEnabled=O.voiceSearchButton?fhT().isSupported():!1,_.KUz(_.KL(),this.menuButtonTargetId,this.guideButton),O.onReceivedActions&&O.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.gr(this.hostElement,O.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&O&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Ow(this.hostElement,"dark",!1),_.Ow(this.hostElement,"theater",!1),
(O=this.hostElement.querySelector("#masthead-logo"))&&(_.t("polymer_on_demand_shady_dom")?O.setAttribute("slot","masthead-logo-old"):_.Um(O))))};
_.b.computeCenterHidden=function(){var O;return this.data&&!((O=this.data.searchbox)==null?0:O.fusionSearchboxRenderer)};
_.b.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Ow(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.b.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.b.onWatchScroll=function(O){this.watchPageScrollTop=O.detail||0;this.updateMastheadBackgroundOpacity()};
_.b.onFullscreenChangeAction=function(O){O||(this.watchPageScrollTop=0);this.fullscreen=O;this.updateMastheadBackgroundOpacity()};
_.b.onSetTheaterModeEnabled=function(O){this.theater=O.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.b.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.b.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.b.setBackgroundOpacity=function(O){O=this.calculateBackgroundOpacity(O);this.background.style.opacity=""+O};
_.b.calculateBackgroundOpacity=function(O){var x=this.theater&&this.cinematicTheaterMode?.6:0,e=this.hostElement.clientHeight/2;return Math.min(Math.max(O,0),e)/e*(1-x)+x};
_.b.shouldShowCinematicMastHead=function(){var O=_.t("kevlar_watch_grid")&&!_.t("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(O||this.pageDarkTheme)};
_.b.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.b.focusGuide=function(){this.guideButton.focus()};
_.b.onGuideToggleTap=function(){_.wr(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.b.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.b.onGuideToggleHover=function(){_.wr(this.hostElement,"yt-guide-hover")};
_.b.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.b.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.b.closeOnOutsideClickCondition=function(O){for(O=_.n3(O);O[0];){var x=O.shift();if(x instanceof Element&&x.id==="kbd")return!1}return!0};
_.b.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.b.pausePlayer=function(){var O;(O=_.f7())==null||O.pause();this.pauseMiniplayer()};
_.b.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var O;(O=_.GG().resolve(_.Vs).getPlayerElement())==null||O.pause()}};
_.b.isMiniplayerActive=function(){return _.GG().resolve(_.Vs).isMiniplayerActive()};
_.b.updateNarrowFromBinding=function(O){this.narrow=O.detail.value};
_.b.onYtSendFeedbackAction=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.b.registerWithViewTransitionManager=function(){XxQ(_.GG().resolve(_.r9),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Dy.Object.defineProperties(LX.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.t("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var O;return!!(this.aiCompanionEnabled&&((O=this.data)==null?0:O.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var O;return(O=this.data)==null?void 0:O.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
LX.prototype.narrowChanged=LX.prototype.narrowChanged;LX.prototype.onWatchPageChange=LX.prototype.onWatchPageChange;LX.prototype.onRendererStamperFinished=LX.prototype.onRendererStamperFinished;LX.prototype.dataChanged=LX.prototype.dataChanged;LX.prototype.onDarkChanged=LX.prototype.onDarkChanged;_.B([_.V(_.Wg),_.v("design:type",Object)],LX.prototype,"ironResizableBehavior",void 0);_.B([_.V(_.ya$),_.v("design:type",Object)],LX.prototype,"ytdExpandableInputBehavior",void 0);
_.B([_.V(_.Ql.YtdGuideStateAwareBehavior),_.v("design:type",Object)],LX.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],LX.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],LX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.$5),_.v("design:type",Object)],LX.prototype,"ytdReduxBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],LX.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],LX.prototype,"narrow",void 0);_.B([_.R(),_.v("design:type",Object)],LX.prototype,"logoType",void 0);_.B([_.R(),_.v("design:type",Boolean)],LX.prototype,"voiceEnabled",void 0);
_.B([_.R(),_.v("design:type",Object)],LX.prototype,"menuStrings",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],LX.prototype,"dark",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LX.prototype,"pageDarkTheme",void 0);_.B([_.R(),_.v("design:type",Object)],LX.prototype,"watchPageScrollTop",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.aXm}),_.v("design:type",Boolean)],LX.prototype,"isWatchPage",void 0);
_.B([_.R({reflectToAttribute:!0,selector:_.mLW}),_.v("design:type",Boolean)],LX.prototype,"isShortsPage",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LX.prototype,"theater",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LX.prototype,"fullscreen",void 0);_.B([_.R({reflectToAttribute:!0,selector:_.zV$}),_.v("design:type",String)],LX.prototype,"frostedGlassMode",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LX.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],LX.prototype,"aiCompanionEnabled",void 0);_.B([_.R(),_.v("design:type",Object)],LX.prototype,"ytSearchboxFocused",void 0);_.B([_.AY("#buttons > *"),_.v("design:type",Array)],LX.prototype,"buttons",void 0);_.B([_.AY("ytd-button-renderer"),_.v("design:type",Array)],LX.prototype,"buttonRenderers",void 0);
_.B([_.kX("#background"),_.v("design:type",HTMLDivElement)],LX.prototype,"background",void 0);_.B([_.kX("#guide-button"),_.v("design:type",Object)],LX.prototype,"guideButton",void 0);_.B([_.kX("#logo"),_.v("design:type",Object)],LX.prototype,"logo",void 0);_.B([_.R({computed:"computeButtonOverride(dark)"}),_.v("design:type",Object)],LX.prototype,"buttonOverrides",void 0);
_.B([_.G1("dark"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LX.prototype,"onDarkChanged",null);_.B([_.R({value:function(){return this.onVoiceTap.bind(this)}}),
_.v("design:type",Function)],LX.prototype,"boundOnTapVoiceButton",void 0);_.B([_.R(),_.v("design:type",Object)],LX.prototype,"topbarIsAboveChipbar",void 0);_.B([_.R(),_.v("design:type",String),_.v("design:paramtypes",[])],LX.prototype,"guideIcon",null);_.B([_.p("voiceEnabled"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],LX.prototype,"shouldShowVoiceSearchButton",null);
_.B([_.p("data.aiCompanionButton","aiCompanionEnabled"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],LX.prototype,"shouldShowAiCompanionButton",null);_.B([_.p("data"),_.v("design:type",Object),_.v("design:paramtypes",[])],LX.prototype,"voiceSearchButton",null);_.B([_.p("aiCompanionEnabled"),_.v("design:type",String),_.v("design:paramtypes",[])],LX.prototype,"narrowQuery",null);
_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LX.prototype,"dataChanged",null);_.B([_.bH("yt-rendererstamper-finished"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LX.prototype,"onRendererStamperFinished",null);_.B([_.G1("isWatchPage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LX.prototype,"onWatchPageChange",null);
_.B([_.G1("narrow"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],LX.prototype,"narrowChanged",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-masthead"})],LX);
_.n(LX,"ytd-masthead",function(){if(pWO!==void 0)return pWO;var O=document.createElement("template");_.I(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return pWO=O},{mode:_.gq("kevlar_poly_si_batch_j036")?1:2});var vrY;var f6w={},JoQ={},wW$={},SE4={},j6L=(SE4.OFFLINE=(f6w["publicytnetworkstatus-online"]="BACK_ONLINE",f6w),SE4.ONLINE=(JoQ["publicytnetworkstatus-offline"]="OFFLINE",JoQ),SE4.BACK_ONLINE=(wW$["publicytnetworkstatus-offline"]="OFFLINE",wW$.TIMER_TRIGGER="ONLINE",wW$),SE4),k$=function(){var O=_.a.apply(this,arguments)||this;O.currentState="ONLINE";O.scheduledJobId=0;O.bannerString="";O.bannerVe=null;O.networkStatusManagerInstance=new _.eb;return O};
_.c(k$,_.a);_.b=k$.prototype;_.b.attached=function(){var O=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){O.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){O.stateChangeHandler("publicytnetworkstatus-offline")})};
_.b.detached=function(){var O=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){O.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){O.stateChangeHandler("publicytnetworkstatus-offline")})};
_.b.enterState=function(O){var x=this;this.scheduledJobId&&_.vn.cancelJob(this.scheduledJobId);O==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):O==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.CZ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):O==="BACK_ONLINE"&&(this.bannerString=_.CZ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.zl(_.vn,function(){x.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=O};
_.b.stateChangeHandler=function(O){(O=j6L[this.currentState][O])&&this.enterState(O)};
_.b.logVisibility=function(O){var x=_.Pq();this.createBannerVe(O);x&&this.bannerVe&&(O?_.rT(x,[this.bannerVe]):_.HU(x,[this.bannerVe]))};
_.b.createBannerVe=function(O){!this.bannerVe&&O&&(this.bannerVe=_.O9(37929),_.Pu(_.k0(),this.bannerVe))};
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",String)],k$.prototype,"currentState",void 0);_.B([_.R(),_.v("design:type",Object)],k$.prototype,"scheduledJobId",void 0);_.B([_.R(),_.v("design:type",Object)],k$.prototype,"bannerString",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-network-status-banner"})],k$);
_.n(k$,"ytd-network-status-banner",function(){if(vrY!==void 0)return vrY;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return vrY=
O},{mode:1});var NhQ;var AW=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};O.hidden=!0;O.frostedGlass=_.t("web_frosted_glass");return O};
_.c(AW,_.a);AW.prototype.computeHidden=function(O){return O&&O.status?!1:!0};
AW.prototype.handleUpdatePermissionRoleCommand=function(O){if(O=_.q(O,_.Ea2))if(O=_.q(O.renderer,_.ZdN))this.data=O};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],AW.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],AW.prototype,"componentBehavior",void 0);_.B([_.R({value:!0,computed:"computeHidden(data)"}),_.v("design:type",Object)],AW.prototype,"hidden",void 0);_.B([_.R(),_.v("design:type",Object)],AW.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],AW.prototype,"frostedGlass",void 0);
_.B([_.H({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],AW);
_.n(AW,"ytd-permission-role-bottom-bar-renderer",function(){if(NhQ!==void 0)return NhQ;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return NhQ=O},{mode:1});var gru;var $dL;var Jt$={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var MW=function(){return _.a.apply(this,arguments)||this};
_.c(MW,_.a);_.b=MW.prototype;_.b.attached=function(){this.JSC$21015_scroller&&(this.JSC$21015_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21015_scroller.attached&&typeof this.JSC$21015_scroller.attached==="function"&&this.JSC$21015_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(e){e.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var O=_.$U(this.hostElement);O.querySelector("tp-yt-paper-radio-group").selected="";var x=O.querySelector("#reason-text");x&&(x.value="");O.querySelector("#description-text").value=""}};
_.b.canSubmit=function(O,x){_.wr(this.hostElement,"yt-invalidate-popup-tabbables");return!(O&&x)};
_.b.onCancel=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.b.onSubmit=function(){var O=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(Q){return Q.active}).map(function(Q){return Q.innerText.trim()}),x=this.hostElement.querySelector("tp-yt-paper-radio-group"),e=x.selectedItem,l=e.name;
e=e.innerText.trim();var C=x.querySelector("#reason-text");x=void 0;C&&(x=C.value);(C=this.descriptionText.value)&&(C=C.trim());wNL(this.data.searchQuery,O,l,e,C,x);_.Sh(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.b.sendFormSubmitToast=function(){var O=_.v1(_.CZ("SBOX_INAPPROPRIATE_TOAST"));_.Sh(this.hostElement,"yt-open-popup-action",[O,this])};
_.b.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(O){return O.active})};
_.b.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
MW.prototype.onIronSelect=MW.prototype.onIronSelect;MW.prototype.onIronChange=MW.prototype.onIronChange;MW.prototype.dataChanged=MW.prototype.dataChanged;_.B([_.R(),_.v("design:type",Object)],MW.prototype,"data",void 0);_.B([_.R({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.v("design:type",Boolean)],MW.prototype,"submitDisabled",void 0);_.B([_.R(),_.v("design:type",Boolean)],MW.prototype,"suggestionSelected",void 0);
_.B([_.R(),_.v("design:type",Boolean)],MW.prototype,"catagorySelected",void 0);_.B([_.kX("#scroller"),_.v("design:type",Object)],MW.prototype,"JSC$21015_scroller",void 0);_.B([_.kX("#description-text"),_.v("design:type",Object)],MW.prototype,"descriptionText",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MW.prototype,"dataChanged",null);
_.B([_.bH("iron-change"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MW.prototype,"onIronChange",null);_.B([_.bH("iron-select"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],MW.prototype,"onIronSelect",null);_.B([_.H({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],MW);
_.n(MW,"ytd-search-suggestion-report-dialog",function(){if($dL!==void 0)return $dL;var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);return $dL=O},{mode:1});var Do=function(O){var x=O.openPopupAction;var e=O.target;var l=O.container;var C=O.popupContainerConfig;var Q=O.getElement;O=O.removeWhenClosed===void 0?!1:O.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=x;this.target=e;this.container=l;this.popupContainerConfig=C;this.getElement=Q;this.JSC$21021_popupConfig=this.popupContainerConfig.JSC$20150_popupConfig[this.openPopupAction.popupType];this.rendererName=(x=this.getName())?_.b5V(x,Pqw(this.popupContainerConfig,
x)):"";_.t("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=O);this.createPopup()};
Do.prototype.updatePopup=function(O){this.openPopupAction=O;this.JSC$21021_popupConfig=this.popupContainerConfig.JSC$20150_popupConfig[this.openPopupAction.popupType];i4p(this);_.t("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Do.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var eDX=function(O,x,e){(x=x&&O.JSC$21021_popupConfig.narrowProperties?O.JSC$21021_popupConfig.narrowProperties:O.JSC$21021_popupConfig.properties)&&e!==void 0&&(x.isAriaModal=e);OEL(O,x);O.isRtl()&&OEL(O,O.JSC$21021_popupConfig.rtlProperties);xFL(O)};
Do.prototype.createPopup=function(){var O=this.JSC$21021_popupConfig.component;if(this.popupContent=ljw(this,this.rendererName)){if(O){this.popup=ljw(this,O);var x=this.popupContent;_.t("web_enable_wrapper_for_cow_component_in_popup")&&(x=document.createElement("div"),x.appendChild(this.popupContent));_.t("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21021_popupConfig.slotName&&x.setAttribute("slot",this.JSC$21021_popupConfig.slotName);O=this.popup;var e=this.container.tagName.toLowerCase(),
l=_.YU(x);_.bBr(_.vR(O),_.wO(x,e,l));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.t("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.$U(this.container).appendChild(this.popup)}};
var i4p=function(O){var x,e,l=(x=O.openPopupAction.accessibilityData)==null?void 0:(e=x.accessibilityData)==null?void 0:e.label;l&&(O.popup.ariaLabel=l);var C;((C=O.popupContent.polymerController)!=null?C:O.popupContent).data=(0,_.HX.unsafeClone)(O.openPopupAction.popup[O.getName()]);O.popupContent.duration=CS$(O);O.popupContent.positionType=O.openPopupAction.position;var Q=O.openPopupAction.properties;Q&&Object.keys(Q).forEach(function(L){O.popupContent[L]=Q[L]})},OEL=function(O,x){if(x)for(var e=
_.T(Object.keys(x)),l=e.next();!l.done;l=e.next())l=l.value,O.popup[l]=x[l]},xFL=function(O){if(O.openPopupAction.position){var x=O.JSC$21021_popupConfig.positionalProperties&&O.JSC$21021_popupConfig.positionalProperties[O.openPopupAction.position],e=O.JSC$21021_popupConfig.rtlPositionalProperties&&O.JSC$21021_popupConfig.rtlPositionalProperties[O.openPopupAction.position];
x=O.isRtl()&&e?e:x;x.shiftedHorizontalOffset&&(e=O.popup.style.display,O.popup.style.display="block",O.popupContent&&O.popup.positionTarget&&O.popupContent.clientWidth>O.popup.positionTarget.clientWidth&&(x.horizontalOffset=O.popup.positionTarget.clientWidth/2-x.shiftedHorizontalOffset),O.popup.style.display=e);OEL(O,x)}},QTw=function(O,x){if(x)for(var e=_.T(Object.keys(x)),l=e.next();!l.done;l=e.next())l=l.value,O.popup.style[l]=x[l]};
Do.prototype.getName=function(){return _.vE(this.openPopupAction.popup,"renderer")||_.vE(this.openPopupAction.popup,"dialog")||_.vE(this.openPopupAction.popup,"model")||void 0};
var CS$=function(O){O=O.openPopupAction.durationHintMs;return O===0?O:Math.max(4E3,O||4E3)};
Do.prototype.isRtl=function(){return _.wz("HTML_DIR")==="rtl"};
var ljw=function(O,x){O=O.getElement(x,O.target);O==null&&_.ft(new _.ry("popup getElement returned null",x));return O};var bEQ={};
bEQ.YtPopupContainerBehavior=[_.OJ.YtComponentBehavior,_.Wt.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_);_.f1(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Js(this.hostElement)},
closePopup:function(O){var x=this.createCacheKey(void 0,O);this.popups_[x]&&this.handleClosePopupAction_(void 0,O)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.vn.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.vn.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(O){O.opened&&O.keepBelowPlayer&&this.ensurePopupBelowPlayer(O)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var O in this.popups_){var x=this.popups_[O];if(x.popup.scrollAction==="refit"){var e=x.popup.positionTarget.getBoundingClientRect(),l=x.popup;e=e.top;var C=x;if(!C.naturalHeight){C.popup.hidden=!1;C.popup.style.position="fixed";C.popup.style.top="0px";C.popup.style.left="0px";var Q=C.popup.getBoundingClientRect();C.naturalHeight=Q.bottom-Q.top;C.popup.refit()}l.hidden=!(e>=C.naturalHeight+60);x.popupContent.clientHeight===0&&x.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(O){this.popupContainerConfig=O},
handleOpenPopupAction:function(O,x){var e=O.openPopupAction,l=_.GG().resolve(_.D0(_.fT))&&e.popupType==="TOAST";l&&!e.uniqueId&&(e.uniqueId=_.MI());if(!_.t("popup_container_parent_target_killswitch")){var C;x=(C=this.getParentTarget(x))!=null?C:x}var Q=this.ensurePopup_(e,x);return new _.If(function(L){Q.then(function(k){if(!k)return L();this.maybeCreateNarrowMediaQuery_();var M=this.createCacheKey(k.rendererName,k.openPopupAction.uniqueId);if(e.showOncePerUniqueId){if(this.shownPopupKeys_.has(M))return L();
this.shownPopupKeys_.add(M)}M=this.popups_[M];var G=!(!M||!M.openPopupAction.beReused);G=!!e.reusePopup||G;if(k.popup.opened&&!G){l&&!k.openPopupAction.replacePopup||this.handleClosePopupAction_(k.rendererName,k.openPopupAction.uniqueId);G=e.popupType==="DIALOG"&&!_.t("popup_container_dialog_reopen_killswitch");if(!l&&!G&&M&&M.target==x&&!k.openPopupAction.replacePopup)return L();_.A_(k.popup,function(){this.completeOpenPopupAction_(e,x,k);L()}.bind(this))}else k.popup.opened?k.updatePopup(e):this.completeOpenPopupAction_(e,
x,k),L()}.bind(this))}.bind(this))},
getParentTarget:function(O){if(O&&O instanceof HTMLElement)for(var x=_.T(Object.entries(this.popups_)),e=x.next();!e.done;e=x.next())if(e=_.T(e.value),e.next(),e=e.next().value,this.popupClosesOnClick(e)&&e.popup.contains(O))return e.target},
popupClosesOnClick:function(O){return O.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(O.rendererName.toUpperCase())},
completeOpenPopupAction_:function(O,x,e){e.updatePopup(O);O=this.narrowMediaQuery_.queryMatches;var l=this.isAriaModal;e.target=x;var C;x=((C=e.target.polymerController)!=null?C:e.target).popupPositionTarget||e.target;e.JSC$21021_popupConfig.targetContainer&&(x=e.container);e.popup.positionTarget=x;e.popupContent.positionTarget=x;xFL(e);e.JSC$21021_popupConfig.forceFocus&&(e.popupContent.style.outline="none");e.popupContent.tabIndex=-1;e.JSC$21021_popupConfig.narrowProperties&&(e.popup.style.position=
"static");e.JSC$21021_popupConfig.preventAutonav&&e.popup.setAttribute("prevent-autonav",!0);e.JSC$21021_popupConfig.forceCloseOnOutsideClick&&e.popup.setAttribute("force-close-on-outside-click",!0);eDX(e,O,l);QTw(e,e.JSC$21021_popupConfig.styles);e.isRtl()&&QTw(e,e.JSC$21021_popupConfig.rtlStyles);if(!e.openPopupAction.shouldStopParentSignal){var Q;C=(Q=e.target.polymerController)!=null?Q:e.target;(e.popupContent.startForwardingEvents||e.popupContainerConfig.forwardingEnabledPopups.has(e.rendererName))&&
C.parentComponent!==e.popupContent&&e.popupContent!==e.target&&e.target!==document.body&&(e.popupContent.startForwardingEvents?e.popupContent.startForwardingEvents(e.popupContainerConfig.forwardedEvents,e.target):(e.JSC$21021_eventForwarder||(e.JSC$21021_eventForwarder=new _.wj(e.popupContent)),e.JSC$21021_eventForwarder.start(e.popupContainerConfig.forwardedEvents,e.target)))}e=e.popup;e.addEventListener("iron-overlay-opened",_.Qa(this,this.onPopupIronOverlayOpened_));e.addEventListener("iron-overlay-closed",
_.Qa(this,this.onPopupIronOverlayClosed_));e.addEventListener("iron-overlay-canceled",_.Qa(this,this.onPopupIronOverlayCanceled_));e.addEventListener("yt-refit",_.Qa(this,this.refitPopup_));e.addEventListener("yt-invalidate-popup-tabbables",_.Qa(this,this.handleInvalidatePopupTabbables_));e.open()},
getPopupDurationMs_:function(O){return O.durationHintMs===0?O.durationHintMs:Math.max(4E3,O.durationHintMs||4E3)},
handleClosePopupAction_:function(O,x){var e=_.t("web_popup_cache_key_killswitch")||!!x;if(O||e){var l=this.createCacheKey(O,x);O=(O=this.popups_[l])&&O.popup}else O=_.VWF(_.Sa);if(O&&O.close){if(x=_.GG().resolve(_.D0(_.qL)))O.restoreFocusOnClose=x.isKeyBoardInUse();O.close();this.removePopup_(O,l)}},
handleClosePopupCommand_:function(O){O.closePopupCommand&&O.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,O.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(O){var x={},e;for(e in this.popups_)if(x={key$jscomp$1221:x.key$jscomp$1221},x.key$jscomp$1221=e,!O||!O.some(function(Q){return function(L){return L==Q.key$jscomp$1221}}(x))){var l=this.popups_[x.key$jscomp$1221],C=l.popup;
_.GG().resolve(_.D0(_.fT))&&l.openPopupAction.popupType==="TOAST"||(C&&C.close&&C.close(),this.removePopup_(C,x.key$jscomp$1221))}},
handleClosePopupsAction_:function(O){O.forEach(function(x){var e=this.popups_[x];e&&((e=e.popup)&&e.close&&e.close(),this.removePopup_(e,x))}.bind(this))},
handleGetPopupOpenedAction_:function(O,x){return(x=this.createCacheKey(O,x))&&this.popups_[x]?this.popups_[O].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var O=[],x;for(x in this.popups_){var e=this.popups_[x];e.popup.opened&&O.push(e)}return O},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(O,x){_.t("ytpopup_disable_default_html_caching")&&O&&O.removeWhenClosed&&(_.$U(this.hostElement).removeChild(O),x&&this.popups_[x]&&delete this.popups_[x])},
shouldReusePopup_:function(O){return!(!O||!O.reusePopup)||!(!O||!O.beReused)},
ensurePopup_:function(O,x){this.maybeCreateNarrowMediaQuery_();var e=_.vE(O.popup,"renderer")||_.vE(O.popup,"dialog")||_.vE(O.popup,"model");if(!e)return _.$7();e=_.b5V(e,Pqw(this.popupContainerConfig,e));return _.$7(this.getAndMaybeCreatePopup_(O,e,x))},
getAndMaybeCreatePopup_:function(O,x,e){var l=this.createCacheKey(x,O.uniqueId);if(this.popups_[l])return this.popups_[l];O=new Do({openPopupAction:O,target:e,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(x)});return this.popups_[l]=O},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(O){return _.t("ytpopup_disable_default_html_caching")?O&&O.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",_.Qa(this,this.openPopupQueryMatchesChanged_)),_.$U(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(O){O=O.detail.value;for(var x in this.popups_)eDX(this.popups_[x],O)},
onPopupIronOverlayClosed_:function(O){var x=O.currentTarget,e=_.pCr(x);e=e.length>0?e[0]:x;if(e.is!=="ytd-reel-watch-while-dialog-renderer"||O.target.is!=="tp-yt-iron-dropdown"){O.detail.popup=x;O.detail.popupRenderer=e;var l,C={context:{openingElement:((l=this.popups_[(e==null?void 0:e.is)||""])==null?void 0:l.target)||void 0}};Object.assign(C,O.detail);var Q;_.wr((Q=e.hostElement)!=null?Q:e,"yt-popup-closed",C);x.removeEventListener("yt-refit",_.Qa(this,this.refitPopup_));x.removeEventListener("yt-invalidate-popup-tabbables",
_.Qa(this,this.handleInvalidatePopupTabbables_));x.removeEventListener("iron-overlay-canceled",_.Qa(this,this.onPopupIronOverlayCanceled_));x.removeEventListener("iron-overlay-closed",_.Qa(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(x)}},
onPopupIronOverlayCanceled_:function(O,x){var e=O.currentTarget,l=_.pCr(e);l=l.length>0?l[0]:e;if(l.is!=="ytd-reel-watch-while-dialog-renderer"||O.target.is!=="tp-yt-iron-dropdown"){var C;_.wr((C=l.hostElement)!=null?C:l,"yt-popup-canceled",O.detail);C=x?_.n3(x):null;(!x||["click","tap"].includes(x.type))&&!e.hasAttribute("force-close-on-outside-click")&&e.positionTarget&&C&&C.includes(e.positionTarget)&&O.preventDefault();e.restoreFocusOnClose=_.cg.keyboardEventMatchesKeys(x,"esc")}},
onPopupIronOverlayOpened_:function(O){O=O.currentTarget;var x=_.pCr(O);x=x.length>0?x[0]:O;var e,l;_.wr((e=x.hostElement)!=null?e:x,"yt-popup-opened",(l=x.hostElement)!=null?l:x);O.keepBelowPlayer&&(this.ensurePopupBelowPlayer(O,!0),this.dynamicallyPositionedElements_.add(O));e=_.GG().resolve(_.D0(_.qL));l=!!x.querySelector("#toast");e&&e.isKeyBoardInUse()&&!l&&(typeof x.focusFirstItem==="function"?x.focusFirstItem():(x=_.Pfd(O),x.length&&x[0].focus()));O.removeEventListener("iron-overlay-opened",
_.Qa(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(O){O=O.currentTarget;O.refit&&O.refit()},
refitPopups_:function(){for(var O in this.popups_)this.popups_[O].refit()},
handleInvalidatePopupTabbables_:function(O){O=O.currentTarget;O.invalidateTabbables&&O.invalidateTabbables()},
createCacheKey:function(O,x){return _.t("web_popup_cache_key_killswitch")?x?O+"#"+x:O:x?"#"+x:O},
openSheet:function(O,x){var e=O==null?void 0:O.openPopupActionCommand;if(!e&&(O==null?0:O.viewModel)){if(O.sheetPosition)a:switch(O.sheetPosition){case "SHEET_POSITION_RIGHT":e="OPEN_POPUP_POSITION_RIGHT";break a;default:e="OPEN_POPUP_POSITION_UNKNOWN"}else e=void 0;e={openPopupAction:{popup:{sheetViewModel:O.viewModel},popupType:"CONTEXTUAL_SHEET",position:e}}}e&&this.handleOpenPopupAction(e,x)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var O=this;return _.A(function(x){return x.return(O.handleGetOpenedPopupsAction_().filter(function(e){var l;return((l=e.openPopupAction)==null?void 0:l.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(O,x,e){if(_.t("web_dialog_utils_killswitch")){var l=O==null?void 0:O.openPopupActionCommand,C=(e==null?0:e.ariaLabel)?{accessibilityData:{accessibilityData:{label:e.ariaLabel}}}:void 0;!l&&(O==null?0:O.viewModel)&&(l={openPopupAction:Object.assign({},{popup:{dialogViewModel:O.viewModel},popupType:(e==null?0:e.isModal)?"MODAL":"DIALOG"},C&&C)});l&&this.handleOpenPopupAction(l,x)}else{if(C=O==null?void 0:O.viewModel){var Q=e=e===void 0?{}:e;e=Q.ariaLabel;C={popup:{dialogViewModel:C},
popupType:Q.isModal?"MODAL":"DIALOG"};Q={accessibilityData:{label:e}};e&&(C.accessibilityData=Q);C={openPopupAction:C}}else C=void 0;if(C=(l=C)!=null?l:O==null?void 0:O.openPopupActionCommand)this.isAriaModal=_.t("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(C,x)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var O=this;return _.A(function(x){return x.return(O.handleGetOpenedPopupsAction_().filter(function(e){var l;return((l=e.openPopupAction)==null?void 0:l.popupType)==="DIALOG"}).length>0)})}}];var TZ$;var L7e;var kvO=_.zo(["about:blank"]),Gw=function(){var O=_.a.apply(this,arguments)||this;O.isMuted=!1;O.pageLoadTimeoutId=void 0;return O};
_.c(Gw,_.a);_.b=Gw.prototype;_.b.dataChanged=function(){var O=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var x=this.data.url,e=_.f$(x);_.t("enable_yt_ata_iframe_authuser")?(e=_.f$(x),_.gk(this.iframe,SeQ(e))):_.gk(this.iframe,e);this.pageLoadTimeoutId=_.zl(_.Xu(),function(){return void O.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Ni({destination:window,iframe:this.iframe,origin:_.YdT(e.toString()),channelName:"ataiframe",onMessage:_.ju3(B6w,function(l){vR4(l.data)?(l=_.Nh(l.data,1,_.xL,_.Dd()),l.length!==1?_.ft(Error("Il")):(l=l[0],l===3?(O.isMuted=!0,O.logStateChanged({adMuteRequested:!0})):l===1&&O.close())):_.ft(Error("Jl"))}),
onEstablished:function(){O.cancelPageLoadTimeout();O.logStateChanged({pageLoadSucceeded:!0})}})}};
_.b.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Xu().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.b.logStateChanged=function(O){var x;if((x=this.data)==null?0:x.trackingParams)O={adsClientData:{aboutThisAdData:O}},_.k0().stateChanged(this.data.trackingParams,O)};
_.b.close=function(){_.Sh(this.hostElement,"yt-close-popup-action",[this.is])};
_.b.handlesPopupClosed=function(O,x){var e=this,l,C;return _.A(function(Q){if(Q.nextAddress==1)return _.wz("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Sh(e.hostElement,"on-about-this-ad-popup-closed",[e.isMuted,x]),Q.jumpTo(0)):O&&jL$(O)?Q.yield(NCQ(O),4):(e.isMuted&&_.Sh(e.hostElement,"yt-mute-ad-action",[e.is,e]),Q.jumpTo(0));if(l=Q.yieldResult){var L=C=new _.fg(l),k=e.isMuted;L.getOptions().includes("onAboutThisAdPopupClosed")?_.olT(L,"onAboutThisAdPopupClosed",{isMuted:k,layoutId:x}):_.m8("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Ra(Q)})};
_.b.onPopupClosed=function(O){var x=this,e,l;return _.A(function(C){e=_.on(kvO);_.gk(x.iframe,e);x.cancelPageLoadTimeout();if(!x.data)return C.jumpTo(0);x.ytRendererBehavior.markDirty();l=O.detail.context.openingElement;return C.yield(x.handlesPopupClosed(l,x.data.layoutId),0)})};
_.b.detached=function(){this.cancelPageLoadTimeout()};
_.b.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Gw.prototype.onPopupClosed=Gw.prototype.onPopupClosed;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.B([_.kX("#iframe"),_.v("design:type",HTMLIFrameElement)],Gw.prototype,"iframe",void 0);_.B([_.R(),_.v("design:type",Object)],Gw.prototype,"data",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Gw.prototype,"dataChanged",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype",Promise)],Gw.prototype,"onPopupClosed",null);_.B([_.Va({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Gw);
_.n(Gw,"yt-about-this-ad-renderer",function(){if(L7e===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;TZ$===void 0&&(TZ$=document.createElement("template"));var l=TZ$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);L7e=O}O=L7e;return O},{mode:2});var ARO;var Mrh;var DFL=function(O){var x=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=x.message;"stack"in x&&(this.stack=x.stack);this.maxFileSizeMB=O;Object.setPrototypeOf(this,DFL.prototype)};
_.c(DFL,Error);var Gvp=function(O,x){var e=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=e.message;"stack"in e&&(this.stack=e.stack);this.minWidth=O;this.minHeight=x;Object.setPrototypeOf(this,Gvp.prototype)};
_.c(Gvp,Error);var F7h=function(O){this.requirements=O;this.JSC$21049_maxFileSize=O.maxFileSizeMB*1024*1024},XkX=function(O,x){if(x.size>O.JSC$21049_maxFileSize)throw new DFL(O.requirements.maxFileSizeMB);
};var okL=function(O,x){this.canvas=O;this.imageEditorBuilder=x};
okL.prototype.addEventListeners=function(O){var x=function(C){yRQ(O,C)};
this.JSC$21055_mouseDownEvent=x;var e=function(C){ZEQ(O,C)};
this.JSC$21055_mouseMoveEvent=e;var l=function(){EkQ(O)};
this.JSC$21055_mouseUpEvent=l;this.canvas.addEventListener("mousedown",x);this.canvas.addEventListener("mousemove",e);document.addEventListener("mouseup",l)};
okL.prototype.removeEventListeners=function(){this.JSC$21055_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21055_mouseDownEvent);this.JSC$21055_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21055_mouseMoveEvent);this.JSC$21055_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21055_mouseUpEvent)};
var tru=function(O,x){O.removeEventListeners();return new Promise(function(e){var l=new Image;l.crossOrigin="anonymous";l.onload=function(){var C=O.imageEditorBuilder(O.canvas,l);O.addEventListeners(C);e(C)};
l.src=x})},Fh=function(O,x,e,l,C,Q,L,k){this.canvas=O;
this.image=x;this.requiredRatio=e;this.minImageCropDimension=l;this.minOutputImageResolution=C;this.component=Q;this.styleFocusedCorner=k===void 0?!0:k;this.action=2;this.focusedCorner=this.resizeCorner=0;O=this.canvas.getContext("2d");if(!O)throw Error("Kl");this.ctx=O;this.canvasMargin=L!=null?L:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;L=this.image;O=this.canvasInnerWidth/L.width;L.height*O>912&&(O=L.width/L.height*912/L.width);L=O;this.scaledImageWidth=this.canvas.width%2?
$oQ(this.image.width*L):gQ4(this.image.width*L);this.scaledImageHeight=Math.round(this.image.height*L);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21058_overlayMarginBottom=this.JSC$21058_overlayMarginTop=this.canvasMargin;this.JSC$21058_overlayMarginRight=this.JSC$21058_overlayMarginLeft=this.horizontalMargin;this.JSC$21058_overlayWidth=this.scaledImageWidth;this.JSC$21058_overlayHeight=this.scaledImageHeight;
O=this.image.width/this.image.height;O>this.requiredRatio?(this.JSC$21058_overlayWidth=this.canvas.width%2?$oQ(this.scaledImageHeight*this.requiredRatio):gQ4(this.scaledImageHeight*this.requiredRatio),this.JSC$21058_overlayMarginRight=this.JSC$21058_overlayMarginLeft=(this.canvas.width-this.JSC$21058_overlayWidth)/2):O<this.requiredRatio&&(this.JSC$21058_overlayHeight=this.canvas.height%2?$oQ(this.scaledImageWidth/this.requiredRatio):gQ4(this.scaledImageWidth/this.requiredRatio),this.JSC$21058_overlayMarginBottom=
this.JSC$21058_overlayMarginTop=(this.canvas.height-this.JSC$21058_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*L,this.scaledImageWidth);qDY(this)};
Fh.prototype.getContext=function(){return this.ctx};
var yRQ=function(O,x){x={x:Math.round(x.pageX-O.canvas.getBoundingClientRect().left),y:Math.round(x.pageY-O.canvas.getBoundingClientRect().top)};O.dragStart=x;PSL(O,x)!==0?(O.action=1,cRX(O,x),O.resizeCorner=PSL(O,x)):x.x>O.JSC$21058_overlayMarginLeft&&x.x<O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth&&x.y>O.JSC$21058_overlayMarginTop&&x.y<O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight&&(O.action=0)},Ije=function(O,x){switch(x){case 1:return{x:O.JSC$21058_overlayMarginLeft,
y:O.JSC$21058_overlayMarginTop};case 2:return{x:O.JSC$21058_overlayMarginLeft,y:O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight};case 3:return{x:O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth,y:O.JSC$21058_overlayMarginTop};case 4:return{x:O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth,y:O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight};default:throw Error("Ll");}},pkw=function(O,x){if(O.focusedCorner!==0){O.dragStart=Ije(O,O.focusedCorner);
O.action=1;O.resizeCorner=O.focusedCorner;var e=O.dragStart.x,l=O.dragStart.y;switch(x){case 0:O.focusedCorner===1||O.focusedCorner===4?(e-=10,l-=10):(e-=10,l+=10);break;case 1:O.focusedCorner===1||O.focusedCorner===4?(e+=10,l+=10):(e+=10,l-=10);break;case 2:e=O.focusedCorner===1||O.focusedCorner===4?e-10:e+10;l-=10;break;case 3:e=O.focusedCorner===1||O.focusedCorner===4?e+10:e-10;l+=10;break;default:throw Error("Ml");}VrY(O,{x:e,y:l});qDY(O);O.action=2;O.dragStart=void 0}},ZEQ=function(O,x){x={x:Math.round(x.pageX-
O.canvas.getBoundingClientRect().left),
y:Math.round(x.pageY-O.canvas.getBoundingClientRect().top)};cRX(O,x);switch(O.action){case 1:VrY(O,x);break;case 0:O.dragStart&&(O.JSC$21058_overlayMarginLeft=Math.max(O.horizontalMargin,Math.min(O.JSC$21058_overlayMarginLeft-(O.dragStart.x-x.x),O.horizontalMargin+O.scaledImageWidth-O.JSC$21058_overlayWidth)),O.JSC$21058_overlayMarginRight=O.canvas.width-O.JSC$21058_overlayMarginLeft-O.JSC$21058_overlayWidth,O.JSC$21058_overlayMarginTop=Math.max(O.canvasMargin,Math.min(O.JSC$21058_overlayMarginTop-
(O.dragStart.y-x.y),O.scaledImageHeight-O.JSC$21058_overlayHeight+O.canvasMargin)),O.JSC$21058_overlayMarginBottom=O.canvas.height-(O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight));break;default:return}qDY(O);O.dragStart=x},EkQ=function(O){O.action=2;
O.dragStart=void 0;document.body.style.cursor="auto"},cRX=function(O,x){switch(PSL(O,x)){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:O.action!==1&&(document.body.style.cursor="auto")}},PSL=function(O,x){var e=O.JSC$21058_overlayMarginLeft-5,l=O.JSC$21058_overlayMarginTop-5,C=O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth-5;
O=O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-5;return RD$(x,{x:e,y:l})?1:RD$(x,{x:C,y:l})?3:RD$(x,{x:e,y:O})?2:RD$(x,{x:C,y:O})?4:0},RD$=function(O,x){return O.x>=x.x&&O.x<=x.x+10&&O.y>=x.y&&O.y<=x.y+10},VrY=function(O,x){if(O.dragStart)switch(O.resizeCorner){case 2:Math.abs((O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth-x.x)/(x.y-O.JSC$21058_overlayMarginTop))>=O.requiredRatio?UFw(O,x.x):ajO(O,x.y);
break;case 1:Math.abs((O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth-x.x)/(O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-x.y))>=O.requiredRatio?mFL(O,x.x):ajO(O,x.y);break;case 4:Math.abs((x.x-O.JSC$21058_overlayMarginLeft)/(x.y-O.JSC$21058_overlayMarginTop))>=O.requiredRatio?UFw(O,x.x):sTX(O,x.y);break;case 3:Math.abs((x.x-O.JSC$21058_overlayMarginLeft)/(O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-x.y))>=O.requiredRatio?mFL(O,x.x):sTX(O,x.y);break;default:throw Error("Nl");
}},UFw=function(O,x){var e=O.JSC$21058_overlayMarginTop;
O.JSC$21058_overlayMarginBottom=W7p(O,x);O.JSC$21058_overlayHeight=O.canvas.height-O.JSC$21058_overlayMarginBottom-e;O.JSC$21058_overlayWidth=Math.round(O.JSC$21058_overlayHeight*O.requiredRatio);hDQ(O)},mFL=function(O,x){var e=O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight;
O.JSC$21058_overlayMarginTop=W7p(O,x);O.JSC$21058_overlayHeight=e-O.JSC$21058_overlayMarginTop;O.JSC$21058_overlayWidth=Math.round(O.JSC$21058_overlayHeight*O.requiredRatio);hDQ(O)},hDQ=function(O){switch(O.resizeCorner){case 2:case 1:O.JSC$21058_overlayMarginLeft=O.canvas.width-O.JSC$21058_overlayMarginRight-O.JSC$21058_overlayWidth;
break;case 4:case 3:O.JSC$21058_overlayMarginRight=O.canvas.width-O.JSC$21058_overlayMarginLeft-O.JSC$21058_overlayWidth;break;default:throw Error("Nl");}},ajO=function(O,x){var e=O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth;
O.JSC$21058_overlayMarginLeft=zDT(O,x);O.JSC$21058_overlayWidth=e-O.JSC$21058_overlayMarginLeft;O.JSC$21058_overlayHeight=Math.round(O.JSC$21058_overlayWidth/O.requiredRatio);rRe(O)},sTX=function(O,x){var e=O.JSC$21058_overlayMarginLeft;
O.JSC$21058_overlayMarginRight=zDT(O,x);O.JSC$21058_overlayWidth=O.canvas.width-O.JSC$21058_overlayMarginRight-e;O.JSC$21058_overlayHeight=Math.round(O.JSC$21058_overlayWidth/O.requiredRatio);rRe(O)},rRe=function(O){switch(O.resizeCorner){case 2:case 4:O.JSC$21058_overlayMarginBottom=O.canvas.height-O.JSC$21058_overlayMarginTop-O.JSC$21058_overlayHeight;
break;case 1:case 3:O.JSC$21058_overlayMarginTop=O.canvas.height-O.JSC$21058_overlayMarginBottom-O.JSC$21058_overlayHeight;break;default:throw Error("Nl");}},W7p=function(O,x){switch(O.resizeCorner){case 2:x=O.canvas.height-(O.JSC$21058_overlayMarginTop+HE$(O,x));
break;case 4:x=O.canvas.height-(O.JSC$21058_overlayMarginTop+K7h(O,x));break;case 1:x=O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-HE$(O,x);break;case 3:x=O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-K7h(O,x);break;default:throw Error("Nl");}return Math.max(x,O.canvasMargin)},HE$=function(O,x){x=O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth-Math.max(x,O.horizontalMargin);
x=x<0?O.JSC$21058_overlayWidth:Math.max(x,O.minOverlayWidth);return Math.round(x/O.requiredRatio)},K7h=function(O,x){x=O.canvas.width-Math.max(O.canvas.width-x,O.horizontalMargin)-O.JSC$21058_overlayMarginLeft;
x=x<0?O.JSC$21058_overlayWidth:Math.max(x,O.minOverlayWidth);return Math.round(x/O.requiredRatio)},zDT=function(O,x){switch(O.resizeCorner){case 2:x=O.canvas.width-O.JSC$21058_overlayMarginRight-dF$(O,x);
break;case 4:x=O.canvas.width-O.JSC$21058_overlayMarginLeft-dF$(O,x);break;case 1:x=O.canvas.width-O.JSC$21058_overlayMarginRight-nkL(O,x);break;case 3:x=O.canvas.width-O.JSC$21058_overlayMarginLeft-nkL(O,x);break;default:throw Error("Nl");}return Math.max(x,O.horizontalMargin)},dF$=function(O,x){x=O.canvas.height-Math.max(O.canvas.height-x,O.canvasMargin)-O.JSC$21058_overlayMarginTop;
return x<0?O.JSC$21058_overlayWidth:Math.max(Math.round(x*O.requiredRatio),O.minOverlayWidth)},nkL=function(O,x){x=O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-Math.max(x,O.canvasMargin);
return x<0?O.JSC$21058_overlayWidth:Math.max(Math.round(x*O.requiredRatio),O.minOverlayWidth)},qDY=function(O){O.ctx.clearRect(0,0,O.canvas.width,O.canvas.height);
O.ctx.drawImage(O.image,0,0,O.image.width,O.image.height,O.horizontalMargin,O.canvasMargin,O.canvas.width-2*O.horizontalMargin,O.scaledImageHeight);O.ctx.fillStyle="rgba(0, 0, 0, 0.7)";O.ctx.fillRect(O.horizontalMargin,O.JSC$21058_overlayMarginTop,O.JSC$21058_overlayMarginLeft-O.horizontalMargin,O.JSC$21058_overlayHeight);O.ctx.fillRect(O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth,O.JSC$21058_overlayMarginTop,O.JSC$21058_overlayMarginRight-O.horizontalMargin,O.JSC$21058_overlayHeight);O.ctx.fillRect(O.horizontalMargin,
O.canvasMargin,O.scaledImageWidth,O.JSC$21058_overlayMarginTop-O.canvasMargin);O.ctx.fillRect(O.horizontalMargin,O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight,O.scaledImageWidth,O.JSC$21058_overlayMarginBottom-O.canvasMargin);O.drawOverlay();O.component&&_.wr(O.component,"image-updated")};
Fh.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21058_overlayMarginLeft,this.JSC$21058_overlayMarginTop,this.JSC$21058_overlayWidth,this.JSC$21058_overlayHeight);uLL(this)};
var uLL=function(O){var x=O.JSC$21058_overlayMarginLeft-5,e=O.JSC$21058_overlayMarginTop-5,l=O.JSC$21058_overlayMarginLeft+O.JSC$21058_overlayWidth-5,C=O.JSC$21058_overlayMarginTop+O.JSC$21058_overlayHeight-5;O.ctx.fillStyle="#FFF";O.ctx.fillRect(x,e,10,10);O.ctx.strokeRect(x,e,10,10);O.ctx.fillRect(l,e,10,10);O.ctx.strokeRect(l,e,10,10);O.ctx.fillRect(x,C,10,10);O.ctx.strokeRect(x,C,10,10);O.ctx.fillRect(l,C,10,10);O.ctx.strokeRect(l,C,10,10);if(O.focusedCorner!==0&&O.styleFocusedCorner){O.ctx.lineWidth=
4;O.ctx.strokeStyle="#3EA6FF";switch(O.focusedCorner){case 1:--x;--e;break;case 2:--x;e=C-1;break;case 3:x=l-1;--e;break;case 4:x=l-1;e=C-1;break;default:return}O.ctx.strokeRect(x,e,12,12)}};
Fh.prototype.crop=function(O,x){x=x===void 0?!0:x;var e=this.image.width/this.scaledImageWidth,l=document.createElement("canvas"),C=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],Q=this.JSC$21058_overlayWidth*e,L=this.JSC$21058_overlayHeight*e;l.width=Math.max(Q,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);l.height=Math.max(L,C);O&&(l.width=Math.min(l.width,l.height),l.height=Math.min(l.width,l.height));
O=l.getContext("2d");if(!O)throw Error("Bl");C=(this.JSC$21058_overlayMarginLeft-this.horizontalMargin)*e;e*=this.JSC$21058_overlayMarginTop-this.canvasMargin;x||(O.fillStyle="white",O.fillRect(0,0,l.width,l.height));O.drawImage(this.image,C,e,Q,L,0,0,l.width,l.height);return l};var YDT=function(O,x,e,l,C){Fh.call(this,O,x,e,l,void 0,C,8,!1)};
_.c(YDT,Fh);YDT.prototype.drawOverlay=function(){var O=this.getContext(),x=this.JSC$21058_overlayWidth,e=this.JSC$21058_overlayHeight,l=this.JSC$21058_overlayMarginTop,C=this.JSC$21058_overlayMarginLeft;O.lineWidth=2;O.strokeStyle="#3EA6FF";O.beginPath();O.arc(C+x/2,l+e/2,x/2,0,2*Math.PI);O.stroke();O.strokeRect(C,l,x,e);uLL(this)};
var BZw={maxFileSizeMB:15,minWidth:98,minHeight:98},vk4=["image/png","image/jpeg","image/gif"],Xh=function(){var O=_.a.apply(this,arguments)||this;O.fileSelectorFocusListener=null;O.errorMessage=null;O.isLoading=!0;O.hideContainer=!0;O.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return O};
_.c(Xh,_.a);_.b=Xh.prototype;_.b.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.b.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.b.computePlaylistThumbnail=function(O){return O==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.b.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Sh(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.b.setErrorState=function(O){this.resetErrorState();O&&(this.errorMessage=O)};
_.b.showPopup=function(){var O=this;this.hideContainer=!1;_.zl(_.vn,function(){_.wr(O.hostElement,"yt-refit")});
this.isLoading=!1};
_.b.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.b.closePopup=function(){this.resetFileSelector();_.Sh(this.hostElement,"yt-close-popup-action",[this.is])};
_.b.onCancelTap=function(){this.isPlaylistThumbnail||_.Sh(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.b.openFileSelector=function(){var O=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.zl(_.vn,function(){setTimeout(function(){if(!O.fileSelector.files||O.fileSelector.files.length===0)O.onCancelTap();O.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(x){x instanceof Error?_.BH(x):_.vH(new _.ry(JSON.stringify(x)))}};
_.b.handleFileSelection=function(){var O=this,x,e,l,C,Q,L;return _.A(function(k){switch(k.nextAddress){case 1:_.tS(k,2);if(!O.fileSelector.files||!O.imageEditorCanvas)return O.onCancelTap(),k.return();x=O.fileSelector.files[0];XkX(O.imageChecker,x);_.tS(k,4);return k.yield(t1p(x),6);case 6:O.mimeType=k.yieldResult;_.lb(k,5,2);break;case 4:_.VP(k,2),_.Sh(O.hostElement,"yt-image-selection-error-action",[(e=O.data)==null?void 0:e.genericImageLoadErrorMessage]),O.onCancelTap();case 5:l=new FileReader;
l.addEventListener("load",function(){var M,G;return _.A(function(X){if(X.nextAddress==1){if(!l.result)return _.ft(Error("Dl")),X.return();M=l.result;G=new Image;G.src=M;G.onload=function(){try{var y=O.imageChecker;if(G.width<y.requirements.minWidth||G.height<y.requirements.minHeight)throw new Gvp(y.requirements.minWidth,y.requirements.minHeight);}catch(E){if(E instanceof Gvp){var Z;_.Sh(O.hostElement,"yt-image-selection-error-action",[(Z=O.data)==null?void 0:Z.imageDimensionErrorMessage]);O.logImageDimensionErrorVe()}else E instanceof
Error?_.BH(E):(y=new _.ry(JSON.stringify(E)),_.BH(y));O.onCancelTap()}O.showPopup()};
G.onerror=function(){var y;_.Sh(O.hostElement,"yt-image-selection-error-action",[(y=O.data)==null?void 0:y.genericImageLoadErrorMessage]);O.onCancelTap()};
return X.yield(tru(O.imageEditorCanvas,M),2)}O.imageEditor=X.yieldResult;O.updatePositionOfAllCorners();O.addEventListeners(O.imageEditor);_.Ra(X)})},!1);
l.readAsDataURL(x);_.lb(k,0);break;case 2:C=_.VP(k),C instanceof DFL?_.Sh(O.hostElement,"yt-image-selection-error-action",[(Q=O.data)==null?void 0:Q.imageSizeErrorMessage]):(C instanceof Error?_.BH(C):_.vH(new _.ry(JSON.stringify(C))),_.Sh(O.hostElement,"yt-image-selection-error-action",[(L=O.data)==null?void 0:L.genericImageLoadErrorMessage])),O.onCancelTap(),_.Ra(k)}})};
_.b.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var O=_.L_(_.k0(),{veType:232707,visualElement:_.O9(232707)});O&&(O={visualElement:O},_.TO().reportShown(O))}};
_.b.handleImageSelectionErrorAction=function(O){this.isPlaylistThumbnail&&_.GPs(this.hostElement,O)};
_.b.convertToImageFormatBundle=function(O){var x=this,e,l,C;return _.A(function(Q){switch(Q.nextAddress){case 1:return e=O.toDataURL(x.outputMimeType,1),Q.yield(qeh(e),2);case 2:l=Q.yieldResult;_.tS(Q,3);XkX(x.imageChecker,l);_.lb(Q,4);break;case 3:C=_.VP(Q);if(!(C instanceof DFL))throw C;_.ft(new _.ry("Output size is bigger than input size for image",x.mimeType,x.outputMimeType,l.size));e=O.toDataURL("image/jpeg",.95);return Q.yield(qeh(e),6);case 6:l=Q.yieldResult;case 4:return Q.return({dataUrl:e,
imageFile:l})}})};
_.b.handleUploadImageToScottyCommand=function(O){var x=this,e,l,C,Q,L,k,M,G,X,y;return _.A(function(Z){switch(Z.nextAddress){case 1:if(!x.imageEditor||!_.q(O,Q4L))return Z.return();e=_.q(O,Q4L).scottyUploadUrl;if(!e){var E=new _.ry("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.BH(E);return Z.return()}_.tS(Z,2);x.setLoadingState();l=x.imageEditor.crop(!1,!1);return Z.yield(x.convertToImageFormatBundle(l),4);case 4:return C=Z.yieldResult,Z.yield(ZIT(C.imageFile,e),5);
case 5:Q=Z.yieldResult;((L=x.data)==null?0:L.onUploadEndpoint)?(k=x.buildUploadServiceEndpoint(Q),x.ytComponentBehavior.resolveCommand(k),M=_.q(k,_.vj),((G=M)==null?0:G.params)?x.closePopup():x.resetFileSelector()):(_.Sh(x.hostElement,"yt-image-updated-action",[C.dataUrl,Q]),x.closePopup());_.lb(Z,0);break;case 2:X=_.VP(Z),x.setErrorState((y=x.data)==null?void 0:y.uploadErrorMessage),X instanceof Error?_.BH(X):(E=new _.ry(JSON.stringify(X)),_.BH(E)),_.Ra(Z)}})};
_.b.buildUploadServiceEndpoint=function(O){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",O),this.data.onUploadEndpoint):null};
_.b.dataChanged=function(){var O=this,x;return _.A(function(e){if(e.nextAddress==1){if(!O.data||!O.canvasElement)return e.return();O.data.imageRatio&&O.data.minImageCropWidth||_.vH(new _.ry("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));x=function(l,C){return O.data.imageType==="IMAGE_TYPE_AVATAR"?new YDT(l,C,O.data.imageRatio,[O.data.minImageCropWidth,O.data.minImageCropWidth/O.data.imageRatio],O.hostElement):new Fh(l,C,O.data.imageRatio,[O.data.minImageCropWidth,
O.data.minImageCropWidth/O.data.imageRatio],void 0,O.hostElement,8,!1)};
O.imageEditorCanvas=new okL(O.canvasElement,x);return O.data.url?e.yield(tru(O.imageEditorCanvas,O.data.url),3):(O.hideContainer=!0,O.openFileSelector(),e.jumpTo(0))}O.imageEditor=e.yieldResult;O.showPopup();O.addEventListeners(O.imageEditor);_.Ra(e)})};
_.b.addEventListeners=function(O){this.removeEventListeners();var x=function(C){yRQ(O,C)};
this.JSC$21066_mouseDownEvent=x;var e=function(C){ZEQ(O,C)};
this.JSC$21066_mouseMoveEvent=e;var l=function(){EkQ(O)};
this.JSC$21066_mouseUpEvent=l;this.topLeftCorner.addEventListener("mousedown",x);this.topLeftCorner.addEventListener("mousemove",e);this.topLeftCorner.addEventListener("mouseup",l);this.topRightCorner.addEventListener("mousedown",x);this.topRightCorner.addEventListener("mousemove",e);this.topRightCorner.addEventListener("mouseup",l);this.bottomLeftCorner.addEventListener("mousedown",x);this.bottomLeftCorner.addEventListener("mousemove",e);this.bottomLeftCorner.addEventListener("mouseup",l);this.bottomRightCorner.addEventListener("mousedown",
x);this.bottomRightCorner.addEventListener("mousemove",e);this.bottomRightCorner.addEventListener("mouseup",l)};
_.b.removeEventListeners=function(){this.JSC$21066_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21066_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21066_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21066_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21066_mouseDownEvent));this.JSC$21066_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21066_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21066_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21066_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21066_mouseMoveEvent));this.JSC$21066_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21066_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21066_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21066_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21066_mouseUpEvent))};
_.b.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var O=document.activeElement;O&&O.shadowRoot&&O.shadowRoot.activeElement;)O=O.shadowRoot.activeElement;switch(O){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};
_.b.updatePositionOfCorner=function(O,x){var e=O.y-x.offsetHeight/2+4;x.style.left=O.x-x.offsetWidth/2+16+"px";x.style.top=e+"px"};
_.b.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var O=_.T([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),x=O.next();!x.done;x=O.next()){x=x.value;var e=Ije(this.imageEditor,x.corner);this.updatePositionOfCorner(e,x.div)}};
_.b.onLeft=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(pkw(this.imageEditor,0),this.updatePositionOfAllCorners(),O.preventDefault())};
_.b.onRight=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(pkw(this.imageEditor,1),this.updatePositionOfAllCorners(),O.preventDefault())};
_.b.onUp=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(pkw(this.imageEditor,2),this.updatePositionOfAllCorners(),O.preventDefault())};
_.b.onDown=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(pkw(this.imageEditor,3),this.updatePositionOfAllCorners(),O.preventDefault())};
_.b.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Dy.Object.defineProperties(Xh.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&vk4.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var O,x,e;((x=this.data)==null?0:x.imageRatio)&&((e=this.data)==null?0:e.minImageCropWidth)?O={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:O=BZw;return new F7h(O)}}});
Xh.prototype.updatePositionOfAllCorners=Xh.prototype.updatePositionOfAllCorners;Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],Xh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Xh.prototype,"ytComponentBehavior",void 0);_.B([_.V(_.cg),_.v("design:type",Object)],Xh.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.kX("#canvas"),_.v("design:type",HTMLCanvasElement)],Xh.prototype,"canvasElement",void 0);_.B([_.kX("#file-selector"),_.v("design:type",HTMLInputElement)],Xh.prototype,"fileSelector",void 0);_.B([_.kX("#top-left-corner"),_.v("design:type",HTMLDivElement)],Xh.prototype,"topLeftCorner",void 0);_.B([_.kX("#top-right-corner"),_.v("design:type",HTMLDivElement)],Xh.prototype,"topRightCorner",void 0);
_.B([_.kX("#bottom-left-corner"),_.v("design:type",HTMLDivElement)],Xh.prototype,"bottomLeftCorner",void 0);_.B([_.kX("#bottom-right-corner"),_.v("design:type",HTMLDivElement)],Xh.prototype,"bottomRightCorner",void 0);_.B([_.R(),_.v("design:type",Object)],Xh.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],Xh.prototype,"errorMessage",void 0);_.B([_.R(),_.v("design:type",Object)],Xh.prototype,"isLoading",void 0);_.B([_.R(),_.v("design:type",Object)],Xh.prototype,"hideContainer",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.v("design:type",Boolean)],Xh.prototype,"isPlaylistThumbnail",void 0);_.B([_.G1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],Xh.prototype,"dataChanged",null);_.B([_.bH("image-updated"),_.bH("yt-refit"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],Xh.prototype,"updatePositionOfAllCorners",null);
_.B([_.Va({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Xh);
_.n(Xh,"yt-image-editor-renderer",function(){if(Mrh===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ARO===void 0&&(ARO=document.createElement("template"));var l=ARO;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Mrh=O}O=Mrh;return O},{mode:2});var fjw;var JRQ;var oJ=function(){return _.a.apply(this,arguments)||this};
_.c(oJ,_.a);oJ.prototype.updateMinutesFromBinding=function(O){this.handleMinutesChanged&&this.handleMinutesChanged(O)};
oJ.prototype.updateSecondsFromBinding=function(O){this.handleSecondsChanged&&this.handleSecondsChanged(O)};
oJ.prototype.updateDescriptionFromBinding=function(O){this.handleDescriptionChanged&&this.handleDescriptionChanged(O)};
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],oJ.prototype,"ytComponentBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],oJ.prototype,"data",void 0);_.B([_.R(),_.v("design:type",String)],oJ.prototype,"minutes",void 0);_.B([_.R(),_.v("design:type",String)],oJ.prototype,"seconds",void 0);_.B([_.R(),_.v("design:type",String)],oJ.prototype,"description",void 0);_.B([_.R(),_.v("design:type",Function)],oJ.prototype,"handleMinutesChanged",void 0);
_.B([_.R(),_.v("design:type",Function)],oJ.prototype,"handleSecondsChanged",void 0);_.B([_.R(),_.v("design:type",Function)],oJ.prototype,"handleDescriptionChanged",void 0);_.B([_.R(),_.v("design:type",Number)],oJ.prototype,"characterLimit",void 0);_.B([_.R(),_.v("design:type",Number)],oJ.prototype,"textNumRows",void 0);_.B([_.Va({is:"yt-report-details-form-content",disableElementRegistration:!0})],oJ);
_.n(oJ,"yt-report-details-form-content",function(){if(JRQ===void 0){var O=document.createElement("template");_.I(O,'\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>');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;fjw===void 0&&(fjw=document.createElement("template"));var l=fjw;e.call(x,l.content.cloneNode(!0),O.content.firstChild);JRQ=O}O=JRQ;return O},{mode:2});var wkQ;var SDY;var yD=function(){var O=_.a.apply(this,arguments)||this;O.updateMinutesFromBinding=function(x){O.minutes=x.detail.value};
O.updateSecondsFromBinding=function(x){O.seconds=x.detail.value};
O.updateDescriptionFromBinding=function(x){O.description=x.detail.value};
return O};
_.c(yD,_.a);_.b=yD.prototype;_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.b.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"}}}};
_.b.ready=function(){_.$U(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.b.onSubmitYtAction=function(O){var x=O.detail;x.actionName==="yt-service-request"&&(x=x.args[1],x.flagEndpoint&&(O.stopPropagation(),this.refireAction(x)))};
_.b.refireAction=function(O){var x={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(x.vss_id=this.vssId);_.N9(this.hostElement,[O,x]);this.submitDisabled=!0};
_.b.dataChanged=function(){var O=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var x=_.f7();x&&x.getPlayerPromise().then(function(e){var l=e.getOption("cc","track")||e.getOption("captions","track");l&&(O.vssId=l.vss_id);e=e.getCurrentTime();O.minutes=Math.floor(e/60).toString();O.seconds=(Math.floor(e)%60).toString()})};
_.b.updateSubmitButtonState=function(){var O;((O=this.data)==null?0:O.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==="")};
_.b.onYtServiceRequestCompleted=function(){_.Sh(this.hostElement,"yt-close-popup-action")};
_.b.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Dy.Object.defineProperties(yD.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.textNumRows)||4}}});
yD.prototype.onYtServiceRequestError=yD.prototype.onYtServiceRequestError;yD.prototype.onYtServiceRequestCompleted=yD.prototype.onYtServiceRequestCompleted;yD.prototype.updateSubmitButtonState=yD.prototype.updateSubmitButtonState;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);
_.B([_.R({observer:"dataChanged"}),_.v("design:type",Object)],yD.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Boolean)],yD.prototype,"submitDisabled",void 0);_.B([_.R(),_.v("design:type",String)],yD.prototype,"minutes",void 0);_.B([_.R(),_.v("design:type",String)],yD.prototype,"seconds",void 0);_.B([_.R(),_.v("design:type",String)],yD.prototype,"description",void 0);_.B([_.R(),_.v("design:type",String)],yD.prototype,"vssId",void 0);
_.B([_.R({value:_.wz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.v("design:type",Boolean)],yD.prototype,"isMusic",void 0);_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],yD.prototype,"characterLimit",null);_.B([_.p("data"),_.v("design:type",Number),_.v("design:paramtypes",[])],yD.prototype,"textNumRows",null);
_.B([_.G1("minutes","seconds","description","submitDisabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yD.prototype,"updateSubmitButtonState",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yD.prototype,"onYtServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],yD.prototype,"onYtServiceRequestError",null);_.B([_.Va({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],yD);
_.n(yD,"yt-report-details-form-renderer",function(){if(SDY===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;wkQ===void 0&&(wkQ=document.createElement("template"));var l=wkQ;e.call(x,l.content.cloneNode(!0),O.content.firstChild);SDY=O}O=SDY;return O});var jTY;var NZe;var gkO;var $FL;var Zo=function(){return _.a.apply(this,arguments)||this};
_.c(Zo,_.a);
Zo.prototype.onCheckedChanged_=function(){if(this.data){var O=_.$U(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Sh(this.hostElement,"yt-additional-detail-checkbox-update",[O]):this.data.identifier==="yt-hide-user-checkbox"?_.Sh(this.hostElement,"yt-hide-user-checkbox-update",[O]):O&&this.data.enableCommand?_.Sh(this.hostElement,"yt-modify-report-form-command",[_.q(this.data.enableCommand,DPQ)]):!O&&this.data.disableCommand&&_.Sh(this.hostElement,
"yt-modify-report-form-command",[_.q(this.data.enableCommand,DPQ)])}};
Zo.prototype.onLabelTap_=function(O){O.target.tagName!="A"&&(_.$U(this.hostElement).querySelector("#checkbox").checked=!_.$U(this.hostElement).querySelector("#checkbox").checked)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],Zo.prototype,"data",void 0);_.B([_.Va({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Zo);
_.n(Zo,"yt-boolean-form-field-v2-renderer",function(){if($FL===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;gkO===void 0&&(gkO=document.createElement("template"));var l=gkO;e.call(x,l.content.cloneNode(!0),O.content.firstChild);$FL=O}O=$FL;return O});var ER=function(){var O=_.a.apply(this,arguments)||this;O.canShowAdditionalDetailCheckbox=!1;O.canShowCheckbox=!1;O.keepDropdownFocusedAfterSelection=!0;return O};
_.c(ER,_.a);ER.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}}}}};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],ER.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],ER.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.R(),_.v("design:type",Object)],ER.prototype,"canShowCheckbox",void 0);_.B([_.R(),_.v("design:type",Object)],ER.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.B([_.Va({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ER);
_.n(ER,"yt-report-form-modal-content",function(){if(NZe===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;jTY===void 0&&(jTY=document.createElement("template"));var l=jTY;e.call(x,l.content.cloneNode(!0),O.content.firstChild);NZe=O}O=NZe;return O},{mode:2});var iEu;var OTX;var tW=function(){var O=_.a.apply(this,arguments)||this;O.submitting=!1;O.submitButtonDisabled=!0;O.command=null;O.canShowCheckbox=!1;O.canShowAdditionalDetailCheckbox=!1;O.canShowNextButton=!1;O.additionalDetailCheckboxChecked=!1;O.refitJob=0;O.keepDropdownFocusedAfterSelection=!0;O.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 O};
_.c(tW,_.a);_.b=tW.prototype;_.b.created=function(){this.refitJob=0};
_.b.attached=function(){this.JSC$21089_scroller&&(this.JSC$21089_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21089_scroller.attached&&typeof this.JSC$21089_scroller.attached==="function"&&this.JSC$21089_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.dataChanged=function(O){O&&(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,O.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),O.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.b.onYtPopupOpened=function(){var O=_.f7();O&&O.getPlayerPromise().then(function(x){x.pauseVideo()})};
_.b.onYtNavigate=function(O){_.q(O.detail.endpoint,_.Y_N)&&(O.stopPropagation(),this.hideReportForm=!0)};
_.b.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.b.onYtServiceRequestCompleted=function(O,x){var e=x.actions;if(e){if(e.length===1&&_.q(e[0],_.ih)){var l;e=((l=_.q(e[0],_.ih))==null?void 0:l.commands)||[]}l=0;for(var C=e.length;l<C;l++)_.q(e[l],_.aq)&&(O.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(e[l]))}if(x.data&&(O=this.get("feedbackResponses",x.data)))for(x=0;x<O.length;x++)if(O[x].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.b.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.b._onDescendantIronResize=function(O){O.stopPropagation();return!1};
_.b.handleReportFormEndpointUpdateAction=function(O){if(O.submitEndpoint){var x=this.command=O.submitEndpoint;x=_.q(x,_.d_L);if(x==null?0:x.additionalDetailCheckboxChecked)x.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else O.submitNavigationEndpoint?(this.command=O.submitNavigationEndpoint,this.toggleSubmitButton(!1)):O.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:O.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;O.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",O));this.refit()};
_.b.handleConfirmDialogCloseAction=function(O){O.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.b.submitButtonDisabledChanged=function(){var O=this.hostElement.parentElement;O&&O.invalidateTabbables&&O.invalidateTabbables()};
_.b.handleModifyReportFormCommand=function(O){O=this.get("action",O);O==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:O==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:O==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:O==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:O==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:O==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.b.updateDialogStyling=function(){var O,x,e,l,C,Q=((C=(O=this.data)==null?void 0:(x=O.optionsSupportedRenderers)==null?void 0:(e=x.optionsRenderer)==null?void 0:(l=e.items)==null?void 0:l.length)!=null?C:0)<=2?0:240;_.lH(this.hostElement,{"--yt-report-form-modal-renderer-min-width":Q+"px"})};
_.b.toggleSubmitButton=function(O){this.submitButtonDisabled=!O;this.submitButtonDisabled=O};
_.b.computeSubmitButtonData=function(O,x){var e={};_.q(x,_.Y_N)?e.navigationEndpoint=x:e.command=x||void 0;O&&O.buttonRenderer&&_.HX.extend(e,O.buttonRenderer);return e};
_.b.computeNextButtonData=function(O,x){var e={};if(!O||!O.buttonRenderer)return e;_.HX.extend(e,O.buttonRenderer);if(!x)return e;if(_.q(x,_.Y_N))e.navigationEndpoint=PRX(x);else if(e.command=PRX(x),O=_.q(e.command,_.d_L))O.legalCheckboxChecked=!0;return e};
_.b.computeShowNextButton=function(O,x,e){return!!O&&x&&e};
_.b.refit=function(){var O=this;this.refitJob||(this.refitJob=_.vn.addLowPriorityJob(function(){_.wr(O.hostElement,"yt-refit");O.refitJob=0}))};
_.b.handleAdditionalDetailCheckboxUpdateAction=function(O){this.additionalDetailCheckboxChecked=O;_.q(this.command,_.d_L).additionalDetailCheckboxChecked=O};
_.Dy.Object.defineProperties(tW,{template:{configurable:!0,enumerable:!0,get:function(){if(OTX===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;iEu===void 0&&(iEu=document.createElement("template"));var l=iEu;e.call(x,l.content.cloneNode(!0),O.content.firstChild);OTX=O}O=OTX;return O}}});
tW.prototype.onYtServiceRequestError=tW.prototype.onYtServiceRequestError;tW.prototype.onYtServiceRequestCompleted=tW.prototype.onYtServiceRequestCompleted;tW.prototype.onYtServiceRequestSent=tW.prototype.onYtServiceRequestSent;tW.prototype.onYtNavigate=tW.prototype.onYtNavigate;tW.prototype.onYtPopupOpened=tW.prototype.onYtPopupOpened;_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],tW.prototype,"openPopupBehavior",void 0);
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],tW.prototype,"eventForwardingBehavior",void 0);_.B([_.V(_.Wg),_.v("design:type",Object)],tW.prototype,"ironResizableBehavior",void 0);_.B([_.R({observer:"dataChanged"}),_.v("design:type",Object)],tW.prototype,"data",void 0);
_.B([_.R(),_.v("design:type",Object)],tW.prototype,"submitting",void 0);_.B([_.R({observer:"submitButtonDisabledChanged"}),_.v("design:type",Object)],tW.prototype,"submitButtonDisabled",void 0);_.B([_.R(),_.v("design:type",Object)],tW.prototype,"command",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],tW.prototype,"hideReportForm",void 0);_.B([_.R(),_.v("design:type",Object)],tW.prototype,"canShowCheckbox",void 0);
_.B([_.R(),_.v("design:type",Object)],tW.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.R(),_.v("design:type",Object)],tW.prototype,"canShowNextButton",void 0);_.B([_.R(),_.v("design:type",Object)],tW.prototype,"additionalDetailCheckboxChecked",void 0);_.B([_.R(),_.v("design:type",Object)],tW.prototype,"refitJob",void 0);_.B([_.R(),_.v("design:type",Object)],tW.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.B([_.kX("#scroller"),_.v("design:type",Object)],tW.prototype,"JSC$21089_scroller",void 0);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],tW.prototype,"onYtPopupOpened",null);_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],tW.prototype,"onYtNavigate",null);
_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],tW.prototype,"onYtServiceRequestSent",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],tW.prototype,"onYtServiceRequestCompleted",null);
_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],tW.prototype,"onYtServiceRequestError",null);_.B([_.Va({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],tW);var xU$;var eTw;var qW=function(){return _.a.apply(this,arguments)||this};
_.c(qW,_.a);_.b=qW.prototype;_.b.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.b.onVisible=function(){var O,x;(x=_.GG().resolve(_.D0(_.NU)))==null||x.enqueue({label:_.db((O=this.data)==null?void 0:O.messageTitle),elementToFocus:this.hostElement})};
_.b.onThumbnailLoaded=function(){_.wr(this.hostElement,"yt-refit")};
_.b.onDismissTap=function(){_.Sh(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.b.computeAlternateIcon=function(O){return O?O==="BACKSTAGE_ARTWORK"?"backstage:artwork":O:null};
_.b.computeFontFamily=function(O){return O==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.b.computeBackgroundStyle=function(O,x){if(O=this.computeBackgroundImage(O,x))if(O=_.jf(O.thumbnails))return'background-image: url("'+O+'");'};
_.b.computeHasFullHeightImage=function(O){return!(!(O&&O.thumbnails&&O.thumbnails.length>0)||this.modern)};
_.b.isModernStyle=function(O){return O.style==="STYLE_MODERN"};
_.b.computeIcon=function(O,x){if(O&&O.icon)return x?O.iconDark:O.icon};
_.b.computeBackgroundImage=function(O,x){if(O&&O.backgroundImage)return x?O.backgroundImageDark:O.backgroundImage};
_.b.computeLogo=function(O,x){if(O&&O.logo)return x?O.logoDark:O.logo};
_.b.computeShouldShowModernIcon=function(O,x){return O&&!!x};
_.b.getLogoContainerClassName=function(O){return this.logoWithPadding(O)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.b.getLogoImageId=function(O){return this.logoWithPadding(O)?"mealbar-logo-with-padding":"mealbar-logo"};
_.b.logoWithPadding=function(O){var x,e,l;return(O=(x=this.computeLogo(O,this.isDarkTheme))==null?void 0:(e=x.thumbnails)==null?void 0:(l=e[0])==null?void 0:l.height)&&O%31===0?!0:!1};
qW.prototype.onThumbnailLoaded=qW.prototype.onThumbnailLoaded;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.B([_.R({}),_.v("design:type",Object)],qW.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.v("design:type",Boolean)],qW.prototype,"modern",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],qW.prototype,"isDarkTheme",void 0);
_.B([_.R({computed:"computeIcon(data, isDarkTheme)"}),_.v("design:type",Object)],qW.prototype,"icon",void 0);_.B([_.R({computed:"computeLogo(data, isDarkTheme)"}),_.v("design:type",Object)],qW.prototype,"logo",void 0);_.B([_.R({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.v("design:type",Object)],qW.prototype,"backgroundStyle",void 0);_.B([_.R({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.v("design:type",Object)],qW.prototype,"alternateIcon",void 0);
_.B([_.R({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.v("design:type",Boolean)],qW.prototype,"hasFullHeightImage",void 0);_.B([_.R({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.v("design:type",Boolean)],qW.prototype,"useYoutubeSans",void 0);_.B([_.R({computed:"computeShouldShowModernIcon(modern, icon)"}),_.v("design:type",Boolean)],qW.prototype,"shouldShowModernIcon",void 0);
_.B([_.bH("yt-img-shadow-loaded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],qW.prototype,"onThumbnailLoaded",null);_.B([_.Va({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],qW);
_.n(qW,"yt-mealbar-promo-renderer",function(){if(eTw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;xU$===void 0&&(xU$=document.createElement("template"));var l=xU$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);eTw=O}O=eTw;return O},{mode:2});var lF$;var CT4;var P9=function(){return _.a.apply(this,arguments)||this};
_.c(P9,_.a);_.b=P9.prototype;_.b.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]]"}}}}}};
_.b.computeHasButtons_=function(O){return!(!O.dismissButton&&!O.acceptButton)};
_.b.computeStyle_=function(O){return O||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.b.observeImpressionEndpoints_=function(){var O=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;_.N9(O.hostElement,[x])})};
_.b.onTap_=function(){_.Sh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
P9.prototype.observeImpressionEndpoints_=P9.prototype.observeImpressionEndpoints_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],P9.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],P9.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],P9.prototype,"positionType",void 0);_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.v("design:type",Boolean)],P9.prototype,"hasButtons_",void 0);_.B([_.R({value:function(){return this.onTap_.bind(this)}}),
_.v("design:type",Function)],P9.prototype,"boundOnTap_",void 0);_.B([_.R({value:{style:"mono-inverse"}}),_.v("design:type",Object)],P9.prototype,"buttonOverride",void 0);_.B([_.T1("data.promoConfig.impressionEndpoints"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],P9.prototype,"observeImpressionEndpoints_",null);_.B([_.Va({is:"yt-tooltip-renderer",disableElementRegistration:!0})],P9);
_.n(P9,"yt-tooltip-renderer",function(){if(CT4===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;lF$===void 0&&(lF$=document.createElement("template"));var l=lF$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);CT4=O}O=CT4;return O},{mode:2});var QiL;var bT4;var TQO={},LEL=(TQO.WEB_REMIX="music.youtube.com",TQO),c9=function(){var O=_.a.apply(this,arguments)||this;O.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return O};
_.c(c9,_.a);_.b=c9.prototype;_.b.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.created=function(){this.embedHost_=LEL[_.wz("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.b.ready=function(){_.$U(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.b.computeEmbedCode_=function(O,x,e,l,C){if(!O)return"";var Q=O.videoId,L=O.fullListId,k=[];O.attributionId&&k.push("si="+O.attributionId);l||k.push("controls=0");e&&Number(x)>0&&k.push("start="+x);L&&(Q="videoseries",k.push("list="+L));e="https://"+(C?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+Q;O.clipId&&(k.push("clip="+O.clipId),k.push("clipt="+O.clipTiming));x=k.length>0?e+"?"+k.join("&amp;"):e;O.encryptedEmbedConfig&&k.push("embed_config="+JSON.stringify({enc:O.encryptedEmbedConfig}));
k=k.length>0?e+"?"+k.join("&amp;"):e;_.t("web_sharing_embed_preview_killswitch")?_.$U(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(k,O.previewWidth||854,O.previewHeight||480):(_.pl(this.videoPreviewContainer),_.$U(this.videoPreviewContainer).appendChild(this.buildIframeElement(k)));return this.getEmbedCode_(x,O.width||560,O.height||315)};
_.b.buildIframeElement=function(O){var x=document.createElement("iframe"),e,l;x.width=""+((l=(e=this.data)==null?void 0:e.previewWidth)!=null?l:854);var C,Q;x.height=""+((Q=(C=this.data)==null?void 0:C.previewHeight)!=null?Q:480);_.Fgr(x,2,O);x.title="YouTube video player";x.frameBorder="0";x.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";x.referrerPolicy="strict-origin-when-cross-origin";x.allowFullscreen=!0;return x};
_.b.computeIsSquareAspectRatio_=function(O){return O.previewHeight&&O.previewWidth?O.previewHeight==O.previewWidth:!1};
_.b.computeShowEmbedOptions_=function(O){return!!O.enablePrivacyModeOptionLabel||!!O.showPlayerControlsOptionLabel};
_.b.getEmbedCode_=function(O,x,e){return'<iframe width="'+x+'" height="'+e+'" src="'+O+'" 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>'};
_.b.handleSignalActionCopyShareEmbedUrl_=function(){_.$U(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.b.handleSetTimestamp_=function(O){this.startAtTimeStamp_=(this.startAtChecked_=O.isSet)?O.timestamp:0};
_.b.closePanel_=function(){_.Sh(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.b.onEmbedCode_=function(){_.$U(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.b.onYtPopupClosed_=function(){_.pl(_.$U(this.hostElement).querySelector("#video-preview"))};
_.b.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.q(this.data.actionButtons[0],_.wf)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.actionButtons[0],_.wf))};
c9.prototype.onYtPopupClosed_=c9.prototype.onYtPopupClosed_;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],c9.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],c9.prototype,"data",void 0);
_.B([_.R({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.v("design:type",String)],c9.prototype,"embedCode_",void 0);_.B([_.R({value:!0}),_.v("design:type",Boolean)],c9.prototype,"isPlayerControlsOptionChecked_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],c9.prototype,"isPrivacyModeOptionChecked_",void 0);_.B([_.R({value:!1,notify:!0}),_.v("design:type",Boolean)],c9.prototype,"startAtChecked_",void 0);
_.B([_.R({value:0}),_.v("design:type",Number)],c9.prototype,"startAtTimeStamp_",void 0);_.B([_.R({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],c9.prototype,"isSquareAspectRatio_",void 0);_.B([_.kX("#video-preview"),_.v("design:type",HTMLElement)],c9.prototype,"videoPreviewContainer",void 0);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],c9.prototype,"onYtPopupClosed_",null);
_.B([_.Va({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],c9);
_.n(c9,"yt-sharing-embed-renderer",function(){if(bT4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;QiL===void 0&&(QiL=document.createElement("template"));var l=QiL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);bT4=O}O=bT4;return O},{mode:2});var kf4={};
kf4.YtUnlimitedFamilyInterstitialBehavior=[_.mP.YtOpenPopupBehavior,_.Wt.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(O){O=_.yjR(_.uK(O),"yt-button-renderer");return O?O.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(O){this.dialogHistory_.push(O)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var O=this.popFromHistory();if(O){var x={openPopupAction:{popupType:"DIALOG",popup:{}}};x.openPopupAction.popup[O.renderer]=O.data;this.showingPreviousDialog_=!0;this.openPopup(x)}},
handleOpenPopupAction_:function(O){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var x=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(l){return!!O.openPopupAction.popup[l]}),e=this.getElementName_();
x&&this.data&&(this.pushToHistory({renderer:e,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(O){if(O=_.q(O,n6w))this.loading=!0,_.Sh(this.hostElement,"yt-open-create-family-dialog",[O,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var O=this.hostElement.nodeName.split("-").slice(1).map(function(x){return""+x[0].toUpperCase()+x.slice(1).toLowerCase()}).join("");
return O[0].toLowerCase()+O.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Agu;var Mnw;var IJ=function(){return _.a.apply(this,arguments)||this};
_.c(IJ,_.a);_.b=IJ.prototype;_.b.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}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Sh(this.hostElement,"yt-register-create-family-dialog");_.$U(this.hostElement).querySelector("#thumbnail").onShow()};
_.b.fireOnCloseCommand_=function(){var O;((O=this.data)==null?0:O.onCloseCommand)&&_.gr(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.b.onYtServiceRequestSent_=function(O,x){x&&x.endpoint&&_.q(x.endpoint,_.xm)||(this.loading=!0)};
_.b.onYtServiceRequestCompleted_=function(){var O=this.hostElement.parentElement;O.close&&O.close();this.loading=!1};
_.b.openPopupHandler_=function(O){if(O.detail==this){var x;((x=this.data)==null?0:x.onOpenCommands)&&_.gr(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.b.closePopupHandler_=function(O,x){this.fireOnCloseCommand_();if(x&&x.canceled===!0||x&&x.canceled===!1&&x.confirmed===!1){var e;((e=this.data)==null?0:e.onDismissCommands)&&_.gr(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.b.dataChanged_=function(){this.loading=!1};
IJ.prototype.dataChanged_=IJ.prototype.dataChanged_;IJ.prototype.closePopupHandler_=IJ.prototype.closePopupHandler_;IJ.prototype.openPopupHandler_=IJ.prototype.openPopupHandler_;IJ.prototype.onYtServiceRequestCompleted_=IJ.prototype.onYtServiceRequestCompleted_;IJ.prototype.onYtServiceRequestSent_=IJ.prototype.onYtServiceRequestSent_;_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],IJ.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(kf4.YtUnlimitedFamilyInterstitialBehavior),_.v("design:type",Object)],IJ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],IJ.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],IJ.prototype,"loading",void 0);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],IJ.prototype,"onYtServiceRequestSent_",null);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],IJ.prototype,"onYtServiceRequestCompleted_",null);
_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],IJ.prototype,"openPopupHandler_",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],IJ.prototype,"closePopupHandler_",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],IJ.prototype,"dataChanged_",null);
_.B([_.Va({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],IJ);
_.n(IJ,"yt-unlimited-family-message-interstitial-renderer",function(){if(Mnw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;Agu===void 0&&(Agu=document.createElement("template"));var l=Agu;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Mnw=O}O=Mnw;return O},{mode:2});var DUe;var Gfp;var VD=function(){return _.a.apply(this,arguments)||this};
_.c(VD,_.a);VD.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"}}}};
VD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$U(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(O){O.onShow()});
_.$U(this.hostElement).querySelector("#main-thumbnail").onShow()};
VD.prototype.onButtonTap_=function(O){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(O)};
VD.prototype.computeMainThumbnailWidth_=function(O){return O&&O.length!==0?72:96};
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.B([_.V(kf4.YtUnlimitedFamilyInterstitialBehavior),_.v("design:type",Object)],VD.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],VD.prototype,"data",void 0);
_.B([_.R({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.v("design:type",Number)],VD.prototype,"mainThumbnailWidth_",void 0);_.B([_.R({value:function(){return this.onButtonTap_.bind(this)}}),
_.v("design:type",Function)],VD.prototype,"boundButtonTap_",void 0);_.B([_.Va({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],VD);
_.n(VD,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Gfp===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;DUe===void 0&&(DUe=document.createElement("template"));var l=DUe;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Gfp=O}O=Gfp;return O},{mode:2});var FET;var XB4;var pX=function(){var O=_.a.apply(this,arguments)||this;O.sliderAriaValueText_=null;O.selectedIndex_=0;O.messages={PAUSE_SLIDER:_.CZ("PAUSE_SLIDER",void 0,"Pause Duration")};return O};
_.c(pX,_.a);_.b=pX.prototype;_.b.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_]]"}}}}}};
_.b.onPopupOpened_=function(O){O.detail==this&&_.t("enable_premium_voluntary_pause")&&(_.Sh(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.b.setDialogData=function(O){this.data=O;this.resetSlider_()};
_.b.dataChanged_=function(){this.data&&this.resetSlider_()};
_.b.onSubmitTap_=function(){if(this.data.confirmCommand){var O=this.data.confirmCommand;_.q(O,_.us3)&&_.N9(this.hostElement,[O,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.b.onExitButtonTap_=function(){_.Sh(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.b.closePopupHandler_=function(O,x){(x&&x.canceled===!0||x.canceled===!1&&x.confirmed===!1)&&this.handleOnDismissCommands_()};
_.b.onSliderChange_=function(){this.selectedIndex_=_.$U(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.b.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.b.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.b.resetSlider_=function(){if(this.data){var O=this.data.defaultEndOptionIndex||0,x=_.$U(this.hostElement).querySelector("#id-pause-slider");if(x.immediateValue<O)for(;x.immediateValue!=O;)x.increment();else if(O<x.immediateValue)for(;x.immediateValue!=O;)x.decrement();this.selectedIndex_=O;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.b.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.gr(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.b.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.gr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.b.onYtServiceRequestSent=function(){this.loading=!0};
_.b.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
pX.prototype.onYtServiceRequestCompleted=pX.prototype.onYtServiceRequestCompleted;pX.prototype.onYtServiceRequestSent=pX.prototype.onYtServiceRequestSent;pX.prototype.closePopupHandler_=pX.prototype.closePopupHandler_;pX.prototype.dataChanged_=pX.prototype.dataChanged_;pX.prototype.onPopupOpened_=pX.prototype.onPopupOpened_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],pX.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],pX.prototype,"loading",void 0);_.B([_.R(),_.v("design:type",Number)],pX.prototype,"selectIndexMax_",void 0);_.B([_.R(),_.v("design:type",Object)],pX.prototype,"selectedData_",void 0);
_.B([_.R(),_.v("design:type",Object)],pX.prototype,"sliderAriaValueText_",void 0);_.B([_.R({value:function(){return this.onSubmitTap_.bind(this)}}),
_.v("design:type",Function)],pX.prototype,"onButtonTap_",void 0);_.B([_.R({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.v("design:type",Function)],pX.prototype,"onSecondaryTap_",void 0);_.B([_.R(),_.v("design:type",Object)],pX.prototype,"messages",void 0);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],pX.prototype,"onPopupOpened_",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],pX.prototype,"dataChanged_",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],pX.prototype,"closePopupHandler_",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],pX.prototype,"onYtServiceRequestSent",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],pX.prototype,"onYtServiceRequestCompleted",null);_.B([_.Va({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],pX);
_.n(pX,"yt-unplugged-pause-membership-dialog-renderer",function(){if(XB4===void 0){var O=document.createElement("template");_.I(O,'\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>');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;FET===void 0&&(FET=document.createElement("template"));var l=FET;e.call(x,l.content.cloneNode(!0),O.content.firstChild);XB4=O}O=XB4;return O},{mode:2});var ofY;var yg4;var RJ=function(){return _.a.apply(this,arguments)||this};
_.c(RJ,_.a);RJ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.q5("vcBalanceRenderer")}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],RJ.prototype,"data",void 0);_.B([_.Va({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],RJ);
_.n(RJ,"yt-vc-offer-layout-header-renderer",function(){if(yg4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ofY===void 0&&(ofY=document.createElement("template"));var l=ofY;e.call(x,l.content.cloneNode(!0),O.content.firstChild);yg4=O}O=yg4;return O},{mode:2});var ZTp;var Ef4;var tnL;var qzw;var UR=function(){return _.a.apply(this,arguments)||this};
_.c(UR,_.a);UR.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Dy.Object.defineProperties(UR.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)}}});
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.t$X.YtTappableItemBehavior),_.v("design:type",Object)],UR.prototype,"ytTappableItemBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],UR.prototype,"data",void 0);
_.B([_.R({reflectToAttribute:!0}),_.p("data.accessibilityText"),_.v("design:type",String),_.v("design:paramtypes",[])],UR.prototype,"ariaLabel",null);_.B([_.R({reflectToAttribute:!0}),_.p("data.style"),_.v("design:type",String),_.v("design:paramtypes",[])],UR.prototype,"vcOfferStyle",null);_.B([_.p("data.style","data.titleText"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],UR.prototype,"showTitleText",null);_.B([_.Va({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],UR);
_.n(UR,"yt-vc-offer-renderer",function(){if(qzw===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;tnL===void 0&&(tnL=document.createElement("template"));var l=tnL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);qzw=O}O=qzw;return O},{mode:2});var aJ=function(){return _.a.apply(this,arguments)||this};
_.c(aJ,_.a);aJ.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],aJ.prototype,"data",void 0);_.B([_.Va({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],aJ);
_.n(aJ,"yt-vc-offer-layout-renderer",function(){if(Ef4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;ZTp===void 0&&(ZTp=document.createElement("template"));var l=ZTp;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Ef4=O}O=Ef4;return O},{mode:2});var PTL;var cgw;var IF4;var Vnh;var mJ=function(){return _.a.apply(this,arguments)||this};
_.c(mJ,_.a);mJ.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}}}}}};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],mJ.prototype,"data",void 0);_.B([_.Va({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],mJ);
_.n(mJ,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Vnh===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;IF4===void 0&&(IF4=document.createElement("template"));var l=IF4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);Vnh=O}O=Vnh;return O},{mode:2});var sR=function(){return _.a.apply(this,arguments)||this};
_.c(sR,_.a);sR.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"}}}}};
sR.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
sR.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var O=this.scrollable;O.attached&&typeof O.attached==="function"&&O.attached()};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.kX("#scrollable"),_.v("design:type",Object)],sR.prototype,"scrollable",void 0);_.B([_.R(),_.v("design:type",Object)],sR.prototype,"data",void 0);_.B([_.Va({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],sR);
_.n(sR,"yt-ypc-offers-modal-renderer",function(){if(cgw===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;PTL===void 0&&(PTL=document.createElement("template"));var l=PTL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);cgw=O}O=cgw;return O},{mode:2});var pBL;var RTw;var W9=function(){return _.a.apply(this,arguments)||this};
_.c(W9,_.a);_.b=W9.prototype;_.b.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}}}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$U(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.b.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Sh(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.b.onYtPopupOpened_=function(O,x){(x==null?void 0:x.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.gr(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.b.onYtPopupClosed_=function(O,x){this.continueButtonTapped||x&&(x.canceled===!0||x.canceled===!1&&x.confirmed===!1)&&this.data.onDismissCommands&&_.gr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.b.onYtServiceRequestError_=function(O){this.set("showSpinner",!1);_.s9(this.hostElement,O.detail.error.message)};
_.b.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.t("enable_ypc_spinners")?_.Sh(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
W9.prototype.onYtServiceRequestError_=W9.prototype.onYtServiceRequestError_;W9.prototype.onYtPopupClosed_=W9.prototype.onYtPopupClosed_;W9.prototype.onYtPopupOpened_=W9.prototype.onYtPopupOpened_;W9.prototype.onYtServiceRequestCompleted_=W9.prototype.onYtServiceRequestCompleted_;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.R(),_.v("design:type",Object)],W9.prototype,"data",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],W9.prototype,"showSpinner",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],W9.prototype,"continueButtonTapped",void 0);_.B([_.R({value:function(){return this.onContinueTapped_.bind(this)}}),
_.v("design:type",Function)],W9.prototype,"bindOnContinueTapped_",void 0);_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],W9.prototype,"onYtServiceRequestCompleted_",null);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],W9.prototype,"onYtPopupOpened_",null);
_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],W9.prototype,"onYtPopupClosed_",null);_.B([_.bH("yt-service-request-error"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],W9.prototype,"onYtServiceRequestError_",null);_.B([_.Va({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],W9);
_.n(W9,"yt-ypc-upgrade-dialog-renderer",function(){if(RTw===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;pBL===void 0&&(pBL=document.createElement("template"));var l=pBL;e.call(x,l.content.cloneNode(!0),O.content.firstChild);RTw=O}O=RTw;return O},{mode:2});var UUX;var aFX;var hW=function(){return _.a.apply(this,arguments)||this};
_.c(hW,_.a);hW.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
hW.prototype.computeHasButtons_=function(O){return!(!O.dismissButton&&!O.confirmButton)};
hW.prototype.computeStyle_=function(O){return O||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],hW.prototype,"ytEventForwardingBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],hW.prototype,"data",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],hW.prototype,"positionType",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.v("design:type",Boolean)],hW.prototype,"hasButtons_",void 0);_.B([_.R({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.v("design:type",Boolean)],hW.prototype,"style_",void 0);_.B([_.Va({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],hW);
_.n(hW,"yt-bubble-hint-renderer",function(){if(aFX===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;UUX===void 0&&(UUX=document.createElement("template"));var l=UUX;e.call(x,l.content.cloneNode(!0),O.content.firstChild);aFX=O}O=aFX;return O},{mode:2});var mU4;var siL;var zw=function(){var O=_.GS.apply(this,arguments)||this;O.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return O};
_.c(zw,_.GS);_.b=zw.prototype;_.b.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.b.attached=function(){var O=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){O.$.thumbnail.onShow();O.$["header-image"].onShow()})};
_.b.handleCheckBoxUpdateAction_=function(O){this.canShowCheckboxEnabledConfirmButton=O};
_.b.computeUseOverlayForSpinner_=function(O,x){return!!O&&x};
_.b.computeShowSpinner_=function(O,x){return O||!!x};
_.b.fireOnCloseActions_=function(){var O,x=_.T(((O=this.data)==null?void 0:O.onClosedActions)||[]);for(O=x.next();!O.done;O=x.next())this.ytRendererBehavior.resolveCommand(O.value)};
_.b.fireOnOpenCommands_=function(O){var x,e=(x=this.data)==null?void 0:x.onOpenCommands;if(e)for(O.stopImmediatePropagation(),O=_.T(e),x=O.next();!x.done;x=O.next())this.ytRendererBehavior.resolveCommand(x.value)};
_.b.fireOnDismissCommands_=function(O){var x,e=(x=this.data)==null?void 0:x.onDismissCommands;if(e)for(O.stopImmediatePropagation(),O=_.T(e),x=O.next();!x.done;x=O.next())this.ytRendererBehavior.resolveCommand(x.value)};
_.b.openPopupHandler_=function(O){O.detail==this&&this.fireOnOpenCommands_(O)};
_.b.closePopupHandler_=function(O,x){_.jh(this,"yt-confirm-dialog-close-action",[x]);this.fireOnCloseActions_();(x&&x.canceled===!0||x&&x.canceled===!1&&x.confirmed===!1)&&this.fireOnDismissCommands_(O)};
_.b.onHeaderImageChanged_=function(){var O;((O=this.data)==null?0:O.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.b.computeHasHeaderImageWidth_=function(O){return O!=void 0};
_.b.computeHasLoadingMessage=function(O){return!!O};
_.b.onHeaderImageWidthChanged_=function(){var O,x=(O=this.data)==null?void 0:O.headerImageWidth;if(x){if(O=1.25*x*2+x,this.$.main.style.width=O+"px",x=this.$.scroller.firstElementChild)x.style.minWidth=O+"px"}else this.$.main.style.width="100%"};
_.b.onThumbnailChanged_=function(){var O;((O=this.data)==null?0:O.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")};
_.b.onYtNavigate_=function(O){O=_.uK(O);O instanceof Node&&_.iK(this.$["confirm-button"]).contains(O)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.b.computePrimaryIsCancel_=function(O){return O};
_.b.computeIsCancelButtonHidden_=function(O){return O.skipCancelButton||!O.cancelButton};
_.b.computeIsCheckboxHidden_=function(O){return!O.checkbox};
_.b.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.b.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.b.onYtServiceRequestCompleted_=function(){var O;((O=this.data)==null?0:O.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Dy.Object.defineProperties(zw,{template:{configurable:!0,enumerable:!0,get:function(){if(siL===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;mU4===void 0&&(mU4=document.createElement("template"));var l=mU4;e.call(x,l.content.cloneNode(!0),O.content.firstChild);siL=O}O=siL;return O}}});
zw.prototype.onYtServiceRequestCompleted_=zw.prototype.onYtServiceRequestCompleted_;zw.prototype.onYtServiceRequestSent_=zw.prototype.onYtServiceRequestSent_;zw.prototype.onThumbnailLoaded_=zw.prototype.onThumbnailLoaded_;zw.prototype.onYtNavigate_=zw.prototype.onYtNavigate_;zw.prototype.onThumbnailChanged_=zw.prototype.onThumbnailChanged_;zw.prototype.onHeaderImageWidthChanged_=zw.prototype.onHeaderImageWidthChanged_;zw.prototype.onHeaderImageChanged_=zw.prototype.onHeaderImageChanged_;
zw.prototype.closePopupHandler_=zw.prototype.closePopupHandler_;zw.prototype.openPopupHandler_=zw.prototype.openPopupHandler_;_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],zw.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);
_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],zw.prototype,"ytEventForwardingBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],zw.prototype,"data",void 0);_.B([_.R({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.v("design:type",Boolean)],zw.prototype,"primaryIsCancel",void 0);_.B([_.R({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.v("design:type",Boolean)],zw.prototype,"isCancelButtonHidden",void 0);
_.B([_.R({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.v("design:type",Boolean)],zw.prototype,"isCheckboxHidden",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],zw.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.B([_.R({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.v("design:type",Boolean)],zw.prototype,"useOverlayForSpinner_",void 0);
_.B([_.R({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.v("design:type",Boolean)],zw.prototype,"showSpinner_",void 0);_.B([_.R({value:!1}),_.v("design:type",Boolean)],zw.prototype,"isActionInProgress_",void 0);_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.v("design:type",Boolean)],zw.prototype,"hasHeaderImageWidth_",void 0);
_.B([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.v("design:type",Boolean)],zw.prototype,"hasLoadingMessage",void 0);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],zw.prototype,"openPopupHandler_",null);_.B([_.bH("yt-popup-closed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],zw.prototype,"closePopupHandler_",null);
_.B([_.T1("data.headerImage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zw.prototype,"onHeaderImageChanged_",null);_.B([_.T1("data.headerImageWidth"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zw.prototype,"onHeaderImageWidthChanged_",null);_.B([_.T1("data.thumbnail"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zw.prototype,"onThumbnailChanged_",null);
_.B([_.bH("yt-navigate"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],zw.prototype,"onYtNavigate_",null);_.B([_.bH("yt-img-shadow-loaded"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],zw.prototype,"onThumbnailLoaded_",null);_.B([_.bH("yt-service-request-sent"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.mu]),_.v("design:returntype")],zw.prototype,"onYtServiceRequestSent_",null);
_.B([_.bH("yt-service-request-completed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,_.n7]),_.v("design:returntype")],zw.prototype,"onYtServiceRequestCompleted_",null);_.B([_.Va({is:"yt-confirm-dialog-renderer",noInjection:!0})],zw);var WEh;var hTY;var rR=function(){return _.a.apply(this,arguments)||this};
_.c(rR,_.a);rR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$U(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
rR.prototype.computeConfirmButton_=function(O){var x={text:O.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};O.confirmNavigationEndpoint?x.navigationEndpoint=O.confirmNavigationEndpoint:O.confirmServiceEndpoint&&(x.serviceEndpoint=O.confirmServiceEndpoint);return x};
rR.prototype.computeShowTitle_=function(O){return!(O==null||!O.title)};
_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],rR.prototype,"data",void 0);_.B([_.R({computed:"computeShowTitle_(data)"}),_.v("design:type",Boolean)],rR.prototype,"showTitle",void 0);_.B([_.Va({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],rR);
_.n(rR,"yt-fancy-dismissible-dialog-renderer",function(){if(hTY===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;WEh===void 0&&(WEh=document.createElement("template"));var l=WEh;e.call(x,l.content.cloneNode(!0),O.content.firstChild);hTY=O}O=hTY;return O});var zT$;var rgp;var H9=function(){var O=_.a.apply(this,arguments)||this;O.spinnerActive=!1;return O};
_.c(H9,_.a);H9.prototype.created=function(){fgT(2201)};
H9.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
H9.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
H9.prototype.onIronOverlayClosed=H9.prototype.onIronOverlayClosed;H9.prototype.onIronOverlayOpened=H9.prototype.onIronOverlayOpened;_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.N_),_.v("design:type",Object)],H9.prototype,"tpYtIronOverlayBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],H9.prototype,"data",void 0);_.B([_.R(),_.v("design:type",Object)],H9.prototype,"spinnerActive",void 0);
_.B([_.bH("iron-overlay-opened"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H9.prototype,"onIronOverlayOpened",null);_.B([_.bH("iron-overlay-closed"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],H9.prototype,"onIronOverlayClosed",null);_.B([_.Va({is:"yt-loading-renderer",disableElementRegistration:!0})],H9);
_.n(H9,"yt-loading-renderer",function(){if(rgp===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;zT$===void 0&&(zT$=document.createElement("template"));var l=zT$;e.call(x,l.content.cloneNode(!0),O.content.firstChild);rgp=O}O=rgp;return O},{mode:2});var HTT;var KEw;var KX=function(){var O=_.a.apply(this,arguments)||this;O.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);O.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);O.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.c(KX,_.a);_.b=KX.prototype;_.b.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.b.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.b.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.b.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.b.openPopupHandler_=function(O){O.detail===this.hostElement&&this.hostElement.hidden&&_.Sh(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.b.onDismissButtonTap_=function(){var O;this.closeOnDismissButton_.has(((O=this.data)==null?void 0:O.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Sh(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.b.onAcceptButtonTap_=function(){var O;this.closeOnAcceptButton_.has(((O=this.data)==null?void 0:O.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Sh(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.b.computeHasHeader_=function(O){return!!O.headerBackgroundImage};
_.b.computeLayoutStyle_=function(O){return O};
_.b.computePopupSize_=function(O){return O};
_.b.computeIconType_=function(O){return O.dialogIcon&&O.dialogIcon.iconType?O.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":O.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":O.dialogIcon.iconType:""};
_.b.computeIsLogo_=function(O){return!!O.dialogIcon&&!!O.dialogIcon.iconType&&(O.dialogIcon.iconType==="YOUTUBE_LOGO"||O.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||O.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.b.computeHasCustomLogo=function(O){return!(O==null||!O.headerForegroundImage)};
_.b.computeCustomLogo=function(O,x){if(O!=null&&O.headerForegroundImage)return O.headerForegroundImageDark?x?O.headerForegroundImageDark:O.headerForegroundImage:O.headerForegroundImage};
_.b.computeHeaderBackgroundImage=function(O,x){if(O!=null&&O.headerBackgroundImage)return x&&(O==null?0:O.headerBackgroundImageDark)?O.headerBackgroundImageDark:O.headerBackgroundImage};
_.b.shouldShowIconContainer=function(O,x){return O&&!x};
_.b.shouldShowNonYouTubeIcon=function(O,x){return!O&&!x};
_.b.getLogoImageId=function(O){var x,e,l;return(O=(x=this.computeCustomLogo(O,this.isDarkTheme))==null?void 0:(e=x.thumbnails)==null?void 0:(l=e[0])==null?void 0:l.height)&&O%31===0?"custom-logo-with-padding":"custom-logo"};
KX.prototype.openPopupHandler_=KX.prototype.openPopupHandler_;KX.prototype.dataChanged_=KX.prototype.dataChanged_;_.B([_.V(_.ZX.YtRendererstamperBehavior),_.v("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.B([_.R(),_.v("design:type",Boolean)],KX.prototype,"isDarkTheme",void 0);
_.B([_.R({computed:"computeCustomLogo(data, isDarkTheme)"}),_.v("design:type",Object)],KX.prototype,"customLogo",void 0);_.B([_.R({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.v("design:type",Object)],KX.prototype,"headerBackgroundImage",void 0);_.B([_.R(),_.v("design:type",Object)],KX.prototype,"data",void 0);_.B([_.R({computed:"computeHasHeader_(data)"}),_.v("design:type",Boolean)],KX.prototype,"hasHeader",void 0);
_.B([_.R({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.v("design:type",Object)],KX.prototype,"layoutStyle",void 0);_.B([_.R({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.v("design:type",Object)],KX.prototype,"popupSize",void 0);_.B([_.R({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],KX.prototype,"hasLogo",void 0);
_.B([_.R({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.v("design:type",Boolean)],KX.prototype,"hasCustomLogo",void 0);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],KX.prototype,"dataChanged_",null);_.B([_.bH("yt-popup-opened"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],KX.prototype,"openPopupHandler_",null);
_.B([_.Va({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],KX);
_.n(KX,"yt-upsell-dialog-renderer",function(){if(KEw===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;HTT===void 0&&(HTT=document.createElement("template"));var l=HTT;e.call(x,l.content.cloneNode(!0),O.content.firstChild);KEw=O}O=KEw;return O},{mode:2});var dUL=_.K(function(O){return _.D("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.D(_.F,{cond:O.title,then:function(x){return _.D("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},x)}}))},"nj"),nfL=_.K(function(O){return _.D("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.D(_.MR,{data:O.closeButton},{buttonViewModel:function(x){return _.D("div",null,_.D(_.RV,{data:x.data}))}}))},"oj"),uXX=_.K(function(O){var x=O.data;
return _.D(_.Xm,null,_.D("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.D("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.D(_.F,{cond:function(){return!!x().image&&!!x().title},
then:function(){return _.D(_.n_,{data:function(){return x().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.D("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.D(_.F,{cond:function(){return x().title},
then:function(e){return _.D("h3",{class:"miniAppGameInfoDialogViewModelTitle"},e)}}),_.D(_.F,{cond:function(){return x().primaryGenre},
then:function(e){return _.D("span",{class:"miniAppGameInfoDialogViewModelGenre"},e)}}))),_.D(_.F,{cond:function(){var e=x().description;
return e&&e.length<=150},
then:function(){return _.D("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.D("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return x().description}))}}))},"pj"),Yzh=_.K(function(O){O=O.infoRows;
var x=_.GG().resolve(_.LW),e=_.t("enable_displaying_ppn");return _.D("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.D(_.HE,{each:O},function(l){return _.D("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.D(_.F,{cond:function(){return l.label},
then:function(C){return _.D("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},C)}}),_.D(_.F,{cond:function(){return l.attributedLabel},
then:function(C){return _.D("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.D(_.TT,{text:C,noPreWrap:!0}))}}),_.D(_.F,{cond:function(){return l.value},
then:function(C){return _.D("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},C)}}),_.D(_.F,{cond:function(){return l.attributedValue},
then:function(C){return _.D("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.D(_.TT,{text:C,noPreWrap:!0}))}}))}),_.D(_.F,{cond:function(){return e&&x.clientData.has("post_play_nonce")},
then:function(){return _.D("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.D("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.D("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},x.getData("post_play_nonce")))}}))},"qj"),BQ4=_.K(function(O){var x=O.data;
return _.D("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.D(dUL,{title:function(){return x().dialogTitle}}),_.D(uXX,{data:x}),_.D(_.F,{cond:function(){return x().infoRow},
then:function(e){return _.D(Yzh,{infoRows:e})}}),_.D(nfL,{closeButton:function(){return x().closeButton}}))},"rj");
BQ4.idomCompat=!0;_.wP(BQ4,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;return _.D("yt-gulp-triggering-dialog-view-model",{class:_.xz("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.D(_.n_,{data:function(){return x().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.D("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.D("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.D(_.F,{cond:function(){var e=x().ytLogo;return e?e.iconType:null},
then:function(e){return _.D(_.L7,{icon:e,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.D("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.D("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.D(_.TT,{text:function(){return x().body}})),_.D("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.D(_.TT,{text:function(){return x().verifyStateText}}))),
_.D("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.D("div",null,_.D(_.MR,{data:function(){return x().dismissButton}},{buttonViewModel:_.RV})),_.D("div",null,_.D(_.MR,{data:function(){return x().linkParentButton}},{buttonViewModel:_.RV})))))},"sj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Ld}});var vfQ=_.K(function(O){var x=O.data;O=_.uH(function(){return x().agreements},[]);
return _.D("installment-agreements-view-model",{class:_.xz("ytInstallmentAgreementsViewModelHost")},_.D(_.HE,{each:O},function(e){return _.D("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.D("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.D(_.TT,{text:e.label})),_.D("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.D(_.MR,{data:function(){return e.openButton}},{buttonViewModel:_.RV})))}))},"tj");
vfQ.idomCompat=!0;var fFh=_.K(function(O){var x=_.T(_.bk(function(){var J,O8;return((J=O.data().createPlaylistDialogFormSchema)==null?0:(O8=J.initialValues)==null?0:O8.title)?O.data().createPlaylistDialogFormSchema.initialValues.title:""})),e=x.next().value,l=x.next().value;
x=_.T(_.bk(function(){O.data();return!1}));
var C=x.next().value,Q=x.next().value;x=_.T(_.bk(function(){O.data();return!1}));
var L=x.next().value,k=x.next().value;x=_.T(_.bk(function(){var J,O8;return(J=O.data().createPlaylistDialogFormSchema)==null?void 0:(O8=J.initialValues)==null?void 0:O8.visibility}));
var M=x.next().value,G=x.next().value;x=_.T(_.bk(function(){O.data();return!1}));
var X=x.next().value,y=x.next().value;x=_.T(_.bk(function(){var J,O8;return(J=O.data().createPlaylistDialogFormSchema)==null?void 0:(O8=J.initialValues)==null?void 0:O8.isCollaborative}));
var Z=x.next().value,E=x.next().value,P=_.Q5("div");_.uo(function(){var J=P.value.querySelector("textarea");J&&(J.value=e())},"axFRaf");
_.YK(function(){var J;_.zRL((J=O.data().createPlaylistDialogFormSchema)==null?void 0:J.id,{onSubmit:function(){var O8=e();var Xr=M(),Fr=Z(),mL=O.data();O8={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:O8,privacyStatus:Xr,videoIds:mL.videoIds,sourcePlaylistId:mL.sourcePlaylistId,params:Fr?mL.createPlaylistParamsCollaborationEnabled:mL.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.GG().resolve(_.Xc).resolveCommand(O8)},
isValid:function(){return C()&&!L()&&!X()}})});
var U=function(J){if(J!==void 0&&(l(J),!C()&&J.length>0&&Q(!0),C())){var O8=iIQ(O.data());if(O8){var Xr=O8.minLength;O8=O8.maxLength;Xr&&J.length<Xr?k(!0):O8&&J.length>O8?k(!0):k(!1)}}},W=function(){var J=!(!Z()||M()!=="PRIVATE");
y(J)},z=function(J){J!==void 0&&(G(J),W())},r=function(){if(X())return xiO(O.data())},f=function(){E(!Z());
W()},u=function(){return{validate:function(J){if(C()){var O8=iIQ(O.data());
if(O8){var Xr=O8.minLength;O8=O8.translations;if(Xr&&J.length<Xr)return O8==null?void 0:O8.minLengthErrorMessage}}}}},Y=function(){var J=iIQ(O.data()),O8=J==null?void 0:J.maxLength,Xr;
J=J==null?void 0:(Xr=J.translations)==null?void 0:Xr.maxLengthErrorMessage;if(O8&&J)return{maxChars:O8,errorMessage:J}};
return _.D("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.D("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:P},_.D(_.MR,{data:function(){return O.data().playlistTitle}},{textFormFieldViewModel:function(J){return _.D(_.rhO,{data:J.data,
text:e,onInput:U,validation:u,characterLimit:Y})},
textFieldViewModel:function(J){return _.D(_.z1Q,{data:J.data,text:e,onInput:U,validation:u,characterLimit:Y})}})),_.D("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.D(_.MR,{data:function(){return O.data().playlistVisibility}},{dropdownViewModel:function(J){return _.D(_.w1Y,{data:J.data,
onSelected:z,error:r})}})),_.D(_.F,{cond:function(){return!!O.data().playlistCollaborate},
then:function(){return _.D("div",null,_.D(_.MR,{data:function(){return O.data().playlistCollaborate}},{switchListItemViewModel:function(J){return _.D(_.oDp,{data:J.data,
onTap:f})}}))}}))},"vj");var Jg4=_.K(function(O){var x=O.data;return _.D("upsell-offer-table-cell-content-view-model",null,_.D("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.D(_.KO,null,_.D(_.zn,{when:function(){return x().iconType}},function(){return _.D("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.D(_.L7,{icon:function(){return x().iconType.toString()}}))}),_.D(_.zn,{when:function(){return x().title}},function(){return _.D(_.TT,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return x().title}})}),_.D(_.zn,{when:function(){return x().subtitle}},function(){return _.D(_.TT,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return x().subtitle}})}),_.D(_.zn,{when:function(){return x().infoText}},function(){return _.D(_.TT,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return x().infoText}})}),_.D(_.zn,{when:function(){return x().featureDescription}},function(){return _.D(_.TT,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return x().featureDescription}})}),_.D(_.zn,{when:function(){return x().note}},function(){return _.D(_.TT,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return x().note}})}))))},"wj");
Jg4.idomCompat=!0;var wBL=_.K(function(O){var x=O.data;return _.D("upsell-offer-table-cell-view-model",null,_.D("div",{class:_.xz("ytUpsellOfferTableCellViewModelCellWrapper",function(){return x().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.D(_.MR,{data:function(){return x().contents}},{upsellOfferTableCellContentViewModel:Jg4})))},"xj");
wBL.idomCompat=!0;var SzO=_.K(function(O){var x=O.data;var e=O.upsellTableIsFirstRow;var l=function(){return(e==null?0:e())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},C=function(){return(e==null?0:e())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.D("ytm-upsell-offer-table-row-view-model",null,_.D("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.D(_.MR,{data:function(){return x().rowHeaderCell}},{upsellOfferTableCellViewModel:function(Q){return _.D("div",{class:l},_.D(wBL,{data:Q.data}))}}),_.D(_.MR,{data:function(){return x().contentCells}},{upsellOfferTableCellViewModel:function(Q){return _.D("div",{class:C},_.D(wBL,{data:Q.data}))}})))},"yj");
SzO.idomCompat=!0;var jip=_.K(function(O){var x=O.data;return _.D("ytm-upsell-offer-table-view-model",null,_.D("div",{class:"ytUpsellOfferTableViewModelHost"},_.D("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.D(_.MR,{data:function(){return x().rows}},{upsellOfferTableRowViewModel:function(e,l){return _.D(SzO,{data:e.data,
upsellTableIsFirstRow:function(){return l()===0}})}}))))},"zj");
jip.idomCompat=!0;var NQe=_.K(function(O){var x=function(){return O.data()},e=_.uH(O.noPadding,!1),l=function(){var Q,L;
return(L=(Q=x().logo.accessibilityData)==null?void 0:Q.label)!=null?L:""},C={};
return _.D("upsell-view-model",{class:_.xz("ytUpsellViewModelHost",(C.ytUpsellViewModelHostNoPadding=function(){return e()},C.ytUpsellViewModelHostWide=function(){return x().offerTable!==void 0},C))},_.D("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.D(_.F,{cond:function(){return _.U9(x().logo)},
then:function(Q){return _.D(_.n_,{data:Q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:l})}})),_.D("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.D(_.HE,{each:function(){var Q;
return(Q=x().subtitles)!=null?Q:[]},
keyBy:"INDEX"},function(Q){var L={};return _.D("div",{class:_.xz("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(L.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return x().offerTable!==void 0},L))},_.D(_.TT,{text:Q}))})),_.D("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.D(_.HE,{each:function(){var Q;
return(Q=x().benefitInfos)!=null?Q:[]},
keyBy:"INDEX"},function(Q){return _.D(_.F,{cond:function(){return Q().info},
then:function(L){return _.D("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.D(_.L7,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.D(_.TT,{text:L}))}})})),_.D(_.F,{cond:function(){return x().offerTable!==void 0},
then:function(){return _.D("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.D(_.MR,{data:function(){return x().offerTable}},{upsellOfferTableViewModel:function(Q){return _.D(jip,{data:Q.data})}}))}}),_.D("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.D(_.HE,{each:function(){var Q;
return(Q=x().legalInfos)!=null?Q:[]},
keyBy:"INDEX"},function(Q){var L={};return _.D("div",{class:_.xz("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(L.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return x().offerTable!==void 0},L))},_.D(_.TT,{text:Q}))})))},"Aj");var gfT=_.K(function(O){var x=O.data;O={};O=(O.ytMiniAppScoreChallengeViewModelScoreRadial=!0,O.ytMiniAppScoreChallengeViewModelDarkScoreRadial=eIQ(),O);return _.D("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.D("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return x().title}),_.D("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return x().subtitle}),_.D("div",{class:_.yu(O)},_.D("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return x().score})),_.D("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return x().prompt}))},"Bj");var $UO=function(){this.store=_.dq();this.formId=""};
$UO.prototype.onInit=function(O){O.formId&&(this.formId=O.formId,this.store.dispatch(_.j6({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var iTL=_.K(function(O){function x(k){if(k&&(k=_.q(k,_.GA)))return Object.assign({},k,{isSelected:Q()})}
var e=_.T(_.bk(function(){var k,M;return(M=(k=_.q(O.data().option,_.GA))==null?void 0:k.isSelected)!=null?M:!1})),l=e.next().value,C=e.next().value,Q=l;
_.YK(function(){var k;_.zRL((k=O.data().formSchema)==null?void 0:k.id,{onSubmit:function(){var M=_.GG().resolve(_.Xc),G=!!O.data().selectedCommand,X=!!O.data().unselectedCommand;if(Q()){if(G)var y=O.data().selectedCommand}else X&&(y=O.data().unselectedCommand);y=_.p_(y);x(O.data().option)&&!y?(M="",!G&&X?M="selected ":G&&!X&&(M="unselected "),G=new _.ry("No "+M+"command found for SelectionListItemFormViewModel"),_.BH(G)):y&&M.resolveCommand(y)},
isValid:function(){return!0}})});
var L=function(){C(!Q())};
_.YO(function(){var k,M,G=(k=O.data())==null?void 0:(M=k.formSchema)==null?void 0:M.id;G&&_.kp()().delete(G)});
return _.D("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.D("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.D(_.TT,{text:function(){return O.data().paragraph}})),_.D(_.F,{cond:function(){return x(O.data().option)},
then:function(k){return _.D(_.$H,{data:k,isCompact:!0,hideSelectionTextChevron:!0,onTap:L,disableHorizontalPadding:!0})}}))},"Cj");var Ov$=_.K(function(O){var x=O.data;var e=O.disablePadding;var l=O.className;var C=_.Q5("yt-dialog-header-view-model"),Q=function(){var k=x().imageBanner;a:switch(x().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var M="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:M="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:k,style:M,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},L=function(){return x().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.YK(function(){var k=function(){_.Sh(C.value,"yt-refit-popups-action")},M;
(M=C.value)==null||M.addEventListener("image-loaded",k);_.YO(function(){var G;(G=C.value)==null||G.removeEventListener("image-loaded",k)})});
O={};return _.D("yt-dialog-header-view-model",{el:C,class:_.xz(l,(O.ytDialogHeaderViewModelHost=!0,O.ytDialogHeaderViewModelHostDisablePadding=e,O))},_.D(_.F,{cond:function(){return x().imageBanner},
then:function(){var k={};return _.D("div",{class:_.xz(l,(k.ytDialogHeaderViewModelBanner=!0,k.ytDialogHeaderViewModelBannerFullBleed=L,k)),style:_.T7({"max-height":function(){return x().assetContainerMaxHeight!==void 0?x().assetContainerMaxHeight+"px":void 0}})},_.D(_.qP,{data:Q,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.D(_.F,{cond:function(){return x().headerBlock},
then:function(){return _.D("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.D(_.MR,{data:function(){return x().headerBlock}},{contentPreviewImageViewModel:function(k){return _.D(_.qP,{data:k.data,
notifyOnLoaded:!0})}}))}}),_.D(_.F,{cond:function(){return x().customBanner},
then:function(k){return _.D("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.D(_.MR,{data:k},{avatarStackViewModel:_.g6}))}}),_.D(_.F,{cond:function(){return x().headline},
then:function(k){return _.D("h2",null,_.D(_.TT,{text:k,className:"ytDialogHeaderViewModelText"}))}}))},"Dj");
Ov$.idomCompat=!0;var xIT=_.K(function(O){var x=_.MM7(function(){return O.data().formId}),e=x.submitForm,l=x.isValid;
return _.D("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.D(_.MR,{data:function(){return O.data().panelFooter}},{panelFooterViewModel:function(C){return _.D(_.IA,{data:C.data,
disablePadding:!0,disablePrimaryButton:function(){return!l()},
onClickPrimaryButton:function(){e()}})}}))},"Ej");var e84=_.K(function(O){var x=function(){var e,l;return(l=(e=_.q(O.data().rendererContext,_.LM))==null?void 0:e.label)!=null?l:""};
return _.D("yt-dialog-image-content-view-model",{class:_.xz("ytDialogImageContentViewModelHost",O.className)},_.D(_.F,{cond:function(){return _.U9(O.data().image)},
then:function(e){var l={};return _.D("div",{style:_.T7((l.width=(0,_.Nm)(function(){var C;return(C=O.data().imageMaxWidth)!=null?C:""}),l)),
class:"ytDialogImageContentViewModelImage"},_.D(_.n_,{data:e,alt:x,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.D(_.TT,{text:function(){return O.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Fj");var QGT=_.K(function(O){var x=_.YX(O,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),e=x.elRefCallback;O=x.iconWiz;var l=x.assetWiz,C=x.assetType,Q=x.titleWiz,L=x.leadingActionHeaderWiz,k=x.trailingActionHeaderWiz,M=x.headerPosition,G=x.contentWiz,X=x.buttonLayout,y=x.buttonStyle,Z=x.primaryButtonWiz,E=x.secondaryButtonWiz,P=x.contentAlignment,U=x.isFullscreen,W=x.width,z=x.maxHeight,r=x.isHeaderWizDefined,
f=x.headerWiz,u=x.isFooterWizDefined,Y=x.footerWiz;x=_.Q5("dialog-layout",function(VN){e==null||e(VN)});
var J=l?function(){return l({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,O8=Z?function(){var VN={};
return Z({buttonOverrides:function(){return{style:(y==null?void 0:y())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.xz((VN["yt-spec-dialog-layout__dialog-layout-button"]=!0,VN["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(X==null?void 0:X())===0||(X==null?void 0:X())===2},VN))})}:void 0,Xr=E?function(){var VN={};
return E({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.xz((VN["yt-spec-dialog-layout__dialog-layout-button"]=!0,VN["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(X==null?void 0:X())===0||(X==null?void 0:X())===2},VN))})}:void 0,Fr=function(){return(!!Q||!!L||!!k)&&M()===0},mL={},Zn={},q$={},KV={};
return _.D("dialog-layout",{el:x,class:_.xz((mL["yt-spec-dialog-layout"]=!0,mL["yt-spec-dialog-layout--dialog-layout-fullscreen"]=U,mL["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!U()},mL["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return z()===1},mL["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(C==null?void 0:C())===1},mL)),
style:function(){return(W==null?void 0:W())!==void 0?"width: "+W+"px;":""}},O?_.D("div",{class:_.xz((Zn["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Zn["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!l&&M()===1},Zn["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return P()===1},Zn))},_.D(O,null)):null,_.D(_.F,{cond:r,
then:function(){return f?_.D("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.D(f,null)):null},
else:function(){return _.D(_.Xm,null,_.D(_.F,{cond:Fr,then:function(){return _.D(lT$,{contentAlignment:P,LeadingActionHeader:L,TrailingActionHeader:k,Title:Q,isAboveAsset:!!J})}}),J?_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.D(J,null)):null)}}),_.D("div",{class:_.xz((q$["yt-spec-dialog-layout__dialog-layout-container"]=!0,q$["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(P==null?void 0:P())===1},q$["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!Q&&!(f&&r())||!!J&&(M==null?void 0:M())===0},q$))},_.D(_.F,{cond:function(){return Q&&!f&&(M==null?void 0:M())===1},
then:function(){return _.D(lT$,{contentAlignment:P,LeadingActionHeader:L,TrailingActionHeader:k,Title:Q,isAboveAsset:!1})}}),G?_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.D(G,null))):null,_.D(_.F,{cond:u,
then:function(){return Y?_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.D(Y,null)):null}}),O8||Xr?_.D(Csu,{footerClasses:_.xz((KV["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,KV["yt-spec-dialog-layout__dialog-layout-footer"]=!0,KV["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(X==null?void 0:X())===2},KV["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(X==null?void 0:X())===1},KV)),
PrimaryButton:O8,SecondaryButton:Xr}):null))},"Gj"),lT$=_.K(function(O){var x=_.YX(O,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),e=x.contentAlignment,l=x.LeadingActionHeader;O=x.Title;var C=x.TrailingActionHeader,Q=x.isAboveAsset,L=x.enableLeadingActionHeader;x={};return _.D("div",{class:_.xz((x["yt-spec-dialog-layout__dialog-header-container"]=!0,x["yt-spec-dialog-layout__dialog-header"]=!0,x["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=Q,x["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(e==null?void 0:e())===1&&L()},x))},_.D(_.F,{cond:function(){return L()},
then:function(){return l?_.D("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.D(l,null)):null}}),O?_.D("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.D(O,null)):null,C?_.D("div",null,_.D(C,null)):null)},"Hj"),Csu=_.K(function(O){var x=O.footerClasses;
var e=O.PrimaryButton;O=O.SecondaryButton;return _.D("div",{class:x},O?_.D(O,null):null,e?_.D(e,null):null)},"Ij");var bv$=_.K(function(O){var x=O.data;return _.D("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.D("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.D(_.MR,{data:function(){return x().avatar}},{avatarViewModel:_.jQ})),_.D("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D(_.TT,{text:function(){return x().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Jj");var Tte=_.K(function(O){return _.D("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.D(_.TT,{text:function(){return O.data().inviteMessage}})),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.D(_.TT,{text:function(){return O.data().attributedAccountSectionHeaderText}})),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.D(_.MR,{data:function(){return O.data().accountAvatar}},{avatarViewModel:_.jQ}),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.D(_.TT,{text:function(){return O.data().accountName}}),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.D(_.TT,{text:function(){return O.data().handle}}))),_.D(_.MR,{data:function(){return O.data().trailingButton}},{buttonViewModel:_.RV})),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.D(_.TT,{text:function(){return O.data().termsOfService}})))},"Kj");var LZX=_.K(function(O){var x=O.data;return _.D("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.D("div",{class:"ytAccessConfirmationViewModelContent"},_.D(_.MR,{data:function(){var e;return(e=x().avatar)!=null?e:x().dualAvatar}},{dualAvatarViewModel:function(e){return _.D(_.QSL,{data:e.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(e){return _.D(_.Nz,{data:e.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.D("h2",{class:"ytAccessConfirmationViewModelTitle"},_.D(_.TT,{text:function(){return x().title}})),_.D(_.TT,{text:function(){return x().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Lj");var k9e=_.K(function(O){var x=O.data;var e=void 0;O=_.T(_.bk(function(){var G;return((G=_.q(x().content,_.Sq))==null?void 0:G.defaultSelectedKey)||""}));
var l=O.next().value,C=O.next().value,Q,L=function(){C("");var G;(G=e)!=null&&G.store.dispatch(_.j6({type:"RESET_COMMAND_MAP"}))};
_.YK(function(){e=new $UO;window.addEventListener("yt-popup-closed",L)});
_.uo(function(){if(e&&Q!==x().formId&&(e.onInit(x()),(Q=x().formId)&&l())){var G=e,X={key:l()};X.command&&G.store.dispatch(vxL(Q,X.command))}},"c2n8Gf");
_.YO(function(){window.removeEventListener("yt-popup-closed",L)});
var k=function(G,X,y){X.key&&y&&X.key!==l()&&(C(X.key),e&&X.command&&e.store.dispatch(vxL(y,X.command)))},M=function(){if(_.q(x().content,_.Sq))return!(l==null?0:l())};
return _.D("yt-dialog-view-model",{class:_.xz("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.D(QGT,{headerWiz:function(){return _.D("span",{skip:!0},_.D(_.MR,{data:function(){return x().header}},{dialogHeaderViewModel:function(G){return _.D(Ov$,{data:G.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!x().header},
contentWiz:function(){return _.D("span",{skip:!0},_.D(_.MR,{data:function(){return x().customContent?x().customContent:x().content}},{basicContentViewModel:_.bHJ,
createPlaylistDialogFormViewModel:fFh,collaborativePlaylistInviteMessageViewModel:Tte,miniAppScoreChallengeViewModel:gfT,radioButtonGroupViewModel:function(G){var X=G.data;return _.D(_.mcL,{data:X,selectedKey:l,onSelected:k,groupName:function(){return X().formId}})},
selectionListItemFormViewModel:iTL,upsellViewModel:function(G){return _.D(NQe,{data:G.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:bv$,installmentAgreementsViewModel:vfQ,accessConfirmationViewModel:LZX,listViewModel:function(G){return _.D(_.I3N,{data:G.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:e84}))},
footerWiz:function(){return _.D("span",{skip:!0},_.D(_.MR,{data:function(){return x().footer}},{panelFooterViewModel:function(G){return _.D(_.IA,{data:G.data,
disablePadding:!0,disablePrimaryButton:M})},
formPanelFooterViewModel:xIT,formFooterViewModel:function(G){return _.D(_.ZAw,{data:G.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!x().footer}}))},"Nj");
k9e.idomCompat=!0;_.wP(k9e,"yt-dialog-view-model",{props:{data:_.Ld},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var AVX=_.K(function(O){var x=O.data;var e=_.YkL(function(){return x().rendererContext});
O={};return _.D("yt-panel-header-view-model",{class:_.xz("ytPanelHeaderViewModelHost",(O.ytPanelHeaderViewModelHostHideDivider=function(){return!!x().shouldHideDivider},O.ytPanelHeaderViewModelHostCompact=function(){return!!x().subtitle},O)),
"aria-label":function(){var l;return(l=e())==null?void 0:l.label}},_.D("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.D(_.F,{cond:function(){return x().title},
then:function(l){return _.D("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.D(_.TT,{text:l,className:"ytPanelHeaderViewModelTitle"}))}}),_.D(_.F,{cond:function(){return x().subtitle},
then:function(l){return _.D(_.TT,{text:l,className:"ytPanelHeaderViewModelSubtitle"})}})),_.D("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.D(_.MR,{data:function(){return x().trailingButtons}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Oj");
AVX.idomCompat=!0;var MqO=_.K(function(O){var x=_.lk(function(Q){var L;if((L=O.skipContentClick)==null?0:L.call(O))return!1;O.onContentWrapperClick(Q);return!0}),e,l,C;
return _.D("div",{class:_.xz("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return O.isAnimating()?"transform: translateY("+O.currentY()+"px);transition: 0.2s":""}},(e=O.header)==null?void 0:e.call(O),_.D("div",{id:O.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.T7({"max-height":(0,_.Nm)(O.maxHeightForContentWrapper)}),"on:scroll":b0L(O.onScroll),"on:touchmove":b0L(function(Q){return void Q.stopPropagation()})},_.D("div",{el:{onRender:O.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":x},(l=O.body)==null?void 0:l.call(O))),(C=O.footer)==null?void 0:C.call(O))},"Pj");
MqO.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var DIQ=_.K(function(O){var x=_.uH(O.leadingLabel),e=_.uH(O.trailingLabel),l=_.uH(O.footerButtonType),C=function(){return x()||e()||O.hasPrimaryButton()||O.hasSecondaryButton()},Q={},L=_.xz("yt-spec-bottom-sheet-layout__primary-button",(Q["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return l()===0&&O.hasPrimaryButton()},Q["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return l()===1&&O.hasPrimaryButton()},Q["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return l()===2&&O.hasPrimaryButton()},Q["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return l()===3&&O.hasPrimaryButton()},Q));
Q={};var k=_.xz("yt-spec-bottom-sheet-layout__secondary-button",(Q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return l()===1&&O.hasSecondaryButton()},Q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return l()===2&&O.hasSecondaryButton()},Q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return l()===3&&O.hasPrimaryButton()},Q));
return _.D(_.F,{cond:O.hasFooterOverride,then:function(){var M;return _.D(_.Xm,null,(M=O.footerOverride)==null?void 0:M.call(O))},
else:function(){return _.D(_.F,{cond:C,then:function(){return _.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.D(_.F,{cond:function(){return x()||e()},
then:function(){var M={};return _.D("div",{class:_.xz("yt-spec-bottom-sheet-layout__footer-label-wrapper",(M["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!O.hasPrimaryButton()},M))},_.D(_.F,{cond:x,
then:function(){return _.D("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},x)}}),_.D(_.F,{cond:e,
then:function(){return _.D("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},e)}}))}}),_.D(_.F,{cond:function(){return O.hasPrimaryButton()||O.hasSecondaryButton()},
then:function(){var M={};return _.D("div",{class:_.xz("yt-spec-bottom-sheet-layout__footer-button-wrapper",(M["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.ksk,M))},_.D(_.F,{cond:function(){return O.hasSecondaryButton()&&l()!==0},
then:function(){var G;return _.D("div",{class:k},(G=O.secondaryButton)==null?void 0:G.call(O))}}),_.D(_.F,{cond:O.hasPrimaryButton,
then:function(){var G;return _.D("div",{class:L},(G=O.primaryButton)==null?void 0:G.call(O))}}))}}))}})}})},"Qj");
DIQ.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var G94=_.K(function(O){var x=_.uH(O.title),e=_.uH(O.subtitle);return _.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:O.headerId,"on:touchstart":_.lk(function(l){var C;(C=O.touchstart)==null||C.call(O,l);return!1}),
"on:touchmove":_.lk(function(l){var C;(C=O.touchmove)==null||C.call(O,l);return!1}),
"on:touchend":_.lk(function(l){var C;(C=O.touchend)==null||C.call(O,l);return!1})},_.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.D(_.F,{cond:O.hasHeaderOverride,
then:function(){var l;return _.D(_.Xm,null,(l=O.headerOverride)==null?void 0:l.call(O))},
else:function(){var l={};return _.D("div",{class:_.xz((l["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,l["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=x,l))},_.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.D(_.F,{cond:x,then:function(){return _.D(_.Xm,null,_.D("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},x),_.D(_.F,{cond:e,then:function(){return _.D("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
e)}}))}})),_.D(_.F,{cond:function(){return x()&&O.hasActionHeader()},
then:function(){var C;return _.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(C=O.actionHeader)==null?void 0:C.call(O))}}))}}))},"Rj");
G94.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.K(function(O){function x(J){if(!z&&typeof MutationObserver!=="undefined"){var O8={childList:!0};"MutationObserver"in window&&(z=new MutationObserver(e.bind(void 0,J)),z.observe(J,O8))}}
function e(J){typeof z!=="undefined"&&(r["content-wrapper"]===void 0&&(r["content-wrapper"]=J.children[0].clientHeight),E(r["content-wrapper"]),Z()>P()||U(Z()))}
function l(){y(window.innerHeight);Z()>P()||U(Z());f.isFullScreen[0]()&&Z()>P()?u().dispatch("Snap To Full Screen",{maxHeight:W()}):u().dispatch("Snap To Neutral Position",{maxHeight:P()})}
function C(J){document.body.style.overscrollBehavior="none";J.preventDefault();u().dispatch("Touch Start",{event:J})}
function Q(J){J.preventDefault();u().dispatch("Touch Move",{event:J,contentScrollable:Z()>P(),fullContentWrapperHeight:W(),contentWrapperHeight:P(),contentHeightMap:r,contentWrapperId:"content-wrapper",header:Lt4(O),footer:Lt4(O)})}
function L(){document.body.style.overscrollBehavior="";f.isFullScreen[0]()?f.currentY[0]()>=60?u().dispatch("Snap To Neutral Position",{maxHeight:P()}):u().dispatch("Snap To Full Screen",{maxHeight:W()}):f.currentY[0]()>=60?k():f.currentY[0]()<=-60&&Z()>P()?u().dispatch("Snap To Full Screen",{maxHeight:W()}):u().dispatch("Snap To Neutral Position",{maxHeight:P()})}
function k(){u().dispatch("Close Sheet",{clientHeight:X(),maxHeight:0});setTimeout(function(){T4L()},250)}
var M=_.T(_.Iw(window.innerHeight,void 0,"Q6Nekc")),G=M.next().value;M=M.next().value;var X=G,y=M;M=_.T(_.Iw(0,void 0,"vjnlmb"));G=M.next().value;M=M.next().value;var Z=G,E=M;M=_.T(_.bk(function(){var J=Lt4(O);return.6*X()-lOO(J)-Cmh(J)}));
G=M.next().value;M=M.next().value;var P=G,U=M,W=function(){var J=Lt4(O);return X()-lOO(J)-Cmh(J)-24-24},z=null,r={},f={initialY:_.Iw(0,void 0,"B0aY2c"),
currentY:_.Iw(0,void 0,"nLPMcf"),isAnimating:_.Iw(!1,void 0,"lXnnZ"),isFullScreen:_.Iw(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.bk(P)},u=function(){var J=null;return function(){if(!J){var O8={initialY:f.initialY[0](),currentY:f.currentY[0](),isAnimating:f.isAnimating[0](),isFullScreen:f.isFullScreen[0](),maxHeightForContentWrapper:f.maxHeightForContentWrapper[0]()};J=QKL(O8)}return J}}();
_.YK(function(){window.addEventListener("resize",l);u().subscribe(function(J){f.initialY[1](J.initialY);f.currentY[1](J.currentY);f.isAnimating[1](J.isAnimating);f.isFullScreen[1](J.isFullScreen);f.maxHeightForContentWrapper[1](J.maxHeightForContentWrapper)})});
_.YO(function(){window.removeEventListener("resize",l);z&&(z.disconnect(),z=null)});
var Y=_.xz({"bottom-sheet-content-without-icon":function(){var J;return!((J=O.shouldShowIcons)==null?0:J.call(O))}});
return _.D("bottom-sheet-layout",null,_.D(MqO,{contentWrapperId:"content-wrapper",isAnimating:function(){return f.isAnimating[0]()},
currentY:function(){return f.currentY[0]()},
maxHeightForContentWrapper:function(){return f.maxHeightForContentWrapper[0]()},
shouldShowIcons:O.shouldShowIcons,skipContentClick:O.skipContentClick,onScroll:function(){var J=document.getElementById("header-wrapper"),O8=document.getElementById("content-wrapper");if(J&&O8){var Xr={};Xr=(Xr["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Xr["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Xr);J.className=O8.scrollTop>1?_.yu(Xr):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:T4L,contentWrapperEl:function(J){x(J);requestAnimationFrame(function(){e(J)})},
header:function(){return _.D(G94,{touchstart:C,touchmove:Q,touchend:L,title:O.headerTitle,subtitle:O.headerSubtitle,headerId:"header-wrapper",headerOverride:O.headerFn,hasHeaderOverride:O.hasHeaderFn,actionHeader:O.headerActionHeader,hasActionHeader:O.hasHeaderActionHeader})},
footer:function(){return _.D(DIQ,{footerButtonType:O.footerButtonType,leadingLabel:O.footerLeadingLabel,trailingLabel:O.footerTrailingLabel,primaryButton:O.footerPrimaryButton,hasPrimaryButton:O.hasFooterPrimaryButton,secondaryButton:O.footerSecondaryButton,hasSecondaryButton:O.hasFooterSecondaryButton,footerOverride:O.footerFn,hasFooterOverride:O.hasFooterFn})},
body:function(){return _.D(_.F,{cond:O.hasContentFn,then:function(){var J;return _.D("div",{class:Y},(J=O.contentFn)==null?void 0:J.call(O))}})}}))},"Sj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var FZQ=_.K(function(O){var x=_.GG().resolve(_.fj);return _.D("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.lk(function(){return void x.closeSheet()})},_.D(_.F,{cond:function(){return!!O.header},
then:function(){return _.D("div",{class:"ytContextualSheetLayoutHeaderContainer"},O.header())}}),_.D(_.F,{cond:function(){return!!O.content},
then:function(){return _.D("div",{class:"ytContextualSheetLayoutContentContainer"},O.content())}}),_.D(_.F,{cond:function(){return!!O.footer},
then:function(){return _.D("div",{class:"ytContextualSheetLayoutFooterContainer"},O.footer())}}))},"Tj");
FZQ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var X_Y=_.K(function(O){O=O.data;var x=_.Q5("yt-sheet-view-model",function(l){if(_.t("web_focus_first_element_sheet")||!_.t("sheet_focus_first_killswitch"))return l.addEventListener("focus",function(){QHw(l)}),function(){l.removeEventListener("focus",function(){QHw(l)})}}),e={};
return _.D("yt-sheet-view-model",{"on:mousedown":_.lk(function(l){_.t("sheet_focus_first_killswitch")||l.currentTarget!==l.target&&l.preventDefault()}),
"on:focus":_.lk(function(){_.t("sheet_focus_first_killswitch")||QHw(x.value)}),
class:_.xz("ytSheetViewModelHost",(e.ytSheetViewModelContextual=!0,e.ytSheetViewModelDisableBackdropFilter=_.t("web_disable_backdrop_filter"),e)),el:x,tabindex:-1},_.D(_.F,{cond:O,then:function(l){return _.D(FZQ,{header:function(){return _.D(_.MR,{data:function(){return l().header}},{panelHeaderViewModel:AVX})},
content:function(){return _.D(_.MR,{data:function(){return l().content}},{listViewModel:function(C){return _.D(_.I3N,{data:C.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:NQe,miniAppScoreChallengeViewModel:gfT})},
footer:function(){return _.D(_.MR,{data:function(){return l().footer}},{panelFooterViewModel:_.IA})}})}}))},"Uj");
X_Y.idomCompat=!0;_.wP(X_Y,"yt-sheet-view-model",{props:{data:_.Ld}});var yVQ=_.K(function(O){var x=function(){var e;return(e=O.data().enableDebuggingFeatures)!=null?e:!1};
return _.D("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.D(_.HE,{each:function(){var e;return(e=O.data().stickers)!=null?e:[]}},function(e){return _.D(oAQ,{data:function(){return e},
debugMode:x})}))},"Vj"),oAQ=_.K(function(O){var x=_.YX(O,{debugMode:!1}).debugMode,e=_.uH(function(){var M;
return(M=O.data().region)==null?void 0:M.w},0),l=_.uH(function(){var M;
return(M=O.data().region)==null?void 0:M.h},0),C=_.uH(function(){var M;
return(M=O.data().region)==null?void 0:M.x},0),Q=_.uH(function(){var M;
return(M=O.data().region)==null?void 0:M.y},0),L=_.lk(function(){var M=O.data().onTap;
M&&_.me(M)}),k={};
return _.D("div",{class:_.xz("ytStoriesStickerLayerViewModelSticker",(k.ytStoriesStickerLayerViewModelDebugMode=x,k)),style:_.T7({width:function(){return 100*e()+"%"},
height:function(){return 100*l()+"%"},
left:function(){return 100*C()+"%"},
top:function(){return 100*Q()+"%"},
"flex-direction":function(){return kBw(O.data().flexDirection)},
"justify-content":function(){return AOO(O.data().justifyContent)},
"align-items":function(){return MJh(O.data().alignItems)}}),
"on:click":L},_.D(_.MR,{data:function(){return O.data().button||O.data().toggleButton}},{buttonViewModel:function(M){return _.D(_.RV,{data:M.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(M){return _.D(_.Jc,{data:M.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Wj");var EAu=_.K(function(O){var x=function(){return O.data()},e={},l=_.T(_.Iw(!1,void 0,"Adcqrf")),C=l.next().value,Q=l.next().value,L=_.uH(function(){return x().backgroundColor},0);
l=_.uH(function(){return x().actionButtons},[]);
var k=_.uH(function(){return x().stickerLayer},{}),M=function(){var X,y;
return{animationRef:e,animationConfig:{autoplay:!1,loop:!1,path:(y=(X=x().foregroundAnimation)==null?void 0:X.url)!=null?y:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){Q(!0)},
complete:function(){O.navigateToNextItemOnLottieComplete()}}}},G=function(){var X,y,Z,E,P,U,W,z;
return{animationConfig:{autoplay:(U=(X=x().backgroundAnimation)==null?void 0:(y=X.settings)==null?void 0:y.autoplay)!=null?U:!1,loop:(W=(Z=x().backgroundAnimation)==null?void 0:(E=Z.settings)==null?void 0:E.loop)!=null?W:!1,path:(z=(P=x().backgroundAnimation)==null?void 0:P.url)!=null?z:"",name:"stories_item_background_animation"}}};
_.uo(function(){if(O.isVisible()&&C()){var X;(X=e.lottieEl)==null||X.play();O.animationRef()&&(O.animationRef().lottieEl=e.lottieEl)}else{var y;(y=e.lottieEl)==null||y.stop()}},"yCE6kf");
return _.D("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.T7({"background-color":function(){return _.aF(L())+";"}})},_.D("div",{class:"ytStoriesItemViewModelAssetContent"},_.D(_.F,{cond:function(){return!!x().backgroundAnimation},
then:function(){return _.D(_.hc,{data:G,animationName:function(){return G().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.D(_.F,{cond:function(){return!!x().backgroundImage},
then:function(){return _.D(_.n_,{data:function(){return x().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.D(_.F,{cond:function(){return!!x().foregroundAnimation},
then:function(){return _.D(_.hc,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.D(_.F,{cond:function(){return!!x().foregroundImage},
then:function(){return _.D(_.n_,{data:function(){return x().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.D("div",{class:"ytStoriesItemViewModelTopShadow"}),_.D(_.MR,{data:function(){return k()}},{storiesStickerLayerViewModel:yVQ})),_.D("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.T7({"background-color":function(){return _.aF(L())}})},_.D("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.D(_.HE,{each:l},function(X){return _.D(Zvw,{data:function(){return X},
pauseAutoNavigation:O.pauseAutoNavigation})}))))},"Yj"),tqQ={style:"overlay",
type:"outline"},Zvw=_.K(function(O){var x={};return _.D("div",{class:_.xz("ytStoriesItemViewModelActionButton",(x.ytStoriesItemViewModelStretchedActionButton=function(){return O.data().size==="STORIES_BUTTON_SIZE_STRETCH"},x)),
"on:click":_.lk(O.pauseAutoNavigation)},_.D(_.MR,{data:function(){return O.data().button}},{buttonViewModel:function(e){return _.D(_.RV,{data:e.data,
buttonOverrides:tqQ})}}))},"Zj");var qiL={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.wP(_.K(function(O){var x=function(){var Zn;return(Zn=O.data().startIndex)!=null?Zn:0},e=_.T(_.bk(x)),l=e.next().value,C=e.next().value;
e=_.T(_.Iw(!1,void 0,"hu8VSd"));var Q=e.next().value,L=e.next().value,k=function(){var Zn;return(Zn=O.data().storyItems)!=null?Zn:[]},M={},G=_.Q5("yt-stories-viewer-view-model"),X=function(){return O.data().dismissButton},y=function(){var Zn;
return _.p_((Zn=_.q(X(),_.gf))==null?void 0:Zn.onTap)},Z=_.Q5("div"),E,P,U=!1,W=function(){var Zn;
(Zn=E)==null||Zn.cancel();E=z(l()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});E.onfinish=function(){var q$=_.q(k()[l()],tVO),KV,VN;q$!=null&&q$.foregroundAnimation&&((q$==null?0:(KV=q$.foregroundAnimation)==null?0:KV.url)||(q$==null?0:(VN=q$.foregroundAnimation)==null?0:VN.payload))||(l()!==k().length-1?(C(l()+1),W()):y()&&_.Rl(y()))}},z=function(Zn){return Z.value.children[Zn].children[0]},r=function(){for(var Zn=0;Zn<l();Zn++)z(Zn).style.transform=
"scaleX(1)"},f=function(){U||(Q()?L(!1):(l()===k().length-1&&y()&&_.Rl(y()),z(l()).style.transform="scaleX(1)",l()!==k().length-1&&(C(l()+1),W())))},u=function(){U||(Q()?L(!1):(z(l()).style.transform="scaleX(0)",l()!==0&&C(l()-1),W()))},Y=function(){L(!0)},J=function(){z(l()).style.transform="scaleX(1)";
l()!==k().length-1?(C(l()+1),W()):y()&&_.Rl(y())};
e=function(){U=!1;P=setTimeout(function(){L(!0);U=!0},300)};
var O8=function(){clearTimeout(P);U&&Q()&&L(!1)};
_.uo(function(){if(Q()){var Zn;(Zn=E)==null||Zn.pause();var q$;(q$=M.lottieEl)==null||q$.pause()}else{var KV;(KV=E)==null||KV.play();var VN;(VN=M.lottieEl)==null||VN.play()}},"iO2i3d");
_.uo(function(){r();l()===x()&&W()},"lE01H");
var Xr=function(Zn){Zn.key==="ArrowLeft"?u():Zn.key==="ArrowRight"&&f()},Fr=function(Zn){if(Zn.target===G.value){(Zn=y())&&_.Rl(Zn);
clearTimeout(P);var q$;(q$=E)==null||q$.cancel();window.removeEventListener("keydown",Xr);window.removeEventListener("yt-popup-closed",Fr)}},mL=function(Zn){Zn.target===G.value&&(window.addEventListener("keydown",Xr),window.addEventListener("yt-popup-closed",Fr))};
_.YK(function(){r();W();window.addEventListener("yt-popup-opened",mL)});
return _.D("yt-stories-viewer-view-model",{el:G,class:_.xz("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.D("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.D("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.lk(u),"on:mousedown":_.lk(e),"on:mouseup":_.lk(O8),"on:mouseleave":_.lk(O8)}),_.D("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.lk(f),"on:mousedown":_.lk(e),"on:mouseup":_.lk(O8),"on:mouseleave":_.lk(O8)})),
_.D("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.D(_.MR,{data:k},{storiesItemViewModel:function(Zn,q$){var KV=Zn.data;return _.D(_.F,{cond:function(){return Math.abs(q$()-l())<=1},
then:function(){var VN={};return _.D("div",{class:_.xz("ytStoriesViewerViewModelStoryItem",(VN.ytStoriesViewerViewModelActiveStoryItem=function(){return q$()===l()},VN))},_.D(EAu,{data:KV,
pauseAutoNavigation:Y,navigateToNextItemOnLottieComplete:J,isVisible:function(){return q$()===l()},
animationRef:M}))}})}})),_.D("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Z},_.D(_.HE,{each:k},function(){return _.D("div",{class:"ytStoriesViewerViewModelProgressBar"},_.D("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.D("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.D(_.n_,{data:qiL,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.D("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.D(_.MR,{data:X},{buttonViewModel:_.RV}))))},"bk"),"yt-stories-viewer-view-model",{props:{data:_.Ld}});_.wP(_.K(function(O){var x=O.data;var e=_.Q5("yt-gen-ai-feedback-form-view-model"),l=[];return _.D("yt-gen-ai-feedback-form-view-model",{el:e,class:"ytGenAiFeedbackFormViewModelHost"},_.D(_.TT,{text:function(){return x().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.D("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.D(_.MR,{data:function(){return x().feedbackChips}},{toggleButtonViewModel:function(C){var Q=C.data;
return _.D(_.Jc,{data:Q,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(L){var k=Q();k=_.q(k,_.iN);k=_.q(k==null?void 0:k.defaultButtonViewModel,_.gf).trackingParams;L?l.push(k):(L=l.indexOf(k),L>-1&&l.splice(L,1))}})}})),_.D(_.TT,{text:function(){return x().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.D("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.D(_.MR,{data:function(){return x().submitButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){DiL(e.value,l,x().uniqueId)}})}}),_.D(_.MR,{data:function(){return x().moreFeedbackButton}},{buttonViewModel:function(C){return _.D(_.RV,{data:C.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ck"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Ld},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var dR=function(){return _.a.apply(this,arguments)||this};
_.c(dR,_.a);dR.prototype.created=function(){fgT(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(IhY);var O=_.GG().resolve(_.ifu);O&&(O.container=this.ytPopupContainerBehavior);if(O=_.GG().resolve(_.fj))O.container=this.ytPopupContainerBehavior;if(O=_.GG().resolve(_.JT)){var x=this.ytPopupContainerBehavior;O.containerWasInjected?_.ft(Error("oj")):O.container=x}};
dR.prototype.ensurePopupBelowPlayer=function(O,x){var e=_.GG().resolve(_.D0(_.Be));if(!e||!e.isOnWatch()||!_.f7())return!1;e=e.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.L3().height>e+this.getPopupHeight(O,x)?(O.style.top="auto",O.style.bottom="0px"):(O.style.top=e+"px",O.style.bottom="auto");return!0};
dR.prototype.getPopupHeight=function(O,x){x&&(O.cachedPopupHeight=0);if(!O.cachedPopupHeight){x=0;var e=O.clientHeight,l=window.getComputedStyle(O);x+=parseInt(l.marginTop,10);x+=parseInt(l.marginBottom,10);O.cachedPopupHeight=e+x}return O.cachedPopupHeight};
dR.prototype.getElement=function(O){return document.createElement(O)};
_.B([_.V(bEQ.YtPopupContainerBehavior),_.v("design:type",Object)],dR.prototype,"ytPopupContainerBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.B([_.H({disableElementRegistration:!0,is:"ytd-popup-container"})],dR);
_.n(dR,"ytd-popup-container",function(){if(gru!==void 0)return gru;var O=document.createElement("template");_.I(O,"\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");O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);return gru=O},{mode:1});var PsO;var cVL={};cVL.YtLogYpcFlowCommandsBehavior=[_.Wt.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(O){_.q(O,dPL)&&(O=_.q(O,dPL))&&(O.serializedTransactionFlowLoggingParams?_.pfm(O.serializedTransactionFlowLoggingParams):O.serializedYpcCancelFlowLoggingParams?(O=O.serializedYpcCancelFlowLoggingParams)&&_.FB("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",O):O.serializedYpcResumeFlowLoggingParams?(O=O.serializedYpcResumeFlowLoggingParams)&&_.FB("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",O):O.serializedYpcPauseFlowLoggingParams?(O=O.serializedYpcPauseFlowLoggingParams)&&
_.FB("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",O):O.serializedYpcRefundFlowLoggingParams?(O=O.serializedYpcRefundFlowLoggingParams)&&rBL("YPC_EVENT_TYPE_START",O):O.serializedYpcDeactivateFlowLoggingParams?(O=O.serializedYpcDeactivateFlowLoggingParams)&&_.FB("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",O):O.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(O=O.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.FB("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",O))},
handleLogYpcFlowDismiss_:function(O){_.q(O,K0L)&&(O=_.q(O,K0L),O.serializedTransactionFlowLoggingParams?_.R$m(O.serializedTransactionFlowLoggingParams):O.serializedYpcCancelFlowLoggingParams?(O=O.serializedYpcCancelFlowLoggingParams)&&_.FB("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",O):O.serializedYpcResumeFlowLoggingParams?(O=O.serializedYpcResumeFlowLoggingParams)&&_.FB("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",O):O.serializedYpcPauseFlowLoggingParams?(O=
O.serializedYpcPauseFlowLoggingParams)&&_.FB("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",O):O.serializedYpcRefundFlowLoggingParams&&(O=O.serializedYpcRefundFlowLoggingParams)&&rBL("YPC_EVENT_TYPE_CANCEL",O))}}];var ITQ={};ITQ.YtCancelRecurrenceBehavior=[_.OJ.YtComponentBehavior,_.OvR,{attached:function(){var O=this;RFO(this,function(x,e){return O.ypcCancelRecurrenceHandler(x,e)})},
ypcCancelRecurrenceHandler:function(O,x){var e=this;if(!x||!x.ypcCancelRecurrenceEndpoint)return!1;if(!x.ypcCancelRecurrenceEndpoint.params)return _.jS(Error("Ol")),!0;_.pM(this.hostElement);var l=_.We.instance,C=_.GG().resolve(_.D0(_.cR));l&&_.hI(l,x)?_.z7(l,x).then(function(Q){e.ypcCancelRecurrenceSuccess_(O,x,{data:Q})},function(Q){e.ypcCancelRecurrenceFailure_(O,x,Q)}).thenCatch(function(){_.jS(Error("Pl"))}):C?C.requestDataForServiceEndpoint(x).then(function(Q){e.ypcCancelRecurrenceSuccess_(O,
x,Q)},function(Q){e.ypcCancelRecurrenceFailure_(O,x,Q)}).thenCatch(function(){_.jS(Error("Pl"))}):_.jS(Error("Ql"));
return!0},
ypcCancelRecurrenceSuccess_:function(O,x,e){_.R$(this.hostElement);e.data||(e={data:e});e.data&&e.data.actions&&_.gr(this.hostElement,e.data.actions,this.hostElement);e.data.messageRenderer?Keu(x.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(x=x.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.FB("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",x);_.wr(O,"yt-service-request-completed",e)},
ypcCancelRecurrenceFailure_:function(O,x,e){_.R$(this.hostElement);Keu(x.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.wr(O,"yt-service-request-error",{error:e,params:[O,x]})}}];var VqO=function(O,x){_.ew.call(this,x)};
_.c(VqO,eUp);var p_L={};p_L.YtCompleteTransactionBehavior=[_.OJ.YtComponentBehavior,_.OvR,{attached:function(){var O=this;RFO(this,function(x,e){return O.ypcCompleteTransactionHandler(x,e)})},
completeTransaction:function(O,x){var e=this;x={payments_payload:window.btoa(x.integratorData),buybucket_params:O.data.buybucketParams,offer_params:O.data.offerParams};var l=_.GG().resolve(_.cR),C=O.data.completeTransactionEndpoint,Q=this.get("ypcCompleteTransactionEndpoint.actions",C);Q&&_.gr(this.hostElement,Q,this.hostElement);return(Q=_.We.instance)&&_.hI(Q,C)?_.z7(Q,C,x).then(function(L){return!L||(L==null?0:L.error)?(L=e.get("data.serializedTransactionFlowLoggingParams",O),_.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
L))):{data:L}}).then(function(L){return e.handleCompleteTransactionSuccess_(L,O)},function(){return e.handleCompleteTransactionFailure_(O)}):l.requestDataForServiceEndpoint(C,x).then(function(L){return e.handleCompleteTransactionSuccess_(L,O)},function(){return e.handleCompleteTransactionFailure_(O)})},
handleCompleteTransactionSuccess_:function(O,x){O.data||(O={data:O});if(O.data.messageRenderer)return _.Za(new VqO(O.data.messageRenderer));if(O.data.trackingParams){var e=_.Pq(),l=_.q9();e&&l&&_.WU(e,l,_.Fv(O.data.trackingParams))}x=this.get("data.serializedTransactionFlowLoggingParams",x);H_p(x);return _.$7(O)},
handleCompleteTransactionFailure_:function(O){O=this.get("data.serializedTransactionFlowLoggingParams",O);_.K3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",O);return _.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",O))},
ypcCompleteTransactionHandler:function(O,x){var e=this;if(!x.ypcCompleteTransactionEndpoint)return!1;if(!x.ypcCompleteTransactionEndpoint.transactionParams)return _.jS(Error("Rl")),!0;x.ypcCompleteTransactionEndpoint&&x.ypcCompleteTransactionEndpoint.gtmData&&_.Br(x.ypcCompleteTransactionEndpoint.gtmData);var l=_.GG().resolve(_.D0(_.cR));if(l){_.pM(this.hostElement);var C=_.We.instance;C&&_.hI(C,x)?_.z7(C,x).then(function(Q){return!Q||(Q==null?0:Q.error)?(Q=e.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
x),_.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Q))):{data:Q}}).then(function(Q){_.wr(O,"yt-service-request-completed");
e.ypcCompleteTransactionSuccess_(x,Q)},function(){return e.ypcCompleteTransactionFailure_(x)}):l.requestDataForServiceEndpoint(x).then(function(Q){_.wr(O,"yt-service-request-completed");
e.ypcCompleteTransactionSuccess_(x,Q)},function(){return e.ypcCompleteTransactionFailure_(x)})}return!0},
ypcCompleteTransactionSuccess_:function(O,x){_.R$(this.hostElement);x.data||(x={data:x});_.Sh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);x.data.messageRenderer||x.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(O):(_.Br('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",O));x.data.actions&&(O=CgQ(x.data.actions),x=QLe(x.data.actions),O.length&&_.N9(this.hostElement,
O),x.length&&_.gr(this.hostElement,x,this.hostElement))},
ypcCompleteTransactionFailure_:function(O){_.R$(this.hostElement);_.Sh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",O,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(O,x,e){if(x=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",x))x={serializedTransactionFlowLoggingParams:x},e&&(x.errorType=e),_.uU(O,x),_.Yb()}}];var R8u={};R8u.YtEndpointHandlerWithYpcBehavior=[_.OvR,_.Wt.YtActionHandlerBehavior,[{openWalletDialog:function(O,x,e,l,C,Q,L){var k=this,M=_.He();x=x.replace(/-/g,"+").replace(/_/g,"/");var G=_.TD().get("hl");_.hyL(_.uc(_.dO),x,M.resolve,C,function(X){Q&&Q();M.reject(X)},G,function(X){return k.onServerBackendAnalyticEvent_(O,e,X)},this.onDialogClose_.bind(this),l,L);
return M.promise},
openFixFlowDialog:function(O,x,e,l){O=O.replace(/-/g,"+").replace(/_/g,"/");_.uc(_.dO).openFixFlowDialog(O,x,e,l)},
onDialogClose_:function(){_.Sh(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(O,x,e){_.wr(O,"yt-commerce-action-init-done");x&&_.N9(this.hostElement,[x,{backend_analytics:e}])}}],
_.mP.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(O,x){O=this.get("data.nativeFlowEndpoint",x);x=this.get("data.fallbackEndpoint",x);O?_.N9(this.hostElement,[O]):x&&_.wr(this.hostElement,"yt-navigate",{endpoint:x})}}],
ITQ.YtCancelRecurrenceBehavior,p_L.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 O=this;RFO(this,function(x,e,l){return O.handleYPCEndpoint(x,e,l)});
this.ypcRegisterActionMapJobId_=_.zl(_.vn,function(){O.registerActionMap(O.buyFlowActionMap_)})},
detached:function(){var O=this;_.vn.cancelJob(this.ypcRegisterActionMapJobId_);_.zl(_.vn,function(){O.unregisterActionMap(O.buyFlowActionMap_)})},
handleYPCEndpoint:function(O,x,e){var l=x.ypcGetCartEndpoint;if(l){_.cU("commerce_transaction");var C=l.gtmId;C&&_.Yq(C);(l=l.gtmData)&&_.Br(l)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",x)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(O,x),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",x)!=null?(this.handleYPCFixInstrumentEndpoint_(O,x),!0):x.ypcPauseSubscriptionCommand?(qap(this.hostElement,O,x,e),
!0):x.ypcResumeSubscriptionCommand?(IO4(this.hostElement,O,x),!0):x.getPaymentInstrumentsParamsCommand?(Z04(this.hostElement,O,x),!0):x.ypcHandleTransactionEndpoint?(oiL(this.hostElement,O,x,e),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(O,x){var e=this;_.IR("ttcr",void 0,"commerce_transaction");x=x.ypcGetCartEndpoint;var l=x.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,C=l.encryptedPurchaseParams,Q=l.serializedTransactionFlowLoggingParams,L=l.serializedPaymentsClientParams,k=this.createGetCartResponseFromParams_(l,x.offerParams,Q);this.changeButtonState(O,!0);_.Ij(this.openWalletDialog(O,C,l.ypcLogWalletAnalyticDataEndpoint,Q,function(){e.changeButtonState(O,!1)},function(){e.changeButtonState(O,
!1)},L).then(function(M){return e.handleBuyFlowCompleteCallback_(O,k,M)},function(){return e.handleOnLoadError(k)}).then(function(M){return void e.handlePostPurchaseSuccess_(O,k,M)},function(M){return void e.handlePostPurchaseError_(M)}),function(){e.changeButtonState(O,!1);
O instanceof Element&&_.wr(O,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(O,x,e){var l=O.completeTransactionEndpoint,C=O.handleTransactionEndpoint;x={data:{offerParams:window.btoa(x),serializedTransactionFlowLoggingParams:e}};C?x.data.handleTransactionEndpoint=C:x.data.completeTransactionEndpoint=l;O.onCartDismissCommand&&(x.data.onCartDismissCommand=O.onCartDismissCommand);return x},
onGetCartServiceRequestCompleted_:function(O,x){var e=this,l=O.target;if(x&&x.data&&x.data.messageRenderer)_.R$(this.hostElement),this.handleMessageRenderer_(x.data.messageRenderer),this.changeButtonState(l,!1);else{var C=this.get("data.encryptedPurchaseParams",x),Q=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",x),L=this.get("data.ypcLogWalletAnalyticDataEndpoint",x),k=this.get("data.serializedPaymentsClientParams",x),M=this.getLoggingParams_(x);if(M||C||Q)O.stopPropagation(),_.IR("ttcr",
void 0,"commerce_transaction"),C||_.R$(this.hostElement),this.changeButtonState(l,!1),Q?_.Sh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.wz("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:Q}}},this]):C&&(this.changeButtonState(l,!0),O=null,O=this.openWalletDialog(l,C,L,M,function(){_.R$(e.hostElement);e.changeButtonState(l,!1)},function(){_.R$(e.hostElement);
e.changeButtonState(l,!1)},k),_.Ij(O.then(function(G){return e.handleBuyFlowCompleteCallback_(l,x,G)},function(){return e.handleOnLoadError(x)}).then(function(G){return e.handlePostPurchaseSuccess_(l,x,G)},function(G){return e.handlePostPurchaseError_(G)}),function(){e.changeButtonState(l,!1);
_.wr(l,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(O,x){x&&x.endpoint&&x.endpoint.ypcGetCartEndpoint&&!x.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",x.endpoint.ypcGetCartEndpoint)&&_.gr(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",x.endpoint.ypcGetCartEndpoint)],O.target),_.pM(this.hostElement),this.changeButtonState(O.target,!0))},
onServiceRequestError_:function(O,x){if(x&&x.params&&x.params.length){x=_.T(x.params);for(var e=x.next();!e.done;e=x.next())if((e=e.value)&&e.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",e.ypcGetCartEndpoint)&&_.gr(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",e.ypcGetCartEndpoint)],O.target);_.R$(this.hostElement);this.changeButtonState(O.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(O,x,e){var l=e.integratorData;return l==null||l===""||e.error!=null?(l=this.getLoggingParams_(x),String(e.error)==="-1"?(x.data.onCartDismissCommand&&_.gr(this.hostElement,[x.data.onCartDismissCommand],O),_.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",l,!0))):_.Za(new xI("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",l))):x.data.handleTransactionEndpoint?yOT(this.hostElement,x.data.handleTransactionEndpoint,{payments_payload:l,funds_guarantee_callback_client_data:e.integratorClientCallbackData}):
this.completeTransaction(x,e)},
handlePostPurchaseSuccess_:function(O,x,e){x=e.data;var l=!1,C,Q;if(x&&((C=x.command)==null?0:(Q=C.commandExecutorCommand)==null?0:Q.commands)){var L,k;C=(L=x.command)==null?void 0:(k=L.commandExecutorCommand)==null?void 0:k.commands;for(L=0;L<C.length;L++)if(_.q(C[L],_.dzJ)){l=!0;break}}l||(x&&x.gtmDatas&&x.gtmDatas.length?_.Br(x.gtmDatas[0]):_.Br('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));e.data&&e.data.actions&&(x=CgQ(e.data.actions),e=QLe(e.data.actions),x.length&&
_.N9(this.hostElement,x),e.length&&_.gr(this.hostElement,e,O))},
handlePostPurchaseError_:function(O){O&&O.payload&&O.payload.isUserDismiss||_.BH(Error("Tl"))},
handleOnLoadError:function(O){O=this.getLoggingParams_(O);return _.Za(new xI("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O))},
getLoggingParams_:function(O){return this.get("data.serializedTransactionFlowLoggingParams",O)},
handleMessageRenderer_:function(O){var x=_.vE(O,"renderer"),e=_.wz("openPopupConfig");x==="confirmDialogRenderer"&&e&&_.Sh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:e.popupTypeMap[x],popup:O}},this])},
handleYPCFixInstrumentEndpoint_:function(O,x){var e=this,l=x.ypcFixInstrumentEndpoint;x=l.encryptedFixInstrumentParameters;this.logFixFopEvent_(l,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(O,!0);this.openFixFlowDialog(x,function(C,Q){e.onFixFlowCompleteCallback_(l,C,Q)},function(){return e.changeButtonState(O,!1)},function(){e.changeButtonState(O,!1);
e.logFixFopEvent_(l,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(O,x,e){var l=_.i8("payments.business.integration.scenario.FixInstrument");if(x==l.IntegratorCallbackType.ON_COMPLETE){x="FIX_FOP_EVENT_TYPE_CANCEL";var C=null;e.error!=null?e.error!=l.OnCompleteCallbackError.USER_CANCELLED&&(_.gr(this.hostElement,[O.errorAction],this.hostElement),x="FIX_FOP_EVENT_TYPE_FAILURE",C="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.gr(this.hostElement,[O.successAction],this.hostElement),x="FIX_FOP_EVENT_TYPE_SUCCESS");_.gr(this.hostElement,[O.onFinishAction],
this.hostElement);this.logFixFopEvent_(O,x,C)}},
logFixFopEvent_:function(O,x,e){(O=O.serializedFixFopLoggingParams)?(x={eventType:x,serializedFixFopLoggingParams:O},e!=null&&(x.errorType=e),_.uU("fixFopFlow",x),_.Yb()):_.BH(Error("Ul"))},
changeButtonState:function(O,x){_.t("enable_ypc_spinners")&&O&&(O.is==="yt-button-renderer"||O.is==="ytd-button-renderer")&&(O.disabled=x)}}];var UIT=function(O){this.JSC$32647_clientRoot=O;this.feedbackCollectorActionMap={"yt-help-dialog-requested":pML,"yt-feedback-dialog-requested":VJh,"yt-signal-action-help":RIO,"yt-signal-action-send-feedback":Ui4,"yt-send-feedback-action":miQ,"yt-user-feedback-endpoint":sKe};_.e2(_.iU.getInstance(),this.feedbackCollectorActionMap,this.JSC$32647_clientRoot)},aTL;var mIX=function(O){this.JSC$32652_clientRoot=O;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":WtL.bind(null,this.JSC$32652_clientRoot),"yt-signal-action-delete-all-downloads":zIh,"yt-signal-action-delete-download":rOw,"yt-signal-action-delete-playlist-download":KtL,"yt-signal-action-install-pwa":viL,"yt-signal-action-refresh-downloads":Yap,"yt-offline-video-endpoint":JO4,"yt-offline-playlist-endpoint":SaO,"yt-update-local-app-setting-command":N4w,"yt-offline-orchestration-action-command":$iL,
"yt-signal-action-undo-delete-download":niQ,"yt-local-watch-history-command":xp4};_.e2(_.iU.getInstance(),this.downloadManagerActionMap,this.JSC$32652_clientRoot);_.oF.instance=new _.oF},sGe;var nX=function(){var O=_.a.apply(this,arguments)||this;O.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_"};O.remoteApi_=null;return O};
_.c(nX,_.a);_.b=nX.prototype;
_.b.ready=function(){_.t("polymer_enable_mdx")&&(HMQ({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.t("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.t("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.t("enable_cast_short_lived_lounge_token")}),_.yQ("yt-remote-connection-change",this.handleConnectionChange_,this),_.yQ("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=fw$())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.b.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.b.handleConnectionChange_=function(O){(this.mdxConnected=O)?(O=nVL(),!O&&cip()&&IwL()&&(O={key:"cast-selector-receiver",name:IwL()}),O=O.name):O=null;this.receiverName=O;_.Lf(this.remoteApi_);(this.remoteApi_=fw$())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.b.handleReceiverAvailabilityChange_=function(){var O=dSQ();cip()&&_.tU("yt-remote-cast-available")&&O.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=O.length>0};
_.b.handleRemoteQueueChange_=function(){var O=this.currentVideoId_,x=this.currentListId_,e=YJ(this.remoteApi_);this.currentVideoId_=e.videoId;this.currentListId_=e.listId;this.currentVideoId_&&_.Sh(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.t("polymer_enable_mdx_queue")?this.currentListId_:null,O,x])};
_.b.handleAddToQueueAction_=function(O){O=_.q(O,qL4);this.remoteApi_&&(O.videoId?this.remoteApi_.addVideo(O.videoId):O.playlistId&&this.remoteApi_.addPlaylist(O.playlistId))};
_.b.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.b.handleInsertInQueueAction_=function(O){O=_.q(O,P6Y);this.remoteApi_&&O.videoId&&this.remoteApi_.JSC$20055_insertVideo(O.videoId)};
_.b.handleRemoveFromQueueAction_=function(O){O=_.q(O,cXu);this.remoteApi_&&O.videoId&&this.remoteApi_.JSC$20055_removeVideo(O.videoId)};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],nX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R(),_.v("design:type",Object)],nX.prototype,"appId",void 0);_.B([_.R(),_.v("design:type",Boolean)],nX.prototype,"mdxConnected",void 0);_.B([_.R(),_.v("design:type",Boolean)],nX.prototype,"receiverAvailable",void 0);_.B([_.R(),_.v("design:type",Object)],nX.prototype,"receiverName",void 0);_.B([_.R(),_.v("design:type",Object)],nX.prototype,"currentVideoId_",void 0);
_.B([_.R(),_.v("design:type",Object)],nX.prototype,"currentListId_",void 0);_.B([_.Va({is:"yt-mdx-manager",disableElementRegistration:!0})],nX);_.n(nX,"yt-mdx-manager",void 0,{mode:2});var WZO;var h8O;var uC=function(){var O=_.a.apply(this,arguments)||this;O.APP_IDS={ytr:3,ytm:5};O.JSC$21280_timeoutId_=0;O.actionMap={"yt-open-create-family-dialog":"open"};return O};
_.c(uC,_.a);_.b=uC.prototype;_.b.created=function(){fgT(2200)};
_.b.detached=function(){this.observer_&&this.observer_.disconnect()};
_.b.open=function(O,x){var e=this,l=O.serializedYpcFamilyCreateLoggingParams;this.JSC$21280_timeoutId_=setTimeout(this.abort_.bind(this,O.postFlowErrorEndpoint,l),3E4);x&&(this.onReadyCallback_=x);var C=_.$U(this.hostElement).querySelector("#unicorn-iframe");l&&l&&z9w("ypcFamilyCreateFlowStarted",l);_.CNr("family_creation",function(){var Q=_.i8("gapi.family_creation.render");_.i8("gapi.config.update")("iframes/family_creation/url",e.getFamilyCreationUrlWithUnicornParams_());var L=3;O.appId&&O.appId in
e.APP_IDS&&(L=e.APP_IDS[O.appId]);L={authUser:_.wz("SESSION_INDEX")||0,clientId:L,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.wz("HL"),initialflow:[4,5,6,7],m:e.isMobile?1:0,onFlowComplete:e.onUnicornFlowComplete_.bind(e,O.postFlowSuccessEndpoint,l),onError:e.onUnicornFlowError_.bind(e,O.postFlowErrorEndpoint,l),onReady:e.onUnicornFlowReady_.bind(e,O.referencePcidParams)};Q(C,L)})};
_.b.close=function(){_.$U(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.b.onUnicornFlowComplete_=function(O,x){this.close();x&&x&&z9w("ypcFamilyCreateFlowSucceeded",x);_.wr(this.hostElement,"yt-navigate",{endpoint:O})};
_.b.onUnicornFlowError_=function(O,x){this.close();x&&z9w("ypcFamilyCreateFlowCancelled",x);_.wr(this.hostElement,"yt-navigate",{endpoint:O})};
_.b.onUnicornFlowReady_=function(O){var x=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();O&&_.i8("gapi.family_creation.setConfig")(0,O);this.observer_=new MutationObserver(function(){_.$U(x.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.$U(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.$U(this.hostElement).querySelector("#dialog").open()};
_.b.getFamilyCreationUrlWithUnicornParams_=function(){return _.wz("YTR_FAMILY_CREATION_URL")};
_.b.getCurrentUrl_=function(){return document.location.href};
_.b.abort_=function(O,x){this.clearTimeout_();this.onUnicornFlowError_(O,x)};
_.b.clearTimeout_=function(){clearTimeout(this.JSC$21280_timeoutId_)};
_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],uC.prototype,"isMobile",void 0);_.B([_.R(),_.v("design:type",Object)],uC.prototype,"onReadyCallback_",void 0);_.B([_.R(),_.v("design:type",Object)],uC.prototype,"observer_",void 0);_.B([_.Va({is:"yt-create-family-dialog",disableElementRegistration:!0})],uC);
_.n(uC,"yt-create-family-dialog",function(){if(h8O===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);var x=O.content,e=x.insertBefore;WZO===void 0&&(WZO=document.createElement("template"));var l=WZO;e.call(x,l.content.cloneNode(!0),O.content.firstChild);h8O=O}O=h8O;return O},{mode:2});var z8L;var rV4;var Y$=function(){var O=_.a.apply(this,arguments)||this;O.STEP=1;O.BLOCK_ON=80;O.MIN_PROGESS=0;O.MAX_PROGESS=100;return O};
_.c(Y$,_.a);_.b=Y$.prototype;_.b.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.b.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));_.GG().addProvider({provide:LDT,useValue:this})};
_.b.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.b.finish=function(){var O=this;this.progress=this.MAX_PROGESS;e0u(function(){O.progress==O.MAX_PROGESS&&(O.hostElement.hidden=!0)})};
_.b.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Dy.Object.defineProperties(Y$.prototype,{progress:{configurable:!0,enumerable:!0,set:function(O){this.progress_=O;var x="scaleX("+O/this.MAX_PROGESS+")",e=_.$U(this.hostElement).querySelector("#progress").style;e.transform=x;e.webkitTransform=x;this.hostElement.setAttribute("aria-valuenow",String(O))},
get:function(){return this.progress_}}});
_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],Y$.prototype,"ytComponentBehavior",void 0);_.B([_.Va({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Y$);
_.n(Y$,"yt-page-navigation-progress",function(){if(rV4===void 0){var O=document.createElement("template");_.I(O,'\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');O.content.insertBefore(_.w().content.cloneNode(!0),
O.content.firstChild);var x=O.content,e=x.insertBefore;z8L===void 0&&(z8L=document.createElement("template"));var l=z8L;e.call(x,l.content.cloneNode(!0),O.content.firstChild);rV4=O}O=rV4;return O},{mode:2});var HvQ={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"},KZ4={"font-size":"12px","font-style":"italic"},dIL={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.blT=function(){return _.A(function(O){_.Ra(O)})};var nAL=_.K(function(O){var x=function(){return O.data().subtext},e={};
return _.D("snackbar-view-model",{class:_.xz("snackbarViewModelHost",O.className)},_.D("div",{class:_.xz("snackbarViewModelEngagementBarWrapper",O.className)},_.D(_.F,{cond:function(){return O.data().image},
then:function(l){return _.D(_.n_,{data:l,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.D(_.F,{cond:function(){return O.data().imageContent},
then:function(){return _.D("div",{class:"snackbarViewModelAvatarContainer"},_.D(_.MR,{data:function(){return O.data().imageContent}},{decoratedAvatarViewModel:_.Nz}))}}),_.D("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.D("div",{class:_.xz((e.snackbarViewModelTitle=!0,e.snackbarViewModelTitleWithSubtext=x,e))},_.D(_.TT,{text:function(){return O.data().text}})),_.D(_.F,{cond:x,
then:function(){return _.D("div",{class:"snackbarViewModelSubtext"},_.D(_.TT,{text:function(){return x()}}))}})),_.D(_.F,{cond:function(){return O.data().buttons},
then:function(){return _.D("div",{class:"snackbarViewModelButtonClassWrapper"},_.D(_.MR,{data:function(){return O.data().buttons}},{buttonViewModel:function(l){return _.D(_.RV,{data:l.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:O.target})}}))}})))},"dk");_.wP(_.K(function(){function O(r,f,u){P(r);W(u);Z("in");X(!0);x(r,f);L=setTimeout(function(){e()},f)}
function x(r,f){var u,Y=(u=r.text)==null?void 0:u.content;r=_.tA(r.rendererContext);Y&&(f={label:Y,command:r,durationMs:f},_.GG().resolve(_.NU).enqueue(f))}
function e(r){Z("out");r&&clearTimeout(L)}
function l(){e(!0)}
function C(r){if(r){var f=r.snackbarViewModel,u=r.durationMs,Y=r.target;u||(u=3E3);f&&(r=_.GG().resolve(_.D0(_.fT)))&&r.enqueue({isOpened:G,open:function(){O(f,u,Y)},
close:e},0)}}
var Q=_.bD("snackbar-container"),L=void 0,k=_.T(_.Iw(!1,void 0,"mDc5N")),M=k.next().value;k=k.next().value;var G=M,X=k;M=_.T(_.Iw("out",void 0,"FpOs5e"));var y=M.next().value,Z=M.next().value;M=_.T(_.Iw(void 0,void 0,"jIDRob"));var E=M.next().value,P=M.next().value;M=_.T(_.Iw(void 0,void 0,"kOA3Mb"));var U=M.next().value,W=M.next().value,z=_.lk(function(){if(y()==="out"){X(!1);P(void 0);W(void 0);var r=_.GG().resolve(_.D0(_.fT));r&&lV4(r,0)}});
_.YK(function(){var r=_.GG().resolve(_.D0(_.yj$));r&&(r.showSnackbarFn=C,r.closeSnackbarFn=l)});
return _.D("snackbar-container",{class:"ytSnackbarContainerHost",el:Q},_.D(_.F,{cond:function(){return G()&&!!E()},
then:function(){var r={};return _.D("div",{class:_.xz("ytSnackbarContainerSnackbarContainer",(r.ytSnackbarContainerMobile=!1,r.ytSnackbarContainerPivotBar=function(){var f;return!((f=_.GG().resolve(_.D0(_.ZuQ)))==null||!f())},r.ytSnackbarContainerOpened=function(){return G()&&y()==="in"},r.ytSnackbarContainerClosed=function(){return G()&&y()==="out"},r)),
"on:animationend":z},_.D(nAL,{data:function(){return E()},
target:function(){return U()}}))}}))},"ek"),"snackbar-container");_.wP(_.xFF,"yt-tooltip");var uBe=_.KyL.ephemeralActionSelector;_.wP(_.K(function(){var O=_.Dl(uBe);return _.D("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var x;return(x=O())==null?void 0:x.announcement})},"fk"),"yt-ephemeral-actions");var IgQ=new Map;var XZL=function(O,x){var e=this;this.handleError=O;this.logEventInternal=x;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){e.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
XZL.prototype.logError=function(O){this.handleError(O)};
XZL.prototype.logEvent=function(O,x){switch(O){case "IDB_DATA_CORRUPTED":_.t("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",x);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",x);break;case "IS_SUPPORTED_COMPLETED":_.t("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",x);break;case "QUOTA_EXCEEDED":Yi$(this,x);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",x);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":O=Object.assign({},x,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",O)}};
var Yi$=function(O,x){_.$f.getInstance().estimate().then(function(e){e=Object.assign({},x,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:pSY(e==null?void 0:e.usage),deviceStorageQuotaMbytes:pSY(e==null?void 0:e.quota)});O.logEventInternal("idbQuotaExceeded",e)})};var Bth=_.K(function(O){var x=_.Q5("yt-draggable"),e=O.onDrag,l=O.onDragStart,C=O.onDragEnd,Q=_.YX(O,{allowClicks:!1,dragThreshold:5}),L=Q.dragThreshold,k=Q.allowClicks;O=Q.children;Q=Q.className;var M=void 0,G=void 0,X=new _.dc(0,0),y=!1;_.YK(function(){M=new _.rV(x.value);G=new _.Xp(E);Z(M,G);if(k()){_.Xop(M,L());var U;(U=x.value)==null||U.addEventListener("click",P,{capture:!0})}_.YO(function(){var W;(W=M)==null||W.dispose();if(k()){var z;(z=x.value)==null||z.removeEventListener("click",P,{capture:!0})}})});
var Z=function(U,W){_.ol(U,"earlycancel",function(){k()&&(y=!1)});
_.ol(U,"start",function(z){l==null||l(z);z.defaultPrevented||k()&&(y=!0)});
_.ol(U,"beforedrag",function(z){M&&G&&(z.preventDefault(),X=new _.dc(z.clientX-M.startX,z.clientY-M.startY),G.start())});
_.ol(U,"end",function(){W.stop();C==null||C();X=new _.dc(0,0)})},E=function(){X&&e(X)},P=function(U){y&&(y=!1,U.stopPropagation(),U.preventDefault())};
return _.D("yt-draggable",{el:x,class:_.xz("ytDraggableComponentHost",Q)},O)},"gk");var vA$=_.K(function(O){var x=_.T(_.Iw(0,void 0,"Qf0tbc")),e=x.next().value,l=x.next().value;x=function(C){var Q={},L={};return _.D(Bth,{className:_.xz("ytdMiniplayerComponentResizer",(Q.ytdMiniplayerComponentResizerDisabled=function(){return C===O.horizontalAlignment()||C===O.verticalAlignment()},Q.ytdMiniplayerComponentResizerNorth=C==="north",Q.ytdMiniplayerComponentResizerEast=C==="east",Q.ytdMiniplayerComponentResizerSouth=C==="south",Q.ytdMiniplayerComponentResizerWest=C==="west",Q)),
onDragStart:function(){l(O.currentMiniplayerSize());if(O.onResizeStart)O.onResizeStart()},
onDrag:function(k){C!=="north"&&C!=="west"||k.scale(-1);var M;k=(M=C==="north"||C==="south")?k.y:k.x;var G=O.currentAspectRatio();M&&G>=1?k*=G:!M&&G<1&&(k/=G);M=k;O.onResize(e()+M)}},_.D("div",{class:_.xz("ytdMiniplayerComponentResizerCorner",(L.ytdMiniplayerComponentResizerNorthCorner=C==="north",L.ytdMiniplayerComponentResizerEastCorner=C==="east",L.ytdMiniplayerComponentResizerSouthCorner=C==="south",L.ytdMiniplayerComponentResizerWestCorner=C==="west",L))}))};
return _.D("div",{class:"ytdMiniplayerComponentResizers"},x("north"),x("east"),x("south"),x("west"))},"hk");var fTQ=16/9;_.wP(_.K(function(){var O=_.Q5("ytd-miniplayer"),x=_.T(_.Iw(new _.pu(NaN,NaN),void 0,"NHaFyc")),e=x.next().value,l=x.next().value;x=_.T(_.Iw(!1,void 0,"a0rwG"));var C=x.next().value,Q=x.next().value;x=_.T(_.Iw(!1,void 0,"f1jSeb"));var L=x.next().value,k=x.next().value;x=_.T(_.Iw(!1,void 0,"JojXKc"));var M=x.next().value,G=x.next().value;x=_.T(_.Iw(!1,void 0,"FjS8Db"));var X=x.next().value,y=x.next().value;x=_.T(_.Iw(!1,void 0,"z5WG9e"));var Z=x.next().value,E=x.next().value;x=_.T(_.Iw(!1,void 0,"eUzZd"));
var P=x.next().value,U=x.next().value;x=_.T(_.Iw(fTQ,void 0,"XsBIy"));var W=x.next().value,z=x.next().value,r=_.T(_.Iw(!1,void 0,"FJSvse"));x=r.next().value;var f=r.next().value;r=_.T(_.Iw(!1,void 0,"VDUFL"));var u=r.next().value,Y=r.next().value;r=_.T(_.Iw(void 0,void 0,"nFeh4b"));var J=r.next().value,O8=r.next().value;r=_.T(_.Iw(T4()?"west":"east",void 0,"T7co7c"));var Xr=r.next().value,Fr=r.next().value;r=_.T(_.Iw("south",void 0,"QDUsLb"));var mL=r.next().value,Zn=r.next().value;r=_.T(_.Iw(400,
void 0,"F7Vdze"));var q$=r.next().value,KV=r.next().value,VN=_.GG().resolve(_.Vs).miniplayerPropSignalMap[0],Pd=VN.data,f2=VN.externalPlaylistData;r=VN.toastData;var p2=VN.playabilityStatus,OT=VN.isReadyToResume,Gp=VN.isDisabled,zp=VN.watchWhile,m3=VN.playerVe,E4=VN.expandVe,Xw=VN.closeVe,Tr=VN.readyToResumeVe,QR=VN.readyToResumeCloseVe,ET=VN.repositionVe,Q$=VN.resizeVe;VN=_.T(_.bk(OT));var tJ=VN.next().value,CQ=VN.next().value,hS=_.Dl(_.at.persistentPanelVisibleSelector),JJ=!1,F4=!1,DD;_.YK(function(){l(_.L3());
O.value.addEventListener("animationend",function(ep){ep.target===O.value&&(E(!1),U(!1))});
Wn4(O.value)});
_.Cw("yt-window-resized",function(ep){ep&&l(ep)});
var lL=function(){DD&&z(DD.getVideoAspectRatio())},Sw=function(){if(DD){var ep=DD.getPlayerState()===1;
tJ()&&ep&&CQ(!1)}},ZD=function(){var ep=E4();
if(ep){var Iu=_.Pq(3);Iu&&_.KZ(Iu,ep)}},qh=function(){var ep=Xw(),Iu=QR();
ep&&_.KZ(_.Pq(3),ep);OT()&&Iu&&_.KZ(_.Pq(3),Iu)};
_.Cw("yt-activate-miniplayer",function(ep){var Iu;return _.A(function($d){if($d.nextAddress==1)return C()?$d.return():$d.yield((Iu=_.GG().resolve(_.Vs).getPlayerElement())==null?void 0:Iu.getPlayerPromise(),2);DD=$d.yieldResult;if(!DD)return $d.return();!u()&&_.t("kevlar_watch_while_v2")&&(Zn(ep&&!_.t("kevlar_watch_while_bottom_align")?"north":"south"),Fr(T4()?"west":"east"));var wo=DD;wo.addEventListener("onVideoDataChange",lL);wo.addEventListener("onStateChange",Sw);wo.addEventListener("onExpandMiniplayer",
ZD);wo.addEventListener("onCloseMiniplayer",qh);z(DD.getVideoAspectRatio());Q(!0);ssu()||E(!0);_.Ra($d)})});
_.Cw("yt-deactivate-miniplayer",function(ep){return _.A(function(Iu){if(!C())return Iu.return();Q(!1);CQ(!1);U(ep);y(!1);k(!1);if(DD){var $d=DD;$d.removeEventListener("onVideoDataChange",lL);$d.removeEventListener("onStateChange",Sw);$d.removeEventListener("onExpandMiniplayer",ZD);$d.removeEventListener("onCloseMiniplayer",qh)}ssu()||E(!0);_.Ra(Iu)})});
var Or=function(){return!(zp()&&_.t("kevlar_watch_while_modern"))},au=function(){var ep;
return!((ep=f2())==null||!ep.contents)},BO=function(){var ep=q$();
var Iu=e();Iu=Math.min(Math.min(Iu.width,Iu.height)-32,720);var $d=W(),wo=Or(),ut=au()&&L(),Pv=Math.min(ep,Iu);ep=new _.pu(192,wo?116:192);$d=new _.pu(ut?fTQ:$d,1);Pv=new _.pu(Pv,wo?Pv-76:Pv);Pv=$d.aspectRatio()>Pv.aspectRatio()?Pv.width/$d.width:Pv.height/$d.height;$d=$d.scale(Pv);ep.width<=$d.width&&ep.height<=$d.height||(ep=$d.aspectRatio()<=ep.aspectRatio()?ep.width/$d.width:ep.height/$d.height,$d.scale(ep),$d.width=Math.min($d.width,Iu),$d.height=Math.min($d.height,Iu));return new _.pu($d.width,
_.qo(192,$d.height+Hlu(wo,ut),720))},OZ=function(){var ep=BO(),Iu=Or(),$d=au()&&L();
return new _.pu(ep.width,ep.height-Hlu(Iu,$d))},TJ=function(){var ep=function(Iu){Iu.target===O.value&&X()&&(y(!1),O.value.removeEventListener("transitionend",ep))};
ssu()||(O.value.addEventListener("transitionend",ep),y(!0));k(!L())};
_.uo(function(){var ep=m3(),Iu=_.Pq(3),$d=_.q9(3);if(Iu&&$d&&ep){_.WU(Iu,$d,ep);$d=ET();var wo=Q$(),ut=E4(),Pv=Xw(),SZ=QR();ut&&Pv&&SZ&&(_.h3(Iu,ep,[ut,Pv,SZ]),_.rT(Iu,[ut,Pv]));$d&&wo&&_.h3(Iu,ep,[$d,wo])}},"crCasb");
_.uo(function(){var ep=Tr();if(ep){var Iu=_.Pq(0),$d=_.q9(0);Iu&&$d&&(_.WU(Iu,$d,ep),_.rT(Iu,[ep]))}},"JitqQ");
VN={};return _.D("ytd-miniplayer",{el:O,class:_.xz("ytdMiniplayerComponentHost",(VN.ytdMiniplayerComponentVisible=function(){return C()||Z()},VN.ytdMiniplayerComponentAnimatingSnap=M,VN.ytdMiniplayerComponentAnimatingPlaylistExpand=X,VN.ytdMiniplayerComponentAnimatingFade=Z,VN),function(){if(Z()){var ep=mL();
var Iu=C(),$d=P();ep=Iu?ep==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":$d?ep==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":ep==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else ep="";return ep}),
style:_.T7({top:function(){return mL()==="north"?"16px":""},
right:function(){var ep=Xr(),Iu=hS();Iu=(Iu===void 0?0:Iu)&&!T4()?400:0;return ep==="east"?16+Iu+"px":""},
bottom:function(){return mL()==="south"?"16px":""},
left:function(){var ep=Xr(),Iu=hS();Iu=(Iu===void 0?0:Iu)&&T4()?400:0;return ep==="west"?16+Iu+"px":""},
width:function(){return BO().width+"px"},
height:function(){return BO().height+"px"},
transform:function(){var ep=J();return ep?"translate("+ep.x+"px, "+ep.y+"px)":""}})},_.D("div",{class:"ytdMiniplayerComponentContent"},_.D(Bth,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(ep){var Iu=rlL(Xr(),mL(),e(),BO(),J()),$d=OZ();Math.abs(ep.clientY-(Iu.y+$d.height))>15?(f(!0),ep=_.Pq(3),Iu=ET(),JJ||(JJ=!0,ep&&Iu&&_.rT(ep,[Iu])),ep&&Iu&&_.KZ(ep,Iu)):ep.preventDefault()},
onDrag:function(ep){O8(ep)},
onDragEnd:function(){var ep=h0T(rlL(Xr(),mL(),e(),BO(),J()),e(),BO()),Iu=z0h(Xr(),mL(),e(),BO(),hS()),$d=z0h(ep.horizontalAlignment,ep.verticalAlignment,e(),BO(),hS());$d=new _.dc($d.x-Iu.x,$d.y-Iu.y);var wo;Iu=Iu.y+(((wo=J())==null?void 0:wo.y)||0)+BO().height/2;var ut=function(){Xr()===ep.horizontalAlignment&&mL()===ep.verticalAlignment||Y(!0);Fr(ep.horizontalAlignment);Zn(ep.verticalAlignment);O8(void 0)},Pv=function(SZ){SZ.target===O.value&&M()&&(G(!1),ut(),O.value.removeEventListener("transitionend",
Pv))};
f(!1);mL()==="south"&&Iu>e().height?(ut(),_.GG().resolve(_.Vs).close()):(O.value.addEventListener("transitionend",Pv),G(!0),O8($d))}},_.D(_.F,{cond:C,
then:function(){return _.D(_.KKQ,{isDisabled:Gp,playabilityStatus:p2,size:OZ})}}),_.D(_.F,{cond:Or,
then:function(){return _.D(_.rqT,{isReadyToResume:tJ,data:Pd,expanded:L,onExpandClick:TJ,playlistData:f2})}}),_.D(_.F,{cond:x,
then:function(){return _.D("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.D(_.F,{cond:function(){return au()&&L()||X()},
then:function(){return _.D(_.ZUL,{className:"ytdMiniplayerComponentPlaylistPanel",data:f2,hideHeaderText:!0,withinMiniplayer:!0})}}),_.D("div",{class:"ytdMiniplayerComponentToast"},_.D(_.dbY,{toastData:r}))),_.D(vA$,{onResize:function(ep){KV(_.qo(192,ep,720))},
onResizeStart:function(){var ep=_.Pq(3),Iu=Q$();F4||(F4=!0,ep&&Iu&&_.rT(ep,[Iu]));ep&&Iu&&_.KZ(ep,Iu)},
currentAspectRatio:W,currentMiniplayerSize:q$,horizontalAlignment:Xr,verticalAlignment:mL}))},"kk"),"ytd-miniplayer",{});var JV4=_.at.persistentPanelVisibleSelector,B9=function(){var O=_.a.apply(this,arguments)||this;O.tabGesturesIsActive=!1;O.persistentPanelEnabled=_.t("enable_ai_companion");O.hasDelegation=!1;O.darkerDarkTheme=_.t("web_darker_dark_theme");O.isFrostedGlassInitialized=!1;O.frostedGlassExp=_.t("web_frosted_glass");O.hasPendingWatchNavigation=!1;O.mastheadHiddenFocusWithinKillswitch=_.t("web_masthead_hidden_focus_within_killswitch");O.clientOnlyWizTooltipsEnabled=_.t("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");O.scrollAtTop=!0;O.guideScrollTop=0;O.isTheaterModeSession=_.SS("START_IN_THEATER_MODE");O.iMaxTheaterMode=_.t("web_watch_imax_theater_mode");O.isFullWindowSession=_.SS("START_IN_FULL_WINDOW_MODE");O.hasCreateFamilyDialog=!1;O.mastheadHeight=56;O.networkStatusManager=new _.eb;O.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"};O.dynamicActionMap={"yt-run-attestation-command":function(x){var e=
_.QaL.instance,l=_.q(x,_.l7N);return l?_.t("use_rta_manager_for_async")&&Ose()?hF$(e,l,x.clickTrackingParams):Wde(e,l,x.clickTrackingParams):_.Za(Error("wi"))}};
O.isFrostedGlassDisabled=!1;O.isChannelOrPlaylistPage=!1;return O};
_.c(B9,_.a);_.b=B9.prototype;_.b.created=function(){var O=_.GG();_.t("kevlar_clear_duplicate_pref_cookie")&&_.zl(_.vn,function(){var x=_.mK.get("PREF");x&&!/f\d=/.test(x)&&(x=_.Z0("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=x?"PREF=null;domain="+x+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.t("gzip_gel_with_worker")&&_.epi();_.t("jspb_serialize_with_worker")&&VUY();_.t("web_worker_availability_check")&&VWL();_.t("nwl_init_killswitch")||cYh().then(function(){_.vn.addLowPriorityJob(NjQ)});
this.pageManagerAttachedPromise=_.He();this.ytdAppBehavior.loadDepsPromise=_.cF([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.QI(this.onThrottledScroll,200,this);_.t("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);oXw();xCL=!!_.i8("ytappsettings.initialized");eM=_.i8("ytappsettings.previousValue");Nqu=_.i8("ytappsettings.previousSnapshotTime");xCL||(xCL=!0,gXp());eJw();lrL();_.JZ("DEFERRED_DETACH",
_.t("kevlar_tuner_should_defer_detach"));_.JZ("REUSE_COMPONENTS",!0);_.JZ("STAMPER_STABLE_LIST",!0);_.JZ("SCHEDULED_LAZY_LIST",!0);_.JZ("openPopupConfig",cCY);_.JZ("useClickHandler",!0);_.t("kevlar_shell_cleanup")&&_.vn.addLowPriorityJob(b_u.bind(this,_.CV.caches));_.SS("IS_SHELL_LOAD")&&_.EO({shellStartupDurationMs:Math.round((0,_.F2)()-_.FC())});AlT(this.networkStatusManager);_.t("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",lgX(HvQ)),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!",
lgX(KZ4)),console.log("%cVisit http://go/join-youtube-web to apply today.",lgX(dIL)));_.sg4(O.resolve(_.Sn),1E3)};
_.b.ready=function(){var O=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var x=rYL();x&&!_.t("external_fullscreen_killswitch")&&document.addEventListener(x,this.setFullscreen.bind(this));(x=window.matchMedia("(prefers-color-scheme: dark)"))&&x.addEventListener&&x.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(x=_.GG().resolve(_.D0(_.X2N)))x.subscribe("navigation-start",
function(e){e.destinationPageSubtype==="watch"&&(O.hasPendingWatchNavigation=!0)}),x.subscribe("navigation-end",function(e){e.destinationPageSubtype==="watch"&&(O.hasPendingWatchNavigation=!1)})};
_.b.attached=function(){var O=this;_.O2().processSignal("ci");_.t("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.BLd?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Oe(_.Im$(),"SUCCESS");this.updateIconSet();_.f1(this.guideInnerContent,!1);_.KL().initVisibilityObserver();this.guideService.guideElement=this.guide;var x=document.createElement("ytd-miniplayer"),e=_.$U(this.hostElement).querySelector("#content");
_.$U(this.hostElement).insertBefore(x,e);_.O2().processSignal("ma");_.GG().resolve(_.Vs).init(x);this.persistentPanelEnabled&&_.sfL(_.GG().resolve(_.w8),this.persistentPanelContainer,"APP");_.SS("IS_SHELL_LOAD")&&(e=document.createElement("ytd-network-status-banner"),_.$U(this.hostElement).insertBefore(e,x));_.t("kevlar_right_click_on_lockups")&&_.Sa._onCaptureClick&&document.addEventListener("contextmenu",_.Sa._onCaptureClick.bind(_.Sa),!0);var l=function(){var C=_.F_("yt-page-navigation-progress");
_.$U(O.hostElement).appendChild(C)};
setTimeout(function(){_.O2().parkOrScheduleJob(l,0,"eocs",16)},0);
_.t("service_worker_push_enabled")&&_.zl(_.vn,h9L);_.e2(_.iU.getInstance(),this.dynamicActionMap,this.hostElement);_.wr(this.hostElement,"ytd-app-attached");_.O2().processSignal("aa");jHe(this.hostElement);_.MB("gapi.load",_.CNr);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.zl(_.vn,
function(){var C=document.createElement("ytd-video-preview");_.$U(_.$U(O.hostElement).querySelector("#video-preview")).appendChild(C)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.zl(_.vn,function(){TpX();O.registerWithViewTransitionManager()});
if(_.Xo()&&this.isAppDarkTheme()!==_.Gu())this.onDarkModeToggledAction();else x=_.Fo()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==x&&(_.t("enable_dark_theme_only_on_shorts")?_.zu(_.t("enable_dark_theme_only_on_shorts_control")?window.location.href:_.QF(window.location.href,{theme:"dark"})):_.ft(new _.ry("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Rgp=new p4e(this.hostElement)),sGe=new mIX(this.hostElement),aTL=new UIT(this.hostElement),w4L=new JCw(this.hostElement)};
_.b.getThemeSettingsToLog=function(){var O=_.Fo()==="USER_INTERFACE_THEME_DARK";O=_.Xo()?_.Gu()?"os-dark":"os-light":O?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:O,cookiesEnabled:_.WK()}};
_.b.detached=function(){_.Js(this.guideInnerContent);_.vn.cancelJob(iv);iv=0;_.vn.cancelJob(xt);xt=0;_.Xs$(Sww);Sww.length=0;fC4=_.TGr=null;_.KL().dispose();_.t("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.lD(_.iU.getInstance(),Rgp.playlistHandlerActionMap,Rgp.JSC$32361_clientRoot);_.lD(_.iU.getInstance(),sGe.downloadManagerActionMap,sGe.JSC$32652_clientRoot);_.lD(_.iU.getInstance(),aTL.feedbackCollectorActionMap,aTL.JSC$32647_clientRoot);
for(var O=_.T(w4L.eventListeners),x=O.next();!x.done;x=O.next()){var e=_.T(x.value);x=e.next().value;e=e.next().value;e=_.T(e);for(var l=e.next();!l.done;l=e.next()){var C=_.T(l.value);l=C.next().value;C=C.next().value;x.removeEventListener(l,C)}}_.lD(_.iU.getInstance(),w4L.autonavPauseActionMap,w4L.JSC$20238_clientRoot)};
_.b.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.TD().getFlag(186)};
_.b.computeIsInlinePreviewEnabled=function(O,x,e){return!e&&_.Ph$({miniplayerIsActive:O,miniplayerPlaybackState:x})};
_.b.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.j6({type:"SET_FROSTED_GLASS_MODE",payload:!_.t("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"}))};
_.b.computeIsFrostedGlassDisabled=function(O,x,e,l){return O||x||e||l&&_.t("web_frosted_glass_disable_watch")};
_.b.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.t("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.b.computeIsHomePage=function(O,x){if(!O||x==null||!x.endpoint)return!1;var e;return((e=_.q(x.endpoint,_.Q9))==null?void 0:e.browseId)==="FEwhat_to_watch"};
_.b.updateIsChannelOrPlaylistPage=function(){if(_.t("web_frosted_glass")){var O,x,e=(x=(O=_.GG().resolve(_.D0(_.Be)))==null?void 0:O.getCurrentPage())==null?void 0:x.pageSubtype;this.isChannelOrPlaylistPage=e?["channel","channels","playlist"].includes(e):!1}};
_.b.scheduleFrostedGlassInitialization=function(){var O=this;_.t("web_frosted_glass")&&_.O2().parkOrScheduleJob(function(){O.isFrostedGlassInitialized=!0},0,_.XB(["eocs",
"cr"]),300)};
_.b.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.KDD(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.j6({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.j6({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.b.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(JDp(!0))};
_.b.onYtSignalActionRequestPersistentStorage=function(){if(!_.t("request_persistent_storage_killswitch")){var O=_.GG().resolve(_.oOL);O.cachedPersistStatePromise||(O.cachedPersistStatePromise=G5w())}};
_.b.handleYtChannelCreationFormEndpoints=function(O){O&&this.ytComponentBehavior.resolveCommand(O)};
_.b.handleShowEngagementPanelEndpoint=function(O){O&&this.ytComponentBehavior.resolveCommand(O)};
_.b.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(JDp(!1))};
_.b.initIconDefs=function(O,x){var e=document.createElement("iron-iconset-svg");e.name=O;O=document.createElementNS("http://www.w3.org/2000/svg","svg");e.appendChild(O);O.appendChild(x);document.body.appendChild(e);return e};
_.b.onWindowResized=function(){_.Sh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var O=_.od.getInstance();O.documentWidth_=document.body.clientWidth;brO(O)};
_.b.onWindowScrolled=function(){var O=_.GG().resolve(_.Be).getCurrentPage();if(O!=null&&O.getScrollTop){var x=this.ytdReduxBehavior,e=x.dispatch;O=O.getScrollTop()<=0;e.call(x,_.j6({type:"SET_SCROLL_AT_TOP",payload:O}))}};
_.b.guideIsVisibleButNotPersistentSelectorChanged=function(){var O=_.GG().resolve(_.Be).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=O.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"),
O.setScrollTop(this.guideScrollTop));_.jh(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.b.getCurrentPageScrollableElementType=function(){var O=_.GG().resolve(_.Be).getCurrentPage();if(O&&O.getPageScrollingElement())return O.getPageScrollingElement().nodeName};
_.b.observeGuideVisibility=function(){var O=_.od.getInstance(),x=this.miniGuideVisible;O.guidePersistentAndVisible_=this.guidePersistentAndVisible;O.miniGuideVisible_=x;brO(O)};
_.b.observePersistentPanelVisibility=function(){var O=_.od.getInstance();O.persistentPanelVisible_=this.persistentPanelVisible;brO(O)};
_.b.handleEduDismissAction=function(O){O&&O.eduDismissAction&&(_.Sh(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Yyk.getInstance(),_.F8.set(O.eduDismissAction.key+"-dismissed",!0))};
_.b.handleEduImpressionAction=function(O){if(O&&O.eduImpressionAction){var x=_.Yyk.getInstance();O=O.eduImpressionAction.key;x.JSC$13174_eduDisplayedThisLoad_[_.uyk[O].setKey||O]=!0;_.F8.set(O+"-impression",parseInt(_.F8.get(O+"-impression")||0,10)+1)}};
_.b.onYtSignalActionConfirmMentionsEdu=function(){_.Sh(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Z5.getInstance();_.yp.set("edu-dismissed",!0)};
_.b.onYtSignalActionRecordMentionsEduImpression=function(){_.Z5.getInstance();var O=_.yp.set,x=parseInt(_.yp.get("edu-impressions"),10);O.call(_.yp,"edu-impressions",(isFinite(x)?x:0)+1)};
_.b.onYtPageManagerAttached=function(O){var x;((x=_.uK(O))==null?void 0:x.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.b.onInvokeInstrumentManagerAction=function(O,x){mp$(x,O)};
_.b.updateIconSet=function(){var O=this.hostElement.querySelector("#masthead");if(O){var x=_.iK(O),e=x.querySelector("g#yt-logo-updated");e&&(O=document.createElementNS("http://www.w3.org/2000/svg","defs"),O.appendChild(e.cloneNode(!0)),(x=x.querySelector("g#yt-logo-red-updated"))&&O.appendChild(x.cloneNode(!0)),this.initIconDefs("yt-logos-ext",O))}};
_.b.updateMastheadData=function(){var O=this,x,e,l,C,Q;return _.A(function(L){if(L.nextAddress==1){x=O.data;e=O.hostElement.querySelector("#masthead");if(!e)return L.return();_.A_(O,function(){e.data=O.topbarData});
if(!O.get("response.topbar",x)||O.get("response.topbar.responseContext.maxAgeSeconds",x)===0)return L.jumpTo(0);if(l=_.GG().resolve(_.Ri))return L.yield(l(),6);C=_.GG().resolve(_.pj);return L.yield(C.put("service:topbar:fallback",new _.RX({innertubeResponse:O.get("response.topbar",x)})),0)}return(Q=L.yieldResult)?L.yield(Q.put("service:topbar:fallback",new _.RX({innertubeResponse:O.get("response.topbar",x)})),0):L.jumpTo(0)})};
_.b.computeTopbarData=function(O){if(!O)return null;var x;return this.isShortsPage&&this.topbarData&&!_.q((x=O.response)==null?void 0:x.topbar,L0e)?this.topbarData:O.response&&"topbar"in O.response?_.q(O.response.topbar,L0e)||null:null};
_.b.onSetTheaterModeEnabled=function(O,x){this.isTheaterModeSession=x.enabled;this.setTheaterModeStyles(x.enabled)};
_.b.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.b.onDarkModeToggledAction=function(){var O=_.VF(window.location.href);if(!_.Zgs(O)){(O=!!_.Cb(window.location.href).themeRefresh)&&_.ft(new _.ry("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!O){gXp();O={themeRefresh:1};var x=_.GG().resolve(_.Be);if(x.isOnWatch()){var e,l;x=((e=x.getPlayerFromWatch())==null?void 0:(l=e.getPlayer())==null?void 0:l.getCurrentTime())||0;x>=1&&(O.time_continue=Math.floor(x))}_.WK()||_.Fo()!=="USER_INTERFACE_THEME_DARK"||(O.theme="dark");_.zu(_.QF(window.location.href,
O))}_.t("web_appshell_refresh_trigger")&&_.CV.caches&&this.refreshAppShellResponse();e=_.sb(window.location.href);_.mX(_.GG().resolve(_.sg),_.Y7(e,"theme"))}};
_.b.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.b.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.b.onPlayerFullscreen=function(O){_.Bq();this.playerFullscreen=O};
_.b.setRestrictedMode=function(O){var x=_.TD();_.LZ(0,58,O);x.save();_.GG().resolve(_.Hr).reload()};
_.b.onPageChanged=function(O){O.detail.newPageType==="ytd-watch-flexy"||O.detail.newPageType==="ytd-watch-fixie"||O.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.oL("WEB_PAGE_TYPE_WATCH")):O.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.oL("WEB_PAGE_TYPE_SHORTS")):O.detail.newPageType==="ytd-browse"&&O.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.oL("WEB_PAGE_TYPE_MINI_APP")):_.t("web_frosted_glass")&&O.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.oL("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.oL("WEB_PAGE_TYPE_UNKNOWN"));O.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.b.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.b.onGuideToggleTap=function(){_.wr(this.hostElement,"yt-guide-toggle")};
_.b.onGuideToggleHover=function(){_.wr(this.hostElement,"yt-guide-hover")};
_.b.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.b.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.b.setMastheadTheme=function(){var O=_.iK(this.hostElement).querySelector("#masthead");O&&(O.dark=O.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),O.isDarkThemeForced=!1)};
_.b.onRequestPanelModeChange=function(O,x){this.hideHeaderShadow=x.mode!=="seamed"};
_.b.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.b.onDrawerIronSelect=function(O){_.uK(O).id==="guide"&&this.processDrawerIronSelect()};
_.b.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var O="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(O="opened"));_.wr(this.hostElement,"yt-autonav-pause-guide-"+O)};
_.b.onAddElementToApp=function(O){_.$U(this.hostElement).appendChild(O.detail)};
_.b.onThrottledScroll=function(){var O=_.GG().resolve(_.Be).getCurrentPage();O&&(this.scrollAtTop=O.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.b.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.b.setFullscreen=function(){if(_.t("external_fullscreen")||!this.isWatchPage){var O=_.t("kevlar_fullerscreen_root_only_killswitch")?!!_.Bq():!!_.Bq()&&_.Bq()===document.documentElement;O=(this.isWatchPage||_.t("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(O||this.isFullWindowSession);this.fullscreen!==O&&((this.fullscreen=O)&&_.jh(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.u9().dispatch(_.p4J(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Sh(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.b.setFullscreenLoggingForShorts=function(O){var x,e,l;return _.A(function(C){if(C.nextAddress==1)return C.yield((x=_.f7())==null?void 0:x.getPlayerPromise(),2);e=C.yieldResult;(l=e)==null||l.setAppFullscreen(O);_.Ra(C)})};
_.b.updateMastheadCssHeight=function(){var O=this.mastheadHeight;this.fullscreen&&(O=0);_.lH(this.hostElement,{"--ytd-masthead-height":O+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.b.updateNetworkStatusBannerDisplayStatus=function(){var O="unset";this.fullscreen&&(O="none");_.lH(this.hostElement,{"--ytd-network-status-banner-display":O})};
_.b.updateNetworkStatusBannerCssHeight=function(){var O="unset";this.fullscreen&&(O="0px");_.lH(this.hostElement,{"--ytd-network-status-banner-max-height":O})};
_.b.updateScrollAndMasthead=function(O,x,e,l){this.iMaxTheaterMode||(l=!1);var C=_.GG().resolve(_.Be).getCurrentPage();O||x||l?(document.body.classList.add("no-scroll"),C.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Qa(this,this.onScroll)),C.setScrollTop(0),_.lH(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.DT()+"px"})):e?_.wr(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.wr(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
C.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Qa(this,this.onScroll)));this.mastheadHidden=O||x||e;this.updateMastheadCssHeight();_.t("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.b.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.b.onYtNavigateAction=function(O){O=this.get("navigateAction.endpoint",O);_.wr(this.hostElement,"yt-navigate",{endpoint:O})};
_.b.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var O=document.createElement("yt-create-family-dialog");_.$U(this.hostElement).appendChild(O);this.hasCreateFamilyDialog=!0}};
_.b.onSetPushNotificationsEnabledCommand=function(O){var x=this,e=_.q(O,TGw);e&&typeof e.enabled==="boolean"&&(Notification.permission!=="granted"?Uj4().then(function(){Notification.permission==="granted"?(GOX(!e.enabled).then(o0e),e.successAction&&_.N9(x.hostElement,[e.successAction])):e.failureAction&&_.N9(x.hostElement,[e.failureAction])}):(GOX(!e.enabled).then(o0e),e.successAction&&_.N9(this.hostElement,[e.successAction])))};
_.b.onYtSignalActionEnableChromeNotifications=function(){aaL(!0)};
_.b.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.q(this.topbarData.hotkeyDialog,MVw)}}})};
_.b.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Sh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.b.onYtEndpointChangeHandler=function(O,x){var e=_.uc(_.rH);e.pendingPrefetchJob_&&(x=!(!x||x.autonav!="1"),e.pendingPrefetchJob_.resolve(O&&_.L0L(O)?_.kdw(O,x):""),e.pendingPrefetchJob_=null);_.Sh(this.hostElement,"yt-pause-active-page-context");_.Sh(this.hostElement,"ytd-log-youthere-nav");_.Sh(this.hostElement,"yt-prepare-page-dispose")};
_.b.handleCommandWithCommandHandler=function(O,x){_.lV.instance.resolveCommand(O,{form:{element:x}})};
_.b.onYtTimedCommand=function(O){var x=this;O=_.q(O,N64);var e=O.command;e&&_.e1(_.vn,function(){var l=_.q(e,_.eYk);l?(_.lV.instance.resolveCommand(e),x.maybeLogGetAnswerRequestTick(l)):_.gr(x.hostElement,[e],x.hostElement)},O.timeoutMs||0)};
_.b.maybeLogGetAnswerRequestTick=function(O){O&&O.isFirstRequest&&(_.cU("search_overview_answer"),_.IR("so_rq",void 0,"search_overview_answer"))};
_.b.onYtSignalActionSkipNavigation=function(){var O=_.GG().resolve(_.Be).getCurrentPage();_.bU(O)};
_.b.onYtSignalActionCopyDebugData=function(){BPY()};
_.b.handleEntityUpdateCommand=function(O){_.b9(_.q(O,_.iqV).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.b.logFlowLoggingEventCommand=function(O){if(O=_.q(O,_.NWr))if(O.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var x=O.flowEventNamespace,e=O.flowEventType,l=O.flowType;l&&x&&e&&_.OgW(_.xU(x,e,O.flowEventMetadata),l)}else{x=_.ex();e=O.flowEventNamespace;l=O.flowEventType;var C=O.flowType;C&&e&&l&&x.logFlowEvent(_.xU(e,l,O.flowEventMetadata),C,O.flowNonce)}};
_.b.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.b.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.b.onTouchStart=function(){var O=_.dH();_.Pq()&&_.s1(O.JSC$13402_screenManager,{visualElement:O.ve})};
_.b.handleSelectLanguageCommand=function(O){if(O=_.q(O,C6p).hl){var x=_.TD();x.set("hl",O);x.save();_.GG().resolve(_.Hr).reload()}};
_.b.handleConfirmDialogEndpoint=function(O){(O=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(O))&&this.ytOpenPopupBehavior.openPopup(O)};
_.b.handleOpenPopupNavigationEndpoints=function(O,x){_.t("web_button_rework")&&(O=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(O))&&this.ytOpenPopupBehavior.openPopup(O,x)};
_.b.handleSaveCommandToSessionStorage=function(O){if(O=_.q(O,_.k6T)){var x=O.key;x&&O.command&&window.sessionStorage.setItem(x,JSON.stringify(O.command))}};
_.b.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(O){O&&O.active&&O.active.postMessage({type:"refresh_shell"})}).catch(function(O){O.name!=="SecurityError"&&_.BH(O)})};
_.b.onDeviceThemeChanged=function(){var O=_.Gu();_.LZ(_.TD(),185,O);_.TD().save()};
_.b.handleYtRegisterPromoCommand=function(O){if(_.q(O,bgh)){var x=_.GG().resolve(_.Be).getCurrentPage()||this.hostElement;egQ().registerPromoCommand(_.q(O,bgh),x)}};
_.b.onYtNavigateHomeAction=function(){if(!_.t("kevlar_miniplayer_navigate_home_from_app_killswitch")){var O,x,e,l,C=(l=(O=this.topbarData)==null?void 0:(x=O.logo)==null?void 0:(e=x.topbarLogoRenderer)==null?void 0:e.endpoint)!=null?l:_.a7;this.ytComponentBehavior.resolveCommand(C)}};
_.b.onYtLocationCollectionCommand=function(O){QsY(_.q(O,E6e))};
_.b.onYtGetLocationCommand=function(O){TCL(_.q(O,ZgO),this)};
_.b.updateRenderGuideFromBinding=function(O){this.renderGuide=O.detail.value};
_.b.updateGuidePersistentAndVisibleFromBinding=function(O){this.guidePersistentAndVisible=O.detail.value};
_.b.updateMiniGuideVisibleFromBinding=function(O){this.miniGuideVisible=O.detail.value};
_.b.onThemeSelected=function(O,x){var e=_.TD(),l=O||x?O:_.Gu(),C=(l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Zgs(_.VF(window.location.href));_.LZ(0,165,O);_.LZ(0,174,x);e.save();C&&_.Sh(this.hostElement,"yt-dark-mode-toggled-action",[l]);_.Sh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.b.getCurrentTheme=function(){return _.Xo()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Fo()};
_.b.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.b.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.b.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.b.handleShowConsentPrimitive=function(O){var x=this,e,l;return _.A(function(C){if(C.nextAddress==1){try{e=(l=_.f7())==null?void 0:l.getPlayerPromise()}catch(Q){}return C.yield(cl$(O,e),2)}_.Sh(x.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Ra(C)})};
_.b.handleSelectActiveIdentityEndpointInternal=function(O){_.WR();O=_.q(O,_.PZ4);if(O!=null&&O.supportedTokens){O=_.T(O.supportedTokens);for(var x=O.next();!x.done;x=O.next())x=x.value,x.accountSigninToken&&_.zu(x.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.b.handleUpdatePermissionRoleCommand=function(O){if(O=_.q(O,_.Ea2)){var x;this.hasDelegation=!((x=_.q(O.renderer,_.ZdN))==null||!x.status)}};
_.b.registerWithViewTransitionManager=function(){var O=_.GG().resolve(_.D0(_.r9));if(O){var x,e=(x=this.guide)==null?void 0:x.querySelector("#scrim"),l;x=(l=this.guide)==null?void 0:l.querySelector("#contentContainer");e&&x&&O.isAnyTransitionEnabled&&(l={},O.viewTransitionCoordinator.registerElement(e,(l.slide="app-drawer-scrim-page-transition",l["lockup-to-watch"]="app-drawer-scrim-page-transition",l["learning-journey"]="app-drawer-scrim-page-transition",l)),e={},O.viewTransitionCoordinator.registerElement(x,
(e.slide="app-drawer-container-page-transition",e["lockup-to-watch"]="app-drawer-container-page-transition",e["learning-journey"]="app-drawer-container-page-transition",e)))}};
_.Dy.Object.defineProperties(B9.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.t("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Dy.Object.defineProperties(B9,{template:{configurable:!0,enumerable:!0,get:function(){if(PsO===void 0){var O=document.createElement("template");_.I(O,'\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');
O.content.insertBefore(_.w().content.cloneNode(!0),O.content.firstChild);PsO=O}O=PsO;return O}}});
B9.prototype.onOpenHotkeyDialog=B9.prototype.onOpenHotkeyDialog;B9.prototype.setFullscreen=B9.prototype.setFullscreen;B9.prototype.onAddElementToApp=B9.prototype.onAddElementToApp;B9.prototype.onDrawerIronSelect=B9.prototype.onDrawerIronSelect;B9.prototype.onGuideOpenButtonHover=B9.prototype.onGuideOpenButtonHover;B9.prototype.onRequestPanelModeChange=B9.prototype.onRequestPanelModeChange;B9.prototype.onPageDataUpdated=B9.prototype.onPageDataUpdated;B9.prototype.onPageChanged=B9.prototype.onPageChanged;
B9.prototype.onSetTheaterModeEnabled=B9.prototype.onSetTheaterModeEnabled;B9.prototype.updateMastheadData=B9.prototype.updateMastheadData;B9.prototype.onYtPageManagerAttached=B9.prototype.onYtPageManagerAttached;B9.prototype.observePersistentPanelVisibility=B9.prototype.observePersistentPanelVisibility;B9.prototype.observeGuideVisibility=B9.prototype.observeGuideVisibility;B9.prototype.guideIsVisibleButNotPersistentSelectorChanged=B9.prototype.guideIsVisibleButNotPersistentSelectorChanged;
B9.prototype.isInlinePreviewEnabledChanged=B9.prototype.isInlinePreviewEnabledChanged;B9.prototype.isWatchPageChanged=B9.prototype.isWatchPageChanged;B9.prototype.dispatchFrostedGlassMode=B9.prototype.dispatchFrostedGlassMode;_.B([_.V(_.$5),_.v("design:type",Object)],B9.prototype,"ytdReduxBehavior",void 0);_.B([_.V(_.nz.YtEventForwardingBehavior),_.v("design:type",Object)],B9.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.V(_.mP.YtOpenPopupBehavior),_.v("design:type",Object)],B9.prototype,"ytOpenPopupBehavior",void 0);_.B([_.V(_.Wt.YtActionHandlerBehavior),_.v("design:type",Object)],B9.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.V({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.iU.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.t("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var O;((O=this.actionRouterNode.hostElement)!=null?O:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var O;((O=this.actionRouterNode.hostElement)!=null?O:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(O){this.actionRouter_.handleAction(O.detail)}}),
_.v("design:type",Object)],B9.prototype,"ytActionRouterBehavior",void 0);_.B([_.V(kbQ.YtdAppBehavior),_.v("design:type",Object)],B9.prototype,"ytdAppBehavior",void 0);_.B([_.V(_.sJ.YtEndpointBehavior),_.v("design:type",Object)],B9.prototype,"ytEndpointBehavior",void 0);_.B([_.V(R8u.YtEndpointHandlerWithYpcBehavior),_.v("design:type",Object)],B9.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.B([_.V(cVL.YtLogYpcFlowCommandsBehavior),_.v("design:type",Object)],B9.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.B([_.V(_.S.YtRendererBehavior),_.v("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.B([_.V(_.OJ.YtComponentBehavior),_.v("design:type",Object)],B9.prototype,"ytComponentBehavior",void 0);_.B([_.R({selector:_.CDL}),_.v("design:type",Object)],B9.prototype,"tabGesturesIsActive",void 0);_.B([_.R(),_.v("design:type",Boolean)],B9.prototype,"renderGuide",void 0);
_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"guidePersistentAndVisible",void 0);_.B([_.R({selector:_.l9h}),_.v("design:type",Boolean)],B9.prototype,"guideIsVisibleButNotPersistent",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"standalone",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"miniGuideVisible",void 0);
_.B([_.R(),_.v("design:type",Object)],B9.prototype,"persistentPanelEnabled",void 0);_.B([_.R({selector:JV4,reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"persistentPanelVisible",void 0);_.B([_.R({selector:_.hVm}),_.v("design:type",Number)],B9.prototype,"miniplayerPlaybackState",void 0);_.B([_.R({selector:_.P1,reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"miniplayerIsActive",void 0);
_.B([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.v("design:type",Boolean)],B9.prototype,"isInlinePreviewEnabled",void 0);_.B([_.R(),_.v("design:type",Boolean)],B9.prototype,"isInlinePreviewDisabled",void 0);_.B([_.R({reflectToAttribute:!0,value:function(){return _.SS("START_IN_FULL_WINDOW_MODE")}}),
_.v("design:type",Boolean)],B9.prototype,"mastheadHidden",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"playerFullscreen",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"fullscreen",void 0);_.B([_.R({value:!1,reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"hideHeaderShadow",void 0);
_.B([_.R({value:{GUIDE_ALT_LABEL:_.CZ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.v("design:type",Object)],B9.prototype,"menuStrings",void 0);_.B([_.R({computed:"computeTopbarData(data)"}),_.v("design:type",Object)],B9.prototype,"topbarData",void 0);_.B([_.R({selector:_.aXm,reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"isWatchPage",void 0);_.B([_.R({selector:_.mLW,reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"isShortsPage",void 0);
_.B([_.R({selector:function(O){return _.c1(O)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.v("design:type",Boolean)],B9.prototype,"isMiniAppPage",void 0);_.B([_.R({selector:function(O){return _.c1(O)==="WEB_PAGE_TYPE_BROWSE"}}),
_.v("design:type",Boolean)],B9.prototype,"isBrowsePage",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Boolean)],B9.prototype,"scrolling",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],B9.prototype,"hasDelegation",void 0);_.B([_.R({reflectToAttribute:!0,value:!1}),_.v("design:type",Boolean)],B9.prototype,"guideScrolledByTouch",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],B9.prototype,"darkerDarkTheme",void 0);
_.B([_.R(),_.v("design:type",Object)],B9.prototype,"isFrostedGlassInitialized",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],B9.prototype,"frostedGlassExp",void 0);_.B([_.R({selector:function(O){return O.ui.chipBarIsSticky}}),
_.v("design:type",Boolean)],B9.prototype,"chipBarIsSticky",void 0);_.B([_.R({computed:"computeIsHomePage(isBrowsePage, data)"}),_.v("design:type",Boolean)],B9.prototype,"isHomePage",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],B9.prototype,"hasPendingWatchNavigation",void 0);_.B([_.R({reflectToAttribute:!0}),_.v("design:type",Object)],B9.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.B([_.R(),_.v("design:type",Object)],B9.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.B([_.ri("guide"),_.v("design:type",Object)],B9.prototype,"guide",void 0);_.B([_.ri("guide-service"),_.v("design:type",gBL)],B9.prototype,"guideService",void 0);_.B([_.ri("guide-inner-content"),_.v("design:type",HTMLDivElement)],B9.prototype,"guideInnerContent",void 0);_.B([_.kX("#persistent-panel-container"),_.v("design:type",HTMLElement)],B9.prototype,"persistentPanelContainer",void 0);
_.B([_.R({selector:_.zV$}),_.v("design:type",String)],B9.prototype,"frostedGlassMode",void 0);_.B([_.T1("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"dispatchFrostedGlassMode",null);_.B([_.R({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.v("design:type",Object)],B9.prototype,"isFrostedGlassDisabled",void 0);
_.B([_.T1("isWatchPage"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"isWatchPageChanged",null);_.B([_.p("isHomePage","chipBarIsSticky"),_.v("design:type",Boolean),_.v("design:paramtypes",[])],B9.prototype,"applyFrostedGlassToChipBar",null);_.B([_.R(),_.v("design:type",Object)],B9.prototype,"isChannelOrPlaylistPage",void 0);
_.B([_.G1("isInlinePreviewEnabled"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"isInlinePreviewEnabledChanged",null);_.B([_.T1("guideIsVisibleButNotPersistent"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.B([_.T1("guidePersistentAndVisible","miniGuideVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"observeGuideVisibility",null);_.B([_.T1("persistentPanelVisible"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"observePersistentPanelVisibility",null);
_.B([_.bH("attached"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],B9.prototype,"onYtPageManagerAttached",null);_.B([_.T1("data"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype",Promise)],B9.prototype,"updateMastheadData",null);_.B([_.bH("yt-set-theater-mode-enabled"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent,Object]),_.v("design:returntype")],B9.prototype,"onSetTheaterModeEnabled",null);
_.B([_.bH("yt-page-type-changed"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],B9.prototype,"onPageChanged",null);_.B([_.bH("yt-page-data-updated"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"onPageDataUpdated",null);_.B([_.bH("yt-request-panel-mode-change"),_.v("design:type",Function),_.v("design:paramtypes",[Event,Object]),_.v("design:returntype")],B9.prototype,"onRequestPanelModeChange",null);
_.B([_.bH("yt-guide-hover"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"onGuideOpenButtonHover",null);_.B([_.bH("app-drawer-transitioned"),_.v("design:type",Function),_.v("design:paramtypes",[Event]),_.v("design:returntype")],B9.prototype,"onDrawerIronSelect",null);_.B([_.bH("yt-add-element-to-app"),_.v("design:type",Function),_.v("design:paramtypes",[CustomEvent]),_.v("design:returntype")],B9.prototype,"onAddElementToApp",null);
_.B([_.bH("yt-set-fullerscreen-styles"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"setFullscreen",null);_.B([_.bH("yt-open-hotkey-dialog"),_.v("design:type",Function),_.v("design:paramtypes",[]),_.v("design:returntype")],B9.prototype,"onOpenHotkeyDialog",null);_.B([_.H({is:"ytd-app"})],B9);_.O2().processSignal("eor");
_.Bv();
}catch(e){_._DumpException(e)}
try{
_.Y8("NSzT5");
var nU4;_.Yn=function(O){var x=document.createElement("link");_.Lx(x,O,"stylesheet");document.head.appendChild(x)};
_.BA=function(O,x){var e,l;return _.A(function(C){e=document.createElement("div");e.id=O.id;O.className&&(e.className=O.className);l=O.element;if(!l)throw Error("ck");if(O.location==="prepend")l.prepend(e);else if(O.location==="appendChild")l.appendChild(e);else if(O.location==="after")l.after(e);else throw Error("dk");return C.return(_.nO(e,x,"Oi"))})};
_.vA=function(O){var x;return _.A(function(e){(x=document.getElementById(O))&&x.remove();_.Ra(e)})};
_.fk=function(O,x){var e=document.querySelector(O);e?x(e):setTimeout(function(){_.fk(O,x)},1E3)};
_.uoT=function(O,x,e){var l;_.A(function(C){if(C.nextAddress==1)return(l=document.getElementById(O))?C.jumpTo(2):C.yield(nU4(O,x,e),2);if(l=document.getElementById(O))l.style.display="block";_.Ra(C)})};
nU4=function(O,x,e){return _.A(function(l){return l.return(new Promise(function(C){_.fk("div #panels",function(Q){_.BA({element:Q,location:"appendChild",id:O,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+e},x);C()})}))})};
_.fEY=function(O){O=O===void 0?"":O;_.vA("creator_chatbots-entry-point");_.vA("creator_chatbots-panel");_.Yn(YAQ);_.fk("ytd-watch-metadata #top-level-buttons-computed",function(x){document.getElementById("creator_chatbots-entry-point")||(_.BA({element:x,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.D(BOL,{creatorChannelId:O})}),_.uoT("creator_chatbots-panel",function(){return _.D(vUQ,{usePlayerHeight:!0,
creatorChannelId:O})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Jz=_.K(function(O){var x=O.text;var e=O.onClick;var l=O.color;var C=O.backgroundColor;var Q=O.buttonSize;var L=O.disabled;var k=O.iconName;var M=O.iconSize;O=O.className;var G=_.lk(function(y){e(y)}),X={};
return _.D("button",{class:_.xz("ytpStandardButtonsHost",(X.ytpStandardButtonsLarge=function(){return(Q==null?void 0:Q())==="large"},X),O),
"on:click":G,style:_.T7({color:l,"background-color":C}),disabled:L}," ",_.D(_.F,{cond:k,then:function(){return _.D(_.L7,{className:"ytpStandardButtonsIconContainer",icon:k,size:M})}}),x)},"Ni");_.JUO=_.K(function(O){var x;return _.D("div",{class:_.xz("ytprototypesEngagementPanelComponentHost",O.className),id:O.id},_.D("div",{class:_.xz("ytprototypesEngagementPanelComponentEngagementPanelHeader",O.headerClassName)},_.D("div",null,O.header()),_.D("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.D("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(x=O.HeaderButton)==null?void 0:x.call(O)),_.D(_.Jz,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var e;(e=O.onHide)==null||e.call(O);e=O.id();if(e=document.getElementById(e))e.style.display="none"}}))),_.D("div",{class:_.xz("ytprototypesEngagementPanelComponentEngagementPanelContent",O.contentClassName),
style:function(){var e;return"height: "+(((e=O.height)==null?void 0:e.call(O))||"800px")+";"}},O.content()))},"Pi");var wRO=_.zo(["https://portraits.google.com"]),SAQ=_.zo(["https://labs-characters.teams.x20web.corp.google.com"]),jFO=_.zo(["https://portraits.google.com/gallery?ytChannelId=",""]),NOL=_.on(wRO),wi=_.on(SAQ),vUQ=_.K(function(O){function x(Z){var E;if(Z=(E=Z.detail)==null?void 0:E.endpoint){E=_.q(Z,_.Q9);var P;E&&((P=E.browseId)==null?0:P.startsWith("UC"))&&E.browseId!==C()&&(_.vA("creator_chatbots-panel-persistent"),X.removeEventListener("yt-navigate-start",x))}}
var e=O.usePlayerHeight;var l=O.isPersistentPanel;var C=O.creatorChannelId;var Q=_.t("enable_creator_chatbots_extension_dev_server"),L=document.createElement("iframe"),k=Q?wi:NOL;_.u8(function(){var Z=C();Z=Q?wi:_.on(jFO,Z);_.Fgr(L,1,Z)});
L.className="ytprotoCreatorChatbotsAppLabsIframe";L.allow="microphone; clipboard-read; clipboard-write self "+k;var M=function(){var Z;return _.A(function(E){if(E.nextAddress==1)return E.yield(_.GG().resolve(_.N5),2);(Z=E.yieldResult)&&Z.pauseVideo();_.Ra(E)})},G=function(){var Z,E,P;
return _.A(function(U){return U.nextAddress==1?U.yield(_.GG().resolve(_.N5),2):(Z=U.yieldResult)?U.return({video_id:(P=(E=Z.getVideoData())==null?void 0:E.video_id)!=null?P:"",timestamp_sec:Z.getCurrentTime().toString()}):U.return({})})};
window.addEventListener("message",function(Z){var E,P,U,W,z,r;return _.A(function(f){if(f.nextAddress==1){E=Q?wi.toString():NOL.toString();if(Z.origin!==E)return console.warn("Received message from untrusted origin:",Z.origin),f.return();P=Z.data;if(typeof P!=="object"||P===null||!P.action)return f.return();if(P.action==="pause")return f.yield(M(),0);if(P.action!=="getYouTubeContext"||!Z.source)return f.jumpTo(0);U=Z.source;W=U.postMessage;z=JSON;r=z.stringify;return f.yield(G(),7)}W.call(U,r.call(z,
{youTubeContext:f.yieldResult}),{targetOrigin:Z.origin});return f.jumpTo(0)})});
_.D9("yt-page-type-changed",function(){if(l==null?0:l()){var Z;((Z=_.GG().resolve(_.Be).getCurrentPage())==null?void 0:Z.pageSubtype)!=="channels"&&(Z=document.getElementById("creator_chatbots-panel-persistent"))&&(Z.style.display="none")}});
var X=_.GG().resolve(_.Hr),y;(y=X)==null||y.addEventListener("yt-navigate-start",x);_.YO(function(){var Z;(Z=X)==null||Z.removeEventListener("yt-navigate-start",x)});
return _.D("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(e==null?0:e())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.D(_.JUO,{id:function(){return(l==null?0:l())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var Z=Q?wi.toString():NOL.toString(),E;(E=L.contentWindow)==null||E.postMessage("ep_closed",Z)},
header:function(){return _.D("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.D("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.D(_.xR,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.D(_.Jz,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.$y(window,_.nU(Q?wi.toString():k.toString()+"/gallery?ytChannelId="+C()),"_blank")}})},
content:function(){return L}}))},"Ri");var gUL,YAQ,BOL;gUL=_.zo(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);YAQ=_.on(gUL);BOL=_.K(function(O){var x=O.creatorChannelId;var e=function(){_.uoT("creator_chatbots-panel",function(){return _.D(vUQ,{usePlayerHeight:!0,creatorChannelId:x})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.D("div",{class:"ytd-menu-renderer"},_.D(_.pd,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:e}},
icon:function(){return _.D(_.L7,{icon:"SPARK"})}}))},"Si");
_.LKp=function(O){O=O===void 0?"":O;var x;return _.A(function(e){return(x=document.getElementById("creator_chatbots-panel-persistent"))?(x.style.display==="none"&&(x.style.display="block"),e.jumpTo(0)):e.yield(new Promise(function(l){_.fk("ytd-app",function(C){_.BA({element:C,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.D(vUQ,{isPersistentPanel:!0,
creatorChannelId:O})});
l()})}),0)})};
_.Bv();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
